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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

 Copyright 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 sy$,Mwi,GFy,Ky$,nsF,Esy,GF,kFe,Ye4,nj,ks,WyY,A4H,lH,Xi,dDF,vsY,hue,Py,wyi,CHi,QY,lFY,gsy,IFe,uiY,bj$,UDs,zuH,T$F,r4s,Vwu,qx,k$,pP,Fyi,yB,Y$,Hj4,vv,cv,$DF,sIu,Jd,Z8,qMu,N9y,klF,zl,LpY,YMH,SJ,WpH,Adw,dxD,Tl,pvD,VB,hfy,wvi,Xvu,AE,PSs,iPy,WI,a8s,Ln,o$w,l8j,JdF,bPy,UxY,o8,mxY,zf4,SMy,T9e,rd$,VJD,Rfy,HPF,ef4,MRj,Gsw,ngi,yEs,YLY,L5y,bP,W5F,Onj,zs,CPe,XIy,ogs,PPF,lU$,m5,jIY,SR,rw,jR,ine,R8,Bwy,cE$,ggF,eR,Q8H,IUe,DM$,uvu,ZnD,JEF,bns,UMe,xMw,Fv,mM4,TwD,j8s,RwD,nG,F54,$MF,Na,qAj,nCe,ewj,ECH,k3$,pts,vCy,
YAF,tMi,wtF,Cyy,oCs,lCw,c9u,gC4,ICi,uey,bGy,xa4,zGy,SAF,jvu,eGH,ct,sSe,qiH,GpF,J9,ZC,xC,Vk,Ht,eM,Lwy,Kv,Axw,h7s,OvY,wDD,C5$,Lv,a2s,WD,Ax,dL,vD,l2Y,XDD,P5H,ivF,cxu,BLy,QSH,I2y,DXs,JxF,wL,Oi,Zvi,bvY,UXy,z7w,xXy,mXF,Sii,TLe,BD,QR,IS,D2,Z2,jSy,b5,R7w,$XF,xq,sge,MXy,qwj,Sm,G9e,KKj,nPw,Tp,k94,VR,LKw,YwD,RS,Agy,WKe,d_u,vPY,hqi,tXw,HD,O8u,wcy,em,CCu,aJe,sw,M_,q_,G9,oPY,Xcu,lJs,K8,i8w,cgi,gPH,Ew,kP,L8,YP,Wc,Ag,Bq$,QgD,D_e,uQi,Z8F,b8F,U_H,x_y,zqe,m_4,tg,Swi,Tqy,jgi,VXs,Rqs,fJw,FKy,H8$,eqF,C8,$_u,og,lC,sEy,
Giu,KvH,naY,Ncu,kie,pX$,Wv$,Auy,dyD,vas,hks,tAy,OSe,oaj,iC,lGe,XXi,PIy,iS4,cuH,gas,QEe,Tc4,ruD,jEj,fGy,FvH,Jg,HSy,sYw,GLj,K_s,n_Y,E_w,NYs,kLy,pmi,ye4,Y9y,W_y,M_e,Aej,dTH,v_F,hBy,t_i,OWj,wm$,CQy,aP4,PQ$,lPy,g_i,iWy,ceF,IPs,DTs,uSj,BYD,ZWy,QYu,UTe,$P,xT$,sK,Gi,zBj,S9F,TY4,V_s,G_$,fPu,RBF,HWj,$TF,F_w,pMH,E2w,y3$,LTF,Ybs,WTi,A3Y,v2y,d$y,hy4,tKu,OXs,wMy,ak$,lks,XM4,Pfs,c3i,iXy,zyF,Ny,m$y,TUw,r3y,j9y,VK$,Ry4,FTj,HXs,eyY,dc,vX,$$s,nJ4,OK,wc,pRj,L8s,Cjs,XD,lfs,XRy,gJF,iDy,cLD,Qq,BPy,QuY,DzF,uNF,JLe,ZDu,bDy,
UzH,xz$,mzF,SxD,rLe,TPw,R9j,zi,Ti,F8w,HDi,e9j,$zs,sny,MGy,GIy,n5Y,KmF,KW,E9,dly,y5,CFy,aZH,LW,lZ4,o5e,Dlw,u8F,J0y,bFY,mlD,T8i,r0s,jn$,VGi,fZF,HFy,eoF,dY,swD,wY,q4$,G6s,Kl4,Ecu,M1F,$lY,ncY,te,k6e,Y4y,ypF,d84,vcy,Jpw,ZAi,bAy,U8y,iQ,x8Y,m8j,zDy,S4y,rpj,Bm,HAj,GCs,EIe,nIw,pUY,uQ,YQY,bQ,x_,U9,vIF,Lhj,h0y,OIY,wUu,S_,oIH,j_,V5,PRF,gIs,QkF,Iye,D6H,RY,unw,fW,J5F,bIw,U6y,x6e,z0D,SQu,e_,T_y,r5H,q$,nX,R0D,fyw,FhD,$6i,sls,qUH,Gyj,yh4,Loy,NhF,Woi,AhY,d3Y,vM,t3,wU,OYY,wGF,a9,CdY,aei,ody,ley,Pdy,iYy,ch4,gdj,XGw,
Bhi,X1,Iee,bY$,PM,ZYy,U3j,Qle,x3F,gU,m3e,SUy,Th4,rhu,V4D,jlj,RSy,HYH,feF,$3H,nDY,Ntu,pF4,Yui,L3H,yl4,W3y,dhy,hzY,vDF,OxF,x2,CGF,aaH,oDF,lay,ix$,gDH,clY,BtD,QfF,T_,Ias,DhH,Jly,bxy,zz4,SuH,mhe,LD,Tt4,ZxY,Hx$,$hi,sJi,MEe,hL,qli,Kbe,Njj,y2F,p8e,A2$,dge,vpY,hey,O7F,l_y,w8y,a_Y,opw,X8s,POj,c2w,i7y,Bjw,gpe,Qe,QJe,Dgy,uIi,Ugs,xJ,zc,xgy,zeH,m8,r2H,jS,Ve,Ru,f_H,fD,eey,eS,$gy,stH,Mgu,qXy,Ml,Gww,K44,nzF,Nz$,ps$,YXu,AnY,LF,dby,vzH,hHy,tgi,OKj,ws4,Cci,aSu,A0,XsD,Pc$,iKw,cns,gzu,Bz4,QtF,ISs,DbY,ups,Jny,ZKy,bKy,
an,F4F,HK4,on,lF,X8,eHi,$by,srs,Mli,qpy,Guy,Kas,pEy,yKy,LaH,Ype,Wae,g8,Qn,In,DZ,ZZ,bF,Uh,dru,zI,h3Y,mm,tlF,O_$,SG,wEu,Caw,axY,Qri,Dry,Ure,SpY,mrY,Ixs,T2$,Vlw,N4i,$ru,YTw,Mou,LX$,WXi,fF,dsY,H2,hUD,toy,w4$,Cgj,apH,lps,s4,PgH,iTH,c_y,gAD,B4w,QOH,Ipy,X4y,J_s,ZTw,bTe,q8,T4s,r_Y,ST$,Voy,RU4,FXs,HTy,fp4,KYH,Ejy,kE4,yjY,Yc,hxe,dYu,vje,ags,lgF,Xbi,Pmw,il4,cjH,gjF,aw,UYi,zxy,Zl4,Jjs,xYF,QMw,SEe,s2e,jMi,V5i,RxY,yCi,YqY,pxD,tc4,kMu,B7F,h4Y,rjY,$YY,LdH,mYe,DY$,IgF,ugu,bly,Nky,xc,ItD,uYH,JCi,Zpj,bpu,VcF,e4e,$Aj,
Hr,Msy,KgH,kSY,NxH,y$Y,Lge,Wgs,doF,A$D,veD,hVy,tsu,OLj,ChF,wOy,LI,iLH,PhY,XOF,QZi,c$j,ITj,Bxw,Dos,umj,UoD,ZL$,bLy,zVD,Txj,r$H,RVy,fTj,FgF,HLe,$oj,Mbw,h5,GhD,Ens,KGj,NIY,LGF,YzD,dQy,hYy,ak,ok,C_F,a$D,lR,Xn,on$,PU,iR,l$w,cU,X3y,g_,P_4,i5i,Qw,cYD,gny,BIY,QUy,I$e,uT4,DQu,Z5y,xQe,UQD,zY4,mQy,JYF,Szu,jUw,rY$,b5j,Vbi,RYe,Zy,f$$,H5H,FGH,eYD,$QH,Mhy,sHi,qFD,UQ,KiY,nWs,GOF,Nri,kOD,phj,Wiy,vWF,Cqi,Xhy,xI,cMF,gWj,zC,Bri,r_,jU,Zs$,SU,HU,bsj,UKH,z2u,mKu,Tre,jH4,Vhw,R2e,fQi,e2H,GmY,M$y,Hsi,K6i,n1y,M3,qvy,E1Y,KY,
Nli,kmY,p7s,yDj,ADy,L6u,W6j,t$F,Ou$,lh$,o1Y,iuF,Dnu,uW$,Zuj,Uni,xnY,mni,Svy,Tl4,jTy,V$Y,RW$,HuF,MWe,qB4,eWe,KEi,EEy,nEe,G$Y,NBi,ppy,ycs,LE$,YBD,WED,vG,hh,wh,al,vEi,hK$,OeD,alH,ol,ld,oE4,XG,Poi,ieD,ccy,id,DeF,be$,xe$,zKF,mew,TBH,rcs,j5D,flY,gh,FEy,$ew,BG,si$,KPe,Qb,N6e,Il,Jh,Ze,kZY,yoj,pTi,YSF,WPy,Aoj,dpY,LPy,wTH,C2F,ous,XTs,guy,coy,B6i,IOe,DpF,uly,JoF,ZEF,bEF,Upy,mpY,xpe,mo,T6F,S4,ro$,rh,j4,jiw,V8y,R_u,fOs,FPy,Vb,HEY,e_e,s1$,M0F,GjF,K7D,nk$,Ekj,NbF,pLY,kju,Rl,L74,W7w,AqF,duH,vke,OOj,CiF,e4,oks,XLy,
PiF,iOF,cqH,gku,Bbi,Q1e,IAi,wLw,aAe,Dui,ucy,Uui,xuD,zEF,muy,GKj,Er4,NNe,kKH,nry,Asw,hIH,dqj,tDu,CtY,or$,XBe,gry,cs$,Dqy,kD,u6y,JsY,px,Z$4,yW,b$y,Uq4,xq4,mqs,zID,S6w,TNy,rse,jAy,$qw,M9F,Gdy,q5F,FHe,RIu,nHH,NFw,Y5y,Wt$,vHF,acy,lc$,Al,XWY,iky,cQi,BFj,uXF,bk4,zp4,mOj,S5s,TF$,fcj,rQw,$Oy,s3j,Mvy,Gb4,hl,Kxw,EtY,NQ4,kbj,pnH,yti,LxD,YZF,Atu,dSj,af,vty,hnw,Oh$,lG,tv4,Czy,Xny,iG,Pzy,ihy,cty,Q3F,I4y,gtY,u9w,USi,xSw,znj,Da,mSD,j3$,Vvj,bG,FxF,Rn4,f4s,$Sy,sD4,MND,nNs,kXy,Niy,ENH,pAj,LzD,Y7D,hbY,WzF,tNY,wAD,O14,
PU4,gN$,QDy,DCi,b1F,rry,Ol,VNy,H1y,$C4,h2,gj,nxD,pgy,kke,Lqy,Yjy,A1F,WqH,d1s,vxH,B8,xrj,Ex4,y1i,NTj,iO,ONw,wgu,Cue,aMw,Xgi,iNH,c1y,gxj,BTj,QQ4,mb,IMs,D1j,u3H,J1y,ZNw,jE,bNw,zXi,Sjw,TT$,HNy,$1y,sqw,Mpy,GDF,KZe,Mb,Eys,N1F,kDD,pzi,y74,LZF,WZu,d5e,hJj,tpF,lIF,aIy,Xzi,c7$,gyF,kz,B1s,Qqu,IIF,J7D,bVD,ZV4,x5$,m5Y,Ws,T1y,r7i,S_y,jqy,Vpy,fIj,HVH,FZF,eJi,RJy,$5$,sG4,Muy,qHF,Gzi,KQs,nvs,Evy,Nge,yvy,pfy,LQs,WQF,YHD,An,AvY,hCH,CAF,dtF,lji,Xfy,PAu,i3y,Bg$,b3u,Utu,zCe,mtH,ic,jGy,FQF,$tu,cs,GUF,sBH,MrD,qOD,KrF,z6e,
DS,mIF,SOs,rVe,jB4,Vry,R6H,Fru,HCs,E8F,qWw,K$Y,kRy,Nn4,plD,yaY,YWy,Aas,v8y,tjw,OiH,C4e,QcF,u5j,ZiH,biw,UJD,xJF,zsF,SWi,TnD,Vjj,RsH,fBw,F$H,Hie,esY,$J4,s4j,Gou,NsF,jg,V0,Rt,ko$,p5e,Hs,LFD,w5y,P0j,ldF,S2F,Tsj,rR4,WFy,ORw,vLy,Vf4,RmY,fdF,FFD,adF,HR$,$B4,MLF,KUy,nlF,Nr,Aby,vl$,tLH,O04,aiu,liy,ole,i0F,gli,Z0e,u0j,Qxu,JbH,IiF,b0H,mN$,ar,or,H04,Rgw,$NY,sRw,qGw,G4y,Xw,KMe,NXi,k4s,p9H,yJy,tB$,hl4,Dx,lHi,Up,P9w,iJy,cJy,ghy,BXj,QRu,IH4,D44,uMy,JJF,ZJD,zu,bJY,U4H,x4Y,zl$,m4y,SGF,TXu,rJF,Sl,jRy,VBY,Rl4,fHF,FMe,
HJy,elY,$4D,s_s,Mew,qfy,G5i,KNj,r2,EKy,k5y,yZi,WNw,vKF,hPY,tey,w_u,aW$,oKD,lWj,Ms,gKj,i4w,BEF,Q_F,IWF,JZ$,Z4H,b4j,xiu,W4,miF,LT,TEs,rZi,A_,j_w,Vee,RP4,fWu,v4,$iH,MQe,E64,n6i,k14,pPY,oO,yXu,LOw,WOu,dj$,v6y,tQ4,OMY,AXH,wPF,XP4,g6w,BZi,lg,QKH,Is$,bM$,Djs,JXy,ZMY,TZY,xjY,rXy,VQy,fse,FOj,HMj,e8e,$jy,sd4,qtF,Gxj,KVY,no$,EoD,kxi,yUF,WV$,hi$,wju,azy,XjH,QO,PlF,iUj,cUF,goi,B0Y,IzF,Dww,udy,JUu,ZU$,bUw,UwF,xws,ziy,mw$,Stu,rUH,T0w,Riw,FVw,ug,HU4,szy,$wY,GVD,KRy,n9e,NKH,yzF,WRH,Y1w,pYy,v9s,dEs,CnD,hTy,xA,ObF,
czH,l1s,XYi,PnF,ibw,g94,QzF,BKy,zQ,mX,UEe,DEH,bby,Zbi,uR$,Jzy,mEe,TKe,jzy,rze,VVi,Hby,FRD,$Ej,Mxy,qos,shy,GJD,n0H,KBu,Nuy,yPY,RO,LBw,Yoy,d7H,wC4,P6y,Fs,cPF,BuY,uFs,D7D,Qhe,IqY,MY,U7y,JPu,Zyy,x7j,m7y,zZY,rPi,jhu,RZi,fqe,FBw,Hyw,eZj,s6s,M3H,d7,GGH,KIF,kGi,pQY,w7,yTs,Ymy,CKw,Xg,vb4,wQ$,ht4,t3y,XQH,l9D,gbw,PKs,BAw,Q6y,im,DRy,uCy,JTH,I9s,Bb,Zfe,cb,ztH,Rti,f94,FIF,HfH,ets,$R4,GBF,M7j,qn4,s7$,nOu,kBi,LAy,Ynu,AIu,hae,ddy,vOs,t7y,wqH,CkH,a3e,oOH,l3s,Xqs,iQs,UE,gOy,I3$,Q7s,uki,Ddy,JIF,ZQj,Udy,xdi,FAe,Ray,$ds,
soF,EGy,NCj,k8D,p1D,y6y,LfH,A6Y,dZF,vGw,tay,OBu,w1y,CD$,a7j,oGe,X1D,PDD,iBy,MA,Qou,BCF,gG$,c6y,DZy,ZBY,uqj,UZy,xZY,z$y,mZF,Skj,TC$,r6e,jo4,HBe,VaH,R$y,f7H,e$H,$Zu,sWF,Ffy,Eq,Gvw,n4j,KCF,km,E4F,kvu,pwy,yWu,Nf4,LCe,Y$y,WCF,AWi,dFY,hhF,tZu,Oms,wwy,o4y,arH,cWY,CrF,yZ,g4Y,lrs,im$,QWu,IrF,DFH,uV$,JWD,bmi,UFi,xFH,mF$,Tfy,jWy,Rhu,$Fs,Hmy,ehD,FCD,fry,sCi,MOD,qJs,GNi,l8,NSu,pZe,yBY,L2u,YJF,W2e,ABF,Px,i8,OrH,v7w,d2i,h1H,QCD,cBD,tOy,irw,U2D,x2e,z1j,m2D,SJy,jCi,R1y,F2y,e1y,$24,sVy,K9$,G0Y,nBy,NOs,R2,yGy,L9H,YDy,
W9y,AGi,dGj,vBs,FY,Hx,OHe,way,anD,Xay,QVi,ZHF,JGH,bH4,xGY,zjF,mGy,SDy,TOe,rGs,GS,jVF,$GF,sPs,F9w,fnY,eje,HHF,nYy,EYF,NVF,kYY,poD,yOy,Wuy,Yaw,LuF,aNy,wo$,oYu,lNH,XoF,cOe,gYy,PpF,idj,bdY,xms,mmw,TVi,jPy,RR$,eRy,$mF,sa4,GPu,qdy,MYu,K0$,nXy,EXi,NDy,kP$,p6u,yyH,L04,Yde,W0F,vXY,hcF,tY4,OqH,w6j,CXi,oXi,loY,X6u,PXe,iqj,cyy,IoF,Dfy,JyD,bqw,Zqy,Ufy,dx,xfy,zcu,mfy,Sd$,VYH,jaF,Rc4,fo4,F0u,Hqi,sb$,qVy,GTy,KWw,n3s,E3j,NHy,kTF,piy,yNw,LWs,WW$,YVy,ANy,dPH,v34,h5Y,tte,OtD,wis,CY4,oZ,o3F,l5w,PYw,itH,cNF,g3w,BHi,Qbe,
DPF,ufu,Zty,ih,xPs,rNH,SVF,mPs,z5s,THF,jbs,VtD,R5Y,Htw,e5y,$P$,sNy,qC$,GrF,Knj,EZY,nZi,NGe,kry,p$w,YCe,Wne,Aww,dWu,vZu,hNj,w$F,CEu,J$,iZH,cwy,BGu,DWF,IRF,uJ$,JwD,ZT,U0,bZe,UWi,mg,Ss,SCw,xWD,zNF,jNY,Vke,RNF,fRs,$WF,MdY,q3y,Ggu,Kk4,nRj,N5y,kgF,puY,yij,Lky,Y3y,Wkj,js,Ai$,d0F,RZ,vRe,hOj,tdY,Oz4,wuH,Cww,HO,es,aVu,oRj,$e,lVe,XuY,PwH,izy,gRF,B5y,IVe,bzj,ZzD,Jiy,U0y,x0y,Vdj,S3F,T5Y,riF,m0u,jp4,MQ,FkY,Hz4,eO$,$0F,s0$,qR$,KDF,Ndy,LDy,pNj,qQ,k7$,vwu,t2i,Gh,O6H,wNs,Cbj,owY,lK$,XN4,Pbw,c8y,gww,Bdj,IKs,Dky,J8Y,
Z6Y,mki,zdw,TdY,r8j,j0H,RdF,fKD,FDF,H6j,edy,Gaw,K1w,nTe,ETY,pVu,yS,Yn,L5,YyD,W14,Amj,dvD,vTy,hFY,Ow$,wVy,C7u,aEe,lEF,XVF,P7e,AY,iwy,cmF,Qmu,IEu,dI,v3,JmH,Dv4,ZwF,xvw,bwy,zF4,Sy$,wI,Tm$,rmu,RFu,F1e,C5,eFw,$vF,s$s,MIH,qre,G2F,Kci,nfH,pH$,Yr$,yk$,Lcj,Wc$,hLy,Aku,vfj,tIj,Oaj,wHy,ofy,lve,XHe,ia$,ckY,uxy,DcF,zLy,TvH,B3,rkY,SbF,j$H,VIY,fv4,eLi,$cH,Eiy,Nes,kqu,p0F,yfj,Lsi,Wsy,Afy,vi$,tn$,dHY,hQH,w0F,OcF,a0e,X0j,oiH,PBy,ic$,cfy,gij,Bey,Qjy,DHj,I0w,bcy,zQy,UHu,mHF,S8D,TeF,xn,rfH,jjH,mG,RQw,VnD,f0u,Hcj,Fsi,
MHy,qsw,Key,nFy,N3y,kA$,pki,ySi,WeF,dVy,tHi,hAD,O2j,wkj,oFy,DVD,i2i,JS$,Z2e,UVy,xV4,T3i,rSi,jXy,VHH,RAy,fLu,H2$,eAy,$Vu,Mz4,ssy,qIe,kn$,pK$,yFy,LJu,YIF,WJy,AFy,vQy,O9Y,wKY,C1y,aXy,oQs,lX$,i9H,P1H,By4,IXF,DLF,uLs,JFy,Z9y,ULs,b9s,zri,jsy,FJe,fXs,H9y,erF,$Ly,MTH,YW,Gfw,vh,nV$,Noy,kfe,Wjy,d9j,tTe,wdF,Csy,oVs,luF,Xds,igj,gVi,Boj,Iuy,JAe,uP$,D9e,aH,bgD,Zgu,U9y,x9Y,zvs,m9H,Scj,To4,rAF,VTy,Rvy,fus,FjY,Hgy,evj,$9Y,sLF,MCF,GHj,KSF,YNy,WSy,AHy,vMy,hMD,tCi,Cew,gr,iou,cHY,BaD,QL4,ImD,DU4,ub4,Qi,nW,IH,uq,rH4,jLY,
fmH,Hoy,FSs,ZQ,eM$,$Uu,sy9;sy$=function(){var M,q;return typeof CSS!=="undefined"&&((q=(M=CSS).supports)==null?void 0:q.call(M,"selector(:has(*))"))};
Mwi=function(M){return M.visibility!=="hidden"&&M.display!=="none"};
GFy=function(M){if(sy$()||M.tagName!=="DETAILS"?!M.matches(qeD):M.querySelector("summary")!==null)return-1;M=M.getAttribute("tabindex")||"0";return Number(M)};
Ky$=function(M){return M.some(function(q){return GFy(q)>0})};
nsF=function(M){if(M.textContent||M.ariaLabel)return!0;if(M instanceof HTMLInputElement){if(!M.labels)return!1;M=_.k(M.labels);for(var q=M.next();!q.done;q=M.next())if(q.value.textContent)return!0}return!1};
Esy=function(M){return M.sort(function(q,G){return GFy(G)-GFy(q)})};
_.N$e=function(M){M=Array.from(M.querySelectorAll(qeD)).filter(function(q){return(Mwi(q.style)?Mwi(window.getComputedStyle(q)):!1)&&nsF(q)});
return Ky$(M)?Esy(M):M};
_.qD=function(M,q){if(Error.captureStackTrace)Error.captureStackTrace(this,_.qD);else{var G=Error().stack;G&&(this.stack=G)}M&&(this.message=String(M));q!==void 0&&(this.cause=q)};
GF=function(){throw Error("E");};
kFe=function(M,q){q=String.fromCharCode.apply(null,q);return M==null?q:M+q};
Ye4=function(M){var q=!1;q=q===void 0?!1:q;if(pyj){if(q&&(y4s?!M.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(M)))throw Error("F");M=(Ly4||(Ly4=new TextEncoder)).encode(M)}else{for(var G=0,K=new Uint8Array(3*M.length),n=0;n<M.length;n++){var E=M.charCodeAt(n);if(E<128)K[G++]=E;else{if(E<2048)K[G++]=E>>6|192;else{if(E>=55296&&E<=57343){if(E<=56319&&n<M.length){var p=M.charCodeAt(++n);if(p>=56320&&p<=57343){E=(E-55296)*1024+p-56320+65536;K[G++]=E>>18|
240;K[G++]=E>>12&63|128;K[G++]=E>>6&63|128;K[G++]=E&63|128;continue}else n--}if(q)throw Error("F");E=65533}K[G++]=E>>12|224;K[G++]=E>>6&63|128}K[G++]=E&63|128}}M=G===K.length?K:K.subarray(0,G)}return M};
nj=function(M){_.Kj.setTimeout(function(){throw M;},0)};
_.Ee=function(M,q){return M.lastIndexOf(q,0)==0};
ks=function(M,q){var G=M.length-q.length;return G>=0&&M.indexOf(q,G)==G};
_.Lj=function(M){return/^[\s\xa0]*$/.test(M)};
_.Ys=function(M,q){return M.indexOf(q)!=-1};
_.Wy=function(M,q){return _.Ys(M.toLowerCase(),q.toLowerCase())};
_.vy=function(M,q){var G=0;M=A4(String(M)).split(".");q=A4(String(q)).split(".");for(var K=Math.max(M.length,q.length),n=0;G==0&&n<K;n++){var E=M[n]||"",p=q[n]||"";do{E=/(\d*)(\D*)(.*)/.exec(E)||["","","",""];p=/(\d*)(\D*)(.*)/.exec(p)||["","","",""];if(E[0].length==0&&p[0].length==0)break;G=WyY(E[1].length==0?0:parseInt(E[1],10),p[1].length==0?0:parseInt(p[1],10))||WyY(E[2].length==0,p[2].length==0)||WyY(E[2],p[2]);E=E[3];p=p[3]}while(G==0)}return G};
WyY=function(M,q){return M<q?-1:M>q?1:0};
_.Oe=function(){var M=_.Kj.navigator;return M&&(M=M.userAgent)?M:""};
A4H=function(M){if(!w$||!Cj)return!1;for(var q=0;q<Cj.brands.length;q++){var G=Cj.brands[q].brand;if(G&&_.Ys(G,M))return!0}return!1};
lH=function(M){return _.Ys(_.Oe(),M)};
Xi=function(){return w$?!!Cj&&Cj.brands.length>0:!1};
dDF=function(){return Xi()?!1:lH("Opera")};
vsY=function(){return Xi()?!1:lH("Trident")||lH("MSIE")};
hue=function(){return Xi()?A4H("Microsoft Edge"):lH("Edg/")};
Py=function(){return lH("Firefox")||lH("FxiOS")};
_.twu=function(){return lH("Safari")&&!(_.g$()||(Xi()?0:lH("Coast"))||dDF()||(Xi()?0:lH("Edge"))||hue()||(Xi()?A4H("Opera"):lH("OPR"))||Py()||lH("Silk")||lH("Android"))};
_.g$=function(){return Xi()?A4H("Chromium"):(lH("Chrome")||lH("CriOS"))&&!(Xi()?0:lH("Edge"))||lH("Silk")};
_.Oj4=function(){return lH("Android")&&!(_.g$()||Py()||dDF()||lH("Silk"))};
wyi=function(M){var q={};M.forEach(function(G){q[G[0]]=G[1]});
return function(G){return q[G.find(function(K){return K in q})]||""}};
CHi=function(M){var q=_.Oe();if(M==="Internet Explorer"){if(vsY())if((M=/rv: *([\d\.]*)/.exec(q))&&M[1])q=M[1];else{M="";var G=/MSIE +([\d\.]+)/.exec(q);if(G&&G[1])if(q=/Trident\/(\d.\d)/.exec(q),G[1]=="7.0")if(q&&q[1])switch(q[1]){case "4.0":M="8.0";break;case "5.0":M="9.0";break;case "6.0":M="10.0";break;case "7.0":M="11.0"}else M="7.0";else M=G[1];q=M}else q="";return q}var K=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");G=[];for(var n;n=K.exec(q);)G.push([n[1],n[2],n[3]||void 0]);
q=wyi(G);switch(M){case "Opera":if(dDF())return q(["Version","Opera"]);if(Xi()?A4H("Opera"):lH("OPR"))return q(["OPR"]);break;case "Microsoft Edge":if(Xi()?0:lH("Edge"))return q(["Edge"]);if(hue())return q(["Edg"]);break;case "Chromium":if(_.g$())return q(["Chrome","CriOS","HeadlessChrome"])}return M==="Firefox"&&Py()||M==="Safari"&&_.twu()||M==="Android Browser"&&_.Oj4()||M==="Silk"&&lH("Silk")?(q=G[2])&&q[1]||"":""};
_.aFF=function(M){if(Xi()&&M!=="Silk"){var q=Cj.brands.find(function(G){return G.brand===M});
if(!q||!q.version)return NaN;q=q.version.split(".")}else{q=CHi(M);if(q==="")return NaN;q=q.split(".")}return q.length===0?NaN:Number(q[0])};
QY=function(){return w$?!!Cj&&!!Cj.platform:!1};
_.os4=function(){return QY()?Cj.platform==="Android":lH("Android")};
lFY=function(){return lH("iPhone")&&!lH("iPod")&&!lH("iPad")};
_.Iy=function(){return lFY()||lH("iPad")||lH("iPod")};
_.Xyw=function(){return QY()?Cj.platform==="macOS":lH("Macintosh")};
_.PHY=function(){return QY()?Cj.platform==="Windows":lH("Windows")};
_.ijy=function(){return QY()?Cj.platform==="Chrome OS":lH("CrOS")};
_.uH=function(M){return M[M.length-1]};
_.J4=function(M,q,G){q=_.c4w(M,q,G);return q<0?null:typeof M==="string"?M.charAt(q):M[q]};
_.c4w=function(M,q,G){for(var K=M.length,n=typeof M==="string"?M.split(""):M,E=0;E<K;E++)if(E in n&&q.call(G,n[E],E,M))return E;return-1};
gsy=function(M){for(var q=_.ZF,G=typeof M==="string"?M.split(""):M,K=M.length-1;K>=0;K--)if(K in G&&q.call(void 0,G[K],K,M))return K;return-1};
_.zF=function(M,q){return _.xs(M,q)>=0};
_.B$H=function(M,q){_.zF(M,q)||M.push(q)};
_.my=function(M,q){q=_.xs(M,q);var G;(G=q>=0)&&_.Qyw(M,q);return G};
_.Qyw=function(M,q){Array.prototype.splice.call(M,q,1)};
_.Sw=function(M){var q=M.length;if(q>0){for(var G=Array(q),K=0;K<q;K++)G[K]=M[K];return G}return[]};
_.r$=function(M,q){for(var G=1;G<arguments.length;G++){var K=arguments[G];if(_.TF(K)){var n=M.length||0,E=K.length||0;M.length=n+E;for(var p=0;p<E;p++)M[n+p]=K[p]}else M.push(K)}};
_.DDy=function(M,q,G,K){Array.prototype.splice.apply(M,IFe(arguments,1))};
IFe=function(M,q,G){return arguments.length<=2?Array.prototype.slice.call(M,q):Array.prototype.slice.call(M,q,G)};
uiY=function(M,q){q=q||M;for(var G=0,K=0,n={};K<M.length;){var E=M[K++],p=_.VY(E)?"o"+_.Fi(E):(typeof E).charAt(0)+E;Object.prototype.hasOwnProperty.call(n,p)||(n[p]=!0,q[G++]=E)}q.length=G};
_.Zji=function(M,q,G){G=G||_.J4$;for(var K=0,n=M.length,E;K<n;){var p=K+(n-K>>>1);var y=G(q,M[p]);y>0?K=p+1:(n=p,E=!y)}return E?K:-K-1};
_.Hy=function(M,q,G){if(!_.TF(M)||!_.TF(q)||M.length!=q.length)return!1;var K=M.length;G=G||bj$;for(var n=0;n<K;n++)if(!G(M[n],q[n]))return!1;return!0};
_.J4$=function(M,q){return M>q?1:M<q?-1:0};
bj$=function(M,q){return M===q};
UDs=function(M,q,G){q=Array.prototype.splice.call(M,q,1);Array.prototype.splice.call(M,G,0,q[0])};
zuH=function(M){return xDy[M]||""};
T$F=function(M){if(!mDi)return _.ew(M);M=SeF.test(M)?M.replace(SeF,zuH):M;M=atob(M);for(var q=new Uint8Array(M.length),G=0;G<M.length;G++)q[G]=M.charCodeAt(G);return q};
r4s=function(M,q){M.__closure__error__context__984382||(M.__closure__error__context__984382={});M.__closure__error__context__984382.severity=q};
_.sM=function(M){M=Error(M);r4s(M,"warning");return M};
Vwu=function(M,q){if(M!=null){var G;var K=(G=jyF)!=null?G:jyF={};G=K[M]||0;G>=q||(K[M]=G+1,M=Error(),r4s(M,"incident"),nj(M))}};
qx=function(M,q,G){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(G===void 0?0:G)&&Symbol.for&&M?Symbol.for(M):M!=null?Symbol(M):Symbol():q};
k$=function(M,q){Gl||_.nP in M||Ruj(M,fFD);M[_.nP]|=q};
pP=function(M,q){Gl||_.nP in M||Ruj(M,fFD);M[_.nP]=q};
Fyi=function(M){if(4&M)return 512&M?512:1024&M?1024:0};
yB=function(M){k$(M,34);return M};
Y$=function(M){k$(M,8192);return M};
Hj4=function(M){k$(M,32);return M};
vv=function(){return typeof BigInt==="function"};
cv=function(M,q){return q===void 0?M.copyOnWrite!==CP&&!!(2&(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.nP]|0)):!!(2&q)&&M.copyOnWrite!==CP};
_.D8=function(M,q){if(M!=null)if(typeof M==="string")M=M?new Bv(M,QB):_.II();else if(M.constructor!==Bv)if(eus&&M!=null&&M instanceof Uint8Array)M=M.length?new Bv(new Uint8Array(M),QB):_.II();else{if(!q)throw Error();M=void 0}return M};
$DF=function(M,q){if(typeof q!=="number"||q<0||q>=M.length)throw Error();};
sIu=function(M,q,G){var K=q&128?0:-1,n=M.length,E;if(E=!!n)E=M[n-1],E=E!=null&&typeof E==="object"&&E.constructor===Object;var p=n+(E?-1:0);for(q=q&128?1:0;q<p;q++)G(q-K,M[q]);if(E){M=M[n-1];for(var y in M)!isNaN(y)&&G(+y,M[y])}};
Jd=function(M){return M&128?uS:void 0};
Z8=function(M){M.isGuard_doNotManuallySetPrettyPlease=!0;return M};
qMu=function(){var M=MJD;return Z8(function(q){for(var G in M)if(q===M[G]&&!/^[0-9]+$/.test(G))return!0;return!1})};
_.bS=function(M){var q=M;if(Glj(q)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(q))throw Error(String(q));}else if(Kp4(q)&&!Number.isSafeInteger(q))throw Error(String(q));return n$u?BigInt(M):M=E$u(M)?M?"1":"0":Glj(M)?M.trim()||"0":String(M)};
N9y=function(M,q){if(M.length>q.length)return!1;if(M.length<q.length||M===q)return!0;for(var G=0;G<M.length;G++){var K=M[G],n=q[G];if(K>n)return!1;if(K<n)return!0}};
klF=function(M){var q=M>>>0;UM=q;x$=(M-q)/4294967296>>>0};
zl=function(M){if(M<0){klF(-M);var q=_.k(pvD(UM,x$));M=q.next().value;q=q.next().value;UM=M>>>0;x$=q>>>0}else klF(M)};
LpY=function(M){var q=ydF||(ydF=new DataView(new ArrayBuffer(8)));q.setFloat32(0,+M,!0);x$=0;UM=q.getUint32(0,!0)};
YMH=function(M,q){var G=q*4294967296+(M>>>0);return Number.isSafeInteger(G)?G:_.mp(M,q)};
SJ=function(M,q){var G=q&2147483648;G&&(M=~M+1>>>0,q=~q>>>0,M==0&&(q=q+1>>>0));M=YMH(M,q);return typeof M==="number"?G?-M:M:G?"-"+M:M};
WpH=function(M){var q=UM,G=x$,K=G>>31;G=(G<<1|q>>>31)^K;M(q<<1^K,G)};
Adw=function(M,q){var G=-(M&1);M=(M>>>1|q<<31)^G;return SJ(M,q>>>1^G)};
_.mp=function(M,q){q>>>=0;M>>>=0;if(q<=2097151)var G=""+(4294967296*q+M);else vv()?G=""+(BigInt(q)<<BigInt(32)|BigInt(M)):(G=(M>>>24|q<<8)&16777215,q=q>>16&65535,M=(M&16777215)+G*6777216+q*6710656,G+=q*8147497,q*=2,M>=1E7&&(G+=M/1E7>>>0,M%=1E7),G>=1E7&&(q+=G/1E7>>>0,G%=1E7),G=q+dxD(G)+dxD(M));return G};
dxD=function(M){M=String(M);return"0000000".slice(M.length)+M};
_.v$i=function(M,q){q&2147483648?vv()?M=""+(BigInt(q|0)<<BigInt(32)|BigInt(M>>>0)):(q=_.k(pvD(M,q)),M=q.next().value,q=q.next().value,M="-"+_.mp(M,q)):M=_.mp(M,q);return M};
Tl=function(M){if(M.length<16)zl(Number(M));else if(vv())M=BigInt(M),UM=Number(M&BigInt(4294967295))>>>0,x$=Number(M>>BigInt(32)&BigInt(4294967295));else{var q=+(M[0]==="-");x$=UM=0;for(var G=M.length,K=q,n=(G-q)%6+q;n<=G;K=n,n+=6)K=Number(M.slice(K,n)),x$*=1E6,UM=UM*1E6+K,UM>=4294967296&&(x$+=Math.trunc(UM/4294967296),x$>>>=0,UM>>>=0);q&&(q=_.k(pvD(UM,x$)),M=q.next().value,q=q.next().value,UM=M,x$=q)}};
pvD=function(M,q){q=~q;M?M=~M+1:q+=1;return[M,q]};
VB=function(M){return Array.prototype.slice.call(M)};
_.F2=function(M,q){throw Error(q===void 0?"unexpected value "+M+"!":q);};
_.Hv=function(M){if(M!=null&&typeof M!=="number")throw Error("L`"+typeof M+"`"+M);return M};
_.eJ=function(M){if(M==null||typeof M==="number")return M;if(M==="NaN"||M==="Infinity"||M==="-Infinity")return Number(M)};
hfy=function(M){if(M!=null&&typeof M!=="boolean")throw Error("M`"+_.$$(M)+"`"+M);return M};
_.tJy=function(M){if(M==null||typeof M==="boolean")return M;if(typeof M==="number")return!!M};
_.MM=function(M){switch(typeof M){case "bigint":return!0;case "number":return sL(M);case "string":return OPs.test(M);default:return!1}};
_.nn=function(M){if(!sL(M))throw _.sM("enum");return M|0};
_.EL=function(M){return M==null?M:sL(M)?M|0:void 0};
wvi=function(M){if(typeof M!=="number")throw _.sM("int32");if(!sL(M))throw _.sM("int32");return M|0};
_.kg=function(M){return M==null?M:wvi(M)};
_.pn=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return sL(M)?M|0:void 0};
_.CSY=function(M){if(M==null)return M;if(typeof M==="string"&&M)M=+M;else if(typeof M!=="number")return;return sL(M)?M>>>0:void 0};
Xvu=function(M){var q=0;q=q===void 0?0:q;if(!_.MM(M))throw _.sM("int64");var G=typeof M;switch(q){case 512:switch(G){case "string":return Ln(M);case "bigint":return String(Yg(64,M));default:return a8s(M)}case 1024:switch(G){case "string":return o$w(M);case "bigint":return _.bS(Yg(64,M));default:return l8j(M)}case 0:switch(G){case "string":return Ln(M);case "bigint":return _.bS(Yg(64,M));default:return WI(M)}default:return _.F2(q,"Unknown format requested type for int64")}};
AE=function(M){return M==null?M:Xvu(M)};
PSs=function(M){var q=M.length;if(M[0]==="-"?q<20||q===20&&M<="-9223372036854775808":q<19||q===19&&M<="9223372036854775807")return M;Tl(M);return _.v$i(UM,x$)};
iPy=function(M){if(M[0]==="-")var q=!1;else q=M.length,q=q<20?!0:q===20&&M<="18446744073709551615";if(q)return M;Tl(M);return _.mp(UM,x$)};
WI=function(M){M=dw(M);vI(M)||(zl(M),M=SJ(UM,x$));return M};
_.cdH=function(M){M=dw(M);M>=0&&vI(M)||(zl(M),M=YMH(UM,x$));return M};
a8s=function(M){M=dw(M);vI(M)?M=String(M):(zl(M),M=_.v$i(UM,x$));return M};
_.g$y=function(M){M=dw(M);M>=0&&vI(M)?M=String(M):(zl(M),M=_.mp(UM,x$));return M};
Ln=function(M){var q=dw(Number(M));if(vI(q))return String(q);q=M.indexOf(".");q!==-1&&(M=M.substring(0,q));return PSs(M)};
o$w=function(M){var q=dw(Number(M));if(vI(q))return _.bS(q);q=M.indexOf(".");q!==-1&&(M=M.substring(0,q));return vv()?_.bS(Yg(64,BigInt(M))):_.bS(PSs(M))};
l8j=function(M){return vI(M)?_.bS(WI(M)):_.bS(a8s(M))};
_.B9F=function(M){return vI(M)?_.bS(_.cdH(M)):_.bS(_.g$y(M))};
_.QIy=function(M){var q=dw(Number(M));if(vI(q)&&q>=0)return String(q);q=M.indexOf(".");q!==-1&&(M=M.substring(0,q));return iPy(M)};
_.I8Y=function(M){var q=dw(Number(M));if(vI(q)&&q>=0)return _.bS(q);q=M.indexOf(".");q!==-1&&(M=M.substring(0,q));return vv()?_.bS((0,_.hE)(64,BigInt(M))):_.bS(iPy(M))};
_.u2y=function(M){if(M==null)return M;if(typeof M==="bigint")return Dxy(M)?M=Number(M):(M=Yg(64,M),M=Dxy(M)?Number(M):String(M)),M;if(_.MM(M))return typeof M==="number"?WI(M):Ln(M)};
JdF=function(M,q){q=q===void 0?!1:q;var G=typeof M;if(M==null)return M;if(G==="bigint")return String(Yg(64,M));if(_.MM(M))return G==="string"?Ln(M):q?a8s(M):WI(M)};
_.ZPY=function(M){var q=typeof M;if(M==null)return M;if(q==="bigint")return _.bS(Yg(64,M));if(_.MM(M))return q==="string"?o$w(M):l8j(M)};
bPy=function(M){if(M==null)return M;var q=typeof M;if(q==="bigint")return String(Yg(64,M));if(_.MM(M)){if(q==="string")return Ln(M);if(q==="number")return WI(M)}};
UxY=function(M){if(M==null)return M;var q=typeof M;if(q==="bigint")return String((0,_.hE)(64,M));if(_.MM(M)){if(q==="string")return _.QIy(M);if(q==="number")return _.cdH(M)}};
_.Cn=function(M){if(typeof M!=="string")throw Error();return M};
o8=function(M){if(M!=null&&typeof M!=="string")throw Error();return M};
_.lP=function(M){return M==null||typeof M==="string"?M:void 0};
mxY=function(M,q,G,K){if(M!=null&&M[iP]===cI)return M;if(!Array.isArray(M))return G?K&2?q[xxY]||(q[xxY]=zf4(q)):new q:void 0;G=M[_.nP]|0;K=G|K&32|K&2;K!==G&&pP(M,K);return new q(M)};
zf4=function(M){M=new M;yB(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
SMy=function(M,q,G){M=q?wvi(M):_.pn(M);return M==null?G?0:void 0:M|0};
T9e=function(M){return M};
rd$=function(M){return M};
VJD=function(M,q,G,K,n,E){M=mxY(M,K,G,E);n&&(M=jIY(M));return M};
Rfy=function(M){return[M,this.get(M)]};
HPF=function(){return f8y||(f8y=new gw(yB([]),void 0,void 0,void 0,Fpi))};
ef4=function(M){var q=DU(uP);return q?M[q]:void 0};
MRj=function(M,q){var G=G===void 0?!1:G;if(DU($xi)&&DU(uP)&&void 0===$xi){var K=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=K[uP];if(!n)return;if(n=n.reviveUnknownFields)try{n(K,q,s8$);return}catch(E){nj(E)}}G&&(M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(G=DU(uP))&&G in M&&(M=M[G])&&delete M[q])};
Gsw=function(M,q){var G=DU(uP),K;Gl&&G&&((K=M[G])==null?void 0:K[q])!=null&&Vwu(qLe,3)};
ngi=function(M,q){q<100||Vwu(K5w,1)};
yEs=function(M,q,G,K){var n=K!==void 0;K=!!K;var E=DU(uP),p;!n&&Gl&&E&&(p=M[E])&&EgF(p,ngi);E=[];var y=M.length;p=4294967295;var Y=!1,A=!!(q&64),v=A?q&128?0:-1:void 0;if(!(q&1)){var h=y&&M[y-1];h!=null&&typeof h==="object"&&h.constructor===Object?(y--,p=y):h=void 0;if(A&&!(q&128)&&!n){Y=!0;var t;p=((t=NwY)!=null?t:T9e)(p-v,v,M,h,void 0)+v}}q=void 0;for(t=0;t<y;t++){var O=M[t];if(O!=null&&(O=G(O,K))!=null)if(A&&t>=p){var a=t-v,g=void 0;((g=q)!=null?g:q={})[a]=O}else E[t]=O}if(h)for(var D in h)y=h[D],
y!=null&&(y=G(y,K))!=null&&(t=+D,O=void 0,A&&!Number.isNaN(t)&&(O=t+v)<p?E[O]=y:(t=void 0,((t=q)!=null?t:q={})[D]=y));q&&(Y?E.push(q):E[p]=q);n&&DU(uP)&&(M=ef4(M))&&M instanceof ksD&&(E[uP]=pIs(M));return E};
YLY=function(M){M[0]=L5y(M[0]);M[1]=L5y(M[1]);return M};
L5y=function(M){switch(typeof M){case "number":return Number.isFinite(M)?M:""+M;case "bigint":return Dxy(M)?Number(M):""+M;case "boolean":return M?1:0;case "object":if(Array.isArray(M)){var q=M[_.nP]|0;return M.length===0&&q&1?void 0:yEs(M,q,L5y)}if(M!=null&&M[iP]===cI)return W5F(M);if(M instanceof Bv){q=M.JSC$8824_value_;if(q==null)M="";else if(typeof q==="string")M=q;else{if(mDi){for(var G="",K=0,n=q.length-10240;K<n;)G+=String.fromCharCode.apply(null,q.subarray(K,K+=10240));G+=String.fromCharCode.apply(null,
K?q.subarray(K):q);q=btoa(G)}else q=_.ZU(q);M=M.JSC$8824_value_=q}return M}if(M instanceof gw)return M=M.size!==0?AED(M,YLY):void 0,M;return}return M};
bP=function(M,q){if(q){NwY=q==null||q===T9e||q[dMj]!==vge?T9e:q;try{return W5F(M)}finally{NwY=void 0}}return W5F(M)};
W5F=function(M){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return yEs(M,M[_.nP]|0,L5y)};
Onj=function(M){switch(typeof M){case "boolean":return hwe||(hwe=[0,void 0,!0]);case "number":return M>0?void 0:M===0?tRF||(tRF=[0,void 0]):[-M,void 0];case "string":return[0,M];case "object":return M}};
zs=function(M,q,G){return M=_.xg(M,q[0],q[1],G?1:2)};
_.xg=function(M,q,G,K){K=K===void 0?0:K;if(M==null){var n=32;G?(M=[G],n|=128):M=[];q&&(n=n&-16760833|(q&1023)<<14)}else{if(!Array.isArray(M))throw Error("O");n=M[_.nP]|0;if(wIF&&1&n)throw Error("P");2048&n&&!(2&n)&&CPe();if(n&256)throw Error("Q");if(n&64)return K!==0||n&2048||pP(M,n|2048),M;if(G&&(n|=128,G!==M[0]))throw Error("R");a:{G=M;n|=64;var E=G.length;if(E){var p=E-1,y=G[p];if(y!=null&&typeof y==="object"&&y.constructor===Object){q=n&128?0:-1;p-=q;if(p>=1024)throw Error("T");for(var Y in y)E=
+Y,E<p&&(G[E+q]=y[Y],delete y[Y]);n=n&-16760833|(p&1023)<<14;break a}}if(q){Y=Math.max(q,E-(n&128?0:-1));if(Y>1024)throw Error("U");n=n&-16760833|(Y&1023)<<14}}}n|=64;K===0&&(n|=2048);pP(M,n);return M};
CPe=function(){if(wIF)throw Error("S");Vwu(aUu,5)};
XIy=function(M,q){if(typeof M!=="object")return M;if(Array.isArray(M)){var G=M[_.nP]|0;return M.length===0&&G&1?void 0:ogs(M,G,q)}if(M!=null&&M[iP]===cI)return lU$(M);if(M instanceof gw){q=M.arrayState;if(q&2)return M;if(!M.size)return;G=yB(AED(M));if(M.valueCtor)for(M=0;M<G.length;M++){var K=G[M],n=K[1];n==null||typeof n!=="object"?n=void 0:n!=null&&n[iP]===cI?n=lU$(n):Array.isArray(n)?n=ogs(n,n[_.nP]|0,!!(q&32)):n=void 0;K[1]=n}return G}if(M instanceof Bv)return M};
ogs=function(M,q,G){if(q&2)return M;!G||4096&q||16&q?M=m5(M,q,!1,G&&!(q&16)):(k$(M,34),q&4&&Object.freeze(M));return M};
PPF=function(M,q,G){M=new M.constructor(q);G&&(M.copyOnWrite=CP);M.noLegacyNull=CP;return M};
lU$=function(M){var q=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=q[_.nP]|0;return cv(M,G)?M:ine(M,q,G)?PPF(M,q):m5(q,G)};
m5=function(M,q,G,K){K!=null||(K=!!(34&q));M=yEs(M,q,XIy,K);K=32;G&&(K|=2);q=q&16769217|K;pP(M,q);return M};
jIY=function(M){var q=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=q[_.nP]|0;return cv(M,G)?ine(M,q,G)?PPF(M,q,!0):new M.constructor(m5(q,G,!1)):M};
SR=function(M){if(M.copyOnWrite!==CP)return!1;var q=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;q=m5(q,q[_.nP]|0);k$(q,2048);M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=q;M.copyOnWrite=void 0;M.noLegacyNull=void 0;return!0};
rw=function(M){if(!SR(M)&&cv(M,M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.nP]|0))throw Error();};
jR=function(M,q){q===void 0&&(q=M[_.nP]|0);q&32&&!(q&4096)&&pP(M,q|4096)};
ine=function(M,q,G){return G&2?!0:G&32&&!(G&4096)?(pP(q,G|2),M.copyOnWrite=CP,!0):!1};
R8=function(M,q,G,K,n){var E=G+(n?0:-1),p=M.length-1;if(p>=1+(n?0:-1)&&E>=p){var y=M[p];if(y!=null&&typeof y==="object"&&y.constructor===Object)return y[G]=K,q}if(E<=p)return M[E]=K,q;if(K!==void 0){var Y;p=((Y=q)!=null?Y:q=M[_.nP]|0)>>14&1023||536870912;G>=p?K!=null&&(E={},M[p+(n?0:-1)]=(E[G]=K,E)):M[E]=K}return q};
_.HI=function(M,q,G,K,n){var E=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=E[_.nP]|0;K=cv(M,p)?1:K;n=!!n||K===3;K===2&&SR(M)&&(E=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,p=E[_.nP]|0);M=cE$(E,q);var y=M===fn?7:M[_.nP]|0,Y=ggF(y,p);var A=4&Y?!1:!0;if(A){4&Y&&(M=VB(M),y=0,Y=Fv(Y,p),p=R8(E,p,q,M));for(var v=0,h=0;v<M.length;v++){var t=G(M[v]);t!=null&&(M[h++]=t)}h<v&&(M.length=h);G=(Y|4)&-513;Y=G&=-1025;Y&=-4097}Y!==y&&(pP(M,Y),2&Y&&Object.freeze(M));return M=Bwy(M,Y,E,
p,q,K,A,n)};
Bwy=function(M,q,G,K,n,E,p,y){var Y=q;E===1||(E!==4?0:2&q||!(16&q)&&32&K)?eR(q)||(q|=!M.length||p&&!(4096&q)||32&K&&!(4096&q||16&q)?2:256,q!==Y&&pP(M,q),Object.freeze(M)):(E===2&&eR(q)&&(M=VB(M),Y=0,q=Fv(q,K),K=R8(G,K,n,M)),eR(q)||(y||(q|=16),q!==Y&&pP(M,q)));2&q||!(4096&q||16&q)||jR(G,K);return M};
cE$=function(M,q,G){M=$g(M,q,G);return Array.isArray(M)?M:fn};
ggF=function(M,q){2&q&&(M|=2);return M|1};
eR=function(M){return!!(2&M)&&!!(4&M)||!!(256&M)};
Q8H=function(M){return _.D8(M,!0)};
IUe=function(M){M=VB(M);for(var q=0;q<M.length;q++){var G=M[q]=VB(M[q]);Array.isArray(G[1])&&(G[1]=yB(G[1]))}return Y$(M)};
DM$=function(M,q){var G=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,K=G[_.nP]|0;a:{var n=K;K=cv(M,K);!K&&SR(M)&&(G=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=G[_.nP]|0);var E=$g(G,q);M=!1;if(E==null){if(K){q=HPF();break a}E=[]}else if(E.constructor===gw)if(E.arrayState&2&&!K)E=AED(E);else{q=E;break a}else Array.isArray(E)?M=!!((E[_.nP]|0)&2):E=[];if(K){if(!E.length){q=HPF();break a}M||(M=!0,yB(E))}else M&&(M=!1,Y$(E),E=IUe(E));!M&&n&32&&Hj4(E);K=new gw(E,void 0,SMy,SMy);
n=R8(G,n,q,K);M||jR(G,n);q=K}return q};
_.sA=function(M,q,G,K){rw(M);var n=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=n[_.nP]|0;if(G==null)return R8(n,E,q),M;var p=G===fn?7:G[_.nP]|0,y=p,Y=eR(p),A=Y||Object.isFrozen(G);Y||(p=0);A||(G=VB(G),y=0,p=Fv(p,E),A=!1);p|=5;var v;Y=(v=Fyi(p))!=null?v:0;for(v=0;v<G.length;v++){var h=G[v],t=K(h,Y);Object.is(h,t)||(A&&(G=VB(G),y=0,p=Fv(p,E),A=!1),G[v]=t)}p!==y&&(A&&(G=VB(G),p=Fv(p,E)),pP(G,p));R8(n,E,q,G);return M};
_.Ma=function(M,q,G,K,n){rw(M);var E=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R8(E,E[_.nP]|0,q,(K==="0"?Number(G)===0:G===K)?void 0:G,n);return M};
_.qa=function(M,q,G){if(q&2)throw Error();var K=Jd(q),n=cE$(M,G,K),E=n===fn?7:n[_.nP]|0,p=ggF(E,q);if(2&p||eR(p)||16&p)p===E||eR(p)||pP(n,p),n=VB(n),E=0,p=Fv(p,q),R8(M,q,G,n,K);p&=-13;p!==E&&pP(n,p);return n};
uvu=function(M){if(Gl){var q;return(q=M[G3])!=null?q:M[G3]=new Map}if(G3 in M)return M[G3];q=new Map;Object.defineProperty(M,G3,{value:q});return q};
ZnD=function(M,q,G,K,n){var E=uvu(M),p=JEF(E,M,q,G,n);p!==K&&(p&&(q=R8(M,q,p,void 0,n)),E.set(G,K));return q};
JEF=function(M,q,G,K,n){var E=M.get(K);if(E!=null)return E;for(var p=E=0;p<K.length;p++){var y=K[p];$g(q,y,n)!=null&&(E!==0&&(G=R8(q,G,E,void 0,n)),E=y)}M.set(K,E);return E};
bns=function(M,q,G,K,n){var E=!1;K=$g(M,K,n,function(p){var y=mxY(p,G,!1,q);E=y!==p&&y!=null;return y});
if(K!=null)return E&&!cv(K)&&jR(M,q),K};
UMe=function(M,q,G,K,n,E,p,y){var Y=cv(M,G);E=Y?1:E;p=!!p||E===3;Y=y&&!Y;(E===2||Y)&&SR(M)&&(q=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G=q[_.nP]|0);M=cE$(q,n);var A=M===fn?7:M[_.nP]|0,v=ggF(A,G);if(y=!(4&v)){var h=M,t=G,O=!!(2&v);O&&(t|=2);for(var a=!O,g=!0,D=0,J=0;D<h.length;D++){var Z=mxY(h[D],K,!1,t);if(Z instanceof K){if(!O){var V=cv(Z);a&&(a=!V);g&&(g=V)}h[J++]=Z}}J<D&&(h.length=J);v|=4;v=g?v&-4097:v|4096;v=a?v|8:v&-9}v!==A&&(pP(M,v),2&v&&Object.freeze(M));if(Y&&!(8&v||!M.length&&
(E===1||(E!==4?0:2&v||!(16&v)&&32&G)))){eR(v)&&(M=VB(M),v=Fv(v,G),G=R8(q,G,n,M));K=M;Y=v;for(A=0;A<K.length;A++)h=K[A],v=jIY(h),h!==v&&(K[A]=v);Y|=8;v=Y=K.length?Y|4096:Y&-4097;pP(M,v)}return M=Bwy(M,v,q,G,n,E,y,p)};
xMw=function(M){M==null&&(M=void 0);return M};
Fv=function(M,q){return M=(2&q?M|2:M&-3)&-273};
_.zwu=function(M,q,G,K,n){rw(M);q=_.HI(M,q,n,2,!0);var E;n=(E=Fyi(q===fn?7:q[_.nP]|0))!=null?E:0;q.push(G(K,n));return M};
mM4=function(M,q,G,K,n,E,p){rw(M);var y=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;M=UMe(M,y,y[_.nP]|0,G,q,2,!0);if(E&&p)n!=null||(n=M.length-1),$DF(M,n),M.splice(n,E),M.length||(M[_.nP]&=-4097);else{if(E){if(typeof n!=="number"||n<0||n>M.length)throw Error();}else K=K!=null?K:new G;n!=void 0?M.splice(n,E,K):M.push(K);n=G=M===fn?7:M[_.nP]|0;(K=cv(K))?(G&=-9,M.length===1&&(G&=-4097)):G|=4096;G!==n&&pP(M,G);K||jR(y)}};
TwD=function(M,q){if(typeof M==="string")return new KG(T$F(M),q);if(Array.isArray(M))return new KG(new Uint8Array(M),q);if(M.constructor===Uint8Array)return new KG(M,!1);if(M.constructor===ArrayBuffer)return M=new Uint8Array(M),new KG(M,!1);if(M.constructor===Bv)return q=SLY(M)||new Uint8Array(0),new KG(q,!0,M);if(M instanceof Uint8Array)return M=M.constructor===Uint8Array?M:new Uint8Array(M.buffer,M.byteOffset,M.byteLength),new KG(M,!1);throw Error();};
j8s=function(M){switch(typeof M){case "string":rEy(M)}};
RwD=function(M){switch(typeof M){case "string":VRY(M)}};
nG=function(){var M=function(){throw Error();};
Object.setPrototypeOf(M,M.prototype);return M};
F54=function(M,q){var G=G===void 0?fUF:G;return new EA(M,q,G)};
$MF=function(M,q,G,K,n){Hn$(M,G,ewj(q,K),n)};
Na=function(M,q,G,K){var n=K[M];if(n)return n;n={};n.binaryFields=K;n.messageMetadata=Onj(K[0]);var E=K[1],p=1;E&&E.constructor===Object&&(n.extensions=E,E=K[++p],typeof E==="function"&&(n.isMessageSet=!0,svs!=null||(svs=E),MM$!=null||(MM$=K[p+1]),E=K[p+=2]));for(var y={};E&&qAj(E);){for(var Y=0;Y<E.length;Y++)y[E[Y]]=E;E=K[++p]}for(Y=1;E!==void 0;){typeof E==="number"&&(Y+=E,E=K[++p]);var A=void 0;if(E instanceof EA)var v=E;else v=G3y,p--;E=void 0;if((E=v)==null?0:E.$$isMsg){E=K[++p];A=K;var h=p;
typeof E==="function"&&(E=E(),A[h]=E);A=E}E=K[++p];h=Y+1;typeof E==="number"&&E<0&&(h-=E,E=K[++p]);for(;Y<h;Y++){var t=y[Y];A?G(n,Y,v,A,t):q(n,Y,v,t)}}return K[M]=n};
qAj=function(M){return Array.isArray(M)&&!!M.length&&typeof M[0]==="number"&&M[0]>0};
nCe=function(M){return Array.isArray(M)?M[0]instanceof EA?M:[KLy,M]:[M,void 0]};
ewj=function(M,q){if(M instanceof _.kC)return M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(M))return zs(M,q,!1)};
ECH=function(M,q,G,K){var n=G.$$binaryReaderFn;M[q]=K?function(E,p,y){return n(E,p,y,K)}:n};
k3$=function(M,q,G,K,n){var E=G.$$binaryReaderFn,p,y;M[q]=function(Y,A,v){return E(Y,A,v,y||(y=Na(NWi,ECH,k3$,K).messageMetadata),p||(p=pts(K)),n)}};
pts=function(M){var q=M[y9j];if(q!=null)return q;var G=Na(NWi,ECH,k3$,M);q=G.isMessageSet?function(K,n){return svs(K,n,G)}:function(K,n){for(;LLs(n)&&n.nextWireType_!=4;){var E=n.nextField_,p=G[E];
if(p==null){var y=G.extensions;y&&(y=y[E])&&(y=YAF(y),y!=null&&(p=G[E]=y))}if(p==null||!p(n,K,E)){y=n;p=y.fieldCursor_;WL$(y);if(y.discardUnknownFields)var Y=void 0;else{var A=y.decoder_.cursor_-p;y.decoder_.cursor_=p;Y=A9y(y.decoder_,A)}A=y=p=void 0;var v=K;Y&&((p=(y=(A=v[uP])!=null?A:v[uP]=new ksD)[E])!=null?p:y[E]=[]).push(Y)}}if(K=ef4(K))K.reviveUnknownFields=G.binaryFields[daj];return!0};
M[y9j]=q;M[daj]=vCy.bind(M);return q};
vCy=function(M,q,G,K){var n=this[NWi],E=this[y9j],p=zs(void 0,n.messageMetadata,!1),y=ef4(M);if(y){var Y=!1,A=n.extensions;if(A){n=function(a,g,D){if(D.length!==0)if(A[g])for(a=_.k(D),g=a.next();!g.done;g=a.next()){g=hGe(g.value);try{Y=!0,E(p,g)}finally{g.free()}}else K==null||K(M,g,D)};
if(q==null)EgF(y,n);else if(y!=null){var v=y[q];v&&n(y,q,v)}if(Y){var h=M[_.nP]|0;if(h&2&&h&2048&&(G==null||!G.reviveIntoImmutable))throw Error();var t=Jd(h),O=function(a,g){if($g(M,a,t)!=null)switch(G==null?void 0:G.resolutionBehavior){case 1:return;default:throw Error();}g!=null&&(h=R8(M,h,a,g,t));delete y[a]};
q==null?sIu(p,p[_.nP]|0,function(a,g){O(a,g)}):O(q,$g(p,q,t))}}}};
YAF=function(M){M=nCe(M);var q=M[0].$$binaryReaderFn;if(M=M[1]){var G=pts(M),K=Na(NWi,ECH,k3$,M).messageMetadata;return function(n,E,p){return q(n,E,p,K,G)}}return q};
tMi=function(M,q,G){M[q]=G.$$binaryWriterFn};
wtF=function(M,q,G,K){var n,E,p=G.$$binaryWriterFn;M[q]=function(y,Y,A){return p(y,Y,A,E||(E=Na(OGH,tMi,wtF,K).messageMetadata),n||(n=Cyy(K)))}};
Cyy=function(M){var q=M[aCY];if(!q){var G=Na(OGH,tMi,wtF,M);q=function(K,n){return oCs(K,n,G)};
M[aCY]=q}return q};
oCs=function(M,q,G){sIu(M,M[_.nP]|0,function(K,n){if(n!=null){var E=lCw(G,K);E?E(q,n,K):K<500||Vwu(Xtw,3)}});
(M=ef4(M))&&EgF(M,function(K,n,E){pG(q,q.encoder_.end());for(K=0;K<E.length;K++)pG(q,SLY(E[K])||new Uint8Array(0))})};
lCw=function(M,q){var G=M[q];if(G)return G;if(G=M.extensions)if(G=G[q]){G=nCe(G);var K=G[0].$$binaryWriterFn;if(G=G[1]){var n=Cyy(G),E=Na(OGH,tMi,wtF,G).messageMetadata;G=M.isMessageSet?MM$(E,n):function(p,y,Y){return K(p,y,Y,E,n)}}else G=K;
return M[q]=G}};
_.Pyy=function(M,q,G){if(Array.isArray(q)){var K=q[_.nP]|0;if(K&4)return q;for(var n=0,E=0;n<q.length;n++){var p=M(q[n]);p!=null&&(q[E++]=p)}E<n&&(q.length=E);M=K|1;G&&(M=(M|4)&-1537);M!==K&&pP(q,M);G&&M&2&&Object.freeze(q);return q}};
_.yk=function(M,q,G){return new EA(M,q,G)};
_.iGY=function(M,q,G){return new EA(M,q,G)};
_.YC=function(M,q,G){R8(M,M[_.nP]|0,q,G,Jd(M[_.nP]|0))};
c9u=function(M,q,G){q=_.eJ(q);q!=null&&(_.Wt(M,G,1),M=M.encoder_,G=ydF||(ydF=new DataView(new ArrayBuffer(8))),G.setFloat64(0,+q,!0),UM=G.getUint32(0,!0),x$=G.getUint32(4,!0),_.A9(M,UM),_.A9(M,x$))};
gC4=function(M,q,G){q=_.eJ(q);q!=null&&(_.Wt(M,G,5),M=M.encoder_,LpY(q),_.A9(M,UM))};
_.vt=function(M,q,G){q=bPy(q);if(q!=null&&(j8s(q),q!=null))switch(_.Wt(M,G,0),typeof q){case "number":M=M.encoder_;zl(q);dW(M,UM,x$);break;case "bigint":G=BigInt.asUintN(64,q);G=new BWY(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)));dW(M.encoder_,G.JSC$8867_lo,G.JSC$8867_hi);break;default:G=rEy(q),dW(M.encoder_,G.JSC$8867_lo,G.JSC$8867_hi)}};
ICi=function(M,q,G){q=UxY(q);if(q!=null&&(RwD(q),q!=null))switch(_.Wt(M,G,0),typeof q){case "number":M=M.encoder_;zl(q);dW(M,UM,x$);break;case "bigint":G=Qv4(q);dW(M.encoder_,G.JSC$8865_lo,G.JSC$8865_hi);break;default:G=VRY(q),dW(M.encoder_,G.JSC$8865_lo,G.JSC$8865_hi)}};
uey=function(M,q,G){q=_.pn(q);q!=null&&q!=null&&(_.Wt(M,G,0),_.Da$(M.encoder_,q))};
_.ZGy=function(M,q,G){J9F(M,G,UxY(q))};
bGy=function(M,q,G){q=_.tJy(q);q!=null&&(_.Wt(M,G,0),M.encoder_.JSC$8869_buffer_.push(q?1:0))};
xa4=function(M,q,G){q=_.lP(q);q!=null&&Uai(M,G,Ye4(q))};
zGy=function(M,q,G,K,n){Hn$(M,G,ewj(q,K),n)};
_.maw=function(M,q,G){q=q==null||typeof q=="string"||q instanceof Bv?q:void 0;q!=null&&Uai(M,G,TwD(q,!0).buffer)};
SAF=function(M,q,G){q=_.CSY(q);q!=null&&q!=null&&(_.Wt(M,G,0),h9(M.encoder_,q))};
_.TWs=function(M,q,G){q=_.pn(q);q!=null&&(q=parseInt(q,10),_.Wt(M,G,0),_.Da$(M.encoder_,q))};
_.t9=function(M,q){return function(G,K){var n={treatNewDataAsImmutable:!0};K&&Object.assign(n,K);G=hGe(G,void 0,void 0,n);try{var E=new M,p=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;pts(q)(p,G);var y=E}finally{G.free()}return y}};
_.wW=function(M){return function(q){return r9y(q,M)}};
jvu=function(M){return function(){return r9y(this,M)}};
_.VMH=function(M){return Z8(function(q){return q instanceof M&&!cv(q)})};
_.ov=function(M){return function(q){return RGw(M,q)}};
eGH=function(M,q){return fCe({child:M,origin:q||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:FLw,getPayloadCase:function(G){return G.getPayloadCase()},
createInitMessage:function(G){var K=new ly,n=new HGj;G=_.Xe(n,1,G);return _.Pt(K,5,iy,G)}})};
ct=function(M){return{valueOf:M}.valueOf()};
sSe=function(){var M=null;if(!$a$)return M;try{var q=function(G){return G};
M=$a$.createPolicy("goog#html",{createHTML:q,createScript:q,createScriptURL:q})}catch(G){}return M};
qiH=function(){Mmy===void 0&&(Mmy=sSe());return Mmy};
_.Qk=function(M){var q=qiH();M=q?q.createScriptURL(M):M;return new gW(M)};
_.Iv=function(M){if(M instanceof gW)return M.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("Z");};
_.DC=function(M){return Object.isFrozen(M)&&Object.isFrozen(M.raw)};
GpF=function(M){return M.toString().indexOf("`")===-1};
J9=function(M){return new _.uy(Kwe,M)};
ZC=function(M){return M instanceof _.uy};
_.by=function(M){if(ZC(M))return M.privateDoNotAccessOrElseWrappedUrl;throw Error("Z");};
xC=function(M){return new nqu(function(q){return q.substr(0,M.length+1).toLowerCase()===M+":"})};
_.z3=function(M,q){q=q===void 0?Eqi:q;if(ZC(M))return M;for(var G=0;G<q.length;++G){var K=q[G];if(K instanceof nqu&&K.isValid(M))return J9(M)}};
_.SM=function(M,q){q=q===void 0?Eqi:q;return _.z3(M,q)||mL};
_.T3=function(M){var q=window;if(typeof MediaSource!=="undefined"&&M instanceof MediaSource||typeof q.ManagedMediaSource!=="undefined"&&M instanceof q.ManagedMediaSource)return J9(URL.createObjectURL(M));q=M.type;q.toLowerCase()==="application/octet-stream"?q=!0:(q=q.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),q=(q==null?void 0:q.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(q[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(q[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(q[1])||/^font\/[\w-]+$/i.test(q[1])));if(!q)throw Error("Z");return J9(URL.createObjectURL(M))};
_.NLj=function(M){for(var q=_.rW.apply(1,arguments),G=[M[0]],K=0;K<q.length;K++)G.push(String(q[K])),G.push(M[K+1]);return J9(G.join(""))};
_.pDY=function(M){if(!kpD){a:{var q=document.createElement("a");try{q.href=M}catch(G){M=void 0;break a}M=q.protocol;M=M===":"||M===""?"https:":M}return M}try{q=new URL(M)}catch(G){return"https:"}return q.protocol};
_.jM=function(M){M instanceof _.uy?M=_.by(M):M=yxi.test(M)?M:void 0;return M};
Vk=function(M,q){q=_.jM(q);q!==void 0&&(M.href=q)};
Ht=function(M){var q=qiH();M=q?q.createHTML(M):M;return new Rv(M)};
eM=function(M){if(M instanceof Rv)return M.privateDoNotAccessOrElseWrappedHtml;throw Error("Z");};
_.$C=function(M,q){M.src=_.Iv(q).toString()};
Lwy=function(M,q){M.setAttribute("sandbox","");for(var G=0;G<q.length;G++)M.sandbox.supports&&!M.sandbox.supports(q[G])||M.sandbox.add(q[G])};
_.WwF=function(M,q,G){M.removeAttribute("srcdoc");switch(q){case 0:if(G instanceof gW)throw new YiY("TrustedResourceUrl",0);Lwy(M,[]);q=_.jM(G);q!==void 0&&(M.src=q);break;case 1:if(!(G instanceof gW))throw new YiY(typeof G,1);Lwy(M,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.$C(M,G);break;case 2:if(G instanceof gW)throw new YiY("TrustedResourceUrl",2);Lwy(M,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
q=_.jM(G);q!==void 0&&(M.src=q);break;default:_.F2(q)}};
_.si=function(M,q,G,K){q=_.jM(q);return q!==void 0?M.open(q,G,K):null};
_.MX=function(M){M=M===void 0?document:M;var q,G;M=(G=(q=M).querySelector)==null?void 0:G.call(q,"script[nonce]");return M==null?"":M.nonce||M.getAttribute("nonce")||""};
_.Gp=function(M){var q=qiH();M=q?q.createScript(M):M;return new _.qX(M)};
Kv=function(M){if(M instanceof _.qX)return M.privateDoNotAccessOrElseWrappedScript;throw Error("Z");};
Axw=function(M){var q=_.MX(M.ownerDocument);q&&M.setAttribute("nonce",q)};
_.nv=function(M,q){M.textContent=Kv(q);Axw(M)};
_.Ei=function(M,q){M.src=_.Iv(q);Axw(M)};
_.NX=function(M,q){if(M.nodeType===1&&/^(script|style)$/i.test(M.tagName))throw Error("Z");M.innerHTML=eM(q)};
_.kq=function(M,q,G,K){if(M.length===0)throw Error("Z");M=M.map(function(E){if(E instanceof dXu)E=E.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("Z");return E});
var n=G.toLowerCase();if(M.every(function(E){return n.indexOf(E)!==0}))throw Error("aa`"+G);
q.setAttribute(G,K)};
_.pv=function(M,q,G){if(q instanceof gW)M.href=_.Iv(q).toString(),M.rel=G;else{if(vqj.indexOf(G)===-1)throw Error("ba`"+G);q=_.jM(q);q!==void 0&&(M.href=q,M.rel=G)}};
h7s=function(M){if(M instanceof yR)return M.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("Z");};
_.tmu=function(M,q){q=_.jM(q);q!==void 0&&(M.href=q)};
OvY=function(M){return new Worker(_.Iv(M),void 0)};
wDD=function(M){return _.Qk(M)};
C5$=function(M,q){M&&(q=M.indexOf(q),0<=q&&M.splice(q,1))};
Lv=function(M){return typeof M==="function"};
a2s=function(M){return M instanceof Yq||M&&"closed"in M&&Lv(M.remove)&&Lv(M.add)&&Lv(M.unsubscribe)};
WD=function(){};
Ax=function(M){oqF(function(){throw M;})};
dL=function(M){return M};
vD=function(){return l2Y(_.rW.apply(0,arguments))};
l2Y=function(M){return M.length===0?dL:M.length===1?M[0]:function(q){return M.reduce(function(G,K){return K(G)},q)}};
XDD=function(M){var q;return(q=M!=null?M:void 0)!=null?q:Promise};
P5H=function(M,q){return new hx(function(G){var K=0;return q.schedule(function(){K===M.length?G.complete():(G.next(M[K++]),G.closed||this.schedule())})})};
ivF=function(M,q){if(!M)throw Error("ca");return new hx(function(G){var K=new Yq;K.add(q.schedule(function(){var n=M[Symbol.asyncIterator]();K.add(q.schedule(function(){var E=this;n.next().then(function(p){p.done?G.complete():(G.next(p.value),E.schedule())})}))}));
return K})};
cxu=function(M,q,G){q=q.schedule(function(){try{G.call(this)}catch(K){M.error(K)}},0);
M.add(q)};
BLy=function(M,q){return new hx(function(G){var K;G.add(q.schedule(function(){K=M[gqy]();cxu(G,q,function(){var n=K.next(),E=n.value;n.done?G.complete():(G.next(E),this.schedule())})}));
return function(){var n;return Lv((n=K)==null?void 0:n.return)&&K.return()}})};
QSH=function(M,q){return new hx(function(G){var K=new Yq;K.add(q.schedule(function(){var n=M[tx]();K.add(n.subscribe({next:function(E){K.add(q.schedule(function(){return G.next(E)}))},
error:function(E){K.add(q.schedule(function(){return G.error(E)}))},
complete:function(){K.add(q.schedule(function(){return G.complete()}))}}))}));
return K})};
I2y=function(M,q){return new hx(function(G){return q.schedule(function(){return M.then(function(K){G.add(q.schedule(function(){G.next(K);G.add(q.schedule(function(){return G.complete()}))}))},function(K){G.add(q.schedule(function(){return G.error(K)}))})})})};
DXs=function(M){return new TypeError("da`"+(M!==null&&typeof M==="object"?"an invalid object":"'"+M+"'"))};
JxF=function(M,q){if(M!=null){if(Lv(M[tx]))return QSH(M,q);if(urY(M))return P5H(M,q);if(Lv(M==null?void 0:M.then))return I2y(M,q);if(Symbol.asyncIterator&&Lv(M==null?void 0:M[Symbol.asyncIterator]))return ivF(M,q);if(Lv(M==null?void 0:M[gqy]))return BLy(M,q)}throw DXs(M);};
wL=function(M,q){return q?JxF(M,q):Oi(M)};
Oi=function(M){if(M instanceof hx)return M;if(M!=null){if(Lv(M[tx]))return Zvi(M);if(urY(M))return bvY(M);if(Lv(M==null?void 0:M.then))return UXy(M);if(Symbol.asyncIterator&&Lv(M==null?void 0:M[Symbol.asyncIterator]))return xXy(M);if(Lv(M==null?void 0:M[gqy]))return z7w(M)}throw DXs(M);};
Zvi=function(M){return new hx(function(q){var G=M[tx]();if(Lv(G.subscribe))return G.subscribe(q);throw new TypeError("ea");})};
bvY=function(M){return new hx(function(q){for(var G=0;G<M.length&&!q.closed;G++)q.next(M[G]);q.complete()})};
UXy=function(M){return new hx(function(q){M.then(function(G){q.closed||(q.next(G),q.complete())},function(G){return q.error(G)}).then(null,Ax)})};
z7w=function(M){return new hx(function(q){for(var G=M[gqy]();!q.closed;){var K=G.next(),n=K.value;K.done?q.complete():q.next(n)}return function(){return Lv(G==null?void 0:G.return)&&G.return()}})};
xXy=function(M){return new hx(function(q){mXF(M,q).catch(function(G){return q.error(G)})})};
mXF=function(M,q){var G,K,n,E,p,y;return _.L(function(Y){switch(Y.nextAddress){case 1:_.Cv(Y,2,3),E=_.aS(M);case 5:return Y.yield(E.next(),8);case 8:K=Y.yieldResult;if(K.done){Y.jumpTo(3);break}p=K.value;q.next(p);Y.jumpTo(5);break;case 3:_.oS(Y);_.l5(Y,9);if(!K||K.done||!(n=E.return)){Y.jumpTo(9);break}return Y.yield(n.call(E),9);case 9:_.oS(Y,0,0,1);if(G)throw G.error;_.Xr(Y,10,1);break;case 10:_.Xr(Y,4);break;case 2:y=_.i5(Y);G={error:y};Y.jumpTo(3);break;case 4:q.complete(),_.gL(Y)}})};
Sii=function(M,q){return q?P5H(M,q):bvY(M)};
TLe=function(M){return Lv(M[M.length-1])?M.pop():void 0};
BD=function(M){var q=M[M.length-1];return q&&Lv(q.schedule)?M.pop():void 0};
QR=function(){var M=_.rW.apply(0,arguments),q=BD(M);return q?P5H(M,q):Sii(M)};
IS=function(M){var q=Lv(M)?M:function(){return M};
return new hx(function(G){return G.error(q())})};
D2=function(M){return function(q){if(Lv(q==null?void 0:q.lift))return q.lift(function(G){try{return M(G,this)}catch(K){this.error(K)}});
throw new TypeError("fa");}};
Z2=function(){return D2(function(M,q){var G=null;M._refCount++;var K=new Jx(q,void 0,void 0,void 0,function(){if(!M||M._refCount<=0||0<--M._refCount)G=null;else{var n=M._connection,E=G;G=null;!n||E&&n!==E||n.unsubscribe();q.unsubscribe()}});
M.subscribe(K);K.closed||(G=M.connect())})};
jSy=function(){var M=rxs;var q=q===void 0?0:q;return D2(function(G,K){K.add(M.schedule(function(){return G.subscribe(K)},q))})};
b5=function(M){return D2(function(q,G){var K=0;q.subscribe(new Jx(G,function(n){G.next(M.call(void 0,n,K++))}))})};
R7w=function(M){return b5(function(q){return Vmj(q)?M.apply(null,_.Ui(q)):M(q)})};
$XF=function(M){if(M.length===1){var q=M[0];if(f2Y(q))return{args:q,keys:null};if(q&&typeof q==="object"&&Fww(q)===HvF)return M=e7F(q),{args:M.map(function(G){return q[G]}),
keys:M}}return{args:M,keys:null}};
xq=function(){var M=_.rW.apply(0,arguments),q=BD(M),G=TLe(M);M=$XF(M);var K=M.args,n=M.keys;if(K.length===0)return wL([],q);q=new hx(sge(K,q,n?function(E){for(var p={},y=0;y<E.length;y++)p[n[y]]=E[y];return p}:dL));
return G?q.pipe(R7w(G)):q};
sge=function(M,q,G){G=G===void 0?dL:G;return function(K){MXy(q,function(){for(var n=M.length,E=Array(n),p=n,y=M.map(function(){return!1}),Y=!0,A={i$jscomp$217:0};A.i$jscomp$217<n;A={i$jscomp$217:A.i$jscomp$217},A.i$jscomp$217++)MXy(q,function(v){return function(){wL(M[v.i$jscomp$217],q).subscribe(new zp(K,function(h){E[v.i$jscomp$217]=h;
Y&&(y[v.i$jscomp$217]=!0,Y=!y.every(dL));Y||K.next(G(E.slice()))},function(){return--p===0}))}}(A),K)},K)}};
MXy=function(M,q,G){M?G.add(M.schedule(q)):q()};
qwj=function(M,q,G,K){var n=[],E=0,p=0,y=!1,Y=function(A){E++;Oi(G(A,p++)).subscribe(new Jx(q,function(v){q.next(v)},void 0,function(){E--;
for(var v={};n.length&&E<K;v={bufferedValue:void 0})v.bufferedValue=n.shift(),Y(v.bufferedValue);!y||n.length||E||q.complete()}))};
M.subscribe(new Jx(q,function(A){return E<K?Y(A):n.push(A)},void 0,function(){y=!0;
!y||n.length||E||q.complete()}));
return function(){n=null}};
Sm=function(M,q){var G=G===void 0?Infinity:G;if(Lv(q))return Sm(function(K,n){return b5(function(E,p){return q(K,E,n,p)})(Oi(M(K,n)))},G);
typeof q==="number"&&(G=q);return D2(function(K,n){return qwj(K,n,M,G)})};
G9e=function(M){M=M===void 0?Infinity:M;return Sm(dL,M)};
KKj=function(){var M=_.rW.apply(0,arguments);return G9e(1)(Sii(M,BD(M)))};
nPw=function(M){return new hx(function(q){Oi(M()).subscribe(q)})};
Tp=function(M,q,G){if(Lv(G)){var K=G;G=void 0}if(K)return Tp(M,q,G).pipe(R7w(K));K=_.k(Lv(M.addEventListener)&&Lv(M.removeEventListener)?EPy.map(function(p){return function(y){return M[p](q,y,G)}}):Lv(M.addListener)&&Lv(M.removeListener)?Nqy.map(k94(M,q)):Lv(M.on)&&Lv(M.off)?pc$.map(k94(M,q)):[]);
var n=K.next().value,E=K.next().value;return!n&&urY(M)?Sm(function(p){return Tp(p,q,G)})(Sii(M)):new hx(function(p){if(!n)throw new TypeError("ga");
var y=function(){var Y=_.rW.apply(0,arguments);return p.next(1<Y.length?Y:Y[0])};
n(y);return function(){return E(y)}})};
k94=function(M,q){return function(G){return function(K){return M[G](q,K)}}};
VR=function(){var M=_.rW.apply(0,arguments),q=BD(M);var G=typeof M[M.length-1]==="number"?M.pop():Infinity;return M.length?M.length===1?Oi(M[0]):G9e(G)(Sii(M,q)):jm};
LKw=function(M){return M.length===1&&yge(M[0])?M[0]:M};
YwD=function(){var M=LKw(_.rW.apply(0,arguments));return D2(function(q,G){var K=[q].concat(_.Ui(M)),n=function(){if(!G.closed)if(K.length>0){try{var E=Oi(K.shift())}catch(y){n();return}var p=new Jx(G,void 0,WD,WD);G.add(E.subscribe(p));p.add(n)}else G.complete()};
n()})};
RS=function(M){return D2(function(q,G){var K=0;q.subscribe(new Jx(G,function(n){return M.call(void 0,n,K++)&&G.next(n)}))})};
Agy=function(){var M=_.rW.apply(0,arguments);M=LKw(M);return M.length===1?Oi(M[0]):new hx(WKe(M))};
WKe=function(M){return function(q){for(var G=[],K={i$jscomp$220:0};G&&!q.closed&&K.i$jscomp$220<M.length;K={i$jscomp$220:K.i$jscomp$220},K.i$jscomp$220++)G.push(Oi(M[K.i$jscomp$220]).subscribe(new Jx(q,function(n){return function(E){if(G){for(var p=0;p<G.length;p++)p!==n.i$jscomp$220&&G[p].unsubscribe();G=null}q.next(E)}}(K))))}};
d_u=function(){var M=_.rW.apply(0,arguments),q=TLe(M),G=LKw(M);return G.length?new hx(function(K){var n=G.map(function(){return[]}),E=G.map(function(){return!1});
K.add(function(){n=E=null});
for(var p={sourceIndex$jscomp$1:0};!K.closed&&p.sourceIndex$jscomp$1<G.length;p={sourceIndex$jscomp$1:p.sourceIndex$jscomp$1},p.sourceIndex$jscomp$1++)Oi(G[p.sourceIndex$jscomp$1]).subscribe(new Jx(K,function(y){return function(Y){n[y.sourceIndex$jscomp$1].push(Y);n.every(function(A){return A.length})&&(Y=n.map(function(A){return A.shift()}),K.next(q?q.apply(null,_.Ui(Y)):Y),n.some(function(A,v){return!A.length&&E[v]})&&K.complete())}}(p),void 0,function(y){return function(){E[y.sourceIndex$jscomp$1]=
!0;
!n[y.sourceIndex$jscomp$1].length&&K.complete()}}(p)));
return function(){n=E=null}}):jm};
vPY=function(M){var q,G,K;return!!M&&typeof M.active==="boolean"&&typeof((q=M.clock)==null?void 0:q.now)==="function"&&((G=M.clock)==null?void 0:G.timeline)!==void 0&&!((K=M.lastMeasurement)==null||!K.timestamp)&&typeof M.equivalentTo==="function"&&typeof M.extrapolateToNow==="function"&&typeof M.extrapolateToTime==="function"&&typeof M.map==="function"&&typeof M.joinWith==="function"};
hqi=function(M){function q(G){return typeof G==="boolean"||typeof G==="string"||typeof G==="number"||G===void 0||G===null}
return q(M)?!0:Array.isArray(M)?M.every(q):typeof M==="object"?Object.keys(M).every(function(G){return typeof G==="string"})&&Object.values(M).every(function(G){return Array.isArray(G)?G.every(q):q(G)}):!1};
tXw=function(M){if(hqi(M))return M;if(vPY(M))return{lastMeasurement:{value:tXw(M.lastMeasurement.value),timestamp:fv(M.lastMeasurement.timestamp,new Fr(0,M.lastMeasurement.timestamp.timeline))},active:M.active};try{return JSON.parse(JSON.stringify(M))}catch(q){}return String(M)};
HD=function(M,q){return function(G){return new hx(function(K){return G.subscribe(function(n){M.timeExecution(q,function(){K.next(n)})()},function(n){M.timeExecution(q,function(){K.error(n)})()},function(){M.timeExecution(q,function(){K.complete()})()})})}};
O8u=function(M,q){var G=!1;return new hx(function(K){var n=M.setTimeout(function(){G=!0;K.next(!0);K.complete()},q);
return function(){G||M.clearTimeout(n)}})};
wcy=function(M){M=M.global;if(M.fetchLater)return M.fetchLater.bind(M)};
em=function(M){return D2(function(q,G){var K=null,n=!1,E;K=q.subscribe(new Jx(G,void 0,function(p){E=Oi(M(p,em(M)(q)));K?(K.unsubscribe(),K=null,E.subscribe(G)):n=!0}));
n&&(K.unsubscribe(),K=null,E.subscribe(G))})};
CCu=function(M,q,G){return function(K,n){var E=G,p=q,y=0;K.subscribe(new Jx(n,function(Y){var A=y++;p=E?M(p,Y,A):(E=!0,Y);n.next(p)},void 0,void 0))}};
aJe=function(M){M=M===void 0?null:M;return D2(function(q,G){var K=!1;q.subscribe(new Jx(G,function(n){K=!0;G.next(n)},void 0,function(){K||G.next(M);
G.complete()}))})};
sw=function(){return D2(function(M,q){M.subscribe(new Jx(q,WD))})};
M_=function(M){return D2(function(q,G){q.subscribe(new Jx(G,function(){return G.next(M)}))})};
q_=function(M){return M<=0?function(){return jm}:D2(function(q,G){var K=0;
q.subscribe(new Jx(G,function(n){++K<=M&&(G.next(n),M<=K&&G.complete())}))})};
G9=function(M){var q=q===void 0?dL:q;var G;M=(G=M)!=null?G:oPY;return D2(function(K,n){var E,p=!0;K.subscribe(new Jx(n,function(y){var Y=q(y);if(p||!M(E,Y))p=!1,E=Y,n.next(y)}))})};
oPY=function(M,q){return M===q};
Xcu=function(M){M=M===void 0?lJs:M;return D2(function(q,G){var K=!1;q.subscribe(new Jx(G,function(n){K=!0;G.next(n)},void 0,function(){return K?G.complete():G.error(M())}))})};
lJs=function(){return new PCs};
K8=function(){var M=_.rW.apply(0,arguments);return function(q){return KKj(q,QR.apply(null,_.Ui(M)))}};
i8w=function(M){return D2(function(q,G){var K=0;q.subscribe(new Jx(G,function(n){M.call(void 0,n,K++,q)||(G.next(!1),G.complete())},void 0,function(){G.next(!0);
G.complete()}))})};
cgi=function(){return D2(function(M,q){var G=[];M.subscribe(new Jx(q,function(K){G.push(K);1<G.length&&G.shift()},void 0,function(){for(var K=_.k(G),n=K.next();!n.done;n=K.next())q.next(n.value);
q.complete()},function(){G=null}))})};
gPH=function(M,q){var G=arguments.length>=2;return function(K){return K.pipe(M?RS(function(n,E){return M(n,E,K)}):dL,cgi(),G?aJe(q):Xcu(function(){return new PCs}))}};
Ew=function(M){var q=Lv(M)?M:function(){return M};
return Lv()?D2(function(G,K){var n=q();(void 0)(n).subscribe(K).add(G.subscribe(n))}):function(G){var K=new n8(G,q);
Lv(G==null?void 0:G.lift)&&(K.lift=G.lift);K.source=G;K.subjectFactory=q;return K}};
kP=function(M){var q=new N_(M,void 0,void 0);return function(G){return Ew(function(){return q})(G)}};
L8=function(M,q){return D2(CCu(M,q,arguments.length>=2))};
YP=function(){var M=_.rW.apply(0,arguments),q=BD(M);return D2(function(G,K){(q?KKj(M,G,q):KKj(M,G)).subscribe(K)})};
Wc=function(M){return D2(function(q,G){var K=null,n=0,E=!1;q.subscribe(new Jx(G,function(p){var y;(y=K)==null||y.unsubscribe();y=n++;Oi(M(p,y)).subscribe(K=new Jx(G,function(Y){return G.next(Y)},void 0,function(){K=null;
E&&!K&&G.complete()}))},void 0,function(){(E=!0,!K)&&G.complete()}))})};
Ag=function(M,q){q=q===void 0?!1:q;return D2(function(G,K){var n=0;G.subscribe(new Jx(K,function(E){var p=M(E,n++);(p||q)&&K.next(E);!p&&K.complete()}))})};
Bq$=function(M,q,G){var K=Lv(M)||q||G?{next:M,error:q,complete:G}:M;return K?D2(function(n,E){n.subscribe(new Jx(E,function(p){var y;(y=K.next)==null||y.call(K,p);E.next(p)},function(p){var y;
(y=K.error)==null||y.call(K,p);E.error(p)},function(){var p;
(p=K.complete)==null||p.call(K);E.complete()}))}):dL};
QgD=function(){var M=_.rW.apply(0,arguments),q=TLe(M);return D2(function(G,K){for(var n=M.length,E=Array(n),p=M.map(function(){return!1}),y=!1,Y={i$jscomp$230:0};Y.i$jscomp$230<n;Y={i$jscomp$230:Y.i$jscomp$230},Y.i$jscomp$230++)Oi(M[Y.i$jscomp$230]).subscribe(new Jx(K,function(A){return function(v){E[A.i$jscomp$230]=v;
y||p[A.i$jscomp$230]||(p[A.i$jscomp$230]=!0,(y=p.every(dL))&&(p=null))}}(Y),void 0,WD));
G.subscribe(new Jx(K,function(A){y&&(A=[A].concat(_.Ui(E)),K.next(q?q.apply(null,_.Ui(A)):A))}))})};
D_e=function(M){var q=IJw;if(q)for(var G in q)Object.prototype.hasOwnProperty.call(q,G)&&M(q[G],G,q)};
uQi=function(){var M=[];D_e(function(q){M.push(q)});
return M};
Z8F=function(M){try{return!!M&&M.location.href!=null&&Jge(M,"foo")}catch(q){return!1}};
_.vc=function(M){return new dXu(M[0].toLowerCase())};
b8F=function(M){for(var q=_.rW.apply(1,arguments),G=M[0],K=0;K<M.length-1;K++)G+=String(q[K]),G+=M[K+1];q=document.implementation.createHTMLDocument("");K=q.createElement("style");q.head.appendChild(K);q=K.sheet;q.insertRule(G,0);if(q.cssRules.length===1&&(G=q.cssRules[0],G instanceof CSSStyleRule))return new yR(G.cssText.replace(/</g,"\\3C "))};
U_H=function(M){try{return new URL(M,window.document.baseURI)}catch(q){return new URL("about:invalid")}};
x_y=function(M,q){var G=q.createRange();G.selectNode(q.body);M=Ht(M);return G.createContextualFragment(eM(M))};
zqe=function(M){M=M.nodeName;return typeof M==="string"?M:"FORM"};
m_4=function(M){M=M.nodeType;return M===1||typeof M!=="number"};
tg=function(M,q,G){M.setAttribute(q,G)};
Swi=function(M){return M.parts.map(function(q){var G=q.descriptor;return""+q.url+(G?" "+G:"")}).join(" , ")};
_.Ow=function(M){var q=_.rW.apply(1,arguments);if(q.length===0)return _.Qk(M[0]);for(var G=M[0],K=0;K<q.length;K++)G+=encodeURIComponent(q[K])+M[K+1];return _.Qk(G)};
_.wq=function(M,q){M=_.Iv(M).toString();var G=M.split(/[?#]/),K=/[?]/.test(M)?"?"+G[1]:"";return Tqy(G[0],K,/[#]/.test(M)?"#"+(K?G[2]:G[1]):"",q)};
Tqy=function(M,q,G,K){function n(p,y){p!=null&&(Array.isArray(p)?p.forEach(function(Y){return n(Y,y)}):(q+=E+encodeURIComponent(y)+"="+encodeURIComponent(p),E="&"))}
var E=q.length?"&":"?";K.constructor===Object&&(K=Object.entries(K));Array.isArray(K)?K.forEach(function(p){return n(p[1],p[0])}):K.forEach(n);
return _.Qk(M+q+G)};
jgi=function(){var M=Kv(rgw).toString();return _.Qk(URL.createObjectURL(new Blob([M],{type:"text/javascript"})))};
VXs=function(M){var q=[],G=0,K;for(K in M)q[G++]=K;return q};
Rqs=function(M,q){for(var G in M)if(M[G]==q)return!0;return!1};
fJw=function(M,q,G){for(var K in M)if(q.call(G,M[K],K,M))return K};
FKy=function(M){if(!M||typeof M!=="object")return M;if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);if(M instanceof Date)return new Date(M.getTime());var q=Array.isArray(M)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(M)||M instanceof DataView?{}:new M.constructor(M.length),G;for(G in M)q[G]=FKy(M[G]);return q};
H8$=function(M){var q=arguments.length;if(q==1&&Array.isArray(arguments[0]))return H8$.apply(null,arguments[0]);if(q%2)throw Error("ma");for(var G={},K=0;K<q;K+=2)G[arguments[K]]=arguments[K+1];return G};
eqF=function(M){var q=arguments.length;if(q==1&&Array.isArray(arguments[0]))return eqF.apply(null,arguments[0]);for(var G={},K=0;K<q;K++)G[arguments[K]]=!0;return G};
C8=function(M,q,G,K){this.top=M;this.right=q;this.bottom=G;this.left=K};
$_u=function(M){M=M.global;if(M.PendingGetBeacon)return M.PendingGetBeacon};
og=function(M){return function(q){return q.pipe(sEy(M,Ew(new ag)))}};
lC=function(M){return function(q){return q.pipe(sEy(M,kP(1)))}};
sEy=function(M,q){function G(K){return new hx(function(n){return K.subscribe(function(E){XQ(M,function(){return void n.next(E)},3)},function(E){XQ(M,function(){return void n.error(E)},3)},function(){XQ(M,function(){return void n.complete()},3)})})}
return vD(G,jSy(),q,Z2(),G)};
Giu=function(M){var q=MAu(M);return q===null?new Pc(null):q.pipe(b5(function(G){G=G.serialize();if(qKe)G=_.Kj.btoa(G);else{for(var K=[],n=0,E=0;E<G.length;E++){var p=G.charCodeAt(E);p>255&&(K[n++]=p&255,p>>=8);K[n++]=p}G=_.ZU(K)}return G}),q_(1),lC(M.queue))};
KvH=function(M){var q=q===void 0?{}:q;if(typeof Event==="function")return new Event(M,q);if(typeof document!=="undefined"){var G=document.createEvent("CustomEvent");G.initCustomEvent(M,q.bubbles||!1,q.cancelable||!1,q.detail);return G}throw Error();};
naY=function(M){return typeof M==="string"?document.getElementById(M):M};
Ncu=function(M){var q=!1;q=q===void 0?!1:q;if(M.tagName==="IMG"){if(M.complete&&(!M.naturalWidth||!M.naturalHeight))return!0;var G;if(q&&((G=M.style)==null?void 0:G.display)==="none")return!0}var K,n;return Eaj.test((K=M.getAttribute("width"))!=null?K:"")&&Eaj.test((n=M.getAttribute("height"))!=null?n:"")};
kie=function(M,q){if(M.tagName==="IMG")return M.naturalWidth&&M.naturalHeight?!0:!1;try{if(M.readyState)var G=M.readyState;else{var K,n;G=(K=M.contentWindow)==null?void 0:(n=K.document)==null?void 0:n.readyState}return G==="complete"}catch(E){return q===void 0?!1:q}};
pX$=function(M){M||(M=function(q,G,K){q.addEventListener(G,K)});
return M};
Wv$=function(M,q){var G=yu4();G=G===void 0?new Lvu:G;if(M=naY(M)){var K=pX$(K);for(var n=!1,E=function(D){n||(n=!0,q(D))},p,y=2,Y=0;Y<YKY.length;++Y)if(YKY[Y]===M.tagName){y=3;
p=[M];break}p||(p=M.querySelectorAll(YKY.join(",")));var A=0,v=0,h=!0,t=M=!1;Y={};for(var O=0;O<p.length;Y={isImg:void 0},O++){var a=p[O];if(!Ncu(a))if(Y.isImg=a.tagName==="IMG",kie(a,G.crossDomainLoadedDefault))M=!0,Y.isImg&&(h=!0);else{A++;var g=function(D){return function(J){A--;!A&&h&&E(y);D.isImg&&(J=J&&J.type==="error",v--,J||(h=!0),!v&&t&&h&&E(y))}}(Y);
K(a,"load",g);Y.isImg&&(v++,K(a,"error",g))}}v===0&&(h=!0);p=null;p=_.Kj.document.readyState==="complete";if(A===0&&!M&&p)y=5;else if(A||!M){K(_.Kj,"load",function(){!G.pendingImagesBlockLoad||!v&&h?E(4):t=!0});
return}E(y)}};
Auy=function(M,q,G){if(M)for(var K=0;M!=null&&K<500&&!G(M);++K)M=q(M)};
dyD=function(M,q){Auy(M,function(G){try{return G===G.parent?null:G.parent}catch(K){}return null},q)};
vas=function(M,q){if(M.tagName=="IFRAME")q(M);else{M=M.querySelectorAll("IFRAME");for(var G=0;G<M.length&&!q(M[G]);++G);}};
hks=function(M){return(M=M.ownerDocument)&&(M.parentWindow||M.defaultView)||null};
tAy=function(M,q,G){try{var K=JSON.parse(G.data)}catch(p){}if(typeof K==="object"&&K&&K.type==="creativeLoad"){var n=hks(M);if(G.source&&n){var E;dyD(G.source,function(p){try{if(p.parent===n)return E=p,!0}catch(y){}});
E&&vas(M,function(p){if(p.contentWindow===E)return q(K),!0})}}};
OSe=function(M){return typeof M==="string"?document.getElementById(M):M};
oaj=function(){var M={};return M[0]=_.Ow(wXu,"current"),M[1]=_.Ow(CIy),M[2]=_.Ow(aGF),M};
iC=function(M,q){return M.left===q.left&&M.top===q.top&&M.width===q.width&&M.height===q.height};
lGe=function(M,q){return{left:Math.max(M.left,q.left),top:Math.max(M.top,q.top),width:Math.max(0,Math.min(M.left+M.width,q.left+q.width)-Math.max(M.left,q.left)),height:Math.max(0,Math.min(M.top+M.height,q.top+q.height)-Math.max(M.top,q.top))}};
XXi=function(M,q){return{left:Math.round(M.left+q.x),top:Math.round(M.top+q.y),width:M.width,height:M.height}};
PIy=function(M,q,G){if(M&&q!==null&&q!=q.top){if(!q.top)return new _.cc(-12245933,-12245933);q=q.top}try{return(G===void 0?0:G)?(new _.cc(q.innerWidth,q.innerHeight)).round():_.Bc(q).round()}catch(K){return new _.cc(-12245933,-12245933)}};
iS4=function(M,q,G){try{if(M){if(!q.top)return new C8(-12245933,-12245933,-12245933,-12245933);q=q.top}var K=PIy(M,q,G),n=K.height,E=K.width;if(E===-12245933)return new C8(E,E,E,E);var p=Q1(Ig(q.document)),y=p.x,Y=p.y;return new C8(Y,y+E,Y+n,y)}catch(A){return new C8(-12245933,-12245933,-12245933,-12245933)}};
cuH=function(M){var q;return(q=M.google_tag_data)!=null?q:M.google_tag_data={}};
gas=function(M){var q,G;return typeof((q=M.navigator)==null?void 0:(G=q.userAgentData)==null?void 0:G.getHighEntropyValues)==="function"};
QEe=function(M){if(!gas(M))return null;var q=cuH(M);if(q.uach_promise)return q.uach_promise;M=M.navigator.userAgentData.getHighEntropyValues(BcF).then(function(G){q.uach!=null||(q.uach=G);return G});
return q.uach_promise=M};
Tc4=function(M){var q;return IGe(Dy4(uDH(JuH(ZSF(bSy(UyF(xyy(zkw(new myu,M.architecture||""),M.bitness||""),M.mobile||!1),M.model||""),M.platform||""),M.platformVersion||""),M.uaFullVersion||""),((q=M.fullVersionList)==null?void 0:q.map(function(G){var K=new SKy;K=_.DJ(K,1,G.brand);return _.DJ(K,2,G.version)}))||[]),M.wow64||!1)};
ruD=function(M){var q,G;return(G=(q=QEe(M))==null?void 0:q.then(function(K){return Tc4(K)}))!=null?G:null};
jEj=function(M,q){return new hx(function(G){var K=!1,n=Array(q.length);n.fill(void 0);var E=new Set,p=new Set,y=function(h,t){M.running?(n[t]=h,E.add(t),K||(K=!0,XQ(M,function(){K=!1;G.next(_.Sw(n))},1))):G.error(new uC(t))},Y=function(h,t){p.add(t);
E.add(t);XQ(M,function(){G.error(h)},1)},A=function(h){p.add(h);
XQ(M,function(){p.size===q.length&&G.complete()},1)},v=q.map(function(h,t){return h.subscribe(function(O){return void y(O,t)},function(O){return void Y(O,t)},function(){return void A(t)})});
return function(){v.forEach(function(h){return void h.unsubscribe()})}})};
fGy=function(M,q,G){function K(){if(q.debugChannel){var D=q.debugChannel,J=D.next;var Z={creativeId:q.debugNames.getName(G),requiredSignals:n,signals:Object.assign({},E),hasPrematurelyCompleted:p,errorMessage:y,erroredSignalKey:Y};Z={specMajor:2,specMinor:0,specPatch:0,timestamp:fv(q.timeProvider.now(),new Fr(0,q.timeProvider.timeline)),instanceId:q.debugNames.getName(q.symbol),creativeState:Z};J.call(D,Z)}}
for(var n=Object.keys(M),E={},p=!1,y=null,Y=null,A={},v=new Set,h=[],t=[],O=_.k(n),a=O.next(),g={};!a.done;g={key$jscomp$394:void 0},a=O.next())g.key$jscomp$394=a.value,a=M[g.key$jscomp$394],a instanceof Pc?(A[g.key$jscomp$394]=a.value,v.add(g.key$jscomp$394),q.debugChannel&&(E[String(g.key$jscomp$394)]=tXw(a.value))):(a=a.pipe(G9(function(D,J){return vPY(D)||vPY(J)?!1:D===J}),b5(function(D){return function(J){q.debugChannel&&(E[String(D.key$jscomp$394)]=tXw(J),K());
var Z={};return Z[D.key$jscomp$394]=J,Z}}(g)),em(function(D){return function(J){if(J instanceof uC)throw new VAy(String(D.key$jscomp$394));
throw J;}}(g)),Bq$(function(D){return function(){v.add(D.key$jscomp$394)}}(g),function(D){return function(J){Y=String(D.key$jscomp$394);
y=String(J);K()}}(g),function(D){return function(){v.has(D.key$jscomp$394)||(p=!0,K())}}(g))),t.push(g.key$jscomp$394),h.push(a));
(M=Object.keys(E).length>0)&&K();O=jEj(q.queue,h).pipe(em(function(D){if(D instanceof uC)throw new Rky(String(t[D.inputObservableIndex]));throw D;}),b5(function(D){return Object.freeze(Object.assign.apply(Object,[{},
A].concat(_.Ui(D))))}));
return(h=h.length>0)&&M?VR(QR(Object.freeze(A)),O):h?O:QR(Object.freeze(A))};
FvH=function(M,q,G,K,n){return M.performanceMonitor.timeExecution.bind(M.performanceMonitor)(733,function(){var E={};try{return q.pipe(em(function(p){K(Object.assign({},E,{error:p}));return jm}),Sm(function(p){try{var y=G(M,p)}catch(A){return K(Object.assign({},E,{error:A instanceof Error?A:String(A)})),jm}var Y={};
return fGy(y,M,p.symbol).pipe(Bq$(function(A){Y=A}),kP(1),Z2()).pipe(n,em(function(A){K(Object.assign({},Y,{error:A}));
return jm}),K8(void 0),b5(function(){return!0}))})).pipe(L8(function(p){return p+1},0),em(function(p){K(Object.assign({},E,{error:p}));
return jm}))}catch(p){return K(Object.assign({},E,{error:p})),jm}})()};
Jg=function(M){var q=new Map;if(typeof M!=="object"||M===null)return q;Object.values(M).forEach(function(G){G&&typeof G.extrapolateToNow==="function"&&(q.has(G.clock.timeline)||q.set(G.clock.timeline,G.clock.now()))});
return q};
HSy=function(M,q){return typeof M==="string"?encodeURIComponent(M):typeof M==="number"?String(M):Array.isArray(M)?M.map(function(G){return HSy(G,q)}).join(","):M instanceof Fr?M.toString():M&&typeof M.extrapolateToNow==="function"?HSy(M.extrapolateUsingTimestampMap(q).value,q):M===!0?"1":M===!1?"0":M===void 0||M===null?null:M instanceof ekj?$yy(M):[M.top,
M.left,M.top+M.height,M.left+M.width].join()};
sYw=function(M,q){M=Object.entries(M).map(function(G){var K=_.k(G);G=K.next().value;K=K.next().value;K=HSy(K,q);return K===null?"":G+"="+K}).filter(function(G){return G!==""});
return M.length?M.join("&"):""};
GLj=function(M,q){var G=M_e,K=q9F;q=q===void 0?.01:q;return function(n){q>0&&Math.random()<=q&&(M.global.HTMLFencedFrameElement&&M.global.fence&&typeof M.global.fence.reportEvent==="function"&&M.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),n=Object.assign({},n,{errorMessage:n.error instanceof Error&&n.error.message?n.error.message:String(n.error),errorStack:n.error instanceof Error&&n.error.stack?String(n.error.stack):null,errorName:n.error instanceof
Error&&n.error.name?String(n.error.name):null,errorContext:String(M.performanceMonitor.timedFunctionContext),errorEscapedQueryId:n.escapedQueryId}),G(Object.assign({},n,{payloadMapper:function(){return function(E){try{return K(Object.assign({},E))}catch(p){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),Jg(n)).forEach(function(E){M.beaconFactory.makeBeacon(E).sendNow()}))}};
K_s=function(){var M=_.rW.apply(0,arguments);return function(q){var G=q.pipe(kP(1),Z2());q=M.map(function(K){return G.pipe(K,K8(!0))});
return xq(q).pipe(q_(1),sw())}};
n_Y=function(){var M=_.rW.apply(0,arguments);return function(q){var G=q.pipe(kP(1),Z2());q=M.map(function(K){return G.pipe(K,K8(!0))});
return VR.apply(null,_.Ui(q)).pipe(q_(1),sw())}};
E_w=function(M,q){return function(G){var K=G.pipe(kP(1),Z2());G=K.pipe(M,K8(!0));K=K.pipe(vD(q,kP(),Z2()),K8(!0));G=xq([G,K]);return Agy(G,K).pipe(q_(1),sw())}};
NYs=function(M,q,G){G(!0)};
kLy=function(M,q){return vD(Wc(function(G){var K=M(G),n=q(G),E={};return K&&n&&E?new hx(function(p){n(K,E,function(y){p.next(Object.assign({},G,{canEmit:y}));p.complete()});
return function(){}}):ZJ}),RS(function(G){return G.canEmit}))};
pmi=function(M){var q={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(G){return G.pipe(Wc(function(K){return new hx(function(n){function E(){y.disconnect();Y.unsubscribe()}
var p=M.MutationObserver;if(p&&K.ref!==void 0){var y=new p(function(A){n.next(A)});
y.observe(K.ref,q);var Y=K.JSC$9364_released.subscribe(E);return E}})}))}};
ye4=function(M){if(M.measurementDeferralState===3)return null;if(M.timeOnScreenReason!==void 0){var q=M.creativeFound===!1?"n":null;if(q!==null)return q}return M.geometricMeasurementErrors instanceof bC?"msf":M.contextValidationErrors instanceof Uw?"c":M.contextVisibilityKnown===!1?"pv":M.geometricMeasurementErrors||M.contextValidationErrors?"x":null};
Y9y=function(M,q){return M.replace(L_D,function(G,K){try{var n=_.xP.get(q,K);if(n==null||n.toString()==null)return G;n=n.toString();if(n==""||!_.Lj(n==null?"":String(n)))return encodeURIComponent(n).replace(/%2C/g,",")}catch(E){}return G})};
W_y=function(M,q){var G=Object.assign({},M),K=M.userAgentClientHints;G=(delete G.userAgentClientHints,G);G=M.payloadMapper(G);var n=sYw(G,q);return _.z9(M.urlPrefixes,function(E){var p="";typeof K==="string"&&(p="&"+sYw({uach:K},q));var y={};return Y9y(E,(y.VIEWABILITY=n,y))+p})};
M_e=function(M,q){var G=M.payloadMapper(M),K=sYw(G,q);return K?_.z9(M.urlPrefixes,function(n){n=n.indexOf("?")>=0?n:n+"?";n="?&".indexOf(n.slice(-1))>=0?n:n+"&";return n+K}):M.urlPrefixes};
Aej=function(){return vD(RS(function(M){return M!==void 0}),b5(function(M){return M}))};
dTH=function(M){return vD(b5(function(){return!0}),YP(!1),lC(M))};
v_F=function(M){return M.length<=0?jm:xq(M.map(function(q){var G=0;return q.pipe(b5(function(K){return{index:G++,value:K}}))})).pipe(RS(function(q){return q.every(function(G){return G.index===q[0].index})}),b5(function(q){return q.map(function(G){return G.value})}))};
hBy=function(M,q){M.currentState&&(M.previousState=M.currentState);M.currentState=q;M.previousState&&M.previousState.value?(q=Math.max(0,fv(q.timestamp,M.previousState.timestamp)),M.totalTime+=q,M.consecutiveTime+=q):M.consecutiveTime=0;return M};
t_i=function(){return vD(L8(hBy,{totalTime:0,consecutiveTime:0}),b5(function(M){return M.totalTime}))};
OWj=function(){return vD(L8(hBy,{totalTime:0,consecutiveTime:0}),b5(function(M){return M.consecutiveTime}))};
wm$=function(M,q){return function(G){return v_F(q.map(function(K){return G.pipe(M(K))}))}};
CQy=function(){var M;return vD(Bq$(function(q){return void(M=q.timestamp)}),OWj(),b5(function(q){return{timestamp:M,
value:Math.round(q)}}))};
aP4=function(M,q){return iC(M.topWindowViewportExternalGeometry,q.topWindowViewportExternalGeometry)&&iC(M.elementGeometry,q.elementGeometry)&&iC(M.exposedViewportLocalGeometry,q.exposedViewportLocalGeometry)&&iC(M.intersectionGeometry,q.intersectionGeometry)&&M.elementGeometrySourceName===q.elementGeometrySourceName&&M.measurementRequests===q.measurementRequests&&M.viewportGeometrySourceName===q.viewportGeometrySourceName&&M.viewportLocalAppOffset.x===q.viewportLocalAppOffset.x&&M.viewportLocalAppOffset.y===
q.viewportLocalAppOffset.y};
PQ$=function(M,q){return function(G){return function(K){var n=K.pipe(Ew(new ag),Z2());K=G.element.pipe(G9());n=n.pipe(b5(function(E){return E.value}));
return xq([K,n,q]).pipe(b5(function(E){var p=_.k(E);E=p.next().value;var y=p.next().value;p=p.next().value;if(E.ref===void 0)var Y={top:0,left:0,width:0,height:0};else{Y=E.ref.getBoundingClientRect();var A=E.ref,v=M.global,h=new _.mK(0,0),t=SX(_.T9(A));if(Jge(t,"parent")){do{if(t==v)var O=_.rq(A);else O=o_i(A),O=new _.mK(O.left,O.top);h.x+=O.x;h.y+=O.y}while(t&&t!=v&&t!=t.parent&&(A=t.frameElement)&&(t=t.parent))}Y={top:h.y,left:h.x,width:Y.width,height:Y.height}}Y=XXi(Y,y.viewportLocalAppOffset);
v=lGe(Y,y.exposedViewportLocalGeometry);h=M.timeProvider.now();t=Object;A=t.assign;if(p!==2||M.inCrossDomainIframe||v.width<=0||v.height<=0)var a=!1;else try{var g=M.document.elementFromPoint(v.left+v.width/2,v.top+v.height/2);a=g?!lPy(g,E):!1}catch(D){a=!1}return{timestamp:h,value:A.call(t,{},y,{elementGeometrySourceName:"geo",intersectionGeometry:a?Xmj.intersectionGeometry:v,elementGeometry:Y})}}),og(M.queue))}}};
lPy=function(M,q,G){G=G===void 0?0:G;return M.ref===void 0||q.ref===void 0?!1:M.ref===q.ref||_.jX(q.ref,function(K){return K===M.ref})?!0:q.ref.ownerDocument&&q.ref.ownerDocument.defaultView&&q.ref.ownerDocument.defaultView===q.ref.ownerDocument.defaultView.top?!1:G<10&&q.ref.ownerDocument&&q.ref.ownerDocument.defaultView&&q.ref.ownerDocument.defaultView.frameElement?lPy(M,new V1(q.ref.ownerDocument.defaultView.frameElement),G+1):!0};
g_i=function(M){return function(q){return q.pipe(M.ResizeObserver?iWy(M):ceF(M),kP(1),Z2())}};
iWy=function(M){return function(q){return q.pipe(Wc(function(G){var K=M.ResizeObserver;if(!K||G.ref===void 0)return QR(Xmj.elementGeometry);var n=(new hx(function(E){function p(){G.ref!==void 0&&y.unobserve(G.ref);y.disconnect();Y.unsubscribe()}
if(G.ref===void 0)return E.complete(),function(){};
var y=new K(function(A){A.forEach(function(v){E.next(v)})});
y.observe(G.ref);var Y=G.JSC$9364_released.subscribe(p);return p})).pipe(HD(M.performanceMonitor,736),b5(function(E){return E.contentRect}));
return VR(QR(G.ref.getBoundingClientRect()),n)}),G9(iC))}};
ceF=function(M){return function(q){var G=q.pipe(pmi(M)),K=M.onResize;G=VR(q.pipe(b5(function(){return KvH("resize")})),G,K);
return xq(q,G).pipe(HD(M.performanceMonitor,737),b5(function(n){n=_.k(n).next().value;return n.ref===void 0?void 0:n.ref.getBoundingClientRect()}),Aej(),G9(iC))}};
IPs=function(M,q){var G=BYD(M,q).pipe(kP(1),Z2());return function(K){return function(n){n=n.pipe(Wc(function(E){return E.element}),G9());
return xq([G,n]).pipe(Wc(function(E){var p=_.k(E);E=p.next().value;p=p.next().value;return QYu(M,E.intersectionObserver,g_i(M),E.observations,K,E.flushRecords,p)}),og(M.queue))}}};
DTs=function(M){return b5(function(q){return q.value.viewportGeometrySourceName!=="nio"?q:Object.assign({},q,{value:Object.assign({},q.value,{exposedViewportLocalGeometry:f8(M,!0),topWindowViewportExternalGeometry:f8(M,!0)})})})};
uSj=function(M,q){return QR(q).pipe(M,b5(function(){return q}))};
BYD=function(M,q){return M.timeProvider.timeline!==JeF?IS(new bC(2)):M.MutationObserver?typeof IntersectionObserver==="undefined"?IS(new bC(0)):(new hx(function(G){var K=new ag,n=new FQ(K.next.bind(K),{threshold:[].concat(_.Ui(q))});G.next({observations:K.pipe(HD(M.performanceMonitor,735)),intersectionObserver:n,flushRecords:function(E){E=n.takeRecords(E);E.length>0&&K.next(E)}})})).pipe(q_(1),kP(1),Z2()):IS(new bC(1))};
ZWy=function(M){return JxF(M.sort(function(q,G){return q.time-G.time}),rxs)};
QYu=function(M,q,G,K,n,E,p){return new hx(function(y){function Y(){a||(a=!0,p.ref!==void 0&&q.unobserve(n,p.ref),v.unsubscribe(),O.unsubscribe(),t.unsubscribe(),g.unsubscribe())}
if(p.ref!==void 0){bWy(q,n);q.observe(n,p.ref);var A=new Hc({timestamp:M.timeProvider.now(),value:Object.assign({},Xmj,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),v=K.pipe(Sm(function(D){return ZWy(D)}),RS(function(D){return D.target===p.ref}),b5(function(D){return{timestamp:new Fr(D.time,JeF),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:D.rootBounds||eX,topWindowViewportExternalGeometry:D.rootBounds||f8(M,!0),measurementRequests:h,elementGeometrySourceName:"nio",intersectionGeometry:D.intersectionRect,elementGeometry:D.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:D.isIntersecting,isV2Visible:D.isVisible}}}),Ew(A),Z2()).subscribe(y),h=new ag,t=h.subscribe(function(){E(n);
y.next({timestamp:M.timeProvider.now(),value:A.value.value});p.ref!==void 0&&(q.unobserve(n,p.ref),q.observe(n,p.ref))}),O=uSj(G,p).subscribe(function(){h.next()}),a=!1,g=p.JSC$9364_released.subscribe(function(){return Y()});
return Y}})};
UTe=function(M,q){var G=M.getOnBackgrounded().pipe(b5(function(){return"b"}));
return Agy(q,G).pipe(q_(1),lC(M.queue))};
$P=function(M){return function(q){var G;return q.pipe(Bq$(function(K){return void(G=K.timestamp)}),b5(function(K){return K.value}),M,b5(function(K){return{timestamp:G,
value:K}}))}};
xT$=function(M){return M.intersectionGeometry.width*M.intersectionGeometry.height/(M.elementGeometry.width*M.elementGeometry.height)};
sK=function(M,q,G){G=G===void 0?function(K,n){return K===n}:G;
return M.timestamp.equals(q.timestamp)&&G(M.value,q.value)};
Gi=function(M,q){return q.pipe(b5(function(G){return new qy(M.timeProvider,{timestamp:M.timeProvider.now(),value:G})}))};
zBj=function(M){return function(q){return q.pipe(QgD(M),b5(function(G){var K=_.k(G);G=K.next().value;K=K.next().value;var n=G.value;return{timestamp:G.timestamp,value:n>=1?!0:n<=0?!1:n>=K}}))}};
S9F=function(){return vD(RS(function(M,q){return q>0}),mTy,YP(-1),G9())};
TY4=function(M,q,G){return M?xq([q,G]).pipe(RS(function(K){var n=_.k(K);K=n.next().value;n=n.next().value;return K.timestamp.equals(n.timestamp)}),b5(function(K){var n=_.k(K);
K=n.next().value;n=n.next().value;return K.value>n.value?K:n})):q};
V_s=function(M){return function(q){var G=q.pipe(rey),K=q.pipe(jYF);return M instanceof hx?M.pipe(Wc(function(n){return TY4(n,G,K)})):TY4(M.value,G,K)}};
G_$=function(M,q,G,K){var n=K.geometryIsOccluded,E=K.exposureThreshold,p=K.wasLargeAdAtRender,y=K.allowLargeAdThreshold,Y=K.largeAdExposureThreshold,A=K.mayUseViewportShareExposure,v=K.hasMeasurementStarted;K=K.useIntersectionObserverV2;q=RBF(M,G,q);G=fPu(M,G);K=F_w(q,K);var h=HWj(M,n,A,q),t=h.pipe(b5(function(m){return m.value}),G9(),lC(M),L8(function(m,R){return Math.max(m,R)},0)),O=h.pipe(b5(function(m){return m.value}),S9F(),lC(M)),a=q.pipe(eBj,b5(function(m){return m.value}),q_(2),G9(),lC(M));
p=$TF(M,q,p,y);var g=p.pipe(YP(!1),G9(),b5(function(m){return m?Y:E}));
y=h.pipe(zBj(g),G9(),lC(M));var D=xq([y,q]).pipe(RS(function(m){var R=_.k(m);m=R.next().value;R=R.next().value;return m.timestamp.equals(R.timestamp)}),b5(function(m){var R=_.k(m);
m=R.next().value;R=R.next().value;return{visible:m.value,geometry:R.value.elementGeometry}}),L8(function(m,R){return!R.visible&&m.visible?m:R},{visible:!1,
geometry:eX}),b5(function(m){return m.geometry}),YP(eX),lC(M),G9(iC));
A=A instanceof hx?A.pipe(G9(),M_()):ZJ;g=xq([A,g]).pipe(M_());var J=q.pipe(RS(function(m){return m.value.viewportGeometrySourceName!=="ns"&&m.value.elementGeometrySourceName!=="ns"}),L8(function(m){return m+1},0),YP(0),lC(M)),Z=G.pipe(M_(!0),YP(!1),lC(M));
Z=xq([v,Z]).pipe(b5(function(m){var R=_.k(m);m=R.next().value;R=R.next().value;return m&&!R}),lC(M));
var V=q.pipe(s9y,G9()),S=V.pipe(b5(function(m){return m.value}),L8(function(m,R){return Math.max(m,R)},0),G9(),lC(M));
M=V.pipe(b5(function(m){return m.value}),S9F(),lC(M));
return{shouldResetExposureSignals:A,shouldResetViewabilitySignals:g,geometrySignals:{readyGeometryWithDefault:q,measurementStrategy:q.pipe(MKY),creativePosition:D.pipe(G9(iC)),visible:y.pipe(G9(sK)),timestampedExposure:h.pipe(G9(sK)),maximumExposure:t,minimumExposure:O,browserSize:q.pipe(qby,G9(_.Hy)),timestampedScreenShare:V,maxScreenShare:S,minScreenShare:M,geometricMeasurementErrors:G,measurementRequests:q.pipe(b5(function(m){return m.value.measurementRequests})),
isLargeAd:p,geometryIsOccluded:n,hasMeasurementStarted:v,geometryMeasurable:Z,validMeasurementCount:J,loadTimeExposure:a,v2VisibilityBitVector:K}}};
fPu=function(M,q){return q.pipe(RS(function(){return!1}),b5(function(G){return G}),em(function(G){return KS(new Pc(G),M)}))};
RBF=function(M,q,G){return q.pipe(YwD(ZJ),lC(M)).pipe(G9(function(K,n){return sK(K,n,aP4)}),YP({timestamp:G.now(),
value:Xmj}),lC(M))};
HWj=function(M,q,G,K){G=K.pipe(V_s(G),$P(b5(function(n){return Math.round(n*100)/100})),lC(M));
return q instanceof Pc?G:xq([G,q]).pipe(b5(function(n){var E=_.k(n);n=E.next().value;E=E.next().value;return{timestamp:E.timestamp.maximum(n.timestamp),value:E.value?0:n.value}}),G9(sK),lC(M))};
$TF=function(M,q,G,K){q=[q.pipe(b5(function(n){return n.value.elementGeometry.width*n.value.elementGeometry.height>=242500}))];
G instanceof hx&&q.push(G.pipe(b5(function(n){return!!n})));
G=xq(q);return K?G.pipe(b5(function(n){return n.some(function(E){return E})}),YP(!1),G9(),lC(M)):KS(new Pc(!1),M)};
F_w=function(M,q){M=xq([M,q]).pipe(b5(function(n){var E=_.k(n);n=E.next().value;if(E.next().value&&n.value.isIntersecting)return n.value.isV2Visible}),G9());
var G=M.pipe(b5(function(n){return n===void 0?!0:n}),L8(function(n,E){return n||!E},!1)),K=M.pipe(L8(function(n,E){return E===void 0?n:E?!1:n!=null?n:!0},void 0),b5(function(n){return!!n}));
return xq([q,d_u(M,G,K)]).pipe(b5(function(n){var E=_.k(n);n=E.next().value;var p=_.k(E.next().value);E=p.next().value;var y=p.next().value;p=p.next().value;var Y=0;if(!n)return 0;if(E===void 0)return 16;E&&(Y|=1);E||(Y|=2);y&&(Y|=4);p&&(Y|=8);return Y}))};
pMH=function(M,q,G,K,n){var E=KTD.timeThresholdMs;var p=p===void 0?new n2e(q,K):p;return(new hx(function(y){var Y=G.pipe(YP(void 0),Wc(function(){return E2w(n)})).pipe(b5(function(A){var v=A.value;
A=A.timestamp;var h=v.visible;v=v.consecutiveViewTime;var t=v>=E;t||!h?NUw(p):(A=Math.max(0,fv(q.now(),A)),k_4(p,Math.max(0,E-v-A)));return t}),L8(function(A,v){return v||A},!1),G9()).subscribe(y);
return function(){p.dispose();Y.unsubscribe()}})).pipe(Ag(function(y){return!y},!0),lC(M))};
E2w=function(M){return v_F([M,M.pipe(CQy())]).pipe(b5(function(q){var G=_.k(q);q=G.next().value;G=G.next().value;return{timestamp:q.timestamp,value:{visible:q.value,consecutiveViewTime:G.value}}}),G9(function(q,G){return sK(q,G,function(K,n){return K.consecutiveViewTime===n.consecutiveViewTime&&K.visible===n.visible})}))};
y3$=function(){return vD(OWj(),L8(function(M,q){return Math.max(M,q)},0),b5(function(M){return Math.round(M)}))};
LTF=function(M){return vD(zBj(QR(M)),y3$())};
Ybs=function(M,q){return q instanceof hx?q.pipe(Wc(function(G){return(G=G?15:null)?IS(new bC(G)):M})):(q=q.value?15:null)?IS(new bC(q)):M};
WTi=function(M){var q=new bC(13);if(M.length<1)return{chain:jm,capturedErrors:jm};var G=new ag,K=M[0];return{chain:M.slice(1).reduce(function(n,E){return n.pipe(em(function(p){G.next(p);return E}))},K).pipe(em(function(n){G.next(n);
return IS(q)}),Ew(new ag),Z2()),
capturedErrors:G}};
A3Y=function(M,q){var G=M.pipe(Ew(new ag),Z2());return Wc(function(K){return G.pipe(q(K))})};
v2y=function(M,q){if(M.inCrossDomainIframe)return IS(new bC(6));var G=new ag;return VR(QR({}),q,G).pipe(b5(function(){return{timestamp:M.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:d$y(M),topWindowViewportExternalGeometry:f8(M,!0),measurementRequests:G,viewportLocalAppOffset:{x:0,y:0}}}}),og(M.queue))};
d$y=function(M){var q=f8(M,!1);if(!M.inIframe||!Z8F(M.global.parent)||M.global.parent===M.global)return q;var G=new nS(M.global.parent,M.debugChannel);G.beaconFactory=M.beaconFactory;G=d$y(G);M=M.global.frameElement.getBoundingClientRect();return lGe(XXi(lGe(G,M),{x:q.left-M.left,y:q.top-M.top}),q)};
hy4=function(M){if(M.prerendering)return 3;var q;return(q={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[M.visibilityState||M.webkitVisibilityState||M.mozVisibilityState||""])!=null?q:0};
tKu=function(M){return M.document.JSC$9375_onVisibilityChange.pipe(b5(function(q){return q==="visible"}),G9(),lC(M.queue))};
OXs=function(M,q,G){var K;return q.pipe(G9(),Wc(function(n){return G.pipe(b5(function(){if(!K){K=!0;try{n.next()}finally{K=!1}}return!0}))}),YP(!1),lC(M.queue))};
wMy=function(M){return vD($P(b5(function(q){return q>=1?!0:q<=0?!1:q>=M})),t_i(),b5(function(q){return Math.round(q)}))};
ak$=function(M,q,G,K,n){var E=CfF;if(E.length>1)for(var p=0;p<E.length-1;p++)if(E[p]<E[p+1])throw Error();p=n.pipe(YP(void 0),Wc(function(){return G.pipe(CQy())}),G9(),lC(M));
n=n.pipe(YP(void 0),Wc(function(){return G.pipe(y3$())}),G9(),lC(M));
return{totalMeasurementTime:K.pipe(YP(void 0),Wc(function(){return q.pipe(b5(function(y){return{timestamp:y.timestamp,value:!0}}),t_i())}),G9(),lC(M)),
totalUnviewedTime:K.pipe(YP(void 0),Wc(function(){return q.pipe(b5(function(y){return{timestamp:y.timestamp,value:y.value===0}}),t_i())}),G9(),lC(M)),
maxTimeOnScreen:K.pipe(YP(void 0),Wc(function(){return q.pipe(wm$(LTF,E))}),G9(_.Hy),lC(M)),
timeOnScreen:K.pipe(YP(void 0),Wc(function(){return q.pipe(wm$(wMy,E),b5(function(y){return y.map(function(Y,A){return A>0?Y-y[A-1]:Y})}))}),G9(_.Hy),lC(M)),
maxConsecutiveViewTime:n,consecutiveViewTime:p.pipe(G9(sK),lC(M))}};
lks=function(M){var q=!0;q=q===void 0?!1:q;return vD(Wc(function(G){return o2Y(M.document,G,q)}),lC(M.queue))};
XM4=function(M,q,G){var K=G.pipe(b5(function(n){return{value:n,timestamp:M.timeProvider.now()}}),G9(sK));
return q instanceof hx?q.pipe(G9(),Wc(function(n){return n?KS(new Pc({value:!1,timestamp:M.timeProvider.now()}),M.queue):K})):q.value===!1?K:new Pc(!1)};
Pfs=function(M,q,G,K,n,E,p){var y=KTD;q=q instanceof hx?q.pipe(YP(!1),G9()):q;var Y=!M.isMobile();G=XM4(M,G,K);M=p.measurableCreative.pipe(dTH(M.queue));return Object.assign({},y,{geometryIsOccluded:G,wasLargeAdAtRender:n,allowLargeAdThreshold:Y,mayUseViewportShareExposure:q,hasMeasurementStarted:M,useIntersectionObserverV2:E})};
c3i=function(M,q,G,K,n,E){var p=1;E=E===void 0?!0:E;p=p===void 0?.01:p;var y=y===void 0?M.timeProvider.intervalObservable(100).pipe(lC(M.queue)):y;return M.performanceMonitor.timeExecution(916,function(){return iXy(M,q.pipe(og(M.queue)),G.pipe(og(M.queue)),K,n,E,p,y)})()};
iXy=function(M,q,G,K,n,E,p,y){var Y=tKu(M).pipe(b5(function(v){return!v})),A=new g2Y(M,[new BU$(M,CfF),
new Q9F(M,y)]);y=K_s(Iks,D$$);return FvH(M,q,function(v,h){var t=KS(new Pc(h.element),v.queue).pipe(lks(v),lC(v.queue)),O={loadedElement:t,shouldMeasure:t.pipe(M_(!0)),measurableCreative:t.pipe(b5(function(m){var R=R===void 0?Symbol():R;return Object.freeze({symbol:R,element:KS(new Pc(m),v.queue)})})),
creativeSearchResult:KS(new Pc("mue"),v.queue)},a=new Pc(!1),g=new Pc(!1),D=new Pc(17),J=new Pc(!1),Z=new Pc(!1),V=KS(EK,v.queue);a=A.buildGeometrySource(O,{inApp:a,useV2:!1,requestSource:KS(D,v.queue)}).geometrySource;O=Pfs(v,J,g,Y,Z,V,O);g=G_$(v.queue,v.timeProvider,a,O);O=g.geometrySignals;J=g.shouldResetViewabilitySignals;g=ak$(v.queue,O.timestampedExposure,O.visible,g.shouldResetExposureSignals,J);J=pMH(v.queue,v.timeProvider,J,O.measurementRequests,O.visible);Z=G.pipe(RS(function(m){return m===
h.element.ref}),b5(function(){return"ur"}));
V=O8u(v.timeProvider,n).pipe(M_("t"));Z=UTe(v,VR(Z,V));V=OXs(v,O.measurementRequests,Z.pipe(RS(function(m){return m!==null})));
a=Z.pipe(RS(function(m){return m!==null}),b5(function(){return hy4(v.global.document)===1}));
var S=u1$(v.document);return Object.assign({},{beaconFactory:new Pc(v.beaconFactory),context:new Pc(v),inferredPingId:new Pc("lidar2"),timeOnScreenPingId:new Pc("lidartos"),binaryContext:new Pc(17),binaryVersion:new Pc(K),requestSource:D,contextValidationErrors:new Pc(v.validate()?null:new Uw),contextVisibilityKnown:new Pc(S),payloadMapper:new Pc(q9F),endOfSessionReason:Z,timeOnScreenReason:Z,requestMeasurementOnEndOfSession:V,hasImpressionFired:J34,crossDomainIframeState:new Pc(v.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:EK,inFetchLaterBeaconExperiment:EK,isTurtlex:EK,turtlexReportEventData:new Pc(""),reportFencedFrameEvent:ZJ,isViewableAttributionEnabled:EK,inViewableAttributionExperiment:new Pc(0),fetchBeaconFactory:ZJ,supportsPendingBeacon:EK,supportsFetchLater:EK,emit:new Pc(NYs),beginToRenderEvent:new Pc(Symbol()),activeViewUnmeasurableEvent:new Pc(Symbol()),activeViewViewableEvent:new Pc(Symbol()),creativeFound:J34,immediateUrlPrefixes:new Pc(h.immediateUrls),timeOnScreenUrlPrefixes:new Pc(h.timeOnScreenUrls),
cpmavUrls:ZJ,viewableRelayUrls:ZJ,measurementDeferralState:new Pc(2),urlSerializer:new Pc(W_y),viewUrlSerializer:new Pc(ZXi),isCreativeLoaded:t.pipe(dTH(v.queue)),pageVisible:Y.pipe(b5(function(m){return!m})),
eosPageVisible:a,timestampedExposureHistory:O.timestampedExposure.pipe(L8(function(m,R){m.push(R);return m},[]))},O,{viewable:Gi(v,J),
maxTimeOnScreen:Gi(v,g.maxTimeOnScreen),timeOnScreen:Gi(v,g.timeOnScreen),maxConsecutiveViewTime:Gi(v,g.maxConsecutiveViewTime),consecutiveViewTime:g.consecutiveViewTime.pipe(b5(function(m){return new qy(v.timeProvider,m)})),
totalMeasurementTime:Gi(v,g.totalMeasurementTime),totalUnviewedTime:Gi(v,g.totalUnviewedTime),userAgentClientHints:Giu(v),clientOrderPingCounter:new Pc(new ekj)})},GLj(M,p),n_Y(E?E_w(y,bXj):E_w(y,U$w),x$y))};
zyF=function(M){var q=_.rW.apply(1,arguments).filter(Boolean).join("&");if(!q)return M;var G=M.match(/[?&]adurl=/);return G?M.slice(0,G.index+1)+q+"&"+M.slice(G.index+1):M+(M.indexOf("?")<0?"?":"&")+q};
Ny=function(M,q){return q?"&"+M+"="+encodeURIComponent(q):""};
m$y=function(){try{var M,q;return!!((M=window)==null?0:(q=M.top)==null?0:q.location.href)&&!1}catch(G){return!0}};
_.ka=function(M){M&&typeof M.dispose=="function"&&M.dispose()};
_.yq=function(M){for(var q=0,G=arguments.length;q<G;++q){var K=arguments[q];_.TF(K)?_.yq.apply(null,K):_.ka(K)}};
TUw=function(){var M=SbF();M=M===void 0?"bevasrsg":M;return new Promise(function(q){var G=window===window.top?window:m$y()?window:window.top,K=G[M],n;((n=K)==null?0:n.bevasrs)?q(new LS(K.bevasrs)):(K||(K={},K=(K.nqfbel=[],K),G[M]=K),K.nqfbel.push(function(E){q(new LS(E))}))})};
r3y=function(M){var q={c:M.m2,e:M.eeM,mc:M.tvW,me:M.bpy};M.n7&&(q.co={c:M.n7.zZL,a:M.n7.qp4,s:M.n7.jjq});return q};
j9y=function(M){var q,G,K={m2:M.c,eeM:M.e,tvW:(q=M.mc)!=null?q:!1,bpy:(G=M.me)!=null?G:!1};M.co&&(K.n7={zZL:M.co.c,qp4:M.co.a,jjq:M.co.s});return K};
VK$=function(M){return function(){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(M(),2);q=G.yieldResult;return G.return({f:function(){return q.yIu()},
c:function(K){return q.f84(K)},
m:function(K){return q.sC(j9y(K))},
mws:function(K){return q.h5L(j9y(K))}})})}};
Ry4=function(M,q){var G=SbF();G=G===void 0?"bevasrsg":G;q={s:function(E){var p;return M.snapshot(Object.assign({},E.c&&{m2:E.c},E.s&&{fBq:E.s},{blK:(p=E.p)!=null?p:!0}))},
e:function(E){var p;return void((p=M.lRM)==null?void 0:p.call(M,E))},
c:function(E,p){return M.eX7(E,p)},
p:M.v58,l:function(){return M.xOH()},
wpc:q?VK$(q):void 0};var K=window===window.top?window:m$y()?window:window.top,n=K[G];if(n){n.bevasrs=q;if(n.nqfbel!==void 0)for(G=_.k(n.nqfbel),K=G.next();!K.done;K=G.next())K=K.value,K(q);n.nqfbel=void 0}else n={},n=(n.bevasrs=q,n.nqfbel=void 0,n),K[G]=n};
FTj=function(M){var q=q===void 0?51:q;var G=[];_.Ya(M,fke,6,_.WX()).forEach(function(K){_.Au(K,2)<=q&&G.push(_.Au(K,1))});
return G};
HXs=function(M){var q=q===void 0?51:q;var G=[];_.Ya(M,fke,6,_.WX()).forEach(function(K){_.Au(K,2)>q&&G.push(_.Au(K,1))});
return G};
eyY=function(M){M.then(function(){},function(){})};
dc=function(M){return{fieldType:1,fieldName:M}};
vX=function(M){return{fieldType:2,fieldName:M}};
_.hu=function(M){return{fieldType:3,fieldName:M}};
$$s=function(){function M(){n[0]=1732584193;n[1]=4023233417;n[2]=2562383102;n[3]=271733878;n[4]=3285377520;v=A=0}
function q(h){for(var t=p,O=0;O<64;O+=4)t[O/4]=h[O]<<24|h[O+1]<<16|h[O+2]<<8|h[O+3];for(O=16;O<80;O++)h=t[O-3]^t[O-8]^t[O-14]^t[O-16],t[O]=(h<<1|h>>>31)&4294967295;h=n[0];var a=n[1],g=n[2],D=n[3],J=n[4];for(O=0;O<80;O++){if(O<40)if(O<20){var Z=D^a&(g^D);var V=1518500249}else Z=a^g^D,V=1859775393;else O<60?(Z=a&g|D&(a|g),V=2400959708):(Z=a^g^D,V=3395469782);Z=((h<<5|h>>>27)&4294967295)+Z+J+V+t[O]&4294967295;J=D;D=g;g=(a<<30|a>>>2)&4294967295;a=h;h=Z}n[0]=n[0]+h&4294967295;n[1]=n[1]+a&4294967295;n[2]=
n[2]+g&4294967295;n[3]=n[3]+D&4294967295;n[4]=n[4]+J&4294967295}
function G(h,t){if(typeof h==="string"){h=unescape(encodeURIComponent(h));for(var O=[],a=0,g=h.length;a<g;++a)O.push(h.charCodeAt(a));h=O}t||(t=h.length);O=0;if(A==0)for(;O+64<t;)q(h.slice(O,O+64)),O+=64,v+=64;for(;O<t;)if(E[A++]=h[O++],v++,A==64)for(A=0,q(E);O+64<t;)q(h.slice(O,O+64)),O+=64,v+=64}
function K(){var h=[],t=v*8;A<56?G(y,56-A):G(y,64-(A-56));for(var O=63;O>=56;O--)E[O]=t&255,t>>>=8;q(E);for(O=t=0;O<5;O++)for(var a=24;a>=0;a-=8)h[t++]=n[O]>>a&255;return h}
for(var n=[],E=[],p=[],y=[128],Y=1;Y<64;++Y)y[Y]=0;var A,v;M();return{reset:M,update:G,digest:K,digestString:function(){for(var h=K(),t="",O=0;O<h.length;O++)t+="0123456789ABCDEF".charAt(Math.floor(h[O]/16))+"0123456789ABCDEF".charAt(h[O]%16);return t}}};
nJ4=function(M,q){q=q===void 0?suy:q;if(!MSu){var G;M=(G=M.navigator)==null?void 0:G.userAgentData;if(!M||typeof M.getHighEntropyValues!=="function"||M.brands&&typeof M.brands.map!=="function")return Promise.reject(Error("ua"));qxi((M.brands||[]).map(function(n){var E=new Gcy;E=_.DJ(E,1,n.brand);return _.DJ(E,2,n.version)}));
typeof M.mobile==="boolean"&&_.tu(K8e,2,M.mobile);MSu=M.getHighEntropyValues(q)}var K=new Set(q);return MSu.then(function(n){var E=K8e.clone();K.has("platform")&&_.DJ(E,3,n.platform);K.has("platformVersion")&&_.DJ(E,4,n.platformVersion);K.has("architecture")&&_.DJ(E,5,n.architecture);K.has("model")&&_.DJ(E,6,n.model);K.has("uaFullVersion")&&_.DJ(E,7,n.uaFullVersion);return E.serialize()}).catch(function(){return K8e.serialize()})};
OK=function(M,q,G,K){this.initialValue_=M;this.maxValue_=q;this.currBaseValue_=this.currValue_=M;this.randomFactor_=G||0;this.backoffFactor_=K||2};
wc=function(M){this.src=M;this.listeners={};this.typeCount_=0};
pRj=function(){for(var M;M=EJu.remove();){try{M.fn.call(M.scope)}catch(q){nj(q)}NPs.put(M)}kci=!1};
_.yLF=function(M){switch(M){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}};
L8s=function(M){switch(M){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""}};
_.Yx$=function(){};
Cjs=function(M,q,G,K){M=W8$(ALy(dz4(new _.aE(1828,"0"),M),new vJy)).disableWithCredentials();q.length&&h9s(M,tSs(new ODH,q));K!==void 0&&(M.destinationUrl=K);var n=new wRu(1828,"","",!1,"",M.build());_.oE(n,M);var E=new lI({flush:function(p){try{n.flush(p)}catch(y){G(y)}}});
E.addOnDisposeCallback(function(){setTimeout(function(){try{E.snapshotAndFlush()}finally{n.dispose()}})});
E.invocationLimit=1E5;E.flushInterval=3E4;E.JSC$9791_flushTimer.setInterval(3E4);return E};
XD=function(){var M,q,G;return(G=(M=globalThis.performance)==null?void 0:(q=M.now)==null?void 0:q.call(M))!=null?G:Date.now()};
lfs=function(M,q){if(M.disable)return new afj;q=q?FTj(q):[];M={cW:M.cW,nBM:M.zkN,pHu:M.oJA,destinationUrl:M.destinationUrl,hU8:M.hU8,uZD:M.uZD};q=q===void 0?[]:q;return new oJw(M,q)};
XRy=function(M){if(!M)return null;M=_.PX(M,2);return M===null||M===void 0?null:Ht(M)};
_.Pjw=function(M){if(!M)return null;M=_.PX(M,4);return M===null||M===void 0?null:_.Qk(M)};
gJF=function(M,q){return q?iDy(q):M?cLD(M):Promise.resolve()};
iDy=function(M){return new Promise(function(q,G){var K=_.iI("SCRIPT"),n=_.Pjw(M);_.Ei(K,n);K.onload=function(){_.cX(K);q()};
K.onerror=function(){_.cX(K);G(Error("Fa"))};
(BX("HEAD")[0]||document.documentElement).appendChild(K)})};
cLD=function(M){return new Promise(function(q){var G=_.iI("SCRIPT");if(M){var K=_.PX(M,6);K=K===null||K===void 0?null:_.Gp(K)}else K=null;_.nv(G,K);(BX("HEAD")[0]||document.documentElement).appendChild(G);_.cX(G);q()})};
Qq=function(M,q,G){var K,n=new Promise(function(E){K=setTimeout(E,q)});
return Promise.race([M.finally(function(){return void clearTimeout(K)}),
n.then(G)])};
BPy=function(M,q){try{return globalThis.sessionStorage.setItem(M,q),!0}catch(G){return!1}};
QuY=function(M,q,G,K){q=q===void 0?0:q;G=G===void 0?M.length:G;var n=0;for(K&&(n=QuY(K));q<G;q++)K=typeof M==="string"?M.charCodeAt(q):M[q],n=Ifw(31,n)+K|0;return n};
DzF=function(M,q){return[QuY(M,0,M.length>>1,q),QuY(M,M.length>>1)]};
uNF=function(M){var q=_.k(DzF(M,IE));M=q.next().value;q=q.next().value;return M.toString(16)+q.toString(16)};
JLe=function(M,q){var G=DzF(q);M=new Uint32Array(M.buffer);q=M[0];var K=_.k(G);G=K.next().value;K=K.next().value;for(var n=1;n<M.length;n+=2){for(var E=q,p=n,y=G,Y=K,A=0;A<22;A++)p=p>>>8|p<<24,p+=E|0,p^=y+38293,E=E<<3|E>>>29,E^=p,Y=Y>>>8|Y<<24,Y+=y|0,Y^=A+38293,y=y<<3|y>>>29,y^=Y;E=[E,p];M[n]^=E[0];n+1<M.length&&(M[n+1]^=E[1])}};
ZDu=function(M,q,G,K,n){var E=(4-(IE.length+G.length)%4)%4,p=new Uint8Array(4+E+IE.length+4+G.length),y=new DataView(p.buffer),Y=0;y.setUint32(Y,Math.random()*4294967295);Y=Y+4+E;p.set(IE,Y);Y+=IE.length;y.setUint32(Y,n);p.set(G,Y+4);JLe(p,K);return M.insert(q,function(A){return void globalThis.sessionStorage.removeItem(A)})?BPy(q,_.ZU(p))?"s":"t":"i"};
bDy=function(M,q){var G=globalThis.sessionStorage.getItem(M);if(!G)return["m"];try{var K=_.ew(G);JLe(K,q)}catch(n){return globalThis.sessionStorage.removeItem(M),["c"]}for(q=4;q<7&&K[q]===0;)q++;for(G=0;G<IE.length;G++)if(K[q++]!==IE[G])return globalThis.sessionStorage.removeItem(M),["d"];G=(new DataView(K.buffer)).getUint32(q);return Math.floor(Date.now()/1E3)>=G?(globalThis.sessionStorage.removeItem(M),["e"]):["a",new Uint8Array(K.buffer,q+4)]};
UzH=function(M){return globalThis.TextEncoder?(new TextEncoder).encode(M):_.DG(M)};
xz$=function(M){var q=M,G;return function(){if(q){var K=q;q=void 0;G=K.apply(this,arguments)}return G}};
mzF=function(M){return Z8(function(q){if(q instanceof M)return!0;var G,K,n=q==null?void 0:(G=q.ownerDocument)==null?void 0:(K=G.defaultView)==null?void 0:K[M.name];return z9i(n)&&q instanceof n})};
_.ZG=function(M,q,G){_.uI.call(this);this.JSC$10005_listener_=M;this.JSC$10005_interval_=q||0;this.handler_=G;this.callback_=(0,_.Ju)(this.JSC$10007_doAction_,this)};
_.bI=function(M){M=SxD(M);return _.Qk(M)};
SxD=function(M){return M===null?"null":M===void 0?"undefined":M};
rLe=function(M){if(M&&M.focus)if(M!==document.activeElement)M.focus();else return TPw(function(){return _.L(function(q){document.activeElement&&document.activeElement.blur();return q.return(TPw(function(){M.focus()}))})})};
_.juy=function(M){var q=q===void 0?5:q;setTimeout(function(){var G;return _.L(function(K){K.nextAddress==1&&(G=document.activeElement);if(K.nextAddress!=5)return(document.activeElement===G||document.activeElement===document.body)&&q>=0&&M?K.yield(rLe(M),5):K.jumpTo(0);if(document.activeElement===M)return K.return();M=M.parentElement;--q;return K.jumpTo(2)})},15)};
TPw=function(M){return new Promise(function(q){requestAnimationFrame(function(){q(M())})})};
R9j=function(M){if(_.UK)M(_.UK);else{var q;((q=VSi)!=null?q:VSi=[]).push(M)}};
zi=function(){!_.UK&&_.xa&&_.ffw(_.xa());return _.UK};
_.ffw=function(M){_.UK=M;var q;(q=VSi)==null||q.forEach(R9j);VSi=void 0};
_.mv=function(M){_.UK&&_.UK.beforeLoadModuleCode(M)};
_.SA=function(){_.UK&&_.UK.JSC$11058_setLoaded()};
Ti=function(M){return Dxy(M)?Number(M):String(M)};
F8w=function(M){this.action=M;this.wfv=!1};
HDi=function(M,q){F8w.call(this,"set-drive-options");this.appId=M;this.appOrigin=q};
e9j=function(M){F8w.call(this,"visibility");this.visible=M};
$zs=function(M,q,G){rc.call(this,M,q,G)};
sny=function(M){RE.call(this,M)};
MGy=function(M){M=M&&M.getWindow()||window;return M.gadgets&&M.gadgets.rpc};
GIy=function(M,q){var G=q&&q.getWindow()||window;if(MGy(q))M();else if(qhy)qhy.push(M);else var K=qhy=[M],n=G.setInterval(function(){if(MGy(q)){G.clearInterval(n);for(var E=0;E<K.length;E++)K[E]();qhy=null}},100)};
n5Y=function(M,q){var G=new fS(M);_.oE(q,G);var K={passive:!1};q.listen(G,"mousewheel",function(n){return void KmF(M,n)},K).listen(M,"scroll",function(n){return void KmF(M,n)},K)};
KmF=function(M,q){var G;a:{for(G=q.target;G;){if(G.nodeType==1){var K=_.FD(G,"overflowY");if(K=="auto"||K=="scroll")break a}G=G.parentNode}G=null}if(!G||!_.HX(M,G)||G.scrollHeight==G.clientHeight||q.deltaY>0&&Math.abs(G.scrollTop-(G.scrollHeight-G.clientHeight))<=1||q.deltaY<0&&G.scrollTop==0)q.preventDefault(),q.stopPropagation()};
KW=function(M,q,G,K,n,E,p,y,Y){y=y===void 0?!1:y;Y=Y===void 0?!1:Y;rc.call(this,void 0,void 0,void 0);rc.call(this,E?E+" picker modal-dialog":"picker modal-dialog",!0,G);_.eA(M,"protocol");this.iframeManager_=new E5w;this.targetId_=$a();this.rpcToken_=$a();M=_.s9(M);_.MT(M,"hostId");this.useGapi_=!Y;y&&_.qT(M,"fv2","true");this.setUrl(M.toString());this.preferredDialogWidth_=K;this.preferredDialogHeight_=n;K!==void 0||n!==void 0?K=!0:(K=_.MT(_.s9(M.toString()),"hostId"),N8y||(N8y=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),
K=!N8y.has(K));this.autoSizeDialog_=K;this.JSC$10195_gadgetsDomHelper_=p||this.JSC$10146_dom_;q&&(p=this.JSC$10195_gadgetsDomHelper_,q=_.MT(_.s9(this.JSC$10197_url_),"grugl")=="true"?kIj:p2Y,MGy(p)||(p=p||Ig(document),K=p.createElement("SCRIPT"),_.Ei(K,q),K.type="text/javascript",p.JSC$9330_document_.body.appendChild(K)));M=M.toString();q=null;p=M.indexOf("/picker?");p>-1?q=M.substring(0,p+8-1):ks(M,"/picker")&&(q=M);q&&this.setRelayUrl(q+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=
null;this.buttonEl_&&(this.buttons_?(M=this.buttons_,M.JSC$10180_element_=this.buttonEl_,M.render()):_.NX(this.buttonEl_,y0i),_.GL(this.buttonEl_,!!this.buttons_))};
_.A0Y=function(M){var q=q===void 0?Lmu:q;var G=_.Fi(M),K=function(E){E=_.k(E);E.next();E=nW(E);return q(G,E)},n=function(E){var p=_.k(E);
E=p.next().value;p=nW(p);return M.apply(E,p)};
return function(){var E=_.rW.apply(0,arguments),p=this||_.Kj,y=YhD.get(p);y||(y={},YhD.set(p,y));return Wmy(y,[this].concat(_.Ui(E)),n,K)}};
E9=function(M){var q={};M=M.replace(/\r/g,"").split("\n");for(var G=0;G<M.length;G++){var K=M[G],n=K.indexOf(":");n<0||(q[K.substring(0,n)]=K.substring(n+2,K.length))}return q};
dly=function(M,q,G){G=G===void 0?function(){}:G;
return M?q():G()};
_.hoF=function(M){var q;return((q=v5D.documentOverride)!=null?q:M).__wizdispatcher};
_.k_=function(M){var q=NT;NT=M;return q};
_.OFy=function(M){return M===tGj||(M==null?void 0:M.name)==="\u0275NotFound"};
_.pW=function(M,q){var G;if((G=M)==null?0:G.isDisposed)throw Error("jb`"+String(M.debugName));for(;M!==void 0;){G=M;if(G.retrieve)return G.retrieve(q,{optional:!0});M=M.parent}return tGj};
y5=function(M){return{"\u0275prov":{providedIn:"root",token:Symbol(M),factory:void 0,value:void 0}}};
_.w2s=function(M){var q=NT;if(!q){switch(M===void 0?3:M){case 0:M=Error("ib");break;case 1:M=Error("kb");break;case 2:M=Error("lb");break;default:M=Error("mb")}throw M;}return q};
CFy=function(M){var q=_.k_(M);M={};return M[Symbol.dispose]=function(){_.k_(q)},M};
aZH=function(M,q){M.disposables||(M.disposables=[]);M.disposables.push(q)};
LW=function(M){var q=NT;q&&!q.isDisposed&&(aZH(q,M),M.parent=q)};
lZ4=function(M){if(M.disposables){for(var q=_.k(M.disposables),G=q.next();!G.done;G=q.next())G=G.value,typeof G==="function"?G():o5e(G);M.disposables.length=0}};
o5e=function(M){if(!M.isDisposed){M.isDisposed=!0;var q;(q=M[Symbol.dispose])==null||q.call(M);delete M.parent;lZ4(M)}};
Dlw=function(M){var q={retrieve:function(G){switch(G.\u0275prov.token){case X2$.\u0275prov.token:var K=M.asyncDeps;break;case _.PFi.\u0275prov.token:K=M.rootElement;break;case iFw.\u0275prov.token:K=M.modelRootElement;break;case c0F.\u0275prov.token:K=M.appContext;break;case g5i.\u0275prov.token:K=M.rendererData;break;case B8D.\u0275prov.token:K=M.injectingConstructor;break;case Qni.\u0275prov.token:K=M.dispatcher}if(K)G=K;else a:{for(K=q.parent;K;){var n=K;if(n.retrieve){G=n.retrieve(G);break a}K=
K.parent}K=G.\u0275prov.token;n=IZF[K];n!==void 0?G=n:(n=G.\u0275prov.providedIn,G.\u0275prov.factory?(G=G.\u0275prov.factory(),K&&n==="root"&&(IZF[K]=G)):G=tGj)}return G}};
LW(q);return q};
u8F=function(){var M=_.w2s(1),q=_.pW(M,c0F);if(!_.OFy(q))return q;M=_.pW(M,Qni);if(!_.OFy(M))return M.getOptionalAppContext()};
J0y=function(M){if(typeof document!=="undefined"&&document&&document.getElementById&&(M=document.getElementById(M))){var q=M.tagName.toUpperCase();if(q=="SCRIPT"||q=="LINK")return M}return null};
bFY=function(M,q){if((M=M===void 0?"":M)&&q)throw Error("sb");var G="";var K=_.Kj._F_jsUrl;(M=q||J0y(M))&&(G=M.src?M.src:M.getAttribute("href"));if(K&&G){if(K!=G)throw Error("tb`"+K+"`"+G);G=K}else G=K||G;if(!ZFj(G))throw Error("ub");return G};
mlD=function(){if(!Uly){Uly=!0;try{var M=bFY(_.Kj._F_jsUrl?"":"base-js")}catch(K){return}var q=xlu(zow(M)),G=Object.keys(q);G.length!==0&&R9j(function(K){for(var n=_.k(G),E=n.next();!E.done;E=n.next()){E=E.value;for(var p=_.k(Object.keys(q[E])),y=p.next();!y.done;y=p.next())K.addExtraEdge(E,y.value)}})}};
T8i=function(){var M=Object.assign({},Shw);Object.getOwnPropertyNames(Shw).forEach(function(q){Y_[q]!==void 0&&(M[q]=Y_[q])});
return M};
r0s=function(M,q){if(Y_.enablePerformanceTiming){var G,K;(K=(G=performance).mark)==null||K.call(G,M+"Start__"+q)}};
jn$=function(M,q){if(Y_.enablePerformanceTiming){var G,K;(K=(G=performance).measure)==null||K.call(G,M+"__"+q,M+"Start__"+q)}};
VGi=function(M,q,G){var K;return M&&q?M+"__"+q:(K=M!=null?M:q)!=null?K:G};
fZF=function(M,q){var G=Object.create(Roy);G.debugName=q;!NT||LW(G);q=_.k_(G);try{M(G)}finally{_.k_(q)}return function(){return void o5e(G)}};
HFy=function(M){return Wm(M)&&Fmy in M};
eoF=function(M,q){return Object.is(M,q)};
dY=function(M){var q=Ae;Ae=M;return q};
swD=function(M){if(he)throw Error("Z");if(Ae!==null){var q=Ae.producersTail;if(q===void 0||q.producer!==M){var G=void 0,K=Ae.recomputing;if(K&&(G=q!==void 0?q.nextProducer:Ae.producers,G!==void 0&&G.producer===M)){Ae.producersTail=G;G.lastReadVersion=M.version;return}var n=M.consumersTail,E;if(!(E=n===void 0||n.consumer!==Ae)){if(K){a:{E=Ae;K=E.producersTail;if(K!==void 0){E=E.producers;do{if(E===n){K=!0;break a}if(E===K)break;E=E.nextProducer}while(E!==void 0)}K=!1}K=!K}E=K}E&&(K=te(Ae),G={producer:M,
consumer:Ae,nextProducer:G,prevConsumer:n,lastReadVersion:M.version,nextConsumer:void 0},Ae.producersTail=G,q!==void 0?q.nextProducer=G:Ae.producers=G,K&&$lY(M,G))}}};
wY=function(M){if(!te(M)||M.dirty)if(M.dirty||M.lastCleanEpoch!==O9)(M.producerMustRecompute(M)||M1F(M))&&M.producerRecomputeValue(M),M.dirty=!1,M.lastCleanEpoch=O9};
q4$=function(M){if(M.consumers!==void 0){var q=he;he=!0;try{for(var G=M.consumers;G!==void 0;G=G.nextConsumer){var K=G.consumer;K.dirty||(M=void 0,K.dirty=!0,q4$(K),(M=K.consumerMarkedDirty)==null||M.call(K,K))}}finally{he=q}}};
G6s=function(){var M;return((M=Ae)==null?void 0:M.consumerAllowSignalWrites)!==!1};
Kl4=function(M){M&&(M.producersTail=void 0,M.recomputing=!0);return dY(M)};
Ecu=function(M){M.recomputing=!1;var q=M.producersTail,G=q!==void 0?q.nextProducer:M.producers;if(G!==void 0){if(te(M)){do G=ncY(G);while(G!==void 0)}q!==void 0?q.nextProducer=void 0:M.producers=void 0}};
M1F=function(M){for(M=M.producers;M!==void 0;M=M.nextProducer){var q=M.producer,G=M.lastReadVersion;if(G!==q.version)return!0;wY(q);if(G!==q.version)return!0}return!1};
$lY=function(M,q){var G=M.consumersTail,K=te(M);G!==void 0?(q.nextConsumer=G.nextConsumer,G.nextConsumer=q):(q.nextConsumer=void 0,M.consumers=q);q.prevConsumer=G;M.consumersTail=q;if(!K)for(M=M.producers;M!==void 0;M=M.nextProducer)$lY(M.producer,M)};
ncY=function(M){var q=M.producer,G=M.nextProducer,K=M.nextConsumer,n=M.prevConsumer;M.nextConsumer=void 0;M.prevConsumer=void 0;K!==void 0?K.prevConsumer=n:q.consumersTail=n;if(n!==void 0)n.nextConsumer=K;else if(q.consumers=K,!te(q))for(M=q.producers;M!==void 0;)M=ncY(M);return G};
te=function(M){return M.consumerIsAlwaysLive||M.consumers!==void 0};
k6e=function(M){var q=Object.create(NMw);q.computation=M;M=function(){wY(q);swD(q);if(q.value===CW)throw q.error;return q.value};
M[aY]=q;return M};
Y4y=function(M,q){var G=Object.create(prw);G.value=M;q!==void 0&&(G.equal=q);M=function(){swD(G);return G.value};
M[aY]=G;return[M,function(K){return ypF(G,K)},
function(K){G6s()||Lls(G);ypF(G,K(G.value))}]};
ypF=function(M,q){G6s()||Lls(M);if(!M.equal(M.value,q)){M.value=q;M.version++;O9++;q4$(M);var G;(G=Wlj)==null||G(M)}};
d84=function(M,q,G){var K=Object.create(ApY);K.source=M;K.computation=q;G!=void 0&&(K.equal=G);M=function(){wY(K);swD(K);if(K.value===CW)throw K.error;return K.value};
M[aY]=K;return M};
_.oY=function(M){var q=dY(null);try{return M()}finally{dY(q)}};
_.lQ=function(M,q,G){G=G===void 0?"":G;M=Y4y(M,q==null?void 0:q.equals);var K=M[0],n=K[aY];n.debugName=VGi(q==null?void 0:q.debugName,G,"[signal]");if(!Y_.enablePerformanceTiming)return M;var E=M[1],p=M[2];return[K,function(y){vcy(function(){return void E(y)},n)},
function(y){vcy(function(){return void p(y)},n)}]};
vcy=function(M,q){r0s("signalSet",q.debugName);try{M()}finally{jn$("signalSet",q.debugName)}};
Jpw=function(M,q){var G=_.k(_.lQ(M,void 0,"cPpJzc"));M=G.next().value;G=G.next().value;M[hDF]=G;M[XS]=q;return M};
ZAi=function(M){return!!M&&typeof M==="object"&&Object.getPrototypeOf(M)===Object.prototype};
bAy=function(M){return typeof M==="function"&&hDF in M&&typeof M[hDF]==="function"};
U8y=function(M,q){Object.defineProperty(M,XS,{get:function(){return q}})};
iQ=function(M,q){if(Pm(M)){var G=M.map(function(E){return iQ(E,q)});
U8y(G,q);return G}if(ZAi(M)){G={};M=_.k(Object.entries(M));for(var K=M.next();!K.done;K=M.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;G[K]=iQ(n,q)}U8y(G,q);return G}return Jpw(M,q)};
x8Y=function(M){if(Pm(M))return M.map(function(n){return x8Y(n)});
if(ZAi(M)){var q={};M=_.k(Object.entries(M));for(var G=M.next();!G.done;G=M.next()){var K=_.k(G.value);G=K.next().value;K=K.next().value;q[G]=x8Y(K)}return q}return bAy(M)?M():M};
m8j=function(){var M={height:0,width:0};if(!ZAi(M))throw Error("Jb");var q=Symbol("Kb");return[iQ(M,q),function(G,K){if(G[XS]===q)if(typeof K==="function"){var n=[].concat(_.Ui(x8Y(G)));K=K(n)||n;zDy(G,[].concat(_.Ui(K)))}else zDy(G,K);else throw Error("Lb");}]};
zDy=function(M,q){if(bAy(M))M[hDF](q);else if(Pm(M)&&Pm(q))q=iQ(q,M[XS]),M.length=0,M.push.apply(M,_.Ui(q));else if((ZAi(M)||Pm(M))&&(Pm(q)||typeof q==="object"&&q!==null)){q=_.k(Object.entries(q));for(var G=q.next();!G.done;G=q.next()){var K=_.k(G.value);G=K.next().value;K=K.next().value;var n=M,E=n[G];Object.hasOwn(M,G)?zDy(E,K):n[G]=iQ(K,M[XS])}}else throw Error("Mb");};
S4y=function(M){return Object.create(Object.assign({},cm,M))};
rpj=function(){var M;return(M=TMy)!=null?M:TMy=S4y({consumerAllowSignalWrites:!0})};
_.gY=function(M,q,G){G=G===void 0?"":G;M=k6e(M);var K=M[aY];K.debugName=VGi(q==null?void 0:q.debugName,G,"[computed]");(q==null?void 0:q.equals)!=null&&(K.equal=q.equals);return M};
Bm=function(M){var q=dY(jwY);try{M()}finally{dY(q)}};
HAj=function(M){switch(M.onInitType){case V1w:RDY.schedule(M);break;case fbe:FlH.schedule(M);break;default:_.F2(M.onInitType)}};
GCs=function(M){if(!M.isDisposed)switch(M.effectType){case Q5:eDF.schedule(M);break;case $8H:ske.schedule(M);break;case MUD:qQY.schedule(M);break;default:_.F2(M.effectType)}};
EIe=function(){if(IY>0)Y_.flushRenderEffectsDuringRender&&eDF.flush();else{for(var M=_.k(Khs),q=M.next();!q.done;q=M.next())q.value.flush();nIw()}};
nIw=function(){_.L(function(M){if(M.nextAddress==1)return M.yield(Promise.resolve(),2);for(var q=_.k(N_i),G=q.next();!G.done;G=q.next())G.value.flush();_.gL(M)})};
pUY=function(M){DP=!0;try{for(var q=_.k(M),G=q.next();!G.done;G=q.next()){for(var K=G.value,n=[K],E=K;E.parent!==void 0;)E=E.parent,kCH(E)&&M.has(E)&&n.push(E);for(;n.length>0;){var p=n.pop();M.delete(p);p.run()}}}finally{DP=!1}};
uQ=function(M){IY--;if(M){M=_.k(y5j);for(var q=M.next();!q.done;q=M.next())q.value.clear()}else IY>0||DP&&!Y_.flushRenderEffectsDuringRender||EIe()};
YQY=function(M,q,G){var K=Lhj(M);Je={name:G?K+" ("+G+")":K,isReactive:M.componentType!==ZP,parent:Je};M=q();Je=Je.parent;return M};
bQ=function(){var M=Je;return M?M.isReactive:!1};
x_=function(M,q,G){var K=Je;q&&(Je=q);try{return G==null?M():M.call(G)}catch(E){M=E;U9(M,Je);if(M!==Why){A5H=Je;q=[];for(G=NT;G;){var n=void 0;q.push((n=G.debugName)!=null?n:"[context]");n=void 0;G=(n=G.parent)!=null?n:null}d6$=q.reverse()}Why=M;throw M;}finally{Je=K}};
U9=function(M,q){try{var G=vIF(q);if(G&&!M.componentStack&&(M.componentStack=G,Y_.enableComponentStacksInErrorMessages)){var K=M.message+"\n\nComponent stack: "+G;M.stack&&(M.stack=M.stack.replace(M.message,K));M.message=K}}catch(n){}};
vIF=function(M){if(Wm(M)&&M.name!==void 0&&M.isReactive!==void 0&&M.parent!==void 0||M===null){for(var q=0,G="";q<20&&M;)G+=M.name+" > ",M=M.parent,q++;M=G.slice(0,-3)}else if(Y_.enableContextBasedComponentStacks){a:{for(M=M===void 0?NT:M;M;){if(HFy(M))break a;q=void 0;M=(q=M.parent)!=null?q:null}M=null}M=M.getComponentStack().slice(0,20).join(" > ")}else M="";return M};
Lhj=function(M){return M.debugName||M.name||"[component]"};
h0y=function(M,q,G){q=Object.create(q);M&&(q.effectFn=M);G&&(q.debugName=G);LW(q);q.componentStack=Je;return q};
_.zL=function(M,q){M=h0y(M,tUi,q);GCs(M)};
OIY=function(M){return M};
wUu=function(M,q){function G(){return n()}
var K=K===void 0?"":K;var n=typeof M==="function"?d84(M,OIY,q==null?void 0:q.equals):d84(M.source,M.computation,q==null?void 0:q.equals);var E=n[aY];E.debugName=VGi(q==null?void 0:q.debugName,K,"[linkedSignal]");G[aY]=E;return[G,function(p){vcy(function(){wY(E);ypF(E,p);E.dirty=!1;E.lastCleanEpoch=O9},E)},
function(p){vcy(function(){wY(E);G6s()||Lls(E);ypF(E,p(E.value));E.dirty=!1;E.lastCleanEpoch=O9},E)}]};
_.m_=function(M){var q=NT;if(q){var G=Je;aZH(q,function(){var K=dY(rpj());try{x_(function(){return void M()},G)}catch(n){throw Y_.enableContextBasedComponentStacks&&U9(n),n;
}finally{dY(K)}})}};
S_=function(M,q){var G={};(q===void 0||q)&&LW(G);q=_.k_(G);try{M(G)}finally{_.k_(q)}return function(){return void o5e(G)}};
_.TL=function(M){return typeof M==="function"?M():(M==null?0:M[CR4])?M.get():M};
_.rY=function(M,q){M=h0y(M,ayy,q);GCs(M)};
oIH=function(M){if(NT)throw Error("nb");S_(M,!1)};
j_=function(M,q){M=_.k_(M);try{return _.oY(q)}finally{_.k_(M)}};
V5=function(M,q){var G=vIF(A5H),K,n;var E=(n=(K=d6$)==null?void 0:K.slice())!=null?n:[];q={componentStack:G,contextTrace:E,errorSeverity:3,featureFlags:T8i(),tagName:q};return[M,q]};
PRF=function(M,q,G){if(Object.hasOwnProperty.call(lys,M)&&(M=lys[M],Object.hasOwnProperty.call(M,q)&&(M=M[q],M instanceof Array))){for(var K=null,n=!1,E=0,p=M.length;E<p;++E){var y=M[E],Y=y.contingentAttribute;if(!Y)return y.contract;K===null&&(K={});Y=Object.hasOwnProperty.call(K,Y)?K[Y]:K[Y]=G(Y);if(Y===y.requiredValue)return y.contract;Y==null&&(n=!0)}if(n)return null}q=XUy[q];return typeof q==="number"?q:null};
gIs=function(M,q,G){var K=null;(M=iIj[M])&&(K=M[q]);return typeof K!=="number"&&((M=iIj["*"])&&(K=M[q]),typeof K!=="number")?!1:!0===c5y[K][String(G).toLowerCase()]};
QkF=function(M,q){q=PRF(M.toLowerCase(),q,function(){var K;(K=Y_.handleError)==null||K.call.apply(K,[Y_].concat(_.Ui(V5(Error("Tb"),M.toLowerCase()))))});
if(q===null)return null;var G;return(G=B_y[q])!=null?G:null};
Iye=function(M,q,G){if(G===null||G===void 0)return G;q=q.toLowerCase();M=QkF(M,q);return M===null?G:M(q,G)};
D6H=function(){};
RY=function(M,q){for(;M.length>q;)M.pop()};
unw=function(M){M=Array(M);RY(M,0);return M};
fW=function(M,q,G){if(G==null)M.removeAttribute(q);else{var K;(K=q.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":q.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?M.setAttributeNS(K,q,G):M.setAttribute(q,G)}};
J5F=function(M,q,G){M[q]=G};
bIw=function(M,q,G){M=M.style;if(typeof G==="string")M.cssText=G;else{M.cssText="";for(var K in G)if(ZIy.call(G,K)){q=M;var n=K,E=G[K];n.indexOf("-")>=0?q.setProperty(n,E):q[n]=E}}};
U6y=function(M,q,G){var K=typeof G;K==="object"||K==="function"?M[q]=G:fW(M,q,G)};
x6e=function(){var M=new D6H;M[Hm.default]=U6y;M.style=bIw;return M};
z0D=function(M,q,G,K){(K[q]||K[Hm.default])(M,q,G)};
SQu=function(M,q,G){q=new m6e(q,G);return M.__incrementalDOMData=q};
e_=function(M,q){if(M.__incrementalDOMData)return M.__incrementalDOMData;var G=M.nodeType===1?M.localName:M.nodeName,K=M.nodeType===1?M.getAttribute("key"):null;q=SQu(M,G,M.nodeType===1?K||q:null);if(M.nodeType===1&&(M=M.attributes,G=M.length)){K=q._attrsArr||(q._attrsArr=unw(G*2));for(var n=0,E=0;n<G;n+=1,E+=2){var p=M[n],y=p.value;K[E]=p.name;K[E+1]=y}}return q};
T_y=function(M,q,G,K,n){return q==G&&K==n};
r5H=function(M){for(var q=M$,G=q$();G!==M;){var K=G.nextSibling;q.removeChild(G);G_.deleted.push(G);G=K}};
q$=function(){return KX?KX.nextSibling:M$.firstChild};
nX=function(){KX=q$()};
R0D=function(M,q,G){nX();var K;a:{if(K=KX){do{var n=K,E=M,p=q,y=e_(n,p);if(jki(n,E,y.nameOrCtor,p,y.key))break a}while(q&&(K=K.nextSibling))}K=null}K||(M==="#text"?(G=Eb.createTextNode(""),SQu(G,"#text",null),M=G):(K=Eb,n=M$,typeof M==="function"?K=new M:K=(n=M==="svg"?"http://www.w3.org/2000/svg":M==="math"?"http://www.w3.org/1998/Math/MathML":n==null||e_(n).nameOrCtor==="foreignObject"?null:n.namespaceURI)?K.createElementNS(n,M):K.createElement(M),SQu(K,M,q),M=K,G&&M.setAttribute("nonce",G)),G_.created.push(M),
K=M);G=K;if(G!==KX){if(VUy.indexOf(G)>=0)for(M=M$,q=G.nextSibling,K=KX;K!==null&&K!==G;)n=K.nextSibling,M.insertBefore(K,q),K=n;else M$.insertBefore(G,KX);KX=G}};
fyw=function(M,q,G){R0D(M,q,G);M$=KX;KX=null;return M$};
FhD=function(){r5H(null);KX=M$;M$=M$.parentNode};
$6i=function(M,q){q=q===void 0?{}:q;var G=q.matches===void 0?T_y:q.matches;return function(K,n,E){var p=G_,y=Eb,Y=VUy,A=N$,v=k2,h=KX,t=M$,O=jki;Eb=K.ownerDocument;G_=new HIy(K);jki=G;N$=[];k2=[];KX=null;var a=M$=K.parentNode,g,D=e0y.call(K);if((g=D.nodeType===11||D.nodeType===9?D.activeElement:null)&&K.contains(g)){for(D=[];g!==a;)D.push(g),g=g.parentNode||(a?g.host:null);a=D}else a=[];VUy=a;try{return M(K,n,E)}finally{K=G_,pX&&K.deleted.length>0&&pX(K.deleted),Eb=y,G_=p,jki=O,N$=A,k2=v,KX=h,M$=t,
VUy=Y}}};
sls=function(M,q,G,K){yz.push(z0D);yz.push(M);yz.push(q);yz.push(G);yz.push(K)};
qUH=function(M,q,G){var K=k2;q=q._attrsArr||(q._attrsArr=unw(K.length));for(var n=!q.length||!1,E=0;E<K.length;E+=2){var p=K[E];if(n)q[E]=p;else if(q[E]!==p)break;var y=K[E+1];if(n||q[E+1]!==y)q[E+1]=y,sls(M,p,y,G)}if(E<K.length||E<q.length){for(E=n=E;E<q.length;E+=2)LX[q[E]]=q[E+1];for(E=n;E<K.length;E+=2)n=K[E],p=K[E+1],LX[n]!==p&&sls(M,n,p,G),q[E]=n,q[E+1]=p,delete LX[n];RY(q,K.length);for(var Y in LX)sls(M,Y,void 0,G),delete LX[Y]}M=M4y;M4y=G=yz.length;for(Y=M;Y<G;Y+=5)(0,yz[Y])(yz[Y+1],yz[Y+
2],yz[Y+3],yz[Y+4]);M4y=M;RY(yz,M);RY(K,0)};
Gyj=function(M){R0D("#text",null);var q=KX;var G=e_(q);if(G.text!==M){G=G.text=M;for(var K=1;K<arguments.length;K+=1)G=(0,arguments[K])(G);q.data!==G&&(q.data=G)}};
yh4=function(M,q,G){if(G===!1&&Kow.has(q))fW(M,q,null);else if(q!=="idomKey"&&q!=="skip"&&q!=="skipchildren"&&q!=="children"&&q!=="el")if(q.startsWith("on")){if(q[2]!==":")throw Error("Sb`"+q);if(G===void 0||G===null){var K;(K=Y_.handleError)==null||K.call.apply(K,[Y_].concat(_.Ui(V5(Error("Xb`"+q),M.tagName))));M[q]=void 0}else{var n=q.slice(3);K=bQ();if(n==="jsaction"){G=Array.isArray(G)?G:[G];G=_.k(G);for(var E=G.next();!E.done;E=G.next()){E=E.value;if(typeof E!=="object"||E===null||typeof E.selfReg!==
"function")throw Error("$b`"+q);E.selfReg(0,M,K?_.m_:function(){})}}else{if(typeof G!=="object"||G===null)throw Error("Yb`"+q+"`"+typeof G);
if(typeof G.getFn!=="function")throw Error("Zb`"+q+"`"+Object.keys(G));if(G.selfReg)G.selfReg(0,M,n,K?_.m_:function(){});
else if(K&&M["on"+n]===void 0){var p=G.getFn(0);M.addEventListener(n,p);_.m_(function(){return void M.removeEventListener(n,p)})}else if(K||!ndu.includes(n))M["on"+n]=G.getFn(0)}}}else{if(q.startsWith("data-")&&typeof G==="string")try{G=Ed4(G)}catch(y){G="zSoyz"}typeof G!=="function"||M._disposeEffects!=null?((K=q.startsWith("prop:"))&&(q=q.slice(5)),Y_.enableAttributeSanitization&&(K&&NhF(M.tagName)||(G=Iye(M.tagName,q,G))),q==="style"?("function"==typeof _.Y2&&G instanceof _.Y2&&(G=G.toString()),
kyw(M,q,G)):K?M[q]=G:pGF(M,q,G)):(M._signalProps||(M._signalProps=[]),M._signalValues||(M._signalValues=[]),M._signalProps.push(q))}};
Loy=function(M,q,G){G=(G===void 0?{}:G).isReactive;if(q==null?0:q.el){var K=q.el,n;(n=K.onRender)==null||n.call(K,M);M._disposeRef||(M._disposeRef=function(){var E;(E=K.onUnmount)==null||E.call(K);delete M._disposeRef},G&&_.m_(function(){var E;
(E=M._disposeRef)==null||E.call(M)}))}};
NhF=function(M){return M.length>0&&M.includes("-")&&!YUY.includes(M.toLowerCase())};
Woi=function(M){return Wm(M)&&WM in M};
AhY=function(M){return Woi(M)?M[WM].flattened:M};
d3Y=function(M,q){var G=_.rW.apply(2,arguments),K;q=(K=q)!=null?K:{};K={};return K.type=M,K.props=q,K.children=G,K[A3]=!0,K};
_.dU=function(M){return M.children};
vM=function(M){var q=vdF!==d3Y;vdF=M?hSF:d3Y;return q};
_.h3=function(M){return _.VY(M)?"nodeType"in M:!1};
t3=function(){return document.createTextNode("")};
wU=function(M){M=document.createTextNode(String(M));M._isSignalTextNode=!0;return M};
OYY=function(M){return M!=null&&M.contentKind===CX||M instanceof Rv||t4u(M)};
wGF=function(M){var q=document.createElement("div");if(t4u(M)&&XRy(M))_.NX(q,XRy(M));else if(M instanceof Rv)_.NX(q,M);else if(M!=null&&M.contentKind===CX){if(M.contentKind!==CX)throw Error("Wb");M=Ht(M.toString());_.NX(q,M)}M=_.k(q.childNodes);for(var G=M.next();!G.done;G=M.next())G.value._isSafeOrSanitizedHtmlNode=!0;return q};
a9=function(M){M=typeof M;return M==="string"||M==="number"||M==="boolean"};
CdY=function(M){return M instanceof gW||ZC(M)||M instanceof yR||"function"==typeof _.Y2&&M instanceof _.Y2};
aei=function(M,q){var G=M.parentElement;if(!G)return q;G.replaceChild(q,M);return q};
ody=function(M,q){var G=M[0].parentElement;if(G)if(M[0].previousSibling||M[M.length-1].nextSibling){G.insertBefore(q,M[0]);for(var K=M.length-1;K>=0;K--)G.removeChild(M[K])}else G.textContent="",G.appendChild(q);return q};
ley=function(M,q){if(M[0].parentElement)for(var G=M[0].parentElement,K=q.length,n=M.length,E=K,p=0,y=0,Y=M[n-1].nextSibling,A=null;p<n||y<E;)if(M[p]===q[y])p++,y++;else{for(;M[n-1]===q[E-1];)n--,E--;if(n===p)for(var v=E<K?y?q[y-1].nextSibling:q[E-y]:Y;y<E;){var h=q[y++];G.insertBefore(h,v)}else if(E===y)for(;p<n;)v=M[p],A&&A.has(v)||G.removeChild(v),p++;else if(M[p]===q[E-1]&&q[y]===M[n-1])v=M[--n].nextSibling,G.insertBefore(q[y++],M[p++].nextSibling),G.insertBefore(q[--E],v),M[n]=q[E];else{if(!A)for(A=
new Map,v=y;v<E;)A.set(q[v],v++);v=A.get(M[p]);if(v==null)G.removeChild(M[p]),p++;else if(y<v&&v<E){h=p;for(var t=1,O=void 0;++h<n&&h<E&&(O=A.get(M[h]))!=null&&O===v+t;)t++;if(t>v-y)for(h=M[p];y<v;)G.insertBefore(q[y++],h);else G.replaceChild(q[y++],M[p++])}else p++}}return q};
Pdy=function(M){if(Array.isArray(M)){if(M.length>1)throw Error("jc`"+M.length+"`"+M.map(XGw).join(", "));M=M[0]}if(M==null)return null;if(!(M instanceof _.qX)){var q,G;if((q=window)==null?0:(G=q.trustedTypes)==null?0:G.isScript(M))throw Error("ic");if(String(M).trim().length===0)return null;throw Error("kc`"+XGw(M));}return M};
iYy=function(M,q){q=Pdy(q);q!==null&&_.nv(M,q)};
ch4=function(M){if(Array.isArray(M)){if(M.length>1)throw Error("lc`"+M.length+"`"+M.map(XGw).join(", "));M=M[0]}if(M==null)return null;if(!(M instanceof yR)){if(String(M).trim().length===0)return null;throw Error("mc`"+XGw(M));}return M};
gdj=function(M,q){q=ch4(q);q!==null&&(M.textContent=h7s(q))};
XGw=function(M){return"("+typeof M+") "+(M!=null&&typeof M==="object"?M.constructor.name:typeof M)+" "+M};
Bhi=function(){};
X1=function(M,q){q=q===void 0?{}:q;var G=Qle(),K=!0,n,E=!!Y_.legacyTriggerSoyRendererEvents;E&&(n=u8F());_.rY(function(){var p=!K&&q.isControlFlowComponent&&E,y=p?G[WM].flattened[0].parentElement:void 0;K=!1;_.o9.setUp();q.isControlFlowComponent&&IY++;var Y=G[0],A=G[WM].flattened,v=vM(!0);try{var h=M(),t=Iee(Y,h,G);Array.isArray(t)||(G[WM].flattened=[t]);var O=G[WM].flattened;if(A&&(!Array.isArray(A)||A.length!==0)){var a=Array.isArray(A)?A[0]:A,g=a[lf],D=a._disposeEffects;a._disposeEffects=void 0;
a=Array.isArray(O)?O[0]:O;a[lf]=g;a[lf]&&(a[lf].numNodes=a===O?1:O.length);a._disposeEffects=D}G[0]=t;q.isControlFlowComponent&&uQ(!1)}catch(J){throw q.isControlFlowComponent&&uQ(!0),J;}finally{vM(v),_.o9.tearDown()}p&&(p=n,p!=null||(p=_.hoF(document).getAppContext()),p.get(D3F).JSC$29339_getEventTarget().dispatchEvent(new uGF(Jh$,y,CX)))},q.debugName);
return G};
Iee=function(M,q,G){for(;typeof q==="function";)q=q();if(q!=null&&q[A3]){var K,n,E;(E=Y_.handleError)==null||E.call.apply(E,[Y_].concat(_.Ui(V5(Error("nc`"+((K=q.type)==null?void 0:K.TAG_NAME)),(n=q.type)==null?void 0:n.TAG_NAME))))}if(M==null)return q==null?t3():a9(q)?wU(q):CdY(q)?wU(q.toString()):_.h3(q)?q:q.length===0?t3():ZYy(q,G);if(_.h3(M)){if(q==null)return aei(M,t3());if(a9(q))return bY$(M,q);if(CdY(q))return bY$(M,q.toString());if(_.h3(q))return aei(M,q);if(q.length===0)return aei(M,t3());
q=ZYy(q,G);ley([M],G[WM].flattened);return q}M=PM(M);if(q==null)return ody(M,t3());if(a9(q))return ody(M,wU(q));if(CdY(q))return ody(M,wU(q.toString()));if(_.h3(q))return ley(M,[q])[0];if(q.length===0)return ody(M,t3());q=ZYy(q,G);ley(M,G[WM].flattened);return q};
bY$=function(M,q){M.nodeType===Node.TEXT_NODE?M.textContent!==String(q)&&(M.textContent=String(q)):M=aei(M,wU(q));return M};
PM=function(M,q,G){return U3j(M,q!=null?q:[],G===void 0?!1:G)};
ZYy=function(M,q){var G=PM(M,void 0,!0);if(G.length===0)return t3();q[WM].flattened=G;return M};
U3j=function(M,q,G,K,n){q=q===void 0?[]:q;G=G===void 0?!1:G;n=n===void 0?-1:n;if(M==null)return q;if(M instanceof cM){var E=M.render();return U3j(E,q,G,K,n)}if(_.h3(q)&&q.nodeType===Node.ELEMENT_NODE)switch(q.tagName){case "SCRIPT":iYy(q,M);return;case "STYLE":gdj(q,M);return}a9(M)&&(M=wU(M),K&&G&&(K[n]=M));if(OYY(M)){G=wGF(M);G=Array.from(G.childNodes);G=_.k(G);for(E=G.next();!E.done;E=G.next())x3F(q,E.value);return q}CdY(M)&&(M=wU(M.toString()),K&&G&&(K[n]=M));if(_.h3(M))return x3F(q,M);if(Array.isArray(M)){for(E=
0;E<M.length;E++)U3j(M[E],q,G,M,E);return q}if(typeof M==="function"){E=X1(function(){var y=M();return y!=null&&!a9(y)&&OYY(y)?(y=wGF(y),Array.from(y.childNodes)):y},{debugName:"qmF2ne",
debugFn:M})[0];if(Array.isArray(E)){G=_.k(E);for(E=G.next();!E.done;E=G.next())x3F(q,E.value);return q}K&&G&&(K[n]=E);return x3F(q,E)}if(M!=null&&M[A3]){K=M;n=vM(!0);var p=vdF;try{E=p.apply(null,[K.type,K.props].concat(_.Ui(K.children)))}finally{vM(n)}return U3j(E,q,G)}(p=Y_.handleError)==null||p.call.apply(p,[Y_].concat(_.Ui(V5(Error("oc")))));return q};
Qle=function(M){var q={};q=Object.assign([],(q[WM]={flattened:[]},q));if(!M)return q;q[0]=ZYy(M,q);return q};
x3F=function(M,q){Array.isArray(M)?M.push(q):M.appendChild(q);return M};
gU=function(M){if(!Y_.enableLazyTsx)return M;if(Array.isArray(M)){for(var q=0;q<M.length;q++)M[q]=gU(M[q]);return M}return M instanceof cM?(M=M.render(),gU(M)):M};
m3e=function(M,q){var G,K,n=Lhj(M),E=function(O){K=O;O=vM(!0);var a=dY(BM);r0s("render",n);try{G=gU(M(q))}finally{jn$("render",n),dY(a),vM(O)}};
E=Y_.enableContextPerComponent?fZF(E,n):S_(E,Y_.alwaysTrackContexts||!!NT);HFy(K);if(!q.renderedFromIdom){var p=_.k_(K);try{return zSs(M,q,G),G}finally{_.k_(p)}}!Woi(G)&&Array.isArray(G)&&(G=Qle(G));var y=AhY(G);p=Array.isArray(y)?y[0]:y;var Y=!1;if(p){var A,v=(A=q==null?void 0:q.idomKey)!=null?A:M;A=y!==p;p._disposeEffects=E;var h=p[lf]||{},t=Woi(G)?G:h.sourceDynamicRange;Object.assign(h,{key:v,numNodes:A?y.length:1,context:K,higherOrder:!!p[lf],sourceDynamicRange:t});p[lf]=h}else Y=!0;(function(){var O=
_.k_(K);try{zSs(M,q,y)}finally{_.k_(O)}})();
Y&&E();return G};
SUy=function(M){var q={},G;for(G in M)q={prev$jscomp$24:void 0,next$jscomp$33:void 0},q.prev$jscomp$24=Qz[G],q.next$jscomp$33=M[G],Qz[G]=function(K){return function(){var n=_.rW.apply(0,arguments);K.prev$jscomp$24.apply(null,_.Ui(n));K.next$jscomp$33.apply(null,_.Ui(n))}}(q)};
Th4=function(){if(bQ())throw Error("pc");return I9};
rhu=function(M,q){if(!M.__unmounted&&q){M.__unmounted=!0;try{M.didUnmount()}catch(n){var G,K;(K=Y_.handleError)==null||K.call.apply(K,[Y_].concat(_.Ui(V5(n,(G=M.__type)==null?void 0:G.TAG_NAME))))}Qz.didUnmount(M);M.el=null;q.__instance&&delete q.__instance}};
V4D=function(M,q,G){M._signalProps!=null&&M._disposeEffects==null&&((G===void 0?0:G)?M._disposeEffects=S_(function(){return void jlj(M,q)},Y_.alwaysTrackContexts||!!NT):jlj(M,q))};
jlj=function(M,q){_.rY(function(){for(var G=M._signalProps,K=M._signalValues,n=0;n<G.length;n++){var E=G[n],p=q[E]();K[n]!==p&&(K[n]=p,yh4(M,E,p))}},"e3YVbb")};
RSy=function(M,q,G){var K,n=[];M._disposeEffects=S_(function(){_.rY(function(){var E=G();if(E===null||E===void 0)E="";if(a9(E)||E===null)K!=null||(K=document.createTextNode("")),K.parentNode!==M&&(K._isSignalTextNode=!0,M.insertBefore(K,q)),K.textContent=String(E);else if(OYY(E)){for(var p=n.length>0?n[n.length-1].nextSibling:q,y=_.k(n),Y=y.next();!Y.done;Y=y.next())M.removeChild(Y.value);E=wGF(E);n=Array.from(E.childNodes);E=_.k(n);for(y=E.next();!y.done;y=E.next())M.insertBefore(y.value,p)}else throw Y=
(y=(p=Je)==null?void 0:p.name)!=null?y:"unknown",Error("ec`"+Y+"`"+typeof E);},"VvDgC")},Y_.alwaysTrackContexts||!!NT)};
HYH=function(M,q){var G=_.rW.apply(2,arguments);q!=null||(q={});return!Y_.enableLazyTsx||Je!=null&&!bQ()?feF(M,q,G):new FoH(M,q,G)};
feF=function(M,q,G){if(M===_.dU)return G;if(typeof M==="function")return Je&&!bQ()&&(q.renderedFromIdom=!0),YQY(M,function(){var E=eSY(M,q,G);if(E)return E;G.length>0&&(q.children=G.length===1?G[0]:G);if(M.componentType===ZP){var p;fZF(function(){var y=q;if(M.componentType!==ZP)p=!1;else{y||(y={});var Y=new Dk(y,M),A=dY(BM);try{var v=Y.render(y)}finally{dY(A)}v instanceof HTMLElement?(v.__instance=Y,Y.el=v,Y.__type=M,M.TAG_NAME=v.tagName.toLowerCase(),Qz.didPatch(Y),p=v):p=v}},M.name);
if(p)return p}return m3e(M,q)},q.debugInstance);
var K=$3H(M,q),n;for(n in q)yh4(K,n,q[n]);V4D(K,q);PM(G,K);Loy(K,q,{isReactive:!0});sfs(K,q);return K};
$3H=function(M,q){M=(MPe.has(M.toLowerCase())?0:quY.has(M.startsWith("svg:")?M.replace("svg:",""):M))?document.createElementNS("http://www.w3.org/2000/svg",M.startsWith("svg:")?M.replace("svg:",""):M):GtD(M,q)||document.createElement(M);M[K3w]=!0;return M};
nDY=function(M){if(M){var q;(q=M._disposeRef)==null||q.call(M);var G;(G=M._disposeEffects)==null||G.call(M);M.__instance&&M.__instance instanceof uf&&(q=M.__instance,rhu(q,M),q instanceof Dk&&q.disposeEffects());for(q=0;q<M.childNodes.length;q++)nDY(M.childNodes[q])}};
Ntu=function(M){EDY.push(M)===1&&requestAnimationFrame(function(){setTimeout(function(){var q=[].concat(_.Ui(EDY));EDY=[];q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;try{for(var K=0;K<G.length;K++)nDY(G[K])}catch(n){K=G=void 0,(K=(G=Y_).handleError)==null||K.call.apply(K,[G].concat(_.Ui(V5(n))))}}})})};
_.W=function(M,q){return vdF.apply(null,[M,q].concat(_.Ui(_.rW.apply(2,arguments))))};
_.J3=function(M){return M};
_.Zk=function(M){return{isDefault:!0,children:M.children}};
_.d=function(M){var q=M.cond;if(q===void 0)return M.else&&M.else();var G=_.gY(function(){return!!q()},void 0,"JHVi8"),K=function(){var n=q();
if(!n){var E;(E=Y_.handleError)==null||E.call.apply(E,[Y_].concat(_.Ui(V5(ktw.nonNullableCondIsNull()))))}return n};
return X1(function(){var n=G(),E;S_(function(){var p=dY(BM);try{E=gU(n?M.then(K):M.else&&M.else())}finally{dY(p)}},!0);
return E},{debugName:M.debugInstance,
debugFn:M.then,isControlFlowComponent:!0})};
pF4=function(M){return _.d(M)};
_.bf=function(M){return M.keyBy==="INDEX"?yl4(M):L3H(M)};
Yui=function(M){M=_.k(M);for(var q=M.next();!q.done;q=M.next()){var G=void 0;(G=q.value)==null||G()}};
L3H=function(M){var q=M.keyBy===void 0||M.keyBy==="REFERENCE",G=q?function(v){return v}:M.keyBy,K=[],n=[],E=[],p=[],y=[],Y=[],A=!0;
_.m_(function(){Yui(p)});
return X1(function(){var v=M.each(),h=v.length;if(h===0){if(K.length===0&&!A)return E;Yui(p);K=v;n=[];for(v=0;v<K.length;v++)n.push(G(K[v]));E=[];p=[];y=[];Y=[];M.fallback&&(p[0]=W3y(function(){E[0]=gU(M.fallback())}));
A=!1;return E}for(var t=new Aly,O=K.length-1;O>=0;O--)t.push(n[O],O);O=Array(h);for(var a=Array(h),g=Array(h),D=Array(h),J=Array(q?0:h),Z={i$jscomp$450:0};Z.i$jscomp$450<h;Z={i$jscomp$450:Z.i$jscomp$450,item$jscomp$104:void 0,key$jscomp$563:void 0},Z.i$jscomp$450++){Z.item$jscomp$104=v[Z.i$jscomp$450];Z.key$jscomp$563=G(Z.item$jscomp$104);var V=t.pop(Z.key$jscomp$563);V!=null?(g[Z.i$jscomp$450]=E[V],a[Z.i$jscomp$450]=n[V],O[Z.i$jscomp$450]=p[V],D[Z.i$jscomp$450]=y[V],q||(J[Z.i$jscomp$450]=Y[V]),Bm(function(S){return function(){D[S.i$jscomp$450](S.i$jscomp$450);
if(!q)J[S.i$jscomp$450](S.item$jscomp$104)}}(Z)),delete p[V]):O[Z.i$jscomp$450]=W3y(function(S){return function(){var m=_.k(_.lQ(S.i$jscomp$450,void 0,"Fqk1zd")),R=m.next().value;
m=m.next().value;D[S.i$jscomp$450]=m;a[S.i$jscomp$450]=S.key$jscomp$563;if(q)g[S.i$jscomp$450]=gU(M.children(S.item$jscomp$104,R));else{var se=_.k(_.lQ(S.item$jscomp$104,void 0,"GBj5de"));m=se.next().value;se=se.next().value;J[S.i$jscomp$450]=se;g[S.i$jscomp$450]=gU(M.children(m,R))}}}(Z))}Yui(p);
K=v;n=a;E=g;p=O;y=D;Y=J;A=!1;return g},{debugName:M.debugInstance,
debugFn:M.each,isControlFlowComponent:!0})};
yl4=function(M){var q=[],G=[],K=[],n=[],E=!1;_.m_(function(){for(var p=_.k(n),y=p.next();!y.done;y=p.next())y=y.value,y()});
return X1(function(){var p=M.each();E&&p.length>0&&(n.pop()(),q.pop(),E=!1);for(var y=Array(p.length),Y={i$jscomp$451:0};Y.i$jscomp$451<p.length;Y={i$jscomp$451:Y.i$jscomp$451},Y.i$jscomp$451++)if(Y.i$jscomp$451<q.length)q[Y.i$jscomp$451]!==p[Y.i$jscomp$451]&&(Bm(function(v){return function(){return void G[v.i$jscomp$451](p[v.i$jscomp$451])}}(Y)),q[Y.i$jscomp$451]=p[Y.i$jscomp$451]),y[Y.i$jscomp$451]=K[Y.i$jscomp$451];
else{var A=W3y(function(v){return function(){q[v.i$jscomp$451]=p[v.i$jscomp$451];var h=_.k(_.lQ(p[v.i$jscomp$451],void 0,"JMMLmd")),t=h.next().value;h=h.next().value;G[v.i$jscomp$451]=h;y[v.i$jscomp$451]=gU(M.children(t,v.i$jscomp$451))}}(Y));
n[Y.i$jscomp$451]=A}for(;q.length>p.length;)q.pop(),n.pop()(),G.pop();p.length===0&&!E&&M.fallback&&(Y=W3y(function(){y[0]=gU(M.fallback())}),n[0]=Y,E=!0);
return K=y},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
W3y=function(M){var q=NT;return S_(function(G){var K=dY(BM);try{G.parent=q,M(G)}finally{dY(K)}},!1)};
_.Ub=function(M){var q=dhy(M),G=_.gY(function(){return vDF(q)},void 0,"F1PF4");
return X1(function(){var K=G(),n;S_(function(){var E=dY(BM);try{n=gU(K())}finally{dY(E)}});
return n},{debugName:M.debugInstance,
isControlFlowComponent:!0})};
dhy=function(M){M=M.children;return Array.isArray(M)?M:[M]};
hzY=function(M){var q=M.props;M=M.getChildren()[0];return q.when?{when:q.when,children:M}:{isDefault:!0,children:M}};
vDF=function(M){var q=function(){return null};
M=_.k(M);for(var G=M.next();!G.done;G=M.next())if(G=G.value,G!=null&&G[A3]&&(G=G.type===_.Zk?{isDefault:!0,children:G.children[0]}:{when:G.props.when,children:G.children[0]}),G instanceof cM&&(G=hzY(G)),G.isDefault)q=G.children;else if(G.when())return G.children;return q};
OxF=function(M){var q=null,G,K={get value(){var E,p;(p=(E=n).validateGetValue)==null||p.call(E);return n.__value},set value(E){var p,y;(y=(p=n).validateSetValue)==null||y.call(p,E);n.__value=E;n.__hasBeenSet=!0}},n=(K.__value=null,K.__hasBeenSet=!1,K.__hasErrored=!1,K.onRender=function(E){if(G&&E!==G){G._disposeRef=void 0;var p;(p=q)==null||p()}G=E;q=M(E)||null},K.onUnmount=function(){var E;
(E=q)==null||E();q=n.value=null},K[_.tPw]=!0,K);
return n};
x2=function(M){return typeof M==="symbol"};
CGF=function(M){var q=Th4();if(q==null)throw _.wFy.PRIMITIVE_INVALID_HOOK_CALL();var G=q.hookCounter++;q.hooks||(q.hooks=[]);var K=q.hooks;K[G]||(K[G]={key:M,host:q});if(M!==K[G].key){if(q.__type){var n;M=(n=q.__type)==null?void 0:n.name}else M=q instanceof Dk?Lhj(q.functionComponent):"<"+q.el.tagName.toLowerCase()+">";throw _.wFy.OUT_OF_ORDER_HOOK_CALL(M);}return K[G]};
aaH=function(M,q){return!M||M.length!==(q==null?void 0:q.length)||M.some(function(G,K){return G!==q[K]})};
oDF=function(M,q){var G=CGF("onChange"),K=Th4();aaH(G.deps,q)&&(G.deps=q,G.pendingEffect=M,K.__syncEffects||(K.__syncEffects=[]),K.__syncEffects.push(G))};
_.z_=function(M,q,G){G!=null||(G={});G=G.appContext;var K=!!Y_.legacyTriggerSoyRendererEvents;_.o9.setUp();try{var n=lay(M,q,G);K&&(q=G,q!=null||(q=_.hoF(document).getAppContext()),q.get(D3F).JSC$29339_getEventTarget().dispatchEvent(new uGF(XFj,M,CX)));_.o9.log(M);return n}finally{_.o9.tearDown()}};
lay=function(M,q,G){var K=x_(function(){var n=dY(BM);try{return S_(function(){var E=_.hoF(_.T9(M)),p;var y=Dlw({rootElement:{value:M},appContext:G||(E==null?void 0:(p=E.getOptionalAppContext)==null?void 0:p.call(E)),dispatcher:E});E=_.k_(y);y=vM(!0);IY++;try{PM(q(),M),uQ(!1)}catch(Y){throw uQ(!0),Y;}finally{vM(y),_.k_(E)}},!1)}catch(E){throw Y_.enableContextBasedComponentStacks&&U9(E),E;
}finally{dY(n)}});
M[PGH]=!0;return function(){M.textContent="";K();M[PGH]=!1}};
_.mT=function(M){if(kCH(Ae)){var q;(q=Y_.handleError)==null||q.call.apply(q,[Y_].concat(_.Ui(V5(Error("dc")))))}var G=NT,K=Je;HAj({onInitType:fbe,run:function(){if(G&&!G.isDisposed){var n=_.k_(G);try{x_(function(){return void M()},K)}catch(E){throw Y_.enableContextBasedComponentStacks&&U9(E),E;
}finally{_.k_(n)}}}})};
ix$=function(M,q){oDF(function(){return _.oY(M)},q)};
_.SK=function(M){bQ()?_.mT(function(){_.oY(M)}):oDF(function(){return _.oY(M)},[])};
gDH=function(M){var q=[].concat(_.Ui(M));M.length=0;M=_.k(q);for(q=M.next();!q.done;q=M.next()){q=q.value;clY(q);var G=q.pendingEffect;q.pendingEffect=null;if(G=G==null?void 0:G())q.pendingCleanup=G}};
clY=function(M){var q=M.pendingCleanup;M.pendingCleanup=null;q==null||q()};
BtD=function(M,q){if(bQ())return M();var G=CGF("useMemoInternal");aaH(G.deps,q)&&(G.deps=q,G.value=M());return G.value};
QfF=function(M,q){return BtD(M,q)};
T_=function(M){return BtD(M,[])};
Ias=function(M){return T_(function(){return{value:M}})};
_.rU=function(M,q){if(!M)return null;M=Object.keys(M);M=_.k(M);for(var G=M.next();!G.done;G=M.next()){G=G.value;var K=G.toLowerCase();if(K.indexOf(q,K.length-q.length)>-1)return G}return null};
_.Vz=function(){var M=arguments,q=_.jK;M.length>1?q[M[0]]=M[1]:M.length===1&&Object.assign(q,M[0])};
_.R9=function(M,q){return M in _.jK?_.jK[M]:q};
_.fX=function(M,q){return!!_.R9(M,q)};
DhH=function(M){var q=_.jK.EXPERIMENT_FLAGS;return q?q[M]:void 0};
Jly=function(M){uHu.forEach(function(q){return q(M)})};
_.$2=function(M){return M&&window.yterr?function(){try{return M.apply(this,arguments)}catch(q){_.eK(q)}}:M};
_.eK=function(M){var q=_.sx("yt.logging.errors.log");q?q(M,"ERROR",void 0,void 0,void 0,void 0,void 0):(q=_.R9("ERRORS",[]),q.push([M,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.Vz("ERRORS",q));Jly(M)};
_.Mz=function(M,q,G,K,n){var E=_.sx("yt.logging.errors.log");E?E(M,"WARNING",q,G,K,void 0,n):(E=_.R9("ERRORS",[]),E.push([M,"WARNING",q,G,K,void 0,n]),_.Vz("ERRORS",E))};
bxy=function(M,q){q=M.split(q);for(var G={},K=0,n=q.length;K<n;K++){var E=q[K].split("=");if(E.length===1&&E[0]||E.length===2)try{var p=ZxY(E[0]||""),y=ZxY(E[1]||"");if(p in G){var Y=G[p];Array.isArray(Y)?_.r$(Y,y):G[p]=[Y,y]}else G[p]=y}catch(t){var A=t,v=E[0],h=String(bxy);A.args=[{key:v,value:E[1],query:M,method:UhY===h?"unchanged":h}];xhF.hasOwnProperty(v)||_.Mz(A)}}return G};
zz4=function(M){var q=[];_.xP.forEach(M,function(G,K){var n=_.qz(K);G=Array.isArray(G)?G:[G];_.Gc(G,function(E){E==""?q.push(n):q.push(n+"="+_.qz(E))})});
return q.join("&")};
_.KD=function(M){M.charAt(0)==="?"&&(M=M.substring(1));return bxy(M,"&")};
_.nD=function(M){return M.indexOf("?")!==-1?(M=(M||"").split("#")[0],M=M.split("?",2),_.KD(M.length>1?M[1]:M[0])):{}};
_.Ex=function(M,q){return mhe(M,q||{},!0)};
SuH=function(M,q){return mhe(M,q||{},!1)};
mhe=function(M,q,G){var K=M.split("#",2);M=K[0];K=K.length>1?"#"+K[1]:"";var n=M.split("?",2);M=n[0];n=_.KD(n[1]||"");for(var E in q)if(G||!_.xP.containsKey(n,E))n[E]=q[E];return _.Nz(M,n)+K};
LD=function(M){if(!q)var q=window.location.href;var G=_.kJ(M)[1]||null,K=_.pD(M);return G&&K?ye(M,q):K?_.pD(q)===K&&(Number(_.kJ(q)[4]||null)||null)===(Number(_.kJ(M)[4]||null)||null):!0};
_.rls=function(M){M=Tt4(M);return M===null?!1:M[0]==="com"&&M[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
Tt4=function(M){M=_.pD(M);return M!==null?M.split(".").reverse():null};
ZxY=function(M){return M&&M.match(jfe)?M:YJ(M)};
_.WR=function(M){return new VPw(M)};
_.AL=function(){Rze||(Rze=new fa4);return Rze};
Hx$=function(){var M=F3F;return function(){var q=_.AL();if(!q.resolve(_.WR(M))){var G={};q.addProvider((G.provide=M,G.useClass=M,G[dP]=void 0,G))}return q.resolve(M)}};
$hi=function(M){var q=_.vR,G,K;_.L(function(n){G=_.AL();return(K=G.resolve(_.WR(q)))?(M(K),n.return(Promise.resolve(K))):n.return(G.resolve(new eze(q)).then(function(E){M(E);return E}))})};
_.w=function(M){M=hL(M);return typeof M==="string"&&M==="false"?!1:!!M};
_.tL=function(M,q){M=hL(M);return M===void 0&&q!==void 0?q:Number(M||0)};
sJi=function(M){M=hL(M);return Array.isArray(M)?_.z9(M,function(q){return Number(q||0)}):[Number(M||0)]};
_.wP=function(M){M=hL(M);return M!==void 0?String(M):""};
_.CD=function(M){M=hL(M);return Array.isArray(M)?_.z9(M,function(q){return String(q||"")}):[String(M||"")]};
MEe=function(){return _.R9("EXPERIMENTS_TOKEN","")};
hL=function(M){return _.R9("EXPERIMENT_FLAGS",{})[M]};
qli=function(){for(var M=[],q=_.R9("EXPERIMENTS_FORCED_FLAGS",{}),G=_.k(Object.keys(q)),K=G.next();!K.done;K=G.next())K=K.value,M.push({key:K,value:String(q[K])});G=_.R9("EXPERIMENT_FLAGS",{});K=_.k(Object.keys(G));for(var n=K.next();!n.done;n=K.next())n=n.value,n.startsWith("force_")&&q[n]===void 0&&M.push({key:n,value:String(G[n])});return M};
Kbe=function(){if(!Ges)return null;var M=Ges();return"open"in M?M:null};
_.nps=function(M){switch(_.au(M)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.au=function(M){return M&&"status"in M?M.status:-1};
_.lj=function(M,q){typeof M==="function"&&(M=_.$2(M));return window.setTimeout(M,q)};
_.XN=function(M,q){typeof M==="function"&&(M=_.$2(M));return window.setInterval(M,q)};
_.PR=function(M){window.clearTimeout(M)};
Njj=function(M){M=_.nD(M);for(var q=_.k(Epu),G=q.next();!G.done;G=q.next())if(M[G.value]!==void 0)return!0;return!1};
y2F=function(M,q,G,K,n,E,p,y,Y){G=G===void 0?"GET":G;K=K===void 0?"":K;y=y===void 0?!1:y;var A=Kbe();if(!A)return null;var v=function(){(A&&"readyState"in A?A.readyState:0)===4&&q&&_.$2(q)(A)};
"onloadend"in A?A.addEventListener("loadend",v,!1):A.onreadystatechange=v;_.w("debug_forward_web_query_parameters")&&(M=keH(M,window.location.search));A.open(G,M,!0);E&&(A.responseType=E);p&&(A.withCredentials=!0);G=G==="POST"&&(window.FormData===void 0||!(K instanceof FormData));if(n=p8e(M,n))for(var h in n)A.setRequestHeader(h,n[h]),"content-type"===h.toLowerCase()&&(G=!1);G&&A.setRequestHeader("Content-Type","application/x-www-form-urlencoded");Y&&"onprogress"in A&&(A.onprogress=function(){Y(A.responseText)});
if(y&&"setAttributionReporting"in XMLHttpRequest.prototype){M={eventSourceEligible:!0,triggerEligible:!1};try{A.setAttributionReporting(M)}catch(t){_.Mz(t)}}A.send(K);return A};
p8e=function(M,q){q=q===void 0?{}:q;var G=LD(M),K=_.R9("INNERTUBE_CLIENT_NAME"),n=_.w("web_ajax_ignore_global_headers_if_set"),E;for(E in Lbe){var p=_.R9(Lbe[E]),y=E==="X-Goog-AuthUser"||E==="X-Goog-PageId";E!=="X-Goog-Visitor-Id"||p||(p=_.R9("VISITOR_DATA"));var Y;if(!(Y=!p)){if(!(Y=G||(_.pD(M)?!1:!0))){Y=M;var A;if(A=_.w("add_auth_headers_to_remarketing_google_dot_com_ping")&&E==="Authorization"&&(K==="TVHTML5"||K==="TVHTML5_UNPLUGGED"||K==="TVHTML5_SIMPLY"))A=Tt4(Y),A=A===null?!1:A[1]==="google"?
!0:A[2]==="google"?A[0]==="au"&&A[1]==="com"?!0:A[0]==="uk"&&A[1]==="co"?!0:!1:!1;A&&(Y=_.ij(Y)||"",Y=Y.split("/"),Y="/"+(Y.length>1?Y[1]:""),A=Y==="/pagead");Y=A?!0:!1}Y=!Y}Y||n&&q[E]!==void 0||K==="TVHTML5_UNPLUGGED"&&y||(q[E]=p)}"X-Goog-EOM-Visitor-Id"in q&&"X-Goog-Visitor-Id"in q&&delete q["X-Goog-Visitor-Id"];if(G||!_.pD(M))q["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(G||!_.pD(M)){try{var v=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(h){}v&&(q["X-YouTube-Time-Zone"]=
v)}document.location.hostname.endsWith("youtubeeducation.com")||!G&&_.pD(M)||(q["X-YouTube-Ad-Signals"]=zz4(Yle()));return q};
_.Wbu=function(M,q){var G=_.pD(M);_.w("debug_handle_relative_url_for_query_forward_killswitch")||!G&&LD(M)&&(G=document.location.hostname);var K=_.ij(M);K=(G=G&&(G.endsWith("youtube.com")||G.endsWith("youtube-nocookie.com")))&&K&&K.startsWith("/api/");if(!G||K)return M;var n=_.KD(q),E={};_.Gc(Epu,function(p){n[p]&&(E[p]=n[p])});
return SuH(M,E)};
A2$=function(M,q){q.method="POST";q.postParams||(q.postParams={});return _.cR(M,q)};
dge=function(M,q){var G=_.R9("XSRF_FIELD_NAME"),K;q.headers&&(K=q.headers["Content-Type"]);return!q.excludeXsrf&&(!_.pD(M)||q.withCredentials||_.pD(M)===document.location.hostname)&&q.method==="POST"&&(!K||K==="application/x-www-form-urlencoded")&&!(q.postParams&&q.postParams[G])};
_.cR=function(M,q){var G=q.format||"JSON";M=vpY(M,q);var K=hey(M,q),n=!1,E=tEH(M,function(Y){if(!n){n=!0;y&&_.PR(y);var A=_.nps(Y),v=null,h=400<=Y.status&&Y.status<500,t=500<=Y.status&&Y.status<600;if(A||h||t)v=O7F(M,G,Y,q.convertToSafeHtml);A&&(A=w8y(G,Y,v));v=v||{};h=q.context||_.Kj;A?q.onSuccess&&q.onSuccess.call(h,Y,v):q.onError&&q.onError.call(h,Y,v);q.onFinish&&q.onFinish.call(h,Y,v)}},q.method,K,q.headers,q.responseType,q.withCredentials,!1,q.onProgress);
K=q.timeout||0;if(q.onTimeout&&K>0){var p=q.onTimeout;var y=_.lj(function(){n||(n=!0,E.abort(),_.PR(y),p.call(q.context||_.Kj,E))},K)}return E};
vpY=function(M,q){q.includeDomain&&(M=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+M);var G=_.R9("XSRF_FIELD_NAME");if(q=q.urlParams)q[G]&&delete q[G],M=_.Ex(M,q);return M};
hey=function(M,q){var G=_.R9("XSRF_FIELD_NAME"),K=_.R9("XSRF_TOKEN"),n=q.postBody||"",E=q.postParams;dge(M,q)&&(E||(E={}),E[G]=K);(_.w("ajax_parse_query_data_only_when_filled")&&E&&Object.keys(E).length>0||E)&&typeof n==="string"&&(n=_.KD(n),_.xP.extend(n,E),n=q.postBodyFormat&&q.postBodyFormat==="JSON"?JSON.stringify(n):_.gP(n));E=n||E&&!_.xP.isEmpty(E);!COY&&E&&q.method!=="POST"&&(COY=!0,_.eK(Error("Jc")));return n};
O7F=function(M,q,G,K){var n=null;switch(q){case "JSON":try{var E=G.responseText}catch(p){throw K=Error("Kc"),K.params=M,_.Mz(K),p;}M=G.getResponseHeader("Content-Type")||"";E&&M.indexOf("json")>=0&&(E.substring(0,5)===")]}'\n"&&(E=E.substring(5)),n=JSON.parse(E));break;case "XML":if(M=(M=G.responseXML)?a_Y(M):null)n={},_.Gc(M.getElementsByTagName("*"),function(p){n[p.tagName]=opw(p)})}K&&l_y(n);
return n};
l_y=function(M){if(_.VY(M))for(var q in M)q==="html_content"||ks(q,"_html")?M[q]=Ht(M[q]):l_y(M[q])};
w8y=function(M,q,G){if(q&&q.status===204)return!0;switch(M){case "JSON":return!!G;case "XML":return Number(G&&G.return_code)===0;case "RAW":return!0;default:return!!G}};
a_Y=function(M){return M?(M=("responseXML"in M?M.responseXML:M).getElementsByTagName("root"))&&M.length>0?M[0]:null:null};
opw=function(M){var q="";_.Gc(M.childNodes,function(G){q+=G.nodeValue});
return q};
X8s=function(M){if(M.name==="JavaException")return!0;M=M.stack;return M.includes("chrome://")||M.includes("-extension://")||M.includes("webkit-masked-url://")};
POj=function(M){if(!M.stack)return!0;var q=!M.stack.includes("\n");return q&&M.stack.includes("ErrorType: ")||q&&M.stack.includes("Anonymous function (Unknown script")||M.stack.toLowerCase()==="not available"||M.fileName==="user-script"||M.fileName.startsWith("user-script:")?!0:!1};
_.BR=function(M){_.uI.call(this);this.JSC$10522_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!M};
c2w=function(M,q){var G=M.length,K=0,n=function(){return M.charCodeAt(K++)};
do{var E=i7y(n);if(E===Infinity)break;var p=E>>3;switch(E&7){case 0:E=i7y(n);if(p===q)return E;break;case 1:if(p===q)return;K+=8;break;case 2:E=i7y(n);if(p===q)return M.substr(K,E);K+=E;break;case 5:if(p===q)return;K+=4;break;default:return}}while(K<G)};
i7y=function(M){var q=M(),G=q&127;if(q<128)return G;q=M();G|=(q&127)<<7;if(q<128)return G;q=M();G|=(q&127)<<14;if(q<128)return G;q=M();return q<128?G|(q&127)<<21:Infinity};
Bjw=function(M,q,G,K){if(M)if(Array.isArray(M)){var n=K;for(K=0;K<M.length&&!(M[K]&&(n+=gpe(K,M[K],q,G),n>500));K++);K=n}else if(typeof M==="object")for(n in M){if(M[n]){var E=n;var p=M[n],y=q,Y=G;E=typeof p!=="string"||E!=="clickTrackingParams"&&E!=="trackingParams"?0:(p=c2w(atob(p.replace(/-/g,"+").replace(/_/g,"/")),2))?gpe(E+".ve",p,y,Y):0;K+=E;K+=gpe(n,M[n],q,G);if(K>500)break}}else G[q]=Qe(M),K+=G[q].length;else G[q]=Qe(M),K+=G[q].length;return K};
gpe=function(M,q,G,K){G+="."+M;M=Qe(q);K[G]=M;return G.length+M.length};
Qe=function(M){try{return(typeof M==="string"?M:String(JSON.stringify(M))).substr(0,500)}catch(q){return"unable to serialize "+typeof M+" ("+q.message+")"}};
QJe=function(M){switch(M){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}};
_.Df=function(M,q,G,K,n){_.Iu.set(M,q,{maxAge:G,path:"/",domain:K===void 0?"youtube.com":K,secure:n===void 0?!1:n})};
_.I_e=function(M,q,G){_.Iu.remove(M,q===void 0?"/":q,G===void 0?"youtube.com":G)};
_.uj=function(){if(_.w("embeds_web_enable_cookie_detection_fix")){if(!_.Kj.navigator.cookieEnabled)return!1}else if(!_.Iu.isEnabled())return!1;if(!_.Iu.isEmpty())return!0;_.w("embeds_web_enable_cookie_detection_fix")?_.Iu.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Iu.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Iu.get("TESTCOOKIESENABLED")!=="1")return!1;_.Iu.remove("TESTCOOKIESENABLED");return!0};
Dgy=function(){var M=_.Kj.navigator;return M?M.connection:void 0};
uIi=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(M){}};
_.Z7w=function(){var M=Dgy();if(M){var q=J2e[M.type||"unknown"]||"CONN_UNKNOWN";M=J2e[M.effectiveType||"unknown"]||"CONN_UNKNOWN";q==="CONN_CELLULAR_UNKNOWN"&&M!=="CONN_UNKNOWN"&&(q=M);if(q!=="CONN_UNKNOWN")return q;if(M!=="CONN_UNKNOWN")return M}};
Ugs=function(){var M=Dgy();if(M!=null&&M.effectiveType)return b7D.hasOwnProperty(M.effectiveType)?b7D[M.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.Zf=function(){try{return _.JL(),!0}catch(M){return!1}};
_.JL=function(M){if(_.R9("DATASYNC_ID")!==void 0)return _.R9("DATASYNC_ID");throw new _.bj("Datasync ID not set",M===void 0?"unknown":M);};
_.Ux=function(M){this.mechanism=M};
xJ=function(M){this.mechanism=M};
zc=function(M){this.storage_=M;this.cachedIsStorageAvailable_=null};
xgy=function(){var M=null;try{M=_.Kj.localStorage||null}catch(q){}zc.call(this,M)};
zeH=function(){var M=null;try{M=_.Kj.sessionStorage||null}catch(q){}zc.call(this,M)};
m8=function(M,q){this.mechanism_=M;this.JSC$10624_prefix_=q+"::"};
_.mgi=function(M){var q=new xgy;return q.isAvailable()?M?new m8(q,M):q:null};
_.Slu=function(M){var q=new zeH;return q.isAvailable()?M?new m8(q,M):q:null};
r2H=function(){var M;return(M=Tjy())==null?void 0:M.get("LAST_RESULT_ENTRY_KEY",!0)};
_.rP=function(M){jJy||(_.SS?_.SS.logError(M):(_.Tc.push({type:"ERROR",payload:M}),_.Tc.length>10&&_.Tc.shift()))};
jS=function(M,q){jJy||(_.SS?_.SS.logEvent(M,q):(_.Tc.push({type:"EVENT",eventType:M,payload:q}),_.Tc.length>10&&_.Tc.shift()))};
Ve=function(M){if(M.indexOf(":")>=0)throw Error("Rc");};
Ru=function(M){return M.substr(0,M.indexOf(":"))||M};
f_H=function(){return(VEs||Rei)&&fD("applewebkit")&&!fD("version")&&(!fD("safari")||fD("gsa/"))};
fD=function(M){var q=_.Oe();return q?q.toLowerCase().indexOf(M)>=0:!1};
eey=function(M,q,G,K){q=Ru(q);var n=M instanceof Error?M:Error("Sc`"+M);if(n instanceof FN)return n;M={objectStoreNames:G,dbName:q,dbVersion:K};if(n.name==="QuotaExceededError")return new FN("QUOTA_EXCEEDED",M);if(_.HR&&n.name==="UnknownError")return new FN("QUOTA_MAYBE_EXCEEDED",M);if(n instanceof FbF)return new FN("MISSING_INDEX",Object.assign({},M,{objectStore:n.objectStore,index:n.index}));if(n.name==="InvalidStateError"&&H7Y.some(function(E){return n.message.includes(E)}))return new FN("EXECUTE_TRANSACTION_ON_CLOSED_DB",
M);
if(n.name==="AbortError")return new FN("UNKNOWN_ABORT",M,n.message);n.args=[Object.assign({},M,{name:"IdbError",originalName:n.name})];n.level="WARNING";return n};
eS=function(M,q,G){var K=r2H();return new FN("IDB_NOT_SUPPORTED",{context:{caller:M,publicName:q,version:G,hasSucceededOnce:K==null?void 0:K.hasSucceededOnce}})};
$gy=function(M){if(!M)throw Error();throw M;};
stH=function(M){return M};
Mgu=function(M,q,G){var K=function(){try{M.removeEventListener("success",n),M.removeEventListener("error",E)}catch(p){}},n=function(){q(M.result);
K()},E=function(){G(M.error);
K()};
M.addEventListener("success",n);M.addEventListener("error",E)};
qXy=function(M){return new Promise(function(q,G){Mgu(M,q,G)})};
Ml=function(M){return new $J(new sh(function(q,G){Mgu(M,q,G)}))};
Gww=function(M,q){return new $J(new sh(function(G,K){var n=function(){var E=M?q(M):null;E?E.then(function(p){M=p;n()},K):G()};
n()}))};
K44=function(M,q,G){return new Promise(function(K,n){var E=q!==void 0?self.indexedDB.open(M,q):self.indexedDB.open(M);var p=G.blocked,y=G.blocking,Y=G.terminated,A=G.upgrade,v=G.closed,h,t=function(){h||(h=new ql(E.result,{closed:v}));return h};
E.addEventListener("upgradeneeded",function(O){try{if(O.newVersion===null)throw Error("Xc");if(E.transaction===null)throw Error("Yc");O.dataLoss&&O.dataLoss!=="none"&&jS("IDB_DATA_CORRUPTED",{reason:O.dataLossMessage||"unknown reason",dbName:Ru(M)});var a=t(),g=new GI(E.transaction);A&&A(a,function(D){return O.oldVersion<D&&O.newVersion>=D},g);
g.done.catch(function(D){n(D)})}catch(D){n(D)}});
E.addEventListener("success",function(){var O=E.result;y&&O.addEventListener("versionchange",function(){y(t())});
O.addEventListener("close",function(){jS("IDB_UNEXPECTEDLY_CLOSED",{dbName:Ru(M),dbVersion:O.version});Y&&Y()});
K(t())});
E.addEventListener("error",function(){n(E.error)});
p&&E.addEventListener("blocked",function(){p()})})};
nzF=function(M,q,G){G=G===void 0?{}:G;return K44(M,q,G)};
_.nF=function(M,q){q=q===void 0?{}:q;var G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return _.Cv(p,2),G=self.indexedDB.deleteDatabase(M),K=q,(n=K.blocked)&&G.addEventListener("blocked",function(){n()}),p.yield(qXy(G),4);
if(p.nextAddress!=2)return _.KF(p,0);E=_.i5(p);throw eey(E,M,"",-1);})};
Nz$=function(M,q){var G;return _.L(function(K){if(K.nextAddress==1)return K.yield(_.Eh(Ez4,q),2);G=K.yieldResult;return K.return(_.Nl(G,["databases"],{enableRetries:!0,mode:"readwrite"},function(n){var E=n.objectStore("databases");return E.get(M.actualName).then(function(p){if(p?M.actualName!==p.actualName||M.publicName!==p.publicName||M.userIdentifier!==p.userIdentifier:1)return E.put(M).then(function(){})})}))})};
_.k5=function(M,q){var G;return _.L(function(K){if(K.nextAddress==1)return M?K.yield(_.Eh(Ez4,q),2):K.return();G=K.yieldResult;return K.return(G.delete("databases",M))})};
_.kwe=function(M,q){var G,K;return _.L(function(n){return n.nextAddress==1?(G=[],n.yield(_.Eh(Ez4,q),2)):n.nextAddress!=3?(K=n.yieldResult,n.yield(_.Nl(K,["databases"],{enableRetries:!0,mode:"readonly"},function(E){G.length=0;return pF(E.objectStore("databases"),{},function(p){M(p.getValue())&&G.push(p.getValue());return p.continue()})}),3)):n.return(G)})};
ps$=function(M,q){return _.kwe(function(G){return G.publicName===M&&G.userIdentifier!==void 0},q)};
YXu=function(){var M,q,G,K;return _.L(function(n){switch(n.nextAddress){case 1:M=r2H();if((q=M)==null?0:q.hasSucceededOnce)return n.return(!0);var E;if(E=yn$)E=/WebKit\/([0-9]+)/.exec(_.Oe()),E=!!(E&&parseInt(E[1],10)>=600);E&&(E=/WebKit\/([0-9]+)/.exec(_.Oe()),E=!(E&&parseInt(E[1],10)>=602));if(E||yn)return n.return(!1);try{if(G=self,!(G.indexedDB&&G.IDBIndex&&G.IDBKeyRange&&G.IDBObjectStore))return n.return(!1)}catch(p){return n.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return n.return(!1);
_.Cv(n,2);K={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return n.yield(Nz$(K,L4y),4);case 4:return n.yield(_.k5("yt-idb-test-do-not-use",L4y),5);case 5:return n.return(!0);case 2:return _.i5(n),n.return(!1)}})};
AnY=function(){if(W4w!==void 0)return W4w;jJy=!0;return W4w=YXu().then(function(M){jJy=!1;var q;if((q=Tjy())!=null&&q.hasLocalStorage()){var G;q={hasSucceededOnce:((G=r2H())==null?void 0:G.hasSucceededOnce)||M};var K;(K=Tjy())==null||K.set("LAST_RESULT_ENTRY_KEY",q,2592E3,!0)}return M})};
LF=function(){return _.sx("ytglobal.idbToken_")||void 0};
_.W2=function(){var M=LF();return M?Promise.resolve(M):AnY().then(function(q){(q=q?L4y:void 0)&&_.Y5("ytglobal.idbToken_",q);return q})};
dby=function(M){if(!_.Zf())throw M=new FN("AUTH_INVALID",{dbName:M}),_.rP(M),M;var q=_.JL();return{actualName:M+":"+q,publicName:M,userIdentifier:q}};
vzH=function(M,q,G,K){var n,E,p,y,Y,A;return _.L(function(v){switch(v.nextAddress){case 1:return E=(n=Error().stack)!=null?n:"",v.yield(_.W2(),2);case 2:p=v.yieldResult;if(!p)throw y=eS("openDbImpl",M,q),_.w("ytidb_async_stack_killswitch")||(y.stack=y.stack+"\n"+E.substring(E.indexOf("\n")+1)),_.rP(y),y;Ve(M);Y=G?{actualName:M,publicName:M,userIdentifier:void 0}:dby(M);_.Cv(v,3);return v.yield(Nz$(Y,p),5);case 5:return v.yield(nzF(Y.actualName,q,K),6);case 6:return v.return(v.yieldResult);case 3:return A=
_.i5(v),_.Cv(v,7),v.yield(_.k5(Y.actualName,p),9);case 9:_.KF(v,8);break;case 7:_.i5(v);case 8:throw A;}})};
hHy=function(M,q,G){G=G===void 0?{}:G;return vzH(M,q,!1,G)};
tgi=function(M,q,G){G=G===void 0?{}:G;return vzH(M,q,!0,G)};
OKj=function(M,q){q=q===void 0?{}:q;var G,K;return _.L(function(n){if(n.nextAddress==1)return n.yield(_.W2(),2);if(n.nextAddress!=3){G=n.yieldResult;if(!G)return n.return();Ve(M);K=dby(M);return n.yield(_.nF(K.actualName,q),3)}return n.yield(_.k5(K.actualName,G),0)})};
ws4=function(M,q,G){M=M.map(function(K){return _.L(function(n){return n.nextAddress==1?n.yield(_.nF(K.actualName,q),2):n.yield(_.k5(K.actualName,G),0)})});
return Promise.all(M).then(function(){})};
Cci=function(M){var q=q===void 0?{}:q;var G,K;return _.L(function(n){if(n.nextAddress==1)return n.yield(_.W2(),2);if(n.nextAddress!=3){G=n.yieldResult;if(!G)return n.return();Ve(M);return n.yield(ps$(M,G),3)}K=n.yieldResult;return n.yield(ws4(K,q,G),0)})};
aSu=function(M,q){q=q===void 0?{}:q;var G;return _.L(function(K){if(K.nextAddress==1)return K.yield(_.W2(),2);if(K.nextAddress!=3){G=K.yieldResult;if(!G)return K.return();Ve(M);return K.yield(_.nF(M,q),3)}return K.yield(_.k5(M,G),0)})};
A0=function(M,q){return ozu(M,q)};
XsD=function(M){return _.Eh(lS4(),M)};
Pc$=function(M,q,G,K){var n,E,p;return _.L(function(y){switch(y.nextAddress){case 1:return n={config:M,hashData:q,timestamp:K!==void 0?K:(0,_.d8)()},y.yield(XsD(G),2);case 2:return E=y.yieldResult,y.yield(E.clear("hotConfigStore"),3);case 3:return y.yield(E.put("hotConfigStore",n),4);case 4:return p=y.yieldResult,y.return(p)}})};
iKw=function(M,q,G,K,n){var E,p,y;return _.L(function(Y){switch(Y.nextAddress){case 1:return E={config:M,hashData:q,configData:G,timestamp:n!==void 0?n:(0,_.d8)()},Y.yield(XsD(K),2);case 2:return p=Y.yieldResult,Y.yield(p.clear("coldConfigStore"),3);case 3:return Y.yield(p.put("coldConfigStore",E),4);case 4:return y=Y.yieldResult,Y.return(y)}})};
cns=function(M){var q,G;return _.L(function(K){return K.nextAddress==1?K.yield(XsD(M),2):K.nextAddress!=3?(q=K.yieldResult,G=void 0,K.yield(_.Nl(q,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(n){return _.v2(n.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(E){G=E.getValue()})}),3)):K.return(G)})};
gzu=function(M){var q,G;return _.L(function(K){return K.nextAddress==1?K.yield(XsD(M),2):K.nextAddress!=3?(q=K.yieldResult,G=void 0,K.yield(_.Nl(q,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(n){return _.v2(n.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(E){G=E.getValue()})}),3)):K.return(G)})};
Bz4=function(){return _.L(function(M){return M.yield(Cci("ytGcfConfig"),0)})};
QtF=function(){return"INNERTUBE_API_KEY"in _.jK&&"INNERTUBE_API_VERSION"in _.jK};
_.h0=function(){return{innertubeApiKey:_.R9("INNERTUBE_API_KEY"),innertubeApiVersion:_.R9("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.R9("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.R9("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.R9("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.R9("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.R9("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.R9("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.R9("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.fX("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.fX("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.R9("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.Uby=function(M){var q={client:{hl:M.innertubeContextHostLanguage,gl:M.innertubeContextGeoLocation,clientName:M.innertubeContextClientName,clientVersion:M.innertubeContextClientVersion,configInfo:M.innertubeContextClientConfigInfo}};navigator.userAgent&&(q.client.userAgent=String(navigator.userAgent));var G=_.Kj.devicePixelRatio;G&&G!=1&&(q.client.screenDensityFloat=String(G));G=MEe();G!==""&&(q.client.experimentsToken=G);G=qli();G.length>0&&(q.request={internalExperimentFlags:G});ISs(M,void 0,q);
DbY(void 0,q);ups(void 0,q);Jny(M,void 0,q);ZKy(void 0,q);_.w("start_client_gcf")&&bKy(void 0,q);_.R9("DELEGATED_SESSION_ID")&&!_.w("pageid_as_header_web")&&(q.user={onBehalfOfUser:_.R9("DELEGATED_SESSION_ID")});!_.w("fill_delegate_context_in_gel_killswitch")&&(M=_.R9("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(q.user=Object.assign({},q.user,{serializedDelegationContext:M}));M=_.R9("INNERTUBE_CONTEXT");var K;if(_.w("enable_persistent_device_token")&&(M==null?0:(K=M.client)==null?0:K.rolloutToken)){var n;
q.client.rolloutToken=M==null?void 0:(n=M.client)==null?void 0:n.rolloutToken}K=Object;n=K.assign;M=q.client;G={};for(var E=_.k(Object.entries(_.KD(_.R9("DEVICE","")))),p=E.next();!p.done;p=E.next()){var y=_.k(p.value);p=y.next().value;y=y.next().value;p==="cbrand"?G.deviceMake=y:p==="cmodel"?G.deviceModel=y:p==="cbr"?G.browserName=y:p==="cbrver"?G.browserVersion=y:p==="cos"?G.osName=y:p==="cosver"?G.osVersion=y:p==="cplatform"&&(G.platform=y)}q.client=n.call(K,M,G);return q};
ISs=function(M,q,G){M=M.innertubeContextClientName;if(M==="WEB"||M==="MWEB"||M===1||M===2)if(q){G=_.t0(q,xbY,96)||new xbY;var K=zH4();K=Object.keys(mbu).indexOf(K);K=K===-1?null:K;K!==null&&_.Oh(G,3,K);_.Xe(q,96,G)}else G&&(G.client.mainAppWebInfo=(K=G.client.mainAppWebInfo)!=null?K:{},G.client.mainAppWebInfo.webDisplayMode=zH4())};
DbY=function(M,q){var G=_.sx("yt.embedded_player.embed_url");G&&(M?(q=_.t0(M,SXe,7)||new SXe,_.DJ(q,4,G),_.Xe(M,7,q)):q&&(q.thirdParty={embedUrl:G}))};
ups=function(M,q){var G;if(_.w("web_log_memory_total_kbytes")&&((G=_.Kj.navigator)==null?0:G.deviceMemory)){var K;G=(K=_.Kj.navigator)==null?void 0:K.deviceMemory;M?_.w8(M,95,AE(G*1E6)):q&&(q.client.memoryTotalKbytes=""+G*1E6)}};
Jny=function(M,q,G){if(M.appInstallData)if(q){var K;G=(K=_.t0(q,CF,62))!=null?K:new CF;_.DJ(G,6,M.appInstallData);_.Xe(q,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},G.client.configInfo.appInstallData=M.appInstallData)};
ZKy=function(M,q){var G=_.Z7w();G&&(M?_.Oh(M,61,Tz$[G]):q&&(q.client.connectionType=G));_.w("web_log_effective_connection_type")&&(G=Ugs())&&(M?_.Oh(M,94,rne[G]):q&&(q.client.effectiveConnectionType=G))};
_.RH4=function(M,q,G){G=G===void 0?{}:G;var K={};_.R9("EOM_VISITOR_DATA")?K={"X-Goog-EOM-Visitor-Id":_.R9("EOM_VISITOR_DATA")}:K={"X-Goog-Visitor-Id":G.visitorData||_.R9("VISITOR_DATA","")};if(q&&q.includes("www.youtube-nocookie.com"))return K;q=G.authorization||_.R9("AUTHORIZATION");q||(M?q="Bearer "+_.sx("gapi.auth.getToken")().access_token:(jtD.instance||(jtD.instance=new jtD),M=VgD(),_.w("pageid_as_header_web")||delete M["X-Goog-PageId"],K=Object.assign({},K,M)));q&&(K.Authorization=q);return K};
bKy=function(M,q){var G=fSF();if(G){var K=G.coldConfigData,n=G.coldHashData;G=G.hotHashData;if(M){var E;q=(E=_.t0(M,CF,62))!=null?E:new CF;K=_.DJ(q,1,K);_.DJ(K,3,n).setHotHashData(G);_.Xe(M,62,q)}else q&&(q.client.configInfo=q.client.configInfo||{},K&&(q.client.configInfo.coldConfigData=K),n&&(q.client.configInfo.coldHashData=n),G&&(q.client.configInfo.hotHashData=G))}};
an=function(M){for(var q=M.length;--q>=0;)M[q]=0};
F4F=function(M,q,G,K,n){this.static_tree=M;this.extra_bits=q;this.extra_base=G;this.elems=K;this.max_length=n;this.has_stree=M&&M.length};
HK4=function(M,q){this.dyn_tree=M;this.max_code=0;this.stat_desc=q};
on=function(M,q){M.pending_buf[M.pending++]=q&255;M.pending_buf[M.pending++]=q>>>8&255};
lF=function(M,q,G){M.bi_valid>16-G?(M.bi_buf|=q<<M.bi_valid&65535,on(M,M.bi_buf),M.bi_buf=q>>16-M.bi_valid,M.bi_valid+=G-16):(M.bi_buf|=q<<M.bi_valid&65535,M.bi_valid+=G)};
X8=function(M,q,G){lF(M,G[q*2],G[q*2+1])};
eHi=function(M,q){var G=0;do G|=M&1,M>>>=1,G<<=1;while(--q>0);return G>>>1};
$by=function(M,q,G){var K=Array(16),n=0,E;for(E=1;E<=15;E++)K[E]=n=n+G[E-1]<<1;for(G=0;G<=q;G++)n=M[G*2+1],n!==0&&(M[G*2]=eHi(K[n]++,n))};
srs=function(M){var q;for(q=0;q<286;q++)M.dyn_ltree[q*2]=0;for(q=0;q<30;q++)M.dyn_dtree[q*2]=0;for(q=0;q<19;q++)M.bl_tree[q*2]=0;M.dyn_ltree[512]=1;M.opt_len=M.static_len=0;M.last_lit=M.matches=0};
Mli=function(M){M.bi_valid>8?on(M,M.bi_buf):M.bi_valid>0&&(M.pending_buf[M.pending++]=M.bi_buf);M.bi_buf=0;M.bi_valid=0};
qpy=function(M,q,G){Mli(M);on(M,G);on(M,~G);P2.arraySet(M.pending_buf,M.window,q,G,M.pending);M.pending+=G};
Guy=function(M,q,G,K){var n=q*2,E=G*2;return M[n]<M[E]||M[n]===M[E]&&K[q]<=K[G]};
Kas=function(M,q,G){for(var K=M.heap[G],n=G<<1;n<=M.heap_len;){n<M.heap_len&&Guy(q,M.heap[n+1],M.heap[n],M.depth)&&n++;if(Guy(q,K,M.heap[n],M.depth))break;M.heap[G]=M.heap[n];G=n;n<<=1}M.heap[G]=K};
pEy=function(M,q,G){var K=0;if(M.last_lit!==0){do{var n=M.pending_buf[M.d_buf+K*2]<<8|M.pending_buf[M.d_buf+K*2+1];var E=M.pending_buf[M.l_buf+K];K++;if(n===0)X8(M,E,q);else{var p=iF[E];X8(M,p+256+1,q);var y=nUe[p];y!==0&&(E-=EUy[p],lF(M,E,y));n--;p=n<256?c2[n]:c2[256+(n>>>7)];X8(M,p,G);y=N2y[p];y!==0&&(n-=kuH[p],lF(M,n,y))}}while(K<M.last_lit)}X8(M,256,q)};
yKy=function(M,q){var G=q.dyn_tree,K=q.stat_desc.static_tree,n=q.stat_desc.has_stree,E=q.stat_desc.elems,p,y=-1;M.heap_len=0;M.heap_max=573;for(p=0;p<E;p++)G[p*2]!==0?(M.heap[++M.heap_len]=y=p,M.depth[p]=0):G[p*2+1]=0;for(;M.heap_len<2;){var Y=M.heap[++M.heap_len]=y<2?++y:0;G[Y*2]=1;M.depth[Y]=0;M.opt_len--;n&&(M.static_len-=K[Y*2+1])}q.max_code=y;for(p=M.heap_len>>1;p>=1;p--)Kas(M,G,p);Y=E;do p=M.heap[1],M.heap[1]=M.heap[M.heap_len--],Kas(M,G,1),K=M.heap[1],M.heap[--M.heap_max]=p,M.heap[--M.heap_max]=
K,G[Y*2]=G[p*2]+G[K*2],M.depth[Y]=(M.depth[p]>=M.depth[K]?M.depth[p]:M.depth[K])+1,G[p*2+1]=G[K*2+1]=Y,M.heap[1]=Y++,Kas(M,G,1);while(M.heap_len>=2);M.heap[--M.heap_max]=M.heap[1];p=q.dyn_tree;Y=q.max_code;K=q.stat_desc.static_tree;n=q.stat_desc.has_stree;E=q.stat_desc.extra_bits;var A=q.stat_desc.extra_base,v=q.stat_desc.max_length,h,t=0;for(h=0;h<=15;h++)M.bl_count[h]=0;p[M.heap[M.heap_max]*2+1]=0;for(q=M.heap_max+1;q<573;q++){var O=M.heap[q];h=p[p[O*2+1]*2+1]+1;h>v&&(h=v,t++);p[O*2+1]=h;if(!(O>
Y)){M.bl_count[h]++;var a=0;O>=A&&(a=E[O-A]);var g=p[O*2];M.opt_len+=g*(h+a);n&&(M.static_len+=g*(K[O*2+1]+a))}}if(t!==0){do{for(h=v-1;M.bl_count[h]===0;)h--;M.bl_count[h]--;M.bl_count[h+1]+=2;M.bl_count[v]--;t-=2}while(t>0);for(h=v;h!==0;h--)for(O=M.bl_count[h];O!==0;)K=M.heap[--q],K>Y||(p[K*2+1]!==h&&(M.opt_len+=(h-p[K*2+1])*p[K*2],p[K*2+1]=h),O--)}$by(G,y,M.bl_count)};
LaH=function(M,q,G){var K,n=-1,E=q[1],p=0,y=7,Y=4;E===0&&(y=138,Y=3);q[(G+1)*2+1]=65535;for(K=0;K<=G;K++){var A=E;E=q[(K+1)*2+1];++p<y&&A===E||(p<Y?M.bl_tree[A*2]+=p:A!==0?(A!==n&&M.bl_tree[A*2]++,M.bl_tree[32]++):p<=10?M.bl_tree[34]++:M.bl_tree[36]++,p=0,n=A,E===0?(y=138,Y=3):A===E?(y=6,Y=3):(y=7,Y=4))}};
Ype=function(M,q,G){var K,n=-1,E=q[1],p=0,y=7,Y=4;E===0&&(y=138,Y=3);for(K=0;K<=G;K++){var A=E;E=q[(K+1)*2+1];if(!(++p<y&&A===E)){if(p<Y){do X8(M,A,M.bl_tree);while(--p!==0)}else A!==0?(A!==n&&(X8(M,A,M.bl_tree),p--),X8(M,16,M.bl_tree),lF(M,p-3,2)):p<=10?(X8(M,17,M.bl_tree),lF(M,p-3,3)):(X8(M,18,M.bl_tree),lF(M,p-11,7));p=0;n=A;E===0?(y=138,Y=3):A===E?(y=6,Y=3):(y=7,Y=4)}}};
Wae=function(M){var q=4093624447,G;for(G=0;G<=31;G++,q>>>=1)if(q&1&&M.dyn_ltree[G*2]!==0)return 0;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return 1;for(G=32;G<256;G++)if(M.dyn_ltree[G*2]!==0)return 1;return 0};
g8=function(M,q,G){M.pending_buf[M.d_buf+M.last_lit*2]=q>>>8&255;M.pending_buf[M.d_buf+M.last_lit*2+1]=q&255;M.pending_buf[M.l_buf+M.last_lit]=G&255;M.last_lit++;q===0?M.dyn_ltree[G*2]++:(M.matches++,q--,M.dyn_ltree[(iF[G]+256+1)*2]++,M.dyn_dtree[(q<256?c2[q]:c2[256+(q>>>7)])*2]++);return M.last_lit===M.lit_bufsize-1};
Qn=function(M,q){M.msg=B2[q];return q};
In=function(M){for(var q=M.length;--q>=0;)M[q]=0};
DZ=function(M){var q=M.state,G=q.pending;G>M.avail_out&&(G=M.avail_out);G!==0&&(P2.arraySet(M.output,q.pending_buf,q.pending_out,G,M.next_out),M.next_out+=G,q.pending_out+=G,M.total_out+=G,M.avail_out-=G,q.pending-=G,q.pending===0&&(q.pending_out=0))};
ZZ=function(M,q){var G=M.block_start>=0?M.block_start:-1,K=M.strstart-M.block_start,n=0;if(M.level>0){M.strm.data_type===2&&(M.strm.data_type=Wae(M));yKy(M,M.l_desc);yKy(M,M.d_desc);LaH(M,M.dyn_ltree,M.l_desc.max_code);LaH(M,M.dyn_dtree,M.d_desc.max_code);yKy(M,M.bl_desc);for(n=18;n>=3&&M.bl_tree[AK$[n]*2+1]===0;n--);M.opt_len+=3*(n+1)+5+5+4;var E=M.opt_len+3+7>>>3;var p=M.static_len+3+7>>>3;p<=E&&(E=p)}else E=p=K+5;if(K+4<=E&&G!==-1)lF(M,q?1:0,3),qpy(M,G,K);else if(M.strategy===4||p===E)lF(M,2+(q?
1:0),3),pEy(M,uF,J0);else{lF(M,4+(q?1:0),3);G=M.l_desc.max_code+1;K=M.d_desc.max_code+1;n+=1;lF(M,G-257,5);lF(M,K-1,5);lF(M,n-4,4);for(E=0;E<n;E++)lF(M,M.bl_tree[AK$[E]*2+1],3);Ype(M,M.dyn_ltree,G-1);Ype(M,M.dyn_dtree,K-1);pEy(M,M.dyn_ltree,M.dyn_dtree)}srs(M);q&&Mli(M);M.block_start=M.strstart;DZ(M.strm)};
bF=function(M,q){M.pending_buf[M.pending++]=q};
Uh=function(M,q){M.pending_buf[M.pending++]=q>>>8&255;M.pending_buf[M.pending++]=q&255};
dru=function(M,q){var G=M.max_chain_length,K=M.strstart,n=M.prev_length,E=M.nice_match,p=M.strstart>M.w_size-262?M.strstart-(M.w_size-262):0,y=M.window,Y=M.w_mask,A=M.prev,v=M.strstart+258,h=y[K+n-1],t=y[K+n];M.prev_length>=M.good_match&&(G>>=2);E>M.lookahead&&(E=M.lookahead);do{var O=q;if(y[O+n]===t&&y[O+n-1]===h&&y[O]===y[K]&&y[++O]===y[K+1]){K+=2;for(O++;y[++K]===y[++O]&&y[++K]===y[++O]&&y[++K]===y[++O]&&y[++K]===y[++O]&&y[++K]===y[++O]&&y[++K]===y[++O]&&y[++K]===y[++O]&&y[++K]===y[++O]&&K<v;);
O=258-(v-K);K=v-258;if(O>n){M.match_start=q;n=O;if(O>=E)break;h=y[K+n-1];t=y[K+n]}}}while((q=A[q&Y])>p&&--G!==0);return n<=M.lookahead?n:M.lookahead};
zI=function(M){var q=M.w_size,G;do{var K=M.window_size-M.lookahead-M.strstart;if(M.strstart>=q+(q-262)){P2.arraySet(M.window,M.window,q,q,0);M.match_start-=q;M.strstart-=q;M.block_start-=q;var n=G=M.hash_size;do{var E=M.head[--n];M.head[n]=E>=q?E-q:0}while(--G);n=G=q;do E=M.prev[--n],M.prev[n]=E>=q?E-q:0;while(--G);K+=q}if(M.strm.avail_in===0)break;n=M.strm;G=M.window;E=M.strstart+M.lookahead;var p=n.avail_in;p>K&&(p=K);p===0?G=0:(n.avail_in-=p,P2.arraySet(G,n.input,n.next_in,p,E),n.state.wrap===
1?n.adler=vUF(n.adler,G,p,E):n.state.wrap===2&&(n.adler=x5(n.adler,G,p,E)),n.next_in+=p,n.total_in+=p,G=p);M.lookahead+=G;if(M.lookahead+M.insert>=3)for(K=M.strstart-M.insert,M.ins_h=M.window[K],M.ins_h=(M.ins_h<<M.hash_shift^M.window[K+1])&M.hash_mask;M.insert&&!(M.ins_h=(M.ins_h<<M.hash_shift^M.window[K+3-1])&M.hash_mask,M.prev[K&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=K,K++,M.insert--,M.lookahead+M.insert<3););}while(M.lookahead<262&&M.strm.avail_in!==0)};
h3Y=function(M,q){for(var G;;){if(M.lookahead<262){zI(M);if(M.lookahead<262&&q===0)return 1;if(M.lookahead===0)break}G=0;M.lookahead>=3&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,G=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);G!==0&&M.strstart-G<=M.w_size-262&&(M.match_length=dru(M,G));if(M.match_length>=3)if(G=g8(M,M.strstart-M.match_start,M.match_length-3),M.lookahead-=M.match_length,M.match_length<=M.max_lazy_match&&M.lookahead>=3){M.match_length--;
do M.strstart++,M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart;while(--M.match_length!==0);M.strstart++}else M.strstart+=M.match_length,M.match_length=0,M.ins_h=M.window[M.strstart],M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+1])&M.hash_mask;else G=g8(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++;if(G&&(ZZ(M,!1),M.strm.avail_out===0))return 1}M.insert=M.strstart<2?M.strstart:2;return q===4?(ZZ(M,
!0),M.strm.avail_out===0?3:4):M.last_lit&&(ZZ(M,!1),M.strm.avail_out===0)?1:2};
mm=function(M,q){for(var G,K;;){if(M.lookahead<262){zI(M);if(M.lookahead<262&&q===0)return 1;if(M.lookahead===0)break}G=0;M.lookahead>=3&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,G=M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);M.prev_length=M.match_length;M.prev_match=M.match_start;M.match_length=2;G!==0&&M.prev_length<M.max_lazy_match&&M.strstart-G<=M.w_size-262&&(M.match_length=dru(M,G),M.match_length<=5&&(M.strategy===1||M.match_length===3&&
M.strstart-M.match_start>4096)&&(M.match_length=2));if(M.prev_length>=3&&M.match_length<=M.prev_length){K=M.strstart+M.lookahead-3;G=g8(M,M.strstart-1-M.prev_match,M.prev_length-3);M.lookahead-=M.prev_length-1;M.prev_length-=2;do++M.strstart<=K&&(M.ins_h=(M.ins_h<<M.hash_shift^M.window[M.strstart+3-1])&M.hash_mask,M.prev[M.strstart&M.w_mask]=M.head[M.ins_h],M.head[M.ins_h]=M.strstart);while(--M.prev_length!==0);M.match_available=0;M.match_length=2;M.strstart++;if(G&&(ZZ(M,!1),M.strm.avail_out===0))return 1}else if(M.match_available){if((G=
g8(M,0,M.window[M.strstart-1]))&&ZZ(M,!1),M.strstart++,M.lookahead--,M.strm.avail_out===0)return 1}else M.match_available=1,M.strstart++,M.lookahead--}M.match_available&&(g8(M,0,M.window[M.strstart-1]),M.match_available=0);M.insert=M.strstart<2?M.strstart:2;return q===4?(ZZ(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(ZZ(M,!1),M.strm.avail_out===0)?1:2};
tlF=function(M,q){for(var G,K,n,E=M.window;;){if(M.lookahead<=258){zI(M);if(M.lookahead<=258&&q===0)return 1;if(M.lookahead===0)break}M.match_length=0;if(M.lookahead>=3&&M.strstart>0&&(K=M.strstart-1,G=E[K],G===E[++K]&&G===E[++K]&&G===E[++K])){for(n=M.strstart+258;G===E[++K]&&G===E[++K]&&G===E[++K]&&G===E[++K]&&G===E[++K]&&G===E[++K]&&G===E[++K]&&G===E[++K]&&K<n;);M.match_length=258-(n-K);M.match_length>M.lookahead&&(M.match_length=M.lookahead)}M.match_length>=3?(G=g8(M,1,M.match_length-3),M.lookahead-=
M.match_length,M.strstart+=M.match_length,M.match_length=0):(G=g8(M,0,M.window[M.strstart]),M.lookahead--,M.strstart++);if(G&&(ZZ(M,!1),M.strm.avail_out===0))return 1}M.insert=0;return q===4?(ZZ(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(ZZ(M,!1),M.strm.avail_out===0)?1:2};
O_$=function(M,q){for(var G;;){if(M.lookahead===0&&(zI(M),M.lookahead===0)){if(q===0)return 1;break}M.match_length=0;G=g8(M,0,M.window[M.strstart]);M.lookahead--;M.strstart++;if(G&&(ZZ(M,!1),M.strm.avail_out===0))return 1}M.insert=0;return q===4?(ZZ(M,!0),M.strm.avail_out===0?3:4):M.last_lit&&(ZZ(M,!1),M.strm.avail_out===0)?1:2};
SG=function(M,q,G,K,n){this.good_length=M;this.max_lazy=q;this.nice_length=G;this.max_chain=K;this.func=n};
wEu=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 P2.Buf16(1146);this.dyn_dtree=new P2.Buf16(122);this.bl_tree=new P2.Buf16(78);In(this.dyn_ltree);In(this.dyn_dtree);In(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new P2.Buf16(16);this.heap=new P2.Buf16(573);In(this.heap);this.heap_max=this.heap_len=0;this.depth=new P2.Buf16(573);In(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};
Caw=function(M,q){if(!M||!M.state||q>5||q<0)return M?Qn(M,-2):-2;var G=M.state;if(!M.output||!M.input&&M.avail_in!==0||G.status===666&&q!==4)return Qn(M,M.avail_out===0?-5:-2);G.strm=M;var K=G.last_flush;G.last_flush=q;if(G.status===42)if(G.wrap===2)M.adler=0,bF(G,31),bF(G,139),bF(G,8),G.gzhead?(bF(G,(G.gzhead.text?1:0)+(G.gzhead.hcrc?2:0)+(G.gzhead.extra?4:0)+(G.gzhead.name?8:0)+(G.gzhead.comment?16:0)),bF(G,G.gzhead.time&255),bF(G,G.gzhead.time>>8&255),bF(G,G.gzhead.time>>16&255),bF(G,G.gzhead.time>>
24&255),bF(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),bF(G,G.gzhead.os&255),G.gzhead.extra&&G.gzhead.extra.length&&(bF(G,G.gzhead.extra.length&255),bF(G,G.gzhead.extra.length>>8&255)),G.gzhead.hcrc&&(M.adler=x5(M.adler,G.pending_buf,G.pending,0)),G.gzindex=0,G.status=69):(bF(G,0),bF(G,0),bF(G,0),bF(G,0),bF(G,0),bF(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),bF(G,3),G.status=113);else{var n=8+(G.w_bits-8<<4)<<8;n|=(G.strategy>=2||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6;G.strstart!==0&&(n|=
32);G.status=113;Uh(G,n+(31-n%31));G.strstart!==0&&(Uh(G,M.adler>>>16),Uh(G,M.adler&65535));M.adler=1}if(G.status===69)if(G.gzhead.extra){for(n=G.pending;G.gzindex<(G.gzhead.extra.length&65535)&&(G.pending!==G.pending_buf_size||(G.gzhead.hcrc&&G.pending>n&&(M.adler=x5(M.adler,G.pending_buf,G.pending-n,n)),DZ(M),n=G.pending,G.pending!==G.pending_buf_size));)bF(G,G.gzhead.extra[G.gzindex]&255),G.gzindex++;G.gzhead.hcrc&&G.pending>n&&(M.adler=x5(M.adler,G.pending_buf,G.pending-n,n));G.gzindex===G.gzhead.extra.length&&
(G.gzindex=0,G.status=73)}else G.status=73;if(G.status===73)if(G.gzhead.name){n=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>n&&(M.adler=x5(M.adler,G.pending_buf,G.pending-n,n)),DZ(M),n=G.pending,G.pending===G.pending_buf_size)){var E=1;break}E=G.gzindex<G.gzhead.name.length?G.gzhead.name.charCodeAt(G.gzindex++)&255:0;bF(G,E)}while(E!==0);G.gzhead.hcrc&&G.pending>n&&(M.adler=x5(M.adler,G.pending_buf,G.pending-n,n));E===0&&(G.gzindex=0,G.status=91)}else G.status=91;if(G.status===
91)if(G.gzhead.comment){n=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>n&&(M.adler=x5(M.adler,G.pending_buf,G.pending-n,n)),DZ(M),n=G.pending,G.pending===G.pending_buf_size)){E=1;break}E=G.gzindex<G.gzhead.comment.length?G.gzhead.comment.charCodeAt(G.gzindex++)&255:0;bF(G,E)}while(E!==0);G.gzhead.hcrc&&G.pending>n&&(M.adler=x5(M.adler,G.pending_buf,G.pending-n,n));E===0&&(G.status=103)}else G.status=103;G.status===103&&(G.gzhead.hcrc?(G.pending+2>G.pending_buf_size&&DZ(M),
G.pending+2<=G.pending_buf_size&&(bF(G,M.adler&255),bF(G,M.adler>>8&255),M.adler=0,G.status=113)):G.status=113);if(G.pending!==0){if(DZ(M),M.avail_out===0)return G.last_flush=-1,0}else if(M.avail_in===0&&(q<<1)-(q>4?9:0)<=(K<<1)-(K>4?9:0)&&q!==4)return Qn(M,-5);if(G.status===666&&M.avail_in!==0)return Qn(M,-5);if(M.avail_in!==0||G.lookahead!==0||q!==0&&G.status!==666){K=G.strategy===2?O_$(G,q):G.strategy===3?tlF(G,q):TI[G.level].func(G,q);if(K===3||K===4)G.status=666;if(K===1||K===3)return M.avail_out===
0&&(G.last_flush=-1),0;if(K===2&&(q===1?(lF(G,2,3),X8(G,256,uF),G.bi_valid===16?(on(G,G.bi_buf),G.bi_buf=0,G.bi_valid=0):G.bi_valid>=8&&(G.pending_buf[G.pending++]=G.bi_buf&255,G.bi_buf>>=8,G.bi_valid-=8)):q!==5&&(lF(G,0,3),qpy(G,0,0),q===3&&(In(G.head),G.lookahead===0&&(G.strstart=0,G.block_start=0,G.insert=0))),DZ(M),M.avail_out===0))return G.last_flush=-1,0}if(q!==4)return 0;if(G.wrap<=0)return 1;G.wrap===2?(bF(G,M.adler&255),bF(G,M.adler>>8&255),bF(G,M.adler>>16&255),bF(G,M.adler>>24&255),bF(G,
M.total_in&255),bF(G,M.total_in>>8&255),bF(G,M.total_in>>16&255),bF(G,M.total_in>>24&255)):(Uh(G,M.adler>>>16),Uh(G,M.adler&65535));DZ(M);G.wrap>0&&(G.wrap=-G.wrap);return G.pending!==0?0:1};
axY=function(M){if(!(this instanceof axY))return new axY(M);M=this.options=P2.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},M||{});M.raw&&M.windowBits>0?M.windowBits=-M.windowBits:M.gzip&&M.windowBits>0&&M.windowBits<16&&(M.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new oUY;this.strm.avail_out=0;var q=this.strm;var G=M.level,K=M.method,n=M.windowBits,E=M.memLevel,p=M.strategy;if(q){var y=1;G===-1&&(G=6);n<0?(y=0,n=-n):n>15&&
(y=2,n-=16);if(E<1||E>9||K!==8||n<8||n>15||G<0||G>9||p<0||p>4)q=Qn(q,-2);else{n===8&&(n=9);var Y=new wEu;q.state=Y;Y.strm=q;Y.wrap=y;Y.gzhead=null;Y.w_bits=n;Y.w_size=1<<Y.w_bits;Y.w_mask=Y.w_size-1;Y.hash_bits=E+7;Y.hash_size=1<<Y.hash_bits;Y.hash_mask=Y.hash_size-1;Y.hash_shift=~~((Y.hash_bits+3-1)/3);Y.window=new P2.Buf8(Y.w_size*2);Y.head=new P2.Buf16(Y.hash_size);Y.prev=new P2.Buf16(Y.w_size);Y.lit_bufsize=1<<E+6;Y.pending_buf_size=Y.lit_bufsize*4;Y.pending_buf=new P2.Buf8(Y.pending_buf_size);
Y.d_buf=Y.lit_bufsize;Y.l_buf=3*Y.lit_bufsize;Y.level=G;Y.strategy=p;Y.method=K;if(q&&q.state){q.total_in=q.total_out=0;q.data_type=2;G=q.state;G.pending=0;G.pending_out=0;G.wrap<0&&(G.wrap=-G.wrap);G.status=G.wrap?42:113;q.adler=G.wrap===2?0:1;G.last_flush=0;if(!lxY){K=Array(16);for(E=p=0;E<28;E++)for(EUy[E]=p,n=0;n<1<<nUe[E];n++)iF[p++]=E;iF[p-1]=E;for(E=p=0;E<16;E++)for(kuH[E]=p,n=0;n<1<<N2y[E];n++)c2[p++]=E;for(p>>=7;E<30;E++)for(kuH[E]=p<<7,n=0;n<1<<N2y[E]-7;n++)c2[256+p++]=E;for(n=0;n<=15;n++)K[n]=
0;for(n=0;n<=143;)uF[n*2+1]=8,n++,K[8]++;for(;n<=255;)uF[n*2+1]=9,n++,K[9]++;for(;n<=279;)uF[n*2+1]=7,n++,K[7]++;for(;n<=287;)uF[n*2+1]=8,n++,K[8]++;$by(uF,287,K);for(n=0;n<30;n++)J0[n*2+1]=5,J0[n*2]=eHi(n,5);XEF=new F4F(uF,nUe,257,286,15);PaH=new F4F(J0,N2y,0,30,15);i_F=new F4F([],cKu,0,19,7);lxY=!0}G.l_desc=new HK4(G.dyn_ltree,XEF);G.d_desc=new HK4(G.dyn_dtree,PaH);G.bl_desc=new HK4(G.bl_tree,i_F);G.bi_buf=0;G.bi_valid=0;srs(G);G=0}else G=Qn(q,-2);G===0&&(q=q.state,q.window_size=2*q.w_size,In(q.head),
q.max_lazy_match=TI[q.level].max_lazy,q.good_match=TI[q.level].good_length,q.nice_match=TI[q.level].nice_length,q.max_chain_length=TI[q.level].max_chain,q.strstart=0,q.block_start=0,q.lookahead=0,q.insert=0,q.match_length=q.prev_length=2,q.match_available=0,q.ins_h=0);q=G}}else q=-2;if(q!==0)throw Error(B2[q]);M.header&&(q=this.strm)&&q.state&&q.state.wrap===2&&(q.state.gzhead=M.header);if(M.dictionary){var A;typeof M.dictionary==="string"?A=gU$(M.dictionary):B2Y.call(M.dictionary)==="[object ArrayBuffer]"?
A=new Uint8Array(M.dictionary):A=M.dictionary;M=this.strm;E=A;p=E.length;if(M&&M.state)if(A=M.state,q=A.wrap,q===2||q===1&&A.status!==42||A.lookahead)q=-2;else{q===1&&(M.adler=vUF(M.adler,E,p,0));A.wrap=0;p>=A.w_size&&(q===0&&(In(A.head),A.strstart=0,A.block_start=0,A.insert=0),G=new P2.Buf8(A.w_size),P2.arraySet(G,E,p-A.w_size,A.w_size,0),E=G,p=A.w_size);G=M.avail_in;K=M.next_in;n=M.input;M.avail_in=p;M.next_in=0;M.input=E;for(zI(A);A.lookahead>=3;){E=A.strstart;p=A.lookahead-2;do A.ins_h=(A.ins_h<<
A.hash_shift^A.window[E+3-1])&A.hash_mask,A.prev[E&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=E,E++;while(--p);A.strstart=E;A.lookahead=2;zI(A)}A.strstart+=A.lookahead;A.block_start=A.strstart;A.insert=A.lookahead;A.lookahead=0;A.match_length=A.prev_length=2;A.match_available=0;M.next_in=K;M.input=n;M.avail_in=G;A.wrap=q;q=0}else q=-2;if(q!==0)throw Error(B2[q]);this._dict_set=!0}};
Qri=function(M,q){q=q||{};q.gzip=!0;q=new axY(q);q.push(M,!0);if(q.err)throw q.msg||B2[q.err];return q.result};
Dry=function(M,q){var G=Ixs();G&&G.publish.call(G,M.toString(),M,q)};
Ure=function(M,q,G){var K=Ixs();if(!K)return 0;var n=K.subscribe(M.toString(),function(E,p){var y=_.sx("ytPubsub2Pubsub2SkipSubKey");y&&y==n||(y=function(){if(uwu[n])try{if(p&&M instanceof JKY&&M!=E)try{var Y=M.dataClass,A=p;if(!A.args||!A.version)throw Error("$c");try{if(!Y.version_){var v=new Y;Y.version_=v.version}var h=Y.version_}catch(t){}if(!h||A.version!=h)throw Error("ad");try{p=Reflect.construct(Y,_.Sw(A.args))}catch(t){throw t.message="yt.pubsub2.Data.deserialize(): "+t.message,t;}}catch(t){throw t.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+M.toString()+": "+t.message,t;}q.call(G||window,p)}catch(t){_.eK(t)}},Z_y[M.toString()]?_.sx("yt.scheduler.instance")?_.r8.addLowPriorityJob(y):_.lj(y,0):y())});
uwu[n]=!0;b_y[M.toString()]||(b_y[M.toString()]=[]);b_y[M.toString()].push(n);return n};
SpY=function(){var M=xrj,q=Ure(z3j,function(G){M.apply(void 0,arguments);mrY(q)});
return q};
mrY=function(M){var q=Ixs();q&&(typeof M==="number"&&(M=[M]),_.Gc(M,function(G){q.unsubscribeByKey(G);delete uwu[G]}))};
Ixs=function(){return _.sx("ytPubsub2Pubsub2Instance")};
T2$=function(M,q,G){G=G===void 0?{sampleRate:.1}:G;Math.random()<Math.min(.02,G.sampleRate/100)&&Dry("meta_logging_csi_event",{timerName:M,timelineData:q})};
_.rK$=function(M){return M?(M=M.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.Gp(M):null:null};
_.jG=function(M){return M?(M=M.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Qk(M):null:null};
Vlw=function(){jrs||(jrs=_.jG(_.R9("WORKER_SERIALIZATION_URL")));return jrs||void 0};
_.fxi=function(){var M=Vlw();R3F||M===void 0||(R3F=OvY(M));return R3F};
_.Fau=function(){return typeof Worker==="function"&&Vlw()?!0:!1};
_.sOu=function(){if(_.Fau()&&!H_w){var M=function(G){G=G.data;if(G.op==="gzippedGelBatch"){var K=e3$.get(G.key);K&&($ru(G.gzippedBatch,K.latencyPayload,K.url,K.options,K.sendFn),e3$.delete(G.key))}},q=_.fxi();
q&&(q.addEventListener("message",M),q.onerror=function(){e3$.clear()},H_w=!0)}};
N4i=function(M,q,G,K,n){n=n===void 0?!1:n;var E={startTime:(0,_.d8)(),ticks:{},infos:{}};if(Vn)try{var p=Mou(q);if(p!=null&&(p>qTy||p<GQF))K(M,G);else{if(_.w("gzip_gel_with_worker")&&(_.w("initial_gzip_use_main_thread")&&!KXy||!_.w("initial_gzip_use_main_thread"))){H_w||_.sOu();var y=_.fxi();if(y&&!n){e3$.set(nAH,{latencyPayload:E,url:M,options:G,sendFn:K});y.postMessage({op:"gelBatchToGzip",serializedBatch:q,key:nAH});nAH++;return}}var Y=Qri(EAy(q));$ru(Y,E,M,G,K)}}catch(A){_.Mz(A),K(M,G)}else K(M,
G)};
$ru=function(M,q,G,K,n){KXy=!1;var E=(0,_.d8)();q.ticks.gelc=E;Rn++;_.w("disable_compression_due_to_performance_degredation")&&E-q.startTime>=kQe&&(p44++,_.w("abandon_compression_after_N_slow_zips")?Rn===_.tL("compression_disable_point")&&p44>y_$&&(Vn=!1):Vn=!1);LX$(q);K.headers||(K.headers={});K.headers["Content-Encoding"]="gzip";K.postBody=M;K.postParams=void 0;n(G,K)};
YTw=function(M){var q=q===void 0?!1:q;var G=G===void 0?!1:G;var K=(0,_.d8)(),n={startTime:K,ticks:{},infos:{}},E=q?_.sx("yt.logging.gzipForFetch",!1):!0;if(Vn&&E){if(!M.body)return M;try{var p=G?M.body:typeof M.body==="string"?M.body:JSON.stringify(M.body);E=p;if(!G&&typeof p==="string"){var y=Mou(p);if(y!=null&&(y>qTy||y<GQF))return M;G=q?{level:1}:void 0;E=Qri(EAy(p),G);var Y=(0,_.d8)();n.ticks.gelc=Y;if(q){Rn++;if((_.w("disable_compression_due_to_performance_degredation")||_.w("disable_compression_due_to_performance_degradation_lr"))&&
Y-K>=kQe)if(p44++,_.w("abandon_compression_after_N_slow_zips")||_.w("abandon_compression_after_N_slow_zips_lr")){q=p44/Rn;var A=y_$/_.tL("compression_disable_point");Rn>0&&Rn%_.tL("compression_disable_point")===0&&q>=A&&(Vn=!1)}else Vn=!1;LX$(n)}}M.headers=Object.assign({},{"Content-Encoding":"gzip"},M.headers||{});M.body=E;return M}catch(v){return _.Mz(v),M}}else return M};
Mou=function(M){try{return(new Blob(M.split(""))).size}catch(q){return _.Mz(q),null}};
LX$=function(M){_.w("gel_compression_csi_killswitch")||!_.w("log_gel_compression_latency")&&!_.w("log_gel_compression_latency_lr")||T2$("gel_compression",M,{sampleRate:.1})};
WXi=function(){this.blockSize=-1};
fF=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var M=1;M<this.blockSize;++M)this.pad_[M]=0;this.total_=this.inbuf_=0;this.reset()};
dsY=function(M){M=Object.assign({},M);delete M.Authorization;var q=_.A_$();if(q){var G=new fF;G.update(_.R9("INNERTUBE_API_KEY"));G.update(q);M.hash=_.ZU(G.digest(),3)}return M};
H2=function(){vAY||(vAY=new _.F8("yt.innertube"));return vAY};
hUD=function(M,q,G,K){if(K)return null;K=H2().get("nextId",!0)||1;var n=H2().get("requests",!0)||{};n[K]={method:M,request:q,authState:dsY(G),requestTime:Math.round((0,_.d8)())};H2().set("nextId",K+1,86400,!0);H2().set("requests",n,86400,!0);return K};
toy=function(M){var q=H2().get("requests",!0)||{};delete q[M];H2().set("requests",q,86400,!0)};
w4$=function(M){var q=H2().get("requests",!0);if(q){for(var G in q){var K=q[G];if(!(Math.round((0,_.d8)())-K.requestTime<6E4)){var n=K.authState,E=dsY(_.RH4(!1));_.xP.equals(n,E)&&(n=K.request,"requestTimeMs"in n&&(n.requestTimeMs=Math.round((0,_.d8)())),OTF(M,K.method,n,{}));delete q[G]}}H2().set("requests",q,86400,!0)}};
Cgj=function(M){var q;return(M=M==null?void 0:(q=M.error)==null?void 0:q.code)&&M>=400&&M<=599?!1:!0};
apH=function(M){var q;M=M==null?void 0:(q=M.error)==null?void 0:q.code;return!(M!==400&&M!==415)};
lps=function(){if(oAj)return oAj();var M={};oAj=A0("LogsDatabaseV2",{objectStores:(M.LogsRequestsStore={addedAtVersion:2},M),shared:!1,upgrade:function(q,G,K){G(2)&&eG(q,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});G(3);G(5)&&(K=K.objectStore("LogsRequestsStore"),K.JSC$10683_wrapped.indexNames.contains("newRequest")&&K.JSC$10683_wrapped.deleteIndex("newRequest"),$5(K,"newRequestV2",["status","interface","timestamp"]));G(7)&&q.JSC$10668_wrapped.objectStoreNames.contains("sapisid")&&q.JSC$10668_wrapped.deleteObjectStore("sapisid");
G(9)&&q.JSC$10668_wrapped.objectStoreNames.contains("SWHealthLog")&&q.JSC$10668_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return oAj()};
s4=function(M){return _.Eh(lps(),M)};
PgH=function(M,q){var G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return G={startTime:(0,_.d8)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},p.yield(s4(q),2);if(p.nextAddress!=3)return K=p.yieldResult,n=Object.assign({},M,{options:JSON.parse(JSON.stringify(M.options)),interface:_.R9("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),p.yield(K.put("LogsRequestsStore",n),3);E=p.yieldResult;G.ticks.tc=(0,_.d8)();X4y(G);return p.return(E)})};
iTH=function(M,q){var G,K,n,E,p,y,Y,A,v;return _.L(function(h){if(h.nextAddress==1)return G={startTime:(0,_.d8)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},h.yield(s4(q),2);if(h.nextAddress!=3)return K=h.yieldResult,n=_.R9("INNERTUBE_CONTEXT_CLIENT_NAME",0),E=[M,n,0],p=[M,n,(0,_.d8)()],y=IDBKeyRange.bound(E,p),Y="prev",_.w("use_fifo_for_networkless")&&(Y="next"),A=void 0,v=M==="NEW"?"readwrite":"readonly",_.w("use_readonly_for_get_most_recent_by_status_killswitch")&&(v="readwrite"),
h.yield(_.Nl(K,["LogsRequestsStore"],{mode:v,enableRetries:!0},function(t){return _.v2(t.objectStore("LogsRequestsStore").index("newRequestV2"),{query:y,direction:Y},function(O){O.getValue()&&(A=O.getValue(),M==="NEW"&&(A.status="QUEUED",O.update(A)))})}),3);
G.ticks.tc=(0,_.d8)();X4y(G);return h.return(A)})};
c_y=function(M,q){var G;return _.L(function(K){if(K.nextAddress==1)return K.yield(s4(q),2);G=K.yieldResult;return K.return(_.Nl(G,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(n){var E=n.objectStore("LogsRequestsStore");return E.get(M).then(function(p){if(p)return p.status="QUEUED",E.put(p).then(function(){return p})})}))})};
gAD=function(M,q,G,K){G=G===void 0?!0:G;var n;return _.L(function(E){if(E.nextAddress==1)return E.yield(s4(q),2);n=E.yieldResult;return E.return(_.Nl(n,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){var y=p.objectStore("LogsRequestsStore");return y.get(M).then(function(Y){return Y?(Y.status="NEW",G&&(Y.sendCount+=1),K!==void 0&&(Y.options.compress=K),y.put(Y).then(function(){return Y})):$J.resolve(void 0)})}))})};
B4w=function(M,q){var G;return _.L(function(K){if(K.nextAddress==1)return K.yield(s4(q),2);G=K.yieldResult;return K.return(G.delete("LogsRequestsStore",M))})};
QOH=function(M){var q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(s4(M),2);q=K.yieldResult;G=(0,_.d8)()-2592E6;return K.yield(_.Nl(q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(n){return pF(n.objectStore("LogsRequestsStore"),{},function(E){if(E.getValue().timestamp<=G)return E.delete().then(function(){return E.continue()})})}),0)})};
Ipy=function(){_.L(function(M){return M.yield(Cci("LogsDatabaseV2"),0)})};
X4y=function(M){_.w("nwl_csi_killswitch")||T2$("networkless_performance",M,{sampleRate:1})};
_.usy=function(M){return _.Eh(DsY(),M)};
J_s=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(_.usy(M),2);q=K.yieldResult;G=(0,_.d8)()-2592E6;return K.yield(_.Nl(q,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(n){return pF(n.objectStore("SWHealthLog"),{},function(E){if(E.getValue().timestamp<=G)return E.delete().then(function(){return E.continue()})})}),0)})};
ZTw=function(M){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(_.usy(M),2);q=G.yieldResult;return G.yield(q.clear("SWHealthLog"),0)})};
_.M8=function(M,q,G,K,n,E,p){n=n===void 0?"":n;E=E===void 0?!1:E;p=p===void 0?!1:p;if(M)if(G&&!fD("cobalt"))_.Mz(new _.bj("Legacy referrer-scrubbed ping detected")),M&&bTe(M,void 0,{scrubReferrer:!0});else if(n)y2F(M,q,"POST",n,K);else if(_.R9("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||K||p)y2F(M,q,"GET","",K,void 0,E,p);else{b:{try{c:{var y=new Usy({url:M});if(y.urlParamValues_.dsh==="1")var Y=null;else{var A=y.urlParamValues_.ae;if(A==="1"){var v=y.urlParamValues_.adurl;if(v)try{Y={version:3,directUrl:decodeURIComponent(v),
asyncUrl:zyF(y.JSC$9480_url_,"act=1","ri=1",xsi(y))};break c}catch(a){}}Y=A==="2"?{version:4,directUrl:zyF(y.JSC$9480_url_,"dct=1","suid="+y.suid_,"ri=1"),asyncUrl:zyF(y.JSC$9480_url_,"act=1","ri=1","suid="+y.suid_)}:null}}if(Y){var h=_.ij(M);var t=!(!h||!h.endsWith("/aclk")||_.eA(M,"ri")!=="1");break b}}catch(a){}t=!1}if(t){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(M,"")){var O=!0;break b}}catch(a){}O=!1}O?(q&&q(),G=!0):G=!1}else G=!1;G||bTe(M,q)}};
bTe=function(M,q,G){G=G===void 0?{}:G;var K=new Image,n=""+zUi++;msy[n]=K;K.onload=K.onerror=function(){q&&msy[n]&&q();delete msy[n]};
G.scrubReferrer&&(K.referrerPolicy="no-referrer");K.src=M};
q8=function(M,q){ST$(M,q==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
T4s=function(M){var q;return((q=document.featurePolicy)==null?0:q.allowedFeatures().includes("attribution-reporting"))?M+"&nis=6":M+"&nis=5"};
r_Y=function(M){if(!M)return!1;try{var q;if(((q=_.KD(M))==null?void 0:q.asm)==="4")return!0}catch(G){_.eK(G)}return!1};
ST$=function(M,q){q?(M=T4s(M),_.M8(M,void 0,void 0,void 0,"",!0,!0)):_.M8(M)};
Voy=function(){jO4||(jO4=new _.F8("yt.offline"));return jO4};
RU4=function(M){if(_.w("offline_error_handling")){var q=Voy().get("errors",!0)||{};q[M.message]={name:M.name,stack:M.stack};M.level&&(q[M.message].level=M.level);Voy().set("errors",q,2592E3,!0)}};
FXs=function(M,q,G,K){K=K===void 0?!1:K;q=_.w("web_fp_via_jspb")?Object.assign({},q):q;_.w("use_cfr_monitor")&&fp4(M,q);if(_.w("use_request_time_ms_header"))q.headers&&LD(M)&&(q.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.d8)())));else{var n;if((n=q.postParams)==null?0:n.requestTimeMs)q.postParams.requestTimeMs=Math.round((0,_.d8)())}G&&Object.keys(q).length===0?_.M8(M):q.compress?q.postBody?(typeof q.postBody!=="string"&&(q.postBody=JSON.stringify(q.postBody)),N4i(M,q.postBody,
q,_.cR,K)):N4i(M,JSON.stringify(q.postParams),q,A2$,K):_.cR(M,q)};
HTy=function(M,q){_.w("use_event_time_ms_header")&&LD(M)&&(q.headers||(q.headers={}),q.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.d8)())));return q};
_.$sy=function(){eUw||(eUw=new _.G6({logOfflineErrors:!0,enablePolling:!0}));return eUw};
fp4=function(M,q){var G=q.onError?q.onError:function(){};
q.onError=function(n,E){KA().requestComplete(M,!1);G(n,E)};
var K=q.onSuccess?q.onSuccess:function(){};
q.onSuccess=function(n,E){KA().requestComplete(M,!0);K(n,E)}};
_.sMs=function(){return _.pD(document.location.toString())!=="www.youtube-nocookie.com"};
_.GEs=function(){return _.sx("ytNetworklessLoggingInitializationOptions")?_.M5D.isNwlInitialized:_.qEH};
KYH=function(M,q){if(_.w("polymer_on_demand_shady_dom")){var G;var K=(G=M.__shady_native_firstElementChild)!=null?G:M.firstElementChild}else K=M.firstElementChild;for(;K;){if(M=q(K)?K:KYH(K,q))return M;K=K.nextElementSibling}return null};
Ejy=function(){var M=document;if("visibilityState"in M)return M.visibilityState;var q=njF+"VisibilityState";if(q in M)return M[q]};
_.N7y=function(M,q){var G;nA(M,function(K){G=q[K];return!!G});
return G};
_.N8=function(M){var q=kE4(M);q?q.focus(void 0):_.E4(M)};
kE4=function(M){return(M=KYH(M,function(q){return _.kc(q)?pbu(q)&&!!q.offsetParent:!1}))?M:null};
_.E4=function(M,q){M.hasAttribute("tabindex")||M.setAttribute("tabindex","-1");M.focus(q)};
yjY=function(M,q,G,K){K=K===void 0?{}:K;M.addEventListener&&(q!="mouseenter"||"onmouseenter"in document?q!="mouseleave"||"onmouseenter"in document?q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"):q="mouseout":q="mouseover");return _.xP.findKey(pA,function(n){var E=typeof n[4]==="boolean"&&n[4]==!!K,p=_.VY(n[4])&&_.VY(K)&&_.xP.equals(n[4],K);return!!n.length&&n[0]==M&&n[1]==q&&n[2]==G&&(E||p)})};
_.LA=function(M,q,G,K){K=K===void 0?{}:K;if(!M||!M.addEventListener&&!M.attachEvent)return"";var n=yjY(M,q,G,K);if(n)return n;n=++LYs.count+"";var E=!(q!="mouseenter"&&q!="mouseleave"||!M.addEventListener||"onmouseenter"in document);var p=E?function(y){y=new y2(y);if(!_.jX(y.relatedTarget,function(Y){return Y==M},!0))return y.currentTarget=M,y.type=q,G.call(M,y)}:function(y){y=new y2(y);
y.currentTarget=M;return G.call(M,y)};
p=_.$2(p);M.addEventListener?(q=="mouseenter"&&E?q="mouseover":q=="mouseleave"&&E?q="mouseout":q=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(q="MozMousePixelScroll"),YEY()||typeof K==="boolean"?M.addEventListener(q,p,K):M.addEventListener(q,p,!!K.capture)):M.attachEvent("on"+q,p);pA[n]=[M,q,G,p,K];return n};
_.Aju=function(M,q,G){var K=K===void 0?{}:K;var n=_.LA(M,q,function(){_.WYi(n);G.apply(M,arguments)},K)};
_.WYi=function(M){M&&(typeof M=="string"&&(M=[M]),_.Gc(M,function(q){if(q in pA){var G=pA[q],K=G[0],n=G[1],E=G[3];G=G[4];K.removeEventListener?YEY()||typeof G==="boolean"?K.removeEventListener(n,E,G):K.removeEventListener(n,E,!!G.capture):K.detachEvent&&K.detachEvent("on"+n,E);delete pA[q]}}))};
Yc=function(M){this.callback_=M;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(M=0;M<4;M++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.LA(window,"mousemove",(0,_.Ju)(this.onMouseMove_,this));this.timerId_=_.XN((0,_.Ju)(this.checkPosition_,this),25)};
hxe=function(){var M={};var q=M.preferMobileEvents===void 0?!1:M.preferMobileEvents;M=M.enableScrollEventListener===void 0?!0:M.enableScrollEventListener;if(_.sx("_lact",window)==null){var G=parseInt(_.R9("LACT"),10);G=isFinite(G)?Date.now()-Math.max(G,0):-1;_.Y5("_lact",G,window);_.Y5("_fact",G,window);G==-1&&_.Wr();dYu(window,q,M);new Yc(function(){vje("mouse",100)})}};
dYu=function(M,q,G){q=q===void 0?!1:q;G=G===void 0?!0:G;_.LA(M.document,"keydown",_.Wr);_.LA(M.document,"keyup",_.Wr);_.LA(M.document,"mousedown",_.Wr);_.LA(M.document,"mouseup",_.Wr);q?_.LA(M,"touchmove",function(){vje("touchmove",200)},{passive:!0}):(_.LA(M,"resize",function(){vje("resize",200)}),G&&_.LA(M,"scroll",function(){vje("scroll",200)}));
_.LA(M.document,"touchstart",_.Wr,{passive:!0});_.LA(M.document,"touchend",_.Wr,{passive:!0})};
vje=function(M,q){t5D[M]||(t5D[M]=!0,_.r8.addLowPriorityJob(function(){_.Wr();t5D[M]=!1},q))};
_.Wr=function(){_.sx("_lact",window)==null&&hxe();var M=Date.now();_.Y5("_lact",M,window);_.sx("_fact",window)==-1&&_.Y5("_fact",M,window);(M=_.sx("ytglobal.ytUtilActivityCallback_"))&&M()};
_.Ap=function(){var M=_.sx("_lact",window);return M==null?-1:Math.max(Date.now()-M,0)};
_.tp=function(M,q,G){var K=_.dM();if(K&&q){var n=K.subscribe(M,function(){var E=arguments,p=function(){vr[n]&&q.apply&&typeof q.apply=="function"&&q.apply(G||window,E)};
try{_.Olu[M]?p():_.lj(p,0)}catch(y){_.eK(y)}},G);
vr[n]=!0;hp[M]||(hp[M]=[]);hp[M].push(n);return n}return 0};
_.wby=function(M){var q=_.dM();q&&(typeof M==="number"?M=[M]:typeof M==="string"&&(M=[parseInt(M,10)]),_.Gc(M,function(G){q.unsubscribeByKey(G);delete vr[G]}))};
_.CmD=function(M,q){var G=_.dM();G&&G.publish.apply(G,arguments)};
_.oje=function(M){var q=_.dM();if(q)if(q.clear(M),M)ags(M);else for(var G in hp)ags(G)};
_.dM=function(){return _.Kj.ytPubsubPubsubInstance};
ags=function(M){hp[M]&&(M=hp[M],_.Gc(M,function(q){vr[q]&&delete vr[q]}),M.length=0)};
lgF=function(){var M,q;return"h5vcc"in wM&&((M=wM.h5vcc.traceEvent)==null?0:M.traceBegin)&&((q=wM.h5vcc.traceEvent)==null?0:q.traceEnd)?1:"performance"in wM&&wM.performance.mark&&wM.performance.measure?2:0};
Xbi=function(M){var q=lgF();switch(q){case 1:wM.h5vcc.traceEvent.traceBegin("YTLR",M);break;case 2:wM.performance.mark(M+"-start");break;case 0:break;default:_.F2(q,"unknown trace type")}};
Pmw=function(M){var q=lgF();switch(q){case 1:wM.h5vcc.traceEvent.traceEnd("YTLR",M);break;case 2:q=M+"-start";var G=M+"-end";wM.performance.mark(G);wM.performance.measure(M,q,G);break;case 0:break;default:_.F2(q,"unknown trace type")}};
il4=function(M){var q,G;(G=(q=window).onerror)==null||G.call(q,M.message,"",0,0,M)};
cjH=function(M){if(_.w("web_lifecycle_error_handling_killswitch"))return M();try{return M()}catch(q){il4(q)}};
gjF=function(M){return[M.auth===void 0?"undefined":M.auth,M.isJspb===void 0?"undefined":M.isJspb,M.cttAuthInfo===void 0?"undefined":M.cttAuthInfo,M.tier===void 0?"undefined":M.tier].join("/")};
_.C=function(M,q){if(M)return M[q.name]};
aw=function(){var M=_.sx("yt.logging.ims");M||(M=new CA,_.Y5("yt.logging.ims",M));return M};
UYi=function(M,q){if(M.endpoint==="log_event"){B7F(M);var G=QMw(M),K=IgF(M.payload)||"",n=DY$(K),E=200;if(n){if(n.enabled===!1&&!_.w("web_payload_policy_disabled_killswitch"))return;E=ugu(n.tier);if(E===400){Jjs(M,q);return}}ow[G]=!0;G={cttAuthInfo:G,isJspb:!1,tier:E};aw().storePayload(G,M.payload);Zl4(q,!1,G,bly(K))}};
zxy=function(M,q,G){if(q.endpoint==="log_event"){B7F(void 0,q);var K=QMw(q,!0),n=DY$(M),E=200;if(n){if(n.enabled===!1&&!_.w("web_payload_policy_disabled_killswitch"))return;E=ugu(n.tier);if(E===400){xYF(M,q,G);return}}ow[K]=!0;K={cttAuthInfo:K,isJspb:!0,tier:E};aw().storePayload(K,bP(q.payload));Zl4(G,!0,K,bly(M))}};
Zl4=function(M,q,G,K){q=q===void 0?!1:q;K=K===void 0?!1:K;M&&(lN=new M);M=_.tL("tvhtml5_logging_max_batch_ads_fork")||_.tL("tvhtml5_logging_max_batch")||_.tL("web_logging_max_batch")||100;var n=(0,_.d8)(),E=mYe(q,G.tier),p=E.lastDebounceQueueFromLogTimeMs;K&&(E.useVideoStatsEndPoint=!0);K=0;G&&(K=aw().getSequenceCount(G));var y=function(){SEe({writeThenSend:!0},q,G.tier)};
K>=1E3?y():K>=M?T7F||(T7F=rjY(function(){y();T7F=void 0},0)):n-p>=10&&(jMi(q,G.tier),E.lastDebounceQueueFromLogTimeMs=n)};
Jjs=function(M,q){if(M.endpoint==="log_event"){_.w("more_accurate_gel_parser")&&aw().storePayload({isJspb:!1},M.payload);B7F(M);var G=QMw(M),K=new Map;K.set(G,[M.payload]);var n=IgF(M.payload)||"";q&&(lN=new q);return new _.X4(function(E,p){lN&&lN.isReady()?V5i(K,lN,E,p,{bypassNetworkless:!0},!0,bly(n)):E()})}};
xYF=function(M,q,G){if(q.endpoint==="log_event"){B7F(void 0,q);var K=QMw(q,!0),n=new Map;n.set(K,[bP(q.payload)]);G&&(lN=new G);return new _.X4(function(E){lN&&lN.isReady()?RxY(n,lN,E,{bypassNetworkless:!0},!0,bly(M)):E()})}};
QMw=function(M,q){var G="";if(M.dangerousLogToVisitorSession)G="visitorOnlyApprovedKey";else if(M.cttAuthInfo){if(q===void 0?0:q){q=M.cttAuthInfo.token;G=M.cttAuthInfo;var K=new fgy;G.videoId?K.setVideoId(G.videoId):G.playlistId&&Pr(K,2,FYy,o8(G.playlistId));Hly[q]=K}else q=M.cttAuthInfo,G={},q.videoId?G.videoId=q.videoId:q.playlistId&&(G.playlistId=q.playlistId),exH[M.cttAuthInfo.token]=G;G=M.cttAuthInfo.token}return G};
SEe=function(M,q,G){M=M===void 0?{}:M;q=q===void 0?!1:q;new _.X4(function(K,n){var E=mYe(q,G),p=E.useVideoStatsEndPoint;E.useVideoStatsEndPoint=!1;$YY(E.queueTimer);$YY(E.queueMaxTimer);E.queueMaxTimer=0;lN&&lN.isReady()?G===void 0&&_.w("enable_web_tiered_gel")?s2e(K,n,M,q,300,p):s2e(K,n,M,q,G,p):(jMi(q,G),K())})};
s2e=function(M,q,G,K,n,E){var p=lN;G=G===void 0?{}:G;K=K===void 0?!1:K;n=n===void 0?200:n;E=E===void 0?!1:E;var y=new Map,Y=new Map,A={isJspb:K,cttAuthInfo:void 0,tier:n},v={isJspb:K,cttAuthInfo:void 0};if(K){q=_.k(Object.keys(ow));for(n=q.next();!n.done;n=q.next())n=n.value,Y=_.w("enable_web_tiered_gel")?aw().smartExtractMatchingEntries({keys:[A,v],sizeLimit:1E3}):aw().extractMatchingEntries({isJspb:!0,cttAuthInfo:n}),Y.length>0&&y.set(n,Y),(_.w("web_fp_via_jspb_and_json")&&G.writeThenSend||!_.w("web_fp_via_jspb_and_json"))&&
delete ow[n];RxY(y,p,M,G,!1,E)}else{y=_.k(Object.keys(ow));for(A=y.next();!A.done;A=y.next())A=A.value,v=_.w("enable_web_tiered_gel")?aw().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:A,tier:n},{isJspb:!1,cttAuthInfo:A}],sizeLimit:1E3}):aw().extractMatchingEntries({isJspb:!1,cttAuthInfo:A}),v.length>0&&Y.set(A,v),(_.w("web_fp_via_jspb_and_json")&&G.writeThenSend||!_.w("web_fp_via_jspb_and_json"))&&delete ow[A];V5i(Y,p,M,q,G,!1,E)}};
jMi=function(M,q){M=M===void 0?!1:M;q=q===void 0?200:q;var G=function(){SEe({writeThenSend:!0},M,q)},K=mYe(M,q),n=K===Mcy||K===qqy?5E3:GMj;
_.w("web_gel_timeout_cap")&&!K.queueMaxTimer&&(n=rjY(function(){G()},n),K.queueMaxTimer=n);
$YY(K.queueTimer);n=_.R9("LOGGING_BATCH_TIMEOUT",_.tL("web_gel_debounce_ms",1E4));_.w("shorten_initial_gel_batch_timeout")&&Kds&&(n=nmi);n=rjY(function(){_.tL("gel_min_batch_size")>0?aw().getSequenceCount({cttAuthInfo:void 0,isJspb:M,tier:q})>=EmH&&G():G()},n);
K.queueTimer=n};
V5i=function(M,q,G,K,n,E,p){n=n===void 0?{}:n;var y=Math.round((0,_.d8)()),Y=M.size,A=Nky(p);M=_.k(M);var v=M.next();for(p={};!v.done;p={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},v=M.next()){var h=_.k(v.value);v=h.next().value;h=h.next().value;p.batchRequest=_.xP.unsafeClone({context:_.Uby(q.config_||_.h0())});if(!_.TF(h)&&!_.w("throw_err_when_logevent_malformed_killswitch")){K();break}p.batchRequest.events=h;
(h=exH[v])&&kMu(p.batchRequest,v,h);delete exH[v];p.dangerousLogToVisitorSession=v==="visitorOnlyApprovedKey";pxD(p.batchRequest,y,p.dangerousLogToVisitorSession);yCi(n);p.onSuccess$jscomp$3=function(t){_.w("start_client_gcf")&&_.r8.addLowPriorityJob(function(){return _.L(function(O){return O.yield(LdH(t),0)})});
Y--;Y||G()};
p.networkFailures=0;p.onError$jscomp$5=function(t){return function(){t.networkFailures++;if(n.bypassNetworkless&&t.networkFailures===1)try{OTF(q,A,t.batchRequest,YqY({writeThenSend:!0},t.dangerousLogToVisitorSession,t.onSuccess$jscomp$3,t.onError$jscomp$5,E)),Kds=!1}catch(O){_.eK(O),K()}Y--;Y||G()}}(p);
try{OTF(q,A,p.batchRequest,YqY(n,p.dangerousLogToVisitorSession,p.onSuccess$jscomp$3,p.onError$jscomp$5,E)),Kds=!1}catch(t){_.eK(t),K()}}};
RxY=function(M,q,G,K,n,E){K=K===void 0?{}:K;var p=Math.round((0,_.d8)()),y={value:M.size},Y=new Map([].concat(_.Ui(M)));Y=_.k(Y);for(var A=Y.next();!A.done;A=Y.next()){var v=_.k(A.value).next().value,h=M.get(v);A=new Wd4;var t=q.config_||_.h0(),O=new iN,a=new ACw;_.DJ(a,1,t.innertubeContextHostLanguage);_.DJ(a,2,t.innertubeContextGeoLocation);_.Oh(a,16,t.innertubeContextClientNameFieldNumber);_.DJ(a,17,t.innertubeContextClientVersion);if(t.innertubeContextClientConfigInfo){var g=t.innertubeContextClientConfigInfo,
D=new CF;g.coldConfigData&&_.DJ(D,1,g.coldConfigData);g.appInstallData&&_.DJ(D,6,g.appInstallData);g.coldHashData&&_.DJ(D,3,g.coldHashData);g.hotHashData&&D.setHotHashData(g.hotHashData);_.Xe(a,62,D)}(g=_.Kj.devicePixelRatio)&&g!=1&&_.w8(a,65,_.Hv(g));g=MEe();g!==""&&_.DJ(a,54,g);g=qli();if(g.length>0){D=new dAi;for(var J=0;J<g.length;J++){var Z=new cr;Z.setKey(g[J].key);Pr(Z,2,vm4,o8(g[J].value));gM(D,15,cr,Z)}_.Xe(O,5,D)}ISs(t,a);DbY(O);ups(a);Jny(t,a);ZKy(a);_.w("start_client_gcf")&&bKy(a);_.R9("DELEGATED_SESSION_ID")&&
!_.w("pageid_as_header_web")&&(t=new Br,_.DJ(t,3,_.R9("DELEGATED_SESSION_ID")));!_.w("fill_delegate_context_in_gel_killswitch")&&(g=_.R9("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(D=_.t0(O,Br,3)||new Br,t=O,g=_.DJ(D,18,g),_.Xe(t,3,g));t=a;g=_.k(Object.entries(_.KD(_.R9("DEVICE",""))));for(D=g.next();!D.done;D=g.next())J=_.k(D.value),D=J.next().value,J=J.next().value,D==="cbrand"?_.DJ(t,12,J):D==="cmodel"?_.DJ(t,13,J):D==="cbr"?_.DJ(t,87,J):D==="cbrver"?_.DJ(t,88,J):D==="cos"?_.DJ(t,18,
J):D==="cosver"?_.DJ(t,19,J):D==="cplatform"&&_.Oh(t,42,QJe(J));O.setClient(a);_.Xe(A,1,O);if(a=Hly[v])a:{if(_.PX(a,Q2(a,FYy,1)))O=1;else if(a.getPlaylistId())O=2;else break a;_.Xe(A,4,a);a=A.getContext()||new iN;t=_.t0(a,Br,3)||new Br;g=new Iw;g.setToken(v);_.Oh(g,1,O);gM(t,12,Iw,g);_.Xe(a,3,t)}delete Hly[v];v=v==="visitorOnlyApprovedKey";h4Y()||_.Db(A,2,p);!v&&(O=_.R9("EVENT_ID"))&&(a=tc4(),t=new OpD,_.DJ(t,1,O),_.Db(t,2,a),_.Xe(A,5,t));yCi(K);if(_.w("jspb_serialize_with_worker")&&(O=_.fxi())&&
K.writeThenSend){_.wxy.set(C8F,{client:q,resolve:G,networklessOptions:K,isIsolated:n,useVSSEndpoint:E,dangerousLogToVisitorSession:v,requestsOutstanding:y});O.postMessage({op:"gelBatchToSerialize",batchRequest:bP(A),clientEvents:h,key:C8F});C8F++;break}if(h){O=[];for(a=0;a<h.length;a++)try{O.push(new uN(h[a]))}catch(V){_.eK(new _.bj("Transport failed to deserialize "+String(h[a])))}h=O}else h=[];h=_.k(h);for(O=h.next();!O.done;O=h.next())gM(A,3,uN,O.value);h={startTime:(0,_.d8)(),ticks:{},infos:{}};
A=A.serialize();h.ticks.geljspc=(0,_.d8)();_.w("log_jspb_serialize_latency")&&T2$("gel_jspb_serialize",h,{sampleRate:.1});_.atj(A,q,G,K,n,E,v,y)}};
_.atj=function(M,q,G,K,n,E,p,y){K=K===void 0?{}:K;y=y===void 0?{value:0}:y;E=Nky(E);K=YqY(K,p,function(Y){_.w("start_client_gcf")&&_.r8.addLowPriorityJob(function(){return _.L(function(A){return A.yield(LdH(Y),0)})});
y.value--;y.value||G()},function(){y.value--;
y.value||G()},n);
K.headers["Content-Type"]="application/json+protobuf";K.postBodyFormat="JSPB";K.postBody=M;OTF(q,E,"",K);Kds=!1};
yCi=function(M){_.w("always_send_and_write")&&(M.writeThenSend=!1)};
YqY=function(M,q,G,K,n){M={retry:!0,onSuccess:G,onError:K,networklessOptions:M,dangerousLogToVisitorSession:q,bypassMonitoring:!!n,headers:{},postBodyFormat:"",postBody:"",compress:_.w("compress_gel")||_.w("compress_gel_lr")};h4Y()&&(M.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.d8)())));return M};
pxD=function(M,q,G){h4Y()||(M.requestTimeMs=String(q));_.w("unsplit_gel_payloads_in_logs")&&(M.unsplitGelPayloadsInLogs=!0);!G&&(q=_.R9("EVENT_ID"))&&(G=tc4(),M.serializedClientEventId={serializedEventId:q,clientCounter:String(G)})};
tc4=function(){var M=_.R9("BATCH_CLIENT_COUNTER")||0;M||(M=Math.floor(Math.random()*65535/2));M++;M>65535&&(M=1);_.Vz("BATCH_CLIENT_COUNTER",M);return M};
kMu=function(M,q,G){if(G.videoId)var K="VIDEO";else if(G.playlistId)K="PLAYLIST";else return;M.credentialTransferTokenTargetId=G;M.context=M.context||{};M.context.user=M.context.user||{};M.context.user.credentialTransferTokens=[{token:q,scope:K}]};
B7F=function(M,q){var G=_.wP("il_payload_scraping")==="enable_il_payload_scraping";if(!_.sx("yt.logging.transport.enableScrapingForTest"))if(G)omu=[],_.Y5("yt.logging.transport.enableScrapingForTest",!0),_.Y5("yt.logging.transport.scrapedPayloadsForTesting",omu),_.Y5("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.Y5("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.Y5("yt.logging.transport.scrapeClientEvent",!0);else return;G=_.sx("yt.logging.transport.scrapedPayloadsForTesting");var K=_.sx("yt.logging.transport.payloadToScrape");q&&(q=_.sx("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(q.payload)())&&G.push(q);q=_.sx("yt.logging.transport.scrapeClientEvent");if(K&&K.length>=1)for(var n=0;n<K.length;n++)if(M&&M.payload[K[n]])if(q)G.push(M.payload);else{var E=void 0;G.push(((E=M)==null?void 0:E.payload)[K[n]])}_.Y5("yt.logging.transport.scrapedPayloadsForTesting",
G)};
h4Y=function(){return _.w("use_request_time_ms_header")||_.w("lr_use_request_time_ms_header")};
rjY=function(M,q){return _.w("transport_use_scheduler")===!1?_.lj(M,q):_.w("logging_avoid_blocking_during_navigation")||_.w("lr_logging_avoid_blocking_during_navigation")?_.Jp(_.r8,function(){if(_.ltF().currentState==="none")M();else{var G={};_.ltF().install((G.none={callback:M},G))}},q):_.Jp(_.r8,M,q)};
$YY=function(M){_.w("transport_use_scheduler")?_.r8.cancelJob(M):_.PR(M)};
LdH=function(M){var q,G,K,n,E,p,y,Y,A,v;return _.L(function(h){return h.nextAddress==1?(K=(q=M)==null?void 0:(G=q.responseContext)==null?void 0:G.globalConfigGroup,n=_.C(K,Xxj),p=(E=K)==null?void 0:E.hotHashData,y=_.C(K,P8e),A=(Y=K)==null?void 0:Y.coldHashData,(v=_.AL().resolve(_.WR(Zb)))?p?n?h.yield(ip$(v,p,n),2):h.yield(ip$(v,p),2):h.jumpTo(2):h.return()):A?y?h.yield(cCy(v,A,y),0):h.yield(cCy(v,A),0):h.jumpTo(0)})};
mYe=function(M,q){q=q===void 0?200:q;return M?q===300?Mcy:gms:q===300?qqy:Bke};
DY$=function(M){if(_.w("enable_web_tiered_gel")){M=Q24[M||""];var q,G,K,n=_.AL().resolve(_.WR(Zb))==null?void 0:(q=bN())==null?void 0:(G=q.loggingHotConfig)==null?void 0:(K=G.eventLoggingConfig)==null?void 0:K.payloadPolicies;if(n)for(q=0;q<n.length;q++)if(n[q].payloadNumber===M)return n[q]}};
IgF=function(M){M=Object.keys(M);M=_.k(M);for(var q=M.next();!q.done;q=M.next())if(q=q.value,Q24[q])return q};
ugu=function(M){switch(M){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}};
bly=function(M){return M==="gelDebuggingEvent"};
Nky=function(M){return(M===void 0?0:M)&&_.w("vss_through_gel_video_stats")?"video_stats":"log_event"};
xc=function(M,q,G,K){K=K===void 0?{}:K;var n={},E=Math.round(K.timestamp||(0,_.d8)());n.eventTimeMs=E<Number.MAX_SAFE_INTEGER?E:0;n[M]=q;M=_.Ap();n.context={lastActivityMs:String(K.timestamp||!isFinite(M)?-1:M)};K.sequenceGroup&&!_.w("web_gel_sequence_info_killswitch")&&(M=n.context,q=K.sequenceGroup,q={index:ItD(q),groupKey:q},M.sequence=q,K.endOfSequence&&delete U4[K.sequenceGroup]);_.w("web_tag_automated_log_events")&&(n.context.automatedLogEventSource=K.automatedLogEventSource);(K.sendIsolatedPayload?
Jjs:UYi)({endpoint:"log_event",payload:n,cttAuthInfo:K.cttAuthInfo,dangerousLogToVisitorSession:K.dangerousLogToVisitorSession},G)};
ItD=function(M){U4[M]=M in U4?U4[M]+1:0;return U4[M]};
_.ml=function(M,q,G){G=G===void 0?{}:G;var K=z6;_.fX("ytLoggingEventsDefaultDisabled",!1)&&z6===z6&&(K=null);xc(M,q,K,G)};
_.S1=function(){if(_.w("web_fp_via_jspb")){var M=!0;M=M===void 0?!1:M;var q=DAF;DAF=[];if(q){q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=G.value,M?xc(G.payloadName,G.payload,z6,G.options):_.ml(G.payloadName,G.payload,G.options)}SEe(void 0,!0);if(!_.w("web_fp_via_jspb_and_json"))return}SEe(void 0,!1)};
uYH=function(M,q){var G;if((G=q)==null?0:G.componentStack)return q;if(M=M.componentStack)q||(q={}),q.componentStack=M;return q};
JCi=function(){_.Gc(_.R9("ERRORS")||[],function(M){_.T6.apply(null,M)});
_.Vz("ERRORS",[])};
_.rM=function(M){_.T6(M)};
_.j1=function(M){_.T6(M,"WARNING")};
Zpj=function(M){M instanceof Error?_.T6(M):(M=_.VY(M)?JSON.stringify(M):String(M),M=new _.bj(M),M.name="RejectedPromiseError",_.j1(M))};
bpu=function(M,q,G,K,n,E){q=q===void 0?"Unknown file":q;G=G===void 0?0:G;var p=!1,y=DhH("log_window_onerror_fraction");if(y&&Math.random()<y)p=!0;else{y=document.getElementsByTagName("script");for(var Y=0,A=y.length;Y<A;Y++)if(y[Y].src.indexOf("/debug-")>0){p=!0;break}}p&&(p=!1,n?p=!0:(typeof M==="string"?y=M:ErrorEvent&&M instanceof ErrorEvent?(p=!0,y=M.message,q=M.filename,G=M.lineno,K=M.colno):(y="Unknown error",q="Unknown file",G=0),n=new _.bj(y),n.name="UnhandledWindowError",n.message=y,n.fileName=
q,n.lineNumber=G,isNaN(K)?delete n.columnNumber:n.columnNumber=K),_.w("wiz_enable_component_stack_propagation_killswitch")||(E=uYH(n,E)),E&&_.V2(n,E),p?_.T6(n):_.j1(n))};
_.T6=function(M,q,G,K,n,E,p,y){E=E===void 0?{}:E;E.name=G||_.R9("INNERTUBE_CONTEXT_CLIENT_NAME",1);E.version=K||_.R9("INNERTUBE_CONTEXT_CLIENT_VERSION");G=E;q=q===void 0?"ERROR":q;p=p===void 0?!1:p;q=q===void 0?"ERROR":q;p=p===void 0?!1:p;if(M&&(M.hasOwnProperty("level")&&M.level&&(q=M.level),_.w("console_log_js_exceptions")&&(K=[],K.push("Name: "+M.name),K.push("Message: "+M.message),M.hasOwnProperty("params")&&K.push("Error Params: "+JSON.stringify(M.params)),M.hasOwnProperty("args")&&K.push("Error args: "+
JSON.stringify(M.args)),K.push("File name: "+M.fileName),K.push("Stacktrace: "+M.stack),K=K.join("\n"),window.console.log(K,M)),!(UAi>=5))){K=[];n=_.k(xA4);for(E=n.next();!E.done;E=n.next()){E=E.value;try{E()&&K.push(E())}catch(D){}}K=[].concat(_.Ui(z4e),_.Ui(K));var Y=mAy(M);n=Y.message||"Unknown Error";E=Y.name||"UnknownError";var A=Y.stack||M.stacktrace||"Not available";if(A.startsWith(E+": "+n)){var v=A.split("\n");v.shift();A=v.join("\n")}v=Y.lineNumber||"Not available";Y=Y.fileName||"Not available";
var h=0;if(M.hasOwnProperty("args")&&M.args&&M.args.length)for(var t=0;t<M.args.length&&!(h=Bjw(M.args[t],"params."+t,G,h),h>=500);t++);else if(M.hasOwnProperty("params")&&M.params){var O=M.params;if(typeof M.params==="object")for(t in O){if(O[t]){var a="params."+t,g=Qe(O[t]);G[a]=g;h+=a.length+g.length;if(h>500)break}}else G.params=Qe(O)}if(K.length)for(t=0;t<K.length&&!(h=Bjw(K[t],"params.context."+t,G,h),h>=500);t++);navigator.vendor&&!G.hasOwnProperty("vendor")&&(G["device.vendor"]=navigator.vendor);
t={message:n,name:E,lineNumber:v,fileName:Y,stack:A,params:G,sampleWeight:1};G=Number(M.columnNumber);isNaN(G)||(t.lineNumber=t.lineNumber+":"+G);if(M.level==="IGNORED")M=0;else a:{M=Squ();G=_.k(M.messageWeights);for(K=G.next();!K.done;K=G.next())if(K=K.value,t.message&&t.message.match(K.messageRegExp)){M=K.weight;break a}M=_.k(M.callbackWeights);for(G=M.next();!G.done;G=M.next())if(G=G.value,G.callback(t)){M=G.weight;break a}M=1}t.sampleWeight=M;M=_.k(Tke);for(G=M.next();!G.done;G=M.next())if(G=
G.value,G.patternsForType[t.name])for(n=_.k(G.patternsForType[t.name]),K=n.next();!K.done;K=n.next())if(E=K.value,K=t.message.match(E.regexp)){t.params["params.error.original"]=K[0];n=E.groups;E={};for(v=0;v<n.length;v++)E[n[v]]=K[v+1],t.params["params.error."+n[v]]=K[v+1];t.message=G.messageFn(E);break}t.params||(t.params={});M=Squ();t.params["params.errorServiceSignature"]="msg="+M.messageWeights.length+"&cb="+M.callbackWeights.length;t.params["params.serviceWorker"]="false";_.Kj.document&&_.Kj.document.querySelectorAll&&
(t.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Rw(rCy,"sample")).constructor!==Rw&&(t.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(t);if(t.sampleWeight!==0&&!j2y.has(t.message)){if(p&&_.w("web_enable_error_204"))VcF(q===void 0?"ERROR":q,t);else{q=q===void 0?"ERROR":q;q==="ERROR"?(fA.publish("handleError",t),_.w("record_app_crashed_web")&&R4D===0&&t.sampleWeight===1&&(R4D++,p={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.w("report_client_error_with_app_crash_ks")||(p.systemHealth={crashData:{clientError:{logMessage:{message:t.message}}}}),_.ml("appCrashed",p)),fty++):q==="WARNING"&&fA.publish("handleWarning",t);if(_.w("kevlar_gel_error_routing")){p=q;y=y===void 0?{}:y;b:{M=_.k(Fdy);for(G=M.next();!G.done;G=M.next())if(fD(G.value.toLowerCase())){M=!0;break b}M=!1}if(M)y=void 0;else{G={stackTrace:t.stack};t.fileName&&(G.filename=t.fileName);M=t.lineNumber&&t.lineNumber.split?t.lineNumber.split(":"):[];M.length!==
0&&(M.length!==1||isNaN(Number(M[0]))?M.length!==2||isNaN(Number(M[0]))||isNaN(Number(M[1]))||(G.lineNumber=Number(M[0]),G.columnNumber=Number(M[1])):G.lineNumber=Number(M[0]));M={level:"ERROR_LEVEL_UNKNOWN",message:t.message,errorClassName:t.name,sampleWeight:t.sampleWeight};p==="ERROR"?M.level="ERROR_LEVEL_ERROR":p==="WARNING"&&(M.level="ERROR_LEVEL_WARNNING");G={isObfuscated:!0,browserStackInfo:G};y.pageUrl=window.location.href;y.kvPairs=[];_.R9("FEXP_EXPERIMENTS")&&(y.experimentIds=_.R9("FEXP_EXPERIMENTS"));
K=_.R9("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!DhH("web_disable_gel_stp_ecatcher_killswitch")&&K)for(n=_.k(Object.keys(K)),E=n.next();!E.done;E=n.next())E=E.value,y.kvPairs.push({key:E,value:String(K[E])});if(K=t.params)for(n=_.k(Object.keys(K)),E=n.next();!E.done;E=n.next())E=E.value,y.kvPairs.push({key:"client."+E,value:String(K[E])});K=_.R9("SERVER_NAME");n=_.R9("SERVER_VERSION");K&&n&&(y.kvPairs.push({key:"server.name",value:K}),y.kvPairs.push({key:"server.version",value:n}));y={errorMetadata:y,
stackTrace:G,logMessage:M}}y&&(_.ml("clientError",y),(p==="ERROR"||_.w("errors_flush_gel_always_killswitch"))&&_.S1())}_.w("suppress_error_204_logging")||VcF(q,t)}try{j2y.add(t.message)}catch(D){}UAi++}}};
VcF=function(M,q){var G=q.params||{};M={urlParams:{a:"logerror",t:"jserror",type:q.name,msg:q.message.substr(0,250),line:q.lineNumber,level:M,"client.name":G.name},postParams:{url:_.R9("PAGE_NAME",window.location.href),file:q.fileName},method:"POST"};G.version&&(M["client.version"]=G.version);if(M.postParams){q.stack&&(M.postParams.stack=q.stack);q=_.k(Object.keys(G));for(var K=q.next();!K.done;K=q.next())K=K.value,M.postParams["client."+K]=G[K];if(G=_.R9("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(q=
_.k(Object.keys(G)),K=q.next();!K.done;K=q.next())K=K.value,M.postParams[K]=G[K];(G=_.R9("LAVA_VERSION"))&&(M.postParams["lava.version"]=G);G=_.R9("SERVER_NAME");q=_.R9("SERVER_VERSION");G&&q&&(M.postParams["server.name"]=G,M.postParams["server.version"]=q)}_.cR(_.R9("ECATCHER_REPORT_HOST","")+"/error_204",M)};
_.Hp4=function(M,q){q=q===void 0?"ERROR":q;var G=G===void 0?{}:G;var K=_.sx("ytbin.polymer.shared.lib.tampering.info");K&&(K=K())&&(G["params.tamperingInfo"]=K.sort().join(","));_.T6(M,q,void 0,void 0,!0,G)};
_.V2=function(M){var q=_.rW.apply(1,arguments);M.args||(M.args=[]);Array.isArray(M.args)&&M.args.push.apply(M.args,_.Ui(q))};
e4e=function(M){M.level="IGNORED"};
$Aj=function(M,q){z4e.push(M);q();z4e.pop()};
Hr=function(M,q){for(var G in q)q.hasOwnProperty(G)&&(M=_.F4(M,G,q[G]));return M};
_.sZH=function(M,q,G){G=G===void 0?!1:G;if(!M)return null;if(M.adInfoDialogEndpoint||M.backstageImageUploadEndpoint||M.confirmDialogEndpoint||M.clientActionEndpoint||M.createBackstagePostDialogEndpoint||M.createCommentReplyDialogEndpoint||M.flowEndpoint||M.guideBuilderEndpoint||M.liveChatDialogEndpoint||M.modalEndpoint||M.openPopupAction||M.shareEndpoint||M.shareEntityEndpoint||M.showLiveChatItemEndpoint||M.subscriptionManagerEndpoint||M.unlimitedCreateFamilyEndpoint||M.unlimitedFamilyFlowEndpoint||
M.updateCommentDialogEndpoint||M.updateCommentReplyDialogEndpoint||M.userFeedbackEndpoint||M.videoEditorEndpoint||M.ypcCancelSurveyEndpoint)return q=_.tL("polymer_report_client_url_requested_rate"),!G&&Math.random()<q&&_.j1(new _.bj("urlForEndpoint used on client endpoint",M)),null;var K=_.tL("polymer_report_missing_web_navigation_endpoint_rate");if(M.liveChatEndpoint||M.liveChatReplayEndpoint)K=0;if(!M.commandMetadata&&!M.clickTrackingParams&&Math.random()<K){var n={},E;for(E in M)n[E]="1";_.j1(new _.bj("Missing navigation data",
n))}n="";if(M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url)n=M.commandMetadata.webCommandMetadata.url;else if(M.searchEndpoint)Math.random()<K&&_.j1(new _.bj("Should not manually handle search",M)),n="/results?search_query="+encodeURIComponent(M.searchEndpoint.query).replace(/%20/g,"+"),M.searchEndpoint.params&&(n+="&sp="+M.searchEndpoint.params);else if(M.watchEndpoint)Math.random()<K&&_.j1(new _.bj("Should not manually handle watch",M)),n="/watch?v="+
M.watchEndpoint.videoId,M.watchEndpoint.playlistId&&(n+="&list="+M.watchEndpoint.playlistId),M.watchEndpoint.index&&(n+="&index="+M.watchEndpoint.index),M.watchEndpoint.startTimeSeconds&&(n+="&t="+M.watchEndpoint.startTimeSeconds);else if(M.browseEndpoint)K=M.browseEndpoint.browseId,(E=M.browseEndpoint.canonicalBaseUrl)?n=E:K&&(n=K.substr(0,2),n=n==="FE"?K==="FEwhat_to_watch"?"/":K==="FEmy_videos"?"/my_videos":"/feed/"+K.substr(2):n==="VL"?"/playlist?list="+K.substr(2):"/channel/"+K),n&&M.browseEndpoint.query&&
(n=Hr(n+"/search",{query:M.browseEndpoint.query})),n&&M.browseEndpoint.params&&(n=Hr(n,{params:M.browseEndpoint.params}));else{if(M.urlEndpoint)return M.urlEndpoint.url;M.signInEndpoint?(n="https://accounts.google.com/ServiceLogin",K={},_.xP.extend(K,q||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),q=K):M.uploadEndpoint?n="//www.youtube.com/upload":M.liveChatEndpoint?(n=M.liveChatEndpoint,K=_.xP.clone(n),_.VY(n.continuation)&&(E=Object.keys(n.continuation)[0],
K.continuation=n.continuation[E].continuation),n=Hr("/youtubei/v1/live_chat/get_live_chat",K)):M.liveChatReplayEndpoint?(n=_.xP.clone(M.liveChatReplayEndpoint),n.currentPlayerState&&(_.xP.extend(n,n.currentPlayerState),delete n.currentPlayerState),n=Hr("/youtubei/v1/live_chat/get_live_chat_replay",n)):M.liveChatItemContextMenuEndpoint?n=Hr("/youtubei/v1/live_chat/get_item_context_menu",M.liveChatItemContextMenuEndpoint):M.liveChatPurchaseMessageEndpoint?n=Hr("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
M.liveChatPurchaseMessageEndpoint):M.openSuperStickerBuyFlowCommand?n=Hr("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",M.openSuperStickerBuyFlowCommand):M.videoEditEndpoint?n=Hr("/edit",{video_id:M.videoEditEndpoint.videoId}):M.liveDashboardEndpoint?n=M.liveDashboardEndpoint.videoId?Hr("/live_dashboard",{v:M.liveDashboardEndpoint.videoId}):"/live_dashboard":M.signalNavigationEndpoint&&M.signalNavigationEndpoint.signal&&M.signalNavigationEndpoint.signal==="WEBCAM"?n="/webcam":M.getPdgBuyFlowCommand&&
(n=Hr(M.getPdgBuyFlowCommand.buyflowApiPath,{params:M.getPdgBuyFlowCommand.params}))}return n||G?Hr(n,q||{}):(_.j1(new _.bj("Error: Can't construct url for endpoint","keys:"+Object.keys(M).sort().join(","),M)),null)};
Msy=function(M){if(M){if(M.browseEndpoint)return!!M.browseEndpoint.nofollow;if(M.watchEndpoint)return!!M.watchEndpoint.nofollow;if(M.urlEndpoint)return!!M.urlEndpoint.nofollow}return!1};
_.GSe=function(M,q){var G=q+M,K=q0F.get(G);if(K)return K;M=q+"-"+M.replace(/([A-Z])/g,"-$1").toLowerCase();q0F.set(G,M);return M};
KgH=function(M){var q=_.rU(M,"action")||_.rU(M,"command")||_.rU(M,"endpoint");if(!q)return null;q=_.GSe(q,"yt");_.C(M,_.sQ)&&(q+="-"+_.C(M,_.sQ).signal.toLowerCase().replace(/_/g,"-"));return q};
kSY=function(M){try{var q=Object.keys(M)}catch(n){return[]}for(var G=0;G<q.length;G++){var K=q[G];if(ney.test(K)||Ee4.test(K))return NxH(M[K])}return[]};
NxH=function(M){return M.command?[M.command]:M.onExecutionAction?[M.onExecutionAction]:M.onResponseReceivedCommand?[M.onResponseReceivedCommand]:M.updateFlowCommand?[M.updateFlowCommand]:M.clientActions?M.clientActions:M.action?[M.action]:M.actions||M.commands||M.onResponseReceivedActions||M.onResponseReceivedCommands||M.onResponseReceivedEndpoints||[]};
y$Y=function(M,q){q=q===void 0?!1:q;var G=_.AL().resolve(_.WR(M6));G||(G=new pOD,_.AL().addProvider({provide:M6,useValue:G}));return G&&M&&!_.xP.isEmpty(M)?G.getUrl(M,q):""};
Lge=function(M,q,G){G=G===void 0?"":G;if(q){M.data=q;var K=y$Y(q);K?(Vk(M,K),Msy(q)||!LD(K)?M.rel="nofollow":M.removeAttribute("rel"),_.C(q,_.q6)&&_.C(q,_.q6).target==="TARGET_NEW_WINDOW"?M.target="_blank":G?M.target=G:M.removeAttribute("target")):(M.removeAttribute("href"),M.removeAttribute("rel"),M.removeAttribute("target"))}};
_.kI=function(M,q){var G=NT;if(bQ())Y0w(M,function(){var E=_.rW.apply(0,arguments);j_(G,function(){q.apply(null,_.Ui(E))})});
else{var K=_.GC.getInstance(),n=Ias(q);oDF(function(){n.value=q});
_.SK(function(){var E={},p=_.KI(K,(E[M]=function(){var y=_.rW.apply(0,arguments);j_(G,function(){n.value.apply(n,_.Ui(y))})},E));
return function(){var y={};_.N6(K,(y[M]="",y),p)}})}};
_.pI=function(M,q){return Wgs(M,!1,q)};
_.yw=function(M,q){return Wgs(M,!0,q)};
Wgs=function(M,q,G){return bQ()?A$D(M,q,G):doF(M,q,G)};
doF=function(M,q,G){return T_(function(){return A$D(M,q,G)})};
A$D=function(M,q,G){var K=OxF(function(n){K.value=n;var E=function(){var p=dY(null);try{return G==null?void 0:G(n)}finally{dY(p)}}();
return function(){E==null||E()}});
K.__expectedTagName=M;K.__optional=q;K.isIdom=!bQ();return K};
veD=function(M){var q=NT,G=Je;return{getFn:function(){return function(K){if(!q.isDisposed){var n=function(){return M(K)};
x_(function(){return _.oY(n)},G)!==!0&&K.stopPropagation()}}}}};
hVy=function(M){if(typeof M.children==="function")return M.children(),null;M=_.k(M.children);for(var q=M.next();!q.done;q=M.next())q=q.value,q();return null};
tsu=function(M){var q;return((q=M.prototype)==null?void 0:q.render)===void 0};
OLj=function(M){return M.items.map(M.children)};
ChF=function(M,q,G){G=G===void 0?!1:G;x_(function(){return wOy(M,q,G)})};
wOy=function(M,q,G){var K=null;IY++;G=(G===void 0?0:G)?aTs:oej;try{K=G(M,function(){LI(q)}),uQ(!1)}catch(n){throw uQ(!0),n;
}return K===null?M:K};
LI=function(M){if(M!==void 0&&M!==null)if(M instanceof cM)for(var q=M$;q$()!=null&&K3w in q$()&&q.contains(q$());)nX();else if(Array.isArray(M))for(q=_.k(M),M=q.next();!M.done;M=q.next())LI(M.value);else if(M instanceof gW||M instanceof yR||"function"==typeof _.Y2&&M instanceof _.Y2)Gyj(M.toString());else if(_.h3(M)){if(q$()!==M){var G,K;q=(K=(G=Je)==null?void 0:G.name)!=null?K:"unknown";throw Error("hc`"+M.tagName+"`"+q);}nX()}else if(M!=null&&M.contentKind===CX||M instanceof Rv||t4u(M))for(q=wGF(M),
q=Array.from(q.childNodes),q=_.k(q),M=q.next();!M.done;M=q.next())M$.appendChild(M.value),nX();else if(ZC(M)&&(M=M.toString()),G=typeof M,G==="boolean"||G==="number"||G==="string")Gyj(M);else if(typeof M==="function"){q=M$;var n=q$();n&&(n._isSignalTextNode||n._isSafeOrSanitizedHtmlNode)||RSy(q,n,M);nX()}else if(M.type===OLj)LI(M.type(Object.assign({},M.props,{children:M.children[0]})));else{Qz.beforeVisit(M);if(typeof M.type==="string"){a:{M.__open||fyw(M.type,M.props.idomKey);n=M$;for(q in M.props)if(M.props[q]!==
lTY){var E=M.props[q];G=k2;G.push(q);G.push(E)}q=Y_.attributes;q=q===void 0?YI:q;E=M$;G=e_(E);qUH(E,G,q);V4D(n,M.props,!0);if((M.props.skip||M.props.skipchildren)&&M$.hasChildNodes())KX=M$.lastChild;else{if(M.type==="style"&&ch4(M.children)===null){KX=M$.lastChild;q=void 0;break a}LI(M.children)}FhD();M.__open&&(M.__open=!1);Loy(n,M.props);q=n}return q}if(M.type===_.dU)LI(M.children);else if(!XOF(M)){q=M;try{PhY(q)}catch(p){M=p,(E=Y_.handleError)==null||E.call.apply(E,[Y_].concat(_.Ui(V5(M,(n=q.type)==
null?void 0:n.TAG_NAME))))}q.__open&&(FhD(),q.__open=!1)}}};
iLH=function(M,q){var G;tsu(M)?G=new Dk(q,M):G=new M(q);G.__type=M;G.__updateContext={nextState:G.state,isForced:!1};return G};
PhY=function(M){var q=M.type,G=q.TAG_NAME;if(q===hVy)M.props.children=M.children,q(M.props);else{M.children.length>0&&(M.props.children=M.children);var K;(K=M.props).idomKey||(K.idomKey=q);if(G){var n=fyw(G,M.props.idomKey);M.__open=!0;var E=n.__instance}E||(E=iLH(q,M.props),E.props=null,n&&(n.__instance=E,E.el=n));var p;G=((p=E.__updateContext)!=null?p:{nextState:E.state,isForced:!1}).nextState;E.__updateContext=void 0;q.getDerivedStateFromProps&&(G=q.getDerivedStateFromProps(M.props,G));E.props=
M.props;E.state=G;p=function(){var y=E;Qz.beforeRender(y);var Y=y.render(y.props);Qz.afterRender(y,Y);Y?(y.props.idomKey&&(Y.props.idomKey=y.props.idomKey),y=Y):y=void 0;if(Y=y)if(Y.__open=M.__open,y=LI(Y),M.__open=Y.__open,!q.TAG_NAME)if(y)q.TAG_NAME=y.tagName.toLowerCase(),y.__instance=E,E.el=y;else{var A;if((A=E.hooks)==null?0:A.length){var v;(v=Y_.handleError)==null||v.call.apply(v,[Y_].concat(_.Ui(V5(Error("od")))))}}E.didPatch();Qz.didPatch(E)};
(G=E.functionComponent)?YQY(G,p,E.props.debugInstance):p()}};
XOF=function(M){var q=M.type;if(!tsu(q)||q===hVy||q.componentType===ZP)return!1;M.props.children=M.children.length>1?M.children:M.children[0];var G,K=(G=M.props.idomKey)!=null?G:M.type,n;if(q$()&&((n=q$()[lf])==null?void 0:n.key)===K){var E=q$(),p=E[lf];if(!p)throw Error("gc`"+E.tagName);var y;(y=p.updateSignalsFromIdomProps)==null||y.call(p,M.props);c$j(p);return!0}if(gei.has(q.name))throw y=q.name,q=(p=(E=Je)==null?void 0:E.name)!=null?p:"unknown",Error("fc`"+y+"`"+q);eSY(M.type,M.props,M.children);
M.props.renderedFromIdom=!0;(y=YQY(M.type,function(){return m3e(M.type,M.props)},M.props.debugInstance))&&Bxw(y);
return!0};
QZi=function(M){for(var q=0;q<PM(M).length;q++)nX()};
c$j=function(M){var q=ITj();if(q)QZi(q);else for(var G=0;G<M.numNodes;G++)(q=ITj())?QZi(q):nX()};
ITj=function(){var M;return(M=q$()[lf])==null?void 0:M.sourceDynamicRange};
Bxw=function(M){M=AhY(M);M=Array.isArray(M)?M:[M];M=_.k(M);for(var q=M.next();!q.done;q=M.next())M$.insertBefore(q.value,q$()),nX()};
Dos=function(){var M=Th4(),q=T_(function(){return{value:0}});
return[q.value,function(G){if(I9!==null){var K;(K=Y_.handleError)==null||K.call.apply(K,[Y_].concat(_.Ui(V5(Error("pd")))))}q.value=typeof G==="function"?G(q.value):G;M.__updateContext={nextState:M.state,isForced:!0};G=_.k_(M.effectContext);K=vM(!1);try{if(M.el){var n,E={},p=(E.props=M.props,E.type=M.__type,E.children=(n=M.props.children)!=null?n:[],E[A3]=!0,E);try{ChF(M.el,p,!0)}catch(A){var y,Y;(Y=Y_.handleError)==null||Y.call.apply(Y,[Y_].concat(_.Ui(V5(A,(y=M.__type)==null?void 0:y.TAG_NAME))))}}}finally{vM(K),
_.k_(G)}}]};
_.WU=function(M,q){var G=NT,K=function(n){j_(G,function(){q(n)})};
window.addEventListener(M,K,void 0);_.m_(function(){window.removeEventListener(M,K,void 0)})};
_.d_=function(M){var q=NT;return function(G){var K,n=(K=M.observer)!=null?K:_.AL().resolve(A5);K=umj(G);var E=[];M.showOption&&E.push(n.observe(G,function(){j_(q,function(){M.visibilityCallback(!0,G)})},M.showOption));
M.hideOption&&E.push(n.observe(G,function(){j_(q,function(){M.visibilityCallback(!1,G)})},M.hideOption));
M.prescanOption&&M.prescanCallback&&E.push(n.observe(G,function(){j_(q,function(){M.prescanCallback()})},M.prescanOption));
var p;K.visibilityMonitorKeys=((p=K.visibilityMonitorKeys)!=null?p:[]).concat(E)}};
umj=function(M){var q;return(q=M.polymerController)!=null?q:M};
UoD=function(M,q){var G=J$w;return _.W(_.dU,null,dly(Y_.enableLazyTsx,function(){return _.W(ZL$,{id:G,value:M,children:q})},function(){var K=bLy(G,M);
LW(K);K=_.k_(K);try{return q()}finally{_.k_(K)}}))};
ZL$=function(M){var q=M.children;M=bLy(M.id,M.value);LW(M);M=_.k_(M);try{return _.W(_.dU,null,gU(q()))}finally{_.k_(M)}};
bLy=function(M,q){return Object.assign(Object.create(xoy),{id:M,contextValue:q})};
zVD=function(M){var q,G=NT;_.rY(function(){var K=_.k_(G),n=vM(!q);try{if(q)ChF(q,M.children(),!0);else if(q=gU(M.children()),!(q instanceof Element))throw Error("qd");}finally{vM(n),_.k_(K)}},"f");
return q};
_.moy=function(M,q){var G;q=S_(function(){var K=vM(!0);IY++;try{G=PM(M()),uQ(!1)}catch(n){throw uQ(!0),n;}finally{vM(K)}},q===void 0?!1:q);
return[G,q]};
Txj=function(M){var q=new S0e;q.abort(M);return q.signal};
r$H=function(){if(this.aborted){var M;throw(M=this.reason)!=null?M:new DOMException("signal is aborted without reason","AbortError");}};
RVy=function(M){var q=new S0e;M=_.k(M);for(var G=M.next();!G.done;G=M.next())if(G=G.value,G.aborted){q.abort(G.reason);break}else jZY.set(q.signal,q),Vsy.add(G,q.signal);return q.signal};
fTj=function(){for(var M=_.k(Vsy.get(this)),q=M.next();!q.done;q=M.next())jZY.get(q.value).abort(this.reason)};
FgF=function(M){var q=new S0e;setTimeout(function(){q.abort(new DOMException("signal timed out","TimeoutError"))},M);
return q.signal};
HLe=function(){var M,q;return{promise:new Promise(function(G,K){M=G;q=K}),
resolve:M,reject:q}};
$oj=function(M){var q=HLe(),G=q.promise;eVw.set(M,{promise:G,resolve:q.resolve,reject:q.reject});vU||(vU=[],queueMicrotask(function(){var K=[].concat(_.Ui(vU));vU=null;var n=zi().loadMultiple(K);K=_.k(K);for(var E=K.next();!E.done;E=K.next())E=E.value,n[E].then(eVw.get(E).resolve,eVw.get(E).reject)}));
vU.push(M);return G};
Mbw=function(M){M=M.buf.charCodeAt(M.pos++);return sUy[M]};
h5=function(M){var q=0,G=0;do{var K=Mbw(M);q|=(K&31)<<G;G+=5}while(K&32);return q<0?q+4294967296:q};
GhD=function(M,q,G,K){var n=!0;n=n===void 0?!1:n;q=q===void 0?!1:q;K=K===void 0?{}:K;var E=K.cssRowKey||"",p=K.combinedSignature||"";!E&&window&&window._F_cssRowKey&&(E=window._F_cssRowKey,!p&&window._F_combinedSignature&&(p=window._F_combinedSignature));if(E&&typeof window._F_installCss!=="function")throw Error("Ad");var y=K.loaderClass||_.t5;M=J0y(M===void 0?"base-js":M);q=new y(wDD(bFY("",M)),E,p,n,q);n=K.useCors||M&&M.hasAttribute("crossorigin");M=K.corsMode||M&&M.getAttribute("crossorigin");
n&&(q.useCors_=n);M&&(q.corsMode_=M);K.urlMaxLength&&(q.urlMaxLength=K.urlMaxLength);G&&(q.insertPos=G);K.fetchPriority&&(q.fetchPriority=K.fetchPriority);var Y=zi();Y.JSC$10058_loader_=q;Y.setBatchModeEnabled(!0);_.qzi=K.batchingStrategy==="BATCH"?$oj:function(A){return Promise.resolve(Y.load(A))}};
Ens=function(M,q,G){KGj(M,q);M[q][nnF].unshift(G)};
KGj=function(M,q){if(!M[q]||!M[q][nnF]){var G=M[q],K=G?[G]:[];M[q]=function(){for(var n=_.k(K),E=n.next();!E.done;E=n.next())E.value.apply(this,arguments)};
M[q][nnF]=K}};
NIY=function(M){if(!M)return[];var q=[];M=_.k(M);for(var G=M.next();!G.done;G=M.next())G=G.value,Array.isArray(G)?q.push.apply(q,_.Ui(NIY(G))):q.push(G);return q};
_.w_=function(M,q){if(M&&khy.test(M)||M==="//")return M;if(p3u===void 0){p3u=!1;try{var G=new URL("b","http://a");G.pathname="c%20d";p3u=G.href==="http://a/c%20d"}catch(K){}}q||(q=document.baseURI||window.location.href);if(p3u)try{return(new URL(M,q)).href}catch(K){return M}OQ||(OQ=document.implementation.createHTMLDocument("temp"),OQ.base=OQ.createElement("base"),OQ.head.appendChild(OQ.base),OQ.anchor=OQ.createElement("a"),OQ.body.appendChild(OQ.anchor));OQ.base.href=q;OQ.anchor.href=M;return OQ.anchor.href||
M};
LGF=function(M,q){return M.replace(yYF,function(G,K,n,E){return K+"'"+_.w_(n.replace(/["']/g,""),q)+"'"+E})};
YzD=function(M){return M.substring(0,M.lastIndexOf("/")+1)};
dQy=function(){WG4=!1;for(var M=CI.length,q=0;q<M;q++){var G=CI[q];if(G)try{G()}catch(K){setTimeout(function(){throw K;})}}CI.splice(0,M);
AYH+=M};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(M){console.log("["+M.is+"]: registered")};
hYy=function(M){vnu.push(M)};
ak=function(M){return tby[M]||(tby[M]=M.indexOf("-")<0?M:M.replace(O5j,function(q){return q[1].toUpperCase()}))};
ok=function(M){return tby[M]||(tby[M]=M.replace(w3D,"-$1").toLowerCase())};
C_F=function(M,q){var G=q.parentInfo&&C_F(M,q.parentInfo);if(G)for(M=G.firstChild,G=0;M;M=M.nextSibling){if(q.parentIndex===G++)return M}else return M};
a$D=function(M,q){M=M._methodHost||M;return function(G){if(M[q])M[q](G,G.detail);else console.warn("listener method `"+q+"` not defined")}};
lR=function(M){return M.indexOf(".")>=0};
Xn=function(M){var q=M.indexOf(".");return q===-1?M:M.slice(0,q)};
on$=function(M,q){return M.indexOf(q+".")===0};
PU=function(M,q){return q.indexOf(M+".")===0};
iR=function(M,q,G){return q+G.slice(M.length)};
l$w=function(M,q){return M===q||on$(M,q)||PU(M,q)};
cU=function(M){if(Array.isArray(M)){for(var q=[],G=0;G<M.length;G++)for(var K=M[G].toString().split("."),n=0;n<K.length;n++)q.push(K[n]);return q.join(".")}return M};
X3y=function(M){return Array.isArray(M)?cU(M).split("."):M.toString().split(".")};
g_=function(M,q,G){q=X3y(q);for(var K=0;K<q.length;K++){if(!M)return;M=M[q[K]]}G&&(G.path=q.join("."));return M};
P_4=function(M,q,G){var K=X3y(q),n=K[K.length-1];if(K.length>1){for(q=0;q<K.length-1;q++)if(M=M[K[q]],!M)return;M[n]=G}else M[q]=G;return K.join(".")};
i5i=function(M,q,G){var K=M[q];if(!K)K=M[q]={};else if(!M.hasOwnProperty(q)&&(K=M[q]=Object.create(M[q]),G))for(var n in K)for(M=K[n],q=K[n]=Array(M.length),G=0;G<M.length;G++)q[G]=M[G];return K};
Qw=function(M,q,G,K,n,E){if(q){var p=!1,y=BU++,Y;for(Y in G){var A=n?Xn(Y):Y;if(A=q[A])for(var v=0,h=A.length,t=void 0;v<h&&(t=A[v]);v++)t.info&&t.info.lastRun===y||n&&!cYD(Y,t.trigger)||(t.info&&(t.info.lastRun=y),t.fn(M,Y,G,K,t.info,n,E),p=!0)}return p}return!1};
cYD=function(M,q){if(q){var G=q.name;return G==M||!(!q.structured||!on$(G,M))||!(!q.wildcard||!PU(G,M))}return!0};
gny=function(M,q,G,K,n){q=typeof n.method==="string"?M[n.method]:n.method;G=n.property;q?q.call(M,M.__data[G],K[G]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")};
BIY=function(M,q,G,K){G={value:G,queueProperty:!0};K&&(G.path=K);(0,_.Ik)(M).dispatchEvent(new CustomEvent(q,{detail:G}))};
QUy=function(M,q,G,K,n,E){E=(K=(E?Xn(q):q)!=q?q:null)?g_(M,K):M.__data[q];K&&E===void 0&&(E=G[q]);BIY(M,n.eventName,E,K)};
I$e=function(M,q,G,K,n){G=M.__data[q];Dy&&(G=Dy(G,n.attrName,"attribute",M));M._propertyToAttribute(q,n.attrName,G)};
uT4=function(M){var q=M.constructor.__orderedComputedDeps;if(!q){q=new Map;for(var G=M.__computeEffects,K=DQu(M),n=K.counts,E=K.ready,p=K.total;K=E.shift();)q.set(K,q.size),(K=G[K])&&K.forEach(function(y){y=y.info.methodInfo;--p;--n[y]===0&&E.push(y)});
p!==0&&console.warn("Computed graph for "+M.localName+" incomplete; circular?");M.constructor.__orderedComputedDeps=q}return q};
DQu=function(M){var q=M.__computeInfo,G={};M=M.__computeEffects;var K=[],n=0,E;for(E in q){var p=q[E];n+=G[E]=p.args.filter(function(Y){return!Y.literal}).length+(p.dynamicFn?1:0)}for(var y in M)q[y]||K.push(y);
return{counts:G,ready:K,total:n}};
Z5y=function(M,q,G,K,n){q=JYF(M,q,G,K,n);if(q===uR)return!1;n=n.methodInfo;if(M.__dataHasAccessor&&M.__dataHasAccessor[n])return M._setPendingProperty(n,q,!0);M[n]=q;return!1};
xQe=function(M,q,G,K,n,E,p){G.bindings=G.bindings||[];K={kind:K,target:n,parts:E,literal:p,isCompound:E.length!==1};G.bindings.push(K);K.target&&K.kind!="attribute"&&K.kind!="text"&&!K.isCompound&&K.parts[0].mode==="{"&&(G=K.parts[0],E=G.negate,K.listenerEvent=G.event||ok(n)+"-changed",K.listenerNegate=E);n=q.nodeInfoList.length;for(G=0;G<K.parts.length;G++){var y=K.parts[G];y.compoundIndex=G;E=M;p=q;var Y=K,A=y,v=n;if(!A.literal)if(Y.kind==="attribute"&&Y.target[0]==="-")console.warn("Cannot set attribute "+
Y.target+' because "-" is not a valid attribute starting character');else for(y=A.dependencies,Y={index:v,binding:Y,part:A,evaluator:E},A=0;A<y.length;A++)v=y[A],typeof v=="string"&&(v=b5j(v),v.wildcard=!0),E._addTemplatePropertyEffect(p,v.rootProperty,{fn:UQD,info:Y,trigger:v})}};
UQD=function(M,q,G,K,n,E,p){p=p[n.index];var y=n.binding,Y=n.part;E&&Y.source&&q.length>Y.source.length&&y.kind=="property"&&!y.isCompound&&p.__isPropertyEffectsClient&&p.__dataHasAccessor&&p.__dataHasAccessor[y.target]?(G=G[q],q=iR(Y.source,y.target,q),p._setPendingPropertyOrPath(q,G,!1,!0)&&M._enqueueClient(p)):(q=n.evaluator._evaluateBinding(M,Y,q,G,K,E),q!==uR&&(y.isCompound&&(G=p.__dataCompoundStorage[y.target],G[Y.compoundIndex]=q,q=G.join("")),y.kind==="attribute"||y.target!=="textContent"&&
(y.target!=="value"||p.localName!=="input"&&p.localName!=="textarea")||(q=q==void 0?"":q),Y=q,Dy&&(Y=Dy(Y,y.target,y.kind,p)),y.kind=="attribute"?M._valueToNodeAttribute(p,Y,y.target):(y=y.target,p.__isPropertyEffectsClient&&p.__dataHasAccessor&&p.__dataHasAccessor[y]?p.__readOnly&&p.__readOnly[y]||p._setPendingProperty(y,Y)&&M._enqueueClient(p):M._setUnmanagedPropertyToNode(p,y,Y))))};
zY4=function(M,q,G){if(G.listenerEvent){var K=G.parts[0];M.addEventListener(G.listenerEvent,function(n){var E=G.target,p=K.source,y=K.negate,Y=n.detail,A=Y&&Y.path;A?(p=iR(E,p,A),n=Y&&Y.value):n=n.currentTarget[E];q.__readOnly&&q.__readOnly[p]||!q._setPendingPropertyOrPath(p,y?!n:n,!0,!!A)||Y&&Y.queueProperty||q._invalidateProperties()})}};
mQy=function(M,q,G,K,n,E){E=q.static||E&&(typeof E!=="object"||E[q.methodName]);n={methodName:q.methodName,args:q.args,methodInfo:n,dynamicFn:E};for(var p=0,y=void 0;p<q.args.length&&(y=q.args[p]);p++)y.literal||M._addPropertyEffect(y.rootProperty,G,{fn:K,info:n,trigger:y});E&&M._addPropertyEffect(q.methodName,G,{fn:K,info:n});return n};
JYF=function(M,q,G,K,n){K=M._methodHost||M;var E=K[n.methodName];if(E)return M=M._marshalArgs(n.args,q,G),M===uR?uR:E.apply(K,M);n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")};
Szu=function(M){for(var q="",G=0;G<M.length;G++)q+=M[G].literal||"";return q};
jUw=function(M){if(M=M.match(/([^\s]+?)\(([\s\S]*)\)/)){var q={methodName:M[1],static:!0,args:TIi};return M[2].trim()?rY$(M[2].replace(/\\,/g,"&comma;").split(","),q):q}return null};
rY$=function(M,q){q.args=M.map(function(G){G=b5j(G);G.literal||(q.static=!1);return G},this);
return q};
b5j=function(M){M=M.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var q={name:M,value:"",literal:!1},G=M[0];G==="-"&&(G=M[1]);G>="0"&&G<="9"&&(G="#");switch(G){case "'":case '"':q.value=M.slice(1,-1);q.literal=!0;break;case "#":q.value=Number(M),q.literal=!0}q.literal||(q.rootProperty=Xn(M),q.structured=lR(M),q.structured&&(q.wildcard=M.slice(-2)==".*",q.wildcard&&(q.name=M.slice(0,-2))));return q};
Vbi=function(M,q,G){M=g_(M,G);M===void 0&&(M=q[G]);return M};
RYe=function(M,q,G,K){K={indexSplices:K};J5&&!M._overrideLegacyUndefined&&(q.splices=K);M.notifyPath(G+".splices",K);M.notifyPath(G+".length",q.length);J5&&!M._overrideLegacyUndefined&&(K.indexSplices=[])};
Zy=function(M,q,G,K,n,E){RYe(M,q,G,[{index:K,addedCount:n,removed:E,object:q,type:"splice"}])};
f$$=function(M){M=LGF((M.body?M.body:M).textContent,M.baseURI);var q=document.createElement("style");q.textContent=M;return q};
H5H=function(M){M=M.trim().split(/\s+/);for(var q=[],G=0;G<M.length;G++)q.push.apply(q,_.Ui(FGH(M[G])));return q};
FGH=function(M){var q=bR.import(M);if(!q)return console.warn("Could not find style data in module named",M),[];if(q._styles===void 0){M=[];M.push.apply(M,_.Ui(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q)));var G=q.querySelector("template");G&&M.push.apply(M,_.Ui(eYD(G,q.assetpath)));q._styles=M}return q._styles};
eYD=function(M,q){if(!M._styles){for(var G=[],K=M.content.querySelectorAll("style"),n=0;n<K.length;n++){var E=K[n],p=E.getAttribute("include");p&&G.push.apply(G,_.Ui(H5H(p).filter(function(y,Y,A){return A.indexOf(y)===Y})));
q&&(E.textContent=LGF(E.textContent,q));G.push(E)}M._styles=G}return M._styles};
$QH=function(M){return(M=bR.import(M))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(M){var q=[];M=M.querySelectorAll("link[rel=import][type~=css]");for(var G=0;G<M.length;G++){var K=M[G];if(K.import){var n=K.import;if((K=K.hasAttribute("shady-unscoped"))&&!n._unscopedStyle){var E=f$$(n);E.setAttribute("shady-unscoped","");n._unscopedStyle=E}else n._style||(n._style=f$$(n));q.push(K?n._unscopedStyle:n._style)}}return q};
Mhy=function(M){M=M.trim().split(/\s+/);for(var q="",G=0;G<M.length;G++)q+=sHi(M[G]);return q};
sHi=function(M){var q=bR.import(M);if(q&&q._cssText===void 0){var G=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(q),K=q.querySelector("template");K&&(G+=qFD(K,q.assetpath));q._cssText=G||null}q||console.warn("Could not find style data in module named",M);return q&&q._cssText||""};
qFD=function(M,q){var G="";M=eYD(M,q);for(q=0;q<M.length;q++){var K=M[q];K.parentNode&&K.parentNode.removeChild(K);G+=K.textContent}return G};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(M){var q="";M=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M);for(var G=0;G<M.length;G++)q+=M[G].textContent;return q};
UQ=function(M,q){return{index:M,removed:[],addedCount:q}};
KiY=function(M,q,G,K){var n=0,E=0,p=0,y=0,Y=Math.min(q-n,K-E);if(n==0&&E==0)a:{for(p=0;p<Y;p++)if(M[p]!==G[p])break a;p=Y}if(q==M.length&&K==G.length){y=M.length;for(var A=G.length,v=0;v<Y-p&&GOF(M[--y],G[--A]);)v++;y=v}n+=p;E+=p;q-=y;K-=y;if(q-n==0&&K-E==0)return[];if(n==q){for(q=UQ(n,0);E<K;)q.removed.push(G[E++]);return[q]}if(E==K)return[UQ(n,q-n)];Y=n;p=E;K=K-p+1;y=q-Y+1;q=Array(K);for(A=0;A<K;A++)q[A]=Array(y),q[A][0]=A;for(A=0;A<y;A++)q[0][A]=A;for(A=1;A<K;A++)for(v=1;v<y;v++)if(M[Y+v-1]===
G[p+A-1])q[A][v]=q[A-1][v-1];else{var h=q[A-1][v]+1,t=q[A][v-1]+1;q[A][v]=h<t?h:t}Y=q.length-1;p=q[0].length-1;K=q[Y][p];for(M=[];Y>0||p>0;)Y==0?(M.push(2),p--):p==0?(M.push(3),Y--):(y=q[Y-1][p-1],A=q[Y-1][p],v=q[Y][p-1],h=A<v?A<y?A:y:v<y?v:y,h==y?(y==K?M.push(0):(M.push(1),K=y),Y--,p--):h==A?(M.push(3),Y--,K=A):(M.push(2),p--,K=v));M.reverse();q=void 0;Y=[];for(p=0;p<M.length;p++)switch(M[p]){case 0:q&&(Y.push(q),q=void 0);n++;E++;break;case 1:q||(q=UQ(n,0));q.addedCount++;n++;q.removed.push(G[E]);
E++;break;case 2:q||(q=UQ(n,0));q.addedCount++;n++;break;case 3:q||(q=UQ(n,0)),q.removed.push(G[E]),E++}q&&Y.push(q);return Y};
nWs=function(M,q){return KiY(M,M.length,q,q.length)};
GOF=function(M,q){return M===q};
Nri=function(M){if(M instanceof EWy)return M.value;throw Error("Id`"+M);};
kOD=function(M,q){for(var G in q)G===null?M.style.removeProperty(G):M.style.setProperty(G,q[G])};
phj=function(M,q){return(M=window.getComputedStyle(M).getPropertyValue(q))?M.trim():""};
Wiy=function(M){requestAnimationFrame(function(){yMy?yMy(M):(Liw||(Liw=new Promise(function(q){YFw=q}),document.readyState==="complete"?YFw():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&YFw()})),Liw.then(function(){M&&M()}))})};
vWF=function(M){AMH=M&&M.shimcssproperties?!1:dKF||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
Cqi=function(M){if(!(h2y.indexOf(M)>-1)&&M!=="touchend"&&thu&&Os4&&whw)return{passive:!0}};
Xhy=function(M){for(var q=aQy?["click"]:h2y,G=0,K;G<q.length;G++)K=q[G],M?(oWs.length=0,document.addEventListener(K,lQi,!0)):document.removeEventListener(K,lQi,!0)};
xI=function(M){var q=M.type;return h2y.indexOf(q)>-1?q==="mousemove"?(q=M.buttons===void 0?1:M.buttons,M instanceof window.MouseEvent&&!Pqi&&(q=isy[M.which]||0),!!(q&1)):(M.button===void 0?0:M.button)===0:!1};
cMF=function(M){if(M.type==="click"){if(M.detail===0)return!0;var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);if(!q.nodeType||q.nodeType!==Node.ELEMENT_NODE)return!0;q=q.getBoundingClientRect();var G=M.pageX;M=M.pageY;return!(G>=q.left&&G<=q.right&&M>=q.top&&M<=q.bottom)}return!1};
gWj=function(M,q,G){M.movefn=q;M.upfn=G;document.addEventListener("mousemove",q);document.addEventListener("mouseup",G)};
zC=function(M){document.removeEventListener("mousemove",M.movefn);document.removeEventListener("mouseup",M.upfn);M.movefn=null;M.upfn=null};
Bri=function(M,q){for(var G=document.elementFromPoint(M,q),K=G;K&&K.shadowRoot&&!window.ShadyDOM;){var n=K;K=K.shadowRoot.elementFromPoint(M,q);if(n===K)break;K&&(G=K)}return G};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var q=QHi(M);return q.length>0?q[0]:M.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var q=M.type,G=M.currentTarget.__polymerGestures;if(G&&(G=G[q])){if(!M.__polymerGesturesHandled&&(M.__polymerGesturesHandled={},q.slice(0,5)==="touch")){var K=M.changedTouches[0];q==="touchstart"&&M.touches.length===1&&(IQF=K.identifier);if(IQF!==K.identifier)return;thu||(q==="touchstart"||q==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)}K=
M.__polymerGesturesHandled;if(!K.skip){for(var n=0,E;n<mh.length;n++)E=mh[n],G[E.name]&&!K[E.name]&&E.flow&&E.flow.start.indexOf(M.type)>-1&&E.reset&&E.reset();for(n=0;n<mh.length;n++)E=mh[n],G[E.name]&&!K[E.name]&&(K[E.name]=!0,E[q](M))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){var q=M.changedTouches[0],G=M.type;if(G==="touchstart")DKY=q.clientX,uaw=q.clientY,JMs=!1;else if(G==="touchmove"&&!JMs){JMs=!0;G="auto";for(var K=QHi(M),n=0,E;n<K.length;n++)if(E=K[n],E.__polymerGesturesTouchAction){G=E.__polymerGesturesTouchAction;break}K=!1;n=Math.abs(DKY-q.clientX);q=Math.abs(uaw-q.clientY);M.cancelable&&(G==="none"?K=!0:G==="pan-x"?K=q>n:G==="pan-y"&&(K=n>q));K?M.preventDefault():
SU("track")}};
r_=function(M,q,G){return TC[q]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,q,G),!0):!1};
jU=function(M,q,G){return TC[q]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M,q,G),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,q,G){var K=TC[q],n=K.deps,E=K.name,p=M.__polymerGestures;p||(M.__polymerGestures=p={});for(var y=0,Y,A;y<n.length;y++)Y=n[y],aQy&&h2y.indexOf(Y)>-1&&Y!=="click"||((A=p[Y])||(p[Y]=A={_count:0}),A._count===0&&M.addEventListener(Y,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Cqi(Y)),A[E]=(A[E]||0)+1,A._count=(A._count||0)+1);M.addEventListener(q,G);K.touchAction&&_.Vw(M,K.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,q,G){var K=TC[q],n=K.deps;K=K.name;var E=M.__polymerGestures;if(E)for(var p=0,y,Y;p<n.length;p++)y=n[p],(Y=E[y])&&Y[K]&&(Y[K]=(Y[K]||1)-1,Y._count=(Y._count||1)-1,Y._count===0&&M.removeEventListener(y,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,Cqi(y)));M.removeEventListener(q,G)};
Zs$=function(M){mh.push(M);for(var q=0;q<M.emits.length;q++)TC[M.emits[q]]=M};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M){for(var q=0,G;q<mh.length;q++){G=mh[q];for(var K=0,n;K<G.emits.length;K++)if(n=G.emits[K],n===M)return G}return null};
_.Vw=function(M,q){thu&&M instanceof HTMLElement&&Fn.run(function(){M.style.touchAction=q});
M.__polymerGesturesTouchAction=q};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(M,q,G){q=new Event(q,{bubbles:!0,cancelable:!0,composed:!0});q.detail=G;(0,_.Ik)(M).dispatchEvent(q);q.defaultPrevented&&(M=G.preventer||G.sourceEvent)&&M.preventDefault&&M.preventDefault()};
SU=function(M){M=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M.info&&(M.info.prevent=!0)};
HU=function(M,q,G,K){q&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,M,{x:G.clientX,y:G.clientY,sourceEvent:G,preventer:K,prevent:function(n){return SU(n)}})};
bsj=function(M,q,G){if(M.prevent)return!1;if(M.started)return!0;G=Math.abs(M.y-G);return Math.abs(M.x-q)>=5||G>=5};
UKH=function(M,q,G){if(q){var K=M.moves[M.moves.length-2],n=M.moves[M.moves.length-1],E=n.x-M.x,p=n.y-M.y,y=0;if(K){var Y=n.x-K.x;y=n.y-K.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(q,"track",{state:M.state,x:G.clientX,y:G.clientY,dx:E,dy:p,ddx:Y,ddy:y,sourceEvent:G,hover:function(){return Bri(G.clientX,G.clientY)}})}};
z2u=function(M,q,G){var K=Math.abs(q.clientX-M.x),n=Math.abs(q.clientY-M.y),E=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(G||q);!E||xKF[E.localName]&&E.hasAttribute("disabled")||!(isNaN(K)||isNaN(n)||K<=25&&n<=25||cMF(q))||M.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(E,"tap",{x:q.clientX,y:q.clientY,sourceEvent:q,preventer:G})};
mKu=function(M,q,G,K,n){var E;n&&(E=typeof G==="object"&&G!==null)&&(K=M.__dataTemp[q]);K=K!==G&&(K===K||G===G);E&&K&&(M.__dataTemp[q]=G);return K};
Tre=function(){if(eU&&!$I){if(!SFF){SFF=!0;var M=document.createElement("style");M.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(M)}return!0}return!1};
jH4=function(){return rMF};
Vhw=function(M,q){rMF=M;Object.setPrototypeOf(M,q.prototype);new q;rMF=null};
R2e=function(M,q){for(var G=0;G<q.length;G++){var K=q[G];if(!!M!=!!K.__hideTemplateChildren__)if(K.nodeType===Node.TEXT_NODE)M?(K.__polymerTextContent__=K.textContent,K.textContent=""):K.textContent=K.__polymerTextContent__;else if(K.localName==="slot")if(M)K.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Ik)((0,_.Ik)(K).parentNode).replaceChild(K.__polymerReplaced__,K);else{var n=K.__polymerReplaced__;n&&(0,_.Ik)((0,_.Ik)(n).parentNode).replaceChild(K,n)}else K.style&&(M?(K.__polymerDisplay__=
K.style.display,K.style.display="none"):K.style.display=K.__polymerDisplay__);K.__hideTemplateChildren__=M;K._showHideChildren&&K._showHideChildren(M)}};
fQi=function(M){return(M=M.__dataHost)&&M._methodHost||M};
e2H=function(M,q,G){var K=G.mutableData?FiY:sU;M3.mixin&&(K=M3.mixin(K));var n=function(){return K.apply(this,arguments)||this};
_.l(n,K);n.prototype.__templatizeOptions=G;n.prototype._bindTemplate(M);Hsi(n,M,q,G);return n};
GmY=function(M,q,G,K){var n=G.forwardHostProp;if(n&&q.hasHostProps){var E=M.localName=="template",p=q.templatizeTemplateClass;if(!p){if(E){var y=G.mutableData?$Ks:sTF;p=function(){return y.apply(this,arguments)||this};
_.l(p,y);p=q.templatizeTemplateClass=p}else{var Y=M.constructor;p=function(){return Y.apply(this,arguments)||this};
_.l(p,Y);p=q.templatizeTemplateClass=p}var A=q.hostProps,v;for(v in A)p.prototype._addPropertyEffect("_host_"+v,p.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:M$y(n)}),p.prototype._createNotifyingProperty("_host_"+v);q3&&K&&qvy(q,G,K)}M.__dataProto&&Object.assign(M.__data,M.__dataProto);if(E)Vhw(M,p),M.__dataTemp={},M.__dataPending=null,M.__dataOld=null,M._enableProperties();else{Object.setPrototypeOf(M,p.prototype);q=q.hostProps;for(var h in q)h="_host_"+h,h in M&&(q=M[h],delete M[h],M.__data[h]=
q)}}};
M$y=function(M){return function(q,G,K){M.call(q.__templatizeOwner,G.substring(6),K[G])}};
Hsi=function(M,q,G,K){var n=G.hostProps||{},E;for(E in K.instanceProps){delete n[E];var p=K.notifyInstanceProp;p&&M.prototype._addPropertyEffect(E,M.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:K6i(p)})}if(K.forwardHostProp&&q.__dataHost)for(var y in n)G.hasHostProps||(G.hasHostProps=!0),M.prototype._addPropertyEffect(y,M.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:n1y()})};
K6i=function(M){return function(q,G,K){M.call(q.__templatizeOwner,q,G,K[G])}};
n1y=function(){return function(M,q,G){M.__dataHost._setPendingPropertyOrPath("_host_"+q,G[q],!0,!0)}};
M3=function(M,q,G){if(Gy&&!fQi(M))throw Error("Od");G=G||{};if(M.__templatizeOwner)throw Error("Pd");M.__templatizeOwner=q;var K=(q?q.constructor:sU)._parseTemplate(M),n=K.templatizeInstanceClass;n||(n=e2H(M,K,G),K.templatizeInstanceClass=n);var E=fQi(M);GmY(M,K,G,E);G=function(){return n.apply(this,arguments)||this};
_.l(G,n);G.prototype._methodHost=E;G.prototype.__dataHost=M;G.prototype.__templatizeOwner=q;G.prototype.__hostProps=K.hostProps;return G};
qvy=function(M,q,G){G=G.constructor._properties;M=M.propertyEffects;q=q.instanceProps;for(var K in M)if(!(G[K]||q&&q[K]))for(var n=M[K],E=0;E<n.length;E++){var p=n[E].info.part;if(!p.signature||!p.signature.static){console.warn("Property '"+K+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
E1Y=function(M,q){for(var G;q;)if(G=q.__dataHost?q:q.__templatizeInstance)if(G.__dataHost!=M)q=G.__dataHost;else return G;else q=(0,_.Ik)(q).parentNode;return null};
KY=function(M){return M.localName==="slot"};
Nli=function(){for(var M=nY.prototype,q="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),G={},K=0;K<q.length;G={method$jscomp$33:void 0},K++)G.method$jscomp$33=q[K],M[G.method$jscomp$33]=function(n){return function(){return this.node[n.method$jscomp$33].apply(this.node,arguments)}}(G)};
kmY=function(M,q){for(var G={},K=0;K<q.length;G={name$jscomp$448:void 0},K++)G.name$jscomp$448=q[K],Object.defineProperty(M,G.name$jscomp$448,{get:function(n){return function(){return this.node[n.name$jscomp$448]}}(G),
configurable:!0})};
p7s=function(){for(var M=nY.prototype,q=["textContent","innerHTML","className"],G={},K=0;K<q.length;G={name$jscomp$449:void 0},K++)G.name$jscomp$449=q[K],Object.defineProperty(M,G.name$jscomp$449,{get:function(n){return function(){return this.node[n.name$jscomp$449]}}(G),
set:function(n){return function(E){this.node[n.name$jscomp$449]=E}}(G),
configurable:!0})};
yDj=function(){EU=document.documentElement.getAttribute("dir");EU=document.documentElement.getAttribute("dir");for(var M=0;M<N3.length;M++){var q=N3[M];q.__autoDirOptOut||q.setAttribute("dir",EU)}};
ADy=function(){kd=!0;requestAnimationFrame(function(){kd=!1;L6u(Yvj);setTimeout(function(){for(var M=0,q=pY.length;M<q;M++)W6j(pY.shift())})})};
L6u=function(M){for(;M.length;)W6j(M.shift())};
W6j=function(M){var q=M[0],G=M[1];M=M[2];try{G.apply(q,M)}catch(K){setTimeout(function(){throw K;})}};
_.dny=function(M,q,G){kd||ADy();Yvj.push([M,q,G])};
_.yb=function(M,q,G){kd||ADy();pY.push([M,q,G])};
t$F=function(M,q){q=q===void 0?!1:q;if(!v1y||!hWF||!v1y.handlesDynamicScoping)return null;var G=hWF.ScopingShim;if(!G)return null;var K=G.scopeForNode(M),n=(0,_.Ik)(M).getRootNode(),E=function(p){if((0,_.Ik)(p).getRootNode()===n){var y=Array.from(v1y.nativeMethods.querySelectorAll.call(p,"*"));y.push(p);for(p=0;p<y.length;p++){var Y=y[p];if((0,_.Ik)(Y).getRootNode()===n){var A=G.currentScopeForNode(Y);A!==K&&(A!==""&&G.unscopeNode(Y,A),G.scopeNode(Y,K))}}}};
E(M);return q?(q=new MutationObserver(function(p){for(var y=0;y<p.length;y++)for(var Y=p[y],A=0;A<Y.addedNodes.length;A++){var v=Y.addedNodes[A];v.nodeType===Node.ELEMENT_NODE&&E(v)}}),q.observe(M,{childList:!0,
subtree:!0}),q):null};
Ou$=function(){document.body.removeAttribute("unresolved")};
lh$=function(M){var q=M=M.replace(w7$,"").replace(CZi,""),G=new ahs;G.start=0;G.end=q.length;for(var K=G,n=0,E=q.length;n<E;n++)if(q[n]==="{"){K.rules||(K.rules=[]);var p=K,y=p.rules[p.rules.length-1]||null;K=new ahs;K.start=n+1;K.parent=p;K.previous=y;p.rules.push(K)}else q[n]==="}"&&(K.end=n+1,K=K.parent||G);return o1Y(G,M)};
o1Y=function(M,q){var G=q.substring(M.start,M.end-1);M.parsedCssText=M.cssText=G.trim();M.parent&&(G=q.substring(M.previous?M.previous.end:M.parent.start,M.start-1),G=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(G),G=G.replace(X7y," "),G=G.substring(G.lastIndexOf(";")+1),G=M.parsedSelector=M.selector=G.trim(),M.atRule=G.indexOf("@")===0,M.atRule?G.indexOf("@media")===0?M.type=4:G.match(PZi)&&(M.type=7,M.keyframesName=M.selector.split(X7y).pop()):G.indexOf("--")===
0?M.type=1E3:M.type=1);if(G=M.rules)for(var K=0,n=G.length,E=void 0;K<n&&(E=G[K]);K++)o1Y(E,q);return M};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(M){return M.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var q=arguments[1],G=6-q.length;G--;)q="0"+q;return"\\"+q})};
iuF=function(M,q,G){G=G===void 0?"":G;var K="";if(M.cssText||M.rules){var n=M.rules;if(n&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(n))for(var E=0,p=n.length,y=void 0;E<p&&(y=n[E]);E++)K=iuF(y,q,K);else q?q=M.cssText:(q=M.cssText,q=q.replace(cDe,"").replace(g1F,""),q=q.replace(BlF,"").replace(QTi,"")),(K=q.trim())&&(K="  "+K+"\n")}K&&(M.selector&&(G+=M.selector+" {\n"),G+=K,M.selector&&(G+="}\n\n"));return G};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(M){M=M[0];return!!M&&!!M.selector&&M.selector.indexOf("--")===0};
Dnu=function(M){if(M=Ihy[M])M._applyShimCurrentVersion=M._applyShimCurrentVersion||0,M._applyShimValidatingVersion=M._applyShimValidatingVersion||0,M._applyShimNextVersion=(M._applyShimNextVersion||0)+1};
uW$=function(M){return M._applyShimCurrentVersion===M._applyShimNextVersion};
Zuj=function(M){M._applyShimValidatingVersion=M._applyShimNextVersion;M._validating||(M._validating=!0,JDw.then(function(){M._applyShimCurrentVersion=M._applyShimNextVersion;M._validating=!1}))};
Uni=function(M){if(!M)return"";typeof M==="string"&&(M=lh$(M));return iuF(M,buY)};
xnY=function(M){!M.__cssRules&&M.textContent&&(M.__cssRules=lh$(M.textContent));return M.__cssRules||null};
mni=function(M,q,G,K){if(M){var n=!1,E=M.type;if(K&&E===4){var p=M.selector.match(zWF);p&&(window.matchMedia(p[1]).matches||(n=!0))}E===1?q(M):G&&E===7?G(M):E===1E3&&(n=!0);if((M=M.rules)&&!n)for(n=0,E=M.length,p=void 0;n<E&&(p=M[n]);n++)mni(p,q,G,K)}};
Svy=function(M,q){var G=M.indexOf("var(");if(G===-1)return q(M,"","","");a:{var K=0;var n=G+3;for(var E=M.length;n<E;n++)if(M[n]==="(")K++;else if(M[n]===")"&&--K===0)break a;n=-1}K=M.substring(G+4,n);G=M.substring(0,G);M=Svy(M.substring(n+1),q);E=K.indexOf(",");if(E===-1)return q(G,K.trim(),"",M);n=K.substring(0,E).trim();K=K.substring(E+1).trim();return q(G,n,K,M)};
Tl4=function(M){if(LY!==void 0)return LY;if(M.__cssBuild===void 0){var q=M.getAttribute("css-build");if(q)M.__cssBuild=q;else{a:{q=M.localName==="template"?M.content.firstChild:M.firstChild;if(q instanceof Comment&&(q=q.textContent.trim().split(":"),q[0]==="css-build")){q=q[1];break a}q=""}if(q!==""){var G=M.localName==="template"?M.content.firstChild:M.firstChild;G.parentNode.removeChild(G)}M.__cssBuild=q}}return M.__cssBuild||""};
jTy=function(M,q,G,K){for(var n=q._noAccessors,E=Object.getOwnPropertyNames(q),p=0;p<E.length;p++){var y=E[p];if(!(y in K))if(n)M[y]=q[y];else{var Y=Object.getOwnPropertyDescriptor(q,y);Y&&(Y.configurable=!0,Object.defineProperty(M,y,Y))}}for(var A in rDy)q[A]&&(G[A]=G[A]||[],G[A].push(q[A]))};
V$Y=function(M,q,G){q=q||[];for(var K=M.length-1;K>=0;K--){var n=M[K];n?Array.isArray(n)?V$Y(n,q):q.indexOf(n)<0&&(!G||G.indexOf(n)<0)&&q.unshift(n):console.warn("behavior is null, check for missing or 404 import")}return q};
RW$=function(M,q){for(var G in q){var K=M[G],n=q[G];M[G]=!("value"in n)&&K&&"value"in K?Object.assign({value:K.value},n):n}};
HuF=function(M,q,G){var K={},n=function(){return q.apply(this,arguments)||this};
_.l(n,q);n._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(p)for(var Y=0,A;Y<p.length;Y++)A=p[Y],A.properties&&this.createProperties(A.properties),A.observers&&this.createObservers(A.observers,A.properties);M.properties&&this.createProperties(M.properties);M.observers&&this.createObservers(M.observers,M.properties);this._prepareTemplate()}else q._finalizeClass.call(this)};
n.prototype.created=function(){q.prototype.created.call(this);var Y=K.created;if(Y)for(var A=0;A<Y.length;A++)Y[A].call(this)};
n.prototype._registered=function(){var Y=n.prototype;if(!Y.hasOwnProperty("__hasRegisterFinished")){Y.__hasRegisterFinished=!0;q.prototype._registered.call(this);eU&&y(Y);Y=Object.getPrototypeOf(this);var A=K.beforeRegister;if(A)for(var v=0;v<A.length;v++)A[v].call(Y);if(A=K.registered)for(v=0;v<A.length;v++)A[v].call(Y)}};
n.prototype._applyListeners=function(){q.prototype._applyListeners.call(this);var Y=K.listeners;if(Y)for(var A=0;A<Y.length;A++){var v=Y[A];if(v)for(var h in v)this._addMethodEventListenerToNode(this,h,v[h])}};
n.prototype._ensureAttributes=function(){var Y=K.hostAttributes;if(Y)for(var A=Y.length-1;A>=0;A--){var v=Y[A],h;for(h in v)this._ensureAttribute(h,v[h])}q.prototype._ensureAttributes.call(this)};
n.prototype.ready=function(){q.prototype.ready.call(this);var Y=K.ready;if(Y)for(var A=0;A<Y.length;A++)Y[A].call(this)};
n.prototype.attached=function(){q.prototype.attached.call(this);var Y=K.attached;if(Y)for(var A=0;A<Y.length;A++)Y[A].call(this)};
n.prototype.detached=function(){q.prototype.detached.call(this);var Y=K.detached;if(Y)for(var A=0;A<Y.length;A++)Y[A].call(this)};
n.prototype.attributeChanged=function(Y,A,v){q.prototype.attributeChanged.call(this);var h=K.attributeChanged;if(h)for(var t=0;t<h.length;t++)h[t].call(this,Y,A,v)};
_.Yd.Object.defineProperties(n,{properties:{configurable:!0,enumerable:!0,get:function(){var Y={};if(p)for(var A=0;A<p.length;A++)RW$(Y,p[A].properties);RW$(Y,M.properties);return Y}},
observers:{configurable:!0,enumerable:!0,get:function(){var Y=[];if(p)for(var A=0,v;A<p.length;A++)v=p[A],v.observers&&(Y=Y.concat(v.observers));M.observers&&(Y=Y.concat(M.observers));return Y}}});
if(G){Array.isArray(G)||(G=[G]);var E=q.prototype.behaviors;var p=V$Y(G,null,E);n.prototype.behaviors=E?E.concat(G):p}var y=function(Y){if(p)for(var A=p,v=0;v<A.length;v++)jTy(Y,A[v],K,fhy);jTy(Y,M,K,F6i)};
eU||y(n.prototype);n.generatedFrom=M;return n};
MWe=function(M){var q=typeof M!=="string"?M:{is:M,notifyObserversOnUndefined:!0};q.fastInit===void 0&&(q.fastInit=!0);return function(G){if(!q.disableInheritanceCheck&&Object.getPrototypeOf(G.prototype).constructor!==_.WG)throw Error("Td");var K=G.prototype;K.is=q.is;Ens(K,"created",function(){this.hostElement=this;this.polymerController=this});
eWe(K,G,q.fastInit);q.notifyObserversOnUndefined&&(K._overrideLegacyUndefined=!0);if($nF)for(var n=_.k(Object.getOwnPropertyNames(K)),E=n.next();!E.done;E=n.next()){E=E.value;var p=Object.getOwnPropertyDescriptor(K,E);p.enumerable===!1&&(p.enumerable=!0,Object.defineProperty(K,E,p))}if("template"in G)var y=function(){return G.template};
else q.template!==void 0&&(y=q.template);if(y!==void 0){var Y;Object.defineProperty(K,"_template",{get:function(){Y===void 0&&(Y=y());return Y},
set:function(A){Y=A},
configurable:!0,enumerable:!0})}Polymer(K);G[s5w]=K}};
qB4=function(M){M=M===void 0?{}:M;M.fastInit===void 0&&(M.fastInit=!0);return function(q){if(!M.disableInheritanceCheck&&Object.getPrototypeOf(q.prototype).constructor!==Ah)throw Error("Ud");eWe(q.prototype,q,M.fastInit)}};
eWe=function(M,q,G){G=G===void 0?!1:G;G$Y(q);G?Ens(M,"created",function(){this.disableEnforceFastDefaultValuesCheck||KEi(q,this)}):Ens(M,"ready",function(){for(var K={},n=_.k(NIY(this.behaviors)),E=n.next();!E.done;E=n.next())E=E.value,E.properties&&Object.assign(K,nEe(this,E.properties));
Object.assign(K,nEe(this,this.properties));KEi(q,this);n=_.k(Object.keys(K));for(E=n.next();!E.done;E=n.next())E=E.value,this[E]=K[E]})};
KEi=function(M,q){if($nF){M=new M;for(var G=_.k(Object.getOwnPropertyNames(M)),K=G.next();!K.done;K=G.next())K=K.value,q[K]=M[K];for(G=q;G&&G!==Object.prototype;G=Object.getPrototypeOf(G)){K=_.k(Object.getOwnPropertyNames(G));for(var n=K.next();!n.done;n=K.next())n=n.value,M.hasOwnProperty(n)||Object.defineProperty(M,n,EEy(q,n))}}else M.apply(q)};
EEy=function(M,q){return{get:function(){var G=M[q];return G instanceof Function?G.bind(M):G},
set:function(G){M[q]=G}}};
nEe=function(M,q){if(!q)return{};for(var G={},K=_.k(Object.keys(q)),n=K.next();!n.done;n=K.next())if(n=n.value,!q[n].readOnly){var E=M[n];E!==void 0&&(G[n]=E)}return G};
G$Y=function(M){var q=new M;M=M.prototype.properties||{};for(var G=_.k(Object.keys(M)),K=G.next();!K.done;K=G.next())if(K=K.value,q.hasOwnProperty(K)){var n=M[K];typeof n==="function"&&(M[K]=n={type:n});q[K]!=null&&n.type===Object&&(n.type=NBi(q[K].constructor))}};
NBi=function(M){for(var q=_.k(k$F),G=q.next();!G.done;G=q.next())if(G=G.value,M===G)return G;return Object};
ppy=function(M){return function(q,G){q.behaviors=q.behaviors||[];q.behaviors.push(M||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",q,G).prototype:void 0));Object.defineProperty(q,G,{get:function(){return this},
enumerable:!0,configurable:!0})}};
ycs=function(M){M=M===void 0?{}:M;return function(q,G){q.properties=q.properties||{};M.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?M.type=NBi(Reflect.getMetadata("design:type",q,G)):M.type=String);var K=M,n=q.properties[G];q.properties[G]=n?Object.assign({},n,K):K}};
LE$=function(M){return function(q,G){q.listeners=q.listeners||{};q.listeners[M]=G}};
YBD=function(){var M=_.rW.apply(0,arguments);if(M.length===0)throw Error("Vd");return function(q,G){q.observers=q.observers||[];q.observers.push(G+"("+M.join(",")+")")}};
WED=function(){var M=_.rW.apply(0,arguments);return function(q,G,K){var n=Object.getOwnPropertyDescriptor(q,G).get,E="__compute__"+G;Object.defineProperty(q,E,{value:n,enumerable:!0});q.properties=q.properties||{};n=q.properties[G];n||(n={},q.properties[G]=n);n.computed=E+"("+M.join(",")+")";K.get=void 0}};
_.dh=function(M,q,G){_.uI.call(this);this.JSC$11314_id_=null;this.usingListeners_=!1;this.JSC$11314_listener_=M;this.handler_=G;this.JSC$11314_win_=q||window;this.callback_=(0,_.Ju)(this.JSC$11316_doAction_,this)};
vG=function(M){this.range_=M};
hh=function(M){this.range_=M};
wh=function(M,q,G){_.uI.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=M;this.scrollTimer_=new _.th(50);this.JSC$11393_eventHandler_=new _.OU(this);this.scrollDelta_=new _.mK;this.containerIsActuallyContent_=M.tagName==="BODY"||M.tagName==="HTML";this.containerBounds_=Acy(M);this.containerIsActuallyContent_&&(M=_.Bc(),this.containerBounds_.height=M.height,this.containerBounds_.width=M.width);this.margin_=q||0;if(q){if(q=this.containerBounds_.clone(),M=this.margin_){var K=
Math.min(M,q.height*.25);q.top+=K;q.height-=2*K;M=Math.min(M,q.width*.25);q.left+=M;q.width-=2*M}}else q=this.containerBounds_;this.scrollBounds_=q;G||this.JSC$11393_eventHandler_.listen(_.T9(this.containerNode_),"mousemove",this.JSC$11395_onMouseMove);this.JSC$11393_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$11395_onTick_)};
_.CY=function(M){this.mechanism=M};
al=function(M,q){this.JSC$11491_key_=M;this.JSC$11491_value_=q};
vEi=function(M){if(M>=55296&&M<=57343||M>1114111)return"\ufffd";M in deH&&(M=deH[M]);var q="";M>65535&&(M-=65536,q+=String.fromCharCode(M>>>10&1023|55296),M=56320|M&1023);return q+=String.fromCharCode(M)};
hK$=function(M,q){return M<q?1:-1};
OeD=function(){return function(M){return M.charAt(1)==="#"?M.charAt(2)==="X"||M.charAt(2)==="x"?vEi(parseInt(M.substr(3),16)):vEi(parseInt(M.substr(2),10)):tWe[M.slice(1,-1)]}};
alH=function(M){return M.slice(1,M.length-1).trim().replace(wpF,function(q){return Co4[q]||" "})};
ol=function(M){return M===32||M===9};
ld=function(M,q){return q<M.length?M.charCodeAt(q):-1};
oE4=function(M){for(;M;){if(M._lastLineBlank)return!0;var q=M.type;if(q==="list"||q==="item")M=M._lastChild;else break}return!1};
XG=function(M){if(ll$.test(M)){var q=1,G=0,K=0;for(M[G]=="|"&&G++;G<M.length;){switch(M[G]){case "|":K=1;break;case " ":break;case "\t":break;default:K&&(K=0,q++)}G++}return Xpi.test(M)?-q:q}return 0};
Poi=function(M){return M=="table"||M=="row"||M=="cell"};
ieD=function(){return new PG("document",[[1,1],[0,0]])};
ccy=function(){};
id=function(){var M={safe:!1};M=M||{};M.softbreak=M.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=M};
DeF=function(M,q){var G="";if(M)if(M=M.toLowerCase(),M===" "||gEe.test(M))G="space";else if(BBj.test(M))G="esc";else if(M.length==1){if(!q||Q5$.test(M))G=M}else G=IlY.test(M)?M.replace("arrow",""):M=="multiply"?"*":M;return G};
be$=function(M,q){var G=M.hasModifiers;if(q.key)G=DeF(q.key,G);else if(q.detail&&q.detail.key)G=DeF(q.detail.key,G);else{G=q.keyIdentifier;var K="";G&&(G in uZF?K=uZF[G]:JcF.test(G)?(G=parseInt(G.replace("U+","0x"),16),K=String.fromCharCode(G).toLowerCase()):K=G.toLowerCase());(G=K)||(G=q.keyCode,K="",Number(G)&&(G>=65&&G<=90?K=String.fromCharCode(32+G):G>=112&&G<=123?K="f"+(G-112+1):G>=48&&G<=57?K=String(G-48):G>=96&&G<=105?K=String(G-96):K=Zee[G]),G=K);G=G||""}return G===M.key&&(!M.hasModifiers||
!!q.shiftKey===!!M.shiftKey&&!!q.ctrlKey===!!M.ctrlKey&&!!q.altKey===!!M.altKey&&!!q.metaKey===!!M.metaKey)};
xe$=function(M){return M.length===1?{combo:M,key:M,event:"keydown"}:M.split("+").reduce(function(q,G){var K=G.split(":");G=K[0];K=K[1];G in UeY?(q[UeY[G]]=!0,q.hasModifiers=!0):(q.key=G,q.event=K||"keydown");return q},{combo:M.split(":").shift()})};
zKF=function(M){return M.trim().split(" ").map(function(q){return xe$(q)})};
mew=function(M,q){if(M&&M.fn){var G=M.fn;M.fn=function(){try{G.apply(this,arguments)}catch(K){if(K instanceof cG)console.warn("Argument '"+K.arg+"'"+(q?" for method '"+q+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw K;}}}return M};
TBH=function(){var M=[],q;var G=G||_.SBs.length;for(q=0;q<8;q++)M[q]=_.SBs[0|Math.random()*G];return M.join("")};
rcs=function(){var M=_.rW.apply(0,arguments);return M.length===0?function(q){return q}:M.length===1?M[0]:M.reduce(function(q,G){return function(){return q(G.apply(null,_.Ui(_.rW.apply(0,arguments))))}})};
j5D=function(){var M=_.rW.apply(0,arguments);return function(q){return function(G,K){G=q(G,K);var n=function(){throw Error("Fe");},E={getState:G.getState,
dispatch:function(p){return n.apply(null,[p].concat(_.Ui(_.rW.apply(1,arguments))))}};
K=M.map(function(p){return p(E)});
n=rcs.apply(null,_.Ui(K))(G.dispatch);return Object.assign({},G,{dispatch:n})}}};
flY=function(M){Object.keys(M).forEach(function(q){var G=M[q];if(typeof G(void 0,{type:VWH})==="undefined")throw Error("Ge`"+q);if(typeof G(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+RKe()})==="undefined")throw Error("He`"+q+"`"+VWH);})};
gh=function(M){for(var q=Object.keys(M),G={},K=0;K<q.length;K++){var n=q[K];typeof M[n]==="function"&&(G[n]=M[n])}var E=Object.keys(G);try{flY(G)}catch(y){var p=y}return function(y,Y){y=y===void 0?{}:y;if(p)throw p;for(var A=!1,v={},h=0;h<E.length;h++){var t=E[h],O=y[t],a=(0,G[t])(O,Y);if(typeof a==="undefined")throw y=Y&&Y.type,Error("Ie`"+(y?'"'+String(y)+'"':"(unknown type)")+"`"+t);v[t]=a;A=A||a!==O}return(A=A||E.length!==Object.keys(y).length)?v:y}};
FEy=function(M,q,G){function K(){if(v)throw Error("Je");return y}
function n(O){if(typeof O!=="function")throw Error("Ke`"+typeof O);if(v)throw Error("Le");var a=!0;A===Y&&(A=Y.slice());A.push(O);return function(){if(a){if(v)throw Error("Me");a=!1;A===Y&&(A=Y.slice());var g=A.indexOf(O);A.splice(g,1);Y=null}}}
function E(O){if(typeof O!=="object"||O===null)var a=!1;else{for(a=O;Object.getPrototypeOf(a)!==null;)a=Object.getPrototypeOf(a);a=Object.getPrototypeOf(O)===a}if(!a)throw Error("Ne`"+typeof O);if(typeof O.type==="undefined")throw Error("Oe");if(v)throw Error("Pe");try{v=!0,y=p(y,O)}finally{v=!1}a=Y=A;for(var g=0;g<a.length;g++)(0,a[g])();return O}
if(typeof q==="function"&&typeof G==="function"||typeof G==="function"&&typeof arguments[3]==="function")throw Error("Qe");typeof q==="function"&&typeof G==="undefined"&&(G=q,q=void 0);if(typeof G!=="undefined"){if(typeof G!=="function")throw Error("Re`"+typeof G);return G(FEy)(M,q)}if(typeof M!=="function")throw Error("Se`"+typeof M);var p=M,y=q,Y=[],A=Y,v=!1;E({type:VWH});var h={},t=(h.dispatch=E,h.subscribe=n,h.getState=K,h.replaceReducer=function(O){if(typeof O!=="function")throw Error("Te`"+
typeof O);p=O;E({type:Hew});return t},h[eKu]=function(){var O={};
return O.subscribe=function(a){function g(){a.next&&a.next(K())}
if(typeof a!=="object"||a===null)throw new TypeError("Ue`"+typeof a);g();return{unsubscribe:n(g)}},O[eKu]=function(){return this},O},h);
return t};
$ew=function(M){function q(){n&&(n=!1,M());E&&K()}
function G(){requestAnimationFrame(q)}
function K(){var y=Date.now();if(n){if(y-p<2)return;E=!0}else n=!0,E=!1,setTimeout(G,20);p=y}
var n=!1,E=!1,p=0;return K};
BG=function(M){return typeof M==="number"?M:parseFloat(M)||0};
si$=function(M){return _.rW.apply(1,arguments).reduce(function(q,G){return q+BG(M["border-"+G+"-width"])},0)};
KPe=function(M){if(M8e[M])return M8e[M];var q=globalThis[M],G=q.prototype,K=M in qSe?qSe[M]:void 0;K=!(!K||!K.every(function(Y){var A,v;return!!((A=Object.getOwnPropertyDescriptor(G,Y))==null?0:(v=A.get)==null?0:v.toString().includes("[native code]"))}));
var n=M in GZH?GZH[M]:void 0;n=!(!n||!n.every(function(Y){var A;return typeof G[Y]==="function"&&((A=G[Y])==null?void 0:A.toString().includes("[native code]"))}));
if(K&&n&&!globalThis.Zone)return M8e[M]=q.prototype;try{var E=document.createElement("iframe");document.body.appendChild(E);var p=E.contentWindow;if(!p)return q.prototype;var y=p[M].prototype;document.body.removeChild(E);return y?M8e[M]=y:G}catch(Y){return G}};
Qb=function(M,q,G){var K=M+"."+String(G);if(nuF[K])return nuF[K].call(q);M=KPe(M);var n;M=(n=Object.getOwnPropertyDescriptor(M,G))==null?void 0:n.get;if(!M)return q[G];nuF[K]=M;return M.call(q)};
N6e=function(M,q){var G="Node."+String(q);if(Euj[G])return Euj[G].bind(M);var K=KPe("Node")[q];if(typeof K!=="function")return M[q];Euj[G]=K;return K.bind(M)};
Il=function(M,q,G){try{if(!(q in M))return function(){};
var K=M[q],n=G(K);typeof n==="function"&&(n.prototype=n.prototype||{},Object.defineProperties(n,{__rrweb_original__:{enumerable:!1,value:K}}));M[q]=n;return function(){M[q]=K}}catch(E){return function(){}}};
Jh=function(M){var q=M&&"host"in M&&"mode"in M&&De(M)||null;return!!(q&&"shadowRoot"in q&&ud(q)===M)};
Ze=function(M){return Object.prototype.toString.call(M)==="[object ShadowRoot]"};
kZY=function(M){M.includes(" background-clip: text;")&&!M.includes(" -webkit-background-clip: text;")&&(M=M.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;"));return M};
yoj=function(M){try{var q=M.rules||M.cssRules;if(!q)return null;var G=M.href;!G&&M.ownerNode&&M.ownerNode.ownerDocument&&(G=M.ownerNode.ownerDocument.location.href);var K=Array.from(q,function(n){return pTi(n,G)}).join("");
return kZY(K)}catch(n){return null}};
pTi=function(M,q){if("styleSheet"in M){try{var G;if(!(G=yoj(M.styleSheet))){var K=M.cssText;if(K.split('"').length<3)G=K;else{var n=["@import","url("+JSON.stringify(M.href)+")"];M.layerName===""?n.push("layer"):M.layerName&&n.push("layer("+M.layerName+")");M.supportsText&&n.push("supports("+M.supportsText+")");M.media.length&&n.push(M.media.mediaText);G=n.join(" ")+";"}}var E=G}catch(p){E=M.cssText}return M.styleSheet.href?LPy(E,M.styleSheet.href):E}E=M.cssText;"selectorText"in M&&M.selectorText.includes(":")&&
(E=E.replace(/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm,"$1\\$2"));return q?LPy(E,q):E};
YSF=function(M){var q=M.element;var G=M.maskInputOptions;var K=M.tagName;var n=M.type;var E=M.value;M=M.maskInputFn;E=E||"";n=n&&n.toLowerCase();if(G[K.toLowerCase()]||n&&G[n])E=M?M(E,q):"*".repeat(E.length);return E};
WPy=function(M){var q=M.getContext("2d");if(!q)return!0;for(var G=0;G<M.width;G+=50)for(var K=0;K<M.height;K+=50){var n=q.getImageData;if((new Uint32Array(("__rrweb_original__"in n?n.__rrweb_original__:n).call(q,G,K,Math.min(50,M.width-G),Math.min(50,M.height-K)).data.buffer)).some(function(E){return E!==0}))return!1}return!0};
Aoj=function(M){var q=M.type;return M.hasAttribute("data-rr-is-password")?"password":q?q.toLowerCase():null};
dpY=function(M){try{var q=new URL(M,window.location.href)}catch(n){return null}var G,K;return(K=(G=q.pathname.match(/\.([0-9a-z]+)(?:$)/i))==null?void 0:G[1])!=null?K:null};
LPy=function(M,q){return(M||"").replace(vuu,function(G,K,n,E,p,y){n=n||p||y;K=K||E||"";if(!n)return G;if(h_H.test(n)||t8i.test(n)||OE$.test(n))return"url("+K+n+K+")";if(n[0]==="/")return G=q.indexOf("//")>-1?q.split("/").slice(0,3).join("/"):q.split("/")[0],G=G.split("?")[0],"url("+K+(G+n)+K+")";G=q.split("/");E=n.split("/");G.pop();E=_.k(E);for(n=E.next();!n.done;n=E.next())n=n.value,n!=="."&&(n===".."?G.pop():G.push(n));return"url("+K+G.join("/")+K+")"})};
wTH=function(M,q){return(q=q===void 0?!1:q)?M.replace(/(\/\*[^*]*\*\/)|[\s;]/g,""):M.replace(/(\/\*[^*]*\*\/)|[\s;]/g,"").replace(/0px/g,"0")};
C2F=function(M,q){var G=G===void 0?!1:G;q=Array.from(q.childNodes);var K=[],n=0;if(q.length>1&&M&&typeof M==="string")for(var E=wTH(M,G),p=E.length/M.length,y=1;y<q.length;y++)if(q[y].textContent&&typeof q[y].textContent==="string"){for(var Y=wTH(q[y].textContent,G),A=3;A<Y.length&&(Y[A].match(/[a-zA-Z0-9]/)||Y.indexOf(Y.substring(0,A),1)!==-1);A++);for(;A<Y.length;A++){var v=Y.substring(0,A),h=E.split(v),t=-1;if(h.length===2)t=h[0].length;else if(h.length>2&&h[0]===""&&q[y-1].textContent!=="")t=
E.indexOf(v,1);else if(h.length===1){v=v.substring(0,v.length-1);h=E.split(v);if(h.length<=1)return K.push(M),K;A=101}else A===Y.length-1&&(t=E.indexOf(v));if(h.length>=2&&A>100){var O=q[y-1].textContent;O&&typeof O==="string"&&(t=E.indexOf(v,wTH(O).length));t===-1&&(t=h[0].length)}if(t!==-1){for(Y=Math.floor(t/p);Y>0&&Y<M.length;){n+=1;if(n>50*q.length)return K.push(M),K;A=wTH(M.substring(0,Y),G);if(A.length===t){K.push(M.substring(0,Y));M=M.substring(Y);E=E.substring(t);break}else Y=A.length<t?
Y+Math.max(1,Math.floor((t-A.length)/p)):Y-Math.max(1,Math.floor((A.length-t)*p))}break}}}K.push(M);return K};
ous=function(){return aOF++};
XTs=function(M){if(M instanceof HTMLFormElement)return"form";M=M.tagName.toLowerCase();return lOu.test(M)?"div":M};
guy=function(M,q){function G(A){return(A=A.exec(q.substring(K)))?(A=A[0],K+=A.length,A):""}
if(q.trim()==="")return q;for(var K=0,n=[];;){G(P2j);if(K>=q.length)break;var E=G(iEy);if(E.slice(-1)===",")E=coy(M,E.substring(0,E.length-1)),n.push(E);else{var p="";E=coy(M,E);for(var y=!1;;){var Y=q.charAt(K);if(Y===""){n.push((E+p).trim());break}else if(y)Y===")"&&(y=!1);else if(Y===","){K+=1;n.push((E+p).trim());break}else Y==="("&&(y=!0);p+=Y;K+=1}}}return n.join(", ")};
coy=function(M,q){return q&&q.trim()!==""?B6i(M,q):q};
B6i=function(M,q){var G=Qis.get(M);G||(G=M.createElement("a"),Qis.set(M,G));if(!q)q="";else if(q.startsWith("blob:")||q.startsWith("data:"))return q;Vk(G,q);return G.href};
IOe=function(M,q,G,K){return K?G==="src"||G==="href"&&(q!=="use"||K[0]!=="#")||G==="xlink:href"&&K[0]!=="#"||G==="background"&&(q==="table"||q==="td"||q==="th")?coy(M,K):G==="srcset"?guy(M,K):G==="style"?LPy(K,B6i(M)):q==="object"&&G==="data"?coy(M,K):K:K};
DpF=function(M,q){return(M==="video"||M==="audio")&&q==="autoplay"};
uly=function(M,q,G){try{if(typeof q==="string"){if(M.classList.contains(q))return!0}else for(var K=M.classList.length;K--;)if(q.test(M.classList[K]))return!0;if(G)return M.matches(G)}catch(n){}return!1};
JoF=function(M,q,G){if(!M)return!1;if(M.nodeType!==M.ELEMENT_NODE)return G?JoF(bd(M),q,G):!1;for(var K=M.classList.length;K--;)if(q.test(M.classList[K]))return!0;return G?JoF(bd(M),q,G):!1};
ZEF=function(M,q,G,K){if(M.nodeType===M.ELEMENT_NODE){if(!UU(M).length)return!1}else{if(xd(M)===null)return!1;M=xd(M)}try{if(typeof q==="string")if(K){if(M.closest("."+q))return!0}else{if(M.classList.contains(q))return!0}else if(JoF(M,q,K))return!0;if(G)if(K){if(M.closest(G))return!0}else if(M.matches(G))return!0}catch(n){}return!1};
bEF=function(M,q,G){var K=M.contentWindow;if(K){var n=!1;try{var E=K.document.readyState}catch(y){return}if(E!=="complete"){var p=setTimeout(function(){n||(q(),n=!0)},G);
M.addEventListener("load",function(){clearTimeout(p);n=!0;q()})}else K.location.href==="about:blank"&&M.src!=="about:blank"&&M.src!==""||setTimeout(q,0),M.addEventListener("load",q)}};
Upy=function(M,q,G){var K=!1;try{var n=M.sheet}catch(p){return}if(!n){var E=setTimeout(function(){K||(q(),K=!0)},G);
M.addEventListener("load",function(){clearTimeout(E);K=!0;q()})}};
mpY=function(M,q){var G=q.doc,K=q.blockClass,n=q.blockSelector,E=q.needsMask,p=q.inlineStylesheet,y=q.maskInputOptions===void 0?{}:q.maskInputOptions,Y=q.maskTextFn,A=q.maskInputFn,v=q.dataURLOptions===void 0?{}:q.dataURLOptions,h=q.inlineImages,t=q.recordCanvas,O=q.keepIframeSrcFn,a=q.newlyAddedElement===void 0?!1:q.newlyAddedElement,g=q.cssCaptured===void 0?!1:q.cssCaptured;q=q.mirror;q.nodeMetaMap.has(G)?(q=q.getId(G),q=q===1?void 0:q):q=void 0;switch(M.nodeType){case M.DOCUMENT_NODE:return M.compatMode!==
"CSS1Compat"?{type:0,childNodes:[],compatMode:M.compatMode}:{type:0,childNodes:[]};case M.DOCUMENT_TYPE_NODE:return{type:1,name:M.name,publicId:M.publicId,systemId:M.systemId,rootId:q};case M.ELEMENT_NODE:return xpe(M,{doc:G,blockClass:K,blockSelector:n,inlineStylesheet:p,maskInputOptions:y,maskInputFn:A,dataURLOptions:v,inlineImages:h,recordCanvas:t,keepIframeSrcFn:O,newlyAddedElement:a,rootId:q});case M.TEXT_NODE:return p=(K=bd(M))&&K.tagName,K="",n=p==="STYLE"?!0:void 0,(p=p==="SCRIPT"?!0:void 0)?
K="SCRIPT_PLACEHOLDER":g||(K=z_j(M),n&&K&&(K=LPy(K,B6i(G)))),!n&&!p&&K&&E&&(K=Y?Y(K,xd(M)):K.replace(/[\S]/g,"*")),{type:3,textContent:K||"",rootId:q};case M.CDATA_SECTION_NODE:return{type:4,textContent:"",rootId:q};case M.COMMENT_NODE:return{type:5,textContent:z_j(M)||"",rootId:q};default:return!1}};
xpe=function(M,q){var G=q.doc,K=q.inlineStylesheet,n=q.maskInputOptions===void 0?{}:q.maskInputOptions,E=q.maskInputFn,p=q.dataURLOptions===void 0?{}:q.dataURLOptions,y=q.inlineImages,Y=q.recordCanvas,A=q.keepIframeSrcFn,v=q.newlyAddedElement===void 0?!1:q.newlyAddedElement,h=q.rootId;q=uly(M,q.blockClass,q.blockSelector);for(var t=XTs(M),O={},a=M.attributes.length,g=0;g<a;g++){var D=M.attributes[g];DpF(t,D.name)||(O[D.name]=IOe(G,t,D.name.toLowerCase(),D.value))}t==="link"&&K&&(K=Array.from(G.styleSheets).find(function(m){return m.href===
M.href}),a=null,K&&(a=yoj(K)),a&&(delete O.rel,delete O.href,O._cssText=a));
t==="style"&&M.sheet&&(K=yoj(M.sheet))&&(M.childNodes.length>1&&(K=C2F(K,M).join("/* rr_split */")),O._cssText=K);if(t==="input"||t==="textarea"||t==="select")K=M.value,a=M.checked,O.type!=="radio"&&O.type!=="checkbox"&&O.type!=="submit"&&O.type!=="button"&&K?O.value=YSF({element:M,type:Aoj(M),tagName:t,value:K,maskInputOptions:n,maskInputFn:E}):a&&(O.checked=a);t==="option"&&(M.selected&&!n.select?O.selected=!0:delete O.selected);t==="dialog"&&M.open&&(O.rr_open_mode=M.matches("dialog:modal")?"modal":
"non-modal");t==="canvas"&&Y&&(M.__context==="2d"?WPy(M)||(O.rr_dataURL=M.toDataURL(p.type,p.quality)):"__context"in M||(n=M.toDataURL(p.type,p.quality),E=G.createElement("canvas"),E.width=M.width,E.height=M.height,E=E.toDataURL(p.type,p.quality),n!==E&&(O.rr_dataURL=n)));if(t==="img"&&y){zy||(zy=G.createElement("canvas"),SSi=zy.getContext("2d"));var J=M.currentSrc||M.getAttribute("src")||"<unknown-src>",Z=M.crossOrigin,V=function(){M.removeEventListener("load",V);try{zy.width=M.naturalWidth,zy.height=
M.naturalHeight,SSi.drawImage(M,0,0),O.rr_dataURL=zy.toDataURL(p.type,p.quality)}catch(m){if(M.crossOrigin!=="anonymous"){M.crossOrigin="anonymous";M.complete&&M.naturalWidth!==0?V():M.addEventListener("load",V);return}console.warn("Cannot inline img src="+J+"! Error: "+m)}M.crossOrigin==="anonymous"&&(Z?O.crossOrigin=Z:M.removeAttribute("crossorigin"))};
M.complete&&M.naturalWidth!==0?V():M.addEventListener("load",V)}if(t==="audio"||t==="video")G=O,G.rr_mediaState=M.paused?"paused":"played",G.rr_mediaCurrentTime=M.currentTime,G.rr_mediaPlaybackRate=M.playbackRate,G.rr_mediaMuted=M.muted,G.rr_mediaLoop=M.loop,G.rr_mediaVolume=M.volume;v||(M.scrollLeft&&(O.rr_scrollLeft=M.scrollLeft),M.scrollTop&&(O.rr_scrollTop=M.scrollTop));q&&(v=M.getBoundingClientRect(),O={class:O.class,rr_width:v.width+"px",rr_height:v.height+"px"});t!=="iframe"||A(O.src)||(M.contentDocument||
(O.rr_src=O.src),delete O.src);var S;try{customElements.get(t)&&(S=!0)}catch(m){}return{type:2,tagName:t,attributes:O,childNodes:[],isSVG:!(M.tagName!=="svg"&&!M.ownerSVGElement)||void 0,needBlock:q,rootId:h,isCustom:S}};
mo=function(M){return M===void 0||M===null?"":M.toLowerCase()};
T6F=function(M,q){return q.comment&&M.type===5||M.type===2&&(q.script&&(M.tagName==="script"||M.tagName==="link"&&(M.attributes.rel==="preload"&&M.attributes.as==="script"||M.attributes.rel==="modulepreload")||M.tagName==="link"&&M.attributes.rel==="prefetch"&&typeof M.attributes.href==="string"&&dpY(M.attributes.href)==="js")||q.headFavicon&&(M.tagName==="link"&&M.attributes.rel==="shortcut icon"||M.tagName==="meta"&&(mo(M.attributes.name).match(/^msapplication-tile(image|color)$/)||mo(M.attributes.name)===
"application-name"||mo(M.attributes.rel)==="icon"||mo(M.attributes.rel)==="apple-touch-icon"||mo(M.attributes.rel)==="shortcut icon"))||M.tagName==="meta"&&(q.headMetaDescKeywords&&mo(M.attributes.name).match(/^description|keywords$/)||q.headMetaSocial&&(mo(M.attributes.property).match(/^(og|twitter|fb):/)||mo(M.attributes.name).match(/^(og|twitter):/)||mo(M.attributes.name)==="pinterest")||q.headMetaRobots&&(mo(M.attributes.name)==="robots"||mo(M.attributes.name)==="googlebot"||mo(M.attributes.name)===
"bingbot")||q.headMetaHttpEquiv&&M.attributes["http-equiv"]!==void 0||q.headMetaAuthorship&&(mo(M.attributes.name)==="author"||mo(M.attributes.name)==="generator"||mo(M.attributes.name)==="framework"||mo(M.attributes.name)==="publisher"||mo(M.attributes.name)==="progid"||mo(M.attributes.property).match(/^article:/)||mo(M.attributes.property).match(/^product:/))||q.headMetaVerification&&(mo(M.attributes.name)==="google-site-verification"||mo(M.attributes.name)==="yandex-verification"||mo(M.attributes.name)===
"csrf-token"||mo(M.attributes.name)==="p:domain_verify"||mo(M.attributes.name)==="verify-v1"||mo(M.attributes.name)==="verification"||mo(M.attributes.name)==="shopify-checkout-api-token")))?!0:!1};
S4=function(M,q){var G=q.doc,K=q.mirror,n=q.blockClass,E=q.blockSelector,p=q.maskTextClass,y=q.maskTextSelector,Y=q.skipChild===void 0?!1:q.skipChild,A=q.inlineStylesheet===void 0?!0:q.inlineStylesheet,v=q.maskInputOptions===void 0?{}:q.maskInputOptions,h=q.maskTextFn,t=q.maskInputFn,O=q.slimDOMOptions,a=q.dataURLOptions===void 0?{}:q.dataURLOptions,g=q.inlineImages===void 0?!1:q.inlineImages,D=q.recordCanvas===void 0?!1:q.recordCanvas,J=q.onSerialize,Z=q.onIframeLoad,V=q.iframeLoadTimeout===void 0?
5E3:q.iframeLoadTimeout,S=q.onStylesheetLoad,m=q.stylesheetLoadTimeout===void 0?5E3:q.stylesheetLoadTimeout,R=q.keepIframeSrcFn===void 0?function(){return!1}:q.keepIframeSrcFn,se=q.newlyAddedElement===void 0?!1:q.newlyAddedElement,yY=q.cssCaptured===void 0?!1:q.cssCaptured,d$=q.needsMask,cy=q.preserveWhiteSpace===void 0?!0:q.preserveWhiteSpace;
d$||(d$=ZEF(M,p,y,d$===void 0));var t4=mpY(M,{doc:G,mirror:K,blockClass:n,blockSelector:E,needsMask:d$,inlineStylesheet:A,maskInputOptions:v,maskTextFn:h,maskInputFn:t,dataURLOptions:a,inlineImages:g,recordCanvas:D,keepIframeSrcFn:R,newlyAddedElement:se,cssCaptured:yY});if(!t4)return console.warn(M,"not serialized"),null;se=K.nodeMetaMap.has(M)?K.getId(M):T6F(t4,O)||!cy&&t4.type===3&&!t4.textContent.replace(/^\s+|\s+$/gm,"").length?-2:aOF++;q=Object.assign(t4,{id:se});K.add(M,q);if(se===-2)return null;
J&&J(M);se=!Y;q.type===2&&(se=se&&!q.needBlock,delete q.needBlock,(yY=ud(M))&&Ze(yY)&&(q.isShadowHost=!0));if((q.type===0||q.type===2)&&se){O.headWhitespace&&q.type===2&&q.tagName==="head"&&(cy=!1);Y={doc:G,mirror:K,blockClass:n,blockSelector:E,needsMask:d$,maskTextClass:p,maskTextSelector:y,skipChild:Y,inlineStylesheet:A,maskInputOptions:v,maskTextFn:h,maskInputFn:t,slimDOMOptions:O,dataURLOptions:a,inlineImages:g,recordCanvas:D,preserveWhiteSpace:cy,onSerialize:J,onIframeLoad:Z,iframeLoadTimeout:V,
onStylesheetLoad:S,stylesheetLoadTimeout:m,keepIframeSrcFn:R,cssCaptured:!1};if(q.type!==2||q.tagName!=="textarea"||q.attributes.value===void 0)for(q.type===2&&q.attributes._cssText!==void 0&&typeof q.attributes._cssText==="string"&&(Y.cssCaptured=!0),se=_.k(Array.from(UU(M))),yY=se.next();!yY.done;yY=se.next())(yY=S4(yY.value,Y))&&q.childNodes.push(yY);se=null;if(M.nodeType===M.ELEMENT_NODE&&(se=ud(M))){yY=_.k(Array.from(UU(se)));for(var ay=yY.next();!ay.done;ay=yY.next())if(ay=S4(ay.value,Y))Ze(se)&&
(ay.isShadow=!0),q.childNodes.push(ay)}}(Y=bd(M))&&Jh(Y)&&Ze(Y)&&(q.isShadow=!0);q.type===2&&q.tagName==="iframe"&&bEF(M,function(){var bH=M.contentDocument;bH&&Z&&(bH=S4(bH,{doc:bH,mirror:K,blockClass:n,blockSelector:E,needsMask:d$,maskTextClass:p,maskTextSelector:y,skipChild:!1,inlineStylesheet:A,maskInputOptions:v,maskTextFn:h,maskInputFn:t,slimDOMOptions:O,dataURLOptions:a,inlineImages:g,recordCanvas:D,preserveWhiteSpace:cy,onSerialize:J,onIframeLoad:Z,iframeLoadTimeout:V,onStylesheetLoad:S,stylesheetLoadTimeout:m,
keepIframeSrcFn:R}))&&Z(M,bH)},V);
q.type===2&&q.tagName==="link"&&typeof q.attributes.rel==="string"&&(q.attributes.rel==="stylesheet"||q.attributes.rel==="preload"&&typeof q.attributes.href==="string"&&dpY(q.attributes.href)==="css")&&Upy(M,function(){if(S){var bH=S4(M,{doc:G,mirror:K,blockClass:n,blockSelector:E,needsMask:d$,maskTextClass:p,maskTextSelector:y,skipChild:!1,inlineStylesheet:A,maskInputOptions:v,maskTextFn:h,maskInputFn:t,slimDOMOptions:O,dataURLOptions:a,inlineImages:g,recordCanvas:D,preserveWhiteSpace:cy,onSerialize:J,
onIframeLoad:Z,iframeLoadTimeout:V,onStylesheetLoad:S,stylesheetLoadTimeout:m,keepIframeSrcFn:R});bH&&S(M,bH)}},m);
return q};
ro$=function(M){var q=document;M=M||{};var G=M.maskAllInputs===void 0?!1:M.maskAllInputs,K=M.slimDOM===void 0?!1:M.slimDOM;return S4(q,{doc:q,mirror:M.mirror===void 0?new Ty:M.mirror,blockClass:M.blockClass===void 0?"rr-block":M.blockClass,blockSelector:M.blockSelector===void 0?null:M.blockSelector,maskTextClass:M.maskTextClass===void 0?"rr-mask":M.maskTextClass,maskTextSelector:M.maskTextSelector===void 0?null:M.maskTextSelector,skipChild:!1,inlineStylesheet:M.inlineStylesheet===void 0?!0:M.inlineStylesheet,
maskInputOptions:G===!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}:G===!1?{password:!0}:G,maskTextFn:M.maskTextFn,maskInputFn:M.maskInputFn,slimDOMOptions:K===!0||K==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:K==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:K===!1?{}:K,dataURLOptions:M.dataURLOptions,
inlineImages:M.inlineImages===void 0?!1:M.inlineImages,recordCanvas:M.recordCanvas===void 0?!1:M.recordCanvas,preserveWhiteSpace:M.preserveWhiteSpace,onSerialize:M.onSerialize,onIframeLoad:M.onIframeLoad,iframeLoadTimeout:M.iframeLoadTimeout,onStylesheetLoad:M.onStylesheetLoad,stylesheetLoadTimeout:M.stylesheetLoadTimeout,keepIframeSrcFn:M.keepIframeSrcFn===void 0?function(){return!1}:M.keepIframeSrcFn,
newlyAddedElement:!1})};
rh=function(M,q,G){G=G===void 0?document:G;var K={capture:!0,passive:!0};G.addEventListener(M,q,K);return function(){return G.removeEventListener(M,q,K)}};
j4=function(M,q,G){G=G===void 0?{}:G;var K=null,n=0;return function(){var E=_.rW.apply(0,arguments),p=Date.now();n||G.leading!==!1||(n=p);var y=q-(p-n),Y=this;y<=0||y>q?(K&&(clearTimeout(K),K=null),n=p,M.apply(Y,E)):K||G.trailing===!1||(K=setTimeout(function(){n=G.leading===!1?0:Date.now();K=null;M.apply(Y,E)},y))}};
jiw=function(M,q,G,K,n){n=n===void 0?window:n;var E=n.Object.getOwnPropertyDescriptor(M,q);n.Object.defineProperty(M,q,K?G:{set:function(p){var y=this;setTimeout(function(){G.set.call(y,p)},0);
E&&E.set&&E.set.call(this,p)}});
return function(){return jiw(M,q,E||{},!0)}};
V8y=function(M){var q=M.document,G,K,n,E;return{left:q.scrollingElement?q.scrollingElement.scrollLeft:M.pageXOffset!==void 0?M.pageXOffset:q.documentElement.scrollLeft||(q==null?void 0:q.body)&&((G=xd(q.body))==null?void 0:G.scrollLeft)||(q==null?void 0:(K=q.body)==null?void 0:K.scrollLeft)||0,top:q.scrollingElement?q.scrollingElement.scrollTop:M.pageYOffset!==void 0?M.pageYOffset:(q==null?void 0:q.documentElement.scrollTop)||(q==null?void 0:q.body)&&((n=xd(q.body))==null?void 0:n.scrollTop)||(q==
null?void 0:(E=q.body)==null?void 0:E.scrollTop)||0}};
R_u=function(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight};
fOs=function(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth};
FPy=function(M){return M?M.nodeType===M.ELEMENT_NODE?M:xd(M):null};
Vb=function(M,q,G,K){if(!M)return!1;M=FPy(M);if(!M)return!1;try{if(typeof q==="string"){if(M.classList.contains(q)||K&&M.closest("."+q)!==null)return!0}else if(JoF(M,q,K))return!0}catch(n){}return G&&(M.matches(G)||K&&M.closest(G)!==null)?!0:!1};
HEY=function(M,q,G){return M.tagName==="TITLE"&&G.headTitleMutations?!0:q.getId(M)===-2};
e_e=function(M,q){if(Jh(M))return!1;var G=q.getId(M);return q.has(G)?(G=bd(M))&&G.nodeType===M.DOCUMENT_NODE?!1:G?e_e(G,q):!0:!0};
s1$=function(){var M=M===void 0?window:M;"NodeList"in M&&!M.NodeList.prototype.forEach&&(M.NodeList.prototype.forEach=Array.prototype.forEach);"DOMTokenList"in M&&!M.DOMTokenList.prototype.forEach&&(M.DOMTokenList.prototype.forEach=Array.prototype.forEach)};
M0F=function(M,q){return!(M.nodeName!=="LINK"||M.nodeType!==M.ELEMENT_NODE||!M.getAttribute||M.getAttribute("rel")!=="stylesheet"||!q.nodeMetaMap.get(M))};
GjF=function(M){var q=null,G;"getRootNode"in M&&((G=qge(M))==null?void 0:G.nodeType)===Node.DOCUMENT_FRAGMENT_NODE&&De(qge(M))&&(q=De(qge(M)));return q};
K7D=function(M){var q=M.ownerDocument;if(q){if(!(q=N6e(q,"contains")(M)))if(q=M.ownerDocument){for(var G;G=GjF(M);)M=G;q=N6e(q,"contains")(M)}else q=!1}else q=!1;return q};
nk$=function(M,q){M.delete(q);UU(q).forEach(function(G){return nk$(M,G)})};
Ekj=function(M,q){for(var G=[M];G.length;)M=G.pop(),q.has(M)||(q.add(M),UU(M).forEach(function(K){return G.push(K)}))};
NbF=function(M,q){M.size===0?M=!1:M=(q=bd(q))?M.has(q):!1;return M};
pLY=function(M,q){return M.size===0?!1:kju(M,q)};
kju=function(M,q){return(q=bd(q))?M.has(q)?!0:kju(M,q):!1};
Rl=function(M){try{if("composedPath"in M){var q=M.composedPath();if(q.length)return q[0]}else if("path"in M&&M.path.length)return M.path[0]}catch(G){}return M&&M.target};
L74=function(M,q){var G=new yqF;fY.push(G);G.init(M);M=new (KPe("MutationObserver").constructor)(FG(G.processMutations.bind(G)));M.observe(q,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0});return M};
W7w=function(M){var q=M.mousemoveCb;var G=M.sampling;var K=M.doc;var n=M.mirror;if(G.mousemove===!1)return function(){};
var E=[],p,y=j4(FG(function(A){var v=Date.now()-p;q(E.map(function(h){h.timeOffset-=v;return h}),A);
E=[];p=null}),typeof G.mousemoveCallback==="number"?G.mousemoveCallback:500);
M=FG(j4(FG(function(A){var v=Rl(A),h=A.changedTouches?A.changedTouches[0]:A,t=h.clientX;h=h.clientY;p||(p=YgY());E.push({x:t,y:h,id:n.getId(v),timeOffset:YgY()-p});y(typeof DragEvent!=="undefined"&&A instanceof DragEvent?12:A instanceof MouseEvent?1:6)}),typeof G.mousemove==="number"?G.mousemove:50,{trailing:!1}));
var Y=[rh("mousemove",M,K),rh("touchmove",M,K),rh("drag",M,K)];return FG(function(){Y.forEach(function(A){return A()})})};
AqF=function(M){var q=M.mouseInteractionCb;var G=M.doc;var K=M.mirror;var n=M.blockClass;var E=M.blockSelector;M=M.sampling;if(M.mouseInteraction===!1)return function(){};
var p=M.mouseInteraction===!0||M.mouseInteraction===void 0?{}:M.mouseInteraction,y=[],Y=null,A=function(v){return function(h){var t=Rl(h);if(!Vb(t,n,E,!0)){var O=null,a=v;if("pointerType"in h){switch(h.pointerType){case "mouse":O=0;break;case "touch":O=2;break;case "pen":O=1}O===2&&(HG[v]===1?a="TouchStart":HG[v]===0&&(a="TouchEnd"))}else h.changedTouches&&(O=2);if(O!==null){if(Y=O,a.startsWith("Touch")&&O===2||a.startsWith("Mouse")&&O===0)O=null}else HG[v]===2&&(O=Y,Y=null);if(h=h.changedTouches?
h.changedTouches[0]:h)t=K.getId(t),FG(q)(Object.assign({},{type:HG[a],id:t,x:h.clientX,y:h.clientY},O!==null&&{pointerType:O}))}}};
Object.keys(HG).filter(function(v){return Number.isNaN(Number(v))&&!v.endsWith("_Departed")&&p[v]!==!1}).forEach(function(v){var h=v.toLowerCase(),t=A(v);
if(window.PointerEvent)switch(HG[v]){case 1:case 0:h=h.replace("mouse","pointer");break;case 7:case 9:return}y.push(rh(h,t,G))});
return FG(function(){y.forEach(function(v){return v()})})};
duH=function(M){var q=M.scrollCb;var G=M.doc;var K=M.mirror;var n=M.blockClass;var E=M.blockSelector;return rh("scroll",FG(j4(FG(function(p){var y=Rl(p);y&&!Vb(y,n,E,!0)&&(p=K.getId(y),y===G&&G.defaultView?(y=V8y(G.defaultView),q({id:p,x:y.left,y:y.top})):q({id:p,x:y.scrollLeft,y:y.scrollTop}))}),M.sampling.scroll||100)),G)};
vke=function(M,q){var G=M.viewportResizeCb;var K=-1,n=-1;return rh("resize",FG(j4(FG(function(){var E=R_u(),p=fOs();if(K!==E||n!==p)G({width:Number(p),height:Number(E)}),K=E,n=p}),200)),q.win)};
OOj=function(M){function q(D){var J=Rl(D),Z=D.isTrusted,V=J&&J.tagName;J&&V==="OPTION"&&(J=xd(J));if(!(!J||!V||hEy.indexOf(V)<0||Vb(J,p,y,!0)||J.classList.contains(Y)||A&&J.matches(A))){var S=J.value,m=!1;D=Aoj(J)||"";if(D==="radio"||D==="checkbox")m=J.checked;else if(v[V.toLowerCase()]||v[D])S=YSF({element:J,maskInputOptions:v,tagName:V,type:D,value:S,maskInputFn:h});G(J,O?{text:S,isChecked:m,userTriggered:Z}:{text:S,isChecked:m});Z=J.name;D==="radio"&&Z&&m&&n.querySelectorAll('input[type="radio"][name="'+
Z+'"]').forEach(function(R){if(R!==J){var se=R.value;G(R,O?{text:se,isChecked:!m,userTriggered:!1}:{text:se,isChecked:!m})}})}}
function G(D,J){var Z=t0y.get(D);Z&&Z.text===J.text&&Z.isChecked===J.isChecked||(t0y.set(D,J),D=E.getId(D),FG(K)(Object.assign({},J,{id:D})))}
var K=M.inputCb;var n=M.doc;var E=M.mirror;var p=M.blockClass;var y=M.blockSelector;var Y=M.ignoreClass;var A=M.ignoreSelector;var v=M.maskInputOptions;var h=M.maskInputFn;var t=M.sampling;var O=M.userTriggeredOnInput;var a=(t.input==="last"?["change"]:["input","change"]).map(function(D){return rh(D,FG(q),n)}),g=n.defaultView;
if(!g)return function(){a.forEach(function(D){return D()})};
M=g.Object.getOwnPropertyDescriptor(g.HTMLInputElement.prototype,"value");t=[[g.HTMLInputElement.prototype,"value"],[g.HTMLInputElement.prototype,"checked"],[g.HTMLSelectElement.prototype,"value"],[g.HTMLTextAreaElement.prototype,"value"],[g.HTMLSelectElement.prototype,"selectedIndex"],[g.HTMLOptionElement.prototype,"selected"]];M&&M.set&&a.push.apply(a,_.Ui(t.map(function(D){return jiw(D[0],D[1],{set:function(){FG(q)({target:this,isTrusted:!1})}},!1,g)})));
return FG(function(){a.forEach(function(D){return D()})})};
CiF=function(M){var q=[],G,K,n,E;wLw("CSSGroupingRule")&&((G=M.parentRule)==null?void 0:(K=G.constructor)==null?void 0:K.name)==="CSSGroupingRule"||wLw("CSSMediaRule")&&M.parentRule instanceof CSSMediaRule||wLw("CSSSupportsRule")&&M.parentRule instanceof CSSSupportsRule||wLw("CSSConditionRule")&&((n=M.parentRule)==null?void 0:(E=n.constructor)==null?void 0:E.name)==="CSSConditionRule"?(M=Array.from(M.parentRule.cssRules).indexOf(M),q.unshift(M)):M.parentStyleSheet&&(M=Array.from(M.parentStyleSheet.cssRules).indexOf(M),
q.unshift(M));return q};
e4=function(M,q,G){var K,n;if(!M)return{};M.ownerNode?K=q.getId(M.ownerNode):n=G.getId(M);return{styleId:n,id:K}};
oks=function(M,q){var G=M.styleSheetRuleCb;var K=M.mirror;var n=M.stylesheetManager;var E=q.win;if(!E.CSSStyleSheet||!E.CSSStyleSheet.prototype)return function(){};
var p=E.CSSStyleSheet.prototype.insertRule;E.CSSStyleSheet.prototype.insertRule=new $d(p,{apply:FG(function(t,O,a){var g=_.k(a),D=g.next().value;g=g.next().value;var J=e4(O,K,n.styleMirror),Z=J.id;J=J.styleId;(Z&&Z!==-1||J&&J!==-1)&&G({id:Z,styleId:J,adds:[{rule:D,index:g}]});return t.apply(O,a)})});
E.CSSStyleSheet.prototype.addRule=function(t,O,a){a=a===void 0?this.cssRules.length:a;return E.CSSStyleSheet.prototype.insertRule.apply(this,[t+" { "+O+" }",a])};
var y=E.CSSStyleSheet.prototype.deleteRule;E.CSSStyleSheet.prototype.deleteRule=new $d(y,{apply:FG(function(t,O,a){var g=_.k(a).next().value,D=e4(O,K,n.styleMirror),J=D.id;D=D.styleId;(J&&J!==-1||D&&D!==-1)&&G({id:J,styleId:D,removes:[{index:g}]});return t.apply(O,a)})});
E.CSSStyleSheet.prototype.removeRule=function(t){return E.CSSStyleSheet.prototype.deleteRule.apply(this,[t])};
if(E.CSSStyleSheet.prototype.replace){var Y=E.CSSStyleSheet.prototype.replace;E.CSSStyleSheet.prototype.replace=new $d(Y,{apply:FG(function(t,O,a){var g=_.k(a).next().value,D=e4(O,K,n.styleMirror),J=D.id;D=D.styleId;(J&&J!==-1||D&&D!==-1)&&G({id:J,styleId:D,replace:g});return t.apply(O,a)})})}if(E.CSSStyleSheet.prototype.replaceSync){var A=E.CSSStyleSheet.prototype.replaceSync;
E.CSSStyleSheet.prototype.replaceSync=new $d(A,{apply:FG(function(t,O,a){var g=_.k(a).next().value,D=e4(O,K,n.styleMirror),J=D.id;D=D.styleId;(J&&J!==-1||D&&D!==-1)&&G({id:J,styleId:D,replaceSync:g});return t.apply(O,a)})})}var v={};
aAe("CSSGroupingRule")?v.CSSGroupingRule=E.CSSGroupingRule:(aAe("CSSMediaRule")&&(v.CSSMediaRule=E.CSSMediaRule),aAe("CSSConditionRule")&&(v.CSSConditionRule=E.CSSConditionRule),aAe("CSSSupportsRule")&&(v.CSSSupportsRule=E.CSSSupportsRule));var h={};Object.entries(v).forEach(function(t){var O=_.k(t);t=O.next().value;O=O.next().value;h[t]={insertRule:O.prototype.insertRule,deleteRule:O.prototype.deleteRule};O.prototype.insertRule=new $d(h[t].insertRule,{apply:FG(function(a,g,D){var J=_.k(D),Z=J.next().value;
J=J.next().value;var V=e4(g.parentStyleSheet,K,n.styleMirror),S=V.id;V=V.styleId;(S&&S!==-1||V&&V!==-1)&&G({id:S,styleId:V,adds:[{rule:Z,index:[].concat(_.Ui(CiF(g)),[J||0])}]});return a.apply(g,D)})});
O.prototype.deleteRule=new $d(h[t].deleteRule,{apply:FG(function(a,g,D){var J=_.k(D).next().value,Z=e4(g.parentStyleSheet,K,n.styleMirror),V=Z.id;Z=Z.styleId;(V&&V!==-1||Z&&Z!==-1)&&G({id:V,styleId:Z,removes:[{index:[].concat(_.Ui(CiF(g)),[J])}]});return a.apply(g,D)})})});
return FG(function(){E.CSSStyleSheet.prototype.insertRule=p;E.CSSStyleSheet.prototype.deleteRule=y;Y&&(E.CSSStyleSheet.prototype.replace=Y);A&&(E.CSSStyleSheet.prototype.replaceSync=A);Object.entries(v).forEach(function(t){var O=_.k(t);t=O.next().value;O=O.next().value;O.prototype.insertRule=h[t].insertRule;O.prototype.deleteRule=h[t].deleteRule})})};
XLy=function(M,q){var G=M.mirror;var K=M.stylesheetManager;var n=null;n=q.nodeName==="#document"?G.getId(q):G.getId(De(q));var E,p,y;M=q.nodeName==="#document"?(E=q.defaultView)==null?void 0:E.Document:(p=q.ownerDocument)==null?void 0:(y=p.defaultView)==null?void 0:y.ShadowRoot;var Y=(M==null?0:M.prototype)?Object.getOwnPropertyDescriptor(M==null?void 0:M.prototype,"adoptedStyleSheets"):void 0;if(n===null||n===-1||!M||!Y)return function(){};
Object.defineProperty(q,"adoptedStyleSheets",{configurable:Y.configurable,enumerable:Y.enumerable,get:function(){var A;return(A=Y.get)==null?void 0:A.call(this)},
set:function(A){var v,h=(v=Y.set)==null?void 0:v.call(this,A);if(n!==null&&n!==-1)try{lAj(K,A,n)}catch(t){}return h}});
return FG(function(){Object.defineProperty(q,"adoptedStyleSheets",{configurable:Y.configurable,enumerable:Y.enumerable,get:Y.get,set:Y.set})})};
PiF=function(M,q){var G=M.styleDeclarationCb;var K=M.mirror;var n=M.ignoreCSSAttributes;var E=M.stylesheetManager;var p=q.win;var y=p.CSSStyleDeclaration.prototype.setProperty;p.CSSStyleDeclaration.prototype.setProperty=new $d(y,{apply:FG(function(A,v,h){var t=_.k(h),O=t.next().value,a=t.next().value;t=t.next().value;if(n.has(O))return y.apply(v,[O,a,t]);var g,D=e4((g=v.parentRule)==null?void 0:g.parentStyleSheet,K,E.styleMirror);g=D.id;D=D.styleId;(g&&g!==-1||D&&D!==-1)&&G({id:g,styleId:D,set:{property:O,
value:a,priority:t},index:CiF(v.parentRule)});return A.apply(v,h)})});
var Y=p.CSSStyleDeclaration.prototype.removeProperty;p.CSSStyleDeclaration.prototype.removeProperty=new $d(Y,{apply:FG(function(A,v,h){var t=_.k(h).next().value;if(n.has(t))return Y.apply(v,[t]);var O,a=e4((O=v.parentRule)==null?void 0:O.parentStyleSheet,K,E.styleMirror);O=a.id;a=a.styleId;(O&&O!==-1||a&&a!==-1)&&G({id:O,styleId:a,remove:{property:t},index:CiF(v.parentRule)});return A.apply(v,h)})});
return FG(function(){p.CSSStyleDeclaration.prototype.setProperty=y;p.CSSStyleDeclaration.prototype.removeProperty=Y})};
iOF=function(M){var q=M.mediaInteractionCb;var G=M.blockClass;var K=M.blockSelector;var n=M.mirror;var E=M.sampling;M=M.doc;var p=FG(function(Y){return j4(FG(function(A){if((A=Rl(A))&&!Vb(A,G,K,!0)){var v=A.currentTime,h=A.volume,t=A.muted,O=A.playbackRate,a=A.loop;q({type:Y,id:n.getId(A),currentTime:v,volume:h,muted:t,playbackRate:O,loop:a})}}),E.media||500)}),y=[rh("play",p(0),M),
rh("pause",p(1),M),rh("seeked",p(2),M),rh("volumechange",p(3),M),rh("ratechange",p(4),M)];return FG(function(){y.forEach(function(Y){return Y()})})};
cqH=function(M){var q=M.fontCb;M=M.doc;var G=M.defaultView;if(!G)return function(){};
var K=[],n=new WeakMap,E=G.FontFace;G.FontFace=function(p,y,Y){var A=new E(p,y,Y);n.set(A,{family:p,buffer:typeof y!=="string",descriptors:Y,fontSource:typeof y==="string"?y:JSON.stringify(Array.from(new Uint8Array(y)))});return A};
M=Il(M.fonts,"add",function(p){return function(y){setTimeout(FG(function(){var Y=n.get(y);Y&&(q(Y),n.delete(y))}),0);
return p.apply(this,[y])}});
K.push(function(){G.FontFace=E});
K.push(M);return FG(function(){K.forEach(function(p){return p()})})};
gku=function(M){var q=M.doc,G=M.mirror,K=M.blockClass,n=M.blockSelector,E=M.selectionCb,p=!0;M=FG(function(){var y=q.getSelection();if(y&&!(p&&(y==null?0:y.isCollapsed))){p=y.isCollapsed||!1;for(var Y=[],A=y.rangeCount||0,v=0;v<A;v++){var h=y.getRangeAt(v),t=h.startContainer,O=h.startOffset,a=h.endContainer;h=h.endOffset;Vb(t,K,n,!0)||Vb(a,K,n,!0)||Y.push({start:G.getId(t),startOffset:O,end:G.getId(a),endOffset:h})}E({ranges:Y})}});
M();return rh("selectionchange",M)};
Bbi=function(M){var q=M.doc;var G=M.customElementCb;return(M=q.defaultView)&&M.customElements?Il(M.customElements,"define",function(K){return function(n,E,p){try{G({define:{name:n}})}catch(y){console.warn("Custom element callback failed for "+n)}return K.apply(this,[n,E,p])}}):function(){}};
Q1e=function(M,q){var G=M.mutationCb,K=M.mousemoveCb,n=M.mouseInteractionCb,E=M.scrollCb,p=M.viewportResizeCb,y=M.inputCb,Y=M.mediaInteractionCb,A=M.styleSheetRuleCb,v=M.styleDeclarationCb,h=M.canvasMutationCb,t=M.fontCb,O=M.selectionCb,a=M.customElementCb;M.mutationCb=function(){var g=_.rW.apply(0,arguments);q.mutation&&q.mutation.apply(q,_.Ui(g));G.apply(null,_.Ui(g))};
M.mousemoveCb=function(){var g=_.rW.apply(0,arguments);q.mousemove&&q.mousemove.apply(q,_.Ui(g));K.apply(null,_.Ui(g))};
M.mouseInteractionCb=function(){var g=_.rW.apply(0,arguments);q.mouseInteraction&&q.mouseInteraction.apply(q,_.Ui(g));n.apply(null,_.Ui(g))};
M.scrollCb=function(){var g=_.rW.apply(0,arguments);q.scroll&&q.scroll.apply(q,_.Ui(g));E.apply(null,_.Ui(g))};
M.viewportResizeCb=function(){var g=_.rW.apply(0,arguments);q.viewportResize&&q.viewportResize.apply(q,_.Ui(g));p.apply(null,_.Ui(g))};
M.inputCb=function(){var g=_.rW.apply(0,arguments);q.input&&q.input.apply(q,_.Ui(g));y.apply(null,_.Ui(g))};
M.mediaInteractionCb=function(){var g=_.rW.apply(0,arguments);q.mediaInteaction&&q.mediaInteaction.apply(q,_.Ui(g));Y.apply(null,_.Ui(g))};
M.styleSheetRuleCb=function(){var g=_.rW.apply(0,arguments);q.styleSheetRule&&q.styleSheetRule.apply(q,_.Ui(g));A.apply(null,_.Ui(g))};
M.styleDeclarationCb=function(){var g=_.rW.apply(0,arguments);q.styleDeclaration&&q.styleDeclaration.apply(q,_.Ui(g));v.apply(null,_.Ui(g))};
M.canvasMutationCb=function(){var g=_.rW.apply(0,arguments);q.canvasMutation&&q.canvasMutation.apply(q,_.Ui(g));h.apply(null,_.Ui(g))};
M.fontCb=function(){var g=_.rW.apply(0,arguments);q.font&&q.font.apply(q,_.Ui(g));t.apply(null,_.Ui(g))};
M.selectionCb=function(){var g=_.rW.apply(0,arguments);q.selection&&q.selection.apply(q,_.Ui(g));O.apply(null,_.Ui(g))};
M.customElementCb=function(){var g=_.rW.apply(0,arguments);q.customElement&&q.customElement.apply(q,_.Ui(g));a.apply(null,_.Ui(g))}};
IAi=function(M,q){q=q===void 0?{}:q;var G=M.doc.defaultView;if(!G)return function(){};
Q1e(M,q);var K;M.recordDOM&&(K=L74(M,M.doc));var n=W7w(M),E=AqF(M),p=duH(M),y=vke(M,{win:G}),Y=OOj(M),A=iOF(M),v=function(){},h=function(){},t=function(){},O=function(){};
M.recordDOM&&(v=oks(M,{win:G}),h=XLy(M,M.doc),t=PiF(M,{win:G}),M.collectFonts&&(O=cqH(M)));var a=gku(M),g=Bbi(M),D=[];M=_.k(M.plugins);for(q=M.next();!q.done;q=M.next())q=q.value,D.push(q.observer(q.callback,G,q.options));return FG(function(){fY.forEach(function(Z){return Z.reset()});
var J;(J=K)==null||J.disconnect();n();E();p();y();Y();A();v();h();t();O();a();g();D.forEach(function(Z){return Z()})})};
wLw=function(M){return typeof window[M]!=="undefined"};
aAe=function(M){return!!(typeof window[M]!=="undefined"&&window[M].prototype&&"insertRule"in window[M].prototype&&"deleteRule"in window[M].prototype)};
Dui=function(M){M=new Uint8Array(M);for(var q="",G=0;G<M.byteLength;G++)q+=String.fromCharCode(M[G]);return btoa(q)};
ucy=function(M,q,G){if(M instanceof Array)return M.map(function(n){return ucy(n,q,G)});
if(M!==null){if(M instanceof Float32Array||M instanceof Float64Array||M instanceof Int32Array||M instanceof Uint32Array||M instanceof Uint8Array||M instanceof Uint16Array||M instanceof Int16Array||M instanceof Int8Array||M instanceof Uint8ClampedArray)return{rr_type:M.constructor.name,args:[Object.values(M)]};if(M instanceof ArrayBuffer){var K=M.constructor.name;M=Dui(M);return{rr_type:K,base64:M}}if(M instanceof DataView)return{rr_type:M.constructor.name,args:[ucy(M.buffer,q,G),M.byteOffset,M.byteLength]};
if(M instanceof HTMLImageElement)return{rr_type:M.constructor.name,src:M.src};if(M instanceof HTMLCanvasElement)return{rr_type:"HTMLImageElement",src:M.toDataURL()};if(M instanceof ImageData)return{rr_type:M.constructor.name,args:[ucy(M.data,q,G),M.width,M.height]};if(Jqy(M,q)||typeof M==="object")return K=M.constructor.name,M=ZOF(M,q,G),{rr_type:K,index:M}}return M};
Uui=function(M,q,G,K){for(var n=[],E=_.k(Object.getOwnPropertyNames(q.CanvasRenderingContext2D.prototype)),p=E.next(),y={};!p.done;y={prop$jscomp$58:void 0},p=E.next()){y.prop$jscomp$58=p.value;try{if(typeof q.CanvasRenderingContext2D.prototype[y.prop$jscomp$58]==="function"){var Y=Il(q.CanvasRenderingContext2D.prototype,y.prop$jscomp$58,function(A){return function(v){return function(){var h=_.rW.apply(0,arguments),t=this;Vb(this.canvas,G,K,!0)||setTimeout(function(){var O=bOy(h,q,t);M(t.canvas,{type:su["2D"],
property:A.prop$jscomp$58,args:O})},0);
return v.apply(this,h)}}}(y));
n.push(Y)}}catch(A){p=jiw(q.CanvasRenderingContext2D.prototype,y.prop$jscomp$58,{set:function(v){return function(h){M(this.canvas,{type:su["2D"],property:v.prop$jscomp$58,args:[h],setter:!0})}}(y)}),n.push(p)}}return function(){n.forEach(function(A){return A()})}};
xuD=function(M,q,G,K){var n=[];try{var E=Il(M.HTMLCanvasElement.prototype,"getContext",function(p){return function(y){var Y=_.rW.apply(1,arguments);if(!Vb(this,q,G,!0)){var A=y==="experimental-webgl"?"webgl":y;"__context"in this||(this.__context=A);K&&["webgl","webgl2"].includes(A)&&(Y[0]&&typeof Y[0]==="object"?(A=Y[0],A.preserveDrawingBuffer||(A.preserveDrawingBuffer=!0)):Y.splice(0,1,{preserveDrawingBuffer:!0}))}return p.apply(this,[y].concat(_.Ui(Y)))}});
n.push(E)}catch(p){console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return function(){n.forEach(function(p){return p()})}};
zEF=function(M,q,G,K,n,E){for(var p=[],y=_.k(Object.getOwnPropertyNames(M)),Y=y.next(),A={};!Y.done;A={prop$jscomp$59:void 0},Y=y.next())if(A.prop$jscomp$59=Y.value,!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(A.prop$jscomp$59))try{if(typeof M[A.prop$jscomp$59]==="function"){var v=Il(M,A.prop$jscomp$59,function(h){return function(t){return function(){var O=_.rW.apply(0,arguments),a=t.apply(this,O);ZOF(a,E,this);"tagName"in this.canvas&&!Vb(this.canvas,K,n,!0)&&(O=
bOy(O,E,this),G(this.canvas,{type:q,property:h.prop$jscomp$59,args:O}));return a}}}(A));
p.push(v)}}catch(h){Y=jiw(M,A.prop$jscomp$59,{set:function(t){return function(O){G(this.canvas,{type:q,property:t.prop$jscomp$59,args:[O],setter:!0})}}(A)}),p.push(Y)}return p};
muy=function(M,q,G,K){var n=[];n.push.apply(n,_.Ui(zEF(q.WebGLRenderingContext.prototype,1,M,G,K,q)));typeof q.WebGL2RenderingContext!=="undefined"&&n.push.apply(n,_.Ui(zEF(q.WebGL2RenderingContext.prototype,2,M,G,K,q)));return function(){n.forEach(function(E){return E()})}};
GKj=function(M){var q=M=M===void 0?{}:M,G=q.emit,K=q.checkoutEveryNms,n=q.checkoutEveryNth,E=q.blockClass===void 0?"rr-block":q.blockClass,p=q.blockSelector===void 0?null:q.blockSelector,y=q.ignoreClass===void 0?"rr-ignore":q.ignoreClass,Y=q.ignoreSelector===void 0?null:q.ignoreSelector,A=q.maskTextClass===void 0?"rr-mask":q.maskTextClass,v=q.maskTextSelector===void 0?null:q.maskTextSelector,h=q.inlineStylesheet===void 0?!0:q.inlineStylesheet,t=q.maskAllInputs,O=q.maskInputOptions,a=q.slimDOMOptions,
g=q.maskInputFn,D=q.maskTextFn,J=q.hooks,Z=q.packFn,V=q.sampling===void 0?{}:q.sampling,S=q.dataURLOptions===void 0?{}:q.dataURLOptions,m=q.mousemoveWait,R=q.recordDOM===void 0?!0:q.recordDOM,se=q.recordCanvas===void 0?!1:q.recordCanvas,yY=q.recordCrossOriginIframes===void 0?!1:q.recordCrossOriginIframes,d$=q.recordAfter===void 0?M.recordAfter==="DOMContentLoaded"?M.recordAfter:"load":q.recordAfter,cy=q.userTriggeredOnInput===void 0?!1:q.userTriggeredOnInput,t4=q.collectFonts===void 0?!1:q.collectFonts,
ay=q.inlineImages===void 0?!1:q.inlineImages,bH=q.plugins,iH=q.keepIframeSrcFn===void 0?function(){return!1}:q.keepIframeSrcFn,oI=q.ignoreCSSAttributes===void 0?new Set([]):q.ignoreCSSAttributes;
Mh=q.errorHandler;var r9=yY?window.parent===window:!0,X2=!1;if(!r9)try{window.parent.document&&(X2=!1)}catch(Wv){X2=!0}if(r9&&!G)throw Error("$e");if(!r9&&!X2)return function(){};
m!==void 0&&V.mousemove===void 0&&(V.mousemove=m);qh.reset();var EM=t===!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}:O!==void 0?O:{password:!0},LP=a===!0||a==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:a==="all",headMetaDescKeywords:a==="all",headTitleMutations:a==="all"}:
a?a:{};s1$();var Pv,g9=0,a8=function(Wv){for(var qM=_.k(bH||[]),Ry=qM.next();!Ry.done;Ry=qM.next())Ry=Ry.value,Ry.eventProcessor&&(Wv=Ry.eventProcessor(Wv));Z&&!X2&&(Wv=Z(Wv));return Wv};
Gt=function(Wv,qM){Wv.timestamp=YgY();var Ry;((Ry=fY[0])==null?0:Ry.isFrozen())&&Wv.type!==2&&(Wv.type!==3||Wv.data.source!==0)&&fY.forEach(function(OM){return OM.unfreeze()});
r9?G==null||G(a8(Wv),qM):X2&&(qM={type:"rrweb",event:a8(Wv),origin:window.location.origin,isCheckout:qM},window.parent.postMessage(qM,"*"));Wv.type===2?(Pv=Wv,g9=0):Wv.type!==3||Wv.data.source===0&&Wv.data.isAttachIframe||(g9++,Wv=K&&Wv.timestamp-Pv.timestamp>K,(n&&g9>=n||Wv)&&Sgs(!0))};
var tE=function(Wv){Gt({type:3,data:Object.assign({},{source:0},Wv)})},ND=function(Wv){return Gt({type:3,
data:Object.assign({},{source:3},Wv)})},Mx=function(Wv){return Gt({type:3,
data:Object.assign({},{source:9},Wv)})},hd=new TbD({mutationCb:tE,
adoptedStyleSheetCb:function(Wv){return Gt({type:3,data:Object.assign({},{source:15},Wv)})}}),Kn=new rqy({mirror:qh,
mutationCb:tE,stylesheetManager:hd,recordCrossOriginIframes:yY,wrappedEmit:Gt});M=_.k(bH||[]);for(q=M.next();!q.done;q=M.next())q=q.value,q.getMirror&&q.getMirror({nodeMirror:qh,crossOriginIframeMirror:Kn.crossOriginIframeMirror,crossOriginIframeStyleMirror:Kn.crossOriginIframeStyleMirror});var w9=new j14;V0w=new RE4({recordCanvas:se,mutationCb:Mx,win:window,blockClass:E,blockSelector:p,mirror:qh,sampling:V.canvas,dataURLOptions:S});var Gs=new fAj({mutationCb:tE,scrollCb:ND,bypassOptions:{blockClass:E,
blockSelector:p,maskTextClass:A,maskTextSelector:v,inlineStylesheet:h,maskInputOptions:EM,dataURLOptions:S,maskTextFn:D,maskInputFn:g,recordCanvas:se,inlineImages:ay,sampling:V,slimDOMOptions:LP,iframeManager:Kn,stylesheetManager:hd,canvasManager:V0w,keepIframeSrcFn:iH,processedNodeManager:w9},mirror:qh});Sgs=function(Wv){Wv=Wv===void 0?!1:Wv;if(R){Gt({type:4,data:{href:window.location.href,width:fOs(),height:R_u()}},Wv);hd.reset();Gs.init();fY.forEach(function(Ry){return Ry.lock()});
var qM=ro$({mirror:qh,blockClass:E,blockSelector:p,maskTextClass:A,maskTextSelector:v,inlineStylesheet:h,maskAllInputs:EM,maskTextFn:D,maskInputFn:g,slimDOM:LP,dataURLOptions:S,recordCanvas:se,inlineImages:ay,onSerialize:function(Ry){Ry.nodeName==="IFRAME"&&qh.nodeMetaMap.get(Ry)&&F7D(Kn,Ry);M0F(Ry,qh)&&HO$(hd,Ry);Ry&&ud(Ry)&&eED(Gs,ud(Ry),document)},
onIframeLoad:function(Ry,OM){$ui(Kn,Ry,OM);Ry.contentWindow&&Ry.contentDocument&&sAF(Gs,Ry.contentWindow.Element,Ry.contentDocument)},
onStylesheetLoad:function(Ry,OM){MDY(hd,Ry,OM)},
keepIframeSrcFn:iH});qM?(Gt({type:2,data:{node:qM,initialOffset:V8y(window)}},Wv),fY.forEach(function(Ry){return Ry.unlock()}),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&lAj(hd,document.adoptedStyleSheets,qh.getId(document))):console.warn("Failed to snapshot the document")}};
try{var u5=[],jJ=function(Wv){var qM;return FG(IAi)({mutationCb:tE,mousemoveCb:function(Ry,OM){return Gt({type:3,data:{source:OM,positions:Ry}})},
mouseInteractionCb:function(Ry){return Gt({type:3,data:Object.assign({},{source:2},Ry)})},
scrollCb:ND,viewportResizeCb:function(Ry){return Gt({type:3,data:Object.assign({},{source:4},Ry)})},
inputCb:function(Ry){return Gt({type:3,data:Object.assign({},{source:5},Ry)})},
mediaInteractionCb:function(Ry){return Gt({type:3,data:Object.assign({},{source:7},Ry)})},
styleSheetRuleCb:function(Ry){return Gt({type:3,data:Object.assign({},{source:8},Ry)})},
styleDeclarationCb:function(Ry){return Gt({type:3,data:Object.assign({},{source:13},Ry)})},
canvasMutationCb:Mx,fontCb:function(Ry){return Gt({type:3,data:Object.assign({},{source:10},Ry)})},
selectionCb:function(Ry){Gt({type:3,data:Object.assign({},{source:14},Ry)})},
customElementCb:function(Ry){Gt({type:3,data:Object.assign({},{source:16},Ry)})},
blockClass:E,ignoreClass:y,ignoreSelector:Y,maskTextClass:A,maskTextSelector:v,maskInputOptions:EM,inlineStylesheet:h,sampling:V,recordDOM:R,recordCanvas:se,inlineImages:ay,userTriggeredOnInput:cy,collectFonts:t4,doc:Wv,maskInputFn:g,maskTextFn:D,keepIframeSrcFn:iH,blockSelector:p,slimDOMOptions:LP,dataURLOptions:S,mirror:qh,iframeManager:Kn,stylesheetManager:hd,shadowDomManager:Gs,processedNodeManager:w9,canvasManager:V0w,ignoreCSSAttributes:oI,plugins:(bH==null?void 0:(qM=bH.filter(function(Ry){return Ry.observer}))==
null?void 0:qM.map(function(Ry){return{observer:Ry.observer,
options:Ry.options,callback:function(OM){return Gt({type:6,data:{plugin:Ry.name,payload:OM}})}}}))||[]},J)};
q6H(Kn,function(Wv){try{u5.push(jJ(Wv.contentDocument))}catch(qM){console.warn(qM)}});
var Ad=function(){Sgs();u5.push(jJ(document))};
document.readyState==="interactive"||document.readyState==="complete"?Ad():(u5.push(rh("DOMContentLoaded",function(){Gt({type:0,data:{}});d$==="DOMContentLoaded"&&Ad()})),u5.push(rh("load",function(){Gt({type:1,
data:{}});d$==="load"&&Ad()},window)));
return function(){u5.forEach(function(Wv){return Wv()});
w9.destroy();Mh=void 0}}catch(Wv){console.warn(Wv)}};
_.X=function(M,q){q=eM(Ht(q));M.innerHTML=q};
Er4=function(M){var q=KHy;q||(q=nry(),q=KHy=_.xP.transpose(q));q=q[M];return typeof q==="string"?q:_.Kx(M)};
NNe=function(M){M=String(M).toLowerCase();var q=nry()[M];return typeof q==="string"?q:_.nx(M)};
kKH=function(M){M=M.toLowerCase();M=nry()[M];return typeof M==="string"?M:null};
nry=function(){if(!pBH){for(var M=Object.assign({},ysH),q=_.k(LH$),G=q.next();!G.done;G=q.next())G=G.value,M[G.toLowerCase()]=G;pBH=M}return pBH};
Asw=function(M,q){var G=window.customElements;return G&&G.get(M)||Y6s[M]===!0?2:q.name==="HTMLUnknownElement"?1:q.name==="HTMLElement"&&WHy.test(M)?3:0};
hIH=function(M,q){switch(q){case "innerHTML":return dqj(M)===1?2:null;case "textContent":return M=dqj(M),M===1||M===6?1:null;default:var G,K;return(K=(G=vry[M.localName])==null?void 0:G[q])!=null?K:null}};
dqj=function(M){var q=M.localName,G=Asw(q,M.constructor);switch(G){case 0:case 1:return tDu(q,M);case 3:case 2:return 1;default:_.F2(G,"got an unknown element classification")}};
tDu=function(M,q){var G=Object.hasOwnProperty.call(O$D,M)?O$D[M]:null;return G!==null?G:Object.hasOwnProperty.call(wBH,M)&&q instanceof SVGElement?wBH[M]:null};
CtY=function(M,q){return q};
or$=function(M){return(M=M.split(aDw,2))?{url:M[0],metadata:M[1]}:null};
XBe=function(M){var q=String(M.url).replace(lDH,encodeURIComponent);if(M=M.metadata){lDH.lastIndex=0;if(lDH.test(M))return null;q+=" "+M}return q};
gry=function(M){function q(A){var v=A.localName;if(!A.getAttribute("is")&&Asw(v,A.constructor)===2){var h;return(h=Y)!=null?h:Y=document.createElement("polyresinuncustomized")}(A=y[v])||(A=y[v]=document.createElement(v));return A}
var G=M.reportHandler||void 0,K=M.safeTypesBridge||Pty,n=/^$/;if(M=M.allowedIdentifierPrefixes){M=_.k(M);for(var E=M.next();!E.done;E=M.next())n=new RegExp(n.source+"|^"+_.i$y(E.value))}G&&G(!1,"initResin",null);var p=cs$(n,K,G),y={},Y=null;return function(A,v,h){var t=A.nodeType;if(t!==Node.ELEMENT_NODE){if(t===Node.TEXT_NODE){v=A.parentElement;h=!v;if(v&&v.nodeType===Node.ELEMENT_NODE){t=v.localName;var O=Asw(t,v.constructor);switch(O){case 0:case 1:v=tDu(t,v);h=v===1||v===6;break;case 3:case 2:h=
!0;break;default:_.F2(O,"got an unknown element classification")}}if(h)return function(J){return""+K(J,"STRING",J)}}return function(J){if(!J&&J!==document.all)return J;
G&&G(!0,"Failed to sanitize "+(A.parentElement&&A.parentElement.nodeName)+" #text node to value "+J,A.parentElement);return Eu}}var a=A.localName;
t=q(A);var g=null;switch(h){case "attribute":if(NNe(v)in t)break;return function(J){return J};
case "property":if(v in t){g=hIH(t,v);break}if((O=kKH(v))&&O in t)break;return function(J){return J};
default:_.F2(h,"got an unknown resin type, expected either 'property' or 'attribute'")}var D=h==="attribute"?v.toLowerCase():Er4(v);g||(g=PRF(a,D,function(J){var Z=A.getAttribute(J);return!Z||/[\[\{]/.test(J)?null:Z}));
return function(J){var Z=Nh,V=null;if(!J&&J!==document.all)return J;if(g!=null){var S=p[g],m=S.safeType;V=S.safeReplacement;m&&(Z=K(J,m,Nh));Z===Nh&&(S.filterString?(Z=String(K(J,"STRING",J)),Z=S.filterString(a,D,Z)):S.filterRaw&&(Z=S.filterRaw(a,D,J,A)),Z===V&&(Z=Nh))}Z===Nh&&(Z=V||Eu,G&&G(!0,"Failed to sanitize attribute of <"+a+">: <"+a+" "+D+'="'+J+'">',A));return Z}}};
cs$=function(M,q,G){return[,{filterRaw:function(K,n,E){return E},
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:BNF,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:BNF,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Eu,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:QAw,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(K,n,E){E=
String(E).toLowerCase();return gIs(K,n,E)?E:Eu},
safeReplacement:Eu,safeType:void 0},,{filterRaw:void 0,filterString:function(K,n,E){return M.test(E)?E:Eu},
safeReplacement:Eu,safeType:"CONSTANT"},{filterRaw:function(K,n,E,p){if(typeof E==="string")var y=(y=E.match(IDi))?y.map(or$).filter(Boolean):[];else if(Array.isArray(E))y=E;else return BNF;var Y=y;y=[];var A=[],v={};if(Array.isArray(Y))for(var h=0,t=Y.length;h<t;++h){var O=Y[h],a=O&&O.url;if(a){var g=q(a,"URL",v);if(g){var D=g!==v;(D?y:A).push({url:D?g:a,metadata:O.metadata})}}}else A.push(Y);Y=A.length?JSON.stringify(A):null;A=Nh;if(y.length){if(!Array.isArray(y))throw Error();A=y.map(XBe).filter(Boolean).join(" , ")||
Nh}Y&&G&&G(!0,"Failed to sanitize attribute value of <"+K+">: <"+K+" "+n+'="'+E+'">: '+Y,p);return A===Nh?BNF:A},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
Dqy=function(M){var q=gry(M);return function(G,K,n,E){return E||E===document.all?q(G,K,n)(E):E}};
kD=function(M,q){function G(){function n(y,Y,A){for(Y=Reflect.getMetadata("parameters",y)||[];Y.length<=A;)Y.push(null);Y[A]=Y[A]||[];Y[A].push(p);Reflect.defineMetadata(Y,y);return y}
var E=_.rW.apply(0,arguments);if(this instanceof G)return K.apply(this,E),this;var p=new (Function.prototype.bind.apply(G,[null].concat(_.Ui(E))));n.annotation=p;return n}
var K=u6y(q);G.prototype.toString=function(){return"@"+M};
return G.annotationCls=G};
u6y=function(M){return function(){var q=_.rW.apply(0,arguments),G=this;M.forEach(function(K,n){n=q[n];if(Array.isArray(K))G[K[0]]=n&&n!==void 0?n:K[1];else for(var E in K)G[E]=n&&n[E]!==void 0?n[E]:K[E]})}};
JsY=function(M){return M!==void 0&&M!==null};
px=function(M){if(typeof M==="string")return M;if(M===void 0||M===null)return""+M;if(M.overriddenName)return M.overriddenName;if(M.name)return M.name;M=M.toString();var q=M.indexOf("\n");return q===-1?M:M.substring(0,q)};
Z$4=function(M){M.__forward_ref__=Z$4;M.toString=function(){return px(this())};
return M};
yW=function(M){return typeof M==="function"&&M.hasOwnProperty("__forward_ref__")&&M.__forward_ref__===Z$4?M():M};
b$y=function(M){return M?M.map(function(q){return new (Function.prototype.bind.apply(q.type.annotationCls,[null].concat(_.Ui(q.args?q.args:[]))))}):[]};
Uq4=function(M){for(var q=[],G=0;G<M.length;++G){if(q.indexOf(M[G])>-1){q.push(M[G]);break}q.push(M[G])}return q};
xq4=function(M){return M.length>1?" ("+Uq4(M.slice().reverse()).map(function(q){return px(q.token)}).join(" -> ")+")":""};
mqs=function(M,q,G,K){if(K){var n=Error("cf``"+(K instanceof Error?K.message:K));n.ngOriginalError=K}else n=Error();n.addKey=zID;n.keys=[q];n.injectors=[M];n.constructResolvingMessage=G;n.message=n.constructResolvingMessage();n.ngOriginalError=K;return n};
zID=function(M,q){this.injectors.push(M);this.keys.push(q);this.message=this.constructResolvingMessage()};
S6w=function(M,q){return mqs(M,q,function(){return"No provider for "+px(this.keys[0].token)+"!"+xq4(this.keys)})};
TNy=function(M,q){return mqs(M,q,function(){return"Cannot instantiate cyclic dependency!"+xq4(this.keys)})};
rse=function(M,q,G){return mqs(M,G,function(){var K=px(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+K+"!"+xq4(this.keys)+"."},q)};
jAy=function(M,q){for(var G=[],K=0,n=q.length;K<n;K++){var E=q[K];E&&E.length!=0?G.push(E.map(px).join(" ")):G.push("?")}return Error("gf`"+px(M)+"`"+G.join(", ")+"`"+px(M))};
$qw=function(M){var q=void 0,G=void 0;if(M&&M.useClass!==void 0){q=M.useClass;var K=yW(M.useClass);var n=VDu.factory(K);K=RIu(K)}else M&&M.useExisting!==void 0?(n=function(E){return E},K=[fDe(Lx.get(yW(M.useExisting)))]):M&&M.useFactory!==void 0?(n=M.useFactory,K=FHe(M.useFactory,M.deps)):(G=M.useValue,n=function(){return M.useValue},K=H$i);
return new eIj(n,K,q,G)};
M9F=function(M){return new seF(Lx.get(yW(M.provide)),[$qw(M)],M.multi)};
Gdy=function(M){M=q5F(M,[]).map(M9F);for(var q=new Map,G=0;G<M.length;G++){var K=M[G],n=q.get(K.key.id);if(n){if(K.multiProvider!==n.multiProvider)throw Error("jf`"+n+"`"+K);if(K.multiProvider)for(var E=0;E<K.resolvedFactories.length;E++)n.resolvedFactories.push(K.resolvedFactories[E]);else q.set(K.key.id,K)}else n=void 0,K.multiProvider?n=new seF(K.key,K.resolvedFactories.slice(),K.multiProvider):n=K,q.set(K.key.id,n)}return Array.from(q.values())};
q5F=function(M,q){M.forEach(function(G){if(G instanceof KtH)q.push({provide:G,useClass:G});else if(G&&typeof G=="object"&&G.provide!==void 0)q.push(G);else if(G instanceof Array)q5F(G,q);else throw Error("ff`"+G);});
return q};
FHe=function(M,q){if(q){var G=q.map(function(K){return[K]});
return q.map(function(K){return nHH(M,K,G)})}return RIu(M)};
RIu=function(M){var q=VDu.parameters(M);if(!q)return[];if(q.some(function(G){return G==null}))throw jAy(M,q);
return q.map(function(G){return nHH(M,G,q)})};
nHH=function(M,q,G){var K=null,n=!1;if(!Array.isArray(q))return q instanceof EHi?NFw(q.token,n,null):NFw(q,n,null);for(var E=null,p=0;p<q.length;++p){var y=q[p];if(y instanceof KtH)K=y;else if(y instanceof EHi)K=y.token;else if(y instanceof kdw)n=!0;else if(y instanceof pWu||y instanceof yQF)E=y}K=yW(K);if(K!=null)return NFw(K,n,E);throw jAy(M,G);};
NFw=function(M,q,G){return new Lte(Lx.get(yW(M)),q,G)};
Y5y=function(M,q){for(var G=Array(M.providers.length),K=0;K<M.providers.length;++K){var n=K;if(K<0||K>=M.providers.length)throw Error("hf`"+K);G[n]=q(M.providers[K])}return G};
Wt$=function(M){return typeof M==="function"&&VDu.parameters(M).every(function(q){return!!q})};
vHF=function(M){var q=AQ4;dOY.get(M)||dOY.set(M,new q);return dOY.get(M)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(M)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(M)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M,q){var G,K;if(M.contains(q))return!0;M=_.YD(M).querySelectorAll("content,slot");for(G=0;G<M.length;++G){var n=_.YD(M[G]).getDistributedNodes();for(K=0;K<n.length;++K)if(n[K].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(n[K],q))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){M.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M)&&M.preventDefault();M.targetTouches&&(M=M.targetTouches[0],hpy=M.pageX,t9i=M.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 M=0,q=WF.length;M<q;M++)document.addEventListener(WF[M],_._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 M=0,q=WF.length;M<q;M++)document.removeEventListener(WF[M],_._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(M){var q=_.YD(M).rootTarget;M.type!=="touchmove"&&Okw!==q&&(Okw=q,wWY=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.YD(M).path));if(!wWY.length)return!0;if(M.type==="touchstart")return!1;M=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(M);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(wWY,M.deltaX,M.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){for(var q=[],G=M.indexOf(CMH),K=0;K<=G;K++)if(M[K].nodeType===Node.ELEMENT_NODE){var n=M[K],E=n.style;E.overflow!=="scroll"&&E.overflow!=="auto"&&(E=window.getComputedStyle(n));E.overflow!=="scroll"&&E.overflow!=="auto"||q.push(n)}return q};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M,q,G){if(q||G)for(var K=Math.abs(G)>=Math.abs(q),n=0;n<M.length;n++){var E=M[n];if(K?G<0?E.scrollTop>0:E.scrollTop<E.scrollHeight-E.clientHeight:q<0?E.scrollLeft>0:E.scrollLeft<E.scrollWidth-E.clientWidth)return E}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(M){var q={deltaX:M.deltaX,deltaY:M.deltaY};"deltaX"in M||("wheelDeltaX"in M&&"wheelDeltaY"in M?(q.deltaX=-M.wheelDeltaX,q.deltaY=-M.wheelDeltaY):"wheelDelta"in M?(q.deltaX=0,q.deltaY=-M.wheelDelta):"axis"in M?(q.deltaX=M.axis===1?M.detail:0,q.deltaY=M.axis===2?M.detail:0):M.targetTouches&&(M=M.targetTouches[0],q.deltaX=hpy-M.pageX,q.deltaY=t9i-M.pageY));return q};
acy=function(M){this.element=M;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
lc$=function(M){this.element=M;this.color=window.getComputedStyle(M).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");_.YD(this.waveContainer).appendChild(this.wave);oHy(this)};
Al=function(M,q){for(var G in M)if(G.toLowerCase()===q.toLowerCase())return M[G]};
XWY=function(M,q){for(var G in M)if(G.toLowerCase()===q.toLowerCase()){delete M[G];break}};
iky=function(M){M=_.xP.clone(M);for(var q=0;q<PMY.length;++q){var G=PMY[q],K=Al(M,G);K&&(M["X-Goog-Upload-Header-"+G]=K,XWY(M,G))}return M};
cQi=function(M){M=_.xP.clone(M);XWY(M,"X-Goog-Upload-Status")};
BFj=function(M){return gHj.some(function(q){return q.test(M)})};
uXF=function(M,q){var G;var K=(G=M.formContent)==null?void 0:G.locale;G=K==null?void 0:K.split("-")[0];K=K&&QeD.includes(K)?K:G&&QeD.includes(G)?G:void 0;K=(K!=null?K:"en").replaceAll("-","_").toLowerCase();var n;M=((n=M.initializationData)==null?0:n.useNightlyRelease)?"nightly":"live";var E;return(q==null?0:(E=q.getEnableAlohaBinarySplit)==null?0:E.call(q))?_.Ow(Ic4,M):_.Ow(DOD,M,K)};
bk4=function(M,q,G,K){if(JQF&&ZkF===q)return JQF;ZkF=q;var n=uXF(M,K);return JQF=q.feedbackV2GlobalObject?Promise.resolve(q.feedbackV2GlobalObject):new Promise(function(E,p){var y=_.iI("SCRIPT");_.Ei(y,n);y.onload=function(){q.feedbackV2GlobalObject?E(q.feedbackV2GlobalObject):p(Error("mf"))};
y.onerror=function(){p(Error("nf`"+n.toString()))};
G.body.appendChild(y)})};
zp4=function(M,q,G,K){if(UO4&&xO4===q)return UO4;xO4=q;var n=uXF(M,K);return UO4=q.feedbackV2GlobalObject?Promise.resolve(q.feedbackV2GlobalObject):new Promise(function(E,p){var y=_.iI("SCRIPT");_.Ei(y,n);y.onload=function(){q.feedbackV2GlobalObject?E(q.feedbackV2GlobalObject):p(Error("mf"))};
y.onerror=function(){p(Error("nf`"+n.toString()))};
G.body.appendChild(y)})};
mOj=function(M,q,G,K,n){n=n===void 0?!0:n;var E,p,y,Y,A;return _.L(function(v){switch(v.nextAddress){case 1:return E=Date.now(),v.yield(bk4(M,G,K,q),2);case 2:p=v.yieldResult;if(!(n||((Y=M.initializationData)==null?0:Y.useNightlyRelease)||((A=M.initializationData)==null?0:A.isLocalServer))){y=p.initializeFeedbackClient(M,E,q);v.jumpTo(3);break}return v.yield(p.initializeFeedbackClientAsync(M,E,q),4);case 4:y=v.yieldResult;case 3:return y.initiateAloha(),v.return(y)}})};
S5s=function(M,q,G,K){var n,E,p;return _.L(function(y){if(y.nextAddress==1)return n=Date.now(),y.yield(zp4(M,G,K.document,q),2);if(y.nextAddress!=3)return E=y.yieldResult,y.yield(E.initializeFeedbackClientAsync(M,n,q,K),3);p=y.yieldResult;p.initiateAloha();return y.return(p)})};
TF$=function(M,q,G){var K=!0;K=K===void 0?!0:K;var n,E,p,y,Y,A,v,h,t,O;return _.L(function(a){n=G||_.Kj;if((E=q)==null?0:(y=(p=E).getEnableAlohaBinarySplit)==null?0:y.call(p)){Y=n;if(Y.isFormOpened)throw A=Error("of"),A.name="DuplicateFormError",A;Y.isFormOpened=!0;M.callbacks=M.callbacks||{};v=M.callbacks.onClose||function(){};
M.callbacks.onClose=function(g){Y.isFormOpened=!1;v(g)};
try{return a.return(S5s(M,q,Y,n))}catch(g){throw Y.isFormOpened=!1,g;}}else{h=n;if(h.isFormOpened)throw t=Error("of"),t.name="DuplicateFormError",t;h.isFormOpened=!0;M.callbacks=M.callbacks||{};O=M.callbacks.onClose||function(){};
M.callbacks.onClose=function(g){h.isFormOpened=!1;O(g)};
try{return a.return(mOj(M,q,h,n.document,K))}catch(g){throw h.isFormOpened=!1,g;}}_.gL(a)})};
fcj=function(M,q){return _.L(function(G){return G.return(new Promise(function(K,n){Number.isInteger(Number(M))&&Number(M)>0?(n=rQw(q!=null?q:"")+"/aloha_form_properties?productId="+M,jeH(n,function(E){E=E.target;var p=null;try{var y=JSON,Y=y.stringify;if(E.JSC$9800_xhr_){var A=E.JSC$9800_xhr_.responseText;A.indexOf(")]}'\n")==0&&(A=A.substring(5));var v=(0,_.dt)(A)}else v=void 0;p=RGw(V94,Y.call(y,v))}catch(h){Y=new V94,v=Rpw(),v=_.vF(v,13,!1),v=_.vF(v,14,!0),v=_.vF(v,15,!0),v=_.vF(v,20,!1),p=_.Xe(Y,
1,v)}K(p)},"GET","",{},2E3,!0)):n(Error("pf`"+M))}))})};
rQw=function(M){return BFj(M)?M:"https://www.google.com/tools/feedback"};
$Oy=function(M){M=M.match(new RegExp(Fti,"gi"))||[];M=_.k(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;a:{var G=_.k(Hky);for(var K=G.next();!K.done;K=G.next())if(K.value.test(q)){G=!1;break a}G=!0}if(!G)a:{G=_.k(epy);for(K=G.next();!K.done;K=G.next())if(K.value.test(q)){G=!0;break a}G=!1}if(G)return!0}return!1};
s3j=function(M,q){var G={},K=Object.keys(M);K=_.k(K);for(var n=K.next();!n.done;n=K.next())n=n.value,G[n]=q(n,M[n]);return G};
Mvy=function(M){switch(M){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"}};
Gb4=function(M){if(window.crypto&&window.crypto.getRandomValues)try{var q=Array(M),G=new Uint8Array(M);window.crypto.getRandomValues(G);for(var K=0;K<q.length;K++)q[K]=G[K];return q}catch(E){}q=Array(M);for(G=0;G<M;G++){K=Date.now();for(var n=0;n<K%23;n++)q[G]=Math.random();q[G]=Math.floor(Math.random()*256)}if(qZj)for(G=1,K=0;K<qZj.length;K++)q[G%M]^=q[(G-1)%M]/4^qZj.charCodeAt(K),G++;return q};
hl=function(M){M=Gb4(M);for(var q=[],G=0;G<M.length;G++)q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(M[G]&63));return q.join("")};
Kxw=function(){var M=_.Kj.ytLoggingDocDocumentNonce_;M||(M=hl(16),_.Y5("ytLoggingDocDocumentNonce_",M));return M};
EtY=function(M){M&&_.ml("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:nts,clientScreenNonce:M})};
NQ4=function(M){return _.R9("client-screen-nonce-store",{})[M===void 0?0:M]};
kbj=function(M,q){q=q===void 0?0:q;var G=_.R9("client-screen-nonce-store");G||(G={},_.Vz("client-screen-nonce-store",G));G[q]=M};
pnH=function(M){M=M===void 0?0:M;return M===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+M};
yti=function(M){return _.R9(pnH(M===void 0?0:M))};
_.wt=function(M){return(M=yti(M===void 0?0:M))?new Ou({veType:M,youtubeData:void 0,jspbYoutubeData:void 0}):null};
LxD=function(){var M=_.R9("csn-to-ctt-auth-info");M||(M={},_.Vz("csn-to-ctt-auth-info",M));return M};
YZF=function(){return Object.values(_.R9("client-screen-nonce-store",{})).filter(function(M){return M!==void 0})};
_.Cx=function(M){M=NQ4(M===void 0?0:M);if(!M&&!_.fX("USE_CSN_FALLBACK",!0))return null;M||(M="UNDEFINED_CSN");return M?M:null};
Atu=function(M){for(var q=_.k(Object.values(Wxi)),G=q.next();!G.done;G=q.next())if(_.Cx(G.value)===M)return!0;return!1};
dSj=function(M,q,G){var K=LxD();(G=_.Cx(G))&&delete K[G];q&&(K[M]=q)};
af=function(M){return LxD()[M]};
_.of=function(M,q,G,K){G=G===void 0?0:G;if(M!==NQ4(G)||q!==_.R9(pnH(G)))if(dSj(M,K,G),kbj(M,G),_.Vz(pnH(G),q),q=function(){setTimeout(function(){EtY(M)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(q)}catch(n){q()}else q()};
vty=function(M,q){q=q===void 0?"":q;var G=[],K;for(K in M)if(M.hasOwnProperty(K)){var n=q!==""?q+"."+K:K;typeof M[K]==="object"?G.push.apply(G,_.Ui(vty(M[K],n))):G.push([n,M[K]])}G.sort();return G};
_.XH=function(M){var q=_.rW.apply(1,arguments);if(!lG(M)||q.some(function(K){return!lG(K)}))throw Error("qf");
q=_.k(q);for(var G=q.next();!G.done;G=q.next())hnw(M,G.value)};
hnw=function(M,q){for(var G in q)if(lG(q[G])){if(G in M&&!lG(M[G]))throw Error("rf");G in M||(M[G]={});hnw(M[G],q[G])}else if(tv4(q[G])){if(G in M&&!tv4(M[G]))throw Error("sf");G in M||(M[G]=[]);Oh$(M[G],q[G])}else M[G]=q[G];return M};
Oh$=function(M,q){q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=G.value,lG(G)?M.push(hnw({},G)):tv4(G)?M.push(Oh$([],G)):M.push(G);return M};
lG=function(M){return typeof M==="object"&&!Array.isArray(M)};
tv4=function(M){return typeof M==="object"&&Array.isArray(M)};
Czy=function(M){for(var q=_.k(Object.entries(wns)),G=q.next();!G.done;G=q.next())if(G=_.k(G.value),G.next(),G=G.next().value,G==="SLI_STATUS_"+M)return G;return"SLI_STATUS_UNKNOWN"};
_.PF=function(M,q,G,K){return a4Y(M,q,function(){return new _.otj(M,q,G,K)})};
_.l4Y=function(){return _.PF("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
Xny=function(){return _.PF("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
iG=function(){return _.PF("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
Pzy=function(){return _.PF("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
ihy=function(){return _.PF("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
cty=function(){return _.PF("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Q3F=function(M){M&&(M.dataset?M.dataset[gtY()]="true":_.kq([_.vc(BQe)],M,"data-loaded","true".toString()))};
I4y=function(M){return M?M.dataset?M.dataset[gtY()]:M.getAttribute("data-loaded"):null};
gtY=function(){return DSD.loaded||(DSD.loaded="loaded".replace(/\-([a-z])/g,function(M,q){return q.toUpperCase()}))};
_.cF=function(M,q,G){u9w(M,q,G===void 0?null:G)};
_.Zhj=function(M,q){M&&q&&(M=""+_.Fi(q),(M=JtY[M])&&_.wby(M))};
u9w=function(M,q,G){G=G===void 0?null:G;var K=_.bhF(typeof M==="string"?M:M.toString()),n=document.getElementById(K),E=n&&I4y(n),p=n&&!E;E?q&&q():(q&&(E=_.tp(K,q),q=""+_.Fi(q),JtY[q]=E),p||(n=USi(M,K,function(){I4y(n)||(Q3F(n),_.CmD(K),_.lj(function(){_.oje(K)},0))},G)))};
USi=function(M,q,G,K){K=K===void 0?null:K;var n=_.iI("SCRIPT");n.id=q;n.onload=function(){G&&setTimeout(G,0)};
n.onreadystatechange=function(){switch(n.readyState){case "loaded":case "complete":n.onload()}};
K&&n.setAttribute("nonce",K);_.Ei(n,typeof M==="string"?_.bI(M):M);M=document.getElementsByTagName("head")[0]||document.body;M.insertBefore(n,M.firstChild);return n};
_.bhF=function(M){var q=document.createElement("a");Vk(q,M);return"js-"+gt(q.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
xSw=function(M){var q=_.R9("INNERTUBE_HOST_OVERRIDE");q&&(M=String(q)+String(_.BF(M)));return M};
znj=function(M){var q={};_.w("json_condensed_response")&&(q.prettyPrint="false");return M=SuH(M,q)};
_.QW=function(M){return LD(M)?"same-origin":"include"};
_.If=function(M){return LD(M)?"same-origin":"cors"};
Da=function(M,q,G){G=G===void 0?{}:G;M={method:q===void 0?"POST":q,mode:_.If(M),credentials:_.QW(M)};q={};for(var K=_.k(Object.keys(G)),n=K.next();!n.done;n=K.next())n=n.value,G[n]&&(q[n]=G[n]);Object.keys(q).length>0&&(M.headers=q);return M};
_.uG=function(M,q){q=q===void 0?{}:q;return"service:"+M+"/"+Object.keys(q).sort().map(function(G){return G+":"+q[G]}).join("/")};
mSD=function(M){var q,G,K,n;M=(q=_.C(M,_.Jl))==null?void 0:(G=q.watchEndpointSupportedOnesieConfig)==null?void 0:(K=G.html5PlaybackOnesieConfig)==null?void 0:(n=K.commonConfig)==null?void 0:n.url;if(!M)return[];q=new _.Za(M);return q.JSC$10036_domain_?["https://"+q.JSC$10036_domain_+"/generate_204"]:[]};
_.rtw=function(){return SZe()||f_H()||TQu&&fD("version/")?!0:_.R9("EOM_VISITOR_DATA")?!1:!0};
j3$=function(M){var q=M.docid||M.video_id||M.videoId||M.id;if(q)return q;q=M.raw_player_response;q||(M=M.player_response)&&(q=JSON.parse(M));return q&&q.videoDetails&&q.videoDetails.videoId||null};
Vvj=function(M){return M.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
bG=function(M){return!isNaN(Number(M))&&!_.Lj(M)};
_.xD=function(M,q,G,K){K=K===void 0?!0:K;var n=_.R9("VALID_SESSION_TEMPDATA_DOMAINS",[]),E=_.pD(window.location.href);E&&n.push(E);E=_.pD(M);if(_.zF(n,E)||!E&&_.Ee(M,"/"))if(n=document.createElement("a"),Vk(n,M),M=n.href)if(M=_.BF(M),M=_.Uu(M))K&&!q.csn&&(q.itct||q.ved)&&(q=Object.assign({csn:_.Cx()},q)),G?(G=parseInt(G,10),isFinite(G)&&G>0&&Rn4(M,q,G)):Rn4(M,q)};
FxF=function(M){var q=_.R9("VALID_SESSION_TEMPDATA_DOMAINS",[]),G=_.pD(window.location.href);G&&q.push(G);G=_.pD(M);if(!(_.zF(q,G)||!G&&_.Ee(M,"/")))return null;M=_.BF(M);(M=_.Uu(M))?(M=f4s(M),M=(M=_.Iu.get(M,void 0)||null)?_.KD(M):{}):M=null;return M};
Rn4=function(M,q,G){M=f4s(M);q=q?_.gP(q):"";G=G||5;_.rtw()&&_.Df(M,q,G)};
f4s=function(M){for(var q=_.k(Hhe),G=q.next();!G.done;G=q.next())M=_.zt(M,G.value);return"ST-"+gt(M).toString(36)};
_.en4=function(M){if(M.requestFullscreen)M=M.requestFullscreen(void 0);else if(M.webkitRequestFullscreen)M=M.webkitRequestFullscreen();else if(M.mozRequestFullScreen)M=M.mozRequestFullScreen();else if(M.msRequestFullscreen)M=M.msRequestFullscreen();else if(M.webkitEnterFullscreen)M=M.webkitEnterFullscreen();else return Promise.reject(Error("Bf"));return M instanceof Promise?M:Promise.resolve()};
_.SP=function(M){var q;_.N7y(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.m3()==M&&(q=document):q=M;if(q&&(M=_.N7y(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],q))){M.call(q)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.m3=function(){var M=M===void 0?!1:M;var q=_.N7y(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(M)for(;q&&q.shadowRoot;)q=q.shadowRoot.fullscreenElement;return q?q:null};
_.Tt=function(M,q){q=q===void 0?!0:q;M.addEventListener("wheel",$Sy);M.overscrollConfig={cooldown:q}};
_.rt=function(M){M.overscrollConfig=void 0;M.removeEventListener("wheel",$Sy)};
$Sy=function(M){var q=M.deltaY,G=M.target,K=null;if(window.Polymer&&window.Polymer.Element){if(G=M.path||M.composedPath&&M.composedPath()){G=_.k(G);for(var n=G.next();!n.done&&(n=n.value,!sD4(n,q));n=G.next())if(n.overscrollConfig){K=n;break}}}else for(;G&&!sD4(G,q);){if(G.overscrollConfig){K=G;break}G=G.parentElement}K&&(q=K.overscrollConfig,q.cooldown?(K=M.deltaY,G=q.lastDeltaY||0,q.lastDeltaY=K,n=q.lastStopped||0,G&&n&&G>0==K>0?Math.abs(G)>=Math.abs(K)?(K=n+1200,G=!1):(K=n+600,G=!0):(K=Date.now()+
600,G=!0),K>Date.now()&&(M.preventDefault(),G&&(q.lastStopped=Date.now()))):M.preventDefault())};
sD4=function(M,q){return q<0&&M.scrollTop>0||q>0&&M.scrollTop<M.scrollHeight-M.clientHeight-1?(M=getComputedStyle(M).overflowY,M=="auto"||M=="scroll"):!1};
_.jP=function(M,q,G,K){K||(K={bubbles:!0,cancelable:!1,composed:!0});G!==null&&G!==void 0&&(K.detail=G);var n=new CustomEvent(q,K);_.w("untrack_fire_custom_event_killswitch")?M.dispatchEvent(n):_.oY(function(){return void M.dispatchEvent(n)});
return n};
MND=function(M){var q=window,G=function(K){q.removeEventListener("yt-navigate-start",G);return M.call(q,K)};
q.addEventListener("yt-navigate-start",G,void 0)};
_.VW=function(M,q,G,K){q=new q7F(q,!(K===void 0||!K),G);_.jP(M,"yt-action",q);return q.returnValue};
_.Rf=function(M,q,G){return _.VW(M,q,G,!0)};
_.FH=function(M,q,G,K){q&&q.length&&q.forEach(function(n){var E=KgH(n);E&&(_.w("handle_service_request_actions")&&n.commandMetadata&&n.commandMetadata.webCommandMetadata&&n.commandMetadata.webCommandMetadata.sendPost?_.fx(G?G:M,[n]):_.Rf(M,E,[n,G,K]))})};
_.fx=function(M,q){var G=[M];q&&G.push.apply(G,q);q=_.VW(M,"yt-service-request",G);return q.length>0&&(q=q[0],_.jP(M,"yt-service-request-sent",q),q&&q.ajaxPromise)?(q.ajaxPromise.then(function(K){_.jP(M,"yt-service-request-completed",K)},function(K){_.jP(M,"yt-service-request-error",{error:K,
params:G})},M),q.ajaxPromise):_.HF()};
_.$D=function(M,q){if(_.w("handle_service_request_actions"))_.FH(q,M,q);else{M=_.k(M);for(var G=M.next();!G.done;G=M.next()){G=G.value;var K=void 0;((K=_.C(G,_.eP))==null?0:K.commands)?_.$D(_.C(G,_.eP).commands,q):(K=void 0,((K=_.C(G,_.sl))==null?0:K.actions)?_.$D(_.C(G,_.sl).actions,q):(K=void 0,((K=_.C(G.commandMetadata,_.Mg))==null?0:K.sendPost)?_.fx(q,[G]):_.FH(q,[G],q)))}}};
_.Kzy=function(M,q,G){q=q===void 0?{}:q;typeof q==="function"&&(q={callback:q});G||q._c&&q._c.jsl&&q._c.jsl.h||_.xP.extend(q,{_c:{jsl:{h:_.R9("GAPI_HINT_PARAMS")}}});(q.gapiHintOverride||_.R9("GAPI_HINT_OVERRIDE"))&&(G=_.nD(document.location.href).gapi_jsh)&&_.xP.extend(q,{_c:{jsl:{h:G}}});GXw(M,q)};
_.Ge=function(M,q,G){q=q===void 0?{}:q;M=(M=M in qg?qg[M]:G)||"";G={};for(var K in q){G={key$jscomp$844:G.key$jscomp$844};G.key$jscomp$844=K;var n=function(E){return function(){return String(q[E.key$jscomp$844])}}(G);
M=M.replace(new RegExp("\\$\\{"+G.key$jscomp$844+"\\}","gi"),n);M=M.replace(new RegExp("\\$"+G.key$jscomp$844,"gi"),n)}return M};
_.K7=function(M,q){return nNs(M in qg?qg[M]:{},q)};
nNs=function(M,q){var G=_.R9("I18N_PLURAL_RULES");G||(G=function(K){return K==1?"one":"other"});
return(M=M["case"+q]||M[G(q)])?M.replace("#",q.toString()):q+""};
kXy=function(M){var q=ENH(M),G=document.getElementById(q),K=G&&I4y(G);K||G&&!K||(G=Niy(M,q,function(){if(!I4y(G)){Q3F(G);_.CmD(q);var n=_.n7(_.oje,q);_.lj(n,0)}}))};
Niy=function(M,q,G){var K=document.createElement("link");K.id=q;K.onload=function(){G&&setTimeout(G,0)};
M=_.bI(M);_.pv(K,M,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(K);return K};
ENH=function(M){var q=_.iI("A");Vk(q,J9(M));return"css-"+gt(q.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.yri=function(M){var q=pAj();M!==q&&(q=_.El(),!_.w("web_autonav_allow_off_by_default")&&M||_.Ng(0,141,!0),_.Ng(0,140,!M),q.save())};
pAj=function(){var M=_.El();return _.w("web_autonav_allow_off_by_default")&&!M.getFlag(141)&&_.R9("AUTONAV_OFF_BY_DEFAULT")?!1:!M.getFlag(140)};
LzD=function(M,q){var G,K;M=((G=M.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(K=G.videoAuthorizationToken)==null?void 0:K.credentialTransferTokens)||[];for(G=0;G<M.length;++G)if(M[G].scope===q)return M[G].token||void 0};
Y7D=function(M){for(var q=0,G=0;G<M.length;G++)q=q*31+M.charCodeAt(G),G<M.length-1&&(q%=0x800000000000);return q%1E5};
_.kp=function(M){return _.sx("ytcsi."+(M||"")+"data_")||WzF(M)};
_.ArF=function(M){M=_.kp(M);M.metadata||(M.metadata={});return M.metadata};
_.dCy=function(M){M=_.kp(M);M.tick||(M.tick={});return M.tick};
_.p7=function(M){M=_.kp(M);if(M.gel){var q=M.gel;q.gelInfos||(q.gelInfos={});q.gelTicks||(q.gelTicks={})}else M.gel={gelTicks:{},gelInfos:{}};return M.gel};
_.vNj=function(M){M=_.p7(M);M.gelInfos||(M.gelInfos={});return M.gelInfos};
hbY=function(M){var q=_.kp(M).nonce;q||(q=hl(16),_.kp(M).nonce=q);return q};
WzF=function(M){var q={tick:{},info:{}};_.Y5("ytcsi."+(M||"")+"data_",q);return q};
tNY=function(){var M=_.sx("ytcsi.debug");M||(M=[],_.Y5("ytcsi.debug",M),_.Y5("ytcsi.reference",{}));return M};
_.yQ=function(M){M=M||"";var q=O14();if(q[M])return q[M];var G=tNY(),K={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};G.push(K);return q[M]=K};
wAD=function(M){M=M||"";var q=O14();q[M]&&delete q[M];var G=tNY(),K={timerName:M,info:{},tick:{},span:{},jspbInfo:[]};G.push(K);q[M]=K};
O14=function(){var M=_.sx("ytcsi.reference");if(M)return M;tNY();return _.sx("ytcsi.reference")};
_.awy=function(M){return CUs[M]||"LATENCY_ACTION_UNKNOWN"};
PU4=function(M,q,G){G=G===void 0?{}:G;var K=!1;_.fX("ytLoggingEventsDefaultDisabled",!1)&&(K=!0);K=K?null:z6;G=G===void 0?{}:G;var n=Math.round(G.timestamp||(0,_.d8)());_.Db(q,1,n<Number.MAX_SAFE_INTEGER?n:0);n=new oND;if(G.lact)_.Db(n,1,isFinite(G.lact)?G.lact:-1);else if(G.timestamp)_.Db(n,1,-1);else{var E=_.Ap();_.Db(n,1,isFinite(E)?E:-1)}if(G.sequenceGroup&&!_.w("web_gel_sequence_info_killswitch")){E=G.sequenceGroup;var p=ItD(E),y=new lwy;_.Db(y,2,p);_.DJ(y,1,E);_.Xe(n,3,y);G.endOfSequence&&delete XAu[G.sequenceGroup]}_.Xe(q,
33,n);(G.sendIsolatedPayload?xYF:zxy)(M,{endpoint:"log_event",payload:q,cttAuthInfo:G.cttAuthInfo,dangerousLogToVisitorSession:G.dangerousLogToVisitorSession},K)};
_.Yp=function(){return(_.w("csi_use_time_origin")||_.w("csi_use_time_origin_tvhtml5"))&&_.L7.timeOrigin?Math.floor(_.L7.timeOrigin):_.L7.timing.navigationStart};
_.i14=function(M,q){_.W8("_start",M,q)};
_.A2=function(M,q){if(!_.w("web_csi_action_sampling_enabled")||!_.kp(q).actionDisabled){var G=_.yQ(q||"");_.XH(G.info,M);M.loadType&&(G=M.loadType,_.ArF(q).loadType=G);_.XH(_.vNj(q),M);G=hbY(q);q=_.kp(q).cttAuthInfo;cri().info(M,G,q)}};
gN$=function(){var M,q,G,K;return((K=_.AL().resolve(_.WR(Zb))==null?void 0:(M=bN())==null?void 0:(q=M.loggingHotConfig)==null?void 0:(G=q.csiConfig)==null?void 0:G.debugTicks)!=null?K:[]).map(function(n){return Object.values(n)[0]})};
_.W8=function(M,q,G){if(!_.w("web_csi_action_sampling_enabled")||!_.kp(G).actionDisabled){var K=hbY(G),n;if(n=_.w("web_csi_debug_sample_enabled")&&K){(_.AL().resolve(_.WR(Zb))==null?0:bN())&&!Bi$&&(Bi$=!0,_.W8("gcfl",(0,_.d8)(),G));var E,p,y;n=(_.AL().resolve(_.WR(Zb))==null?void 0:(E=bN())==null?void 0:(p=E.loggingHotConfig)==null?void 0:(y=p.csiConfig)==null?void 0:y.debugSampleWeight)||0;if(E=n!==0)b:{E=gN$();if(E.length>0)for(p=0;p<E.length;p++)if(M===E[p]){E=!0;break b}E=!1}E?(n=Y7D(K)%n!==0,
_.kp(G).debugTicksExcludedLogged||(E={},E.debugTicksExcluded=n,_.A2(E,G)),_.kp(G).debugTicksExcludedLogged=!0):n=!1}if(!n){M[0]!=="_"&&QDy(M,G,q);n=_.yQ(G||"");n.tick[M]=q||(0,_.d8)();if(n.callback&&n.callback[M])for(n=_.k(n.callback[M]),E=n.next();!E.done;E=n.next())E=E.value,E();n=_.p7(G);n.gelTicks&&(n.gelTicks[M]=!0);E=_.dCy(G);n=q||(0,_.d8)();_.w("log_repeated_ytcsi_ticks")?M in E||(E[M]=n):E[M]=n;E=_.kp(G).cttAuthInfo;M==="_start"?cri().baseline(K,q,E):cri().tick(M,K,q,E);_.IwH(G);return n}}};
QDy=function(M,q,G){if(_.L7.mark)if(M.startsWith("mark_")||(M="mark_"+M),q&&(M+=" ("+q+")"),G===void 0||_.w("web_csi_disable_alt_time_performance_mark"))_.L7.mark(M);else{G=_.w("csi_use_performance_navigation_timing")?G-_.L7.timeOrigin:G-(_.L7.timeOrigin||_.L7.timing.navigationStart);try{_.L7.mark(M,{startTime:G})}catch(K){}}};
DCi=function(){var M,q=(M=_.L7.getEntriesByType)==null?void 0:M.call(_.L7,"mark");q&&q.forEach(function(G){if(G.name.startsWith("mark_")){var K;(K=_.L7.clearMarks)==null||K.call(_.L7,G.name)}})};
_.u7j=function(){switch(Ejy()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.Jre=function(M){var q={},G=function(E,p,y){p=p.match("_rid")?p.split("_rid")[0]:p;typeof y==="number"&&(y=JSON.stringify(y));E.requestIds?E.requestIds.push({endpoint:p,id:y}):E.requestIds=[{endpoint:p,id:y}]};
M=_.k(Object.entries(M));for(var K=M.next();!K.done;K=M.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;switch(K){case "GetBrowse_rid":G(q,K,n);break;case "GetGuide_rid":G(q,K,n);break;case "GetHome_rid":G(q,K,n);break;case "GetPlayer_rid":G(q,K,n);break;case "GetSearch_rid":G(q,K,n);break;case "GetSettings_rid":G(q,K,n);break;case "GetTrending_rid":G(q,K,n);break;case "GetWatchNext_rid":G(q,K,n);break;case "yt_red":q.isRedSubscriber=!!n;break;case "yt_ad":q.isMonetized=!!n}}return q};
b1F=function(M,q,G,K,n,E){if(!_.w("web_csi_action_sampling_enabled")||!_.kp(E).actionDisabled){var p=_.p7(E);if(p.gelSpans)p.gelSpans[M]=!0;else{var y={};p.gelSpans=(y[M]=!0,y)}Z1Y++;M={spanName:M,spanLengthUsec:String(Math.round(q*1E3)),spanNonce:Z1Y};K&&(M.spanInfo=K);n&&(M.parentSpanNonce=n);G&&(M.spanStartTimeUsec=String(Math.round(G*1E3)));_.yQ(E||"").span[String(M.spanName)]=M;G=_.p7(E);G.gelSpans||(G.gelSpans={});_.XH(G.gelSpans,M);G=hbY(E);E=_.kp(E).cttAuthInfo;cri().span(M,G,E);return M.spanNonce}};
_.UCj=function(M){var q=_.dj("aft",M);if(q)return q;q=_.R9((M||"")+"TIMING_AFT_KEYS",["ol"]);for(var G=q.length,K=0;K<G;K++){var n=_.dj(q[K],M);if(n)return n}return NaN};
_.xCH=function(M,q){_.Y5("ytglobal.timing"+(q||"")+"ready_",M)};
_.dj=function(M,q){if(M=_.dCy(q)[M])return typeof M==="number"?M:M[M.length-1]};
_.IwH=function(M){var q=_.dj("_start",M),G=_.UCj(M),K=!zb$;q&&G&&K&&(Dry(mCD,new S7Y(Math.round(G-q),M)),zb$=!0)};
rry=function(M){WzF(M);Tis();DCi();M||(_.R9("TIMING_ACTION")&&_.Vz("PREVIOUS_ACTION",_.R9("TIMING_ACTION")),_.Vz("TIMING_ACTION",""))};
_.jDs=function(M){M=M===void 0?{}:M;_.$2(function(){h2();wAD();rry();_.xCH(!1);M.cttAuthInfo&&(_.kp().cttAuthInfo=M.cttAuthInfo);_.Vz("TIMING_AFT_KEYS",[]);M.isHot?_.t2({loadType:"hot"}):_.t2({loadType:"warm"});_.Vz("TIMING_ACTION","");delete _.R9("TIMING_INFO",{}).yt_lt;_.$2(_.i14)(M.startTime,void 0)})()};
_.aJ=function(M,q,G,K){q=q===void 0?{}:q;_.$2(function(){var n=G?G:M;Ol(n);var E=q.sampleRate;if(!_.w("web_csi_action_sampling_enabled")||E===void 0||E<=1)E=!1;else{var p=hbY(n);E=Y7D(p)%E!==0}E&&(_.kp(n).actionDisabled=!0);_.yQ(n||"").info.actionType=M;q.cttAuthInfo&&(_.kp(n).cttAuthInfo=q.cttAuthInfo);_.Vz(n+"TIMING_ACTION",M);_.$2(_.i14)(q.startTime,n);E={actionType:K||_.awy(M)};q.logPreviousAction&&(E.previousAction=_.awy(_.R9("TIMING_ACTION")));(p=_.Cx())&&p!=="UNDEFINED_CSN"&&(E.clientScreenNonce=
p);_.t2(E,n);_.xCH(!0,n)})()};
Ol=function(M){_.$2(function(){h2(M);wAD(M);rry(M)})()};
VNy=function(){_.$2(function(){var M=[],q;for(q in _.sx("ytcsi.".slice(0,-1)))q.endsWith("data_")&&M.push(q.slice(0,-5));M=_.k(M);for(q=M.next();!q.done;q=M.next())Ol(q.value);h2()})()};
_.fwY=function(M){return _.$2(function(){return _.RbH("_start",M)})()};
_.t2=function(M,q,G){_.$2(_.A2)(M,q,G===void 0?!1:G)};
_.oJ=function(M,q,G){return _.$2(_.W8)(M,q,G)};
_.RbH=function(M,q){return _.$2(function(){var G=_.dCy(q);return M in G})()};
H1y=function(M){if(!_.w("universal_csi_network_ticks"))return"";M=_.ij(M)||"";for(var q=Object.keys(Fz$),G=0;G<q.length;G++){var K=q[G];if(M.includes(K))return K}return""};
$C4=function(M){if(!_.w("universal_csi_network_ticks"))return function(){};
var q=Fz$[M];return q?(_.lO(q),function(){var G=_.w("universal_csi_network_ticks")?(G=eb$[M])?_.lO(G):!1:!1;return G}):function(){}};
_.lO=function(M,q,G){return _.$2(function(){if(_.RbH(M,G))return!1;_.oJ(M,q,G);return!0})()};
_.XI=function(M,q,G){_.$2(function(){if(!_.fwY(G)||_.RbH(M,G))return!1;_.oJ(M,q,G);return!0})()};
_.P8=function(M){return _.$2(_.dj)(M,void 0)};
h2=function(M){_.fwY(M)&&_.oJ("aa",void 0,M)};
_.Kq$=function(M,q,G,K,n,E,p,y,Y){var A=sQu();y=new Ou({veType:q,youtubeData:E,jspbYoutubeData:y});E=iO({},A);n&&(E.cttAuthInfo=n);n={csn:A,pageVe:y.getAsJson()};_.w("expectation_logging")&&Y&&Y.screenCreatedLoggingExpectations&&(n.screenCreatedLoggingExpectations=Y.screenCreatedLoggingExpectations);G&&G.visualElement?(n.implicitGesture={parentCsn:G.clientScreenNonce,gesturedVe:G.visualElement.getAsJson()},p&&(n.implicitGesture.gestureType=p)):G&&_.j1(new _.bj("newScreen() parent element does not have a VE - rootVe",
q));K&&(n.cloneCsn=K);M?xc("screenCreated",n,M,E):_.ml("screenCreated",n,E);Dry(z3j,new M6w(A));c8.clear();qji.clear();GkD.clear();return A};
gj=function(M,q,G,K,n,E){E=E===void 0?{}:E;nxD(M,q,G,[K],n===void 0?!1:n,E)};
nxD=function(M,q,G,K,n,E){n=n===void 0?!1:n;E=E===void 0?{}:E;Object.assign(E,iO({cttAuthInfo:af(q)||void 0},q));for(var p=_.k(K),y=p.next();!y.done;y=p.next()){y=y.value;var Y=y.getAsJson();(_.xP.isEmpty(Y)||!Y.trackingParams&&!Y.veType)&&_.j1(Error("Cf"));if(_.w("no_client_ve_attach_unless_shown")){var A=Ex4(y,q);if(Y.veType&&!qji.has(A)&&!GkD.has(A)&&!n){if(!_.w("il_attach_cache_limit")||c8.size<1E3){c8.set(A,[M,q,G,y]);return}_.w("il_attach_cache_limit")&&c8.size>1E3&&_.j1(new _.bj("IL Attach cache exceeded limit"))}y=
Ex4(G,q);c8.has(y)?NTj(G,q):GkD.set(y,!0)}}K=K.filter(function(v){v.csn!==q?(v.csn=q,v=!0):v=!1;return v});
G={csn:q,parentVe:G.getAsJson(),childVes:_.z9(K,function(v){return v.getAsJson()})};
q==="UNDEFINED_CSN"?B8("visualElementAttached",E,G):M?xc("visualElementAttached",G,M,E):_.ml("visualElementAttached",G,E)};
pgy=function(M,q,G,K,n){kke(M,q,G,n)};
kke=function(M,q,G,K){y1i(G,q);var n=iO({cttAuthInfo:af(q)||void 0},q);G={csn:q,ve:G.getAsJson(),eventType:1};K&&(G.clientData=K);q==="UNDEFINED_CSN"?B8("visualElementShown",n,G):M?xc("visualElementShown",G,M,n):_.ml("visualElementShown",G,n)};
Lqy=function(M,q,G,K){y1i(G,q);var n=iO({cttAuthInfo:af(q)||void 0},q);G={csn:q,ve:G.getAsJson(),eventType:4};K&&(G.clientData=K);q==="UNDEFINED_CSN"?B8("visualElementShown",n,G):M?xc("visualElementShown",G,M,n):_.ml("visualElementShown",G,n)};
Yjy=function(M,q,G,K,n){var E=(K=K===void 0?!1:K)?16:8;K=iO({cttAuthInfo:af(q)||void 0,endOfSequence:K},q);G={csn:q,ve:G.getAsJson(),eventType:E};n&&(G.clientData=n);q==="UNDEFINED_CSN"?B8("visualElementHidden",K,G):M?xc("visualElementHidden",G,M,K):_.ml("visualElementHidden",G,K)};
A1F=function(M,q,G,K,n){WqH(M,q,G,void 0,K,n)};
WqH=function(M,q,G,K,n){y1i(G,q);K=K||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var E=iO({cttAuthInfo:af(q)||void 0},q);G={csn:q,ve:G.getAsJson(),gestureType:K};n&&(G.clientData=n);q==="UNDEFINED_CSN"?B8("visualElementGestured",E,G):M?xc("visualElementGestured",G,M,E):_.ml("visualElementGestured",G,E)};
d1s=function(M,q,G,K){var n=iO({cttAuthInfo:af(q)||void 0},q);G={csn:q,ve:G.getAsJson(),clientData:K};q==="UNDEFINED_CSN"?B8("visualElementStateChanged",n,G):M?xc("visualElementStateChanged",G,M,n):_.ml("visualElementStateChanged",G,n)};
vxH=function(){var M=Gb4(16);for(var q=[],G=0;G<M.length;G++)q.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(M[G]&63));return q.join("")};
B8=function(M,q,G){hXe.push({payloadName:M,payload:G,jspbPayload:void 0,options:q});t6y||(t6y=SpY())};
xrj=function(M){if(hXe){for(var q=_.k(hXe),G=q.next();!G.done;G=q.next())G=G.value,G.payload&&(G.payload.csn=M.csn,_.ml(G.payloadName,G.payload,G.options));hXe.length=0}t6y=0};
Ex4=function(M,q){return""+M.getAsJson().veType+M.getAsJson().veCounter+q};
y1i=function(M,q){if(_.w("no_client_ve_attach_unless_shown")){var G=Ex4(M,q);qji.set(G,!0);NTj(M,q)}};
NTj=function(M,q){M=Ex4(M,q);c8.has(M)&&(q=c8.get(M)||[],gj(q[0],q[1],q[2],q[3],!0),c8.delete(M))};
iO=function(M,q){_.w("log_sequence_info_on_gel_web")&&(M.sequenceGroup=q);return M};
_.QQ=function(M,q,G){_.$2(gj)(void 0,M,q,G)};
_.IJ=function(M,q,G){_.$2(nxD)(void 0,M,q,G)};
_.D_=function(M,q){_.$2(pgy)(void 0,M,q,void 0,void 0,void 0)};
_.uO=function(M,q,G){_.$2(function(){_.Gc(q,function(K){Lqy(void 0,M,K,G)})})()};
_.J2=function(M,q,G,K){_.$2(function(){_.Gc(q,function(n){Yjy(void 0,M,n,G,K)})})()};
_.Z_=function(M,q,G){_.$2(A1F)(void 0,M,q,G,void 0)};
_.bO=function(M,q,G,K){_.$2(WqH)(void 0,M,q,G,K,void 0)};
_.Ul=function(M,q,G){_.$2(d1s)(void 0,M,q,G,void 0)};
ONw=function(M,q){xp.set(M,q)};
wgu=function(M){ze.initialized=!0;ze.sessionId=M.sessionId||"";ze.enabledSpans=M.enabledSpans;M.shouldSampleFn!=null&&(ze.shouldSampleFn=M.shouldSampleFn)};
Cue=function(M){ze.processors.push(M)};
aMw=function(M){return ze.initialized?ze.enabledSpans?ze.enabledSpans[M]:!0:!1};
Xgi=function(M,q,G){M=aMw(M)&&ze.shouldSampleFn(M,q,oxi)?new lMw(M,q):void 0;M&&(M.options||(M.options={}),M.options.active=!0,ze.stack.push(M));try{var K=G(M);M==null||M.end(void 0);return K}catch(n){throw M==null||M.end(2),n;}};
iNH=function(){fA.subscribe("handleError",function(M){try{for(var q in Puy)try{var G=Puy[q];typeof Puy[q]==="function"&&(G=G());M.params[q]=typeof Puy[q]==="object"?JSON.stringify(G):String(G)}catch(K){_.j1(K)}}catch(K){_.j1(K)}})};
c1y=function(){};
gxj=function(M,q){var G=Object.keys(M);M=new _.bj("[Command Handler] "+q,{filteredCommandNames:G,originalCommand:M});_.T6(M)};
BTj=function(M,q){gxj(M,q+" was called but not set")};
QQ4=function(M){return function(){return new M}};
mb=function(M){return function(){return _.AL().resolve(M)}};
IMs=function(M,q){var G=_.C(M,_.sQ);if(G&&(G=q[G.signal]))return G();M=_.k(Object.keys(M));for(G=M.next();!G.done;G=M.next())if(G=G.value,q[G]&&(G=q[G]))return G()};
_.SE=function(M,q,G,K){return{browseEndpoint:{browseId:M},commandMetadata:{webCommandMetadata:{url:q,rootVe:G,webPageType:K===void 0?"WEB_PAGE_TYPE_BROWSE":K}}}};
D1j=function(M,q,G){var K=q=q===void 0?0:q;G=G===void 0?0:G;var n=G-K;return _.Te(M,"PPSV",void 0,void 0,(n>600?0:n<60||G<=0||K/G>.9)?0:q)};
_.Te=function(M,q,G,K,n){var E="/watch?v="+M;M={videoId:M};q&&(M.playlistId=q,E+="&list="+q);K&&(E+="&pp="+K);n&&(M.startTimeSeconds=n,E+="&t="+n+"s");q={watchEndpoint:M,commandMetadata:{webCommandMetadata:{url:E,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};G&&(q.clickTrackingParams=G);K&&(_.C(q,_.Jl).playerParams=K);return q};
u3H=function(M){return{browseEndpoint:{browseId:"VL"+M},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+M,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
J1y=function(M){if(M){var q;if(M){var G=(q=_.C(M.commandMetadata,_.Mg))==null?void 0:q.url;q=!(!G||G==="/service_ajax")}else q=!1;if(q)return M;var K;if(M=(K=_.C(M,_.eP))==null?void 0:K.commands)for(K=_.k(M),M=K.next();!M.done;M=K.next())if(M=J1y(M.value))return M}};
_.rj=function(M){return{runs:[{text:M}]}};
ZNw=function(M,q){return M&&q?{runs:[{text:M,navigationEndpoint:q}]}:void 0};
jE=function(M){return M?_.rj(M):void 0};
_.VQ=function(M){return M?{simpleText:M}:void 0};
_.RJ=function(M){var q=M.type;M=M.payload;q={type:q};M!==void 0&&(q.payload=M);return q};
bNw=function(M,q,G){for(var K=Object.assign({},M),n=_.k(Object.keys(q)),E=n.next();!E.done;E=n.next()){E=E.value;var p=M[E],y=q[E];if(y===void 0)delete K[E];else if(p===void 0)K[E]=y;else if(Array.isArray(y)&&Array.isArray(p))K[E]=G?[].concat(_.Ui(p),_.Ui(y)):y;else if(!Array.isArray(y)&&_.VY(y)&&!Array.isArray(p)&&_.VY(p))K[E]=bNw(p,y,G);else if(typeof y===typeof p)K[E]=y;else return q=new _.bj("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:E,originalValue:p,updateValue:y}),
_.T6(q),M}return K};
zXi=function(M){if(!M.length)return"";try{if(U1D)return U1D.decode(M);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(M)}catch(p){}for(var q=0,G=[],K=M.length;q<K;){for(var n=0;n<1024&&q<K;){var E=M[q++];if(E<128)x1w[n++]=E;else{if(E<224)E=(E&31)<<6|M[q++]&63;else if(E<240)E=(E&15)<<12|(M[q++]&63)<<6|M[q++]&63;else{if(n+1===1024){--q;break}E=(E&7)<<18|(M[q++]&63)<<12|(M[q++]&63)<<6|M[q++]&63;E-=65536;x1w[n++]=55296|E>>10;E=56320|E&1023}x1w[n++]=E}}E=String.fromCharCode.apply(String,
x1w);n<1024&&(E=E.substring(0,n));G.push(E)}return G.join("")};
Sjw=function(M,q){var G;if((G=m1w)==null?0:G.encodeInto)return q=m1w.encodeInto(M,q),q.read<M.length?M.length*4:q.written;for(var K=G=0;K<M.length;K++){var n=M.charCodeAt(K);n<128?q[G++]=n:(n<2048?q[G++]=n>>6|192:((n&64512)===55296&&K+1<M.length&&(M.charCodeAt(K+1)&64512)===56320?(n=65536+((n&1023)<<10)+(M.charCodeAt(++K)&1023),q[G++]=n>>18|240,q[G++]=n>>12&63|128):q[G++]=n>>12|224,q[G++]=n>>6&63|128),q[G++]=n&63|128)}return G};
TT$=function(M,q,G){if(q&&G&&G.buffer===q.exports.memory.buffer){var K=q.realloc(G.byteOffset,M);if(K)return new Uint8Array(q.exports.memory.buffer,K,M)}M=q?new Uint8Array(q.exports.memory.buffer,q.malloc(M),M):new Uint8Array(M);G&&M.set(G);return M};
_.FI=function(M){M=new r1$(new jQF([_.ew(decodeURIComponent(M))]));if(V6$(M,2)){var q=f7(M);var G=M.pos;var K=M.arrayView;G=G===void 0?0:G;var n=q===void 0?-1:q;G=G===void 0?0:G;n=n===void 0?-1:n;if(K.totalLength&&n){n<0&&(n=K.totalLength-G);K.focus(G);if(!(G-K.arrayPos+n<=K.arrays[K.arrayIdx].length)){var E=K.arrayIdx,p=K.arrayPos;K.focus(G+n-1);p=new Uint8Array(K.arrayPos+K.arrays[K.arrayIdx].length-p);for(var y=0,Y=E;Y<=K.arrayIdx;Y++)p.set(K.arrays[Y],y),y+=K.arrays[Y].length;K.arrays.splice(E,
K.arrayIdx-E+1,p);K.arrayIdx=0;K.arrayPos=0;K.focus(G)}E=K.arrays[K.arrayIdx];K=new DataView(E.buffer,E.byteOffset+G-K.arrayPos,n)}else K=new DataView(new ArrayBuffer(0));K=new Uint8Array(K.buffer,K.byteOffset,K.byteLength);M.pos+=q;q=K}else q=void 0;q=q?zXi(q):void 0;M=V6$(M,4)?f7(M):void 0;K=RX$[M];if(typeof K==="undefined")throw M=new _.bj("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:M}),_.T6(M),M;return{entityTypeFieldNumber:M,entityType:K,entityId:q}};
_.$p=function(M,q,G){G=G===void 0?0:G;var K=new fMF;if(m1w)M=m1w.encode(M);else{var n=new Uint8Array(Math.ceil(M.length*1.2)),E=Sjw(M,n);n.length<E&&(n=new Uint8Array(E),E=Sjw(M,n));n.length>E&&(n=n.subarray(0,E));M=n}M!==void 0&&(H8(K,18),n=M.length,H8(K,n),eE(K,n),K.buf.set(M,K.pos),K.pos+=n);M=Fqu[q];if(typeof M==="undefined")throw G=new _.bj("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:q}),_.T6(G),G;M!==void 0&&(H8(K,32),H8(K,M));H8(K,40);H8(K,1);q=new Uint8Array(K.buf.buffer,
K.buf.byteOffset,K.pos);return encodeURIComponent(_.ZU(q,G))};
HNy=function(M){M=M.key||M.id;if(!M)throw Error("Hf");return M};
$1y=function(M,q){M=M===void 0?{}:M;return eXy(M,q)};
sqw=function(M,q,G,K){if(K===void 0)return K=Object.assign({},M[q]||{}),G=(delete K[G],K),K={},Object.assign({},M,(K[q]=G,K));var n={},E={};return Object.assign({},M,(E[q]=Object.assign({},M[q],(n[G]=K,n)),E))};
Mpy=function(M,q,G,K,n){var E=M[q];if(E==null||!E[G])return M;K=bNw(E[G],K,n==="REPEATED_FIELDS_MERGE_OPTION_APPEND");n={};E={};return Object.assign({},M,(E[q]=Object.assign({},M[q],(n[G]=K,n)),E))};
_.sX=function(M,q,G){return M[q]?M[q][G]||null:null};
GDF=function(){if(q_s)return q_s();var M={};q_s=A0("PersistentEntityStoreDb",{objectStores:(M.EntityStore={addedAtVersion:1},M.EntityAssociationStore={addedAtVersion:2},M),shared:!1,upgrade:function(q,G){G(1)&&$5(eG(q,"EntityStore",{keyPath:"key"}),"entityType","entityType");G(2)&&(q=eG(q,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),$5(q,"byParentEntityKey","parentEntityKey"),$5(q,"byChildEntityKey","childEntityKey"))},
version:3});return q_s()};
KZe=function(M){return _.Eh(GDF(),M)};
Mb=function(M){return window.Int32Array?new Int32Array(M):Array(M)};
Eys=function(M){return _.Eh(nye(),M)};
N1F=function(M){return new qb("WRONG_DATA_TYPE",{encoderVersion:M})};
kDD=function(M){return M instanceof Error?new qb("UNKNOWN_ENCODE_ERROR",{originalMessage:M.message}):new qb("UNKNOWN_ENCODE_ERROR")};
pzi=function(M){return M instanceof Error?new qb("UNKNOWN_DECODE_ERROR",{originalMessage:M.message}):new qb("UNKNOWN_DECODE_ERROR")};
y74=function(M,q){M=M instanceof qb?M:q(M);_.T6(M);throw M;};
LZF=function(M){M=(new TextEncoder).encode(M).subarray(0,16);var q=new Uint8Array(16);q.set(M);return q};
WZu=function(M){var q=Y_$[M];if(q)return q;_.j1(new _.bj("Entity model not found.",{entityType:M}))};
_.Gw=function(){A7H||(A7H=d5e());return A7H};
d5e=function(){var M,q,G;return _.L(function(K){if(K.nextAddress==1)return _.Cv(K,2),K.yield(_.W2(),4);if(K.nextAddress!=2){M=K.yieldResult;if(!M||!_.Zf()||typeof _.Kj.BroadcastChannel==="undefined")return K.return();q=new vyu;return K.return(new KK(M,q))}G=_.i5(K);G instanceof Error&&_.T6(G);return K.return()})};
_.nK=function(M,q){var G;return _.L(function(K){if(K.nextAddress==1){G=M.mutations;if(!G||G.length<=0)return K.return();q&&q.dispatch(_.RJ({type:"ENTITY_LOADED",payload:G}));return K.yield(hJj(G),2)}G.length=0;_.gL(K)})};
hJj=function(M){var q;return _.L(function(G){return G.nextAddress==1?G.yield(_.Gw(),2):(q=G.yieldResult)?G.yield(_.EX(q,"readwrite",function(K){for(var n={},E=_.k(M),p=E.next(),y={};!p.done;y={mutation$jscomp$8:void 0,mutationEntityType$jscomp$3:void 0},p=E.next())y.mutation$jscomp$8=p.value,y.mutation$jscomp$8.entityKey&&tpF(y.mutation$jscomp$8)&&(y.mutationEntityType$jscomp$3=(0,_.xP.getAnyKey)(y.mutation$jscomp$8.payload),p=void 0,y.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(p=function(Y){return function(){return _.OVH(K,
Y.mutation$jscomp$8.payload[Y.mutationEntityType$jscomp$3],Y.mutationEntityType$jscomp$3)}}(y)),y.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_DELETE"&&(p=function(Y){return function(){return wz$(K,Y.mutation$jscomp$8.entityKey)}}(y)),y.mutation$jscomp$8.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(p=function(Y){return function(){return CW4(K,Y.mutation$jscomp$8.entityKey,Y.mutation$jscomp$8.payload[Y.mutationEntityType$jscomp$3],Y.mutationEntityType$jscomp$3)}}(y)),p&&(n[y.mutation$jscomp$8.entityKey]=
n[y.mutation$jscomp$8.entityKey]?n[y.mutation$jscomp$8.entityKey].then(p):p()));
return $J.all(Object.values(n))}),0):G.return()})};
tpF=function(M){var q;M=(q=M.options)==null?void 0:q.persistenceOption;return M==="ENTITY_PERSISTENCE_OPTION_PERSIST"||M==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
lIF=function(M,q){var G,K;_.L(function(n){if(n.nextAddress==1)return n.yield(_.Gw(),2);if(n.nextAddress!=3)return(G=n.yieldResult)?n.yield(_.EX(G,"readonly",function(E){var p={},y=Object.keys(q).map(function(Y){var A=q[Y]?[].concat(_.Ui(q[Y])):[];return aIy(E,Y,A,p)});
return $J.all(y).then(function(){return p})}),3):n.return();
K=n.yieldResult;Object.keys(K).length>0&&M.dispatch(oyi(K));_.gL(n)})};
aIy=function(M,q,G,K){return Nb(M,q,G).then(function(n){K[q]=Xzi(G,n)})};
Xzi=function(M,q){if(q.length!==M.length)throw Error("Kf");return q.reduce(function(G,K,n){G[M[n]]=K;return G},{})};
c7$=function(M){var q=M.filter(function(n){var E;return(n==null?void 0:(E=n.transferEntity)==null?void 0:E.transferState)==="TRANSFER_STATE_COMPLETE"}).length,G=M.filter(function(n){var E;
return(n==null?void 0:(E=n.transferEntity)==null?void 0:E.transferState)==="TRANSFER_STATE_FAILED"}).length,K=M.filter(function(n){var E;
return(n==null?void 0:(E=n.transferEntity)==null?void 0:E.transferState)&&PWF.includes(n.transferEntity.transferState)});
if(!(q||K!=null&&K.length))return 0;q=_.iVs(K)+q;M=M.length-G;return M===0?0:Math.round(q*100/M)/100};
_.iVs=function(M){var q=[];q=q.concat.apply(q,_.Ui(M.filter(function(E){return E.streamEntity}).map(function(E){var p=Object.assign({},E.streamEntity),y,Y=(y=E.transferEntity)==null?void 0:y.transferState;
p.streamsProgress=p.streamsProgress||[];p.streamsProgress=p.streamsProgress.map(function(A){var v=Object.assign({},A);v.numBytesDownloaded=Y==="TRANSFER_STATE_COMPLETE"?A.numTotalBytes:A.numBytesDownloaded;return v});
return p}).map(function(E){return E.streamsProgress})));
var G=M=0;q=_.k(q);for(var K=q.next();!K.done;K=q.next()){var n=K.value;K=Number(n.numBytesDownloaded);n=Number(n.numTotalBytes);G+=isNaN(K)?0:K;M+=isNaN(n)?0:n}return M===0?0:Math.round(G*100/M)/100};
gyF=function(M){if(!M||!M.expirationTimestamp||!M.action)return!1;var q=(0,_.d8)()/1E3;return Number(M.expirationTimestamp)>=q};
kz=function(M){return M&&M.expirationTimestamp&&M.action?gyF(M)&&M.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.pK=function(M){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(M||"TRANSFER_STATE_UNKNOWN")};
B1s=function(M){var q=new fMF;if(M!==void 0){var G=Math.ceil(Math.log2(M.length*4+2)/7);G=G===void 0?2:G;H8(q,10);q.submessagePosStack.push(q.pos);q.submessagePosStack.push(G);q.pos+=G;eE(q,M.length*1.2);G=Sjw(M,q.buf.subarray(q.pos));q.pos+G>q.buf.length&&(eE(q,G),G=Sjw(M,q.buf.subarray(q.pos)));q.pos+=G;M=q.submessagePosStack.pop();G=q.submessagePosStack.pop();for(var K=q.pos-G-M;M--;){var n=M?128:0;q.view.setUint8(G++,K&127|n);K>>=7}}q=new Uint8Array(q.buf.buffer,q.buf.byteOffset,q.pos);return(new TextDecoder("utf-8")).decode(q)};
_.y0=function(M){var q=0;M=_.k(M);for(var G=M.next(),K={};!G.done;K={transferState$jscomp$3:void 0},G=M.next()){var n=G.value,E=void 0;G=(E=n.streamEntity)!=null?E:{};E=void 0;K.transferState$jscomp$3=(E=n.transferEntity)==null?void 0:E.transferState;E=n=void 0;((n=G)==null?0:(E=n.streamsProgress)==null?0:E.length)&&G.streamsProgress.forEach(function(p){return function(y){y=Number(p.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?y.numTotalBytes:y.numBytesDownloaded);isFinite(y)&&(q+=y)}}(K))}return q};
Qqu=function(M){return M.some(function(q){var G;if(!(q==null?0:(G=q.transferEntity)==null?0:G.transferState)){var K;return!(q==null?0:(K=q.policyEntity)==null?0:K.action)||q.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return PWF.includes(q.transferEntity.transferState)})};
IIF=function(M,q){if(!q)return!1;if(_.w("of_pb_en_po_ks"))return!0;var G;M=(G=_.sX(M,"offlineVideoPolicy",_.$p(q,"offlineVideoPolicy")))!=null?G:void 0;return!!M&&kz(M)};
_.uts=function(M){var q=["TRANSFER_STATE_COMPLETE"];q=q===void 0?D5w:q;return M.filter(function(G){var K,n;return q.includes((n=(K=G.transferEntity)==null?void 0:K.transferState)!=null?n:"TRANSFER_STATE_UNKNOWN")})};
J7D=function(M,q){if(q){var G,K=(G=_.sX(M,"playbackData",_.$p(q,"playbackData")))!=null?G:null,n;G=(n=_.sX(M,"transfer",_.$p(q,"transfer")))!=null?n:null;var E;n=(E=_.sX(M,"offlineVideoStreams",_.$p(q,"offlineVideoStreams")))!=null?E:null;var p;M=(p=_.sX(M,"offlineVideoPolicy",_.$p(q,"offlineVideoPolicy")))!=null?p:null;if(K||G||n||M)return{playbackDataEntity:K,transferEntity:G,streamEntity:n,policyEntity:M}}};
_.Yz=function(M){var q=M.playbackData;if(!q)return[];var G=[];q=_.k(Object.keys(q));for(var K=q.next();!K.done;K=q.next()){var n=K.value;if(!ZV4(M,_.FI(n).entityId)&&(K=J7D(M,_.FI(n).entityId))){var E=void 0,p=void 0;n=(p=Number((E=_.sX(M,"playbackData",n))==null?void 0:E.streamDownloadTimestampSeconds))!=null?p:(0,_.d8)();G.push({entity:K,streamDownloadTimestamp:n})}}return G.sort(function(y,Y){var A=y.streamDownloadTimestamp,v=Y.streamDownloadTimestamp;return v===A?y.entity.streamEntity&&!Y.entity.streamEntity?
1:-1:v-A}).map(function(y){return y.entity})};
bVD=function(M){return _.uts(_.Yz(M))};
_.U5y=function(M){return _.Yz(M).filter(function(q){var G;if(((G=q.policyEntity)==null?0:G.action)&&q.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var K;if((K=q.transferEntity)==null?0:K.transferState){var n;return PWF.includes((n=q.transferEntity)==null?void 0:n.transferState)}return!0})};
ZV4=function(M,q){var G;return((G=_.sX(M,"downloadStatusEntity",_.$p(q,"downloadStatusEntity")))==null?void 0:G.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
x5$=function(M){var q;if(M==null?0:(q=M.playbackDataEntity)==null?0:q.key)return _.FI(M.playbackDataEntity.key).entityId;var G;if(M==null?0:(G=M.transferEntity)==null?0:G.key)return _.FI(M.transferEntity.key).entityId;var K;if(M==null?0:(K=M.streamEntity)==null?0:K.key)return _.FI(M.streamEntity.key).entityId;var n;if(M==null?0:(n=M.policyEntity)==null?0:n.key)return _.FI(M.policyEntity.key).entityId};
m5Y=function(M){var q=new Set,G;M=(G=M.mainDownloadsListEntity)==null?void 0:G[zJF];var K;if(!(M==null?0:(K=M.downloads)==null?0:K.length))return q;var n;M==null||(n=M.downloads)==null||n.forEach(function(E){(E==null?0:E.videoItem)&&q.add(E.videoItem)});
return q};
Ws=function(M,q){if(q){var G=_.sX(M,"mainVideoEntity",_.$p(q,"mainVideoEntity")),K=_.sX(M,"downloadStatusEntity",_.$p(q,"downloadStatusEntity")),n=_.sX(M,"ytMainChannelEntity",_.$p(q,"ytMainChannelEntity")),E={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};M=J7D(M,q);K=(K==null?void 0:K.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.w("woffle_render_failed_download_state_ks")&&(K==null?void 0:K.downloadState)==="DOWNLOAD_STATE_FAILED";!M&&K&&(M=E);if(M&&G&&
n)return Object.assign({},{videoEntity:G,channelEntity:n},M)}};
T1y=function(M,q){return S_y(M,q)==="TRANSFER_STATE_COMPLETE"&&IIF(M,q)};
r7i=function(M,q){if(!q)return!1;var G;M=(G=_.sX(M,"playbackData",_.$p(q,"playbackData")))!=null?G:void 0;return!!M&&!!M.playerResponseJson};
S_y=function(M,q){if(!q)return"TRANSFER_STATE_UNKNOWN";var G=_.sX(M,"transfer",_.$p(q,"transfer"));if(G){var K;return(K=G.transferState)!=null?K:"TRANSFER_STATE_UNKNOWN"}G=_.sX(M,"offlineOrchestrationActionWrapperEntity",_.$p(q,"offlineOrchestrationActionWrapperEntity"));M=_.sX(M,"mainVideoEntity",_.$p(q,"mainVideoEntity"));return G||M?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
jqy=function(M,q){if(!q)return"TRANSFER_STATE_UNKNOWN";if(M=_.sX(M,"transfer",_.$p(q,"transfer"))){var G;return(G=M.transferState)!=null?G:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
Vpy=function(M,q){return q&&(M=_.sX(M,"videoPlaybackPositionEntity",_.$p(q,"videoPlaybackPositionEntity")),M==null?0:M.lastPlaybackPositionSeconds)?Number(M.lastPlaybackPositionSeconds):0};
fIj=function(M,q){return RJy(M).some(function(G){var K;return(G==null?void 0:(K=G.mainPlaylistEntity)==null?void 0:K.playlistId)===q})};
HVH=function(M,q,G){var K=FZF(M,q);if(!K.length)return[];q=[];K=_.k(K);for(var n=K.next();!n.done;n=K.next()){n=n.value;var E=Ws(M,n);G&&S_y(M,n)!=="TRANSFER_STATE_COMPLETE"||E&&q.push(E)}return q};
FZF=function(M,q){if(!q)return[];var G=_.$p(q,"mainPlaylistEntity"),K;q=(K=M.mainPlaylistEntity)==null?void 0:K[G];K=[];if(q==null||!q.videos)return K;q=_.k(q.videos);for(G=q.next();!G.done;G=q.next()){G=G.value;var n=void 0,E=void 0,p=void 0,y=(n=M)==null?void 0:(E=n.mainPlaylistVideoEntity)==null?void 0:(p=E[G])==null?void 0:p.video;y&&(G=_.FI(y).entityId)&&K.push(G)}return K};
eJi=function(M,q){if(q){var G=_.sX(M,"mainPlaylistEntity",_.$p(q,"mainPlaylistEntity")),K=_.sX(M,"mainPlaylistDownloadStateEntity",_.$p(q,"mainPlaylistDownloadStateEntity"));M=_.sX(M,"ytMainChannelEntity",_.$p(q,"ytMainChannelEntity"));if(K&&G)return Object.assign({},{mainPlaylistEntity:G,mainPlaylistDownloadStateEntity:K},!!M&&{channelEntity:M})}};
RJy=function(M){return $5$(M).sort(function(q,G){return G.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return q.downloadedPlaylistEntities})};
$5$=function(M){var q=M.mainPlaylistDownloadStateEntity,G=[];if(!q)return G;for(var K=_.k(Object.keys(q)),n=K.next();!n.done;n=K.next()){var E=n.value;n=eJi(M,_.FI(E).entityId);var p=void 0;E=Number((p=q[E])==null?void 0:p.addedTimestampMillis);p=isNaN(E)?(0,_.d8)():E;n!==void 0&&G.push({downloadedPlaylistEntities:n,addedTimestampMillis:p})}return G};
sG4=function(M){var q,G=(q=M.mainPlaylistVideoEntity)!=null?q:{};return new Set(RJy(M).reduce(function(K,n){K=K===void 0?[]:K;var E,p;n==null||(E=n.mainPlaylistEntity)==null||(p=E.videos)==null||p.forEach(function(y){var Y;(y=(Y=G[y])==null?void 0:Y.video)&&K.push(y)});
return K},[]))};
Muy=function(M){return"downloadedMusicPlaylistEntities"in M};
qHF=function(M){return"mainPlaylistEntity"in M&&"mainPlaylistDownloadStateEntity"in M};
Gzi=function(M){return"videoEntity"in M&&"channelEntity"in M};
KQs=function(M){var q=M.musicPlaylistDownloadMetadataEntity,G=[];if(!q)return G;for(var K=_.k(Object.keys(q)),n=K.next();!n.done;n=K.next()){n=n.value;a:{var E=M,p=_.FI(n).entityId;if(p){var y=_.sX(E,"musicPlaylist",_.$p(p,"musicPlaylist"));E=_.sX(E,"musicPlaylistDownloadMetadataEntity",_.$p(p,"musicPlaylistDownloadMetadataEntity"));if(y&&E){y={musicPlaylistEntity:y,musicPlaylistDownloadStateEntity:E};break a}}y=void 0}E=void 0;n=Number((E=q[n])==null?void 0:E.addedTimestampMillis);n=isNaN(n)?(0,_.d8)():
n;y!==void 0&&G.push({downloadedMusicPlaylistEntities:y,addedTimestampMillis:n})}return G};
nvs=function(M){var q=new Set;M=_.k(M);for(var G=M.next();!G.done;G=M.next())if(G=G.value,"musicPlaylistEntity"in G&&"musicPlaylistDownloadStateEntity"in G){G=_.k(G.musicPlaylistEntity.tracks);for(var K=G.next();!K.done;K=G.next())q.add(K.value)}return q};
Evy=function(M,q){if(q){var G=_.sX(M,"musicTrack",_.$p(q,"musicTrack")),K=_.sX(M,"musicArtist",_.$p(q,"musicArtist"))||{};if((M=J7D(M,q))&&G&&K)return Object.assign({},{musicTrackEntity:G,musicArtistEntity:K},M)}};
Nge=function(M){var q=M.musicTrackDownloadMetadataEntity,G=[];if(!q)return[];q=_.k(Object.keys(q));for(var K=q.next();!K.done;K=q.next()){var n=K.value;K=Evy(M,_.FI(n).entityId);var E=void 0;n=Number((E=_.sX(M,"musicTrackDownloadMetadataEntity",n))==null?void 0:E.addedTimestampMillis);E=isNaN(n)?(0,_.d8)():n;K!==void 0&&G.push({downloadedMusicEntities:K,addedTimestampMillis:E})}return G};
yvy=function(M,q){if(!q)return[];if(Object.values(kz4).includes(q))return pfy(M,q);q=_.$p(q,"musicPlaylist");var G;M=(G=M.musicPlaylist)==null?void 0:G[q];G=[];if(M==null||!M.tracks)return G;M=_.k(M.tracks);for(q=M.next();!q.done;q=M.next())(q=_.FI(q.value).entityId)&&G.push(q);return G};
pfy=function(M,q){var G=new Set,K=KQs(M).map(function(E){return E.downloadedMusicPlaylistEntities});
K=nvs(K);K=_.k(K);for(var n=K.next();!n.done;n=K.next())(n=_.FI(n.value).entityId)&&G.add(n);return LQs(M).downloadedMusicEntities.filter(function(E){var p;if((p=E.musicTrackEntity)!=null&&p.videoId){E=E.musicTrackEntity;if(p=q==="PPOM"?!0:!G.has(E.videoId))b:switch(E=E.musicVideoType,q){case "PPSE":p=E==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:p=E!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}E=p}else E=!1;return E}).map(function(E){var p;
return(p=E.musicTrackEntity)==null?void 0:p.videoId})};
LQs=function(M){var q=Nge(M).sort(function(G,K){return K.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return"downloadedMusicEntities"in G?G.downloadedMusicEntities:Muy(G)?G.downloadedMusicPlaylistEntities:{}});
M=KQs(M).sort(function(G,K){return K.addedTimestampMillis-G.addedTimestampMillis}).map(function(G){return"downloadedMusicEntities"in G?G.downloadedMusicEntities:Muy(G)?G.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:q,downloadedMusicPlaylistEntities:M}};
WQF=function(M,q){q=_.R9("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?yvy(M,q):FZF(M,q);if(!q.length)return"TRANSFER_STATE_UNKNOWN";q=q.map(function(G){return jqy(M,G)});
return YHD(q)};
YHD=function(M){var q=new Set(M);if(q.has("TRANSFER_STATE_FAILED")&&q.size===1)return"TRANSFER_STATE_FAILED";q.delete("TRANSFER_STATE_FAILED");if(q.has("TRANSFER_STATE_UNKNOWN")&&q.size===1)return"TRANSFER_STATE_PRE_TRANSFER";q.delete("TRANSFER_STATE_UNKNOWN");if(q.has("TRANSFER_STATE_PRE_TRANSFER")&&q.size===1||q.size===0)return"TRANSFER_STATE_PRE_TRANSFER";M=q.has("TRANSFER_STATE_TRANSFERRING");q=q.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return M||q?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
An=function(M){var q=M.mainVideoDownloadStateEntity,G=[];if(!q)return[];q=_.k(Object.keys(q));for(var K=q.next();!K.done;K=q.next()){var n=K.value;if(!ZV4(M,_.FI(n).entityId)){K=Ws(M,_.FI(n).entityId);var E=void 0,p=void 0;n=(p=Number((E=_.sX(M,"mainVideoDownloadStateEntity",n))==null?void 0:E.addedTimestampMillis))!=null?p:(0,_.d8)();K!==void 0&&G.push({downloadedVideoEntities:K,addedTimestampMillis:n})}}return G};
AvY=function(M){return An(M).sort(function(q,G){return G.addedTimestampMillis-q.addedTimestampMillis}).map(function(q){return q.downloadedVideoEntities})};
_.vv4=function(M){var q=sG4(M),G=_.dz(M),K=m5Y(M),n=An(M).filter(function(p){var y,Y;if((p==null?void 0:(y=p.downloadedVideoEntities)==null?void 0:(Y=y.transferEntity)==null?void 0:Y.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var A,v;p=p==null?void 0:(A=p.downloadedVideoEntities)==null?void 0:(v=A.videoEntity)==null?void 0:v.key;return _.w("kevlar_use_library_entity")?p&&(K.has(p)||G[p]):p&&!q.has(p)}),E=$5$(M).filter(function(p){return WQF(M,p.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Ui(n),_.Ui(E)).sort(function(p,y){return y.addedTimestampMillis-p.addedTimestampMillis}).map(function(p){return dtF(p)})};
hCH=function(M,q){if(q&&IIF(M,q)){var G,K,n=(K=(G=_.sX(M,"playbackData",_.$p(q,"playbackData")))!=null?G:void 0)==null?void 0:K.playerResponseJson;if(n){try{var E=JSON.parse(n);var p=_.sX(M,"transfer",_.$p(q,"transfer")),y=Vpy(M,q);y&&(E=Object.assign({},E,{playerConfig:Object.assign({},E.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+y*1E3}}})}));E.cotn=p==null?void 0:p.cotn}catch(Y){}return E}}};
_.O3u=function(M){var q,G,K;M=(K=(G=((q=M.downloadsPageViewConfigurationEntity)!=null?q:{})[_.vs])==null?void 0:G.smartDownloadsOptInBannerVisibility)!=null?K:{};var n;return(n=_.C(M,tuF))!=null?n:{}};
_.dz=function(M){var q,G,K;M=(K=(G=((q=M.mainDownloadsListEntity)!=null?q:{})[_.wfs])==null?void 0:G.downloads)!=null?K:[];q={};G=_.k(M);for(K=G.next();!K.done;K=G.next())M=void 0,q[(M=K.value.videoItem)!=null?M:""]=!0;return q};
CAF=function(M){var q=_.dz(M);if(Object.keys(q).length===0)return!1;var G=M.mainVideoEntity;if(!G)return!0;G=_.k(Object.keys(G));for(var K=G.next();!K.done;K=G.next()){K=K.value;var n=_.FI(K).entityId;if(q[K]&&!ZV4(M,n))return!1}return!0};
_.hn=function(M){var q=_.dz(M);return An(M).sort(function(G,K){return G.addedTimestampMillis-K.addedTimestampMillis}).map(function(G){return G.downloadedVideoEntities}).filter(function(G){var K;
return(G=G==null?void 0:(K=G.videoEntity)==null?void 0:K.key)&&!!q[G]})};
_.ovj=function(M){var q,G,K;M=(K=(G=((q=M.downloadsPageViewConfigurationEntity)!=null?q:{})[_.vs])==null?void 0:G.downloadsUpsellBannerVisibility)!=null?K:{};var n;return(n=_.C(M,aju))!=null?n:{}};
dtF=function(M){return"downloadedVideoEntities"in M?M.downloadedVideoEntities:"downloadedPlaylistEntities"in M?M.downloadedPlaylistEntities:{}};
lji=function(M){var q=_.dz(M),G=sG4(M),K=An(M).filter(function(n){var E,p;return(n=n==null?void 0:(E=n.downloadedVideoEntities)==null?void 0:(p=E.videoEntity)==null?void 0:p.key)&&!q[n]&&!G.has(n)});
M=$5$(M);return[].concat(_.Ui(K),_.Ui(M)).sort(function(n,E){return E.addedTimestampMillis-n.addedTimestampMillis}).map(function(n){return dtF(n)})};
_.tn=function(M){if(!_.w("kevlar_use_library_entity"))return lji(M);var q=An(M).filter(function(K){var n,E;if(n=K=K==null?void 0:(n=K.downloadedVideoEntities)==null?void 0:(E=n.videoEntity)==null?void 0:E.key){var p,y,Y;n=((y=(p=M.mainDownloadsListEntity)==null?void 0:p[zJF])==null?0:(Y=y.downloads)==null?0:Y.length)?m5Y(M).has(K):!1}return n}),G=$5$(M);
return[].concat(_.Ui(q),_.Ui(G)).sort(function(K,n){return n.addedTimestampMillis-K.addedTimestampMillis}).map(function(K){return dtF(K)})};
Xfy=function(M){var q=_.dz(M),G=sG4(M);return AvY(M).filter(function(K){var n;return(K=K==null?void 0:(n=K.videoEntity)==null?void 0:n.key)&&!q[K]&&!G.has(K)})};
PAu=function(M){if(!_.w("kevlar_use_library_entity"))return Xfy(M);var q=_.dz(M),G=m5Y(M);return AvY(M).filter(function(K){var n;return(K=K==null?void 0:(n=K.videoEntity)==null?void 0:n.key)&&!q[K]&&G.has(K)})};
i3y=function(M,q){q=_.$p(q,"settingEntity");var G,K,n;return!!((n=(K=((G=M.settingEntity)!=null?G:{})[q])==null?void 0:K.settingOptionValue)!=null?n:{}).boolValue};
_.OX=function(M){var q=_.hn(M);if(Qqu(q))return 0;var G=[];q=_.k(q);for(var K=q.next();!K.done;K=q.next()){K=K.value;var n=void 0,E=void 0;if((n=K)==null?0:(E=n.videoEntity)==null?0:E.key)n=_.FI(K.videoEntity.key).entityId,K=M,n=_.$p(n,"mainVideoDownloadStateEntity"),K=_.sX(K,"mainVideoDownloadStateEntity",n),(K=Number(K==null?void 0:K.addedTimestampMillis))&&G.push(K)}return Math.max.apply(Math,_.Ui(G))};
_.wz=function(M){return M.ui.richGridMiniMode};
_.CK=function(M){return M.ui.richGridItemsPerRow};
_.cvi=function(M){return M.ui.richGridSlimItemsPerRow};
_.gve=function(M){return M.ui.guideIsExpanded};
_.at=function(M){return M.ui.miniplayerIsActive};
Bg$=function(M){return M.ui.singleOptionSurveyIsActive};
_.ot=function(M){var q;return((q=M.ui)==null?void 0:q.currentPageType)||"WEB_PAGE_TYPE_UNKNOWN"};
_.QGy=function(M){return _.ot(M)==="WEB_PAGE_TYPE_WATCH"};
_.Ij4=function(M){return _.ot(M)==="WEB_PAGE_TYPE_SHORTS"};
_.Dty=function(M){return M.ui.inlinePreviewIsActive};
_.u$$=function(M){return M.ui.inlinePreviewIsEnabled};
_.Jvy=function(M){return M.ui.miniplayerPlaybackState};
_.lc=function(M){return M.ui.isOnline};
_.Z34=function(M){return M.ui.frostedGlassMode};
_.Xp=function(M,q){return S_y(M.entities,q)};
_.Ps=function(M,q){return WQF(M.entities,q)};
b3u=function(M,q){var G;if(q){var K;M=(K=_.sX(M.entities,"offlineVideoPolicy",_.$p(q,"offlineVideoPolicy")))==null?void 0:K.action}else M=void 0;return(G=M)!=null?G:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
Utu=function(M,q){var G;q?(M=_.sX(M.entities,"offlineVideoPolicy",_.$p(q,"offlineVideoPolicy")),M=Number(M==null?void 0:M.expirationTimestamp)):M=void 0;return(G=M)!=null?G:0};
_.xtu=function(M){return _.Yz(M.entities).length};
zCe=function(M,q){return Ws(M.entities,q)};
mtH=function(M,q){return eJi(M.entities,q)};
ic=function(M,q){return(M=Ws(M.entities,q))?_.iVs([M]):0};
_.SHD=function(M,q){var G=_.R9("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(G){var K=M.entities;var n=yvy(K,q);if(n.length){var E=[];n=_.k(n);for(var p=n.next();!p.done;p=n.next())(p=Evy(K,p.value))&&E.push(p);K=E}else K=[]}else K=HVH(M.entities,q);var y;if(G){var Y=M.entities;q?(q=_.$p(q,"musicPlaylist"),Y=(y=Y.musicPlaylist)==null?void 0:y[q],y=Y!=null&&Y.tracks?Y.tracks.length:0):y=0}else y=M.entities,q?(q=_.$p(q,"mainPlaylistEntity"),y=(Y=y.mainPlaylistEntity)==null?void 0:Y[q],y=y!=null&&y.videos?
y.videos.length:0):y=0;return K.length!==y?0:K?c7$(K):0};
_.Tg4=function(M){return M.download.isLeaderTab};
_.rvi=function(M,q,G){if(!q&&G){var K=M.entities;if(G){var n=B1s(G),E,p;q=(p=(E=_.sX(K,"offlineabilityEntity",_.$p(n,"offlineabilityEntity")))==null?void 0:E.addToOfflineButtonState)!=null?p:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else q="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else E=M.entities,q?(p=B1s(q),q=(n=(K=_.sX(E,"offlineabilityEntity",_.$p(p,"offlineabilityEntity")))==null?void 0:K.addToOfflineButtonState)!=null?n:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):q="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return q};
jGy=function(M,q){M=M.entities;if(q){q=B1s(q);var G,K;q=(K=(G=_.sX(M,"offlineabilityEntity",_.$p(q,"offlineabilityEntity")))==null?void 0:G.addToOfflineButtonState)!=null?K:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else q="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return q};
_.VuF=function(M){var q=M.entities;M=_.lc(M);var G=i3y(q,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.w("kevlar_modern_downloads_page")&&G)var K=!1;else{var n,E;q=(E=(n=((K=q.downloadsPageViewConfigurationEntity)!=null?K:{})[_.vs])==null?void 0:n.smartDownloadsOptInBannerVisibility)!=null?E:{};K=M?!!q.visibleWithConnection:!!q.visibleWithoutConnection}return K};
_.RCw=function(M){return i3y(M.entities,"SMART_DOWNLOADS_ENABLED")};
_.fji=function(M){return CAF(M.entities)};
FQF=function(M){return _.hn(M.entities).every(function(q){var G;return(q==null?void 0:(G=q.transferEntity)==null?void 0:G.transferState)&&!PWF.includes(q.transferEntity.transferState)})};
_.H3y=function(M){var q,G,K,n=(K=(G=((q=M.entities.downloadsPageViewConfigurationEntity)!=null?q:{})[_.vs])==null?void 0:G.downloadsUpsellBannerVisibility)!=null?K:{};return _.lc(M)?!!n.visibleWithConnection:!!n.visibleWithoutConnection};
_.eCw=function(M,q){return ZV4(M.entities,q)};
$tu=function(M,q){if(q){var G,K;M=(K=(G=_.sX(M.entities,"downloadStatusEntity",_.$p(q,"downloadStatusEntity")))==null?void 0:G.downloadState)!=null?K:"DOWNLOAD_STATE_UNKNOWN"}else M="DOWNLOAD_STATE_UNKNOWN";return M};
cs=function(M,q){return Vpy(M.entities,q)};
GUF=function(M){M=sBH(M);var q=M.hours===void 0?0:M.hours,G=M.minutes===void 0?0:M.minutes,K=M.seconds===void 0?0:M.seconds,n=q>0;M=[];n&&(q=MrD(q),M.push(q));q=n;q=q===void 0?!1:q;G=(["af","be","lt"].includes(Bs)||q)&&G<10?qOD().format(G):(new Intl.NumberFormat("en-u-nu-latn")).format(G);M.push(G);G=qOD().format(K);M.push(G);G=":";"da fi id si sr sr-Latn".split(" ").includes(Bs)&&(G=".");return M.join(G)};
_.nS$=function(M){M=sBH(M);var q=M.hours===void 0?0:M.hours,G=M.minutes===void 0?0:M.minutes,K=M.seconds===void 0?0:M.seconds;M=[];if(q>0){var n=KrF().format({hours:q});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(Bs)||q>9999)n=n.replace(q.toString(),MrD(q)),Bs==="km"&&(n=n.replace(".",","));M.push(n)}G>0&&M.push(KrF().format({minutes:G}));K>0&&M.push(KrF().format({seconds:K}));q="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");G=Bs=="am"?"{0}\u1363 ":Bs=="fa"?"{0}\u060c\u200f ":
Bs=="my"?"{0} - ":Bs=="ne"?"{0},":Bs=="th"?"{0} ":Bs=="ur"?"{0}\u060c ":Bs=="ar"||Bs=="ar-XB"?"{0} \u0648":Bs=="ja"||Bs=="zh-CN"||Bs=="zh-HK"||Bs=="zh-TW"?"{0}\u3001":"{0}, ";K=Bs=="am"?"\u1363 ":Bs=="fa"?"\u060c\u200f ":Bs=="my"?" - ":Bs=="th"?" ":Bs=="ur"?"\u060c ":Bs=="ar"||Bs=="ar-XB"?" \u0648":Bs=="ja"||Bs=="zh-CN"||Bs=="zh-HK"||Bs=="zh-TW"?"\u3001":", ";n=Bs=="am"?" \u12a5\u1293 {0}":Bs=="as"?" \u0986\u09f0\u09c1 {0}":Bs=="az"?" v\u0259 {0}":Bs=="bn"?" \u098f\u09ac\u0982 {0}":Bs=="cs"?" a\u00a0{0}":
Bs=="de"?" und {0}":Bs=="el"?" \u03ba\u03b1\u03b9 {0}":Bs=="eu"?" eta {0}":Bs=="fa"?"\u060c \u0648 {0}":Bs=="fil"?", at {0}":Bs=="gu"?" \u0a85\u0aa8\u0ac7 {0}":Bs=="hi"?", \u0914\u0930 {0}":Bs=="hu"?" \u00e9s {0}":Bs=="hy"?" \u0587 {0}":Bs=="id"?", dan {0}":Bs=="iw"?" \u05d5-{0}":Bs=="ja"?"\u3001{0}":Bs=="ka"?" \u10d3\u10d0 {0}":Bs=="km"?" \u1793\u17b7\u1784 {0}":Bs=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":Bs=="ko"?" \ubc0f {0}":Bs=="ky"?" \u0436\u0430\u043d\u0430 {0}":Bs=="lt"?" ir {0}":Bs==
"lv"?" un {0}":Bs=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":Bs=="mr"?" \u0906\u0923\u093f {0}":Bs=="ms"?" dan {0}":Bs=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":Bs=="ne"?" \u0930 {0}":Bs=="or"?", \u0b13 {0}":Bs=="pa"?" \u0a05\u0a24\u0a47 {0}":Bs=="ro"?" \u0219i {0}":Bs=="si"?", \u0dc3\u0dc4 {0}":Bs=="sk"?" a {0}":Bs=="sl"?" in {0}":Bs=="sq"?" dhe {0}":Bs=="sv"?" och {0}":Bs=="sw"?" na {0}":Bs=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":Bs=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":
Bs=="th"?" \u0e41\u0e25\u0e30{0}":Bs=="tr"?" ve {0}":Bs=="ur"?"\u060c \u0627\u0648\u0631 {0}":Bs=="uz"?" va {0}":Bs=="vi"?" v\u00e0 {0}":Bs=="zh-HK"?"\u53ca{0}":Bs=="zu"?", ne-{0}":Bs=="af"||Bs=="nl"?" en {0}":Bs=="ar"||Bs=="ar-XB"?" \u0648{0}":Bs=="be"||Bs=="uk"?" \u0456 {0}":Bs=="en-GB"||Bs=="en-IN"?" and {0}":Bs=="en"||Bs=="en-XA"?", and {0}":Bs=="et"||Bs=="fi"?" ja {0}":Bs=="fr"||Bs=="fr-CA"?" et {0}":Bs=="zh-CN"||Bs=="zh-TW"?"\u548c{0}":Bs=="da"||Bs=="is"||Bs=="no"?" og {0}":Bs=="es"||Bs=="es-419"||
Bs=="es-US"?" y {0}":Bs=="kk"||Bs=="lo"||Bs=="mn"?", {0}":Bs=="bg"||Bs=="mk"||Bs=="ru"||Bs=="sr"?" \u0438 {0}":Bs=="gl"||Bs=="it"||Bs=="pt-BR"||Bs=="pt-PT"?" e {0}":" i {0}";var E=Bs=="am"?"{0} \u12a5\u1293 {1}":Bs=="as"?"{0} \u0986\u09f0\u09c1 {1}":Bs=="az"?"{0} v\u0259 {1}":Bs=="bn"?"{0} \u098f\u09ac\u0982 {1}":Bs=="de"?"{0} und {1}":Bs=="el"?"{0} \u03ba\u03b1\u03b9 {1}":Bs=="eu"?"{0} eta {1}":Bs=="fa"?"{0} \u0648 {1}":Bs=="fil"?"{0} at {1}":Bs=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":Bs=="hi"?"{0} \u0914\u0930 {1}":
Bs=="hu"?"{0} \u00e9s {1}":Bs=="hy"?"{0} \u0587 {1}":Bs=="iw"?"{0} \u05d5-{1}":Bs=="ja"?"{0}\u3001{1}":Bs=="ka"?"{0} \u10d3\u10d0 {1}":Bs=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":Bs=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":Bs=="kn"?"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":Bs=="ko"?"{0} \ubc0f {1}":Bs=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":Bs=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":Bs=="lt"?"{0} ir {1}":Bs=="lv"?"{0} un {1}":Bs=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":Bs=="mn"?"{0}, {1}":Bs==
"mr"?"{0} \u0906\u0923\u093f {1}":Bs=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":Bs=="ne"?"{0} \u0930 {1}":Bs=="or"?"{0} \u0b13 {1}":Bs=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":Bs=="ro"?"{0} \u0219i {1}":Bs=="si"?"{0} \u0dc3\u0dc4 {1}":Bs=="sl"?"{0} in {1}":Bs=="sq"?"{0} dhe {1}":Bs=="sv"?"{0} och {1}":Bs=="sw"?"{0} na {1}":Bs=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":Bs=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":Bs=="th"?"{0}\u0e41\u0e25\u0e30{1}":Bs=="tr"?"{0} ve {1}":Bs=="ur"?
"{0} \u0627\u0648\u0631 {1}":Bs=="uz"?"{0} va {1}":Bs=="vi"?"{0} v\u00e0 {1}":Bs=="zh-HK"?"{0}\u53ca{1}":Bs=="zu"?"{0} ne-{1}":Bs=="af"||Bs=="nl"?"{0} en {1}":Bs=="ar"||Bs=="ar-XB"?"{0} \u0648{1}":Bs=="be"||Bs=="uk"?"{0} \u0456 {1}":Bs=="cs"||Bs=="sk"?"{0} a\u00a0{1}":Bs=="et"||Bs=="fi"?"{0} ja {1}":Bs=="fr"||Bs=="fr-CA"?"{0} et {1}":Bs=="id"||Bs=="ms"?"{0} dan {1}":Bs=="zh-CN"||Bs=="zh-TW"?"{0}\u548c{1}":Bs=="da"||Bs=="is"||Bs=="no"?"{0} og {1}":Bs=="es"||Bs=="es-419"||Bs=="es-US"?"{0} y {1}":Bs==
"bg"||Bs=="mk"||Bs=="ru"||Bs=="sr"?"{0} \u0438 {1}":Bs=="en"||Bs=="en-GB"||Bs=="en-IN"||Bs=="en-XA"?"{0} and {1}":Bs=="gl"||Bs=="it"||Bs=="pt-BR"||Bs=="pt-PT"?"{0} e {1}":"{0} i {1}";Bs==="sq"?(n=n.replace("dhe","e"),E=E.replace("dhe","e")):Bs==="th"?(K=K.replace("{0}"," {0}"),E=E.replace("{0}","{0} "),E=E.replace("{1}"," {1}")):Bs==="ne"?K=",":Bs==="zh-CN"?K="":q.includes(Bs)&&(K=" ");return M.length<2?M.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(Bs)?
M.length===2?E.replace("{0}",M[0]).replace("{1}",M[1]):G.replace("{0}",M[0])+M.slice(1,-1).join(K)+n.replace("{0}",M[M.length-1]):M.join(K)};
sBH=function(M){var q=M.hours||0,G=M.minutes||0,K=M.seconds||0;q=K+G*60+q*3600+(M.days||0)*86400+(M.weeks||0)*604800+(M.months||0)*2629800+(M.years||0)*31557600;if(q<=0)return{hours:0,minutes:0,seconds:0};M=q;q=Math.floor(M/3600);M%=3600;G=Math.floor(M/60);K=Math.floor(M%60);return{hours:q,minutes:G,seconds:K}};
MrD=function(M){M=(new Intl.NumberFormat("en-u-nu-latn")).format(M);var q=["fr"],G="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" ");return"af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(Bs)?M.replace(",","\u00a0"):q.includes(Bs)?M.replace(",","\u202f"):G.includes(Bs)?M.replace(",","."):M};
qOD=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
KrF=function(){ESY||(Q0=NJ4,ESY=new xIy);return ESY};
z6e=function(M){try{return(new _.It(5)).format(M)}catch(q){}};
DS=function(M){return{thumbnailOverlayDownloadingRenderer:{state:M}}};
mIF=function(){var M=_.Ge("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.rj(M),icon:{iconType:"PLAY_ALL"}}}};
SOs=function(M){M=_.uc(M,2);return Bs!=="ru"&&Bs!=="es_419"&&Bs!=="es-419"&&Bs!=="es"&&Bs!=="es_US"&&Bs!=="es-US"&&Bs!=="fr"&&Bs!=="pl"&&Bs!=="it"&&Bs!=="nl"&&Bs!=="uk"&&Bs!=="fr_CA"&&Bs!=="fr-CA"||M===""?M:M[0].toLocaleUpperCase()+M.substring(1)};
rVe=function(M){return function(q){var G=M(),K=_.uc(q,G.dateFormat);q=_.uc(q,G.timeFormat);var n=TJF.DATETIMEFORMATS[G.joinerStyle];n=n.replace(/'(?!')/g,"");n=n.replace("{0}",q);n=n.replace("{1}",K);return G.capitalize(n)}};
jB4=function(M){return M?typeof M.seconds==="string"&&(M.nanos===void 0||typeof M.nanos==="number"):!1};
Vry=function(M){return new Date(Number(M.seconds)*1E3+(M.nanos||0)*1E-6)};
_.uc=function(M,q){if(typeof M.getTime==="function")M={date:M};else if(jB4(M))M={date:Vry(M)};else if(typeof jB4(M.timestamp)&&typeof M.i18nInternalSecondsEastOfUtc==="number")M={date:Vry(M.timestamp),timeZone:Jn(-M.i18nInternalSecondsEastOfUtc/60)};else throw Error("Lf`"+JSON.stringify(M));var G=M;M=G.date;G=G.timeZone;q=R6H(q).format(M,G);Bs==="zh-TW"&&(M=G?Number(R6H("H").format(M,G)):M.getHours(),q=M<5?q.replace("\u4e0a\u5348","\u51cc\u6668"):M<8?q.replace("\u4e0a\u5348","\u65e9\u4e0a"):M<12?
q.replace("\u4e0a\u5348","\u4e0a\u5348"):M<13?q.replace("\u4e0b\u5348","\u4e2d\u5348"):M<19?q.replace("\u4e0b\u5348","\u4e0b\u5348"):q.replace("\u4e0b\u5348","\u665a\u4e0a"));return q};
R6H=function(M){if(f6i.has(M))return f6i.get(M);var q=Fru(M);q=HCs(q);e6D!==!0&&(e6D=!0);$Iu=!0;$Iu=!1;q=new ZS(q,TJF);f6i.set(M,q);return q};
Fru=function(M){return(new ZS(M,TJF)).patternParts_.map(function(q){return q.type===0?"'"+q.text+"'":q.text}).join("")};
HCs=function(M){return Bs==="en"||Bs==="es_US"||Bs==="es-US"?M:M.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(q,G,K){return"H".repeat(G.length)+K})};
E8F=function(M,q){scY||(Q0=NJ4,scY=new Mjy);var G=scY;a:if(M=qWw(M),q=qWw(q||new Date),M>q)G=M.getTime()-q.getTime()>6048E5?_.uc(M,1):GRy(M);else{for(var K=0;K$Y(M,12*(K+1))<q;)++K;if(K>0)G=G.format(-K,0);else{for(K=0;K$Y(M,K+1)<q;)++K;if(K>0)G=G.format(-K,2);else{M=q.getTime()-M.getTime();q=_.k(n8s);for(K=q.next();!K.done;K=q.next()){K=K.value;var n=K.unit,E=Math.floor(M/K.unitDuration);if(E>=(K.threshold===void 0?1:K.threshold)){G=G.format(-E,n);break a}}G=G.format(-0,7)}}}return G};
qWw=function(M){if(typeof M.getTime==="function")return M;if(jB4(M))return Vry(M);throw Error("Mf`"+JSON.stringify(M));};
K$Y=function(M,q){for(var G=0,K;;++G)if(K=new Date(M.getFullYear(),M.getMonth()+q,M.getDate()-G,M.getHours(),M.getMinutes(),M.getSeconds()),K.getMonth()===(M.getMonth()+q)%12)return K};
_.bc=function(M){return{runs:[{text:M}]}};
_.UX=function(M){if(M&&M.simpleText)return M.simpleText;var q="";if(M&&M.runs)for(var G=0;G<M.runs.length;G++)M.runs[G].text&&(q+=M.runs[G].text);return q};
kRy=function(M,q,G,K){return M.videoEntity&&!M.policyEntity&&G!=="DOWNLOAD_STATE_FAILED"?[DS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:kz(M.policyEntity)&&q!=="TRANSFER_STATE_FAILED"&&q!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?q==="TRANSFER_STATE_PAUSED_BY_USER"?[DS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.pK(q)?[DS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:M.videoEntity.lengthSeconds?Nn4(M.videoEntity.lengthSeconds,K):[]:
[DS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
Nn4=function(M,q){var G=[{thumbnailOverlayTimeStatusRenderer:{text:_.rj(GUF({seconds:M})),style:"DEFAULT"}}];q&&(M=q<=0||M<=0?0:q>=M?100:Math.ceil(q*100/M),M>0&&G.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:M}}));return G};
plD=function(M,q,G,K,n){if(q==="TRANSFER_STATE_UNKNOWN"||!M)return{};if(_.pK(q)||q==="TRANSFER_STATE_PRE_TRANSFER")var E=[DS("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var p,y;if(q==="TRANSFER_STATE_COMPLETE"&&((p=M.mainPlaylistEntity)==null?0:(y=p.videos)==null?0:y.length)){var Y;M=(E=M.mainPlaylistEntity)==null?void 0:(Y=E.videos)==null?void 0:Y.length;E=(E=z6e(M))?{thumbnailOverlayBottomPanelRenderer:{text:_.rj(E),icon:{iconType:"PLAYLISTS"}}}:void 0;E=[mIF(),Object.assign({},
E!=null?E:{})]}else E=[]}a:if(q==="TRANSFER_STATE_PRE_TRANSFER")G=jE(_.Ge("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(q==="TRANSFER_STATE_TRANSFER_IN_QUEUE")G=jE(_.Ge("WAITING_TO_DOWNLOAD"));else if(_.pK(q))G=Math.floor(G*100).toString(),G=jE(_.Ge("DOWNLOADING_PERCENT",{percent:G},"Downloading... "+G+"%"));else{if(K&&(_.w("playlist_is_offline_selector_killswitch")&&(n=_.AL().resolve(_.G6).isNetworkAvailable()),n)){G=ZNw(_.Ge("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),
u3H(K));break a}G=void 0}q=q==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.Ge("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},E.length?{thumbnailOverlays:E}:{},G?{viewPlaylistText:G}:{viewPlaylistText:_.bc("")},q.length?{badges:q}:{})};
yaY=function(M,q,G,K,n,E){if(q==="TRANSFER_STATE_UNKNOWN"||!M)return{};if(K==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var p=kRy(M,q,K);if(M.videoEntity&&!M.policyEntity&&K!=="DOWNLOAD_STATE_FAILED"){var y=_.Ge("WAITING_TO_DOWNLOAD");if(y)return{shortViewCountText:_.bc(y),publishedTimeText:void 0,thumbnailOverlays:p}}if(!kz(M.policyEntity)){E=M.policyEntity&&!gyF(M.policyEntity)?_.Ge("DOWNLOAD_EXPIRED",{},"Download expired"):
_.Ge("TRANSFER_FAILED",{},"Download failed");var Y;if((Y=M.policyEntity)==null?0:Y.shortMessageForDisabledAction)E=M.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:jE(E),publishedTimeText:void 0,thumbnailOverlays:p}}if(q==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.bc(_.Ge("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:p};if(q==="TRANSFER_STATE_FAILED"||q==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.bc(_.Ge("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:p};if(q==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(Y=_.Ge("WAITING_TO_DOWNLOAD"),K==="DOWNLOAD_STATE_PAUSED"&&(Y=_.Ge("DOWNLOAD_PAUSED",{},"Download paused")),Y))return{shortViewCountText:_.bc(Y),publishedTimeText:void 0,thumbnailOverlays:p};if(_.pK(q))return M=Math.floor(G*100).toString(),{shortViewCountText:_.bc(_.Ge("DOWNLOADING_PERCENT",{percent:M},"Downloading... "+M+"%")),publishedTimeText:void 0,thumbnailOverlays:p};q=void 0;M.videoEntity.publishedTimestampMillis&&
(q=new Date,n&&(q=new Date(n)),q=jE(E8F(new Date(Number(M.videoEntity.publishedTimestampMillis)),q)));n=[];_.w("kevlar_woffle_badge_killswitch")||(n=[{metadataBadgeRenderer:{label:_.Ge("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var A;M=jE((A=M.videoEntity.localizedStrings)==null?void 0:A.viewCount);return Object.assign({},E?{shortViewCountText:void 0}:{shortViewCountText:M},E?{}:{publishedTimeText:q},{badges:n,thumbnailOverlays:p})};
YWy=function(M,q){M=M===void 0?_.L$s:M;switch(q.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:q.payload.playlistId,inviteLinkURL:q.payload.inviteLinkUrl};default:return M}};
Aas=function(M,q){M=M===void 0?_.W$Y:M;switch(q.type){case "SET_CURRENT_FORM_ID":return q=q.payload.formId,M.currentFormId===q?M:{currentFormId:q,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var G=q.payload;q=G.groupId;G=G.command;if(M.currentFormId){var K=Object.assign({},M.commandsMap);K[q]=G;M=Object.assign({},M,{commandsMap:K})}return M;case "RESET_COMMAND_MAP":return Object.assign({},M,{commandsMap:{}});default:return M}};
v8y=function(M,q){M=M===void 0?_.dJw:M;switch(q.type){case "UPDATE_CANVAS_MODE":return Object.assign({},M,{currentMode:q.payload.currentMode});default:return M}};
tjw=function(M,q){M=M===void 0?_.hse:M;switch(q.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},M,{guideIsExpanded:q.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},M,{scrollAtTop:q.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},M,{guideIsVisibleButNotPersistent:q.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},M,{miniplayerIsActive:q.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},M,{singleOptionSurveyIsActive:q.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},M,{slimlineSurveyRatingSelectedIndex:q.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},M,{richGridMiniMode:q.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},M,{richGridItemsPerRow:q.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},M,{richGridSlimItemsPerRow:q.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},M,{richGridContainerWidth:q.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},M,{richGridStyle:q.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},M,{currentPageType:q.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},M,{inlinePreviewIsActive:q.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},M,{inlinePreviewIsEnabled:q.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},M,{darkModeIsEnabled:q.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
M,{miniplayerPlaybackState:q.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},M,{tabGesturesIsActive:q.payload});case "SET_ONLINE_STATUS":return Object.assign({},M,{isOnline:q.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},M,{chipBarIsSticky:q.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},M,{frostedGlassMode:q.payload});default:return M}};
OiH=function(){return _.w("kevlar_disable_theater_mode_persistence")?!1:_.fX("START_IN_THEATER_MODE")};
C4e=function(M,q){M=M===void 0?_.wlu:M;switch(q.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},M,{transcription:q.payload});case "SET_OVERLAY_STATE":return Object.assign({},M,{overlay:q.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return M}};
QcF=function(){return gh(Object.assign({},{continuation:aBy,download:o8H,canvas:v8y,reportChannelAbuse:lB$,share:Xle,talkToRecs:P4u,ui:tjw,voiceSearch:C4e,watch:iiH,ypc:caj,shorts:g8w,radioButtonGroup:Aas,collabInviteLink:YWy},Bns))};
u5j=function(){return _.w("web_player_entities_middleware")?new xz(QcF(),[IBD,DJe]):new xz(QcF(),[IBD])};
_.zw=function(){Ja4||(Ja4=u5j());return Ja4};
ZiH=function(M,q,G){if(M.length)return{titleText:_.rj(q!=null?q:_.Ge("DOWNLOADS",void 0,"Downloads")),contents:M.map(function(K){var n=K.videoEntity;K={videoId:n.videoId,title:jE(n.title),shortBylineText:jE(K.channelEntity.title),thumbnail:n.thumbnail};var E=n.videoId?cs(_.zw().getState(),n.videoId):0;n.videoId&&G?K.navigationEndpoint=_.Te(n.videoId,G,void 0,void 0,E):n.videoId&&(K.navigationEndpoint=D1j(n.videoId,E,n.lengthSeconds));n.lengthSeconds&&(K.thumbnailOverlays=Nn4(n.lengthSeconds,E));return{playlistPanelVideoRenderer:K}}),
totalVideos:M.length}};
biw=function(M){return(M=(0,_.xP.getValueByKeys)(M,"playlistId"))?{playlistId:M}:null};
UJD=function(){return{}};
xJF=function(M,q){return new _.X4(function(G,K){M.then(function(n){if(n){if(n=q(n))return G(n);K()}},K)})};
zsF=function(M){var q,G,K,n=(q=M.contents)==null?void 0:(G=q.twoColumnWatchNextResults)==null?void 0:(K=G.autoplay)==null?void 0:K.autoplay,E,p,y;q=(E=M.contents)==null?void 0:(p=E.twoColumnWatchNextResults)==null?void 0:(y=p.playlist)==null?void 0:y.playlist;return n&&q&&q.playlistId?{rawResponse:M,autoplayRenderer:n,playlistPanelRenderer:q,playlistId:q.playlistId}:null};
SWi=function(M){var q=q===void 0?"UNKNOWN_INTERFACE":q;if(M.length===1)return M[0];var G=mJF[q];if(G){G=new RegExp(G);for(var K=_.k(M),n=K.next();!n.done;n=K.next())if(n=n.value,G.exec(n))return n}var E=[];Object.entries(mJF).forEach(function(p){var y=_.k(p);p=y.next().value;y=y.next().value;q!==p&&E.push(y)});
G=new RegExp(E.join("|"));M.sort(function(p,y){return p.length-y.length});
K=_.k(M);for(n=K.next();!n.done;n=K.next())if(n=n.value,!G.exec(n))return n;return M[0]};
_.m4=function(M){return"/youtubei/v1/"+SWi(M)};
_.Sg=function(M,q){return{openPopupAction:Object.assign({},{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:M}}},q!==void 0?{durationHintMs:q}:{})}};
_.Tw=function(M,q){return _.Sg(_.bc(M),q)};
TnD=function(M,q){var G={mode:"NORMAL"};M&&(G.autoplayVideo=M.navigationEndpoint,G.nextButtonVideo=M.navigationEndpoint);q&&(G.previousButtonVideo=q.navigationEndpoint);return G};
Vjj=function(M,q,G){if(!G||!G.sets)return{sets:[TnD(M,q)]};var K=G.sets.find(function(p){return p.mode==="NORMAL"}),n=(0,_.xP.unsafeClone)(G);
if(!K)return n.sets.push(TnD(M,q)),n;if(!M)return G;K=_.xP.getValueByKeys.apply(null,[K].concat(_.Ui(raw)));var E=_.xP.getValueByKeys.apply(null,[M].concat(_.Ui(jc4)));if(K===E)return G;n.sets=n.sets.filter(function(p){return p.mode!=="NORMAL"});
n.sets.push(TnD(M,q));return n};
RsH=function(M){return!!M.playlistPanelVideoRenderer&&!M.playlistPanelVideoRenderer.unplayableText};
fBw=function(M){return!!M.playlistPanelVideoRenderer&&!!M.playlistPanelVideoRenderer.title};
F$H=function(M,q){if(q.contents&&!(M>=q.contents.length)&&(M=q.contents.slice(M).find(RsH)))return M.playlistPanelVideoRenderer};
Hie=function(M,q){if(q.contents)return(q=q.contents.find(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId===M}))?q.playlistPanelVideoRenderer:void 0};
esY=function(M,q){return q.contents?q.contents.findIndex(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId===M}):-1};
$J4=function(M,q){return q.contents?q.contents.findIndex(function(G){return!!G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.playlistSetVideoId===M}):-1};
s4j=function(M,q){M.contents&&q!==-1&&M.contents.splice(q,1).length===1&&M.totalVideos!==void 0&&(--M.totalVideos,delete M.videoCountText)};
_.MfD=function(M){var q=[];if(!M||!M.contents)return q;M=_.k(M.contents);for(var G=M.next();!G.done;G=M.next())G=G.value,G.playlistPanelVideoRenderer&&G.playlistPanelVideoRenderer.videoId&&q.push(G.playlistPanelVideoRenderer.videoId);return q};
_.q2y=function(M){if(M&&M.contents)return(M=M.contents.find(function(q){return!!q.playlistPanelVideoRenderer&&!!q.playlistPanelVideoRenderer.selected})||M.contents[M.currentIndex])?M.playlistPanelVideoRenderer:void 0};
Gou=function(M,q,G,K,n,E,p){n=n===void 0?!1:n;E=E===void 0?!1:E;p=p===void 0?!1:p;if(M.contents&&M.contents.length!==0){K&&(M.contents=M.contents.filter(K));K=M.contents.length;for(var y=0;y<K;y++){var Y=M.contents[y].playlistPanelVideoRenderer;Y&&(y===q?(E&&delete Y.menu,Y.indexText=_.bc("\u25b6")):n||M.isInfinite||Y.indexText===void 0?delete Y.indexText:Y.indexText=_.bc((y+1+G).toString()))}M.currentIndex=q+G;p&&(delete M.videoCountText,M.totalVideos=K)}};
_.rz=function(M){M=KF$(M);if(M){var q=M.length;var G=-12%q;G<0&&(G=q+G);M=M.slice(q-G)+M.slice(0,q-G)}else M="";G="";for(q=0;q<M.length&&M[q]!==nL4;q++)G+=M[q];return G};
_.ELi=function(M,q){var G=document.body;q=q===void 0?function(y){return y}:q;
var K,n=null;M=_.k(M);for(K=M.next();!K.done;K=M.next()){var E=K.value;K="div";E[2]&&(K=q(E[2]));K=document.createElement(K);n||(n=K);var p=E[0];E=E[1];p&&(K.id=q(p));if(E)for(E=_.k(E),p=E.next();!p.done;p=E.next())K.classList.add(q(p.value));G.appendChild(K);G=K}return[n,G]};
NsF=function(M,q){for(var G="",K=0;K<q;K++)G+=M.charAt(Math.floor(Math.random()*M.length));return G};
jg=function(M){return NsF("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",M)};
V0=function(M){return NsF("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",M)};
Rt=function(M){return NsF("0123456789",M)};
ko$=function(){var M=performance.now(),q=new Date;var G="2."+q.getFullYear()+String(q.getMonth()+1).padStart(2,"0")+String(q.getDate()).padStart(2,"0");for(var K,n=Math.floor(Math.random()*11)+15,E=[],p=0;p<n;p++)E.push(Math.floor(Math.random()*26476865)+24547720);K=E.join(",");var y=jg(10),Y=jg(100),A=jg(102),v=jg(106),h=jg(108),t=jg(11),O=jg(1140),a=jg(123),g=jg(14),D=jg(16),J=jg(1900),Z=jg(23),V=jg(26),S=jg(34),m=jg(397),R=jg(44),se=jg(5),yY=jg(72),d$=jg(74),cy=jg(75),t4=jg(88),ay=jg(91),bH="rr5---sn-q4fzen7e rr1---sn-hgn7rn7y rr4---sn-ntqe6nee rr4---sn-q4fl6nss rr2---sn-ntq7yned rr1---sn-q4fl6nsy rr1---sn-ntqe6n7k rr4---sn-5hnekn7k rr1---sn-q4fzen7e rr1---sn-q4fzen7r rr5---sn-q4flrne7 rr1---sn-q4flrnss rr5---sn-ntqe6n76 rr3---sn-q4fl6ndl rr3---sn-q4fzene7 rr4---sn-5hne6nsz rr3---sn-q4fl6n6s rr4---sn-q4fl6ns6 rr1---sn-q4flrner rr2---sn-q4fl6nde".split(" ");
var iH=bH[Math.floor(Math.random()*bH.length)];var oI=(new Date("2010-01-01")).getTime();var r9=(new Date(oI+Math.random()*((new Date).getTime()-oI))).toISOString().split("T")[0];for(var X2,EM=[],LP=0;LP<4;LP++)EM.push(Math.floor(Math.random()*100));X2=EM.join(".");var Pv=Number(Rt(5)),g9=Number(Rt(6)),a8=Number(Rt(7)),tE=Number(Rt(9)),ND=Rt(1),Mx=Rt(10),hd=Rt(16),Kn=Rt(19),w9=Rt(2),Gs=Rt(20),u5=Rt(21),jJ=Rt(3),Ad=Rt(4),Wv=Rt(5),qM=Rt(6),Ry=Rt(7),OM=Rt(8),OL=Rt(9);var fG=NsF("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var BI=[V0(5),V0(5),V0(5)].join("%2C"),mw=[Rt(3),Rt(5),Rt(5)].join("%2C"),e1=V0(0),p8=V0(1),fP=V0(10),Xv=V0(108),NM=V0(11),pS=V0(12),$q=V0(13),My=V0(14),Ox=V0(15),PD=V0(16),LK=V0(17),By=V0(18),Ue=V0(19),jw=V0(2),aI=V0(20),ww=V0(22),Bt=V0(23),QI=V0(24),iS=V0(266),lS=V0(3),UL=V0(30),OA=V0(34),td=V0(35),gq=V0(36),jA=V0(4),UA=V0(40),FS=V0(43),$c=V0(47),Uq=V0(5),y1=V0(6),wl=V0(7),$0=V0(75),fj=V0(8),PI=V0(80),Ts=V0(9),yI="https://www."+V0(12)+".com",dq={},Rg={},Vq={},Kl={},xm={},g5={},Bu={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:K}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:G},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+V0(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:G},{key:"client.name",value:"WEB"},{key:"client.fexp",value:K}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:u5+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+V0(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:UA,ypcGetOfflineUpsellEndpoint:{params:PI}},trackingParams:td+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&cnr="+w9+"&ratebypass=yes&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&c=WEB&txp="+Ry+"&n="+D+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:g9,width:640,height:360,lastModified:hd,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Ry,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+mw+"&mn="+
BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&cnr="+w9+"&ratebypass=yes&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&c=WEB&txp="+Ry+"&n="+D+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Xv+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:g9,width:1280,
height:720,lastModified:hd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Ry,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+mw+"&mn="+BI+"&ms="+
BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OL+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:a8,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OL,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:a8,approxDurationMs:Ry},{itag:248,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+mw+"&mn="+BI+"&ms="+BI+"&mv="+
p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fwebm&ns="+QI+"&gir="+lS+"&clen="+OL+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:a8,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OL,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:a8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:399,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OL+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:a8,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OL,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:a8,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:136,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OL+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:a8,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OL,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:g9,approxDurationMs:Ry},{itag:247,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+mw+"&mn="+
BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fwebm&ns="+QI+"&gir="+lS+"&clen="+OL+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:a8,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OL,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:g9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:398,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OL+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:a8,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OL,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:g9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:135,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:g9,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:g9,approxDurationMs:Ry},{itag:244,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+mw+"&mn="+
BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fwebm&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Xv+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:g9,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:g9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:397,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:g9,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:g9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:134,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:g9,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:g9,highReplication:!0,approxDurationMs:Ry},{itag:243,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fwebm&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:g9,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:g9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:396,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:g9,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:g9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:133,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:g9,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:g9,approxDurationMs:Ry},{itag:242,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+mw+"&mn="+
BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fwebm&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:g9,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:g9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:395,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:g9,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:g9,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:160,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:g9,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Pv,approxDurationMs:Ry},{itag:278,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+mw+"&mn="+
BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fwebm&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+h+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/webm; codecs="vp9"',bitrate:g9,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Pv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:394,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&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="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=video%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Pv,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Pv,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:Ry},{itag:140,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=audio%2Fmp4&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:g9,
initRange:{start:"0",end:"631"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:g9,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Ry,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+
w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=audio%2Fwebm&ns="+QI+"&gir="+lS+"&clen="+Ry+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'audio/webm; codecs="opus"',bitrate:Pv,initRange:{start:"0",end:"265"},indexRange:{start:jJ,
end:Ad},lastModified:hd,contentLength:Ry,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Pv,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Ry,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=audio%2Fwebm&ns="+
QI+"&gir="+lS+"&clen="+Ry+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+v+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'audio/webm; codecs="opus"',bitrate:Pv,initRange:{start:"0",end:"265"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:Ry,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Pv,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:Ry,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+iH+".googlevideo.com/videoplayback?expire="+Mx+"&ei="+Z+"&ip="+X2+"&id=o-AF"+FS+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+mw+"&mn="+BI+"&ms="+BI+"&mv="+p8+"&mvi="+ND+"&pl="+w9+"&initcwndbps="+Ry+"&siu="+ND+"&spc="+R+"&vprv="+ND+"&svpuc="+ND+"&mime=audio%2Fwebm&ns="+QI+"&gir="+lS+"&clen="+OM+"&dur="+OM+"&lmt="+hd+"&mt="+Mx+"&fvip=3&keepalive="+lS+"&c=WEB&txp="+
Ry+"&n="+PD+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Y+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+h,mimeType:'audio/webm; codecs="opus"',bitrate:g9,initRange:{start:"0",end:"265"},indexRange:{start:jJ,end:Ad},lastModified:hd,contentLength:OM,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:g9,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:Ry,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="+OL+"&docid="+t+"&ei="+Z+"&feature="+y+"&fexp="+e1+"&ns="+jw+"&plid="+D+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+p8+"&el="+fP+"&len="+Ad+"&of="+ww+
"&uga="+w9+"&vm="+iS},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+OL+"&docid="+t+"&ei="+Z+"&feature="+y+"&fexp="+e1+"&ns="+jw+"&plid="+D+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+p8+"&el="+fP+"&len="+Ad+"&of="+ww+"&uga="+w9+"&vm="+iS},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+OL+"&docid="+t+"&ei="+Z+"&feature="+y+"&fexp="+e1+"&ns="+jw+"&plid="+D+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
p8+"&el="+fP+"&len="+Ad+"&of="+ww+"&uga="+w9+"&vm="+iS},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+Z+"&m="+t4+"&oid="+ww+"&plid="+D+"&pltype="+wl+"&ptchn="+ww+"&ptk="+g+"&video_id="+t},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+OL+"&docid="+t+"&ei="+Z+"&event="+My+"&feature="+y+"&fexp="+e1+"&ns="+jw+"&plid="+D+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+p8},atrUrl:{baseUrl:"https://www.youtube.com/api/stats/atr?ns=yt&el=detailpage&cpn="+
PD+"&ver=2&cmt=1."+jJ+"&fmt="+jJ+"&fs=0&rt="+Wv+"&euri&lact="+jJ+"&cl="+OL+"&mos="+ND+"&volume=100&cbrand="+Uq+"&cbr="+y1+"&cbrver="+X2+"&c=WEB&cver="+G+"&cplayer=UNIPLAYER&cos="+Ts+"&cosver="+Ry+"&cplatform=DESKTOP&hl=en_US&cr=US&uga="+w9+"&len="+OM+"&fexp="+BI+"&feature=g-high-rec&afmt="+jJ+"&muted=0&conn=1&docid="+t+"&ei="+Z+"&plid="+D+"&vm="+V0(191),elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+
t+"&caps="+lS+"&opi="+OL+"&xoaf="+ND+"&hl="+jw+"&ip="+X2+"&ipbits="+ND+"&expire="+Mx+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+X2+"&key="+lS+"&lang="+se,name:{simpleText:Ue},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+t+"&caps="+lS+"&opi="+OL+"&xoaf="+ND+"&hl="+jw+"&ip="+X2+"&ipbits="+ND+"&expire="+Mx+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+X2+"&key="+lS+"&kind="+lS+"&lang="+jw,name:{simpleText:PD},
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:NM,title:Ue,lengthSeconds:"1155",keywords:[aI,$q,wl,PD],channelId:QI,isOwnerViewing:!1,shortDescription:y1,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+gq+"G&rs="+OA,width:168,height:94},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+gq+
"G&rs="+OA,width:196,height:110},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+gq+"G&rs="+S,width:246,height:138},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+gq+"G&rs="+S,width:336,height:188},{url:"https://i.ytimg.com/vi/"+t+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:Ry,author:$q,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:Ry,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+
ww+"/featured_channel.jpg?v="+fj,width:40,height:40}]},trackingParams:td+"=",navigationEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"/channel/"+QI,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:QI}},channelName:$q,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:PD}]},subscribed:!1,enabled:!0,type:"FREE",channelId:QI,showPreferences:!1,subscribedButtonText:{runs:[{text:$q}]},unsubscribedButtonText:{runs:[{text:y1}]},
trackingParams:td+"=",unsubscribeButtonText:{runs:[{text:NM}]},serviceEndpoints:[{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[QI],params:fj}},{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:UA,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:td+"=",dialogMessages:[{runs:[{text:fP},
{text:PD},{text:pS}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:pS}]},serviceEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[QI],params:fj}},accessibility:{label:fP},trackingParams:td+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:PD}]},accessibility:{label:$q},
trackingParams:td+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:My}},unsubscribeAccessibility:{accessibilityData:{label:wl}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:OM},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,
readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},subscribeCommand:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[QI],
params:fj}},unsubscribeCommand:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[QI],params:fj}},addToWatchLaterCommand:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:NM,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:NM}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+t+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+gq+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+t+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+NM,width:1280,
height:720},title:{simpleText:My},description:{simpleText:My},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+$q,externalChannelId:QI,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:Ry,category:"Travel & Events",publishDate:r9,ownerChannelName:$q,uploadDate:r9}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:My},trackingParams:td+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:UA,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:td+"="}}],headerText:{simpleText:Ue},icon:{infoCardIconRenderer:{trackingParams:td+"="}},closeButton:{infoCardIconRenderer:{trackingParams:td+"="}},trackingParams:td+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:td+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+NM+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:fG,interpreterSafeUrl:(dq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+UL+".js",dq),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:jA},{text:$q,bold:!0}]},endpoint:{clickTrackingParams:UA,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:td+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:jA}]},actionButton:{buttonRenderer:{text:{runs:[{text:Ox}]},navigationEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+t,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
t,target:"TARGET_NEW_WINDOW"}},trackingParams:td+"="}},trackingParams:td+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+yY+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+yY+"=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:Ry,endMs:Ry,title:{accessibility:{accessibilityData:{label:PD}},simpleText:aI},metadata:{simpleText:Uq},callToAction:{simpleText:fj},dismiss:{simpleText:By},endpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"/channel/"+QI,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:QI}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Uq}]},subscribed:!1,enabled:!0,type:"FREE",channelId:QI,showPreferences:!1,
subscribedButtonText:{runs:[{text:My}]},unsubscribedButtonText:{runs:[{text:y1}]},trackingParams:td+"=",unsubscribeButtonText:{runs:[{text:fj}]},serviceEndpoints:[{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[QI],params:fj}},{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:UA,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:td+
"=",dialogMessages:[{runs:[{text:Uq},{text:fj},{text:NM}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:LK}]},serviceEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[QI],params:fj}},accessibility:{label:PD},trackingParams:td+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:fP}]},
accessibility:{label:Ue},trackingParams:td+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:fj}},unsubscribeAccessibility:{accessibilityData:{label:aI}}}},trackingParams:td+"=",isSubscribe:!0,id:Gs}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+gq+"G&rs="+S,width:168,height:94},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+gq+"G&rs="+OA,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+gq+"G&rs="+S,width:246,height:138},{url:"https://i.ytimg.com/vi/"+t+"/hqdefault.jpg?sqp=-oaymwE"+gq+"G&rs="+S,width:336,height:188},{url:"https://i.ytimg.com/vi/"+t+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:Ry,endMs:Ry,title:{accessibility:{accessibilityData:{label:$q}},simpleText:$q},metadata:{simpleText:Ts},endpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
NM,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:NM,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+iH+".googlevideo.com/videoplayback?source=youtube&oeis="+ND+"&c=WEB&oad="+Ad+"&ovd="+Ad+"&oaad="+Wv+"&oavd="+Wv+"&ocs="+jJ+"&oewis="+ND+"&oputc="+ND+"&ofpcc="+ND+"&siu="+ND+"&msp="+ND+"&odepv="+ND+
"&id=o-AF"+FS+"&ip="+X2+"&initcwndbps="+Ry+"&mt="+Mx+"&oweuc="+e1}}}}},trackingParams:td+"=",id:Gs,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:fP}},simpleText:$q},style:"DEFAULT"}}]}}],startMs:Ry,trackingParams:td+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:ND,offsetEndMilliseconds:Wv},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+OL+";dc_trk_cid="+OL+";dc_dbm_token="+h+";ord="+Mx+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";dc_rui="+ND+";dc_exteid="+Gs+";dc_av="+jJ+";dc_sk="+ND+";dc_ctype="+w9+";dc_ref=http://www.youtube.com/video/"+NM+";dc_pubid="+ND+";dc_btype=23?gclid="+ay+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+ND+"&ns="+ND+"&event="+ND+"&device="+ND+"&content_v="+t+"&el="+fP+"&ei="+Z+"&devicever="+G+"&bti="+Ry+"&format="+qM+"&break_type="+ND+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+ND+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+X2+"&slot_pos="+ND+"&slot_len="+ND+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+mw+"&ad_len="+Wv+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
NM+"&aqi="+Z+"&ad_rmp="+ND+"&sli="+ND}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+
";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+qM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+Ry+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&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"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&ctype="+jJ+"&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"+
O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_engaged_view&ctype="+jJ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+qM+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
OL+";dc_trk_cid="+OL+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";ord="+OL+";dc_rui="+ND+";dc_exteid="+Kn+";dc_av="+ND+";dc_sk="+ND+";dc_ctype="+w9+";dc_pubid="+ND+";dc_btype=3?gclid="+ay+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+A+"&sig="+Bt+"&ad_cpn=[AD_CPN]&id="+y1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+y1+"&dc_pubid="+ND+"&dc_exteid="+Gs+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+A+"&sig="+Bt+"&ad_cpn=[AD_CPN]&id="+y1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+ND},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+y1+"&avm="+ND+"&dc_pubid="+ND+"&dc_exteid="+
Gs+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&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="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
A+"&sig="+Bt+"&ad_cpn=[AD_CPN]&id="+y1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+ND},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+y1+"&dc_pubid="+ND+"&dc_exteid="+Gs+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+qM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+qM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:UA,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+
jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+t+"/mqdefault.jpg",width:320,height:180}]},trackingParams:td+"="},trackingParams:td+
"=",templatedCountdown:{templatedAdText:{text:y1,isTemplated:!0,trackingParams:td+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:$q,isTemplated:!1,trackingParams:td+"="},trackingParams:td+"="}},trackingParams:td+"=",skipOffsetMilliseconds:5E3}},trackingParams:td+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:aI},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:td+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:LK,isTemplated:!1,trackingParams:td+"="},trackingParams:td+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:jA,isTemplated:!0,trackingParams:td+"="}},trackingParams:td+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:UA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Rg.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+jw+"&origin=www.youtube.com&ata_theme="+jA,Rg),trackingParams:td+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:td+"="}},hoverText:{runs:[{text:Ts}]},trackingParams:td+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+$c+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:td+"="},headline:{text:Ue,isTemplated:!1,trackingParams:td+"="},description:{text:By,
trackingParams:td+"="},actionButton:{buttonRenderer:{text:{simpleText:PD},navigationEndpoint:{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+OL+";dc_trk_cid="+OL+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";ord="+OL+";dc_rui="+ND+";dc_exteid="+Gs+";dc_av="+ND+";dc_sk="+ND+";dc_ctype="+w9+";dc_pubid="+ND+";dc_btype=3?gclid="+ay+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:td+"="}},startMs:ND,trackingParams:td+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:NM},elementId:Uq}},elementId:$q,trackingParams:td+"=",legacyInfoCardVastExtension:pS,sodarExtensionData:{siub:$q,bgub:$q,scs:jA,bgp:aI},externalVideoId:NM,adLayoutLoggingData:{serializedAdServingDataEntry:$q},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+$c+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:td+"="},
headline:{text:wl,isTemplated:!1,trackingParams:td+"="},description:{text:aI,isTemplated:!1,trackingParams:td+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:Ox},navigationEndpoint:{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+OL+";dc_trk_cid="+OL+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";ord="+OL+";dc_rui="+ND+";dc_exteid="+
Gs+";dc_av="+ND+";dc_sk="+ND+";dc_ctype="+w9+";dc_pubid="+ND+";dc_btype=3?gclid="+ay+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+
ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:td+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:td+"="}},navigationEndpoint:{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+OL+";dc_trk_cid="+
OL+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";ord="+OL+";dc_rui="+ND+";dc_exteid="+Gs+";dc_av="+ND+";dc_sk="+ND+";dc_ctype="+w9+";dc_pubid="+ND+";dc_btype=3?gclid="+ay+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+
a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:td+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:td+"="},abandonCommands:{commands:[{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&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="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+
ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:UA,commandExecutorCommand:{commands:[{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:y1,isTemplated:!1,trackingParams:td+
"="},trackingParams:td+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:$q},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+Ry+";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="+OL+";dc_trk_cid="+OL+";ord="+Mx+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";dc_rui="+ND+";dc_exteid="+Gs+";dc_av="+jJ+";dc_sk="+ND+";dc_ctype="+w9+";dc_ref=http://www.youtube.com/video/"+NM+";dc_pubid="+ND+";dc_btype=23?gclid="+ay+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+ND+"&ns="+ND+"&event="+ND+"&device="+ND+"&content_v="+t+"&el="+fP+"&ei="+Z+"&devicever="+G+"&bti="+Ry+"&format="+qM+"&break_type="+ND+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+ND+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+X2+"&slot_pos="+ND+"&slot_len="+ND+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
mw+"&ad_len="+Wv+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+NM+"&aqi="+Z+"&ad_rmp="+ND+"&sli="+ND}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+qM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+
V+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+Ry+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&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"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&ctype="+jJ+"&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"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_engaged_view&ctype="+jJ+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+qM+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+A+"&sig="+Bt+"&ad_cpn=[AD_CPN]&id="+
y1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+y1+"&dc_pubid="+ND+"&dc_exteid="+Gs+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+A+
"&sig="+Bt+"&ad_cpn=[AD_CPN]&id="+y1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+ND},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+y1+"&avm="+ND+"&dc_pubid="+ND+"&dc_exteid="+Gs+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&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="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+A+"&sig="+Bt+"&ad_cpn=[AD_CPN]&id="+y1+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+ND},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+y1+"&dc_pubid="+ND+"&dc_exteid="+Gs+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+qM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+qM+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+
jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+t+"/mqdefault.jpg",width:320,height:180}]},trackingParams:td+"="},trackingParams:td+"=",templatedCountdown:{templatedAdText:{text:jA,isTemplated:!0,trackingParams:td+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:fj,isTemplated:!1,trackingParams:td+"="},trackingParams:td+"="}},
trackingParams:td+"=",skipOffsetMilliseconds:5E3}},trackingParams:td+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:wl},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:td+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:jA,isTemplated:!1,trackingParams:td+"="},trackingParams:td+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:By,
isTemplated:!0,trackingParams:td+"="}},trackingParams:td+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:UA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Vq.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+jw+"&origin=www.youtube.com&ata_theme="+jA,Vq),trackingParams:td+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:td+"="}},hoverText:{runs:[{text:y1}]},trackingParams:td+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+d$+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:td+"="},headline:{text:fP,isTemplated:!1,trackingParams:td+"="},description:{text:fj,trackingParams:td+"="},actionButton:{buttonRenderer:{text:{simpleText:jA},navigationEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:td+"="}},startMs:ND,trackingParams:td+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:LK},elementId:pS}},elementId:Ox,trackingParams:td+"=",legacyInfoCardVastExtension:Uq,sodarExtensionData:{siub:PD,bgub:fP,scs:y1,bgp:Uq},externalVideoId:NM,adLayoutLoggingData:{serializedAdServingDataEntry:By},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+d$+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:td+"="},headline:{text:jA,
isTemplated:!1,trackingParams:td+"="},description:{text:jA,isTemplated:!1,trackingParams:td+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:jA},navigationEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:td+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:td+"="}},navigationEndpoint:{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+
ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:td+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:td+"="},abandonCommands:{commands:[{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&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="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+w9+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:UA,commandExecutorCommand:{commands:[{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:LK,isTemplated:!1,trackingParams:td+"="},trackingParams:td+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:pS},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+ND+";dc_exteid="+Gs+";met="+ND+";ecn"+ND+"="+ND+";etm1="+ND+";eid1="+
Ry+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:My}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:aI}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:Wv,offsetEndMilliseconds:qM},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+w9+"&token=ALHj"+m+"&index="+ND+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+G+"&m_pos_ms="+Wv}},adSlotLoggingData:{serializedSlotAdServingDataEntry:My}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:qM,offsetEndMilliseconds:qM},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+jJ+"&token=ALHj"+m+"&index="+ND+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
G+"&m_pos_ms="+qM}},adSlotLoggingData:{serializedSlotAdServingDataEntry:By}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:qM,offsetEndMilliseconds:qM},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+jJ+"&token=ALHj"+m+"&index="+ND+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
G+"&m_pos_ms="+qM}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:qM,offsetEndMilliseconds:qM},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+jJ+"&token=ALHj"+m+"&index="+ND+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
G+"&m_pos_ms="+qM}},adSlotLoggingData:{serializedSlotAdServingDataEntry:fP}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:qM,offsetEndMilliseconds:w9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+jJ+"&token=ALHj"+m+"&index="+ND+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
G+"&m_pos_ms="+qM}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Ts}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:w9,offsetEndMilliseconds:w9},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+Z+"&m_pos="+w9+"&token=ALHj"+m+"&index="+ND+"&cpn=[CPN]&lact=[LACT]&vis=[VIS]&ad_block=[AD_BLOCK]&tsla=[TSLA]&bid=[BISCOTTI_ID]&dt=[DT]&flash=[FLASH]&frm=[FRM]&ca_type=[CA_TYPE]&u_tz=[U_TZ]&u_his=[U_HIS]&u_java=[U_JAVA]&u_h=[U_H]&u_w=[U_W]&u_ah=[U_AH]&u_aw=[U_AW]&u_cd=[U_CD]&u_nplug=[U_NPLUG]&u_nmime=[U_NMIME]&p_w=[P_W]&p_h=[P_H]&c=WEB&cver="+
G+"&m_pos_ms="+w9}},adSlotLoggingData:{serializedSlotAdServingDataEntry:PD}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:$q,isTemplated:!1,trackingParams:td+"="},description:{text:Ue,isTemplated:!1,trackingParams:td+"="},actionButton:{buttonRenderer:{text:{simpleText:$q},navigationEndpoint:{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
OL+";dc_trk_cid="+OL+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";ord="+OL+";dc_rui="+ND+";dc_exteid="+Gs+";dc_av="+ND+";dc_sk="+ND+";dc_ctype="+w9+";dc_pubid="+ND+";dc_btype=3?gclid="+ay+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:td+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+$c+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:td+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cy+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:td+"="},navigationEndpoint:{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+OL+";dc_trk_cid="+OL+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";ord="+OL+
";dc_rui="+ND+";dc_exteid="+Gs+";dc_av="+ND+";dc_sk="+ND+";dc_ctype="+w9+";dc_pubid="+ND+";dc_btype=3?gclid="+ay+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:td+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:UA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Kl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+jw+"&origin=www.youtube.com&ata_theme="+jA,Kl),trackingParams:td+"="}},popupType:"DIALOG"}},trackingParams:td+"="}},hoverText:{runs:[{text:Uq}]},trackingParams:td+"="}},adVideoId:NM,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:My},associatedCompositePlayerBytesLayoutId:PD}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:jA}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:y1,isTemplated:!1,trackingParams:td+"="},description:{text:pS,isTemplated:!1,trackingParams:td+"="},actionButton:{buttonRenderer:{text:{simpleText:pS},navigationEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+
a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:td+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+d$+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:td+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$0+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:td+"="},navigationEndpoint:{clickTrackingParams:UA,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+
ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:td+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:UA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(xm.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+jw+"&origin=www.youtube.com&ata_theme="+jA,xm),trackingParams:td+"="}},popupType:"DIALOG"}},trackingParams:td+"="}},
hoverText:{runs:[{text:Ue}]},trackingParams:td+"="}},adVideoId:NM,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+NM+"&cid="+V+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:jA},associatedCompositePlayerBytesLayoutId:PD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:NM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:PD,
isTemplated:!1,trackingParams:td+"="},description:{text:By,isTemplated:!1,trackingParams:td+"="},actionButton:{buttonRenderer:{text:{simpleText:Ue},navigationEndpoint:{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+OL+";dc_trk_cid="+OL+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";ord="+OL+";dc_rui="+ND+";dc_exteid="+Gs+";dc_av="+ND+";dc_sk="+ND+";dc_ctype="+
w9+";dc_pubid="+ND+";dc_btype=3?gclid="+ay+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+
S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:td+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+$c+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:td+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+cy+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:td+
"="},navigationEndpoint:{clickTrackingParams:UA,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+OL+";dc_trk_cid="+OL+";dc_dbm_token="+h+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+ND+";ord="+OL+";dc_rui="+ND+";dc_exteid="+Gs+";dc_av="+ND+";dc_sk="+ND+";dc_ctype="+w9+";dc_pubid="+ND+";dc_btype=3?gclid="+ay+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+O+"____________"+a+"AxAA&ase=2&num="+ND+"&cid="+V+"&ad_cpn=%5BAD_CPN%5D&sig="+S+"&adurl="+yI+"&label=video_click_to_advertiser_site&ctype="+jJ+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:td+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:UA,openPopupAction:{popup:{aboutThisAdRenderer:{url:(g5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+J+"&hl="+jw+"&origin=www.youtube.com&ata_theme="+jA,g5),trackingParams:td+"="}},popupType:"DIALOG"}},trackingParams:td+
"="}},hoverText:{runs:[{text:LK}]},trackingParams:td+"="}},adVideoId:NM,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+O+"____________"+a+"AxAA&sigh="+t+"&cid="+V+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:wl},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:PD}},adSlotLoggingData:{serializedSlotAdServingDataEntry:By}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:UL,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:UL,command:{innertubeCommand:{clickTrackingParams:UA,ypcGetOfflineUpsellEndpoint:{params:PI}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:td+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:Mx,nanos:tE}}}},$pH=JSON.stringify(Bu),Qv=performance.now()-M;return{objectRepresentation:Bu,jsonRepresentation:$pH,generationTime:Qv}};
p5e=function(M,q){if(M===q)return!0;if(!M||!q||typeof M!==typeof q)return!1;if(M instanceof Array&&q instanceof Array){if(M.length!==q.length)return!1;for(var G=0;G<M.length;G++)if(!p5e(M[G],q[G]))return!1;return!0}if(typeof M==="object"&&typeof q==="object"&&M&&q){for(G in M)if(!(G in q&&p5e(M[G],q[G])))return!1;for(var K in q)if(!(K in M))return!1;return!0}return!1};
_.Fp=function(){if(!fK){fK=new lI(new yRF);var M=_.tL("client_streamz_web_flush_count",-1);M!==-1&&(fK.invocationLimit=M)}return fK};
Hs=function(M,q,G,K){if(M===q)return!0;if(Array.isArray(M)&&Array.isArray(q)){if(M.length!==q.length)return!1;for(var n=0;n<M.length;n++)if(!Hs(M[n],q[n],G,K))return!1;return!0}if(M instanceof Set||q instanceof Set){if(M instanceof Set&&q instanceof Set){if(M.size!==q.size)return!1;K=_.k(M.values());for(n=K.next();!n.done;n=K.next())if(!q.has(n.value))return!1;return!0}return!1}if(M instanceof Function){if(K)return!0;M.name===""&&_.T6(Error("Qf"),"ERROR");return!1}if(M instanceof Date&&q instanceof
Date)return M.getTime()===q.getTime();if(M instanceof Object&&q instanceof Object){if(LFD(M)&&LFD(q))try{return M.equals(q)}catch(p){_.T6(Error("Rf`"+p),"ERROR")}n=Object.getOwnPropertyNames(M).filter(function(p){return G?M[p]!==void 0:!0});
var E=Object.getOwnPropertyNames(q).filter(function(p){return G?q[p]!==void 0:!0});
if(n.length!==E.length)return!1;n=_.k(n);for(E=n.next();!E.done;E=n.next())if(E=E.value,!Hs(M[E],q[E],G,K))return!1;return!0}return!1};
LFD=function(M){M=Object.getPrototypeOf(M).equals;return M instanceof Function&&M.length===1};
_.ARu=function(){return _.L(function(M){if(M.nextAddress==1)return Y2y!==2?M.jumpTo(2):M.yield(WFy(),3);M.nextAddress!=2&&(Y2y=M.yieldResult);return M.return(Y2y)})};
_.hmy=function(){return _.L(function(M){if(M.nextAddress==1)return _.w("ab_pl_man")?dBi!==2?M.jumpTo(2):M.yield(vLy(),3):M.return(1);M.nextAddress!=2&&(dBi=M.yieldResult);return M.return(dBi)})};
w5y=function(){return _.L(function(M){if(M.nextAddress==1)return _.w("ab_fk_sk_cl")?tfD!==2?M.jumpTo(2):M.yield(ORw(),3):M.return(1);M.nextAddress!=2&&(tfD=M.yieldResult);return M.return(tfD)})};
_.oLy=function(){return _.L(function(M){if(M.nextAddress==1)return _.w("ab_det_apb_b")?C0H!==2?M.jumpTo(2):M.yield(adF(),3):M.return(1);M.nextAddress!=2&&(C0H=M.yieldResult);return M.return(C0H)})};
P0j=function(){var M;return _.L(function(q){if(q.nextAddress==1)return q.yield(Promise.all([_.ARu(),_.oLy(),_.hmy(),w5y()]),2);if(q.nextAddress!=3)return ldF()?q.return(!0):q.yield(_.X5i(),3);M=q.yieldResult;return q.return(M===0)})};
ldF=function(){var M=!1,q=function(G,K){iRy.increment(K,G);G===0&&(M=!0)};
q(_.cRF(),"j.s_");q(Y2y,"f.i_");q(C0H,"a.b_");q(dBi,"p.m_");q(tfD,"i.f_");gLy===2&&(gLy=_.Bsj(Q4$));q(gLy,"e.h_");_.w("ks_det_gpbl")||q(_.Ids(),"p.i_");_.w("ks_get_o_pp")||q(_.DBD(),"g.o_");_.w("ab_deg_unex_thr")||q(_.uuF(),"a.o_");q(JRF,"s.t_");_.w("ab_det_sc_inj_enf")&&q(_.ZRH(),"s.i_");q(bRe,"d.p_");q(_.UBF(_.eg),"o.p_");q(_.xBi()===0?0:_.zm$(),"o.a_");return _.w("debug_sk_em_precheck")?!0:M};
S2F=function(){var M=[].concat(_.Ui(mBF));try{var q=ko$();M.push({jsonRepresentation:q.jsonRepresentation,objectRepresentation:q.objectRepresentation})}catch(G){M=[].concat(_.Ui(mBF))}return M};
Tsj=function(){var M=["adPlacements","adSlots"];try{return M.filter(function(){return!0}).length!==M.length?0:1}catch(q){return 0}};
_.DBD=function(){if(Tsj()===0)return 0;var M=ko$(),q=M.objectRepresentation,G=(0,_.xP.unsafeClone)(q),K=[];if(q&&typeof q==="object")for(var n in q)K.push(n);else return 4;M=M.objectRepresentation.adPlacements;if(!(M&&M.length>0))return 4;try{if(!p5e(K,Object.getOwnPropertyNames(q)))return 0}catch(E){return 0}return p5e(G,q)?1:0};
_.UBF=function(M){if(!M||!M.length||typeof M==="string")return 0;for(var q=Object.getOwnPropertyNames(Object.prototype),G=0;G<M.length;G++)for(var K=_.rz(M[G]),n=_.k(q),E=n.next();!E.done;E=n.next())if(K===E.value)return 0;return 1};
rR4=function(M){var q=_.rz(M[1]);if(M[0]===null)return q;M=M[0];for(var G={},K=0;K<M.length;K++){var n=_.rz(M[K]);if(K===0)G[n]=q;else{var E={};E[n]=G;G=E}}return G};
_.xBi=function(){for(var M=_.$z,q=0;q<M.length;q++){var G=rR4(M[q]),K=[];K.push(G);if(K.length===0)return 0}return 1};
_.zm$=function(){for(var M=_.$z,q={},G=0;G<M.length;q={rcH:void 0},G++){var K=[rR4(M[G])];q.rcH=[];K.forEach(function(n){return function(E){n.rcH[n.rcH.length]=E}}(q));
if(q.rcH.length===0)return 0}return 1};
_.cRF=function(){for(var M=_.k(S2F()),q=M.next();!q.done;q=M.next()){var G=q.value;q=G.jsonRepresentation;G=G.objectRepresentation;try{var K=JSON.parse(q);if(!Hs(K,G,!1,!1))return 0}catch(n){return 0}}return 1};
_.ZRH=function(){try{var M=_.CD("ab_det_sc_inj_val");M.length===1&&M[0]===""&&(M=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var q=document.querySelectorAll("script"),G=_.k(q),K=G.next();!K.done;K=G.next())for(var n=K.value,E=_.k(M),p=E.next();!p.done;p=E.next()){var y=p.value;q=void 0;if((q=n.textContent)==null?0:q.includes(y))return 0}}catch(Y){return 4}return 1};
_.X5i=function(){var M,q,G,K,n,E,p;return _.L(function(y){switch(y.nextAddress){case 1:_.Cv(y,2),M=_.k(mBF),q=M.next();case 4:if(q.done)return y.return(1);K=G=q.value;n=K.jsonRepresentation;E=K.objectRepresentation;return y.yield((new Response(n,{status:200})).json(),7);case 7:p=y.yieldResult;if(!Hs(p,E,!1,!1))return y.return(0);q=M.next();y.jumpTo(4);break;case 2:return _.i5(y),y.return(4)}})};
_.uuF=function(){try{btoa("abc")}catch(M){return 0}return 1};
WFy=function(){var M,q,G,K,n,E,p,y,Y,A,v;return _.L(function(h){switch(h.nextAddress){case 1:_.Cv(h,2),M=_.k(S2F()),q=M.next();case 4:if(q.done)return h.return(1);K=G=q.value;n=K.jsonRepresentation;E=K.objectRepresentation;p=btoa(n);y="data:application/json;base64,"+p;Y=new Request(y);Object.defineProperty(Y,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(Y,"method",{get:function(){return"POST"}});
Object.defineProperty(Y,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(Y,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(Y,"body",{get:function(){return new ReadableStream}});
return h.yield(fetch(Y),7);case 7:return A=h.yieldResult,h.yield(A.json(),8);case 8:v=h.yieldResult;if(!Hs(v,E,!1,!1))return h.return(0);q=M.next();h.jumpTo(4);break;case 2:return _.i5(h),h.return(4)}})};
_.Bsj=function(M){if(!M||!M.length||typeof M==="string")return 0;for(var q=function(n){return _.rz(n)},G=2,K=0;K<M.length&&(G=_.j4y(_.ELi(M[K],q)),G!==0);K++);
return G};
_.j4y=function(M){var q=_.k(M);M=q.next().value;q=q.next().value;try{var G=document.createElement("div");document.body.appendChild(G);var K=getComputedStyle(G).display;document.body.removeChild(G);if(K==="none")return 4;var n=getComputedStyle(q).display==="none"?0:1;document.body.removeChild(M);return n}catch(E){return 4}};
ORw=function(){var M,q,G;return _.L(function(K){M=new _.sp;q=document.createElement("button");q.classList.add("ytp-ad-skip-button");q.style.opacity="0";q.style.height="0px";q.style.width="0px";q.style.padding="0px";q.style.border="none";G=function(){q.parentElement&&q.parentElement.removeChild(q)};
q.onclick=function(){M.resolve(0);G()};
document.body.appendChild(q);setTimeout(function(){G();M.resolve(1)},50);
return K.return(M.promise)})};
vLy=function(){var M,q,G,K,n,E,p;return _.L(function(y){M=new _.sp;q=document.createElement("ytd-player");try{document.body.prepend(q)}catch(Y){return y.return(4)}G=function(){q.parentElement&&q.parentElement.removeChild(q)};
q.getElementsByTagName("div").length>0?K=q.getElementsByTagName("div")[0]:(K=document.createElement("div"),q.appendChild(K));n=document.createElement("div");K.appendChild(n);E=document.createElement("video");p=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"});E.src=_.by(_.T3(p));E.ontimeupdate=function(){G();M.resolve(0)};
n.appendChild(E);E.classList.add("html5-main-video");setTimeout(function(){n.classList.add("ad-interrupting")},200);
setTimeout(function(){G();M.resolve(1)},5E3);
return y.return(M.promise)})};
Vf4=function(M){var q=ko$().objectRepresentation.playbackTracking;if(q){var G=[],K;G.push(q==null?void 0:(K=q.videostatsPlaybackUrl)==null?void 0:K.baseUrl);var n;G.push(q==null?void 0:(n=q.videostatsDelayplayUrl)==null?void 0:n.baseUrl);var E;G.push(q==null?void 0:(E=q.videostatsWatchtimeUrl)==null?void 0:E.baseUrl);var p;G.push(q==null?void 0:(p=q.ptrackingUrl)==null?void 0:p.baseUrl);var y;G.push(q==null?void 0:(y=q.qoeUrl)==null?void 0:y.baseUrl);var Y;G.push(q==null?void 0:(Y=q.atrUrl)==null?
void 0:Y.baseUrl);q=_.k(G);for(G=q.next();!G.done;G=q.next())if((G=G.value)&&M.test(G))return G.replace("https://www.youtube.com","").replace("https://s.youtube.com","")}};
RmY=function(M,q){var G,K;return _.L(function(n){switch(n.nextAddress){case 1:G=[],K=0;case 2:if(!(K<3)){n.jumpTo(4);break}return n.yield(fetch(M,{cache:"no-store",method:q}).then(function(E){G.push(E.status)}).catch(function(){G.push(-1)}),3);
case 3:K++;n.jumpTo(2);break;case 4:return n.return(G)}})};
fdF=function(M){return M.domainLookupStart===0&&M.domainLookupEnd===0&&M.connectStart===0&&M.connectEnd===0||M.duration===0};
FFD=function(M,q,G){G=G===void 0?"GET":G;var K,n,E,p,y,Y,A,v,h,t;return _.L(function(O){if(O.nextAddress==1)return O.yield(Promise.all([RmY(M,G),RmY(q,G)]),2);K=O.yieldResult;n=_.k(K);E=n.next().value;p=n.next().value;y=E;Y=p;if(Math.min.apply(Math,_.Ui(Y))!==Math.max.apply(Math,_.Ui(Y))||Math.min.apply(Math,_.Ui(y))!==Math.max.apply(Math,_.Ui(y)))return O.return(2);if(Math.min.apply(Math,_.Ui(Y))===Math.min.apply(Math,_.Ui(y)))return O.return(1);v=(A=performance.getEntriesByName(M))==null?void 0:
A[0];t=(h=performance.getEntriesByName(q))==null?void 0:h[0];return v&&t?fdF(t)?O.return(1):fdF(v)?O.return(0):O.return(1):O.return(2)})};
adF=function(){var M;return _.L(function(q){var G=[];var K;var n,E,p;(n=K=(n=ko$().objectRepresentation.streamingData)==null?void 0:(E=n.formats)==null?void 0:(p=E[0])==null?void 0:p.url)&&n&&!K.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(n=n.replace("initcwndbps","ctier=L&initcwndbps"),n=n.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),K={testUrl:n,baseUrl:K,method:"GET"}):K=void 0;K&&G.push(K);_.w("ab_net_tp_e")&&G.push({testUrl:_.Kj.location.origin+"/ad_companion",baseUrl:_.Kj.location.origin+
"/generate_204",method:"OPTIONS"});_.w("ab_fix_creator_view_cnt")&&(G.length=0,(K=Vf4(/api\/stats\/atr/))&&G.push({testUrl:_.Kj.location.origin+K,baseUrl:_.Kj.location.origin+"/generate_204",method:"POST"}));_.w("ad_net_pb_pbp")&&(K=Vf4(/api\/stats\/qoe/))&&G.push({testUrl:_.Kj.location.origin+K,baseUrl:_.Kj.location.origin+"/feed/download",method:"GET"});G=G.length!==0?G[Math.floor(Math.random()*G.length)]:void 0;return(M=G)?q.return(FFD(M.testUrl,M.baseUrl,M.method)):q.return(4)})};
_.Ids=function(){if(_.Kj.uUc===void 0||_.Kj.uUc===null||typeof _.Kj.uUc!=="function")return 2;try{return _.Kj.uUc()===!0?0:1}catch(M){return 0}};
HR$=function(M){switch(M){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.F2(M,"unknown result type")}};
_.emy=function(M,q){var G=Number(_.R9("CATSTAT",0));if(q.tgH===void 0)return G;q=q.tgH;M=HR$(M);return G&~(3<<q)|M<<q};
$B4=function(M){var q,G;if((M=(q=M.auxiliaryUi)==null?void 0:(G=q.messageRenderers)==null?void 0:G.bkaEnforcementMessageViewModel)&&M.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return M};
MLF=function(){for(var M=_.k(Object.values(_.sx$)),q=M.next();!q.done;q=M.next())q=q.value,q.isAsync&&q.tgH&&_.Vz("CATSTAT",_.emy(2,q))};
_.Gu=function(M,q){M=_.Mr("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",M);(q===void 0?0:q)?_.qYy(M,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.qr().logFlowEvent(M,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
KUy=function(){if(!GWF){if(Polymer.Base){var M=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{M.apply(this,arguments)}catch(h){_.eK(h)}};
var q=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{q.apply(this,arguments)}catch(h){_.eK(h)}};
var G=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{G.apply(this,arguments)}catch(h){_.eK(h)}};
var K=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{K.apply(this,arguments)}catch(h){_.eK(h)}};
var n=Polymer.Base._listen,E=new WeakMap;Polymer.Base._listen=function(h,t,O){var a=function(){try{O.apply(this,arguments)}catch(g){_.eK(g)}};
E.set(O,a);n.call(this,h,t,a)};
var p=Polymer.Base._unlisten;Polymer.Base._unlisten=function(h,t,O){p.call(this,h,t,E.get(O))}}if(Polymer.Async){var y=Polymer.Async,Y=y._atEndOfMicrotask;
y._atEndOfMicrotask=function(){try{Y.apply(y,arguments)}catch(h){_.eK(h)}}}if(Polymer.RenderStatus){var A=Polymer.RenderStatus,v=A.afterNextRender;
A.afterNextRender=function(h,t,O){v.call(A,h,function(){try{t.apply(this,arguments)}catch(a){_.eK(a)}},O)}}GWF=!0}};
_.El4=function(M){var q=M?_.ij(M):"";if(q){if(q.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(q.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(q.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(q.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(q.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.w("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(q.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";q=q.toLowerCase();if(q==="/")return"home";if(q==="/channel_memberships")return"channel-memberships-shopfront";if(q.indexOf("/feed/trending")===0)return"trending";if(q.indexOf("/feed/explore")===0)return"explore";if(q.indexOf("/live")===0)return"live";if(q.indexOf("/results")===0)return"search";if(q.indexOf("/sports")===0)return"sports";if(q.indexOf("/fashion")===0||q.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(q))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(q))return _.w("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(q.indexOf("/channel/")===0||q.indexOf("/user/")===0||q.indexOf("/gaming")===0||q.indexOf("/post/")===0)return"channel";if(nlF(M))return"show";if(q==="/playlist"||q.indexOf("/playlist/")===0||q==="/view_play_list"||q.indexOf("/view_play_list/")===0||q.indexOf("/show/")===0)return"playlist";if(q==="/companion_canvas")return"companion-canvas";if(q==="/feed/history"||
q.indexOf("/feed/history/")===0)return"history";if(q==="/new")return"labs";if(q==="/feed/subscriptions")return"subscriptions";if(q.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(q==="/history_controls")return"standalone";if(q.indexOf("/account")===0||q==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(q.indexOf("/paid_memberships")===0||q.indexOf("/refund")===0||q.indexOf("/purchases")===0||q.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(q.indexOf("/product")===
0)return"yts-products";if(q.indexOf("/premium")===0||q.indexOf("/musicpremium")===0)return q.indexOf("/premium/offers")===0||q.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(q==="/cart/checkout"||q==="/cart")return"ypc-checkout";if(q.indexOf("/feed/downloads")===0||q.indexOf("/redeem")===0||q.indexOf("/reporthistory")===0)return"browse";if(q.indexOf("/hashtag")===0)return"hashtag-landing-page";if(q.indexOf("/handle")===0)return"handle";if(q.indexOf("/source")===0)return"audio-pivot";if(q.search(RegExp("^/playables/(?!saved)."))===
0)return"mini_app";if(q.indexOf("/playables")===0)return"playables";if(q.indexOf("/create/live/join")===0)return"open-in-app";if(q.indexOf("/shorts")===0)return"shorts";if(q.indexOf("/feed/channels")===0)return"subscriptions-channels";(q=M?_.ij(M):"")&&q.indexOf("/watch")===0&&_.w("web_watch_enable_learning_journey")?(M=_.nD(M),M=!!M.list&&M.list.indexOf("LJPP")===0):M=!1;if(M)return"learning_journey_watch"}};
_.K_=function(M){var q,G;(M=(G=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?void 0:G.url)&&(q=_.El4(M));return q};
nlF=function(M){var q=M?_.ij(M):"";if(!q)return!1;q=q.toLowerCase();return q.indexOf("/show/")===0||q.indexOf("/playlist")===0&&(M=_.nD(M),M.list&&M.list.indexOf("EL")===0)?!0:!1};
Nr=function(M){var q="unknown",G;var K=((G=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?void 0:G.webPageType)||"";K?(G=K.toLowerCase(),G.startsWith("web_page_type_")&&(G=G.slice(14))):G=K;G&&NpY[G.toUpperCase()]?q=NpY[G.toUpperCase()]:_.C(M,_.n_)||_.C(M,kWF)?q="browse":_.C(M,_.Ep)?q="search":_.C(M,_.Jl)&&(q="watch");q==="watch"&&_.K_(M||null)==="learning_journey_watch"&&(q="learning_journey_watch");q==="unknown"&&_.j1(Error("Tf`"+JSON.stringify({clickTrackingParams:M==null?void 0:M.clickTrackingParams,
commandMetadata:M==null?void 0:M.commandMetadata,allEndpointKeys:Object.keys(M||[])})));return q};
_.kU=function(M){if(!_.pew||M)_.pew=_.Bc();return _.pew};
_.ybe=function(M){return!!_.C(M,_.Jl)||!!_.C(M,_.p_)&&_.w("kevlar_enable_shorts_prefetch")};
_.LU$=function(M,q){M=_.C(M,_.Jl)||_.C(M,_.p_);return"v"+M.videoId+(M.playlistId?"-pl"+M.playlistId:"")+(q?"-an1":"")+(M.params?"-pr"+M.params:"")};
_.YY$=function(M){var q=new yr(_.R9("ONE_PICK_URL",""));q.urlParamMap_.set("hostId",M);(M=_.R9("GAPI_LOCALE"))&&q.urlParamMap_.set("hl",M);(M=_.R9("SESSION_INDEX"))&&q.urlParamMap_.set("authuser",M);(M=_.R9("DELEGATED_SESSION_ID"))&&q.urlParamMap_.set("groupId",M);return q};
Aby=function(){var M=_.AL(),q=M.resolve(_.L_);M=M.resolve(_.YU);return new WUy(q,M)};
vl$=function(M){if(window.IntersectionObserver)return new dNi(M,400);throw new TypeError("Vf");};
tLH=function(){var M=Hammer.TouchAction,q=M.prototype.preventDefaults;M.prototype.preventDefaults=function(G){var K=this.actions.indexOf("pan-down")>-1;if(!K)return q.call(this,G);if(!hgy){var n=G.srcEvent;G=G.direction;var E;if((E=this.manager)==null?0:E.session.prevented)n.preventDefault();else if(K&&G&Hammer.DIRECTION_DOWN)return this.preventSrc(n)}}};
O04=function(M){if(!M||M.size===0)return Hammer.DIRECTION_ALL;if(M.size===2){if(M.has("up")&&M.has("down"))return Hammer.DIRECTION_VERTICAL;if(M.has("right")&&M.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(M.size===1){if(M.has("up"))return Hammer.DIRECTION_UP;if(M.has("down"))return Hammer.DIRECTION_DOWN;if(M.has("right"))return Hammer.DIRECTION_RIGHT;if(M.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.CJ4=function(){return wew?Promise.resolve(wew):new Promise(function(M,q){var G=self.indexedDB.open("swpushnotificationsdb");G.onerror=q;G.onsuccess=function(){var K=G.result;if(K.objectStoreNames.contains("swpushnotificationsstore"))wew=K,M(wew);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.CJ4()};
G.onupgradeneeded=aiu})};
aiu=function(M){M=M.target.result;M.objectStoreNames.contains("swpushnotificationsstore")&&M.deleteObjectStore("swpushnotificationsstore");M.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
_.AK=function(M,q,G){var K=G&&G>0?G:0;G=K?Date.now()+K*1E3:0;if((K=K?_.WE.getLocalStorage():_.WE.getSessionStorage())&&window.JSON){typeof q!=="string"&&(q=JSON.stringify(q,void 0));try{K.set(M,q,G)}catch(n){K.remove(M)}}};
_.d2=function(M){var q=_.WE.getSessionStorage(),G=_.WE.getLocalStorage();if(!q&&!G||!window.JSON)return null;try{var K=q.get(M)}catch(n){}if(typeof K!=="string")try{K=G.get(M)}catch(n){}if(typeof K!=="string")return null;try{K=JSON.parse(K,void 0)}catch(n){}return K};
_.vE=function(M){try{var q=_.WE.getSessionStorage(),G=_.WE.getLocalStorage();q&&q.remove(M);G&&G.remove(M)}catch(K){}};
liy=function(M){var q=ole(),G;return _.L(function(K){switch(K.nextAddress){case 1:return _.Cv(K,2),K.yield(M.match(q,{cacheName:"yt-appshell-assets"}),4);case 4:G=K.yieldResult;_.KF(K,3);break;case 2:_.i5(K);case 3:return K.return(G)}})};
ole=function(){var M=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?XeY.registration.scope:PJu;M.endsWith("/")&&(M=M.slice(0,-1));return M+"/app_shell_home"};
i0F=function(M){M.map(function(q){return q.source}).join("|")};
_.cby=function(M){return _.L(function(q){return q.return(liy(M))})};
gli=function(){var M=window.caches,q;return _.L(function(G){if(G.nextAddress==1)return G.yield(_.cby(M),2);q=G.yieldResult;return G.return(!!q)})};
Z0e=function(){_.L(function(M){if(M.nextAddress==1){if(Bpj)return M.jumpTo(0);Bpj=!0;if(_.w("enable_system_health_primes_monitoring"))return _.XN(Qxu,3E4),IiF(),M.return();if(!(Math.random()<_.tL("web_system_health_fraction")))return M.jumpTo(0);DNF={heightPixels:screen.height,widthPixels:screen.width};hK&&!isNaN(hK.jsHeapSizeLimit)&&(DNF.memoryTotalKbytes=String(Math.round(hK.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(DNF.devicePixelRatio=window.devicePixelRatio);return M.yield(u0j(),4)}_.XN(Qxu,
3E4);return M.yield(JbH(),0)})};
u0j=function(){return _.L(function(M){if(M.nextAddress==1)return tK.intersectionObserverPresent="IntersectionObserver"in window,tK.serviceWorkerPresent="serviceWorker"in navigator,tK.webSharePresent="share"in navigator,tK.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,tK.cacheStoragePresent="caches"in window,tK.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,tK.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
tK.webkitTemporaryStoragePresent="webkitTemporaryStorage"in Op&&Op.webkitTemporaryStorage&&"queryUsageAndQuota"in Op.webkitTemporaryStorage,tK.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",M.yield(AnY(),2);tK.indexedDbPresent=M.yieldResult;tK.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;tK.broadcastChannelPresent="BroadcastChannel"in window;tK.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(tK.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,tK.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.gL(M)})};
Qxu=function(){var M=9E4+Math.random()*2E3;_.Ap()>M||(_.w("enable_system_health_primes_monitoring")?IiF():JbH())};
JbH=function(){var M;return _.L(function(q){if(q.nextAddress==1)return q.yield(b0H(),2);M=q.yieldResult;_.ml("systemHealthCaptured",M);_.gL(q)})};
IiF=function(){var M={metric:{}},q=UNi();q.networkEvents.length&&(M.metric.networkEvents=xNj(q));_.ml("systemHealthCaptured",M)};
b0H=function(){var M,q,G,K,n,E,p,y,Y,A;return _.L(function(v){switch(v.nextAddress){case 1:M={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)};q=window.screen;_.w("enable_is_extended_monitoring")&&q&&"isExtended"in q&&(M.isExtended=!!q.isExtended);G={metric:{staticContext:DNF,dynamicContext:M,webMetric:zgs,webApiSupport:tK}};
if(K=_.Cx())G.csn=K;hK&&(G.metric.webMetric.currentHeapKbytes=Math.round(hK.usedJSHeapSize/1E3));window.matchMedia&&(G.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,G.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,G.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in Op&&typeof Op.getBattery==="function")){v.jumpTo(2);break}return v.yield(Op.getBattery(),3);case 3:if(n=
v.yieldResult)G.metric.dynamicContext.chargingStatus=n.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(G.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(tK.storageEstimatePresent)return v.yield(navigator.storage.estimate(),8);if(!tK.webkitTemporaryStoragePresent){v.jumpTo(5);break}return v.yield(mN$(),7);case 7:E=v.yieldResult;v.jumpTo(5);break;case 8:E=v.yieldResult;case 5:return G.metric.dynamicContext.deviceStorageQuotaMbytes=((p=E)==null?0:p.quota)?String(Math.round(E.quota/
1048576/10)*10):"-1",G.metric.dynamicContext.deviceStorageUsageMbytes=((y=E)==null?0:y.usage)?String(Math.round(E.usage/1048576/10)*10):"-1",Y=G.metric.dynamicContext,v.yield(gli(),9);case 9:return Y.hasAppShell=v.yieldResult,A=UNi(),A.networkEvents.length&&(G.metric.networkEvents=xNj(A)),v.return(G)}})};
mN$=function(){return new Promise(function(M){var q;tK.webkitTemporaryStoragePresent&&(q=Op.webkitTemporaryStorage)!=null&&q.queryUsageAndQuota?Op.webkitTemporaryStorage.queryUsageAndQuota(function(G,K){M({usage:G,quota:K})}):M(void 0)})};
_.w2=function(M){M&=16777215;M=[(M&16711680)>>16,(M&65280)>>8,M&255];return SYe(M[0],M[1],M[2])};
_.C_=function(M){M=[(M&16711680)>>>16,(M&65280)>>>8,M&255,(M&4278190080)>>>24];if(!_.TpF(M,function(q){return q===(q&255)}))throw Error("Wf`"+M.join(","));
return"rgba("+M[0]+","+M[1]+","+M[2]+","+(M[3]/255).toFixed(3)+")"};
_.rbD=function(M){return[(M&16711680)>>>16,(M&65280)>>>8,M&255]};
_.jxy=function(M){M=M.map(function(q){q/=255;return q<=.03928?q/12.92:Math.pow((q+.05)/1.05,2.4)});
return M[0]*.2126+M[1]*.7152+M[2]*.0722};
ar=function(M,q){M=_.rbD(M);return"rgba("+M[0]+", "+M[1]+", "+M[2]+", "+q+")"};
or=function(M){return(M&4278190080)>>>24===0?ar(M,"1"):_.C_(M)};
_.VLu=function(){try{return!!self.localStorage}catch(M){return!1}};
H04=function(){if(Rgw())_.j1(Error("Xf"));else{var M=document.createElement("iframe");M.style.display="none";var q=q===void 0?window.location.href:q;var G=_.jG(_.R9("PERSIST_IDENTITY_IFRAME_URL"));q=G?G:(new URL(q)).host.indexOf("studio")===0?_.Ow(fiH,"persist_identity"):_.Ow(FUY,"persist_identity");_.WwF(M,1,q);M.id="persist_identity";var K;(K=document.body)==null||K.appendChild(M)}};
Rgw=function(){var M=egF;M||(M=document.querySelector("#persist_identity"));return M};
$NY=function(){var M=!1;try{M=!!window.sessionStorage.getItem("session_logininfo")}catch(q){M=!0}return(_.R9("INNERTUBE_CLIENT_NAME")==="WEB"||_.R9("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&M};
sRw=function(M,q){if(!$NY())return!1;q||(q=_.R9("LOGIN_INFO"));return q?(M.session_logininfo=q,!0):!1};
qGw=function(M,q){M=M===void 0?!1:M;if((q===void 0||!q)&&MBe!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.fX("LOG_STICKINESS",!1)){q=_.Cx();var G=_.wt(),K={identityStickinessData:{initialState:MBe}};q&&G&&_.Ul(q,G,K)}if(q=Rgw())if(G=q.src?(new URL(q.src)).origin:"*",M){var n;(n=q.contentWindow)==null||n.postMessage({action:"clear"},G)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(M=window.sessionStorage.getItem("session_logininfo"))){var E;(E=q.contentWindow)==null||E.postMessage({loginInfo:M},G)}};
_.la=function(M){M=M===void 0?!0:M;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.Vz("LOGIN_INFO",""),M&&window.sessionStorage.setItem("from_switch_account","1"),qGw(!0,M)}catch(q){}};
G4y=function(M){M&&(M.startsWith("https://accounts.google.com/AddSession")?_.la():M.startsWith("https://accounts.google.com/ServiceLogin")?_.la():M.startsWith("https://myaccount.google.com")&&_.s9(M).getPath().endsWith("/youtubeoptions")&&_.la())};
Xw=function(M,q){G4y(M);if(_.fX("LOGGED_IN",!0)&&$NY()){var G=FxF(M);G==null&&(G={});sRw(G,q)&&_.xD(M,G)}};
KMe=function(){function M(q){for(q=q.target;q&&q.nodeName!=="A";)if(q=q.parentNode,!(q&&q instanceof HTMLElement))return;if(q&&!q.hasAttribute("download")&&q.getAttribute("rel")!=="external"&&q.href)return q.href}
document.addEventListener("mousedown",function(q){q.button!==0&&(q=M(q))&&Xw(q)});
document.addEventListener("click",function(q){(q=M(q))&&Xw(q)})};
NXi=function(){var M=new nhw;try{if(_.fX("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(y){M.increment(5,!1);return}if(_.R9("LOGIN_INFO")){var q=Ehu?Ehu:window.location;_.R9("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&H04();var G=FxF(q.href);G==null&&(G={});var K=G.session_logininfo,n=Number(window.sessionStorage.getItem("stickiness_reload")),E=K===_.R9("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
n>=2||E)n>=2?M.increment(2,E):E?M.increment(7,E):window.sessionStorage.getItem("session_logininfo")||(M.increment(3,E),MBe="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.R9("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.R9("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))M.increment(4,E),window.sessionStorage.removeItem("stickiness_reload");
else if(n<2){window.sessionStorage.setItem("stickiness_reload",String(n+1));var p=q.href;p=_.zt(p,"sttick");Xw(p,window.sessionStorage.getItem("session_logininfo"));p=_.Ex(p,{sttick:n});M.increment(n,E);_.tmu(q,p)}}else M.increment(6,!1)}else _.la(!1)}catch(y){}};
_.PE=function(M,q,G,K,n){q=q===void 0?{}:q;G=G===void 0?"":G;K=K===void 0?window:K;M=_.Nz(M,q);Xw(M);G=_.SM(M+G,n);_.tmu(K.location,G)};
k4s=function(M){if(M.urlEndpoint){if(M=_.nD(M.urlEndpoint.url),M.adurl)return YJ(M.adurl)}else if(M.watchEndpoint)return"//www.youtube.com/watch?v="+M.watchEndpoint.videoId;return null};
p9H=function(M){if(!M||!M.reportingPings)return null;var q={};M.reportingPings.forEach(function(G){G.pingType in q?q[G.pingType].push(G.url):q[G.pingType]=[G.url]});
return{adpings:zz4(q)}};
_.cE=function(M){M=M===void 0?!1:M;var q=_.El(),G="USER_INTERFACE_THEME_LIGHT";q.getFlag(165)?G="USER_INTERFACE_THEME_DARK":q.getFlag(174)?G="USER_INTERFACE_THEME_LIGHT":_.ia()&&(G="USER_INTERFACE_THEME_DARK");return M?G:yJy()||G};
_.LMe=function(){return!_.w("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.ia=function(){return _.LMe()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.g2=function(){var M=_.El();return _.LMe()&&!M.getFlag(165)&&!M.getFlag(174)};
yJy=function(){var M=M===void 0?window.location.href:M;if(_.w("kevlar_disable_theme_param"))return null;var q=_.ij(M);if(_.YGs(q))return"USER_INTERFACE_THEME_DARK";try{var G=_.nD(M).theme;return WMy.get(G)||null}catch(K){}return null};
_.YGs=function(M){return _.w("enable_dark_theme_only_on_shorts")?!(M==null||!M.startsWith("/shorts/")):!1};
_.vhF=function(M,q,G,K,n){q=q===void 0?!1:q;G=G===void 0?!1:G;var E=_.R9("INNERTUBE_CONTEXT");if(!E)return _.T6(Error("ag")),{};E=(0,_.xP.unsafeClone)(E);_.w("web_no_tracking_params_in_shell_killswitch")||delete E.clickTracking;E.client||(E.client={});var p=E.client;p.clientName==="MWEB"&&p.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(p.clientFormFactor=_.R9("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");p.screenWidthPoints=window.innerWidth;p.screenHeightPoints=window.innerHeight;p.screenPixelDensity=
Math.round(window.devicePixelRatio||1);p.screenDensityFloat=window.devicePixelRatio||1;p.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());p.userInterfaceTheme=_.cE();if(!q){var y=_.Z7w();y&&(p.connectionType=y);_.w("web_log_effective_connection_type")&&(y=Ugs())&&(E.client.effectiveConnectionType=y)}var Y;if(_.w("web_log_memory_total_kbytes")&&((Y=_.Kj.navigator)==null?0:Y.deviceMemory)){var A;Y=(A=_.Kj.navigator)==null?void 0:A.deviceMemory;E.client.memoryTotalKbytes=""+Y*1E6}q&&K&&!_.w("web_it_context_set_original_url_ks")&&
(p.originalUrl=AJ4(_.Kj.location.href,K).toString());_.w("web_gcf_hashes_innertube")&&(y=fSF())&&(A=y.coldConfigData,Y=y.coldHashData,y=y.hotHashData,E.client.configInfo=E.client.configInfo||{},A&&(E.client.configInfo.coldConfigData=A),Y&&(E.client.configInfo.coldHashData=Y),y&&(E.client.configInfo.hotHashData=y));A=_.nD(_.Kj.location.href);!_.w("web_populate_internal_geo_killswitch")&&A.internalcountrycode&&(p.internalGeo=A.internalcountrycode);!_.w("web_populate_client_screen_killswitch")&&n&&(p.clientScreen=
n);p.clientName==="MWEB"||p.clientName==="WEB"?(p.mainAppWebInfo||(p.mainAppWebInfo={}),p.mainAppWebInfo.graftUrl=K||_.Kj.location.href,_.w("kevlar_woffle")&&_.BE.instance&&(K=_.BE.instance,p.mainAppWebInfo.pwaInstallabilityStatus=!K.appInstalledEventFired&&K.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),p.mainAppWebInfo.webDisplayMode=zH4(),p.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):p.clientName==="TVHTML5"&&
(!_.w("web_lr_app_quality_killswitch")&&(K=_.R9("LIVING_ROOM_APP_QUALITY"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{appQuality:K})),K=_.R9("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(p.tvAppInfo=Object.assign(p.tvAppInfo||{},{certificationScope:K}));!_.w("web_populate_time_zone_itc_killswitch")&&(K=uIi())&&(p.timeZone=K);(K=MEe())?p.experimentsToken=K:delete p.experimentsToken;p=qli();K=_.d4i();K=(0,_.xP.getValues)(K.tokenJars);E.request=Object.assign({},E.request,{internalExperimentFlags:p,consistencyTokenJars:K});
!_.w("web_prequest_context_killswitch")&&(p=_.R9("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(E.request.externalPrequestContext=p);K=_.El();p=K.getFlag(58);K=K.get("gsml","");E.user=Object.assign({},E.user);p&&(E.user.enableSafetyMode=p);K&&(E.user.lockedSafetyMode=!0);_.w("warm_op_csn_cleanup")?G&&(q=_.Cx())&&(E.clientScreenNonce=q):!q&&(q=_.Cx())&&(E.clientScreenNonce=q);M&&(E.clickTracking={clickTrackingParams:M});if(M=_.sx("yt.mdx.remote.remoteClient_"))E.remoteClient=M;_.Qr.getInstance().setLocationOnInnerTubeContext(E);
try{var v=Yle(),h=v.bid;delete v.bid;E.adSignalsInfo={params:[],bid:h};for(var t=_.k(Object.entries(v)),O=t.next();!O.done;O=t.next()){var a=_.k(O.value),g=a.next().value,D=a.next().value;v=g;h=D;M=void 0;(M=E.adSignalsInfo.params)==null||M.push({key:v,value:""+h})}var J,Z;if(((J=E.client)==null?void 0:J.clientName)==="TVHTML5"||((Z=E.client)==null?void 0:Z.clientName)==="TVHTML5_UNPLUGGED"){var V=_.R9("INNERTUBE_CONTEXT");V.adSignalsInfo&&(E.adSignalsInfo.advertisingId=V.adSignalsInfo.advertisingId,
E.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",E.adSignalsInfo.limitAdTracking=V.adSignalsInfo.limitAdTracking)}}catch(S){_.T6(S)}return E};
_.Ir=function(){return{isShellLoad:_.fX("IS_SHELL_LOAD",!1)}};
tB$=function(){navigator.serviceWorker.getRegistrations().then(function(M){M.forEach(hl4)})};
hl4=function(M){M&&_.OJs(w9Y,M.scope)};
_.OJs=function(M,q){q={scope:q||_.wP("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Iv(M),q)};
Dx=function(M,q,G,K){if(q&&q.serializedYpcCujLoggingParams){if(G){var n={};n.transactionErrorType=G;K&&(n.errorMessage=K);q.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:n}}}G={};G.ypcCujContext=q;M=_.Mr("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",M,G);_.qr().logFlowEvent(M,"FLOW_TYPE_YPC_ACQUISITION")}};
_.C9H=function(M,q,G,K){var n={};n.serializedTransactionFlowLoggingParams=q;G&&(n.errorType=G);K&&(n.errorMessage=K);_.ml(M,n);_.S1()};
_.aHw=function(M){M&&_.C9H("transactionFlowStarted",M)};
_.ohF=function(M){M&&_.C9H("transactionFlowCancelled",M)};
_.ua=function(M,q,G){q&&_.C9H("transactionFlowFailed",q,M,G)};
lHi=function(M){var q=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");q&&(q.inert=M)};
_.JK=function(){this.megabloxUrl_=null};
_.Zx=function(M){try{var q=X9w==null?void 0:X9w.composedPath(M)}catch(G){q=M.composedPath?M.composedPath():[]}return q&&q.length>0?q:M.composedPath?M.composedPath():[]};
_.ba=function(M){return _.Zx(M)[0]};
Up=function(M){return M instanceof ShadowRoot?ShadowRoot:M instanceof DocumentFragment?DocumentFragment:M instanceof Document?Document:HTMLElement};
P9w=function(M){if(M instanceof Element)return Element.prototype;if(M instanceof DocumentFragment)return DocumentFragment.prototype;throw Error("eg`"+M);};
iJy=function(M,q){return _.w("sunnydom_native_scoped_query_selectors")?P9w(M).querySelector.call(M,q):Up(M).prototype.querySelector.call(M,q)};
cJy=function(M,q){return _.w("sunnydom_native_scoped_query_selectors")?P9w(M).querySelectorAll.call(M,q):Up(M).prototype.querySelectorAll.call(M,q)};
ghy=function(M){var q,G,K;return(K=(G=(q=M.parentElement)!=null?q:M.__shady_native_parentElement)!=null?G:M.__shady_parentElement)!=null?K:null};
BXj=function(M){var q,G,K;return(K=(G=(q=M.parentNode)!=null?q:M.__shady_native_parentNode)!=null?G:M.__shady_parentNode)!=null?K:null};
QRu=function(M){var q,G,K;return(K=(G=(q=M.nextSibling)!=null?q:M.__shady_native_nextSibling)!=null?G:M.__shady_nextSibling)!=null?K:null};
IH4=function(M){var q,G,K;return(K=(G=(q=M.previousSibling)!=null?q:M.__shady_native_previousSibling)!=null?G:M.__shady_previousSibling)!=null?K:null};
D44=function(M){var q,G,K;return(K=(G=(q=M.nextElementSibling)!=null?q:M.__shady_native_nextElementSibling)!=null?G:M.__shady_nextElementSibling)!=null?K:null};
uMy=function(M){var q,G,K;return(K=(G=(q=M.previousElementSibling)!=null?q:M.__shady_native_previousElementSibling)!=null?G:M.__shady_previousElementSibling)!=null?K:null};
JJF=function(M){var q,G,K;return new Set([].concat(_.Ui((q=M.children)!=null?q:[]),_.Ui((G=M.__shady_native_children)!=null?G:[]),_.Ui((K=M.__shady_children)!=null?K:[])))};
ZJD=function(M){var q,G,K;return new Set([].concat(_.Ui((q=M.childNodes)!=null?q:[]),_.Ui((G=M.__shady_native_childNodes)!=null?G:[]),_.Ui((K=M.__shady_childNodes)!=null?K:[])))};
_.xU=function(M){if(!(M instanceof Element))return null;M=M.classList?Array.from(M.classList):void 0;if(!M)return null;var q=M.indexOf("style-scope");return q>-1&&q+1<M.length?M[q+1]:null};
zu=function(M){if(!(M instanceof HTMLElement))return null;var q=M&&(M.$$||M.polymerController)?M.tagName.toLowerCase():null;return q?q:_.xU(M)};
bJY=function(M,q){return _.w("sunnydom_native_scoped_query_selectors")?M+".style-scope."+q:M.replace(/[^a-z]*[^\s]+/g,function(G){return G+".style-scope."+q})};
U4H=function(M,q){return q?M.split(",").map(function(G){return bJY(G.trim(),q)}).join(", "):M};
_.ma=function(M){var q,G,K,n;return(n=(K=(G=(q=M.root)!=null?q:M.shadowRoot)!=null?G:M.__shady_native_shadowRoot)!=null?K:M.__shady_shadowRoot)!=null?n:M};
x4Y=function(M){var q,G,K;return(K=(G=(q=M.__shady_parentNode)!=null?q:M.__shady_native_parentNode)!=null?G:M.parentNode)!=null?K:null};
zl$=function(M){var q,G;return(G=(q=BXj(M))!=null?q:M.host)!=null?G:null};
m4y=function(M){for(;M&&!(M instanceof HTMLElement);)M=zl$(M);return M};
SGF=function(M){var q=m4y(M);return M===q?_.xU(M):q?zu(q):null};
TXu=function(M){return(M=m4y(M))?zu(M):null};
rJF=function(M){if(M instanceof Comment)return!1;if(M instanceof Text){var q,G;if(((G=(q=M.textContent)==null?void 0:q.trim())!=null?G:"")==="")return!1}return!0};
Sl=function(M,q,G){var K=q(M);for(G=G===void 0?TXu(M):G;K&&(SGF(K)!==G||!rJF(K));)M=K,K=q(M);return K};
jRy=function(M,q,G){if(!q)return null;M=TXu(M);return SGF(q)===M&&rJF(q)?q:Sl(q,G,M)};
VBY=function(M){return Sl(M,x4Y,_.xU(M))};
Rl4=function(M){return Sl(M,D44)};
fHF=function(M){return Sl(M,QRu)};
FMe=function(M){return Sl(M,uMy)};
HJy=function(M){return Sl(M,IH4)};
elY=function(M){return jRy(M,M.firstChild||null,QRu)};
$4D=function(M){var q,G,K;var n=(K=(G=(q=M.firstElementChild)!=null?q:M.__shady_native_firstElementChild)!=null?G:M.__shady_firstElementChild)!=null?K:null;return jRy(M,n,D44)};
s_s=function(M){var q,G,K;var n=(K=(G=(q=M.lastChild)!=null?q:M.__shady_native_lastChild)!=null?G:M.__shady_lastChild)!=null?K:null;return jRy(M,n,IH4)};
Mew=function(M){var q,G,K;var n=(K=(G=(q=M.lastElementChild)!=null?q:M.__shady_native_lastElementChild)!=null?G:M.__shady_lastElementChild)!=null?K:null;return jRy(M,n,uMy)};
qfy=function(M){var q=TXu(M);return Array.from(ZJD(M)).filter(function(G){return SGF(G)===q})};
G5i=function(M){var q=zu(M);return Array.from(JJF(M)).filter(function(G){return _.xU(G)===q})};
KNj=function(M){if(!M)return null;var q=_.xU(M);if(!q){var G;return(G=Node.prototype.getRootNode)==null?void 0:G.call(M)}q=q.toUpperCase();for(M=ghy(M);M&&M.tagName!==q;)M=ghy(M);return M?_.ma(M):null};
_.Tu=function(M,q,G){if(M instanceof HTMLElement&&_.xU(M)===G){var K=Array.from(M.classList).indexOf("style-scope");if(K===-1)M.classList.add("style-scope"),M.classList.add(q);else if(!(K+1>=M.classList.length)){K=M.classList[K+1];var n,E;M==null||(n=M.classList)==null||(E=n.replace)==null||E.call(n,K,q)}}if(M instanceof HTMLElement||M instanceof DocumentFragment)for(n=_.k(JJF(M)),E=n.next();!E.done;E=n.next())_.Tu(E.value,q,G);return M};
r2=function(M,q){if(M instanceof HTMLElement&&_.xU(M)===q){var G=Array.from(M.classList).indexOf("style-scope");G===-1||G+1>=M.classList.length||M.classList.remove("style-scope",M.classList[G+1])}if(M instanceof HTMLElement||M instanceof DocumentFragment){G=_.k(M.children);for(var K=G.next();!K.done;K=G.next())r2(K.value,q)}return M};
_.nKD=function(M,q){return Up(M).prototype.appendChild.call(M,q)};
EKy=function(M,q){if(M===q)return!0;M=ZJD(M);return Array.from(M).some(function(G){return EKy(G,q)})};
_.f_=function(M,q){if(M instanceof Rr)return M;(q==null?0:q.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(M,"ownerDocument")&&Object.defineProperty(M,"ownerDocument",{get:function(){return window.document}});
return new Rr(M)};
k5y=function(){var M=Rr.prototype,q=[].concat(_.Ui(NE$?[]:["getRootNode"]),["setAttribute","removeAttribute"]);q=_.k(q);for(var G=q.next(),K={};!G.done;K={method$jscomp$53:void 0},G=q.next())K.method$jscomp$53=G.value,M[K.method$jscomp$53]=function(n){return function(){return this.host[n.method$jscomp$53].apply(this.host,arguments)}}(K)};
yZi=function(){var M=Rr.prototype,q=[].concat(_.Ui(NE$?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Ui(p_$?[]:["querySelector","querySelectorAll"]));q=_.k(q);for(var G=q.next(),K={};!G.done;K={method$jscomp$54:void 0},G=q.next())K.method$jscomp$54=G.value,M[K.method$jscomp$54]=function(n){return function(){return this.root[n.method$jscomp$54].apply(this.root,arguments)}}(K)};
WNw=function(){var M=Rr.prototype,q=[].concat(_.Ui(LNy?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Ui(Yf4?[]:["parentNode"]));q=_.k(q);for(var G=q.next(),K={};!G.done;K={prop$jscomp$67:void 0},G=q.next())K.prop$jscomp$67=G.value,Object.defineProperty(M,K.prop$jscomp$67,{get:function(n){return function(){return this.host[n.prop$jscomp$67]}}(K),
configurable:!0})};
vKF=function(){var M=Rr.prototype,q=["activeElement"].concat(_.Ui(LNy?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Ui(AZy?[]:["children"]),_.Ui(diw?[]:["lastChild"]));q=_.k(q);for(var G=q.next(),K={};!G.done;K={prop$jscomp$68:void 0},G=q.next())K.prop$jscomp$68=G.value,Object.defineProperty(M,K.prop$jscomp$68,{get:function(n){return function(){return this.root[n.prop$jscomp$68]}}(K),
configurable:!0})};
hPY=function(){for(var M=Rr.prototype,q=_.k(["innerHTML","textContent"]),G=q.next(),K={};!G.done;K={prop$jscomp$69:void 0},G=q.next())K.prop$jscomp$69=G.value,Object.defineProperty(M,K.prop$jscomp$69,{get:function(n){return function(){return this.root[n.prop$jscomp$69]}}(K),
set:function(n){return function(E){this.root[n.prop$jscomp$69]=E}}(K),
configurable:!0})};
tey=function(M){var q=Rr.prototype;M=_.k(Object.entries(M));for(var G=M.next(),K={};!G.done;K={fn$jscomp$404:void 0},G=M.next()){var n=_.k(G.value);G=n.next().value;n=n.next().value;K.fn$jscomp$404=n;q[G]=function(E){return function(){return E.fn$jscomp$404.apply(null,[this.host.node||this.host].concat(_.Ui(arguments)))}}(K)}};
w_u=function(){for(var M=Rr.prototype,q=_.k(Object.entries(O4y)),G=q.next(),K={};!G.done;K={fn$jscomp$405:void 0},G=q.next()){var n=_.k(G.value);G=n.next().value;n=n.next().value;K.fn$jscomp$405=n;Object.defineProperty(M,G,{get:function(E){return function(){return E.fn$jscomp$405.apply(null,[this.host.node||this.host].concat(_.Ui(arguments)))}}(K),
configurable:!0})}};
_.Fw=function(M){return M instanceof CVy||M instanceof Document?M:new CVy(M)};
aW$=function(){for(var M=CVy.prototype,q=_.k("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),G=q.next(),K={};!G.done;K={method$jscomp$55:void 0},G=q.next())K.method$jscomp$55=G.value,M[K.method$jscomp$55]=function(n){return function(){return HTMLElement.prototype[n.method$jscomp$55].call.apply(HTMLElement.prototype[n.method$jscomp$55],[this.node].concat(_.Ui(arguments)))}}(K)};
oKD=function(){for(var M=CVy.prototype,q=_.k("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),G=q.next(),K={};!G.done;K={prop$jscomp$70:void 0},G=q.next())K.prop$jscomp$70=G.value,Object.defineProperty(M,K.prop$jscomp$70,{get:function(n){return function(){var E;return(E=this.node["__shady_native_"+n.prop$jscomp$70])!=null?E:this.node[n.prop$jscomp$70]}}(K),
configurable:!0})};
_.HE=function(M,q,G){G===void 0&&(G=!M.classList.contains(q));G?M.classList.add(q):M.classList.remove(q)};
_.el=function(M,q,G){G===void 0&&(G=!M.hasAttribute(q));if(q==="class")throw Error("fg");G?_.Fw(M).setAttribute(q,""):_.Fw(M).removeAttribute(q)};
lWj=function(M){return(M.localName!=="slot"?[]:(0,_.$U)(M).assignedNodes({flatten:!0})).filter(function(q){return q.nodeType===Node.ELEMENT_NODE})};
_.X_y=function(M){return(M=_.f_(M).querySelector("slot"))&&M.localName==="slot"?lWj(M):[]};
_.sT=function(M,q){window.ShadyCSS&&window.ShadyCSS.styleSubtree(M,q)};
Ms=function(M,q){var G=q.bind(M);return function(K){G(K,K.detail)}};
_.qs=function(M,q){var G=PVe.get(M);G||(G=new WeakMap,PVe.set(M,G));if(G.has(q))return G.get(q);if(_.w("web_fi_listen_disable_bound_fn_helper")){var K=q.bind(M);M=function(n){K(n,n==null?void 0:n.detail)}}else M=Ms(M,q);
G.set(q,M);return M};
gKj=function(M,q){i4w(M);M.created[cZy].push(q)};
i4w=function(M){if(!M.created||!M.created[cZy]){var q=M.created,G=q?[q]:[];M.created=function(){for(var K=_.k(G),n=K.next();!n.done;n=K.next())n.value.apply(this)};
M.created[cZy]=G}};
BEF=function(M){return function(){var q=_.rW.apply(0,arguments);return function(G,K,n){M.apply(null,_.Ui(q))(G,K,n)}}};
Q_F=function(){return function(){var M=_.rW.apply(0,arguments);return function(q,G,K){ppy.apply(null,_.Ui(M))(q,G,K)}}};
_.P=function(M){return Q_F()(M)};
_.c=function(){return BEF(WED).apply(null,_.Ui(_.rW.apply(0,arguments)))};
_.GQ=function(M){return _.w("pbcm_fi_listen_decorators")?IWF(M):BEF(LE$)(M)};
IWF=function(M){return function(q,G){gKj(q,function(){var K=this[G],n=_.w("web_fi_listen_disable_bound_fn_helper")?function(E){K(E,E.detail)}.bind(this):Ms(this,K);
DiH.has(M)?r_(this.hostElement,M,n):this.hostElement.addEventListener(M,n)})}};
_.KT=function(){return BEF(YBD).apply(null,_.Ui(_.rW.apply(0,arguments)))};
_.B=function(M){M=M===void 0?{}:M;return BEF(ycs)(M)};
_.nT=function(M){if(M.hostElement&&M!==M.hostElement){var q=_.YD(M.hostElement);q=M.renderIdom?q:q.shadowRoot}q||(M=M.root,q=M instanceof Node?_.YD(M):null);return q};
_.ET=function(M){return uK4?JZ$(M):function(q,G){Object.defineProperty(q,G,{get:function(){var K;return(K=_.nT(this))==null?void 0:K.querySelector(M)},
enumerable:!0,configurable:!0})}};
JZ$=function(M){return function(q,G){Object.defineProperty(q,G,{get:function(){var K,n=(K=_.f_(this.hostElement))==null?void 0:K.querySelector(M);if(n)return n;var E;return(E=_.nT(this))==null?void 0:E.querySelector(M)},
enumerable:!0,configurable:!0})}};
_.Ns=function(M){return uK4?Z4H(M):function(q,G){Object.defineProperty(q,G,{get:function(){var K;return(K=_.nT(this))==null?void 0:K.querySelectorAll(M)},
enumerable:!0,configurable:!0})}};
Z4H=function(M){return function(q,G){Object.defineProperty(q,G,{get:function(){var K,n=(K=_.f_(this.hostElement))==null?void 0:K.querySelectorAll(M);if(n==null?0:n.length)return n;var E;return(E=_.nT(this))==null?void 0:E.querySelectorAll(M)},
enumerable:!0,configurable:!0})}};
b4j=function(M){return function(q){if(![_.WG,_.Q].includes(Object.getPrototypeOf(q.prototype).constructor))throw Error("gg");MWe(Object.assign({},typeof M!=="string"?M:{is:M,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(q)}};
_.pT=function(){var M=M===void 0?{}:M;return function(q){if(![Ah,_.kA].includes(Object.getPrototypeOf(q.prototype).constructor))throw Error("hg");qB4(Object.assign({},M,{disableInheritanceCheck:!0}))(q)}};
xiu=function(M,q){Uie[M]!=null||(Uie[M]=new Set);Uie[M].add(q)};
_.yO=function(){var M=_.KT.apply(null,_.Ui(_.rW.apply(0,arguments)));return function(q,G){xiu(q.is,G);M(q,G)}};
W4=function(M,q,G){if(LT(M)&&!zPw.has(q)){q=q.replace(/^JSC\$[\d]+_/,"");q=q.replace(/\.\d+(\.|$)/g,function(E,p){return".#"+p});
YA[M]!=null||(YA[M]={});var K,n;(K=YA[M])[n=q]!=null||(K[n]=new Set);YA[M][q].has(G)||(YA[M][q].add(G),_.ml("polymerPropertyAccessEvent",{componentName:M,propertyName:q,accessType:G}))}};
miF=function(){return _.w("polymer_property_access_logging_debug")||_.w("polymer_enable_property_access_logging")};
LT=function(M){if(_.w("polymer_property_access_logging_debug"))return!0;if(!_.w("polymer_enable_property_access_logging"))return!1;SfY||(SfY=Date.now());return(gt(M)+SfY)%100<_.tL("polymer_property_access_logging_percent")};
TEs=function(M,q){return LT(q)&&M.hostElement.loggingStatus?new Proxy(M,{get:function(G,K,n){if(G.hostElement.loggingStatus.bypassProxyController)return G[K];G.hostElement.loggingStatus.isExternalGet=!0;var E=G[K];G.hostElement.loggingStatus.isExternalGet=!1;if(E instanceof Function)return function(){var p=_.rW.apply(0,arguments);try{return G.hostElement.loggingStatus.currentExternalCall=K,W4(q,K,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),E.apply(this===n?G:this,p)}finally{G.hostElement.loggingStatus.currentExternalCall=
void 0}};
W4(q,K,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return E},
set:function(G,K,n){if(G.hostElement.loggingStatus.bypassProxyController)return G[K]=n,!0;G.hostElement.loggingStatus.isRendererStamper?W4(q,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):G.hostElement.loggingStatus.isDeclarativeExternal||W4(q,K,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{G.hostElement.loggingStatus.currentExternalSet=K,G[K]=n}finally{G.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):M};
rZi=function(M,q){M&&M.loggingStatus&&!M.loggingStatus.isDeclarativeExternal&&!M.loggingStatus.isExternalGet&&M.loggingStatus.currentExternalSet!==q&&W4(M.tagName.toLowerCase(),q,"PROPERTY_ACCESS_GET_INTERNAL")};
A_=function(M,q,G){M&&(G||M.loggingStatus&&!M.loggingStatus.isInitializing&&!M.loggingStatus.isDefiningPropertyAccessor&&M.loggingStatus.currentExternalSet!==q)&&W4(M.tagName.toLowerCase(),q,"PROPERTY_ACCESS_SET_INTERNAL")};
j_w=function(){return{_definePropertyAccessor:function(M,q){var G=this,K=G.hostElement.loggingStatus;K&&(K.isDefiningPropertyAccessor=!0);var n=G[M];n!==void 0&&(G.__data?G._setPendingProperty(M,n):(G.__dataProto!=null||(G.__dataProto={}),G.__dataProto[M]=n));K&&(K.isDefiningPropertyAccessor=!1);Object.defineProperty(this,M,{get:function(){rZi(G.hostElement,M);return this.__data[M]},
set:function(E){q||this._setPendingProperty(M,E,!0)&&this._invalidateProperties()}})},
created:function(){var M=this._setPendingProperty.bind(this);this._setPendingProperty=function(q,G,K){A_(this.hostElement,q);return M.apply(this,[q,G,K])}}}};
Vee=function(M){miF()&&_.P(d4.prototype)(M.prototype,"__templateBindingLoggingBehavior")};
RP4=function(M,q){if(q.resolvedFactories.length!==M.resolvedFactories.length)return!0;q=_.k(q.resolvedFactories.entries());for(var G=q.next();!G.done;G=q.next()){var K=_.k(G.value);G=K.next().value;K=K.next().value;if(K.providerClass){if(K.providerClass!==M.resolvedFactories[G].providerClass)return!0}else if(K.providerValue){if(K.providerValue!==M.resolvedFactories[G].providerValue)return!0}else if(K.factory!==M.resolvedFactories[G].factory)return!0}return!1};
fWu=function(M,q){M=_.k(M);for(var G=M.next();!G.done;G=M.next())if(G=G.value,G.constructor===Array)fWu(G,q);else{var K=q;K.has(G)||(G.inject&&K.add(G),G.behaviors&&fWu(G.behaviors,K))}};
v4=function(M,q){var G=M[q];M[q]=function(){var K=_.rW.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(G)return G.apply(this,K)}};
$iH=function(){_.h_.Class=function(G,K){G=FNH(G,K);v4(G.prototype,"created");return G};
v4(t_.prototype,"_initializeProperties");v4(_.OT.prototype,"_initializeProperties");if(H4j)v4(ePD,"created");else{var M=function(){v4(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))M();else{var q=customElements.define;customElements.define=function(G,K,n){q.call(customElements,G,K,n);G==="tp-yt-iron-list"&&(M(),customElements.define=q)}}}};
MQe=function(M,q){M.prototype.behaviors=M.prototype.behaviors||[];M.prototype.behaviors.unshift(sK4.InjectBehavior);M.prototype.provide=q};
_.aO=function(M){return function(q){if(!M.disableElementRegistration){M.noInjection||MQe(q,M.providers);var G=q.prototype;G.__templateHelpers||ppy(w4.prototype)(G,"__templateHelpers");G=M.is;qPD||(qPD=Date.now());(gt(G)+qPD)%100<_.tL("polymer_log_prop_change_observer_percent")&&ppy(CT.prototype)(q.prototype,"__propertyObserverObserver");q.prototype.behaviors=q.prototype.behaviors||[];q.prototype.behaviors.unshift(_.G1y.YtHostElementBehavior);Vee(q);b4j({is:M.is,notifyObserversOnUndefined:M.notifyObserversOnUndefined!==
!1,fastInit:M.fastInit,template:M.template,disableEnforceFastDefaultValuesCheck:!0})(q)}}};
_.b=function(M){return _.aO({is:M.is,template:M.template,disableElementRegistration:M.disableElementRegistration,cssBuildOptOut:M.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
E64=function(M,q){if(KOy){M=new M;for(var G=_.k(Object.getOwnPropertyNames(M)),K=G.next();!K.done;K=G.next())K=K.value,q[K]=M[K];for(G=q;G&&G!==Object.prototype;G=Object.getPrototypeOf(G)){K=_.k(Object.getOwnPropertyNames(G));for(var n=K.next();!n.done;n=K.next())n=n.value,M.hasOwnProperty(n)||Object.defineProperty(M,n,n6i(q,n))}}else M.apply(q)};
n6i=function(M,q){return{get:function(){var G=M[q];return G instanceof Function?G.bind(M):G},
set:function(G){M[q]=G}}};
k14=function(M,q){for(var G=M._noAccessors,K=_.k(Object.getOwnPropertyNames(M)),n=K.next();!n.done;n=K.next())if(n=n.value,!NZ4.has(n))if(G)q[n]=M[n];else{var E=Object.getOwnPropertyDescriptor(M,n);E&&(E.configurable=!0,Object.defineProperty(q,n,E))}};
pPY=function(M,q,G){return function(K){if(G){var n=G();K.model=n}if(M[q])M[q](K,K.detail)}};
oO=function(M){var q=[];if(typeof M==="string")M.length>0&&q.push.apply(q,_.Ui(M.split(".")));else{M=_.k(M);for(var G=M.next();!G.done;G=M.next())G=G.value,typeof G==="string"?q.push.apply(q,_.Ui(G.split("."))):q.push(G)}return q};
yXu=function(M,q){if(q[q.length-1]!=="*"&&q[q.length-1]!=="splices"){for(var G=0;G<q.length;G++){if(!M)return;M=M[q[G]]}return M}};
LOw=function(M,q){if(M.length>q.length)return!1;for(var G=0;G<M.length;G++)if(M[G]!==q[G])return!1;return!0};
WOu=function(M,q,G){if(q.type==="compute"){var K=q.getter.bind(G);var n=q.args}else K=function(){return G[q.method.methodName].apply(G,_.Ui(_.rW.apply(0,arguments)))},n=q.method.args;
YPu(M,q.propertyKey,K,n,q.value)};
dj$=function(M,q){if(q.readOnly){var G=Object.getOwnPropertyDescriptor(M.model,q.propertyKey);Object.defineProperty(M.model,q.propertyKey,{get:G.get,set:function(){}});
M.model[AXH(q.propertyKey)]=G.set}};
v6y=function(M,q,G){if(G){var K=q.propertyKey,n=q.selector;q=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Ui(q.selectorArgs.map(function(E){return{type:"path",path:E}})));
YPu(M,K,function(E){var p=_.rW.apply(1,arguments);return n.apply(null,[G.getState()].concat(_.Ui(p)))},q)}};
tQ4=function(M,q,G){var K=_.Kx(q.propertyKey)+"-changed";h8u(M,function(n){var E={value:n.value,queueProperty:!0};n.path.split(".").length>1&&(E.path=n.path);G.dispatchEvent(new CustomEvent(K,{detail:E}))},[{type:"wildcard",
path:q.propertyKey}])};
OMY=function(M,q,G){h8u(M,function(){G[q.method.methodName].apply(G,_.Ui(_.rW.apply(0,arguments)))},q.method.args)};
AXH=function(M){return"_set"+(M.charAt(0).toUpperCase()+M.slice(1))};
wPF=function(){var M,q=S_(function(G){M=G},!1);
return[M,q]};
XP4=function(M){M=M.trim().replace(Cxu,",").replace(asy,"$1");var q=M[0];q==="-"&&(q=M[1]);if(q>="0"&&q<="9")return{type:"literal",value:Number(M)};if(q==="'"||q==='"')return{type:"literal",value:M.slice(1,-1)};if(q=M.match(o6e)){q=q[1];var G=lsj[q];if(G)return{type:G,path:M.slice(0,-(q.length+1))}}return{type:"path",path:M}};
g6w=function(M){var q=M.match(Pxy);if(q)return M={methodName:q[1],args:iMH},q[2].trim()&&(q=q[2].replace(cXy,"&comma;").split(","),M.args=q.map(XP4)),M};
BZi=function(M,q,G,K){K=K===void 0?!1:K;q=_.Kx(q);var n=Dy;n&&(G=n(G,q,"attribute",M));lg(M,G,q,K)};
lg=function(M,q,G,K){q=QKH(q,K===void 0?!1:K);q===void 0?M.removeAttribute(G):M.setAttribute(G,q)};
QKH=function(M,q){switch(typeof M){case "object":case "function":if(M instanceof Date)return M.toString();if(M){if((q===void 0?0:q)&&!_.w("polymer_reflect_objects_as_boolean_killswitch"))return M?"":void 0;q=window.trustedTypes?window.trustedTypes.isHTML(M)||window.trustedTypes.isScript(M)||window.trustedTypes.isScriptURL(M):void 0;if(q)return M;try{return JSON.stringify(M)}catch(G){_.j1(Error("Dg`"+M))}}break;case "boolean":return M?"":void 0;default:return M!==null&&M!==void 0?M.toString():void 0}};
Is$=function(M){if(M===void 0)throw Error("Eg");return M};
bM$=function(M,q,G,K){var n=Djs(K);if(n.length){K=G;var E="property";uB4.test(G)?E="attribute":G[G.length-1]==="$"&&(G=G.slice(0,-1),E="attribute");var p=JXy(n);p&&E==="attribute"&&(G==="class"&&M.hasAttribute("class")&&(p+=" "+M.getAttribute(G)),lg(M,p,G));E==="attribute"&&K==="disable-upgrade$"&&M.setAttribute("disable-upgrade","");M.localName==="input"&&K==="value"&&M.setAttribute("value","");M.removeAttribute(K);E==="property"&&(G=_.nx(G));q=Is$(q);ZMY(q,E,G,n);return!0}return G.slice(0,3)===
"on-"?(M.removeAttribute(G),(E=q).events!=null||(E.events=[]),q.events.push({name:G.slice(3),value:K}),!0):G==="id"?(q.id=K,!0):!1};
Djs=function(M){for(var q=[],G=0,K;(K=Uje.exec(M))!==null;){K.index>G&&q.push({type:"literal",value:M.slice(G,K.index)});var n=K[1][0];G=!!K[2];K=K[3].trim();if(n==="{")throw Error("Fg");(n=g6w(K))?q.push({type:"method",negate:G,signature:n}):q.push({type:"path",negate:G,path:K});G=Uje.lastIndex}G&&G<M.length&&(M=M.substring(G))&&q.push({type:"literal",value:M});return q};
JXy=function(M){for(var q="",G=0;G<M.length;G++){var K=M[G];K.type==="literal"&&(q+=K.value)}return q};
ZMY=function(M,q,G,K){M.bindings!=null||(M.bindings=[]);M.bindings.push({kind:q,target:G,parts:K})};
TZY=function(M,q,G){var K=!1;if(M.localName==="template"){K=G;var n=q.stripWhitespace;n=xjY(M,n===void 0?!1:n);var E=M.content.ownerDocument.createDocumentFragment();n.content=E;E.appendChild(M.content);K&&(K.templateInfo=n);K=!0}else M.localName==="slot"&&(q.hasInsertionPoint=!0);if(M.firstChild&&(n=G,M.localName!=="script"&&M.localName!=="style")){E=0;for(var p=M.firstChild;p;){var y=p;if(y.localName==="template"){var Y=y.getAttribute("is");if((p=Y==="dom-if")||Y==="dom-repeat"){y.removeAttribute("is");
Y=y.ownerDocument.createElement("ps-"+Y);y.parentNode.replaceChild(Y,y);Y.appendChild(y);var A=Array.from(y.attributes);A=_.k(A);for(var v=A.next();!v.done;v=A.next())v=v.value,p?z8s.has(v.name)&&lg(Y,v.value,v.name):mjj.has(v.name)?lg(Y,v.value,v.name):SPu.has(v.name),y.removeAttribute(v.name);p=Y}else p=y}if(p.nodeType===Node.TEXT_NODE){y=void 0;Y=M;for(A=p;((y=A.nextSibling)==null?void 0:y.nodeType)===Node.TEXT_NODE;)v=void 0,(v=A).textContent!=null||(v.textContent=""),A.nextSibling.textContent&&
(A.textContent+=A.nextSibling.textContent),Y.removeChild(A.nextSibling);if(q.stripWhitespace&&p.textContent&&!p.textContent.trim()){M.removeChild(p);p=p.nextSibling;continue}}TZY(p,q,{parentIndex:E,parentInfo:n});p.parentNode&&E++;p=p.nextSibling}}var h;if((h=M.hasAttributes)==null?0:h.call(M)){h=G=Is$(G);n=!1;E=Array.from(M.attributes);E=_.k(E);for(y=E.next();!y.done;y=E.next())y=y.value,n=bM$(M,h,y.name,y.value)||n;K=n||K}M.nodeType===Node.TEXT_NODE&&(h=Djs(M.textContent),h.length&&(M.textContent=
JXy(h)||" ",G=Is$(G),ZMY(G,"text","textContent",h),K=!0));G&&K&&(G.infoIndex=q.nodeInfoList.push(G)-1)};
xjY=function(M,q){q={nodeInfoList:[],stripWhitespace:(q===void 0?!1:q)||M.hasAttribute("strip-whitespace")};TZY(M.content,q);return q};
rXy=function(M){Object.assign(M,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
VQy=function(M,q,G){q.signalCache!=null||(q.signalCache={});var K=q.signalCache[G];if(!K){var n=G.split(".");K=!jKF(M,n[0]);if(n.length>1&&K){var E=M.getPathMutationSignal(n);K=function(){var p=j_(M.owner,function(){return M.getWithPath([n[0]])}),y,Y=(y=E())==null?void 0:y.value;
return{rootWasDefined:p!==void 0,value:Y}}}else K=function(){var p=M.getWithPath(n);
return{rootWasDefined:p!==void 0,value:p}};
q.signalCache[G]=K}return K()};
fse=function(M,q,G,K,n){q=q.parts.map(function(p,y){if(p.type==="literal"){G.partWasDefined!=null||(G.partWasDefined=[]);var Y;(Y=G.partWasDefined)[y]||(Y[y]=p.value!==void 0);return p.value}var A;if(p.type==="method"){var v,h=(v=(A=G.partWasDefined)==null?void 0:A[y])!=null?v:!1;h||(h=p.signature.args.every(function(a){return a.type==="literal"}));
var t=!1,O=!0;A=p.signature.args.map(function(a){if(a.type==="literal")return a.value;if(a.type!=="path")throw Error("Gg`"+a.type);var g=VQy(M,G,a.path);a=g.value;g=g.rootWasDefined;t||(t=g);O&&(O=g);return a});
h||(h=n===1?O:t);G.partWasDefined!=null||(G.partWasDefined={});G.partWasDefined[y]=h;if(!h)return;A=(y=VQy(M,G,p.signature.methodName).value)&&typeof y==="function"?y.apply(K,A):void 0}else v=VQy(M,G,p.path),A=v.value,G.partWasDefined!=null||(G.partWasDefined={}),(h=G.partWasDefined)[y]||(h[y]=A!==void 0||v.rootWasDefined);p.negate&&(A=!A);return A});
if(q.length===1){var E;return((E=G.partWasDefined)==null?0:E[0])?q[0]:R8y}return q.join("")};
FOj=function(M){return typeof M==="object"&&!!M&&"notifyPath"in M&&"canNotifyPath"in M};
HMj=function(M){return typeof M==="object"&&!!M&&"notifyPath"in M};
e8e=function(M){return"polymerController"in M};
$jy=function(M,q){q=""+oO(q)[0];if(FOj(M))return M.canNotifyPath(q);if(e8e(M)&&FOj(M.polymerController))return M.polymerController.canNotifyPath(q);if(HMj(M)){var G;return!((G=M.properties)==null||!G[q])}if(e8e(M)&&HMj(M.polymerController)){var K;return!((K=M.polymerController.properties)==null||!K[q])}return!1};
sd4=function(M,q,G){FOj(M)||HMj(M)?M.notifyPath(q,G):e8e(M)&&(FOj(M.polymerController)||HMj(M.polymerController))&&M.polymerController.notifyPath(q,G)};
qtF=function(M,q,G){if(G!==R8y){M.kind==="attribute"||M.target!=="textContent"&&(M.target!=="value"||q.localName!=="input"&&q.localName!=="textarea")||(G=G===void 0?"":G);var K,n=(K=MyH.Polymer)==null?void 0:K.sanitizeDOMValue;n&&(G=n(G,M.target,M.kind,q));if(M.kind==="attribute"){M=M.target;if(M==="class"||M==="name"||M==="slot")q=(0,_.$U)(q);lg(q,G,M)}else if(M=M.target,G!==q[M]||typeof G==="object")q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!0,W4(q.localName,M,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
q[M]=G,q.loggingStatus&&(q.loggingStatus.isDeclarativeExternal=!1)}};
Gxj=function(M,q,G,K){var n=q.parts[0];if(q.parts.length!==1||n.type!=="path"||!$jy(G,q.target))return!1;var E=_.k(n.path.split(".")),p=E.next().value,y=nW(E);if(jKF(M,p))return!1;K.signalCache!=null||(K.signalCache={});E=K.signalCache[n.path];var Y;E=(Y=E)==null?void 0:Y().value;if((E==null?void 0:E.path)!==void 0){K=oO(E.path);var A=oO(n.path);K=[q.target].concat(_.Ui(K.slice(A.length-1)));sd4(G,K,n.negate?!E.value:E.value);return!0}var v=Xs(M,p);var h=v.getChangeRecordSignal(y),t=!1;E=function(){if(!t){var a=
j_(M.owner,function(){return v.getWithPath([])});
t||(t=a!==void 0)}return{value:h(),rootWasDefined:t}};
K.signalCache[n.path]=E;K.partWasDefined!=null||(K.partWasDefined={});E=E();(A=K.partWasDefined)[0]||(A[0]=E.rootWasDefined);var O=j_(M.owner,function(){return v.getWithPath(y)});
K.partWasDefined[0]&&j_(M.owner,function(){return void qtF(q,G,n.negate?!O:O)});
return!0};
KVY=function(M,q,G,K,n,E){if(!Gxj(M,q,G,K)){var p=fse(M,q,K,n,E);j_(M.owner,function(){return void qtF(q,G,p)})}};
no$=function(M,q,G,K,n,E){G=_.k(G);for(var p=G.next(),y={};!p.done;y={infoIndex:void 0},p=G.next()){p=p.value;var Y=p.bindings;y.infoIndex=p.infoIndex;p=p.parentInfo;if(Y){Y=_.k(Y);for(var A=Y.next(),v={};!A.done;v={b$jscomp$256:void 0,bindingCtx$jscomp$4:void 0},A=Y.next()){v.b$jscomp$256=A.value;if(y.infoIndex===void 0)throw Error("Hg");v.bindingCtx$jscomp$4={};M.effect(function(h,t){return function(){n&&!n()||KVY(M,h.b$jscomp$256,q[t.infoIndex],h.bindingCtx$jscomp$4,K,E)}}(v,y))}}p&&no$(M,q,[p],
K,n,E)}};
EoD=function(M,q){M=(q.parentInfo?EoD(M,q.parentInfo):M).firstChild;for(var G=0;M;M=M.nextSibling)if(q.parentIndex===G++)return M;throw Error("Ig");};
kxi=function(M,q,G,K){M=document.importNode(M.content,!0);M.__noInsertionPoint=!(K==null?0:K.hasInsertionPoint);for(var n=Array(q.length),E={},p=0;p<q.length;p++){var y=q[p],Y=EoD(M,y);n[p]=Y;y.id&&(E[y.id]=Y);if(y.templateInfo){var A=Y.parentElement;A&&(A.templateInfo=y.templateInfo,A.parentSignalProxy=G,A.eventListenerHost=K.eventListenerHost,A.stampingEnabled=K.enabledSignal)}A=void 0;if((A=y.events)==null?0:A.length)for(A=0;A<y.events.length;A++){var v=y.events[A];N0y(K.eventListenerHost,Y,v.name,
v.value,K.getModel)}}no$(G,n,q,K.thisCtx,K.enabledSignal,K.methodInvocationRequirement);return{root:M,nodes:n,nodesById:E}};
yUF=function(M,q){M=M();var G;(G=pjy.ShadyCSS)==null||G.prepareTemplate(M,q);q=xjY(M);return{template:M,nodeInfoList:q.nodeInfoList,hasInsertionPoint:q.hasInsertionPoint}};
WV$=function(){LVi=!1;for(var M=P4.length,q=0;q<M;q++){var G=P4[q];if(G)try{G()}catch(K){Promise.resolve().then(function(){throw K;})}}P4.splice(0,M);
Yt$+=M};
hi$=function(M){LVi||(LVi=!0,AUs.textContent=(dwj++).toString());P4.push(M);return voY++};
_.g4=function(M,q,G){ig++;M=q?new tys(ig,M,q,G):new OUi(ig,M);c4.set(ig,M);return ig};
wju=function(M){(M=c4.get(M))&&M.cancel()};
azy=function(M,q){M=ClF.get(M);return M?(q=M.get(q))?q:null:null};
_.B4=function(M,q,G,K){var n=azy(M,q);if(!n){n=new ooH;var E=ClF.get(M);E||(E=new Map,ClF.set(M,E));E.set(q,n)}M=G.bind(M);n.run(M,K,void 0)};
_.lzF=function(M,q){var G;(G=azy(M,q))==null||G.cancel()};
XjH=function(M){var q;(q=azy(M,"doRender"))==null||q.flush()};
QO=function(M){var q;return(q=M.hostElement)!=null?q:M};
PlF=function(M){var q=M.indexOf(".");return q===-1?M:M.slice(0,q)};
iUj=function(M,q,G,K,n,E){E=(n=(K=E?PlF(q):q)?q:null)?M.get(n):M.__data[q];n&&E===void 0&&(E=G[q]);_.jP(M.hostElement,Vvj(K)+"-changed",{value:E,queueProperty:!0,path:n!=null?n:void 0},{bubbles:!1,composed:!1})};
cUF=function(M,q){M.__isReflecting=!0;BZi(M.hostElement,q,M.__data[q]);M.__isReflecting=!1};
goi=function(M){if(M._onIronRequestResizeNotifications){var q=M._onIronRequestResizeNotifications.bind(M);M._onIronRequestResizeNotifications=function(G){_.ba(G)!==M.hostElement&&q(G)}}M._ariaActiveAttributeChanged&&(M._ariaActiveAttributeChanged=M._ariaActiveAttributeChanged.bind(M.hostElement));
M._activeChanged&&(M._activeChanged=function(G){M.toggles?lg(M.hostElement,G?"true":"false",M.ariaActiveAttribute):M.hostElement.removeAttribute(M.ariaActiveAttribute);M._changedButtonState()});
M._asyncClick&&(M._asyncClick=function(){_.g4(function(){M.hostElement.click()},1)});
!M.keyEventTarget||M.keyEventTarget instanceof EventTarget||(M.keyEventTarget=QO(M.keyEventTarget));M._disabledChanged&&(M._disabledChanged=M._disabledChanged.bind(M.hostElement));M._observeItems&&(M._observeItems=function(G){var K=QO(G);return _.YD(K).observeNodes(function(n){M._updateItems();M._updateSelected();_.jP(K,"iron-items-changed",n,{bubbles:!1,cancelable:!1})})});
M._updateItems&&M._updateItems===_.IO._updateItems&&(M._updateItems=function(){var G=_.YD(M.hostElement).queryDistributedElements(M.selectable||"*");G=Array.prototype.filter.call(G,M._bindFilterItem);M._setItems(G)});
M._computeKeyboardClass&&(M._computeKeyboardClass=function(G){_.HE(M.hostElement,"keyboard-focus",G)});
M.ensureRipple&&(M.ensureRipple=function(G){if(M.hasRipple&&!M.hasRipple()){if(!M._createRipple)return;M._ripple=M._createRipple();M._ripple.noink=M.noink;var K=M._rippleContainer||M.hostElement;K&&_.f_(K).appendChild(M._ripple)}var n;if(G&&((n=M._ripple)==null?0:n.uiDownAction)){K=_.f_(M._rippleContainer||M.hostElement);var E;n=(E=G.composedPath())==null?void 0:E[0];K.contains(n)&&M._ripple.uiDownAction(G)}});
M._updateMultiselectable&&(M._updateMultiselectable=function(G){G?M.hostElement.setAttribute("aria-multiselectable","true"):M.hostElement.removeAttribute("aria-multiselectable")})};
B0Y=function(M,q,G){G=_.k(G);for(var K=G.next();!K.done;K=G.next())E64(K.value.constructor,M);E64(q.constructor,M)};
IzF=function(M,q){M=_.k(M);for(var G=M.next();!G.done;G=M.next())if(G=G.value,G.type==="signal"){var K=G.propertyKey;if(q.hasOwnProperty(K)&&q[K]!=null&&G.attributeType===Object){a:{K=q[K].constructor;for(var n=_.k(Qdy),E=n.next();!E.done;E=n.next())if(E=E.value,K===E){K=E;break a}K=Object}G.attributeType=K}}};
Dww=function(){};
udy=function(M){var q;return(q=M.hostElement)!=null?q:M};
JUu=function(){throw Error("Mg");};
ZU$=function(M,q){M.constructor.prototype.useSignals=!0;var G=new M.constructor;B0Y(G,M,q.behaviors);IzF(q.reactiveSchemas,G);G={};for(var K=_.k(q.reactiveSchemas),n=K.next();!n.done;n=K.next())n=n.value,n.type==="signal"&&(G[n.propertyKey]=n.attributeType);var E={copyPropertiesToProto:JUu,didRegister:!1,typesForSignals:G},p=["disable-upgrade"].concat(_.Ui(q.observedAttributes)),y=function(Y){Dp.call(this,M,q,E,Y)};
_.l(y,Dp);_.Yd.Object.defineProperties(y,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return p}}});
E.copyPropertiesToProto=function(){for(var Y=0;Y<q.behaviors.length;Y++)k14(q.behaviors[Y],y.prototype);k14(M,y.prototype)};
q.legacyOptimizations||E.copyPropertiesToProto();y.prototype.is=M.is;return y};
bUw=function(M,q){if(Object.getPrototypeOf(q.prototype).constructor!==_.Q)throw Error("Ng");q.prototype.is=M.is;return ZU$(q.prototype,M)};
UwF=function(M){return M.type==="compute"||M.type==="computeWithMethod"};
xws=function(M){for(var q=M.reactiveSchemas.filter(UwF),G=new Map,K=new Map,n=new Map,E=_.k(q),p=E.next();!p.done;p=E.next())p=p.value,G.set(p.propertyKey,p),K.set(p.propertyKey,[]),n.set(p.propertyKey,0);E=0;q=_.k(q);for(p=q.next();!p.done;p=q.next()){p=p.value;for(var y=_.k(p.type==="computeWithMethod"?p.method.args:p.args),Y=y.next();!Y.done;Y=y.next())Y=Y.value,Y.type!=="literal"&&(Y=Y.path.split(".")[0],K.has(Y)&&(K.get(Y).push(p.propertyKey),n.set(p.propertyKey,n.get(p.propertyKey)+1),E++))}p=
[].concat(_.Ui(K.keys())).filter(function(A){return n.get(A)===0});
for(q=[];p.length;)for(y=p.shift(),q.push(G.get(y)),y=_.k(K.get(y)),Y=y.next();!Y.done;Y=y.next())Y=Y.value,n.set(Y,n.get(Y)-1),E--,n.get(Y)===0&&p.push(Y);G=M.reactiveSchemas.filter(function(A){return!UwF(A)});
M.reactiveSchemas=[].concat(_.Ui(G),_.Ui(q))};
ziy=function(M,q){if(q.properties)for(var G=_.k(Object.entries(q.properties)),K=G.next();!K.done;K=G.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;M.properties[K]=typeof n==="function"?{type:n}:n}q.observers&&M.observers.push.apply(M.observers,_.Ui(q.observers));q.disabledPolySiReactions&&M.disabledPolySiReactions.push.apply(M.disabledPolySiReactions,_.Ui(q.disabledPolySiReactions))};
mw$=function(M,q){for(var G=q.length-1;G>=0;G--){var K=q[G];Array.isArray(K)?mw$(M,K):M.indexOf(K)<0&&M.unshift(K)}};
Stu=function(M,q){M.reactiveSchemas=M.reactiveSchemas.filter(function(G){return G.type==="observe"&&q.includes(G.method.methodName)||UwF(G)&&q.includes(G.propertyKey)?!1:!0})};
rUH=function(M,q){var G=q.prototype,K,n,E={is:M.is,reactiveSchemas:[],observedAttributes:[],behaviors:[sK4.InjectBehavior,w4.prototype],disableElementRegistration:M.disableElementRegistration,provide:(K=M.providers)!=null?K:[],reactivityMode:M.reactivityMode,signalProperties:(n=G.signalProperties)!=null?n:[]};"template"in q?E.templateGetter=function(){return q.template}:M.getTemplate&&(E.templateGetter=M.getTemplate);
G.behaviors&&mw$(E.behaviors,G.behaviors);T0w(E,q);return E};
T0w=function(M,q){for(var G=q.prototype,K={properties:{},observers:[],disabledPolySiReactions:[]},n=_.k(M.behaviors),E=n.next();!E.done;E=n.next())ziy(K,E.value);ziy(K,G);if(M.signalProperties)for(G=_.k(M.signalProperties),n=G.next();!n.done;n=G.next())delete K.properties[n.value];G=_.k(Object.entries(K.properties));for(n=G.next();!n.done;n=G.next()){E=_.k(n.value);n=E.next().value;E=E.next().value;var p=void 0;if((p=M.signalProperties)==null||!p.includes(n)){p=void 0;var y=M,Y=E.type;if(!Y)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{Y=Reflect.getMetadata("design:type",q,n);for(var A=_.k(jdH),v=A.next();!v.done;v=A.next())if(v=v.value,Y===v){Y=v;break a}Y=Object}else Y=String;E.computed||E.selector||(y.reactiveSchemas.push({type:"signal",propertyKey:n,value:E.value,attributeType:Y,readOnly:E.readOnly}),y.observedAttributes.push(_.Kx(n)));E.reflectToAttribute&&y.reactiveSchemas.push({type:"reflect",propertyKey:n});if(E.computed){Y=g6w(E.computed);if(!Y)throw Error("Og");y.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:n,method:Y,value:E.value})}E.observer&&y.reactiveSchemas.push({type:"observe",method:{methodName:E.observer,args:[{type:"path",path:n}]}});E.notify&&y.reactiveSchemas.push({type:"notify",propertyKey:n});E.selector&&y.reactiveSchemas.push({type:"redux",propertyKey:n,selector:E.selector,selectorArgs:(p=E.selectorArgs)!=null?p:[]})}}Vyw&&xws(M);q=_.k(K.observers);for(n=q.next();!n.done;n=q.next())G=M,n=n.value,(E=g6w(n))?G.reactiveSchemas.push({type:"observe",method:E}):console.log('Warning: unable to parse observe declaration: "'+
n+'"');Stu(M,K.disabledPolySiReactions)};
Riw=function(M,q){for(var G=0;G<q.length;G++){var K=q[G],n=void 0;(n=K).showHideApi!=null||(n.showHideApi={});n=void 0;!!M!==!((n=K.showHideApi)==null||!n.hideTemplateChildren)&&(K.nodeType===Node.TEXT_NODE?M?(K.showHideApi.polymerTextContent=K.textContent,K.textContent=""):(n=void 0,K.textContent=(n=K.showHideApi.polymerTextContent)!=null?n:null):K instanceof Element&&K.localName==="slot"?M?(K.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.$U)((0,_.$U)(K).parentNode).replaceChild(K.showHideApi.polymerReplaced,
K)):(n=K.showHideApi.polymerReplaced)&&(0,_.$U)((0,_.$U)(n).parentNode).replaceChild(K,n):K instanceof HTMLElement&&K.style&&(M?(K.showHideApi.polymerDisplay=K.style.display,K.style.display="none"):K.style.display=K.showHideApi.polymerDisplay));K.showHideApi.hideTemplateChildren=M;K.showHideChildren&&K.showHideChildren(M)}};
FVw=function(){if(!fzy){var M=document.createElement("style");M.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(M);fzy=!0}};
ug=function(){return _.w("disable_hidden_dom_if_using_stamper")};
HU4=function(M,q){var G=_.J_().getState();return q?M.apply(null,[G].concat(_.Ui(q))):M(G)};
szy=function(){if(eij)return eij;var M=_.k(_.lQ(0,void 0,"MB1Hb")),q=M.next().value;M.next();var G=M.next().value;_.J_().subscribe(function(){$wY(G)});
return eij=q};
$wY=function(M){MVi||(MVi=!0,Promise.resolve().then(function(){M(function(q){return q+1});
MVi=!1}))};
_.J_=function(){return q1w.getAppStore()};
GVD=function(M,q){return q1w.getSelectFn()(M,q)};
_.Zp=function(M){q1w.getDispatchFn()(M)};
KRy=function(M,q){var G={},K;for(K in M)G[K]=q(M[K],K);return G};
_.bg=function(M,q){return function(){var G;return(G=_.TL(M))!=null?G:q}};
_.UT=function(M,q){var G=Object.assign({},M),K;for(K in q)q.hasOwnProperty(K)&&(G[K]=_.bg(M[K],q[K]));return G};
n9e=function(M,q,G){M instanceof Element&&(G.debugName||(G.debugName="<"+M.tagName.toLowerCase()+(M.tagName.includes("-")?">":"."+M.className+">")),_.w("ytwiz_enable_debug_component_props")&&(M.debugProps||(M.debugProps=KRy(q,function(K){return function(){return K()}}))))};
NKH=function(M){var q;return E9F.value.traceAllComponents||((q=ze.stack[ze.stack.length-1])==null?void 0:q.name)!=="ytComponent"?Xgi("ytComponent",{},M):M()};
_.U=function(M,q){var G=function(K){return NKH(function(n){var E=kVi={};var p;if(((p=G)==null?0:p.idomCompat)&&K.renderedFromIdom){var y;p=typeof G.idomCompat==="object"?(y=G)==null?void 0:y.idomCompat.callbacks:{};p=_.k(pYy(K,p,G.debugName));y=p.next().value;p.next();p=p.next().value;var Y=yzF(M,y);E.privateValue=Y;kVi=void 0;n9e(Y,y,G);E={debugName:G.debugName};n&&E&&Object.assign(n.attributes,E);n=AhY(Y);n=Array.isArray(n)?n[0]:n;n[lf]||(n[lf]={});n[lf].updateSignalsFromIdomProps=p;LRs(y,Y);return Y}p=
KRy(K,Y1w);y=yzF(M,p);E.privateValue=y;kVi=void 0;n9e(y,p,G);E={debugName:G.debugName};n&&E&&Object.assign(n.attributes,E);LRs(p,y);return y})};
G.debugName=q===void 0?"":q;return G};
yzF=function(M,q){M=M(q);return gU(M)};
WRH=function(M,q){M[q]||(M=new _.bj("IDOM interop setter undefined. Key:",q),_.T6(M))};
Y1w=function(M,q){return q==="children"||q==="ref"||typeof M==="function"||M===void 0?M:function(){return _.TL(M)}};
pYy=function(M,q,G){var K={},n={},E={},p={},y;for(y in M){p={key$jscomp$953:p.key$jscomp$953};p.key$jscomp$953=y;var Y=M[p.key$jscomp$953];if(p.key$jscomp$953==="children"||p.key$jscomp$953==="ref")K[p.key$jscomp$953]=Y;else if(typeof Y==="function")p.key$jscomp$953 in q||Y.length>0?(E[p.key$jscomp$953]=Y,K[p.key$jscomp$953]=function(v){return function(){return E[v.key$jscomp$953].apply(E,_.Ui(_.rW.apply(0,arguments)))}}(p)):K[p.key$jscomp$953]=Y;
else if(!(M[p.key$jscomp$953]===void 0&&p.key$jscomp$953 in q)){var A=_.k(_.lQ(M[p.key$jscomp$953],{debugName:p.key$jscomp$953+":cwis:"+G},"rvrjQe"));Y=A.next().value;A=A.next().value;K[p.key$jscomp$953]=Y;n[p.key$jscomp$953]=A}}return[K,n,function(v){var h={},t;for(t in v)h={key$jscomp$954:h.key$jscomp$954,val$jscomp$122:void 0},h.key$jscomp$954=t,h.val$jscomp$122=v[h.key$jscomp$954],h.key$jscomp$954!=="children"&&h.key$jscomp$954!=="ref"&&(typeof h.val$jscomp$122==="function"?h.key$jscomp$954 in
q?E[h.key$jscomp$954]=h.val$jscomp$122:h.val$jscomp$122.length>0&&(E[h.key$jscomp$954]=h.val$jscomp$122,_.j1(new _.bj("Callback detected that was not set in the idomCompat callbacks map. Key:",h.key$jscomp$954))):h.key$jscomp$954 in q&&h.val$jscomp$122===void 0||(WRH(n,h.key$jscomp$954),Bm(function(O){return function(){n[O.key$jscomp$954](O.val$jscomp$122)}}(h))))}]};
v9s=function(M,q,G){var K=HuF(M.prototype,Azy,M.prototype.behaviors);K.prototype.is=q;K.prototype.localName=q;G&&dEs(K,G);return function(n){n&&(K.prototype.hostElement=n);var E=new K;E.root=E;E.hostElement=n;return E}};
dEs=function(M,q){var G;Object.defineProperty(M.prototype,"_template",{get:function(){G===void 0&&(G=q());return G},
set:function(K){G=K},
configurable:!0,enumerable:!0})};
CnD=function(M,q,G,K){function n(){if(!O){for(var a=new Set,g=_.k(v),D=g.next();!D.done;D=g.next()){D=D.value;for(var J=_.k(Object.getOwnPropertyNames(D)),Z=J.next();!Z.done;Z=J.next()){Z=Z.value;var V=void 0,S=(V=Object.getOwnPropertyDescriptor(D,Z))==null?void 0:V.value;S&&S instanceof Function&&!xA(Z)&&(!y[Z]||_.w("polymer_forward_method_killswitch"))&&a.add(Z)}}g=_.k(Object.entries(Object.getOwnPropertyDescriptors(M.prototype)));for(D=g.next();!D.done;D=g.next())J=_.k(D.value),D=J.next().value,
J=J.next().value,J.value instanceof Function&&!xA(D)&&a.add(D);O=a}return O}
hTy(M,q,K==null?void 0:K.providers);eWe(M.prototype,M,!0);var E=v9s(M,q,G),p,y=(p=M.prototype.properties)!=null?p:{},Y,A,v=(A=(Y=M.prototype.behaviors)==null?void 0:Y.flat(Infinity))!=null?A:[];G=_.k(v);for(p=G.next();!p.done;p=G.next())y=Object.assign({},p.value.properties,y);var h=[].concat(_.Ui(tVu),_.Ui(Object.keys(y).map(function(a){return _.Kx(a)}))),t=!1,O;
return{ctor:function(a,g){var D=E(a),J,Z;a=[].concat(_.Ui((J=K==null?void 0:K.allowedProps)!=null?J:[]),_.Ui((Z=K==null?void 0:K.allowedPropsFromBehaviors)!=null?Z:[]));D.allowedProps=a.length>0?a:void 0;J={};Z=_.k(h);for(a=Z.next();!a.done;a=Z.next())a=a.value,J[a]=_.nx(a);D.__dataAttributes=J;var V=D.ready.bind(D);D.ready=function(){g.beforeReady();V();if(LT(q)&&!t){var S=D.__templateInfo;if(S==null?0:S.hostProps){S=_.k(Object.keys(S.hostProps));for(var m=S.next();!m.done;m=S.next())W4(q,m.value,
"PROPERTY_ACCESS_GET_INTERNAL")}t=!0}};
D._overrideLegacyUndefined=!0;return D},
props:y,observedAttributes:h,getInitialMethods:n,getPropsToForwardBeforeRegister:function(){for(var a=[],g=new Set,D=_.k(Object.keys(y)),J=D.next();!J.done;J=D.next())J=J.value,a.push([J,y[J].readOnly]),g.add(J);D=n();J=_.k(Object.keys(Object.getOwnPropertyDescriptors(M.prototype)));for(var Z=J.next();!Z.done;Z=J.next())Z=Z.value,!ObF(Z)||D.has(Z)||g.has(Z)||(a.push([Z,!1]),g.add(Z));g=_.k(wYy);for(D=g.next();!D.done;D=g.next())a.push([D.value,!0]);return a},
getPropsToForwardBeforeReady:function(a){for(var g=[],D=_.k(Object.entries(a)),J=D.next();!J.done;J=D.next()){var Z=_.k(J.value);J=Z.next().value;Z=Z.next().value;if(ObF(J)&&!(Z instanceof Function)&&(g.push([J,!1]),LT(q))){var V=Z=void 0;(V=(Z=a)._createPropertyAccessor)==null||V.call(Z,J)}}return g},
shouldForwardProp:ObF,shouldLog:LT}};
hTy=function(M,q,G){MQe(M,G);M.prototype.behaviors.unshift(a1w);if(miF()){if(LT(q)){var K;(K=M.prototype).behaviors!=null||(K.behaviors=[]);M.prototype.behaviors.unshift(j_w())}Vee(M)}_.P(w4.prototype)(M.prototype,"__templateHelpers")};
xA=function(M){return o9Y.has(M)||M.startsWith("__compute__")};
ObF=function(M){return!xA(M)&&!M.startsWith("_")&&!M.endsWith("_")};
czH=function(M,q){function G(){var t=Y();t=_.k(t);for(var O=t.next();!O.done;O=t.next()){var a=_.k(O.value);O=a.next().value;a=a.next().value;l1s(h.prototype,O,a)}K=!0}
var K=!1,n=M.ctor,E=M.getInitialMethods,p=M.observedAttributes,y=M.getPropsToForwardBeforeReady,Y=M.getPropsToForwardBeforeRegister,A=M.shouldForwardProp,v=M.shouldLog,h=function(){var t=HTMLElement.call(this)||this;t.didForwardDynamicProps=!1;t.loggingStatus={};K||G();t.inst=n(t,{beforeReady:function(){t.didForwardDynamicProps||(t.forwardDynamicProps(),t.didForwardDynamicProps=!0)}});
t.controllerProxy=TEs(t.inst,q);t.forwardMethods();return t};
_.l(h,HTMLElement);h.prototype.forwardMethods=function(){for(var t=this,O=_.k(this.inst.getExtraMethodsToForward()),a=O.next(),g={};!a.done;g={method$jscomp$65:void 0},a=O.next()){var D=_.k(a.value);a=D.next().value;D=D.next().value;g.method$jscomp$65=D;this[a]=function(J){return function(){return J.method$jscomp$65.call.apply(J.method$jscomp$65,[t.inst].concat(_.Ui(_.rW.apply(0,arguments))))}}(g)}O=_.k(E());
for(g=O.next();!g.done;g=O.next())g=g.value,A(g)&&XYi(this,g),v(q)&&!xA(g)&&PnF(this.inst,g)};
h.prototype.forwardDynamicProps=function(){var t=y(this.inst);t=_.k(t);for(var O=t.next();!O.done;O=t.next()){var a=_.k(O.value);O=a.next().value;a=a.next().value;l1s(this,O,a);v(q)&&!xA(O)&&ibw(this.inst,O)}};
h.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
h.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
h.prototype.attributeChangedCallback=function(t,O,a){this.inst.attributeChangedCallbackWrapper(t,O,a)};
_.Yd.Object.defineProperties(h.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return q}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Yd.Object.defineProperties(h,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return p}}});
customElements.define(q,h)};
l1s=function(M,q,G){M.hasOwnProperty(q)||Object.defineProperty(M,q,{get:function(){var K,n=((K=M.is)!=null?K:M.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||W4(n,q,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,K=this.polymerController[q],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,K},
set:function(K){if(!G){var n,E=((n=M.is)!=null?n:M.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||W4(E,q,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=q,this.loggingStatus.bypassProxyController=!0,this.polymerController[q]!==K&&(n={},this.polymerController.setProperties((n[q]=K,n)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
XYi=function(M,q,G){var K=M.polymerController;M[q]=function(){var n=_.rW.apply(0,arguments);M.loggingStatus.currentExternalCall=q;M.loggingStatus.bypassProxyController=!0;var E,p=((E=M.is)!=null?E:M.tagName).toLowerCase();W4(p,q,"PROPERTY_ACCESS_CALL_EXTERNAL");var y;E=(y=G!=null?G:K[q])==null?void 0:y.call.apply(y,[K].concat(_.Ui(n)));M.loggingStatus.currentExternalCall=void 0;M.loggingStatus.bypassProxyController=!1;return E}};
PnF=function(M,q){var G=M.hostElement,K=M[q];M[q]=function(){var n=_.rW.apply(0,arguments);if(G.loggingStatus.currentExternalCall!==q){var E,p=((E=G.is)!=null?E:G.tagName).toLowerCase();W4(p,q,"PROPERTY_ACCESS_CALL_INTERNAL")}return K==null?void 0:K.apply(M,n)}};
ibw=function(M,q){var G=Object.getOwnPropertyDescriptor(M,q);G&&!G.get&&Object.defineProperty(M,q,{get:function(){rZi(M.hostElement,q);return G.value},
set:function(K){A_(M.hostElement,q);G.value=K}})};
g94=function(M){return _.w("poly_si_dom_repeat_detached_fix_killswitch")||M.tagName!=="PS-DOM-REPEAT"?M.tagName==="DOM-REPEAT":!0};
QzF=function(M,q){var G=BKy(M);M instanceof Element&&G.unshift(M);M=_.k(G.filter(g94));for(var K=M.next();!K.done;K=M.next()){var n=void 0;K=_.k((n=K.value.__instances)!=null?n:[]);for(n=K.next();!n.done;n=K.next())if(n=n.value,n.root){n=Array.from(n.root.children);n=_.k(n);for(var E=n.next();!E.done;E=n.next())G.push.apply(G,_.Ui(QzF(E.value,q)))}}return G.filter(function(p){return p.usePatchedLifecycles&&p.lifecycleIsConnected===q})};
BKy=function(M){var q=null;M instanceof Element?q=Element.prototype.querySelectorAll:M instanceof DocumentFragment&&(q=DocumentFragment.prototype.querySelectorAll);return q?Array.from(q.call(M,"*")):[]};
zQ=function(M){_.oY(function(){for(var q=_.k(QzF(M,!1)),G=q.next();!G.done;G=q.next()){G=G.value;G.lifecycleIsConnected=!0;try{var K=void 0,n=void 0,E=void 0,p=void 0;(K=(p=G.polymerController)!=null?p:G)==null||(E=(n=K).connectedCallback)==null||E.call(n)}catch(y){_.T6(y)}}})};
mX=function(M){_.oY(function(){for(var q=_.k(QzF(M,!0)),G=q.next();!G.done;G=q.next()){G=G.value;G.lifecycleIsConnected=!1;try{var K=void 0,n=void 0,E=void 0,p=void 0;(K=(p=G.polymerController)!=null?p:G)==null||(E=(n=K).disconnectedCallback)==null||E.call(n)}catch(y){_.T6(y)}}})};
UEe=function(){if(!I14){I14=!0;var M=[Node];So&&M.push(So.Wrapper);var q=Node.prototype.insertBefore,G=Node.prototype.removeChild;M=_.k(M);for(var K=M.next(),n={};!K.done;n={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},K=M.next())K=K.value,n.nativeInsertBefore=K.prototype.insertBefore,K.prototype.insertBefore=function(p){return function(y,Y){if(y instanceof DocumentFragment){var A=Array.from(y.children);y=p.nativeInsertBefore.call(this,y,Y);
if(this.isConnected&&p.nativeInsertBefore===q)for(Y=_.k(A),A=Y.next();!A.done;A=Y.next())zQ(A.value);return y}A=y instanceof Element&&y.isConnected;Y=p.nativeInsertBefore.call(this,y,Y);A&&mX(y);this.isConnected&&zQ(y);return Y}}(n),n.nativeAppendChild=K.prototype.appendChild,K.prototype.appendChild=function(p){return function(y){if(y instanceof DocumentFragment){var Y=Array.from(y.children);
y=p.nativeAppendChild.call(this,y);if(this.isConnected){Y=_.k(Y);for(var A=Y.next();!A.done;A=Y.next())zQ(A.value)}return y}Y=y instanceof Element&&y.isConnected;A=p.nativeAppendChild.call(this,y);Y&&mX(y);this.isConnected&&zQ(y);return A}}(n),n.nativeRemoveChild=K.prototype.removeChild,K.prototype.removeChild=function(p){return function(y){var Y=y instanceof Element&&y.isConnected,A=p.nativeRemoveChild.call(this,y);
Y&&G===p.nativeRemoveChild&&mX(y);return A}}(n),n.nativeReplaceChild=K.prototype.replaceChild,K.prototype.replaceChild=function(p){return function(y,Y){if(y instanceof DocumentFragment){var A=Array.from(y.children);
y=p.nativeReplaceChild.call(this,y,Y);if(this.isConnected)for(mX(Y),Y=_.k(A),A=Y.next();!A.done;A=Y.next())zQ(A.value);return y}A=y instanceof Element&&y.isConnected;var v=this.isConnected,h=p.nativeReplaceChild.call(this,y,Y);v&&mX(Y);A&&mX(y);v&&zQ(y);return h}}(n);
M=[Element];So&&M.push(So.Wrapper);M=_.k(M);K=M.next();for(n={};!K.done;n={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},K=M.next())K=K.value,K.prototype.before=DEH(K.prototype.before),K.prototype.after=DEH(K.prototype.after),n.nativeReplaceWith=K.prototype.replaceWith,K.prototype.replaceWith=function(p){return function(){var y=_.rW.apply(0,arguments),Y=_.k(uR$(y)),A=Y.next().value,
v=Y.next().value;Y=this.isConnected;p.nativeReplaceWith.apply(this,y);y=_.k(v);for(v=y.next();!v.done;v=y.next())mX(v.value);if(Y)for(mX(this),A=_.k(A),Y=A.next();!Y.done;Y=A.next())Y=Y.value,Y instanceof Element&&zQ(Y)}}(n),n.nativeRemove=K.prototype.remove,K.prototype.remove=function(p){return function(){var y=this.isConnected;
p.nativeRemove.call(this);y&&mX(this)}}(n),n.nativeInsertAdjacentElement=K.prototype.insertAdjacentElement,K.prototype.insertAdjacentElement=function(p){return function(y,Y){var A=Y.isConnected;
y=p.nativeInsertAdjacentElement.call(this,y,Y);A&&mX(Y);y.isConnected&&zQ(y);return y}}(n),n.nativeSetAttribute=K.prototype.setAttribute,K.prototype.setAttribute=function(p){return function(y,Y){var A=Jzy(this);
if(!A.usePatchedLifecycles)return p.nativeSetAttribute.call(this,y,Y);var v=this.getAttribute(y);p.nativeSetAttribute.call(this,y,Y);Y=this.getAttribute(y);Zbi(A,y,v,Y)}}(n),n.nativeRemoveAttribute=K.prototype.removeAttribute,K.prototype.removeAttribute=function(p){return function(y){var Y=Jzy(this);
if(!Y.usePatchedLifecycles)return p.nativeRemoveAttribute.call(this,y);var A=this.getAttribute(y);p.nativeRemoveAttribute.call(this,y);A!==null&&Zbi(Y,y,A,null)}}(n),n.nativeToggleAttribute=K.prototype.toggleAttribute,K.prototype.toggleAttribute=function(p){return function(y,Y){var A=Jzy(this);
if(!this.usePatchedLifecycles)return p.nativeToggleAttribute.call(this,y,Y);var v=this.getAttribute(y),h=v!==null;Y=p.nativeToggleAttribute.call(this,y,Y);Y!==h&&Zbi(A,y,v,Y?"":null);return Y}}(n);
M=[Document,DocumentFragment,Element,ShadowRoot];So&&M.push(So.Wrapper);M=_.k(M);for(n=M.next();!n.done;n=M.next())n=n.value,n.prototype.prepend=DEH(n.prototype.prepend),n.prototype.append=DEH(n.prototype.append);(So==null?void 0:So.noPatch)===!0&&bby();document.readyState==="complete"?zQ(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&zQ(document.body)});
var E=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");E&&E.get&&E.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:E.enumerable,configurable:!0,get:E.get,set:function(p){p||mX(this);E.set.call(this,p);return p}})}};
DEH=function(M){return function(){var q=_.rW.apply(0,arguments),G=_.k(uR$(q)),K=G.next().value;G=G.next().value;M.apply(this,q);q=_.k(G);for(G=q.next();!G.done;G=q.next())mX(G.value);if(this.isConnected)for(K=_.k(K),q=K.next();!q.done;q=K.next())q=q.value,q instanceof Element&&zQ(q)}};
bby=function(){for(var M=_.k(xEe),q=M.next();!q.done;q=M.next()){q=q.value.prototype;for(var G=_.k(zTY),K=G.next();!K.done;K=G.next()){K=K.value;var n=Object.getOwnPropertyDescriptor(q,K);n&&Object.defineProperty(q,"__shady_native_"+K,n)}}};
Zbi=function(M,q,G,K){var n,E;if((n=M.polymerController)==null?0:(E=n.observedAttributes)==null?0:E.includes(q))if(M=M.polymerController,M.attributeChangedCallbackWrapper)M.attributeChangedCallbackWrapper.call(M,q,G,K);else{var p;(p=M.attributeChangedCallback)==null||p.call(M,q,G,K)}};
uR$=function(M){var q=[],G=[];M=_.k(M);for(var K=M.next();!K.done;K=M.next())K=K.value,K instanceof Element&&K.isConnected&&G.push(K),K instanceof DocumentFragment?q.push.apply(q,_.Ui(Array.from(K.children))):q.push(K);return[q,G]};
Jzy=function(M){return!(M instanceof Element)&&M.node instanceof Element?M.node:M};
mEe=function(M,q){var G=q?["children"].concat(_.Ui(q)):["children"];q=[];G=_.k(G);for(var K=G.next();!K.done;K=G.next()){var n=K.value;if(M.hasOwnProperty(n)){K=M[n];K=typeof K==="function"?K():K;K=Array.isArray(K)?K:[K];K=gU(K).flat();if(n!=="children"){n=Vvj(n);for(var E=_.k(K),p=E.next();!p.done;p=E.next())p=p.value,p instanceof Element&&p.setAttribute("slot",n)}q.push(K)}}q.length===0?M=[]:(M=gU(_.W("div",null,q)),M=Array.from(M.childNodes));return M};
TKe=function(M,q,G){var K={};_.rY(function(){var n={},E;for(E in q)if(q.hasOwnProperty(E)){var p=void 0,y=void 0;if(!(((p=G.slotProps)==null?0:p.includes(E))||E==="children"||((y=G.callbackProps)==null?0:y.includes(E))||E==="ref")&&(p=_.TL(q[E]),K[E]!==p)){K[E]=p;y=void 0;var Y=(y=M.hostElement)!=null?y:M;!G.skipHostForwardedProps&&S1u.has(E)&&(Y[E]=p);n[E]=p}}Bm(function(){if(M.setProperties)M.setProperties(n);else for(var A=_.k(Object.entries(n)),v=A.next();!v.done;v=A.next()){var h=_.k(v.value);
v=h.next().value;h=h.next().value;M[v]=h}})},"i")};
jzy=function(M,q,G,K){var n=mEe(G,K.slotProps),E=(0,_.$U)(M);n=_.k(n);for(var p=n.next();!p.done;p=n.next())E.appendChild(p.value);TKe(q,G,K);K=_.k(K.callbackProps||[]);n=K.next();for(E={};!n.done;E={kebabEventName:void 0,eventListener:void 0},n=K.next())p=n=n.value,String(n).substring(0,2)==="on"&&G[p]?(E.kebabEventName=Vvj(String(n).substring(2)),E.eventListener=G[p],M.addEventListener(E.kebabEventName,E.eventListener),_.m_(function(v){return function(){M.removeEventListener(v.kebabEventName,v.eventListener)}}(E))):
q[p]=G[p];
if(G.ref){G=_.k(rze(G.ref));var y=G.next().value,Y=G.next().value,A=q.attached.bind(q);q.attached=function(){y(M);A()};
_.m_(function(){Y()})}};
rze=function(M){if(typeof M==="function"){var q;return[function(G){q=M(G)},
function(){var G;(G=q)==null||G()}]}if(!M.onRender||!M.onUnmount)throw Error("Sg");
return[M.onRender,M.onUnmount]};
VVi=function(M,q){q=q===void 0?{}:q;var G=function(K){var n=document.createElement(M),E;var p=(E=n.polymerController)!=null?E:n;jzy(n,p,K,q);return n};
G.debugName=M+" (CoW wrapped)";return G};
Hby=function(M,q,G,K,n){K=K===void 0?{}:K;var E=RTi,p=!1;E?(p=!0,RTi=void 0):(f1y=q,E=document.createElement(q),f1y=void 0);var y=E;y.usePatchedLifecycles=!0;y.lifecycleIsConnected=!1;E.loggingStatus={};var Y=FRD(M,q,E,K,n);_.m_(function(){y.lifecycleIsConnected&&(y.lifecycleIsConnected=!1,Y.disconnectedCallback())});
p||(E.__noInsertionPoint=!0,jzy(E,Y,G,K));return E};
FRD=function(M,q,G,K,n){n=n===void 0?CnD:n;eTi[q]!=null||(eTi[q]=n(M,q,K==null?void 0:K.getTemplate,K));var E=eTi[q],p=E.ctor;n=E.getInitialMethods;var y=E.getPropsToForwardBeforeReady;M=E.getPropsToForwardBeforeRegister;K=E.shouldForwardProp;var Y=E.observedAttributes,A=E.shouldLog,v=p(G,{beforeReady:function(){var h=v;h._takeAttributes?h._takeAttributes():h.setPropertiesFromInitialAttributeValues&&h.setPropertiesFromInitialAttributeValues();h=_.k(y(G.polymerController));for(var t=h.next();!t.done;t=
h.next()){var O=_.k(t.value);t=O.next().value;O=O.next().value;l1s(G,t,O);A(q)&&!xA(t)&&ibw(G.polymerController,t)}G.polymerController=TEs(v,q)}});
G.polymerController=v;G.polymerController.observedAttributes=Y;E=_.k(v.getExtraMethodsToForward());for(p=E.next();!p.done;p=E.next())Y=_.k(p.value),p=Y.next().value,Y=Y.next().value,XYi(G,p,Y);n=_.k(n());for(E=n.next();!E.done;E=n.next())E=E.value,K(E)&&XYi(G,E),A(q)&&!xA(E)&&PnF(v,E);M=_.k(M());for(K=M.next();!K.done;K=M.next())n=_.k(K.value),K=n.next().value,n=n.next().value,l1s(G,K,n);return v};
$Ej=function(M){var q=TQ;TQ=M;return q};
Mxy=function(M){if(r4.has(M)&&TQ&&shy(TQ)===M){var q;(q=TQ)._numRenders!=null||(q._numRenders=0);TQ._numRenders++;if(TQ._numRenders>1)throw Error("Tg");return TQ}};
qos=function(M){r4.has(shy(M))&&TQ!==M&&(M._isInert=!0)};
shy=function(M){var q;return(q=M==null?void 0:M.tagName.toLowerCase())!=null?q:""};
GJD=function(M,q){if(M.componentType===ZP)throw Error("Ug");r4.add(q);var G=function(){var K=HTMLElement.call(this)||this;K.is=q;if(f1y===q)return K.isInert=!0,K;K.createElement();return K};
_.l(G,HTMLElement);G.prototype.createElement=function(){if(!this.isInert){RTi=this;var K=_.k(_.moy(function(){return _.W(M,null)})).next().value;
RTi=void 0;rXy(this);return K}};
customElements.define(q,G)};
n0H=function(M,q,G,K,n){M.prototype.is=q;(K==null?0:K.useSink)?KBu(M,q,G,K,n):(G=CnD(M,q,G,K),czH(G,q));return M};
KBu=function(M,q,G,K,n){UEe();var E=_.U(function(p){return Hby(M,q,p,Object.assign({},K,{getTemplate:G}),n)},"j");
E.debugName=q+" (CoW wrapped)";GJD(E,q);return E};
Nuy=function(M){return!E0i.has(M)};
yPY=function(M,q,G,K){function n(){if(!h){for(var t=new Set(kJD),O=_.k(E.behaviors),a=O.next();!a.done;a=O.next()){a=a.value;for(var g=_.k(Object.getOwnPropertyNames(a)),D=g.next();!D.done;D=g.next()){D=D.value;var J=void 0,Z=(J=Object.getOwnPropertyDescriptor(a,D))==null?void 0:J.value;Z&&Z instanceof Function&&(!A[D]||_.w("polymer_forward_method_killswitch"))&&t.add(D)}}O=_.k(Object.entries(Object.getOwnPropertyDescriptors(M.prototype)));for(a=O.next();!a.done;a=O.next())g=_.k(a.value),a=g.next().value,
g=g.next().value,g.value instanceof Function&&t.add(a);h=t}return h}
var E=rUH({is:q,disableElementRegistration:!1,getTemplate:G,providers:K==null?void 0:K.providers,reactivityMode:K==null?void 0:K.reactivityMode},M);if((K==null?0:K.allowedProps)||(K==null?0:K.allowedPropsFromBehaviors)){var p,y;E.allowedProps=[].concat(_.Ui((p=K.allowedProps)!=null?p:[]),_.Ui((y=K.allowedPropsFromBehaviors)!=null?y:[]))}var Y=bUw(E,M);q=Y.observedAttributes;var A={};G=_.k(E.reactiveSchemas);for(K=G.next();!K.done;K=G.next())if(K=K.value,K.type==="signal")A[K.propertyKey]={readOnly:K.readOnly},
K.readOnly&&(A[AXH(K.propertyKey)]={readOnly:!0});else if(K.type==="compute"||K.type==="computeWithMethod"||K.type==="redux")A[K.propertyKey]={readOnly:!0};var v=E.reactiveSchemas.length,h;return{ctor:function(t,O){t=new Y(t);t.beforeReady=O.beforeReady;return t},
props:A,observedAttributes:q,getInitialMethods:n,getPropsToForwardBeforeRegister:function(){for(var t=[],O=new Set,a=_.k(pCF),g=a.next();!g.done;g=a.next())g=g.value,t.push([g,g!=="observers"&&g!=="properties"]),O.add(g);a=_.k(Object.keys(A));for(g=a.next();!g.done;g=a.next())g=g.value,t.push([g,A[g].readOnly]),O.add(g);a=n();g=_.k(Object.keys(Object.getOwnPropertyDescriptors(M.prototype)));for(var D=g.next();!D.done;D=g.next())D=D.value,!Nuy(D)||a.has(D)||O.has(D)||(t.push([D,!1]),O.add(D));t.push(["allowedProps",
!0]);return t},
getPropsToForwardBeforeReady:function(t){var O=[];t=_.k(Object.keys(t));for(var a=t.next();!a.done;a=t.next()){a=a.value;var g=n();Nuy(a)&&!g.has(a)&&O.push([a,!1])}t=_.k(E.reactiveSchemas.slice(v));for(a=t.next();!a.done;a=t.next())a=a.value,a.type!=="compute"&&a.type!=="computeWithMethod"&&a.type!=="redux"&&a.type!=="signal"||O.push([a.propertyKey,a.type==="signal"?a.readOnly:!0]);return O},
shouldForwardProp:Nuy,shouldLog:LT}};
_.z=function(M,q,G,K){var n,E,p=(E=(n=K)==null?void 0:n.mode)!=null?E:0;K!=null||(K={});var y;(y=K).reactivityMode!=null||(y.reactivityMode=0);p===1&&_.CD("creator_poly_si_disable_list").includes(q)&&(p=2);return p===1?n0H(M,q,G,Object.assign({},K,{useSink:!0}),yPY):n0H(M,q,G,Object.assign({},K,{useSink:p===2}))};
_.jo=function(){return function(M,q,G,K){var n,E,p=(E=(n=K)==null?void 0:n.mode)!=null?E:2;K!=null||(K={});var y;(y=K).reactivityMode!=null||(y.reactivityMode=0);if(p===0)throw Error("Vg`"+p);return KBu(M,q,G,K,p===1?yPY:void 0)}};
_.VO=function(M){return _.w("creator_poly_si_killswitch")?!1:_.w("force_all_poly_si_batches")&&(M==="poly_si_all_on_test_check"||M==="creator_poly_si_batch_050"?0:M)||document.documentElement.hasAttribute("use-signals")?!0:!M||_.w(M+"_holdback_enabled")&&_.w("kevlar_polysi_holdback")?!1:_.w(M)};
RO=function(M){return M?M.icon?M.icon.iconType.toLowerCase():M.customThumbnail?"member":"":""};
LBw=function(M){if(!M)return"";M=_.k(M);for(var q=M.next();!q.done;q=M.next())if((q=q.value)&&q.liveChatAuthorBadgeRenderer&&(q=RO(q.liveChatAuthorBadgeRenderer))&&q!=="verified")return q;return""};
Yoy=function(M,q){if(!M)return null;var G;return((G=M.find(function(K){return K&&K.liveChatAuthorBadgeRenderer?RO(K.liveChatAuthorBadgeRenderer)===q:!1}))==null?void 0:G.liveChatAuthorBadgeRenderer)||null};
_.txY=function(M){var q=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;M=WBY(M);q=WBY(q);var G=APs(M.hex);q=APs(q.hex);var K=q[0]/255;var n=q[1]/255,E=q[2]/255,p=Math.max(K,n,E),y=Math.min(K,n,E),Y=0,A=0,v=.5*(p+y);p!=y&&(p==K?Y=60*(n-E)/(p-y):p==n?Y=60*(E-K)/(p-y)+120:p==E&&(Y=60*(K-n)/(p-y)+240),A=0<v&&v<=.5?(p-y)/(2*v):(p-y)/(2-2*v));K=[Math.round(Y+360)%360,A,v];G=d7H(G,q);for(M=v0F(M.hex);G<4.5;){M=K[2]>=.5?M.darker((4.5-G)/2):M.brighter((4.5-G)/2);G=M.toString();
n=hZ$(G);if(!n.length)throw Error("Xd`"+G);G=n;G=d7H(G,q)}return M.hex()};
d7H=function(M,q){M=_.jxy(M);q=_.jxy(q);return(Math.max(M,q)+.05)/(Math.min(M,q)+.05)};
_.fT=function(M){return"#"+("000000"+(M&16777215).toString(16)).slice(-6)};
_.Oyy=function(M){for(var q=0,G=0;G<M.length;G++)q=M.charCodeAt(G)+((q<<5)-q);M="#";for(G=0;G<3;G++)M+=("00"+(q>>G*8&255).toString(16)).slice(-2);return M};
wC4=function(M){M=(M||"").split(":");M.length===1&&M.unshift("yt-icons");M[1]=M[1].toLowerCase();return M};
P6y=function(M,q){var G=(q=q===void 0?!1:q)?C6w:aqs,K=q?o04:lqj;M.getIconNames().forEach(function(n){n=q?n:n.substring(n.indexOf(":")+1);M.name==="yt-icons"?XCy.add(n):n.includes("-filled")?G.add(n):K.add(n)})};
Fs=function(M,q,G,K){G=G===void 0?!1:G;K=K===void 0?!1:K;var n,E,p;return _.L(function(y){if(y.nextAddress==1)return y.yield(iyD,2);if(K)return y.return(XCy.has(M));n=G?C6w:aqs;E=G?o04:lqj;return q?(p=M.includes("-filled")?M:M.concat("-filled"),y.return(n.has(p))):y.return(E.has(M))})};
_.H4=function(M){if(cPF(M))return M.toString();var q=g0i.get(M);if(q)return q;q=M.toLowerCase();var G="yt-icons",K=q.replace(/_/g,"-");switch(M){case "MY_CHANNEL":q="account_circle";break;case "ADD_TO_LIBRARY":q="add";break;case "ALERT_WARN_RED":q="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":q="person_music";break;case "BLOCK_USER":q="block";break;case "CAPTIONS":q="closed_caption";break;case "CLOSED_CAPTION":G="av";q="closed-caption";break;case "COLLECTION":G="maps";q="layers";break;case "CONTACT":G=
"icons";q="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":G="yt-studio-system-icons";q=K.split("creator-studio-")[1];break;case "DISMISSAL":q="close";break;case "DO_NOT_DISTURB":q="block";break;case "DOGFOOD":G="icons";q="pets";break;case "DRAFT":q="paper_corner_folded";
break;case "EMPTY_LIKE":q="like_outline";break;case "EXIT_APP":q="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":q=K;break;case "GAMES":G="ytg";q="my-games";break;case "GO_TO_PAGE":q="arrow-forward";break;case "GROUP":G="social";break;case "HIDE":q="not_interested";break;case "INPUT_COMPONENT":G="icons";q="settings-input-component";break;case "KIDS_BLOCK":q="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":G="ytg";q="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":G=
"ytg";q="membership-post-purchase";break;case "MULTIVIEW":q="screen_multi_view";break;case "MY_LOCATION":G="maps";q=K;break;case "NOTIFICATIONS_INBOX":q="NOTIFICATIONS";break;case "NEXT":q="chevron_right";break;case "OFFLINE":q="power-settings-new";break;case "PAUSE":G="miniplayer";break;case "PAYMENT":G="icons";break;case "PHONE_DOWNLOAD":q="phone_download";break;case "PREMIUM_STANDALONE":G="yt-logos";q="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":G="yt-logos";q="premium_standalone_cairo";
break;case "QUESTION_ANSWER":q="question_answer";break;case "REDEEM":G="icons";q="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":q="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":q="library_add";break;case "SCHOOL":G="yt-sys-icons";q="creator_academy";break;case "SETTINGS_LIGHT":q="settings_applications";break;case "SETTINGS_MATERIAL":q="settings";break;case "SEARCH_HISTORY":q="watch_history";break;case "SHOPPING_BAG":q="bag";break;case "SOCIAL":case "PEOPLE":G=
"yt-icons";q="people";break;case "STAFF_PICK":G="ytg";q="spotlight";break;case "START_DVR":q="add";break;case "STOP_DVR":G="av";q="stop";break;case "TAB_LIKED":q="like";break;case "TAB_INBOX":q="mail";break;case "TERMS_OF_SERVICE":G="icons";q="description";break;case "TRENDING":q="fire";break;case "UNBLOCK_USER":q="remove";break;case "UNPLUGGED_DARK_THEME":G="image";q="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":q="live";break;case "UNPLUGGED_SPORTS":G="ytu";q="visibility-off";break;
case "VIDEOS":G="av";q="play-circle-filled";break;case "YOUTUBE":G="yt-logos";q="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":G="yt-logos-ext";q="yt-logo-red-updated";break;case "YOUTUBE_LOGO":G="yt-logos-ext";q="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":G="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":G="shorts";q=K;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":G="yt-sys-icons";q="youtube_improve_tv";break;case "OUTLINE_BAG":G=
"yt-sys-icons";q="bag";break;case "QUEUE_PLAY_LAST":G="yt-sys-icons";q="list_queue_last";break;case "SLASH_CIRCLE_LEFT":q="slash_circle_left";break;case "SPEED_1_POINT_2X":q="1_point_2x";break;case "SPEED_1_POINT_5X":q="1_point_5x";break;case "SPEED_1_POINT_8X":q="1_point_8x";break;case "SPEED_POINT_2X":q="point_2x";break;case "SPEED_POINT_5X":q="point_5x";break;case "SPEED_POINT_8X":q="point_8x";break;case "SPEED_1X":q="1x";break;case "SPEED_2X":q="2x";break;case "TAB_BOOKMARK":q="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":G="yt-sys-icons";q="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":G="yt-sys-icons";q="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":G="yt-sys-icons",q="tic_tac_toe"}q=G+":"+q;g0i.set(M,q);return q};
cPF=function(M){var q;_.w("kevlar_use_wil_icons")?q=!!_.AL().resolve(_.eo).resolveIcon({iconName:M.toString()}):q=!1;return q};
_.sE=function(M,q,G,K){G=G===void 0?{}:G;K=K===void 0?!1:K;G===null&&(G={});var n=_.CD("kevlar_command_handler_command_banlist");n=_.k(n);for(var E=n.next();!E.done;E=n.next())if(E=M?M.hasOwnProperty(E.value):void 0,E)return!1;n=_.C(M.commandMetadata,_.Mg);return K&&n!=null&&n.url?!1:!q.disableCommandHandlerOverride&&_.$A.instance?(K=_.$A.instance,G.form||(G.form={element:q}),G.form.element||(G.form.element=q),!G.clickedVisualElement&&q.visualElement&&(G.clickedVisualElement=q.visualElement),K.resolveCommand(M,
G),!0):!1};
BuY=function(M,q){M=MY(M);for(var G=_.k(M.visibilityMonitorKeys||[]),K=G.next();!K.done;K=G.next())q.unobserveByKey(K.value);M.visibilityMonitorKeys=void 0};
uFs=function(M,q){if(_.Cx()){if(_.w("kevlar_vimio_use_shared_monitor"))Qhe(M,q.data);else if(!Qhe(M,q.data))return;var G=q.data,K=IqY(G);if(_.w("enable_client_ve_spec_logging"))BuY(M,q.observer);else{var n=MY(M);n.trackedParams&&n.trackedParams!==K&&BuY(M,q.observer)}n=MY(M);!G||n.data&&n.data===G||(n.data=G);D7D(M,q);n.trackedParams=K}};
D7D=function(M,q){var G=q.observer;if(!G&&_.w("web_skip_missing_vimio_observer")){var K,n;_.j1(new _.bj("VisibilityObserver is not defined.",M.tagName,M.trackedParams,(K=q.data)==null?void 0:K.trackingParams,(n=q.data)==null?void 0:n.loggingDirectives))}else{var E=q.layer,p=q.visibilityCallback||function(){},y=q.prescanCallback,Y=MY(M);
K=[];q.showOption&&K.push(G.observe(M,function(){q.skipLogging&&q.skipLogging()||_.qY().reportShown(Y,void 0,E);p(!0)},q.showOption));
q.hideOption&&K.push(G.observe(M,function(){_.qY().reportHidden(Y,void 0,E);p(!1)},q.hideOption));
q.prescanOption&&y&&K.push(G.observe(M,function(){y()},q.prescanOption));
Y.visibilityMonitorKeys=K}};
Qhe=function(M,q){M=MY(M);if(M.visualElement&&!q)return!0;if(!q)return!1;var G=!1;if(_.w("enable_client_ve_spec_logging")){var K,n;G=!!((K=q.loggingDirectives)==null?0:(n=K.clientVeSpec)==null?0:n.uiType)}K=IqY(q);if(!K&&!G)return!1;_.w("mweb_component_visibility_logging")&&(M.veContainer||(M.veContainer={}),M.veContainer.trackingParams=K);if(M.trackedParams&&M.trackedParams===K)return!1;var E;if(_.w("enable_client_ve_spec_logging")&&((E=M.visualElement)==null?0:E.isClientVe())){var p;E=(p=M.visualElement)==
null?void 0:p.getAsJspb();var y,Y,A,v;if(_.Au(E,2)===((y=q.loggingDirectives)==null?void 0:(Y=y.clientVeSpec)==null?void 0:Y.uiType)&&_.Au(E,3,-1)===((A=q.loggingDirectives)==null?void 0:(v=A.clientVeSpec)==null?void 0:v.elementIndex))return!1}if(_.w("enable_client_ve_spec_logging")){var h,t;!M.visualElement&&((h=q.loggingDirectives)==null?0:(t=h.clientVeSpec)==null?0:t.uiType)&&(y=q.loggingDirectives.clientVeSpec,q=y.uiType,p=y.elementIndex,y=y.clientYoutubeData,M.visualElement=_.GE(_.nl(),{veType:q,
elementIndex:p,clientYouTubeData:y}))}return!0};
IqY=function(M){if(M==null?0:M.rendererContext){var q=_.C(M.rendererContext,_.EE);if(q==null?0:q.loggingDirectives)return q.loggingDirectives.trackingParams}return(M==null?0:M.loggingDirectives)?M.loggingDirectives.trackingParams:M==null?void 0:M.trackingParams};
MY=function(M){var q;return(q=M.polymerController)!=null?q:M};
U7y=function(M){_.qY();if(_.$2(NY().JSC$12723_elementShouldLogGesture).bind(NY())(M,4)){JPu(M);var q=Zyy(M);byy.set(M,q)}};
JPu=function(M){byy.has(M)&&(byy.get(M).cancel("untrack hover element"),byy.delete(M))};
Zyy=function(M){var q,G=[],K=!1,n=new _.X4(function(E,p){kj(M,"mouseenter",_.$2(function(){var y,Y,A;return _.L(function(v){if(v.nextAddress==1)return q=(0,_.d8)(),y=x7j(M),G.push(y),Y=zZY(M,function(){K=!0;p(Error("Wg"))}),v.yield(y,2);
if(v.nextAddress!=3)return Y&&pl(Y),A=m7y(M),G.push(A),v.yield(A,3);E();_.gL(v)})}))});
n.then(function(){var E=(0,_.d8)()-q;E=Math.round(E);if(!(500>E||6E5<=E)){var p=M.getScreenLayer?M.getScreenLayer():void 0;p=_.Cx(p)||"";var y=Soy(_.qY(),M);_.bO(p,M.visualElement?M.visualElement:_.yx(y),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:E}})}U7y(M)},function(){Ll&&(Ll(),Ll=null);
K&&(JPu(M),U7y(M))});
return n};
x7j=function(M){var q;return(new _.X4(function(G,K){Ll=function(){K(Error("Xg"))};
q=_.r8.debounce(_.$2(function(){pl(n);G()}),1,100);
var n=_.Yj(M,"mousemove",q)})).thenCatch(function(){var G=_.r8.cancelDebouncedJobMap.get(q);
G&&_.r8.cancelJob(G)})};
m7y=function(M){var q;return(new _.X4(function(G,K){Ll=function(){K(Error("Yg"))};
q=kj(M,"mouseleave",_.$2(function(){G()}))})).thenCatch(function(){pl(q)})};
zZY=function(M,q){return kj(M,"mouseleave",_.$2(q))};
rPi=function(M){TuF&&_.Wb.cancel(TuF);TuF=_.Wb.run(function(){_.jP(M,"yt-visibility-refresh");TuF=0})};
jhu=function(M){M=Number(M);return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
RZi=function(M){if(!M)return!1;if(_.C(M,_.VxF))return!0;var q;if(M=(q=_.C(M,_.eP))==null?void 0:q.commands)for(q=_.k(M),M=q.next();!M.done;M=q.next())if(_.C(M.value,_.VxF))return!0;return!1};
fqe=function(M){var q=!0;q=q===void 0?!0:q;if(!M.useSignals&&!M.experimentalPropertiesChanged||_.w("experimental_templating_behavior_nopatch_killswitch")){var G=M._propertiesChanged;M._propertiesChanged=function(K,n,E){q?M.debounceRender():M.doRender();G&&G.call(M,K,n,E)}}};
FBw=function(M,q){if(M.useSignals||M.experimentalPropertiesChanged)if(_.w("experimental_templating_behavior_nopatch_killswitch"))M.experimentalPropertiesChanged=function(){};
else return;var G=new Set,K=[M].concat(_.Ui(M.behaviors));K=_.k(K);for(var n=K.next();!n.done;n=K.next()){n=n.value;for(var E in n.properties)G.has(E)||(M._addPropertyEffect(E,"function",q),G.add(E))}};
Hyw=function(){var M=Polymer.Element,q=M._prepareTemplate;M._prepareTemplate=function(){q.call(this);var G=this.prototype;if(G.experimentalTemplatingInUse&&G.experimentalTemplatingInUse()&&G.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.T6(Error("Zg"));else{G=this.template.content.childNodes;for(var K=G.length-1;K>=0;K--){var n=G[K];n.nodeName!=="STYLE"&&n.nodeName!=="LINK"&&n.nodeName!=="SCRIPT"&&n.nodeName!=="#comment"&&n.remove()}}}};
eZj=function(M){var q=!0;q=q===void 0?!0:q;Hyw();var G=M.ready;M.ready=function(){this._template=null;G.call(this)};
FBw(M,q?M.debounceRender:M.doRender)};
s6s=function(M,q,G){if(G===null||G===void 0)return G;var K=PRF(M.tagName.toLowerCase(),q,function(){throw Error("Tb");});
if(K===null)return G;K=$7D[K];var n;if((n=K.isUnwrappable)==null?0:n.call(K,G)){if(K.unwrap)return K.unwrap(G);throw Error("bh");}return K.filterString?K.filterString(M.tagName,q,String(G)):G};
M3H=function(M,q,G){var K=q[q.length-1]!=="$",n=s6s(M,q,G);if(K)if(typeof n==="function"&&q.startsWith("reactiveon")&&q===q.toLowerCase()){var E=NT;J5F(M,q.slice(8),function(p){j_(E,function(){n(p)})})}else M[q]=n;
else G=n==null?null:String(n),fW(M,q.slice(0,-1),G)};
d7=function(M){qmY.length===0&&requestAnimationFrame(function(){setTimeout(function(){var q=qmY.slice();qmY.length=0;q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;try{G()}catch(K){_.Aj(K)}}})});
qmY.push(M)};
GGH=function(M){if(M){var q=M.component;if(q){var G;q==null||(G=q.events)==null||G.publish("DISCONNECTED");var K;q==null||(K=q.onDisconnected)==null||K.call(q)}var n,E;(n=M.__spec)==null||(E=n.didUnmount)==null||E.call(n);for(q=0;q<M.childNodes.length;q++)GGH(M.childNodes[q])}};
KIF=function(M,q,G){var K=q&&q.key,n=N$;n[0]=M;n[1]=K;n[2]=void 0;for(var E in q)q.hasOwnProperty(E)&&(M=q[E],K=k2,K.push(E),K.push(M));q=N$;a:{if(E=N$[2])for(M=0;M<E.length;M+=2)if(E[M]==="nonce"){E=E[M+1];break a}E=""}E=fyw(q[0],q[1],E);M=e_(E);K=q[2];if(!M.staticsApplied&&(M.staticsApplied=!0,K&&K.length))if((n=M._attrsArr)&&n.length){for(n=0;n<K.length;n+=2)vb[K[n]]=n+1;n=M._attrsArr||(M._attrsArr=unw(0));for(var p=0,y=0;y<n.length;y+=2){var Y=n[y],A=n[y+1],v=vb[Y];v?K[v]===A&&delete vb[Y]:(n[p]=
Y,n[p+1]=A,p+=2)}RY(n,p);for(var h in vb)z0D(E,h,K[vb[h]],YI),delete vb[h]}else for(h=0;h<K.length;h+=2)z0D(E,K[h],K[h+1],YI);qUH(E,M,YI);RY(q,0);G&&G(M$);FhD()};
_.hj=function(M,q,G){G===void 0?delete M[q.name]:M[q.name]=G};
_.tj=function(M){var q={androidIncludeFontPadding:!1},G=0,K=[],n=[],E=[];if(M.simpleText)return q.content=M.simpleText,q;if(M.runs===void 0)return q.content="",q;M=_.k(M.runs);for(var p=M.next();!p.done;p=M.next()){p=p.value;var y=p.text,Y=void 0,A=(Y=y)==null?void 0:Y.length;if(y&&A){K.push(y);if(p.bold||p.italics||p.strikethrough||p.underline||p.textColor!=null&&p.textColor!==0||p.deemphasize){y=n;Y=y.push;var v={startIndex:G,length:A};p.bold&&(v.weightLabel="FONT_WEIGHT_MEDIUM");p.italics&&(v.italic=
!0);p.strikethrough&&(v.strikethrough="LINE_STYLE_SINGLE");p.underline&&(v.underline="LINE_STYLE_SINGLE");p.textColor!=null&&p.textColor!==0?document.documentElement.hasAttribute("dark")?v.fontColor=p.darkModeTextColor||p.textColor:v.fontColor=p.textColor:p.deemphasize&&(document.documentElement.hasAttribute("dark")?v.fontColor=parseInt("ff"+nbH("#aaa").substring(1),16):v.fontColor=parseInt("ff"+nbH("#606060").substring(1),16));Y.call(y,v)}p.navigationEndpoint&&(y=E,Y=y.push,v={startIndex:G,length:A,
onTap:{innertubeCommand:p.navigationEndpoint}},p.loggingDirectives&&_.hj(v,Ebs,p.loggingDirectives),Y.call(y,v));G+=A}}q.content=K.join("");q.styleRuns=n.length?n:void 0;q.commandRuns=E.length?E:void 0;return q};
kGi=function(M){if(M==null||!M.runs)return!0;M=_.k(M.runs);for(var q=M.next();!q.done;q=M.next())if(q=q.value,q.bracket||q.errorUnderline||q.deemphasize||_.C(q,OE)||_.C(q,NAs))return!1;return!0};
pQY=function(M,q){return function(G){var K=q.unit;if(K!==G)throw Error("eh`"+M+"`"+K+"`"+G);return q}};
w7=function(M){if(!((M==null?0:M.value)&&(M==null?0:M.unit)))return"";switch(M.unit){case "DIMENSION_UNIT_FRACTION":var q="%";break;default:q="px"}M=M.value;q==="%"&&(M*=100);return""+M+q};
yTs=function(M){try{return M()}catch(q){_.j1(q)}};
_.aM=function(M){var q=_.C(M,_.Cl);if(q)return q;if((q=_.C(M,LIy))&&q.commands)return Ymy(q.commands);if((q=_.C(M,WIu))&&q.commands)return Ymy(q.commands);if((M=_.C(M,ATy))&&M.identifier&&M.command&&(dRY||(dRY=[]),!dRY.includes(M.identifier)))return dRY.push(M.identifier),_.C(M.command,_.Cl)};
Ymy=function(M){if(M.length!==0){var q=[];M=_.k(M);for(var G=M.next();!G.done;G=M.next())(G=_.aM(G.value))&&q.push(G);return{commandExecutorCommand:{commands:q}}}};
_.lm=function(M){var q=M.defaultTarget,G=M.elementConfig,K=M.elementsCommand,n=M.skipOnClick,E=M.forceNewState,p=M.additionalCommandArgs,y=M.innertubeCommand||_.aM(K);if(y){M={};var Y=vb4(y);K=Y.navigatingCommand;Y=Y.href;K&&Y?(M.href$=Y,ht4(M,K,Y,q),_.w("web_atagconfig_pointerdown")&&t3y(M,K),E&&(M["force-new-state$"]=!0)):(M.role$="button",M.href$="javascript:void(0);");_.C(y,Ofj)&&(M["aria-haspopup$"]=!0);n||(M.onclick=function(A){var v={};if(wQ$(A)){var h=(p==null?void 0:p.clickedVisualElement)||
(p==null?void 0:p.getClickedVisualElement)&&p.getClickedVisualElement();h&&(v={clickedVisualElement:h});v=Object.assign({},{form:{element:A.target,event:A,createScreenConfig:v}},p);A.preventDefault();_.oM(y,v)}});
return Object.assign({},G,M)}};
CKw=function(M){if(M.length){if(M.length===1)return M[0];var q={};_.hj(q,_.eP,{commands:M});return q}};
Xg=function(M){return M&&M.href$!=="javascript:void(0);"};
vb4=function(M){var q,G=((q=_.C(M,_.eP))==null?void 0:q.commands)||[M];M=_.k(G);for(q=M.next();!q.done;q=M.next()){q=q.value;var K=void 0,n=void 0;G=(n=_.C((K=q)==null?void 0:K.commandMetadata,_.Mg))==null?void 0:n.url;_.w("web_remove_web_navigation_endpoint_data")||(K=void 0,G=G||((K=_.C(q,a9$))==null?void 0:K.url));if(G&&G!=="/service_ajax"){if(K=_.z3(G,obH))return M=_.by(K),{navigatingCommand:q,href:M};_.j1(new _.bj("AttributedString URL could not be sanitized",G))}}return{}};
wQ$=function(M){return M.button!==void 0?M.button===0&&!(M.shiftKey||M.altKey||M.metaKey||M.ctrlKey):!(M.shiftKey||M.altKey||M.metaKey||M.ctrlKey)};
ht4=function(M,q,G,K){G=!LD(G);var n,E,p;if((n=_.C(q,_.n_))!=null&&n.nofollow||(E=_.C(q,_.Jl))!=null&&E.nofollow||(p=_.C(q,_.q6))!=null&&p.nofollow||G)M.rel$="nofollow";var y;q=((y=_.C(q,_.q6))==null?void 0:y.target)==="TARGET_NEW_WINDOW"?"_blank":K===void 0?"":K;M.target$=q};
t3y=function(M,q){q.clickTrackingParams&&(M.params={itct:q.clickTrackingParams});M.onpointerdown=function(G){l9D(G)};
M._data=q};
XQH=function(M){(M.loggingUrls||[]).forEach(function(q){q8(q.baseUrl,q.attributionSrcMode)})};
l9D=function(M){var q=M.currentTarget;M=yTs(function(){return q.href});
var G=q.params;M&&_.xD(M,G||{},8,!0)};
_.Pb=function(M,q){(M=_.aM(M))&&_.oM(M,q)};
_.oM=function(M,q){$hi(function(G){q?G.resolveCommand(M,q):G.resolveCommand(M)})};
gbw=function(M,q){var G=["yt-core-attributed-string__link"];q!=null&&q.noLinkColor||((q==null?0:q.isOverlay)?G.push("yt-core-attributed-string__link--overlay-call-to-action-color"):G.push("yt-core-attributed-string__link--call-to-action-color"),(q==null?0:q.linkInheritColor)&&G.push("yt-core-attributed-string--link-inherit-color"));G={className:G.join(" "),tabindex$:"0"};var K=M.onTap||M.onLongPress;if(!K)return G;var n=PKs(M);n&&(G["aria-label$"]=n);q=_.lm({elementsCommand:K,elementConfig:G,skipOnClick:!(q==
null||!q.skipOnClick),forceNewState:!0});M.onLongPress&&(K=new ify(function(){var E=_.aM(M.onLongPress);E&&_.AL().resolve(_.vR).resolveCommand(E)}),q&&cTs(K,q));
return q||G};
PKs=function(M){var q,G;return(q=M.onTapOptions)==null?void 0:(G=q.accessibilityInfo)==null?void 0:G.accessibilityLabel};
BAw=function(M){var q=M;M<=16777215&&(q+=parseInt("ff000000",16));return _.C_(q)};
Q6y=function(M){var q=M.isDarkTheme;var G=M.extension;M=M.runColor;var K=void 0;if(G=G==null?void 0:G.colorMap){q=q?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";G=_.k(G);for(var n=G.next();!n.done;n=G.next())if(n=n.value,q===n.key){K=n.value;break}}K==null&&M&&(K=M);if(K)return BAw(K)};
im=function(M){var q=M.config;var G=M.image;var K=M.imageConfig;var n=M.imageWrapperConfig;var E=M.run;var p=M.tag;var y=M.textLength;var Y=M.startIndex===void 0?0:M.startIndex;M=M.length;Y===void 0&&(Y=0);E={run:E,startIndex:Y,endIndex:M!==void 0?Y+M:y,tag:p};G&&(E.image=G);K&&(E.imageConfig=K);n&&(E.imageWrapperConfig=n);q&&(E.config=q);return E};
DRy=function(M,q){var G=[];G.push("yt-core-attributed-string");(q==null?0:q.className)&&G.push(q==null?void 0:q.className);(q==null?0:q.ellipsisTruncate)?G.push("yt-core-attributed-string--ellipsis-truncate"):(q==null?0:q.noWrap)?G.push("yt-core-attributed-string--white-space-no-wrap"):(q==null?0:q.noPreWrap)||G.push("yt-core-attributed-string--white-space-pre-wrap");(q==null?0:q.linkInheritColor)&&G.push("yt-core-attributed-string--link-inherit-color");M.alignment&&G.push(I9s(M.alignment));M.lineBreakMode&&
G.push("yt-core-attributed-string--word-wrapping");return G.join(" ")};
uCy=function(M,q){if(M.weight)return M.weight;switch(M.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 q?900:700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
JTH=function(M){switch(M){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"}};
I9s=function(M){switch(M){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"}};
Bb=function(M,q,G){var K=q;M.content&&G&&(G=M.content.indexOf("\n"),G!==-1&&(K=Math.min(q,G)));if(!M.content||M.content.length<=K)q=M;else if(M.attachmentRuns||M.commandRuns||M.decorationRuns||M.styleRuns||M.paragraphStyleRuns){q=cb(M.content,K);G=K;var n=M.attachmentRuns;if(n){var E=[];n=_.k(n);for(var p=n.next();!p.done;p=n.next())p=Object.assign({},p.value),p.startIndex===void 0||p.startIndex>=G||(p.length||(p.length=0),p.length+p.startIndex>G&&(p.length=G-p.startIndex),E.push(p));G=E}else G=void 0;
E=Zfe(K,M.commandRuns);n=K;var y=M.decorationRuns;if(y){p=[];y=_.k(y);for(var Y=y.next();!Y.done;Y=y.next()){Y=Y.value;var A=_.C(Y.textDecorator,g7);if(A&&A.startIndex!==void 0&&!(A.startIndex>=n)){Y=Object.assign({},Y,{textDecorator:{highlightTextDecorator:Object.assign({},A)}});A=_.C(Y.textDecorator,g7);if(!A.length||A.length+A.startIndex>n)A.length=n-A.startIndex;p.push(Y)}}n=p}else n=void 0;p=Zfe(K,M.styleRuns);if(y=M.paragraphStyleRuns)for(M=[],y=_.k(y),Y=y.next();!Y.done;Y=y.next()){var v=Y.value;
Y=Object.assign({},v);if(!(Y.startIndex===void 0||Y.startIndex>=K)){if(!Y.length||Y.length+Y.startIndex>K)Y.length=K-Y.startIndex;A=[];var h=void 0,t=void 0;if((h=v)==null?0:(t=h.listGroup)==null?0:t.listItems)for(v=_.k(v.listGroup.listItems),h=v.next();!h.done;h=v.next())if(h=Object.assign({},h.value),!(h.startIndex===void 0||h.startIndex>=K)){if(!h.length||h.length+h.startIndex>K)h.length=K-h.startIndex;A.push(h)}A.length>0&&(Y.listGroup||(Y.listGroup={}),Y.listGroup=Object.assign({},Y.listGroup,
{listItems:A}));M.push(Y)}}else M=void 0;q={content:q,attachmentRuns:G,commandRuns:E,decorationRuns:n,styleRuns:p,paragraphStyleRuns:M}}else q=Object.assign({},M,{content:cb(M.content,K)});return q};
Zfe=function(M,q){if(q){var G=[];q=_.k(q);for(var K=q.next();!K.done;K=q.next())if(K=Object.assign({},K.value),!(K.startIndex===void 0||K.startIndex>=M)){if(!K.length||K.length+K.startIndex>M)K.length=M-K.startIndex;G.push(K)}return G}};
cb=function(M,q){var G=q,K;if(K=G>0)K=M.charCodeAt(G-1),K=K>=55296&&K<=56319;K&&(G=M.charCodeAt(G),K=G>=56320&&G<=57343);K&&--q;return M.substring(0,q)};
ztH=function(M,q,G){G=G===void 0?bfH:G;if(M){var K=_.AL().resolve(A5);K||_.w("mweb_no_observer_killswitch")?uFs(M,{data:q,observer:K,visibilityCallback:G,hideOption:URy,showOption:xRy,layer:M.layer}):_.j1(new _.bj("Warning: monitorVisibility called with null observer",M.tagName,q==null?void 0:q.loggingDirectives,q==null?void 0:q.trackingParams))}else _.j1(new _.bj("Warning: monitorVisibility called with null element",q==null?void 0:q.loggingDirectives,q==null?void 0:q.trackingParams,q==null?void 0:
q.rendererContext))};
Rti=function(M,q){var G=[],K=M.content.length,n,E=(n=_.AL().resolve(_.WR(_.Qx)))==null?void 0:n();if(M.paragraphStyleRuns){n=_.k(M.paragraphStyleRuns);for(var p=n.next();!p.done;p=n.next()){var y=G.push,Y=y.apply;var A=void 0;p=p.value;if((A=p.listGroup)!=null&&A.listItems){A=[];b:switch(p.listGroup.listType){case "LIST_TYPE_BULLET":var v="ul";break b;default:v="span"}A.push(im({run:p,textLength:K,tag:v,config:{className:"yt-core-attributed-string__list-group"},startIndex:p.startIndex,length:p.length}));
v=_.k(p.listGroup.listItems);for(var h=v.next();!h.done;h=v.next()){h=h.value;b:switch(p.listGroup.listType){case "LIST_TYPE_BULLET":var t="li";break b;default:t="span"}A.push(im({run:p,textLength:K,tag:t,startIndex:h.startIndex,length:h.length}))}p=A}else p=[];Y.call(y,G,_.Ui(p))}}if(M.styleRuns&&(q==null||!q.noStyleRuns))for(n=_.k(M.styleRuns),y=n.next();!y.done;y=n.next()){p=y=y.value;A=E;Y=q;A=Q6y({extension:_.C(p.styleRunExtensions,mR$),isDarkTheme:A===void 0?!1:A,runColor:p.fontColor});h=p;
v=[];A&&v.push("yt-core-attributed-string--link-inherit-color");h.italic&&v.push("yt-core-attributed-string--italicized");h.underline&&h.strikethrough?v.push("yt-core-attributed-string--underline-strikethrough",JTH(h.underline)):h.underline?v.push("yt-core-attributed-string--underlined",JTH(h.underline)):h.strikethrough&&v.push("yt-core-attributed-string--strikethrough",JTH(h.strikethrough));if(h.baselineOffset){a:switch(h.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":h="yt-core-attributed-string--baseline-offset-subscript";
break a;case "BASELINE_OFFSET_SUPERSCRIPT":h="yt-core-attributed-string--baseline-offset-superscript";break a;default:h="yt-core-attributed-string--baseline-offset-unknown"}v.push(h)}v=v.join(" ");h={};if(p.weight||p.weightLabel)h.fontWeight=uCy(p,Y==null?void 0:Y.isHeadline).toString();A&&(h.color=A);G.push(im({run:y,textLength:K,tag:"span",config:{className:v,style:h},startIndex:y.startIndex,length:y.length}))}if(M.decorationRuns)for(n=_.k(M.decorationRuns),y=n.next();!y.done;y=n.next())y=y.value,
Y={},y.textDecorator&&(v=y.textDecorator,p=E===void 0?!1:E,h=[],A=_.C(v,g7),v=_.C(v,Smu),A?(v=h,h=v.concat,t=[],(p=Q6y({extension:_.C(A.highlightTextDecoratorExtensions,TAF),isDarkTheme:p,runColor:A.backgroundColor}))&&t.push("background-color: "+p+";"),A.backgroundCornerRadius!==void 0&&t.push("border-radius: "+A.backgroundCornerRadius+"px;"),A.leftPadding!==void 0&&t.push("padding-left: "+A.leftPadding+"px;"),A.rightPadding!==void 0&&t.push("padding-right: "+A.rightPadding+"px;"),A.topPadding!==
void 0&&t.push("padding-top: "+A.topPadding+"px;"),A.bottomPadding!==void 0&&t.push("padding-bottom: "+A.bottomPadding+"px;"),h=h.call(v,t)):v&&(A=h,h=A.concat,p=p?"#2ba640":"#107516",p=v.color?BAw(v.color):p,p=["padding: 2px;","border-top: solid "+p+" 2px;","border-bottom: solid "+p+" 2px;","background: linear-gradient(135deg, "+p+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+p+" 3px, rgba(0, 0, 0, 0) 3px);"],h=h.call(A,p)),p=h.join(" "),Y.style$=p,p=y.textDecorator,A=[],v=_.C(p,
Smu),_.C(p,g7)?A.push("yt-core-attributed-string--highlight-text-decorator"):v&&A.push("yt-core-attributed-string--bracket-text-decorator"),p=A.join(" "),Y.className=p,Y.dir="auto"),p=_.C(y.textDecorator,g7),A=_.C(y.textDecorator,Smu),v=_.C(y.textDecorator,g7),h=_.C(y.textDecorator,Smu),G.push(im({run:y,textLength:K,tag:"span",config:Y,startIndex:(p==null?void 0:p.startIndex)||(A==null?void 0:A.startIndex)||0,length:(v==null?void 0:v.length)||(h==null?void 0:h.length)||0}));if(M.commandRuns&&(q==
null||!q.noEndpoints))for(E=_.k(M.commandRuns),n=E.next();!n.done;n=E.next())n=n.value,y=gbw(n,q),G.push(im({run:n,textLength:K,tag:"a",config:y,startIndex:n.startIndex,length:n.length}));if(M.attachmentRuns)for(M=_.k(M.attachmentRuns),E=M.next();!E.done;E=M.next()){E=E.value;Y=y=void 0;n={className:"yt-core-attributed-string--inline-block-mod"};if((Y=E.element)==null?0:Y.properties){Y=(y=E.element)==null?void 0:y.properties;y=[];Y=_.C(Y,rTY);if(Y==null?0:Y.margin)Y=Y.margin,Y.left&&y.push("margin-left: "+
w7(Y.left)+";"),Y.right&&y.push("margin-right: "+w7(Y.right)+";"),Y.top&&y.push("margin-top: "+w7(Y.top)+";"),Y.bottom&&y.push("margin-bottom: "+w7(Y.bottom)+";");y=y.length!==0?y.join(" "):void 0;n.style$=y}p=void 0;y={alt:"",preserveHeight:!0,preserveWidth:!0};Y=["yt-core-attributed-string__image-element"];if(E.alignment){a:switch(E.alignment){case "ALIGNMENT_BASELINE":A="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":A="yt-core-attributed-string__image-element--image-alignment-vertical-center";
break a;default:A="yt-core-attributed-string__image-element--image-alignment-bottom"}Y.push(A)}if((p=E.element)==null?0:p.properties)p=[],A=_.C(E.element.properties,rTY),(A==null?0:A.height)&&p.push("height: "+w7(A.height)+";"),(A==null?0:A.width)&&p.push("width: "+w7(A.width)+";"),p=p.length!==0?p.join(" "):void 0,y.style$=p,A=void 0,p=((A=_.C(E.element.properties,j6H))==null?void 0:A.label)||"",y.alt=p;y.className=Y.join(" ");Y=void 0;v=A=void 0;p=((v=E.element)==null?0:v.type)?(A=_.C(E.element.type,
V3Y))==null?void 0:A.image:void 0;G.push(im({run:E,textLength:K,tag:"img",image:p,imageConfig:y,imageWrapperConfig:n,startIndex:E.startIndex,length:(Y=E.length)!=null?Y:0}))}if(q==null?0:q.headerRuns)for(q=_.k(q.headerRuns),M=q.next();!M.done;M=q.next())if(M=M.value,M.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(M.headerMapping)){a:{switch(M.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":E=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":E="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":E="yt-core-attributed-string--heading-3";break a}E=void 0}G.push(im({run:M,textLength:K,tag:"span",config:E?{className:E}:void 0,startIndex:M.startIndex,length:M.length}))}return G};
_.IM=function(M){return(M==null?void 0:M.content)!==void 0};
f94=function(M){return _.IM(M)?M:_.tj(M)};
FIF=function(M){return M.image!==void 0&&M.imageConfig!==void 0};
HfH=function(M,q){if(q==null?0:q.userInput)for(M=_.k(M),q=M.next();!q.done;q=M.next())if(q=q.value,q.tag!=="a"&&q.tag!=="li"){var G=void 0;(G=q).config||(G.config={});q.config.dir=q.tag==="ul"?_.AL().resolve(_.Dg):"auto"}};
ets=function(M){return function(q){var G=M.run;(G.onTap!==void 0||G.onLongPress!==void 0)&&_.C(G,Ebs)&&ztH(q,{loggingDirectives:_.C(G,Ebs)})}};
$R4=function(M){return function(q){for(var G in M)(YI[G]||YI[Hm["default"]])(q,G,M[G])}};
GBF=function(M,q){s7$(q);var G={data:null,start:0,end:M.length,parts:[]};q=_.k(q);for(var K=q.next();!K.done;K=q.next())K=K.value,M7j(G,K.startIndex,K.endIndex,K);qn4(M,G);return G};
M7j=function(M,q,G,K){for(var n=_.k(M.parts),E=n.next();!E.done;E=n.next()){E=E.value;if(typeof E==="string")throw Error("gh");if(E.start<=q&&G<=E.end){M7j(E,q,G,K);return}}M.parts.push({data:K,parts:[],start:q,end:G})};
qn4=function(M,q){for(var G=q.parts.length;G>=0;G--){var K=q.parts[G],n=q.parts[G-1],E=G===q.parts.length?q.end:K.start;n=G===0?q.start:n.end;E!==n&&q.parts.splice(G,0,M.slice(n,E));K&&qn4(M,K)}};
s7$=function(M){M.sort(function(q,G){if(q.startIndex<G.startIndex)return-1;if(G.startIndex<q.startIndex)return 1;q=q.endIndex-q.startIndex;G=G.endIndex-G.startIndex;return q>G?-1:G>q?1:0})};
_.KAD=function(M){var q=M.thumbnails;if(q){M={sources:[]};q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;var K={};K.url=G.url;K.width=G.width;K.height=G.height;M.sources.push(K)}return M}};
nOu=function(M,q,G,K){if(!q)return M.length>=1?M[M.length-1]:null;if(K)for(var n=_.k(M),E=n.next();!E.done;E=n.next()){E=E.value;var p=void 0,y=(p=E.url)==null?void 0:p.indexOf(K);if(y!==void 0&&y>=0)return E}K=_.k(M);for(n=K.next();!n.done;n=K.next())if(n=n.value,n.width&&n.height&&(G&&n.width>=q||!G&&n.height>=q))return n;for(q=M.length-1;q>=0;q--)if(G&&M[q].width||!G&&M[q].height)return M[q];return M[0]};
_.EOi=function(M){var q;return(M=(q=M.sources)==null?void 0:q[0])?M.width/M.height:0};
_.NRF=function(M){if(M.sources){M=_.k(M.sources);for(var q=M.next();!q.done;q=M.next()){q=q.value;var G=void 0;if((G=q.clientResource)==null?0:G.imageName)return q}}};
kBi=function(M){var q;if((q=M.clientResource)!=null&&q.imageColor)return _.C_(M.clientResource.imageColor)};
_.yI$=function(M,q,G,K,n,E,p){if(!q||q.length===0||q[0].clientResource)return null;if(G&&q[0].url)return q[0].url;K===void 0&&(K=!0);if(K){var y;M=pqj*(n||(M==null?void 0:(y=M.getBoundingClientRect())==null?void 0:y.width)||0)}else{var Y;M=pqj*(E||(M==null?void 0:(Y=M.getBoundingClientRect())==null?void 0:Y.height)||0)}q=nOu(q,M,K,p);return(q==null?0:q.url)?q.url:(q==null?0:q.imageData)?q.imageData:null};
LAy=function(M,q,G){G=G?[G]:[];M.opacity&&G.push("opacity: "+M.opacity+";");q&&M.placeholderColor?(M=_.C_(M.placeholderColor),G.push("background-color: "+M+";")):G.push("background-color: transparent;");return G.join(" ")};
Ynu=function(M,q,G,K,n){var E=["ytCoreImageHost"];q&&E.push(q);G||E.push("ytCoreImageFillParentHeight");K||E.push("ytCoreImageFillParentWidth");switch(M.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":E.push("ytCoreImageContentModeScaleAspectFit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":E.push("ytCoreImageContentModeScaleAspectFill");break;case "CONTENT_MODE_CENTER":E.push("ytCoreImageContentModeCenter");break;default:E.push("ytCoreImageContentModeScaleToFill")}M.flipForRtlLayout&&E.push("ytCoreImageFlipRtl");
switch(n){case "TOP_START":var p;E.push(((p=document.body)==null?void 0:p.getAttribute("dir"))==="rtl"?"ytCoreImageObjectPositionTopRight":"ytCoreImageObjectPositionTopLeft")}return E.join(" ")};
AIu=function(M){var q;if(M==null?0:(q=M.clientResource)==null?0:q.imageName){var G;M=(G=M.clientResource)==null?void 0:G.imageName;a:{switch(M){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":G="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":G="yt-logos-ext:yt-logo-updated";break a}G=void 0}return G||WAF.get(M)||M}};
hae=function(M){return _.w("mweb_wiz_skip_render")?ddy(M):vOs(M)};
ddy=function(M){return function(q){var G=fyw("wink-root");KX=M$.lastChild;FhD();ChF(G,_.W(M,q))}};
vOs=function(M){var q=q===void 0?!1:q;return function(G){if(!q||!_.w("mweb_skip_keto_to_c3_if_no_data")||G.data!==void 0){var K=vM(!1);try{var n=G.children;_.w("mweb_render_outside_patch_killswitch")||M$?n?LI(_.W(M,G,n)):LI(_.W(M,G)):_.j1(new _.bj("ketoToC3 called outside of a patch",{tagName:M.TAG_NAME}))}finally{vM(K)}}}};
t7y=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
wqH=function(M,q){M.onViewportEntered=q;OQy.observe(M)};
CkH=function(){var M={rootMargin:"10%",threshold:.01};_.w("mweb_enable_set_io_root_to_null_safari")?M.root=null:_.w("mweb_enable_set_io_root_to_body_safari")&&(M.root=document.body);return new IntersectionObserver(function(q,G){q.filter(function(K){return K.intersectionRect.height>0}).forEach(function(K){K=K.target;
if(!_.w("mweb_enable_only_update_image_when_connected")||K.isConnected!==!1){var n;(n=K.onViewportEntered)==null||n.call(K);G.unobserve(K)}})},M)};
a3e=function(M,q,G,K,n){function E(){if(K){var y=K.loadedClass,Y=K.notifyOnUnloaded;y&&_.um(M,y);Y&&M.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function p(){var y=G(q,M);y&&M.getAttribute("src")!==y&&(_.w("mweb_enable_only_update_image_when_connected")&&M.isConnected===!1||y===M.src||(M.src=y),E())}
n=n===void 0?!0:n;M.removeAttribute("src");E();q&&(n?wqH(M,p):p())};
oOH=function(M,q,G){if(!q)return!1;q=G(q,M);G=M.getAttribute("src");return q&&q===G&&M.complete};
l3s=function(M,q){for(var G in q)G==="className"?M.className=q[G]:(YI[G]||YI[Hm.default])(M,G,q[G])};
Xqs=function(M,q,G,K){hae(_.Jj)({contentMode:q.contentMode,loadedClass:q.loadedClass,isPreloaded:q.isPreloaded,notifyOnLoaded:q.notifyOnLoaded,notifyOnUnloaded:q.notifyOnUnloaded,preferredThumbnail:q.preferredThumbnail,preserveHeight:q.preserveHeight,preserveWidth:q.preserveWidth,objectPosition:q.objectPosition,targetWidth:q.targetWidth,targetHeight:q.targetHeight,shouldShowPlaceholder:q.shouldShowPlaceholder,useWidth:q.useWidth,isToggled:q.isToggled,alt:q.alt,className:q.className,onerror:q.onerror,
onload:q.onload,style$:q.style$,color:q.color,width:q.width,height:q.height,"aria-hidden$":q["aria-hidden$"],draggable:q.draggable,"data-disabled$":q["data-disabled$"],data:M,callback:G,renderLazy:K===void 0?!0:K,hideOn404:!1})};
iQs=function(M,q,G){G=G===void 0?!1:G;var K=M.sources!==void 0?M:_.KAD(M);if(K){var n=q.onload;q.onload=function(Y){var A=Y.target;G&&A.naturalWidth===120||_.Zg(A,"ytCoreImageLoaded");q.notifyOnLoaded&&A.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));n==null||n(Y)};
q.targetWidth&&q.preserveWidth&&(q.width=q.targetWidth);q.targetHeight&&q.preserveHeight&&(q.height=q.targetHeight);var E=_.NRF(K),p=E&&AIu(E);if(p)return(M=kBi(E))&&(q.color=M),{type:"icon",iconName:p,config:Object.assign({},q,q.alt?{}:{"aria-hidden$":"true"},{"aria-label$":q.alt,role:"img"})};if(M.sources===void 0){q.alt=M.accessibility&&M.accessibility.accessibilityData&&M.accessibility.accessibilityData.label||q.alt;q.style$=LAy(M,q.shouldShowPlaceholder,q.style$);var y;q.isPreloaded=!((y=_.C(M,
Pky))==null||!y.isPreloaded)}q.contentMode&&!K.contentMode&&(K.contentMode=q.contentMode);q.className=Ynu(K,q.className,q.preserveHeight,q.preserveWidth,q.objectPosition);q.loadedClass="ytCoreImageLoaded";return{type:"image",image:K,config:q}}};
_.bm=function(){var M=_.rW.apply(0,arguments);return _.yw(cIY,function(q){var G=M.map(function(K){return K==null?void 0:K(q)});
return function(){return void G.forEach(function(K){return void(K==null?void 0:K())})}})};
UE=function(M,q){var G=q==null?void 0:q.initial;return _.gY(function(){_.TL(!0);return G=M(G)},{equals:q==null?void 0:q.isEqual},"rSlKsc")};
gOy=function(M,q){if(M===q)return!0;if(M===void 0||q===void 0)return!1;var G,K,n,E,p,y,Y,A;return M.content===q.content&&((G=M.styleRuns)==null?void 0:G.length)===((K=q.styleRuns)==null?void 0:K.length)&&((n=M.commandRuns)==null?void 0:n.length)===((E=q.commandRuns)==null?void 0:E.length)&&((p=M.attachmentRuns)==null?void 0:p.length)===((y=q.attachmentRuns)==null?void 0:y.length)&&((Y=M.decorationRuns)==null?void 0:Y.length)===((A=q.decorationRuns)==null?void 0:A.length)};
I3$=function(M,q){if(M){var G=f94(M);if(G!=null&&G.content)if(_.w("attr_string_reactive"))hae(BRD)({text:M,config:q});else{var K=!(q==null||!q.ariaLabel)||!(G.commandRuns&&G.commandRuns.length!==0||G.paragraphStyleRuns&&G.paragraphStyleRuns.length!==0);M=K?q==null?void 0:q.ariaLabel:null;K=K?"text":null;KIF("span",{className:DRy(G,q),dir$:(q==null?0:q.userInput)?"auto":void 0,"aria-label$":M,role$:K},function(){if(G.styleRuns||G.commandRuns||G.attachmentRuns||G.decorationRuns||G.paragraphStyleRuns){var n=
Rti(G,q);HfH(n,q);n=GBF(G.content,n);n=_.k(n.parts);for(var E=n.next();!E.done;E=n.next())Q7s(E.value)}else Gyj(G.content)})}}};
Q7s=function(M){typeof M==="string"?Gyj(M):FIF(M.data)?KIF("span",M.data.imageWrapperConfig,function(){Xqs(M.data.image,M.data.imageConfig)}):KIF(M.data.tag,M.data.config,function(q){ets(M.data)(q);
q=_.k(M.parts);for(var G=q.next();!G.done;G=q.next())Q7s(G.value)})};
uki=function(M){return M.parts.map(Ddy)};
Ddy=function(M){if(typeof M==="string")return M;M=FIF(M.data)?_.W("span",{el:_.bm($R4(M.data.imageWrapperConfig))},_.W(_.Jj,Object.assign({},{data:M.data.image},M.data.imageConfig))):_.W(M.data.tag,{el:_.bm(ets(M.data),$R4(M.data.config))},M.parts.map(Ddy));return gU(M)};
JIF=function(M,q){return M===q?!0:M===void 0||q===void 0?!1:M.noStyleRuns===q.noStyleRuns&&M.noLinkColor===q.noLinkColor&&M.noEndpoints===q.noEndpoints&&M.headerRuns===q.headerRuns&&M.isOverlay===q.isOverlay&&M.linkInheritColor===q.linkInheritColor&&M.userInput===q.userInput&&M.isHeadline===q.isHeadline};
ZQj=function(M){return function(){var q,G,K,n,E,p,y,Y,A,v,h,t,O,a;return{ariaLabel:(q=M.ariaLabel)==null?void 0:q.call(M),className:(G=M.className)==null?void 0:G.call(M),ellipsisTruncate:(K=M.ellipsisTruncate)==null?void 0:K.call(M),isOverlay:(n=M.isOverlay)==null?void 0:n.call(M),linkInheritColor:(E=M.linkInheritColor)==null?void 0:E.call(M),noEndpoints:(p=M.noEndpoints)==null?void 0:p.call(M),noStyleRuns:(y=M.noStyleRuns)==null?void 0:y.call(M),noLinkColor:(Y=M.noLinkColor)==null?void 0:Y.call(M),
noPreWrap:(A=M.noPreWrap)==null?void 0:A.call(M),noWrap:(v=M.noWrap)==null?void 0:v.call(M),skipOnClick:(h=M.skipOnClick)==null?void 0:h.call(M),userInput:(t=M.userInput)==null?void 0:t.call(M),headerRuns:(O=M.headerRuns)==null?void 0:O.call(M),isHeadline:(a=M.isHeadline)==null?void 0:a.call(M)}}};
Udy=function(M,q){M=new bQD(M,q);_.T6(M);throw M;};
xdi=function(M,q,G){var K=$Ej(M);M._numRenders=0;try{var n=_.moy(function(){return _.W(q,Object.assign({},G))})}catch(p){var E=function(y){y.args||(y.args=[]);
y.args.push("Error in web component wrapper");y.args.push(M.tagName.toLowerCase());return y};
_.rM(p instanceof Error?E(p):new bQD("Wiz rendering error",M.tagName.toLowerCase()));throw p;}finally{$Ej(K)}return n};
_.S5=function(M,q,G){function K(v){var h={};v=_.k(v);for(var t=v.next();!t.done;t=v.next()){t=t.value;var O=void 0,a=void 0,g=void 0,D=_.nx((g=(a=(O=t).getAttribute)==null?void 0:a.call(O,"slot"))!=null?g:"children");if(O=h[D])O.push(t);else if(D in E||D==="children")h[D]=[t]}v=_.k(Object.keys(h));D=v.next();for(t={};!D.done;t={content$jscomp$59:void 0},D=v.next())D=D.value,D!=="children"&&(t.content$jscomp$59=h[D],h[D]=function(J){return function(){return J.content$jscomp$59}}(t));
return h}
G=G===void 0?{}:G;M.componentType!==ZP||Udy("Components must be marked reactive to be used from web component wrapper.",q);var n,E=(n=G.props)!=null?n:{};r4.add(q);var p=za4();n=function(){var v=p.apply(this,arguments)||this;v.rawProps={};v.queuingRender=!1;v.dispose=function(){};
v.isWebComponentWrapper=!0;v.isReparenting=!1;v.hasRendered=!1;return v};
_.l(n,p);n.prototype.render=function(){this.hasRendered=!0;for(var v=_.k([].concat(_.Ui(this.attributes))),h=v.next();!h.done;h=v.next())h=h.value,h.name!=="slot"&&h.name!=="hidden"&&this.removeAttribute(h.name);v=Object.assign({},this.componentProps,this.slotProps);h=_.k(xdi(this,M,v));v=h.next().value;h=h.next().value;!(v[0]instanceof Element)||v.length>1?Udy("Wrapped Wiz components must return a single root element.",q):(v=v[0].tagName.toLowerCase(),v!==q&&Udy("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(v+" !== '"+q),q),this.dispose=h)};
n.prototype.setUpProps=function(){for(var v=this.rawProps,h=this.attributes,t=_.k(Object.keys(E)),O=t.next();!O.done;O=t.next()){O=O.value;var a=void 0;((a=this)==null?0:a[O])&&this[O]!==mde&&v[O]===void 0&&(v[O]=this[O],(a=Object.getOwnPropertyDescriptor(this.constructor.prototype,O))&&Object.defineProperty(this,O,a))}t=_.k(h);for(O=t.next();!O.done;O=t.next()){a=O.value;O=_.nx(a.name);var g=O==="class"&&!h.getNamedItem("class-name");if(O in E||g)a=a.value===""||a.value==="true"?!0:a.value==="false"?
!1:isNaN(Number(a.value))?a.value:Number(a.value),O!=="class"||v.className?v[O]=a:v.className=a}h={};for(var D in E)E[D]!==_.xj&&E[D]!==SnY&&(v[D]instanceof Function&&Udy("Function props must be configured as STATIC, not SIGNAL.",q),O=_.k(_.lQ(v[D],void 0,"q4ZVff")),t=O.next().value,O=O.next().value,h[D]=O,v[D]=t);v=_.k([v,h]);this.componentProps=v.next().value;this.setters=v.next().value;this.slotProps=K(this.childNodes)};
n.prototype.connectedCallback=function(){TRj===q&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in E&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
n.prototype.disconnectedCallback=function(){if(!this._isInert){var v;a:{if(_.zE)for(v=this;v;){if(_.mY.has(v)){v=!0;break a}v=v.parentElement}v=!1}if(v)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){v=_.k([].concat(_.Ui(this.attributes)));for(var h=v.next();!h.done;h=v.next()){h=h.value;var t=void 0;h.name==="slot"||h.name==="hidden"&&((t=G.unsafeExternallySettableAttributes)==null?0:t.has("hidden"))||this.removeAttribute(h.name)}}this.innerText="";rXy(this)}}};
n.prototype._setPendingPropertyOrPath=function(){};
n.prototype.notifyPath=function(){};
_.Yd.Object.defineProperties(n.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var y=_.k(Object.keys(E)),Y=y.next(),A={};!Y.done;A={prop$jscomp$109:void 0},Y=y.next())A.prop$jscomp$109=Y.value,Y=void 0,((Y=G.legacyPolymer)==null?0:Y.forwardHostProps)&&S1u.has(A.prop$jscomp$109)||Object.defineProperty(n.prototype,A.prop$jscomp$109,{set:function(v){return function(h){var t=this;this._isInert||(this.setters?Bm(function(){var O,a;return void((a=(O=t.setters)[v.prop$jscomp$109])==null?void 0:a.call(O,h))}):(this.rawProps[v.prop$jscomp$109]=h,this.queuingRender&&v.prop$jscomp$109===
"data"&&h!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(A),
get:rIF.has(A.prop$jscomp$109)?void 0:function(){return mde}});
customElements.define(q,n)};
_.j7Y=function(M,q){return(M=_.TE(M,q))?_.by(_.SM(M)):null};
_.r7=function(M){if(M=_.TE(M,Number.MAX_VALUE,void 0,"width"))return _.SM(M)};
_.TE=function(M,q,G,K){K=K===void 0?"width":K;if(!M||!M.length)return null;if(_.w("kevlar_tuner_should_always_use_device_pixel_ratio")){var n=window.devicePixelRatio;_.w("kevlar_tuner_should_clamp_device_pixel_ratio")?n=Math.min(n,_.tL("kevlar_tuner_clamp_device_pixel_ratio")):_.w("kevlar_tuner_should_use_thumbnail_factor")&&(n=_.tL("kevlar_tuner_thumbnail_factor"));V7y=n}else V7y||(V7y=window.devicePixelRatio);n=V7y;_.w("kevlar_tuner_should_always_use_device_pixel_ratio")?q*=n:n>1&&(q*=n);if(_.w("kevlar_tuner_min_thumbnail_quality"))return M[0].url||
null;n=M.length;if(_.w("kevlar_tuner_max_thumbnail_quality"))return M[n-1].url||null;if(G)for(var E=0;E<n;E++)if(M[E].url.indexOf(G)>=0)return M[E].url||null;for(G=0;G<n;G++)if(M[G][K]>=q)return M[G].url||null;for(q=n-1;q>0;q--)if(M[q][K])return M[q].url||null;return M[0].url||null};
FAe=function(){j5.size?setTimeout(function(){Vx(Ray)},0):f3e=0};
Ray=function(){var M=(0,_.d8)(),q=null,G=!1;j5.forEach(function(n){n.loaded=!0;n.loadTime=M;n.pendingPaint=!1;var E=HQe.get(n);E&&E.resolve(M);q=n;G||!n.ftlEligible&&n.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(G=!0)});
var K;((K=q)==null?0:K.markDirty)&&q.markDirty();j5.clear();f3e=0;G&&eaw(M)};
$ds=function(M){j5.add(M);M.pendingPaint=!0;f3e||(f3e=_.RM(_.r8,FAe))};
soF=function(M){M.loaded=!1;M.loadTime=Infinity;var q=HQe.get(M);q&&(q.reject(Error("mh")),HQe.delete(M));M.pendingPaint&&(j5.delete(M),M.pendingPaint=!1)};
_.Mae=function(M){var q=M.indexOf(":");return q===-1?{originalName:M}:{originalName:M.substring(0,q),datasyncId:M.substring(q+1)}};
_.G8i=function(){return _.L(function(M){if(qk$!==void 0)return M.return(qk$);qk$=new Promise(function(q){var G;return _.L(function(K){switch(K.nextAddress){case 1:return _.Cv(K,2),K.yield(_.fl.open("test-only"),4);case 4:return K.yield(_.fl.delete("test-only"),5);case 5:_.KF(K,3);break;case 2:if(G=_.i5(K),G instanceof Error&&G.name==="SecurityError")return q(!1),K.return();case 3:q("caches"in window),_.gL(K)}})});
return M.return(qk$)})};
EGy=function(){return _.L(function(M){if(M.nextAddress==1)return M.yield(_.G8i(),2);if(!M.yieldResult)return M.return(void 0);Kfu||(Kfu=new nGy);return M.return(Kfu)})};
NCj=function(M){var q,G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:return E.yield(EGy(),2);case 2:q=E.yieldResult;if(!q)throw Error("oh");return E.yield(q.open("yt-player-local-img"),3);case 3:return G=E.yieldResult,E.yield(G.match(M),4);case 4:K=E.yieldResult;if(!K)throw Error("ph");return E.yield(K.blob(),5);case 5:return n=E.yieldResult,E.return(n)}})};
k8D=function(M,q){for(var G in M)if(M.hasOwnProperty(G)&&q[G])return G;return null};
p1D=function(M){return"stamp"+M.replace("-","_")+"_"};
y6y=function(M){var q=M.match(/\[\[([\w\.]+)\]\]/);if(q&&q.length>1)return q[1];_.T6(Error("rh`"+M));return null};
LfH=function(M){return M===void 0?_.fX("REUSE_COMPONENTS",!1):M||!1};
A6Y=function(M,q,G){G&&(q.is?(Yky.has(q)&&(M=Yky.get(q),G=M.listener,delete q[M.property],G.type==="element"&&q.removeEventListener(G.eventName,G.handler),Yky.delete(q)),Wfy(q)):q.__proto__==HTMLElement.prototype&&(q=new _.bj("Rendererstamper removed a non custom element","Stamper: "+M+" element: "+(q&&q.nodeName)),_.j1(q)))};
dZF=function(M,q,G,K){var n=q.node?q.node:q;_.f_(G).parentNode===n&&(q.removeChild(G),A6Y(M,G,K));if(M=Fg.get(G))Fg.delete(G),_.r8.cancelJob(M);G.hidden=!1};
vGw=function(M,q,G,K){if(q&&q.children&&(G=q.children[G]))if(_.fX("DEFERRED_DETACH"))for(;G&&!Fg.has(G);){var n=M,E=q,p=G,y=K;p.hidden=!0;n=_.Jp(_.r8,dZF.bind(null,n,E,p,y),0);Fg.set(p,n);G=G.nextElementSibling}else for(;(p=q.lastElementChild)&&(q.removeChild(p),A6Y(M,p,K),p!=G););};
_.Hb=function(){for(var M=_.rW.apply(0,arguments),q=!0,G=_.k(M),K=G.next();!K.done;K=G.next())if(typeof K.value!=="string"){q=!1;break}return q?M.join(" ").trim()||void 0:function(){for(var n="",E=_.k(M),p=E.next();!p.done;p=E.next())if(p=p.value,typeof p==="function"&&(p=p()),p)if(typeof p==="string")n+=" "+p;else for(var y in p)if(p.hasOwnProperty(y)){var Y=p[y];typeof Y==="function"&&(Y=Y());Y&&(n+=" "+y)}n=n.trim()||void 0;return _.TL(n)}};
_.h$y=function(M,q){return _.sX(M.entities,"markersEngagementPanelSyncEntity",q)};
_.e5=function(M,q){return _.sX(M.entities,"playerStateEntity",q)};
tay=function(M,q){return _.sX(M.entities,"fantasyWinProbabilityEntity",q)};
OBu=function(M,q){return _.sX(M.entities,"fantasyTeamEntity",q)};
w1y=function(M,q){return _.sX(M.entities,"fantasyPlayerEntity",q)};
CD$=function(M,q){return _.sX(M.entities,"booleanEntity",q)};
a7j=function(M,q){return _.sX(M.entities,"qrCodeEntity",q)};
oGe=function(M){return _.sX(M.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
X1D=function(M){var q;return(q=l7$[M])!=null?q:"EVENT_SPAN_TYPE_UNKNOWN"};
PDD=function(M){var q=M.nodeName;if(M.id)return q+="#"+M.id;if(M.classList)for(var G=_.k(M.classList),K=G.next();!K.done;K=G.next())q+="."+K.value;M.parentElement&&(q=PDD(M.parentElement)+" > "+q);return q};
iBy=function(M){return function(q){var G=X1D(q.type);return G==="EVENT_SPAN_TYPE_UNKNOWN"?M(q):Xgi("event",{type:G,nodepath:q.target instanceof Element?PDD(q.target):void 0},function(){return M(q)})}};
_.sq=function(M){M&&aMw("event")&&(M=iBy(M));return veD(function(q){var G,K=(G=M)==null?void 0:G(q);return typeof K==="boolean"?K:!0})};
MA=function(M){return function(){return M()?M():void 0}};
Qou=function(M){var q=_.pI("animated-rolling-character"),G=Ias(),K=bG(M.character)||bG(M.previousCharacter),n=_.k(Dos()),E=n.next().value,p=n.next().value;_.SK(function(){if(window.ResizeObserver&&_.w("web_fix_rolling_numbers_zoom_safari")){var y=new _.qA(function(){var A,v,h=Math.round(((v=(A=q.value.querySelector("div"))==null?void 0:A.getBoundingClientRect().height)!=null?v:0)*100)/100;h&&p(h)},500),Y=new ResizeObserver(function(){y.fire()});
Y.observe(q.value);return function(){Y.disconnect();y.dispose()}}});
oDF(function(){var y=_.w("web_fix_rolling_numbers_zoom_safari")?E:M.marginMultiplier;if(y){var Y;(Y=G.value)==null||Y.cancel();K?(Y=M.previousCharacter?Number(M.previousCharacter)+10:M.rollUp?0:30,M.shouldAnimate||(Y-=c6y(M,Y))):(Y=M.rollUp?0:2,M.shouldAnimate||(Y-=M.rollUp?-1:1));q.value.style.marginTop="-"+Y*y+"px";M.shouldAnimate?G.value=gG$(q.value,M,Y,K,y):q.value.style.display=M.character?"":"none"}});
return _.W("animated-rolling-character",{el:q,class:"animatedRollingCharacterHost"},dly(K,function(){for(var y=[],Y=1;Y<30;Y++)y.push(_.W("div",null,Y%10));return _.W(_.dU,null,_.W("div",null,"\u00a0"),y,_.W("div",null,"\u00a0"))},function(){return BCF(M.character)}))};
BCF=function(M){return _.W(_.dU,null,_.W("div",null,"\u00a0"),_.W(_.dU,null,dly(!M||_.Lj(M),function(){return _.W("div",null,"\u00a0")},function(){return _.W("div",null,M)})),_.W("div",null,"\u00a0"))};
gG$=function(M,q,G,K,n){G=new Animation(new KeyframeEffect(M,[{transform:"translateY(0px)"},{transform:"translateY("+(K?c6y(q,G):q.rollUp?-1:1)*n+"px)"}],I7s),document.timeline);q.character?(M.style.display="",G.onfinish=null):G.onfinish=function(){M.style.display="none"};
G.play();return G};
c6y=function(M,q){var G=Number(M.character)+10;if(M.previousCharacter)if(M.character){var K=Number(M.character),n=Number(M.previousCharacter);M=M.rollUp?n<K?G:G+10:n<K?G-10:G}else M=M.rollUp?30:0;else M=M.character==="0"?G:M.rollUp?G-10:G+10;return q-M};
DZy=function(M){return function(q){var G={},K;for(K in q){var n=void 0,E=void 0;((n=void 0)==null?0:(E=n.callbacks)==null?0:E[K])||(G[K]=q[K])}return _.W(zVD,null,function(){for(var p in G)q[p]=_.TL(G[p]);q.disableReactiveLogging=!0;return _.W(M,Object.assign({},q))})}};
ZBY=function(M,q,G,K,n,E,p){G=new Animation(new KeyframeEffect(M,[{transform:"translateY(0px)"},{transform:"translateY("+(E?uqj(q,G,K,n):K?-1:1)*p+"px)"}],J6$),document.timeline);q?(M.style.display="",G.onfinish=null):G.onfinish=function(){M.style.display="none"};
G.play();return G};
uqj=function(M,q,G,K){var n=Number(M)+10;q?M?(M=Number(M),q=Number(q),G=G?q<M?n:n+10:q<M?n-10:n):G=G?30:0:G=M==="0"?n:G?n-10:n+10;return K-G};
UZy=function(M){var q=Ias(),G=Ias();ix$(function(){q.value=M.numberText;G.value=M.numberValue},[M.numberText]);
var K=M.fontSizeMultiplier?M.heightPx*M.fontSizeMultiplier:M.heightPx,n=QfF(function(){if(M.numberText){var p=M.numberText;var y=M.forceRollUp||!G.value||!M.numberValue||G.value<M.numberValue;var Y=!!M.shouldAnimate,A=q.value,v=[],h=0,t=0,O=(A?A.replace(/\D/g,"").length:0)-(p?p.replace(/\D/g,"").length:0);A=A?A.split(/(\d)/).filter(Boolean):[];for(p=p.split(/(\d)/).filter(Boolean);O<0;){var a=p[t];v.push({character:a,rollUp:y,marginMultiplier:K,shouldAnimate:Y});t++;bG(a)&&O++}for(;h<O;)a=A[h],v.push({previousCharacter:a,
rollUp:y,marginMultiplier:K,shouldAnimate:Y}),h++,bG(a)||O++;for(;t<p.length;)O=p[t],a=A[h],bG(O)===bG(a)?(t++,h++):bG(O)?(h++,O=void 0):bG(a)&&(t++,a=void 0),v.push({character:O,previousCharacter:a,rollUp:y,marginMultiplier:K,shouldAnimate:Y});y=v}else y=[];return y},[M.numberText]),E=M.numberText?["height: "+K+"px;",
"line-height: "+M.heightPx+"px;"].join(" "):"";return _.W("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:E,dir:"ltr","aria-hidden":"true"},n.map(function(p){return _.W(bBH,Object.assign({},p))}))};
xZY=function(M){switch(M){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}};
z$y=function(M,q){if(!M&&!q)return"medium";M=Math.max(M||0,q||0);return M>=256?"large":M>=96?"medium":"small"};
mZF=function(M){switch(M){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
Skj=function(M){return new KeyframeEffect(M,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
TC$=function(M){return new KeyframeEffect(M,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.GM=function(M){if(M.length===0)return wUu(M,"D");var q=_.k(wUu({source:function(){return M()},
computation:function(n,E){return(E==null?0:E.value)?M(E.value):n}},"E")),G=q.next().value,K=q.next().value;
q=q.next().value;return[G,K,q]};
_.Kp=function(M){return function(){var q="",G;for(G in M){for(var K=M[G];typeof K==="function";)K=K();K!==void 0&&K!==null&&(q+="; "+G+": "+K)}return q.length>0?_.TL(q.slice(2)):_.TL()}};
r6e=function(M){switch(M){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"}};
jo4=function(M,q){if(q)return"yt-spec-touch-feedback-shape--thumbnail-size-small";if(M)switch(M){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"}};
HBe=function(M,q,G,K,n,E,p){var y=VaH(M),Y=y.disabled,A=y.iconPosition,v=y.style,h=y.focused,t=function(){return!!g()&&A()==="icon-only"},O=function(){return!!g()&&A()==="icon-only-40"},a=function(){return!!g()&&A()==="icon-with-label"},g=function(){return!!q||!(K==null||!K())};
return{type:function(){return v()==="call-to-action-inverse"?"text":v()==="overlay-dark"&&M().type!=="filled"&&M().type!=="tonal"?"tonal":M().type},
shouldFocus:function(){return(h()||(E==null?void 0:E()))&&!Y()},
hasIconLeading:function(){return!!g()&&A()==="leading"},
hasIconTrailing:function(){return!!g()&&A()==="trailing"},
hasIconLeadingTrailing:function(){return!!g()&&!!(G||n!=null&&n())&&A()==="leading-trailing"},
hasIconOnly:t,hasIconOnly40:O,hasIconWithLabel:a,iconButton:function(){return t()||O()||a()},
visiblyDisabled:function(){return(Y()?"disabled":M().state)==="disabled"||Y()},
overrideSmallSizeIcon:function(){return!M().ignoreIconSizeOverride&&R$y(M(),g())},
iconToRender:q?q:function(){return _.W(_.np,{icon:K,gradientColor:function(){var D;return(D=M().customColors)==null?void 0:D.iconGradientColor},
size:function(){return f7H(M(),!0,M().ignoreIconSizeOverride)},
active:function(){return M().toggled},
iconFilter:function(){return Ffy(M())},
animateIcon:p})},
secondaryIconToRender:G?G:function(){return _.W(_.np,{icon:n,size:function(){return f7H(M(),!0,M().ignoreIconSizeOverride)},
active:function(){return M().toggled},
iconFilter:function(){return Ffy(M())}})}}};
VaH=function(M){return{size:function(){return M().size},
style:function(){return M().style},
focused:function(){return M().focused},
disabled:function(){return M().disabled},
onTap:function(q){var G,K;return(K=(G=M()).onTap)==null?void 0:K.call(G,q)},
alignByText:function(){return M().alignByText},
aTagConfig:function(){return M().aTagConfig},
customColors:function(){return M().customColors},
segmentedPosition:function(){return M().segmentedPosition},
toggled:function(){return M().toggled},
toggleable:function(){return M().toggleable},
accessibilityLabel:function(){return M().accessibilityLabel},
onToggle:function(q){var G,K;return(K=(G=M()).onToggle)==null?void 0:K.call(G,q)},
iconPosition:function(){return M().iconPosition},
oneOffCustomTextWrap:function(){return M().oneOffCustomTextWrap},
disableTextEllipsis:function(){return M().disableTextEllipsis},
disableBackdropFilter:function(){return M().disableBackdropFilter},
tooltipText:function(){return M().tooltipText},
tooltipShape:function(){return M().tooltipShape},
ariaHidden:function(){return M().ariaHidden},
tabIndex:function(){return M().tabIndex},
buttonText:function(){return M().buttonText},
formattedButtonText:function(){return M().formattedButtonText},
animatedTextProps:function(){return M().animatedTextProps},
onClickRateLimitMs:function(){return M().onClickRateLimitMs}}};
R$y=function(M,q){q=(M.iconPosition==="icon-only"||M.iconPosition==="icon-only-40"||M.iconPosition==="icon-with-label")&&q;return!M.segmentedPosition&&q&&M.size==="S"};
f7H=function(M,q,G){switch(M.size){case "XS":return 16;case "S":return!G&&R$y(M,q)?24:16;default:return 24}};
e$H=function(M){switch(M){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"}};
$Zu=function(M){switch(M){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"}};
sWF=function(M){switch(M){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"}};
Ffy=function(M){if(M.style==="overlay-dark"&&M.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
Eq=function(M){return M&&M.endsWith("px")?Number(M.slice(0,-2)):0};
Gvw=function(M,q){var G=_.k(_.GM(function(){var n,E;return(E=M())!=null?E:q==null?void 0:(n=q())==null?void 0:n.text})),K=G.next().value;
return[function(n){var E=_.gY(function(){var Y;return Object.assign({},{location:"bottom",offset:16,delay:1},q==null?void 0:q(),{text:(Y=K())!=null?Y:""})},void 0,"IJU38d");
_.zL(function(){var Y=E();_.oY(function(){_.r8.addJob(function(){NA.notify(n,Y)},4)})},"WlsgZc");
var p=function(){MZF(n,E())},y=function(){q$s()};
n.addEventListener("mouseenter",p);n.addEventListener("focus",p);n.addEventListener("mouseleave",y);n.addEventListener("blur",y);n.addEventListener("tap",y);_.m_(function(){n.removeEventListener("mouseenter",p);n.removeEventListener("mouseleave",y);n.removeEventListener("focus",p);n.removeEventListener("blur",y);n.removeEventListener("tap",y);q$s()})},
G.next().value]};
n4j=function(M,q){if(!NT){var G;oIH(function(){return G=UoD(M,q)});
return G}M.parent=KCF();return UoD(M,q)};
KCF=function(){var M=_.pW(NT||void 0,J$w);return _.OFy(M)?void 0:M};
km=function(M,q){_.oM(M,Object.assign({},q,{forceClickLogging:!0}))};
E4F=function(M){switch(M){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"}};
kvu=function(M,q){var G=_.aM(M==null?void 0:M.onTap),K={};G&&(K.getClickedVisualElement=function(){var n;return Nf4(M,G,q==null?void 0:(n=q.value)==null?void 0:n.visualElement)});
K=_.lm({elementsCommand:M.onTap,forceNewState:!0,additionalCommandArgs:K});return Xg(K)?K:void 0};
pwy=function(M,q,G,K){km(M,Object.assign({},{form:{element:q,event:G}},K))};
yWu=function(M,q,G,K,n){var E=void 0;return function(p){var y=_.aM(G?M==null?void 0:M.onDisabledTap:M==null?void 0:M.onTap);if(y){var Y;E=(Y=E)!=null?Y:q==null?void 0:q.value;if(y)if(_.w("web_button_vm_click_client_ve_killswitch"))pwy(y,E,p);else{var A;Y=Nf4(M,y,(A=E)==null?void 0:A.visualElement);if(n){pwy(y,n,p,{clickedVisualElement:Y,form:{element:n}});return}pwy(y,E,p,{clickedVisualElement:Y})}}K&&K(p)}};
Nf4=function(M,q,G){q=q==null?void 0:q.clickTrackingParams;var K,n;M=M==null?void 0:(K=M.loggingDirectives)==null?void 0:(n=K.clientVeSpec)==null?void 0:n.uiType;if(G&&M&&!q)return G};
LCe=function(M){switch(M){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"}};
Y$y=function(M){switch(M){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"}};
WCF=function(M){switch(M){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"}};
AWi=function(M){switch(M){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"}};
_.pp=function(M){return _.gY(function(){szy()();return GVD(M)},{debugName:"d8B62c"},"DEXkhd")};
dFY=function(M,q){return _.sX(M.entities,"engagementToolbarStateEntityPayload",q)};
hhF=function(M){(M=_.yx(M))&&_.v4H(M)};
_.v4H=function(M){var q=_.Cx();q&&_.D_(q,M)};
tZu=function(M,q,G){_.VW(M,"yt-open-popup-action",[q,G||M])};
Oms=function(M,q){var G=_.rU(M,"endpoint"),K=_.rU(M,"action");return(G=K?K:G)&&q&&(G=q.navigationEndpointPopupMap[G])&&(M=_.sx(G,M),(G=_.rU(M,"renderer"))&&q.supportedPopups.hasOwnProperty(G))?{openPopupAction:{popupType:q.popupTypeMap[G],popup:M}}:null};
wwy=function(M,q,G,K){if(K){var n;G=G==null?void 0:(n=G.data)==null?void 0:n.contents;(n=G instanceof Array&&G.length?G[0]:G)&&(G=_.rU(n,"renderer"))&&K.supportedPopups.hasOwnProperty(G)&&(q.stopPropagation(),tZu(M,{openPopupAction:{popupType:K.popupTypeMap[G],popup:n}}))}};
o4y=function(M,q,G,K){K=K===void 0?!1:K;var n=CrF(q);if(n){n.href&&Xw(n.href);var E=q.button;E=E!==void 0?E===0&&!yZ(q):!yZ(q);n.data&&E&&arH(M,n,q,G,K)}};
arH=function(M,q,G,K,n){n=n===void 0?!1:n;var E=_.tL("pbj_navigate_limit",-1)===0;lrs(q);_.AL().resolve(_.WR(M6));var p=q.data;if(Object.keys(p).length!==0)if(!_.w("unplugged_web_disable_actions_for_cec_endpoint")&&_.C(p,_.eP))_.w("endpoint_behavior_command_executor_fix_killswitch")||(G.preventDefault(),G.stopPropagation()),_.FH(M,[p],M);else if(K=Oms(p,K))p.loggingUrls&&p.loggingUrls.forEach(function(Y){Y.baseUrl&&_.M8(Y.baseUrl)}),G.preventDefault(),G.stopPropagation(),tZu(M,K,q);
else{var y=Xww(0,q.data,G);if(M=q.getForm)M=M(),y.tempData=y.tempData||{},y.tempData=Object.assign({},y.tempData,M);M=_.Zx(G);if(K=M.find(function(Y){return!!Y.visualElement}))y.createScreenConfig=y.createScreenConfig||{},y.createScreenConfig.clickedVisualElement=K.visualElement;
if(!E)if(G.preventDefault(),G.stopPropagation(),_.C(p,_.Pr4)&&!n&&_.$A.instance)_.$A.instance.resolveCommand(p,y);else if(_.w("kevlar_command_handler_formatted_string")&&!n&&_.$A.instance&&im$(p))n=M.find(function(Y){return!!Y.is})||G.target,G={form:Object.assign({},y,{event:G,
element:n,originatingNode:q})},_.$A.instance.resolveCommand(p,G);else{p=_.Zx(G);G=[];for(n=0;n<p.length;n++)(E=p[n].is)&&G.push(E);$Aj({parents:G.join(","),text:q.innerText},function(){_.jP(q,"yt-navigate",y)})}}};
cWY=function(M){if(M=CrF(M))lrs(M),G4y(M.href)};
CrF=function(M){M=_.Zx(M);for(var q,G=0;G<M.length;G++)if(q=M[G],q.tagName==="A"&&q.classList.contains("yt-simple-endpoint")){if(!q.data)break;return q}return null};
yZ=function(M){return M.shiftKey||M.altKey||M.metaKey||M.ctrlKey};
g4Y=function(M,q){var G={itct:q.clickTrackingParams};_.w("kevlar_client_side_screens")&&(!_.C(q,_.p_)||_.w("kevlar_exclude_endpoint_killswitch"))&&(G.endpoint=JSON.stringify(q));_.w("enable_unknown_lact_fix_on_html5")&&_.AL().resolve(_.WR(_.Lp))&&(G.lact=_.Ap());sRw(G);_.xD(M,G)};
lrs=function(M){M.href&&Object.keys(M.data).length!==0&&g4Y(M.href,M.data)};
im$=function(M){for(var q=_.k(Bfs),G=q.next();!G.done;G=q.next())if(M[G.value])return!1;return!0};
QWu=function(){if(Ym)return Ym;if(window.lottie)return Ym=Promise.resolve(window.lottie);var M=_.jG(_.R9("LOTTIE_URL"));return M?Ym=new Promise(function(q,G){var K=document.createElement("script");K.addEventListener("load",function(){q(lottie)});
K.addEventListener("error",function(n){var E="Lottie library failed to load.";n?n.message&&(E+=" Original description: "+n.message,_.V2(n,E)):n=Error(E);_.j1(n);G(n)});
K.setAttribute("async","");_.Ei(K,M);document.head.appendChild(K)}):Promise.reject(Error("sh"))};
IrF=function(){return Ym?Ym:QWu()};
DFH=function(M){if(M)switch(M){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.w("kevlar_use_wil_icons"))return M=(M=oGe(_.zw().getState()))&&M.animationLightUrl&&M.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:M.animationLightUrl,pathDarkTheme:M.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,M?M:Wx.get("LIKE");break;case "LIKE_DELHI_PLAYER":return Wx.get("LIKE_DELHI_PLAYER")}};
uV$=function(M){var q=DFH(M);if(q)return q;switch(M){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return Wx.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return Wx.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return Wx.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return Wx.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return Wx.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return Wx.get("NOTIFICATION_BELL")}};
JWD=function(M,q){if(!M.closest)return!1;q=!!DFH(q);return _.R9("ID_TOKEN")&&q?!!M.closest("segmented-like-dislike-button-view-model")||!!M.closest("yt-player-quick-action-buttons"):!1};
bmi=function(M,q){if(!M||Zmi)q=!1;else{var G;if(!(G=JWD(M,q)))if(M.closest)if(G=!_.R9("ID_TOKEN"),M=M.closest("ytd-subscription-notification-toggle-button-renderer-next"),G||!M)G=!1;else{var K;G=((K=M.data)==null?void 0:K.targetId)==="notification-bell"&&q!=="EXPAND_MORE"}else G=!1;q=G}return q};
UFi=function(M){var q,G;return _.L(function(K){switch(K.nextAddress){case 1:return _.Cv(K,2),K.yield(fetch(M),4);case 4:return q=K.yieldResult,K.yield(q.json(),5);case 5:return K.return(K.yieldResult);case 2:G=_.i5(K),_.j1(G),_.gL(K)}})};
xFH=function(M,q){var G,K,n;return _.L(function(E){if(E.nextAddress==1)return(G=q?M.pathDarkTheme:M.path)?E.yield(Promise.all([UFi(G),QWu()]),2):E.return();K=E.yieldResult;n=K[0];AC.set(G,n);_.gL(E)})};
mF$=function(M,q,G,K){function n(p,y){if(q.value===y&&!q.cancelled&&M!=null&&M.value){for(;M.value.firstChild;)M.value.removeChild(M.value.firstChild);M.value.classList.add("ytSpecIconShapeHost");p(M.value,K)}}
var E=_.zh4(_.AL().resolve(_.eo),G);typeof E==="function"?(q.value=null,n(E,null)):(q.value=E,E.then(function(p){n(p,E)}))};
Tfy=function(M,q){var G=document.createElement("div"),K=_.z_(G,function(){return _.W(_.d,{cond:M,then:function(n){return _.W(S$i,{data:n,options:q})}})},"ba");
return[G,K]};
_.dk=function(M,q){if(q){var G={};rWy.forEach(function(K){K=jWy(q,K,"--yt-lightsource-");Object.assign(G,K)});
VZ4.forEach(function(K){K=jWy(q,K,"--yt-basic-");Object.assign(G,K)});
_.sT(M,G)}};
jWy=function(M,q,G){var K={};K[G+_.Kx(q)]=M&&M[q]?_.C_(M[q]):"";return K};
_.hC=function(M,q,G){vx[M]||(vx[M]={});vx[M][q]=G};
_.tC=function(M){vx[M]||(vx[M]={});return vx[M]};
Rhu=function(M){if(!M)return{};var q=M.foregroundTitleColor,G=M.backgroundColor;M=M.borderColor;var K="text";M?K="outline":G&&(K="filled");return{type:K,customColors:{color:q?_.C_(q):void 0,backgroundColor:G?_.C_(G):void 0,borderColor:M?_.C_(M):void 0}}};
$Fs=function(M){var q=M.renderer;var G=M.element;var K=M.commandController;var n=M.onTapCallback;var E=M.skipCommandHandling;var p=M.overrides;var y=M.forceIcon;var Y=M.forceModernIconButton;var A=M.forceDisabled;var v=M.isSubscribe===void 0?!1:M.isSubscribe;var h=M.isPressed===void 0?!1:M.isPressed;var t=M.useButtonSize===void 0?!1:M.useButtonSize;M=fry(q);v&&(M.style="mono",M.type="filled");y=!q.icon||!y&&q.text?q.icon?q.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:Y?"icon-only":"icon-only-40";y==="icon-only-40"&&(M.type="text");var O;Y=Object;v=Y.assign;t=FCD(q,t);h=!!q.isSelected||!_.w("web_propagate_is_pressed_killswitch")&&!!h;var a=q.isSelected!==void 0;A=A===void 0?q.isDisabled:A;var g=q.text?_.tj(q.text):void 0;var D,J,Z,V=((D=q.accessibilityData)==null?void 0:(J=D.accessibilityData)==null?void 0:J.label)||((Z=q.accessibility)==null?void 0:Z.label);D=V?V:_.UX(q.text);G=Hmy(q,G,K,n,E);K=ehD(q);K!=null&&K.length?(K=_.lm({innertubeCommand:CKw(K),
forceNewState:!0}),K=Xg(K)?K:void 0):K=void 0;return v.call(Y,{},M,t,{iconPosition:y},p,{focused:!1,toggled:h,toggleable:a,disabled:A,formattedButtonText:g,accessibilityLabel:D,onTap:G,aTagConfig:K},Rhu((O=q.colorData)==null?void 0:O.basicColorPaletteData),{oneOffCustomTextWrap:q.oneOffCustomTextWrap})};
Hmy=function(M,q,G,K,n){return function(E){var p=ehD(M);K(p,E);if(!n){p=_.k(p);for(var y=p.next();!y.done;y=p.next())km(y.value,{form:{element:q,event:E},commandController:G})}}};
ehD=function(M){var q=[];M.command&&q.push(M.command);M.serviceEndpoint&&q.push(M.serviceEndpoint);M.navigationEndpoint&&q.push(M.navigationEndpoint);return q};
FCD=function(M,q){if(q)switch(M.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(M.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
fry=function(M){switch(M.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"}}};
sCi=function(M,q){return typeof M!=="object"||M===null?!1:Object.keys(q).every(function(G){return G in M})};
_.Oq=function(M){return Object.fromEntries(Object.keys(M).map(function(q){return[q,q]}))};
MOD=function(M,q,G){return s3j(G,function(K,n){return function(E){var p=_.rW.apply(1,arguments);return sCi(E,M)?n.apply(null,[E[q]].concat(_.Ui(p))):n.apply(null,[E].concat(_.Ui(p)))}})};
_.wk=function(M){return function(q,G){return MOD(M,q,G)}};
qJs=function(M,q){var G;return(G=_.sX(M,"playlistLoopStateEntity",q))!=null?G:void 0};
GNi=function(M,q){var G;return(G=_.sX(M,"toggleMenuServiceItemEntity",q))!=null?G:void 0};
_.Cp=function(M){return M!=null&&M.watch?M.watch.isTheaterMode:!1};
_.a2=function(M){return M!=null&&M.watch?M.watch.isWatchFullscreen:!1};
_.o2=function(M){if(_.K2w(M))return!0;M=_.n7y(M);return _.w("web_watch_enable_single_column_grid_view")?M:!1};
_.K2w=function(M){return M.watch.isSwatcherooActive};
_.n7y=function(M){return M.watch.isWatchNarrowWidth};
_.E7y=function(M){return M.watch.openEngagementPanels};
l8=function(M,q){return _.sX(M.entities,"likeStatusEntity",q)};
NSu=function(M,q){return _.sX(M.entities,"likeCountEntity",q)};
_.kNY=function(M,q){return _.sX(M.entities,"stringEntity",q)};
pZe=function(M,q){return _.sX(M.entities,"dataFreshnessEntity",q)};
yBY=function(M,q){if(!M)return!1;var G,K=(G=_.C(M,_.sl))==null?void 0:G.signal;if(K&&q.signalEndpointMap)return!!q.signalEndpointMap[K];var n;if((G=(n=_.C(M,_.XY))==null?void 0:n.request)&&q.continuationEndpointMap)return!!q.continuationEndpointMap[G];for(var E in M)if(q.commandEndpointMap[E])return!0;return!1};
L2u=function(M,q){if(q.streamingEndpointMap)for(var G in M)if(q.streamingEndpointMap[G]&&(M=q.streamingEndpointMap[G]))return M()};
YJF=function(M,q){var G,K=(G=_.C(M,_.sl))==null?void 0:G.signal;if(K&&q.signalEndpointMap&&(G=q.signalEndpointMap[K]))return G();var n;if((G=(n=_.C(M,_.XY))==null?void 0:n.request)&&q.continuationEndpointMap&&(n=q.continuationEndpointMap[G]))return n();for(var E in M)if(q.commandEndpointMap[E]&&(M=q.commandEndpointMap[E]))return M()};
W2e=function(M){var q={"Content-Type":"application/json"};_.R9("EOM_VISITOR_DATA")?q["X-Goog-EOM-Visitor-Id"]=_.R9("EOM_VISITOR_DATA"):_.R9("VISITOR_DATA")&&(q["X-Goog-Visitor-Id"]=_.R9("VISITOR_DATA"));q["X-Youtube-Bootstrap-Logged-In"]=_.R9("LOGGED_IN",!1);_.R9("DEBUG_SETTINGS_METADATA")&&(q["X-Debug-Settings-Metadata"]=_.R9("DEBUG_SETTINGS_METADATA"));if(M!=="cors"){var G=_.R9("INNERTUBE_CONTEXT_CLIENT_NAME");G&&(q["X-Youtube-Client-Name"]=G);(G=_.R9("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(q["X-Youtube-Client-Version"]=
G);(G=_.R9("CHROME_CONNECTED_HEADER"))&&(q["X-Youtube-Chrome-Connected"]=G);(G=_.R9("DOMAIN_ADMIN_STATE"))&&(q["X-Youtube-Domain-Admin-State"]=G)}_.fX("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(M=_.R9("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=M):M!=="cors"&&_.fX("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(M=_.R9("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(q["X-YouTube-Lava-Device-Context"]=M);return q};
ABF=function(M,q){q.watchNextResponse||q.reelItemWatchResponse?q.watchNextResponse?M.content=q.watchNextResponse:M.content=q.reelItemWatchResponse:q.playerResponse?M.player=q.playerResponse:q.reelWatchSequenceResponse&&(M.reelSequence=q.reelWatchSequenceResponse)};
Px=function(M){return function(){return new M}};
i8=function(M){var q=_.AL();return function(){return q.resolve(M)}};
_.cx=function(M){if(!M)return null;for(var q=[],G=0;G<M.textSegments.length;G++){var K=M.textSegments[G];K.text?q.push(K):K.emojiId&&q.push({emoji_id:K.emojiId})}return{text_segments:q}};
OrH=function(M,q,G,K,n,E,p){E=E===void 0?[]:E;var y=new _.gk;y.endpoint=G;if(!G)return _.rM(new _.bj("handle undefined endpoint",q.tagName)),y;var Y=kSY(G);Y.length&&(_.FH(M,Y,q,K),y.actions=Y);G.loggingUrls&&G.loggingUrls.forEach(function(v){v.baseUrl&&q8(v.baseUrl,v.attributionSrcMode)});
Y=!_.w("web_skip_impression_click_killswitch")&&K&&K.impression;if(G.clickTrackingParams&&!d2i(G)&&!v7w(q)&&!Y&&(Y=_.nl(),!_.Bx(Y,q))){var A=q.getScreenLayer&&q.getScreenLayer();A?Y.clickCommand(G,null,A):Y.clickCommand(G,null)}Y=!1;for(A=0;A<E.length;A++)if((0,E[A])(q,G,K)){Y=!0;break}!Y&&h1H(G)&&(y.ajaxPromise=tOy(M,q,G,K,n,p));return y};
v7w=function(M){var q;return(M=(q=M.data)==null?void 0:q.navigationEndpoint)&&!!M.clickTrackingParams};
d2i=function(M){var q=_.C(M,_.sl);if(q&&(q=q.signal)&&wZy.indexOf(q)>=0)return!0;for(var G in M)if(CvH.indexOf(G)>=0)return!0;return!1};
h1H=function(M){var q;if(((q=_.C(M,_.sl))==null?void 0:q.signal)==="CLIENT_SIGNAL")return!1;for(var G in M)if(aYH.indexOf(G)>=0)return!1;M=Object.keys(M);return M.length===1&&M[0]==="loggingUrls"?!1:!0};
QCD=function(M,q,G,K,n,E,p){var y=_.QZ.instance;if(y&&_.I2(y,K))var Y=_.Dt(y,K,n).then(function(v){return(v==null?0:v.data)?v:{data:v}});
else Y=M.requestDataForServiceEndpoint(K,n),_.C(K,o7i)||_.C(K,lYi)||_.C(K,_.XZH)||_.C(K,Pvu)||_.j1(new _.bj("No RequestBuilder for endpoint",K));var A=_.u8();A.promise.thenCatch(function(){var v=_.rU(K,"action")||_.rU(K,"command")||_.rU(K,"endpoint");v&&(v=K[v],v.hasOwnProperty("onFailureAction")?_.FH(q,[v.onFailureAction],G):v.hasOwnProperty("onFailureCommand")&&_.FH(q,v.onFailureCommand,G));Y.cancel("Resolver promise rejected")});
Y.then(function(v){if(v){var h=v.error;if(h){if(E&&E.onServerError)E.onServerError(K,v);A.reject(new _.bj("Response error",K,h))}else if(v=v.data)if(h=v.error){if(E&&E.onServerError)E.onServerError(K,v);A.reject(new _.bj("Returned error",K,h))}else{irw(q,G,v,K);cBD(v);if(h=NxH(v))for(var t=_.k(h),O=t.next();!O.done;O=t.next()){O=O.value;var a=_.AL().resolve(_.WR(g7H))||BSF;if(!_.QZ.instance||!a.some(function(D){return!!_.C(K,D)})||_.w("kevlar_response_processor_allowlist_killswitch")){var g=a=void 0;
((g=_.C((a=O)==null?void 0:a.commandMetadata,_.Mg))==null?0:g.sendPost)?_.fx(q,[O]):_.FH(q,[O],G)}}(t=_.C(v==null?void 0:v.frameworkUpdates,JC))&&p&&p(t);if(E&&E.onSuccess)E.onSuccess(K,v);A.resolve(new _.Zt(v,h))}}else A.reject(new _.bj("Invalid service endpoint provided",K))},function(v){A.reject(v)});
return A.promise};
cBD=function(M){var q;(M=(q=_.C(M==null?void 0:M.onResponseReceivedCommand,_.IY4))==null?void 0:q.continuationItems)&&(M==null?void 0:M.length)===1&&_.C(M[0],D2y)&&_.oJ("so_r",void 0,"search_overview_answer")};
tOy=function(M,q,G,K,n,E){var p;return(p=q.getNetworkManager&&q.getNetworkManager()?q.getNetworkManager():_.AL().resolve(_.WR(_.L_)))?QCD(p,M,q,G,K,n,E):_.Aj("No network manager.")};
irw=function(M,q,G,K){if(G=G.trackingParams||G.loggingDirectives&&G.loggingDirectives.trackingParams){var n;(_.C(K,uyD)||_.C(K,JBj)||_.C(K,Zry))&&K.clickTrackingParams?n=_.yx(K.clickTrackingParams):_.w("web_graft_to_parent_command")&&K.clickTrackingParams&&(n=_.yx(K.clickTrackingParams));var E;K=(E=q.getScreenLayer)==null?void 0:E.call(q);q=_.nl().graftServerVe(G,n,K);_.Rf(M,"yt-store-grafted-ve-action",[q])}};
_.bru=function(M){var q=new Image;return new _.X4(function(G,K){q.addEventListener("load",function(){G()});
q.addEventListener("error",function(){K()});
q.src=M})};
U2D=function(M){return!!M};
x2e=function(M){return!!M};
z1j=function(M,q,G){var K=M.rowIndex;K!==void 0&&_.Rf(M.hostElement,"yt-section-reactive-dismissal",[K,q,G])};
_.b8=function(M,q,G){M=_.k(M);for(var K=M.next();!K.done;K=M.next()){K=K.value;if(K===q)break;for(var n=_.k(G),E=n.next();!E.done;E=n.next())if(E=E.value,K.tagName===E||!_.w("web_event_button_role_check_killswitch")&&K.role==="button"&&E==="BUTTON")return!0}return!1};
_.zM=function(M,q,G){M=_.k(M);for(var K=M.next();!K.done;K=M.next()){K=K.value;if(K===q)break;for(var n=_.k(G),E=n.next();!E.done;E=n.next())if(K.id===E.value)return!0}return!1};
_.TM=function(){var M=_.AL().resolve(_.WR(_.md));return M?(M=M.getCurrentPage())?_.Sc(M):null:null};
_.rk=function(){var M=_.TM();if(!M){var q=_.AL().resolve(_.WR(_.md)),G=q?typeof q:"no page manager";q=q?q.getCurrentPage():null;G=new _.bj("Player is missing when requested.",G,q?q.tagName:"no page");_.T6(G)}return M};
_.Sc=function(M){return M&&M.getPlayer?M.getPlayer():null};
m2D=function(M,q){M={args:{raw_player_response:M}};q&&(M.args=Object.assign({},M.args,q));return M};
SJy=function(M){if(M.args){if(M.args.raw_player_response)return M.args.raw_player_response;if(M.args.player_response)return JSON.parse(M.args.player_response)}};
_.TSe=function(M,q){var G={url:"/watch?v="+M.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};M.playlistId&&(G.url+="&list="+M.playlistId);M.playerParams&&(G.url+="&pp="+M.playerParams);M={watchEndpoint:M,commandMetadata:{webCommandMetadata:G}};q&&(M.clickTrackingParams=q);return M};
jCi=function(){return rB$||!!_.sx("yt.player.Application")};
R1y=function(){return VO$||!!document.querySelector("link#player-css")};
F2y=function(){function M(){rB$=!0;fYi.resolve()}
var q,G;return _.L(function(K){fYi||(fYi=new _.sp,jCi()?M():(q=document.createElement("script"),q.addEventListener("load",M),G=_.bI(_.R9("PLAYER_JS_URL")),_.Ei(q,G),document.head.appendChild(q)));return K.return(fYi.promise)})};
e1y=function(){function M(){VO$=!0;HrY.resolve()}
if(!HrY)if(HrY=new _.sp,R1y())M();else{var q=document.createElement("link");q.id="player-css";q.addEventListener("load",M);var G=_.bI(_.R9("PLAYER_CSS_URL"));_.pv(q,G,"stylesheet");document.head.appendChild(q)}return HrY.promise};
$24=function(){return jCi()&&R1y()?Promise.resolve([]):Promise.all([F2y(),e1y()])};
sVy=function(M,q,G){var K={args:{}};M&&(K.args.raw_player_response=M);q&&(K.args.raw_watch_next_response=q);G&&(K.args=Object.assign({},K.args,G));return K};
K9$=function(M,q,G){var K=!1;K=K===void 0?!0:K;M=typeof M==="string"?_.jc(document,M):M;var n=Mqu+"_"+_.Fi(M),E=qDy[n];if(E&&K)return G0Y(q,G)?E.api.loadVideoByPlayerVars(q.args||null):E.loadNewVideoConfig(q),E.api;E=new VZ(M,n,q,G,void 0);qDy[n]=E;E.addOnDisposeCallback(function(){delete qDy[E.getId()]});
return E.api};
G0Y=function(M,q){return q&&q.serializedExperimentFlags?q.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):M&&M.args&&M.args.fflags?M.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
nBy=function(){var M=new _.sp;M.resolved=!1;var q=M.resolve;M.resolve=function(G){M.resolved=!0;q(G)};
return M};
NOs=function(M){var q={};EBy().install((q.document_disposed={callback:M},q))};
R2=function(M,q){if(!M&&Math.random()<=_.tL("kevlar_unified_player_logging_threshold")){M=Error("uh`"+(q?q:"Unspecified error"));if(_.w("kevlar_unified_player_throw_errors"))throw M;_.j1(M)}};
_.k0Y=function(){var M=_.sx("ytDebugData.callbacks");M||(M={},_.Y5("ytDebugData.callbacks",M));return M};
yGy=function(M,q){var G=_.k0Y();if(_.w("web_dd_iu")||pau.includes(M))G[M]=q};
L9H=function(){return _.L(function(M){return M.return({isLeader:_.Tg4(_.zw().getState()),c:_.R9("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.R9("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
YDy=function(){var M;_.L(function(q){if(q.nextAddress==1)return yGy("APP_STATE",L9H),q.yield(_.AL().resolve(_.fp),2);M=q.yieldResult;yGy("PI",function(){return _.L(function(G){return G.return(M.getVideoStats())})});
_.gL(q)})};
W9y=function(M){return!!M&&M.length>0&&M[0].loggingUrls!=null&&M[0].loggingUrls.length>0};
AGi=function(){var M=_.R9("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(M==null?void 0:M.length)===2?M[1]:null};
dGj=function(M){if(!M)return[];var q=[];M=_.k(M);for(var G=M.next();!G.done;G=M.next())if(G=G.value,G.loggingUrls){G=_.k(G.loggingUrls);for(var K=G.next();!K.done;K=G.next())K=K.value,K.baseUrl&&q.push(K.baseUrl)}return q};
vBs=function(M){var q=_.Uu(_.BF(_.Kj.location.href));M=_.Uu(_.BF(M));return _.w("kevlar_clear_non_displayable_url_params")?q==FY(M):FY(q)==FY(M)};
FY=function(M){var q=_.hjj(M);M=M.slice(0);var G=["frags"];_.w("kevlar_hide_pp_url_param")&&G.push("pp");_.w("kevlar_hide_time_continue_url_param")&&G.push("time_continue");G=_.k(G);for(var K=G.next();!K.done;K=G.next())K=K.value,M=_.zt(_.Uu(M),K);return _.Uu(M)+(q?"#"+q:"")};
Hx=function(M,q){q=Number(q)*1E3;var G=Math.round((0,_.d8)()),K=G.toString();M={innertubeResponse:M,serverDateTimestampMs:K,lastModifiedTimestampMs:K,expireTimestampMs:(G+q).toString()};if(q=_.R9("INNERTUBE_CONTEXT_CLIENT_NAME"))M.clientName=q;return M};
OHe=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++tqj};
way=function(M){return!isNaN(M)&&M>0};
anD=function(){_.w("web_adaptive_repeat_ase")&&CLD&&_.ml("applicationStarted",CLD)};
_.oB$=function(){var M=_.wt(),q=_.Cx();q&&M&&_.J2(q,[M],!0)};
Xay=function(M){return M&&lnj.some(function(q){return M.includes(q)})};
QVi=function(M){var q=_.C(M,_.q6);if(!q)return!1;var G=q.url,K=q.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!G)return _.T6(Error("zh")),!1;if(q.target==="TARGET_NEW_WINDOW"){q={};_.w("resolve_url_parent_tracking_params")&&(!_.pD(G)||ye(window.location.href,G))&&(q={endpoint:M,itct:M.clickTrackingParams});sRw(q);M=null;try{if(K){a:{var n=G,E=q;K=K===void 0?!1:K;E&&_.xD(n,E);var p=_.SM(n),y=_.by(p);n!=y&&_.Mz(Error("Yf`"+n));n=y;try{if(K){y=n;y=T4s(y);Xw(y);M=_.si(window,y,"_blank",
"attributionsrc");break a}}catch(t){_.eK(t)}Xw(n);M=_.si(window,p,"_blank")}PL$(_.AL().resolve(iH4),M,G);return!0}}catch(t){_.T6(t)}_.xD(G,q);q={target:"_blank",noopener:!1};p=window;y=ZC(G)?G:_.SM(typeof G.href!="undefined"?G.href:String(G));K=self.crossOriginIsolated!==void 0;M="strict-origin-when-cross-origin";window.Request&&(M=(new Request("/")).referrerPolicy);n=q.noreferrer;if(K&&n&&M==="unsafe-url")throw Error("ve");M=n&&!K;n=q.target||G.target;E=[];var Y=[],A=!1;for(h in q){var v=q[h];switch(h){case "width":case "height":case "top":case "left":E.push(h+
"="+v);break;case "target":break;case "noopener":case "noreferrer":v?Y.push(h):(A=!0,Y.push(h+"=false"));break;case "attributionsrc":E.push(h+(v?"="+v:""));break;default:E.push(h+"="+(v?1:0))}}var h=n!==void 0&&!["_blank","_self","_top","_parent",""].includes(n);h=Py()&&h;cGu&&K&&E.length===0&&Y.length>0&&!h&&!A?(Y.length===2&&(Y=["noreferrer"]),_.si(p,y,n,Y[0]),M=gB$()):(h=E.join(","),_.Iy()&&p.navigator&&p.navigator.standalone&&n&&n!="_self"?(h=_.iI("A"),Vk(h,y),h.target=n,M&&(h.rel="noreferrer"),
((q=q.attributionsrc)||q==="")&&h.setAttribute("attributionsrc",q),q=document.createEvent("MouseEvent"),q.initMouseEvent("click",!0,!0,p,1),h.dispatchEvent(q),h=gB$()):M?(h=_.si(p,"",n,h),p=_.by(y),h&&(h.opener=null,p===""&&(p="javascript:''"),p='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+ec(p)+'">',p=Ht(p),(q=h.document)&&q.write&&(q.write(eM(p)),q.close()))):((h=_.si(p,y,n,h))&&q.noopener&&(h.opener=null),h&&q.noreferrer&&(h.opener=null)),M=h);PL$(_.AL().resolve(iH4),
M,G);return!0}h=_.ij(G);h=Xay(h)||G==="https://studio.youtube.com/";if(_.pD(G)&&!ye(window.location.href,G)||h)Xw(G),h2(),_.PE(G,void 0,void 0,window.top,BO$);else return _.j1(new _.bj("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",M)),!1;return!0};
_.uEe=function(M,q){q=q===void 0?0:q;if(!(_.C(M,Iny)||_.C(M,DGy)||_.C(M,_.q6)&&_.C(M,_.q6).url))return!1;var G,K=(G=_.C(M,_.q6))==null?void 0:G.url;G=K?{externalLinkData:{url:K}}:null;return _.nl().clickCommand(M,G,q)};
ZHF=function(M,q,G,K,n){n=n===void 0?{}:n;return function(E){var p,y;var Y=((p=M.loggingDirectives)==null?0:(y=p.clientVeSpec)==null?0:y.uiType)?_.$m(M.loggingDirectives.clientVeSpec.uiType):void 0;n.clickedVisualElement||(n.clickedVisualElement=Y);Y=JGH(M,q);G(Y,E);Y=_.k(Y);for(p=Y.next();!p.done;p=Y.next()){p=p.value;y=K;var A=E,v=n;v.form?v.form.event=A:v.form={element:y,event:A};km(p,v)}}};
JGH=function(M,q){var G=[];q?(M.toggledCommand&&G.push(M.toggledCommand),M.toggledServiceEndpoint&&G.push(M.toggledServiceEndpoint)):(M.defaultCommand&&G.push(M.defaultCommand),M.defaultServiceEndpoint&&G.push(M.defaultServiceEndpoint),M.defaultNavigationEndpoint&&G.push(M.defaultNavigationEndpoint));return G};
bH4=function(M,q){var G=M.toggledStyle||M.style,K;switch((K=q?G:M.style)==null?void 0:K.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"}}};
_.s0=function(){return _.L(function(M){return M.nextAddress==1?M.yield(_.AL().resolve(_.fp),2):M.return(_.AL().resolve(UGy)())})};
_.Mo=function(){return _.AL().resolve(UGy)()};
_.qo=function(){return T_(function(){return{lottieEl:void 0}})};
xGY=function(M,q){return M.startsWith(q.uniqueId)};
zjF=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(_.s0(),2);q=K.yieldResult;if((G=q)==null||!G.addEventListener)return GS(),K.return();q.addEventListener("onCueRangeEnter",M);_.gL(K)})};
mGy=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(_.s0(),2);q=K.yieldResult;if((G=q)==null||!G.removeEventListener)return GS(),K.return();q.removeEventListener("onCueRangeEnter",M);_.gL(K)})};
SDy=function(M){var q,G,K,n,E;_.L(function(p){if(p.nextAddress==1)return p.yield(_.s0(),2);q=p.yieldResult;if((G=q)==null||!G.addCueRange)return GS(),p.return();K=_.k(M.timings);for(n=K.next();!n.done;n=K.next())E=n.value,q.addCueRange(M.uniqueId+"-"+E,E/1E3,(E+100)/1E3);_.gL(p)})};
TOe=function(M){var q,G,K,n,E;_.L(function(p){if(p.nextAddress==1)return p.yield(_.s0(),2);q=p.yieldResult;if((G=q)==null||!G.removeCueRange)return GS(),p.return();K=_.k(M.timings);for(n=K.next();!n.done;n=K.next())E=n.value,q.removeCueRange(M.uniqueId+"-"+E);_.gL(p)})};
rGs=function(){var M,q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(_.s0(),2);M=K.yieldResult;if((q=M)==null||!q.getPlayerState)return GS(),K.return();G=M.getPlayerState();return K.return(G===2)})};
GS=function(){_.j1(new _.bj("Smartimation player does not exist or is corrupted"))};
jVF=function(){try{var M;return(M=window.CSS)!=null&&M.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(q){return _.j1(new _.bj("Smartimation CSS.supports threw an error")),!1}};
$GF=function(M,q,G,K,n){var E=M.playlistId?Vqu:Rjw;q=q();G=G();n=!!M.videoId&&n()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.pK(q))return fnY({data:M,actionType:E,disabled:n},G);if(M.videoId&&K())return F9w({data:M,actionType:E,disabled:n});switch(q){case "TRANSFER_STATE_UNKNOWN":return F9w({data:M,actionType:E,disabled:n});case "TRANSFER_STATE_FAILED":return M.videoId?HHF({data:M,actionType:E,disabled:n}):eje({data:M,actionType:E,disabled:n});case "TRANSFER_STATE_COMPLETE":return eje({data:M,
actionType:E,disabled:n});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return fnY({data:M,actionType:E,disabled:n},G);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return M.videoId?HHF({data:M,actionType:E,disabled:n}):F9w({data:M,actionType:E,disabled:n});default:return F9w({data:M,actionType:E,disabled:n})}};
sPs=function(M,q){var G=M.onTapCommand,K=_.aM(G);if(M.videoId&&_.C(K,_.KL))return _.C(K,_.KL).action=q,G;M.playlistId&&_.C(K,_.E0)&&(_.C(K,_.E0).action=q);return G};
F9w=function(M){var q=M.data;var G=M.actionType;M=M.disabled;return{text:MiD,iconType:"OFFLINE_DOWNLOAD",onTap:sPs(q,G.ACTION_ADD),disabled:M}};
fnY=function(M,q){var G=M.data;var K=M.actionType;M=M.disabled;var n="OFFLINE_DOWNLOAD";q>=0&&q<=.1?n="OFFLINE_DOWNLOADING_ZERO":q>.1&&q<=.3?n="OFFLINE_DOWNLOADING_TWENTY":q>.3&&q<=.5?n="OFFLINE_DOWNLOADING_FORTY":q>.5&&q<=.7?n="OFFLINE_DOWNLOADING_SIXTY":q>.7&&q<1?n="OFFLINE_DOWNLOADING_EIGHTY":q===1&&(n="OFFLINE_PIN");return{text:qaw,iconType:n,onTap:sPs(G,K.ACTION_REMOVE_WITH_PROMPT),disabled:M}};
eje=function(M){var q=M.data;var G=M.actionType;M=M.disabled;return{text:GYF,iconType:"OFFLINE_PIN",onTap:sPs(q,G.ACTION_REMOVE_WITH_PROMPT),disabled:M}};
HHF=function(M){var q=M.data;var G=M.actionType;M=M.disabled;return{text:KuY,iconType:"OFFLINE_DOWNLOAD",onTap:sPs(q,G.ACTION_RETRY),disabled:M}};
_.No=function(M,q){var G=szy();return _.gY(function(){G();return GVD(M,[_.TL(q)||""])},{debugName:"LUZslf"},"Z105t")};
nYy=function(M){var q=_.No(_.Xp,function(){return M().videoId}),G=_.No(_.Ps,function(){return M().playlistId});
return function(){return M().videoId?q:M().playlistId?G:_.k(_.lQ("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
EYF=function(M){var q=_.No(ic,function(){return M().videoId}),G=_.No(_.SHD,function(){return M().playlistId});
return function(){return M().videoId?q:M().playlistId?G:_.k(_.lQ(0,void 0,"K4tgOc")).next().value}};
NVF=function(M){var q=_.No(_.eCw,function(){return M().videoId});
return function(){return M().videoId?q:_.k(_.lQ(!1,void 0,"Oaxwcf")).next().value}};
kYY=function(M){var q=_.No(jGy,function(){return M().videoId});
return function(){return M().videoId?q:_.k(_.lQ("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
poD=function(){return{}};
_.AOu=function(M,q,G){return{submitForm:function(){var K,n,E,p;return _.L(function(y){if(y.nextAddress==1){K=yOy(M());if(!K)return y.return();if(K.onSubmit)return LuF(q),K.onSubmit(),LuF(G),y.return();if(!K.submitConfig||!K.formData)return y.jumpTo(0);K.disableDuringSubmission&&Yaw(M(),!0);LuF(q);return y.yield(Wuy(K.submitConfig,K.formData()),3)}n=y.yieldResult;LuF(G);if(((E=n)==null?0:E.submitResult)&&((p=K)==null?0:p.onSubmitResult))K.onSubmitResult(n.submitResult);K.disableDuringSubmission&&Yaw(M(),
!1);return y.return()})},
isValid:function(){var K=yOy(M());if(K){var n;return!((n=K.isValid)==null||!n.call(K))}return!0},
isSubmitting:function(){var K,n;return!!((K=yOy(M()))==null?0:(n=K.isSubmitting)==null?0:n.call(K))}}};
_.ke=function(){if(!dmi){var M=_.k(_.lQ(new Map,void 0,"Y1XnBc"));dmi=M.next().value;vYY=M.next().value}return dmi};
_.hRY=function(M){vYY(new Map(M))};
yOy=function(M){if(M)return _.ke()().get(M)};
Wuy=function(M,q){var G;return _.L(function(K){return K.nextAddress==1?q?(G=_.AL().resolve(_.WR(tiy)))&&M.submitId?K.yield(G.submitForm(M.submitId,q,OdF,M.params,M.clickTrackingParams),2):K.return(Promise.reject(Error("Bh"))):K.return(Promise.reject(Error("Ah"))):K.return(K.yieldResult)})};
Yaw=function(M,q){if(M){var G=_.ke();G().set(M,Object.assign({},G().get(M),{isSubmitting:function(){return q}}));
_.hRY(G())}};
LuF=function(M){if(M){var q=_.AL().resolve(_.vR);q&&(M=_.aM(M()))&&q.resolveCommand(M)}};
aNy=function(M,q){q=q===void 0?{shouldPersist:!0}:q;return{useUpdatableData:function(G,K){var n=_.gY(function(){return M(G())},void 0,"Gmrblb"),E=wo$(G,n,K,q);
_.zL(function(){if(n()!=null){Cpu.set(n(),E);var p=n();_.m_(function(){Cpu.delete(p)})}},"j4hx9b");
return E},
getData:function(G){var K;return(K=Cpu.get(M(G)))==null?void 0:K[0]()},
updateData:function(G,K){G=M(G);G=Cpu.get(G);if(!G)return!1;var n=_.k(G);G=n.next().value;n=n.next().value;K=K(G());n(K);return!0}}};
wo$=function(M,q,G,K){K=K===void 0?{}:K;var n=_.k(_.GM(function(){var y=M(),Y=q();return oYu(y,Y,G,K)})),E=n.next().value,p=n.next().value;
return[E,function(y){p(y);var Y=q();if(K.shouldPersist&&Y!=null){var A,v=(A=G==null?void 0:G.map(function(h){return h()}))!=null?A:[];
_.pL.set(Y,[y,v])}}]};
oYu=function(M,q,G,K){K=K===void 0?{}:K;if(q==null||!K.shouldPersist)return M;K=_.pL.get(q);if(!K)return M;var n=_.k(K);K=n.next().value;var E=n.next().value,p;n=(p=G==null?void 0:G.map(function(y){return y()}))!=null?p:[];
if((E==null?0:E.length)&&(G==null?0:G.length)&&n.some(function(y,Y){return y!==E[Y]}))return _.pL.remove(q),M;
(G==null?0:G.length)&&_.pL.set(q,[K,n]);return K};
lNH=function(M){var q=_.k(_.lQ(!0,void 0,"bKtO6d")),G=q.next().value;q.next();return function(){var K=gU(M.children());return _.W(_.d,{cond:G,then:function(){return K},
else:M.fallback})}()};
_.yu=function(M){var q=XoF(M),G=q.data,K=q.mapping,n=q.wrapper;q=q.pendingFallback;var E=function(){return PpF(_.TL(G))},p=function(){var y=E(),Y=[];
y=_.k(y);for(var A=y.next();!A.done;A=y.next()){var v=void 0;A=A.value;var h=void 0;for(v in A)if(!(!A).hasOwnProperty(v)){h=v;break}(v=h)&&Y.push(v)}return Y};
return M.data?_.W(lNH,{fallback:q},function(){return _.W(_.bf,{each:p},function(y,Y){var A=n?function(h){return n(function(){return K[y](h,Y)},v,Y)}:function(h){return K[y](h,Y)};
A.debugName||(A.debugName=String(y));if(!K[String(y)])return document.createComment("");A.componentType!==ZP&&idj(String(y));var v=cOe(E,y,Y);return _.W(A,{data:v})})}):_.W(_.dU,null)};
XoF=function(M){var q=M.targetId||gYy(M.children);if(!M.data||!q)return Object.assign({},M,{mapping:M.children,wrapper:void 0});var G="stamper-"+BVw++,K=function(){var y;return(y=typeof M.targetId==="function"?M.targetId(G):M.targetId)!=null?y:G};
q=_.k(QPy(function(){var y=PpF(M.data());y.targetId=K;return y})).next().value;
var n=Object.assign({},(_.AL().resolve(_.WR(INy))||{}).replaceableMapping,M.children);if(M.replacementWrapper){var E=n.notificationTextRenderer,p=n.notificationMultiActionRenderer;E&&(n.notificationTextRenderer=function(y,Y){return M.replacementWrapper(E({data:y.data},Y))});
p&&(n.notificationMultiActionRenderer=function(y,Y){return M.replacementWrapper(p({data:y.data},Y))})}return Object.assign({},M,{data:q,
mapping:n,wrapper:function(y,Y,A){return n4j({targetId:K,stamperIndex:A},y)}})};
cOe=function(M,q,G){var K;return _.gY(function(){var n=M()[G()];if(n)K=n[q];else return _.j1(new _.bj("Stamper failed to find "+String(q)+" at index "+G()+" of data array of length "+(M().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),K;return n[q]},void 0,"Md3d6e")};
gYy=function(M){M=_.k(Object.keys(M));for(var q=M.next();!q.done;q=M.next())if(q=q.value,Dmy.includes(q)||uoy.includes(q)||JOe.includes(q))return!0;return!1};
PpF=function(M){return M?Array.isArray(M)?M:[M]:[]};
idj=function(M){if(_.w("web_enable_renderer_logger")){var q;(q=_.AL().resolve(_.WR(Zd$)))!=null&&q.loggingEnabled&&!q.ids.has(M)&&q.ids.add(M)}};
bdY=function(){var M,q;return(q=(M=_.AL().resolve(_.WR(_.Qx)))==null?void 0:M())!=null?q:!1};
xms=function(M,q){M=M===void 0?UmH:M;switch(q.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},M,{isOpen:q.payload});default:return M}};
mmw=function(M,q){M=M===void 0?zRs:M;switch(q.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},M,{isAllowed:q.payload});default:return M}};
TVi=function(M,q){M=M===void 0?Sau:M;switch(q.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},M,{errorMessage:q.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},M,{title:q.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},M,{privacy:q.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},M,{isDisabled:q.payload});default:return M}};
jPy=function(M,q){M=M===void 0?rOi:M;switch(q.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},M,{isOpen:q.payload});default:return M}};
RR$=function(M,q){M=M===void 0?ViF:M;switch(q.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},M,{isFullscreen:q.payload});case "SET_NAVIGATION_BUTTON":var G=q.payload.targetId,K=Object.assign({},M.navigationButtons);K[G]=q.payload.button;return Object.assign({},M,{navigationButtons:K});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},M,{topPanelId:q.payload});case "SET_SECONDARY_HEADER":return G=q.payload.panelId,K=Object.assign({},M.secondaryHeader),K[G]=q.payload.secondaryHeader,
Object.assign({},M,{secondaryHeader:K});default:return M}};
eRy=function(){return gh(Object.assign({},{voiceSearch:C4e,engagementPanel:RR$,bottomSheet:xms,cinematicSetting:mmw,shorts:g8w,drawerLayout:jPy,createPlaylist:TVi,locationCollection:fNs,reportChannel:Fuu,reportForm:HdH},Bns))};
$mF=function(M,q){_.r8.addLowPriorityJob(function(){var G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:return _.Cv(E,2),E.yield(QWu(),4);case 4:return E.yield(fetch(M),5);case 5:return G=E.yieldResult,E.yield(G.json(),6);case 6:K=E.yieldResult;AC.set(M,K);requestAnimationFrame(function(){q(K)});
_.KF(E,0);break;case 2:n=_.i5(E),_.j1(n),_.gL(E)}})})};
sa4=function(M){var q={animationConfig:{},listeners:{}},G=function(){M(!0)};
q.listeners.data_failed=G;q.listeners.error=G;q.listeners.data_ready=function(){M(!1)};
return q};
GPu=function(M){var q=M.model;var G=M.subscribed;var K=M.isOverlay;var n=M.element;var E=M.commandController;var p=M.notificationState;if(G){var y,Y;var A=(q==null?void 0:(y=q.buttonStyle)==null?void 0:y.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:q==null?void 0:(Y=q.unsubscribeButtonContent)==null?void 0:Y.buttonText}else{var v;A=q==null?void 0:(v=q.subscribeButtonContent)==null?void 0:v.buttonText}a:{var h;switch(q==null?void 0:(h=q.buttonStyle)==
null?void 0:h.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":y="S";break a;default:y="M"}}a:if(K)K="overlay";else switch(q.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":K="overlay";break a;default:K="mono"}a:if(G)var t="tonal";else switch((t=q.buttonStyle)==
null?void 0:t.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":t="tonal";break a;default:t="filled"}return{style:K,type:t,state:q.disableSubscribeButton?"disabled":"active",size:y,focused:M.focused,toggled:G,accessibilityLabel:MYu(q,G,p),buttonText:A,iconPosition:q.disableNotificationBell?"none":"leading-trailing",onTap:qdy(q,G,n,E),disableTextEllipsis:!!M.disableTextEllipsis}};
qdy=function(M,q,G,K){return function(n){if(q){var E;var p=M.disableNotificationBell?_.aM(M==null?void 0:(E=M.unsubscribeButtonContent)==null?void 0:E.onTapCommand):_.aM(M==null?void 0:M.onShowSubscriptionOptions)}else{var y;p=_.aM(M==null?void 0:(y=M.subscribeButtonContent)==null?void 0:y.onTapCommand)}p&&km(p,{form:{element:G==null?void 0:G.value},commandController:K});n.stopPropagation()}};
MYu=function(M,q,G){if(q){if(M==null?0:M.disableNotificationBell){var K;return M==null?void 0:(K=M.unsubscribeButtonContent)==null?void 0:K.accessibilityText}switch(G){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var n;return M==null?void 0:(n=M.bellAccessibilityData)==null?void 0:n.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var E;return M==null?void 0:(E=M.bellAccessibilityData)==null?void 0:E.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var p;return M==null?void 0:(p=
M.bellAccessibilityData)==null?void 0:p.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var y;return M==null?void 0:(y=M.bellAccessibilityData)==null?void 0:y.disabledLabel;default:var Y;return M==null?void 0:(Y=M.unsubscribeButtonContent)==null?void 0:Y.accessibilityText}}else{var A;return M==null?void 0:(A=M.subscribeButtonContent)==null?void 0:A.accessibilityText}};
K0$=function(M,q){return _.sX(M.entities,"subscriptionStateEntity",q)};
nXy=function(M,q){return _.sX(M.entities,"subscriptionNotificationStateEntity",q)};
EXi=function(M,q){return _.sX(M.entities,"upcomingEventReminderStateEntity",q)};
NDy=function(M,q){return _.sX(M.entities,"commentEntityPayload",q)};
kP$=function(M,q){return _.sX(M.entities,"engagementToolbarSurfaceEntityPayload",q)};
p6u=function(M,q){return _.sX(M.entities,"triStateButtonStateEntityPayload",q)};
yyH=function(M,q){return _.sX(M.entities,"commerceCartCheckoutButtonEntity",q)};
L04=function(M,q){return _.sX(M.entities,"commandEntity",q)};
Yde=function(M){if(M){switch(M){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":M="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":M="NOTIFICATIONS_OFF";break;default:M="NOTIFICATIONS_NONE"}return M}};
W0F=function(M,q,G){G.subscribed!==q&&((G=G.key)&&_.Zp(_.LL("subscriptionStateEntity",G,{key:G,subscribed:q})),M.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:q})),q||_.VW(M,"yt-unsubscribe-action"))};
vXY=function(M){M=_.C(_.aM(M),_.Ayy);var q,G,K,n;return(n=_.C(M==null?void 0:(q=M.panelLoadingStrategy)==null?void 0:(G=q.inlineContent)==null?void 0:(K=G.sheetViewModel)==null?void 0:K.content,dfs))==null?void 0:n.listItems};
hcF=function(M,q){if(M.onShowSubscriptionOptions&&q&&(M=vXY(M.onShowSubscriptionOptions),M!=null&&M.length)){var G=Yde(q);M.forEach(function(K){K=_.C(K,_.Ye);var n,E,p,y,Y=K==null?void 0:(n=K.leadingImage)==null?void 0:(E=n.sources)==null?void 0:(p=E[0])==null?void 0:(y=p.clientResource)==null?void 0:y.imageName;K&&Y&&(K.isSelected=Y===G)})}};
tY4=function(M,q,G,K){q&&G?M.style.width=G+"px":!q&&K&&(M.style.width=K+"px")};
OqH=function(M,q,G){var K;(K=M.lottieEl)==null||K.goToAndPlay(0);var n;(n=q.lottieEl)==null||n.goToAndPlay(0);_.WO(_.r8,function(){var E;(E=G.lottieEl)==null||E.goToAndPlay(0)},300)};
w6j=function(M){return!(M==null||!M.iconName||(M==null?0:M.title))};
CXi=function(M,q,G,K){G&&_.r8.cancelJob(G);G=_.r8.addLowPriorityJob(function(){K(void 0)},5E3);
K(G);q&&M!==(q.likeStatus==="LIKE")&&q.key&&_.Zp(_.LL("likeStatusEntity",q.key,{key:q.key,likeStatus:M?"LIKE":"INDIFFERENT",hadUserInteraction:M}))};
_.aow=function(M,q){return _.sX(M.entities,"accountLinkStatusEntity",q)};
oXi=function(M,q){return _.sX(M.entities,"hatsSurveyEntity",q)};
loY=function(M,q){return _.sX(M.entities,"hatsSurveyStateEntity",q)};
X6u=function(M,q){return _.sX(M.entities,"quantityIncrementerEntity",q)};
PXe=function(M){switch(M){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}};
iqj=function(M){switch(M){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}};
cyy=function(M){switch(M){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"}};
_.BDY=function(M){var q=_.tL("web_generic_client_event_wait_period ",0);q||(q=3E5);var G=gXw.get(M);!_.w("enable_web_client_experiment_event_timeout_killswitch")&&G&&(0,_.d8)()-G<q||(gXw.set(M,(0,_.d8)()),_.ml("genericClientExperimentEvent",{eventType:M}))};
_.QaH=function(M,q){var G,K,n,E;a:{var p=M.style;if(p===void 0)p=17;else switch(p){case "LIVE":p=18;break a;default:p=17}}return{type:p,text:q?GUF({seconds:q}):_.UX(M.text),accessibilityText:(G=M.text)==null?void 0:(K=G.accessibility)==null?void 0:(n=K.accessibilityData)==null?void 0:n.label,icon:(E=M.icon)==null?void 0:E.iconType}};
IoF=function(M){switch(M){case "small":return"ytCollectionsStackCollectionStack1Small";case "medium":return"ytCollectionsStackCollectionStack1Medium";case "large":return"ytCollectionsStackCollectionStack1Large";default:return""}};
Dfy=function(M){if(!M)return"";var q,G=(q=_.AL().resolve(_.WR(_.Qx)))==null?void 0:q(),K;if(!G&&((K=M.vibrantColorPalette)==null?0:K.iconInactiveColor))return ar(M.vibrantColorPalette.iconInactiveColor,"1");var n;return G&&((n=M.darkColorPalette)==null?0:n.iconInactiveColor)?ar(M.darkColorPalette.iconInactiveColor,"1"):M.color?ar(M.color,"1"):M.sampledThumbnailColor?(M=M.sampledThumbnailColor,"rgba("+M.red+","+M.green+","+M.blue+");"):""};
_.A$=function(M,q){if(!M.includes("DATE_PLACEHOLDER"))return M;var G=new Date(0);G.setUTCSeconds(q);return M.replace("DATE_PLACEHOLDER",uhi(G))};
JyD=function(M,q,G){return function(K){var n=M.command;n&&(km(n,{form:{element:G}}),q([n],K))}};
bqw=function(M,q,G,K,n){return function(E){var p=Zqy(M,q);p&&km(p,{form:{element:G},commandController:K});n&&E.stopPropagation()}};
Zqy=function(M,q){if(M.signInEndpoint&&!_.w("web_subscribe_sign_in_endpoint_killswitch"))return M.signInEndpoint;if(q){if(M.serviceEndpoints)return M.serviceEndpoints[1];if(M.onUnsubscribeEndpoints)return M.onUnsubscribeEndpoints[0]}else{if(M.serviceEndpoints)return M.serviceEndpoints[0];if(M.onSubscribeEndpoints)return M.onSubscribeEndpoints[0]}};
Ufy=function(M,q){var G,K,n,E;q=q&&((G=M.unsubscribeAccessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label)||((n=M.subscribeAccessibility)==null?void 0:(E=n.accessibilityData)==null?void 0:E.label);return M.longSubscriberCountText?[q,_.UX(M.longSubscriberCountText)].filter(function(p){return p}).join(" "):q};
dx=function(M,q){return q||(M==null?0:M.isChannelDelegate)?"disabled":"active"};
xfy=function(M,q){var G;switch((G=M.style)==null?void 0:G.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:dx(M)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:dx(M)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:dx(M,!0)};case "OVERLAY":return q?{style:"overlay",type:"tonal",state:dx(M)}:{style:"overlay",type:"filled",state:dx(M)};default:return q?{style:"mono",type:"tonal",state:dx(M)}:{style:"mono",type:"filled",state:dx(M)}}};
_.vO=function(){for(var M=[],q=_.k(_.rW.apply(0,arguments)),G=q.next();!G.done;G=q.next())if(G=G.value)if(typeof G==="string")M.push(G);else{G=_.k(Object.entries(G));for(var K=G.next();!K.done;K=G.next()){var n=_.k(K.value);K=n.next().value;(n=n.next().value)&&M.push(K)}}return M.join(" ")};
zcu=function(M){switch(M){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
mfy=function(M){switch(M){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
Sd$=function(M,q){var G=M.map(function(K){return K.toString()});
return _.sq(function(K){if(G.includes(K.key)){q&&K.preventDefault();var n;(n=K.currentTarget)==null||n.click()}})};
_.TDF=function(){return Sd$(["Enter"])};
_.ryy=function(){return Sd$(["Enter"," "],!0)};
_.h$=function(M){if(M.composedPath)return M.composedPath();if(!M.__composedPath){for(var q=[],G=M.target;G;)q.push(G),G=G.parentNode;q.push(window);M.__composedPath=q}return M.__composedPath};
_.t$=function(M,q,G){M=_.k(M);for(var K=M.next();!K.done;K=M.next()){K=K.value;if(K===q)break;for(var n=_.k(G),E=n.next();!E.done;E=n.next())if(E=E.value,K.tagName===E||K.role==="button"&&E==="BUTTON")return!0}return!1};
VYH=function(M,q){var G,K=(G=q.observer)!=null?G:_.AL().resolve(A5);if(M){G=jaF(M);var n=[];q.showOption&&n.push(K.observe(M,function(){q.visibilityCallback(!0,M)},q.showOption));
q.hideOption&&n.push(K.observe(M,function(){q.visibilityCallback(!1,M)},q.hideOption));
q.prescanOption&&q.prescanCallback&&n.push(K.observe(M,function(){q.prescanCallback()},q.prescanOption));
var E;G.visibilityMonitorKeys=((E=G.visibilityMonitorKeys)!=null?E:[]).concat(n)}};
jaF=function(M){var q;return(q=M.polymerController)!=null?q:M};
_.wx=function(M){return!!_.O0(M)};
_.CL=function(M,q,G,K,n){return function(E){var p=KCF();_.zL(function(){if(E){Rc4(E,M(),n);var y=fo4(E,M(),q,G,K,p);_.m_(y)}},"nr377e")}};
Rc4=function(M,q,G){var K=F0u(q),n=Hqi(q);q=K&&ecY;var E=n&&$f4;(K||n)&&VYH(M,{visibilityCallback:function(p){var y=_.AL().resolve(_.vR);p&&K?y.resolveCommand(K,{form:{element:G?M:void 0},disableClickTracking:!0}):!p&&n&&y.resolveCommand(n,{form:{element:G?M:void 0},disableClickTracking:!0})},
showOption:q,hideOption:E})};
fo4=function(M,q,G,K,n,E){var p=new Map;if(q=_.O0(q)){var y;M=(K==null?void 0:(y=K.onTap)==null?void 0:y.value)||M;G=sb$(q,M,G==null?void 0:G.onTap,n,E);M.addEventListener("click",G);p.set("click",G)}return function(){for(var Y=_.k(p),A=Y.next();!A.done;A=Y.next()){var v=_.k(A.value);A=v.next().value;v=v.next().value;M.removeEventListener(A,v)}}};
_.O0=function(M){var q;return(M=(q=_.C(M,MtF))==null?void 0:q.onTap)&&_.aM(M)};
F0u=function(M){var q;return(M=(q=_.C(M,MtF))==null?void 0:q.onVisible)&&_.aM(M)};
Hqi=function(M){var q;return(M=(q=_.C(M,MtF))==null?void 0:q.onHidden)&&_.aM(M)};
sb$=function(M,q,G,K,n){var E=function(y){_.AL().resolve(_.vR).resolveCommand(M,y)},p=function(y){K&&_.t$(_.h$(y),q,K)||E(y.target?{form:{element:y.target,
sourceData:M,mutationContext:n}}:void 0)};
G&&(p=function(y){G(y,E)});
return p};
qVy=function(M){switch(M){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}};
GTy=function(M){var q=M.numAvatarsInCluster;switch(M.clusterSize){case "small":return q===2?22:18;case "40":return q===2?24:22;default:return q===2?24:20}};
KWw=function(M,q){return function(G){var K=Object.keys(q);_.zL(function(){if(M!=null&&M()){for(var n=_.k(K),E=n.next();!E.done;E=n.next())E=E.value,G.addEventListener(E,q[E]);_.m_(function(){for(var p=_.k(K),y=p.next();!y.done;y=p.next())y=y.value,G.removeEventListener(y,q[y])})}},"bXZGfe")}};
n3s=function(M){switch(GTy(M)){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""}};
E3j=function(M){switch(M){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""}};
NHy=function(M){switch(GTy(M)){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""}};
kTF=function(M){switch(M){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""}};
piy=function(M){switch(M){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}};
yNw=function(M){return M==="medium"||M==="48"||M==="large"||M==="extra-large"||M==="extra-extra-large"||M==="giant"};
LWs=function(M){return!!((M==null?0:M.includes(3))||(M==null?0:M.includes(5)))};
WW$=function(M){var q=M.data;return{size:YVy(q.avatarImageSize),type:q.avatarBorderStyle==="AVATAR_BORDER_STYLE_SQUARE"?2:0,onTap:M.onTap,decorations:M.decorations||[],badgeText:M.badgeText,accessibilityText:M.accessibilityText,avatarButtonCustomClassName:M.avatarButtonCustomClassName,clusterLayoutConfig:M.clusterLayoutConfig}};
YVy=function(M){switch(M){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"}};
ANy=function(M){switch(M){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}};
dPH=function(M){switch(M){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""}};
v34=function(M){var q=M.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",G,K=M.avatars&&M.avatars.length>0?(G=_.C(M.avatars[0],_.aZ))==null?void 0:G.avatarImageSize:"AVATAR_SIZE_UNKNOWN";G=ANy(K)||0;if(q){var n,E=(n=M.avatarClusterSize)!=null?n:"AVATAR_SIZE_M";q=ANy(E);var p,y,Y=Math.min((y=(p=M.avatars)==null?void 0:p.length)!=null?y:0,4),A;return{avatars:((A=M.avatars)==null?void 0:A.slice(0,4))||[],avatarSizeInPx:G,avatarStackStyle:{width:q+"px",height:q+"px",position:"relative"},avatarStyle:function(h){var t=
GTy({clusterSize:YVy(E),numAvatarsInCluster:Y,avatarIndex:h});var O=ANy(E);Y===3&&h===2?(O=(O-t)/2,O=(_.R9("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*O):O=void 0;return{position:"absolute",top:Y===2&&h===1||Y===3&&h===2||Y===4&&h>=2?"0":void 0,bottom:Y===2&&h===0||Y>2&&h<2?"0":void 0,left:Y===2&&h===1||Y>2&&(h===1||h===3)?"0":void 0,right:Y<=3&&h===0||Y===4&&(h===0||h===2)?"0":void 0,transform:O?"translateX("+O+"px)":void 0,width:t+"px",height:t+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(h){return{clusterSize:YVy(M.avatarClusterSize),numAvatarsInCluster:Y,avatarIndex:h}},
avatarButtonCustomClassName:void 0}}var v;return{avatars:((v=M.avatars)==null?void 0:v.slice())||[],avatarSizeInPx:G,avatarStackClass:"yt-avatar-stack-view-model__avatars",avatarClass:dPH(K),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model__avatar-button"}};
h5Y=function(M,q,G){return function(){km(M,{form:{element:q},commandController:G})}};
tte=function(M){switch(M){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
OtD=function(M){switch(M){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"}};
wis=function(M){if("accessibilityText"in M)return M.accessibilityText||"";if("title"in M){var q,G,K;return((q=M.title)==null?void 0:(G=q.accessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label)||""}if("accessibility"in M){var n,E;return((n=M.accessibility)==null?void 0:(E=n.accessibilityData)==null?void 0:E.label)||""}return""};
CY4=function(M){return"inlinePlayerData"in M};
oZ=function(M){return new a5$(M)};
o3F=function(M){return function(q){M&&(M.thumbnailElRef=q.thumbnailElRef,M.thumbnail=q.thumbnail,M.thumbnailOverlays=q.thumbnailOverlays,M.thumbnailSize=q.thumbnailSize)}};
l5w=function(M){switch(M){case 1:return"ytThumbnailViewModelAspectRatio2By3";case 4:return"ytThumbnailViewModelShortsAspectRatio9By16";case 3:return"ytThumbnailViewModelAspectRatio1By1";default:return"ytThumbnailViewModelAspectRatio16By9"}};
PYw=function(M){var q=_.k(_.lQ(!1,void 0,"E6wDDe")),G=q.next().value,K=q.next().value;_.SK(function(){var n=M==null?void 0:M();if(n){var E=_.AL().resolve(_.WR(Xi4));if(E){var p={triggeringElement:n,onDwellTriggeredFn:function(){K(!0)},
onDwellEndFn:function(){K(!1)}};
E.registerElement(p);_.m_(function(){_.lh(E,p)})}}});
return G};
itH=function(M,q,G){G?G(q):_.Pb(q,M.target?{form:{element:M.target}}:void 0)};
_.Xm=function(M,q,G,K){return function(n){_.zL(function(){function E(v){v=v.composedPath();v=_.k(v);for(var h=v.next();!h.done;h=v.next()){h=h.value;if(h===n)break;if(h.className.indexOf("HostIsClickableAdComponent")>=0||h.tagName==="A".toString()||h.tagName==="BUTTON".toString())return!0}return!1}
var p=new Map,y,Y=(y=M())==null?void 0:y.onTap;if(Y){y=function(v){E(v)||itH(v,Y,q)};
var A=function(v){E(v)||v.key!=="Enter"||itH(v,Y,q)};
(G==null?0:G())||_.w("enable_web_home_top_landscape_image_layout_level_click")?(n.addEventListener("tap",y),p.set("tap",y)):(n.addEventListener("click",y),p.set("click",y));if(K==null?0:K())n.addEventListener("keydown",A),p.set("keydown",A)}_.m_(function(){for(var v=_.k(p),h=v.next();!h.done;h=v.next()){var t=_.k(h.value);h=t.next().value;t=t.next().value;n.removeEventListener(h,t)}})},"D7XqOc")}};
cNF=function(M,q){var G,K=(G=M.interaction)==null?void 0:G.onTap;if(M=_.lm({elementsCommand:K,forceNewState:!0,skipOnClick:!0}))return M.onclick=function(n){wQ$(n)&&(n.preventDefault(),K&&itH(n,K,q))},Xg(M)?M:void 0};
g3w=function(M){switch(M){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
BHi=function(M){switch(M){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"}};
Qbe=function(M){switch(M){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"}};
_.I5s=function(M){return _.w("rich_grid_enable_dynamic_offset")&&M?Math.max(Math.round((M-_.tL("rich_grid_dynamic_offset_anchor_width",1300))/100*_.tL("rich_grid_dynamic_offset_offset_per_100",10)),_.tL("rich_grid_dynamic_offset_lower_bound",-60)):0};
DPF=function(M,q){switch(q){case 4:return 16;case 1:return M<528?16:M<1024?32:48;case 2:return(M>=528?16:8)/2;case 3:return(M<528?16:M<1024?32:48)+(M>=528?16:8)/2;default:return 0}};
ufu=function(M){var q=M.originalContainerWidth;var G=M.sizing;var K=M.standardUnit;if(M.isCompactList&&q<528)return 1;switch(G){case "STANDARD":return K;case "COMPACT":return K+1;case "EXTRA_COMPACT":return _.w("web_responsive_extra_compact_2x")?K*2:_.w("web_responsive_current")?K===1?2:K%2===0?K/2*3:K+2:K<4?K*2:Math.ceil(K*3/2);case "MINI":return K>1?K*2:3;default:return K}};
Zty=function(M){var q=M.containerWidth;var G=M.peek;var K=M.gutter;var n=M.numItems;M=M.ignoreMaxWidthLimit;q=G?Math.max((q-G-K*n)/n,0):Math.max((q-K*(n-1))/n,0);return M?q:Math.min(q,JNH)};
_.PO=function(M){var q=M.containerWidth;var G=M.hasPeek;var K=M.sizing;var n=M.marginSettings;var E=M.isCompactList;var p=M.enableFullBleedForSingleCol;var y=M.standardUnitMinWidth;K=K||"STANDARD";G=!!G;M=q>=528?16:8;var Y=G?q>=528?48:24:0;n=DPF(q,n);var A=Math.max(q-n*2,0);y=_.w("kevlar_disable_min_width_override")?void 0:y;y=Math.min(Math.max(Math.floor((A-Y+M)/((y!=null?y:bty)+_.I5s(q)+M)),1),6);var v=(p=!!p&&y===1)||y===1&&K!=="STANDARD";G=G||v?A:Math.min(A,(JNH+M)*y-M);K=ufu({originalContainerWidth:q,
sizing:K,standardUnit:y,isCompactList:E});return{itemWidth:Zty({containerWidth:G,peek:Y,gutter:M,numItems:K,ignoreMaxWidthLimit:v}),gutter:M,maxContainerWidth:G,numItems:K,margin:p?0:n,contentMargin:DPF(q,1),typographyBump:Zty({containerWidth:G,peek:Y,gutter:M,numItems:y,ignoreMaxWidthLimit:v})>400&&!(E&&q<528),standardUnit:y}};
ih=function(M){switch(M){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.UPy=function(M){if(M){var q;if((q=M.responsiveContainerConfiguration)==null?0:q.responsiveSize)return ih(M.responsiveContainerConfiguration.responsiveSize);if(M.layoutSizing)switch(M.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"}}};
xPs=function(M){if(M.fullbleed)return 1;switch(M.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
rNH=function(M,q,G,K,n,E,p,y){a:if(M===4&&K==="LOCKUP_CONTENT_TYPE_SOURCE")var Y=1;else switch(M){case 3:Y=1;break a;default:Y=0}a:switch(M){case 4:E=!!(E&&E<100);break a;default:E=!1}a:switch(M){case 3:case 4:var A=K==="LOCKUP_CONTENT_TYPE_CHANNEL"||K==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:A=!1}return{isOverlay:z5s(M,K),isCard:mPs(K,p),sizing:q!=null?q:"STANDARD",typographyBump:G!=null?G:!1,isTiny:E,isCentered:A,isCollection:SVF(K),arrangement:Y,addMarginForFullbleed:M===1&&K!=="LOCKUP_CONTENT_TYPE_VIDEO",
fullbleed:M===1&&K==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:THF(K,n,y),disableRounding:M===5||mPs(K,p)||M===1&&K==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:SVF(K)?2:0,useLegacyTypography:!(y==null||!y.useLegacyTypography),useRichGridLegacyTypography:!(y==null||!y.useRichGridLegacyTypography)&&!_.w("web_enable_typography_bump"),compactMetadata:Y===0&&K==="LOCKUP_CONTENT_TYPE_VIDEO",onFocusEffect:y==null?void 0:y.onFocusEffect,titleMaxLines:K==="LOCKUP_CONTENT_TYPE_AI_CARD"?1:void 0}};
SVF=function(M){switch(M){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}};
mPs=function(M,q){if(q&&M==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(M){case "LOCKUP_CONTENT_TYPE_SOURCE":case "LOCKUP_CONTENT_TYPE_AI_CARD":return!0;default:return!1}};
z5s=function(M,q){if(q==="LOCKUP_CONTENT_TYPE_AI_CARD")return!0;switch(M){case 5:return!0;case 4:return!1;default:return!1}};
THF=function(M,q,G){if(q&&(G==null||!G.alwaysRespectPodcastShowAspectRatio||M!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(M){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}};
jbs=function(M){switch(M){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"}};
VtD=function(M){switch(M){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 9;case "BADGE_STATUS_NEW":return 12;case "BADGE_PREMIUM":return 6;case "BADGE_PROMOTED":return 3;case "BADGE_PROMOTED_INVERTED":return 4;default:return 0}};
R5Y=function(M){switch(M){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}};
_.cO=function(M){if(M){var q;return((q=_.AL().resolve(_.WR(_.Qx)))==null?0:q())?M.darkThemeImage:M.image}};
Htw=function(M,q,G,K,n,E){if(n&&E&&q==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:n,height:E};if(!G)return{};n=G.size;G=G.allowFullWidth;if(q==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&G)return{fullWidth:!0};if(n===void 0)return{};switch(M){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:n,height:n};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:n,height:1/f5H*n};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:n*
FWy,height:n};default:return(K==null?0:K.height)&&(K==null?0:K.width)?K.width/K.height>1?{maxWidth:n*FWy}:{maxWidth:n}:{maxWidth:n}}};
e5y=function(M){var q;return M&&((q=_.cO(M.themedImage))!=null?q:M.image)};
$P$=function(M){var q;return M==null?void 0:(q=M.sources)==null?void 0:q[0]};
sNy=function(M){switch(M){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"}};
_.Mku=function(M){if(M)return"content-id-"+M};
qC$=function(M){switch(M.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"}}};
GrF=function(M){var q=_.gx.currentPageSubTypeSelector(_.J_().getState())||"";return M?M+q:""};
Knj=function(M){switch(M){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
EZY=function(M){var q=["YT-EXPANDABLE-METADATA-VIEW-MODEL"],G=_.k(_.lQ(void 0,void 0,"JrqNsb")),K=G.next().value,n=G.next().value,E=_.k(_.lQ(void 0,void 0,"rWytse"));G=E.next().value;var p=E.next().value;E=_.k(_.lQ(void 0,void 0,"DHRqxe"));var y=E.next().value,Y=E.next().value;return{touchFeedbackEvents:{pointerUpEvent:K,pointerDownEvent:G,pointerLeaveEvent:y},touchFeedbackOnPointerUp:_.sq(function(A){nZi(_.h$(A),q)||(n(A),p(void 0),Y(void 0))}),
touchFeedbackOnPointerDown:_.sq(function(A){M==null||M(A);nZi(_.h$(A),q)||(p(A),n(void 0),Y(void 0))}),
touchFeedbackOnPointerLeave:_.sq(function(A){nZi(_.h$(A),q)||(Y(A),p(void 0),n(void 0))})}};
nZi=function(M,q){q=q===void 0?[]:q;q=[].concat(_.Ui(q),["BUTTON".toString()]);M=_.k(M);for(var G=M.next();!G.done;G=M.next()){G=G.value;for(var K=_.k(q),n=K.next();!n.done;n=K.next())if(G.tagName===n.value)return!0}return!1};
NGe=function(M){switch(M){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"}};
kry=function(M){return M.scrollHeight-M.offsetHeight>1};
p$w=function(M,q){var G;return Bb(M,((G=M.content)==null?void 0:G.length)||0,!q)};
YCe=function(M,q,G,K,n,E){if(!q||ywy){var p;return Bb(M,((p=M.content)==null?void 0:p.length)||0,!0)}q=K.value;if(!G.value||!q||!M.content)return M;G=0;K=M.content.length;p=0;LnD||(LnD=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var y=LnD;for(n=n*E*y;G<=K;)E=Math.floor(G+(K-G)/2),y=Bb(M,E)||M,q.firstChild&&(q.firstChild.textContent=y.content),q.scrollHeight>n?K=E-1:(p=E,G=E+1);return Bb(M,p)};
Wne=function(M,q){var G,K;return(((G=M.content)==null?void 0:G.length)||0)>(((K=q.content)==null?void 0:K.length)||0)};
Aww=function(M,q,G,K,n,E){var p=_.pI("truncated-text-content"),y=_.pI("truncated-text-content"),Y=_.pI("button"),A=_.pI("button"),v=_.pI("button"),h=_.AL().resolve(_.Dg),t=_.k(_.GM(function(){return p$w(M(),n())})),O=t.next().value,a=t.next().value;
t=_.k(_.GM(function(){return Wne(M(),O())}));
var g=t.next().value,D=t.next().value,J=null;_.zL(function(){function Z(){if(p.value&&Y.value&&v.value){var m=E()?M():YCe(M(),n(),p,y,q(),G());a(m);requestAnimationFrame(function(){if(p.value&&Y.value&&v.value){var R=kry(p.value)||Wne(M(),m);D(R);if(!K()){var se=kry(p.value),yY=G(),d$=p.value,cy=Y.value,t4=v.value,ay=h==="rtl";if(d$&&cy){var bH=cy.offsetLeft;ay&&(bH=d$.offsetWidth-cy.offsetWidth-cy.offsetLeft);if(R){R=cy.offsetWidth;cy=d$.offsetWidth;var iH=se?cy-R-70:bH-70;yY="linear-gradient(\n      to top, transparent 0%,\n      transparent "+
yY+"rem,\n      #000 "+yY+"rem,\n      #000 100%), linear-gradient(\n      to "+((ay?"left":"right")+",\n      #000 0px,\n      #000 "+iH+"px,\n      transparent "+(se?cy-R:iH+70)+"px)");d$.style.setProperty("-webkit-mask-image",yY);d$.style.setProperty("mask-image",yY)}else d$.style.setProperty("-webkit-mask-image",""),d$.style.setProperty("mask-image","");se?ay?(t4.style.setProperty("left","0"),t4.style.setProperty("right","unset")):(t4.style.setProperty("left",""),t4.style.setProperty("right",
"0")):ay?(t4.style.setProperty("left","unset"),t4.style.setProperty("right",bH+"px")):(t4.style.setProperty("left",bH+"px"),t4.style.setProperty("right","unset"))}}}})}}
var V,S;(V=J)==null||(S=V.stop)==null||S.call(V);V=new _.qA(Z,17);Z();J=V},"KjwIxd");
_.SK(function(){a(p$w(M(),n()));D(Wne(M(),O()));var Z=function(){LnD=void 0;var S,m;(S=J)==null||(m=S.fire)==null||m.call(S)};
if(window.ResizeObserver){var V=new ResizeObserver(Z);V.observe(p.value);_.m_(function(){var S,m;(S=J)==null||(m=S.stop)==null||m.call(S);V.disconnect()})}else window.addEventListener("resize",Z),_.m_(function(){var S,m;
(S=J)==null||(m=S.stop)==null||m.call(S);window.removeEventListener("resize",Z)})});
return{isTruncated:g,displayText:O,contentRef:p,hiddenRef:y,placeholderTruncationTextRef:Y,hiddenTruncationTextRef:A,truncationTextRef:v}};
dWu=function(M){return{content:M!=null?M:""}};
vZu=function(M){return _.aM(M.onTap)||_.O0(M.rendererContext)};
hNj=function(M){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:M.overflowMenuA11yLabel,onTap:function(q){q.preventDefault();q.stopPropagation();if(M.overflowMenuOnTap){var G=_.lm({elementsCommand:M.overflowMenuOnTap,forceNewState:!0});if(G==null?0:G.onclick)G.onclick(q)}}}};
_.BO=function(M,q,G,K,n){K=K===void 0?{}:K;if(!n||Math.random()<5E-4){q=q||null;G=G||null;M=M instanceof Error?M:new _.bj(M);if(M.args)for(var E=_.k(M.args),p=E.next();!p.done;p=E.next())p=p.value,p instanceof Object&&(K=Object.assign({},p,K));K.category="H5 Ads Control Flow";q&&(K.slot=q?"slot:  "+q.slotType:"");G&&(K.layout=G?"layout:  "+G.layoutType:"",K.layoutId=G.layoutId);n&&(K.known_error_aggressively_sampled=!0);M.args=[K];_.j1(M)}};
_.tkF=function(M,q){q=_.Sg(q);_.VW(M,"yt-open-popup-action",[q,M])};
_.Qu=function(M,q){_.tkF(M,_.bc(q))};
w$F=function(M){if(!M)return"";if(OZY[M])return OZY[M];IZ||(IZ=_.iI("A"));IZ.href!==M&&Vk(IZ,M);var q=IZ.pathname;OZY[M]=q.startsWith("/")?q:"/"+q;return OZY[M]};
CEu=function(){var M=w$F(window.location.href);if(M==="/")return"home";if(M.startsWith("/results"))return"search";if(M.startsWith("/watch"))return"watch";if(M.startsWith("/shorts"))return"shorts";if(M.startsWith("/hashtag"))return"hashtag";if(M.startsWith("/create_channel"))return"create_channel";if(M.startsWith("/@")||M.startsWith("/user/")||M.startsWith("/channel/"))return"channel";if(M.startsWith("/experiments"))return"experiments";if(M.startsWith("/sponsor_channel"))return"sponsorship";if(M.startsWith("/select_site"))return"settings";
if(M.startsWith("/locate"))return"locate";if(M.startsWith("/redeem"))return"redeem";if(M.startsWith("/musicpremium")||M.startsWith("/premium")||M.startsWith("/red"))return"premium";if(M.startsWith("/paid_memberships"))return"paid_memberships";if(M.startsWith("/oops"))return"oops";if(M.startsWith("/clip"))return"clip";var q;return(DT==null?void 0:(q=DT.response)==null?void 0:q.page)==="404"?"404":M.startsWith("/feed/history")?"history":M.startsWith("/feed/library")?"library":M.startsWith("/feed/subscriptions")?
"subscriptions":M.startsWith("/feed/trending")?"trending":M.startsWith("/feed/news_destination")?"news":M.startsWith("/playlist")?"playlist":M.startsWith("/minor_moment")?"minor_moment":M.startsWith("/playable/")||M.match("^/playables/(?!saved).")?"mini_app":M.startsWith("/playables")?"playables":M.startsWith("/create/live/join")?"open_in_app":M.startsWith("/feed/explore")?"explore":"browse"};
_.X$s=function(){var M=DT==null?void 0:DT.response,q=M==null?void 0:M.endpoint;if(!q)return(M==null?void 0:M.page)==="watch"?"watch":CEu();var G;M=(G=_.C(q==null?void 0:q.commandMetadata,_.Mg))==null?void 0:G.webPageType;G=!1;if(M&&!aRy.includes(M))switch(M){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 K;return((K=_.C(q==null?void 0:q.commandMetadata,_.Mg))==null?0:K.url)&&w$F(_.C(q.commandMetadata,_.Mg).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var n;return(q=(n=_.C(q,_.n_))==null?void 0:n.browseId)?oZi[q]||"browse":"browse";default:G=!0}if(_.C(q,_.uh)||_.C(q,lRy))return"sponsorship";n=w$F(window.location.href);if(n.startsWith("/experiments"))return"experiments";if(n.startsWith("/create_channel"))return"create_channel";
if(_.C(q,_.q6)&&n.startsWith("/shorts"))return"shorts";if(_.C(q,_.q6)&&n.startsWith("/watch"))return"watch";G&&(q=new _.bj("Unsupported mWeb page type",{pathname:n,webPageType:M}),_.T6(q));return"browse"};
J$=function(M,q,G,K){return M&&q?M!==G||q!==K?(_.BO(Error("Kh"),void 0,void 0,{"stored-slot":M,"stored-layout":q,"latest-slot":G,"latest-layout":K}),!1):!0:!1};
iZH=function(M,q,G){return M({targetId:q},function(K){return G.slot==="RELOAD_CONTINUATION_SLOT_REPLACE_SELF"?Object.assign({},K,{contents:[G.continuationItems?_.C(G.continuationItems[0],PEj):{}]}):G.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},K,{header:G.continuationItems?G.continuationItems[0]:void 0}):Object.assign({},K,{contents:G.continuationItems?G.continuationItems:[]})})};
cwy=function(M,q,G,K){if(q=q.trackingParams){var n,E=(n=G.getScreenLayer)==null?void 0:n.call(G);G=_.Cx(E);n=_.wt(E);if(G&&n){var p=_.yx(q);_.w("combine_ve_grafts")?M.graftServerVe(q,n,E):_.QQ(G,n,p);K==null||K(p)}}};
BGu=function(M){var q;return((q=gZ$.get(M))==null?void 0:q.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
DWF=function(M,q){var G={type:q.slotType,controlFlowManagerLayer:QNy.get(q.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};q.slotEntryTrigger&&(G.entryTriggerType=q.slotEntryTrigger.triggerType);q.slotPhysicalPosition!==1&&(G.slotPhysicalPosition=q.slotPhysicalPosition);if(M){G.debugData={slotId:q.slotId};if(M=q.slotEntryTrigger)G.debugData.slotEntryTriggerData=IRF(M);M=q.slotFulfillmentTriggers;G.debugData.fulfillmentTriggerData=[];M=_.k(M);for(var K=M.next();!K.done;K=M.next())G.debugData.fulfillmentTriggerData.push(IRF(K.value));
q=q.slotExpirationTriggers;G.debugData.expirationTriggerData=[];q=_.k(q);for(M=q.next();!M.done;M=q.next())G.debugData.expirationTriggerData.push(IRF(M.value))}return G};
IRF=function(M,q){var G={type:M.triggerType};q!=null&&(G.category=q);M.triggeringSlotId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedSlotId=M.triggeringSlotId);M.triggeringLayoutId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedLayoutId=M.triggeringLayoutId);return G};
uJ$=function(M,q,G,K){q={opportunityType:q};M&&(K||G)&&(K=_.z9(K||[],function(n){return DWF(M,n)}),q.debugData=Object.assign({},G&&G.length>0?{associatedSlotId:G}:{},K.length>0?{slots:K}:{}));
return q};
JwD=function(M){return ZT(M.opportunityAdapterMap).concat(ZT(M.triggerAdapterMap)).concat(ZT(M.fulfillmentAdapterFactoryMap)).concat(ZT(M.slotAdapterFactoryMap)).concat(ZT(M.layoutRenderingAdapterFactoryMap))};
ZT=function(M){var q=[];M=_.k(M.values());for(var G=M.next();!G.done;G=M.next())G=G.value,G.isAdsControlFlowEventListener&&q.push(G);return q};
U0=function(M){var q=M.slotId,G=M.slotType,K=M.slotPhysicalPosition;return q===void 0?new bh("Cannot construct a slot due to the missing id.",{adSlotMetadata:M}):G===void 0?new bh("Cannot construct a slot due to the missing type.",{adSlotMetadata:M}):K===void 0?new bh("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:M}):{slotId:q,slotType:G,slotPhysicalPosition:K,managerLayer:"external",adSlotLoggingData:M.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new ZZ$}};
bZe=function(M){var q=M.layoutId,G=M.layoutType;return q===void 0?new xe("Cannot construct a layout due to the missing id.",{adLayoutMetadata:M}):G===void 0?new xe("Cannot construct a layout due to the missing type.",{adLayoutMetadata:M}):{layoutId:q,layoutType:G,managerLayer:"external",adLayoutLoggingData:M.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new ZZ$,interactionLoggingAdsClientData:{}}};
UWi=function(M){if(M.querySelector("img")){var q=M.querySelector("img");q.addEventListener("error",function(){NCj(q.src).then(function(G){(G=_.T3(G).toString())?q.src=G:q.removeAttribute("src")}).catch(function(){q.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
mg=function(M,q){if(q&&(xWD(q.viewableCommand)||xWD(q.endOfSessionCommand))){var G=zNF(q==null?void 0:q.viewableCommand);q=zNF(q==null?void 0:q.endOfSessionCommand);if(!zS){var K=_.tL("custom_active_view_tos_timeout_ms");zS=K>0&&K!==36E5?new mWY(SCw(),K):new mWY(SCw())}TGi(zS,M);rwy(zS,M,G,q)}};
Ss=function(M){zS&&TGi(zS,M)};
SCw=function(){var M=_.R9("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(M==null?void 0:M.length)===2?M[1]:null};
xWD=function(M){M=_.aM(M);return!(M==null||!M.loggingUrls)&&M.loggingUrls.length>0};
zNF=function(M){if(!M)return[];var q=[],G,K;((K=(G=_.aM(M))==null?void 0:G.loggingUrls)!=null?K:[]).forEach(function(n){n.baseUrl&&q.push(n.baseUrl)});
return q};
jNY=function(M){if(_.w("stop_av_measurement_on_detach"))return function(){Ss(M)}};
Vke=function(M){return function(){_.w("stop_av_measurement_on_detach")&&Ss(M)}};
RNF=function(M){if(_.w("stop_av_measurement_on_detach"))return function(){Ss(M)}};
fRs=function(M){return M.shorts.isDesktopSmallWidth};
_.Fny=function(M){return M.shorts.isShortsActive};
_.HZi=function(M){return M.shorts.isWatchWhileMode};
_.TS=function(M){return M.shorts.isFullscreen};
_.rx=function(M){return M.shorts.isShortsPipActive};
$WF=function(M){var q,G;if(M=(q=_.C(M.reelsAdCardButtoned,eNj))==null?void 0:(G=q.animatedRenderingConfig)==null?void 0:G.easeOutSeconds)return M+"s"};
MdY=function(M,q,G){return _.L(function(K){return K.return(new Promise(function(n){var E=new Image;E.onload=function(){n(new spw(M,q,G,E.naturalWidth,E.naturalHeight))};
E.src=G.toString()}))})};
q3y=function(M,q){return Math.round(M/1E-5)===Math.round(q/1E-5)};
Ggu=function(M,q){return Math.round(M/1E-5)===Math.round(q/1E-5)};
Kk4=function(M,q){return M.year===q.year&&M.month===q.month&&M.day===q.day};
nRj=function(M,q){return M.year!==q.year?M.year<q.year:M.month!==q.month?M.month<q.month:M.day<q.day};
N5y=function(M){return M.day===ERy(M.year,M.month)?M.month===11?{year:M.year+1,month:0,day:1}:{year:M.year,month:M.month+1,day:1}:{year:M.year,month:M.month,day:M.day+1}};
kgF=function(){var M=new Date,q={year:M.getFullYear(),month:M.getMonth(),day:M.getDate()};return{start:q,end:{year:M.getFullYear()+2,month:M.getMonth(),day:M.getDate()},selectedDate:N5y(q)}};
puY=function(M){return(new ZS(2)).format(new Date(M.year,M.month,M.day))};
yij=function(M){return{year:M.getFullYear(),month:M.getMonth(),day:M.getDate()}};
Lky=function(M,q){M=(M+(Number(q.utcOffsetSec)+(new Date(M*1E3)).getTimezoneOffset()*60))*1E3;q=yij(new Date(M));return{date:q,secondsSinceMidnight:Math.floor((M-(new Date(q.year,q.month,q.day)).getTime())/1E3)}};
Y3y=function(M,q){q=q.months.findIndex(function(G){return G.year===M.year&&G.month===M.month});
return q>=0?q:void 0};
Wkj=function(M){if(!M)return!1;try{if(M.host&&M.host.tagName==="YT-FORMATTED-STRING"&&M.host.id==="contenteditable-textarea"||M.nodeType===Node.ELEMENT_NODE&&M.tagName==="YTD-COMMENTBOX")return!0}catch(q){return!1}return Wkj(M.parentNode)};
js=function(M){return M?!(M.tagName!=="A"||!M.href||!M.classList.contains("yt-simple-endpoint")):!1};
Ai$=function(M){return M?M.tagName==="IMG"&&M.classList.contains("emoji"):!1};
d0F=function(M,q,G){if(!M)return null;var K=js(M);if(K&&G)return q=M.pathname.substring(M.pathname.indexOf("/channel/")+9),document.createTextNode("@"+q);if(K&&!G)return document.createTextNode("");if(Ai$(M))return G=M.alt,M=M.dataset.emojiId,!M&&q&&(q=_.Vu(q,G))&&q.isCustomEmoji&&(M=q.emojiId),M?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+M+">"):document.createTextNode(G);K=M.cloneNode(!1);for(var n=0;n<M.childNodes.length;++n){var E=d0F(M.childNodes[n],q,G);E&&K.appendChild(E)}return K};
RZ=function(M){return M?js(M)?M:RZ(M.lastChild):null};
vRe=function(M){return M?js(M)?M:vRe(M.firstChild):null};
hOj=function(M){if(!M)return null;for(var q=M.previousSibling;q;)if(q.nodeType===Node.ELEMENT_NODE&&q.nodeName==="BR")q=q.previousSibling;else if(q.nodeType===Node.TEXT_NODE&&/\s+/.test(q.textContent))q=q.previousSibling;else break;(q=RZ(q))?M=q:M=(M=M.parentNode)?RZ(M.previousElementSibling):null;return M};
tdY=function(M){if(!M)return null;for(var q=M.nextSibling;q;)if(q.nodeType===Node.ELEMENT_NODE&&q.nodeName==="BR")q=q.nextSibling;else if(q.nodeType===Node.TEXT_NODE&&/\s+/.test(q.textContent))q=q.nextSibling;else break;return(q=vRe(q))?q:tdY(M.parentNode)};
Oz4=function(M){var q=_.fL(),G=q.JSC$11347_getStartNode();if(!Wkj(G.parentNode))return null;q=q.JSC$11347_getStartOffset();if(G.nodeType===Node.TEXT_NODE){var K=_.jX(G,js);if(K){if(M&&q===0||!M&&q===G.length)return K}else{if(M&&q===G.length)return!G||G.nodeName==="BR"||G.nextElementSibling&&_.Fm(G.nextElementSibling,"display")==="block"?null:vRe(G.nextElementSibling);if(!M&&q===0)return G?RZ(G.previousElementSibling):null}}if(G.nodeType===Node.ELEMENT_NODE)if(M){if(0<=q&&q<G.childNodes.length)return vRe(G.childNodes[q])}else if(0<
q&&q<=G.childNodes.length)return RZ(G.childNodes[q-1]);return null};
wuH=function(M,q,G){if(!M)return null;if(M.nodeType===Node.TEXT_NODE)if(G){var K=hOj(M);if(K&&!/^\s+\S/.test(M.wholeText.substr(0,q)))return K}else if((K=tdY(M))&&!/\S\s+/.test(M.wholeText.substr(q,M.wholeText.length)))return K;return M.nodeType===Node.ELEMENT_NODE?G?hOj(M.childNodes[q]):tdY(M.childNodes[q]):wuH(M.parentNode,q,G)};
Cww=function(M){if(M.hasChildNodes())switch(M.tagName){case "DIV":case "A":case "SPAN":var q="";for(M=M.firstChild;M;M=M.nextSibling)q+=Cww(M);return q;default:return""}else switch(M.nodeType){case 3:return M.textContent;default:return""}};
HO=function(M,q){return M.year===q.year&&M.month===q.month&&M.day===q.day};
es=function(M,q){return M.year!==q.year?M.year<q.year:M.month!==q.month?M.month<q.month:M.day<q.day};
aVu=function(M){return{year:M.getFullYear(),month:M.getMonth(),day:M.getDate()}};
oRj=function(M){var q=SOs;q=q===void 0?SOs:q;q(new Date(M.year,M.month,M.day))};
$e=function(M){return aVu(new Date(Number(M.seconds)*1E3))};
lVe=function(M){return M.year!==void 0&&M.month!==void 0&&M.day!==void 0};
XuY=function(M){return M.start!==void 0&&M.end!==void 0};
PwH=function(M){return XuY(M)?M.start:M};
izy=function(M){return XuY(M)?M.end:void 0};
gRF=function(M,q){for(var G=[],K=new Date(M.start.year,M.start.month);K.getFullYear()<M.end.year||K.getFullYear()===M.end.year&&K.getMonth()<=M.end.month;){var n=G,E=n.push,p=K.getFullYear(),y=K.getMonth(),Y=M,A=q,v=void 0,h=[],t=Object.freeze({extraCssClass:"invisible"}),O=new Date(p,y),a=aVu(O);O=O.getDay();for(var g=aVu(new Date);a.month===y;){O!==ciw&&v||(v=Array.from({length:7}).fill(t),h.push(v));var D={date:{year:p,month:y,day:a.day},extraCssClass:"",debugClass:""};D.extraCssClass=A(D.date,
a,g,Y).trim();v[(O-ciw+7)%7]=D;a=a.day===ERy(a.year,a.month)?a.month===11?{year:a.year+1,month:0,day:1}:{year:a.year,month:a.month+1,day:1}:{year:a.year,month:a.month,day:a.day+1};O=(O+1)%7}E.call(n,{weeks:h,monthLabel:sz.SHORTMONTHS[y]+" "+p,year:p,month:y,monthLabelExtraCssClass:h[0][2]===t?"shift-down-label":""});K.setMonth(K.getMonth()+1)}return G};
B5y=function(M,q){q=q.months.findIndex(function(G){return G.year===M.year&&G.month===M.month});
return q>=0?q:void 0};
IVe=function(M,q){a:{var G=G===void 0?[2,3]:G;G=_.k(G);for(var K=G.next();!K.done;K=G.next()){var n=new Date;if((new Qpw(K.value)).parse(q,n,{validate:!0})){n.setHours(0,0,0,0);q=n;break a}}q=null}if(!q)return{isValid:!1,value:void 0};q=aVu(q);G=M.end;return es(q,M.start)||es(G,q)?{isValid:!1,value:void 0}:{isValid:!0,value:q}};
bzj=function(M){var q=D0$;q=q===void 0?u_j:q;var G=M.columnsToShow||[],K=Jiy(M.columnDimensions,M.columnsToShow,M.leftFloatingColumns,q);return G.map(function(n,E){var p=M.columns[n];if(p===void 0)throw Error("Qh");var y=K?K[E]:"";var Y=M.getCustomTooltip?M.getCustomTooltip(n,p.headerTooltipParagraphs):p.headerTooltipParagraphs;var A=ZzD(M,n);return{type:n,index:E,style:y,classes:A,headerName:p.headerName||"",headerIcon:p.headerIcon,headerTooltipParagraphs:Y||[],headerTooltipHelpContext:p.headerTooltipHelpContext,
sortOrders:p.sortOrders||[],selectionState:p.isSelectionCheckbox?M.selectionState:void 0}})};
ZzD=function(M,q){var G=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],K=M.columns[q];if(K===void 0)return"";var n=G.includes("DEFAULTS")&&K.cssClass?[K.cssClass]:[];if(G.includes("SORTING")){K.sortOrders&&K.sortOrders.length&&n.push("sortable");if(M.sorting&&M.sorting.columnType===q)a:switch(M.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var E="column-sorted";break a;default:E=""}else E="";E&&n.push(E)}G.includes("FLOATING")&&(q=M.columnsToShow.indexOf(q),M.leftFloatingColumns&&q<M.leftFloatingColumns&&
n.push("floating-column"),M.leftFloatingColumns&&q===M.leftFloatingColumns-1&&n.push("last-floating-column"));G.includes("RIGHT_ALIGN")&&K.rightAlignHeader&&n.push("right-align");return n.filter(function(p){return p}).join(" ")};
Jiy=function(M,q,G,K){G=G===void 0?0:G;K=K===void 0?u_j:K;if(M){var n=[],E=0;U0y(M,q,K).forEach(function(p,y){var Y="min-width:"+p.minWidth+"px;padding-left:"+p.paddingLeft+"px;padding-right:"+p.paddingRight+"px;flex:"+p.flexGrow+" 0 "+p.minWidth+"px;";p.maxWidth!==Infinity&&(Y=[Y,"max-width:"+p.maxWidth+"px;"].join(""));E>0&&y<G&&(Y=[Y,"left:"+E+"px;"].join(""));n.push(Y);E+=p.minWidth+p.paddingLeft+p.paddingRight});
return n}};
U0y=function(M,q,G){G=G===void 0?u_j:G;return q.map(function(K,n){K=M&&M[K]||{};var E=n===0?G.paddingLeftFirstColumn:G.padding;K.paddingLeft!==void 0&&(E=K.paddingLeft);n=n===q.length-1?G.paddingRightLastColumn:G.padding;K.paddingRight!==void 0&&(n=K.paddingRight);return{paddingLeft:E,paddingRight:n,minWidth:K.minWidth!==void 0?K.minWidth:G.minWidth,maxWidth:K.maxWidth!==void 0?K.maxWidth:G.maxWidth,flexGrow:K.flexGrow!==void 0?K.flexGrow:G.flexGrow}})};
x0y=function(M){var q=M.reduce(function(K,n){var E=n.columnId,p={};n.headerText&&(p.headerName=_.UX(n.headerText));n.rightAlignHeader&&(p.rightAlignHeader=n.rightAlignHeader);var y;if((y=n.headerIcon)==null?0:y.iconType)p.headerIcon=_.H4(n.headerIcon.iconType);K[E]=p;return K},{}),G=M.filter(function(K){return!K.hideColumn}).map(function(K){return K.columnId});
M=M.filter(function(K){return!!K.dimensions}).reduce(function(K,n){K[n.columnId]=n.dimensions;
return K},{});
return{columns:q,columnsToShow:G,columnDimensions:M}};
_.zOe=function(M){return M?M.simpleText?M.simpleText:M.runs?M.runs.map(function(q){return q.text}).join(""):"":""};
Vdj=function(M){var q=M.data;var G=M.onTap;var K=M.isSelected;var n=M.onFocusIn;if(!q)return{};M=m0u(q);K===void 0&&(K=q==null?void 0:q.isSelected);var E;return{text:S3F(q,M),startIcon:(E=q.icon)==null?void 0:E.iconType,state:K?0:2,type:0,style:T5Y(q),onTap:riF(q,G),accessibilityLabel:jp4(q,M),onFocusIn:function(){return n==null?void 0:n()}}};
S3F=function(M,q){if(!q)return M.text?_.zOe(M.text):void 0};
T5Y=function(M){var q;switch((q=M.style)==null?void 0:q.styleType){case "STYLE_AI_CUSTOMIZED_FEED_CHIP":return 0}};
riF=function(M,q){return function(G){q==null||q(G,M)}};
m0u=function(M){M=M.style&&M.style.styleType;return!ywy&&M==="STYLE_EXPLORE_LAUNCHER_CHIP"};
jp4=function(M,q){if(q){var G,K,n;return(n=(G=M.accessibilityData)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label)!=null?n:S3F(M,!1)}};
MQ=function(M){return{signalAction:{signal:M}}};
FkY=function(){return _.R9("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ROF:_.fVu};
Hz4=function(M,q){M=M===void 0?"SOFT_RELOAD_PAGE":M;q=q===void 0?49504:q;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.rj(_.Ge("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:q}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:M}}]}}}};
eO$=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.rj(_.Ge("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:FkY()}};
$0F=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.rj(_.Ge("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:FkY()}};
s0$=function(M,q){var G=_.rj(_.Ge("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),K=_.rj(_.Ge("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),n={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.rj(_.Ge("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};n.serviceEndpoint=M?M:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[MQ("SOFT_RELOAD_PAGE")]}};return{title:G,bodyText:K,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:n},
style:{value:q!=null?q:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
qR$=function(M){M=M===void 0?{}:M;return{title:_.rj(M.localizedZeroStateTitleText===void 0?"":M.localizedZeroStateTitleText),bodyText:_.rj(M.localizedZeroStateMessage===void 0?"":M.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.rj(M.localizedZeroStateButtonText===void 0?"":M.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[M2y]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
KDF=function(M){M=M===void 0?{}:M;return{title:_.rj(M.localizedOptInBannerTitleText===void 0?"":M.localizedOptInBannerTitleText),titleLength:19,subtitle:_.rj(M.localizedOptInMessage===void 0?"":M.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.rj(_.Ge("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:_.rj(_.Ge("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:[G7w]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Ndy=function(M,q){var G=q=q===void 0?{}:q;q=G.offlineTitleText===void 0?"":G.offlineTitleText;var K=G.offlineDescriptionText===void 0?"":G.offlineDescriptionText,n=G.formattedSupplementalText,E=G.actionButtonText===void 0?"":G.actionButtonText,p=G.titleText===void 0?"":G.titleText;G=G.descriptionText===void 0?"":G.descriptionText;var y={title:E,accessibilityText:E,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"}}}}};M||(p=q,G=K,y={title:E,accessibilityText:E,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:_.rj(p),titleLength:p.length,overrideTitleMaxFontSize:30,subtitle:_.rj(G),supplementalText:n,primaryButton:{buttonViewModel:y},lightColorData:{basicColorData:{backgroundColor:0}},darkColorData:{basicColorData:{backgroundColor:4279176975}},tileImage:{thumbnails:[nw$]},darkTileImage:{thumbnails:[EwF]},loggingDirectives:{clientVeSpec:{uiType:266212}}}};
_.y8e=function(M,q,G,K,n,E,p,y,Y,A,v){n=n===void 0?!1:n;E=E===void 0?!1:E;p=p===void 0?0:p;y=y===void 0?-Infinity:y;Y=Y===void 0?!1:Y;A=A===void 0?!1:A;v=v===void 0?!1:v;var h=[],t=_.rj(_.Ge("SMART_DOWNLOADS",void 0,"Smart downloads")),O=_.rj(k7$(p,y,M.length));y=p=void 0;A?p={statementBannerRenderer:Ndy(v,K)}:n?M.length>0?y=pNj(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.w("kevlar_manual_downloads_above"),t,O):Y?y={alertBannerViewModel:{heading:{content:G.localizedOptInBannerTitleText===
void 0?"":G.localizedOptInBannerTitleText},body:{content:G.localizedPromptMessage===void 0?"":G.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Ge("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.Ge("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:_.wfs}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:E&&(y={backgroundPromoRenderer:{bodyText:_.rj(_.Ge("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"}}}):
E&&(y={alertBannerViewModel:{heading:{content:G.localizedOptInBannerTitleText===void 0?"":G.localizedOptInBannerTitleText},body:{content:G.localizedOptInMessage===void 0?"":G.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.Ge("TURN_ON",void 0,"Turn on"),accessibilityText:_.Ge("TURN_ON",void 0,"Turn on"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_OUTLINE",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_DEFAULT",
loggingDirectives:{clientVeSpec:{uiType:127983}},onTap:{innertubeCommand:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!0}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:127982}}}}}});G=_.rj(_.Ge("YOUR_DOWNLOADS",void 0,"Your downloads"));K=void 0;q.length>0?(K=void 0,_.w("kevlar_display_downloads_numbers")&&(K=_.rj(_.K7("VIDEO_COUNT",q.length))),K=pNj(q,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,G,K)):n||M.length||
A||(K={backgroundPromoRenderer:{bodyText:_.rj(_.Ge("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}}}});p?h.push({richSectionRenderer:{content:p}}):y&&!_.w("kevlar_manual_downloads_above")&&h.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});
K&&h.push({richSectionRenderer:{content:K,loggingDirectives:{clientVeSpec:{uiType:51721}}}});y&&_.w("kevlar_manual_downloads_above")&&h.push({richSectionRenderer:{content:y,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(q.length>0||n&&M.length>0&&!A)&&h.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.rj(_.Ge("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:h}};
_.YRe=function(M){return LDy(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.WDy=function(M){return LDy(M,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
LDy=function(M,q){var G=[];M=pNj(M,q,!0);G.push({richSectionRenderer:{content:M}});return{contents:G}};
pNj=function(M,q,G,K,n){G=G===void 0?!1:G;var E="RESPONSIVE_SIZE_STANDARD";_.w("kevlar_standard_rich_grid_on_offline_home")&&q==="RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE"?E="RESPONSIVE_SIZE_STANDARD":_.w("kevlar_modern_downloads_compact")?E="RESPONSIVE_SIZE_COMPACT":_.w("kevlar_modern_downloads_extra_compact")?E="RESPONSIVE_SIZE_EXTRA_COMPACT":_.w("kevlar_modern_downloads_tiny")&&(E="RESPONSIVE_SIZE_TINY");M={isExpanded:G,contents:qQ(M),entitySelectorType:q,responsiveContainerConfiguration:{responsiveSize:E}};
K&&(M.title=K);n&&(M.subtitle=n);G||(_.w("kevlar_smart_downloads_show_more_button")?(M.showMoreButton={buttonRenderer:{accessibility:{label:_.Ge("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.rj(_.Ge("SHOW_MORE",void 0,"Show more"))}},M.showLessButton={buttonRenderer:{accessibility:{label:_.Ge("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",
text:_.rj(_.Ge("SHOW_LESS",void 0,"Show less"))}}):(M.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.Ge("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}}}},M.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.Ge("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}}}},M.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.Ge("VIEW_ALL",void 0,"View all"),accessibilityText:_.Ge("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:_.SE("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:M}};
qQ=function(M){var q=[];M=_.k(M);for(var G=M.next();!G.done;G=M.next())if(G=G.value,Gzi(G)){var K=q,n=K.push;var E=void 0;if(G==null?0:(E=G.videoEntity)==null?0:E.videoId){E=cs(_.zw().getState(),G.videoEntity.videoId);var p=_.zw().getState();var y=_.$p(G.videoEntity.videoId,"mainVideoEntity");p=!!_.dz(p.entities)[y];p={videoId:G.videoEntity.videoId,title:jE(G.videoEntity.title),shortBylineText:jE(G.channelEntity.title),thumbnail:G.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:p&&_.w("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:D1j(G.videoEntity.videoId,E,G.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.Ge("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};G.videoEntity.lengthSeconds&&(p.thumbnailOverlays=Nn4(G.videoEntity.lengthSeconds,E));p.isWatched=E>0;_.w("kevlar_modern_downloads_page")&&(p.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:G.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.Ge("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},p.badges=void 0);G=p}else G={};n.call(K,{richItemRenderer:{content:{videoRenderer:G},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(qHF(G)){K=q;n=K.push;var Y=y=E=void 0,A=void 0,v=void 0,h=void 0,t=void 0,O=void 0,a=void 0,g=void 0,D=void 0,J=void 0;p=G.mainPlaylistEntity.playlistId;var Z=G==null?void 0:(J=G.mainPlaylistEntity)==null?void 0:(D=J.thumbnailStyleData)==null?void 0:(g=D[0])==null?void 0:(a=g.value)==null?void 0:(O=a.collageThumbnail)==
null?void 0:O.coverThumbnail;if(p&&Z){O=u3H(p);!_.w("enable_offline_playlist_page")&&(G==null?0:(t=G.mainPlaylistEntity)==null?0:t.videos)&&(t=G==null?void 0:(h=G.mainPlaylistEntity)==null?void 0:(v=h.videos)==null?void 0:v[0],v=_.FI(t).entityId,v=JSON.parse(v).videoId,v!==void 0&&(O=cs(_.zw().getState(),v),O=_.Te(v,p,void 0,void 0,O)));v=[];if(G==null?0:(A=G.mainPlaylistEntity)==null?0:(Y=A.videos)==null?0:Y.length)Y=mIF(),A=Object,v=A.assign,h=(h=z6e(G==null?void 0:G.mainPlaylistEntity.videos.length))?
{thumbnailOverlaySidePanelRenderer:{text:_.rj(h),icon:{iconType:"PLAYLISTS"}}}:void 0,v=[Y,v.call(A,{},(y=h)!=null?y:{})];G={playlistId:p,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:Z}},navigationEndpoint:O,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:v,title:jE(G.mainPlaylistEntity.title),shortBylineText:jE(G==null?void 0:(E=G.channelEntity)==null?void 0:E.title),badges:[{metadataBadgeRenderer:{label:_.Ge("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};
_.w("kevlar_modern_downloads_page")&&(G.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:A8w,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:p,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Ge("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},G.badges=void 0)}else G=void 0;n.call(K,{richItemRenderer:{content:{playlistRenderer:G},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return q};
k7$=function(M,q,G){M=M?dkj(M):"";q!==void 0&&isFinite(q)?q===0?q=_.Ge("UPDATING",void 0,"Updating..."):(q=E8F(new Date(q),new Date),q=_.Ge("UPDATED_TIME",{relative_time:q},"Updated "+q)):q="";var K="";M&&q&&(K=" \u2022 ");if(G&&_.w("kevlar_display_downloads_numbers")){G=_.K7("VIDEO_COUNT",G);if(M||q)K=" \u2022 ";return G+K+M+K+q}return M+K+q};
vwu=function(M){return RJy(M.entities).length};
_.hdF=function(M,q){var G=ih(M.responsiveSize),K;M=!((K=M.responsiveMap)==null||!K.some(function(n){return n.containerSize==="CONTAINER_SIZE_NARROW"&&n.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:q,sizing:G,enableFullBleedForSingleCol:!1,isCompactList:G==="COMPACT"&&M}};
t2i=function(M,q){return _.sX(M.entities,"votingEntity",q)};
Gh=function(M){if(M){var q;return((q=_.AL().resolve(_.WR(_.Qx)))==null?0:q())?M.darkTheme:M.lightTheme}};
O6H=function(M,q){if(M.simpleText)return Object.assign({},M,{simpleText:cb(M.simpleText,q)});if(!M.runs)return M;for(var G=Object.assign({},M,{runs:[]}),K=0,n=_.k(M.runs),E=n.next();!E.done;E=n.next())if(E=E.value,E.text)if(K+E.text.length<=q)G.runs.push(E),K+=E.text.length;else return G.runs.push(Object.assign({},E,{text:cb(E.text,q-K)})),G;return M};
wNs=function(M,q){return _.sX(M.entities,"chipBarStateEntity",q)};
Cbj=function(M,q){return _.sX(M.entities,"chipEntity",q)};
owY=function(M,q,G,K){return function(){var n=aKw.has(M.displayType)&&M.selected,E=n&&M.deselectCommand?M.deselectCommand:M.tapCommand;!E||n&&K||_.Pb(E,{form:{element:q==null?void 0:q.value}});G==null||G()}};
lK$=function(M){switch(M){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""}};
XN4=function(M,q){return{triggeringElement:M,onDwellTriggeredFn:function(){var G={triggeringElement:M,loadVideoPreviewEventData:q},K=document.querySelector(".video-preview");K&&K.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:G}))},
onDwellEndFn:function(){var G=document.querySelector(".video-preview");G&&G.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
Pbw=function(M,q){var G=_.AL().resolve(_.WR(Xi4)),K=function(){var n=q();return G&&n?XN4(M.value,n):null};
_.zL(function(){var n=K();G&&n&&Promise.resolve().then(function(){G.registerElement(n)});
_.m_(function(){G&&n&&Promise.resolve().then(function(){_.lh(G,n)})})},"csPUge")};
c8y=function(M){var q=M.dataset.resizeObserverId;if(q)return q;q=""+i6i++;return M.dataset.resizeObserverId=q};
gww=function(M,q){var G=c8y(M);K5.has(G)||K5.set(G,new Set);K5.get(G).add(q);n5.has(G)&&q(Object.assign({},{target:M},n5.get(G)))};
Bdj=function(M){M=_.k(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;var G=c8y(q.target),K=Object.assign({},{target:q.target},n5.get(G));if(K!=null&&K.contentRect?K.contentRect.width!==q.contentRect.width||K.contentRect.height!==q.contentRect.height:1)for(n5.set(G,{borderBoxSize:q.borderBoxSize,contentBoxSize:q.contentBoxSize,contentRect:q.contentRect,devicePixelContentBoxSize:q.devicePixelContentBoxSize}),G=_.k(K5.get(G)||[]),K=G.next();!K.done;K=G.next())K=K.value,K(q)}};
IKs=function(){return Ez?Ez:Ez=new Q0y(Bdj)};
Dky=function(M,q){var G=c8y(M);K5.has(G)&&(K5.get(G).delete(q),K5.get(G).size===0&&(K5.delete(G),n5.delete(G),Ez.unobserve(M),delete M.dataset.resizeObserverId));K5.size===0&&Ez&&(Ez.disconnect(),Ez=void 0)};
J8Y=function(M,q){var G=_.AL().resolve(A5);return uzH.map(function(K){return G.observe(M,q,K)})};
Z6Y=function(M){var q=_.AL().resolve(A5);M.forEach(function(G){q.unobserveByKey(G)})};
_.xkj=function(M,q){var G=Object.assign({},b6y,q);q=_.k(m8j());var K=q.next().value,n=q.next().value,E=function(p){var y=p.contentRect.height;if((p=p.contentRect.width)||y||G.canHaveZeroSize)K.width()===p&&K.height()===y||n(K,{height:y,width:p})};
_.SK(function(){var p=M instanceof HTMLElement?M:M.value,y=Uk$(E,G.throttleMs),Y=[];G.useVisibilityObserver&&(Y=J8Y(p,function(A,v){requestAnimationFrame(function(){v==="visible"?(gww(p,y),IKs().observe(p)):Dky(p,y)})}));
Y.length||(gww(p,y),IKs().observe(p));_.m_(function(){Y.length&&(Z6Y(Y),Y.length=0);Dky(p,y)})});
return K};
mki=function(M,q,G,K,n){M=q?M.switchOffCommand:M.switchOnCommand;if(K&&n)zdw(M,G,n);else{var E,p;(E=_.lm({elementsCommand:M}))==null||(p=E.onclick)==null||p.call(E,G)}};
zdw=function(M,q,G){M=_.lm({elementsCommand:M,additionalCommandArgs:{commandController:{onSuccess:function(){G(!1)},
onServerError:function(){G(!1)}}}});
if(M==null?0:M.onclick)M.onclick(q),G(!0)};
TdY=function(M){if(M)return _.C(M,SRj)};
r8j=function(M,q){if(!((M==null?0:M.entitySelectorType)&&(M==null?0:M.entityKey)))return{};switch(M.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":if(_.w("enable_web_shorts_captions_language_command")){var G;var K=(G=_.Mo())==null?void 0:G.getOption("captions","track");var n,E=typeof(K==null?void 0:K.translationLanguage)==="object"&&((n=K.translationLanguage)==null?void 0:n.languageName)||(K==null?void 0:K.displayName)||"";K={data:Object.assign({},
!!E&&{selectionText:{content:E}},!!E&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:typeof K==="undefined"})}}else K={};return K;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_AUDIO_TRACK_SELECTION_TEXT":if(_.w("web_shorts_audio_track_picker")){var p;n=((p=_.Mo())==null?void 0:p.getAudioTrack())||void 0;G=n==null?void 0:(E=n.getLanguageInfo())==null?void 0:E.getName();n={data:Object.assign({},{selectionText:{content:G}},G&&!(n==null?0:(K=n.getLanguageInfo())==
null?0:K.getIsDefault())&&{leadingImage:{sources:[{clientResource:{imageName:"PERSON_RADAR_FILLED"}}]}})}}else n={};return n;case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":return K=M!=null&&M.entityKey?(K=_.e5(q,M.entityKey))?{isHidden:(K==null?void 0:K.adsState)!=="ADS_STATE_PLAYING"}:{isHidden:!0}:{},K;default:return{}}};
j0H=function(M){var q=["A".toString(),"BUTTON".toString()];return function(G){var K=function(n){_.t$(_.h$(n),G,q)||M(n)};
G.addEventListener("click",K);return function(){G.removeEventListener("click",K)}}};
_.V2H=function(M){return function(){return _.C(M(),_.NQ)}};
RdF=function(M){switch(M==null?void 0:M.all){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;default:return 0}};
fKD=function(M){var q={};(M==null?void 0:M.flexDirection)==="FLEX_DIRECTION_ROW"||(M==null?void 0:M.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"?q["margin-right"]=(0,_.kn)(function(){return RdF(M==null?void 0:M.gap)}):q["margin-bottom"]=(0,_.kn)(function(){return RdF(M==null?void 0:M.gap)});
return q};
FDF=function(M){switch(M){case "FLEX_DIRECTION_COLUMN_REVERSE":return"ytLinearLayoutViewModelFlexDirectionColumnReverse";case "FLEX_DIRECTION_ROW":return"ytLinearLayoutViewModelFlexDirectionRow";case "FLEX_DIRECTION_ROW_REVERSE":return"ytLinearLayoutViewModelFlexDirectionRowReverse";default:return"ytLinearLayoutViewModelFlexDirectionColumn"}};
H6j=function(M){switch(M){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"}};
edy=function(M){switch(M){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"}};
Gaw=function(M,q,G){if(q)return[$kF];switch(M){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[p5];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return G?[p5]:[smH,p5];case "TRANSFER_STATE_PAUSED_BY_USER":return[MFH,p5];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[qyY,p5];default:return[$kF]}};
K1w=function(M,q,G,K){return Gaw(M,q,K).map(function(n){var E=n.text,p=n.iconType,y=n.videoAction;n=n.playlistAction;E=E?{content:E}:void 0;p=p&&{sources:[{clientResource:{imageName:p}}]};var Y=(0,_.xP.unsafeClone)(G);if(Y){var A=_.C(Y,_.KL),v=_.C(Y,_.E0);A&&y?A.action=y:v&&n&&(v.action=n)}return{title:E,leadingImage:p,rendererContext:Y&&{commandContext:{onTap:{innertubeCommand:Y}}}}})};
nTe=function(M){M=_.O0(M.rendererContext);var q;return(q=_.C(M,_.E0))==null?void 0:q.playlistId};
ETY=function(M){var q;return(q=M.listItems)==null?void 0:q.some(function(G){var K;return _.wx((K=_.C(G,_.Ye))==null?void 0:K.rendererContext)})};
pVu=function(M){var q;return(q=M.listItems)==null?void 0:q.some(function(G){var K,n,E=(n=(K=_.C(G,Nmj))==null?void 0:K.defaultListItem)!=null?n:G;G=_.C(E,_.Ye);return!!_.C(G==null?void 0:G.leadingAccessory,ka4)})};
yS=function(M){var q=_.AL().resolve(_.WR(_.Qx));return q!=null&&q()?M.darkThemeColorPalette:M.lightThemeColorPalette};
Yn=function(M){return{primaryTextColor:L5(M,0),secondaryTextColor:L5(M,1),optionColor:L5(M,2),backgroundColor:L5(M,3),videoBackgroundColor:L5(M,4)}};
L5=function(M,q){if(M){switch(q){case 0:M=M.primaryTitleColor;break;case 1:M=M.secondaryTitleColor;break;case 2:M=M.surgeColor;break;case 3:M=M.section2Color;break;case 4:M=M.section3Color;break;default:return}if(M)return _.w2(M)}};
YyD=function(M){var q=M.element;var G=M.veType;var K=M.storedVisualElement===void 0?null:M.storedVisualElement;var n=M.elementIndex===void 0?0:M.elementIndex;M=M.clientYouTubeData;var E=_.Cx();E!==ymD&&(L1F.clear(),ymD=E);if(q.visualElement&&L1F.has(q.visualElement))return null;if(K&&L1F.has(K))return q.visualElement=K,null;G=_.GE(_.nl(),{veType:G,elementIndex:n,clientYouTubeData:M});if(!G)return null;q.visualElement=G;L1F.add(G);return G};
_.W3=function(M,q,G,K){G=G===void 0?null:G;K=K===void 0?bfH:K;var n=n===void 0?null:n;d7(function(){if(q){G instanceof Function&&(G=G());var E=YyD({element:q,veType:M,storedVisualElement:G,clientYouTubeData:void 0});E&&(ztH(q,n),K(E))}})};
W14=function(M){return M?_.C_(M):""};
Amj=function(M){return(M==null?void 0:M.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
dvD=function(M,q){return _.sX(M.entities,"videoOverviewAsyncDataEntity",q)};
vTy=function(M,q){var G;return"linear-gradient(to bottom, "+((G=q==null?void 0:q.map(function(K){var n=M?K.darkThemeColor:K.lightThemeColor;return n?_.C_(n)+" "+((K==null?void 0:K.startLocation)||0)*100+"%":"transparent"}))==null?void 0:G.join(", "))+")"};
hFY=function(M,q,G,K,n){if(!((K==null?0:K.height)&&(K==null?0:K.width)))return{size:0};var E=K.width;K=K.height;if(n)return q==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||q==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&E>K?{size:312/FWy}:q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(G!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||M!==1&&M!==2||q!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&q!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&q!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(q==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||q==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||K===E)switch(M){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(q==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||K>E)switch(M){case 1:case 3:return{size:240*f5H};default:return{size:360*f5H}}switch(M){case 1:case 2:return{size:1/FWy*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.tFH=function(M){if(!("matchMedia"in window))return _.Mz(Error("Rh")),function(){return!1};
var q=window.matchMedia(M);M=_.k(_.lQ(q.matches,void 0,"jLJc8e"));var G=M.next().value,K=M.next().value,n=function(E){K(E.matches)};
q.addEventListener?(q.addEventListener("change",n),_.m_(function(){q.removeEventListener("change",n)})):q.addListener&&(q.addListener(n),_.m_(function(){q.removeListener(n)}));
return G};
Ow$=function(M){return M==="IMAGE_BANNER_STYLE_INSET"||M==="IMAGE_BANNER_STYLE_UNKNOWN"};
wVy=function(){if(!("matchMedia"in window))return _.Mz(Error("Rh")),function(){return 0};
var M=T_(function(){return window.matchMedia("(max-width: 527.9px)")}),q=T_(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),G=T_(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),K=T_(function(){return window.matchMedia("(min-width: 1024px)")}),n=_.k(_.lQ(M.matches,void 0,"og9kEc")),E=n.next().value,p=n.next().value;
n=_.k(_.lQ(q.matches,void 0,"ybDWCb"));var y=n.next().value,Y=n.next().value;n=_.k(_.lQ(G.matches,void 0,"o0Gfh"));var A=n.next().value,v=n.next().value;n=_.k(_.lQ(K.matches,void 0,"yqUUgd"));var h=n.next().value,t=n.next().value,O=T_(function(){return function(J){p(J.matches)}}),a=T_(function(){return function(J){Y(J.matches)}}),g=T_(function(){return function(J){v(J.matches)}}),D=T_(function(){return function(J){t(J.matches)}});
_.SK(function(){M.addEventListener?(M.addEventListener("change",O),q.addEventListener("change",a),G.addEventListener("change",g),K.addEventListener("change",D)):M.addListener&&(M.addListener(O),q.addListener(a),G.addListener(g),K.addListener(D));_.m_(function(){M.removeEventListener?(M.removeEventListener("change",O),q.removeEventListener("change",a),G.removeEventListener("change",g),K.removeEventListener("change",D)):M.removeListener&&(M.removeListener(O),q.removeListener(a),G.removeListener(g),
K.removeListener(D))})});
return function(){return E()?1:y()?2:A()?3:h()?4:0}};
C7u=function(M){var q=0;M=_.k([M.title,M.metadata,M.actions,M.description,M.attribution]);for(var G=M.next();!G.done;G=M.next())G.value&&q++;return q};
aEe=function(M){return M===1||M===2?1:0};
lEF=function(M){M=(new oTY).parse(M);return(new id).render(M).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(q){var G=q.split(":").map(Number),K=0,n=0;if(G.length===3)G=_.k(G),K=G.next().value,n=G.next().value,G=G.next().value;else if(G.length===2)G=_.k(G),n=G.next().value,G=G.next().value;else if(G.length===1)G=_.k(G).next().value;else throw Error("Sh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(K*3600+n*60+G)+'" role="button">'+q+"</span>"})};
XVF=function(M){M=_.k(M.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var q=M.next(),G={};!q.done;G={clickHandler$jscomp$5:void 0},q=M.next()){q=q.value;G.clickHandler$jscomp$5=function(n){n=Number(n.target.getAttribute("data-time"));if(isNaN(n))throw Error("Th");var E;(E=_.Mo())==null||E.seekTo(n,!0)};
var K=function(n){return function(E){E.key!=="Enter"&&E.key!=="Space"||(0,n.clickHandler$jscomp$5)(E)}}(G);
q.setAttribute("tabindex","0");q.removeEventListener("click",G.clickHandler$jscomp$5);q.removeEventListener("keydown",K);q.addEventListener("click",G.clickHandler$jscomp$5);q.addEventListener("keydown",K)}};
P7e=function(){return _.W("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.W(AY,{percentWidth:100}),_.W(AY,{animationDelay:200}),_.W(AY,{animationDelay:400}),_.W(AY,{animationDelay:600}),_.W(AY,{animationDelay:800,percentWidth:60}),_.W("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.W(AY,{percentWidth:100}),_.W(AY,{animationDelay:200}),_.W(AY,{animationDelay:400}),_.W(AY,{animationDelay:600,percentWidth:50}))};
AY=function(M){return _.W("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(M.percentWidth===void 0?100:M.percentWidth)+"%"},_.W("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(M.animationDelay===void 0?0:M.animationDelay)+"ms"}))};
iwy=function(){var M=_.k(_.lQ(function(){return""},void 0,"dXJHWc")),q=M.next().value;
return[function(){return q()()},
M.next().value]};
cmF=function(M,q){M=M?dkj(M):"";q!==void 0&&isFinite(q)?q===0?q=_.Ge("UPDATING",void 0,"Updating..."):(q=E8F(new Date(q),new Date),q=_.Ge("UPDATED_TIME",{relative_time:q},"Updated "+q)):q="";var G="";M&&q&&(G=" \u2022 ");return _.rj(M+G+q)};
Qmu=function(M,q,G,K,n,E){q=q===void 0?0:q;var p=gTy[q],y=p.title,Y=p.iconType,A=p.topButtonRenderer,v=p.sectionClientVE;p=p.videoClientVE;var h;if(q!==1||M.length){G=[];M=_.k(M);for(K=M.next();!K.done;K=M.next()){var t=K.value;if(Gzi(t))G.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:t.videoEntity.videoId,title:jE(t.videoEntity.title),shortBylineText:jE(t.channelEntity.title),thumbnail:t.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:t.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.Ge("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:p}}}}}});else if(qHF(t)){K=G;var O=K.push;var a=void 0,g=void 0,D=void 0,J=void 0,Z=void 0,V=void 0,S=void 0,m=void 0,R=t.mainPlaylistEntity.playlistId,se=t==null?void 0:(m=t.mainPlaylistEntity)==null?void 0:(S=m.thumbnailStyleData)==null?void 0:(V=S[0])==null?void 0:(Z=V.value)==null?void 0:(J=Z.collageThumbnail)==null?void 0:J.coverThumbnail;J=u3H(R);if(!_.w("enable_offline_playlist_page")&&
(t==null?0:(D=t.mainPlaylistEntity)==null?0:D.videos)){b:{D=t==null?void 0:(g=t.mainPlaylistEntity)==null?void 0:g.videos;g=_.zw().getState().entities;if(D!=null&&D.length&&g)for(D=_.k(D),Z=D.next();!Z.done;Z=D.next())if(Z=_.FI(Z.value).entityId,(Z=JSON.parse(Z).videoId)&&jqy(g,Z)==="TRANSFER_STATE_COMPLETE"){g=Z;break b}g=""}g!==void 0&&(J=cs(_.zw().getState(),g),J=_.Te(g,R,void 0,void 0,J))}g=ZNw(_.Ge("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),u3H(R));t=R&&se&&g?{playlistId:R,navigationEndpoint:J,
viewPlaylistText:g,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:se}},title:jE(t.mainPlaylistEntity.title),shortBylineText:jE(t==null?void 0:(a=t.channelEntity)==null?void 0:a.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:BmY,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:R,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.Ge("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:p}}}:
void 0;O.call(K,{gridPlaylistRenderer:t})}}p={gridRenderer:{items:G}};q===1&&(h=cmF(n,E))}else if(K){var yY=_.rj((O=G==null?void 0:G.localizedPromptMessage)!=null?O:"");p={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.rj(_.Ge("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.wfs}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.rj(_.Ge("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};h=cmF(n,E)}else yY=_.rj(_.Ge("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
p={};return{contents:[{shelfRenderer:{title:y,titleAnnotation:h,icon:{iconType:Y},subtitle:yY,content:p,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:A}]}}}}],loggingDirectives:{clientVeSpec:{uiType:v}}}};
IEu=function(M,q,G,K,n,E,p,y,Y,A,v){G=G===void 0?{}:G;K=K===void 0?{}:K;n=n===void 0?!1:n;E=E===void 0?!1:E;p=p===void 0?!1:p;y=y===void 0?!1:y;Y=Y===void 0?!1:Y;A=A===void 0?0:A;v=v===void 0?-Infinity:v;if(!(q.length||M.length||n||y))return E?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:qR$(G)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.rj(_.Ge("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 h=[];M.length&&h.push(Qmu(M,0));y?h.push({contents:[{statementBannerRenderer:Ndy(Y,K)}]}):n?h.push(Qmu(q,1,G,p,A,v)):E&&h.push({contents:[{statementBannerRenderer:KDF(G)}]});(n&&q.length||M.length)&&h.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.rj(_.Ge("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 h.map(function(t){return{itemSectionRenderer:t}})};
dI=function(M,q){if(typeof M!=="object")return null;M=_.k(Object.entries(M));for(var G=M.next();!G.done;G=M.next()){var K=_.k(G.value);G=K.next().value;K=K.next().value;if(G===q)return G;if(K=dI(K,q))return G+"."+K}return null};
v3=function(M){var q=M.content;return(M=M.styleRuns)&&q?{runs:M.map(function(G){var K={text:q.slice(G.startIndex,G.startIndex+G.length)};G.fontColor&&(K.textColor=G.fontColor);return K})}:{simpleText:q}};
JmH=function(M,q,G,K){var n=Dv4;K&&(M.quantity=K);if(!M.quantity||!M.maxQuantity)return{};K=M.minusButton;var E=M.plusButton,p,y,Y,A;return{value:M.quantity,maxValue:M.maxQuantity,onChangeCallback:function(v){n(M,v)},
minusLabel:(p=_.C(K,uAj))==null?void 0:p.label,minimumReachedLabel:(y=_.C(K,uAj))==null?void 0:y.limitReachedLabel,plusLabel:(Y=_.C(E,uAj))==null?void 0:Y.label,maximumReachedLabel:(A=_.C(E,uAj))==null?void 0:A.limitReachedLabel,disabled:q,onRemoveCommand:G}};
Dv4=function(M,q){var G=M.quantityIncrementerEntityKey;if(G){var K={};K.quantity=q;_.Zp(_.hY("quantityIncrementerEntity",G,K));M.onChangeCommand&&_.Pb(M.onChangeCommand)}};
ZwF=function(M){if(M)return M===document.body?document.documentElement:/(auto|scroll)/.test(getComputedStyle(M).overflowY)?M:ZwF(M.parentElement)};
xvw=function(M,q){(M=bwy(M))&&((_.w("enable_mini_app_command_handler_mweb_fix")?0:q)?Uvs.push({command:M,sourceData:{},commandContext:void 0}):_.AL().resolve(_.vR).resolveCommand(M))};
bwy=function(M){return _.C(M,_.Cl)};
zF4=function(){var M=window.performance.timeOrigin+window.performance.now(),q=(new _.tY).setSeconds(M/1E9);return _.Ma(q,2,_.kg(M%1E9),0)};
Sy$=function(M,q){var G;M=(G=_.C(_.C(M,_.Cl),mvY))==null?void 0:G.methodName;var K,n;(G=window.youtubewebview||((K=window.webkit)==null?void 0:(n=K.messageHandlers)==null?void 0:n.youtubewebview))&&M&&(K=new Oz,M=_.DJ(K,1,M),M=_.ZU(M.JSC$12549_serializeBinary()),q=_.ZU(q),G.postMessage(M+","+q))};
wI=function(M,q){var G=_.C(_.C(M,_.Cl),mvY);G&&(q&&(G.serializedAdditionalMetadata=_.ZU(q)),xvw(M,!0))};
Tm$=function(M){switch(M){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"}};
rmu=function(){return!!_.R9("ID_TOKEN")};
RFu=function(M){return M instanceof Error&&M.cause instanceof jmi&&M.cause.rpcErrorCode!==void 0?!VFy.includes(M.cause.rpcErrorCode):!0};
F1e=function(){return _.Nz(fEy,{authuser:""+(_.R9("SESSION_INDEX")||0)})};
C5=function(M,q,G,K){G=G===void 0?"MINI_APP_SDK_API_UNSPECIFIED":G;K=K===void 0?"":K;var n=new _.bj;G={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:K,sdkApi:G};M instanceof Error&&(n.message=M.message,n.name=M.name,M.cause instanceof jmi&&M.cause.rpcErrorCode!==void 0&&(G.rpcErrorCode=M.cause.rpcErrorCode));var E;(E=q.onError)==null||E.call(q,{loggingError:n,metadata:G})};
eFw=function(M,q,G,K){switch(M){case "MINI_APP_SOURCE_GAMESNACKS":return new aU(q,G,K);default:return new HwF(q,G,K)}};
$vF=function(M){switch(M){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"}};
s$s=function(M){switch(M){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"}};
MIH=function(M){switch(M){case 1:return"MINI_APP_SDK_API_FIRST_FRAME_READY";case 9:return"MINI_APP_SDK_API_GAME_READY";case 2:return"MINI_APP_SDK_API_LOAD_DATA";case 3:return"MINI_APP_SDK_API_SAVE_DATA";case 4:return"MINI_APP_SDK_API_SEND_SCORE";case 5:return"MINI_APP_SDK_API_ON_AUDIO_ENABLED_CHANGE";case 6:return"MINI_APP_SDK_API_ON_PAUSE";case 7:return"MINI_APP_SDK_API_ON_RESUME";case 8:return"MINI_APP_SDK_API_GET_LANGUAGE";case 10:return"MINI_APP_SDK_API_IS_AUDIO_ENABLED";case 12:return"MINI_APP_SDK_API_SHARE_INVITE_CODE";
case 13:return"MINI_APP_SDK_API_ON_GAME_DATA_AVAILABLE";default:return"MINI_APP_SDK_API_UNSPECIFIED"}};
qre=function(){return Math.floor(Math.random()*4)+1};
G2F=function(M,q,G,K){M=_.k(Object.entries(M));for(var n=M.next(),E={};!n.done;E={message$jscomp$995:void 0},n=M.next()){var p=_.k(n.value);n=p.next().value;p=p.next().value;E.message$jscomp$995=p;q.push(setTimeout(function(y){return function(){K(!1);G(y.message$jscomp$995.text)}}(E),E.message$jscomp$995.delayMs));
Number(n)>0&&q.push(setTimeout(function(){K(!0)},E.message$jscomp$995.delayMs-400))}};
Kci=function(M,q){var G=G===void 0?bfH:G;_.w("mweb_fix_monitor_visibility_after_render")?M&&d7(function(){ztH(M,q,G)}):d7(function(){ztH(M,q,G)})};
nfH=function(M,q){var G=document.createElement("ytd-engagement-panel-section-list-renderer");G.data=M;if(q==null?0:q.isPersistentPanel)G.isPersistentPanel=!0;if(q==null?0:q.hideDelayMs)G.hideDelayMs=q.hideDelayMs;return G};
pH$=function(M){Efe||(Efe=NvF(new _.It(1,void 0,void 0,k2e),0));var q=Efe.format(Math.floor(M));q=Bs==="be"||Bs==="bg"||Bs==="es"||Bs==="et"||Bs==="hu"||Bs==="ka"||Bs==="lv"||Bs==="pl"||Bs==="pt-PT"||Bs==="sq"?q.replace(new RegExp("^(\\d)"+k2e.GROUP_SEP.replace(".","\\.")+"(\\d+("+k2e.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):q;return M>=1E3&&M<=9999&&q[1]==="."&&(Bs==="sl"||Bs==="it")?q.replace(".",""):q};
Yr$=function(M,q,G,K){if(M)return K=K||M.likeStatus,q?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:K==="LIKE",isDisabled:!M.likesAllowed,defaultIcon:{iconType:G},defaultText:K==="LIKE"?M.likeCountWithUnlikeText:M.likeCountText,toggledText:K==="LIKE"?M.likeCountText:M.likeCountWithLikeText,defaultNavigationEndpoint:yk$(M,"LIKE"),defaultServiceEndpoint:Lcj(M,"LIKE"),toggledServiceEndpoint:Lcj(M,"INDIFFERENT"),defaultTooltip:_.UX(M.likeCountTooltipText),toggledTooltip:_.UX(M.likeCountTooltipText),
targetId:M.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:K==="DISLIKE",isDisabled:!M.likesAllowed,defaultIcon:{iconType:G},defaultText:K==="DISLIKE"?M.dislikeCountWithUndislikeText:M.dislikeCountText,toggledText:K==="DISLIKE"?M.dislikeCountText:M.dislikeCountWithDislikeText,defaultNavigationEndpoint:yk$(M,"DISLIKE"),defaultServiceEndpoint:Lcj(M,"DISLIKE"),toggledServiceEndpoint:Lcj(M,"INDIFFERENT"),defaultTooltip:_.UX(M.dislikeCountTooltipText),
toggledTooltip:_.UX(M.dislikeCountTooltipText)}};
yk$=function(M,q){if(q==="LIKE")return M.likeCommand;if(q==="DISLIKE")return M.dislikeNavigationEndpoint};
Lcj=function(M,q){var G;return(G=M.serviceEndpoints)==null?void 0:G.find(function(K){var n;return((n=_.C(K,_.oU))==null?void 0:n.status)===q})};
_.dcj=function(M,q,G){return window.spf&&!_.w("web_disable_spfjs_client")?Wc$(M,q,G):Aku(M,q)};
Wc$=function(M,q,G){var K=null,n=(new _.X4(function(E,p){var y={};if(q){y.method=q.method;var Y=q.postParams||{};dge(M,q)&&(Y[_.R9("XSRF_FIELD_NAME")]=_.R9("XSRF_TOKEN"));y.postData=_.gP(Y);q.type&&(y.type=q.type);Y=q.headers}y.headers=p8e(M,Y);_.w("debug_forward_web_query_parameters")&&(M=_.Wbu(M,window.location.search));y.experimental_headers=y.headers;y.onError=function(A){A.err&&A.xhr&&(A.err.params={url:A.xhr.responseURL,response:A.xhr.responseText.substr(0,64)});p(A.err)};
y.onPartDone=function(A){G&&G.call(null,A.part)};
y.onDone=function(A){var v=vfj(A.response,"xsrf_token");ye(window.location.href,M)&&v&&_.Vz("XSRF_TOKEN",v);if(v=vfj(A.response,"service_worker_killswitch"))_.Vz("SERVICE_WORKER_KILLSWITCH",v),tB$();E(A.response)};
K=spf.request(M,y)})).then(hLy);
n.thenCatch(function(E){var p=E instanceof _.l_,y=E&&E.hasOwnProperty("params")&&E.params.response?E.params.response:"";E instanceof Error&&(y?p?e4e(E):y===')]}\'\n{"reload":"now"}'?e4e(E):(tIj(E,M,y),Oaj(E,y)?_.j1(E):_.T6(E)):e4e(E));K&&K.abort()});
return n};
hLy=function(M){if(M.type==="multipart"){var q=M.timing;M=M.parts.reduce(function(G,K){Object.assign(G,K);return G},{});
M.timing=M.timing||{};Object.assign(M.timing,q);M.type="reduced"}return M};
Aku=function(M,q){q=q===void 0?{}:q;var G=null,K=new _.X4(function(n,E){q.onFinish=function(p){if(p.readyState===XMLHttpRequest.DONE)if(p.status===200){if(p.responseType!=="json"){var y=p.response;y.substring(0,5)===")]}'\n"&&(y=y.substring(5));try{var Y=JSON.parse(y)}catch(A){Y=A}}else Y=p.response;Y instanceof Error?E(Y):(y=vfj(Y,"xsrf_token"),ye(window.location.href,M)&&y&&_.Vz("XSRF_TOKEN",y),p=p.responseURL,window.performance&&window.performance.getEntriesByName?(y=window.performance.getEntriesByName(p).pop())?
p={responseStart:(0,_.d8)()-(y.responseEnd-y.responseStart)}:(Math.random()<.01&&(y=Error("ei"),y.params=p,_.j1(y)),p={responseStart:-1}):p={responseStart:0},Y.timing=Y.timing||{},Object.assign(Y.timing,p),n(Y))}else E(Error("di`"+p.status))};
(G=_.cR(M,q))||E(Error("di`"+G.status))});
K.thenCatch(function(n){n instanceof Error&&(tIj(n,M),Oaj(n)&&(n.level="WARNING"))});
_.w("cancel_pending_navs")&&K.thenCatch(function(){G.abort()});
return K};
vfj=function(M,q){var G=M[q],K=M.parts;M.type==="multipart"&&K&&(G=(M=K.find(function(n){return q in n}))&&M[q]);
return G};
tIj=function(M,q,G){var K=M.message||"";q={original:K,url:q};if(G)if(K=K.match(/position:?\s*(\d+)/)){K=K&&Number(K[1])?Number(K[1]):0;var n=Math.max(K-25,0);q.position=K;q.response=G.substring(n,K+25)}else q.response=G.substring(0,50);_.V2(M,q);try{M.message="JSON parse error"}catch(E){}};
Oaj=function(M,q){M=M.message||"";M=!!(M.indexOf("<")>=0||M.indexOf("end of ")>=0||M.indexOf("Unterminated string")>=0||M.indexOf("Unexpected EOF"));if(!M&&q)for(var G=q.length,K=!1,n=0;n<G;n++)if(K&&q[n]==="\\")n++;else if(q[n]==='"')K=!K;else if(q[n]==="<"&&!K){M=!0;break}return M};
wHy=function(){return document.documentElement.hasAttribute("dark")};
_.CTe=function(M,q){if(M!=="GFEEDBACK"&&M!=="GUIDED_HELP")_.eK(Error("fi`"+M));else{var G=_.AL().resolve(_.WR(_.md));if(G&&(G=G.getCurrentPage())&&G.getServiceTrackingParams&&(G=G.getServiceTrackingParams()))for(var K=0,n;n=G[K++];)if(n.service===M){if(M=n.params)for(G=0;K=M[G++];)q[K.key]=K.value;break}}};
_.avy=function(M){var q=_.TM();q&&(q=q.getPlayer())&&(q.pauseVideo(),M.playback_id=q.getVideoData().cpn,M.eid=q.getVideoData().eventId,Object.assign(M,q.getFeedbackProductData()))};
ofy=function(){var M={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.R9("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(M.enableAnonymousFeedback=!0);_.R9("SESSION_INDEX")&&(M.authuser=String(_.R9("SESSION_INDEX")));_.w("enable_pageid_for_feedback")&&_.R9("DELEGATED_SESSION_ID")&&(M.pageId=String(_.R9("DELEGATED_SESSION_ID")));return M};
_.XT=function(M){_.w("enable_ypc_spinners")&&_.VW(M,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},M])};
_.P3=function(M){_.w("enable_ypc_spinners")&&_.VW(M,"yt-close-popup-action",["yt-loading-renderer"])};
lve=function(M){return new Promise(function(q,G){_.oM({verifyCommand:{recaptchaToken:M.recaptchaResponse}},{commandController:{onSuccess:function(K,n){n||G("ChallengeService did not return a response.");var E;q({challengeCompleted:(E=n.verified)!=null?E:!1})},
onServerError:function(K,n){G(n)}}})})};
XHe=function(M,q,G,K){q({recaptchaResponse:K}).then(function(n){n.challengeCompleted?_.uj()?(G(3),_.AL().resolve(_.vR).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:M}})):G(2):G(4)},function(){G(4)})};
ia$=function(M,q,G){_.cF(_.Ow(PTH,_.R9("HL")),function(){var K;(K=window.grecaptcha)==null||K.ready(function(){var n=window.grecaptcha;n?(G(n.render(M,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:XHe.bind(null,M,lve,q)})),q(1)):q(4)})})};
ckY=function(M,q){return function(){switch(q()){case 0:return M().captchaLoadingMessage;case 1:return M().challengeReason;case 3:return M().captchaSuccessfulMessage;case 2:return M().captchaCookieSetFailureMessage;case 4:return M().captchaFailedMessage;default:return M().challengeReason}}()};
_.i_=function(){if(!gfy){var M=document.querySelector("#player.skeleton");M&&(_.cX(M),gfy=!0)}};
_.Q$s=function(){return Bvj=ldF()};
uxy=function(){return _.L(function(M){return Ivi!==void 0?M.return():M.yield(DcF(),0)})};
DcF=function(){return _.L(function(M){if(M.nextAddress==1)return M.yield(P0j(),2);Bvj=M.yieldResult;Ivi=_.r8.addLowPriorityJob(DcF,5E3);_.gL(M)})};
zLy=function(M){var q=q===void 0?Jky:q;var G,K,n=(G=M.responseContext)==null?void 0:(K=G.mainAppWebResponseContext)==null?void 0:K.trackingParam;if(!n){q.increment("MISSING");var E,p,y,Y,A,v;_.j1(new _.bj("282054944_a",{ah5:!!((E=M.responseContext)==null?0:(p=E.mainAppWebResponseContext)==null?0:p.loggedOut),jNg:((y=M.responseContext)==null?void 0:y.mainAppWebResponseContext)===void 0,tLx:M.responseContext===void 0,cp:(Y=M.playabilityStatus)==null?void 0:Y.contextParams,rWp:(((A=M.streamingData)==
null?void 0:A.formats)||[]).length>0,dcE:(((v=M.streamingData)==null?void 0:v.adaptiveFormats)||[]).length>0,os:!!M.offlineState,cotn:M.cotn}));return 2}G="";try{G=Za$(n)}catch(O){return q.increment("C_ERROR"),_.T6(O),2}try{var h=_.bay(G);var t=Uc4(h)}catch(O){return q.increment("P_ERROR"),_.T6(O),2}t=_.Ya(t,xcF,1,_.WX());n=[];t=_.k(t);for(h=t.next();!h.done;h=t.next())K=h.value,h=K.getPath(),G=(0,_.xP.getValueByKeys)(M,h.split(".")),G=String(G===void 0||G===null?"":G),K=K.getValue()||"",E=/[+\-\/_]/g,
G.replace(E,"")!==K.replace(E,"")&&(q.increment("MISMATCH"),_.w("ab_mis_log_err")&&(G=new _.bj("282054944_p",{zNr:h,g:String(G),e:String(K)}),_.T6(G)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(h)||(h.match(/enforcementMessageViewModel/i)?n.push(3):n.push(2)));if(n.length>0)return Math.max.apply(Math,_.Ui(n));q.increment("SUCCESS");return 1};
TvH=function(M){var q=new c3;if(M.interpreterJavascript){var G=_.rK$(M.interpreterJavascript);G=Kv(G).toString();var K=new mc$;_.DJ(K,6,G);_.Xe(q,1,K,uS)}else M.interpreterUrl&&(G=_.jG(M.interpreterUrl),G=_.Iv(G).toString(),K=new _.Sry,_.DJ(K,4,G),_.Xe(q,2,K,uS));M.interpreterHash&&_.gI(q,3,M.interpreterHash,uS);M.program&&_.gI(q,4,M.program,uS);M.globalName&&_.gI(q,5,M.globalName,uS);M.clientExperimentsStateBlob&&_.gI(q,7,M.clientExperimentsStateBlob,uS);return q};
B3=function(M){var q={};M=_.k(M.split("&"));for(var G=M.next();!G.done;G=M.next())G=G.value.split("="),G.length===2&&(q[G[0]]=G[1]);return q};
rkY=function(M){return Number(M.t)||7200};
SbF=function(){if(_.w("bg_st_hr"))return"havuokmhhs-0";var M,q=((M=globalThis.performance)==null?void 0:M.timeOrigin)||0;return"havuokmhhs-"+Math.floor(q)};
j$H=function(){return new Promise(function(M){var q=window;q.ntpevasrs!==void 0?M(new QS(q.ntpevasrs)):(q.ntpqfbel===void 0&&(q.ntpqfbel=[]),q.ntpqfbel.push(function(G){M(new QS(G))}))})};
VIY=function(M){var q=M.gcv.bind(M);_.Y5("yt.aba.att",q);M=M.ryg.bind(M);_.Y5("yt.aba.att2",M)};
fv4=function(M){switch(_.ij(M.input)){case _.m4(RLj):var q={};return q.encryptedVideoId=M.innerTubeRequest.externalVideoId,q}return{}};
eLi=function(M){switch(_.ij(M.input)){case _.m4(RLj):if(_.w("web_generate_att_data_for_get_transcript_request"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.m4(FcF):if(_.w("enable_att_for_share_on_web_client"))return"ENGAGEMENT_TYPE_SHARE";break;case _.m4(IU):if(_.w("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&M.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.m4(HaH):var q,G;if(_.w("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&
((G=_.C((q=M.config)==null?void 0:q.command,uyD))==null?0:G.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.sjy=function(M){var q;if(M.playlistVideoRenderer&&((q=M.playlistVideoRenderer)==null?0:q.engagementBar))return $cH(M.playlistVideoRenderer.engagementBar);if(_.C(M,D$)){var G;if(M=(G=_.C(M,D$))==null?void 0:G.engagementBar)return $cH(M)}return""};
$cH=function(M){if(!M)return"";M=_.C(M,_.Mni);if(M==null||!M.actions)return"";M=_.k(M.actions);for(M=M.next();!M.done;M=M.next()){M=_.C(M.value,_.q8y);var q=void 0;if((q=M)==null||!q.itemId)break;return M.itemId}return""};
_.Gqu=function(M){var q;if(M.playlistVideoRenderer&&((q=M.playlistVideoRenderer)==null?0:q.videoId))return M.playlistVideoRenderer.videoId;if(_.C(M,D$)){var G,K;if(M=(G=_.C(M,D$))==null?void 0:(K=G.playlistItemData)==null?void 0:K.videoId)return M}return""};
_.KsF=function(M){var q;if(M.playlistVideoRenderer&&((q=M.playlistVideoRenderer)==null?0:q.voteCount))return M.playlistVideoRenderer.voteCount;if(_.C(M,D$)){var G,K;if(M=(G=_.C(M,D$))==null?void 0:(K=G.playlistItemData)==null?void 0:K.voteCount)return M}return 0};
_.u_=function(M,q){return _.sX(M.entities,"flowStateEntity",q)};
Eiy=function(M,q,G,K){var n=void 0;M=_.k(M[q.iconName]||[]);for(var E=M.next();!E.done;E=M.next()){E=E.value;var p=q.iconSize;var y=q.iconStyle;p=!p||p===E[2];var Y=nij[E[0]];K&&K!==E[1]||!p||y&&y!==Y?y=!1:n?(y=nij[E[0]],y=!!q.iconStyle||y==="youtube_outline",p=n.version<=E[1],y=(!!q.iconSize||E[2]===24)&&y&&p):y=!0;y&&(n={name:q.iconName,style:nij[E[0]],size:E[2],version:E[1],allowMirroring:!!E[3],url:G(q.iconName,E)})}return n};
Nes=function(M,q,G,K){return M+(""+nij[G[0]]+((K===void 0?0:K)?"_experimental":"")+"/"+q+"/v"+G[1]+"/")+(G[2]+"px.svg")};
kqu=function(M){return _.R9("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&_.R9("INNERTUBE_CLIENT_NAME")!=="WEB_CREATOR"?"bookmark":M};
p0F=function(M,q){return Nes("https://fonts.gstatic.com/s/i/",M,q)};
yfj=function(M,q){return Nes("https://fonts.gstatic.com/s/i/",M,q,!0)};
Lsi=function(M,q){return Nes("https://www.gstatic.com/youtube/img/icons/web/",M,q)};
Wsy=function(M){var q=M.enabled;var G=M.itemPlaybackModel;var K=M.thumbnailElRef;var n=M.containerElRef;var E=M.options;var p;_.zL(function(){var y=n==null?void 0:n.value;var Y,A=(Y=K())==null?void 0:Y.value;Y=G();var v=E();if(q&&Y&&y&&A&&(v==null?0:v.thumbnail)){var h={data:Y,hostElement:y},t,O,a=[].concat(_.Ui((t=v.thumbnailOverlays)!=null?t:[]),_.Ui((O=Y.overlays)!=null?O:[]));O=Y.itemPlaybackOptions;t=(O==null?void 0:O.enableRoundedPlayer)||v.enableRounding;O=O==null?void 0:O.disableTimeStatusOverlay;
var g,D;y={mediaRenderer:h,lockupElement:y,thumbnailElement:A,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.aM((g=Y.inlinePlayerData)==null?void 0:g.onVisible),navigationEndpoint:_.aM((D=Y.inlinePlayerData)==null?void 0:D.onSelect),thumbnail:v.thumbnail,thumbnailOverlays:a,accessibilityText:v.accessibilityText||""},thumbnailSize:v.thumbnailSize,enableRounding:t,mouseleaveCallback:v.mouseleaveCallback,hideTimeDisplay:O}}}else y=void 0;if(g=y){var J;(J=p)==null||JY(J);p=oZ(g);var Z,V;
((Z=G())==null?0:(V=Z.inlinePlayerData)==null?0:V.forceImpAutoplay)&&Y8s(p)}},"BLiQOd");
_.m_(function(){var y;(y=p)==null||JY(y)})};
Afy=function(M){M=atob(M);for(var q=[],G=0;G<M.length;G++)q.push(M.charCodeAt(G));return new Blob([new Uint8Array(q)],{type:"image/png"})};
vi$=function(M,q,G,K){K=K===void 0?"INSERTION_POSITION_UNSPECIFIED":K;return M({targetId:q},function(n){var E,p=(E=n.contents)!=null?E:[];E=G!=null?G:[];var y=dHY(p);switch(K){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},n,{contents:[].concat(_.Ui(p.slice(0,y)),_.Ui(E),_.Ui(p.slice(y+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},n,{contents:[].concat(_.Ui(E),_.Ui(p))});case "INSERTION_POSITION_LAST":return Object.assign({},n,{contents:[].concat(_.Ui(p),_.Ui(E))});
default:return n}})};
tn$=function(M,q,G,K,n){n=n===void 0?"RELATIVE_INSERTION_POSITION_AFTER":n;return M({targetId:q},function(E){var p,y=(p=E.contents)!=null?p:[];p=hQH(y,G);if(p<0)return E;p=n==="RELATIVE_INSERTION_POSITION_BEFORE"?p:p+1;return Object.assign({},E,{contents:[].concat(_.Ui(y.slice(0,p)),_.Ui(K),_.Ui(y.slice(p)))})})};
dHY=function(M){var q=M.findIndex(function(G){return _.C(G,_.Z$)});
return q>=0?q:M.length};
hQH=function(M,q){return M.findIndex(function(G){a:{G=_.k(Object.values(G));for(var K=G.next();!K.done;K=G.next())if((K=K.value)&&K.targetId){G=K.targetId;break a}G=""}return G===q})};
w0F=function(M,q,G){return M({targetId:q},function(K){var n,E=(n=K.contents)!=null?n:[];return Object.assign({},K,{contents:OcF(E,G)})})};
OcF=function(M,q){return M.filter(function(G){var K=q.includes;a:{G=_.k(Object.values(G));for(var n=G.next();!n.done;n=G.next())if((n=n.value)&&n.targetId){G=n.targetId;break a}G=""}return!K.call(q,G||"")})};
_.CBy=function(M,q){return{engagementPanelSectionListRenderer:{panelIdentifier:M,identifier:q,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
a0e=function(M,q){M=M.getAvailableAudioTracks();if(M.length)return M==null?void 0:M.find(function(G){var K;return(G==null?void 0:(K=G.getLanguageInfo())==null?void 0:K.getId())===q})};
_.l0i=function(M){var q,G=(q=M.getOption("captions","tracklist",{includeAsr:!0}))!=null?q:[];return G=oiH(G,M)};
X0j=function(M){return M.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
oiH=function(M,q){q=X0j(q);if(q==null||!q.length)return M;var G=q.filter(function(p){return p});
q=M.filter(function(p){return p.languageCode.startsWith("en")});
G=_.k(G);for(var K=G.next();!K.done;K=G.next())if(K=K.value,q.length){var n=q[0],E=Object.assign({},n);n.languageCode!==K.languageCode&&(E.displayName=n.languageName+" >> "+K.languageName,E.translationLanguage=K,M.push(E))}return M};
PBy=function(M,q,G){M=_.l0i(M);if(M.length)return G?M.find(function(K){if(typeof(K==null?void 0:K.translationLanguage)==="object"){var n;return((n=K.translationLanguage)==null?void 0:n.languageCode)===q}return!1}):M==null?void 0:M.find(function(K){return K.languageCode===q})};
ic$=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
cfy=function(M){var q=M.getAvailableAudioTracks();if(q!=null&&q.length){var G=M.getAudioTrack();return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Ui(q.map(function(K){return{listItemViewModel:{title:{content:K.getLanguageInfo().getName()},isSelected:K.getLanguageInfo().getId()===(G==null?void 0:G.getLanguageInfo().getId()),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",
actions:[{audioTrackSelectActionCommand:{languageCode:K.getLanguageInfo().getId()}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}}};
gij=function(M){return M.getOption("captions","tracklist",{includeAsr:!0})};
Bey=function(M){var q=gij(M);if(q==null?0:q.length)return q;M.loadModule("captions");return gij(M)};
Qjy=function(M){var q=M.getOption("captions","track");if(q)return q;M.loadModule("captions");return M.getOption("captions","track")};
DHj=function(M){var q=Bey(M);if(q!=null&&q.length){var G=Qjy(M),K;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.Ge("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(G==null?0:G.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Ui(q.map(function(n){return{listItemViewModel:{title:{content:n.displayName},
isSelected:n.displayName===(G==null?void 0:G.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:n.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.Ge("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!G.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!G.translationLanguage&&{selectionText:{content:(G==null?void 0:(K=G.translationLanguage)==null?void 0:K.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[I0w(M)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
I0w=function(M){var q=X0j(M);if(q==null||!q.length)throw Error("Ei");var G=Qjy(M);M=q.filter(function(K){return!K.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Ui(M.map(function(K){var n;return{listItemViewModel:{title:{content:K.languageName},isSelected:K.languageName===(G==null?void 0:(n=G.translationLanguage)==null?void 0:n.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:K.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
bcy=function(M){return new Promise(function(q,G){if(M===void 0)_.T6(Error("Ii"),"ERROR"),G(Error("Ii"));else{G=new _.ujH;var K=_.JfF();G=G.init();var n=_.Zc$(_.R9("YPC_MB_URL"),!0);Promise.all([G,n]).then(function(){var E=_.b_.payments.business.integration.ClientTokenFactory.createClientToken(M,K);q(E)})}})};
zQy=function(M,q,G,K,n,E,p){var y=_.u8();G=G.replace(/-/g,"+").replace(/_/g,"/");var Y=_.El().get("hl"),A=_.Uz(_.JK),v=q==null?void 0:q.element;v&&_.XT(v);UHu(q,!0);_.xHu(A,G,y.resolve,function(){v&&_.P3(v)},function(h){v&&_.P3(v);
y.reject(h)},Y,K?function(h){K&&_.Dt(M,K,{backend_analytics:h})}:void 0,y.resolve,n,E,p);
return y.promise};
UHu=function(M,q){!(M=M==null?void 0:M.element)||M.tagName!=="YT-BUTTON-RENDERER"&&M.tagName!=="YTD-BUTTON-RENDERER"||(M.disabled=q)};
mHF=function(){var M=_.Ge("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.rj(M),actionButton:{buttonRenderer:$0F()}}},popupType:"TOAST"}};
S8D=function(){var M=_.Ge("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.rj(M),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
TeF=function(M){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:M}]}}};
xn=function(M,q,G,K){var n;return _.L(function(E){if(E.nextAddress==1)return _.Cv(E,2),E.yield(M,4);if(E.nextAddress!=2)return(n=_.Yz(q.getState().entities).length>0)?E.return({title:_.rj(_.Ge("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.rj(_.Ge("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:eO$()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
E.return(s0$(G,K));_.i5(E);return E.return(s0$(G,K))})};
rfH=function(M,q){return q?q==="PPSV"||fIj(M,q):!1};
jjH=function(M){M.responseContext||(M.responseContext={});M.responseContext.maxAgeSeconds=0;return M};
mG=function(M){var q;return _.L(function(G){return G.nextAddress==1?G.yield(VnD(M,"service:topbar:fallback"),2):(q=G.yieldResult)&&_.zh(q)?G.return(jjH(_.zh(q))):G.return()})};
RQw=function(M){var q;return _.L(function(G){return G.nextAddress==1?G.yield(VnD(M,"service:downloads_settings:fallback"),2):(q=G.yieldResult)&&_.zh(q)?G.return(q):G.return()})};
VnD=function(M,q){var G;return _.L(function(K){if(K.nextAddress==1)return M?K.yield(M.get(q),2):K.return();G=K.yieldResult;return!G||!_.zh(G)||!isNaN(Number(G.data.expireTimestampMs))&&G.isExpired()?K.return():K.return(G)})};
f0u=function(M){var q=_.AL().resolve(Sb).getState().entities;return M.playlistId?rfH(q,M.playlistId):!1};
Hcj=function(M){var q=_.tL("web_pbj_log_warning_rate",0);q=q>0&&Math.random()<q;if(!_.C(M,_.p_))return q&&_.j1(Error("bj")),!1;var G;return _.w("shorts_controller_retrieve_seedless_sequence_v2")&&((G=_.C(M,_.p_))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:Fsi(M)?!0:(q&&_.j1(Error("cj")),!1)};
Fsi=function(M){var q=(_.C(M,_.Jl)||_.C(M,_.p_)).videoId;if(!q||!eQY.test(q))return!1;var G;return(M=(G=_.C(M.commandMetadata,_.Mg))==null?void 0:G.url)&&(M.includes(q)||M.startsWith("/clip"))?!0:!1};
_.sXe=function(){var M=_.El();return M.getFlag(192)?M.getFlag(190):!(_.w("web_watch_cinematics_disabled_by_default")||_.w("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&$Hj())};
_.VS=function(M,q,G){var K={};K.currentUrl=q;K.vis=M.vis!==void 0?M.vis:0;K.splay=!1;q=_.El();K.autoCaptionsDefaultOn=q.getFlag(66);q.getFlag(141)?q.getFlag(140)?K.autonavState="STATE_OFF":K.autonavState="STATE_ON":K.autonavState="STATE_NONE";K.html5Preference="HTML5_PREF_WANTS";isNaN(_.R9("STS"))||(K.signatureTimestamp=_.R9("STS"));M.autonav&&(K.autoplay=!0,K.autonav=!0);M.mutedAutoplay&&(K.autoplay=!0,K.mutedAutoplay=!0);M.inlinePlayback&&(K.autoplay=!0,K.autonav=!1,K.isInlineUnmutedPlayback=!!M.inlineUnmuted);
K.referer=G;K.lactMilliseconds=M.lact!==void 0?M.lact.toString():"-1";_.w("enable_unknown_lact_fix_on_html5")&&K.lactMilliseconds==="-1"&&_.j1(new _.bj("Unknown LACT is set in playbackContext.",{"lact in tempData":M.lact||"undefined",autonav:M.autonav||"undefined"}));M={};q.getFlag(194)&&(M.hasShownAmbientMode=!0);q.getFlag(192)&&(M.hasToggledOffAmbientMode=!0);_.sXe()&&(M.watchAmbientModeEnabled=!0);K.watchAmbientModeContext=M;return K};
MHy=function(M){var q={},G=M.pbis||0;G&&(q.playbackBeginsInSeconds=G);M.prefetch_reason&&M.prefetch_reason==="hc_pbis"&&(q.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return q};
qsw=function(M,q){var G;if(q==null?0:(G=q.requestTemplate)==null?0:G.panelId)M.panelId=q.requestTemplate.panelId;var K;if(q==null?0:(K=q.requestTemplate)==null?0:K.params)M.params=q.requestTemplate.params};
Key=function(){if(GAy)return GAy();var M=!_.w("idb_response_store_auth_killswitch"),q={};GAy=A0("yt-it-response-store",{objectStores:(q.ResponseStore={addedAtVersion:1},q),shared:!M,upgrade:function(G,K){K(1)&&(G=eG(G,"ResponseStore",{keyPath:["key","clientName"]}),$5(G,"byExpiration","expireTimestampMs"),$5(G,"byInterface","clientName"))},
version:1});return GAy()};
nFy=function(M){return _.Eh(Key(),M)};
N3y=function(M,q){var G;return _.L(function(K){return K.nextAddress==1?K.yield(_.W2(),2):(G=K.yieldResult)?K.return(new EFF(M,q,G)):K.return()})};
kA$=function(M){var q=Object.keys(M)[0];if(q)return M.screenExit&&(q=q+";"+M.screenExit.screen),q};
pki=function(M){var q=new Map;M=_.k(M);for(var G=M.next();!G.done;G=M.next())G=G.value,G!=null&&(q.has(G.taskType)||q.set(G.taskType,[]),q.get(G.taskType).push(G));return q};
ySi=function(M){M=[].concat(_.Ui(M)).sort(function(G,K){return G-K});
var q=Math.floor(M.length/2);return M.length%2?M[q]:(M[q-1]+M[q])/2};
WeF=function(M,q){M=M===void 0?bpu:M;q=q===void 0?{}:q;_.Y5("yt.logging.errors.log",_.T6);JCi();Lew(Squ(),q);window.onerror=M;Ysu=Zpj;window.addEventListener("unhandledrejection",function(G){if(G.reason instanceof Error){var K=G.reason;_.V2(K,{source:"unhandledrejection"});K.name==="AbortError"&&(K.level="WARNING")}Zpj(G.reason);G.preventDefault()})};
_.ASH=function(M){var q,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R,se,yY,d$,cy,t4,ay,bH,iH,oI,r9,X2,EM,LP,Pv,g9,a8,tE,ND;return _.L(function(Mx){if(Mx.nextAddress==1)return Mx.yield(_.EX(M,{mode:"readonly",enableRetries:!0},function(hd){return Nb(hd,"playbackData").then(function(Kn){var w9=Kn.map(function(Ad){return Ad.transfer}).filter(function(Ad){return!!Ad}),Gs=Kn.map(function(Ad){return Ad.offlineVideoPolicy}).filter(function(Ad){return!!Ad}),u5=Kn.filter(function(Ad){return!!Ad.key}).map(function(Ad){return _.$p(_.FI(Ad.key).entityId,
"downloadStatusEntity")});
w9=Nb(hd,"transfer",w9);Gs=Nb(hd,"offlineVideoPolicy",Gs);u5=Nb(hd,"downloadStatusEntity",u5);var jJ=w9.then(function(Ad){Ad=Ad.reduce(function(Wv,qM){(qM==null?0:qM.offlineVideoStreams)&&Wv.push.apply(Wv,_.Ui(qM.offlineVideoStreams));return Wv},[]).filter(function(Wv){return!!Wv});
return Nb(hd,"offlineVideoStreams",Ad)});
return $J.all([w9,Gs,jJ,u5]).then(function(Ad){var Wv=_.k(Ad);Ad=Wv.next().value;var qM=Wv.next().value;var Ry=Wv.next().value;Wv=Wv.next().value;return[Kn,Ad,qM,Ry,Wv]})})}),2);
if(Mx.nextAddress!=3)return q=Mx.yieldResult,Mx.yield(_.EX(M,{mode:"readonly",enableRetries:!0},function(hd){return Nb(hd,"mainDownloadsListEntity").then(function(Kn){var w9,Gs;return(Gs=(w9=Kn[0])==null?void 0:w9.downloads)!=null?Gs:[]})}),3);
G=Mx.yieldResult;K=_.k(q);n=K.next().value;E=K.next().value;p=K.next().value;y=K.next().value;Y=K.next().value;A=n;v=E;h=p;t=y;O=Y;a={};g={};D={};J={};Z={};V=[];S=_.k(v);for(m=S.next();!m.done;m=S.next())(R=m.value)&&(a[R.key]=R);se=_.k(h);for(yY=se.next();!yY.done;yY=se.next())(d$=yY.value)&&(g[d$.key]=d$);cy=_.k(O);for(t4=cy.next();!t4.done;t4=cy.next())(ay=t4.value)&&(D[ay.key]=ay);bH=_.k(t);for(iH=bH.next();!iH.done;iH=bH.next())(oI=iH.value)&&(J[oI.key]=oI);r9=_.k(G);for(X2=r9.next();!X2.done;X2=
r9.next())EM=X2.value,LP=void 0,Z[(LP=EM.videoItem)!=null?LP:""]=!0,EM.videoItem&&(g9=Pv=void 0,a8=(g9=(Pv=_.FI(EM.videoItem))==null?void 0:Pv.entityId)!=null?g9:"",V.push({externalVideoId:a8}));tE=A.filter(function(hd){if(!hd||!hd.key||!hd.offlineVideoPolicy)return!1;hd=_.FI(hd.key).entityId;hd=_.$p(hd,"downloadStatusEntity");var Kn;return!(hd&&((Kn=D[hd])==null?void 0:Kn.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
ND=tE.map(function(hd){var Kn=a[hd.transfer],w9=[];if(Kn==null?0:Kn.offlineVideoStreams)for(var Gs=_.k(Kn.offlineVideoStreams),u5=Gs.next();!u5.done;u5=Gs.next())(u5=J[u5.value])&&w9.push(u5);Gs=g[hd.offlineVideoPolicy];u5=Z;var jJ=hd==null?void 0:hd.playerResponseTimestamp,Ad=_.FI(Gs.key).entityId;hd=_.$p(Ad,"mainVideoEntity");if(Gs.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var Wv="OFFLINE_VIDEO_STATE_DISABLED";Gs.expirationTimestamp&&Number(Gs.expirationTimestamp)<Date.now()/1E3&&(Wv="OFFLINE_VIDEO_STATE_EXPIRED")}else if(Gs.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")Wv="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(Kn==null?void 0:Kn.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":Wv="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":Wv="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":Wv="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":Wv="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":Wv="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":Wv="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:Wv="OFFLINE_VIDEO_STATE_UNKNOWN"}if(Wv==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(Kn==null?void 0:Kn.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":Wv="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":Wv="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":Wv=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}Ad={id:Ad,videoState:Wv};if(Kn==null?0:Kn.cotn)Ad.cotn=Kn.cotn;if(Kn==null?0:Kn.maximumDownloadQuality)Ad.selectedVideoQuality=Kn==null?void 0:Kn.maximumDownloadQuality;if(Kn==null?0:Kn.lastProgressTimeMs)Ad.lastProgressTimeMs=Kn.lastProgressTimeMs;jJ&&(Ad.playerResponseSavedTimeMs=String(Number(jJ)*1E3));Kn=String;jJ=0;w9=_.k(w9);for(Wv=w9.next();!Wv.done;Wv=w9.next())if(Wv=Wv.value,Wv.streamsProgress){Wv=_.k(Wv.streamsProgress);for(var qM=Wv.next();!qM.done;qM=
Wv.next()){var Ry=void 0;jJ+=Number((Ry=qM.value.numBytesDownloaded)!=null?Ry:0)}}Ad.downloadedBytes=Kn(jJ);Ad.selectedOfflineMode=u5[hd]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";Gs.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(Ad.offlinePlaybackDisabledReason=Gs.offlinePlaybackDisabledReason);return Ad});
return Mx.return({offlineVideos:ND,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:V}}})})};
dVy=function(){var M;return _.L(function(q){return q.nextAddress==1?q.yield(_.Gw(),2):(M=q.yieldResult)?q.return(_.ASH(M)):q.return({state:"PES Unavailable"})})};
tHi=function(){var M,q,G,K;return _.L(function(n){if(n.nextAddress==1)return n.yield(_.Gw(),2);if(n.nextAddress!=3)return(M=n.yieldResult)?n.yield(vFu(M),3):n.return({state:"PES Unavailable"});q=n.yieldResult;G={};K=q.reduce(function(E,p){E[p.key]=p;return E},G);
return n.return(hAD(K))})};
hAD=function(M){for(var q={},G=[],K=_.k(Object.keys(M)),n=K.next();!n.done;n=K.next()){var E=n.value;n=M[E];var p=void 0;if(((p=n)==null?void 0:p.entityType)==="mainVideoEntity"){delete M[E];var y=n.data;n={};if(y){var Y=void 0;p=(Y=y.videoId)!=null?Y:"vid-"+E;E=M;n.video=y;delete n.video.formattedDescription;delete n.video.thumbnail;y.owner&&(Y=E[y.owner],Y==null?0:Y.data)&&(delete E[Y.key],n.video.owner=Y.data,delete n.video.owner.avatar);if(y=y.downloadState)if(Y=E[y],Y==null?0:Y.data)if(delete E[y],
y=Y.data.playbackData)if(Y=E[y],Y!=null&&Y.data){delete E[y];y=Y.data;delete y.playerResponseJson;n.playbackData=y;if(y.transfer&&(Y=E[y.transfer],Y==null?0:Y.data)){delete E[Y.key];var A=Y.data;n.transfer=A;Y=[];A=_.k(A.offlineVideoStreams||[]);for(var v=A.next();!v.done;v=A.next())if(v=E[v.value])delete E[v.key],Y.push(v.data);Y&&(n.streams=Y)}(y=y.offlineVideoPolicy)&&(y=E[y])&&y.data&&(delete E[y.key],n.offlineVideoPolicy=y.data)}q[p]=n}}else n&&n.entityType==="offlineOrchestrationActionWrapperEntity"&&
n.data&&(delete M[n.key],p=n.data,E=void 0,G.push({id:p.rootActionId,type:((E=p.actionProto)==null?void 0:E.actionType)||"",entity:n}))}q.wrapperEntities=G;Object.keys(M).length>0&&(q.unknownKeys=M);return q};
O2j=function(){var M,q,G,K,n,E,p,y,Y;return _.L(function(A){if(A.nextAddress==1)return M=(new _.F8("")).hasLocalStorage(),K=!!((q=_.Kj.crypto)==null?0:(G=q.subtle)==null?0:G.importKey),n=!!_.Kj.BroadcastChannel,E=!!_.Kj.navigator.locks,A.yield(AnY(),2);p=A.yieldResult;y=M&&K&&n&&E&&p;Y={isSupported:y};if(y)return A.return(Y);Y.missingBrowserFeatures=[];p||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");M||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
K||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");n||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");E||Y.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return A.return(Y)})};
wkj=function(){var M;return!((M=RU?RU:null)==null||!M.window)};
_.aLy=function(M){if(_.g$()&&_.aFF("Chromium")>=120){var q=_.C$e().mediaSession;try{q.setActionHandler("enterpictureinpicture",function(){M()})}catch(G){}}};
oFy=function(M){for(var q=[],G=_.k(document.styleSheets),K=G.next(),n={};!K.done;n={node$jscomp$771:void 0},K=G.next())n.node$jscomp$771=K.value.ownerNode,n.node$jscomp$771&&(n.node$jscomp$771 instanceof HTMLStyleElement||n.node$jscomp$771 instanceof HTMLLinkElement)&&q.push(new Promise(function(E){return function(p){var y=E.node$jscomp$771.cloneNode(!0);y.onload=function(){p()};
y.onerror=function(){_.j1(Error("tj"));p()};
M.document.head.appendChild(y)}}(n)));
return Promise.all(q)};
DVD=function(M){var q=[_.vc(lLi),_.vc(XkF),_.vc(P$y)];i2i(window.document.documentElement,M.document.documentElement,[_.vc(cSs),_.vc(gFF),_.vc(B3H),_.vc(QXy),_.vc(ILD)]);i2i(window.document.body,M.document.body,q)};
i2i=function(M,q,G){M=_.k(M.attributes);for(var K=M.next();!K.done;K=M.next())if(K=K.value)try{_.kq(G,q,K.name,K.value)}catch(n){}};
JS$=function(M,q){M=new _.f5(M.document.documentElement);M.start(uOs,q);return M};
Z2e=function(M){var q=M.document.documentElement;q.addEventListener("click",function(G){o4y(q,G)});
q.addEventListener("touchstart",function(G){cWY(G)});
q.addEventListener("mousedown",function(G){cWY(G)})};
UVy=function(M,q,G,K){K=K===void 0?!1:K;q=new b24(q||M,G||M);return{x:M.x+((K===void 0?0:K)?q.lengthX*-1:q.lengthX)*.2,y:M.y+((K===void 0?0:K)?q.lengthY*-1:q.lengthY)*.2}};
xV4=function(M){if(!M)return!1;var q=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",G,K,n,E=(n=(G=M.errorScreen)==null?void 0:G.playerLegacyDesktopYpcTrailerRenderer)!=null?n:(K=M.errorScreen)==null?void 0:K.ypcTrailerRenderer;return!!q||!!E};
_.zAs=function(M,q){if(!M)return!1;var G,K=(G=M.errorScreen)==null?void 0:G.playerLegacyDesktopYpcOfferRenderer,n;q=!!(q==null?0:(n=q.playerOverlayRenderer)==null?0:n.gatedActionsOverlayRenderer);return!!xV4(M)||!!K||!!q};
T3i=function(M){return mVy(M,0,"gclid",M.search(Ssy))>=0||mVy(M,0,"gad_source",M.search(Ssy))>=0};
rSi=function(M){var q=[],G=0;return{clear:function(){G=q.length=0},
push:function(K){q[G]=K;G=(G+1)%M},
iterate:function(){return function n(){var E,p,y,Y;return _.FT(n,function(A){switch(A.nextAddress){case 1:_.l5(A,2),E=q.length,p=0;case 4:if(!(p<E)){A.jumpTo(2);break}y=G+p;Y=_.H3;return A.yield(q[y%E],7);case 7:Y(A.yieldResult);p++;A.jumpTo(4);break;case 2:_.oS(A),_.Xr(A,0)}})}()}}};
jXy=function(M){M.eventsToIgnore||(M.eventsToIgnore=[]);var q=M.eventsToIgnore.map(X1D),G=new Set(q),K=rSi(M.bufferSize);return{flush:function(){var n=Array.from(K.iterate());K.clear();n=n.map(function(E){return{name:E.name,timestamp:E.startTime,attributes:E.attributes}});
return JSON.stringify(n)},
onSpanStart:function(n){n.name==="event"&&G.has(n.attributes.type)||K.push(n)}}};
VHH=function(M){M=jXy(M);var q=M.flush;Cue({onSpanStart:M.onSpanStart});fA.subscribe("handleError",function(G){try{G.params.breadcrumbs=q()}catch(K){_.T6(K,"WARNING")}})};
RAy=function(){Ol("web_tracing_action");_.aJ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
fLu=function(){Ol("web_tracing_action");_.aJ("web_tracing_action",{},void 0,"LATENCY_ACTION_WEB_TRACING")};
H2$=function(M,q,G){if(q===void 0){FeH||(fLu(),setInterval(fLu,6E5),FeH=!0);var K="web_tracing_action"}else K=q;var n,E=((n=M.endTime)!=null?n:M.startTime)-M.startTime,p={};n=M.name;var y=M.startTime;p={webTracing:(p[M.name]=M.attributes,p)};G=_.$2(b1F)(n,E,y,p,G,K);if(M.children)for(M=_.k(M.children),K=M.next();!K.done;K=M.next())H2$(K.value,q,G)};
eAy=function(M){var q=c1y.bind(null,"yt.telemetry_extension");window.addEventListener("message",function(G){G.data&&typeof G.data==="object"&&(G=G.data,G.from==="extension"&&G.app==="yt.telemetry"&&(q("Received message from extension",G),M.onMessage(G)))});
return function(G,K){G={app:"yt.telemetry",from:"app",key:G,payload:K};q("Sending message to extension",G);window.postMessage(G,"*")}};
$Vu=function(){var M=M===void 0?3E3:M;var q=eAy({onMessage:function(){}}),G=[];
return{onSpanEnd:function(K){K.parentId==null&&G.push(K)===1&&setTimeout(function(){var n=[].concat(_.Ui(G));G.length=0;q("spansReported",{spans:n})},M)}}};
Mz4=function(){window.performance&&window.performance.getEntriesByType&&window.addEventListener("load",function(){try{var M=window.performance.getEntriesByType("navigation");if(M.length>0){var q=M[0];Xgi("pageLoad",{navigationType:ssy(q.type),unloadEventStart:Math.round(q.unloadEventStart),unloadEventEnd:Math.round(q.unloadEventEnd),domInteractive:Math.round(q.domInteractive),domContentLoadedEventStart:Math.round(q.domContentLoadedEventStart),domContentLoadedEventEnd:Math.round(q.domContentLoadedEventEnd),
domComplete:Math.round(q.domComplete),loadEventStart:Math.round(q.loadEventStart),loadEventEnd:Math.round(q.loadEventEnd),redirectCount:q.redirectCount},function(){})}}catch(G){}})};
ssy=function(M){switch(M){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"}};
qIe=function(M){M=M===void 0?400:M;var q=[],G=[];return{start:function(){return GKj({checkoutEveryNth:M,emit:function(K,n){n&&(q=G,G=[]);G.push(K)}})},
getRecording:function(){return[].concat(_.Ui(q),_.Ui(G))}}};
kn$=function(){for(var M=E9F.value,q={},G=_.k(M.enabledSpansArray),K=G.next();!K.done;K=G.next())q[K.value]=!0;wgu({sessionId:Kxw(),enabledSpans:q,shouldSampleFn:function(E,p,y){if(Gne){var Y;return E==="shortToShort"||(y==null?void 0:(Y=y.rootSpan())==null?void 0:Y.name)==="shortToShort"}return!0}});
iNH();aMw("pageLoad")&&Mz4();M.exportToCsi&&Cue(KJH);M.exportToDevTools&&Cue($Vu());M.maxBreadcrumbs>0&&VHH({eventsToIgnore:nQe,bufferSize:M.maxBreadcrumbs});if(M.sessionReplayEvents>0){var n=qIe(M.sessionReplayEvents);n.start();_.w("web_tracing_session_replay_demo")&&(window.exportSessionReplay=function(){var E=JSON.stringify(n.getRecording(),null,2);E=EQu(new Blob([E],{type:"text/plain"}));var p=document.createElement("a");p.download="session_replay.json";p.dataset.downloadurl=["application/json",
p.download,p.href].join(":");p.style.display="none";p.href=E;p.click();URL.revokeObjectURL(E);NyF("View replay at go/yt-session-replay-viewer")})}};
pK$=function(M){return new Promise(function(q){window.setTimeout(q,M)})};
yFy=function(M){var q={bicf:function(E){M.lP4=E},
blc:function(){return M.getLatestChallengeResponse()},
bcr:function(E){M.lxK.push(E)}},G=window;
G.ntpevasrs=q;if(G.ntpqfbel!==void 0)for(var K=_.k(G.ntpqfbel),n=K.next();!n.done;n=K.next())n=n.value,n(q);G.ntpqfbel=void 0};
LJu=function(M){return _.L(function(q){if(q.nextAddress==1)return _.Cv(q,2),q.yield(M.yIu(),4);if(q.nextAddress!=2)return _.KF(q,0);_.i5(q);_.gL(q)})};
YIF=function(M){var q,G;(q=M.ytcsi)==null||(G=q.tick)==null||G.call(q,"pot_ist")};
WJy=function(M){if(M instanceof Error){var q=_.sx("yt.logging.errors.log");q&&q(M,"WARNING")}};
AFy=function(M){try{var q=JSON.parse(M);if(q.bgChallenge)return q}catch(G){}};
vQy=function(){var M=window,q={networkStatusManagerPromise:_.AL().resolve(new eze(_.G6)),initialChallengeSli:_.w("wpo_att_sli")?new _.otj("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};M=M===void 0?window:M;var G=M.ytAtR,K;q==null||(K=q.initialChallengeSli)==null||_.eb(K);if(G){if(G=AFy(G)){var n;q==null||(n=q.initialChallengeSli)==null||_.$n(n,"SUCCESS");dL4(G,q)}M.ytAtR=void 0}else M.ytAtRC=function(E){if(E=AFy(E)){var p;q==null||(p=q.initialChallengeSli)==null||
_.$n(p,"SUCCESS");dL4(E,q);M.ytAtRC=void 0}}};
O9Y=function(){if(hrs)return hrs;try{var M=_.iI("IFRAME");_.$C(M,_.Ow(tzj));M.sandbox.add("allow-same-origin");M.style.display="none";document.body.appendChild(M);return hrs=M}catch(q){M=new _.bj("Failed to create sandbox iframe"),_.T6(M)}};
wKY=function(M){var q,G;return(G=M==null?void 0:(q=M.contentWindow)==null?void 0:q.fetch)!=null?G:window.fetch};
C1y=function(M){var q,G;return(G=M==null?void 0:(q=M.contentWindow)==null?void 0:q.Request)!=null?G:window.Request};
aXy=function(M){var q,G;return(G=M==null?void 0:(q=M.contentWindow)==null?void 0:q.TextDecoder)!=null?G:window.TextDecoder};
oQs=function(){return function(M,q){_.R9("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS")[M]=q}};
lX$=function(){return function(M,q){var G={};G[M]=q;M=_.$2(_.Jre)(G);Object.keys(M).length>0&&_.t2(M)}};
i9H=function(){if(Ejy()==="hidden")var M="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else Ejy()==="visible"&&(M="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",XKs=null);M&&P1H(M)};
P1H=function(M){if(M==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||M==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(cFy===M)return;cFy=M}var q=9E4+Math.random()*2E3;if(M!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Ap()>q)&&Ejy()==="visible"){q=-1;XKs&&(q=Math.round((0,_.d8)()-XKs));var G=String;var K=_.sx("_fact",window);K=K==null||K==-1?-1:Math.max(Date.now()-K,0);_.ml("foregroundHeartbeat",{firstActivityMs:G(K),clientDocumentNonce:nts,index:String(gQe),lastEventDeltaMs:String(q),trigger:M});
_.Y5("_fact",-1,window);gQe++;XKs=(0,_.d8)()}};
By4=function(M,q,G,K,n,E){q=new Uint8Array(q);if(M.length===0)return q;var p=0;n=n!=null?n:M.length-1;for(var y=G;y<=n;y++){var Y=M[y],A=y===G?K:0,v=void 0,h=y===n?(v=E)!=null?v:Y.length:Y.length;Y=Y.subarray(A,h);q.set(Y,p);p+=Y.length}return q};
_.Qsy=function(){try{return!!self.sessionStorage}catch(M){return!1}};
IXF=function(){var M=navigator;return new Promise(function(q,G){var K;(K=M.webkitTemporaryStorage)!=null&&K.queryUsageAndQuota?M.webkitTemporaryStorage.queryUsageAndQuota(function(n,E){q({usage:n,quota:E})},function(n){G(n)}):G(Error("Dj"))})};
DLF=function(M,q){var G={errorSeverity:q.errorSeverity.toString(),wizFeatureFlags:Object.entries(q.featureFlags).join("\n")};uYH(q,G);q=q.errorSeverity;q===3?_.T6(M,"ERROR",void 0,void 0,void 0,G):q===2&&_.T6(M,"WARNING",void 0,void 0,void 0,G);_.w("cow_if_errors_in_popup")&&q===3&&M.message.indexOf("<If>")!==-1&&window.alert(M.message)};
uLs=function(M,q){var G=xp.get(M)||{layerNode:q};G.layerNode=q;ONw(M,G);M.getScreenLayer=function(){return sF(G.layerNode)}};
JFy=function(M){var q;M=M.parentNode;for(var G;M&&((q=xp.get(M))==null||!q.isRenderer)&&!((G=M.polymerController)!=null?G:M).isRenderer_;)M=M.parentNode||M.host;if(q=M)return xp.get(q)};
Z9y=function(M){if(M){xp.delete(M);var q=_.AL().resolve(A5);BuY(M,q)}};
ULs=function(M,q,G){if(G===void 0?0:G){if(G=M.getAttribute("client-ve-type"),q.data&&!q.disableReactiveLogging||G)_.rY(function(){b9s(M,_.TL(q.data))},"qg"),_.m_(function(){return void Z9y(M)})}else typeof q.data!=="function"&&b9s(M,q.data)};
b9s=function(M,q){xLj++;zri(M,q)&&_.r8.addJob(function(){_.MK(_.r8,function(){if(zri(M,q)&&M.ownerDocument.documentElement===document.documentElement&&M){var G;if(M.getAttribute("layer")){var K=G=Number(M.getAttribute("layer")),n=xp.get(M);n?n.layerNode.layer=K:uLs(M,new mLs(K));(K=JFy(M))&&(n=xp.get(M))!=null&&(n.layerNode.parent=K.layerNode)}else if(G=xp.get(M))G=sF(G.layerNode);else{G=sF;K=new mLs;if(n=JFy(M))K.parent=n.layerNode;uLs(M,K);G=G(K)}G!=null||(G=0);K=M.getAttribute("client-ve-type");
n=Number(K);var E=!1;K=!1;var p=xp.get(M),y;if((y=p)&&!(y=p[SIy]!==q)&&(y=n)){var Y;y=((Y=xp.get(M))==null?void 0:Y.clientVeType)===void 0}y&&(p[SIy]=q,E=K=p.isRenderer=!0);xp.has(M)&&(xp.get(M).clientVeType=n);M.visualElement&&(K=!0);if(_.w("wiz_next_ld_fix_client_ve_spec")){var A;Y=((A=_.C(q==null?void 0:q.rendererContext,_.EE))==null?void 0:A.loggingDirectives)||(q==null?void 0:q.loggingDirectives)}else Y=q==null?void 0:q.loggingDirectives;Y&&Y.clientVeSpec&&(A=Tye(_.qY(),M),A=_.rFj(_.nl(),Y,A||
void 0,G))&&(M.visualElement=A);!M.visualElement&&n&&E&&(M.veType=n,A=void 0,_.w("wiz_next_client_ve_parent_fix")&&(A=Tye(_.qY(),M)),A=_.GE(_.nl(),M,A,G),M.visualElement=A);K&&(A=_.AL().resolve(A5),uFs(M,{data:q,observer:A,layer:G,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
zri=function(M,q){return(q==null?0:q.trackingParams)||(q==null?0:q.loggingDirectives)||_.C(q==null?void 0:q.rendererContext,_.EE)||M.getAttribute("client-ve-type")?!0:!1};
jsy=function(M,q,G){M.componentType!==ZP&&G instanceof HTMLElement&&q&&!_.w("cow_logging_in_component_wrapper")&&ULs(G,q,!0)};
FJe=function(){if(!Vzy){Vzy=!0;var M=Object.assign({},{flushRenderEffectsDuringRender:!0,enableWizQueueEffectAndOnInitInitialRuns:_.w("enable_wiz_queue_effect_and_on_init_initial_runs")},{handleError:DLF,enableComponentStacksInErrorMessages:!1});Object.assign(Y_,M);eSY=Rr4;fXs();GtD=Mxy;sfs=qos}};
fXs=function(){_.w("cow_logging_in_component_wrapper")?(LRs=function(M,q){q instanceof HTMLElement&&ULs(q,M,!0)},zSs=function(){}):(LRs=function(){},zSs=jsy)};
H9y=function(M,q,G){q=q===void 0?{}:q;var K,n=(K=_.C(M.commandMetadata,_.Mg))==null?void 0:K.url;K=q.form||{};!G||K.element||K.skipDefaultElement||(q.form=q.form||{},q.form.element=G);if(n&&n!=="/service_ajax")return{type:0,command:M,form:q.form};if(_.w("kevlar_service_command_check")){if(_.I2(_.AL().resolve(_.YU),M))return Object.assign({},{type:1,command:M},q)}else{var E;if((E=_.C(M.commandMetadata,_.Mg))==null?0:E.apiUrl)return Object.assign({},{type:1,command:M},q)}return{type:2,command:M,form:q.form}};
erF=function(M){if(M.form){var q=M.form,G=Object.assign({},q);q=q.element;G=(delete G.element,G);if(q)return[_.fx(q,[M.command,G,M.commandController])]}return[]};
$Ly=function(M){if(M.form){var q=M.form,G=Object.assign({},q);q=q.element;G=(delete G.element,G);q&&_.FH(q,[M.command],q,G)}};
MTH=function(M,q,G){var K=new sFu(M,q),n=new qK(M,q,G);M={"/youtubei/v1/browse":new GO(M,q,G),"/youtubei/v1/player":K,"/youtubei/v1/navigation/resolve_url":new Ks,"/youtubei/v1/next":n,"/youtubei/v1/guide":new ns(G),"/youtubei/v1/search":new EF(M,q,G),"/youtubei/v1/reel/reel_item_watch":new NK(M,q,G),"/youtubei/v1/get_watch":new kW(K,n)};M["/youtubei/v1/account/account_menu"]=new ps;M["/youtubei/v1/notification/get_notification_menu"]=new yi;return M};
YW=function(){var M=_.AL().resolve(_.Ls);return Promise.resolve(qcw(M,_.Kj.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
Gfw=function(M){return M&&(M=_.Wh(_.hjj(M)))?(new URLSearchParams(M)).get("service"):null};
vh=function(M,q){_.RM(_.AM(),function(){_.oJ("adl")});
_.AL().resolve(KjD)(q);M=M.root;M.loadData&&M.loadData(q);(q==null?0:q.response)?_.$n(Pzy(),"SUCCESS"):_.j1(new _.bj("Lifecycle: No response in data",_.fX("IS_SHELL_LOAD"),q?q.page:"NO_PAGE",q?q.endpoint:"NO_ENDPOINT"));M.polymerController.$["page-manager"].lazyPrepareCriticalPages((q==null?void 0:q.page)||"",q.endpoint);var G,K;((K=_.C(q==null?void 0:(G=q.endpoint)==null?void 0:G.commandMetadata,_.Mg))==null?0:K.webPageType)&&_.zw().dispatch(_.dr(_.C(q.endpoint.commandMetadata,_.Mg).webPageType))};
nV$=function(){var M,q;return _.L(function(G){switch(G.nextAddress){case 1:M=window;if(!M.getDataPromise){G.jumpTo(2);break}_.Cv(G,3);return G.yield(M.getDataPromise(),5);case 5:return G.return(G.yieldResult);case 3:return _.i5(G),G.yield(YW(),6);case 6:return G.return(G.yieldResult);case 2:if(M.getInitialData)return q=M.getInitialData(),M.getInitialData=void 0,G.return(q);throw Error("Fj`"+_.Kj.location.href);}})};
Noy=function(){_.Vz("CSI_SERVICE_NAME","youtube");_.t2({loadType:"cold"});_.w("kevlar_log_lcp")&&EVF(function(M){_.oJ("lcp",M.value)})};
kfe=function(){var M=_.eA(document.location.href,"enable");M&&M.indexOf("scraper")>-1&&_.Vz("ADD_SCRAPER_ATTRIBUTES",!0)};
Wjy=function(M){var q=M.root;M=[pde,yAF,_.hM];_.w("web_feedback_endpoint_autolog_allowlist_killswitch")&&M.push(_.tM,Ljw);YcF(function(G,K){return H9y(G,K,q)},function(G){if(!G.command)return[];
var K;((K=G.form)==null?0:K.element)?G.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},G.form,{endpoint:G.command})})):q.handleNavigate(G);return[]},M);
_.AL().addProvider({provide:_.vR,useValue:_.$A.instance})};
d9j=function(){var M={},q={},G;for(G in AAy){var K=_.k(_.lQ(AAy[G],void 0,"IAtZ7"));M[G]=K.next().value;q[G]=K.next().value}return[M,function(n){for(var E in n){var p=void 0;(p=q[E])==null||p(n[E])}}]};
_.OF=function(M,q,G){q=q===void 0?!1:q;var K=_.xP.getValueByKeys(M,"contents","twoColumnWatchNextResults","results","results","contents"),n=_.xP.getValueByKeys(M,"contents","twoColumnWatchNextResults","playlist","playlist")||null;q&&(n=null);var E=q=null;if(n)q=_.xP.getValueByKeys(n,"titleText"),E=_.xP.unsafeClone(_.xP.getValueByKeys(n,"longBylineText")),K="",E&&(K=_.UX(E)),E=_.bc(K);else if(K){K=_.k(K);for(var p=K.next();!p.done;p=K.next())p=p.value,p.videoPrimaryInfoRenderer&&(q=_.xP.getValueByKeys.apply(_.xP,
[p].concat(_.Ui(vVs)))),p.videoSecondaryInfoRenderer&&(E=_.xP.getValueByKeys.apply(_.xP,[p].concat(_.Ui(hv$))))}else _.Mz(Error("Kj"));var y;M.currentVideoEndpoint?y=M.currentVideoEndpoint:_.Mz(Error("Lj"));var Y;G&&(Y=_.xP.getValueByKeys(G,"playabilityStatus","miniplayer","miniplayerRenderer"));M={miniplayerTitle:q,miniplayerSubtitle:E,watchEndpoint:y,playlistData:n};Y&&(M.miniplayerRenderer=Y);return M};
tTe=function(M){if(M)return _.tj(M)};
_.Ogs=function(){return{isFullscreen:function(){throw Error("Mj");},
toggleFullscreen:function(){throw Error("Nj");},
exitFullscreen:function(){throw Error("Oj");},
isAutonavEnabled:function(){throw Error("Pj");},
setAutonavEnabled:function(){throw Error("Qj");},
isAutoplaySetExplicitly:function(){throw Error("Rj");}}};
wdF=function(M){return M.videoDuration?M.numTaps>1&&M.tapDirection!==0?_.wr(M.draggedTime/M.videoDuration,0,1):_.wr((M.playedTime||0)/M.videoDuration,0,1):0};
Csy=function(M){return M.videoDuration?M.isDragging||M.numTaps>1&&M.tapDirection!==0?_.wr(M.draggedTime/M.videoDuration,0,1):_.wr((M.playedTime||0)/M.videoDuration,0,1):0};
oVs=function(M){var q,G,K;return _.C(M==null?void 0:(q=M.markersMap)==null?void 0:(G=q.find(function(n){return n.key==="HEATSEEKER"}))==null?void 0:(K=G.value)==null?void 0:K.heatmap,auw)};
luF=function(M){var q,G;return(G=(q=oVs(M))==null?void 0:q.heatMarkersDecorations)!=null?G:[]};
Xds=function(M){if(_.w("mweb_supported_chapters_killswitch"))return!0;var q;return!!(M==null?0:(q=M.markersMap)==null?0:q.find(function(G){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(G.key)}))};
_.Psu=function(M){var q=Object,G=q.assign,K;M={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(K=M==null?void 0:M.getPlayerState())!=null?K:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return G.call(q,{},{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},M,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
igj=function(M){return function(q){var G=M(),K,n=(K=G.playerApi)==null?void 0:K.getPlayerState();q&&q!==G.playerState&&(q===1||q===2)&&G.setState({playerState:n})}};
gVi=function(M){return function(q){var G=M(),K=G.playerApi;K&&(q==null?void 0:q.type)==="newdata"&&(cAw&&(clearTimeout(cAw),cAw=void 0),_.w("web_shorts_use_progress_state_for_gapless")?(q=K==null?void 0:K.getProgressState(q==null?void 0:q.playertype),q=q.seekableEnd-q.seekableStart):q=K==null?void 0:K.getDuration(q==null?void 0:q.playertype),G.setState({playedTime:0,videoDuration:q}))}};
Boj=function(M){return function(q){var G=M(),K=G.playerApi;if(K){var n=K.getPresentingPlayerType();_.w("web_shorts_use_progress_state_for_gapless")?(K=K.getProgressState(n),K=K.seekableEnd-K.seekableStart):K=K.getDuration(n);G.setState({playedTime:q,videoDuration:K})}}};
Iuy=function(M){_.W3(112394,M,function(){return QFe},function(q){QFe=q})};
JAe=function(M,q){if(!M)return[];var G,K,n;M=((G=M.markersMap)==null?void 0:(K=G.find(function(E){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(E.key)}))==null?void 0:(n=K.value)==null?void 0:n.chapters)||[];
!D9e(M)||(q==null?0:q.ignoreStub)||(M=[uP$()].concat(_.Ui(M)));return M};
uP$=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
D9e=function(M){if(M.length===0)return!1;var q;return((q=_.C(M[0],Cs))==null?void 0:q.timeRangeStartMillis)!==0};
aH=function(M){return M?M.timeRangeStartMillis||0:0};
bgD=function(M,q){if(M.isDragging&&q)return M=Zgu(M,q),M===-1?uP$():JAe(q)[M]};
Zgu=function(M,q){return M.isDragging&&q?JAe(q,{ignoreStub:!0}).findIndex(function(G,K,n){G=U9y(M);return x9Y(G,n,K).scrubberHovering}):-1};
U9y=function(M){return Object.assign({},M,{videoDuration:M.videoDuration*1E3,playedTime:M.playedTime*1E3,draggedTime:M.draggedTime*1E3})};
x9Y=function(M,q,G){var K=aH(_.C(q[G],Cs));q=aH(_.C(q[G+1],Cs))||M.videoDuration;G=M.isDragging;var n;if(n=M.isDragging)n=M.draggedTime,n=n!==null&&n>=K&&n<q;var E=M.playedTime;return E!==null&&E>=K&&E<q?{videoPosition:"active",isScrubbing:G,scrubberHovering:n}:M.playedTime<K?{videoPosition:"pending",isScrubbing:G,scrubberHovering:n}:{videoPosition:"seen",isScrubbing:G,scrubberHovering:n}};
zvs=function(M,q){return M.videoPosition==="seen"||(q===void 0?0:q)>0};
m9H=function(M,q,G){q=M/q.storyboardInterval;var K=JAe(G);if(!K.length)return-q*72;G=0;K=_.k(K);for(var n=K.next();!n.done;n=K.next())if(aH(_.C(n.value,Cs))/1E3<M)G++;else break;return-(q*72)-G*56};
Scj=function(M){return M?M.width/M.columns:0};
To4=function(M){return M.isHovering?M.hoveredTime:M.draggedTime};
rAF=function(M,q){M=M.draggedTime*1E3;return M>=q.visibleTimeRangeStartMillis&&M<=q.visibleTimeRangeEndMillis};
_.jFu=function(M){if(M===void 0||Number.isNaN(M))return"--:--";var q=Math.abs(Math.floor(M)),G=Math.floor(q/86400),K=Math.floor(q%86400/3600),n=Math.floor(q%3600/60);q=Math.floor(q%60);var E="";G>0&&(E+=G+":",K<10&&(E+="0"));if(G>0||K>0)E+=K+":",n<10&&(E+="0");E+=n+":";q<10&&(E+="0");E+=q;return M>=0?E:"-"+E};
VTy=function(M,q){return function(){var G=To4(M());var K=q();var n=M().playerApi;if(n&&n.getNumberOfStoryboardLevels()!==0){var E=n.getStoryboardFrameIndex(G,1);E!==-1?K=n.getStoryboardFrame(E,1):(G=n.getStoryboardFrameIndex(G,0),n=n.getStoryboardFrame(G,0),K&&n&&(n.height*=3,n.width*=3),K=n)}else K=null;if(!K)return null;q()&&(K.width=90*K.columns,K.height=160*K.rows);return K}};
_.oH=function(M){if(!M||M.getVideoData)return M};
Rvy=function(){var M;return{playerApi:(M=_.Mo())!=null?M:void 0}};
fus=function(M){var q;_.L(function(G){if(G.nextAddress==1)return G.yield(_.s0(),2);if(q=G.yieldResult)q.unMute(!0),q.setVolume(M,!0);_.gL(G)})};
FjY=function(M,q){M&&(M.value=""+q,M.style.setProperty("--gradient-percent",q+"%"))};
Hgy=function(M){var q;return(q=M==null?void 0:M.value)!=null?q:0};
evj=function(){var M;_.L(function(q){if(q.nextAddress==1)return q.yield(_.s0(),2);M=q.yieldResult;if(!M)return q.return();M.isMuted()?M.unMute(!0):M.mute(!0);_.gL(q)})};
$9Y=function(M){var q=_.AL().resolve(_.lq).getPlayerElement();q&&M&&(M===1?q.pause():q.play())};
sLF=function(M){_.Rf(M,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
MCF=function(M){_.Rf(M,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
GHj=function(M){return _.z_(M.document.body,function(){return _.W(qNy,null)},"eh")};
KSF=function(){var M=window.performance.getEntriesByType("navigation");return M?M.map(function(q){return q.type}).includes("reload"):!1};
YNy=function(){Xa(Xa(Xa(Xa(Xa(Xa(Xa(_.AL().resolve(_.Ph),_.nMe),_.EMu),_.NaF),_.kH$),_.pSy),_.yH$),_.LSF)};
WSy=function(M,q){q=q===void 0?!1:q;var G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return q||!_.w("kevlar_shorts_seedless_retry_initial_load")||(G=window,K=!(!G.getDataPromise&&!G.getInitialData),K)?p.yield(nV$(),2):(setTimeout(WSy.bind(window,M,!0),1E3),p.return());if(p.nextAddress!=3)return n=p.yieldResult,p.yield(AHy(n),3);E=p.yieldResult;vh(M,E);_.gL(p)})};
AHy=function(M){var q;if((q=M.response)==null||!q.replacementEndpoint)return _.HF(M);q=_.AL().resolve(_.Ls);M=M.response;_.C(M.replacementEndpoint,_.p_)&&M.sequenceContinuation&&(_.C(M.replacementEndpoint,_.p_).sequenceParams=M.sequenceContinuation);return iq(q,M.replacementEndpoint,{},_.Kj.location.href,"shorts",function(){},function(){return!1})};
vMy=function(M){var q=_.AL().resolve(dU$);M.playerResponse&&q.handleResponse(M.playerResponse);M.response&&q.handleResponse(M.response)};
hMD=function(M){var q=_.zw(),G,K=_.C((G=M.response)==null?void 0:G.frameworkUpdates,JC),n;G=_.C((n=M.playerResponse)==null?void 0:n.frameworkUpdates,JC);var E;M=_.C((E=M.reelWatchSequenceResponse)==null?void 0:E.frameworkUpdates,JC);K&&_.nK(K,q);G&&_.nK(G,q);M&&_.nK(M,q)};
tCi=function(M){var q;_.w("enable_redirect_linking_for_desktop_web_client")&&((q=window.location.hash)==null?0:q.includes("redirect_state"))&&M.url&&(M.url=M.url.toString()+window.location.hash)};
Cew=function(M){var q=_.AL(),G=q.resolve(_.Ls);q=q.resolve(_.Ooy);M.endpoint&&(G=wSw(G,M.endpoint),G.content&&M.response&&_.ch(q,M.response,G.content),G.player&&M.playerResponse&&_.ch(q,M.playerResponse,G.player),G.reelSequence&&M.reelWatchSequenceResponse&&_.ch(q,M.reelWatchSequenceResponse,G.reelSequence))};
gr=function(M,q){vMy(q);hMD(q);var G;(q==null?0:q.url)&&((G=window.location.hash)==null?0:G.includes("redirect_state"))&&(tCi(q),(G=Gfw(q.url))&&_.VW(M.root,"yt-initialize-third-party",[G,q]));Cew(q);G=_.AL();var K=G.resolve(am$);q.playerResponse&&G.resolve(oMi).handleResponse(q.playerResponse);if(q.playerResponse){G=void 0;if(_.w("ab_v_vid_sig")&&q.endpoint){var n,E=(n=_.C(q.endpoint,_.Jl))!=null?n:_.C(q.endpoint,_.p_);E&&(G=E.videoId)}lmw(K,q.playerResponse,G)}q.playerResponse&&$B4(q.playerResponse)&&
_.w("web_enable_ab_rsp_cl")?uxy().then(function(){XSi(K,q.playerResponse);vh(M,q)}):vh(M,q)};
iou=function(M){if(M=M.root.data){var q=_.AL().resolve(Peu);M.endpoint&&(M.response&&q.handleResponse(M.response,void 0,document.querySelector("ytd-app")),M.playerResponse&&q.handleResponse(M.playerResponse),M.reelWatchSequenceResponse&&q.handleResponse(M.reelWatchSequenceResponse))}};
cHY=function(M){var q,G,K,n,E,p;return _.L(function(y){switch(y.nextAddress){case 1:q=window;if(!q.getDataPromise){y.jumpTo(2);break}_.Cv(y,3);return y.yield(q.getDataPromise(),5);case 5:G=y.yieldResult;gr(M,G);_.KF(y,4);break;case 3:return _.i5(y),y.yield(YW(),6);case 6:K=y.yieldResult,vh(M,K);case 4:return y.return();case 2:if(!_.w("sw_nav_preload_pbj")){y.jumpTo(7);break}q.fetchInitialData=function(){var Y;return _.L(function(A){if(A.nextAddress==1)return A.yield(YW(),2);Y=A.yieldResult;vh(M,Y);
_.gL(A)})};
if(q.getInitialData){q.loadInitialData=function(Y){gr(M,Y)};
n=q.getInitialData();q.getInitialData=void 0;gr(M,n);y.jumpTo(8);break}q.fetchInitialData=void 0;return y.yield(YW(),9);case 9:E=y.yieldResult,vh(M,E);case 8:return y.return();case 7:q.getInitialData?(p=q.getInitialData(),q.getInitialData=void 0,gr(M,p)):q.loadInitialData=function(Y){gr(M,Y)},_.gL(y)}})};
BaD=function(){var M=new gMH;_.ffw(M);M.registerInitializationCallback(function(){GhD(void 0,void 0,void 0,_.w("web_enable_mss_batching_ks")?void 0:{batchingStrategy:"BATCH"})});
M.registerCallback("error",function(q,G,K){_.eK(Error("Vj`"+G+"`"+K))})};
QL4=function(M){var q=0;return function(){return q<M.length?{done:!1,value:M[q++]}:{done:!0}}};
ImD=typeof Object.defineProperties=="function"?Object.defineProperty:function(M,q,G){if(M==Array.prototype||M==Object.prototype)return M;M[q]=G.value;return M};
DU4=function(M){M=["object"==typeof globalThis&&globalThis,M,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var q=0;q<M.length;++q){var G=M[q];if(G&&G.Math==Math)return G}throw Error("a");};
_.Yd=DU4(this);ub4="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");_.Yd.BigInt64Array&&(ub4.push("BigInt64"),ub4.push("BigUint64"));var Zoi=function(M,q){if(q)for(var G=0;G<ub4.length;G++)JH$(ub4[G]+"Array.prototype."+M,q)},Bh=function(M,q){q&&JH$(M,q)},JH$=function(M,q){var G=_.Yd;
M=M.split(".");for(var K=0;K<M.length-1;K++){var n=M[K];if(!(n in G))return;G=G[n]}M=M[M.length-1];K=G[M];q=q(K);q!=K&&q!=null&&ImD(G,M,{configurable:!0,writable:!0,value:q})};
Bh("Symbol",function(M){if(M)return M;var q=function(E,p){this.$jscomp$symbol$id_=E;ImD(this,"description",{configurable:!0,writable:!0,value:p})};
q.prototype.toString=function(){return this.$jscomp$symbol$id_};
var G="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",K=0,n=function(E){if(this instanceof n)throw new TypeError("b");return new q(G+(E||"")+"_"+K++,E)};
return n});
Bh("Symbol.iterator",function(M){if(M)return M;M=Symbol("c");ImD(Array.prototype,M,{configurable:!0,writable:!0,value:function(){return boi(QL4(this))}});
return M});
Bh("Symbol.asyncIterator",function(M){return M?M:Symbol("d")});
var boi=function(M){M={next:M};M[Symbol.iterator]=function(){return this};
return M},UUF=typeof Object.create=="function"?Object.create:function(M){var q=function(){};
q.prototype=M;return new q},xUY=function(){function M(){function G(){}
new G;Reflect.construct(G,[],function(){});
return new G instanceof G}
if(typeof Reflect!="undefined"&&Reflect.construct){if(M())return Reflect.construct;var q=Reflect.construct;return function(G,K,n){G=q(G,K);n&&Reflect.setPrototypeOf(G,n.prototype);return G}}return function(G,K,n){n===void 0&&(n=G);
n=UUF(n.prototype||Object.prototype);return Function.prototype.apply.call(G,n,K)||n}}(),zMs;
if(typeof Object.setPrototypeOf=="function")zMs=Object.setPrototypeOf;else{var mUe;a:{var SNH={a:!0},TaH={};try{TaH.__proto__=SNH;mUe=TaH.a;break a}catch(M){}mUe=!1}zMs=mUe?function(M,q){M.__proto__=q;if(M.__proto__!==q)throw new TypeError("e`"+M);return M}:null}Qi=zMs;
_.l=function(M,q){M.prototype=UUF(q.prototype);M.prototype.constructor=M;if(Qi)Qi(M,q);else for(var G in q)if(G!="prototype")if(Object.defineProperties){var K=Object.getOwnPropertyDescriptor(q,G);K&&Object.defineProperty(M,G,K)}else M[G]=q[G];M.superClass_=q.prototype};
_.k=function(M){var q=typeof Symbol!="undefined"&&Symbol.iterator&&M[Symbol.iterator];if(q)return q.call(M);if(typeof M.length=="number")return{next:QL4(M)};throw Error("f`"+String(M));};
nW=function(M){for(var q,G=[];!(q=M.next()).done;)G.push(q.value);return G};
_.Ui=function(M){return M instanceof Array?M:nW(_.k(M))};
_.DQ=function(M){return IH(M,M)};
IH=function(M,q){M.raw=q;Object.freeze&&(Object.freeze(M),Object.freeze(q));return M};
uq=function(M,q){return Object.prototype.hasOwnProperty.call(M,q)};
rH4=function(M){if(M==null)throw new TypeError("g");return Object(M)};
jLY=typeof Object.assign=="function"?Object.assign:function(M,q){M=rH4(M);for(var G=1;G<arguments.length;G++){var K=arguments[G];if(K)for(var n in K)uq(K,n)&&(M[n]=K[n])}return M};
Bh("Object.assign",function(M){return M||jLY});
var JM=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},VCs=function(M){if(M.isRunning_)throw new TypeError("i");
M.isRunning_=!0};
JM.prototype.JSC$8724_next_=function(M){this.yieldResult=M};
var RMF=function(M,q){M.abruptCompletion_={exception:q,isException:!0};M.nextAddress=M.catchAddress_||M.finallyAddress_};
JM.prototype.return=function(M){this.abruptCompletion_={return:M};this.nextAddress=this.finallyAddress_};
JM.prototype.yield=function(M,q){this.nextAddress=q;return{value:M}};
JM.prototype.jumpTo=function(M){this.nextAddress=M};
_.gL=function(M){M.nextAddress=0};
_.Cv=function(M,q,G){M.catchAddress_=q;G!=void 0&&(M.finallyAddress_=G)};
_.l5=function(M,q){M.catchAddress_=0;M.finallyAddress_=q||0};
_.KF=function(M,q,G){M.nextAddress=q;M.catchAddress_=G||0};
_.i5=function(M,q){M.catchAddress_=q||0;q=M.abruptCompletion_.exception;M.abruptCompletion_=null;return q};
_.oS=function(M,q,G,K){K?M.finallyContexts_[K]=M.abruptCompletion_:M.finallyContexts_=[M.abruptCompletion_];M.catchAddress_=q||0;M.finallyAddress_=G||0};
_.Xr=function(M,q,G){G=M.finallyContexts_.splice(G||0)[0];(G=M.abruptCompletion_=M.abruptCompletion_||G)?G.isException?M.nextAddress=M.catchAddress_||M.finallyAddress_:G.jumpTo!=void 0&&M.finallyAddress_<G.jumpTo?(M.nextAddress=G.jumpTo,M.abruptCompletion_=null):M.nextAddress=M.finallyAddress_:M.nextAddress=q};
fmH=function(M){this.JSC$8729_context_=new JM;this.program_=M};
Hoy=function(M,q){VCs(M.JSC$8729_context_);var G=M.JSC$8729_context_.yieldAllIterator_;if(G)return FSs(M,"return"in G?G["return"]:function(K){return{value:K,done:!0}},q,M.JSC$8729_context_.return);
M.JSC$8729_context_.return(q);return ZQ(M)};
FSs=function(M,q,G,K){try{var n=q.call(M.JSC$8729_context_.yieldAllIterator_,G);if(!(n instanceof Object))throw new TypeError("h`"+n);if(!n.done)return M.JSC$8729_context_.isRunning_=!1,n;var E=n.value}catch(p){return M.JSC$8729_context_.yieldAllIterator_=null,RMF(M.JSC$8729_context_,p),ZQ(M)}M.JSC$8729_context_.yieldAllIterator_=null;K.call(M.JSC$8729_context_,E);return ZQ(M)};
ZQ=function(M){for(;M.JSC$8729_context_.nextAddress;)try{var q=M.program_(M.JSC$8729_context_);if(q)return M.JSC$8729_context_.isRunning_=!1,{value:q.value,done:!1}}catch(G){M.JSC$8729_context_.yieldResult=void 0,RMF(M.JSC$8729_context_,G)}M.JSC$8729_context_.isRunning_=!1;if(M.JSC$8729_context_.abruptCompletion_){q=M.JSC$8729_context_.abruptCompletion_;M.JSC$8729_context_.abruptCompletion_=null;if(q.isException)throw q.exception;return{value:q.return,done:!0}}return{value:void 0,done:!0}};
eM$=function(M){this.next=function(q){VCs(M.JSC$8729_context_);M.JSC$8729_context_.yieldAllIterator_?q=FSs(M,M.JSC$8729_context_.yieldAllIterator_.next,q,M.JSC$8729_context_.JSC$8724_next_):(M.JSC$8729_context_.JSC$8724_next_(q),q=ZQ(M));return q};
this.throw=function(q){VCs(M.JSC$8729_context_);M.JSC$8729_context_.yieldAllIterator_?q=FSs(M,M.JSC$8729_context_.yieldAllIterator_["throw"],q,M.JSC$8729_context_.JSC$8724_next_):(RMF(M.JSC$8729_context_,q),q=ZQ(M));return q};
this.return=function(q){return Hoy(M,q)};
this[Symbol.iterator]=function(){return this}};
_.FT=function(M,q){q=new eM$(new fmH(q));Qi&&M.prototype&&Qi(q,M.prototype);return q};
$Uu=function(M){function q(K){return M.next(K)}
function G(K){return M.throw(K)}
return new Promise(function(K,n){function E(p){p.done?K(p.value):Promise.resolve(p.value).then(q,G).then(E,n)}
E(M.next())})};
_.L=function(M){return $Uu(new eM$(new fmH(M)))};
_.aS=function(M){var q=M[Symbol.asyncIterator];return q!==void 0?q.call(M):new sy9(_.k(M))};
sy9=function(M){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return M};
this.next=function(q){return Promise.resolve(M.next(q))};
this["throw"]=function(q){return new Promise(function(G,K){var n=M["throw"];n!==void 0?G(n.call(M,q)):(G=M["return"],G!==void 0&&G.call(M),K(new TypeError("j")))})};
M["return"]!==void 0&&(this["return"]=function(q){return Promise.resolve(M["return"](q))})};
_.rW=function(){for(var M=Number(this),q=[],G=M;G<arguments.length;G++)q[G-M]=arguments[G];return q};
_.H3=function(M){return M};
Bh("globalThis",function(M){return M||_.Yd});
Bh("Reflect",function(M){return M?M:{}});
Bh("Reflect.construct",function(){return xUY});
Bh("Reflect.setPrototypeOf",function(M){return M?M:Qi?function(q,G){try{return Qi(q,G),!0}catch(K){return!1}}:null});
Bh("Promise",function(M){function q(){this.batch_=null}
function G(p){return p instanceof n?p:new n(function(y){y(p)})}
if(M&&(typeof _.Yd.PromiseRejectionEvent!=="undefined"||!_.Yd.Promise||_.Yd.Promise.toString().indexOf("[native code]")===-1))return M;q.prototype.asyncExecute=function(p){if(this.batch_==null){this.batch_=[];var y=this;this.asyncExecuteFunction(function(){y.executeBatch_()})}this.batch_.push(p)};
var K=_.Yd.setTimeout;q.prototype.asyncExecuteFunction=function(p){K(p,0)};
q.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var p=this.batch_;this.batch_=[];for(var y=0;y<p.length;++y){var Y=p[y];p[y]=null;try{Y()}catch(A){this.asyncThrow_(A)}}}this.batch_=null};
q.prototype.asyncThrow_=function(p){this.asyncExecuteFunction(function(){throw p;})};
var n=function(p){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var y=this.createResolveAndReject_();try{p(y.resolve,y.reject)}catch(Y){y.reject(Y)}};
n.prototype.createResolveAndReject_=function(){function p(A){return function(v){Y||(Y=!0,A.call(y,v))}}
var y=this,Y=!1;return{resolve:p(this.resolveTo_),reject:p(this.JSC$8757_reject_)}};
n.prototype.resolveTo_=function(p){if(p===this)this.JSC$8757_reject_(new TypeError("n"));else if(p instanceof n)this.settleSameAsPromise_(p);else{a:switch(typeof p){case "object":var y=p!=null;break a;case "function":y=!0;break a;default:y=!1}y?this.resolveToNonPromiseObj_(p):this.fulfill_(p)}};
n.prototype.resolveToNonPromiseObj_=function(p){var y=void 0;try{y=p.then}catch(Y){this.JSC$8757_reject_(Y);return}typeof y=="function"?this.settleSameAsThenable_(y,p):this.fulfill_(p)};
n.prototype.JSC$8757_reject_=function(p){this.settle_(2,p)};
n.prototype.fulfill_=function(p){this.settle_(1,p)};
n.prototype.settle_=function(p,y){if(this.state_!=0)throw Error("o`"+p+"`"+y+"`"+this.state_);this.state_=p;this.result_=y;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
n.prototype.scheduleUnhandledRejectionCheck_=function(){var p=this;K(function(){if(p.notifyUnhandledRejection_()){var y=_.Yd.console;typeof y!=="undefined"&&y.error(p.result_)}},1)};
n.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var p=_.Yd.CustomEvent,y=_.Yd.Event,Y=_.Yd.dispatchEvent;if(typeof Y==="undefined")return!0;typeof p==="function"?p=new p("unhandledrejection",{cancelable:!0}):typeof y==="function"?p=new y("unhandledrejection",{cancelable:!0}):(p=_.Yd.document.createEvent("CustomEvent"),p.initCustomEvent("unhandledrejection",!1,!0,p));p.promise=this;p.reason=this.result_;return Y(p)};
n.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var p=0;p<this.onSettledCallbacks_.length;++p)E.asyncExecute(this.onSettledCallbacks_[p]);this.onSettledCallbacks_=null}};
var E=new q;n.prototype.settleSameAsPromise_=function(p){var y=this.createResolveAndReject_();p.callWhenSettled_(y.resolve,y.reject)};
n.prototype.settleSameAsThenable_=function(p,y){var Y=this.createResolveAndReject_();try{p.call(y,Y.resolve,Y.reject)}catch(A){Y.reject(A)}};
n.prototype.then=function(p,y){function Y(t,O){return typeof t=="function"?function(a){try{A(t(a))}catch(g){v(g)}}:O}
var A,v,h=new n(function(t,O){A=t;v=O});
this.callWhenSettled_(Y(p,A),Y(y,v));return h};
n.prototype.catch=function(p){return this.then(void 0,p)};
n.prototype.callWhenSettled_=function(p,y){function Y(){switch(A.state_){case 1:p(A.result_);break;case 2:y(A.result_);break;default:throw Error("p`"+A.state_);}}
var A=this;this.onSettledCallbacks_==null?E.asyncExecute(Y):this.onSettledCallbacks_.push(Y);this.isRejectionHandled_=!0};
n.resolve=G;n.reject=function(p){return new n(function(y,Y){Y(p)})};
n.race=function(p){return new n(function(y,Y){for(var A=_.k(p),v=A.next();!v.done;v=A.next())G(v.value).callWhenSettled_(y,Y)})};
n.all=function(p){var y=_.k(p),Y=y.next();return Y.done?G([]):new n(function(A,v){function h(a){return function(g){t[a]=g;O--;O==0&&A(t)}}
var t=[],O=0;do t.push(void 0),O++,G(Y.value).callWhenSettled_(h(t.length-1),v),Y=y.next();while(!Y.done)})};
return n});
var bq=function(M,q,G){if(M==null)throw new TypeError("q`"+G);if(q instanceof RegExp)throw new TypeError("r`"+G);return M+""};
Bh("String.prototype.startsWith",function(M){return M?M:function(q,G){var K=bq(this,q,"startsWith"),n=K.length,E=q.length;G=Math.max(0,Math.min(G|0,K.length));for(var p=0;p<E&&G<n;)if(K[G++]!=q[p++])return!1;return p>=E}});
Bh("Object.setPrototypeOf",function(M){return M||Qi});
Bh("Symbol.dispose",function(M){return M?M:Symbol("s")});
Bh("SuppressedError",function(M){function q(G,K,n){if(!(this instanceof q))return new q(G,K,n);n=Error(n);"stack"in n&&(this.stack=n.stack);this.message=n.message;this.error=G;this.suppressed=K}
if(M)return M;_.l(q,Error);q.prototype.name="SuppressedError";return q});
Bh("Array.from",function(M){return M?M:function(q,G,K){G=G!=null?G:function(y){return y};
var n=[],E=typeof Symbol!="undefined"&&Symbol.iterator&&q[Symbol.iterator];if(typeof E=="function"){q=E.call(q);for(var p=0;!(E=q.next()).done;)n.push(G.call(K,E.value,p++))}else for(E=q.length,p=0;p<E;p++)n.push(G.call(K,q[p],p));return n}});
var Mw2=function(M,q,G){M instanceof String&&(M=String(M));for(var K=M.length,n=0;n<K;n++){var E=M[n];if(q.call(G,E,n,M))return{i:n,v:E}}return{i:-1,v:void 0}};
Bh("Array.prototype.find",function(M){return M?M:function(q,G){return Mw2(this,q,G).v}});
Bh("WeakMap",function(M){function q(){}
function G(Y){var A=typeof Y;return A==="object"&&Y!==null||A==="function"}
function K(Y){if(!uq(Y,E)){var A=new q;ImD(Y,E,{value:A})}}
function n(Y){var A=Object[Y];A&&(Object[Y]=function(v){if(v instanceof q)return v;Object.isExtensible(v)&&K(v);return A(v)})}
if(function(){if(!M||!Object.seal)return!1;try{var Y=Object.seal({}),A=Object.seal({}),v=new M([[Y,2],[A,3]]);if(v.get(Y)!=2||v.get(A)!=3)return!1;v.delete(Y);v.set(A,4);return!v.has(Y)&&v.get(A)==4}catch(h){return!1}}())return M;
var E="$jscomp_hidden_"+Math.random();n("freeze");n("preventExtensions");n("seal");var p=0,y=function(Y){this.JSC$8765_id_=(p+=Math.random()+1).toString();if(Y){Y=_.k(Y);for(var A;!(A=Y.next()).done;)A=A.value,this.set(A[0],A[1])}};
y.prototype.set=function(Y,A){if(!G(Y))throw Error("t");K(Y);if(!uq(Y,E))throw Error("u`"+Y);Y[E][this.JSC$8765_id_]=A;return this};
y.prototype.get=function(Y){return G(Y)&&uq(Y,E)?Y[E][this.JSC$8765_id_]:void 0};
y.prototype.has=function(Y){return G(Y)&&uq(Y,E)&&uq(Y[E],this.JSC$8765_id_)};
y.prototype.delete=function(Y){return G(Y)&&uq(Y,E)&&uq(Y[E],this.JSC$8765_id_)?delete Y[E][this.JSC$8765_id_]:!1};
return y});
Bh("Map",function(M){if(function(){if(!M||typeof M!="function"||!M.prototype.entries||typeof Object.seal!="function")return!1;try{var y=Object.seal({x:4}),Y=new M(_.k([[y,"s"]]));if(Y.get(y)!="s"||Y.size!=1||Y.get({x:4})||Y.set({x:4},"t")!=Y||Y.size!=2)return!1;var A=Y.entries(),v=A.next();if(v.done||v.value[0]!=y||v.value[1]!="s")return!1;v=A.next();return v.done||v.value[0].x!=4||v.value[1]!="t"||!A.next().done?!1:!0}catch(h){return!1}}())return M;
var q=new WeakMap,G=function(y){this[0]={};this[1]=E();this.size=0;if(y){y=_.k(y);for(var Y;!(Y=y.next()).done;)Y=Y.value,this.set(Y[0],Y[1])}};
G.prototype.set=function(y,Y){y=y===0?0:y;var A=K(this,y);A.list||(A.list=this[0][A.id]=[]);A.entry?A.entry.value=Y:(A.entry={next:this[1],previous:this[1].previous,head:this[1],key:y,value:Y},A.list.push(A.entry),this[1].previous.next=A.entry,this[1].previous=A.entry,this.size++);return this};
G.prototype.delete=function(y){y=K(this,y);return y.entry&&y.list?(y.list.splice(y.index,1),y.list.length||delete this[0][y.id],y.entry.previous.next=y.entry.next,y.entry.next.previous=y.entry.previous,y.entry.head=null,this.size--,!0):!1};
G.prototype.clear=function(){this[0]={};this[1]=this[1].previous=E();this.size=0};
G.prototype.has=function(y){return!!K(this,y).entry};
G.prototype.get=function(y){return(y=K(this,y).entry)&&y.value};
G.prototype.entries=function(){return n(this,function(y){return[y.key,y.value]})};
G.prototype.keys=function(){return n(this,function(y){return y.key})};
G.prototype.values=function(){return n(this,function(y){return y.value})};
G.prototype.forEach=function(y,Y){for(var A=this.entries(),v;!(v=A.next()).done;)v=v.value,y.call(Y,v[1],v[0],this)};
G.prototype[Symbol.iterator]=G.prototype.entries;var K=function(y,Y){var A=Y&&typeof Y;A=="object"||A=="function"?q.has(Y)?A=q.get(Y):(A=""+ ++p,q.set(Y,A)):A="p_"+Y;var v=y[0][A];if(v&&uq(y[0],A))for(y=0;y<v.length;y++){var h=v[y];if(Y!==Y&&h.key!==h.key||Y===h.key)return{id:A,list:v,index:y,entry:h}}return{id:A,list:v,index:-1,entry:void 0}},n=function(y,Y){var A=y[1];
return boi(function(){if(A){for(;A.head!=y[1];)A=A.previous;for(;A.next!=A.head;)return A=A.next,{done:!1,value:Y(A)};A=null}return{done:!0,value:void 0}})},E=function(){var y={};
return y.previous=y.next=y.head=y},p=0;
return G});
Bh("Set",function(M){if(function(){if(!M||typeof M!="function"||!M.prototype.entries||typeof Object.seal!="function")return!1;try{var G=Object.seal({x:4}),K=new M(_.k([G]));if(!K.has(G)||K.size!=1||K.add(G)!=K||K.size!=1||K.add({x:4})!=K||K.size!=2)return!1;var n=K.entries(),E=n.next();if(E.done||E.value[0]!=G||E.value[1]!=G)return!1;E=n.next();return E.done||E.value[0]==G||E.value[0].x!=4||E.value[1]!=E.value[0]?!1:n.next().done}catch(p){return!1}}())return M;
var q=function(G){this.JSC$8779_map_=new Map;if(G){G=_.k(G);for(var K;!(K=G.next()).done;)this.add(K.value)}this.size=this.JSC$8779_map_.size};
q.prototype.add=function(G){G=G===0?0:G;this.JSC$8779_map_.set(G,G);this.size=this.JSC$8779_map_.size;return this};
q.prototype.delete=function(G){G=this.JSC$8779_map_.delete(G);this.size=this.JSC$8779_map_.size;return G};
q.prototype.clear=function(){this.JSC$8779_map_.clear();this.size=0};
q.prototype.has=function(G){return this.JSC$8779_map_.has(G)};
q.prototype.entries=function(){return this.JSC$8779_map_.entries()};
q.prototype.values=function(){return this.JSC$8779_map_.values()};
q.prototype.keys=q.prototype.values;q.prototype[Symbol.iterator]=q.prototype.values;q.prototype.forEach=function(G,K){var n=this;this.JSC$8779_map_.forEach(function(E){return G.call(K,E,E,n)})};
return q});
Bh("Math.log2",function(M){return M?M:function(q){return Math.log(q)/Math.LN2}});
Bh("Object.values",function(M){return M?M:function(q){var G=[],K;for(K in q)uq(q,K)&&G.push(q[K]);return G}});
Bh("Object.is",function(M){return M?M:function(q,G){return q===G?q!==0||1/q===1/G:q!==q&&G!==G}});
Bh("Array.prototype.includes",function(M){return M?M:function(q,G){var K=this;K instanceof String&&(K=String(K));var n=K.length;G=G||0;for(G<0&&(G=Math.max(G+n,0));G<n;G++){var E=K[G];if(E===q||Object.is(E,q))return!0}return!1}});
Bh("String.prototype.includes",function(M){return M?M:function(q,G){return bq(this,q,"includes").indexOf(q,G||0)!==-1}});
Bh("Object.entries",function(M){return M?M:function(q){var G=[],K;for(K in q)uq(q,K)&&G.push([K,q[K]]);return G}});
Bh("Number.isFinite",function(M){return M?M:function(q){return typeof q!=="number"?!1:!isNaN(q)&&q!==Infinity&&q!==-Infinity}});
Bh("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
Bh("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
Bh("Number.isInteger",function(M){return M?M:function(q){return Number.isFinite(q)?q===Math.floor(q):!1}});
Bh("Number.isSafeInteger",function(M){return M?M:function(q){return Number.isInteger(q)&&Math.abs(q)<=Number.MAX_SAFE_INTEGER}});
Bh("String.prototype.endsWith",function(M){return M?M:function(q,G){var K=bq(this,q,"endsWith");G===void 0&&(G=K.length);G=Math.max(0,Math.min(G|0,K.length));for(var n=q.length;n>0&&G>0;)if(K[--G]!=q[--n])return!1;return n<=0}});
var qex=function(M,q){M instanceof String&&(M+="");var G=0,K=!1,n={next:function(){if(!K&&G<M.length){var E=G++;return{value:q(E,M[E]),done:!1}}K=!0;return{done:!0,value:void 0}}};
n[Symbol.iterator]=function(){return n};
return n};
Bh("Array.prototype.entries",function(M){return M?M:function(){return qex(this,function(q,G){return[q,G]})}});
Bh("Math.trunc",function(M){return M?M:function(q){q=Number(q);if(isNaN(q)||q===Infinity||q===-Infinity||q===0)return q;var G=Math.floor(Math.abs(q));return q<0?-G:G}});
Bh("Number.isNaN",function(M){return M?M:function(q){return typeof q==="number"&&isNaN(q)}});
Bh("Array.prototype.keys",function(M){return M?M:function(){return qex(this,function(q){return q})}});
Bh("Array.prototype.values",function(M){return M?M:function(){return qex(this,function(q,G){return G})}});
Bh("Array.prototype.fill",function(M){return M?M:function(q,G,K){var n=this.length||0;G<0&&(G=Math.max(0,n+G));if(K==null||K>n)K=n;K=Number(K);K<0&&(K=Math.max(0,n+K));for(G=Number(G||0);G<K;G++)this[G]=q;return this}});
Zoi("fill",function(M){return M?M:Array.prototype.fill});
Bh("Object.fromEntries",function(M){return M?M:function(q){var G={};if(!(Symbol.iterator in q))throw new TypeError("v`"+q);q=q[Symbol.iterator].call(q);for(var K=q.next();!K.done;K=q.next()){K=K.value;if(Object(K)!==K)throw new TypeError("w");G[K[0]]=K[1]}return G}});
Bh("String.prototype.replaceAll",function(M){return M?M:function(q,G){if(q instanceof RegExp&&!q.global)throw new TypeError("x");return q instanceof RegExp?this.replace(q,G):this.replace(new RegExp(String(q).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),G)}});
Bh("Object.getOwnPropertySymbols",function(M){return M?M:function(){return[]}});
Bh("String.prototype.repeat",function(M){return M?M:function(q){var G=bq(this,null,"repeat");if(q<0||q>1342177279)throw new RangeError("y");q|=0;for(var K="";q;)if(q&1&&(K+=G),q>>>=1)G+=G;return K}});
Bh("Array.prototype.findIndex",function(M){return M?M:function(q,G){return Mw2(this,q,G).i}});
Bh("Array.prototype.flatMap",function(M){return M?M:function(q,G){var K=[];Array.prototype.forEach.call(this,function(n,E){n=q.call(G,n,E,this);Array.isArray(n)?K.push.apply(K,n):K.push(n)});
return K}});
Bh("String.prototype.codePointAt",function(M){return M?M:function(q){var G=bq(this,null,"codePointAt"),K=G.length;q=Number(q)||0;if(q>=0&&q<K){q|=0;var n=G.charCodeAt(q);if(n<55296||n>56319||q+1===K)return n;q=G.charCodeAt(q+1);return q<56320||q>57343?n:(n-55296)*1024+q+9216}}});
Bh("String.fromCodePoint",function(M){return M?M:function(q){for(var G="",K=0;K<arguments.length;K++){var n=Number(arguments[K]);if(n<0||n>1114111||n!==Math.floor(n))throw new RangeError("z`"+n);n<=65535?G+=String.fromCharCode(n):(n-=65536,G+=String.fromCharCode(n>>>10&1023|55296),G+=String.fromCharCode(n&1023|56320))}return G}});
Bh("String.prototype.trimLeft",function(M){function q(){return this.replace(/^[\s\xa0]+/,"")}
return M||q});
Bh("String.prototype.trimStart",function(M){return M||String.prototype.trimLeft});
Bh("String.prototype.padStart",function(M){return M?M:function(q,G){var K=bq(this,null,"padStart");q-=K.length;G=G!==void 0?String(G):" ";return(q>0&&G?G.repeat(Math.ceil(q/G.length)).substring(0,q):"")+K}});
Bh("Promise.prototype.finally",function(M){return M?M:function(q){return this.then(function(G){return Promise.resolve(q()).then(function(){return G})},function(G){return Promise.resolve(q()).then(function(){throw G;
})})}});
Bh("Math.imul",function(M){return M?M:function(q,G){q=Number(q);G=Number(G);var K=q&65535,n=G&65535;return K*n+((q>>>16&65535)*n+K*(G>>>16&65535)<<16>>>0)|0}});
Bh("Object.hasOwn",function(M){return M?M:function(q,G){return Object.prototype.hasOwnProperty.call(q,G)}});
Bh("Math.sign",function(M){return M?M:function(q){q=Number(q);return q===0||isNaN(q)?q:q>0?1:-1}});
Bh("Array.prototype.flat",function(M){return M?M:function(q){q=q===void 0?1:q;var G=[];Array.prototype.forEach.call(this,function(K){Array.isArray(K)&&q>0?(K=Array.prototype.flat.call(K,q-1),G.push.apply(G,K)):G.push(K)});
return G}});
Bh("String.raw",function(M){return M?M:function(q,G){q=rH4(q);for(var K=q.raw,n=K.length,E="",p=0;p<n;++p)E+=K[p],p+1<n&&p+1<arguments.length&&(E+=String(arguments[p+1]));return E}});
Bh("WeakSet",function(M){if(function(){if(!M||!Object.seal)return!1;try{var G=Object.seal({}),K=Object.seal({}),n=new M([G]);if(!n.has(G)||n.has(K))return!1;n.delete(G);n.add(K);return!n.has(G)&&n.has(K)}catch(E){return!1}}())return M;
var q=function(G){this.JSC$8790_map_=new WeakMap;if(G){G=_.k(G);for(var K;!(K=G.next()).done;)this.add(K.value)}};
q.prototype.add=function(G){this.JSC$8790_map_.set(G,!0);return this};
q.prototype.has=function(G){return this.JSC$8790_map_.has(G)};
q.prototype.delete=function(G){return this.JSC$8790_map_.delete(G)};
return q});
Bh("Reflect.ownKeys",function(M){return M?M:function(q){var G=[],K=Object.getOwnPropertyNames(q);q=Object.getOwnPropertySymbols(q);for(var n=0;n<K.length;n++)(K[n].substring(0,14)=="jscomp_symbol_"?q:G).push(K[n]);return G.concat(q)}});
Bh("Object.getOwnPropertyDescriptors",function(M){return M?M:function(q){for(var G={},K=Reflect.ownKeys(q),n=0;n<K.length;n++)G[K[n]]=Object.getOwnPropertyDescriptor(q,K[n]);return G}});
Bh("Promise.allSettled",function(M){function q(K){return{status:"fulfilled",value:K}}
function G(K){return{status:"rejected",reason:K}}
return M?M:function(K){var n=this;K=Array.from(K,function(E){return n.resolve(E).then(q,G)});
return n.all(K)}});
Bh("Number.parseInt",function(M){return M||parseInt});
_._DumpException=window._DumpException||function(M){throw M;};
window._DumpException=_._DumpException;var GFI=window.ytcsi;GFI&&typeof GFI.tick==="function"&&GFI.tick("rses_dpj");var Ky9,UF,xW,zO,nsl,Esv,N$M,kFM,DU,pyP;Ky9=Ky9||{};_.Kj=this||self;_.Y5=function(M,q,G){M=M.split(".");G=G||_.Kj;for(var K;M.length&&(K=M.shift());)M.length||q===void 0?G[K]&&G[K]!==Object.prototype[K]?G=G[K]:G=G[K]={}:G[K]=q};
UF=function(M,q){var G=_.sx("WIZ_global_data.oxN3nb");M=G&&G[M];return M!=null?M:q};
xW=_.Kj._F_toggles_default_kevlar_base||[];zO=function(){};
zO.get=function(){return null};
_.qzi=null;_.sx=function(M,q){M=M.split(".");q=q||_.Kj;for(var G=0;G<M.length;G++)if(q=q[M[G]],q==null)return null;return q};
_.mi=function(M){M.instance_=void 0;M.getInstance=function(){return M.instance_?M.instance_:M.instance_=new M}};
_.$$=function(M){var q=typeof M;return q!="object"?q:M?Array.isArray(M)?"array":q:"null"};
_.TF=function(M){var q=_.$$(M);return q=="array"||q=="object"&&typeof M.length=="number"};
_.VY=function(M){var q=typeof M;return q=="object"&&M!=null||q=="function"};
_.Fi=function(M){return Object.prototype.hasOwnProperty.call(M,nsl)&&M[nsl]||(M[nsl]=++Esv)};
nsl="closure_uid_"+(Math.random()*1E9>>>0);Esv=0;N$M=function(M,q,G){return M.call.apply(M.bind,arguments)};
kFM=function(M,q,G){if(!M)throw Error();if(arguments.length>2){var K=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(n,K);return M.apply(q,n)}}return function(){return M.apply(q,arguments)}};
_.Ju=function(M,q,G){_.Ju=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?N$M:kFM;return _.Ju.apply(null,arguments)};
_.n7=function(M,q){var G=Array.prototype.slice.call(arguments,1);return function(){var K=G.slice();K.push.apply(K,arguments);return M.apply(this,K)}};
_.Sh=function(){return Date.now()};
DU=function(M){return M};
_.TO=function(M,q){function G(){}
G.prototype=q.prototype;M.superClass_=q.prototype;M.prototype=new G;M.prototype.constructor=M;M.base=function(K,n,E){for(var p=Array(arguments.length-2),y=2;y<arguments.length;y++)p[y-2]=arguments[y];return q.prototype[n].apply(K,p)}};
pyP=function(M){return M};var y4$,Lyd;_.T=function(M,q,G,K){var n=arguments.length,E=n<3?q:K===null?K=Object.getOwnPropertyDescriptor(q,G):K,p;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")E=Reflect.decorate(M,q,G,K);else for(var y=M.length-1;y>=0;y--)if(p=M[y])E=(n<3?p(E):n>3?p(q,G,E):p(q,G))||E;n>3&&E&&Object.defineProperty(q,G,E)};
_.r=function(M,q){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(M,q)};
y4$=function(M,q){if(q!==null&&q!==void 0){if(typeof q!=="object"&&typeof q!=="function")throw new TypeError("A");if(G===void 0){if(!Symbol.dispose)throw new TypeError("C");var G=q[Symbol.dispose]}if(typeof G!=="function")throw new TypeError("D");M.stack.push({value:q,dispose:G,async:!1})}return q};
Lyd=function(M){function q(E){M.error=M.hasError?new SuppressedError(E,M.error,"An error was suppressed during disposal."):E;M.hasError=!0}
function G(){for(;K=M.stack.pop();)try{if(!K.async&&n===1)return n=0,M.stack.push(K),Promise.resolve().then(G);if(K.dispose){var E=K.dispose.call(K.value);if(K.async)return n|=2,Promise.resolve(E).then(G,function(p){q(p);return G()})}else n|=1}catch(p){q(p)}if(n===1)return M.hasError?Promise.reject(M.error):Promise.resolve();
if(M.hasError)throw M.error;}
var K,n=0;G()};var Yed="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(" ");sy$()&&Yed.push("details:not(:has(summary))");var qeD=Yed.join(",");_.TO(_.qD,Error);_.qD.prototype.name="CustomError";var WyB;var A4S=void 0,dDl,vsB=typeof TextDecoder!=="undefined",Ly4,y4s=typeof String.prototype.isWellFormed==="function",pyj=typeof TextEncoder!=="undefined";var huM;_.DG=function(M){for(var q=[],G=0,K=0;K<M.length;K++){var n=M.charCodeAt(K);n<128?q[G++]=n:(n<2048?q[G++]=n>>6|192:((n&64512)==55296&&K+1<M.length&&(M.charCodeAt(K+1)&64512)==56320?(n=65536+((n&1023)<<10)+(M.charCodeAt(++K)&1023),q[G++]=n>>18|240,q[G++]=n>>12&63|128):q[G++]=n>>12|224,q[G++]=n>>6&63|128),q[G++]=n&63|128)}return q};
huM=function(M){for(var q=[],G=0,K=0;G<M.length;){var n=M[G++];if(n<128)q[K++]=String.fromCharCode(n);else if(n>191&&n<224){var E=M[G++];q[K++]=String.fromCharCode((n&31)<<6|E&63)}else if(n>239&&n<365){E=M[G++];var p=M[G++],y=M[G++];n=((n&7)<<18|(E&63)<<12|(p&63)<<6|y&63)-65536;q[K++]=String.fromCharCode(55296+(n>>10));q[K++]=String.fromCharCode(56320+(n&1023))}else E=M[G++],p=M[G++],q[K++]=String.fromCharCode((n&15)<<12|(E&63)<<6|p&63)}return q.join("")};var A4=String.prototype.trim?function(M){return M.trim()}:function(M){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(M)[1]},twf=/&/g,Ojd=/</g,wy2=/>/g,CH2=/"/g,aFl=/'/g,osd=/\x00/g,lFB=/[\x00&<>"']/;var rr=!!(xW[0]>>15&1),XyJ=!!(xW[0]&1024),PHB=!!(xW[0]>>16&1),ijI=!!(xW[0]&8),c4J=!!(xW[0]&2),gsp=!!(xW[0]&4),B$S=!!(xW[0]&16),QyJ=!!(xW[0]&128);var w$=rr?PHB:UF(610401301,!1),IFM=rr?ijI:UF(772657768,!1),DDv=rr?c4J:UF(513659523,!1),uiB=rr?XyJ||!gsp:UF(568333945,!0),cGu=rr?B$S:UF(1331761403,!1),wIF=rr?XyJ||!QyJ:UF(748402147,!0);var Cj,J49=_.Kj.navigator;Cj=J49?J49.userAgentData||null:null;var nA;_.xs=function(M,q){return Array.prototype.indexOf.call(M,q,void 0)};
_.Gc=function(M,q,G){Array.prototype.forEach.call(M,q,G)};
_.jh=function(M,q,G){return Array.prototype.filter.call(M,q,G)};
_.z9=function(M,q,G){return Array.prototype.map.call(M,q,G)};
nA=function(M,q,G){return Array.prototype.some.call(M,q,G)};
_.TpF=function(M,q,G){return Array.prototype.every.call(M,q,G)};var Vi=function(M){Vi[" "](M);return M};
Vi[" "]=function(){};
var Jge=function(M,q){try{return Vi(M[q]),!0}catch(G){}return!1},Wmy=function(M,q,G,K){K=K?K(q):q;
return Object.prototype.hasOwnProperty.call(M,K)?M[K]:M[K]=G(q)};var Zj2,yn,bj9,UD$,zuS,mD2,TQu,Se8,T$l,r4$,ywy,Vwf,RuP,eu$,$D8,sIf;_.C$e=function(){return _.Kj.navigator||null};
Zj2=dDF();_.RH=vsY();yn=lH("Edge");bj9=yn||_.RH;_.Fa=lH("Gecko")&&!(_.Wy(_.Oe(),"WebKit")&&!lH("Edge"))&&!(lH("Trident")||lH("MSIE"))&&!lH("Edge");_.Hh=_.Wy(_.Oe(),"WebKit")&&!lH("Edge");UD$=_.Hh&&lH("Mobile");_.xDv=_.Xyw();zuS=_.PHY();mD2=(QY()?Cj.platform==="Linux":lH("Linux"))||_.ijy();TQu=_.os4();Se8=lFY();T$l=lH("iPad");r4$=lH("iPod");_.jyl=_.Iy();ywy=_.Wy(_.Oe(),"KaiOS");Vwf=function(){var M=_.Kj.document;return M?M.documentMode:void 0};
a:{var fFx="",Fy2=function(){var M=_.Oe();if(_.Fa)return/rv:([^\);]+)(\)|;)/.exec(M);if(yn)return/Edge\/([\d\.]+)/.exec(M);if(_.RH)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(M);if(_.Hh)return/WebKit\/(\S+)/.exec(M);if(Zj2)return/(?:Version)[ \/]?(\S+)/.exec(M)}();
Fy2&&(fFx=Fy2?Fy2[1]:"");if(_.RH){var Hjd=Vwf();if(Hjd!=null&&Hjd>parseFloat(fFx)){RuP=String(Hjd);break a}}RuP=fFx}eu$=RuP;$D8={};_.eh=function(M){return Wmy($D8,M,function(){return _.vy(eu$,M)>=0})};
if(_.Kj.document&&_.RH){var MJx=Vwf();sIf=MJx?MJx:parseInt(eu$,10)||void 0}else sIf=void 0;_.qMf=sIf;var VEs,Rei,GlP;_.$W=Py();VEs=lFY()||lH("iPod");Rei=lH("iPad");GlP=_.Oj4();_.sv=_.g$();_.HR=_.twu()&&!_.Iy();var Kpd,Mn,qKe,KF$,E$f,n$f;Kpd={};Mn=null;qKe=_.Fa||_.Hh||typeof _.Kj.btoa=="function";_.ZU=function(M,q){q===void 0&&(q=0);n$f();q=Kpd[q];for(var G=Array(Math.floor(M.length/3)),K=q[64]||"",n=0,E=0;n<M.length-2;n+=3){var p=M[n],y=M[n+1],Y=M[n+2],A=q[p>>2];p=q[(p&3)<<4|y>>4];y=q[(y&15)<<2|Y>>6];Y=q[Y&63];G[E++]=A+p+y+Y}A=0;Y=K;switch(M.length-n){case 2:A=M[n+1],Y=q[(A&15)<<2]||K;case 1:M=M[n],G[E]=q[M>>2]+q[(M&3)<<4|A>>4]+Y+K}return G.join("")};
KF$=function(M){var q="";E$f(M,function(G){q+=String.fromCharCode(G)});
return q};
_.bay=function(M){var q=[];E$f(M,function(G){q.push(G)});
return q};
_.ew=function(M){var q=M.length,G=q*3/4;G%3?G=Math.floor(G):_.Ys("=.",M[q-1])&&(G=_.Ys("=.",M[q-2])?G-2:G-1);var K=new Uint8Array(G),n=0;E$f(M,function(E){K[n++]=E});
return n!==G?K.subarray(0,n):K};
E$f=function(M,q){function G(Y){for(;K<M.length;){var A=M.charAt(K++),v=Mn[A];if(v!=null)return v;if(!_.Lj(A))throw Error("H`"+A);}return Y}
n$f();for(var K=0;;){var n=G(-1),E=G(0),p=G(64),y=G(64);if(y===64&&n===-1)break;q(n<<2|E>>4);p!=64&&(q(E<<4&240|p>>2),y!=64&&q(p<<6&192|y))}};
n$f=function(){if(!Mn){Mn={};for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),q=["+/=","+/","-_=","-_.","-_"],G=0;G<5;G++){var K=M.concat(q[G].split(""));Kpd[G]=K;for(var n=0;n<K.length;n++){var E=K[n];Mn[E]===void 0&&(Mn[E]=n)}}}};var eus=typeof Uint8Array!=="undefined",mDi=!_.RH&&typeof btoa==="function",SeF=/[-_.]/g,xDy={"-":"+",_:"/",".":"="},QB={};var Bv,kll;Bv=function(M,q){if(q!==QB)throw Error("J");this.JSC$8824_value_=M;if(M!=null&&M.length===0)throw Error("I");};
_.II=function(){return N9I||(N9I=new Bv(null,QB))};
kll=function(M){return new Uint8Array(SLY(M)||0)};
Bv.prototype.isEmpty=function(){return this.JSC$8824_value_==null};
Bv.prototype.sizeBytes=function(){var M=SLY(this);return M?M.length:0};
var SLY=function(M){if(QB!==QB)throw Error("J");var q=M.JSC$8824_value_;q==null||eus&&q!=null&&q instanceof Uint8Array||(typeof q==="string"?q=T$F(q):(_.$$(q),q=null));return q==null?q:M.JSC$8824_value_=q},N9I;var jyF=void 0;var Gl=typeof Symbol==="function"&&typeof Symbol()==="symbol",pvx=qx("jas",void 0,!0),xxY=qx(void 0,"0di"),G3=qx(void 0,"1oa"),uP=qx(void 0,Symbol()),qLe=qx(void 0,"0ub"),K5w=qx(void 0,"0ubs"),Xtw=qx(void 0,"0ubsb"),aUu=qx(void 0,"0actk"),iP=qx("m_m","messagePrototypeMarker",!0),dMj=qx(void 0,"vps"),$xi=qx();var fFD,Ruj,fn,ydl;fFD={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};Ruj=Object.defineProperties;_.nP=Gl?pvx:"internalArrayState";ydl=[];pP(ydl,7);fn=Object.freeze(ydl);var cI={},CP={},LpB=function(M,q,G){this.iterable=M;this.mapper=q;this.thisArg=G};
LpB.prototype.next=function(){var M=this.iterable.next();M.done||(M.value=this.mapper.call(this.thisArg,M.value));return M};
LpB.prototype[Symbol.iterator]=function(){return this};
var YMS=Object.freeze({}),uS={};_.WpS=Z8(function(M){return M!==null&&M!==void 0});var Kp4=Z8(function(M){return typeof M==="number"}),Glj=Z8(function(M){return typeof M==="string"}),E$u=Z8(function(M){return typeof M==="boolean"}),AdJ=Z8(function(M){return M!=null&&typeof M==="object"&&typeof M.then==="function"}),z9i=Z8(function(M){return typeof M==="function"}),Wm=Z8(function(M){return!!M&&(typeof M==="object"||typeof M==="function")});var n$u=typeof _.Kj.BigInt==="function"&&typeof _.Kj.BigInt(0)==="bigint";var Dxy=Z8(function(M){return n$u?M>=dxx&&M<=v$2:M[0]==="-"?N9y(M,hfI):N9y(M,tJp)}),hfI=Number.MIN_SAFE_INTEGER.toString(),dxx=n$u?BigInt(Number.MIN_SAFE_INTEGER):void 0,tJp=Number.MAX_SAFE_INTEGER.toString(),v$2=n$u?BigInt(Number.MAX_SAFE_INTEGER):void 0;var OP$=typeof Uint8Array.prototype.slice==="function",UM=0,x$=0,ydF;var Yg,vI,sL,dw,OPs;Yg=typeof BigInt==="function"?BigInt.asIntN:void 0;_.hE=typeof BigInt==="function"?BigInt.asUintN:void 0;vI=Number.isSafeInteger;sL=Number.isFinite;dw=Math.trunc;OPs=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var vge={};var Fpi={},wv2=function(){try{var M=function(){return xUY(Map,[],this.constructor)};
_.l(M,Map);Vi(new M);return!1}catch(q){return!0}}(),qn=function(){this.JSC$8843_map_=new Map};
_.N=qn.prototype;_.N.get=function(M){return this.JSC$8843_map_.get(M)};
_.N.set=function(M,q){this.JSC$8843_map_.set(M,q);this.size=this.JSC$8843_map_.size;return this};
_.N.delete=function(M){M=this.JSC$8843_map_.delete(M);this.size=this.JSC$8843_map_.size;return M};
_.N.clear=function(){this.JSC$8843_map_.clear();this.size=this.JSC$8843_map_.size};
_.N.has=function(M){return this.JSC$8843_map_.has(M)};
_.N.entries=function(){return this.JSC$8843_map_.entries()};
_.N.keys=function(){return this.JSC$8843_map_.keys()};
_.N.values=function(){return this.JSC$8843_map_.values()};
_.N.forEach=function(M,q){return this.JSC$8843_map_.forEach(M,q)};
qn.prototype[Symbol.iterator]=function(){return this.entries()};
var Gm=function(){if(wv2)return Object.setPrototypeOf(qn.prototype,Map.prototype),Object.defineProperties(qn.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),qn;var M=function(){return xUY(Map,[],this.constructor)};
_.l(M,Map);return M}(),gw=function(M,q,G,K){G=G===void 0?rd$:G;
K=K===void 0?rd$:K;var n=Gm.call(this)||this;n.arrayState=M[_.nP]|0;n.valueCtor=q;n.keyToApi=G;n.valueToApi=n.valueCtor?VJD:K;for(var E=0;E<M.length;E++){var p=M[E],y=G(p[0],!1,!0),Y=p[1];q?Y===void 0&&(Y=null):Y=K(p[1],!1,!0,void 0,void 0,n.arrayState);Gm.prototype.set.call(n,y,Y)}return n};
_.l(gw,Gm);var CSB=function(M){if(M.arrayState&2)throw Error("N");},AED=function(M,q){return Y$(Array.from(Gm.prototype.entries.call(M),q))};
_.N=gw.prototype;_.N.clear=function(){CSB(this);Gm.prototype.clear.call(this)};
_.N.delete=function(M){CSB(this);return Gm.prototype.delete.call(this,this.keyToApi(M,!0,!1))};
_.N.entries=function(){if(this.valueCtor){var M=Gm.prototype.keys.call(this);M=new LpB(M,Rfy,this)}else M=Gm.prototype.entries.call(this);return M};
_.N.values=function(){if(this.valueCtor){var M=Gm.prototype.keys.call(this);M=new LpB(M,gw.prototype.get,this)}else M=Gm.prototype.values.call(this);return M};
_.N.forEach=function(M,q){this.valueCtor?Gm.prototype.forEach.call(this,function(G,K,n){M.call(q,n.get(K),K,n)}):Gm.prototype.forEach.call(this,M,q)};
_.N.set=function(M,q){CSB(this);M=this.keyToApi(M,!0,!1);return M==null?this:q==null?(Gm.prototype.delete.call(this,M),this):Gm.prototype.set.call(this,M,this.valueToApi(q,!0,!0,this.valueCtor,!1,this.arrayState))};
_.N.has=function(M){return Gm.prototype.has.call(this,this.keyToApi(M,!1,!1))};
_.N.get=function(M){M=this.keyToApi(M,!1,!1);var q=Gm.prototype.get.call(this,M);if(q!==void 0){var G=this.valueCtor;return G?(G=this.valueToApi(q,!1,!0,G,this.callToMutableOnAccess,this.arrayState),G!==q&&Gm.prototype.set.call(this,M,G),G):q}};
gw.prototype[Symbol.iterator]=function(){return this.entries()};
gw.prototype.toJSON=void 0;var f8y;var ksD=function(){},EgF=function(M,q){for(var G in M)!isNaN(G)&&q(M,+G,M[G])},pIs=function(M){var q=new ksD;
EgF(M,function(G,K,n){q[K]=VB(n)});
q.reviveUnknownFields=M.reviveUnknownFields;return q},s8$={reviveIntoImmutable:!0};var NwY;var hwe,tRF;var a8$,$g,Pr,Q2,o$J,Lu,gM,l8P,Xvf,dl,PS$,v7,Ov,Cu;a8$=_.bS(0);_.Ku={};_.nu=function(M,q,G,K,n){q=$g(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q,G,n);if(q!==null||K&&M.noLegacyNull!==CP)return q};
$g=function(M,q,G,K){if(q===-1)return null;var n=q+(G?0:-1),E=M.length-1;if(!(E<1+(G?0:-1))){if(n>=E){var p=M[E];if(p!=null&&typeof p==="object"&&p.constructor===Object){G=p[q];var y=!0}else if(n===E)G=p;else return}else G=M[n];if(K&&G!=null){K=K(G);if(K==null)return K;if(!Object.is(K,G))return y?p[q]=K:M[n]=K,K}return G}};
_.w8=function(M,q,G,K){rw(M);var n=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;R8(n,n[_.nP]|0,q,G,K);return M};
_.Ev=function(M,q,G){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bns(M,M[_.nP]|0,q,G)!==void 0};
_.Nn=function(M,q,G,K){var n=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return bns(n,n[_.nP]|0,q,Q2(M,K,G))!==void 0};
_.WX=function(M){return M===YMS?2:4};
_.k1=function(M,q){M=_.nu(M,q,void 0,void 0,Q8H);return M==null?_.II():M};
Pr=function(M,q,G,K){rw(M);var n=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=n[_.nP]|0;if(K==null){var p=uvu(n);if(JEF(p,n,E,G)===q)p.set(G,0);else return M}else E=ZnD(n,E,G,q);R8(n,E,q,K);return M};
_.pu=function(M,q,G,K){var n=M[_.nP]|0,E=Jd(n);n=ZnD(M,n,G,q,E);R8(M,n,q,K,E)};
Q2=function(M,q,G){return _.yj(M,q)===G?G:-1};
_.yj=function(M,q){M=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JEF(uvu(M),M,void 0,q,void 0)};
o$J=function(M,q,G){var K=M[_.nP]|0,n=Jd(K),E=$g(M,G,n);if(E!=null&&E[iP]===cI){if(!cv(E))return SR(E),E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var p=E.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(E)&&(p=E);if(p){var y=p[_.nP]|0;y&2&&(p=m5(p,y))}p=zs(p,q,!0);p!==E&&R8(M,K,G,p,n);return p};
_.t0=function(M,q,G,K){var n=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=n[_.nP]|0;q=bns(n,E,q,G,K);if(q==null)return q;E=n[_.nP]|0;if(!cv(M,E)){var p=jIY(q);p!==q&&(SR(M)&&(n=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,E=n[_.nP]|0),q=p,E=R8(n,E,G,q,K),jR(n,E))}return q};
_.Ya=function(M,q,G,K){var n=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return UMe(M,n,n[_.nP]|0,q,G,K,!1,!0)};
_.Xe=function(M,q,G,K){G=xMw(G);_.w8(M,q,G,K);G&&!cv(G)&&jR(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
_.Pt=function(M,q,G,K){K=xMw(K);Pr(M,q,G,K);K&&!cv(K)&&jR(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return M};
Lu=function(M,q,G){rw(M);var K=M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,n=K[_.nP]|0;if(G==null)return R8(K,n,q),M;for(var E=G===fn?7:G[_.nP]|0,p=E,y=eR(E),Y=y||Object.isFrozen(G),A=!0,v=!0,h=0;h<G.length;h++){var t=G[h];y||(t=cv(t),A&&(A=!t),v&&(v=t))}y||(E=A?13:5,E=v?E&-4097:E|4096);Y&&E===p||(G=VB(G),p=0,E=Fv(E,n));E!==p&&pP(G,E);n=R8(K,n,q,G);2&E||!(4096&E||16&E)||jR(K,n);return M};
gM=function(M,q,G,K){mM4(M,q,G,K);return M};
l8P=function(M,q,G){mM4(M,q,Y1,void 0,G,1,!0);return M};
_.W7=function(M,q,G){M=_.nu(M,q,void 0,G);q=typeof M;M=M==null?M:q==="bigint"?_.bS((0,_.hE)(64,M)):_.MM(M)?q==="string"?_.I8Y(M):_.B9F(M):void 0;return M};
_.AD=function(M,q){var G=G===void 0?!1:G;var K;return(K=_.tJy(_.nu(M,q)))!=null?K:G};
_.Au=function(M,q,G){G=G===void 0?0:G;var K;return(K=_.pn(_.nu(M,q)))!=null?K:G};
Xvf=function(M,q){var G=G===void 0?0:G;M=_.CSY(_.nu(M,q));return M!=null?M:G};
dl=function(M,q,G){G=G===void 0?a8$:G;var K;return(K=_.ZPY(_.nu(M,q)))!=null?K:G};
PS$=function(M){var q=q===void 0?a8$:q;var G;return(G=_.W7(M,23))!=null?G:q};
v7=function(M,q){var G=G===void 0?0:G;var K;return(K=_.nu(M,q,void 0,void 0,_.eJ))!=null?K:G};
_.hD=function(M,q,G,K){G=G===void 0?"":G;var n;return(n=_.lP(_.nu(M,q,K)))!=null?n:G};
_.tD=function(M,q){var G=G===void 0?0:G;var K;return(K=_.EL(_.nu(M,q)))!=null?K:G};
Ov=function(M,q){var G=G===void 0?"0":G;M=JdF(_.nu(M,q),!0);return M!=null?M:G};
Cu=function(M,q,G){return _.hD(M,Q2(M,G,q))};
_.aT=function(M,q,G,K){return _.t0(M,q,Q2(M,K,G),void 0)};
_.PX=function(M,q){return _.lP(_.nu(M,q,void 0,_.Ku))};
_.tu=function(M,q,G){return _.w8(M,q,hfy(G))};
_.vF=function(M,q,G){return _.Ma(M,q,hfy(G),!1)};
_.oT=function(M,q,G){return _.w8(M,q,_.kg(G))};
_.Db=function(M,q,G){return _.w8(M,q,AE(G))};
_.DJ=function(M,q,G){return _.w8(M,q,o8(G))};
_.gI=function(M,q,G,K){return _.Ma(M,q,o8(G),"",K)};
_.Oh=function(M,q,G){return _.w8(M,q,G==null?G:_.nn(G))};
_.lZ=function(M,q,G){return _.Ma(M,q,G==null?G:_.nn(G),0)};var KG=function(M,q,G){this.buffer=M;if(G&&!q)throw Error();this.JSC$8855_isImmutable=q};var iPp=function(M,q,G,K){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8858_start_=0;this.init(M,q,G,K)},XW,g$p,B9l,QIp,I8B,Dxp,A9y,cdS;
_.N=iPp.prototype;_.N.init=function(M,q,G,K){var n=K===void 0?{}:K;K=n.aliasBytesFields===void 0?!1:n.aliasBytesFields;n=n.treatNewDataAsImmutable===void 0?!1:n.treatNewDataAsImmutable;this.aliasBytesFields=K;this.treatNewDataAsImmutable=n;M&&(M=TwD(M,this.treatNewDataAsImmutable),this.bytes_=M.buffer,this.bytesAreImmutable_=M.JSC$8855_isImmutable,this.JSC$8858_start_=q||0,this.end_=G!==void 0?this.JSC$8858_start_+G:this.bytes_.length,this.cursor_=this.JSC$8858_start_)};
_.N.free=function(){this.clear();cdS.length<100&&cdS.push(this)};
_.N.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$8858_start_=0;this.aliasBytesFields=!1};
_.N.reset=function(){this.cursor_=this.JSC$8858_start_};
_.N.atEnd=function(){return this.cursor_==this.end_};
_.P7=function(M,q){var G=0,K=0,n=0,E=M.bytes_,p=M.cursor_;do{var y=E[p++];G|=(y&127)<<n;n+=7}while(n<32&&y&128);if(n>32)for(K|=(y&127)>>4,n=3;n<32&&y&128;n+=7)y=E[p++],K|=(y&127)<<n;XW(M,p);if(!(y&128))return q(G>>>0,K>>>0);throw Error();};
XW=function(M,q){M.cursor_=q;if(q>M.end_)throw Error();};
_.iZ=function(M){var q=M.bytes_,G=M.cursor_,K=q[G++],n=K&127;if(K&128&&(K=q[G++],n|=(K&127)<<7,K&128&&(K=q[G++],n|=(K&127)<<14,K&128&&(K=q[G++],n|=(K&127)<<21,K&128&&(K=q[G++],n|=K<<28,K&128&&q[G++]&128&&q[G++]&128&&q[G++]&128&&q[G++]&128&&q[G++]&128)))))throw Error();XW(M,G);return n};
_.c7=function(M){var q=M.bytes_,G=M.cursor_,K=q[G],n=q[G+1],E=q[G+2];q=q[G+3];XW(M,M.cursor_+4);return(K<<0|n<<8|E<<16|q<<24)>>>0};
g$p=function(M){var q=_.c7(M);M=_.c7(M);return YMH(q,M)};
B9l=function(M){var q=_.c7(M);M=(q>>31)*2+1;var G=q>>>23&255;q&=8388607;return G==255?q?NaN:M*Infinity:G==0?M*1.401298464324817E-45*q:M*Math.pow(2,G-150)*(q+8388608)};
QIp=function(M){var q=_.c7(M),G=_.c7(M);M=(G>>31)*2+1;var K=G>>>20&2047;q=4294967296*(G&1048575)+q;return K==2047?q?NaN:M*Infinity:K==0?M*4.9E-324*q:M*Math.pow(2,K-1075)*(q+4503599627370496)};
I8B=function(M){for(var q=0,G=M.cursor_,K=G+10,n=M.bytes_;G<K;){var E=n[G++];q|=E;if((E&128)===0)return XW(M,G),!!(q&127)}throw Error();};
Dxp=function(M,q){if(q<0)throw Error();var G=M.cursor_;q=G+q;if(q>M.end_)throw Error();M.cursor_=q;return G};
A9y=function(M,q){if(q==0)return _.II();var G=Dxp(M,q);M.aliasBytesFields&&M.bytesAreImmutable_?G=M.bytes_.subarray(G,G+q):(M=M.bytes_,q=G+q,G=G===q?new Uint8Array(0):OP$?M.slice(G,q):new Uint8Array(M.subarray(G,q)));return G.length==0?_.II():new Bv(G,QB)};
cdS=[];var Jdl=function(M,q,G,K){if(cdS.length){var n=cdS.pop();n.init(M,q,G,K);M=n}else M=new iPp(M,q,G,K);this.decoder_=M;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;u2v(this,K)},u2v=function(M,q){q=q===void 0?{}:q;
M.discardUnknownFields=q.discardUnknownFields===void 0?!1:q.discardUnknownFields},hGe=function(M,q,G,K){if(ZPB.length){var n=ZPB.pop();
u2v(n,K);n.decoder_.init(M,q,G,K);return n}return new Jdl(M,q,G,K)},LLs,WL$,gl,bPp,ZPB;
Jdl.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;ZPB.length<100&&ZPB.push(this)};
Jdl.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
LLs=function(M){if(M.decoder_.atEnd())return!1;M.fieldCursor_=M.decoder_.cursor_;var q=_.iZ(M.decoder_)>>>0,G=q>>>3;q&=7;if(!(q>=0&&q<=5))throw Error();if(G<1)throw Error();M.nextField_=G;M.nextWireType_=q;return!0};
WL$=function(M){switch(M.nextWireType_){case 0:M.nextWireType_!=0?WL$(M):I8B(M.decoder_);break;case 1:M=M.decoder_;XW(M,M.cursor_+8);break;case 2:if(M.nextWireType_!=2)WL$(M);else{var q=_.iZ(M.decoder_)>>>0;M=M.decoder_;XW(M,M.cursor_+q)}break;case 5:M=M.decoder_;XW(M,M.cursor_+4);break;case 3:q=M.nextField_;do{if(!LLs(M))throw Error();if(M.nextWireType_==4){if(M.nextField_!=q)throw Error();break}WL$(M)}while(1);break;default:throw Error();}};
gl=function(M,q,G){var K=M.decoder_.end_,n=_.iZ(M.decoder_)>>>0;n=M.decoder_.cursor_+n;var E=n-K;E<=0&&(M.decoder_.end_=n,G(q,M,void 0,void 0,void 0),E=n-M.decoder_.cursor_);if(E)throw Error();M.decoder_.cursor_=n;M.decoder_.end_=K;return q};
bPp=function(M){var q=_.iZ(M.decoder_)>>>0;M=M.decoder_;var G=Dxp(M,q);M=M.bytes_;if(vsB){var K=M,n;(n=dDl)||(n=dDl=new TextDecoder("utf-8",{fatal:!0}));q=G+q;K=G===0&&q===K.length?K:K.subarray(G,q);try{var E=n.decode(K)}catch(A){if(A4S===void 0){try{n.decode(new Uint8Array([128]))}catch(v){}try{n.decode(new Uint8Array([97])),A4S=!0}catch(v){A4S=!1}}!A4S&&(dDl=void 0);throw A;}}else{E=G;q=E+q;G=[];for(var p=null,y,Y;E<q;)y=M[E++],y<128?G.push(y):y<224?E>=q?GF():(Y=M[E++],y<194||(Y&192)!==128?(E--,
GF()):G.push((y&31)<<6|Y&63)):y<240?E>=q-1?GF():(Y=M[E++],(Y&192)!==128||y===224&&Y<160||y===237&&Y>=160||((n=M[E++])&192)!==128?(E--,GF()):G.push((y&15)<<12|(Y&63)<<6|n&63)):y<=244?E>=q-2?GF():(Y=M[E++],(Y&192)!==128||(y<<28)+(Y-144)>>30!==0||((n=M[E++])&192)!==128||((K=M[E++])&192)!==128?(E--,GF()):(y=(y&7)<<18|(Y&63)<<12|(n&63)<<6|K&63,y-=65536,G.push((y>>10&1023)+55296,(y&1023)+56320))):GF(),G.length>=8192&&(p=kFe(p,G),G.length=0);E=kFe(p,G)}return E};
_.UxB=function(M){var q=_.iZ(M.decoder_)>>>0;return A9y(M.decoder_,q)};
_.xxB=function(M,q,G){var K=_.iZ(M.decoder_)>>>0;for(K=M.decoder_.cursor_+K;M.decoder_.cursor_<K;)G.push(q(M.decoder_))};
ZPB=[];var zfd=function(M,q){this.JSC$8865_lo=M>>>0;this.JSC$8865_hi=q>>>0},Qv4=function(M){M=BigInt.asUintN(64,M);
return new zfd(Number(M&BigInt(4294967295)),Number(M>>BigInt(32)))},VRY=function(M){if(!M)return mxB||(mxB=new zfd(0,0));
if(!/^\d+$/.test(M))return null;Tl(M);return new zfd(UM,x$)},mxB,BWY=function(M,q){this.JSC$8867_lo=M>>>0;
this.JSC$8867_hi=q>>>0},rEy=function(M){if(!M)return SMp||(SMp=new BWY(0,0));
if(!/^-?\d+$/.test(M))return null;Tl(M);return new BWY(UM,x$)},SMp;var B7=function(){this.JSC$8869_buffer_=[]},dW,h9,T9M;
B7.prototype.length=function(){return this.JSC$8869_buffer_.length};
B7.prototype.end=function(){var M=this.JSC$8869_buffer_;this.JSC$8869_buffer_=[];return M};
dW=function(M,q,G){for(;G>0||q>127;)M.JSC$8869_buffer_.push(q&127|128),q=(q>>>7|G<<25)>>>0,G>>>=7;M.JSC$8869_buffer_.push(q)};
h9=function(M,q){for(;q>127;)M.JSC$8869_buffer_.push(q&127|128),q>>>=7;M.JSC$8869_buffer_.push(q)};
_.Da$=function(M,q){if(q>=0)h9(M,q);else{for(var G=0;G<9;G++)M.JSC$8869_buffer_.push(q&127|128),q>>=7;M.JSC$8869_buffer_.push(1)}};
T9M=function(M,q){Tl(q);WpH(function(G,K){dW(M,G>>>0,K>>>0)})};
B7.prototype.writeUint8=function(M){this.JSC$8869_buffer_.push(M>>>0&255)};
_.A9=function(M,q){M.JSC$8869_buffer_.push(q>>>0&255);M.JSC$8869_buffer_.push(q>>>8&255);M.JSC$8869_buffer_.push(q>>>16&255);M.JSC$8869_buffer_.push(q>>>24&255)};
B7.prototype.writeInt8=function(M){this.JSC$8869_buffer_.push(M>>>0&255)};var rd9,pG,J9F,Uai,Hn$;rd9=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new B7};
pG=function(M,q){q.length!==0&&(M.blocks_.push(q),M.totalLength_+=q.length)};
_.jIB=function(M,q){_.Wt(M,q,2);q=M.encoder_.end();pG(M,q);q.push(M.totalLength_);return q};
_.VJx=function(M,q){var G=q.pop();for(G=M.totalLength_+M.encoder_.length()-G;G>127;)q.push(G&127|128),G>>>=7,M.totalLength_++;q.push(G);M.totalLength_++};
_.Wt=function(M,q,G){h9(M.encoder_,q*8+G)};
J9F=function(M,q,G){if(G!=null)switch(RwD(G),_.Wt(M,q,1),typeof G){case "number":M=M.encoder_;klF(G);_.A9(M,UM);_.A9(M,x$);break;case "bigint":G=Qv4(G);M=M.encoder_;q=G.JSC$8865_hi;_.A9(M,G.JSC$8865_lo);_.A9(M,q);break;default:G=VRY(G),M=M.encoder_,q=G.JSC$8865_hi,_.A9(M,G.JSC$8865_lo),_.A9(M,q)}};
Uai=function(M,q,G){_.Wt(M,q,2);h9(M.encoder_,G.length);pG(M,M.encoder_.end());pG(M,G)};
Hn$=function(M,q,G,K){G!=null&&(q=_.jIB(M,q),K(G,M),_.VJx(M,q))};var fUF,RfI,f8I,Fp2,HPl,$x2,s89,qLM,GsJ;fUF=nG();RfI=nG();f8I=nG();Fp2=nG();HPl=nG();_.efd=nG();_.Qj=nG();$x2=nG();s89=nG();_.MRP=nG();qLM=nG();GsJ=nG();_.K5J=nG();_.ng2=nG();_.kC=function(M,q,G){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M,q,G)};
_.kC.prototype.toJSON=function(){return bP(this)};
_.kC.prototype.serialize=function(M){return JSON.stringify(bP(this,M))};
var RGw=function(M,q){if(q==null||q=="")return new M;q=JSON.parse(q);if(!Array.isArray(q))throw Error("V");return new M(Hj4(q))};
_.kC.prototype.getExtension=function(M){Gsw(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,M.fieldIndex);MRj(this,M.fieldIndex);return M.ctor?M.isRepeated?M.getExtensionFn(this,M.ctor,M.fieldIndex,_.WX(),M.JSC$8880_hasMessageId):M.getExtensionFn(this,M.ctor,M.fieldIndex,M.JSC$8880_hasMessageId):M.isRepeated?M.getExtensionFn(this,M.fieldIndex,_.WX(),M.JSC$8880_hasMessageId):M.getExtensionFn(this,M.fieldIndex,M.defaultValue,M.JSC$8880_hasMessageId)};
_.kC.prototype.clone=function(){var M=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,q=M[_.nP]|0;return ine(this,M,q)?PPF(this,M,!0):new this.constructor(m5(M,q,!1))};
_.kC.prototype[iP]=cI;_.kC.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var EA=function(M,q,G){this.$$binaryReaderFn=M;this.$$binaryWriterFn=q;M=DU(fUF);this.$$isMsg=!!M&&G===M||!1},G3y=F54(function(M,q,G,K,n){if(M.nextWireType_!==2)return!1;
gl(M,o$J(q,K,G),n);return!0},$MF),KLy=F54(function(M,q,G,K,n){if(M.nextWireType_!==2)return!1;
gl(M,o$J(q,K,G),n);return!0},$MF),OGH=Symbol(),NWi=Symbol(),y9j=Symbol(),aCY=Symbol(),daj=Symbol(),svs,MM$;var r9y,Egl,IT,NwB,ksx,pI$,yE$,uZ,YLB,W58,AEx,dMP,vgM,tRl,OnP,wI8,CPM,aUf,og$;r9y=function(M,q){var G=new rd9;oCs(M.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,G,Na(OGH,tMi,wtF,q));pG(G,G.encoder_.end());M=new Uint8Array(G.totalLength_);q=G.blocks_;for(var K=q.length,n=0,E=0;E<K;E++){var p=q[E];M.set(p,n);n+=p.length}G.blocks_=[M];return M};
Egl=F54(function(M,q,G,K,n){if(M.nextWireType_!==2)return!1;M=gl(M,zs([void 0,void 0],K,!0),n);M=VB(M);K=q[_.nP]|0;n=Jd(K);if(K&2)throw Error();var E=$g(q,G,n);if(E instanceof gw)(E.arrayState&2)!=0?(E=AED(E),E.push(M),R8(q,K,G,E,n)):(q=E,G=q.keyToApi(M[0],!1,!0),M=M[1],M=q.valueCtor?M===void 0?null:M:q.valueToApi(M,!1,!0,void 0,!1,q.arrayState),Gm.prototype.set.call(q,G,M));else if(Array.isArray(E)){var p=E[_.nP]|0;p&8192||pP(E,p|=8192);p&2&&(E=IUe(E),R8(q,K,G,E,n));E.push(M)}else R8(q,K,G,Y$([M]),
n);return!0},function(M,q,G,K,n){if(q instanceof gw)q.forEach(function(y,Y){Hn$(M,G,zs([Y,
y],K,!1),n)});
else if(Array.isArray(q)){for(var E=0;E<q.length;E++){var p=q[E];Array.isArray(p)&&Hn$(M,G,zs(p,K,!1),n)}Y$(q)}});
IT=_.yk(function(M,q,G){if(M.nextWireType_!==1)return!1;_.YC(q,G,QIp(M.decoder_));return!0},c9u,GsJ);
NwB=_.yk(function(M,q,G,K){if(M.nextWireType_!==1)return!1;_.pu(q,G,K,QIp(M.decoder_));return!0},c9u,GsJ);
ksx=_.yk(function(M,q,G){if(M.nextWireType_!==5)return!1;_.YC(q,G,B9l(M.decoder_));return!0},gC4,qLM);
pI$=_.iGY(function(M,q,G){if(M.nextWireType_!==5&&M.nextWireType_!==2)return!1;q=_.qa(q,q[_.nP]|0,G);M.nextWireType_==2?_.xxB(M,B9l,q):q.push(B9l(M.decoder_));return!0},function(M,q,G){q=_.Pyy(_.eJ,q,!0);
if(q!=null&&q.length)for(_.Wt(M,G,2),h9(M.encoder_,q.length*4),G=0;G<q.length;G++){var K=M.encoder_;LpY(q[G]);_.A9(K,UM)}},qLM);
yE$=_.yk(function(M,q,G,K){if(M.nextWireType_!==5)return!1;_.pu(q,G,K,B9l(M.decoder_));return!0},gC4,qLM);
_.L5p=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,_.P7(M.decoder_,_.v$i));return!0},_.vt,_.Qj);
_.Dh=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,_.P7(M.decoder_,SJ));return!0},_.vt,_.Qj);
uZ=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;M=_.P7(M.decoder_,SJ);_.YC(q,G,M===0?void 0:M);return!0},_.vt,_.Qj);
YLB=_.yk(function(M,q,G,K){if(M.nextWireType_!==0)return!1;_.pu(q,G,K,_.P7(M.decoder_,SJ));return!0},_.vt,_.Qj);
W58=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,_.P7(M.decoder_,_.mp));return!0},ICi,$x2);
_.JD=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,_.P7(M.decoder_,YMH));return!0},ICi,$x2);
_.Zh=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,_.iZ(M.decoder_));return!0},uey,Fp2);
AEx=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;M=_.iZ(M.decoder_);_.YC(q,G,M===0?void 0:M);return!0},uey,Fp2);
dMP=_.yk(function(M,q,G,K){if(M.nextWireType_!==0)return!1;_.pu(q,G,K,_.iZ(M.decoder_));return!0},uey,Fp2);
vgM=_.yk(function(M,q,G){if(M.nextWireType_!==1)return!1;_.YC(q,G,g$p(M.decoder_));return!0},_.ZGy,_.MRP);
_.hwM=_.iGY(function(M,q,G){if(M.nextWireType_!==1&&M.nextWireType_!==2)return!1;q=_.qa(q,q[_.nP]|0,G);M.nextWireType_==2?_.xxB(M,g$p,q):q.push(g$p(M.decoder_));return!0},function(M,q,G){q=_.Pyy(UxY,q,!1);
if(q!=null)for(var K=0;K<q.length;K++)J9F(M,G,q[K])},_.MRP);
_.bZ=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,I8B(M.decoder_));return!0},bGy,RfI);
_.Uv=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;M=I8B(M.decoder_);_.YC(q,G,M===!1?void 0:M);return!0},bGy,RfI);
tRl=_.yk(function(M,q,G,K){if(M.nextWireType_!==0)return!1;_.pu(q,G,K,I8B(M.decoder_));return!0},bGy,RfI);
_.x1=_.yk(function(M,q,G){if(M.nextWireType_!==2)return!1;_.YC(q,G,bPp(M));return!0},xa4,f8I);
_.m6=_.yk(function(M,q,G){if(M.nextWireType_!==2)return!1;M=bPp(M);_.YC(q,G,M===""?void 0:M);return!0},xa4,f8I);
_.S$=_.yk(function(M,q,G,K){if(M.nextWireType_!==2)return!1;_.pu(q,G,K,bPp(M));return!0},xa4,f8I);
OnP=_.iGY(function(M,q,G){if(M.nextWireType_!==2)return!1;M=bPp(M);_.qa(q,q[_.nP]|0,G).push(M);return!0},function(M,q,G){q=_.Pyy(_.lP,q,!0);
if(q!=null)for(var K=0;K<q.length;K++){var n=M,E=G,p=q[K];p!=null&&Uai(n,E,Ye4(p))}},f8I);
wI8=void 0;wI8=wI8===void 0?fUF:wI8;_.Tm=new EA(function(M,q,G,K,n){if(M.nextWireType_!==2)return!1;K=zs(void 0,K,!0);_.qa(q,q[_.nP]|0,G).push(K);gl(M,K,n);return!0},function(M,q,G,K,n){if(Array.isArray(q)){for(var E=0;E<q.length;E++)zGy(M,q[E],G,K,n);
M=q[_.nP]|0;M&1||pP(q,M|1)}},wI8);
_.rl=F54(function(M,q,G,K,n,E){if(M.nextWireType_!==2)return!1;var p=q[_.nP]|0;ZnD(q,p,E,G,Jd(p));q=o$J(q,K,G);gl(M,q,n);return!0},zGy);
_.j$=_.yk(function(M,q,G){if(M.nextWireType_!==2)return!1;_.YC(q,G,_.UxB(M));return!0},_.maw,_.K5J);
CPM=_.yk(function(M,q,G,K){if(M.nextWireType_!==2)return!1;_.pu(q,G,K,_.UxB(M));return!0},_.maw,_.K5J);
_.Vj=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,_.iZ(M.decoder_)>>>0);return!0},SAF,HPl);
aUf=_.yk(function(M,q,G,K){if(M.nextWireType_!==0)return!1;_.pu(q,G,K,_.iZ(M.decoder_)>>>0);return!0},SAF,HPl);
_.RT=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,_.iZ(M.decoder_));return!0},_.TWs,_.ng2);
_.fu=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;M=_.iZ(M.decoder_);_.YC(q,G,M===0?void 0:M);return!0},_.TWs,_.ng2);
og$=_.yk(function(M,q,G){if(M.nextWireType_!==0)return!1;_.YC(q,G,_.P7(M.decoder_,Adw));return!0},function(M,q,G){q=bPy(q);
if(q!=null&&(j8s(q),q!=null))switch(_.Wt(M,G,0),typeof q){case "number":M=M.encoder_;G=q;q=G<0;G=Math.abs(G)*2;klF(G);G=UM;var K=x$;q&&(G==0?K==0?K=G=4294967295:(K--,G=4294967295):G--);UM=G;x$=K;dW(M,UM,x$);break;case "bigint":M=M.encoder_;q=q<<BigInt(1)^q>>BigInt(63);UM=Number(BigInt.asUintN(32,q));x$=Number(BigInt.asUintN(32,q>>BigInt(32)));dW(M,UM,x$);break;default:T9M(M.encoder_,q)}},s89);var PP8=function(){var M=lU9,q=XIv;this.fieldIndex=175237375;this.ctor=q;this.isRepeated=0;this.getExtensionFn=_.t0;this.defaultValue=void 0;this.JSC$8880_hasMessageId=M.messageId!=null?uS:void 0};
PP8.prototype.register=function(){Vi(this)};var inM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(inM,_.kC);var cE9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(cE9,_.kC);var HGj=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(HGj,_.kC);var gg8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(gg8,_.kC);var BwI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(BwI,_.kC);var Q8S=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Q8S,_.kC);var IUM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(IUM,_.kC);IUM.prototype.getData=function(){return _.k1(this,2)};var DM9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(DM9,_.kC);var uvf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(uvf,_.kC);uvf.prototype.getStyle=function(){return _.t0(this,inM,1)};var ly=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ly,_.kC);ly.prototype.getPayloadCase=function(){return _.yj(this,iy)};
ly.prototype.getStyle=function(){return _.aT(this,uvf,6,iy)};
var JEl=function(){var M=new ly,q=new BwI;return _.Pt(M,7,iy,q)},Znx=function(){var M=new ly,q=new Q8S;
return _.Pt(M,8,iy,q)},iy=[1,
2,3,4,5,6,7,8];var bn$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(bn$,_.kC);var UMM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(UMM,_.kC);var xMJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(xMJ,_.kC);var zwf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(zwf,_.kC);var mMd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(mMd,_.kC);var SLB=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(SLB,_.kC);var Twx=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Twx,_.kC);var rEp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(rEp,_.kC);rEp.prototype.getData=function(){return _.k1(this,2)};var j8$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(j8$,_.kC);var FLw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(FLw,_.kC);FLw.prototype.getPayloadCase=function(){return _.yj(this,FW)};
var FW=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var H7=function(M,q){M=Error.call(this,M);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.code=q===void 0?2:q};
_.l(H7,Error);var VRB=Promise;var Rwx=function(M){this.channelPromise=M};
Rwx.prototype.send=function(M,q,G){this.channelPromise.then(function(K){K.send(M,q,G)})};var fUl=function(M,q){this.data=M;this.channel=q};
fUl.prototype.reply=function(M,q,G){this.channel.send(M,q,G)};var F5d=function(M){this.JSC$8946_port_=M};
F5d.prototype.send=function(M,q,G){G=G===void 0?[]:G;var K=new MessageChannel;Hn9(K.port1,q);this.JSC$8946_port_.postMessage(M,[K.port2].concat(G))};
var ewP=function(M,q){Hn9(M,q);return new F5d(M)},Hn9=function(M,q){q&&(M.onmessage=function(G){q(new fUl(G.data,ewP(G.ports[0])))})};var $Ml=function(M){this.verifier_=M};
$Ml.prototype.verify=function(M){return this.verifier_(M)};
var sv$=function(M){var q=Object.create(null);(typeof M==="string"?[M]:M).forEach(function(G){if(G==="null")throw Error("X");q[G]=!0});
return function(G){return q[G]===!0}};_.MM9=function(){if(!_.Kj.addEventListener||!Object.defineProperty)return!1;var M=!1,q=Object.defineProperty({},"passive",{get:function(){M=!0}});
try{var G=function(){};
_.Kj.addEventListener("test",G,q);_.Kj.removeEventListener("test",G,q)}catch(K){}return M}();var qAP;_.e$=function(M){var q=M.destination;var G=M.iframe;var K=M.origin;var n=M.channelName===void 0?"ZNWN1d":M.channelName;var E=M.onMessage===void 0?void 0:M.onMessage;M=M.onEstablished===void 0?void 0:M.onEstablished;return qAP({destination:q,getSource:function(){return G.contentWindow},
originVerifier:K instanceof $Ml?K:typeof K==="function"?new $Ml(K):new $Ml(sv$(K)),channelName:n,onMessage:E,onEstablished:M})};
qAP=function(M){var q=M.destination;var G=M.getSource;var K=M.originVerifier;var n=M.token===void 0?void 0:M.token;var E=M.channelName;var p=M.onMessage===void 0?void 0:M.onMessage;var y=M.onEstablished===void 0?void 0:M.onEstablished;return new Rwx(new VRB(function(Y,A){var v=function(h){h.source&&h.source===G()&&K.verify(h.origin)&&(h.data.n||h.data)===E&&(q.removeEventListener("message",v,!1),n&&h.data.t!==n?A(Error("Y`"+E+"`"+n+"`"+h.data.t)):(Y(ewP(h.ports[0],p)),y&&y(h)))};
q.addEventListener("message",v,!1)}))};var G3I=function(M){try{M()}catch(q){nj(q)}};var nCM=function(M){var q=this;var G=M.getMessageType;var K=M.onUnregisteredMessage===void 0?function(){}:M.onUnregisteredMessage;
var n=M.onBeforeRegisteredMessage===void 0?function(){}:M.onBeforeRegisteredMessage;
M=M.onAfterRegisteredMessage===void 0?function(){}:M.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=G;this.onUnregisteredMessage_=K;this.onBeforeRegisteredMessage_=n;this.onAfterRegisteredMessage_=M;this.onMessage=function(E){return KLv(q,E)}};
nCM.prototype.register=function(M,q){this.registry_.set(M,q);return this};
var KLv=function(M,q){var G=M.getMessageType_(q.data),K=M.registry_.get(G);K?(G3I(function(){return M.onBeforeRegisteredMessage_(q,G)}),G3I(function(){return K(q)}),G3I(function(){return M.onAfterRegisteredMessage_(q,G)})):G3I(function(){return M.onUnregisteredMessage_(q,G)})};var ECS=function(M){this.JSC$8963_channel_=M},k39,pt$;
ECS.prototype.send=function(M,q,G){this.JSC$8963_channel_.send(bP(M),q,G)};
_.NW2=function(M,q){return function(G){var K=new M(G.data);return q(new fUl(K,G.channel))}};
k39=function(M){return function(q){return M(new fUl(q.data,new ECS(q.channel)))}};
pt$=function(M,q){return k39(_.NW2(M,q))};var y9P=function(M,q,G,K){this.registry=M;this.delegate=q;this.receiveMessageConstructor=G;this.createInitMessage=K;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},fCe=function(M){var q=new nCM({getMessageType:M.getPayloadCase});
return new y9P(q,new ECS(_.e$({iframe:M.child,destination:window,origin:M.origin,channelName:M.channelName,onMessage:pt$(M.receiveMessageConstructor,q.onMessage)})),M.receiveMessageConstructor,M.createInitMessage)},LL$=function(M,q){M.createInitMessage=q};
y9P.prototype.send=function(M){if(!this.initialised)throw new H7("Attempted to send a message before initialisation.");this.delegate.send(M)};
var YA8=function(M,q){return _.L(function(G){if(!M.initialised)throw new H7("Attempted to send a message before initialisation.");return G.return(new Promise(function(K){M.delegate.send(q,pt$(M.receiveMessageConstructor,K))}))})};
y9P.prototype.init=function(){var M=this;return _.L(function(q){if(M.initialised)throw new H7("Attempted to initialise twice. The SDK can only be initialised once.");if(M.createInitMessage!==void 0){var G=M.delegate,K=G.send,n=M.createInitMessage;var E=new cE9;var p=[].concat(_.Ui(M.features));E=_.sA(E,1,p,_.nn);K.call(G,n.call(M,E))}M.initialised=!0;_.gL(q)})};
var $1=function(M,q){if(M.initialised)throw new H7('Attempted to set up API "'+q+'" after initialisation. All APIs must be set up before initialising the SDK.');M.features.add(q);return M.registry};
_.Yd.Object.defineProperties(y9P.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var WL9=function(M){this.channel=M;this.registered=!1};
WL9.prototype.update=function(M){if(this.channel.isInitialised){if(!this.registered)throw new H7("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var q=new ly;var G=new gg8;G=_.tu(G,1,M);q=_.Pt(q,2,iy,G);this.channel.send(q)}else this.register();this.JSC$8977_audioEnabled=M};
WL9.prototype.register=function(){$1(this.channel,1);this.registered=!0};
WL9.prototype.isAudioEnabled=function(){return this.JSC$8977_audioEnabled};var A9p=function(M){this.channel=M};
_.N=A9p.prototype;_.N.onFirstFrameReady=function(M){$1(this.channel,2).register(11,function(q){q=_.aT(q.data,bn$,11,FW);if(!q)throw new H7("Unexpectedly nonexistent GameFirstFrameReadyEvent");M(_.hD(q,1))})};
_.N.onReady=function(M){$1(this.channel,2).register(4,function(q){q=_.aT(q.data,xMJ,4,FW);if(!q)throw new H7("Unexpectedly nonexistent GameReadyEvent");M(_.hD(q,1))})};
_.N.onLevelComplete=function(M){$1(this.channel,2).register(5,function(q){q=_.aT(q.data,zwf,5,FW);if(!q)throw new H7("Unexpectedly nonexistent LevelCompleteEvent");M(_.hD(q,1),_.Au(q,2))})};
_.N.onGameOver=function(M){$1(this.channel,2).register(6,function(q){q=_.aT(q.data,UMM,6,FW);if(!q)throw new H7("Unexpectedly nonexistent GameOverEvent");M(_.hD(q,1))})};
_.N.pause=function(){var M=this;if(!this.channel.isInitialised)return $1(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new H7("Using unregistered Game Feature: pause.");var q=JEl();return new Promise(function(G){return _.L(function(K){if(K.nextAddress==1)return K.yield(YA8(M.channel,q),2);G();_.gL(K)})})};
_.N.resume=function(){var M=this;if(!this.channel.isInitialised)return $1(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new H7("Using unregistered Game Feature: resume.");var q=Znx();return new Promise(function(G){return _.L(function(K){if(K.nextAddress==1)return K.yield(YA8(M.channel,q),2);G();_.gL(K)})})};var daP=function(M){this.channel=M};
daP.prototype.onReady=function(M){$1(this.channel,5).register(8,function(q){if(!_.aT(q.data,mMd,8,FW))throw new H7("Unexpectedly nonexistent PageReadyEvent");M()})};var vCp=function(M){this.channel=M};
vCp.prototype.onChange=function(M){$1(this.channel,3).register(7,function(q){q=_.aT(q.data,SLB,7,FW);if(!q)throw new H7("Unexpectedly nonexistent ScoreEvent");M(_.hD(q,1),_.Au(q,2))})};var hGM={load:function(){throw new H7("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new H7("Storage used, but storage.onSave() listener not set!");}},tM2=function(M){this.channel=M;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},OGS=function(M){$1(M.channel,4).register(2,hGM.load).register(3,hGM.save);
M.initialSetupDone=!0};
tM2.prototype.onLoad=function(M){this.initialSetupDone||OGS(this);this.loadRegistered||(this.loadRegistered=!0,$1(this.channel,4).register(2,function(q){var G,K,n;return _.L(function(E){if(E.nextAddress==1){G=_.aT(q.data,Twx,2,FW);if(!G)throw new H7("Unexpectedly nonexistent StorageLoad");K=_.hD(G,1);return E.yield(M(K),2)}n=E.yieldResult;var p=q.reply,y=new ly;var Y=new IUM;Y=_.DJ(Y,1,K);Y=_.w8(Y,2,_.D8(n,!1));y=_.Pt(y,3,iy,Y);p.call(q,y);_.gL(E)})}))};
tM2.prototype.onSave=function(M){this.initialSetupDone||OGS(this);this.saveRegistered||(this.saveRegistered=!0,$1(this.channel,4).register(3,function(q){var G,K,n;return _.L(function(E){if(E.nextAddress==1){G=_.aT(q.data,rEp,3,FW);if(!G)throw new H7("Unexpectedly nonexistent StorageSave");K=_.hD(G,1);n=kll(G.getData());return E.yield(M(K,n),2)}var p=q.reply,y=new ly;var Y=new DM9;Y=_.DJ(Y,1,K);y=_.Pt(y,4,iy,Y);p.call(q,y);_.gL(E)})}))};var wtl=function(M){this.channel=M};
wtl.prototype.update=function(M){if(!this.channel.features.has(6))throw new H7("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var q=new ly,G=new uvf;M=_.Xe(G,1,M);q=_.Pt(q,6,iy,M);this.channel.send(q)};
wtl.prototype.register=function(){$1(this.channel,6)};var Cyv=function(M){this.channel=M;this.userActivityLoggingIntervalMs=0};
Cyv.prototype.onUserActivity=function(M,q){this.userActivityLoggingIntervalMs=q;$1(this.channel,7).register(9,function(G){if(!_.aT(G.data,j8$,9,FW))throw new H7("Unexpectedly nonexistent ClickEvent");M()})};var aCB=function(M){var q=this;this.channel=M;this.init=this.channel.init.bind(this.channel);this.page=new daP(this.channel);this.game=new A9p(this.channel);this.audio=new WL9(this.channel);this.score=new vCp(this.channel);this.storage=new tM2(this.channel);this.style=new wtl(this.channel);this.userActivity=new Cyv(this.channel);LL$(this.channel,function(G){var K=new HGj;G=_.Xe(K,1,G);G=_.oT(G,3,q.userActivity.userActivityLoggingIntervalMs);K=q.audio.isAudioEnabled();K!==void 0&&_.tu(G,2,K);K=new ly;
return _.Pt(K,5,iy,G)})};var oC$=function(){this.timedFunctionContext=0};
oC$.prototype.timeExecution=function(M,q){var G=this;return function(){var K=_.rW.apply(0,arguments);G.timedFunctionContext=M;return q.apply(null,_.Ui(K))}};var lCJ=function(){var M={};this.priorityTasks=(M[3]=[],M[2]=[],M[1]=[],M);this.isFlushing=!1},XQ=function(M,q,G){var K=XtJ(M,G);
M.priorityTasks[G].push(q);K&&M.priorityTasks[G].length===1&&M.flush()},XtJ=function(M,q){return Object.keys(M.priorityTasks).map(function(G){return Number(G)}).filter(function(G){return!isNaN(G)&&G>q}).every(function(G){return M.priorityTasks[G].length===0})};
lCJ.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(M){return M.length>0});)PyI(this,3),PyI(this,2),PyI(this,1)}catch(M){throw Object.values(this.priorityTasks).forEach(function(q){return void q.splice(0,q.length)}),M;
}finally{this.isFlushing=!1}}};
var PyI=function(M,q){for(;XtJ(M,q)&&M.priorityTasks[q].length>0;)M.priorityTasks[q][0](),M.priorityTasks[q].shift()};
_.Yd.Object.defineProperties(lCJ.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(M){return M.length>0})}}});var Kwe={};var iGB=globalThis.trustedTypes,$a$=iGB,Mmy;var gW=function(M){this.privateDoNotAccessOrElseWrappedResourceUrl=M};
gW.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var c9f,gCd,BWB,Qvd,IC2,Da9,ueI,J9l;c9f=_.DQ([""]);gCd=IH(["\x00"],["\\0"]);BWB=IH(["\n"],["\\n"]);Qvd=IH(["\x00"],["\\u0000"]);IC2=_.DQ([""]);Da9=IH(["\x00"],["\\0"]);ueI=IH(["\n"],["\\n"]);J9l=IH(["\x00"],["\\u0000"]);_.ZGv=GpF(function(M){return M(c9f)})||GpF(function(M){return M(gCd)})||GpF(function(M){return M(BWB)})||GpF(function(M){return M(Qvd)});
_.bGI=_.DC(IC2)&&_.DC(Da9)&&_.DC(ueI)&&_.DC(J9l);var mL;_.uy=function(M,q){this.privateDoNotAccessOrElseWrappedUrl=q};
_.uy.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.Ua2=J9("about:blank");mL=J9("about:invalid#zClosurez");var nqu=function(M){this.isValid=M},xad=new nqu(function(M){return/^[^:]*([/?#]|$)/.test(M)}),zGv=xC("data"),maJ=xC("http"),SA8=xC("https"),TW$=xC("ftp"),r9p=xC("mailto"),jvf=xC("intent"),VMS=xC("vnd.youtube"),Eqi=[zGv,
maJ,SA8,r9p,TW$,xad],kpD=ct(function(){return typeof URL==="function"}),RGJ=["data:",
"http:","https:","mailto:","ftp:"],yxi=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Rv=function(M){this.privateDoNotAccessOrElseWrappedHtml=M};
Rv.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var y0i=ct(function(){return new Rv(iGB?iGB.emptyHTML:"")});var fCM={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"},YiY=function(M,q){var G=Error.call(this,M+" cannot be used with intent "+fCM[q]);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.type=M;this.intent=q;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.l(YiY,Error);_.qX=function(M){this.privateDoNotAccessOrElseWrappedScript=M};
_.qX.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var dXu=function(M){this.privateDoNotAccessOrElseWrappedAttributePrefix=M};
dXu.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var vqj="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var yR=function(M){this.privateDoNotAccessOrElseWrappedStyleSheet=M};
yR.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};var mAy=function(M){var q=_.sx("window.location.href");M==null&&(M='Unknown Error of type "null/undefined"');if(typeof M==="string")return{message:M,name:"Unknown error",lineNumber:"Not available",fileName:q,stack:"Not available"};var G=!1;try{var K=M.lineNumber||M.line||"Not available"}catch(p){K="Not available",G=!0}try{var n=M.fileName||M.filename||M.sourceURL||_.Kj.$googDebugFname||q}catch(p){n="Not available",G=!0}q=FLJ(M);if(!(!G&&M.lineNumber&&M.fileName&&M.stack&&M.message&&M.name)){G=M.message;
if(G==null){if(M.constructor&&M.constructor instanceof Function){if(M.constructor.name)G=M.constructor.name;else if(G=M.constructor,sB[G])G=sB[G];else{G=String(G);if(!sB[G]){var E=/function\s+([^\(]+)/m.exec(G);sB[G]=E?E[1]:"[Anonymous]"}G=sB[G]}G='Unknown Error of type "'+G+'"'}else G="Unknown Error of unknown type";typeof M.toString==="function"&&Object.prototype.toString!==M.toString&&(G+=": "+M.toString())}return{message:G,name:M.name||"UnknownError",lineNumber:K,fileName:n,stack:q||"Not available"}}return{message:M.message,
name:M.name,lineNumber:M.lineNumber,fileName:M.fileName,stack:q}},FLJ=function(M,q){q||(q={});
q[HGP(M)]=!0;var G=M.stack||"",K=M.cause;K&&!q[HGP(K)]&&(G+="\nCaused by: ",K.stack&&K.stack.indexOf(K.toString())==0||(G+=typeof K==="string"?K:K.message+"\n"),G+=FLJ(K,q));M=M.errors;if(Array.isArray(M)){K=1;var n;for(n=0;n<M.length&&!(K>4);n++)q[HGP(M[n])]||(G+="\nInner error "+K++ +": ",M[n].stack&&M[n].stack.indexOf(M[n].toString())==0||(G+=typeof M[n]==="string"?M[n]:M[n].message+"\n"),G+=FLJ(M[n],q));n<M.length&&(G+="\n... "+(M.length-n)+" more inner errors")}return G},HGP=function(M){var q=
"";
typeof M.toString==="function"&&(q=""+M);return q+M.stack},sB={};var eGS,YJ,ec,sSM,MmI,$a9,$a,gt,Gpl;eGS=function(M,q){for(var G=M.split("%s"),K="",n=Array.prototype.slice.call(arguments,1);n.length&&G.length>1;)K+=G.shift()+n.shift();return K+G.join("%s")};
_.qz=function(M){return encodeURIComponent(String(M))};
YJ=function(M){return decodeURIComponent(M.replace(/\+/g," "))};
ec=function(M){lFB.test(M)&&(M.indexOf("&")!=-1&&(M=M.replace(twf,"&amp;")),M.indexOf("<")!=-1&&(M=M.replace(Ojd,"&lt;")),M.indexOf(">")!=-1&&(M=M.replace(wy2,"&gt;")),M.indexOf('"')!=-1&&(M=M.replace(CH2,"&quot;")),M.indexOf("'")!=-1&&(M=M.replace(aFl,"&#39;")),M.indexOf("\x00")!=-1&&(M=M.replace(osd,"&#0;")));return M};
sSM=function(M){var q={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var G=_.Kj.document.createElement("div");return M.replace($a9,function(K,n){var E=q[K];if(E)return E;n.charAt(0)=="#"&&(n=Number("0"+n.slice(1)),isNaN(n)||(E=String.fromCharCode(n)));E||(_.NX(G,Ht(K+" ")),E=G.firstChild.nodeValue.slice(0,-1));return q[K]=E})};
MmI=function(M){return M.replace(/&([^;]+);/g,function(q,G){switch(G){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return G.charAt(0)!="#"||(G=Number("0"+G.slice(1)),isNaN(G))?q:String.fromCharCode(G)}})};
$a9=/&([^;\s<&]+);?/g;_.i$y=function(M){return String(M).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.qiS=String.prototype.repeat?function(M,q){return M.repeat(q)}:function(M,q){return Array(q+1).join(M)};
_.Me=function(M,q){if(!Number.isFinite(M))return String(M);M=String(M);var G=M.indexOf(".");G===-1&&(G=M.length);var K=M[0]==="-"?"-":"";K&&(M=M.substring(1));return K+(0,_.qiS)("0",Math.max(0,q-G))+M};
$a=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.Sh()).toString(36)};
gt=function(M){for(var q=0,G=0;G<M.length;++G)q=31*q+M.charCodeAt(G)>>>0;return q};
_.nx=function(M){return String(M).replace(/\-([a-z])/g,function(q,G){return G.toUpperCase()})};
_.Kx=function(M){return String(M).replace(/([A-Z])/g,"-$1").toLowerCase()};
Gpl=function(M){return M.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(q,G,K){return G+K.toUpperCase()})};var KwM=function(){this.names=new Map};
KwM.prototype.getName=function(M){var q=this.names.get(M);if(q)return q;var G;q=(G=M.description)!=null?G:$a();this.names.set(M,q);return q};var nqf=function(M){var q=Error.call(this,M?M.length+" errors occurred during unsubscription:\n"+M.map(function(G,K){return K+1+") "+G.toString()}).join("\n  "):"");
this.message=q.message;"stack"in q&&(this.stack=q.stack);this.errors=M;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.l(nqf,Error);var Yq=function(M){this.initialTeardown=M;this.closed=!1;this._teardowns=this._parentage=null};
_.N=Yq.prototype;
_.N.unsubscribe=function(){if(!this.closed){this.closed=!0;var M=this._parentage;if(Array.isArray(M))for(var q=_.k(M),G=q.next();!G.done;G=q.next())G.value.remove(this);else M==null||M.remove(this);q=this.initialTeardown;if(Lv(q))try{q()}catch(E){var K=E instanceof nqf?E.errors:[E]}var n=this._teardowns;if(n)for(this._teardowns=null,q=_.k(n),G=q.next();!G.done;G=q.next()){G=G.value;try{Lv(G)?G():G.unsubscribe()}catch(E){G=void 0,K=(G=K)!=null?G:[],E instanceof nqf?K=[].concat(_.Ui(K),_.Ui(E.errors)):
K.push(E)}}if(K)throw new nqf(K);}};
_.N.add=function(M){if(M&&M!==this)if(this.closed)Lv(M)?M():M.unsubscribe();else{if(M instanceof Yq){if(M.closed||M._hasParent(this))return;M._addParent(this)}var q;(this._teardowns=(q=this._teardowns)!=null?q:[]).push(M)}};
_.N._hasParent=function(M){var q=this._parentage;return q===M||Array.isArray(q)&&q.includes(M)};
_.N._addParent=function(M){var q=this._parentage;this._parentage=Array.isArray(q)?(q.push(M),q):q?[q,M]:M};
_.N._removeParent=function(M){var q=this._parentage;q===M?this._parentage=null:Array.isArray(q)&&C5$(q,M)};
_.N.remove=function(M){var q=this._teardowns;q&&C5$(q,M);M instanceof Yq&&M._removeParent(this)};
var Eq2=new Yq;Eq2.closed=!0;Yq.JSC$9073_EMPTY=Eq2;var oqF=function(){setTimeout.apply(null,_.Ui(_.rW.apply(0,arguments)))};var qe=function(M){Yq.call(this);this.JSC$9078_isStopped=!1;this.destination=M instanceof qe?M:new G$(!M||Lv(M)?{next:M!=null?M:void 0}:M);a2s(M)&&M.add(this)};
_.l(qe,Yq);qe.JSC$9073_EMPTY=Yq.JSC$9073_EMPTY;qe.create=function(M,q,G){return new Ke(M,q,G)};
_.N=qe.prototype;_.N.next=function(M){this.JSC$9078_isStopped||this._next(M)};
_.N.error=function(M){this.JSC$9078_isStopped||(this.JSC$9078_isStopped=!0,this._error(M))};
_.N.complete=function(){this.JSC$9078_isStopped||(this.JSC$9078_isStopped=!0,this._complete())};
_.N.unsubscribe=function(){this.closed||(this.JSC$9078_isStopped=!0,Yq.prototype.unsubscribe.call(this))};
_.N._next=function(M){this.destination.next(M)};
_.N._error=function(M){this.destination.error(M);this.unsubscribe()};
_.N._complete=function(){this.destination.complete();this.unsubscribe()};
var G$=function(M){this.partialObserver=M};
G$.prototype.next=function(M){var q=this.partialObserver;if(q.next)try{q.next(M)}catch(G){Ax(G)}};
G$.prototype.error=function(M){var q=this.partialObserver;if(q.error)try{q.error(M)}catch(G){Ax(G)}else Ax(M)};
G$.prototype.complete=function(){var M=this.partialObserver;if(M.complete)try{M.complete()}catch(q){Ax(q)}};
var Ke=function(M,q,G){qe.call(this);var K;Lv(M)||!M?K={next:M!=null?M:void 0,error:q!=null?q:void 0,complete:G!=null?G:void 0}:K=M;this.destination=new G$(K)};
_.l(Ke,qe);Ke.JSC$9073_EMPTY=qe.JSC$9073_EMPTY;Ke.create=qe.create;var tx=typeof Symbol==="function"&&Symbol.observable||"@@observable";var hx=function(M){M&&(this._subscribe=M)};
_.N=hx.prototype;_.N.lift=function(M){var q=new hx;q.source=this;q.operator=M;return q};
_.N.subscribe=function(M,q,G){M=M&&M instanceof qe||M&&Lv(M.next)&&Lv(M.error)&&Lv(M.complete)&&a2s(M)?M:new Ke(M,q,G);q=this.operator;G=this.source;M.add(q?q.call(M,G):G?this._subscribe(M):this._trySubscribe(M));return M};
_.N._trySubscribe=function(M){try{return this._subscribe(M)}catch(q){M.error(q)}};
_.N.forEach=function(M,q){var G=this;q=XDD(q);return new q(function(K,n){var E=G.subscribe(function(p){try{M(p)}catch(y){n(y),E==null||E.unsubscribe()}},n,K)})};
_.N._subscribe=function(M){var q;return(q=this.source)==null?void 0:q.subscribe(M)};
hx.prototype[tx]=function(){return this};
hx.prototype.pipe=function(){var M=_.rW.apply(0,arguments);return M.length?l2Y(M)(this):this};
hx.create=function(M){return new hx(M)};var NLP=function(){var M=Error.call(this,"object unsubscribed");this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.l(NLP,Error);var ag=function(){this.observers=[];this.hasError=this.JSC$9094_isStopped=this.closed=!1;this.thrownError=null};
_.l(ag,hx);_.N=ag.prototype;_.N.lift=function(M){var q=new ne(this,this);q.operator=M;return q};
_.N._throwIfClosed=function(){if(this.closed)throw new NLP;};
_.N.next=function(M){this._throwIfClosed();if(!this.JSC$9094_isStopped){var q=this.observers.slice();q=_.k(q);for(var G=q.next();!G.done;G=q.next())G.value.next(M)}};
_.N.error=function(M){this._throwIfClosed();if(!this.JSC$9094_isStopped){this.hasError=this.JSC$9094_isStopped=!0;this.thrownError=M;for(var q=this.observers;q.length;)q.shift().error(M)}};
_.N.complete=function(){this._throwIfClosed();if(!this.JSC$9094_isStopped){this.JSC$9094_isStopped=!0;for(var M=this.observers;M.length;)M.shift().complete()}};
_.N.unsubscribe=function(){this.JSC$9094_isStopped=this.closed=!0;this.observers=null};
_.N._trySubscribe=function(M){this._throwIfClosed();return hx.prototype._trySubscribe.call(this,M)};
_.N._subscribe=function(M){this._throwIfClosed();this._checkFinalizedStatuses(M);return this._innerSubscribe(M)};
_.N._innerSubscribe=function(M){var q=this,G=this.JSC$9094_isStopped,K=this.observers;return this.hasError||G?Yq.JSC$9073_EMPTY:(K.push(M),new Yq(function(){return C5$(q.observers,M)}))};
_.N._checkFinalizedStatuses=function(M){var q=this.thrownError,G=this.JSC$9094_isStopped;this.hasError?M.error(q):G&&M.complete()};
ag.create=function(M,q){return new ne(M,q)};
var ne=function(M,q){ag.call(this);this.destination=M;this.source=q};
_.l(ne,ag);ne.create=ag.create;ne.prototype.next=function(M){var q,G;(q=this.destination)==null||(G=q.next)==null||G.call(q,M)};
ne.prototype.error=function(M){var q,G;(q=this.destination)==null||(G=q.error)==null||G.call(q,M)};
ne.prototype.complete=function(){var M,q;(M=this.destination)==null||(q=M.complete)==null||q.call(M)};
ne.prototype._subscribe=function(M){var q,G;return(G=(q=this.source)==null?void 0:q.subscribe(M))!=null?G:Yq.JSC$9073_EMPTY};var Hc=function(M){ag.call(this);this._value=M};
_.l(Hc,ag);Hc.create=ag.create;Hc.prototype._subscribe=function(M){var q=ag.prototype._subscribe.call(this,M);!q.closed&&M.next(this._value);return q};
Hc.prototype.getValue=function(){var M=this.thrownError,q=this._value;if(this.hasError)throw M;this._throwIfClosed();return q};
Hc.prototype.next=function(M){ag.prototype.next.call(this,this._value=M)};
_.Yd.Object.defineProperties(Hc.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var jm=new hx(function(M){return M.complete()});var gqy=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var urY=function(M){return M&&typeof M.length==="number"&&typeof M!=="function"};var kpx={now:function(){return(kpx.delegate||Date).now()},
delegate:void 0};var N_=function(M,q,G){M=M===void 0?Infinity:M;q=q===void 0?Infinity:q;G=G===void 0?kpx:G;ag.call(this);this.bufferSize=M;this.windowTime=q;this.timestampProvider=G;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=q===Infinity;this.bufferSize=Math.max(1,M);this.windowTime=Math.max(1,q)};
_.l(N_,ag);N_.create=ag.create;N_.prototype.next=function(M){var q=this.buffer,G=this.infiniteTimeWindow,K=this.timestampProvider,n=this.windowTime;this.JSC$9094_isStopped||(q.push(M),!G&&q.push(K.now()+n));pDB(this);ag.prototype.next.call(this,M)};
N_.prototype._subscribe=function(M){this._throwIfClosed();pDB(this);for(var q=this._innerSubscribe(M),G=this.infiniteTimeWindow,K=this.buffer.slice(),n=0;n<K.length&&!M.closed;n+=G?1:2)M.next(K[n]);this._checkFinalizedStatuses(M);return q};
var pDB=function(M){var q=M.bufferSize,G=M.timestampProvider,K=M.buffer;M=M.infiniteTimeWindow;var n=(M?1:2)*q;q<Infinity&&n<K.length&&K.splice(0,K.length-n);if(!M){q=G.now();G=0;for(M=1;M<K.length&&K[M]<=q;M+=2)G=M;G&&K.splice(0,G+1)}};var Lwv=function(M,q){q=q===void 0?yx2:q;this.schedulerActionCtor=M;this.now=q};
Lwv.prototype.schedule=function(M,q,G){q=q===void 0?0:q;return(new this.schedulerActionCtor(this,M)).schedule(G,q)};
var yx2=kpx.now;var PCs=function(){var M=Error.call(this,"no elements in sequence");this.message=M.message;"stack"in M&&(this.stack=M.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.l(PCs,Error);var Jx=function(M,q,G,K,n){qe.call(this,M);this.onUnsubscribe=n;q&&(this._next=function(E){try{q(E)}catch(p){this.destination.error(p)}});
G&&(this._error=function(E){try{G(E)}catch(p){this.destination.error(p)}this.unsubscribe()});
K&&(this._complete=function(){try{K()}catch(E){this.destination.error(E)}this.unsubscribe()})};
_.l(Jx,qe);Jx.JSC$9073_EMPTY=qe.JSC$9073_EMPTY;Jx.create=qe.create;Jx.prototype.unsubscribe=function(){var M;this.closed||(M=this.onUnsubscribe)!=null&&M.call(this);qe.prototype.unsubscribe.call(this)};var n8=function(M,q){this.source=M;this.subjectFactory=q;this._subject=null;this._refCount=0;this._connection=null};
_.l(n8,hx);n8.create=hx.create;n8.prototype._subscribe=function(M){return YiB(this).subscribe(M)};
var YiB=function(M){var q=M._subject;if(!q||q.JSC$9094_isStopped)M._subject=M.subjectFactory();return M._subject};
n8.prototype._teardown=function(){this._refCount=0;var M=this._connection;this._subject=this._connection=null;M==null||M.unsubscribe()};
n8.prototype.connect=function(){var M=this,q=this._connection;if(!q){q=this._connection=new Yq;var G=YiB(this);q.add(this.source.subscribe(new Jx(G,void 0,function(K){M._teardown();G.error(K)},function(){M._teardown();
G.complete()},function(){return M._teardown()})));
q.closed&&(this._connection=null,q=Yq.JSC$9073_EMPTY)}return q};var Vmj=Array.isArray;var f2Y=Array.isArray,Ww8=Object,Fww=Ww8.getPrototypeOf,HvF=Ww8.prototype,e7F=Ww8.keys;var zp=function(M,q,G){qe.call(this,M);this._next=q;this.shouldComplete=G};
_.l(zp,qe);zp.JSC$9073_EMPTY=qe.JSC$9073_EMPTY;zp.create=qe.create;zp.prototype._complete=function(){this.shouldComplete()?qe.prototype._complete.call(this):this.unsubscribe()};var Nqy=["addListener","removeListener"],EPy=["addEventListener","removeEventListener"],pc$=["on","off"];var EB=function(){Yq.call(this)};
_.l(EB,Yq);EB.JSC$9073_EMPTY=Yq.JSC$9073_EMPTY;EB.prototype.schedule=function(){return this};var AxJ=function(M,q){return setInterval.apply(null,[M,q].concat(_.Ui(_.rW.apply(2,arguments))))};var Ne=function(M,q){Yq.call(this);this.scheduler=M;this.work=q;this.pending=!1};
_.l(Ne,EB);Ne.JSC$9073_EMPTY=EB.JSC$9073_EMPTY;Ne.prototype.schedule=function(M,q){q=q===void 0?0:q;if(this.closed)return this;this.state=M;M=this.id;var G=this.scheduler;M!=null&&(this.id=dXf(this,M,q));this.pending=!0;this.delay=q;this.id=this.id||this.requestAsyncId(G,this.id,q);return this};
Ne.prototype.requestAsyncId=function(M,q,G){G=G===void 0?0:G;return AxJ(M.flush.bind(M,this),G)};
var dXf=function(M,q,G){G=G===void 0?0:G;if(G!=null&&M.delay===G&&M.pending===!1)return q;clearInterval(q)};
Ne.prototype.execute=function(M,q){if(this.closed)return Error("ha");this.pending=!1;if(M=this._execute(M,q))return M;this.pending===!1&&this.id!=null&&(this.id=dXf(this,this.id,null))};
Ne.prototype._execute=function(M){var q=!1;try{this.work(M)}catch(K){q=!0;var G=!!K&&K||Error(K)}if(q)return this.unsubscribe(),G};
Ne.prototype.unsubscribe=function(){if(!this.closed){var M=this.id,q=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;C5$(q,this);M!=null&&(this.id=dXf(this,M,null));this.delay=null;EB.prototype.unsubscribe.call(this)}};var vqP=function(M,q){q=q===void 0?yx2:q;Lwv.call(this,M,q);this.actions=[];this.active=!1;this.scheduled=void 0};
_.l(vqP,Lwv);vqP.prototype.flush=function(M){var q=this.actions;if(this.active)q.push(M);else{var G;this.active=!0;do if(G=M.execute(M.state,M.delay))break;while(M=q.shift());this.active=!1;if(G){for(;M=q.shift();)M.unsubscribe();throw G;}}};var ZJ=new hx(WD);var yge=Array.isArray;var kE=function(M,q){Ne.call(this,M,q);this.scheduler=M;this.work=q};
_.l(kE,Ne);kE.JSC$9073_EMPTY=Ne.JSC$9073_EMPTY;kE.prototype.schedule=function(M,q){q=q===void 0?0:q;if(q>0)return Ne.prototype.schedule.call(this,M,q);this.delay=q;this.state=M;this.scheduler.flush(this);return this};
kE.prototype.execute=function(M,q){return q>0||this.closed?Ne.prototype.execute.call(this,M,q):this._execute(M,q)};
kE.prototype.requestAsyncId=function(M,q,G){G=G===void 0?0:G;return G!=null&&G>0||G==null&&this.delay>0?Ne.prototype.requestAsyncId.call(this,M,q,G):M.flush(this)};var h7$=function(){vqP.apply(this,arguments)};
_.l(h7$,vqP);var rxs=new h7$(kE);var tmf=function(){this.performanceMonitor=new oC$;this.queue=new lCJ;this.internalSymbol=Symbol();this.debugNames=new KwM};
tmf.prototype.getOnBackgrounded=function(){return ZJ};
_.Yd.Object.defineProperties(tmf.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var pe=function(M,q){q=Error.call(this,q?M+": "+q:String(M));this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=M;this.__proto__=pe.prototype;this.name=String(M)};
_.l(pe,Error);var bC=function(M){pe.call(this,1E3,'sfr:"'+M+'"');this.measurementStrategyFailureReason=M;this.__proto__=bC.prototype};
_.l(bC,pe);var Uw=function(){pe.call(this,1003);this.__proto__=Uw.prototype};
_.l(Uw,pe);var yF=function(){pe.call(this,1009);this.__proto__=yF.prototype};
_.l(yF,pe);var OvB=function(){pe.call(this,1011);this.__proto__=OvB.prototype};
_.l(OvB,pe);var wDx=function(){pe.call(this,1007);this.__proto__=Uw.prototype};
_.l(wDx,pe);var uC=function(M){pe.call(this,1004,String(M));this.inputObservableIndex=M;this.__proto__=uC.prototype};
_.l(uC,pe);var VAy=function(M){pe.call(this,1010,M);this.__proto__=Rky.prototype};
_.l(VAy,pe);var Rky=function(M){pe.call(this,1005,M);this.__proto__=Rky.prototype};
_.l(Rky,pe);var C59=function(M){var q=_.rW.apply(1,arguments),G=this;this.orderedFactories=[];this.orderedFactories.push(M);q.forEach(function(K){G.orderedFactories.push(K)})};
C59.prototype.isSupported=function(M){return this.orderedFactories.some(function(q){return q.isSupported(M)})};
C59.prototype.makeBeacon=function(M,q){for(var G=0;G<this.orderedFactories.length;G++)if(this.orderedFactories[G].isSupported(q))return this.orderedFactories[G].makeBeacon(M,q);throw new yF;};var JeF=Symbol("ia"),a2$=Symbol("ja"),Fr=function(M,q){this.value=M;this.timeline=q},fv=function(M,q){if(q.timeline!==M.timeline)throw new wDx;
return M.value-q.value};
_.N=Fr.prototype;_.N.equals=function(M){return fv(this,M)===0};
_.N.maximum=function(M){if(M.timeline!==this.timeline)throw new wDx;return this.value>=M.value?this:M};
_.N.round=function(){return new Fr(Math.round(this.value),this.timeline)};
_.N.add=function(M){return new Fr(this.value+M,this.timeline)};
_.N.toString=function(){return String(this.value)};var Le=function(M,q){this.context=M;this.JSC$9200_pinger=q};
Le.prototype.isSupported=function(M){return this.JSC$9200_pinger.isSupported(M)};
Le.prototype.makeBeacon=function(M,q){if(!this.isSupported(q))throw new yF;return new YE(this.context,this.JSC$9200_pinger,q!=null?q:void 0,M)};
var YE=function(M,q,G,K){var n=this;this.JSC$9206_pinger=q;this.properties=G;this.url=K;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var E;this.method=(E=G==null?void 0:G.beaconMethod)!=null?E:"GET";this.backgroundedSubscription=M.getOnBackgrounded().subscribe(function(){n.sendNow()})};
YE.prototype.deactivate=function(){this.internalIsPending=!1};
YE.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$9206_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var M,q;this.JSC$9206_pinger.pingWithHeadersAndBody((M=this.properties)!=null?M:{},this.customHeaders,(q=this.body)!=null?q:"",this.url)}else this.JSC$9206_pinger.ping(this.url);this.internalIsPending=!1}catch(G){}else this.internalIsPending=!1};
YE.prototype.setHeader=function(M,q){this.customHeaders.set(M,q)};
_.Yd.Object.defineProperties(YE.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var l2B=function(){for(var M=_.k(_.rW.apply(0,arguments)),q=M.next();!q.done;q=M.next())if(q=q.value,q.available()){this.timeProvider=q;return}this.timeProvider=new oq8};
_.N=l2B.prototype;_.N.available=function(){return this.timeProvider.available()};
_.N.now=function(){return this.timeProvider.now()};
_.N.setTimeout=function(M,q){return this.timeProvider.setTimeout(M,q)};
_.N.clearTimeout=function(M){this.timeProvider.clearTimeout(M)};
_.N.interval=function(M,q){var G=this.intervalObservable(M).subscribe(q);return function(){return void G.unsubscribe()}};
_.N.intervalObservable=function(M){return this.timeProvider.intervalObservable(M)};
_.Yd.Object.defineProperties(l2B.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var oq8=function(){this.timeline=Symbol()};
_.N=oq8.prototype;_.N.available=function(){return!1};
_.N.now=function(){return new Fr(0,this.timeline)};
_.N.setTimeout=function(){return 0};
_.N.clearTimeout=function(){};
_.N.interval=function(){return function(){}};
_.N.intervalObservable=function(){return ZJ};var Wp=function(M,q){this.intrinsicFunctionNamespace=M;this.performanceMonitor=q};
_.N=Wp.prototype;_.N.setTimeout=function(M,q){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,M),q)};
_.N.clearTimeout=function(M){this.intrinsicFunctionNamespace.clearTimeout(M)};
_.N.interval=function(M,q){var G=this.intervalObservable(M).subscribe(q);return function(){return void G.unsubscribe()}};
_.N.intervalObservable=function(M){var q=this;return new hx(function(G){var K=0,n=q.intrinsicFunctionNamespace.setInterval(function(){G.next(K++)},M);
return function(){q.intrinsicFunctionNamespace.clearInterval(n)}})};
_.N.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var XDx=function(M,q){Wp.call(this,M,q);this.timeline=a2$};
_.l(XDx,Wp);XDx.prototype.now=function(){return new Fr(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
XDx.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&Wp.prototype.available.call(this)};var P5S=function(M,q){Wp.call(this,M,q);this.timeline=JeF};
_.l(P5S,Wp);P5S.prototype.now=function(){return new Fr(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
P5S.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&Wp.prototype.available.call(this)};var cxf=function(M){this.context=M;if(iv8===void 0)a:{var q,G,K=(q=M.global)==null?void 0:(G=q.document)==null?void 0:G.createElement("meta");if(K)try{K.httpEquiv="origin-trial";K.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";M.global.document.head.append(K);iv8=K;break a}catch(n){}iv8=void 0}},
iv8;
cxf.prototype.isSupported=function(M){return wcy(this.context)!==void 0&&!(M==null||!M.endOfSession)&&!Ac(this.context)&&!(M==null?0:M.attributionEnabled)&&!(M==null?0:M.customHeaders)&&!(M==null?0:M.customBody)};
cxf.prototype.makeBeacon=function(M,q){if(!this.isSupported(q))throw new yF;return new dB(this.context,M,q)};
var dB=function(M,q,G){this.context=M;this.properties=G;this.JSC$9233_urlWithoutToken=q;var K;this.beaconMethod=(K=G==null?void 0:G.beaconMethod)!=null?K:"GET";M=wcy(this.context);if(M===void 0)throw Error();this.fetchLater=M;gqv(this,BLv(this))},gqv=function(M,q){M.beaconResult&&M.beaconResult.activated||(M.beaconAbort=new AbortController,M.beaconResult=M.fetchLater(q,{method:M.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:M.beaconAbort.signal,activateAfter:96E4}))},BLv=function(M){M=M.JSC$9233_urlWithoutToken;
return(M.slice(-1)[0]==="&"?M:M+"&")+"flapi=1"};
dB.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
dB.prototype.sendNow=function(){};
dB.prototype.setHeader=function(){};
_.Yd.Object.defineProperties(dB.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9233_urlWithoutToken},
set:function(M){this.JSC$9233_urlWithoutToken=M;M=BLv(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);gqv(this,M)}},
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 QSS=function(M){this.context=M};
QSS.prototype.isSupported=function(){return!Ac(this.context)&&!!this.context.global.fetch};
QSS.prototype.ping=function(){var M=this;return VR.apply(null,_.Ui(_.rW.apply(0,arguments).map(function(q){return wL(M.context.global.fetch(q,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(b5(function(G){return G.status===200}))}))).pipe(i8w(function(q){return q}),gPH())};
QSS.prototype.pingWithHeadersAndBody=function(M,q,G){for(var K=_.rW.apply(3,arguments),n=this,E=new Headers,p=_.k(q.entries()),y=p.next();!y.done;y=p.next()){var Y=_.k(y.value);y=Y.next().value;Y=Y.next().value;E.set(y,Y)}var A,v=(A=M.keepAlive)!=null?A:!1;VR.apply(null,_.Ui(K.map(function(h){return wL(n.context.global.fetch(h,Object.assign({},{method:String(M.beaconMethod),cache:"no-cache"},v?{keepalive:!0}:{},{mode:"no-cors",headers:E,body:G}))).pipe(b5(function(t){return t.status===200}))}))).pipe(i8w(function(h){return h}),
gPH())};var I2v,Uk$,DX$;_.vp=function(){};
_.ZF=function(M){return M};
I2v=function(M){var q=q||0;return function(){return M.apply(this,Array.prototype.slice.call(arguments,0,q))}};
_.hc=function(M){var q=!1,G;return function(){q||(G=M(),q=!0);return G}};
_.tc=function(M,q){var G=0;return function(K){_.Kj.clearTimeout(G);var n=arguments;G=_.Kj.setTimeout(function(){M.apply(void 0,n)},q)}};
Uk$=function(M,q){var G=0,K=!1,n=[],E=function(){G=0;K&&(K=!1,p())},p=function(){G=_.Kj.setTimeout(E,q);
var y=n;n=[];M.apply(void 0,y)};
return function(y){n=arguments;G?K=!0:p()}};
DX$=function(M,q){var G=0,K=function(){G=0};
return function(n){G||(G=_.Kj.setTimeout(K,q),M.apply(void 0,arguments))}};var Jxl=function(){return w$&&Cj?Cj.mobile:!urB()&&(lH("iPod")||lH("iPhone")||lH("Android")||lH("IEMobile"))},urB=function(){return w$&&Cj?!Cj.mobile&&(lH("iPad")||lH("Android")||lH("Silk")):lH("iPad")||lH("Android")&&!lH("Mobile")||lH("Silk")};var OB=function(M,q,G,K,n){this.allowedElements=M;this.elementPolicies=q;this.allowedGlobalAttributes=G;this.globalAttributePolicies=K;this.globallyAllowedAttributePrefixes=n},Zv2=function(M,q,G){G=M.elementPolicies.get(G);
return(G==null?0:G.has(q))?G.get(q):M.allowedGlobalAttributes.has(q)?{policyAction:1}:(G=M.globalAttributePolicies.get(q))?G:M.globallyAllowedAttributePrefixes&&[].concat(_.Ui(M.globallyAllowedAttributePrefixes)).some(function(K){return q.indexOf(K)===0})?{policyAction:1}:{policyAction:0}};var bvB="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(" "),
UXv=[["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}]])]],xXI="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(" "),
z7J=[["dir",{policyAction:3,conditions:ct(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:ct(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:ct(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:ct(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],mXl=new OB(new Set(bvB),new Map(UXv),new Set(xXI),new Map(z7J)),Si2=new OB(new Set(bvB.concat(["BUTTON",
"INPUT"])),new Map(UXv),new Set(ct(function(){return xXI.concat(["class","id","name"])})),new Map(ct(function(){return z7J.concat([["style",
{policyAction:1}]])})));var TLM,rx$,VmP;TLM=function(M,q,G,K,n){this.JSC$9290_sanitizerTable=M;this.styleElementSanitizer=q;this.styleAttributeSanitizer=G;this.JSC$9290_resourceUrlPolicy=K;this.JSC$9290_navigationUrlPolicy=n;this.changes=[]};
_.jSv=function(M,q){var G=document.implementation.createHTMLDocument("");M=rx$(M,q,G);G=G.body;G.appendChild(M);G=(new XMLSerializer).serializeToString(G);G=G.slice(G.indexOf(">")+1,G.lastIndexOf("</"));return Ht(G)};
rx$=function(M,q,G){q=x_y(q,G);q=document.createTreeWalker(q,5,function(y){if(y.nodeType===3)y=1;else if(m_4(y))if(y=zqe(y),y===null)y=2;else{var Y=M.JSC$9290_sanitizerTable;y=y!=="FORM"&&(Y.allowedElements.has(y)||Y.elementPolicies.has(y))?1:2}else y=2;return y});
for(var K=q.nextNode(),n=G.createDocumentFragment(),E=n;K!==null;){var p=void 0;if(K.nodeType===3)M.styleElementSanitizer&&E.nodeName==="STYLE"?(K=M.styleElementSanitizer(K.data),p=M.createTextNode(K)):p=M.createTextNode(K.data);else if(m_4(K))p=VmP(M,K,G);else throw Error("Z");E.appendChild(p);if(K=q.firstChild())E=p;else for(;!(K=q.nextSibling())&&(K=q.parentNode());)E=E.parentNode}return n};
TLM.prototype.createTextNode=function(M){return document.createTextNode(M)};
VmP=function(M,q,G){var K,n=zqe(q);G=G.createElement(n);q=q.attributes;for(var E=_.k(q),p=E.next();!p.done;p=E.next()){var y=p.value;p=y.name;y=y.value;var Y=Zv2(M.JSC$9290_sanitizerTable,p,n);a:{if(K=Y.conditions){K=_.k(K);for(var A=K.next();!A.done;A=K.next()){var v=_.k(A.value);A=v.next().value;v=v.next().value;var h=void 0;if((A=(h=q.getNamedItem(A))==null?void 0:h.value)&&!v.has(A)){K=!1;break a}}}K=!0}if(K)switch(Y.policyAction){case 1:tg(G,p,y);break;case 2:throw Error();case 3:tg(G,p,y.toLowerCase());
break;case 4:M.styleAttributeSanitizer?(y=M.styleAttributeSanitizer(y),tg(G,p,y)):tg(G,p,y);break;case 5:M.JSC$9290_resourceUrlPolicy?(Y={type:2,attributeName:p,elementName:n},y=U_H(y),(y=M.JSC$9290_resourceUrlPolicy(y,Y))&&tg(G,p,y.toString())):tg(G,p,y);break;case 6:if(M.JSC$9290_resourceUrlPolicy){Y={type:2,attributeName:p,elementName:n};K=[];y=_.k(y.split(","));for(A=y.next();!A.done;A=y.next())v=_.k(A.value.trim().split(/\s+/,2)),A=v.next().value,v=v.next().value,K.push({url:A,descriptor:v});
y={parts:[]};K=_.k(K);for(A=K.next();!A.done;A=K.next())A=A.value,v=U_H(A.url),(v=M.JSC$9290_resourceUrlPolicy(v,Y))&&y.parts.push({url:v.toString(),descriptor:A.descriptor});tg(G,p,Swi(y))}else tg(G,p,y);break;case 7:Y=y;if(M.JSC$9290_navigationUrlPolicy){Y={type:2,attributeName:p,elementName:n};y=U_H(y);y=M.JSC$9290_navigationUrlPolicy(y,Y);if(y===null)break;Y=y.toString()}y=Y;Y=_.pDY(y);Y=Y!==void 0&&RGJ.indexOf(Y.toLowerCase())!==-1?y:"about:invalid#zClosurez";tg(G,p,Y)}}return G};
_.R7J=ct(function(){return new TLM(mXl)});
_.f2B=ct(function(){return new TLM(Si2)});var FwJ=function(){this.calledBuild=!1;this.JSC$9302_sanitizerTable=mXl},Hv8=function(){FwJ.apply(this,arguments)};
_.l(Hv8,FwJ);Hv8.prototype.build=function(){if(this.calledBuild)throw Error("la");this.calledBuild=!0;return new TLM(this.JSC$9302_sanitizerTable,void 0,void 0,this.JSC$9302_resourceUrlPolicy,this.JSC$9302_navigationUrlPolicy)};var e7l=/[^#]*/;var IJw={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"},$X8=_.hc(function(){return uQi()}),
MXp=function(){var M=sgM("IFRAME"),q={};
_.Gc($X8(),function(G){M.sandbox&&M.sandbox.supports&&M.sandbox.supports(G)&&(q[G]=!0)});
return q},sgM=function(M,q){q=q===void 0?document:q;
return q.createElement(String(M).toLowerCase())};var wB;_.wr=function(M,q,G){return Math.min(Math.max(M,q),G)};
wB=function(M,q,G){return M+G*(q-M)};_.mK=function(M,q){this.x=M!==void 0?M:0;this.y=q!==void 0?q:0};
_.N=_.mK.prototype;_.N.clone=function(){return new _.mK(this.x,this.y)};
_.N.equals=function(M){return M instanceof _.mK&&(this==M?!0:this&&M?this.x==M.x&&this.y==M.y:!1)};
_.N.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.N.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.N.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.N.translate=function(M,q){M instanceof _.mK?(this.x+=M.x,this.y+=M.y):(this.x+=Number(M),typeof q==="number"&&(this.y+=q));return this};
_.N.scale=function(M,q){this.x*=M;this.y*=typeof q==="number"?q:M;return this};_.cc=function(M,q){this.width=M;this.height=q};
_.N=_.cc.prototype;_.N.clone=function(){return new _.cc(this.width,this.height)};
_.N.area=function(){return this.width*this.height};
_.N.aspectRatio=function(){return this.width/this.height};
_.N.isEmpty=function(){return!this.area()};
_.N.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.N.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.N.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.N.scale=function(M,q){this.width*=M;this.height*=typeof q==="number"?q:M;return this};var qwP;_.xP={};qwP="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.xP.add=function(M,q,G){if(M!==null&&q in M)throw Error("na`"+q);M[q]=G};
_.xP.clear=function(M){for(var q in M)delete M[q]};
_.xP.clone=function(M){var q={},G;for(G in M)q[G]=M[G];return q};
_.xP.contains=function(M,q){return Rqs(M,q)};
_.xP.containsKey=function(M,q){return M!==null&&q in M};
_.xP.containsValue=Rqs;_.xP.create=H8$;_.xP.createImmutableView=function(M){var q=M;Object.isFrozen&&!Object.isFrozen(M)&&(q=Object.create(M),Object.freeze(q));return q};
_.xP.createSet=eqF;_.xP.equals=function(M,q){for(var G in M)if(!(G in q)||M[G]!==q[G])return!1;for(var K in q)if(!(K in M))return!1;return!0};
_.xP.every=function(M,q,G){for(var K in M)if(!q.call(G,M[K],K,M))return!1;return!0};
_.xP.extend=function(M,q){for(var G,K,n=1;n<arguments.length;n++){K=arguments[n];for(G in K)M[G]=K[G];for(var E=0;E<qwP.length;E++)G=qwP[E],Object.prototype.hasOwnProperty.call(K,G)&&(M[G]=K[G])}};
_.xP.filter=function(M,q,G){var K={},n;for(n in M)q.call(G,M[n],n,M)&&(K[n]=M[n]);return K};
_.xP.findKey=fJw;_.xP.findValue=function(M,q,G){return(q=fJw(M,q,G))&&M[q]};
_.xP.forEach=function(M,q,G){for(var K in M)q.call(G,M[K],K,M)};
_.xP.get=function(M,q,G){return M!==null&&q in M?M[q]:G};
_.xP.getAllPropertyNames=function(M,q,G){if(!M)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return VXs(M);for(var K={};M&&(M!==Object.prototype||q)&&(M!==Function.prototype||G);){for(var n=Object.getOwnPropertyNames(M),E=0;E<n.length;E++)K[n[E]]=!0;M=Object.getPrototypeOf(M)}return VXs(K)};
_.xP.getAnyKey=function(M){for(var q in M)return q};
_.xP.getAnyValue=function(M){for(var q in M)return M[q]};
_.xP.getCount=function(M){var q=0,G;for(G in M)q++;return q};
_.xP.getKeys=VXs;_.xP.getSuperClass=function(M){return(M=Object.getPrototypeOf(M.prototype))&&M.constructor};
_.xP.getValueByKeys=function(M,q){var G=_.TF(q),K=G?q:arguments;for(G=G?0:1;G<K.length;G++){if(M==null)return;M=M[K[G]]}return M};
_.xP.getValues=function(M){var q=[],G=0,K;for(K in M)q[G++]=M[K];return q};
_.xP.isEmpty=function(M){for(var q in M)return!1;return!0};
_.xP.isImmutableView=function(M){return!!Object.isFrozen&&Object.isFrozen(M)};
_.xP.map=function(M,q,G){var K={},n;for(n in M)K[n]=q.call(G,M[n],n,M);return K};
_.xP.remove=function(M,q){var G;(G=q in M)&&delete M[q];return G};
_.xP.set=function(M,q,G){M[q]=G};
_.xP.setIfUndefined=function(M,q,G){return q in M?M[q]:M[q]=G};
_.xP.setWithReturnValueIfNotSet=function(M,q,G){if(q in M)return M[q];G=G();return M[q]=G};
_.xP.some=function(M,q,G){for(var K in M)if(q.call(G,M[K],K,M))return!0;return!1};
_.xP.transpose=function(M){var q={},G;for(G in M)q[M[G]]=G;return q};
_.xP.unsafeClone=FKy;var Rw=function(M,q){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=M===rCy&&q||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=G9M};
Rw.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var KKP=function(M){return M instanceof Rw&&M.constructor===Rw&&M.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===G9M?M.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},G9M={},rCy={};
new Rw(rCy,"");var Ig,BX,a5,nPJ,k9d,NqI,SX,ygM,Ywx,LKJ,Pp,WKM,wcI,O8f,tXJ,CCf,aJM,oPB,lJ$,pbu,Xcf,i8J,cg2,PC$,Ce;Ig=function(M){return M?new Ce(_.T9(M)):WyB||(WyB=new Ce)};
_.jc=function(M,q){return typeof q==="string"?M.getElementById(q):q};
BX=function(M,q){return(q||document).getElementsByTagName(String(M))};
_.EPI=function(M){return nPJ("yt-formatted-string","paper-input-input",M)};
a5=function(M,q,G,K){M=K||M;return(q=q&&q!="*"?String(q).toUpperCase():"")||G?M.querySelectorAll(q+(G?"."+G:"")):M.getElementsByTagName("*")};
nPJ=function(M,q,G){var K=document,n=M&&M!="*"?String(M).toUpperCase():"";return n||q?(G||K).querySelector(n+(q?"."+q:"")):a5(K,M,q,G)[0]||null};
k9d=function(M,q){_.xP.forEach(q,function(G,K){K=="style"?M.style.cssText=G:K=="class"?M.className=G:K=="for"?M.htmlFor=G:NqI.hasOwnProperty(K)?M.setAttribute(NqI[K],G):_.Ee(K,"aria-")||_.Ee(K,"data-")?M.setAttribute(K,G):M[K]=G})};
NqI={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"};_.Bc=function(M){M=(M||window).document;M=M.compatMode=="CSS1Compat"?M.documentElement:M.body;return new _.cc(M.clientWidth,M.clientHeight)};
_.pc9=function(M){var q=_.o5(M);M=M.defaultView;return new _.mK((M==null?void 0:M.pageXOffset)||q.scrollLeft,(M==null?void 0:M.pageYOffset)||q.scrollTop)};
_.o5=function(M){return M.scrollingElement?M.scrollingElement:_.Hh||M.compatMode!="CSS1Compat"?M.body||M.documentElement:M.documentElement};
SX=function(M){return M?M.defaultView:window};
_.lo=function(M,q,G){return ygM(document,arguments)};
ygM=function(M,q){var G=q[1],K=LKJ(M,String(q[0]));G&&(typeof G==="string"?K.className=G:Array.isArray(G)?K.className=G.join(" "):k9d(K,G));q.length>2&&Ywx(M,K,q,2);return K};
Ywx=function(M,q,G,K){function n(y){y&&q.appendChild(typeof y==="string"?M.createTextNode(y):y)}
for(;K<G.length;K++){var E=G[K];if(!_.TF(E)||_.VY(E)&&E.nodeType>0)n(E);else{a:{if(E&&typeof E.length=="number"){if(_.VY(E)){var p=typeof E.item=="function"||typeof E.item=="string";break a}if(typeof E==="function"){p=typeof E.item=="function";break a}}p=!1}_.Gc(p?_.Sw(E):E,n)}}};
_.iI=function(M){return LKJ(document,M)};
LKJ=function(M,q){q=String(q);M.contentType==="application/xhtml+xml"&&(q=q.toLowerCase());return M.createElement(q)};
_.XZ=function(){return document.createTextNode("\n")};
Pp=function(M){if(M.nodeType!=1)return!1;switch(M.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};
WKM=function(M,q){Ywx(_.T9(M),M,arguments,1)};
_.io=function(M){for(var q;q=M.firstChild;)M.removeChild(q)};
_.cp=function(M,q){q.parentNode&&q.parentNode.insertBefore(M,q)};
_.gB=function(M,q){q.parentNode&&q.parentNode.insertBefore(M,q.nextSibling)};
_.cX=function(M){return M&&M.parentNode?M.parentNode.removeChild(M):null};
_.AgI=function(M,q){var G=q.parentNode;G&&G.replaceChild(M,q)};
_.d_f=function(M){var q,G=M.parentNode;if(G&&G.nodeType!=11)if(M.removeNode)M.removeNode(!1);else{for(;q=M.firstChild;)G.insertBefore(q,M);_.cX(M)}};
_.Bp=function(M){return M.children!=void 0?M.children:Array.prototype.filter.call(M.childNodes,function(q){return q.nodeType==1})};
_.hq2=function(M){return M.nextElementSibling!==void 0?M.nextElementSibling:_.vPB(M.nextSibling,!0)};
_.vPB=function(M,q){for(;M&&M.nodeType!=1;)M=q?M.nextSibling:M.previousSibling;return M};
_.kc=function(M){return _.VY(M)&&M.nodeType==1};
_.HX=function(M,q){if(!M||!q)return!1;if(M.contains&&q.nodeType==1)return M==q||M.contains(q);if(typeof M.compareDocumentPosition!="undefined")return M==q||!!(M.compareDocumentPosition(q)&16);for(;q&&M!=q;)q=q.parentNode;return q==M};
wcI=function(M,q){if(M==q)return 0;if(M.compareDocumentPosition)return M.compareDocumentPosition(q)&2?1:-1;if("sourceIndex"in M||M.parentNode&&"sourceIndex"in M.parentNode){var G=M.nodeType==1,K=q.nodeType==1;if(G&&K)return M.sourceIndex-q.sourceIndex;var n=M.parentNode,E=q.parentNode;return n==E?tXJ(M,q):!G&&_.HX(n,q)?-1*O8f(M,q):!K&&_.HX(E,M)?O8f(q,M):(G?M.sourceIndex:n.sourceIndex)-(K?q.sourceIndex:E.sourceIndex)}K=_.T9(M);G=K.createRange();G.selectNode(M);G.collapse(!0);M=K.createRange();M.selectNode(q);
M.collapse(!0);return G.compareBoundaryPoints(_.Kj.Range.START_TO_END,M)};
O8f=function(M,q){var G=M.parentNode;if(G==q)return-1;for(;q.parentNode!=G;)q=q.parentNode;return tXJ(q,M)};
tXJ=function(M,q){for(;q=q.previousSibling;)if(q==M)return-1;return 1};
CCf=function(M){var q,G=arguments.length;if(!G)return null;if(G==1)return arguments[0];var K=[],n=Infinity;for(q=0;q<G;q++){for(var E=[],p=arguments[q];p;)E.unshift(p),p=p.parentNode;K.push(E);n=Math.min(n,E.length)}E=null;for(q=0;q<n;q++){p=K[0][q];for(var y=1;y<G;y++)if(p!=K[y][q])return E;E=p}return E};
_.T9=function(M){return M.nodeType==9?M:M.ownerDocument||M.document};
aJM=function(M){return M.contentDocument||M.contentWindow.document};
_.QF=function(M,q){if("textContent"in M)M.textContent=q;else if(M.nodeType==3)M.data=String(q);else if(M.firstChild&&M.firstChild.nodeType==3){for(;M.lastChild!=M.firstChild;)M.removeChild(M.lastChild);M.firstChild.data=String(q)}else _.io(M),M.appendChild(_.T9(M).createTextNode(String(q)))};
oPB={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};lJ$={IMG:" ",BR:"\n"};pbu=function(M){var q;M.tagName=="A"&&M.hasAttribute("href")||M.tagName=="INPUT"||M.tagName=="TEXTAREA"||M.tagName=="SELECT"||M.tagName=="BUTTON"?q=!M.disabled&&(!M.hasAttribute("tabindex")||Xcf(M)):q=M.hasAttribute("tabindex")&&Xcf(M);return q};
Xcf=function(M){M=M.tabIndex;return typeof M==="number"&&M>=0&&M<32768};
i8J=function(M){var q=[];PC$(M,q,!0);M=q.join("");M=M.replace(/ \xAD /g," ").replace(/\xAD/g,"");M=M.replace(/\u200B/g,"");M=M.replace(/ +/g," ");M!=" "&&(M=M.replace(/^\s*/,""));return M};
cg2=function(M){var q=[];PC$(M,q,!1);return q.join("")};
PC$=function(M,q,G){if(!(M.nodeName in oPB))if(M.nodeType==3)G?q.push(String(M.nodeValue).replace(/(\r\n|\r|\n)/g,"")):q.push(M.nodeValue);else if(M.nodeName in lJ$)q.push(lJ$[M.nodeName]);else for(M=M.firstChild;M;)PC$(M,q,G),M=M.nextSibling};
_.gPS=function(M,q,G){if(!q&&!G)return null;var K=q?String(q).toUpperCase():null;return _.jX(M,function(n){return(!K||n.nodeName==K)&&(!G||typeof n.className==="string"&&_.zF(n.className.split(/\s+/),G))},!0)};
_.jX=function(M,q,G){M&&!G&&(M=M.parentNode);for(G=0;M;){if(q(M))return M;M=M.parentNode;G++}return null};
Ce=function(M){this.JSC$9330_document_=M||_.Kj.document||document};
_.N=Ce.prototype;_.N.getElement=function(M){return _.jc(this.JSC$9330_document_,M)};
_.N.$=Ce.prototype.getElement;_.N.getElementsByTagName=function(M,q){return(q||this.JSC$9330_document_).getElementsByTagName(String(M))};
_.N.getElementsByTagNameAndClass=function(M,q,G){return a5(this.JSC$9330_document_,M,q,G)};
_.N.$$=Ce.prototype.getElementsByTagNameAndClass;_.N.setProperties=k9d;_.N.JSC$9332_createDom=function(M,q,G){return ygM(this.JSC$9330_document_,arguments)};
_.N.createElement=function(M){return LKJ(this.JSC$9330_document_,M)};
_.N.createTextNode=function(M){return this.JSC$9330_document_.createTextNode(String(M))};
_.N.getWindow=function(){return this.JSC$9330_document_.defaultView};
var Q1=function(M){return _.pc9(M.JSC$9330_document_)};
_.N=Ce.prototype;_.N.appendChild=function(M,q){M.appendChild(q)};
_.N.append=WKM;_.N.canHaveChildren=Pp;_.N.removeNode=_.cX;_.N.getChildren=_.Bp;_.N.contains=_.HX;_.N.isFocusable=pbu;_.N=C8.prototype;_.N.getWidth=function(){return this.right-this.left};
_.N.getHeight=function(){return this.bottom-this.top};
_.N.clone=function(){return new C8(this.top,this.right,this.bottom,this.left)};
_.N.contains=function(M){return this&&M?M instanceof C8?M.left>=this.left&&M.right<=this.right&&M.top>=this.top&&M.bottom<=this.bottom:M.x>=this.left&&M.x<=this.right&&M.y>=this.top&&M.y<=this.bottom:!1};
_.N.expand=function(M,q,G,K){_.VY(M)?(this.top-=M.top,this.right+=M.right,this.bottom+=M.bottom,this.left-=M.left):(this.top-=M,this.right+=Number(q),this.bottom+=Number(G),this.left-=Number(K));return this};
_.N.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};
_.N.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};
_.N.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};
_.N.translate=function(M,q){M instanceof _.mK?(this.left+=M.x,this.right+=M.x,this.top+=M.y,this.bottom+=M.y):(this.left+=M,this.right+=M,typeof q==="number"&&(this.top+=q,this.bottom+=q));return this};
_.N.scale=function(M,q){q=typeof q==="number"?q:M;this.left*=M;this.right*=M;this.top*=q;this.bottom*=q;return this};var I5=function(M,q,G,K){this.left=M;this.top=q;this.width=G;this.height=K};
_.N=I5.prototype;_.N.clone=function(){return new I5(this.left,this.top,this.width,this.height)};
_.N.boundingRect=function(M){var q=Math.max(this.left+this.width,M.left+M.width),G=Math.max(this.top+this.height,M.top+M.height);this.left=Math.min(this.left,M.left);this.top=Math.min(this.top,M.top);this.width=q-this.left;this.height=G-this.top};
_.N.contains=function(M){return M instanceof _.mK?M.x>=this.left&&M.x<=this.left+this.width&&M.y>=this.top&&M.y<=this.top+this.height:this.left<=M.left&&this.left+this.width>=M.left+M.width&&this.top<=M.top&&this.top+this.height>=M.top+M.height};
_.N.distance=function(M){var q=M.x<this.left?this.left-M.x:Math.max(M.x-(this.left+this.width),0);M=M.y<this.top?this.top-M.y:Math.max(M.y-(this.top+this.height),0);return Math.sqrt(q*q+M*M)};
_.N.getSize=function(){return new _.cc(this.width,this.height)};
_.N.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};
_.N.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};
_.N.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};
_.N.translate=function(M,q){M instanceof _.mK?(this.left+=M.x,this.top+=M.y):(this.left+=M,typeof q==="number"&&(this.top+=q));return this};
_.N.scale=function(M,q){q=typeof q==="number"?q:M;this.left*=M;this.width*=M;this.top*=q;this.height*=q;return this};var Qgx,Jc,o_i,uo,JgM,uQ2,Z88,Acy,b8l,x_I;_.Dl=function(M,q,G){if(typeof q==="string")(q=_.Bq9(M,q))&&(M.style[q]=G);else for(var K in q){G=M;var n=q[K],E=_.Bq9(G,K);E&&(G.style[E]=n)}};
Qgx={};_.Bq9=function(M,q){var G=Qgx[q];if(!G){var K=_.nx(q);G=K;M.style[K]===void 0&&(K=(_.Hh?"Webkit":_.Fa?"Moz":null)+Gpl(K),M.style[K]!==void 0&&(G=K));Qgx[q]=G}return G};
_.Fm=function(M,q){var G=_.T9(M);return G.defaultView&&G.defaultView.getComputedStyle&&(M=G.defaultView.getComputedStyle(M,null))?M[q]||M.getPropertyValue(q)||"":""};
_.FD=function(M,q){return _.Fm(M,q)||(M.currentStyle?M.currentStyle[q]:null)||M.style&&M.style[q]};
_.IJJ=function(M){return _.FD(M,"position")};
Jc=function(M,q,G){if(q instanceof _.mK){var K=q.x;q=q.y}else K=q,q=G;M.style.left=uo(K,!1);M.style.top=uo(q,!1)};
o_i=function(M){try{return M.getBoundingClientRect()}catch(q){return{left:0,top:0,right:0,bottom:0}}};
_.rq=function(M){var q=_.T9(M),G=new _.mK(0,0);if(M==(q?_.T9(q):document).documentElement)return G;M=o_i(M);q=Q1(Ig(q));G.x=M.left+q.x;G.y=M.top+q.y;return G};
_.D_M=function(M,q,G){if(q instanceof _.cc)G=q.height,q=q.width;else if(G==void 0)throw Error("oa");M.style.width=uo(q,!0);M.style.height=uo(G,!0)};
uo=function(M,q){typeof M=="number"&&(M=(q?Math.round(M):M)+"px");return M};
JgM=function(M){return uQ2(M)};
uQ2=function(M){var q=Z88;if(_.FD(M,"display")!="none")return q(M);var G=M.style,K=G.display,n=G.visibility,E=G.position;G.visibility="hidden";G.position="absolute";G.display="inline";M=q(M);G.display=K;G.position=E;G.visibility=n;return M};
Z88=function(M){var q=M.offsetWidth,G=M.offsetHeight,K=_.Hh&&!q&&!G;return(q===void 0||K)&&M.getBoundingClientRect?(M=o_i(M),new _.cc(M.right-M.left,M.bottom-M.top)):new _.cc(q,G)};
Acy=function(M){var q=_.rq(M);M=uQ2(M);return new I5(q.x,q.y,M.width,M.height)};
b8l=function(M,q){M=M.style;"opacity"in M?M.opacity=q:"MozOpacity"in M?M.MozOpacity=q:"filter"in M&&(M.filter=q===""?"":"alpha(opacity="+Number(q)*100+")")};
_.GL=function(M,q){M.style.display=q?"":"none"};
_.U_S=function(M){return"rtl"==_.FD(M,"direction")};
x_I=function(M){var q=_.Fm(M,"marginLeft"),G=_.Fm(M,"marginRight"),K=_.Fm(M,"marginTop");M=_.Fm(M,"marginBottom");return new C8(parseFloat(K),parseFloat(G),parseFloat(M),parseFloat(q))};
_.zqM=function(M){var q=_.Fm(M,"borderLeftWidth"),G=_.Fm(M,"borderRightWidth"),K=_.Fm(M,"borderTopWidth");M=_.Fm(M,"borderBottomWidth");return new C8(parseFloat(K),parseFloat(G),parseFloat(M),parseFloat(q))};var Zl=function(M){this.context=M};
Zl.prototype.isSupported=function(M){return(M==null?0:M.attributionEnabled)||(M==null?void 0:M.beaconMethod)==="POST"||(M==null?0:M.customHeaders)||(M==null?0:M.customBody)||(M==null?0:M.keepAlive)?!1:!Ac(this.context)};
Zl.prototype.ping=function(){var M=this;return QR(_.rW.apply(0,arguments).map(function(q){try{var G=M.context.global,K=!1;K=K===void 0?!1:K;G.google_image_requests||(G.google_image_requests=[]);var n=sgM("IMG",G.document);K&&(n.attributionSrc="");n.src=q;G.google_image_requests.push(n);return!0}catch(E){return!1}}).every(function(q){return q}))};
Zl.prototype.pingWithHeadersAndBody=function(M,q,G){this.ping.apply(this,_.Ui(_.rW.apply(3,arguments)))};var m_d=function(M){this.context=M};
m_d.prototype.isSupported=function(M){return Sw2&&!Ac(this.context)&&$_u(this.context)!==void 0&&!(M==null?0:M.attributionEnabled)&&(M==null?void 0:M.beaconMethod)!=="POST"&&!(M==null?0:M.customHeaders)&&!(M==null?0:M.customBody)};
m_d.prototype.makeBeacon=function(M,q){if(!this.isSupported(q))throw new yF;return new bo(this.context,M)};
var Sw2=!1,bo=function(M,q){this.context=M;this.JSC$9351_urlWithoutToken=q;M=$_u(this.context);if(M===void 0)throw Error();this.wrappedBeacon=new M(Tqv(this),{})},Tqv=function(M){M=M.JSC$9351_urlWithoutToken;
return(M.slice(-1)[0]==="&"?M:M+"&")+"pbapi=1"};
bo.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
bo.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
bo.prototype.setHeader=function(){};
_.Yd.Object.defineProperties(bo.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$9351_urlWithoutToken},
set:function(M){this.JSC$9351_urlWithoutToken=M;this.wrappedBeacon.setURL(Tqv(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(M){if(M!=="GET")throw new yF;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var rgJ=function(M){this.context=M};
rgJ.prototype.isSupported=function(M){if((M==null?0:M.attributionEnabled)||(M==null?void 0:M.beaconMethod)==="GET"||(M==null?0:M.customHeaders)||(M==null?0:M.customBody)||(M==null?0:M.keepAlive))return!1;var q;return!Ac(this.context)&&((q=this.context.global.navigator)==null?void 0:q.sendBeacon)!==void 0};
rgJ.prototype.ping=function(){var M=this;return QR(_.rW.apply(0,arguments).map(function(q){var G;return(G=M.context.global.navigator)==null?void 0:G.sendBeacon(q)}).every(function(q){return q}))};
rgJ.prototype.pingWithHeadersAndBody=function(M,q,G){this.ping.apply(this,_.Ui(_.rW.apply(3,arguments)))};var Pc=function(M){this.value=M},KS=function(M,q){return QR(M.value).pipe(lC(q))},EK=new Pc(!1),J34=new Pc(!0);var V1=function(M){this.value=M;this.releasedSubject=new ag};
V1.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Yd.Object.defineProperties(V1.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$9364_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var YKY=["FRAME","IMG","IFRAME"],Eaj=/^[01](px)?$/,Lvu=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},yu4=function(){var M=new Lvu;
M.crossDomainLoadedDefault=!0;M.pendingImagesBlockLoad=!0;return M};var jg2=function(M,q){var G=OSe(M);if(G)if(G.onCreativeLoad)G.onCreativeLoad(q);else{var K=q?[q]:[],n=function(E){for(var p=0;p<K.length;++p)try{K[p](1,E)}catch(y){}K={push:function(y){y(1,E)}}};
G.onCreativeLoad=function(E){K.push(E)};
G.setAttribute("data-creative-load-listener","");G.addEventListener("creativeLoad",function(E){n(E.detail)});
_.Kj.addEventListener("message",function(E){tAy(G,n,E)})}};var UB=function(M,q){var G=this;this.global=M;this.parentContext=q;this.JSC$9375_onVisibilityChange=this.document?VR(QR(!0),Tp(this.document,"visibilitychange")).pipe(HD(this.parentContext.performanceMonitor,748),b5(function(){return G.getVisibilityState()}),G9()):QR("visible");
this.document?Tp(this.document,"DOMContentLoaded").pipe(HD(this.parentContext.performanceMonitor,739),q_(1)):QR(KvH("DOMContentLoaded"))},u1$=function(M){return M.document!==null&&M.document.visibilityState!==void 0};
UB.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
UB.prototype.querySelector=function(M){return this.document?this.document.querySelector(M):null};
UB.prototype.querySelectorAll=function(M){return this.document?_.Sw(this.document.querySelectorAll(M)):[]};
UB.prototype.elementFromPoint=function(M,q){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;M=this.document.elementFromPoint(M,q);return M===null?null:new V1(M)};
var o2Y=function(M,q,G){G=G===void 0?!1:G;if(q.ref===void 0||!M.document)return QR(q).pipe(HD(M.parentContext.performanceMonitor,749));var K=new N_(1),n=function(){K.next(q)};
G||jg2(q.ref,n);Wv$(q.ref,n);return K.pipe(HD(M.parentContext.performanceMonitor,749),q_(1))};
_.Yd.Object.defineProperties(UB.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Jge(this.global,"document")?this.global.document||null:null}}});var wXu=_.DQ(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),CIy=_.DQ(["./reach_worklet.js"]),aGF=_.DQ(["./reach_worklet.js"]),VX$=_.DQ(["./reach_worklet.html"]),Rq$=_.DQ(["./reach_worklet.js"]),fJJ=_.DQ(["./reach_worklet.js"]);_.Ow(VX$);_.Ow(Rq$);_.Ow(fJJ);var eX={left:0,top:0,width:0,height:0};var FKI,H89,eq8,$_f,ye,MAf,qKM,Gif,mVy,Ssy,EaP,Ncf;FKI=function(M,q,G,K,n,E,p){var y="";M&&(y+=M+":");G&&(y+="//",q&&(y+=q+"@"),y+=G,K&&(y+=":"+K));n&&(y+=n);E&&(y+="?"+E);p&&(y+="#"+p);return y};
H89=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.kJ=function(M){return M.match(H89)};
_.Wh=function(M,q){return M?q?decodeURI(M):decodeURIComponent(M):M};
eq8=function(M){M=_.kJ(M)[1]||null;!M&&_.Kj.self&&_.Kj.self.location&&(M=_.Kj.self.location.protocol.slice(0,-1));return M?M.toLowerCase():""};
_.pD=function(M){return _.Wh(_.kJ(M)[3]||null,!0)};
_.ij=function(M){return _.Wh(_.kJ(M)[5]||null,!0)};
_.hjj=function(M){var q=M.indexOf("#");return q<0?null:M.slice(q+1)};
$_f=function(M){M=_.kJ(M);return FKI(M[1],M[2],M[3],M[4])};
_.sEv=function(M){M=_.kJ(M);return FKI(M[1],null,M[3],M[4])};
_.BF=function(M){M=_.kJ(M);return FKI(null,null,null,null,M[5],M[6],M[7])};
_.Uu=function(M){var q=M.indexOf("#");return q<0?M:M.slice(0,q)};
ye=function(M,q){M=_.kJ(M);q=_.kJ(q);return M[3]==q[3]&&M[1]==q[1]&&M[4]==q[4]};
MAf=function(M,q){if(M){M=M.split("&");for(var G=0;G<M.length;G++){var K=M[G].indexOf("="),n=null;if(K>=0){var E=M[G].substring(0,K);n=M[G].substring(K+1)}else E=M[G];q(E,n?YJ(n):"")}}};
qKM=function(M){var q=M.indexOf("#");q<0&&(q=M.length);var G=M.indexOf("?");if(G<0||G>q){G=q;var K=""}else K=M.substring(G+1,q);return[M.slice(0,G),K,M.slice(q)]};
Gif=function(M,q){return q?M?M+"&"+q:q:M};
_.KvS=function(M,q){if(!q)return M;M=qKM(M);M[1]=Gif(M[1],q);return M[0]+(M[1]?"?"+M[1]:"")+M[2]};
_.naB=function(M,q,G){if(Array.isArray(q))for(var K=0;K<q.length;K++)_.naB(M,String(q[K]),G);else q!=null&&G.push(M+(q===""?"":"="+_.qz(q)))};
_.gP=function(M){var q=[],G;for(G in M)_.naB(G,M[G],q);return q.join("&")};
_.Nz=function(M,q){q=_.gP(q);return _.KvS(M,q)};
_.xE=function(M,q,G){G=G!=null?"="+_.qz(G):"";return _.KvS(M,q+G)};
mVy=function(M,q,G,K){for(var n=G.length;(q=M.indexOf(G,q))>=0&&q<K;){var E=M.charCodeAt(q-1);if(E==38||E==63)if(E=M.charCodeAt(q+n),!E||E==61||E==38||E==35)return q;q+=n+1}return-1};
Ssy=/#|$/;_.eA=function(M,q){var G=M.search(Ssy),K=mVy(M,0,q,G);if(K<0)return null;var n=M.indexOf("&",K);if(n<0||n>G)n=G;K+=q.length+1;return YJ(M.slice(K,n!==-1?n:0))};
EaP=/[?&]($|#)/;_.zt=function(M,q){for(var G=M.search(Ssy),K=0,n,E=[];(n=mVy(M,K,q,G))>=0;)E.push(M.substring(K,n)),K=Math.min(M.indexOf("&",n)+1||G,G);E.push(M.slice(K));return E.join("").replace(EaP,"$1")};
_.F4=function(M,q,G){return _.xE(_.zt(M,q),q,G)};
Ncf=function(M){var q=qKM(window.location.href),G=q[1],K=[];G&&G.split("&").forEach(function(n){var E=n.indexOf("=");E=E>=0?n.slice(0,E):n;M.hasOwnProperty(E)||K.push(n)});
q[1]=Gif(K.join("&"),_.gP(M));return q[0]+(q[1]?"?"+q[1]:"")+q[2]};var SKy=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(SKy,_.kC);var myu=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(myu,_.kC);var JuH=function(M,q){return _.DJ(M,2,q)},zkw=function(M,q){return _.DJ(M,3,q)};
myu.prototype.getModel=function(){return _.hD(this,4)};
var bSy=function(M,q){return _.DJ(M,4,q)},uDH=function(M,q){return _.DJ(M,5,q)},xyy=function(M,q){return _.DJ(M,9,q)},Dy4=function(M,q){return Lu(M,10,q)},IGe=function(M,q){return _.tu(M,11,q)},ZSF=function(M,q){return _.DJ(M,1,q)},UyF=function(M,q){return _.tu(M,7,q)};var BcF="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var nS=function(M,q,G,K){M=M===void 0?window:M;q=q===void 0?null:q;G=G===void 0?new oC$:G;K=K===void 0?oaj():K;tmf.call(this);var n=this;this.global=M;this.debugChannel=q;this.performanceMonitor=G;this.onPageHide=nPw(function(){return Tp(n.global,"pagehide")}).pipe(HD(this.performanceMonitor,941));
this.onLoad=nPw(function(){return Tp(n.global,"load")}).pipe(HD(this.performanceMonitor,738),q_(1));
this.onResize=nPw(function(){return Tp(n.global,"resize")}).pipe(HD(this.performanceMonitor,741));
this.onMessage=nPw(function(){return Tp(n.global,"message")}).pipe(HD(this.performanceMonitor,740));
this.document=new UB(this.global,this);this.timeProvider=new l2B(new P5S(this.intrinsicFunctionNamespace,this.performanceMonitor),new XDx(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new C59(new cxf(this),new m_d(this),new Le(this,new QSS(this)),new Le(this,new rgJ(this)),new Le(this,new Zl(this)))};
_.l(nS,tmf);nS.prototype.hasLocalStorage=function(){try{return!!this.global.localStorage}catch(M){return M}};
var Ac=function(M){var q=M.global;return!!M.global.HTMLFencedFrameElement&&!!q.fence&&typeof q.fence.reportEvent==="function"};
_.N=nS.prototype;_.N.reportFencedFrameEvent=function(M){Ac(this)&&this.global.fence.reportEvent(M)};
_.N.getOnBackgrounded=function(){return this.onPageHide.pipe(HD(this.performanceMonitor,942),lC(this.queue),b5(function(){}))};
_.N.postMessage=function(M,q,G){G=G===void 0?[]:G;this.global.postMessage(M,q,G)};
_.N.getWidth=function(){return Z8F(this.global)?this.global.width:0};
_.N.getHeight=function(){return Z8F(this.global)?this.global.height:0};
_.N.isMobile=function(){return urB()||Jxl()};
var f8=function(M,q){try{var G=iS4(q,M.global,M.isMobile());return{left:G.left,top:G.top,width:G.getWidth(),height:G.getHeight()}}catch(K){return eX}};
nS.prototype.validate=function(){var M=this.beaconFactory.isSupported()||Ac(this);return this.global&&this.timeProvider.available()&&M};
var MAu=function(M){return(M=ruD(M.global))?wL(M):null};
_.Yd.Object.defineProperties(nS.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(M){}}},
localStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.localStorage}catch(M){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!Z8F(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}}});_.kiM=!_.RH&&!_.twu();var ZXi=function(M){return M};var U$w=function(M){return M.pipe(RS(function(q){var G=q.endOfSessionReason;var K;return((K=q.viewable)==null?void 0:K.extrapolateToNow().value)||G!=void 0}),q_(1),sw())};var ekj=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},$yy=function(M){var q=M.sequenceNumber.toString(10).padStart(2,"0");
q=""+M.startTime+q;M.sequenceNumber<99&&M.sequenceNumber++;return q};var D$$=vD(Ag(function(M){return M.endOfSessionReason===void 0}),b5(function(M){return Object.assign({},M,{timestamps:Jg(M)})}),RS(function(M){var q=M.viewable;
M=M.timestamps;var G;return(G=q==null?void 0:q.extrapolateUsingTimestampMap(M).value)!=null?G:!1}),b5(function(M){var q=M.beaconFactory;
var G=M.timestampedExposureHistory;var K=M.timeOnScreen;var n=M.binaryContext;M=M.timestamps;if(q===void 0||G===void 0||K===void 0||n===void 0)return!1;if(K.extrapolateUsingTimestampMap(M).value.every(function(E){return E>=0}))return!0;
G=G.map(function(E){return E.timestamp+":"+E.value}).join(",");
K=sYw({bin:n,tos:K},M);q.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+K+("&eh="+G)).sendNow();return!0}),Ag(function(M){return!M}),sw());var q9F=function(M){return{id:M.pingId,mcvt:M.maxConsecutiveViewTime,p:M.creativePosition,asp:M.adSpeedPosition,tm:M.totalMeasurementTime,tu:M.totalUnviewedTime,mtos:M.maxTimeOnScreen,tos:M.timeOnScreen,v:M.binaryVersion,bin:M.binaryContext,avms:M.measurementStrategy,bs:M.browserSize,mc:M.maximumExposure,"if":M.crossDomainIframeState,vu:M.delayedImpressionJsState,app:M.inApp,mse:M.mraidError,mtop:M.mraidSituation,itpl:M.injectedTemplateId,adk:M.adKey,exk:M.awbidKey,rs:M.requestSource,la:M.isLargeAd,
cr:M.isContentRecommendationAd,uach:M.userAgentClientHints,vs:M.viewState,r:M.reasonCode,pay:M.hasCpmavUrl,co:M.clientPingOrderCounter,rst:M.adRenderStartTime,rpt:M.adRenderPeriodTime,isd:M.initialScrollDepth,lsd:M.loadedScrollDepth,context:M.errorContext,msg:M.errorMessage,stack:M.errorStack,name:M.errorName,ec:M.hasElementChanged,sfr:M.strategyFailureReasons,met:M.creativeSearchResult,wmsd:M.webMeasurementStartDiagnostic,pv:M.pageVisible,epv:M.eosPageVisible,pbe:M.inStatefulBeaconExperiment,fle:M.inFetchLaterBeaconExperiment,
vae:M.inViewableAttributionExperiment,spb:M.supportsPendingBeacon,sfl:M.supportsFetchLater,ffslot:M.isFencedFrameSlotTurtlex,reach:M.sharedStorageReachMode,io2:M.v2VisibilityBitVector,rxdbg:M.rxDebugger,omida:M.omidAppId,omidp:M.omidPartner,omidpv:M.omidPartnerVersion,omidor:M.omidOcclusionReasons,omidv:M.omidVersion,omids:M.omidSessionType,omidam:M.omidAccessMode,omidct:M.omidCreativeType,omidia:M.omidInApp,omiddc:M.omidDeviceCategory,omidlat:M.omidLastActivity,omiddit:M.omidDeviceIdleTime,qid:M.errorEscapedQueryId}};var bXj=function(M){var q=[];return M.pipe(b5(function(G){var K=G.beaconFactory,n=G.fetchBeaconFactory,E=G.timeOnScreen,p=G.timeOnScreenUrlPrefixes,y=G.payloadMapper,Y=G.timeOnScreenPingId,A=G.timeOnScreenReason,v=G.urlSerializer,h=G.viewable,t=G.hasImpressionFired,O=G.inStatefulBeaconExperiment,a=G.supportsPendingBeacon,g=G.supportsFetchLater,D=G.turtlexReportEventData;if(!G.geometryMeasurable||!t||G.maxTimeOnScreen===void 0||E===void 0||p===void 0||y===void 0||Y===void 0||v===void 0||K===void 0)return!1;
if(G.isTurtlex){if(A===void 0)return!1;p=G.reportFencedFrameEvent;if(!p)return!1;p({eventType:"active-view-time-on-screen",eventData:D!=null?D:"",destination:["buyer"]});return!0}if(!(O||g||A))return!1;D=Jg(G);var J;h=(J=h==null?void 0:h.extrapolateUsingTimestampMap(D).value)!=null?J:!1;J=v(Object.assign({},G,{pingId:Y,viewState:h?4:3,reasonCode:A!=null?A:"u",payloadMapper:y,urlPrefixes:p}),D);if(O){for(;q.length>p.length;)G=void 0,(G=q.shift())==null||G.deactivate();J.forEach(function(V,S){S>=q.length?
q.push(K.makeBeacon(V)):q[S].url=V});
return a&&n&&A!==void 0?(J.forEach(function(V){n.makeBeacon(V).sendNow()}),!0):A!==void 0}if(a&&n&&A!==void 0)return J.forEach(function(V){n.makeBeacon(V).sendNow()}),!0;
if(g&&n){for(;q.length>p.length;)a=void 0,(a=q.shift())==null||a.deactivate();var Z=v(Object.assign({},G,{pingId:Y,viewState:h?4:3,reasonCode:A!=null?A:"u",payloadMapper:y,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),D)[0];J.forEach(function(V,S){S>=q.length?q.push(K.makeBeacon(Z,{endOfSession:!0})):q[S].url=Z});
return A!==void 0?(J.forEach(function(V){n.makeBeacon(V).sendNow()}),!0):A!==void 0}return A!==void 0?(J.forEach(function(V){K.makeBeacon(V).sendNow()}),!0):!1}),Ag(function(G){return!G}),sw())};var x$y=vD(RS(function(M){return M.immediateUrlPrefixes!==void 0&&M.payloadMapper!==void 0&&M.urlSerializer!==void 0&&M.inferredPingId!==void 0&&M.beaconFactory!==void 0}),RS(function(M){return ye4(M)!==null}),kLy(function(M){return M.activeViewUnmeasurableEvent},function(M){return M.emit}),b5(function(M){if(M.isTurtlex){var q=M.reportFencedFrameEvent;
if(q){var G;q({eventType:"active-view-unmeasurable",eventData:(G=M.turtlexReportEventData)!=null?G:"",destination:["buyer"]})}}else{G=void 0;var K=ye4(M);if(K==="x"){var n,E=(n=M.geometricMeasurementErrors)!=null?n:M.contextValidationErrors;E&&(q=E.stack,G=E.message)}M.urlSerializer(Object.assign({},M,{urlPrefixes:M.immediateUrlPrefixes,payloadMapper:M.payloadMapper,pingId:M.inferredPingId,viewState:2,reasonCode:K,errorMessage:G,errorStack:q}),Jg(M)).forEach(function(p){M.beaconFactory.makeBeacon(p).sendNow()})}}),
q_(1),sw());var L_D=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var Iks=vD(RS(function(M){return M.payloadMapper!==void 0&&M.immediateUrlPrefixes!==void 0&&M.urlSerializer!==void 0&&M.inferredPingId!==void 0&&M.beaconFactory!==void 0}),b5(function(M){return Object.assign({},M,{timestamps:Jg(M)})}),RS(function(M){var q=M.viewable;
var G=M.hasImpressionFired;M=M.timestamps;var K;return!!G&&((K=q==null?void 0:q.extrapolateUsingTimestampMap(M).value)!=null?K:!1)}),kLy(function(M){return M.activeViewViewableEvent},function(M){return M.emit}),b5(function(M){var q=M.beaconFactory,G=M.turtlexReportEventData;
if(M.isTurtlex){var K=M.reportFencedFrameEvent;if(!K)return!1;K({eventType:"active-view-viewable",eventData:G!=null?G:"",destination:["buyer"]});return!0}G=M.urlSerializer(Object.assign({},M,{urlPrefixes:M.immediateUrlPrefixes,payloadMapper:M.payloadMapper,pingId:M.inferredPingId,viewState:4,reasonCode:"v"}),M.timestamps);(K=M.cpmavUrls)&&K.length>0&&M.viewUrlSerializer&&M.viewUrlSerializer(K,M).forEach(function(n){q.makeBeacon(n).sendNow()});
(K=M.viewableRelayUrls)&&K.length>0&&M.viewUrlSerializer&&M.viewUrlSerializer(K,M).forEach(function(n){q.makeBeacon(n).sendNow()});
G.forEach(function(n){q.makeBeacon(n,{attributionEnabled:M.isViewableAttributionEnabled}).sendNow()});
return!0}),Ag(function(M){return!M}),sw());var qby=b5(function(M){return[M.value.topWindowViewportExternalGeometry.width,M.value.topWindowViewportExternalGeometry.height]});var FQ=function(M,q){this.callback=M;this.options=q;this.intersectionObserverV2=this.intersectionObserverV1=null},bWy=function(M,q){q?M.intersectionObserverV2||(q=Object.assign({},M.options,{delay:100,
trackVisibility:!0}),M.intersectionObserverV2=new IntersectionObserver(M.callback,q)):M.intersectionObserverV1||(M.intersectionObserverV1=new IntersectionObserver(M.callback,M.options))},pX9=function(M,q){M=q?M.intersectionObserverV2:M.intersectionObserverV1;
if(!M)throw new OvB;return M};
FQ.prototype.observe=function(M,q){pX9(this,M).observe(q)};
FQ.prototype.unobserve=function(M,q){pX9(this,M).unobserve(q)};
FQ.prototype.disconnect=function(M){pX9(this,M).disconnect()};
FQ.prototype.takeRecords=function(M){return pX9(this,M).takeRecords()};var Xmj={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:eX,topWindowViewportExternalGeometry:eX,measurementRequests:new ag,elementGeometrySourceName:"ns",elementGeometry:eX,intersectionGeometry:eX,viewportLocalAppOffset:{x:0,y:0}};var rey=$P(vD(b5(function(M){var q;return(q=M.exposureOverride)!=null?q:xT$(M)}),b5(function(M){return isFinite(M)?M:0}))),eBj=$P(vD(b5(function(M){var q;
return(q=M.exposureOverride)!=null?q:xT$(M)}),b5(function(M){return isFinite(M)?M:-1})));var z$=function(M,q){this.a=M;this.b=q;if(M.clock.timeline!==q.clock.timeline)throw Error();};
z$.prototype.equivalentTo=function(M){return M instanceof z$?this.a.equivalentTo(M.a)&&this.b.equivalentTo(M.b):!1};
z$.prototype.extrapolateToTime=function(M){var q=this.a.extrapolateToTime(M).value,G=this.b.extrapolateToTime(M).value;return{timestamp:M,value:[q,G]}};
_.Yd.Object.defineProperties(z$.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 M=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),q=this.a.lastMeasurement.timestamp.equals(M)?this.a.lastMeasurement.value:this.a.extrapolateToTime(M).value,G=this.b.lastMeasurement.timestamp.equals(M)?this.b.lastMeasurement.value:this.b.extrapolateToTime(M).value;return{timestamp:M,value:[q,G]}}}});var mE=function(M,q){this.input=M;this.mapFunction=q;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
mE.prototype.equivalentTo=function(M){return M instanceof mE?this.input.equivalentTo(M.input)&&this.mapFunction===M.mapFunction:!1};
mE.prototype.extrapolateToTime=function(M){M=this.input.extrapolateToTime(M);return{timestamp:M.timestamp,value:this.mapFunction(M.value)}};
_.Yd.Object.defineProperties(mE.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var SW=function(){};
SW.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
SW.prototype.extrapolateUsingTimestampMap=function(M){var q=this.clock.timeline,G,K=(G=M.get(q))!=null?G:this.clock.now();M.set(q,K);return this.extrapolateToTime(K)};
SW.prototype.map=function(M){return new yud(this,M)};
SW.prototype.joinWith=function(M){return new Lvf(this,M)};
var Lvf=function(){z$.apply(this,arguments);this.map=SW.prototype.map;this.joinWith=SW.prototype.joinWith;this.extrapolateToNow=SW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=SW.prototype.extrapolateUsingTimestampMap};
_.l(Lvf,z$);var yud=function(){mE.apply(this,arguments);this.map=SW.prototype.map;this.joinWith=SW.prototype.joinWith;this.extrapolateToNow=SW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=SW.prototype.extrapolateUsingTimestampMap};
_.l(yud,mE);var qy=function(M,q){this.lastMeasurement=q;this.extrapolateToNow=SW.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=SW.prototype.extrapolateUsingTimestampMap;this.map=SW.prototype.map;this.joinWith=SW.prototype.joinWith;this.clock=M};
qy.prototype.equivalentTo=function(M){return M.active};
qy.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Yd.Object.defineProperties(qy.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var MKY=b5(function(M){if(M.value.viewportGeometrySourceName==="omid"){if(M.value.elementGeometrySourceName==="nio")return"omio";if(M.value.elementGeometrySourceName==="geo")return"omgeo"}return M.value.elementGeometrySourceName==="geo"||M.value.elementGeometrySourceName==="nio"?M.value.viewportGeometrySourceName:M.value.elementGeometrySourceName});var mTy=vD(RS(function(M){return!isNaN(M)}),L8(function(M,q){return isNaN(M)?q:Math.min(M,q)},NaN),G9());var jYF=$P(vD(b5(function(M){return M.intersectionGeometry.width*M.intersectionGeometry.height/(M.exposedViewportLocalGeometry.width*M.exposedViewportLocalGeometry.height)}),b5(function(M){return isFinite(M)?Math.min(1,M):0})));var s9y=vD($P(b5(function(M){M=M.exposureOverride?M.elementGeometry.width*M.elementGeometry.height*M.exposureOverride/(M.topWindowViewportExternalGeometry.width*M.topWindowViewportExternalGeometry.height):M.intersectionGeometry.width*M.intersectionGeometry.height/(M.topWindowViewportExternalGeometry.width*M.topWindowViewportExternalGeometry.height);return isFinite(M)?M:0})));var n2e=function(M,q){var G=this;this.timeProvider=M;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=q.pipe(G9()).subscribe(function(K){NUw(G);G.measurementRequestObserver=K})},k_4=function(M,q){NUw(M);
M.lastMeasurementRequest=M.timeProvider.setTimeout(function(){var G;return void((G=M.measurementRequestObserver)==null?void 0:G.next())},q)},NUw=function(M){M.lastMeasurementRequest!==null&&M.timeProvider.clearTimeout(M.lastMeasurementRequest);
M.lastMeasurementRequest=null};
n2e.prototype.dispose=function(){NUw(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var YKB=function(){};var g2Y=function(M,q){this.context=M;this.strategies=q};
_.l(g2Y,YKB);g2Y.prototype.buildGeometrySource=function(M,q){var G=this.strategies.map(function(E){return E.buildGeometrySource(M,q)}),K=WTi(G.map(function(E){return E.geometrySource})),n=K.capturedErrors.pipe(Wv9());
return{geometrySource:K.chain.pipe(lC(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:n,strategyErrors:K.capturedErrors}].concat(_.Ui(G.map(function(E){return E.additionalOutputs}))))}};
var Wv9=function(){return L8(function(M,q){q instanceof bC?M.push(q.measurementStrategyFailureReason):M.push(-1);return M},[])};var Q9F=function(M,q){this.context=M;this.poller=q};
_.l(Q9F,YKB);Q9F.prototype.buildGeometrySource=function(M,q){var G=A3Y(v2y(this.context,this.poller),PQ$(this.context,q.requestSource));return{geometrySource:Ybs(M.measurableCreative.pipe(G),q.inApp),additionalOutputs:{}}};var BU$=function(M,q,G){G=G===void 0?IPs(M,q):G;this.context=M;this.intersectionObserverStrategy=G};
_.l(BU$,YKB);BU$.prototype.buildGeometrySource=function(M,q){var G=this.intersectionObserverStrategy(q.useV2);return{geometrySource:Ybs(M.measurableCreative.pipe(G,DTs(this.context)),q.inApp),additionalOutputs:{}}};var Aup=function(M,q,G){var K=K===void 0?Symbol():K;this.element=M;this.immediateUrls=q;this.timeOnScreenUrls=G;this.symbol=K};var KTD=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),CfF=Object.freeze([1,.75,KTD.exposureThreshold,KTD.largeAdExposureThreshold,0]);var mWY=function(M,q){q=q===void 0?36E5:q;var G=G===void 0?!0:G;this.creatives=new ag;this.elementsToUnregister=new ag;this.elementMap=new Map;var K=new nS(window,null);K.beaconFactory=new Le(K,new Zl(K));c3i(K,this.creatives,this.elementsToUnregister,M,q,G).subscribe()},rwy=function(M,q,G,K){if(!M.elementMap.has(q)){var n=new V1(q);
M.elementMap.set(q,n);M.creatives.next(new Aup(n,G,K))}},TGi=function(M,q){M.elementsToUnregister.next(q);
var G=M.elementMap.get(q);G!==void 0&&(G.release(),M.elementMap.delete(q))};var Usy=function(M){var q=M.url;M=M.uaDataValues;this.JSC$9480_url_=q;this.uaDataValues_=M;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var G=/[?&]([^&=]+)=([^&]*)/g;M=G.exec(q);)this.urlParamValues_[M[1]]=M[2]},xsi=function(M){M=M.uaDataValues_;
if(!M)return"";var q=Ny("uap",M.platform)+Ny("uapv",M.platformVersion)+Ny("uafv",M.uaFullVersion)+Ny("uaa",M.architecture)+Ny("uam",M.model)+Ny("uab",M.bitness);M.fullVersionList&&(q+="&uafvl="+encodeURIComponent(M.fullVersionList.map(function(G){return encodeURIComponent(G.brand)+";"+encodeURIComponent(G.version)}).join("|")));
M.wow64!=null&&(q+="&uaw="+Number(M.wow64));return q.slice(1)};var dyx=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(dyx,_.kC);dyx.prototype.getId=function(){return _.hD(this,1)};var T$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(T$,_.kC);T$.prototype.getSeconds=function(){return dl(this,1)};
T$.prototype.setSeconds=function(M){return _.Ma(this,1,AE(M),"0")};_.tY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(_.tY,_.kC);_.tY.prototype.getSeconds=function(){return dl(this,1)};
_.tY.prototype.setSeconds=function(M){return _.Ma(this,1,AE(M),"0")};
_.va$=function(M){var q=Number(Ov(M,1));M=_.Au(M,2);return new Date(q*1E3+M/1E6)};var rB=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(rB,_.kC);rB.prototype.getUrl=function(){return _.hD(this,1)};
rB.prototype.setUrl=function(M){return _.gI(this,1,M)};
rB.prototype.getHeight=function(){return _.Au(this,2)};
rB.prototype.getWidth=function(){return _.Au(this,3)};var jW=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(jW,_.kC);jW.prototype.getAspectRatio=function(){return v7(this,1)};
jW.prototype.getDuration=function(){return _.t0(this,T$,2)};var hk$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(hk$,_.kC);var tAI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(tAI,_.kC);var OSM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(OSM,_.kC);var wXf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(wXf,_.kC);var CIv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(CIv,_.kC);var aG8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(aG8,_.kC);var oaP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(oaP,_.kC);var lGM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(lGM,_.kC);var XX2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(XX2,_.kC);var VF=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(VF,_.kC);var R5=[2,4,5,6,7];var PII=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(PII,_.kC);var Y1=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Y1,_.kC);_.N=Y1.prototype;_.N.getId=function(){return _.t0(this,dyx,1)};
_.N.getName=function(){return _.hD(this,2)};
_.N.setDescription=function(M){return _.gI(this,3,M)};
_.N.getUrl=function(){return _.hD(this,8)};
_.N.setUrl=function(M){return _.gI(this,8,M)};
var fe=function(M){return _.Ya(M,rB,10,_.WX())};
Y1.prototype.getOwner=function(M){var q=_.HI(this,40,_.lP,3,!0);$DF(q,M);return q[M]};
var FZ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(FZ,_.kC);_.Hp=[0,uZ,AEx];_.eW=[0,uZ,AEx];var iSd=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(iSd,_.kC);var $E=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l($E,_.kC);$E.prototype.getStatus=function(){return _.tD(this,1)};
$E.prototype.removeItem=function(M){return l8P(this,2,M)};var cuS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(cuS,_.kC);cuS.prototype.getName=function(){return _.hD(this,8)};var sS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(sS,_.kC);sS.prototype.getCommand=function(){return _.tD(this,1)};
sS.prototype.getSource=function(){return _.t0(this,cuS,2)};
sS.prototype.setVisible=function(M){return _.vF(this,5,M)};
sS.prototype.removeItem=function(M){return l8P(this,7,M)};var ga$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ga$,_.kC);ga$.prototype.getCommand=function(){return _.tD(this,1)};
ga$.prototype.removeItem=function(M){return l8P(this,4,M)};
var Bc8=_.ov(ga$);var Mp=function(M,q,G){G=G===void 0?Error():G;var K=Error.call(this);this.message=K.message;"stack"in K&&(this.stack=K.stack);this.code=M;q+=":";G instanceof Error?(this.message=q+G.message,this.stack=G.stack||""):(this.message=q+String(G),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(Mp,Error);_.uI=function(){this.JSC$9538_disposed_=this.JSC$9538_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.uI.prototype.JSC$9538_disposed_=!1;_.uI.prototype.isDisposed=function(){return this.JSC$9538_disposed_};
_.uI.prototype.dispose=function(){this.JSC$9538_disposed_||(this.JSC$9538_disposed_=!0,this.disposeInternal())};
_.uI.prototype[Symbol.dispose]=function(){this.dispose()};
_.oE=function(M,q){M.addOnDisposeCallback(_.n7(_.ka,q))};
_.uI.prototype.addOnDisposeCallback=function(M,q){this.JSC$9538_disposed_?q!==void 0?M.call(q):M():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),q&&(M=M.bind(q)),this.onDisposeCallbacks_.push(M))};
_.uI.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var qp=function(M){_.uI.call(this);this.wpc=M};
_.l(qp,_.uI);qp.prototype.yIu=function(){return this.wpc.f()};
qp.prototype.f84=function(M){return this.wpc.c(M)};
qp.prototype.sC=function(M){return this.wpc.m(r3y(M))};
qp.prototype.h5L=function(M){return this.wpc.mws(r3y(M))};
var LS=function(M){_.uI.call(this);var q=this;this.vm=M;this.gDq="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.yUA=void 0;this.v58=this.vm.p;this.dW5=this.lRM.bind(this);this.addOnDisposeCallback(function(){return void QEM(q)})};
_.l(LS,_.uI);var IGM=function(M){var q;return _.L(function(G){if(G.nextAddress==1){if(!M.vm.wpc)throw new Mp(30,"NWA");return M.ltD?G.return(M.ltD):G.yield(M.vm.wpc(),2)}q=G.yieldResult;M.ltD=new qp(q);return G.return(M.ltD)})};
LS.prototype.snapshot=function(M){return this.vm.s(Object.assign({},M.m2&&{c:M.m2},M.fBq&&{s:M.fBq},M.y4A!==void 0&&{p:M.y4A}))};
LS.prototype.lRM=function(M){this.vm.e(M)};
LS.prototype.eX7=function(M,q){return this.vm.c(M,q,!1)};
var QEM=function(M){M.yUA!==void 0&&(M.gDq.forEach(function(q){var G;(G=M.yUA)==null||G.removeEventListener(q,M.dW5)}),M.yUA=void 0)};
LS.prototype.xOH=function(){return this.vm.l()};var GZ=function(){_.uI.apply(this,arguments);this.dn5=1};
_.l(GZ,_.uI);GZ.prototype.share=function(){if(this.isDisposed())throw Error("pa");this.dn5++;return this};
GZ.prototype.dispose=function(){--this.dn5||_.uI.prototype.dispose.call(this)};var Dyd=function(M){this.rVD=M;M.addNewEventMetric("/client_streamz/bg/frs",_.hu("mk"))};
Dyd.prototype.record=function(M,q){this.rVD.record("/client_streamz/bg/frs",M,q)};
var uDS=function(M){this.tQw=M;M.addNewEventMetric("/client_streamz/bg/wrl",_.hu("mn"),vX("ac"),vX("sc"),_.hu("rk"),_.hu("mk"))};
uDS.prototype.record=function(M,q,G,K,n,E){this.tQw.record("/client_streamz/bg/wrl",M,q,G,K,n,E)};
var JuS=function(M){this.b2w=M;M.addNewCounter("/client_streamz/bg/ec",_.hu("en"),_.hu("mk"))};
JuS.prototype.increment=function(M,q){this.b2w.JSC$9791_incrementCounter("/client_streamz/bg/ec",M,q)};
var ZSl=function(M){this.uGg=M;M.addNewEventMetric("/client_streamz/bg/el",_.hu("en"),_.hu("mk"))};
ZSl.prototype.record=function(M,q,G){this.uGg.record("/client_streamz/bg/el",M,q,G)};
var bSp=function(M){this.h25=M;M.addNewCounter("/client_streamz/bg/cec",vX("ec"),_.hu("mk"))};
bSp.prototype.increment=function(M,q){this.h25.JSC$9791_incrementCounter("/client_streamz/bg/cec",M,q)};
var Uyl=function(M){this.cVg=M;M.addNewCounter("/client_streamz/bg/po/csc",vX("cs"),_.hu("mk"))};
Uyl.prototype.increment=function(M,q){this.cVg.JSC$9791_incrementCounter("/client_streamz/bg/po/csc",M,q)};
var xyI=function(M){this.sug=M;M.addNewCounter("/client_streamz/bg/po/ctav",_.hu("av"),_.hu("mk"))};
xyI.prototype.increment=function(M,q){this.sug.JSC$9791_incrementCounter("/client_streamz/bg/po/ctav",M,q)};
var zkJ=function(M){this.i2r=M;M.addNewCounter("/client_streamz/bg/po/cwsc",_.hu("su"),_.hu("mk"))};
zkJ.prototype.increment=function(M,q){this.i2r.JSC$9791_incrementCounter("/client_streamz/bg/po/cwsc",M,q)};var ODH=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ODH,_.kC);var tSs=function(M,q){return _.sA(M,3,q,wvi)};var myf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(myf,_.kC);var SKI=[1,2,3];var Tcd=[0,SKI,_.S$,dMP,tRl];var rux=[0,_.Tm,[0,IT,_.Dh]];var jEP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(jEP,_.kC);var VAp=[1,2,3];var Rkv=[0,VAp,YLB,NwB,_.rl,rux];var fGp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(fGp,_.kC);var FvS=[0,_.Tm,Tcd,Rkv];var HSI=[0,_.x1];var ekP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ekP,_.kC);var $yp=[0,_.x1,-1,_.bZ];var sYJ=[0,_.x1,-1,_.Zh,_.bZ];var M_M=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(M_M,_.kC);var q98=[1,2,3];var GLP=[0,q98,_.rl,$yp,_.rl,sYJ,_.rl,HSI];var K_$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(K_$,_.kC);K_$.prototype.JSC$9611_serializeBinary=jvu([0,_.x1,GLP,OnP,_.Tm,FvS,vgM,_.hwM]);var n_B=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(n_B,_.kC);var kLI=function(M){var q=new K_$;q=_.DJ(q,1,M.JSC$9727_metricName);var G=E_J(M);q=_.sA(q,3,G,_.Cn);G=[];for(var K=[],n=_.k(M.cellMap.keys()),E=n.next();!E.done;E=n.next())K.push(E.value.split(","));for(n=0;n<K.length;n++){E=K[n];for(var p=M.cellType,y=M.getCells(E)||[],Y=[],A=0;A<y.length;A++){var v=y[A],h=v&&v.cellValue;v=new jEP;switch(p){case 3:h=Number(h);Number.isFinite(h)&&Pr(v,1,VAp,AE(h));break;case 2:Pr(v,2,VAp,_.Hv(Number(h)))}Y.push(v)}p=Y;for(y=0;y<p.length;y++){Y=p[y];A=new fGp;Y=_.Xe(A,
2,Y);A=[];v=NY$(M);for(h=0;h<v.length;h++){var t=v[h],O=E[h],a=new myf;switch(t){case 3:Pr(a,1,SKI,o8(String(O)));break;case 2:t=Number(O);Number.isFinite(t)&&Pr(a,2,SKI,_.kg(t));break;case 1:Pr(a,3,SKI,hfy(O==="true"))}A.push(a)}Lu(Y,1,A);G.push(Y)}}Lu(q,4,G);return q};var pm2=function(M){if(!M)return"";if(/^about:(?:blank|srcdoc)$/.test(M))return window.origin||"";M.indexOf("blob:")===0&&(M=M.substring(5));M=M.split("#")[0].split("?")[0];M=M.toLowerCase();M.indexOf("//")==0&&(M=window.location.protocol+M);/^[\w\-]*:\/\//.test(M)||(M=window.location.href);var q=M.substring(M.indexOf("://")+3),G=q.indexOf("/");G!=-1&&(q=q.substring(0,G));G=M.substring(0,M.indexOf("://"));if(!G)throw Error("qa`"+M);if(G!=="http"&&G!=="https"&&G!=="chrome-extension"&&G!=="moz-extension"&&
G!=="file"&&G!=="android-app"&&G!=="chrome-search"&&G!=="chrome-untrusted"&&G!=="chrome"&&G!=="app"&&G!=="devtools")throw Error("ra`"+G);M="";var K=q.indexOf(":");if(K!=-1){var n=q.substring(K+1);q=q.substring(0,K);if(G==="http"&&n!=="80"||G==="https"&&n!=="443")M=":"+n}return G+"://"+q+M};var L_x=function(M,q,G){var K=String(_.Kj.location.href);return K&&M&&q?[q,yed(pm2(K),M,G||null)].join(" "):null},yed=function(M,q,G){var K=[],n=[];
if((Array.isArray(G)?2:1)==1)return n=[q,M],_.Gc(K,function(y){n.push(y)}),Y9p(n.join(" "));
var E=[],p=[];_.Gc(G,function(y){p.push(y.key);E.push(y.value)});
G=Math.floor((new Date).getTime()/1E3);n=E.length==0?[G,q,M]:[E.join(":"),G,q,M];_.Gc(K,function(y){n.push(y)});
M=Y9p(n.join(" "));M=[G,M];p.length==0||M.push(p.join(""));return M.join("_")},Y9p=function(M){var q=$$s();
q.update(M);return q.digestString().toLowerCase()};var KE=function(M){this.JSC$9622_document_=M||{cookie:""}},W_I;
_.N=KE.prototype;_.N.isEnabled=function(){if(!_.Kj.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};
_.N.set=function(M,q,G){var K=!1;if(typeof G==="object"){var n=G.sameSite;K=G.secure||!1;var E=G.domain||void 0;var p=G.path||void 0;var y=G.maxAge}if(/[;=\s]/.test(M))throw Error("sa`"+M);if(/[;\r\n]/.test(q))throw Error("ta`"+q);y===void 0&&(y=-1);G=E?";domain="+E:"";p=p?";path="+p:"";K=K?";secure":"";y=y<0?"":y==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+y*1E3)).toUTCString();this.JSC$9622_document_.cookie=M+"="+q+G+p+y+K+(n!=null?";samesite="+n:"")};
_.N.get=function(M,q){for(var G=M+"=",K=(this.JSC$9622_document_.cookie||"").split(";"),n=0,E;n<K.length;n++){E=A4(K[n]);if(E.lastIndexOf(G,0)==0)return E.slice(G.length);if(E==M)return""}return q};
_.N.remove=function(M,q,G){var K=this.containsKey(M);this.set(M,"",{maxAge:0,path:q,domain:G});return K};
_.N.getKeys=function(){return W_I(this).keys};
_.N.getValues=function(){return W_I(this).values};
_.N.isEmpty=function(){return!this.JSC$9622_document_.cookie};
_.N.getCount=function(){return this.JSC$9622_document_.cookie?(this.JSC$9622_document_.cookie||"").split(";").length:0};
_.N.containsKey=function(M){return this.get(M)!==void 0};
_.N.containsValue=function(M){for(var q=W_I(this).values,G=0;G<q.length;G++)if(q[G]==M)return!0;return!1};
_.N.clear=function(){for(var M=W_I(this).keys,q=M.length-1;q>=0;q--)this.remove(M[q])};
W_I=function(M){M=(M.JSC$9622_document_.cookie||"").split(";");for(var q=[],G=[],K,n,E=0;E<M.length;E++)n=A4(M[E]),K=n.indexOf("="),K==-1?(q.push(""),G.push(n)):(q.push(n.substring(0,K)),G.push(n.substring(K+1)));return{keys:q,values:G}};
_.Iu=new KE(typeof document=="undefined"?null:document);var SZe,AeP;SZe=function(){var M=_.Kj.__SAPISID||_.Kj.__APISID||_.Kj.__3PSAPISID||_.Kj.__1PSAPISID||_.Kj.__OVERRIDE_SID;if(M)return!0;typeof document!=="undefined"&&(M=new KE(document),M=M.get("SAPISID")||M.get("APISID")||M.get("__Secure-3PAPISID")||M.get("__Secure-1PAPISID"));return!!M};
AeP=function(M,q,G,K){(M=_.Kj[M])||typeof document==="undefined"||(M=(new KE(document)).get(q));return M?L_x(M,G,K):null};
_.A_$=function(M){var q=pm2(_.Kj==null?void 0:_.Kj.location.href),G=[];if(SZe()){q=q.indexOf("https:")==0||q.indexOf("chrome-extension:")==0||q.indexOf("chrome-untrusted://new-tab-page")==0||q.indexOf("moz-extension:")==0;var K=q?_.Kj.__SAPISID:_.Kj.__APISID;K||typeof document==="undefined"||(K=new KE(document),K=K.get(q?"SAPISID":"APISID")||K.get("__Secure-3PAPISID"));(K=K?L_x(K,q?"SAPISIDHASH":"APISIDHASH",M):null)&&G.push(K);q&&((q=AeP("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",M))&&G.push(q),
(M=AeP("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",M))&&G.push(M))}return G.length==0?null:G.join(" ")};var dTS=function(){this.minSize=1024};
dTS.prototype.compress=function(M){var q,G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:return q=new CompressionStream("gzip"),G=(new Response(q.readable)).arrayBuffer(),K=q.writable.getWriter(),E.yield(K.write((new TextEncoder).encode(M)),2);case 2:return E.yield(K.close(),3);case 3:return n=Uint8Array,E.yield(G,4);case 4:return E.return(new n(E.yieldResult))}})};
dTS.prototype.isSupported=function(M){return M<this.minSize?!1:typeof CompressionStream!=="undefined"};var v_8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(v_8,_.kC);var nE=function(M,q){this.intervalMs=M;this.callback=q;this.enabled=!1;this.nowFn=function(){return _.Sh()};
this.lastTimeMs=this.nowFn()};
nE.prototype.setInterval=function(M){this.intervalMs=M;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
nE.prototype.start=function(){var M=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){M.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
nE.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
nE.prototype.tick=function(){var M=this;if(this.enabled){var q=Math.max(this.nowFn()-this.lastTimeMs,0);q<this.intervalMs*.8?this.timer=setTimeout(function(){M.tick()},this.intervalMs-q):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var hBp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(hBp,_.kC);var t_2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(t_2,_.kC);var OWP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(OWP,_.kC);OWP.prototype.getTransmissionType=function(){return _.tD(this,1)};var Gcy=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Gcy,_.kC);var ES=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ES,_.kC);var qxi=function(M){Lu(K8e,1,M)};
ES.prototype.getModel=function(){return _.hD(this,6)};
var wm9=_.ov(ES);var CQI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(CQI,_.kC);var suy=["platform","platformVersion","architecture","model","uaFullVersion"],K8e=new ES,MSu=null;var Np=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Np,_.kC);var aPd=function(M){return _.Oh(M,1,1)};var o_2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M,4)};
_.l(o_2,_.kC);_.ku=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M,36)};
_.l(_.ku,_.kC);_.ku.prototype.getExperimentIds=function(){return _.t0(this,v_8,16)};var lPI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M,19)};
_.l(lPI,_.kC);lPI.prototype.setLogSource=function(M){return _.Oh(this,2,M)};
lPI.prototype.setScheduler=function(M){return _.Oh(this,10,M)};var PQ9=function(M,q){this.isServiceWorkerScope=q=q===void 0?!1:q;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new lPI;Number.isInteger(M)&&this.logRequest.setLogSource(M);q||(this.locale=document.documentElement.getAttribute("lang"));XmP(this,new Np)};
PQ9.prototype.setLogSource=function(M){this.logRequest.setLogSource(M);return this};
var XmP=function(M,q){_.Xe(M.logRequest,1,q);_.tD(q,1)||aPd(q);M.isServiceWorkerScope||(q=pE(M),_.hD(q,5)||_.DJ(q,5,M.locale));M.uach&&(q=pE(M),_.t0(q,ES,9)||_.Xe(q,9,M.uach))},iWp=function(M,q){M.transmissionType=q},cel=function(M){var q=q===void 0?suy:q;
var G=M.isServiceWorkerScope?void 0:SX();G?nJ4(G,q).then(function(K){M.uach=wm9(K!=null?K:"[]");K=pE(M);_.Xe(K,9,M.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},pE=function(M){var q=_.t0(M.logRequest,Np,1);
q||(q=new Np,XmP(M,q));M=q;q=_.t0(M,CQI,11);q||(q=new CQI,_.Xe(M,11,q));return q};
PQ9.prototype.build=function(M,q,G,K,n,E){q=q===void 0?0:q;G=G===void 0?0:G;K=K===void 0?null:K;n=n===void 0?0:n;E=E===void 0?0:E;if(!this.isServiceWorkerScope){var p=pE(this);var y=new OWP;y=_.Oh(y,1,this.transmissionType);y=_.tu(y,2,this.isFinal);G=_.oT(y,3,G>0?G:void 0);G=_.oT(G,4,n>0?n:void 0);G=_.oT(G,5,E>0?E:void 0);n=G.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;E=n[_.nP]|0;G=cv(G,E)?G:ine(G,n,E)?PPF(G,n):new G.constructor(m5(n,E,!0));_.Xe(p,10,G)}p=this.logRequest.clone();G=Date.now().toString();
p=_.w8(p,4,AE(G));M=M.slice();M=Lu(p,3,M);K&&(p=new hBp,K=_.oT(p,13,K),p=new t_2,K=_.Xe(p,2,K),p=new o_2,K=_.Xe(p,1,K),K=_.Oh(K,2,9),_.Xe(M,18,K));q&&_.Db(M,14,q);return M};OK.prototype.currBackoffCount_=0;OK.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
OK.prototype.getValue=function(){return this.currValue_};
var g_2=function(M){M.currBaseValue_=Math.min(M.maxValue_,M.currBaseValue_*M.backoffFactor_);M.currValue_=Math.min(M.maxValue_,M.currBaseValue_+(M.randomFactor_?Math.round(M.randomFactor_*(Math.random()-.5)*2*M.currBaseValue_):0));M.currBackoffCount_++};var lU9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M,8)};
_.l(lU9,_.kC);var BYx=_.ov(lU9);var XIv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(XIv,_.kC);var yJ;yJ=new PP8;var LE=function(M){_.uI.call(this);var q=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$9700_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$9700_sendBeaconApiEnabled=!1;this.logSource=M.logSource;this.getAuthHeaderValue=
M.getAuthHeaderValue||function(){};
this.logRequestBuilder=new PQ9(M.logSource,M.isServiceWorkerScope);this.network=M.network||null;this.productID=M.productID||null;this.bufferSize=1E3;this.clearcutUrl=M.urlOverride||null;this.sessionIndex=M.sessionIndex||null;this.disableAutomaticFlush=M.disableAutomaticFlush||!1;this.withCredentials=!M.disableWithCredentials;this.isServiceWorkerScope=M.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!SX()&&!!SX().navigator&&SX().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(QYf())).searchParams&&!!(new URL(QYf())).searchParams.set;var G=aPd(new Np);XmP(this.logRequestBuilder,G);this.flushBackoff=new OK(1E4,3E5,.1);M=IP$(this,M.backgroundJobDeferrer);this.JSC$9700_flushTimer=new nE(this.flushBackoff.getValue(),M);this.backupTimer=new nE(6E5,M);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){DT$(q);
var K;(K=q.metalogService)==null||K.flush()}}),document.addEventListener("pagehide",function(){DT$(q);
var K;(K=q.metalogService)==null||K.flush()}))};
_.l(LE,_.uI);var IP$=function(M,q){return M.isBrowserSupported?q?function(){q().then(function(){M.flush()})}:function(){M.flush()}:function(){}};
LE.prototype.disposeInternal=function(){DT$(this);this.JSC$9700_flushTimer.stop();this.backupTimer.stop();_.uI.prototype.disposeInternal.call(this)};
var uSP=function(M){M.clearcutUrl||(M.clearcutUrl=QYf());try{return(new URL(M.clearcutUrl)).toString()}catch(q){return(new URL(M.clearcutUrl,SX().location.origin)).toString()}};
LE.prototype.dispatch=function(M){if(M instanceof _.ku)this.log(M);else try{var q=new _.ku,G=M.serialize();var K=_.DJ(q,8,G);this.log(K)}catch(n){Yu(this,4,1)}};
var Yu=function(M,q,G){M.metalogService&&M.metalogService.increment(q,G)};
LE.prototype.log=function(M){Yu(this,2,1);if(this.isBrowserSupported){M=M.clone();var q=this.sequencePosition++;M=_.Db(M,21,q);this.componentId&&_.DJ(M,26,this.componentId);q=M;if(JdF(_.nu(q,1))==null){var G=Date.now();G=Number.isFinite(G)?G.toString():"0";_.w8(q,1,AE(G))}_.u2y(_.nu(q,15))!=null||_.Db(q,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(G=this.experimentIds.clone(),_.Xe(q,16,G));Yu(this,1,1);q=this.pendingEvents.length-this.bufferSize+1;q>0&&(this.pendingEvents.splice(0,q),
this.numLogsDroppedSinceLastFlush+=q,Yu(this,3,q));this.pendingEvents.push(M);this.disableAutomaticFlush||this.JSC$9700_flushTimer.enabled||this.JSC$9700_flushTimer.start()}};
LE.prototype.flush=function(M,q){var G=this;if(this.pendingEvents.length===0)M&&M();else if(this.JSC$9700_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,Je8(this);else{var K=Date.now();if(this.noFlushUntilMs>K&&this.startWaitingMs<K)q&&q("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?iWp(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var n=this.pendingEvents.length,
E=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),p=this.getAuthHeaderValue();if(p&&this.lastFailedAuth===p)q&&q("stale-auth-token");else{this.pendingEvents=[];this.JSC$9700_flushTimer.enabled&&this.JSC$9700_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;K=E.serialize();var y;this.JSC$9700_compressor&&this.JSC$9700_compressor.isSupported(K.length)&&
(y=this.JSC$9700_compressor.compress(K));var Y=ZWp(this,K,p),A=function(t){G.flushBackoff.reset();G.JSC$9700_flushTimer.setInterval(G.flushBackoff.getValue());if(t){var O=null;try{var a=JSON.stringify(JSON.parse(t.replace(")]}'\n","")));O=BYx(a)}catch(g){}O&&(t=Number(dl(O,1,_.bS("-1"))),t>0&&(G.startWaitingMs=Date.now(),G.noFlushUntilMs=G.startWaitingMs+t),Gsw(O.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,yJ.fieldIndex),MRj(O,yJ.fieldIndex),O=yJ.ctor?yJ.getExtensionFn(O,yJ.ctor,yJ.fieldIndex,
yJ.JSC$8880_hasMessageId):yJ.getExtensionFn(O,yJ.fieldIndex,null,yJ.JSC$8880_hasMessageId),O=O===null?void 0:O)&&(O=_.Au(O,1,-1),O!==-1&&(G.flushBackoff=new OK(O<1?1:O,3E5,.1),G.JSC$9700_flushTimer.setInterval(G.flushBackoff.getValue())))}M&&M();G.numRetriesSinceLastSuccessfulFlush=0},v=function(t,O){var a=_.Ya(E,_.ku,3,_.WX());
var g=Number(dl(E,14));g_2(G.flushBackoff);G.JSC$9700_flushTimer.setInterval(G.flushBackoff.getValue());t===401&&p&&(G.lastFailedAuth=p);g&&(G.numLogsDroppedSinceLastFlush+=g);O===void 0&&(O=G.isRetryable(t));O&&(G.pendingEvents=a.concat(G.pendingEvents),G.disableAutomaticFlush||G.JSC$9700_flushTimer.enabled||G.JSC$9700_flushTimer.start());Yu(G,7,1);q&&q("net-send-failed",t);++G.numRetriesSinceLastSuccessfulFlush},h=function(){G.network&&G.network.send(Y,A,v)};
y?y.then(function(t){Yu(G,5,n);Y.requestHeaders["Content-Encoding"]="gzip";Y.requestHeaders["Content-Type"]="application/binary";Y.body=t;Y.bodyType=2;h()},function(){Yu(G,6,n);
h()}):h()}}}};
var ZWp=function(M,q,G){G=G===void 0?null:G;var K=K===void 0?M.withCredentials:K;var n={},E=new URL(uSP(M));G&&(n.Authorization=G);M.sessionIndex&&(n["X-Goog-AuthUser"]=M.sessionIndex,E.searchParams.set("authuser",M.sessionIndex));M.pageId&&(Object.defineProperty(n,"X-Goog-PageId",{value:M.pageId}),E.searchParams.set("pageId",M.pageId));return{url:E.toString(),body:q,bodyType:1,requestHeaders:n,requestType:"POST",withCredentials:K,timeoutMillis:M.timeoutMillis}},DT$=function(M){M.logRequestBuilder.isFinal=
!0;
M.flush();M.logRequestBuilder.isFinal=!1},Je8=function(M){bWv(M,function(q,G){q=new URL(q);
q.searchParams.set("format","json");var K=!1;try{K=SX().navigator.sendBeacon(q.toString(),G.serialize())}catch(n){}K||(M.isSendBeaconSupported=!1);return K})},bWv=function(M,q){if(M.pendingEvents.length!==0){var G=new URL(uSP(M));
G.searchParams.delete("format");var K=M.getAuthHeaderValue();K&&G.searchParams.set("auth",K);G.searchParams.set("authuser",M.sessionIndex||"0");for(K=0;K<10&&M.pendingEvents.length;++K){var n=M.pendingEvents.slice(0,32),E=M.logRequestBuilder.build(n,M.numLogsDroppedSinceLastFlush,M.numRetriesSinceLastSuccessfulFlush,M.productID,M.persistedLogRecoveredCount,M.persistedLogExpiredCount);if(!q(G.toString(),E)){++M.numRetriesSinceLastSuccessfulFlush;break}M.numLogsDroppedSinceLastFlush=0;M.numRetriesSinceLastSuccessfulFlush=
0;M.persistedLogRecoveredCount=0;M.persistedLogExpiredCount=0;M.pendingEvents=M.pendingEvents.slice(n.length)}M.JSC$9700_flushTimer.enabled&&M.JSC$9700_flushTimer.stop()}};
LE.prototype.isRetryable=function(M){return 500<=M&&M<600||M===401||M===0};
var QYf=function(){return"https://play.google.com/log?format=json&hasfast=true"};var UTM=function(){this.abortSupported=typeof AbortController!=="undefined"};
UTM.prototype.send=function(M,q,G){var K=this,n,E,p,y,Y,A,v,h,t,O;return _.L(function(a){switch(a.nextAddress){case 1:return E=(n=K.abortSupported?new AbortController:void 0)?setTimeout(function(){n.abort()},M.timeoutMillis):void 0,_.Cv(a,2,3),p=Object.assign({},{method:M.requestType,
headers:Object.assign({},M.requestHeaders)},M.body&&{body:M.body},M.withCredentials&&{credentials:"include"},{signal:M.timeoutMillis&&n?n.signal:null}),a.yield(fetch(M.url,p),5);case 5:y=a.yieldResult;if(y.status!==200){(Y=G)==null||Y(y.status);a.jumpTo(3);break}if((A=q)==null){a.jumpTo(7);break}return a.yield(y.text(),8);case 8:A(a.yieldResult);case 7:case 3:_.oS(a);clearTimeout(E);_.Xr(a,0);break;case 2:v=_.i5(a);switch((h=v)==null?void 0:h.name){case "AbortError":(t=G)==null||t(408);break;default:(O=
G)==null||O(400)}a.jumpTo(3)}})};
UTM.prototype.getTransmissionType=function(){return 4};_.aE=function(M,q){q=q===void 0?"0":q;_.uI.call(this);this.logSource=M;this.sessionIndex=q;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$9718_clearExperimentIds=this.productID=null;this.JSC$9718_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.l(_.aE,_.uI);var dz4=function(M,q){M.buildLabel=q;return M},ALy=function(M,q){M.network=q;
return M},h9s=function(M,q){M.JSC$9718_clearExperimentIds=q},W8$=function(M){M.JSC$9718_sendBeaconApiEnabled=!0;
return M};
_.aE.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.aE.prototype.build=function(){this.network||(this.network=new UTM);var M=new LE({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.A_$,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.oE(this,M);if(this.buildLabel){var q=this.buildLabel,G=
pE(M.logRequestBuilder);_.DJ(G,7,q)}M.JSC$9700_compressor=new dTS;this.componentId&&(M.componentId=this.componentId);this.productID&&(M.productID=this.productID);this.pageId&&(M.pageId=this.pageId);this.JSC$9718_clearExperimentIds&&((G=this.JSC$9718_clearExperimentIds)?(M.experimentIds||(M.experimentIds=new v_8),q=M.experimentIds,G=G.serialize(),_.DJ(q,4,G)):M.experimentIds&&_.w8(M.experimentIds,4));this.JSC$9718_sendBeaconApiEnabled&&(M.JSC$9700_sendBeaconApiEnabled=M.isSendBeaconSupported);cel(M.logRequestBuilder);
this.bufferSize&&(M.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(M);return M};var wRu=function(M,q,G,K,n,E,p){M=M===void 0?-1:M;q=q===void 0?"":q;G=G===void 0?"":G;K=K===void 0?!1:K;n=n===void 0?"":n;_.uI.call(this);this.logSource=M;this.componentId=q;E?q=E:(M=new _.aE(M,"0"),M.componentId=q,_.oE(this,M),G!==""&&(M.destinationUrl=G),K&&(M.serviceWorkerScopeEnabled=!0),n&&dz4(M,n),p&&ALy(M,p),q=M.build());this.JSC$9722_transport=q};
_.l(wRu,_.uI);wRu.prototype.flush=function(M){M=M||[];if(M.length){for(var q=new n_B,G=[],K=0;K<M.length;K++){var n=M[K],E=kLI(n);G.push(E);n.clear()}Lu(q,1,G);this.JSC$9722_transport.dispatch(q);this.JSC$9722_transport.flush()}};var xT9=function(M){this.cellValue=M};var WT=function(M,q,G){this.JSC$9727_metricName=M;this.cellType=q;this.fields=G||[];this.cellMap=new Map},NY$=function(M){return M.fields.map(function(q){return q.fieldType})},E_J=function(M){return M.fields.map(function(q){return q.fieldName})};
_.N=WT.prototype;_.N.addCell=function(M){var q=_.rW.apply(1,arguments),G=this.getCells(q);G?G.push(new xT9(M)):this.JSC$9727_setCell(M,q)};
_.N.JSC$9727_setCell=function(M){var q=this.JSC$9727_getKey(_.rW.apply(1,arguments));this.cellMap.set(q,[new xT9(M)])};
_.N.getCells=function(){var M=this.JSC$9727_getKey(_.rW.apply(0,arguments));return this.cellMap.has(M)?this.cellMap.get(M):void 0};
_.N.getCell=function(){var M=this.getCells(_.rW.apply(0,arguments));return M&&M.length?M[0]:void 0};
_.N.clear=function(){this.cellMap.clear()};
_.N.JSC$9727_getKey=function(){var M=_.rW.apply(0,arguments);return M?M.join(","):"key"};var zBP=function(M,q){WT.call(this,M,3,q)};
_.l(zBP,WT);zBP.prototype.JSC$9730_incrementCounterBy=function(M){var q=_.rW.apply(1,arguments),G=0,K=this.getCell(q);K&&(G=K.cellValue);this.JSC$9727_setCell(G+M,q)};var mTI=function(M,q){WT.call(this,M,2,q)};
_.l(mTI,WT);mTI.prototype.record=function(M){this.addCell(M,_.rW.apply(1,arguments))};_.Ao=function(M){this.id=M};
_.Ao.prototype.toString=function(){return this.id};_.d6=function(M,q){this.type=M instanceof _.Ao?String(M):M;this.currentTarget=this.target=q;this.defaultPrevented=this.propagationStopped_=!1};
_.d6.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.d6.prototype.preventDefault=function(){this.defaultPrevented=!0};_.vT=function(M,q){_.d6.call(this,M?M.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;M&&this.init(M,q)};
_.TO(_.vT,_.d6);
_.vT.prototype.init=function(M,q){var G=this.type=M.type,K=M.changedTouches&&M.changedTouches.length?M.changedTouches[0]:null;this.target=M.target||M.srcElement;this.currentTarget=q;q=M.relatedTarget;q||(G=="mouseover"?q=M.fromElement:G=="mouseout"&&(q=M.toElement));this.relatedTarget=q;K?(this.clientX=K.clientX!==void 0?K.clientX:K.pageX,this.clientY=K.clientY!==void 0?K.clientY:K.pageY,this.screenX=K.screenX||0,this.screenY=K.screenY||0):(this.offsetX=_.Hh||M.offsetX!==void 0?M.offsetX:M.layerX,
this.offsetY=_.Hh||M.offsetY!==void 0?M.offsetY:M.layerY,this.clientX=M.clientX!==void 0?M.clientX:M.pageX,this.clientY=M.clientY!==void 0?M.clientY:M.pageY,this.screenX=M.screenX||0,this.screenY=M.screenY||0);this.button=M.button;this.keyCode=M.keyCode||0;this.key=M.key||"";this.charCode=M.charCode||(G=="keypress"?M.keyCode:0);this.ctrlKey=M.ctrlKey;this.altKey=M.altKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.pointerId=M.pointerId||0;this.pointerType=M.pointerType;this.state=M.state;
this.timeStamp=M.timeStamp;this.event_=M;M.defaultPrevented&&_.vT.superClass_.preventDefault.call(this)};
_.vT.prototype.isButton=function(M){return this.event_.button==M};
_.vT.prototype.stopPropagation=function(){_.vT.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.vT.prototype.preventDefault=function(){_.vT.superClass_.preventDefault.call(this);var M=this.event_;M.preventDefault?M.preventDefault():M.returnValue=!1};var S9l="closure_listenable_"+(Math.random()*1E6|0),ho=function(M){return!(!M||!M[S9l])};var TYd=0;var rep=function(M,q,G,K,n){this.listener=M;this.proxy=null;this.src=q;this.type=G;this.capture=!!K;this.handler=n;this.key=++TYd;this.removed=this.callOnce=!1},jY8=function(M){M.removed=!0;
M.listener=null;M.proxy=null;M.src=null;M.handler=null};wc.prototype.add=function(M,q,G,K,n){var E=M.toString();M=this.listeners[E];M||(M=this.listeners[E]=[],this.typeCount_++);var p=V_$(M,q,K,n);p>-1?(q=M[p],G||(q.callOnce=!1)):(q=new rep(q,this.src,E,!!K,n),q.callOnce=G,M.push(q));return q};
wc.prototype.remove=function(M,q,G,K){M=M.toString();if(!(M in this.listeners))return!1;var n=this.listeners[M];q=V_$(n,q,G,K);return q>-1?(jY8(n[q]),_.Qyw(n,q),n.length==0&&(delete this.listeners[M],this.typeCount_--),!0):!1};
var RBl=function(M,q){var G=q.type;if(!(G in M.listeners))return!1;var K=_.my(M.listeners[G],q);K&&(jY8(q),M.listeners[G].length==0&&(delete M.listeners[G],M.typeCount_--));return K};
wc.prototype.removeAll=function(M){M=M&&M.toString();var q=0,G;for(G in this.listeners)if(!M||G==M){for(var K=this.listeners[G],n=0;n<K.length;n++)++q,jY8(K[n]);delete this.listeners[G];this.typeCount_--}return q};
wc.prototype.getListener=function(M,q,G,K){M=this.listeners[M.toString()];var n=-1;M&&(n=V_$(M,q,G,K));return n>-1?M[n]:null};
wc.prototype.hasListener=function(M,q){var G=M!==void 0,K=G?M.toString():"",n=q!==void 0;return _.xP.some(this.listeners,function(E){for(var p=0;p<E.length;++p)if(!(G&&E[p].type!=K||n&&E[p].capture!=q))return!0;return!1})};
var V_$=function(M,q,G,K){for(var n=0;n<M.length;++n){var E=M[n];if(!E.removed&&E.listener==q&&E.capture==!!G&&E.handler==K)return n}return-1};var fPf,F_J,HWP,$Tl,s9I,kj,pl,G_9,MKB,qbI,to,KTx,eBP;fPf="closure_lm_"+(Math.random()*1E6|0);F_J={};HWP=0;_.Yj=function(M,q,G,K,n){if(K&&K.once)return kj(M,q,G,K,n);if(Array.isArray(q)){for(var E=0;E<q.length;E++)_.Yj(M,q[E],G,K,n);return null}G=eBP(G);return ho(M)?M.listen(q,G,_.VY(K)?!!K.capture:!!K,n):$Tl(M,q,G,!1,K,n)};
$Tl=function(M,q,G,K,n,E){if(!q)throw Error("va");var p=_.VY(n)?!!n.capture:!!n,y=to(M);y||(M[fPf]=y=new wc(M));G=y.add(q,G,K,p,E);if(G.proxy)return G;K=s9I();G.proxy=K;K.src=M;K.listener=G;if(M.addEventListener)_.MM9||(n=p),n===void 0&&(n=!1),M.addEventListener(q.toString(),K,n);else if(M.attachEvent)M.attachEvent(MKB(q.toString()),K);else if(M.addListener&&M.removeListener)M.addListener(K);else throw Error("wa");HWP++;return G};
s9I=function(){var M=qbI,q=function(G){return M.call(q.src,q.listener,G)};
return q};
kj=function(M,q,G,K,n){if(Array.isArray(q)){for(var E=0;E<q.length;E++)kj(M,q[E],G,K,n);return null}G=eBP(G);return ho(M)?M.listenOnce(q,G,_.VY(K)?!!K.capture:!!K,n):$Tl(M,q,G,!0,K,n)};
_.OS=function(M,q,G,K,n){if(Array.isArray(q))for(var E=0;E<q.length;E++)_.OS(M,q[E],G,K,n);else K=_.VY(K)?!!K.capture:!!K,G=eBP(G),ho(M)?M.unlisten(q,G,K,n):M&&(M=to(M))&&(q=M.getListener(q,G,K,n))&&pl(q)};
pl=function(M){if(typeof M==="number"||!M||M.removed)return!1;var q=M.src;if(ho(q))return RBl(q.eventTargetListeners_,M);var G=M.type,K=M.proxy;q.removeEventListener?q.removeEventListener(G,K,M.capture):q.detachEvent?q.detachEvent(MKB(G),K):q.addListener&&q.removeListener&&q.removeListener(K);HWP--;(G=to(q))?(RBl(G,M),G.typeCount_==0&&(G.src=null,q[fPf]=null)):jY8(M);return!0};
G_9=function(M,q,G,K,n){G=eBP(G);K=!!K;return ho(M)?M.getListener(q,G,K,n):M?(M=to(M))?M.getListener(q,G,K,n):null:null};
MKB=function(M){return M in F_J?F_J[M]:F_J[M]="on"+M};
qbI=function(M,q){if(M.removed)M=!0;else{q=new _.vT(q,this);var G=M.listener,K=M.handler||M.src;M.callOnce&&pl(M);M=G.call(K,q)}return M};
to=function(M){M=M[fPf];return M instanceof wc?M:null};
KTx="__closure_events_fn_"+(Math.random()*1E9>>>0);eBP=function(M){if(typeof M==="function")return M;M[KTx]||(M[KTx]=function(q){return M.handleEvent(q)});
return M[KTx]};_.w6=function(){_.uI.call(this);this.eventTargetListeners_=new wc(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.TO(_.w6,_.uI);_.w6.prototype[S9l]=!0;_.N=_.w6.prototype;_.N.setParentEventTarget=function(M){this.parentEventTarget_=M};
_.N.addEventListener=function(M,q,G,K){_.Yj(this,M,q,G,K)};
_.N.removeEventListener=function(M,q,G,K){_.OS(this,M,q,G,K)};
_.N.dispatchEvent=function(M){var q,G=this.parentEventTarget_;if(G)for(q=[];G;G=G.parentEventTarget_)q.push(G);G=this.actualEventTarget_;var K=M.type||M;if(typeof M==="string")M=new _.d6(M,G);else if(M instanceof _.d6)M.target=M.target||G;else{var n=M;M=new _.d6(K,G);_.xP.extend(M,n)}n=!0;var E;if(q)for(E=q.length-1;!M.propagationStopped_&&E>=0;E--){var p=M.currentTarget=q[E];n=n2M(p,K,!0,M)&&n}M.propagationStopped_||(p=M.currentTarget=G,n=n2M(p,K,!0,M)&&n,M.propagationStopped_||(n=n2M(p,K,!1,M)&&
n));if(q)for(E=0;!M.propagationStopped_&&E<q.length;E++)p=M.currentTarget=q[E],n=n2M(p,K,!1,M)&&n;return n};
_.N.disposeInternal=function(){_.w6.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.N.listen=function(M,q,G,K){return this.eventTargetListeners_.add(String(M),q,!1,G,K)};
_.N.listenOnce=function(M,q,G,K){return this.eventTargetListeners_.add(String(M),q,!0,G,K)};
_.N.unlisten=function(M,q,G,K){return this.eventTargetListeners_.remove(String(M),q,G,K)};
_.N.removeAllListeners=function(M){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(M):0};
var n2M=function(M,q,G,K){q=M.eventTargetListeners_.listeners[String(q)];if(!q)return!0;q=q.concat();for(var n=!0,E=0;E<q.length;++E){var p=q[E];if(p&&!p.removed&&p.capture==G){var y=p.listener,Y=p.handler||p.src;p.callOnce&&RBl(M.eventTargetListeners_,p);n=y.call(Y,K)!==!1&&n}}return n&&!K.defaultPrevented};
_.w6.prototype.getListener=function(M,q,G,K){return this.eventTargetListeners_.getListener(String(M),q,G,K)};
_.w6.prototype.hasListener=function(M,q){return this.eventTargetListeners_.hasListener(M!==void 0?String(M):void 0,q)};var CE=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(M){return M&&AsyncContext.Snapshot.wrap(M)}:function(M){return M};var E2J=function(M,q){this.create_=M;this.reset_=q;this.occupants_=0;this.JSC$9762_head_=null};
E2J.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var M=this.JSC$9762_head_;this.JSC$9762_head_=M.next;M.next=null}else M=this.create_();return M};
E2J.prototype.put=function(M){this.reset_(M);this.occupants_<100&&(this.occupants_++,M.next=this.JSC$9762_head_,this.JSC$9762_head_=M)};var NUJ=function(){this.workTail_=this.workHead_=null};
NUJ.prototype.add=function(M,q){var G=NPs.get();G.set(M,q);this.workTail_?this.workTail_.next=G:this.workHead_=G;this.workTail_=G};
NUJ.prototype.remove=function(){var M=null;this.workHead_&&(M=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),M.next=null);return M};
var NPs=new E2J(function(){return new k_d},function(M){return M.reset()}),k_d=function(){this.next=this.scope=this.fn=null};
k_d.prototype.set=function(M,q){this.fn=M;this.scope=q;this.next=null};
k_d.prototype.reset=function(){this.next=this.scope=this.fn=null};var pMS,kci,EJu,y39;kci=!1;EJu=new NUJ;_.ai=function(M,q){pMS||y39();kci||(pMS(),kci=!0);EJu.add(M,q)};
y39=function(){var M=Promise.resolve(void 0);pMS=function(){M.then(pRj)}};var LTl=function(M){M.prototype.$goog_Thenable=!0},Yb$=function(M){if(!M)return!1;
try{return!!M.$goog_Thenable}catch(q){return!1}};var WT2,A3B,d$p,hyd,tKf,OX$,o2B,Pf$,BU9,c32,Ysu;_.X4=function(M,q){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(M!=_.vp)try{var G=this;M.call(q,function(K){G.resolve_(2,K)},function(K){G.resolve_(3,K)})}catch(K){this.resolve_(3,K)}};
WT2=function(){this.next=this.context=this.JSC$9773_onRejected=this.JSC$9773_onFulfilled=this.child=null;this.always=!1};
WT2.prototype.reset=function(){this.context=this.JSC$9773_onRejected=this.JSC$9773_onFulfilled=this.child=null;this.always=!1};
A3B=new E2J(function(){return new WT2},function(M){M.reset()});
d$p=function(M,q,G){var K=A3B.get();K.JSC$9773_onFulfilled=M;K.JSC$9773_onRejected=q;K.context=G;return K};
_.HF=function(M){if(M instanceof _.X4)return M;var q=new _.X4(_.vp);q.resolve_(2,M);return q};
_.Aj=function(M){return new _.X4(function(q,G){G(M)})};
hyd=function(M,q,G){v2I(M,q,G,null)||_.ai(_.n7(q,M))};
_.oi=function(M){return new _.X4(function(q,G){var K=M.length,n=[];if(K)for(var E=function(A,v){K--;n[A]=v;K==0&&q(n)},p=function(A){G(A)},y,Y=0;Y<M.length;Y++)y=M[Y],hyd(y,_.n7(E,Y),p);
else q(n)})};
tKf=function(M){return new _.X4(function(q){var G=M.length,K=[];if(G)for(var n=function(y,Y,A){G--;K[y]=Y?{fulfilled:!0,value:A}:{fulfilled:!1,reason:A};G==0&&q(K)},E,p=0;p<M.length;p++)E=M[p],hyd(E,_.n7(n,p,!0),_.n7(n,p,!1));
else q(K)})};
OX$=function(M){return new _.X4(function(q,G){var K=M.length,n=[];if(K)for(var E=function(A){q(A)},p=function(A,v){K--;
n[A]=v;K==0&&G(n)},y,Y=0;Y<M.length;Y++)y=M[Y],hyd(y,E,_.n7(p,Y));
else q(void 0)})};
_.u8=function(){var M,q,G=new _.X4(function(K,n){M=K;q=n});
return new wMp(G,M,q)};
_.X4.prototype.then=function(M,q,G){return Cf8(this,CE(typeof M==="function"?M:null),CE(typeof q==="function"?q:null),G)};
LTl(_.X4);o2B=function(M,q,G,K){ak9(M,d$p(q||_.vp,G||null,K))};
_.l2=function(M,q){q=CE(q);q=d$p(q,q);q.always=!0;ak9(M,q);return M};
_.X4.prototype.finally=function(M){var q=this;M=CE(M);return new _.X4(function(G,K){o2B(q,function(n){M();G(n)},function(n){M();
K(n)})})};
_.X4.prototype.thenCatch=function(M,q){return Cf8(this,null,CE(M),q)};
_.X4.prototype.catch=_.X4.prototype.thenCatch;_.X4.prototype.cancel=function(M){if(this.state_==0){var q=new _.l_(M);_.ai(function(){lk$(this,q)},this)}};
var lk$=function(M,q){if(M.state_==0)if(M.parent_){var G=M.parent_;if(G.callbackEntries_){for(var K=0,n=null,E=null,p=G.callbackEntries_;p&&(p.always||(K++,p.child==M&&(n=p),!(n&&K>1)));p=p.next)n||(E=p);n&&(G.state_==0&&K==1?lk$(G,q):(E?(K=E,K.next==G.callbackEntriesTail_&&(G.callbackEntriesTail_=K),K.next=K.next.next):XMd(G),Pf$(G,n,3,q)))}M.parent_=null}else M.resolve_(3,q)},ak9=function(M,q){M.callbackEntries_||M.state_!=2&&M.state_!=3||iXp(M);
M.callbackEntriesTail_?M.callbackEntriesTail_.next=q:M.callbackEntries_=q;M.callbackEntriesTail_=q},Cf8=function(M,q,G,K){var n=d$p(null,null,null);
n.child=new _.X4(function(E,p){n.JSC$9773_onFulfilled=q?function(y){try{var Y=q.call(K,y);E(Y)}catch(A){p(A)}}:E;
n.JSC$9773_onRejected=G?function(y){try{var Y=G.call(K,y);Y===void 0&&y instanceof _.l_?p(y):E(Y)}catch(A){p(A)}}:p});
n.child.parent_=M;ak9(M,n);return n.child};
_.X4.prototype.unblockAndFulfill_=function(M){this.state_=0;this.resolve_(2,M)};
_.X4.prototype.unblockAndReject_=function(M){this.state_=0;this.resolve_(3,M)};
_.X4.prototype.resolve_=function(M,q){this.state_==0&&(this===q&&(M=3,q=new TypeError("xa")),this.state_=1,v2I(q,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=q,this.state_=M,this.parent_=null,iXp(this),M!=3||q instanceof _.l_||c32(this,q)))};
var v2I=function(M,q,G,K){if(M instanceof _.X4)return o2B(M,q,G,K),!0;if(Yb$(M))return M.then(q,G,K),!0;if(_.VY(M))try{var n=M.then;if(typeof n==="function")return g2B(M,n,q,G,K),!0}catch(E){return G.call(K,E),!0}return!1},g2B=function(M,q,G,K,n){var E=!1,p=function(Y){E||(E=!0,G.call(n,Y))},y=function(Y){E||(E=!0,K.call(n,Y))};
try{q.call(M,p,y)}catch(Y){y(Y)}},iXp=function(M){M.executing_||(M.executing_=!0,_.ai(M.executeCallbacks_,M))},XMd=function(M){var q=null;
M.callbackEntries_&&(q=M.callbackEntries_,M.callbackEntries_=q.next,q.next=null);M.callbackEntries_||(M.callbackEntriesTail_=null);return q};
_.X4.prototype.executeCallbacks_=function(){for(var M;M=XMd(this);)Pf$(this,M,this.state_,this.result_);this.executing_=!1};
Pf$=function(M,q,G,K){if(G==3&&q.JSC$9773_onRejected&&!q.always)for(;M&&M.hadUnhandledRejection_;M=M.parent_)M.hadUnhandledRejection_=!1;if(q.child)q.child.parent_=null,BU9(q,G,K);else try{q.always?q.JSC$9773_onFulfilled.call(q.context):BU9(q,G,K)}catch(n){Ysu.call(null,n)}A3B.put(q)};
BU9=function(M,q,G){q==2?M.JSC$9773_onFulfilled.call(M.context,G):M.JSC$9773_onRejected&&M.JSC$9773_onRejected.call(M.context,G)};
c32=function(M,q){M.hadUnhandledRejection_=!0;_.ai(function(){M.hadUnhandledRejection_&&Ysu.call(null,q)})};
Ysu=nj;_.l_=function(M){_.qD.call(this,M)};
_.TO(_.l_,_.qD);_.l_.prototype.name="cancel";var wMp=function(M,q,G){this.promise=M;this.resolve=q;this.reject=G};var Xl;_.th=function(M,q){_.w6.call(this);this.JSC$9785_interval_=M||1;this.timerObject_=q||_.Kj;this.boundTick_=(0,_.Ju)(this.tick_,this);this.last_=_.Sh()};
_.TO(_.th,_.w6);_.N=_.th.prototype;_.N.enabled=!1;_.N.JSC$9787_timer_=null;_.N.setInterval=function(M){this.JSC$9785_interval_=M;this.JSC$9787_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$9787_timer_&&this.stop()};
_.N.tick_=function(){if(this.enabled){var M=_.Sh()-this.last_;M>0&&M<this.JSC$9785_interval_*.8?this.JSC$9787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9785_interval_-M):(this.JSC$9787_timer_&&(this.timerObject_.clearTimeout(this.JSC$9787_timer_),this.JSC$9787_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.N.start=function(){this.enabled=!0;this.JSC$9787_timer_||(this.JSC$9787_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$9785_interval_),this.last_=_.Sh())};
_.N.stop=function(){this.enabled=!1;this.JSC$9787_timer_&&(this.timerObject_.clearTimeout(this.JSC$9787_timer_),this.JSC$9787_timer_=null)};
_.N.disposeInternal=function(){_.th.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
Xl=function(M,q,G){if(typeof M==="function")G&&(M=(0,_.Ju)(M,G));else if(M&&typeof M.handleEvent=="function")M=(0,_.Ju)(M.handleEvent,M);else throw Error("ya");return Number(q)>2147483647?-1:_.Kj.setTimeout(M,q||0)};
_.Q9l=function(M){var q=null;return(new _.X4(function(G,K){q=Xl(function(){G(void 0)},M);
q==-1&&K(Error("za"))})).thenCatch(function(G){_.Kj.clearTimeout(q);
throw G;})};var lI=function(M){_.uI.call(this);this.streamzLogger=M;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$9791_flushTimer=new _.th(this.flushInterval);this.JSC$9791_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.oE(this,this.JSC$9791_flushTimer)};
_.l(lI,_.uI);lI.prototype.sendIsolatedPayload=function(M){this.shouldSendIsolatedPayload=M;this.invocationLimit=1};
var Ik$=function(M){M.JSC$9791_flushTimer.enabled||M.JSC$9791_flushTimer.start();M.invocationCount++;M.invocationCount>=M.invocationLimit&&M.snapshotAndFlush()};
lI.prototype.snapshotAndFlush=function(){var M=this.metricMap.values();M=[].concat(_.Ui(M)).filter(function(q){return q.cellMap.size});
M.length&&this.streamzLogger.flush(M,this.shouldSendIsolatedPayload);D$9(M);this.invocationCount=0;this.JSC$9791_flushTimer.enabled&&this.JSC$9791_flushTimer.stop()};
lI.prototype.addNewCounter=function(M){var q=_.rW.apply(1,arguments);this.metricMap.has(M)||this.metricMap.set(M,new zBP(M,q))};
lI.prototype.addNewEventMetric=function(M){var q=_.rW.apply(1,arguments);this.metricMap.has(M)||this.metricMap.set(M,new mTI(M,q))};
var u19=function(M,q){return M.disabledMetrics.has(q)?void 0:M.metricMap.get(q)};
lI.prototype.JSC$9791_incrementCounter=function(M){this.JSC$9791_incrementCounterBy(M,1,_.rW.apply(1,arguments))};
lI.prototype.JSC$9791_incrementCounterBy=function(M,q){var G=_.rW.apply(2,arguments),K=u19(this,M);K&&K instanceof zBP&&(K.JSC$9730_incrementCounterBy(q,G),Ik$(this))};
lI.prototype.record=function(M,q){var G=_.rW.apply(2,arguments),K=u19(this,M);K&&K instanceof mTI&&(K.record(q,G),Ik$(this))};
var D$9=function(M){for(var q=0;q<M.length;q++)M[q].clear()};_.PT=function(M,q,G){G=G===void 0?{}:G;q=Error.call(this,q);this.message=q.message;"stack"in q&&(this.stack=q.stack);this.code=M;this.metadata=G;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(_.PT,Error);_.PT.prototype.toString=function(){var M="RpcError("+(L8s(this.code)||String(this.code))+")";this.message&&(M+=": "+this.message);return M};_.J3d=_.Kj.JSON.parse;_.i2=_.Kj.JSON.stringify;_.dt=_.Kj.JSON.parse;_.ZX2=function(M){switch(M){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 bXP=function(M){switch(M){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var U$J,x$v=function(){};
_.TO(x$v,_.Yx$);x$v.prototype.createInstance=function(){return new XMLHttpRequest};
U$J=new x$v;_.cT=function(M){_.w6.call(this);this.headers=new Map;this.JSC$9800_xmlHttpFactory_=M||null;this.JSC$9800_active_=!1;this.JSC$9800_xhr_=null;this.JSC$9800_lastUri_="";this.JSC$9800_lastErrorCode_=0;this.JSC$9800_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$9800_timeoutId_=null;this.responseType_="";this.JSC$9800_withCredentials_=!1};
_.TO(_.cT,_.w6);var zy8=/^https?$/i,m$p=["POST","PUT"],Sb8=[],jeH=function(M,q,G,K,n,E,p){var y=new _.cT;Sb8.push(y);q&&y.listen("complete",q);y.listenOnce("ready",y.cleanupSend_);E&&(y.timeoutInterval_=Math.max(0,E));p&&(y.JSC$9800_withCredentials_=p);y.send(M,G,K,n)};
_.cT.prototype.cleanupSend_=function(){this.dispose();_.my(Sb8,this)};
_.cT.prototype.send=function(M,q,G,K){if(this.JSC$9800_xhr_)throw Error("Aa`"+this.JSC$9800_lastUri_+"`"+M);q=q?q.toUpperCase():"GET";this.JSC$9800_lastUri_=M;this.JSC$9800_lastError_="";this.JSC$9800_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$9800_active_=!0;this.JSC$9800_xhr_=this.createXhr();this.JSC$9800_xhr_.onreadystatechange=CE((0,_.Ju)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$9800_xhr_.open(q,String(M),!0),this.inOpen_=!1}catch(p){TUJ(this,p);return}M=G||"";G=new Map(this.headers);
if(K)if(Object.getPrototypeOf(K)===Object.prototype)for(var n in K)G.set(n,K[n]);else if(typeof K.keys==="function"&&typeof K.get==="function"){n=_.k(K.keys());for(var E=n.next();!E.done;E=n.next())E=E.value,G.set(E,K.get(E))}else throw Error("Ba`"+String(K));K=Array.from(G.keys()).find(function(p){return"content-type"==p.toLowerCase()});
n=_.Kj.FormData&&M instanceof _.Kj.FormData;!_.zF(m$p,q)||K||n||G.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");q=_.k(G);for(K=q.next();!K.done;K=q.next())G=_.k(K.value),K=G.next().value,G=G.next().value,this.JSC$9800_xhr_.setRequestHeader(K,G);this.responseType_&&(this.JSC$9800_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$9800_xhr_&&this.JSC$9800_xhr_.withCredentials!==this.JSC$9800_withCredentials_&&(this.JSC$9800_xhr_.withCredentials=this.JSC$9800_withCredentials_);
try{this.JSC$9800_timeoutId_&&(clearTimeout(this.JSC$9800_timeoutId_),this.JSC$9800_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$9800_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$9800_xhr_.send(M),this.inSend_=!1}catch(p){TUJ(this,p)}};
_.cT.prototype.createXhr=function(){return this.JSC$9800_xmlHttpFactory_?this.JSC$9800_xmlHttpFactory_.createInstance():U$J.createInstance()};
_.cT.prototype.timeout_=function(){typeof Ky9!="undefined"&&this.JSC$9800_xhr_&&(this.JSC$9800_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$9800_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var TUJ=function(M,q){M.JSC$9800_active_=!1;M.JSC$9800_xhr_&&(M.inAbort_=!0,M.JSC$9800_xhr_.abort(),M.inAbort_=!1);M.JSC$9800_lastError_=q;M.JSC$9800_lastErrorCode_=5;r3v(M);j9I(M)},r3v=function(M){M.errorDispatched_||(M.errorDispatched_=!0,M.dispatchEvent("complete"),M.dispatchEvent("error"))};
_.cT.prototype.abort=function(M){this.JSC$9800_xhr_&&this.JSC$9800_active_&&(this.JSC$9800_active_=!1,this.inAbort_=!0,this.JSC$9800_xhr_.abort(),this.inAbort_=!1,this.JSC$9800_lastErrorCode_=M||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),j9I(this))};
_.cT.prototype.disposeInternal=function(){this.JSC$9800_xhr_&&(this.JSC$9800_active_&&(this.JSC$9800_active_=!1,this.inAbort_=!0,this.JSC$9800_xhr_.abort(),this.inAbort_=!1),j9I(this,!0));_.cT.superClass_.disposeInternal.call(this)};
_.cT.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)VK9(this);else this.onReadyStateChangeEntryPoint_()};
_.cT.prototype.onReadyStateChangeEntryPoint_=function(){VK9(this)};
var VK9=function(M){if(M.JSC$9800_active_&&typeof Ky9!="undefined")if(M.inSend_&&_.g6(M)==4)setTimeout(M.onReadyStateChange_.bind(M),0);else if(M.dispatchEvent("readystatechange"),M.isComplete()){M.JSC$9800_active_=!1;try{if(M.isSuccess())M.dispatchEvent("complete"),M.dispatchEvent("success");else{M.JSC$9800_lastErrorCode_=6;try{var q=_.g6(M)>2?M.JSC$9800_xhr_.statusText:""}catch(G){q=""}M.JSC$9800_lastError_=q+" ["+M.getStatus()+"]";r3v(M)}}finally{j9I(M)}}},j9I=function(M,q){if(M.JSC$9800_xhr_){M.JSC$9800_timeoutId_&&
(clearTimeout(M.JSC$9800_timeoutId_),M.JSC$9800_timeoutId_=null);
var G=M.JSC$9800_xhr_;M.JSC$9800_xhr_=null;q||M.dispatchEvent("ready");try{G.onreadystatechange=null}catch(K){}}};
_.cT.prototype.isActive=function(){return!!this.JSC$9800_xhr_};
_.cT.prototype.isComplete=function(){return _.g6(this)==4};
_.cT.prototype.isSuccess=function(){var M=this.getStatus(),q;if(!(q=bXP(M))){if(M=M===0)M=eq8(String(this.JSC$9800_lastUri_)),M=!zy8.test(M);q=M}return q};
_.g6=function(M){return M.JSC$9800_xhr_?M.JSC$9800_xhr_.readyState:0};
_.N=_.cT.prototype;_.N.getStatus=function(){try{return _.g6(this)>2?this.JSC$9800_xhr_.status:-1}catch(M){return-1}};
_.N.getResponseText=function(){try{return this.JSC$9800_xhr_?this.JSC$9800_xhr_.responseText:""}catch(M){return""}};
_.N.getResponse=function(){try{if(!this.JSC$9800_xhr_)return null;if("response"in this.JSC$9800_xhr_)return this.JSC$9800_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$9800_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$9800_xhr_)return this.JSC$9800_xhr_.mozResponseArrayBuffer}return null}catch(M){return null}};
_.N.getAllResponseHeaders=function(){return this.JSC$9800_xhr_&&_.g6(this)>=2?this.JSC$9800_xhr_.getAllResponseHeaders()||"":""};
_.N.getLastError=function(){return typeof this.JSC$9800_lastError_==="string"?this.JSC$9800_lastError_:String(this.JSC$9800_lastError_)};var vJy=function(){};
vJy.prototype.send=function(M,q,G){q=q===void 0?function(){}:q;
G=G===void 0?function(){}:G;
jeH(M.url,function(K){K=K.target;K.isSuccess()?q(K.getResponseText()):G(K.getStatus())},M.requestType,M.body,M.requestHeaders,M.timeoutMillis,M.withCredentials)};
vJy.prototype.getTransmissionType=function(){return 1};var Ryd=function(M,q){this.xVw=M;this.event=q;this.startTime=XD()},afj;
Ryd.prototype.done=function(){this.xVw.qR(this.event,XD()-this.startTime)};
var BT=function(){GZ.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.l(BT,GZ);_.QJ=function(M,q,G){var K=XD();q=q();M.qR(G,XD()-K);return q};
afj=function(){BT.apply(this,arguments)};
_.l(afj,BT);_.N=afj.prototype;_.N.tyH=function(){};
_.N.s9=function(){};
_.N.qR=function(){};
_.N.logError=function(){};
_.N.sP=function(){};
_.N.t1q=function(){};
_.N.dpL=function(){};
_.N.rsg=function(){};
var fkM=function(M){BT.call(this);var q=this;this.nB=M;this.TEST_ONLY={mGr:function(){return q.nB},
getExperimentIds:function(){return q.nB.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void q.nB.dispose()})};
_.l(fkM,BT);_.N=fkM.prototype;_.N.update=function(M){this.nB.dispose();this.nB=M};
_.N.s9=function(M){this.nB.s9(M)};
_.N.qR=function(M,q){this.nB.qR(M,q)};
_.N.logError=function(M){this.nB.logError(M)};
_.N.sP=function(){this.nB.sP()};
_.N.t1q=function(M){this.nB.t1q(M)};
_.N.dpL=function(M){this.nB.dpL(M)};
_.N.rsg=function(M){this.nB.rsg(M)};
_.N.tyH=function(M){this.nB.tyH(M)};
var FTP=function(M,q){_.uI.call(this);var G=this;this.callback=M;this.qD7=q;this.jJc=-q;this.addOnDisposeCallback(function(){return void clearTimeout(G.timer)})};
_.l(FTP,_.uI);var HX$=function(M){if(M.timer===void 0){var q=Math.max(0,M.jJc+M.qD7-XD());M.timer=setTimeout(function(){try{M.callback()}finally{M.jJc=XD(),M.timer=void 0}},q)}},eyB=function(M,q){BT.call(this);
this.metrics=M;this.cW=q};
_.l(eyB,BT);_.N=eyB.prototype;_.N.tyH=function(M){this.metrics.bXG.record(M,this.cW)};
_.N.s9=function(M){this.metrics.eventCount.increment(M,this.cW)};
_.N.qR=function(M,q){this.metrics.iQJ.record(q,M,this.cW)};
_.N.logError=function(M){this.metrics.errorCount.increment(M,this.cW)};
_.N.t1q=function(M){this.metrics.m0l.increment(M,this.cW)};
_.N.dpL=function(M){this.metrics.xWA.increment(M,this.cW)};
_.N.rsg=function(M){this.metrics.ag3.increment(M,this.cW)};
var oJw=function(M,q){q=q===void 0?[]:q;var G={cW:M.cW||"_",nBM:M.nBM||[],pHu:M.pHu|0,destinationUrl:M.destinationUrl,hU8:M.hU8||function(){},
uZD:M.uZD||function(E,p){return Cjs(E,p,G.hU8,G.destinationUrl)}},K=G.uZD("51",G.nBM.concat(q));
eyB.call(this,{bXG:new Dyd(K),errorCount:new bSp(K),eventCount:new JuS(K),iQJ:new ZSl(K),qo5:new uDS(K),m0l:new Uyl(K),xWA:new xyI(K),ag3:new zkJ(K)},G.cW);var n=this;this.TEST_ONLY={getExperimentIds:function(){return n.options.nBM.concat(n.yxr).sort(function(E,p){return E-p})}};
this.options=G;this.service=K;this.tHr=!M.uZD;this.flushDebouncer=new FTP(function(){return void n.service.snapshotAndFlush()},G.pHu);
this.addOnDisposeCallback(function(){n.flushDebouncer.dispose();n.tHr&&n.service.dispose()});
(this.yxr=q.slice()).sort(_.J4$)};
_.l(oJw,eyB);oJw.prototype.sP=function(){HX$(this.flushDebouncer)};var mc$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(mc$,_.kC);_.Sry=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(_.Sry,_.kC);var c3=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M,0,c3.messageId)};
_.l(c3,_.kC);var $$$=_.VMH(c3);c3.messageId="bfkj";var fke=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(fke,_.kC);var suI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(suI,_.kC);var MSf=_.ov(suI);_.sp=function(){var M=this;this.promise=new Promise(function(q,G){M.resolve=q;M.reject=G})};_.Ii=function(M){_.uI.call(this);var q=this;this.o5h=Math.floor(Math.random()*200);this.fWW=new suI;if("challenge"in M&&$$$(M.challenge)){var G=_.hD(M.challenge,4,void 0,uS);var K=_.hD(M.challenge,5,void 0,uS);_.hD(M.challenge,7,void 0,uS)&&(this.fWW=MSf(_.hD(M.challenge,7,void 0,uS)))}else G=M.program,K=M.globalName;this.addOnDisposeCallback(function(){var a,g,D;return _.L(function(J){if(J.nextAddress==1)return J.yield(q.t58,2);a=J.yieldResult;g=a.gqr;(D=g)==null||D();_.gL(J)})});
this.aG=lfs(M.urL||{},this.fWW);_.oE(this,this.aG);var n=new _.sp;this.t58=n.promise;this.aG.s9("t");var E=this.aG.share(),p=new Ryd(E,"t"),y=function(a,g,D,J){if(!q.aG.isDisposed()){var Z="k";g?Z="h":D&&(Z="u");Z!=="k"?J!==0&&(q.aG.s9(Z),q.aG.qR(Z,a)):q.o5h<=0?(q.aG.s9(Z),q.aG.qR(Z,a),q.o5h=Math.floor(Math.random()*200)):q.o5h--}},Y=function(a,g,D,J){Promise.resolve().then(function(){p.done();
E.sP();E.dispose();n.resolve({s5N:a,gqr:g,rUx:D,sZq:J})})};
if(!_.Kj[K])throw this.aG.logError(25),Error("Ca");if(!_.Kj[K].a)throw this.aG.logError(26),Error("Da");try{var A=_.Kj[K].a;K=[];for(var v=[],h=FTj(this.fWW),t=0;t<h.length;t++)K.push(h[t]),v.push(1);var O=HXs(this.fWW);for(h=0;h<O.length;h++)K.push(O[h]),v.push(2);this.kbG=_.k(A(G,Y,!0,M.wWK,y,[K,v],_.hD(this.fWW,5),!1)).next().value;this.v58=n.promise.then(function(){})}catch(a){throw this.aG.logError(28),a;
}};
_.l(_.Ii,_.uI);_.Ii.prototype.snapshot=function(M){if(this.isDisposed())throw Error("Ea");this.aG.s9("n");var q=this.aG.share();return this.t58.then(function(G){var K=G.s5N;return new Promise(function(n){var E=new Ryd(q,"n");K(function(p){E.done();q.tyH(p.length);q.sP();q.dispose();n(p)},[M.m2,
M.fBq,M.sQ5,M.y4A])})})};
_.Ii.prototype.lRM=function(M){this.t58.then(function(q){var G;(G=q.rUx)==null||G(M)})};
_.Ii.prototype.eX7=function(M,q){return this.t58.then(function(G){var K;return(K=G.sZq)==null?void 0:K(M,q,!1)})};
_.Ii.prototype.xOH=function(){return this.aG.share()};var qx2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(qx2,_.kC);var t4u=_.VMH(qx2);var GcI=function(){this.promises={};this.gb9=null},K8M=function(){GcI.instance||(GcI.instance=new GcI);
return GcI.instance},EJf=function(M,q){return nJd(M,_.t0(q,mc$,1,uS),_.t0(q,_.Sry,2,uS),_.hD(q,3,void 0,uS))},nJd=function(M,q,G,K){if(!q&&!G)return Promise.resolve();
if(!K)return gJF(q,G);var n;(n=M.promises)[K]||(n[K]=new Promise(function(E,p){gJF(q,G).then(function(){M.gb9=K;E()},function(y){delete M.promises[K];
p(y)})}));
return M.promises[K]};var NP$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(NP$,_.kC);var kc2=function(M,q){return _.gI(M,1,q)},pRP=function(M,q){return _.gI(M,2,q)};var DO=function(M){_.uI.call(this);var q=this;this.options=M;this.nXM=new _.sp;this.v58=this.nXM.promise;this.h8W=new _.sp;this.ayc=1;this.lvg=new _.sp;this.pQL=[];this.eUq=M.eUq||function(){};
this.dJq=new fkM(lfs(M.urL||{}));yL8(this,M.cb,M.vF5,M.nAC,M.kA0,Object.assign({},L8$,M.lkH||{}));this.addOnDisposeCallback(function(){return void Yx9(q)})};
_.l(DO,_.uI);DO.prototype.snapshot=function(M){var q=this;return _.L(function(G){switch(G.nextAddress){case 1:if(q.isDisposed())throw Error("Ea");if(q.vt||q.obF){G.jumpTo(2);break}return G.yield(q.h8W.promise,2);case 2:if(!q.vt){G.jumpTo(4);break}return G.yield(q.vt.snapshot(M),5);case 5:return G.return(G.yieldResult);case 4:throw q.obF;}})};
var W89=function(M){var q;return _.L(function(G){if(M.isDisposed())throw Error("Ea");(q=M.p0)!=null&&(q.endTimeMs=0,q.resolver(1));return G.yield(M.lvg.promise,0)})},Yx9=function(M){M.obF=Error("Ga");
M.h8W.resolve();eyY(M.nXM.promise);M.nXM.reject(Error("Ga"));M.dJq.dispose();Promise.all(M.pQL).then(function(){var G;return _.L(function(K){(G=M.vt)==null||G.dispose();M.vt=void 0;_.gL(K)})});
M.pQL=[];var q;(q=M.p0)!=null&&(q.endTimeMs=0,q.resolver(1));eyY(M.lvg.promise);M.lvg.reject(Error("Ga"))};
DO.prototype.lRM=function(M){var q,G;(q=this.vt)==null||(G=q.lRM)==null||G.call(q,M)};
DO.prototype.eX7=function(M,q){var G,K,n;return(n=(G=this.vt)==null?void 0:(K=G.eX7)==null?void 0:K.call(G,M,q))!=null?n:Promise.resolve()};
var ALI=function(M,q){var G=M.eUq;M.eUq=function(){G();q()}},dzd=function(M,q){M.isDisposed()||(M.vt=q,M.dJq.update(q.xOH()),M.h8W.resolve(),M.nXM.resolve(void 0),M.eUq())};
DO.prototype.handleError=function(M){if(!this.isDisposed()){this.obF=M;this.h8W.resolve();var q,G;(G=(q=this.options).tsl)==null||G.call(q,M)}};
var vJI=function(M,q){q&&(Promise.all(M.pQL).then(function(){return void q.dispose()}),M.pQL=[])},u2=function(M,q){M.ayc=q;
var G,K;(K=(G=M.options).spA)==null||K.call(G,q)},h9$=function(M){M.isDisposed()||(M.lvg.resolve(),M.lvg=new _.sp)},yL8=function(M,q,G,K,n,E){K=K===void 0?K8M():K;
n=n===void 0?Promise.resolve(void 0):n;var p,y,Y,A,v,h,t,O,a,g,D,J;_.L(function(Z){switch(Z.nextAddress){case 1:return Z.yield(0,3);case 3:y=null;if(!p){Z.jumpTo(6);break}u2(M,7);_.Cv(Z,7);return Z.yield(Qq(p.snapshot({}),E.rvr,function(){return Promise.resolve("E:CTO")}),9);
case 9:y=Z.yieldResult;_.KF(Z,6);break;case 7:_.i5(Z),y="E:UCE";case 6:Y=void 0,A=p?E.rfq:E.tEq,v=new OK(A,E.bQA,E.uQr,E.dKg),h=1;case 10:if(!(h<=E.maxAttempts)){Z.jumpTo(12);break}if(h===1){Z.jumpTo(13);break}u2(M,0);M.p0=new tS$(v.getValue(),E.ctX,E.pIJ);return Z.yield(M.p0.promise,14);case 14:t=Z.yieldResult,M.p0=void 0,t===1?(h=1,v.reset()):g_2(v);case 13:_.Cv(Z,15);O=void 0;if(G){O=G;Z.jumpTo(17);break}u2(M,5);a=K.gb9;return Z.yield(Qq(ODS(q,a,y),E.ulg,function(){return Promise.reject(Error("Ha"))}),
18);
case 18:O=Z.yieldResult;case 17:return u2(M,3),Z.yield(Qq(EJf(K,O),E.wfJ,function(){return Promise.reject(Error("Ia"))}),19);
case 19:return u2(M,8),Z.yield(n,20);case 20:return g=new _.Ii({challenge:O,urL:M.options.urL,wWK:M.options.wWK}),Z.yield(Qq(g.v58,E.v0x,function(){return Promise.reject(Error("Ja"))}),21);
case 21:Y=g;Z.jumpTo(12);break;case 15:D=_.i5(Z),M.handleError(D),h9$(M);case 11:h++;Z.jumpTo(10);break;case 12:if(M.isDisposed()){Z.jumpTo(5);break}Y&&(G=void 0,vJI(M,p),p=Y,dzd(M,Y),h9$(M));u2(M,2);M.p0=new tS$(E.rBg,E.ctX,E.pIJ);return Z.yield(M.p0.promise,22);case 22:M.p0=void 0;if(M.isDisposed()){Z.jumpTo(5);break}Z.jumpTo(3);break;case 5:(J=p)==null||J.dispose(),_.gL(Z)}})};
DO.prototype.xOH=function(){return this.dJq.share()};
var L8$={rBg:432E5,ctX:3E5,pIJ:10,rvr:1E4,ulg:3E4,wfJ:3E4,v0x:6E4,tEq:1E3,rfq:6E4,bQA:6E5,uQr:.25,dKg:2,maxAttempts:10},tS$=function(M,q,G){var K=this;this.endTimeMs=Date.now()+M;this.promise=new Promise(function(E){K.resolver=E});
var n=function(){var E=K.endTimeMs-Date.now();E<=G?K.resolver(0):setTimeout(n,Math.min(E,q))};
n()};var wRf,Ifw=(wRf=Math.imul)!=null?wRf:function(M,q){return M*q|0},IE=[196,
200,224,18],Jo=function(M,q,G){G=G===void 0?[]:G;this.maxItems=M;this.zx=q===void 0?0:q;this.e5=G},Cj$=function(M){var q=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!q)return new Jo(M);var G=q.split(",");if(G.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Jo(M);q=G.slice(1);q.length===1&&q[0]===""&&(q=[]);G=Number(G[0]);return isNaN(G)||G<0||G>q.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new Jo(M)):new Jo(M,G,q)};
Jo.prototype.serialize=function(){return String(this.zx)+","+this.e5.join()};
Jo.prototype.insert=function(M,q){var G=void 0;if(this.e5[this.zx]!==M){var K=this.e5.indexOf(M);K!==-1?(this.e5.splice(K,1),K<this.zx&&this.zx--,this.e5.splice(this.zx,0,M)):(G=this.e5[this.zx],this.e5[this.zx]=M)}this.zx=(this.zx+1)%this.maxItems;M=BPy("iU5q-!O9@$",this.serialize());G&&M&&q(G);return M};
var afP=function(M,q){this.yTH=q;try{var G=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(K){G=!1}G&&(this.index=Cj$(M))},oJJ=function(M,q,G,K,n){var E=M.index?_.QJ(M.yTH,function(){return ZDu(M.index,uNF(q),G,K,n)},"W"):"u";
M.yTH.rsg(E)},lf$=function(M,q,G){var K=_.k(M.index?_.QJ(M.yTH,function(){return bDy(uNF(q),G)},"R"):["u"]),n=K.next().value;
K=K.next().value;M.yTH.dpL(n);return K};var XRp={toString:function(M){var q=[],G=0;M-=-2147483648;q[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(M%52);for(M=Math.floor(M/52);M>0;)q[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(M%62),M=Math.floor(M/62);return q.join("")}};var cLx=function(M){M=PjJ(M);for(var q=2654435769,G=2654435769,K=314159265,n=M.length,E=n,p=0,y=function(){q-=G;q-=K;q^=K>>>13;G-=K;G-=q;G^=q<<8;K-=q;K-=G;K^=G>>>13;q-=G;q-=K;q^=K>>>12;G-=K;G-=q;G^=q<<16;K-=q;K-=G;K^=G>>>5;q-=G;q-=K;q^=K>>>3;G-=K;G-=q;G^=q<<10;K-=q;K-=G;K^=G>>>15};E>=12;E-=12,p+=12)q+=iDp(M,p),G+=iDp(M,p+4),K+=iDp(M,p+8),y();
K+=n;switch(E){case 11:K+=M[p+10]<<24;case 10:K+=M[p+9]<<16;case 9:K+=M[p+8]<<8;case 8:G+=M[p+7]<<24;case 7:G+=M[p+6]<<16;case 6:G+=M[p+5]<<8;case 5:G+=M[p+4];case 4:q+=M[p+3]<<24;case 3:q+=M[p+2]<<16;case 2:q+=M[p+1]<<8;case 1:q+=M[p]}y();return XRp.toString(K)},PjJ=function(M){for(var q=[],G=0;G<M.length;G++)q.push(M.charCodeAt(G));
return q},iDp=function(M,q){return M[q]+(M[q+1]<<8)+(M[q+2]<<16)+(M[q+3]<<24)};var ZO=function(M){_.uI.call(this);this.wj=M;this.q4u=new _.sp};
_.l(ZO,_.uI);var gJ8=function(M,q){var G=setTimeout(function(){M.q4u.resolve()},q);
M.addOnDisposeCallback(function(){return void clearTimeout(G)})};
ZO.prototype.h5L=function(M,q){var G=this.sC(M);q==null||q(G);return _.QJ(this.wj,function(){return _.ZU(G,2)},this.tSH)};
var BPp=function(M,q,G,K){return _.QJ(M.wj,function(){return G?M.h5L(q,K):M.sC(q,K)},M.cw7)},QuB=function(M,q,G,K){ZO.call(this,M);
this.l2g=q;this.jgn=G;this.cw7="m";this.tSH="x";this.nJA=0;gJ8(this,K)};
_.l(QuB,ZO);QuB.prototype.sC=function(M,q){var G=this;this.wj.s9(this.cw7);++this.nJA>=this.jgn&&this.q4u.resolve();var K=M();M=_.QJ(this.wj,function(){return G.l2g(K)},"C");
if(M===void 0)throw new Mp(17,"YNJ:Undefined");if(!(M instanceof Uint8Array))throw new Mp(18,"ODM:Invalid");q==null||q(M);return M};
var IfJ=function(M,q,G){ZO.call(this,M);this.rqX=q;this.cw7="f";this.tSH="z";gJ8(this,G)};
_.l(IfJ,ZO);IfJ.prototype.sC=function(){return this.rqX};
var Dz8=function(M,q,G){ZO.call(this,M);this.fZg=q;this.cw7="w";this.tSH="z";gJ8(this,G)};
_.l(Dz8,ZO);Dz8.prototype.sC=function(){var M=this;return _.QJ(this.wj,function(){return _.ew(M.fZg)},"d")};
Dz8.prototype.h5L=function(){return this.fZg};
var uNl=function(M,q){ZO.call(this,M);this.error=q;this.cw7="e";this.tSH="y"};
_.l(uNl,ZO);var JLM=function(M,q){var G=(q(M.error.message)+":"+q(M.error.stack)).substring(0,2048);q=G.length+1;G=UzH(G);var K=new Uint8Array(4+G.length);K.set([42,q&127|128,q>>7,M.error.code]);K.set(G,4);return K};
uNl.prototype.sC=function(){if(this.luJ)return this.luJ;this.luJ=JLM(this,function(M){return"_"+cLx(M)});
return JLM(this,function(M){return M})};
var ZDf=function(M,q,G){ZO.call(this,M);this.gmJ=q;this.clientState=G;this.cw7="S";this.tSH="q"};
_.l(ZDf,ZO);ZDf.prototype.sC=function(){var M=Math.floor(Date.now()/1E3),q=[Math.random()*255,Math.random()*255],G=q.concat([this.gmJ&255,this.clientState],[M>>24&255,M>>16&255,M>>8&255,M&255]);M=new Uint8Array(2+G.length);M[0]=34;M[1]=G.length;M.set(G,2);G=M.subarray(2);for(var K=q=q.length;K<G.length;++K)G[K]^=G[K%q];this.wj.t1q(this.clientState);return M};var bDI={hkJ:3E4,u4r:2E4},b2=function(M){_.uI.call(this);var q=this;this.lhw=new _.sp;this.xcA=0;this.sZ=void 0;this.state=2;this.vm=M.vm;this.cb=M.cb;this.lkH=Object.assign({},bDI,M.lkH||{});this.aQ=M.vm.xOH();var G;this.onError=(G=M.onError)!=null?G:function(){};
this.r8P=M.r8P||!1;if(UzS(M)){var K=this.vm;this.o1y=function(){return W89(K).catch(function(p){p=q.reportError(new Mp(q.dT?20:32,"TRG:Disposed",p));q.sZ=p;var y;(y=q.dT)==null||y.dispose();q.dT=void 0;q.lhw.reject(p)})};
ALI(K,function(){return void xz9(q)});
K.ayc===2&&xz9(this)}else this.o1y=M.bkA,xz9(this);var n=this.aQ.share();n.s9("o");var E=new Ryd(n,"o");this.lhw.promise.then(function(){E.done();n.sP();n.dispose()},function(){return void n.dispose()});
this.addOnDisposeCallback(function(){q.dT?(q.dT.dispose(),q.dT=void 0):q.sZ?q.aQ.sP():(q.sZ=q.reportError(new Mp(32,"TNP:Disposed")),q.aQ.sP(),q.lhw.reject(q.sZ))});
_.oE(this,this.aQ)};
_.l(b2,_.uI);b2.prototype.yIu=function(){return this.lhw.promise};
var z92=function(M,q){if(!(q instanceof Mp))if(q instanceof _.PT){var G=Error(q.toString());G.stack=q.stack;q=new Mp(11,"EBH:Error",G)}else q=new Mp(12,"BSO:Unknown",q);return M.reportError(q)},xz9=function(M){var q,G,K,n,E,p,y,Y,A,v,h,t,O,a,g;
return _.L(function(D){switch(D.nextAddress){case 1:q=void 0;M.xcA++;G=new _.sp;M.vm instanceof DO&&M.vm.pQL.push(G.promise);if(!M.r8P){D.jumpTo(2);break}K=new _.sp;setTimeout(function(){return void K.resolve()});
return D.yield(K.promise,2);case 2:return n=M.aQ.share(),_.Cv(D,4,5),M.state=5,E={},p=[],D.yield(Qq(M.vm.snapshot({m2:E,sQ5:p}),M.lkH.u4r,function(){return Promise.reject(new Mp(15,"MDA:Timeout"))}),7);
case 7:y=D.yieldResult;if(M.isDisposed())throw new Mp(M.dT?20:32,"MDA:Disposed");Y=p[0];M.state=6;return D.yield(Qq(mzl(M.cb,y),M.lkH.hkJ,function(){return Promise.reject(new Mp(10,"BWB:Timeout"))}),8);
case 8:A=D.yieldResult;if(M.isDisposed())throw new Mp(M.dT?20:32,"BWB:Disposed");M.state=7;q=_.QJ(n,function(){var Z=Sxx(M,A,G,Y);Z.q4u.promise.then(function(){return void M.o1y()});
return Z},"i");
case 5:_.oS(D);n.dispose();_.Xr(D,6);break;case 4:v=_.i5(D);(h=q)==null||h.dispose();if(!M.sZ){t=z92(M,v);G.resolve();var J;if(J=M.vm instanceof DO&&M.xcA<2)a:if(v instanceof Mp)J=v.code!==32&&v.code!==20&&v.code!==10;else{if(v instanceof _.PT)switch(v.code){case 2:case 13:case 14:case 4:break;default:J=!1;break a}J=!0}if(J)return O=(1+Math.random()*.25)*(M.dT?6E4:1E3),a=setTimeout(function(){return void M.o1y()},O),M.addOnDisposeCallback(function(){return void clearTimeout(a)}),D.return();
M.sZ=t}n.logError(M.dT?13:14);M.lhw.reject(M.sZ);return D.return();case 6:M.state=8,M.xcA=0,(g=M.dT)==null||g.dispose(),M.dT=q,M.lhw.resolve(),_.gL(D)}})},Sxx=function(M,q,G,K){var n=Xvf(q,2)*1E3;
if(n<=0)throw new Mp(31,"TTM:Invalid");if(_.hD(q,4))return new Dz8(M.aQ,_.hD(q,4),n);if(!Xvf(q,3))return new IfJ(M.aQ,kll(_.k1(q,1)),n);if(!K)throw new Mp(4,"PMD:Undefined");K=K(kll(_.k1(q,1)));if(!(K instanceof Function))throw new Mp(16,"APF:Failed");M.iag=Math.floor((Date.now()+n)/1E3);M=new QuB(M.aQ,K,Xvf(q,3),n);M.addOnDisposeCallback(function(){return void G.resolve()});
return M};
b2.prototype.sC=function(M){return TPJ(this,Object.assign({},M),!1)};
b2.prototype.h5L=function(M){return TPJ(this,Object.assign({},M),!0)};
b2.prototype.f84=function(M){if(M>150)return!1;try{return this.cache=new afP(M,this.aQ),!0}catch(q){return this.reportError(new Mp(22,"GBJ:init",q)),!1}};
b2.prototype.reportError=function(M){this.aQ.logError(M.code);this.onError(M);return M};
var rLM=function(M,q){q=q instanceof Mp?q:new Mp(5,"TVD:error",q);return M.reportError(q)},TPJ=function(M,q,G){try{if(M.isDisposed())throw new Mp(21,"BNT:disposed");
if(!M.dT&&M.sZ)throw M.sZ;var K,n;return(n=(K=jup(M,q,G))!=null?K:VS2(M,q,G))!=null?n:R9P(M,q,G)}catch(E){if(!q.bpy)throw rLM(M,E);return ffJ(M,G,E)}},jup=function(M,q,G){var K;
return(K=M.dT)==null?void 0:BPp(K,function(){return F8J(M,q)},G,function(n){var E;
if(M.dT instanceof QuB&&((E=q.n7)==null?0:E.jjq))try{var p;(p=M.cache)==null||oJJ(p,F8J(M,q),n,q.n7.zZL,M.iag-120)}catch(y){M.reportError(new Mp(24,"ELX:write",y))}})},VS2=function(M,q,G){var K;
if((K=q.n7)!=null&&K.qp4)try{var n,E=(n=M.cache)==null?void 0:lf$(n,F8J(M,q),q.n7.zZL);return E?G?_.QJ(M.aQ,function(){return _.ZU(E,2)},"a"):E:void 0}catch(p){M.reportError(new Mp(23,"RXO:read",p))}},R9P=function(M,q,G){var K={stack:[],
error:void 0,hasError:!1};try{if(!q.tvW)throw new Mp(29,"SDF:notready");return BPp(y4$(K,new ZDf(M.aQ,0,M.state)),function(){return F8J(M,q)},G)}catch(n){K.error=n,K.hasError=!0}finally{Lyd(K)}},ffJ=function(M,q,G){var K={stack:[],
error:void 0,hasError:!1};try{var n=rLM(M,G);return BPp(y4$(K,new uNl(M.aQ,n)),function(){return[]},q)}catch(E){K.error=E,K.hasError=!0}finally{Lyd(K)}},F8J=function(M,q){return q.eeM?q.eeM:q.m2?_.QJ(M.aQ,function(){return q.eeM=UzH(q.m2)},"c"):[]},UzS=function(M){return Z8(function(q){if(!Wm(q))return!1;
for(var G=_.k(Object.entries(M)),K=G.next();!K.done;K=G.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;if(!(K in q)){if(n.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!n(q[K]))return!1}return!0})}({vm:function(M){return Z8(function(q){return q instanceof M})}(DO)},"");var HD2=function(){var M=_.Fp();this.JSC$9918_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",dc("cookie_enabled"),dc("cookie_3p_enabled"),_.hu("browser"))};
HD2.prototype.increment=function(M,q,G){this.JSC$9918_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",M,q,G)};
var nhw=function(){var M=_.Fp();this.JSC$9942_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",vX("tick"),dc("from_st_cookie"))};
nhw.prototype.increment=function(M,q){this.JSC$9942_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",M,q)};
var e9P=function(){var M=_.Fp();this.JSC$9948_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.hu("status"))};
e9P.prototype.increment=function(M){this.JSC$9948_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",M)};
var $z$=function(){var M=_.Fp();this.JSC$9951_streamzService=M;M.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.hu("stage"),dc("is_using_ytd_player"),dc("has_expandable_tiles"))};
$z$.prototype.increment=function(M,q,G){this.JSC$9951_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",M,q,G)};
var snI=function(){var M=_.Fp();this.JSC$9954_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/response_signature",_.hu("check_status"))};
snI.prototype.increment=function(M){this.JSC$9954_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/response_signature",M)};
var MGp=function(){var M=_.Fp();this.JSC$9957_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.hu("sig"),vX("de"))};
MGp.prototype.increment=function(M,q){this.JSC$9957_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/e_sig_log",M,q)};
var qhp=function(){var M=_.Fp();this.JSC$9960_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.hu("sig"),vX("de"))};
qhp.prototype.increment=function(M,q){this.JSC$9960_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/e_sig_en",M,q)};
_.GII=function(){var M=_.Fp();this.JSC$9963_streamzService=M;M.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.hu("action"))};
_.GII.prototype.increment=function(M){this.JSC$9963_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/web/enforcement_intent",M)};var US=window;var Km8=(new Date).getTime();_.xP.createSet("area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr");_.xP.createSet("action","cite","data","formaction","href","manifest","poster","src");var n5B=function(M){this.servicePromise_=M;M.then((0,_.Ju)(function(){},this),function(){},this)},E5J=function(M,q,G){M.servicePromise_.then(function(K){var n=K[q];
if(!n)throw Error("Ka`"+q);return n.apply(K,G)})},p2B=function(M,q,G){for(var K=Array(arguments.length-2),n=2;n<arguments.length;n++)K[n-2]=arguments[n];
n=N8v(M,q).then(function(E){return E.apply(null,K)},function(E){E=Error("La`"+q+"`"+M+"`"+E,{cause:E});
delete kIP[q];return _.Aj(E)});
return new n5B(n)},kIP={},N8v=function(M,q){var G=kIP[q];
if(G)return G;G=(G=_.sx(q))?_.HF(G):(new _.X4(function(K,n){var E=(new Ce(document)).createElement("SCRIPT");E.async=!0;_.Ei(E,_.Qk(KKP(M)));E.onload=E.onreadystatechange=function(){E.readyState&&E.readyState!="loaded"&&E.readyState!="complete"||K()};
E.onerror=function(p){n(Error("Ma`"+q+"`"+M,{cause:p}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(E)})).then(function(){var K=_.sx(q);
if(!K)throw Error("Na`"+q+"`"+M);return K});
return kIP[q]=G};var y02={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},Yhx=function(){var M=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=xz$(function(){return _.L(function(q){if(q.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?q.return(Promise.resolve()):q.yield(Lmf(M),2);M.rsaForList.length>
0&&document.addEventListener("click",M.requestAccessForHelpPanel);_.gL(q)})});
this.requestAccessForHelpPanel=function(){if(!(M.rsaForPromises.length>0)){for(var q=_.k(M.rsaForList),G=q.next();!G.done;G=q.next()){G=G.value;try{M.rsaForPromises.push(document.requestStorageAccessFor(G))}catch(K){}}Promise.all(M.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){M.reset()})}}};
Yhx.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var Lmf=function(M){var q,G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:q=_.k(Object.values(y02)),G=q.next();case 2:if(G.done){E.jumpTo(0);break}K=G.value;_.Cv(E,5);return E.yield(navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:K}),7);case 7:n=E.yieldResult;n.state!=="granted"&&M.rsaForList.push(K);_.KF(E,3);break;case 5:_.i5(E);E.jumpTo(0);break;case 3:G=q.next(),E.jumpTo(2)}})};(new Yhx).initialize();var Wmp=function(M){this.JSC$9977_loader_=M};
Wmp.prototype.startHelp=function(M){E5J(this.JSC$9977_loader_,"startHelp",arguments)};
Wmp.prototype.JSC$9979_loadChatSupport=function(M){E5J(this.JSC$9977_loader_,"loadChatSupport",arguments)};
var dlv=function(M,q){q=q||{};M=p2B(A0B,"help.service.Lazy.create",M,{apiKey:q.apiKey||q.apiKey,asxUiUri:q.asxUiUri||q.asxUiUri,environment:q.environment||q.environment,flow:q.flow||q.flow,frdProductData:q.frdProductData||q.frdProductData,frdProductDataSerializedJspb:q.frdProductDataSerializedJspb||q.frdProductDataSerializedJspb,helpCenterPath:q.helpCenterPath||q.helpCenterPath,locale:q.locale||q.locale||"en-US".replace(/-/g,"_"),nonce:q.nonce||q.nonce,productData:q.productData||q.productData,receiverUri:q.receiverUri||
q.receiverUri,renderApiUri:q.renderApiUri||q.renderApiUri,theme:q.theme||q.theme,window:q.window||q.window});return new Wmp(M)},A0B=new Rw(rCy,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var v5x=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(v5x,_.kC);var hol=_.ov(v5x);var tGP=[0,_.m6,uZ,AEx];_.OFI=new function(M,q,G,K){this.configType=M;this.flagName=G;this.defaultValue=K;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 CFv=function(){this.retriever=_.AL().resolve(w2$)};_.b_={get payments(){return window.payments}};mzF(Node);mzF(Element);var aZS=mzF(HTMLElement);mzF(SVGElement);var o5M,lZd,S8,X29;o5M=function(M){return typeof M.className=="string"?M.className:M.getAttribute&&M.getAttribute("class")||""};
lZd=function(M){return M.classList?M.classList:o5M(M).match(/\S+/g)||[]};
_.xu=function(M,q){typeof M.className=="string"?M.className=q:M.setAttribute&&M.setAttribute("class",q)};
_.zZ=function(M,q){return M.classList?M.classList.contains(q):_.zF(lZd(M),q)};
_.Zg=function(M,q){if(M.classList)M.classList.add(q);else if(!_.zZ(M,q)){var G=o5M(M);_.xu(M,G+(G.length>0?" "+q:q))}};
S8=function(M,q){if(M.classList)Array.prototype.forEach.call(q,function(n){_.Zg(M,n)});
else{var G={};Array.prototype.forEach.call(lZd(M),function(n){G[n]=!0});
Array.prototype.forEach.call(q,function(n){G[n]=!0});
q="";for(var K in G)q+=q.length>0?" "+K:K;_.xu(M,q)}};
_.um=function(M,q){M.classList?M.classList.remove(q):_.zZ(M,q)&&_.xu(M,Array.prototype.filter.call(lZd(M),function(G){return G!=q}).join(" "))};
X29=function(M,q){M.classList?Array.prototype.forEach.call(q,function(G){_.um(M,G)}):_.xu(M,Array.prototype.filter.call(lZd(M),function(G){return!_.zF(q,G)}).join(" "))};var PF2=function(M){this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=M.document},g52=function(M,q){iFJ(M);
var G=document.createElement("div"),K;(K=q.parentNode)==null||K.insertBefore(G,q);G.tabIndex=0;G.id="fc-focus-trap-pre-div";G=document.createElement("div");var n;(n=q.parentNode)==null||n.insertBefore(G,q.nextSibling);G.tabIndex=0;G.id="fc-focus-trap-post-div";var E=c0l(M,q),p=c0l(M,q,!0);E&&p&&(M.focusChangeHandler=function(){var y=M.document.activeElement;if(y)if(_.HX(q,y))M.previouslyFocusedElement=y;else if(y===M.document.activeElement)switch(M.previouslyFocusedElement){case E:p.focus();M.previouslyFocusedElement=
p;break;default:E.focus(),M.previouslyFocusedElement=E}},M.document.addEventListener("focus",M.focusChangeHandler,!0),M.document.addEventListener("focusin",M.focusChangeHandler))},iFJ=function(M){M.focusChangeHandler&&(document.removeEventListener("focus",M.focusChangeHandler,!0),document.removeEventListener("focusin",M.focusChangeHandler),M.focusChangeHandler=null);
var q;(q=document.getElementById("fc-focus-trap-pre-div"))==null||q.remove();var G;(G=document.getElementById("fc-focus-trap-post-div"))==null||G.remove()},B8x=function(M,q,G,K,n){G=G===void 0?!0:G;
var E;n=(E=n===void 0?null:n)!=null?E:c0l(M,q,K===void 0?!1:K);n!==null&&(n.focus(),G&&g52(M,q))};
PF2.prototype.disableButton=function(M,q){q=q===void 0?null:q;M.disabled=!0;q&&_.Zg(M,q)};
var c0l=function(M,q,G){G=G===void 0?!1:G;if(pbu(q)&&!G)return q;var K=G?[].slice.call(q.children,0).reverse():q.children;K=_.k(K);for(var n=K.next();!n.done;n=K.next())if(n=n.value,aZS(n)&&(n=c0l(M,n,G)))return n;return pbu(q)&&G?q:null};var Qn2=function(M){this.originalBodyOverflow="";this.JSC$10004_domHelper=Ig(M);this.isScrollingEnabled=this.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow!=="hidden"};
Qn2.prototype.enableScrolling=function(){this.isScrollingEnabled||(this.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow=this.originalBodyOverflow,this.isScrollingEnabled=!0)};_.TO(_.ZG,_.uI);_.N=_.ZG.prototype;_.N.JSC$10007_id_=0;_.N.disposeInternal=function(){_.ZG.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$10005_listener_;delete this.handler_};
_.N.start=function(M){this.stop();this.JSC$10007_id_=Xl(this.callback_,M!==void 0?M:this.JSC$10005_interval_)};
_.N.stop=function(){this.isActive()&&_.Kj.clearTimeout(this.JSC$10007_id_);this.JSC$10007_id_=0};
_.N.fire=function(){this.stop();this.JSC$10007_doAction_()};
_.N.isActive=function(){return this.JSC$10007_id_!=0};
_.N.JSC$10007_doAction_=function(){this.JSC$10007_id_=0;this.JSC$10005_listener_&&this.JSC$10005_listener_.call(this.handler_)};_.OU=function(M){_.uI.call(this);this.handler_=M;this.JSC$10008_keys_={}};
_.TO(_.OU,_.uI);var IZl=[];_.OU.prototype.listen=function(M,q,G,K){Array.isArray(q)||(q&&(IZl[0]=q.toString()),q=IZl);for(var n=0;n<q.length;n++){var E=_.Yj(M,q[n],G||this.handleEvent,K||!1,this.handler_||this);if(!E)break;this.JSC$10008_keys_[E.key]=E}return this};
_.OU.prototype.listenOnce=function(M,q,G,K){return DlJ(this,M,q,G,K)};
var DlJ=function(M,q,G,K,n,E){if(Array.isArray(G))for(var p=0;p<G.length;p++)DlJ(M,q,G[p],K,n,E);else{q=kj(q,G,K||M.handleEvent,n,E||M.handler_||M);if(!q)return M;M.JSC$10008_keys_[q.key]=q}return M};
_.OU.prototype.unlisten=function(M,q,G,K,n){if(Array.isArray(q))for(var E=0;E<q.length;E++)this.unlisten(M,q[E],G,K,n);else if(M=G_9(M,q,G||this.handleEvent,_.VY(K)?!!K.capture:!!K,n||this.handler_||this))pl(M),delete this.JSC$10008_keys_[M.key];return this};
_.OU.prototype.removeAll=function(){_.xP.forEach(this.JSC$10008_keys_,function(M,q){this.JSC$10008_keys_.hasOwnProperty(q)&&pl(M)},this);
this.JSC$10008_keys_={}};
_.OU.prototype.disposeInternal=function(){_.OU.superClass_.disposeInternal.call(this);this.removeAll()};
_.OU.prototype.handleEvent=function(){throw Error("Oa");};var TZ=function(){_.uI.call(this);this.services_={}};
_.TO(TZ,_.uI);TZ.prototype.connect=function(M){M&&M()};
TZ.prototype.isConnected=function(){return!0};
TZ.prototype.registerService=function(M,q,G){this.services_[M]={callback:q,objectPayload:!!G}};
TZ.prototype.getService=function(M,q){var G=this.services_[M];return G?G:this.defaultService_?{callback:_.n7(this.defaultService_,M),objectPayload:_.VY(q)}:null};
var u8l=function(M,q){if(q&&typeof M==="string")try{return JSON.parse(M)}catch(G){return null}else if(!q&&typeof M!=="string")return(0,_.i2)(M);return M};
TZ.prototype.disposeInternal=function(){TZ.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 r6=function(M,q){this.sequence_=[];this.onCancelFunction_=M;this.defaultScope_=q||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};
r6.prototype.cancel=function(M){if(this.fired_)this.result_ instanceof r6&&this.result_.cancel();else{if(this.parent_){var q=this.parent_;delete this.parent_;M?q.cancel(M):(q.branches_--,q.branches_<=0&&q.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new j8(this))}};
r6.prototype.continue_=function(M,q){this.blocked_=!1;J0I(this,M,q)};
var J0I=function(M,q,G){M.fired_=!0;M.result_=G;M.hadError_=!q;ZFP(M)},UlI=function(M){if(M.fired_){if(!M.silentlyCanceled_)throw new bFB(M);
M.silentlyCanceled_=!1}};
r6.prototype.callback=function(M){UlI(this);J0I(this,!0,M)};
r6.prototype.errback=function(M){UlI(this);J0I(this,!1,M)};
var xlf=function(M,q,G){VJ(M,q,null,G)};
r6.prototype.finally=function(M){var q=this;return zoJ(new Promise(function(G,K){VJ(q,function(n){M();G(n)},function(n){M();
K(n)})}))};
var VJ=function(M,q,G,K){var n=M.fired_;n||(q===G?q=G=CE(q):(q=CE(q),G=CE(G)));M.sequence_.push([q,G,K]);n&&ZFP(M)};
r6.prototype.then=function(M,q,G){var K,n,E=new _.X4(function(p,y){n=p;K=y});
VJ(this,n,function(p){p instanceof j8?E.cancel():K(p);return mlx},this);
return E.then(M,q,G)};
LTl(r6);var ShJ=function(M,q){q instanceof r6?xlf(M,(0,_.Ju)(q.branch,q)):xlf(M,function(){return q})};
r6.prototype.branch=function(M){var q=new r6;VJ(this,q.callback,q.errback,q);M&&(q.parent_=this,this.branches_++);return q};
r6.prototype.isError=function(M){return M instanceof Error};
var T82=function(M){return nA(M.sequence_,function(q){return typeof q[1]==="function"})},mlx={},ZFP=function(M){if(M.unhandledErrorId_&&M.fired_&&T82(M)){var q=M.unhandledErrorId_,G=r0$[q];
G&&(_.Kj.clearTimeout(G.JSC$10025_id_),delete r0$[q]);M.unhandledErrorId_=0}M.parent_&&(M.parent_.branches_--,delete M.parent_);q=M.result_;for(var K=G=!1;M.sequence_.length&&!M.blocked_;){var n=M.sequence_.shift(),E=n[0],p=n[1];n=n[2];if(E=M.hadError_?p:E)try{var y=E.call(n||M.defaultScope_,q);y===mlx&&(y=void 0);y!==void 0&&(M.hadError_=M.hadError_&&(y==q||M.isError(y)),M.result_=q=y);if(Yb$(q)||typeof _.Kj.Promise==="function"&&q instanceof _.Kj.Promise)K=!0,M.blocked_=!0}catch(Y){q=Y,M.hadError_=
!0,T82(M)||(G=!0)}}M.result_=q;K&&(y=(0,_.Ju)(M.continue_,M,!0),K=(0,_.Ju)(M.continue_,M,!1),q instanceof r6?(VJ(q,y,K),q.blocking_=!0):q.then(y,K));G&&(q=new jn9(q),r0$[q.JSC$10025_id_]=q,M.unhandledErrorId_=q.JSC$10025_id_)},zoJ=function(M){var q=new r6;
M.then(function(G){q.callback(G)},function(G){q.errback(G)});
return q},bFB=function(){_.qD.call(this)};
_.TO(bFB,_.qD);bFB.prototype.message="Deferred has already fired";bFB.prototype.name="AlreadyCalledError";var j8=function(){_.qD.call(this)};
_.TO(j8,_.qD);j8.prototype.message="Deferred was canceled";j8.prototype.name="CanceledError";var jn9=function(M){this.JSC$10025_id_=_.Kj.setTimeout((0,_.Ju)(this.throwError,this),0);this.JSC$10025_error_=M};
jn9.prototype.throwError=function(){delete r0$[this.JSC$10025_id_];throw this.JSC$10025_error_;};
var r0$={};var VG2={1:"NativeMessagingTransport"},Rop=["pu","lru","pru","lpu","ppu"],Fmp=function(){for(var M=10,q=fZl,G=q.length,K="";M-- >0;)K+=q.charAt(Math.floor(Math.random()*G));return K},fZl="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Ri=function(M){_.uI.call(this);this.JSC$10028_domHelper_=M||Ig()};
_.TO(Ri,_.uI);Ri.prototype.transportType=0;Ri.prototype.getWindow=function(){return this.JSC$10028_domHelper_.getWindow()};
Ri.prototype.getName=function(){return VG2[String(this.transportType)]||""};var fE=function(M,q,G,K,n){Ri.call(this,G);this.JSC$10031_channel_=M;this.protocolVersion_=n||2;this.peerHostname_=q||"*";this.JSC$10031_eventHandler_=new _.OU(this);this.maybeAttemptToConnectTimer_=new _.th(100,this.getWindow());this.oneSidedHandshake_=!!K;this.setupAckReceived_=new r6;this.setupAckSent_=new r6;this.JSC$10031_connected_=new r6;this.endpointId_=Fmp();this.peerEndpointId_=null;this.oneSidedHandshake_?HFv(this.JSC$10031_channel_)==1?ShJ(this.JSC$10031_connected_,this.setupAckReceived_):
ShJ(this.JSC$10031_connected_,this.setupAckSent_):(ShJ(this.JSC$10031_connected_,this.setupAckReceived_),this.protocolVersion_==2&&ShJ(this.JSC$10031_connected_,this.setupAckSent_));xlf(this.JSC$10031_connected_,this.notifyConnected_,this);this.JSC$10031_connected_.callback(!0);this.JSC$10031_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.TO(fE,Ri);fE.prototype.peerProtocolVersion_=null;fE.prototype.initialized_=!1;fE.prototype.transportType=1;var eo8={};fE.prototype.sendTimerId_=0;
var M1l=function(M){var q=M.event_.data;if(typeof q!=="string")return!1;var G=q.indexOf("|"),K=q.indexOf(":");if(G==-1||K==-1)return!1;var n=q.substring(0,G);G=q.substring(G+1,K);q=q.substring(K+1);if(K=Fl[n])return K.xpcDeliver(G,q,M.event_.origin),!0;K=$lB(q)[0];for(var E in Fl){var p=Fl[E];if(HFv(p)==1&&!p.isConnected()&&G=="tp"&&(K=="SETUP"||K=="SETUP_NTPV2")&&swx(p,M.event_.origin))return delete Fl[p.name],p.name=n,Fl[n]=p,p.xpcDeliver(G,q),!0}return!1},q49=function(M){M.protocolVersion_!=2||
M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=2||M.send("tp","SETUP_NTPV2,"+M.endpointId_);
M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=1||M.send("tp","SETUP")},G6$=function(M,q){if(M.protocolVersion_!=2||M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=2||q!=2){if(M.peerProtocolVersion_!=null&&M.peerProtocolVersion_!=1||q!=1)return;
M.send("tp","SETUP_ACK")}else M.send("tp","SETUP_ACK_NTPV2");M.setupAckSent_.fired_||M.setupAckSent_.callback(!0)},Kld=function(M,q){q>M.peerProtocolVersion_&&(M.peerProtocolVersion_=q);
M.peerProtocolVersion_==1&&(M.setupAckSent_.fired_||M.oneSidedHandshake_||M.setupAckSent_.callback(!0),M.peerEndpointId_=null)};
_.N=fE.prototype;_.N.connect=function(){var M=this.getWindow(),q=_.Fi(M),G=eo8[q];typeof G!=="number"&&(G=0);G==0&&_.Yj(M.postMessage?M:M.document,"message",M1l,!1,fE);eo8[q]=G+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.N.maybeAttemptToConnect_=function(){var M=HFv(this.JSC$10031_channel_)==0;this.oneSidedHandshake_&&M||this.JSC$10031_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),q49(this))};
_.N.send=function(M,q){var G=this.JSC$10031_channel_.peerWindowObject_;G&&(this.send=function(K,n){var E=this,p=this.JSC$10031_channel_.name;this.sendTimerId_=Xl(function(){E.sendTimerId_=0;try{var y=G.postMessage?G:G.document;y.postMessage&&y.postMessage(p+"|"+K+":"+n,E.peerHostname_)}catch(Y){}},0)},this.send(M,q))};
_.N.notifyConnected_=function(){var M=this.JSC$10031_channel_,q=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;M.isConnected()||M.connectionDelay_&&M.connectionDelay_.isActive()||(M.state_=2,_.ka(M.connectionDelay_),q!==void 0?(M.connectionDelay_=new _.ZG(M.connectCb_,q),M.connectionDelay_.start()):(M.connectionDelay_=null,M.connectCb_()))};
_.N.disposeInternal=function(){if(this.initialized_){var M=this.getWindow(),q=_.Fi(M),G=eo8[q];eo8[q]=G-1;G==1&&_.OS(M.postMessage?M:M.document,"message",M1l,!1,fE)}this.sendTimerId_&&(_.Kj.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.ka(this.JSC$10031_eventHandler_);delete this.JSC$10031_eventHandler_;_.ka(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$10031_connected_.cancel();delete this.JSC$10031_connected_;delete this.send;fE.superClass_.disposeInternal.call(this)};
var $lB=function(M){M=M.split(",");M[1]=M[1]||null;return M};var Ecf;_.HT=function(M){if(M.getValues&&typeof M.getValues=="function")return M.getValues();if(typeof Map!=="undefined"&&M instanceof Map||typeof Set!=="undefined"&&M instanceof Set)return Array.from(M.values());if(typeof M==="string")return M.split("");if(_.TF(M)){for(var q=[],G=M.length,K=0;K<G;K++)q.push(M[K]);return q}return _.xP.getValues(M)};
_.ncB=function(M){if(M.getKeys&&typeof M.getKeys=="function")return M.getKeys();if(!M.getValues||typeof M.getValues!="function"){if(typeof Map!=="undefined"&&M instanceof Map)return Array.from(M.keys());if(!(typeof Set!=="undefined"&&M instanceof Set)){if(_.TF(M)||typeof M==="string"){var q=[];M=M.length;for(var G=0;G<M;G++)q.push(G);return q}return _.xP.getKeys(M)}}};
Ecf=function(M,q,G){if(M.forEach&&typeof M.forEach=="function")M.forEach(q,G);else if(_.TF(M)||typeof M==="string")Array.prototype.forEach.call(M,q,G);else for(var K=_.ncB(M),n=_.HT(M),E=n.length,p=0;p<E;p++)q.call(G,n[p],K&&K[p],M)};var AJ4,KO,Eg,WlP,NMJ,prJ,k6M,Y4I,ypl;
_.Za=function(M,q){this.JSC$10036_domain_=this.userInfo_=this.scheme_="";this.JSC$10036_port_=null;this.fragment_=this.JSC$10036_path_="";this.JSC$10036_ignoreCase_=!1;var G;M instanceof _.Za?(this.JSC$10036_ignoreCase_=q!==void 0?q:M.JSC$10036_ignoreCase_,_.e8(this,M.scheme_),this.userInfo_=M.userInfo_,_.$u(this,M.JSC$10036_domain_),_.sg(this,M.JSC$10036_port_),_.Mu(this,M.getPath()),_.qu(this,M.JSC$10036_queryData_.clone()),_.Gj(this,M.fragment_)):M&&(G=_.kJ(String(M)))?(this.JSC$10036_ignoreCase_=
!!q,_.e8(this,G[1]||"",!0),this.userInfo_=KO(G[2]||""),_.$u(this,G[3]||"",!0),_.sg(this,G[4]),_.Mu(this,G[5]||"",!0),_.qu(this,G[6]||"",!0),_.Gj(this,G[7]||"",!0)):(this.JSC$10036_ignoreCase_=!!q,this.JSC$10036_queryData_=new _.nO(null,this.JSC$10036_ignoreCase_))};
_.Za.prototype.toString=function(){var M=[],q=this.scheme_;q&&M.push(Eg(q,NMJ,!0),":");var G=this.JSC$10036_domain_;if(G||q=="file")M.push("//"),(q=this.userInfo_)&&M.push(Eg(q,NMJ,!0),"@"),M.push(_.qz(G).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G=this.JSC$10036_port_,G!=null&&M.push(":",String(G));if(G=this.getPath())this.JSC$10036_domain_&&G.charAt(0)!="/"&&M.push("/"),M.push(Eg(G,G.charAt(0)=="/"?k6M:prJ,!0));(G=this.JSC$10036_queryData_.toString())&&M.push("?",G);(G=this.fragment_)&&M.push("#",
Eg(G,ypl));return M.join("")};
_.Za.prototype.resolve=function(M){var q=this.clone(),G=!!M.scheme_;G?_.e8(q,M.scheme_):G=!!M.userInfo_;G?q.userInfo_=M.userInfo_:G=!!M.JSC$10036_domain_;G?_.$u(q,M.JSC$10036_domain_):G=M.JSC$10036_port_!=null;var K=M.getPath();if(G)_.sg(q,M.JSC$10036_port_);else if(G=!!M.JSC$10036_path_){if(K.charAt(0)!="/")if(this.JSC$10036_domain_&&!this.JSC$10036_path_)K="/"+K;else{var n=q.getPath().lastIndexOf("/");n!=-1&&(K=q.getPath().slice(0,n+1)+K)}n=K;if(n==".."||n==".")K="";else if(_.Ys(n,"./")||_.Ys(n,
"/.")){K=_.Ee(n,"/");n=n.split("/");for(var E=[],p=0;p<n.length;){var y=n[p++];y=="."?K&&p==n.length&&E.push(""):y==".."?((E.length>1||E.length==1&&E[0]!="")&&E.pop(),K&&p==n.length&&E.push("")):(E.push(y),K=!0)}K=E.join("/")}else K=n}G?_.Mu(q,K):G=M.JSC$10036_queryData_.toString()!=="";G?_.qu(q,M.JSC$10036_queryData_.clone()):G=!!M.fragment_;G&&_.Gj(q,M.fragment_);return q};
_.Za.prototype.clone=function(){return new _.Za(this)};
_.e8=function(M,q,G){M.scheme_=G?KO(q,!0):q;M.scheme_&&(M.scheme_=M.scheme_.replace(/:$/,""));return M};
_.$u=function(M,q,G){M.JSC$10036_domain_=G?KO(q,!0):q;return M};
_.sg=function(M,q){if(q){q=Number(q);if(isNaN(q)||q<0)throw Error("Pa`"+q);M.JSC$10036_port_=q}else M.JSC$10036_port_=null;return M};
_.Za.prototype.getPath=function(){return this.JSC$10036_path_};
_.Mu=function(M,q,G){M.JSC$10036_path_=G?KO(q,!0):q;return M};
_.qu=function(M,q,G){q instanceof _.nO?(M.JSC$10036_queryData_=q,Ll$(M.JSC$10036_queryData_,M.JSC$10036_ignoreCase_)):(G||(q=Eg(q,Y4I)),M.JSC$10036_queryData_=new _.nO(q,M.JSC$10036_ignoreCase_));return M};
_.qT=function(M,q,G){M.JSC$10036_queryData_.set(q,G);return M};
_.MT=function(M,q){return M.JSC$10036_queryData_.get(q)};
_.Gj=function(M,q,G){M.fragment_=G?KO(q):q;return M};
_.Nu=function(M){_.qT(M,"zx",$a());return M};
_.s9=function(M,q){return M instanceof _.Za?M.clone():new _.Za(M,q)};
AJ4=function(M,q){M instanceof _.Za||(M=_.s9(M));q instanceof _.Za||(q=_.s9(q));return M.resolve(q)};
KO=function(M,q){return M?q?decodeURI(M.replace(/%25/g,"%2525")):decodeURIComponent(M):""};
Eg=function(M,q,G){return typeof M==="string"?(M=encodeURI(M).replace(q,WlP),G&&(M=M.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),M):null};
WlP=function(M){M=M.charCodeAt(0);return"%"+(M>>4&15).toString(16)+(M&15).toString(16)};
NMJ=/[#\/\?@]/g;prJ=/[#\?:]/g;k6M=/[#\?]/g;Y4I=/[#\?@]/g;ypl=/#/g;_.nO=function(M,q){this.count_=this.keyMap_=null;this.encodedQuery_=M||null;this.JSC$10037_ignoreCase_=!!q};
_.kk=function(M){M.keyMap_||(M.keyMap_=new Map,M.count_=0,M.encodedQuery_&&MAf(M.encodedQuery_,function(q,G){M.add(YJ(q),G)}))};
_.N=_.nO.prototype;_.N.getCount=function(){_.kk(this);return this.count_};
_.N.add=function(M,q){_.kk(this);this.encodedQuery_=null;M=pO(this,M);var G=this.keyMap_.get(M);G||this.keyMap_.set(M,G=[]);G.push(q);this.count_+=1;return this};
_.N.remove=function(M){_.kk(this);M=pO(this,M);return this.keyMap_.has(M)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(M).length,this.keyMap_.delete(M)):!1};
_.N.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.N.isEmpty=function(){_.kk(this);return this.count_==0};
_.N.containsKey=function(M){_.kk(this);M=pO(this,M);return this.keyMap_.has(M)};
_.N.containsValue=function(M){var q=this.getValues();return _.zF(q,M)};
_.N.forEach=function(M,q){_.kk(this);this.keyMap_.forEach(function(G,K){G.forEach(function(n){M.call(q,n,K,this)},this)},this)};
_.N.getKeys=function(){_.kk(this);for(var M=Array.from(this.keyMap_.values()),q=Array.from(this.keyMap_.keys()),G=[],K=0;K<q.length;K++)for(var n=M[K],E=0;E<n.length;E++)G.push(q[K]);return G};
_.N.getValues=function(M){_.kk(this);var q=[];if(typeof M==="string")this.containsKey(M)&&(q=q.concat(this.keyMap_.get(pO(this,M))));else{M=Array.from(this.keyMap_.values());for(var G=0;G<M.length;G++)q=q.concat(M[G])}return q};
_.N.set=function(M,q){_.kk(this);this.encodedQuery_=null;M=pO(this,M);this.containsKey(M)&&(this.count_-=this.keyMap_.get(M).length);this.keyMap_.set(M,[q]);this.count_+=1;return this};
_.N.get=function(M,q){if(!M)return q;M=this.getValues(M);return M.length>0?String(M[0]):q};
_.ApB=function(M,q,G){M.remove(q);G.length>0&&(M.encodedQuery_=null,M.keyMap_.set(pO(M,q),_.Sw(G)),M.count_+=G.length)};
_.nO.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var M=[],q=Array.from(this.keyMap_.keys()),G=0;G<q.length;G++){var K=q[G],n=_.qz(K);K=this.getValues(K);for(var E=0;E<K.length;E++){var p=n;K[E]!==""&&(p+="="+_.qz(K[E]));M.push(p)}}return this.encodedQuery_=M.join("&")};
_.nO.prototype.clone=function(){var M=new _.nO;M.encodedQuery_=this.encodedQuery_;this.keyMap_&&(M.keyMap_=new Map(this.keyMap_),M.count_=this.count_);return M};
var pO=function(M,q){q=String(q);M.JSC$10037_ignoreCase_&&(q=q.toLowerCase());return q},Ll$=function(M,q){q&&!M.JSC$10037_ignoreCase_&&(_.kk(M),M.encodedQuery_=null,M.keyMap_.forEach(function(G,K){var n=K.toLowerCase();
K!=n&&(this.remove(K),_.ApB(this,n,G))},M));
M.JSC$10037_ignoreCase_=q};
_.nO.prototype.extend=function(M){for(var q=0;q<arguments.length;q++)Ecf(arguments[q],function(G,K){this.add(K,G)},this)};var yp=function(M,q){TZ.call(this);for(var G=0,K;K=Rop[G];G++)if(K in M&&!/^https?:\/\//.test(M[K]))throw Error("Ra`"+M[K]+"`"+K);this.cfg_=M;this.name=this.cfg_.cn||Fmp();this.JSC$10032_domHelper_=q||Ig();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.OU(this);M.lpu=M.lpu||$_f(this.JSC$10032_domHelper_.getWindow().location.href)+"/robots.txt";M.ppu=M.ppu||$_f(M.pu||"")+"/robots.txt";Fl[this.name]=this;G_9(window,"unload",d8d)||kj(window,"unload",d8d)};
_.TO(yp,TZ);var vcp=RegExp("^%*tp$"),hD8=RegExp("^%+tp$");_.N=yp.prototype;_.N.connectionDelay_=null;_.N.peerWindowDeferred_=null;_.N.transport_=null;_.N.state_=1;_.N.isConnected=function(){return this.state_==2};
_.N.peerWindowObject_=null;_.N.iframeElement_=null;_.N.getConfig=function(){return this.cfg_};
_.N.connect=function(M){this.connectCb_=M||_.vp;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?xlf(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.N.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$10032_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var M=this.iframeElement_.contentWindow;M||(M=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=M}if(!this.peerWindowObject_){if(window==window.top)throw Error("Ta");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$10032_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new fE(this,this.cfg_.ph,this.JSC$10032_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Sa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.N.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.ka(this.transport_);this.connectCb_=this.transport_=null;_.ka(this.connectionDelay_);this.connectionDelay_=null};
_.N.send=function(M,q){if(this.isConnected()){try{var G=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(n){G=!1}if(G){_.VY(q)&&(q=(0,_.i2)(q));G=this.transport_;var K=G.send;vcp.test(M)&&(M="%"+M);M=M.replace(/[%:|]/g,encodeURIComponent);K.call(G,M,q)}else this.close()}};
_.N.xpcDeliver=function(M,q,G){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.Ju)(this.xpcDeliver,this,M,q,G));else if(swx(this,G)&&!this.isDisposed()&&this.state_!=3)if(M&&M!="tp")this.isConnected()&&(M=M.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),M=hD8.test(M)?M.substring(1):M,M=this.getService(M,q))&&(q=u8l(q,M.objectPayload),q!=null&&M.callback(q));else switch(M=this.transport_,G=$lB(q),q=G[1],G[0]){case "SETUP_ACK":Kld(M,1);M.setupAckReceived_.fired_||M.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":M.protocolVersion_==2&&(Kld(M,2),M.setupAckReceived_.fired_||M.setupAckReceived_.callback(!0));break;case "SETUP":Kld(M,1);G6$(M,1);break;case "SETUP_NTPV2":M.protocolVersion_==2&&(G=M.peerProtocolVersion_,Kld(M,2),G6$(M,2),G!=1&&M.peerEndpointId_==null||M.peerEndpointId_==q||q49(M),M.peerEndpointId_=q)}};
var HFv=function(M){var q=M.cfg_.role;return typeof q==="number"?q:window.parent==M.peerWindowObject_?1:0},swx=function(M,q){var G=M.cfg_.ph;
return _.Lj(q==null?"":String(q))||_.Lj(G==null?"":String(G))||q==M.cfg_.ph};
yp.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Fl[this.name];_.ka(this.peerLoadHandler_);delete this.peerLoadHandler_;yp.superClass_.disposeInternal.call(this)};
var d8d=function(){for(var M in Fl)_.ka(Fl[M])},Fl={};var OAB=function(M,q){this.win=M;this.allowAdsHttpEndpoint=q;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$10046_domHelper=Ig(M);this.scrollManager=new Qn2(M);this.accessibilityManager=new PF2(M);t1J(this)},t1J=function(M){var q=function(){M.allowAdsPopup&&M.allowAdsPopup.style.setProperty("display","none","important");
M.wallElement.style.setProperty("display","","important");iFJ(M.accessibilityManager);B8x(M.accessibilityManager,M.wallElement.querySelector(".fc-dialog-container"),!1,!1,M.wallElement.querySelector(".fc-button-whitelist"));M.scrollManager.enableScrolling()};
M.allowAdsPopup=M.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-whitelist-root"});M.allowAdsPopup.style.setProperty("display","none","important");M.JSC$10046_domHelper.appendChild(M.JSC$10046_domHelper.JSC$9330_document_.body,M.allowAdsPopup);var G=M.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-dialog-overlay"});M.JSC$10046_domHelper.appendChild(M.allowAdsPopup,G);var K=M.JSC$10046_domHelper.JSC$9332_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:q});M.JSC$10046_domHelper.appendChild(M.allowAdsPopup,
K);G=M.JSC$10046_domHelper.JSC$9332_createDom("IFRAME");G.className="fc-whitelist-dialog";G.frameBorder="0";G.id="fc-whitelist-iframe";G.tabIndex="0";_.$C(G,M.allowAdsHttpEndpoint);M.JSC$10046_domHelper.appendChild(K,G);K={};K.pu=_.Iv(M.allowAdsHttpEndpoint).toString();K.tp=1;K.cn="fc-whitelist-channel";K.ifrid=G.id;K.osh=!0;M.allowAdsCrossPageChannel=new yp(K);M.allowAdsCrossPageChannel.registerService("close",q);M.allowAdsCrossPageChannel.registerService("refresh",function(){M.win.location.reload()});
M.allowAdsCrossPageChannel.registerService("resize",function(n){if(n){var E=M.allowAdsPopup.querySelector(".fc-whitelist-dialog");n.width&&E.style.setProperty("width",n.width,"important");n.height&&E.style.setProperty("height",n.height,"important")}},!0);
M.allowAdsCrossPageChannel.connect()};
OAB.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$10046_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var LO=window,Yk=document,wrp=LO.location,CNS=function(){},abp=/\[native code\]/,WL=function(M,q,G){return M[q]=M[q]||G},ocJ=function(M){M=M.sort();
for(var q=[],G=void 0,K=0;K<M.length;K++){var n=M[K];n!=G&&q.push(n);G=n}return q},Aq=function(){var M;
if((M=Object.create)&&abp.test(M))M=M(null);else{M={};for(var q in M)M[q]=void 0}return M},db=WL(LO,"gapi",{});var vL={};vL=WL(LO,"___jsl",Aq());WL(vL,"I",0);WL(vL,"hel",10);var lbp=function(){var M=wrp.href;if(vL.dpo)var q=vL.h;else{q=vL.h;var G=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),K=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(M=M&&(G.exec(M)||K.exec(M)))try{q=decodeURIComponent(M[2])}catch(n){}}return q},XrI=function(M){var q=WL(vL,"PQ",[]);
vL.PQ=[];var G=q.length;if(G===0)M();else for(var K=0,n=function(){++K===G&&M()},E=0;E<G;E++)q[E](n)},PNJ=function(M){return WL(WL(vL,"H",Aq()),M,Aq())};var hq=function(M){this.JSC$10048_obj_=M};
hq.prototype.value=function(){return this.JSC$10048_obj_};
hq.prototype.getWidth=function(){return this.JSC$10048_obj_.width};
hq.prototype.getHeight=function(){return this.JSC$10048_obj_.height};
hq.prototype.getStyle=function(){return this.JSC$10048_obj_.style};var iAM=function(M){this.JSC$10051_obj_=M||{}};
_.N=iAM.prototype;_.N.value=function(){return this.JSC$10051_obj_};
_.N.setUrl=function(M){this.JSC$10051_obj_.url=M;return this};
_.N.getUrl=function(){return this.JSC$10051_obj_.url};
_.N.getStyle=function(){return this.JSC$10051_obj_.style};
_.N.getId=function(){return this.JSC$10051_obj_.id};
_.N.getContext=function(){return this.JSC$10051_obj_.context};
var cpP=function(M){M.JSC$10051_obj_.attributes=M.JSC$10051_obj_.attributes||{};return new hq(M.JSC$10051_obj_.attributes)};var gcP=function(){iAM.apply(this,arguments)};
_.l(gcP,iAM);var BMv=WL(vL,"perf",Aq());WL(BMv,"g",Aq());var Qwx=WL(BMv,"i",Aq());WL(BMv,"r",[]);Aq();Aq();var D8$=function(M,q,G){q&&q.length>0&&(q=IbP(q),G&&G.length>0&&(q+="___"+IbP(G)),q.length>28&&(q=q.substr(0,28)+(q.length-28)),G=q,q=WL(Qwx,"_p",Aq()),WL(q,G,Aq())[M]=(new Date).getTime(),q=BMv.r,typeof q==="function"?q(M,"_p",G):q.push([M,"_p",G]))},IbP=function(M){return M.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var u4l=Aq(),JpJ=[],tq=function(M){throw Error("Ua`"+M);};
JpJ.push(["jsl",function(M){for(var q in M)if(Object.prototype.hasOwnProperty.call(M,q)){var G=M[q];typeof G=="object"?vL[q]=WL(vL,q,[]).concat(G):WL(vL,q,G)}if(q=M.u)M=WL(vL,"us",[]),M.push(q),(q=/^https:(.*)$/.exec(q))&&M.push("http:"+q[1])}]);
var ZA2=/^(\/[a-zA-Z0-9_\-]+)+$/,bAI=[/\/amp\//,/\/amp$/,/^\/amp$/],U8v=/^[a-zA-Z0-9\-_\.,!]+$/,x8B=/^gapi\.loaded_[0-9]+$/,zDv=/^[a-zA-Z0-9,._-]+$/,rpP=function(M,q,G,K,n){var E=M.split(";"),p=E.shift(),y=u4l[p],Y=null;y?Y=y(E,q,G,K):tq("no hint processor for: "+p);Y||tq("failed to generate load url");q=Y;G=q.match(m8P);(K=q.match(S4I))&&K.length===1&&TMI.test(q)&&G&&G.length===1||tq("failed sanity: "+M);try{M="?";if(n&&n.length>0){uiY(n);var A=n.join(",");Y=Y+"?le="+A;M="&"}if(vL.rol){var v=vL.ol;
v&&v.length&&(Y=""+Y+M+"ol="+v.length)}}catch(h){}return Y},RDB=function(M,q,G,K){M=jwB(M);
x8B.test(G)||tq("invalid_callback");q=V1J(q);K=K&&K.length?V1J(K):null;var n=function(E){return encodeURIComponent(E).replace(/%2C/g,",")};
return[encodeURIComponent(M.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",n(M.version),"/m=",n(q),K?"/exm="+n(K):"","/rt=j/sv=1/d=1/ed=1",M.activeMods?"/am="+n(M.activeMods):"",M.resourceSig?"/rs="+n(M.resourceSig):"",M.zcms?"/t="+n(M.zcms):"","/cb=",n(G)].join("")},jwB=function(M){M.charAt(0)!=="/"&&tq("relative path");
for(var q=M.substring(1).split("/"),G=[];q.length;){M=q.shift();if(!M.length||M.indexOf(".")==0)tq("empty/relative directory");else if(M.indexOf("=")>0){q.unshift(M);break}G.push(M)}M={};for(var K=0,n=q.length;K<n;++K){var E=q[K].split("="),p=decodeURIComponent(E[0]),y=decodeURIComponent(E[1]);E.length==2&&p&&y&&(M[p]=M[p]||y)}q="/"+G.join("/");ZA2.test(q)||tq("invalid_prefix");G=0;for(K=bAI.length;G<K;++G)bAI[G].test(q)&&tq("invalid_prefix");G=fbM(M,"k",!0);K=fbM(M,"am");n=fbM(M,"rs");M=fbM(M,"t");
return{pathPrefix:q,version:G,activeMods:K,resourceSig:n,zcms:M}},V1J=function(M){for(var q=[],G=0,K=M.length;G<K;++G){var n=M[G].replace(/\./g,"_").replace(/-/g,"_");
zDv.test(n)&&q.push(n)}return q.join(",")},fbM=function(M,q,G){M=M[q];
!M&&G&&tq("missing: "+q);if(M){if(U8v.test(M))return M;tq("invalid: "+q)}return null},TMI=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,S4I=/\/cb=/g,m8P=/\/\//g;
u4l.m=function(M,q,G,K){(M=M[0])||tq("missing_hint");return"https://apis.google.com"+RDB(M,q,G,K)};
var FlS=decodeURI("%73cript"),HAP=/^[-+_0-9\/A-Za-z]+={0,2}$/,eDl=function(M,q){for(var G=[],K=0;K<M.length;++K){var n=M[K],E;if(E=n){a:{for(E=0;E<q.length;E++)if(q[E]===n)break a;E=-1}E=E<0}E&&G.push(n)}return G},$8S=function(){var M=vL.nonce;
return M!==void 0?M&&M===String(M)&&M.match(HAP)?M:vL.nonce=null:Yk.querySelector?(M=Yk.querySelector("script[nonce]"))?(M=M.nonce||M.getAttribute("nonce")||"",M&&M===String(M)&&M.match(HAP)?vL.nonce=M:vL.nonce=null):null:null},qQB=function(M){if(Yk.readyState!="loading")skM(M);
else{var q=$8S(),G="";q!==null&&(G=' nonce="'+q+'"');M="<"+FlS+' src="'+encodeURI(M)+'"'+G+"></"+FlS+">";Yk.write(MUx?MUx.createHTML(M):M)}},skM=function(M){var q=Yk.createElement(FlS);
q.setAttribute("src",MUx?MUx.createScriptURL(M):M);M=$8S();M!==null&&q.setAttribute("nonce",M);q.async="true";(M=Yk.getElementsByTagName(FlS)[0])?M.parentNode.insertBefore(q,M):(Yk.head||Yk.body||Yk.documentElement).appendChild(q)},Kh$=function(M,q,G){GC$(function(){var K=q===lbp()?WL(db,"_",Aq()):Aq();
K=WL(PNJ(q),"_",K);M(K)},G)},GXw=function(M,q){var G=q||{};
typeof q=="function"&&(G={},G.callback=q);var K=(q=G)&&q._c;if(K)for(var n=0;n<JpJ.length;n++){var E=JpJ[n][0],p=JpJ[n][1];p&&Object.prototype.hasOwnProperty.call(K,E)&&p(K[E],M,q)}q=[];M?q=M.split(":"):G.features&&(q=G.features);if(!(M=G.h)&&(M=lbp(),!M))throw Error("Va");nIJ(q||[],G,M)},nIJ=function(M,q,G){M=ocJ(M)||[];
var K=q.callback,n=q.config,E=q.timeout,p=q.ontimeout,y=q.onerror,Y=void 0;typeof y=="function"&&(Y=y);var A=null,v=!1;if(E&&!p||!E&&p)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";y=WL(PNJ(G),"r",[]).sort();var h=WL(PNJ(G),"L",[]).sort(),t=vL.le||[],O=[].concat(y),a=function(V,S){if(v)return 0;LO.clearTimeout(A);h.push.apply(h,g);var m=((db||{}).config||{}).update;m?m(n):n&&WL(vL,"cu",[]).push(n);if(S){D8$("me0",V,O);try{Kh$(S,G,Y)}finally{D8$("me1",V,O)}}return 1};
E>0&&(A=LO.setTimeout(function(){v=!0;p()},E));
var g=eDl(M,h);if(g.length){g=eDl(M,y);var D=WL(vL,"CP",[]),J=D.length;D[J]=function(V){if(!V)return 0;D8$("ml1",g,O);var S=function(R){D[J]=null;a(g,V)&&XrI(function(){K&&K();R()})},m=function(){var R=D[J+1];
R&&R()};
J>0&&D[J-1]?D[J]=function(){S(m)}:S(m)};
if(g.length){var Z="loaded_"+vL.I++;db[Z]=function(V){D[J](V);db[Z]=null};
M=rpP(G,g,"gapi."+Z,y,t);y.push.apply(y,g);D8$("ml0",g,O);q.sync||LO.___gapisync?qQB(M):skM(M)}else D[J](CNS)}else a(g)&&K&&K()},EIM;
var N_2=null,kCS=_.Kj.trustedTypes;if(kCS&&kCS.createPolicy){try{N_2=kCS.createPolicy("goog#gapi",{createHTML:pyP,createScript:pyP,createScriptURL:pyP})}catch(M){_.Kj.console&&_.Kj.console.error(M.message)}EIM=N_2}else EIM=N_2;var MUx=EIM,GC$=function(M,q){if(vL.hee&&vL.hel>0)try{return M()}catch(G){q&&q(G),vL.hel--,GXw("debug_error",function(){try{window.___jsl.hefn(G)}catch(K){throw G;}})}else try{return M()}catch(G){throw q&&q(G),G;
}},pUB=db.load;
pUB&&WL(vL,"ol",[]).push(pUB);db.load=function(M,q){return GC$(function(){return GXw(M,q)})};var VSi;var LhP=function(M,q){var G=G||[];this.serviceId_=M;this.moduleId_=q||null;this.dependencies_=[];y5P(this,G)};
LhP.prototype.toString=function(){return this.serviceId_};
LhP.prototype.getModuleId=function(){return this.moduleId_};
var y5P=function(M,q){var G=!1;G=G===void 0?!1:G;M.dependencies_=M.dependencies_.concat(q);if(G){if(!M.moduleId_)throw Error("Wa`"+M.serviceId_);q.map(function(K){return K.getModuleId()}).forEach(function(K){R9j(function(n){n.addExtraEdge(M.moduleId_,K)})})}};var D3F=new LhP("MpJwZc","MpJwZc");var XFj=new _.Ao("a"),Jh$=new _.Ao("c"),uGF=function(M,q,G){_.d6.call(this,M,q);this.node=q;this.kind=G};
_.l(uGF,_.d6);var YQB=function(){this.JSC$10064_keys_={};this.urlPrefix_="";this.JSC$10064_queryData_={}};
YQB.prototype.toString=function(){var M=this.urlPrefix_+Whv(this),q=_.gP(this.JSC$10064_queryData_),G="";q!=""&&(G="?"+q);return M+G};
var A5S=function(M){M=Og(M,"md");return!!M&&M!=="0"},Whv=function(M){var q=[],G=function(K){M.JSC$10064_keys_[K]!==void 0&&q.push(K+"="+M.JSC$10064_keys_[K])};
A5S(M)?(G("md"),G("k"),G("ck"),G("am"),G("rs"),G("gssmodulesetproto"),G("slk"),G("dti")):(G("sdch"),G("k"),G("ck"),G("am"),G("rt"),"d"in M.JSC$10064_keys_||wb(M,"d","0"),G("d"),G("exm"),G("excm"),(M.JSC$10064_keys_.excm||M.JSC$10064_keys_.exm)&&q.push("ed=1"),G("im"),G("dg"),G("sm"),Og(M,"br")!="1"&&Og(M,"br")!="0"||G("br"),G("br-d"),Og(M,"rb")=="1"&&G("rb"),Og(M,"zs")!=="0"&&G("zs"),d69(M)!==""&&G("wt"),G("gssmodulesetproto"),G("ujg"),G("sp"),G("rs"),G("cb"),G("ee"),G("slk"),G("dti"),G("m"));return q.join("/")},
Og=function(M,q){return M.JSC$10064_keys_[q]?M.JSC$10064_keys_[q]:null},wb=function(M,q,G){G?M.JSC$10064_keys_[q]=G:delete M.JSC$10064_keys_[q]},vIl=function(M,q){M.urlPrefix_=q},h0v=function(M,q){q&&q.length>0?(q.sort(),wb(M,"exm",q.join(","))):wb(M,"exm",null)},tU2=function(M,q){q&&q.length>0?(q.sort(),wb(M,"excm",q.join(","))):wb(M,"excm",null)},OIB=function(M){return(M=Og(M,"m"))?M.split(","):[]},d69=function(M){switch(Og(M,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},wUf=function(M,q){var G=Object.keys(q).filter(function(K){return!!Object.keys(q[K]).length}).map(function(K){var n=Object.keys(q[K]);
n.length>1&&n.sort();return K+":"+n.join(",")});
G.sort();wb(M,"ee",G.join(";"))},xlu=function(M){var q=Og(M,"ee");
if(!q)return{};M={};q=_.k(q.split(";"));for(var G=q.next();!G.done;G=q.next()){var K=_.k(G.value.split(":"));G=K.next().value;K=K.next().value;M[G]={};K=_.k(K.split(","));for(var n=K.next();!n.done;n=K.next())M[G][n.value]=!0}return M},CRd=function(M){delete M.JSC$10064_keys_.m;
delete M.JSC$10064_keys_.exm;delete M.JSC$10064_keys_.ed};
YQB.prototype.clone=function(){var M=new YQB;M.JSC$10064_keys_=Object.assign({},this.JSC$10064_keys_);M.urlPrefix_=this.urlPrefix_;M.JSC$10064_queryData_=Object.assign({},this.JSC$10064_queryData_);return M};
var zow=function(M,q){q=q===void 0?!0:q;var G=ayv(M),K=new YQB,n=_.kJ(G)[5];_.xP.forEach(oIS,function(p){var y=n.match("/"+p+"=([^/]+)");y&&wb(K,p,y[1])});
var E="";E=M.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";vIl(K,M.substr(0,M.indexOf(E)+E.length));if(!q)return K;(M=_.kJ(G)[6]||null)&&MAf(M,function(p,y){K.JSC$10064_queryData_[p]=y});
return K},ZFj=function(M){M=_.ij(ayv(M));
return M===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(M)?/\/k=/.test(M):!1},ayv=function(M){return M.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?M.substr(65):M},oIS={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},ly$=RegExp("^loaded_(g|h)?[_\\d]+$");_.CO=function(M){this.JSC$10076_id_=M;this.opts={}};
_.CO.prototype.JSC$10078_setLabel=function(M){this.label_=M||void 0;return this};
_.CO.prototype.addUploadMetadata=function(M,q){var G=this.opts.data||{};G[M]=q;this.opts.data=G;return this};
var XUp=function(M){var q=_.xP.filter(M.opts,function(G){return G!==null});
q=_.xP.isEmpty(q)?null:q;M=[M.JSC$10076_id_,M.label_,q];q=gsy(M);return M=M.slice(0,q+1)};
_.CO.prototype.toString=function(){var M=XUp(this);return"("+_.z9(M,function(q){return JSON.stringify(q)}).join(",")+")"};
_.CO.prototype.getId=function(){return this.JSC$10076_id_};
_.CO.prototype.getOptions=function(){return _.xP.clone(this.opts)};var a1=function(){_.CO.call(this,"image-search")};
_.l(a1,_.CO);a1.prototype.setSize=function(M){this.opts.imgsz=M;return this};
a1.prototype.JSC$10078_setLabel=function(M){_.CO.prototype.JSC$10078_setLabel.call(this,M);return this};
a1.prototype.addUploadMetadata=function(M,q){_.CO.prototype.addUploadMetadata.call(this,M,q);return this};var o1=function(){_.CO.call(this,"maps")};
_.l(o1,_.CO);o1.prototype.setZoom=function(M){this.opts.zoom=M;return this};
o1.prototype.JSC$10078_setLabel=function(M){_.CO.prototype.JSC$10078_setLabel.call(this,M);return this};
o1.prototype.addUploadMetadata=function(M,q){_.CO.prototype.addUploadMetadata.call(this,M,q);return this};_.li=function(){_.CO.call(this,"photos")};
_.l(_.li,_.CO);_.li.prototype.JSC$10078_setLabel=function(M){_.CO.prototype.JSC$10078_setLabel.call(this,M);return this};
_.li.prototype.addUploadMetadata=function(M,q){_.CO.prototype.addUploadMetadata.call(this,M,q);return this};var Xc=function(){_.CO.call(this,"url")};
_.l(Xc,_.CO);var PRl=function(){var M=new Xc;M.opts.type="video";M.opts.site="youtube.com";return M};
Xc.prototype.JSC$10078_setLabel=function(M){_.CO.prototype.JSC$10078_setLabel.call(this,M);return this};
Xc.prototype.addUploadMetadata=function(M,q){_.CO.prototype.addUploadMetadata.call(this,M,q);return this};var PL=function(){_.CO.call(this,"video-search")};
_.l(PL,_.CO);var iIP=function(){var M=new PL;M.opts.site="youtube.com";return M};
PL.prototype.JSC$10078_setLabel=function(M){_.CO.prototype.JSC$10078_setLabel.call(this,M);return this};
PL.prototype.addUploadMetadata=function(M,q){_.CO.prototype.addUploadMetadata.call(this,M,q);return this};var c5v=function(){_.CO.call(this,"web")};
_.l(c5v,_.CO);c5v.prototype.JSC$10078_setLabel=function(M){_.CO.prototype.JSC$10078_setLabel.call(this,M);return this};
c5v.prototype.addUploadMetadata=function(M,q){_.CO.prototype.addUploadMetadata.call(this,M,q);return this};var ii=function(){this.items_=[];this.opts={}},gI$=function(M){switch(M){case "image-search":return new a1;
case "maps":return new o1;case "photos":return new _.li;case "url":return new Xc;case "video-search":return new PL;case "web":return new c5v}return new _.CO(M)};
ii.prototype.addView=function(M){this.items_.push(typeof M==="string"?gI$(M):M);return this};
var B_I=function(M){return"("+_.z9(M.items_,function(q){return q.toString()}).join(",")+")"};
ii.prototype.toString=function(){return B_I(this)};
ii.prototype.getViews=function(M,q){q=q===void 0?[]:q;for(var G=this.items_,K=0;K<G.length;K++){var n=G[K];n instanceof ii?n.getViews(M,q):n.getId()==M&&q.push(n)}return q};
ii.prototype.getOptions=function(){return _.xP.clone(this.opts)};var RE=function(M){this.basePickerUrl_=M||"https://docs.google.com/picker";this.nav_=new ii};
RE.prototype.nav_=null;RE.prototype.addView=function(M){this.nav_.addView(M);return this};
RE.prototype.getBaseUrl=function(){return this.basePickerUrl_};
RE.prototype.getViews=function(M){return this.nav_.getViews(M)};
_.Qkl=function(M,q){M.callback_=q;return M};var IyM=new Map;IyM.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");IyM.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");IyM.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var D6S=new Set;D6S.add("application/vnd.google-apps.kix");D6S.add("application/vnd.google-apps.ritz");D6S.add("application/vnd.google-apps.punch");var jk2=function(M,q,G){var K=G&&_.hD(G,1);G=unJ(G);var n=M[0].getId();switch(_.tD(n,2)){case 13:return J5l(M,q,K,G);case 3:return ZIv(M,q,K,G);case 10:return bIJ(M,q,K,G);case 27:return bIJ(M,q,K,G);case 12:return U6I(M,q);case 2:return x6M(M,q,K,G);case 5:return z0x(M,q,K,G);case 9:return m6M(M,q,K,G);case 6:return SQf(M,q,K,G);case 25:return T_I(M,q,K,G);case 1:return _.Ev(M[0],hk$,26)?r5S(M,q,K,G):bIJ(M,q,K,G);default:return{}}},SQf=function(M,q,G,K){M=M.map(function(n){return{id:n.getId().getId(),
serviceId:"youtube",name:n.getName(),description:_.hD(n,3),type:cL(n),lastEditedUtc:_.va$(_.t0(n,_.tY,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:n.getUrl(),embedUrl:_.hD(n,13),thumbnails:gb(fe(n))}});
return{action:q,docs:M,viewToken:K,view:G||"youtube",v2Translated:!0}},x6M=function(M,q,G,K){var n=M.map(function(E){var p=E.getId().getId(),y=_.hD(E,7),Y=E.getName(),A=cL(E),v=_.va$(_.t0(E,_.tY,12)).getTime(),h=E.getUrl(),t=Number(PS$(E)),O=_.hD(E,3),a=_.hD(E,11),g=gb(fe(E));
var D=_.t0(E,FZ,21);D=_.AD(D,1);var J=_.t0(E,FZ,21);J=_.hD(J,10);var Z=_.hD(E,13);var V=_.t0(E,FZ,21);V=_.AD(V,9);var S=_.t0(E,FZ,21);S=_.hD(S,11);p={id:p,serviceId:"docs",mimeType:y,name:Y,type:A,lastEditedUtc:v,url:h,sizeBytes:t,description:O,iconUrl:a,thumbnails:g,isShared:D,downloadUrl:J,embedUrl:Z,copyable:V,resourceKey:S};y=_.t0(E,FZ,21);_.AD(y,12)&&(p.uploadState="success",p.isNew=!0);y=_.t0(E,FZ,21);_.Ev(y,jW,3)&&(E=_.t0(E,FZ,21),E=_.t0(E,jW,3),_.Ev(E,T$,2)&&(y=Ti(E.getDuration().getSeconds()),
Y=E.getDuration(),Y=_.Au(Y,2),p.duration=y+Y/1E9),p.aspectRatio=E.getAspectRatio());return p});
return{action:q,docs:n,viewToken:K,view:G||"all",extraUserInputs:VUp(M),v2Translated:!0}},z0x=function(M,q,G,K){M=M.map(function(n){var E=_.t0(n,PII,15);
E=_.t0(E,rB,1);gM(n,10,rB,E);return{id:n.getId().getId(),serviceId:"web",mimeType:_.hD(n,7),name:n.getName(),type:cL(n),url:n.getUrl(),description:_.hD(n,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gb(fe(n))}});
return{action:q,docs:M,viewToken:K,view:G||"image-search",v2Translated:!0}},m6M=function(M,q,G,K){M=M.map(function(n){return{serviceId:"url",
name:fe(n)[0].getUrl().split("/").pop(),type:cL(n),mimeType:_.hD(n,7),url:n.getUrl(),description:_.hD(n,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gb(fe(n))}});
return{action:q,docs:M,viewToken:K,view:G||"url",v2Translated:!0}},r5S=function(M,q,G,K){M=M.map(function(n){return{id:n.getId().getId(),
serviceId:"picasa",name:n.getName(),type:cL(n),description:_.hD(n,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gb(fe(n))}});
return{action:q,docs:M,viewToken:K,view:G||"webcam",v2Translated:!0}},bIJ=function(M,q,G,K){return{action:q,
docs:M.map(R0x),viewToken:K,view:fyJ(G||"upload",M),extraUserInputs:VUp(M),v2Translated:!0}},fyJ=function(M,q){return q.some(function(G){var K;
return((K=_.t0(G,VF,30))==null?void 0:_.tD(K,3))===9})?M+"/gmailphotos":M},ZIv=function(M,q,G,K){var n=M.map(function(E){var p={id:E.getId().getId(),
serviceId:"picasa",mimeType:_.hD(E,7),name:E.getName(),type:cL(E),lastEditedUtc:_.va$(_.t0(E,_.tY,12)).getTime(),url:E.getUrl(),sizeBytes:Number(PS$(E)),description:_.hD(E,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gb(fe(E)),mediaKey:E.getId().getId(),parentId:_.hD(E,4)},y,Y=(y=_.t0(E,wXf,18))==null?void 0:_.t0(y,OSM,3);Y&&(p.latitude=v7(Y,1),p.longitude=v7(Y,2));var A;E=(A=_.t0(E,wXf,18))==null?void 0:dl(A,6);A=E!=null?Ti(E):void 0;A&&(p.version=
A);return p});
return{action:q,docs:n,viewToken:K,view:G||"photos",extraUserInputs:VUp(M),v2Translated:!0}},J5l=function(M,q,G,K){M=M.map(function(n){return{id:n.getId().getId(),
serviceId:"et",name:fe(n)[0].getUrl().split("/").pop(),description:_.hD(n,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gb(fe(n),"etjpg")}});
return{action:q,docs:M,viewToken:K,view:G||"et",v2Translated:!0}},T_I=function(M,q,G,K){M=M.map(function(n){var E=n.getId().getId(),p=K["2"];
return{id:E,serviceId:p.type!=="gmail_themes"&&p.parent==="6226252643674576769"?"picasa":"static_themes",name:n.getName(),mimeType:_.hD(n,7),type:cL(n),description:_.hD(n,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:n.getUrl(),embedUrl:n.getUrl(),thumbnails:gb(fe(n))}});
return{action:q,docs:M,viewToken:K,view:G||"photos",v2Translated:!0}},U6I=function(M,q){M=M.map(function(G){var K=_.t0(G,tAI,27);
K=_.HI(K,1,_.lP,_.WX())[0];return{id:G.getId().getId(),serviceId:"contacts",mimeType:_.hD(G,7),name:G.getName(),description:_.hD(G,3),url:"mailto:"+K,thumbnail:[{url:_.hD(G,11)}],email:K}});
return{action:q,docs:M,view:"contacts",v2Translated:!0}},unJ=function(M){if(!M)return{};
var q=_.hD(M,3);q=q&&JSON.parse(q)||{};return{0:_.hD(M,1),1:_.hD(M,2),2:q}},gb=function(M,q){q=q===void 0?"":q;
if(!M.length)return null;q=="etjpg"&&(M=M.filter(function(G){return G.getUrl().includes("w1200-h300")}));
return M.map(function(G){return{url:G.getUrl(),height:G.getHeight(),width:G.getWidth(),type:q}})},VUp=function(M){return{isAttachment:M.some(function(q){return _.AD(q,31)})}},R0x=function(M){var q,G={id:(q=M.getId())==null?void 0:q.getId(),
serviceId:Fhx(M),mimeType:_.hD(M,7),name:M.getName(),type:cL(M),sizeBytes:Number(PS$(M)),description:_.hD(M,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:gb(fe(M)),isNew:!0};if(q=_.t0(M,VF,30)){G.dataUrl=_.hD(q,1)||null;a:{var K=_.t0(M,VF,30);switch(_.tD(K,3)){case 9:K=_.aT(K,lGM,2,R5);K={remoteRefs:K&&_.hD(K,1)};break a;case 10:case 15:K=_.aT(K,oaP,4,R5);var n=fe(M);K={photo_id:K&&_.hD(K,1),media_key:M.getId().getId(),media_type:_.tD(M,6)===1?1:2,image_url:n&&
n[0].getUrl(),width:n&&String(n[0].getWidth()),height:n&&String(n[0].getHeight())};break a}K=null}G.uploadMetadata=K;G.uploadId=_.hD(q,9)||null;G.uploadState=HIp(q)||null}(K=q&&_.aT(q,oaP,4,R5))&&(G.id=_.hD(K,1));(K=q&&_.aT(q,XX2,5,R5))&&(G.contentId=_.hD(K,1));(K=q&&_.aT(q,CIv,7,R5))&&(G.contentId=_.hD(K,1));(K=q&&_.aT(q,aG8,6,R5))&&(G.contentId=_.hD(K,1));(q==null?void 0:_.tD(q,3))===1&&(G.mediaKey=M.getId().getId());return G},Fhx=function(M){var q;
switch(((q=_.t0(M,VF,30))==null?void 0:_.tD(q,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},cL=function(M){switch(_.tD(M,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 _.hD(M,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},HIp=function(M){switch(M==null?void 0:_.tD(M,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 M4p,e0I,$62,sl$;_.qUS=function(M,q){var G=q||{};q=G.document||document;var K=_.Iv(M).toString(),n=(new Ce(q)).createElement("SCRIPT"),E={script_:n,timeout_:void 0},p=new r6(e0I,E),y=null,Y=G.timeout!=null?G.timeout:5E3;Y>0&&(y=window.setTimeout(function(){$62(n,!0);p.errback(new sl$(1,"Timeout reached for loading script "+K))},Y),E.timeout_=y);
n.onload=n.onreadystatechange=function(){n.readyState&&n.readyState!="loaded"&&n.readyState!="complete"||($62(n,G.cleanupWhenDone||!1,y),p.callback(null))};
n.onerror=function(){$62(n,!0,y);p.errback(new sl$(0,"Error while loading script "+K))};
E=G.attributes||{};_.xP.extend(E,{type:"text/javascript",charset:"UTF-8"});k9d(n,E);_.Ei(n,M);M4p(q).appendChild(n);return p};
M4p=function(M){var q=BX("HEAD",M);return q&&q.length!==0?q[0]:M.documentElement};
e0I=function(){if(this&&this.script_){var M=this.script_;M&&M.tagName=="SCRIPT"&&$62(M,!0,this.timeout_)}};
$62=function(M,q,G){G!=null&&_.Kj.clearTimeout(G);M.onload=function(){};
M.onerror=function(){};
M.onreadystatechange=function(){};
q&&window.setTimeout(function(){_.cX(M)},0)};
sl$=function(M,q){var G="Jsloader error (code #"+M+")";q&&(G+=": "+q);_.qD.call(this,G);this.code=M};
_.TO(sl$,_.qD);var GyP=_.DQ(["https://apis.google.com/js/api.js"]),KoJ=_.Ow(GyP),kyJ=function(M,q,G){G=G===void 0?{}:G;var K=!1,n=ndf(M,q,G).then(function(p){K=!0;return p}),E=_.Q9l(5E3).then(function(){return K?ndf(M,q,G):Edd(q,G).then(function(p){return Nh8(p,M)})});
return OX$([n,E])},ndf=function(M,q,G){G=G===void 0?{}:G;
return pG8(q,G).then(function(K){return Nh8(K,M)})},Nh8=function(M,q){var G=_.Ee(q,"gapi.")?q.slice(5):q;
return M[G]?_.HF(M[G]):new _.X4(function(K,n){var E=Xl(function(){n(Error("Ya"))},3E4);
M.load(q,{callback:function(){_.Kj.clearTimeout(E);K(M[G])},
onerror:function(p){_.Kj.clearTimeout(E);n(p)}})})},pG8=function(M,q){q=q===void 0?{}:q;
return M.gapi&&M.gapi.load?_.HF(M.gapi):Edd(M,q)},Edd=function(M,q){q=q===void 0?{}:q;
return _.qUS(KoJ,{document:M.document,attributes:q}).then(function(){return M.gapi})},yhd=function(){};
yhd.prototype.load=function(M,q,G){q=q===void 0?window:q;G=G===void 0?{}:G;var K=Date.now();return kyJ(M,q,G).then(function(n){var E=Date.now();return{library:n,loadStartMs:K,loadEndMs:E}},function(n){throw n instanceof Error?n:Error(String(n));
})};var E5w=function(){_.uI.call(this);this.gapiLoader_=new yhd;this.origin_=null;this.gapiPickerIframeResolver_=_.u8();this.gapiIframesResolver_=_.u8();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.l(E5w,_.uI);var Lop=function(M,q){var G=G===void 0?{}:G;var K=_.sx("gapi.iframes",q);return K?(M=Date.now(),_.HF({library:K,loadStartMs:M,loadEndMs:M})):M.gapiLoader_.load("gapi.iframes",q,G)},YUB=function(M,q,G,K,n,E){var p=!1;
p=p===void 0?!1:p;Lop(M,SX(q.ownerDocument)).then(function(y){var Y=y.library;M.gapiIframesResolver_.resolve(Y);y=M.gapiPickerIframeResolver_;var A=y.resolve,v=p;v=v===void 0?!1:v;var h={};h["host-message-handler"]=G;M.hostMessageHandlerInternal_=h;var t=_.s9(K);t=_.s9(t);t=_.sg(_.$u(_.e8(new _.Za,t.scheme_),t.JSC$10036_domain_),t.JSC$10036_port_).toString();M.origin_=t;t=(new gcP).setUrl(K);t.JSC$10051_obj_.where=q;t.JSC$10051_obj_.allowPost=v;t.JSC$10051_obj_.messageHandlers=h;v=_.sx("makeWhiteListIframesFilter",
Y)([M.origin_]);t.JSC$10051_obj_.messageHandlersFilter=v;n!=null&&(t.JSC$10051_obj_.id=n);E!=null&&(t.JSC$10051_obj_.rpctoken=E);v=cpP(t);v.JSC$10048_obj_.style={display:"block","min-width":"100%",width:"1px"};v.JSC$10048_obj_.height="100%";cpP(t).value().allow="camera 'src' "+M.origin_;Y=Y.getContext().openChild(t.value());A.call(y,Y)},function(y){M.gapiIframesResolver_.reject(y);
M.gapiPickerIframeResolver_.reject(y)});
return M.gapiPickerIframeResolver_.promise},Wo2=function(M,q){return _.oi([M.gapiIframesResolver_.promise,
M.gapiPickerIframeResolver_.promise]).then(function(G){var K=_.k(G);G=K.next().value;return(K=K.next().value)?K.send("picker-message-handler",q,void 0,_.sx("makeWhiteListIframesFilter",G)([M.origin_])):_.Aj(Error("Za"))})};
E5w.prototype.disposeInternal=function(){AhB(this);_.uI.prototype.disposeInternal.call(this)};
var AhB=function(M){M.gapiPickerIframeResolver_.promise.then(function(q){q&&(q.unregister("host-message-handler"),delete M.hostMessageHandlerInternal_["host-message-handler"])})};var d3B=function(){this.nextId=0};var hS8=function(M,q){switch(M.action){case "select-contacts":M=vdl(M.contacts);break;case "visibility":M=M.visible;var G=new sS;M=_.lZ(G,1,7).setVisible(M);G={};G["iframe-command"]=M.serialize();M=G;break;default:M=null}return M?Wo2(q,M):_.HF()},vdl=function(M){if(!M||M.length==0)return null;
var q=new sS;_.lZ(q,1,11);var G=new d3B;M.forEach(function(K){if(K.email){var n=new Y1;n=_.gI(n,2,K.name?K.name:K.email);var E=new tAI;K=_.zwu(E,1,_.Cn,K.email,_.lP);K=_.Xe(n,27,K);n=new dyx;E=":"+(G.nextId++).toString(36);n=_.gI(n,1,E);n=_.lZ(n,2,12);K=_.Xe(K,1,n)}else K=null;K&&gM(q,7,Y1,K)});
M={};M["iframe-command"]=q.serialize();return M};_.t4f=function(){if(zuS){var M=/Windows NT ([0-9.]+)/;return(M=M.exec(_.Oe()))?M[1]:"0"}return _.xDv?(M=/1[0|1][_.][0-9_.]+/,(M=M.exec(_.Oe()))?M[0].replace(/_/g,"."):"10"):TQu?(M=/Android\s+([^\);]+)(\)|;)/,(M=M.exec(_.Oe()))?M[1]:""):Se8||T$l||r4$?(M=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(M=M.exec(_.Oe()))?M[1].replace(/_/g,"."):""):""}();var BL;BL=function(M){return(M=M.exec(_.Oe()))?M[1]:""};
_.OYB=function(){if(_.$W)return BL(/Firefox\/([0-9.]+)/);if(_.RH||yn||Zj2)return eu$;if(_.sv){if(_.Iy()||_.Xyw()){var M=BL(/CriOS\/([0-9.]+)/);if(M)return M}return BL(/Chrome\/([0-9.]+)/)}if(_.HR&&!_.Iy())return BL(/Version\/([0-9.]+)/);if(VEs||Rei){if(M=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.Oe()))return M[1]+"."+M[2]}else if(GlP)return(M=BL(/Android\s+([0-9.]+)/))?M:BL(/Version\/([0-9.]+)/);return""}();var wG8=function(){};
_.mi(wG8);wG8.prototype.nextId_=0;_.Qp=function(M){return":"+(M.nextId_++).toString(36)};var I1=function(M){_.w6.call(this);this.JSC$10146_dom_=M||Ig();this.JSC$10146_id_=null;this.inDocument_=!1;this.JSC$10146_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.TO(I1,_.w6);I1.prototype.idGenerator_=wG8.getInstance();I1.prototype.getId=function(){return this.JSC$10146_id_||(this.JSC$10146_id_=_.Qp(this.idGenerator_))};
I1.prototype.getElement=function(){return this.JSC$10146_element_};
var DA=function(M){M.googUiComponentHandler_||(M.googUiComponentHandler_=new _.OU(M));return M.googUiComponentHandler_},CdB=function(M,q){if(M==q)throw Error("$a");
var G;if(G=q&&M.parent_&&M.JSC$10146_id_){G=M.parent_;var K=M.JSC$10146_id_;G=G.childIndex_&&K?_.xP.get(G.childIndex_,K)||null:null}if(G&&M.parent_!=q)throw Error("$a");M.parent_=q;I1.superClass_.setParentEventTarget.call(M,q)};
I1.prototype.setParentEventTarget=function(M){if(this.parent_&&this.parent_!=M)throw Error("ab");I1.superClass_.setParentEventTarget.call(this,M)};
I1.prototype.JSC$10148_createDom=function(){this.JSC$10146_element_=this.JSC$10146_dom_.createElement("DIV")};
I1.prototype.render=function(M){ae2(this,M)};
var ae2=function(M,q,G){if(M.inDocument_)throw Error("bb");M.JSC$10146_element_||M.JSC$10148_createDom();q?q.insertBefore(M.JSC$10146_element_,G||null):M.JSC$10146_dom_.JSC$9330_document_.body.appendChild(M.JSC$10146_element_);M.parent_&&!M.parent_.inDocument_||M.enterDocument()};
_.N=I1.prototype;_.N.decorate=function(M){if(this.inDocument_)throw Error("bb");if(M&&this.canDecorate(M)){this.wasDecorated_=!0;var q=_.T9(M);this.JSC$10146_dom_&&this.JSC$10146_dom_.JSC$9330_document_==q||(this.JSC$10146_dom_=Ig(M));this.decorateInternal(M);this.enterDocument()}else throw Error("cb");};
_.N.canDecorate=function(){return!0};
_.N.decorateInternal=function(M){this.JSC$10146_element_=M};
_.N.enterDocument=function(){this.inDocument_=!0;odv(this,function(M){!M.inDocument_&&M.getElement()&&M.enterDocument()})};
_.N.exitDocument=function(){odv(this,function(M){M.inDocument_&&M.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.N.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);odv(this,function(M){M.dispose()});
!this.wasDecorated_&&this.JSC$10146_element_&&_.cX(this.JSC$10146_element_);this.parent_=this.model_=this.JSC$10146_element_=this.childIndex_=this.children_=null;I1.superClass_.disposeInternal.call(this)};
_.N.getModel=function(){return this.model_};
_.N.addChild=function(M,q){var G=this.children_?this.children_.length:0;if(M.inDocument_&&(q||!this.inDocument_))throw Error("bb");if(G<0||G>(this.children_?this.children_.length:0))throw Error("db");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);M.parent_==this?(_.xP.set(this.childIndex_,M.getId(),M),_.my(this.children_,M)):_.xP.add(this.childIndex_,M.getId(),M);CdB(M,this);_.DDy(this.children_,G,0,M);M.inDocument_&&this.inDocument_&&M.parent_==this?(q=this.getContentElement(),
(q.childNodes[G]||null)!=M.getElement()&&(M.getElement().parentElement==q&&q.removeChild(M.getElement()),G=q.childNodes[G]||null,q.insertBefore(M.getElement(),G))):q?(this.JSC$10146_element_||this.JSC$10148_createDom(),G=this.children_?this.children_[G+1]||null:null,ae2(M,this.getContentElement(),G?G.JSC$10146_element_:null)):this.inDocument_&&!M.inDocument_&&M.JSC$10146_element_&&M.JSC$10146_element_.parentNode&&M.JSC$10146_element_.parentNode.nodeType==1&&M.enterDocument()};
_.N.getContentElement=function(){return this.JSC$10146_element_};
var odv=function(M,q){M.children_&&M.children_.forEach(q,void 0)};
I1.prototype.removeChild=function(M,q){if(M){var G=typeof M==="string"?M:M.getId();M=this.childIndex_&&G?_.xP.get(this.childIndex_,G)||null:null;G&&M&&(_.xP.remove(this.childIndex_,G),_.my(this.children_,M),q&&(M.exitDocument(),M.JSC$10146_element_&&_.cX(M.JSC$10146_element_)),CdB(M,null))}if(!M)throw Error("eb");return M};_.TO(HDi,F8w);_.TO(e9j,F8w);var lep;_.xP.createSet("A AREA BUTTON HEAD INPUT LINK MENU META OPTGROUP OPTION PROGRESS STYLE SELECT SOURCE TEXTAREA TITLE TRACK".split(" "));var XGJ=function(M,q){q?M.setAttribute("role",q):M.removeAttribute("role")},ui=function(M,q,G){Array.isArray(G)&&(G=G.join(" "));
var K="aria-"+q;G===""||G==void 0?(lep||(G={},lep=(G.atomic=!1,G.autocomplete="none",G.dropeffect="none",G.haspopup=!1,G.live="off",G.multiline=!1,G.multiselectable=!1,G.orientation="vertical",G.readonly=!1,G.relevant="additions text",G.required=!1,G.sort="none",G.busy=!1,G.disabled=!1,G.hidden=!1,G.invalid="false",G)),G=lep,q in G?M.setAttribute(K,G[q]):M.removeAttribute(K)):M.setAttribute(K,G)};var Pdv;_.Jq=function(M,q,G){_.w6.call(this);this.target=M;this.handle=q||M;this.limits=G||new I5(NaN,NaN,NaN,NaN);this.JSC$10151_document_=_.T9(M);this.JSC$10151_eventHandler_=new _.OU(this);_.oE(this,this.JSC$10151_eventHandler_);this.deltaY=this.deltaX=this.startY=this.startX=this.screenY=this.screenX=this.clientY=this.clientX=0;this.enabled_=!0;this.dragging_=!1;this.hysteresisDistanceSquared_=0;_.Yj(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=Pdv};
_.TO(_.Jq,_.w6);Pdv=_.Kj.document&&_.Kj.document.documentElement&&!!_.Kj.document.documentElement.setCapture&&!!_.Kj.document.releaseCapture;_.iYv=function(M,q){M.hysteresisDistanceSquared_=Math.pow(q,2)};
_.N=_.Jq.prototype;_.N.setEnabled=function(M){this.enabled_=M};
_.N.disposeInternal=function(){_.Jq.superClass_.disposeInternal.call(this);_.OS(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$10151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10151_document_.releaseCapture();this.handle=this.target=null};
_.N.startDrag=function(M){var q=M.type=="mousedown";if(!this.enabled_||this.dragging_||q&&(!M.isButton(0)||_.xDv&&M.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new ZA("start",this,M.clientX,M.clientY,M)))this.dragging_=!0,q&&M.preventDefault();else return;else q&&M.preventDefault();q=this.JSC$10151_document_;var G=q.documentElement,K=!this.useSetCapture_;this.JSC$10151_eventHandler_.listen(q,["touchmove","mousemove"],this.handleMove_,
{capture:K,passive:!1});this.JSC$10151_eventHandler_.listen(q,["touchend","mouseup"],this.endDrag,K);this.useSetCapture_?(G.setCapture(!1),this.JSC$10151_eventHandler_.listen(G,"losecapture",this.endDrag)):this.JSC$10151_eventHandler_.listen(SX(q),"blur",this.endDrag);this.scrollTarget_&&this.JSC$10151_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,K);this.clientX=this.startX=M.clientX;this.clientY=this.startY=M.clientY;this.screenX=M.screenX;this.screenY=M.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Q1(Ig(this.JSC$10151_document_))}};
_.N.endDrag=function(M,q){this.JSC$10151_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$10151_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new ZA("end",this,M.clientX,M.clientY,M,chd(this,this.deltaX),gdP(this,this.deltaY),q||M.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.N.handleMove_=function(M){if(this.enabled_){var q=M.clientX-this.clientX,G=M.clientY-this.clientY;this.clientX=M.clientX;this.clientY=M.clientY;this.screenX=M.screenX;this.screenY=M.screenY;if(!this.dragging_){var K=this.startX-this.clientX,n=this.startY-this.clientY;if(K*K+n*n>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new ZA("start",this,M.clientX,M.clientY,M)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(M);return}}G=Bh2(this,q,G);q=G.x;G=G.y;this.dragging_&&this.dispatchEvent(new ZA("beforedrag",
this,M.clientX,M.clientY,M,q,G))&&(QlM(this,M,q,G),M.preventDefault())}};
var Bh2=function(M,q,G){var K=Q1(Ig(M.JSC$10151_document_));q+=K.x-M.pageScroll.x;G+=K.y-M.pageScroll.y;M.pageScroll=K;M.deltaX+=q;M.deltaY+=G;return new _.mK(chd(M,M.deltaX),gdP(M,M.deltaY))};
_.Jq.prototype.onScroll_=function(M){var q=Bh2(this,0,0);M.clientX=this.clientX;M.clientY=this.clientY;QlM(this,M,q.x,q.y)};
var QlM=function(M,q,G,K){M.target.style.left=G+"px";M.target.style.top=K+"px";M.dispatchEvent(new ZA("drag",M,q.clientX,q.clientY,q,G,K))},chd=function(M,q){var G=M.limits;
M=isNaN(G.left)?null:G.left;G=isNaN(G.width)?0:G.width;return Math.min(M!=null?M+G:Infinity,Math.max(M!=null?M:-Infinity,q))},gdP=function(M,q){var G=M.limits;
M=isNaN(G.top)?null:G.top;G=isNaN(G.height)?0:G.height;return Math.min(M!=null?M+G:Infinity,Math.max(M!=null?M:-Infinity,q))};
_.Jq.prototype.isDragging=function(){return this.dragging_};
var ZA=function(M,q,G,K,n,E,p){_.d6.call(this,M);this.clientX=G;this.clientY=K;this.browserEvent=n;this.left=E!==void 0?E:q.deltaX;this.top=p!==void 0?p:q.deltaY};
_.TO(ZA,_.d6);var bi=function(M){this.JSC$10158_map_=new Map;var q=arguments.length;if(q>1){if(q%2)throw Error("ma");for(var G=0;G<q;G+=2)this.set(arguments[G],arguments[G+1])}else M&&this.addAll(M)};
_.N=bi.prototype;_.N.getCount=function(){return this.JSC$10158_map_.size};
_.N.getValues=function(){return Array.from(this.JSC$10158_map_.values())};
_.N.getKeys=function(){return Array.from(this.JSC$10158_map_.keys())};
_.N.containsKey=function(M){return this.JSC$10158_map_.has(M)};
_.N.containsValue=function(M){return this.getValues().some(function(q){return q==M})};
_.N.equals=function(M,q){var G=this;q=q===void 0?function(K,n){return K===n}:q;
return this===M?!0:this.JSC$10158_map_.size!=M.getCount()?!1:this.getKeys().every(function(K){return q(G.JSC$10158_map_.get(K),M.get(K))})};
_.N.isEmpty=function(){return this.JSC$10158_map_.size==0};
_.N.clear=function(){this.JSC$10158_map_.clear()};
_.N.remove=function(M){return this.JSC$10158_map_.delete(M)};
_.N.get=function(M,q){return this.JSC$10158_map_.has(M)?this.JSC$10158_map_.get(M):q};
_.N.set=function(M,q){this.JSC$10158_map_.set(M,q);return this};
_.N.addAll=function(M){if(M instanceof bi){M=_.k(M.JSC$10158_map_);for(var q=M.next();!q.done;q=M.next()){var G=_.k(q.value);q=G.next().value;G=G.next().value;this.JSC$10158_map_.set(q,G)}}else if(M)for(M=_.k(Object.entries(M)),q=M.next();!q.done;q=M.next())G=_.k(q.value),q=G.next().value,G=G.next().value,this.JSC$10158_map_.set(q,G)};
_.N.forEach=function(M,q){var G=this;q=q===void 0?this:q;this.JSC$10158_map_.forEach(function(K,n){return M.call(q,K,n,G)})};
_.N.clone=function(){return new bi(this)};(function(){for(var M=["ms","moz","webkit","o"],q,G=0;q=M[G]&&!_.Kj.requestAnimationFrame;++G)_.Kj.requestAnimationFrame=_.Kj[q+"RequestAnimationFrame"],_.Kj.cancelAnimationFrame=_.Kj[q+"CancelAnimationFrame"]||_.Kj[q+"CancelRequestAnimationFrame"];if(!_.Kj.requestAnimationFrame){var K=0;_.Kj.requestAnimationFrame=function(n){var E=(new Date).getTime(),p=Math.max(0,16-(E-K));K=E+p;return _.Kj.setTimeout(function(){n(E+p)},p)};
_.Kj.cancelAnimationFrame||(_.Kj.cancelAnimationFrame=function(n){clearTimeout(n)})}})();
var IeM=[[],[]],D38=0,uGl=!1,Jh9=0,bY9=function(M,q){var G=Jh9++,K={measureTask:{id:G,fn:M.measure,context:q},mutateTask:{id:G,fn:M.mutate,context:q},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(K.args||(K.args=[]),K.args.length=0,K.args.push.apply(K.args,arguments),K.args.push(K.state)):K.args&&K.args.length!=0?(K.args[0]=K.state,K.args.length=1):K.args=[K.state];K.isScheduled||(K.isScheduled=!0,IeM[D38].push(K));uGl||(uGl=!0,window.requestAnimationFrame(ZYI))}},ZYI=
function(){uGl=!1;
var M=IeM[D38],q=M.length;D38=(D38+1)%2;for(var G,K=0;K<q;++K){G=M[K];var n=G.measureTask;G.isScheduled=!1;n.fn&&n.fn.apply(n.context,G.args)}for(K=0;K<q;++K)G=M[K],n=G.mutateTask,G.isScheduled=!1,n.fn&&n.fn.apply(n.context,G.args),G.state={};M.length=0};var U3P=_.DQ(["about:blank"]),x3l=_.DQ(["javascript:undefined"]),zS$=_.Ow(U3P);_.Iv(zS$);var m3M=_.Ow(x3l);_.Iv(m3M);var Ug=function(M){_.w6.call(this);this.JSC$10164_element_=M;this.listenKeyIn_=_.Yj(this.JSC$10164_element_,"focus",this,!0);this.listenKeyOut_=_.Yj(this.JSC$10164_element_,"blur",this,!0)};
_.TO(Ug,_.w6);Ug.prototype.handleEvent=function(M){var q=new _.vT(M.event_);q.type=M.type=="focusin"||M.type=="focus"?"focusin":"focusout";this.dispatchEvent(q)};
Ug.prototype.disposeInternal=function(){Ug.superClass_.disposeInternal.call(this);pl(this.listenKeyIn_);pl(this.listenKeyOut_);delete this.JSC$10164_element_};var SUI=function(M,q){this.JSC$10167_element_=M;this.JSC$10167_dom_=q};var xk=function(M,q){I1.call(this,q);this.useIframeMask_=!!M;this.lastFocus_=null;this.resizeBackgroundTask_=bY9({mutate:this.resizeBackground_},this);bY9({mutate:this.updateModalAndBackground_},this)};
_.TO(xk,I1);_.N=xk.prototype;_.N.focusHandler_=null;_.N.visible_=!1;_.N.bgEl_=null;_.N.bgIframeEl_=null;_.N.tabCatcherElement_=null;_.N.backwardTabWrapInProgress_=!1;_.N.getCssClass=function(){return"goog-modalpopup"};
_.N.getBackgroundElement=function(){return this.bgEl_};
_.N.JSC$10148_createDom=function(){xk.superClass_.JSC$10148_createDom.call(this);var M=this.getElement(),q=A4(this.getCssClass()).split(" ");S8(M,q);M.tabIndex=0;_.GL(M,!1);Thd(this);rhf(this)};
var Thd=function(M){if(M.useIframeMask_&&!M.bgIframeEl_){var q=M.JSC$10146_dom_.JSC$9332_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.$C(q,zS$);M.bgIframeEl_=q;M.bgIframeEl_.className=M.getCssClass()+"-bg";_.GL(M.bgIframeEl_,!1);b8l(M.bgIframeEl_,0)}M.bgEl_||(M.bgEl_=M.JSC$10146_dom_.JSC$9332_createDom("DIV",M.getCssClass()+"-bg"),_.GL(M.bgEl_,!1))},rhf=function(M){M.tabCatcherElement_||(M.tabCatcherElement_=M.JSC$10146_dom_.createElement("SPAN"),_.GL(M.tabCatcherElement_,
!1),M.tabCatcherElement_.tabIndex=0,M.tabCatcherElement_.style.position="absolute")};
_.N=xk.prototype;_.N.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.N.canDecorate=function(M){return!!M&&M.tagName=="DIV"};
_.N.decorateInternal=function(M){xk.superClass_.decorateInternal.call(this,M);M=A4(this.getCssClass()).split(" ");S8(this.getElement(),M);Thd(this);rhf(this);this.getElement().tabIndex=0;_.GL(this.getElement(),!1)};
_.N.enterDocument=function(){this.bgIframeEl_&&_.cp(this.bgIframeEl_,this.getElement());_.cp(this.bgEl_,this.getElement());xk.superClass_.enterDocument.call(this);_.gB(this.tabCatcherElement_,this.getElement());this.focusHandler_=new Ug(this.JSC$10146_dom_.JSC$9330_document_);DA(this).listen(this.focusHandler_,"focusin",this.onFocus);jlP(this,!1)};
_.N.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.ka(this.focusHandler_);xk.superClass_.exitDocument.call(this);_.cX(this.bgIframeEl_);_.cX(this.bgEl_);_.cX(this.tabCatcherElement_)};
_.N.setVisible=function(M){if(M!=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_&&jlP(this,M),M){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$10146_dom_.JSC$9330_document_.activeElement}catch(n){}this.updateModalAndBackground_();DA(this).listen(this.JSC$10146_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$10146_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);V4x(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)kj(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){DA(this).unlisten(this.JSC$10146_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$10146_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)kj(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var q=this.JSC$10146_dom_,G=q.JSC$9330_document_.body,K=q.JSC$9330_document_.activeElement||G;if(!this.lastFocus_||this.lastFocus_==G){this.lastFocus_=null;break a}(K==G||q.contains(this.getElement(),K))&&this.lastFocus_.focus()}catch(n){}this.lastFocus_=
null}}};
var jlP=function(M,q){M.modalAriaVisibilityHelper_||(M.modalAriaVisibilityHelper_=new SUI(M.JSC$10146_element_,M.JSC$10146_dom_));M=M.modalAriaVisibilityHelper_;if(q){M.hiddenElements_||(M.hiddenElements_=[]);q=M.JSC$10167_dom_.getChildren(M.JSC$10167_dom_.JSC$9330_document_.body);for(var G=0;G<q.length;G++){var K=q[G],n;if(n=K!=M.JSC$10167_element_)n=K.getAttribute("aria-hidden"),n=!(n==null||n==void 0?0:String(n));n&&(ui(K,"hidden",!0),M.hiddenElements_.push(K))}}else if(M.hiddenElements_){for(q=
0;q<M.hiddenElements_.length;q++)M.hiddenElements_[q].removeAttribute("aria-hidden");M.hiddenElements_=null}};
xk.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var V4x=function(M,q){M.bgIframeEl_&&_.GL(M.bgIframeEl_,q);M.bgEl_&&_.GL(M.bgEl_,q);_.GL(M.getElement(),q);_.GL(M.tabCatcherElement_,q)};
_.N=xk.prototype;_.N.onShow=function(){this.dispatchEvent("show")};
_.N.onHide=function(){V4x(this,!1);this.dispatchEvent("hide")};
_.N.isVisible=function(){return this.visible_};
_.N.focus=function(){this.focusElement_()};
_.N.resizeBackground_=function(){this.bgIframeEl_&&_.GL(this.bgIframeEl_,!1);this.bgEl_&&_.GL(this.bgEl_,!1);var M=this.JSC$10146_dom_.JSC$9330_document_;var q=_.Bc(SX(this.JSC$10146_dom_.JSC$9330_document_)||window);var G=Math.max(q.width,Math.max(M.body.scrollWidth,M.documentElement.scrollWidth));M=Math.max(q.height,Math.max(M.body.scrollHeight,M.documentElement.scrollHeight));this.bgIframeEl_&&(_.GL(this.bgIframeEl_,!0),_.D_M(this.bgIframeEl_,G,M));this.bgEl_&&(_.GL(this.bgEl_,!0),_.D_M(this.bgEl_,
G,M))};
_.N.reposition=function(){var M;if(_.IJJ(this.getElement())=="fixed")var q=M=0;else q=Q1(this.JSC$10146_dom_),M=q.x,q=q.y;var G=JgM(this.getElement());var K=_.Bc(SX(this.JSC$10146_dom_.JSC$9330_document_)||window);M=Math.max(M+K.width/2-G.width/2,0);q=Math.max(q+K.height/2-G.height/2,0);Jc(this.getElement(),M,q);Jc(this.tabCatcherElement_,M,q)};
_.N.onFocus=function(M){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():M.target==this.tabCatcherElement_&&Xl(this.focusElement_,0,this)};
_.N.focusElement_=function(){try{this.getElement().focus()}catch(M){}};
_.N.disposeInternal=function(){_.ka(this.popupShowTransition_);this.popupShowTransition_=null;_.ka(this.popupHideTransition_);this.popupHideTransition_=null;_.ka(this.bgShowTransition_);this.bgShowTransition_=null;_.ka(this.bgHideTransition_);this.bgHideTransition_=null;xk.superClass_.disposeInternal.call(this)};var rc=function(M,q,G){xk.call(this,q,G);this.JSC$10177_class_=M||"modal-dialog";this.buttons_=(new zj).addButton(RSI,!0).addButton(fel,!1,!0)};
_.TO(rc,xk);_.N=rc.prototype;_.N.escapeToCancel_=!0;_.N.hasTitleCloseButton_=!0;_.N.modal_=!0;_.N.draggable_=!0;_.N.backgroundElementOpacity_=.5;_.N.title_="";_.N.JSC$10179_dragger_=null;_.N.JSC$10179_disposeOnHide_=!1;_.N.titleEl_=null;_.N.titleTextEl_=null;_.N.titleTextId_=null;_.N.titleCloseEl_=null;_.N.contentEl_=null;_.N.buttonEl_=null;_.N.getCssClass=function(){return this.JSC$10177_class_};
_.N.setTitle=function(M){this.title_=M;this.titleTextEl_&&_.QF(this.titleTextEl_,M)};
_.N.getTitle=function(){return this.title_};
_.N.getContent=function(){return""};
_.N.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var FoS=function(M){M.getElement()||M.render();return M.getElement()};
rc.prototype.getBackgroundElement=function(){this.getElement()||this.render();return rc.superClass_.getBackgroundElement.call(this)};
var HYS=function(M,q){M.backgroundElementOpacity_=q;M.getElement()&&(q=M.getBackgroundElement())&&b8l(q,M.backgroundElementOpacity_)};
rc.prototype.setDraggable=function(M){this.draggable_=M;eSB(this,M&&this.inDocument_)};
rc.prototype.handleDrag=function(){};
var eSB=function(M,q){var G=A4(M.JSC$10177_class_+"-title-draggable").split(" ");M.getElement()&&(q?S8(M.titleEl_,G):X29(M.titleEl_,G));q&&!M.JSC$10179_dragger_?(q=new _.Jq(M.getElement(),M.titleEl_),M.JSC$10179_dragger_=q,S8(M.titleEl_,G),_.Yj(M.JSC$10179_dragger_,"start",M.setDraggerLimits_,!1,M),_.Yj(M.JSC$10179_dragger_,"drag",M.handleDrag,!1,M)):!q&&M.JSC$10179_dragger_&&(M.JSC$10179_dragger_.dispose(),M.JSC$10179_dragger_=null)};
_.N=rc.prototype;
_.N.JSC$10148_createDom=function(){rc.superClass_.JSC$10148_createDom.call(this);var M=this.getElement(),q=this.JSC$10146_dom_;this.titleTextId_=this.getId();var G=this.getId()+".contentEl";this.titleEl_=q.JSC$9332_createDom("DIV",this.JSC$10177_class_+"-title",this.titleTextEl_=q.JSC$9332_createDom("SPAN",{className:this.JSC$10177_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=q.JSC$9332_createDom("SPAN",this.JSC$10177_class_+"-title-close"));WKM(M,this.titleEl_,this.contentEl_=
q.JSC$9332_createDom("DIV",{className:this.JSC$10177_class_+"-content",id:G}),this.buttonEl_=q.JSC$9332_createDom("DIV",this.JSC$10177_class_+"-buttons"));XGJ(this.titleTextEl_,"heading");XGJ(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;ui(this.titleCloseEl_,"label","Close");XGJ(M,"dialog");ui(M,"labelledby",this.titleTextId_||"");_.GL(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(M=this.buttons_,M.JSC$10180_element_=this.buttonEl_,M.render());_.GL(this.buttonEl_,!!this.buttons_);
HYS(this,this.backgroundElementOpacity_)};
_.N.decorateInternal=function(M){rc.superClass_.decorateInternal.call(this,M);M=this.getElement();var q=this.JSC$10177_class_+"-content";this.contentEl_=a5(document,null,q,M)[0];this.contentEl_||(this.contentEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",q),M.appendChild(this.contentEl_));q=this.JSC$10177_class_+"-title";var G=this.JSC$10177_class_+"-title-text",K=this.JSC$10177_class_+"-title-close";(this.titleEl_=a5(document,null,q,M)[0])?(this.titleTextEl_=a5(document,null,G,this.titleEl_)[0],
this.titleCloseEl_=a5(document,null,K,this.titleEl_)[0]):(this.titleEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",q),M.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=i8J(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.lo("SPAN",{className:G,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;ui(M,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=
this.JSC$10146_dom_.JSC$9332_createDom("SPAN",K),this.titleEl_.appendChild(this.titleCloseEl_));_.GL(this.titleCloseEl_,this.hasTitleCloseButton_);q=this.JSC$10177_class_+"-buttons";(this.buttonEl_=a5(document,null,q,M)[0])?(this.buttons_=new zj(this.JSC$10146_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$10146_dom_.JSC$9332_createDom("DIV",q),M.appendChild(this.buttonEl_),this.buttons_&&(M=this.buttons_,M.JSC$10180_element_=this.buttonEl_,M.render()),_.GL(this.buttonEl_,
!!this.buttons_));HYS(this,this.backgroundElementOpacity_)};
_.N.enterDocument=function(){rc.superClass_.enterDocument.call(this);DA(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);DA(this).listen(this.buttonEl_,"click",this.onButtonClick_);eSB(this,this.draggable_);DA(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var M=this.getElement();XGJ(M,"dialog");this.titleTextEl_.id!==""&&ui(M,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){M=this.JSC$10146_dom_;
var q=this.getBackgroundElement();M.removeNode(this.bgIframeEl_);M.removeNode(q)}this.isVisible()&&jlP(this,!1)}};
_.N.exitDocument=function(){this.isVisible()&&this.setVisible(!1);eSB(this,!1);rc.superClass_.exitDocument.call(this)};
_.N.setVisible=function(M){M!=this.isVisible()&&(this.inDocument_||this.render(),rc.superClass_.setVisible.call(this,M))};
_.N.onShow=function(){rc.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.N.onHide=function(){rc.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$10179_disposeOnHide_&&this.dispose()};
_.N.setDraggerLimits_=function(){var M=this.JSC$10146_dom_.JSC$9330_document_,q=_.Bc(SX(M)||window),G=Math.max(M.body.scrollWidth,q.width);M=Math.max(M.body.scrollHeight,q.height);var K=JgM(this.getElement());_.IJJ(this.getElement())=="fixed"?this.JSC$10179_dragger_.limits=new I5(0,0,Math.max(0,q.width-K.width),Math.max(0,q.height-K.height)):this.JSC$10179_dragger_.limits=new I5(0,0,G-K.width,M-K.height)};
_.N.onTitleCloseClick_=function(){$3S(this)};
var $3S=function(M){if(M.hasTitleCloseButton_){var q=M.buttons_,G=q&&q.cancelButton_;G?(q=q.get(G),M.dispatchEvent(new m7(G,q))&&M.setVisible(!1)):M.setVisible(!1)}},sf$=function(M){M.hasTitleCloseButton_=!1;
M.titleCloseEl_&&_.GL(M.titleCloseEl_,M.hasTitleCloseButton_)};
rc.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;rc.superClass_.disposeInternal.call(this)};
rc.prototype.onButtonClick_=function(M){a:{for(M=M.target;M!=null&&M!=this.buttonEl_;){if(M.tagName=="BUTTON")break a;M=M.parentNode}M=null}if(M&&!M.disabled){M=M.name;var q=this.buttons_.get(M);this.dispatchEvent(new m7(M,q))&&this.setVisible(!1)}};
rc.prototype.onKey_=function(M){var q=!1,G=!1,K=this.buttons_,n=M.target;if(M.type=="keydown")if(this.escapeToCancel_&&M.keyCode==27){var E=K&&K.cancelButton_;n=n.tagName=="SELECT"&&!n.disabled;E&&!n?(G=!0,q=K.get(E),q=this.dispatchEvent(new m7(E,q))):n||(q=!0)}else{if(M.keyCode==9&&M.shiftKey&&n==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(v){}Xl(this.resetBackwardTabWrap_,0,this)}}else if(M.keyCode==13){if(n.tagName=="BUTTON"&&!n.disabled)E=n.name;
else if(n==this.titleCloseEl_)$3S(this);else if(K){var p=K.defaultButton_,y;if(y=p)a:{y=BX("BUTTON",K.JSC$10180_element_);for(var Y,A=0;Y=y[A];A++)if(Y.name==p||Y.id==p){y=Y;break a}y=null}n=(n.tagName=="TEXTAREA"||n.tagName=="SELECT"||n.tagName=="A")&&!n.disabled;!y||y.disabled||n||(E=p)}E&&K&&(G=!0,q=this.dispatchEvent(new m7(E,String(K.get(E)))))}else n!=this.titleCloseEl_||M.keyCode!=32&&M.key!=" "||$3S(this);if(q||G)M.stopPropagation(),M.preventDefault();q&&this.setVisible(!1)};
var m7=function(M,q){this.type="dialogselect";this.key=M;this.caption=q};
_.TO(m7,_.d6);var zj=function(M){bi.call(this);M||Ig();this.cancelButton_=this.JSC$10180_element_=this.defaultButton_=null};
_.TO(zj,bi);_.N=zj.prototype;_.N.clear=function(){bi.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.N.set=function(M,q,G,K){bi.prototype.set.call(this,M,q);G&&(this.defaultButton_=M);K&&(this.cancelButton_=M);return this};
_.N.addButton=function(M,q,G){return this.set(M.key,M.caption,q,G)};
_.N.render=function(){if(this.JSC$10180_element_){_.NX(this.JSC$10180_element_,y0i);var M=Ig(this.JSC$10180_element_);this.forEach(function(q,G){q=M.JSC$9332_createDom("BUTTON",{name:G},q);G==this.defaultButton_&&(q.className="goog-buttonset-default");this.JSC$10180_element_.appendChild(q)},this)}};
_.N.decorate=function(M){if(M&&M.nodeType==1){this.JSC$10180_element_=M;M=BX("BUTTON",this.JSC$10180_element_);for(var q,G,K,n=0;q=M[n];n++)if(G=q.name||q.id,K=i8J(q)||q.value,G){var E=n==0;this.set(G,K,E,q.name=="cancel");E&&_.Zg(q,"goog-buttonset-default")}}};
_.N.getElement=function(){return this.JSC$10180_element_};
var RSI={key:"ok",caption:"OK"},fel={key:"cancel",caption:"Cancel"},MPM={key:"yes",caption:"Yes"},quB={key:"no",caption:"No"},Gtx={key:"save",caption:"Save"},K3J={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new zj).addButton(RSI,!0,!0),(new zj).addButton(RSI,!0).addButton(fel,!1,!0),(new zj).addButton(MPM,!0).addButton(quB,!1,!0),(new zj).addButton(MPM).addButton(quB,!0).addButton(fel,!1,!0),(new zj).addButton(K3J).addButton(Gtx).addButton(fel,!0,!0));_.TO($zs,rc);_.TO(sny,RE);var nDB=_.DQ(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),EDB=_.DQ(["//apis.google.com/js/rpc.js"]),p2Y=_.Ow(nDB),kIj=_.Ow(EDB),qhy=null;var fS=function(M,q){_.w6.call(this);this.JSC$10189_element_=M;M=_.kc(this.JSC$10189_element_)?this.JSC$10189_element_:this.JSC$10189_element_?this.JSC$10189_element_.body:null;this.isRtl_=!!M&&_.U_S(M);this.listenKey_=_.Yj(this.JSC$10189_element_,_.Fa?"DOMMouseScroll":"mousewheel",this,q)};
_.TO(fS,_.w6);fS.prototype.handleEvent=function(M){var q=0,G=0,K=M.event_;K.type=="mousewheel"?(M=Ntf(-K.wheelDelta),K.wheelDeltaX!==void 0?(q=Ntf(-K.wheelDeltaX),G=Ntf(-K.wheelDeltaY)):G=M):(M=K.detail,M>100?M=3:M<-100&&(M=-3),K.axis!==void 0&&K.axis===K.HORIZONTAL_AXIS?q=M:G=M);typeof this.maxDeltaX_==="number"&&(q=_.wr(q,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(G=_.wr(G,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(q=-q);q=new ktJ(M,K,q,G);this.dispatchEvent(q)};
var Ntf=function(M){return _.Hh&&(_.xDv||mD2)&&M%40!=0?M:M/40};
fS.prototype.disposeInternal=function(){fS.superClass_.disposeInternal.call(this);pl(this.listenKey_);this.listenKey_=null};
var ktJ=function(M,q,G,K){_.vT.call(this,q);this.type="mousewheel";this.detail=M;this.deltaX=G;this.deltaY=K};
_.TO(ktJ,_.vT);_.Uz=function(M){var q="instance_";if(M.instance_&&M.hasOwnProperty(q))return M.instance_;q=new M;return M.instance_=q};var N8y;var pFd=_.DQ(["https://about:blank"]),yld=_.DQ(['javascript:""']),L3S=_.DQ(["about:blank"]);_.TO(KW,$zs);_.N=KW.prototype;_.N.JSC$10197_url_="";_.N.JSC$10197_iframe_=null;_.N.iframeLoaded_=!1;_.N.loadedFired_=!1;_.N.callback_=function(){};
_.N.enterDocument=function(){KW.superClass_.enterDocument.call(this);n5Y(this.getBackgroundElement(),DA(this))};
_.N.render=function(M){var q=this;KW.superClass_.render.call(this,M);this.useGapi_?Lop(this.iframeManager_,window).then(function(){return Yu2(q)}).then(null,function(){q.callback_({action:"error"})}):W3v(this)};
var Yu2=function(M){var q=M.JSC$10146_dom_.JSC$9332_createDom("div",["picker-dialog-content","picker-frame"]);_.GL(q,!1);M.getContentElement().appendChild(q);return YUB(M.iframeManager_,q,function(G){var K=Bc8(G["iframe-command"]);switch(K.getCommand()){case 1:G=M.callback_;K=_.t0(K,$E,2);var n="";switch(K.getStatus()){case 2:n="cancel";break;case 1:n="picked";break;case 3:n="error"}var E=_.Ya(K,Y1,2,_.WX(YMS));K=E.length===0?{action:n}:jk2(E,n,_.t0(K,iSd,7));G.call(M,K);M.setVisible(!1);break;case 4:sf$(M);
M.callback_({action:"loaded"});break;case 7:case 8:G=M.callback_;a:{n=K.getCommand();E=_.t0(K,$E,2);switch(n){case 7:n="uploadScheduled";break;case 8:n="uploadStateChange";break;default:K={};break a}K=_.Ya(E,Y1,2,_.WX(YMS));if(K.length===0)K={action:n};else{var p=_.t0(E,iSd,7);E=p&&_.hD(p,1);p=unJ(p);K=bIJ(K,n,E,p)}}G.call(M,K)}},M.JSC$10197_url_,M.targetId_,M.rpcToken_).then(function(G){M.JSC$10197_iframe_=G.getIframeEl();
Alv(M);_.GL(M.JSC$10197_iframe_.parentElement,!0);_.Zg(M.getElement(),"picker-dialog");dhv(M);return G})},W3v=function(M){M.JSC$10197_iframe_=M.JSC$10146_dom_.JSC$9332_createDom("IFRAME",{id:M.targetId_,
name:M.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.$C(M.JSC$10197_iframe_,vD8(M));_.Zg(M.getElement(),"picker-dialog");M.getContentElement().appendChild(M.JSC$10197_iframe_);DA(M).listen(M.JSC$10197_iframe_,"load",function(){return void Alv(M)});
M.JSC$10197_iframe_.src=M.JSC$10197_url_;dhv(M)},tPJ=function(M){hzB(M,(0,_.Ju)(function(q){q.setAuthToken(this.targetId_,this.rpcToken_)},M))},dhv=function(M){var q=_.MT(_.s9(M.JSC$10197_url_),"title");
q&&M.setTitle(q)},vD8=function(M){return _.aFF("Internet Explorer")>=7&&_.Ee(M.JSC$10197_url_,"https")?_.Ow(pFd):_.RH?_.Ow(yld):_.Ow(L3S)},Alv=function(M){tPJ(M);
M.iframeLoaded_=!0;M.JSC$10197_iframe_.tabIndex=0;M.isVisible()&&M.focus()};
KW.prototype.handleKeydown_=function(M){M.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),M.stopPropagation(),M.preventDefault())};
var hzB=function(M,q){var G=M.JSC$10195_gadgetsDomHelper_;GIy(function(){q(G.getWindow().gadgets.rpc)},G)};
KW.prototype.setUrl=function(M){M=_.qT(new _.Za(M),"rpcService",this.targetId_);_.qT(M,"rpctoken",this.rpcToken_);_.Gj(M,"rpctoken="+this.rpcToken_);_.e8(M,"https");this.JSC$10197_url_=M.toString();this.JSC$10197_iframe_&&(this.JSC$10197_iframe_.src=this.JSC$10197_url_)};
var Oxl=function(M,q){M.callback_=q;hzB(M,(0,_.Ju)(function(G){G.register(this.targetId_,(0,_.Ju)(this.handlePickerAction_,this))},M))};
KW.prototype.handlePickerAction_=function(M){var q=M.action;q=="loaded"&&(this.loadedFired_=!0,wFv(this,new e9j(this.isVisible())),CGl(this),sf$(this),DA(this).unlisten(this.JSC$10146_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$10197_iframe_.tabIndex=0);q!="picked"&&q!="cancel"||this.setVisible(!1);this.callback_(M)};
var CGl=function(M){M.JSC$10197_appId_&&wFv(M,new HDi(M.JSC$10197_appId_,window.location.protocol+"//"+window.location.host))};
KW.prototype.setRelayUrl=function(M){hzB(this,(0,_.Ju)(function(q){q.setRelayUrl(this.targetId_,M)},this))};
var wFv=function(M,q){M.useGapi_&&hS8(q,M.iframeManager_).then(null,function(){M.callback_({action:"error"})});
hzB(M,(0,_.Ju)(function(G){G.call(this.targetId_,"picker",null,q)},M))};
KW.prototype.resizePicker_=function(){var M=SX(this.JSC$10146_dom_.JSC$9330_document_)||window;if(_.MT(_.s9(this.JSC$10197_url_),"ignoreLimits")=="true")M=new _.cc(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.MT(_.s9(this.JSC$10197_url_),"shadeDialog")=="true"){var q=FoS(this);q=x_I(q);var G=_.Bc(M);M=G.width-80;G=G.height-40;q&&(M-=q.left?q.left:0,M-=q.right?q.right:0,G-=q.top?q.top:0,G-=q.bottom?q.bottom:0);M=new _.cc(M>0?M:0,G>0?G:0)}else(q=this.preferredDialogWidth_)?(q=Math.max(320,
Math.min(1051,q)),(G=this.preferredDialogHeight_)||(G=_.Bc(M).height*.85),G=Math.max(480,Math.min(650,G))):(q=_.Bc(M),G=q.width*.618,G=G<q.height?Math.round(Math.max(480,Math.min(650,G*.85))):Math.round(Math.max(480,Math.min(650,q.height*.85))),q=Math.round(G/.618)),M=_.Bc(M),q=Math.min(q,Math.max(M.width,320)),G=Math.min(G,Math.max(M.height,480)),M=new _.cc(q,G);_.D_M(this.getContentElement(),M);this.reposition()};
KW.prototype.reposition=function(){if(_.MT(_.s9(this.JSC$10197_url_),"shadeDialog")=="true"){var M=JgM(this.getElement()),q=_.Bc(this.JSC$10146_dom_.getWindow());M=Math.floor(q.width/2-M.width/2);q=FoS(this);if(q=x_I(q)){var G=q.left?q.left:0;G+=q.right?q.right:0;M=Math.floor(M-G/2)}M=M>0?M:0;q=Q1(this.JSC$10146_dom_).y;Jc(this.getElement(),M,q)}else KW.superClass_.reposition.call(this)};
KW.prototype.setVisible=function(M){if(M!=this.isVisible()&&this.autoSizeDialog_){var q=this.JSC$10146_dom_.getWindow();M?(this.resizePicker_(),DA(this).listen(q,"resize",this.resizePicker_),this.iframeLoaded_||DA(this).listen(q,"keydown",this.handleKeydown_)):(DA(this).unlisten(q,"resize",this.resizePicker_),this.iframeLoaded_||DA(this).unlisten(q,"keydown",this.handleKeydown_))}KW.superClass_.setVisible.call(this,M);wFv(this,new e9j(M))};
KW.prototype.focus=function(){KW.superClass_.focus.call(this);if(this.JSC$10197_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$10197_iframe_.focus()}catch(M){}};var yr=function(M,q){q=q===void 0?KW:q;RE.call(this,M);this.pickerConstructor=q;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(M=window.location.origin)||(M=window.location.protocol+"//"+window.location.host);M&&this.urlParamMap_.set("origin",M);this.postProcessors_=[]};
_.l(yr,sny);yr.prototype.JSC$10202_disposeOnHide_=!1;
yr.prototype.build=function(){this.JSC$10103_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$10103_appId_);this.getRelayUrl()||this.setRelayUrl(_.Mu(_.Gj(_.qu(_.s9(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("fb");var M=new this.pickerConstructor(aaS(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);M.JSC$10179_disposeOnHide_=this.JSC$10202_disposeOnHide_;
M.JSC$10197_appId_=this.JSC$10103_appId_;M.loadedFired_&&CGl(M);Oxl(M,this.callback_);return M};
var oDl=function(M){M.urlParamMap_.set("multiselectEnabled","true");return M};
_.N=yr.prototype;_.N.getHeight=function(){return this.dialogHeight_};
_.N.getProtocol=function(){return this.urlParamMap_.get("protocol")};
_.N.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
_.N.getTitle=function(){return this.urlParamMap_.get("title")};
_.N.getWidth=function(){return this.dialogWidth_};
var lap=function(M){M.JSC$10202_disposeOnHide_=void 0;return M};
yr.prototype.setRelayUrl=function(M){this.urlParamMap_.set("parent",M);return this};
var XFP=function(M,q){M.urlParamMap_.set("selectButtonLabel",q);return M};
yr.prototype.setSize=function(M,q){this.dialogWidth_=M;this.dialogHeight_=q;return this};
yr.prototype.setTitle=function(M){this.urlParamMap_.set("title",M);return this};
var aaS=function(M){M.postProcessors_.length&&M.urlParamMap_.set("pp",JSON.stringify(M.postProcessors_));M.urlParamMap_.set("nav",B_I(M.nav_));var q=new _.Za(M.getBaseUrl());M.urlParamMap_.forEach(function(G,K){_.qT(q,K,G)});
return q};var clB=function(M,q){M.name!==void 0?(this.name=M.name,this.code=PGS[M.name]):(this.code=M=M.code,this.name=ix9(M));_.qD.call(this,eGS("%s %s",this.name,q))};
_.TO(clB,_.qD);var ix9=function(M){var q=_.xP.findKey(PGS,function(G){return M==G});
if(q===void 0)throw Error("hb`"+M);return q},S0={},PGS=(S0.AbortError=3,S0.EncodingError=5,S0.InvalidModificationError=9,S0.InvalidStateError=7,S0.NotFoundError=1,S0.NotReadableError=4,S0.NoModificationAllowedError=6,S0.PathExistsError=12,S0.QuotaExceededError=10,S0.SecurityError=2,S0.SyntaxError=8,S0.TypeMismatchError=11,S0);var gDS=function(M,q){_.d6.call(this,M.type,q);this.event_=M};
_.TO(gDS,_.d6);var Btx=function(M,q,G){G===void 0&&(G=M.size);return M.slice?M.slice(q,G):null};var YhD=new WeakMap,Lmu=function(M,q){M=[M];for(var G=q.length-1;G>=0;--G)M.push(typeof q[G],q[G]);return M.join("\v")};_.A0Y(function(){if(!_.Kj.Blob)return!1;var M=new Uint8Array(100);try{var q=new Blob([M])}catch(G){return!1}return q.size!=100?!1:!0});
var Qf8=_.A0Y(function(){if(!_.Kj.Blob)return!1;var M=new Uint8Array(100);try{var q=new Blob([M])}catch(G){return!1}return Btx(q,0,1)===null?!1:!0});_.Kj.U3bHHf!=null||(_.Kj.U3bHHf=0);_.Kj.U3bHHf++;_.Ia$=new WeakMap;_.DhS=new WeakMap;var v5D={};var NT=void 0;var tGj=Symbol("pb");var Qni=y5("WizInjectionContext_Dispatcher");var A3=Symbol("qb");var cM,uf;cM=function(){this.afterRenderCallbacks=null};
_.tPw=Symbol("rb");uf=function(M){this.props=M;this.__unmounted=!1};
uf.prototype.didPatch=function(){};
uf.prototype.didMount=function(){};
uf.prototype.didUnmount=function(){};
uf.prototype.didUpdate=function(){};_.PFi=y5("WizInjectionContext_RootElement");var c0F=y5("WizInjectionContext_AppContext"),iFw=y5("WizInjectionContext_ModelRootElement"),g5i=y5("WizInjectionContext_RendererData"),B8D=y5("WizInjectionContext_InjectingConstructor"),X2$=y5("WizInjectionContext_AsyncDeps"),IZF={};var Uly=!1;var Shw={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:DDv,enableLazyTsx:uiB,enablePerformanceTiming:!1,enablePerformanceTracing:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:IFM,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};var Y_=Object.assign({},{attributes:{},handleError:function(M){throw M;}},Shw);var uHf=Symbol("vb"),Q5=Symbol("wb"),MUD=Symbol("xb"),$8H=Symbol("yb"),kCH=Z8(function(M){return Wm(M)&&uHf in M});var Fmy=Symbol("zb"),Tj={},Roy=(Tj[Fmy]=!0,Tj.debugName="[component]",Tj.getComponentStack=function(){for(var M=[],q=this;q;)HFy(q)&&M.push(q.debugName),q=q.parent;return M},Tj.registerSignal=function(){},Tj.registerEffect=function(){},Tj);var Ae=null,he=!1,O9=1,aY=Symbol("Db"),cm={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 rb=Symbol("Eb"),j0=Symbol("Fb"),CW=Symbol("Gb"),NMw=Object.assign({},cm,{value:rb,dirty:!0,error:null,equal:eoF,kind:"computed",producerMustRecompute:function(M){return M.value===rb||M.value===j0},
producerRecomputeValue:function(M){if(M.value===j0)throw Error("Z");var q=M.value;M.value=j0;var G=Kl4(M),K=!1;try{var n=M.computation();dY(null);K=q!==rb&&q!==CW&&n!==CW&&M.equal(q,n)}catch(E){n=CW,M.error=E}finally{dY(G),M&&Ecu(M)}K?M.value=q:(M.value=n,M.version++)}});Object.assign({},cm,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});var Lls=function(){throw Error();};var Wlj=null,prw=Object.assign({},cm,{equal:eoF,value:void 0,kind:"signal"});var ApY=Object.assign({},cm,{value:rb,dirty:!0,error:null,equal:eoF,kind:"linkedSignal",producerMustRecompute:function(M){return M.value===rb||M.value===j0},
producerRecomputeValue:function(M){if(M.value===j0)throw Error("Z");var q=M.value;M.value=j0;var G=Kl4(M);try{var K=M.source();var n=M.computation(K,q===rb||q===CW?void 0:{source:M.sourceValue,value:q});M.sourceValue=K}catch(E){n=CW,M.error=E}finally{dY(G),M&&Ecu(M)}q!==rb&&n!==CW&&M.equal(q,n)?M.value=q:(M.value=n,M.version++)}});Object.assign({},cm,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(M){M.schedule!==null&&M.schedule(M.ref)},
cleanupFn:function(){}});var hDF=Symbol("Hb"),XS=Symbol("Ib");var Pm=Array.isArray;var TMy;var JlI={},jwY=S4y(Object.assign({},{consumerAllowSignalWrites:!0},JlI)),BM=S4y(Object.assign({},{consumerAllowSignalWrites:!0},JlI));var IY=0,DP=!1,Vp=function(){this.queue=new Set};
Vp.prototype.schedule=function(M){this.queue.add(M)};
Vp.prototype.remove=function(M){this.queue.delete(M)};
Vp.prototype.clear=function(){this.queue.clear()};
var fbe=Symbol("Nb"),V1w=Symbol("Ob"),R1=function(){Vp.apply(this,arguments)};
_.l(R1,Vp);R1.prototype.flush=function(){if(this.queue.size){DP=!0;for(var M=_.k(this.queue),q=M.next();!q.done;q=M.next()){q=q.value;this.queue.delete(q);try{q.run()}catch(G){ZxB(G)}}DP=!1}};
var bxp=function(){R1.apply(this,arguments)};
_.l(bxp,R1);var RDY=new bxp,UhB=function(){R1.apply(this,arguments)};
_.l(UhB,R1);UhB.prototype.schedule=function(M){var q=this;return _.L(function(G){if(G.nextAddress==1)return Y_.enableQueueEffectAndOnInitInitialRuns?G.jumpTo(2):G.yield(Promise.resolve(),3);if(G.nextAddress!=2)return M.run(),G.return();q.queue.add(M);_.gL(G)})};
var FlH=new UhB,fO=function(){Vp.apply(this,arguments)};
_.l(fO,Vp);fO.prototype.flush=function(){this.queue.size&&pUY(this.queue)};
var xhl=function(){fO.apply(this,arguments)};
_.l(xhl,fO);xhl.prototype.schedule=function(M){M.hasRun?this.queue.add(M):M.run()};
xhl.prototype.flush=function(){if(this.queue.size)if(Y_.flushRenderEffectsDuringRender){var M=this.queue;this.queue=new Set;pUY(M)}else pUY(this.queue)};
var eDF=new xhl,zzd=function(){fO.apply(this,arguments)};
_.l(zzd,fO);zzd.prototype.schedule=function(M){var q=this;return _.L(function(G){if(G.nextAddress==1)return Y_.enableQueueEffectAndOnInitInitialRuns||M.hasRun?G.jumpTo(2):G.yield(Promise.resolve(),3);if(G.nextAddress!=2)return M.run(),G.return();q.queue.add(M);_.gL(G)})};
var qQY=new zzd,mhM=function(){fO.apply(this,arguments)};
_.l(mhM,fO);var ske=new mhM,Khs=[eDF,RDY,ske],N_i=[FlH,qQY],SuS=[eDF,ske,qQY],y5j=[].concat(_.Ui(Khs),_.Ui(N_i)),Ttd=[];Wlj=function(){EIe();for(var M=_.k(Ttd),q=M.next();!q.done;q=M.next())q=q.value,q()};
var ZxB=nj;var ZP=Symbol("Pb");var Je=null,Why,A5H=null,d6$;var Fc={},rl$=Object.assign({},cm,(Fc[uHf]=!0,Fc.effectType=Q5,Fc.isResettableContext=!0,Fc.hasRun=!1,Fc.effectFn=null,Fc.consumerIsAlwaysLive=!0,Fc.consumerAllowSignalWrites=!0,Fc.consumerMarkedDirty=GCs,Fc.kind="effect",Fc.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(he)throw Error("Qb");this.dirty=!1;if(!this.hasRun||M1F(this)){this.hasRun=!0;lZ4(this);var M=_.k_(this),q=Kl4(this);r0s("effectRun",this.debugName);try{x_(this.effectFn,this.componentStack,this)}catch(G){throw Y_.enableContextBasedComponentStacks&&
U9(G),G;}finally{jn$("effectRun",this.debugName),dY(q),this&&Ecu(this),_.k_(M)}}}},Fc.componentStack=void 0,Fc.debugName="[effect]",Fc[Symbol.dispose]=function(){if(te(this))for(var M=this.producers;M!==void 0;)M=ncY(M);
this.consumersTail=this.consumers=this.producersTail=this.producers=void 0;M=_.k(SuS);for(var q=M.next();!q.done;q=M.next())q.value.remove(this);o5e(this)},Fc));var tUi=Object.assign({},rl$,{effectType:MUD});var CR4=Symbol("Rb");var ayy=Object.assign({},rl$,{effectType:Q5});var Kow=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 XUy={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},lys=
{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}]}},O$D={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},c5y=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],iIj={"*":{async:1,dir:0,loading:2,target:3}};var jfM=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,HL={},B_y=(HL[1]=null,HL[2]=function(M,q){return q instanceof Rv?eM(q):mL.toString()},HL[3]=function(M,q){return ZC(q)?_.by(q):jfM.test(String(q))?String(q):mL.toString()},HL[4]=function(M,q){return q instanceof gW?_.Iv(q):mL.toString()},HL[5]=function(M,q){return String(q)},HL[7]=null,HL[8]=null,HL[10]=null,HL);var lTY=Symbol("Ub");var dkj=function(M){var q=VPJ,G=M,K="",n="",E=1;M<0&&(M=-M);if(M===Infinity)M=(Infinity*Math.sign(G)).toString();else{for(var p=0;p<RzM.length;p++){var y=RzM[p];E=q[y];if(M>=E||E<=1&&M>.1*E){K=y;break}}K?(K+="B",n=" "):E=1;M=Math.round(G/E*10)/10+n+K}return M},RzM="Y Z E P T G M K  m u n".split(" "),VPJ={"":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};_.fad=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 CX={};RegExp.prototype.hasOwnProperty("sticky");var Ed4=function(M){M=String(M);for(var q=function(K,n,E){for(var p=Math.min(n.length-E,K.length),y=0;y<p;y++){var Y=n[E+y];if(K[y]!==("A"<=Y&&Y<="Z"?Y.toLowerCase():Y))return!1}return!0},G=0;(G=M.indexOf("<",G))!=-1;){if(q("\x3c/script",M,G)||q("\x3c!--",M,G))return"zSoyz";
G+=1}return M};var Hm={default:"__default"};var ZIy=Object.prototype.hasOwnProperty;D6H.prototype=Object.create(null);var YI=x6e();var pX=null;var HIy=function(M){this.created=[];this.deleted=[];this.node=M};var e0y=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var M=this,q=M;M;)q=M,M=M.parentNode;return q};var m6e=function(M,q){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=M;this.key=q;this.text=void 0};var G_=null,KX=null,M$=null,Eb=null,VUy=[],jki=T_y,N$=[],k2=[],oej=function(M){return $6i(function(q,G,K){M$=KX=q;KX=null;G(K);r5H(null);KX=M$;M$=M$.parentNode;return q},M)}(),aTs=function(M){return $6i(function(q,G,K){var n={nextSibling:q};
KX=n;G(K);M$&&r5H(q.nextSibling);return n===KX?null:KX},M)}();var yz=[],M4y=0;var LX=new D6H;var vb=new D6H;var F3l=x6e(),pGF=F3l[Hm.default],kyw=F3l.style,ndu=["focusin","focusout"],YUY="annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ");var eSY=function(){},zSs=function(){},GtD=function(){},sfs=function(){};var WM=Symbol("bc");var hSF,vdF=d3Y;var lf=Symbol("cc");var quY=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(" ")),
MPe=new Set(["a","font","script","style","title"]);_.o9={setUp:Bhi,tearDown:Bhi,log:Bhi,logNodeRange:Bhi,graft:function(M,q){q()}};var Qz={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var I9=null,Dk=function(M,q){uf.call(this,M);var G=this;this.functionComponent=q;this.hooks=[];this.hookCounter=0;this.disposeEffects=S_(function(K){G.effectContext=K;_.m_(function(){rhu(G,G.el)})},Y_.alwaysTrackContexts||!!NT)};
_.l(Dk,uf);Dk.prototype.render=function(M){var q=I9;I9=this;this.hookCounter=0;var G=dY(BM),K=_.k_(this.effectContext);try{return r0s("render",this.componentName),this.functionComponent(M)}finally{jn$("render",this.componentName),_.k_(K),dY(G),I9=q}};
_.Yd.Object.defineProperties(Dk.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return Lhj(this.functionComponent)}}});var K3w=Symbol("qc"),FoH=function(M,q,G){this.afterRenderCallbacks=null;this.kind=M;this.props=q;this.children=G};
_.l(FoH,cM);FoH.prototype.render=function(){var M=feF(this.kind,this.props,this.children);if(this.afterRenderCallbacks!=null)for(var q=_.k(this.afterRenderCallbacks),G=q.next();!G.done;G=q.next())G=G.value,M=G(M);return M};
FoH.prototype.getChildren=function(){return this.children};var EDY=[];Lls=function(M){throw Error("ob`"+M.debugName);};
(function(){var M=pX;pX=function(q){M==null||M(q);Ntu(q)}})();Object.assign({},rl$,{effectType:Q5,hasRun:!0,elementRef:null,attributes:null,effectFn:function(){var M=this.elementRef;var q;M.element!=null||(M.element=(q=M.document.getElementById(M.value))!=null?q:void 0);M=M.element;for(q=this.attributes;q;){var G=q.signal();G!==q.prevValue&&(q.prevValue=G,q.namespace===1?M[q.name]=G:Kow.has(q.name)?fW(M,q.name,G?"":null):fW(M,q.name,G));q=q.next}}});_.J3.debugName="tbhMcf";_.Zk.debugName="zyMFzb";Object.assign({},rl$,{effectType:Q5,hasRun:!0});_.d.debugName="RlDudd";var ktw={nonNullableCondIsNull:function(){return Error("uc")}};var Aly=function(){this.map=new Map};
Aly.prototype.push=function(M,q){var G=this.map;G.has(M)&&(this.multi||(this.multi=new Map),this.multi.set(q,G.get(M)));G.set(M,q)};
Aly.prototype.pop=function(M){var q=this.map,G=q.get(M),K;G!==void 0&&((K=this.multi)==null?0:K.has(G))?(q.set(M,this.multi.get(G)),this.multi.delete(G)):q.delete(M);return G};_.bf.debugName="nsTGHd";_.Ub.debugName="vI1rtf";_.wFy={OUT_OF_ORDER_HOOK_CALL:function(M){return Error("vc`"+M)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("wc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("xc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("yc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(M,q){return Error("zc`"+((q===void 0?0:q)?"IDOM":"Reactive")+"`"+(x2(M)?M.description:M))},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(M,q){return Error("Ac`"+(x2(M)?M.description:M)+"`"+q)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(M){return Error("Bc`"+(x2(M)?M.description:M))},
USE_ELEMENT_NOT_ASSIGNED:function(M){return Error("Cc`"+(x2(M)?M.description:M))},
USE_ELEMENT_NOT_ASSIGNED_CONTROL_FLOW:function(M){return Error("Dc`"+(x2(M)?M.description:M))}};hSF=HYH;var PGH=Symbol("Ec");SUy({beforeRender:function(M){var q=_.k_(M.effectContext);try{var G;((G=M.__syncEffects)==null?0:G.length)&&gDH(M.__syncEffects)}finally{_.k_(q)}},
didPatch:function(M){var q=_.k_(M.effectContext);try{var G;((G=M.__syncEffects)==null?0:G.length)&&gDH(M.__syncEffects)}finally{_.k_(q)}},
didUnmount:function(M){var q;((q=M.hooks)==null?0:q.length)&&M.hooks.forEach(clY)}});var Hx9,ezM,$h2;Hx9=_.Kj.window;_.jK=(Hx9==null?void 0:(ezM=Hx9.yt)==null?void 0:ezM.config_)||(Hx9==null?void 0:($h2=Hx9.ytcfg)==null?void 0:$h2.data_)||{};_.Y5("yt.config_",_.jK);var sJ2={},uHu=[];_.bj=function(M){var q=_.rW.apply(1,arguments);var G=Error.call(this,M);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.args=[].concat(_.Ui(q));Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(_.bj,Error);var q7F=function(M,q,G){this.actionName=M;this.optionalAction=q===void 0?!1:q;this.args=G===void 0?null:G;this.returnValue=[]};_.e0=function(M){this.name=M};_.sQ=new _.e0("signalAction");var jfe=/^[\w.]*$/,xhF={q:!0,search_query:!0},UhY=String(bxy);var dP;dP=Symbol("Fc");_.$k=function(M){this.name=M};
_.$k.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var VPw=function(M){this.key=M},eze=function(M){this.deferredKey=M},fa4=function(){var M=this;
this.providers=new Map;this.JSC$10492_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(M.providers)}}};
fa4.prototype.addProvider=function(M){this.providers.set(M.provide,M);var q=this.JSC$10492_deferred.get(M.provide);if(q)try{q.resolver(this.resolve(M.provide))}catch(G){q.rejector(G)}};
fa4.prototype.resolve=function(M){return M instanceof eze?MEM(this,M):M instanceof VPw?ql2(this,M.key,[],!0):ql2(this,M,[])};
var MEM=function(M,q){q=q.deferredKey;if(M.JSC$10492_deferred.has(q))return M.JSC$10492_deferred.get(q).promise;var G={};G.promise=new Promise(function(K,n){G.resolver=K;G.rejector=n});
M.JSC$10492_deferred.set(q,G);return G.promise},ql2=function(M,q,G,K){K=K===void 0?!1:K;
if(G.indexOf(q)>-1)throw Error("Gc`"+q);if(M.cachedValues.has(q))return M.cachedValues.get(q);if(!M.providers.has(q)){if(K)return;throw Error("Hc`"+q);}K=M.providers.get(q);G.push(q);if(K.useValue!==void 0)var n=K.useValue;else if(K.useFactory)n=K[dP]?Ge$(M,K[dP],G):[],n=K.useFactory.apply(K,_.Ui(n));else if(K.useClass){n=K.useClass;var E=n[dP]?Ge$(M,n[dP],G):[];n=new (Function.prototype.bind.apply(n,[null].concat(_.Ui(E))))}else throw Error("Ic`"+q);G.pop();K.skipCache||M.cachedValues.set(q,n);return n},
Ge$=function(M,q,G){return q?q.map(function(K){return K instanceof VPw?ql2(M,K.key,G,!0):ql2(M,K,G)}):[]};var Rze;var M6=new _.$k("ENDPOINT_HANDLER_TOKEN");_.q6=new _.e0("urlEndpoint");var KbM=function(){this.data=[];this.cachedPackedInt52=-1};
KbM.prototype.set=function(M,q){q=q===void 0?!0:q;0<=M&&M<52&&Number.isInteger(M)&&this.data[M]!==q&&(this.data[M]=q,this.cachedPackedInt52=-1)};
KbM.prototype.get=function(M){return!!this.data[M]};
var np$=function(M){M.cachedPackedInt52===-1&&(M.cachedPackedInt52=M.data.reduce(function(q,G,K){return q+(G?Math.pow(2,K):0)},0));
return M.cachedPackedInt52};var Yle=function(M){var q=Epf;M=M===void 0?_.sx("yt.ads.biscotti.lastId_")||"":M;var G=Object,K=G.assign,n={};n.dt=Km8;n.flash="0";a:{try{var E=q.JSC$10498_win_.top.location.href}catch(se){E=2;break a}E=E?E===q.doc_.location.href?0:1:2}n=(n.frm=E,n);try{n.u_tz=-(new Date).getTimezoneOffset();try{var p=US.history.length}catch(se){p=0}n.u_his=p;var y;n.u_h=(y=US.screen)==null?void 0:y.height;var Y;n.u_w=(Y=US.screen)==null?void 0:Y.width;var A;n.u_ah=(A=US.screen)==null?void 0:A.availHeight;var v;n.u_aw=
(v=US.screen)==null?void 0:v.availWidth;var h;n.u_cd=(h=US.screen)==null?void 0:h.colorDepth}catch(se){}p=q.JSC$10498_win_;try{var t=p.screenX;var O=p.screenY}catch(se){}try{var a=p.outerWidth;var g=p.outerHeight}catch(se){}try{var D=p.innerWidth;var J=p.innerHeight}catch(se){}try{var Z=p.screenLeft;var V=p.screenTop}catch(se){}try{D=p.innerWidth,J=p.innerHeight}catch(se){}try{var S=p.screen.availWidth;var m=p.screen.availTop}catch(se){}t=[Z,V,t,O,S,m,a,g,D,J];O=PIy(!1,q.JSC$10498_win_.top);a={};
var R=R===void 0?_.Kj:R;g=new KbM;"SVGElement"in R&&"createElementNS"in R.document&&g.set(0);D=MXp();D["allow-top-navigation-by-user-activation"]&&g.set(1);D["allow-popups-to-escape-sandbox"]&&g.set(2);R.crypto&&R.crypto.subtle&&g.set(3);"TextDecoder"in R&&"TextEncoder"in R&&g.set(4);R=np$(g);q=(a.bc=R,a.bih=O.height,a.biw=O.width,a.brdim=t.join(),a.vis=hy4(q.doc_),a.wgl=!!US.WebGLRenderingContext,a);G=K.call(G,n,q);G.ca_type="image";M&&(G.bid=M);return G},Epf=new function(){var M=window.document;
this.JSC$10498_win_=window;this.doc_=M};
_.Y5("yt.ads_.signals_.getAdSignalsString",function(M){return zz4(Yle(M))});_.Sh();navigator.userAgent.indexOf(" (CrKey ");var Ges="XMLHttpRequest"in _.Kj?function(){return new XMLHttpRequest}:null;var NjP="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),keS=[].concat(_.Ui(NjP),["client_dev_set_cookie"]);var Lbe={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"},Epu="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(_.Ui(NjP)),COY=!1,keH=_.Wbu,tEH=y2F;var Tke=[{messageFn:function(M){return"Cannot read property '"+M.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(M){return"Cannot call '"+M.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(M){return M.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var p8M={messageWeights:[],callbackWeights:[{callback:X8s,weight:500},{callback:POj,weight:500}]};var y2l=function(){this.callbackWeights=[];this.messageWeights=[]},LbM,Squ=function(){if(!LbM){var M=LbM=new y2l;
M.messageWeights.length=0;M.callbackWeights.length=0;Lew(M,p8M)}return LbM},Lew=function(M,q){q.messageWeights&&M.messageWeights.push.apply(M.messageWeights,q.messageWeights);
q.callbackWeights&&M.callbackWeights.push.apply(M.callbackWeights,q.callbackWeights)};_.TO(_.BR,_.uI);_.BR.prototype.subscribe=function(M,q,G){var K=this.topics_[M];K||(K=this.topics_[M]=[]);var n=this.JSC$10522_key_;this.subscriptions_[n]=M;this.subscriptions_[n+1]=q;this.subscriptions_[n+2]=G;this.JSC$10522_key_=n+3;K.push(n);return n};
var YlM=function(M){var q=fA,G=!1,K=q.subscribe("handleError",function(n){G||(G=!0,this.unsubscribeByKey(K),M.apply(void 0,arguments))},q)};
_.BR.prototype.unsubscribe=function(M,q,G){if(M=this.topics_[M]){var K=this.subscriptions_;if(M=M.find(function(n){return K[n+1]==q&&K[n+2]==G}))return this.unsubscribeByKey(M)}return!1};
_.BR.prototype.unsubscribeByKey=function(M){var q=this.subscriptions_[M];if(q){var G=this.topics_[q];this.publishDepth_!=0?(this.pendingKeys_.push(M),this.subscriptions_[M+1]=function(){}):(G&&_.my(G,M),delete this.subscriptions_[M],delete this.subscriptions_[M+1],delete this.subscriptions_[M+2])}return!!q};
_.BR.prototype.publish=function(M,q){var G=this.topics_[M];if(G){var K=Array(arguments.length-1),n=arguments.length,E;for(E=1;E<n;E++)K[E-1]=arguments[E];if(this.async_)for(E=0;E<G.length;E++)n=G[E],Wbf(this.subscriptions_[n+1],this.subscriptions_[n+2],K);else{this.publishDepth_++;try{for(E=0,n=G.length;E<n&&!this.isDisposed();E++){var p=G[E];this.subscriptions_[p+1].apply(this.subscriptions_[p+2],K)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;G=this.pendingKeys_.pop();)this.unsubscribeByKey(G)}}return E!=
0}return!1};
var Wbf=function(M,q,G){_.ai(function(){M.apply(q,G)})};
_.BR.prototype.clear=function(M){if(M){var q=this.topics_[M];q&&(q.forEach(this.unsubscribeByKey,this),delete this.topics_[M])}else this.subscriptions_.length=0,this.topics_={}};
_.BR.prototype.getCount=function(M){if(M){var q=this.topics_[M];return q?q.length:0}M=0;for(q in this.topics_)M+=this.getCount(q);return M};
_.BR.prototype.disposeInternal=function(){_.BR.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var fA=new _.BR;var CF=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(CF,_.kC);CF.prototype.getColdHashData=function(){return _.hD(this,3)};
CF.prototype.getHotHashData=function(){return _.hD(this,5)};
CF.prototype.setHotHashData=function(M){return _.DJ(this,5,M)};var xbY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(xbY,_.kC);var ACw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ACw,_.kC);_.N=ACw.prototype;_.N.getDeviceId=function(){return _.hD(this,6)};
_.N.getExperimentIds=function(M){var q=_.HI(this,9,_.pn,3,!0);$DF(q,M);return q[M]};
_.N.getPlayerType=function(){return _.tD(this,36)};
_.N.setHomeGroupInfo=function(M){return _.Xe(this,81,M)};
_.N.clearLocationPlayabilityToken=function(){return _.w8(this,89)};var cr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(cr,_.kC);cr.prototype.setKey=function(M){return _.DJ(this,1,M)};
cr.prototype.getValue=function(){return Cu(this,2,vm4)};
var vm4=[2,3,4,5,6];var A29=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(A29,_.kC);A29.prototype.setTrackingParams=function(M){return _.w8(this,1,_.D8(M,!1))};var dAi=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(dAi,_.kC);var SXe=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(SXe,_.kC);SXe.prototype.getExperimentIds=function(M){var q=_.HI(this,5,_.CSY,3,!0);$DF(q,M);return q[M]};var Iw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Iw,_.kC);Iw.prototype.getToken=function(){return _.PX(this,2)};
Iw.prototype.setToken=function(M){return _.DJ(this,2,M)};var Br=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Br,_.kC);Br.prototype.setSafetyMode=function(M){return _.Oh(this,5,M)};var iN=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(iN,_.kC);iN.prototype.setClient=function(M){return _.Xe(this,1,M)};var mbu={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 zH4;_.BE=function(){var M=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.Kj.addEventListener("beforeinstallprompt",function(q){q.preventDefault();M.deferredInstallPrompt=q});
_.Kj.addEventListener("appinstalled",function(){M.appInstalledEventFired=!0},{once:!0})};
zH4=function(){if(!_.Kj.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.Kj.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.Kj.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.Kj.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.Kj.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(M){return"WEB_DISPLAY_MODE_UNKNOWN"}};var jtD=function(){this.syncHeaders=!0},VgD=function(M){var q={},G=[];
"USER_SESSION_ID"in _.jK&&G.push({key:"u",value:_.R9("USER_SESSION_ID")});if(G=_.A_$(G))q.Authorization=G,G=M=M==null?void 0:M.sessionIndex,G===void 0&&(G=Number(_.R9("SESSION_INDEX",0)),G=isNaN(G)?0:G),_.w("voice_search_auth_header_removal")||(q["X-Goog-AuthUser"]=G.toString()),"INNERTUBE_HOST_OVERRIDE"in _.jK||(q["X-Origin"]=window.location.origin),M===void 0&&"DELEGATED_SESSION_ID"in _.jK&&(q["X-Goog-PageId"]=_.R9("DELEGATED_SESSION_ID"));return q};var dgM={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var s6=_.sx("ytglobal.prefsUserPrefsPrefs_")||{},vpB;_.Y5("ytglobal.prefsUserPrefsPrefs_",s6);_.Mq=function(){this.cookieName=_.R9("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.R9("ALT_PREF_COOKIE_DOMAIN","youtube.com");var M=_.Iu.get(this.cookieName,void 0);M&&this.parse(M)};
_.El=function(){vpB||(vpB=new _.Mq);return vpB};
_.Mq.prototype.get=function(M,q){heI(M);tES(M);M=s6[M]!==void 0?s6[M].toString():null;return M!=null?M:q?q:""};
_.Mq.prototype.set=function(M,q){heI(M);tES(M);if(q==null)throw Error("Lc");s6[M]=q.toString()};
_.Mq.prototype.getFlag=function(M){return!!((O78("f"+(Math.floor(M/31)+1))||0)&1<<M%31)};
_.Ng=function(M,q,G){M="f"+(Math.floor(q/31)+1);q=1<<q%31;var K=O78(M)||0;K=G?K|q:K&~q;K===0?delete s6[M]:(G=K.toString(16),s6[M]=G.toString())};
_.Mq.prototype.remove=function(M){heI(M);tES(M);delete s6[M]};
_.Mq.prototype.save=function(){var M=!0;_.w("web_secure_pref_cookie_killswitch")&&(M=!1);_.Df(this.cookieName,this.dump(),63072E3,this.cookieDomain,M)};
_.Mq.prototype.clear=function(){_.xP.clear(s6)};
_.Mq.prototype.dump=function(){var M=[],q;for(q in s6)s6.hasOwnProperty(q)&&M.push(q+"="+encodeURIComponent(String(s6[q])));return M.join("&")};
var tES=function(M){if(/^f([1-9][0-9]*)$/.test(M))throw Error("Mc`"+M);},heI=function(M){if(!/^\w+$/.test(M))throw Error("Nc`"+M);
},O78=function(M){M=s6[M]!==void 0?s6[M].toString():null;
return M!=null&&/^[A-Fa-f0-9]+$/.test(M)?parseInt(M,16):null};
_.Mq.prototype.parse=function(M){M=decodeURIComponent(M).split("&");for(var q=0;q<M.length;q++){var G=M[q].split("="),K=G[0];(G=G[1])&&(s6[K]=G.toString())}};var J2e={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"},Tz$={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},rne={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},b7D={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Vx;_.qq=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.Jp=function(M,q,G){return M.addJob(q,0,G)};
_.qq.prototype.addLowPriorityJob=function(M,q){return this.addJob(M,1,q)};
_.WO=function(M,q,G){return M.addJob(q,2,G)};
_.MK=function(M,q,G){return M.addJob(q,3,G)};
_.RM=function(M,q,G){return M.addJob(q,4,G)};
Vx=function(M){var q=_.sx("yt.scheduler.instance.addImmediateJob");q?q(M):M()};
_.qq.prototype.debounce=function(M,q,G){var K=this,n=0,E=function(){n&&K.cancelJob(n);n=K.addJob(M,q,G);K.cancelDebouncedJobMap.set(E,n)};
return E};
_.qq.prototype.cancelThrottle=function(M){(M=this.cancelThrottledJobMap.get(M))&&M()};var GK=function(){_.qq.apply(this,arguments)};
_.l(GK,_.qq);_.AM=function(){GK.instance||(GK.instance=new GK);return GK.instance};
GK.prototype.addJob=function(M,q,G){G!==void 0&&Number.isNaN(Number(G))&&(G=void 0);var K=_.sx("yt.scheduler.instance.addJob");return K?K(M,q,G):G===void 0?(M(),NaN):_.lj(M,G||0)};
GK.prototype.cancelJob=function(M){if(M===void 0||!Number.isNaN(Number(M))){var q=_.sx("yt.scheduler.instance.cancelJob");q?q(M):_.PR(M)}};
GK.prototype.start=function(){var M=_.sx("yt.scheduler.instance.start");M&&M()};
GK.prototype.pause=function(){var M=_.sx("yt.scheduler.instance.pause");M&&M()};
_.r8=_.AM();_.Ux.prototype.set=function(M,q){q===void 0?this.mechanism.remove(M):this.mechanism.set(M,(0,_.i2)(q))};
_.Ux.prototype.get=function(M){try{var q=this.mechanism.get(M)}catch(G){return}if(q!==null)try{return JSON.parse(q)}catch(G){throw"Storage: Invalid value was encountered";}};
_.Ux.prototype.remove=function(M){this.mechanism.remove(M)};var K$=function(M){this.mechanism=M};
_.TO(K$,_.Ux);var w8I=function(M){this.data=M},COB=function(M){return M===void 0||M instanceof w8I?M:new w8I(M)};
K$.prototype.set=function(M,q){K$.superClass_.set.call(this,M,COB(q))};
K$.prototype.getWrapper=function(M){M=K$.superClass_.get.call(this,M);if(M===void 0||M instanceof Object)return M;throw"Storage: Invalid value was encountered";};
K$.prototype.get=function(M){if(M=this.getWrapper(M)){if(M=M.data,M===void 0)throw"Storage: Invalid value was encountered";}else M=void 0;return M};_.TO(xJ,K$);_.a_B=function(M){var q=M.creation;M=M.expiration;return!!M&&M<_.Sh()||!!q&&q>_.Sh()};
xJ.prototype.set=function(M,q,G){if(q=COB(q)){if(G){if(G<_.Sh()){xJ.prototype.remove.call(this,M);return}q.expiration=G}q.creation=_.Sh()}xJ.superClass_.set.call(this,M,q)};
xJ.prototype.getWrapper=function(M,q){var G=xJ.superClass_.getWrapper.call(this,M);if(G)if(!q&&_.a_B(G))xJ.prototype.remove.call(this,M);else return G};var n$=function(){};
n$.prototype.next=function(){return E6};
var E6={done:!0,value:void 0},Nq=function(M){return{value:M,done:!1}};
n$.prototype.__iterator__=function(){return this};
_.opJ=function(M){if(M instanceof n$)return M;if(typeof M.__iterator__=="function")return M.__iterator__(!1);if(_.TF(M)){var q=0,G=new n$;G.next=function(){for(;;){if(q>=M.length)return E6;if(q in M)return Nq(M[q++]);q++}};
return G}throw Error("Oc");};var l_v=function(M){if(M instanceof kr||M instanceof p$||M instanceof yM)return M;if(typeof M.next=="function")return new kr(function(){return M});
if(typeof M[Symbol.iterator]=="function")return new kr(function(){return M[Symbol.iterator]()});
if(typeof M.__iterator__=="function")return new kr(function(){return M.__iterator__()});
throw Error("Pc");},kr=function(M){this.func_=M};
kr.prototype.__iterator__=function(){return new p$(this.func_())};
kr.prototype[Symbol.iterator]=function(){return new yM(this.func_())};
kr.prototype.toEs6=function(){return new yM(this.func_())};
var p$=function(M){this.JSC$10606_iter_=M};
_.l(p$,n$);p$.prototype.next=function(){return this.JSC$10606_iter_.next()};
p$.prototype[Symbol.iterator]=function(){return new yM(this.JSC$10606_iter_)};
p$.prototype.toEs6=function(){return new yM(this.JSC$10606_iter_)};
var yM=function(M){kr.call(this,function(){return M});
this.JSC$10609_iter_=M};
_.l(yM,kr);yM.prototype.next=function(){return this.JSC$10609_iter_.next()};var X8$=function(){};var L$=function(){};
_.TO(L$,X8$);L$.prototype.getCount=function(){for(var M=0,q=_.k(this),G=q.next();!G.done;G=q.next())M++;return M};
L$.prototype[Symbol.iterator]=function(){return l_v(this.__iterator__(!0)).toEs6()};
L$.prototype.clear=function(){var M=Array.from(this);M=_.k(M);for(var q=M.next();!q.done;q=M.next())this.remove(q.value)};_.TO(zc,L$);_.N=zc.prototype;_.N.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var M=this.storage_;if(M)try{M.setItem("__sak","1");M.removeItem("__sak");var q=!0}catch(G){q=G instanceof DOMException&&(G.name==="QuotaExceededError"||G.code===22||G.code===1014||G.name==="NS_ERROR_DOM_QUOTA_REACHED")&&M&&M.length!==0}else q=!1;this.cachedIsStorageAvailable_=q}return this.cachedIsStorageAvailable_};
_.N.set=function(M,q){Yr(this);try{this.storage_.setItem(M,q)}catch(G){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.N.get=function(M){Yr(this);M=this.storage_.getItem(M);if(typeof M!=="string"&&M!==null)throw"Storage mechanism: Invalid value was encountered";return M};
_.N.remove=function(M){Yr(this);this.storage_.removeItem(M)};
_.N.getCount=function(){Yr(this);return this.storage_.length};
_.N.__iterator__=function(M){Yr(this);var q=0,G=this.storage_,K=new n$;K.next=function(){if(q>=G.length)return E6;var n=G.key(q++);if(M)return Nq(n);n=G.getItem(n);if(typeof n!=="string")throw"Storage mechanism: Invalid value was encountered";return Nq(n)};
return K};
_.N.clear=function(){Yr(this);this.storage_.clear()};
_.N.key=function(M){Yr(this);return this.storage_.key(M)};
var Yr=function(M){if(M.storage_==null)throw Error("Qc");M.isAvailable()||nj(Error("Qc"))};_.TO(xgy,zc);_.TO(zeH,zc);_.TO(m8,L$);m8.prototype.set=function(M,q){this.mechanism_.set(this.JSC$10624_prefix_+M,q)};
m8.prototype.get=function(M){return this.mechanism_.get(this.JSC$10624_prefix_+M)};
m8.prototype.remove=function(M){this.mechanism_.remove(this.JSC$10624_prefix_+M)};
m8.prototype.__iterator__=function(M){var q=this.mechanism_[Symbol.iterator](),G=this,K=new n$;K.next=function(){var n=q.next();if(n.done)return n;for(n=n.value;n.slice(0,G.JSC$10624_prefix_.length)!=G.JSC$10624_prefix_;){n=q.next();if(n.done)return n;n=n.value}return Nq(M?n.slice(G.JSC$10624_prefix_.length):G.mechanism_.get(n))};
return K};_.F8=function(M){this.expiringStorage_=(M=_.mgi(M))?new xJ(M):null;this.JSC$10628_domain_=document.domain||window.location.hostname};
_.N=_.F8.prototype;_.N.hasLocalStorage=function(){return!!this.expiringStorage_};
_.N.set=function(M,q,G,K){G=G||31104E3;this.remove(M);if(this.hasLocalStorage())try{this.expiringStorage_.set(M,q,Date.now()+G*1E3);return}catch(E){}var n="";if(K)try{n=escape((0,_.i2)(q))}catch(E){return}else n=escape(q);_.Df(M,n,G,this.JSC$10628_domain_)};
_.N.get=function(M,q){var G=void 0,K=!this.hasLocalStorage();if(!K)try{G=this.expiringStorage_.get(M)}catch(n){K=!0}if(K&&(G=_.Iu.get(M,void 0))&&(G=unescape(G),q))try{G=JSON.parse(G)}catch(n){this.remove(M),G=void 0}return G};
_.N.remove=function(M){this.hasLocalStorage()&&this.expiringStorage_.remove(M);_.I_e(M,"/",this.JSC$10628_domain_)};
_.N.getCreationTime=function(M){return this.hasLocalStorage()&&(M=(this.expiringStorage_.getWrapper(M)||{}).creation,typeof M==="number")?M:null};var Tjy=function(){var M;return function(){M||(M=new _.F8("ytidb"));return M}}();var jJy;_.Tc=[];jJy=!1;var yn$=VEs||Rei;var WB={},POP=(WB.AUTH_INVALID="No user identifier specified.",WB.EXPLICIT_ABORT="Transaction was explicitly aborted.",WB.IDB_NOT_SUPPORTED="IndexedDB is not supported.",WB.MISSING_INDEX="Index not created.",WB.MISSING_OBJECT_STORES="Object stores not created.",WB.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",WB.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",WB.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",WB.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",WB.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",WB.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",WB.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",WB),As={},i7I=(As.AUTH_INVALID="ERROR",As.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",As.EXPLICIT_ABORT="IGNORED",
As.IDB_NOT_SUPPORTED="ERROR",As.MISSING_INDEX="WARNING",As.MISSING_OBJECT_STORES="ERROR",As.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",As.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",As.QUOTA_EXCEEDED="WARNING",As.QUOTA_MAYBE_EXCEEDED="WARNING",As.UNKNOWN_ABORT="WARNING",As.INCOMPATIBLE_DB_VERSION="WARNING",As),dN={},c2J=(dN.AUTH_INVALID=!1,dN.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,dN.EXPLICIT_ABORT=!1,dN.IDB_NOT_SUPPORTED=!1,dN.MISSING_INDEX=!1,dN.MISSING_OBJECT_STORES=!1,dN.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,dN.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,dN.QUOTA_EXCEEDED=!1,dN.QUOTA_MAYBE_EXCEEDED=!0,dN.UNKNOWN_ABORT=!0,dN.INCOMPATIBLE_DB_VERSION=!1,dN),FN=function(M,q,G,K,n){q=q===void 0?{}:q;G=G===void 0?POP[M]:G;K=K===void 0?i7I[M]:K;n=n===void 0?c2J[M]:n;_.bj.call(this,G,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:M},q));this.type=M;this.message=G;this.level=K;this.retryable=n;Object.setPrototypeOf(this,FN.prototype)};
_.l(FN,_.bj);var gpM=function(M,q){FN.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:q,foundObjectStores:M},POP.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,gpM.prototype)};
_.l(gpM,FN);var FbF=function(M,q){var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.index=M;this.objectStore=q;Object.setPrototypeOf(this,FbF.prototype)};
_.l(FbF,Error);var H7Y=["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 sh=function(M){this.executor=M},$J=function(M){var q=this;
this.state={status:"PENDING"};this.JSC$10656_onFulfilled=[];this.JSC$10656_onRejected=[];M=M.executor;var G=function(n){if(q.state.status==="PENDING"){q.state={status:"FULFILLED",value:n};n=_.k(q.JSC$10656_onFulfilled);for(var E=n.next();!E.done;E=n.next())E=E.value,E()}},K=function(n){if(q.state.status==="PENDING"){q.state={status:"REJECTED",
reason:n};n=_.k(q.JSC$10656_onRejected);for(var E=n.next();!E.done;E=n.next())E=E.value,E()}};
try{M(G,K)}catch(n){K(n)}};
$J.all=function(M){return new $J(new sh(function(q,G){var K=[],n=M.length;n===0&&q(K);for(var E={i$jscomp$468:0};E.i$jscomp$468<M.length;E={i$jscomp$468:E.i$jscomp$468},++E.i$jscomp$468)$J.resolve(M[E.i$jscomp$468]).then(function(p){return function(y){K[p.i$jscomp$468]=y;n--;n===0&&q(K)}}(E)).catch(function(p){G(p)})}))};
$J.resolve=function(M){return new $J(new sh(function(q,G){M instanceof $J?M.then(q,G):q(M)}))};
$J.reject=function(M){return new $J(new sh(function(q,G){G(M)}))};
$J.prototype.then=function(M,q){var G=this,K=M!=null?M:stH,n=q!=null?q:$gy;return new $J(new sh(function(E,p){G.state.status==="PENDING"?(G.JSC$10656_onFulfilled.push(function(){BjJ(G,G,K,E,p)}),G.JSC$10656_onRejected.push(function(){QJM(G,G,n,E,p)})):G.state.status==="FULFILLED"?BjJ(G,G,K,E,p):G.state.status==="REJECTED"&&QJM(G,G,n,E,p)}))};
$J.prototype.catch=function(M){return this.then(void 0,M)};
var BjJ=function(M,q,G,K,n){try{if(M.state.status!=="FULFILLED")throw Error("Tc");var E=G(M.state.value);E instanceof $J?I_M(M,q,E,K,n):K(E)}catch(p){n(p)}},QJM=function(M,q,G,K,n){try{if(M.state.status!=="REJECTED")throw Error("Uc");
var E=G(M.state.reason);E instanceof $J?I_M(M,q,E,K,n):K(E)}catch(p){n(p)}},I_M=function(M,q,G,K,n){q===G?n(new TypeError("Vc")):G.then(function(E){E instanceof $J?I_M(M,q,E,K,n):K(E)},function(E){n(E)})};var vB;vB=window;_.d8=vB.ytcsi&&vB.ytcsi.now?vB.ytcsi.now:vB.performance&&vB.performance.timing&&vB.performance.now&&vB.performance.timing.navigationStart?function(){return vB.performance.timing.navigationStart+vB.performance.now()}:function(){return(new Date).getTime()};var ql=function(M,q){this.JSC$10668_wrapped=M;this.options=q;this.transactionCount=0;this.startedMs=Math.round((0,_.d8)());this.hasUnknownAbortedTransaction=!1},hs=function(){return _.w("idb_immediate_commit")},J2M,Z7J,wN,xgv;
ql.prototype.add=function(M,q,G){return _.Nl(this,[M],{mode:"readwrite",enableRetries:!0,commit:hs()},function(K){return K.objectStore(M).add(q,G)})};
ql.prototype.clear=function(M){return _.Nl(this,[M],{mode:"readwrite",enableRetries:!0},function(q){return q.objectStore(M).clear()})};
ql.prototype.close=function(){this.JSC$10668_wrapped.close();var M;((M=this.options)==null?0:M.closed)&&this.options.closed()};
ql.prototype.count=function(M,q){return _.Nl(this,[M],{mode:"readonly",enableRetries:!0,commit:hs()},function(G){return G.objectStore(M).count(q)})};
var eG=function(M,q,G){M=M.JSC$10668_wrapped.createObjectStore(q,G);return new ts(M)};
ql.prototype.delete=function(M,q){return _.Nl(this,[M],{mode:"readwrite",enableRetries:!0,commit:hs()&&!(q instanceof IDBKeyRange)},function(G){return G.objectStore(M).delete(q)})};
var DgI=function(M,q){return _.Nl(M,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(G){return G.objectStore("ResponseStore").index("byInterface").delete(q)})};
ql.prototype.get=function(M,q){return _.Nl(this,[M],{mode:"readonly",enableRetries:!0,commit:hs()},function(G){return G.objectStore(M).get(q)})};
ql.prototype.getAll=function(M,q,G){return _.Nl(this,[M],{mode:"readonly",enableRetries:!0},function(K){return K.objectStore(M).getAll(q,G)})};
ql.prototype.put=function(M,q,G){return _.Nl(this,[M],{mode:"readwrite",enableRetries:!0,commit:hs()},function(K){return K.objectStore(M).put(q,G)})};
ql.prototype.objectStoreNames=function(){return Array.from(this.JSC$10668_wrapped.objectStoreNames)};
_.Nl=function(M,q,G,K){var n,E,p,y,Y,A,v,h,t,O,a,g;return _.L(function(D){switch(D.nextAddress){case 1:var J={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof G==="string"?J.mode=G:Object.assign(J,G);n=J;M.transactionCount++;E=n.enableRetries?3:1;p=0;case 2:if(y){D.jumpTo(4);break}p++;Y=Math.round((0,_.d8)());_.Cv(D,5);A=M.JSC$10668_wrapped.transaction(q,n.mode);J=D.yield;var Z=!!n.commit;var V=new GI(A);Z=uI2(V,K,Z);return J.call(D,Z,7);case 7:return v=D.yieldResult,h=Math.round((0,_.d8)()),
J2M(M,Y,h,p,void 0,q.join(),n),D.return(v);case 5:t=_.i5(D);O=Math.round((0,_.d8)());a=eey(t,M.JSC$10668_wrapped.name,q.join(),M.JSC$10668_wrapped.version);if((g=a instanceof FN&&!a.retryable)||p>=E)J2M(M,Y,O,p,a,q.join(),n),y=a;D.jumpTo(2);break;case 4:return D.return(Promise.reject(y))}})};
J2M=function(M,q,G,K,n,E,p){q=G-q;n?(n instanceof FN&&(n.type==="QUOTA_EXCEEDED"||n.type==="QUOTA_MAYBE_EXCEEDED")&&jS("QUOTA_EXCEEDED",{dbName:Ru(M.JSC$10668_wrapped.name),objectStoreNames:E,transactionCount:M.transactionCount,transactionMode:p.mode}),n instanceof FN&&n.type==="UNKNOWN_ABORT"&&(G-=M.startedMs,G<0&&G>=2147483648&&(G=0),jS("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:E,transactionDuration:q,transactionCount:M.transactionCount,dbDuration:G}),M.hasUnknownAbortedTransaction=!0),
Z7J(M,!1,K,E,q,p.tag),_.rP(n)):Z7J(M,!0,K,E,q,p.tag)};
Z7J=function(M,q,G,K,n,E){jS("TRANSACTION_ENDED",{objectStoreNames:K,connectionHasUnknownAbortedTransaction:M.hasUnknownAbortedTransaction,duration:n,isSuccessful:q,tryCount:G,tag:E===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":E})};
ql.prototype.getName=function(){return this.JSC$10668_wrapped.name};
var ts=function(M){this.JSC$10683_wrapped=M};
ts.prototype.add=function(M,q){return Ml(this.JSC$10683_wrapped.add(M,q))};
ts.prototype.autoIncrement=function(){return this.JSC$10683_wrapped.autoIncrement};
ts.prototype.clear=function(){return Ml(this.JSC$10683_wrapped.clear()).then(function(){})};
var $5=function(M,q,G){M.JSC$10683_wrapped.createIndex(q,G,{unique:!1})};
ts.prototype.count=function(M){return Ml(this.JSC$10683_wrapped.count(M))};
var b7x=function(M,q){return pF(M,{query:q},function(G){return G.delete().then(function(){return G.continue()})}).then(function(){})};
ts.prototype.delete=function(M){return M instanceof IDBKeyRange?b7x(this,M):Ml(this.JSC$10683_wrapped.delete(M))};
ts.prototype.get=function(M){return Ml(this.JSC$10683_wrapped.get(M))};
ts.prototype.getAll=function(M,q){return"getAll"in IDBObjectStore.prototype?Ml(this.JSC$10683_wrapped.getAll(M,q)):Ug$(this,M,q)};
var Ug$=function(M,q,G){var K=[];return pF(M,{query:q},function(n){if(!(G!==void 0&&K.length>=G))return K.push(n.getValue()),n.continue()}).then(function(){return K})};
ts.prototype.index=function(M){try{return new O6(this.JSC$10683_wrapped.index(M))}catch(q){if(q instanceof Error&&q.name==="NotFoundError")throw new FbF(M,this.JSC$10683_wrapped.name);throw q;}};
ts.prototype.getName=function(){return this.JSC$10683_wrapped.name};
ts.prototype.keyPath=function(){return this.JSC$10683_wrapped.keyPath};
ts.prototype.put=function(M,q){return Ml(this.JSC$10683_wrapped.put(M,q))};
var pF=function(M,q,G){M=M.JSC$10683_wrapped.openCursor(q.query,q.direction);return xgv(M).then(function(K){return Gww(K,G)})},GI=function(M){var q=this;
this.JSC$10691_wrapped=M;this.objectStoreCache=new Map;this.aborted=!1;this.done=new Promise(function(G,K){q.JSC$10691_wrapped.addEventListener("complete",function(){G()});
q.JSC$10691_wrapped.addEventListener("error",function(n){n.currentTarget===n.target&&K(q.JSC$10691_wrapped.error)});
q.JSC$10691_wrapped.addEventListener("abort",function(){var n=q.JSC$10691_wrapped.error;if(n)K(n);else if(!q.aborted){n=FN;for(var E=q.JSC$10691_wrapped.objectStoreNames,p=[],y=0;y<E.length;y++){var Y=E.item(y);if(Y===null)throw Error("Wc");p.push(Y)}n=new n("UNKNOWN_ABORT",{objectStoreNames:p.join(),dbName:q.JSC$10691_wrapped.db.name,mode:q.JSC$10691_wrapped.mode});K(n)}})})},uI2=function(M,q,G){var K=new Promise(function(n,E){try{var p=q(M);
G&&M.commit();p.then(function(y){n(y)}).catch(E)}catch(y){E(y),M.abort()}});
return Promise.all([K,M.done]).then(function(n){return _.k(n).next().value})};
GI.prototype.abort=function(){this.JSC$10691_wrapped.abort();this.aborted=!0;throw new FN("EXPLICIT_ABORT");};
GI.prototype.commit=function(){if(!this.aborted){var M,q;(q=(M=this.JSC$10691_wrapped).commit)==null||q.call(M)}};
GI.prototype.objectStore=function(M){M=this.JSC$10691_wrapped.objectStore(M);var q=this.objectStoreCache.get(M);q||(q=new ts(M),this.objectStoreCache.set(M,q));return q};
var O6=function(M){this.JSC$10693_wrapped=M};
O6.prototype.count=function(M){return Ml(this.JSC$10693_wrapped.count(M))};
O6.prototype.delete=function(M){return _.v2(this,{query:M},function(q){return q.delete().then(function(){return q.continue()})})};
O6.prototype.get=function(M){return Ml(this.JSC$10693_wrapped.get(M))};
O6.prototype.getAll=function(M,q){return"getAll"in IDBIndex.prototype?Ml(this.JSC$10693_wrapped.getAll(M,q)):zeS(this,M,q)};
var zeS=function(M,q,G){var K=[];return _.v2(M,{query:q},function(n){if(!(G!==void 0&&K.length>=G))return K.push(n.getValue()),n.continue()}).then(function(){return K})};
O6.prototype.keyPath=function(){return this.JSC$10693_wrapped.keyPath};
O6.prototype.unique=function(){return this.JSC$10693_wrapped.unique};
_.v2=function(M,q,G){M=M.JSC$10693_wrapped.openCursor(q.query===void 0?null:q.query,q.direction===void 0?"next":q.direction);return xgv(M).then(function(K){return Gww(K,G)})};
wN=function(M,q){this.request=M;this.cursor=q};
xgv=function(M){return Ml(M).then(function(q){return q?new wN(M,q):null})};
wN.prototype.continue=function(M){this.cursor.continue(M);return xgv(this.request)};
wN.prototype.delete=function(){return Ml(this.cursor.delete()).then(function(){})};
wN.prototype.getValue=function(){return this.cursor.value};
wN.prototype.update=function(M){return Ml(this.cursor.update(M))};var C$=function(M,q){this.name=M;this.options=q;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},mg2;
C$.prototype.openDb=function(M,q,G){G=G===void 0?{}:G;return nzF(M,q,G)};
C$.prototype.delete=function(M){M=M===void 0?{}:M;return _.nF(this.name,M)};
mg2=function(M,q){return new FN("INCOMPATIBLE_DB_VERSION",{dbName:M.name,oldVersion:M.options.version,newVersion:q})};
_.Eh=function(M,q){if(!q)throw eS("openWithToken",Ru(M.name));return M.open()};
C$.prototype.open=function(){var M=this;if(!this.isCompatible)throw mg2(this);if(this.connectionPromise)return this.connectionPromise;var q,G=function(){M.connectionPromise===q&&(M.connectionPromise=void 0)},K={blocking:function(E){E.close()},
closed:G,terminated:G,upgrade:this.options.upgrade},n=function(){var E,p,y,Y,A,v,h,t,O,a;return _.L(function(g){switch(g.nextAddress){case 1:return p=(E=Error().stack)!=null?E:"",_.Cv(g,2),g.yield(M.openDb(M.name,M.options.version,K),4);case 4:for(var D=y=g.yieldResult,J=M.options,Z=[],V=_.k(Object.keys(J.objectStores)),S=V.next();!S.done;S=V.next()){S=S.value;var m=J.objectStores[S],R=m.removedAtVersion===void 0?Number.MAX_VALUE:m.removedAtVersion;!(D.JSC$10668_wrapped.version>=m.addedAtVersion)||
D.JSC$10668_wrapped.version>=R||D.JSC$10668_wrapped.objectStoreNames.contains(S)||Z.push(S)}Y=Z;if(Y.length===0){g.jumpTo(5);break}A=Object.keys(M.options.objectStores);v=y.objectStoreNames();if(M.timesReopenedToFixMissingObjectStore<_.tL("ytidb_reopen_db_retries",0))return M.timesReopenedToFixMissingObjectStore++,y.close(),_.rP(new FN("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:M.name,expectedObjectStores:A,foundObjectStores:v})),g.return(n());if(!(M.timesDeletedToFixMissingObjectStore<_.tL("ytidb_remake_db_retries",
1))){g.jumpTo(6);break}M.timesDeletedToFixMissingObjectStore++;return g.yield(M.delete(),7);case 7:return _.rP(new FN("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:M.name,expectedObjectStores:A,foundObjectStores:v})),g.return(n());case 6:throw new gpM(v,A);case 5:return g.return(y);case 2:h=_.i5(g);if(h instanceof DOMException?h.name!=="VersionError":"DOMError"in self&&h instanceof DOMError?h.name!=="VersionError":!(h instanceof Object&&"message"in h)||h.message!=="An attempt was made to open a database using a lower version than the existing version."){g.jumpTo(8);
break}return g.yield(M.openDb(M.name,void 0,Object.assign({},K,{upgrade:void 0})),9);case 9:t=g.yieldResult;O=t.JSC$10668_wrapped.version;if(M.options.version!==void 0&&O>M.options.version+1)throw t.close(),M.isCompatible=!1,mg2(M,O);return g.return(t);case 8:throw G(),h instanceof Error&&!_.w("ytidb_async_stack_killswitch")&&(h.stack=h.stack+"\n"+p.substring(p.indexOf("\n")+1)),eey(h,M.name,"",(a=M.options.version)!=null?a:-1);}})};
return this.connectionPromise=q=n()};var Ez4=new C$("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(M,q){q(1)&&eG(M,"databases",{keyPath:"actualName"})}});var W4w,L4y=new function(){}(new function(){});new _.sp;var Slf=function(M,q){C$.call(this,M,q);this.options=q;Ve(M)};
_.l(Slf,C$);var ozu=function(M,q){var G;return function(){G||(G=new Slf(M,q));return G}};
Slf.prototype.openDb=function(M,q,G){G=G===void 0?{}:G;return(this.options.shared?tgi:hHy)(M,q,Object.assign({},G))};
Slf.prototype.delete=function(M){M=M===void 0?{}:M;return(this.options.shared?aSu:OKj)(this.name,M)};var TjI={},lS4=A0("ytGcfConfig",{objectStores:(TjI.coldConfigStore={addedAtVersion:1},TjI.hotConfigStore={addedAtVersion:1},TjI),shared:!1,upgrade:function(M,q){q(1)&&($5(eG(M,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),$5(eG(M,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var r2S=function(){_.uI.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var M=_.sx("yt.gcf.config.hotUpdateCallbacks");M?(this.localHotConfigJobQueue=[].concat(_.Ui(M)),this.sharedHotConfigJobQueue=M):(this.sharedHotConfigJobQueue=[],_.Y5("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.l(r2S,_.uI);r2S.prototype.disposeInternal=function(){for(var M=_.k(this.localHotConfigJobQueue),q=M.next();!q.done;q=M.next()){var G=this.sharedHotConfigJobQueue;q=G.indexOf(q.value);q>=0&&G.splice(q,1)}this.localHotConfigJobQueue.length=0;_.uI.prototype.disposeInternal.call(this)};var Zb=function(){var M=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new r2S;this.TEST_ONLY={initializeConfigDb:function(){M.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return M.coldGlobalConfigGroup},
setHotConfigGroup:function(q){jJv(M,q)},
setHotHashData:function(q){M.setHotHashData(q)},
setColdConfigGroup:function(q){VE$(M,q)},
getColdHashData:function(){return M.coldHashData},
getHotHashData:function(){return M.hotHashData},
getHotConfigGroup:function(){return M.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return Re2()},
getExportedHotConfigGroup:function(){return aA()},
getExportedColdHashData:function(){return _.sx("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.sx("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){f_S(M)},
resetInstance:function(){M.setHotHashData(void 0);Fbl(M);delete Zb.instance},
setDebounceTimer:function(q){M.debounceTimer=q},
getDebounceTimer:function(){return M.debounceTimer}}},H7B=function(){if(!Zb.instance){var M=new Zb;
Zb.instance=M}return Zb.instance},stS=function(M){var q;
_.L(function(G){if(G.nextAddress==1)return _.w("start_client_gcf")||_.w("delete_gcf_config_db")?_.w("start_client_gcf")?G.yield(_.W2(),3):G.jumpTo(2):G.return();G.nextAddress!=2&&((q=G.yieldResult)&&_.Zf()&&!_.w("delete_gcf_config_db")?(M.isConfigDbInitialized=!0,f_S(M)):(eeI(M),$gI(M)));return _.w("delete_gcf_config_db")?G.yield(Bz4(),0):G.jumpTo(0)})},bN=function(){var M;
return(M=aA())!=null?M:_.R9("RAW_HOT_CONFIG_GROUP")},Mgf=function(M){var q,G,K,n,E,p;
return _.L(function(y){switch(y.nextAddress){case 1:if(M.hotGlobalConfigGroup)return y.return(aA());if(!M.isConfigDbInitialized)return q=eS("getHotConfig IDB not initialized"),_.Mz(q),y.return(Promise.reject(q));G=LF();K=_.R9("TIME_CREATED_MS");if(!G){n=eS("getHotConfig token error");_.Mz(n);y.jumpTo(2);break}return y.yield(gzu(G),3);case 3:if((E=y.yieldResult)&&E.timestamp>K)return jJv(M,E.config),M.setHotHashData(E.hashData),y.return(aA());case 2:$gI(M);if(!(G&&M.hotGlobalConfigGroup&&M.hotHashData)){y.jumpTo(4);
break}return y.yield(Pc$(M.hotGlobalConfigGroup,M.hotHashData,G,K),4);case 4:return M.hotGlobalConfigGroup?y.return(aA()):(p=new _.bj("Config not available in ytConfig"),_.Mz(p),y.return(Promise.reject(p)))}})},GwJ=function(M){var q,G,K,n,E,p;
return _.L(function(y){switch(y.nextAddress){case 1:if(M.coldGlobalConfigGroup)return y.return(Re2());if(!M.isConfigDbInitialized)return q=eS("getColdConfig IDB not initialized"),_.Mz(q),y.return(Promise.reject(q));G=LF();K=_.R9("TIME_CREATED_MS");if(!G){n=eS("getColdConfig");_.Mz(n);y.jumpTo(2);break}return y.yield(cns(G),3);case 3:if((E=y.yieldResult)&&E.timestamp>K)return VE$(M,E.config),qXp(M,E.configData),Fbl(M,E.hashData),y.return(Re2());case 2:eeI(M);if(!(G&&M.coldGlobalConfigGroup&&M.coldHashData&&
M.configData)){y.jumpTo(4);break}return y.yield(iKw(M.coldGlobalConfigGroup,M.coldHashData,M.configData,G,K),4);case 4:return M.coldGlobalConfigGroup?y.return(Re2()):(p=new _.bj("Config not available in ytConfig"),_.Mz(p),y.return(Promise.reject(p)))}})},f_S=function(M){if(!M.hotGlobalConfigGroup||!M.coldGlobalConfigGroup){if(!LF()){var q=eS("scheduleGetConfigs");
_.Mz(q)}M.initJob||(M.initJob=_.r8.addLowPriorityJob(function(){return _.L(function(G){switch(G.nextAddress){case 1:return _.Cv(G,2),G.yield(Mgf(M),4);case 4:_.KF(G,3);break;case 2:_.i5(G);case 3:return _.Cv(G,5),G.yield(GwJ(M),7);case 7:_.KF(G,6);break;case 5:_.i5(G);case 6:M.initJob&&(M.initJob=0),_.gL(G)}})},100))}},ip$=function(M,q,G){var K,n,E;
return _.L(function(p){switch(p.nextAddress){case 1:if(!_.w("start_client_gcf")){p.jumpTo(0);break}G&&jJv(M,G);M.setHotHashData(q);K=LF();if(!K){p.jumpTo(3);break}if(G){p.jumpTo(4);break}return p.yield(gzu(K),5);case 5:n=p.yieldResult,G=(E=n)==null?void 0:E.config;case 4:return p.yield(Pc$(G,q,K),3);case 3:if(G)for(var y=G,Y=_.k(M.configUpdateService.sharedHotConfigJobQueue),A=Y.next();!A.done;A=Y.next())A=A.value,A(y);_.gL(p)}})},cCy=function(M,q,G){var K,n,E,p;
return _.L(function(y){if(y.nextAddress==1){if(!_.w("start_client_gcf"))return y.jumpTo(0);Fbl(M,q);return(K=LF())?G?y.jumpTo(4):y.yield(cns(K),5):y.jumpTo(0)}y.nextAddress!=4&&(n=y.yieldResult,G=(E=n)==null?void 0:E.config);if(!G)return y.jumpTo(0);p=G.configData;return y.yield(iKw(G,q,p,K),0)})},fSF=function(){var M=H7B(),q=(0,_.d8)()-M.debounceTimer;
if(!(M.debounceTimer!==0&&q<_.tL("send_config_hash_timer"))){q=_.sx("yt.gcf.config.coldConfigData");var G=_.sx("yt.gcf.config.hotHashData"),K=_.sx("yt.gcf.config.coldHashData");q&&G&&K&&(M.debounceTimer=(0,_.d8)());return{coldConfigData:q,hotHashData:G,coldHashData:K}}},eeI=function(M){VE$(M,_.R9("RAW_COLD_CONFIG_GROUP"));
Fbl(M,_.R9("SERIALIZED_COLD_HASH_DATA"));var q;qXp(M,(q=M.coldGlobalConfigGroup)==null?void 0:q.configData)},$gI=function(M){jJv(M,_.R9("RAW_HOT_CONFIG_GROUP"));
M.setHotHashData(_.R9("SERIALIZED_HOT_HASH_DATA"))},jJv=function(M,q){M.hotGlobalConfigGroup=q;
_.Y5("yt.gcf.config.hotConfigGroup",M.hotGlobalConfigGroup||null)},VE$=function(M,q){M.coldGlobalConfigGroup=q;
_.Y5("yt.gcf.config.coldConfigGroup",M.coldGlobalConfigGroup||null)};
Zb.prototype.setHotHashData=function(M){this.hotHashData=M;_.Y5("yt.gcf.config.hotHashData",this.hotHashData||null)};
var Fbl=function(M,q){M.coldHashData=q;_.Y5("yt.gcf.config.coldHashData",M.coldHashData||null)},qXp=function(M,q){M.configData=q;
_.Y5("yt.gcf.config.coldConfigData",M.configData||null)},aA=function(){return _.sx("yt.gcf.config.hotConfigGroup")},Re2=function(){return _.sx("yt.gcf.config.coldConfigGroup")};var P2={},K4d=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";P2.assign=function(M){for(var q=Array.prototype.slice.call(arguments,1);q.length;){var G=q.shift();if(G){if(typeof G!=="object")throw new TypeError("Zc`"+G);for(var K in G)Object.prototype.hasOwnProperty.call(G,K)&&(M[K]=G[K])}}return M};
P2.shrinkBuf=function(M,q){if(M.length===q)return M;if(M.subarray)return M.subarray(0,q);M.length=q;return M};
var nzl={arraySet:function(M,q,G,K,n){if(q.subarray&&M.subarray)M.set(q.subarray(G,G+K),n);else for(var E=0;E<K;E++)M[n+E]=q[G+E]},
flattenChunks:function(M){var q,G;var K=G=0;for(q=M.length;K<q;K++)G+=M[K].length;var n=new Uint8Array(G);K=G=0;for(q=M.length;K<q;K++){var E=M[K];n.set(E,G);G+=E.length}return n}},Ezd={arraySet:function(M,q,G,K,n){for(var E=0;E<K;E++)M[n+E]=q[G+E]},
flattenChunks:function(M){return[].concat.apply([],M)}};
P2.setTyped=function(){K4d?(P2.Buf8=Uint8Array,P2.Buf16=Uint16Array,P2.Buf32=Int32Array,P2.assign(P2,nzl)):(P2.Buf8=Array,P2.Buf16=Array,P2.Buf32=Array,P2.assign(P2,Ezd))};
P2.setTyped();var Nz9=!0;try{new Uint8Array(1)}catch(M){Nz9=!1}
var gU$=function(M){var q,G,K=M.length,n=0;for(q=0;q<K;q++){var E=M.charCodeAt(q);if((E&64512)===55296&&q+1<K){var p=M.charCodeAt(q+1);(p&64512)===56320&&(E=65536+(E-55296<<10)+(p-56320),q++)}n+=E<128?1:E<2048?2:E<65536?3:4}var y=new P2.Buf8(n);for(q=G=0;G<n;q++)E=M.charCodeAt(q),(E&64512)===55296&&q+1<K&&(p=M.charCodeAt(q+1),(p&64512)===56320&&(E=65536+(E-55296<<10)+(p-56320),q++)),E<128?y[G++]=E:(E<2048?y[G++]=192|E>>>6:(E<65536?y[G++]=224|E>>>12:(y[G++]=240|E>>>18,y[G++]=128|E>>>12&63),y[G++]=
128|E>>>6&63),y[G++]=128|E&63);return y};var vUF={};vUF=function(M,q,G,K){var n=M&65535|0;M=M>>>16&65535|0;for(var E;G!==0;){E=G>2E3?2E3:G;G-=E;do n=n+q[K++]|0,M=M+n|0;while(--E);n%=65521;M%=65521}return n|M<<16|0};for(var x5={},oA,kwM=[],ps9=0;ps9<256;ps9++){oA=ps9;for(var yn9=0;yn9<8;yn9++)oA=oA&1?3988292384^oA>>>1:oA>>>1;kwM[ps9]=oA}x5=function(M,q,G,K){G=K+G;for(M^=-1;K<G;K++)M=M>>>8^kwM[(M^q[K])&255];return M^-1};var B2={};B2={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 nUe=[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],N2y=[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],cKu=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],AK$=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],uF=Array(576);an(uF);var J0=Array(60);an(J0);var c2=Array(512);an(c2);var iF=Array(256);an(iF);var EUy=Array(29);an(EUy);var kuH=Array(30);an(kuH);var XEF,PaH,i_F,lxY=!1;var TI;
TI=[new SG(0,0,0,0,function(M,q){var G=65535;for(G>M.pending_buf_size-5&&(G=M.pending_buf_size-5);;){if(M.lookahead<=1){zI(M);if(M.lookahead===0&&q===0)return 1;if(M.lookahead===0)break}M.strstart+=M.lookahead;M.lookahead=0;var K=M.block_start+G;if(M.strstart===0||M.strstart>=K)if(M.lookahead=M.strstart-K,M.strstart=K,ZZ(M,!1),M.strm.avail_out===0)return 1;if(M.strstart-M.block_start>=M.w_size-262&&(ZZ(M,!1),M.strm.avail_out===0))return 1}M.insert=0;if(q===4)return ZZ(M,!0),M.strm.avail_out===0?3:
4;M.strstart>M.block_start&&ZZ(M,!1);return 1}),
new SG(4,4,8,4,h3Y),new SG(4,5,16,8,h3Y),new SG(4,6,32,32,h3Y),new SG(4,4,16,16,mm),new SG(8,16,32,32,mm),new SG(8,16,128,128,mm),new SG(8,32,128,256,mm),new SG(32,128,258,1024,mm),new SG(32,258,258,4096,mm)];var oUY={};oUY=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 B2Y=Object.prototype.toString;
axY.prototype.push=function(M,q){var G=this.strm,K=this.options.chunkSize;if(this.ended)return!1;var n=q===~~q?q:q===!0?4:0;typeof M==="string"?G.input=gU$(M):B2Y.call(M)==="[object ArrayBuffer]"?G.input=new Uint8Array(M):G.input=M;G.next_in=0;G.avail_in=G.input.length;do{G.avail_out===0&&(G.output=new P2.Buf8(K),G.next_out=0,G.avail_out=K);M=Caw(G,n);if(M!==1&&M!==0)return L4v(this,M),this.ended=!0,!1;if(G.avail_out===0||G.avail_in===0&&(n===4||n===2))if(this.options.to==="string"){var E=P2.shrinkBuf(G.output,
G.next_out);q=E;E=E.length;if(E<65537&&(q.subarray&&Nz9||!q.subarray))q=String.fromCharCode.apply(null,P2.shrinkBuf(q,E));else{for(var p="",y=0;y<E;y++)p+=String.fromCharCode(q[y]);q=p}this.chunks.push(q)}else q=P2.shrinkBuf(G.output,G.next_out),this.chunks.push(q)}while((G.avail_in>0||G.avail_out===0)&&M!==1);if(n===4)return(G=this.strm)&&G.state?(K=G.state.status,K!==42&&K!==69&&K!==73&&K!==91&&K!==103&&K!==113&&K!==666?M=Qn(G,-2):(G.state=null,M=K===113?Qn(G,-3):0)):M=-2,L4v(this,M),this.ended=
!0,M===0;n===2&&(L4v(this,0),G.avail_out=0);return!0};
var L4v=function(M,q){q===0&&(M.result=M.options.to==="string"?M.chunks.join(""):P2.flattenChunks(M.chunks));M.chunks=[];M.err=q;M.msg=M.strm.msg};var YXf=typeof TextEncoder!=="undefined"?new TextEncoder:null,EAy=YXf?function(M){return YXf.encode(M)}:function(M){M=_.DG(M);
for(var q=new Uint8Array(M.length),G=0;G<q.length;G++)q[G]=M[G];return q};var Fz$={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},eb$={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var lt=function(M,q){this.version=M;this.args=q};
lt.prototype.serialize=function(){return{version:this.version,args:this.args}};var JKY=function(M,q){this.topic=M;this.dataClass=q};
JKY.prototype.toString=function(){return this.topic};var W4J=_.sx("ytPubsub2Pubsub2Instance")||new _.BR;_.BR.prototype.subscribe=_.BR.prototype.subscribe;_.BR.prototype.unsubscribeByKey=_.BR.prototype.unsubscribeByKey;_.BR.prototype.publish=_.BR.prototype.publish;_.BR.prototype.clear=_.BR.prototype.clear;_.Y5("ytPubsub2Pubsub2Instance",W4J);var uwu=_.sx("ytPubsub2Pubsub2SubscribedKeys")||{};_.Y5("ytPubsub2Pubsub2SubscribedKeys",uwu);var b_y=_.sx("ytPubsub2Pubsub2TopicToKeys")||{};_.Y5("ytPubsub2Pubsub2TopicToKeys",b_y);
var Z_y=_.sx("ytPubsub2Pubsub2IsAsync")||{};_.Y5("ytPubsub2Pubsub2IsAsync",Z_y);_.Y5("ytPubsub2Pubsub2SkipSubKey",null);var R3F=void 0,jrs=void 0;var qTy=_.tL("max_body_size_to_compress",5E5),GQF=_.tL("min_body_size_to_compress",500),Vn=!0,p44=0,Rn=0,kQe=_.tL("compression_performance_threshold_lr",250),y_$=_.tL("slow_compressions_before_abandon_count",4),H_w=!1,e3$=new Map,nAH=1,KXy=!0;_.TO(fF,WXi);fF.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 AnB=function(M,q,G){G||(G=0);var K=M.W_;if(typeof q==="string")for(var n=0;n<16;n++)K[n]=q.charCodeAt(G)<<24|q.charCodeAt(G+1)<<16|q.charCodeAt(G+2)<<8|q.charCodeAt(G+3),G+=4;else for(n=0;n<16;n++)K[n]=q[G]<<24|q[G+1]<<16|q[G+2]<<8|q[G+3],G+=4;for(q=16;q<80;q++)G=K[q-3]^K[q-8]^K[q-14]^K[q-16],K[q]=(G<<1|G>>>31)&4294967295;q=M.chain_[0];G=M.chain_[1];n=M.chain_[2];for(var E=M.chain_[3],p=M.chain_[4],y,Y,A=0;A<80;A++)A<40?A<20?(y=E^G&(n^E),Y=1518500249):(y=G^n^E,Y=1859775393):A<60?(y=G&n|E&(G|n),
Y=2400959708):(y=G^n^E,Y=3395469782),y=(q<<5|q>>>27)+y+p+Y+K[A]&4294967295,p=E,E=n,n=(G<<30|G>>>2)&4294967295,G=q,q=y;M.chain_[0]=M.chain_[0]+q&4294967295;M.chain_[1]=M.chain_[1]+G&4294967295;M.chain_[2]=M.chain_[2]+n&4294967295;M.chain_[3]=M.chain_[3]+E&4294967295;M.chain_[4]=M.chain_[4]+p&4294967295};
fF.prototype.update=function(M,q){if(M!=null){q===void 0&&(q=M.length);for(var G=q-this.blockSize,K=0,n=this.buf_,E=this.inbuf_;K<q;){if(E==0)for(;K<=G;)AnB(this,M,K),K+=this.blockSize;if(typeof M==="string")for(;K<q;){if(n[E]=M.charCodeAt(K),++E,++K,E==this.blockSize){AnB(this,n);E=0;break}}else for(;K<q;)if(n[E]=M[K],++E,++K,E==this.blockSize){AnB(this,n);E=0;break}}this.inbuf_=E;this.total_+=q}};
fF.prototype.digest=function(){var M=[],q=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var G=this.blockSize-1;G>=56;G--)this.buf_[G]=q&255,q/=256;AnB(this,this.buf_);for(G=q=0;G<5;G++)for(var K=24;K>=0;K-=8)M[q]=this.chain_[G]>>K&255,++q;return M};var vAY;var PB=function(M){var q=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(v){q.databaseToken=v},
triggerThrottle:function(){q.throttledSend()},
cancelThrottle:function(){q.cancelThrottledSend()},
immediateSend:function(v){return _.L(function(h){return h.yield(q.immediateSend(v),0)})},
requestWithinAgeLimit:function(v,h){return q.requestWithinAgeLimit(v,h)},
retryQueuedRequests:function(){q.retryQueuedRequests()}};
var G;this.throttleTimeout=(G=M.throttleTimeout)!=null?G:100;var K;this.retryMaxAttempts=(K=M.retryMaxAttempts)!=null?K:1;var n;this.requestAgeLimitMs=(n=M.requestAgeLimitMs)!=null?n:2592E6;var E;this.queuedRequestAgeLimitMs=(E=M.queuedRequestAgeLimitMs)!=null?E:12E4;var p;this.retryDelayMs=(p=M.retryDelayMs)!=null?p:5E3;var y;this.databaseToken=(y=M.databaseToken)!=null?y:void 0;this.enableCleaning=!!M.enableCleaning;var Y;this.cleaningRate=(Y=M.cleaningRate)!=null?Y:.1;var A;this.potentialEsfErrorLimit=
(A=M.potentialEsfErrorLimit)!=null?A:10;M.handleError&&(this.handleError=M.handleError);M.handleWarning&&(this.handleWarning=M.handleWarning);M.disableYtIdbTransactions&&(this.disableYtIdbTransactions=M.disableYtIdbTransactions);M.bypassDbTokenDependency&&(this.bypassDbTokenDependency=M.bypassDbTokenDependency);this.getBooleanFlag=M.getBooleanFlag;this.jobManager=M.jobManager;this.logsStore=M.logsStore;this.networkManager=M.networkManager;this.sendFn=M.sendFn;this.onlineEvent=M.onlineEvent;this.offlineEvent=
M.offlineEvent;X6(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&dbp(this)},dbp=function(M){X6(M)&&!M.disableYtIdbTransactions&&(M.initialized=!0,M.enableCleaning&&Math.random()<=M.cleaningRate&&M.logsStore.cleanLogsStore(M.databaseToken),M.retryQueuedRequests(),M.networkManager.isNetworkAvailable()&&M.throttledSend(),M.networkManager.listen(M.onlineEvent,M.throttledSend.bind(M)),M.networkManager.listen(M.offlineEvent,M.cancelThrottledSend.bind(M)))};
_.N=PB.prototype;_.N.writeThenSend=function(M,q){var G=this;q=q===void 0?{}:q;if(X6(this)&&this.initialized){var K={url:M,options:q,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(K,this.databaseToken).then(function(n){K.id=n;G.networkManager.isNetworkAvailable()&&G.immediateSend(K)}).catch(function(n){G.immediateSend(K);
vzS(G,n)})}else this.sendFn(M,q)};
_.N.sendThenWrite=function(M,q,G){var K=this;q=q===void 0?{}:q;if(X6(this)&&this.initialized){var n={url:M,options:q,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(n.skipRetry=G);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!n.skipRetry){if(!n.skipRetry){var E=q.onError?q.onError:function(){};
q.onError=function(p,y){return _.L(function(Y){if(Y.nextAddress==1)return Y.yield(K.logsStore.set(n,K.databaseToken).catch(function(A){vzS(K,A)}),2);
E(p,y);_.gL(Y)})}}this.sendFn(M,q,n.skipRetry)}else this.logsStore.set(n,this.databaseToken).catch(function(p){K.sendFn(M,q,n.skipRetry);
vzS(K,p)})}else this.sendFn(M,q,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&G)};
_.N.sendAndWrite=function(M,q){var G=this;q=q===void 0?{}:q;if(X6(this)&&this.initialized){var K={url:M,options:q,timestamp:this.now(),status:"NEW",sendCount:0},n=!1,E=q.onSuccess?q.onSuccess:function(){};
K.options.onSuccess=function(p,y){K.id!==void 0?G.logsStore.deleteRequest(K.id,G.databaseToken):n=!0;G.networkManager.networkStatusHint&&G.getBooleanFlag&&G.getBooleanFlag("vss_network_hint")&&G.networkManager.networkStatusHint(!0);E(p,y)};
this.sendFn(K.url,K.options,void 0,!0);this.logsStore.set(K,this.databaseToken).then(function(p){K.id=p;n&&G.logsStore.deleteRequest(K.id,G.databaseToken)}).catch(function(p){vzS(G,p)})}else this.sendFn(M,q,void 0,!0)};
_.N.throttledSend=function(){var M=this;if(!X6(this))throw Error("bd");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(M.logsStore.getMostRecentByStatus("NEW",M.databaseToken),2);if(G.nextAddress!=3)return q=G.yieldResult,q?G.yield(M.immediateSend(q),3):(M.cancelThrottledSend(),G.return());M.intervalJob&&(M.intervalJob=0,M.throttledSend());_.gL(G)})},this.throttleTimeout))};
_.N.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.N.immediateSend=function(M){var q=this,G;return _.L(function(K){switch(K.nextAddress){case 1:if(!X6(q))throw Error("cd");if(M.id===void 0){K.jumpTo(2);break}return K.yield(q.logsStore.markAsQueued(M.id,q.databaseToken),3);case 3:(G=K.yieldResult)||q.handleWarning(Error("dd"));case 2:if(q.requestWithinAgeLimit(M,q.requestAgeLimitMs)){K.jumpTo(4);break}q.handleWarning(Error("ed"));if(M.id===void 0){K.jumpTo(5);break}return K.yield(q.logsStore.deleteRequest(M.id,q.databaseToken),5);case 5:return K.return();
case 4:M.skipRetry||(M=hHp(q,M));if(!M){K.jumpTo(0);break}if(!M.skipRetry||M.id===void 0){K.jumpTo(8);break}return K.yield(q.logsStore.deleteRequest(M.id,q.databaseToken),8);case 8:q.sendFn(M.url,M.options,!!M.skipRetry),_.gL(K)}})};
var hHp=function(M,q){if(!X6(M))throw Error("fd");var G=q.options.onError?q.options.onError:function(){};
q.options.onError=function(n,E){var p,y,Y,A;return _.L(function(v){switch(v.nextAddress){case 1:p=Cgj(E);(y=apH(E))&&M.getBooleanFlag&&M.getBooleanFlag("web_enable_error_204")&&M.handleError(Error("gd"),q.url,E);if(!(M.getBooleanFlag&&M.getBooleanFlag("nwl_consider_error_code")&&p||M.getBooleanFlag&&!M.getBooleanFlag("nwl_consider_error_code")&&M.potentialEsfErrorCounter<=M.potentialEsfErrorLimit)){v.jumpTo(2);break}if(!M.networkManager.sendNetworkCheckRequest){v.jumpTo(3);break}return v.yield(M.networkManager.sendNetworkCheckRequest(),
3);case 3:if(M.networkManager.isNetworkAvailable()){v.jumpTo(2);break}G(n,E);if(!M.getBooleanFlag||!M.getBooleanFlag("nwl_consider_error_code")||((Y=q)==null?void 0:Y.id)===void 0){v.jumpTo(6);break}return v.yield(M.logsStore.resetRequest(q.id,M.databaseToken,!1),6);case 6:return v.return();case 2:if(M.getBooleanFlag&&M.getBooleanFlag("nwl_consider_error_code")&&!p&&M.potentialEsfErrorCounter>M.potentialEsfErrorLimit)return v.return();M.potentialEsfErrorCounter++;if(((A=q)==null?void 0:A.id)===void 0){v.jumpTo(8);
break}return q.sendCount<M.retryMaxAttempts?v.yield(M.logsStore.resetRequest(q.id,M.databaseToken,!0,y?!1:void 0),12):v.yield(M.logsStore.deleteRequest(q.id,M.databaseToken),8);case 12:M.jobManager.addLowPriorityJob(function(){M.networkManager.isNetworkAvailable()&&M.throttledSend()},M.retryDelayMs);
case 8:G(n,E),_.gL(v)}})};
var K=q.options.onSuccess?q.options.onSuccess:function(){};
q.options.onSuccess=function(n,E){var p;return _.L(function(y){if(y.nextAddress==1)return((p=q)==null?void 0:p.id)===void 0?y.jumpTo(2):y.yield(M.logsStore.deleteRequest(q.id,M.databaseToken),2);M.networkManager.networkStatusHint&&M.getBooleanFlag&&M.getBooleanFlag("vss_network_hint")&&M.networkManager.networkStatusHint(!0);K(n,E);_.gL(y)})};
return q};
PB.prototype.requestWithinAgeLimit=function(M,q){M=M.timestamp;return this.now()-M>=q?!1:!0};
PB.prototype.retryQueuedRequests=function(){var M=this;if(!X6(this))throw Error("hd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(q){q&&!M.requestWithinAgeLimit(q,M.queuedRequestAgeLimitMs)?M.jobManager.addLowPriorityJob(function(){return _.L(function(G){if(G.nextAddress==1)return q.id===void 0?G.jumpTo(2):G.yield(M.logsStore.resetRequest(q.id,M.databaseToken),2);M.retryQueuedRequests();_.gL(G)})}):M.networkManager.isNetworkAvailable()&&M.throttledSend()})};
var vzS=function(M,q){M.writeError&&!M.networkManager.isNetworkAvailable()?M.writeError(q):M.handleError(q)},X6=function(M){return!!M.databaseToken||M.bypassDbTokenDependency};var oAj;var Q24={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,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,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};var tg2={},DsY=A0("ServiceWorkerLogsDatabase",{objectStores:(tg2.SWHealthLog={addedAtVersion:1},tg2),shared:!0,upgrade:function(M,q){q(1)&&$5(eG(M,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var msy={},zUi=0;var jO4;var cB=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},KA=function(){if(!cB.instance){var M=_.sx("yt.networkRequestMonitor.instance")||new cB;
_.Y5("yt.networkRequestMonitor.instance",M);cB.instance=M}return cB.instance};
cB.prototype.requestComplete=function(M,q){q&&(this.anyRequestHasSucceeded=!0);M=this.removeParams(M);this.requestMap.get(M)||this.requestMap.set(M,q)};
cB.prototype.isEndpointCFR=function(M){M=this.removeParams(M);return(M=this.requestMap.get(M))?!1:M===!1&&this.anyRequestHasSucceeded?!0:null};
cB.prototype.removeParams=function(M){return M.split("?")[0]};
cB.prototype.removeParams=cB.prototype.removeParams;cB.prototype.isEndpointCFR=cB.prototype.isEndpointCFR;cB.prototype.requestComplete=cB.prototype.requestComplete;cB.getInstance=KA;var gN=function(M){_.w6.call(this);var q=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=M!=null?M:{addLowPriorityJob:function(n,E){return setTimeout(n,E)},
cancelJob:function(n){clearTimeout(n)}};
var G,K;this.isOnline=(K=(G=window.navigator)==null?void 0:G.onLine)!=null?K:!0;this.onNavigatorChange=function(){return _.L(function(n){return n.yield(OKP(q),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||wsd(this)};
_.l(gN,_.w6);gN.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete gN.instance};
gN.prototype.isNetworkAvailable=function(){return this.isOnline};
var wsd=function(M){M.pollingJob=M.jobManager.addLowPriorityJob(function(){var q;return _.L(function(G){if(G.nextAddress==1)return M.isOnline?((q=window.navigator)==null?0:q.onLine)?G.jumpTo(3):G.yield(OKP(M),3):G.yield(OKP(M),3);wsd(M);_.gL(G)})},3E4)},OKP=function(M,q){return M.networkRequestPromise?M.networkRequestPromise:M.networkRequestPromise=new Promise(function(G){var K,n,E,p;
return _.L(function(y){switch(y.nextAddress){case 1:return K=window.AbortController?new window.AbortController:void 0,E=(n=K)==null?void 0:n.signal,p=!1,_.Cv(y,2,3),K&&(M.abortTimeoutKey=M.jobManager.addLowPriorityJob(function(){K.abort()},q||2E4)),y.yield(fetch("/generate_204",{method:"HEAD",
signal:E}),5);case 5:p=!0;case 3:_.oS(y);M.networkRequestPromise=void 0;M.abortTimeoutKey&&(M.jobManager.cancelJob(M.abortTimeoutKey),M.abortTimeoutKey=0);p!==M.isOnline&&(M.isOnline=p,M.isOnline?M.dispatchEvent("networkstatus-online"):M.dispatchEvent("networkstatus-offline"));G(p);_.Xr(y,0);break;case 2:_.i5(y),p=!1,y.jumpTo(3)}})})};var BB=function(){_.w6.call(this);var M=this;this.shouldFlushErrors=!1;gN.instance||(gN.instance=new gN(_.r8));this.sharedNetworkStatusManager=gN.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(M.shouldFlushErrors&&_.w("offline_error_handling")){var q=Voy().get("errors",!0);if(q){for(var G in q)if(q[G]){var K=new _.bj(G,"sent via offline_errors");K.name=q[G].name;K.stack=q[G].stack;K.level=q[G].level;_.eK(K)}Voy().set("errors",{},2592E3,!0)}}})};
_.l(BB,_.w6);var Cc2=function(){if(!BB.instance){var M=_.sx("yt.networkStatusManager.instance")||new BB;_.Y5("yt.networkStatusManager.instance",M);BB.instance=M}return BB.instance};
_.N=BB.prototype;_.N.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.N.networkStatusHint=function(M){this.sharedNetworkStatusManager.isOnline=M};
_.N.getWindowStatus=function(){var M=window.navigator.onLine;return M===void 0?!0:M};
_.N.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.N.listen=function(M,q){return this.sharedNetworkStatusManager.listen(M,q)};
_.N.sendNetworkCheckRequest=function(M){M=OKP(this.sharedNetworkStatusManager,M);M.then(function(q){_.w("use_cfr_monitor")&&KA().requestComplete("generate_204",q)});
return M};
BB.prototype.sendNetworkCheckRequest=BB.prototype.sendNetworkCheckRequest;BB.prototype.listen=BB.prototype.listen;BB.prototype.enableErrorFlushing=BB.prototype.enableErrorFlushing;BB.prototype.getWindowStatus=BB.prototype.getWindowStatus;BB.prototype.networkStatusHint=BB.prototype.networkStatusHint;BB.prototype.isNetworkAvailable=BB.prototype.isNetworkAvailable;BB.getInstance=Cc2;_.G6=function(M){M=M===void 0?{}:M;_.w6.call(this);var q=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=Cc2();var G=_.sx("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);G&&(M.rateLimit?(this.rateLimit=M.rateLimit,G("networkstatus-online",function(){aSf(q,"publicytnetworkstatus-online")}),G("networkstatus-offline",function(){aSf(q,"publicytnetworkstatus-offline")})):(G("networkstatus-online",function(){q.dispatchEvent("publicytnetworkstatus-online")}),G("networkstatus-offline",
function(){q.dispatchEvent("publicytnetworkstatus-offline")})))};
_.l(_.G6,_.w6);_.G6.prototype.isNetworkAvailable=function(){var M=_.sx("yt.networkStatusManager.instance.isNetworkAvailable");return M?M.bind(this.nsmInstance)():!0};
_.G6.prototype.networkStatusHint=function(M){var q=_.sx("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);q&&q(M)};
_.G6.prototype.sendNetworkCheckRequest=function(M){var q=this,G;return _.L(function(K){G=_.sx("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(q.nsmInstance);return _.w("skip_network_check_if_cfr")&&KA().isEndpointCFR("generate_204")?K.return(new Promise(function(n){var E;q.networkStatusHint(((E=window.navigator)==null?void 0:E.onLine)||!0);n(q.isNetworkAvailable())})):G?K.return(G(M)):K.return(!0)})};
var aSf=function(M,q){M.rateLimit?M.lastJobTime?(_.r8.cancelJob(M.schedulerJob),M.schedulerJob=_.r8.addLowPriorityJob(function(){M.lastPublicSignalSent!==q&&(M.dispatchEvent(q),M.lastPublicSignalSent=q,M.lastJobTime=(0,_.d8)())},M.rateLimit-((0,_.d8)()-M.lastJobTime))):(M.dispatchEvent(q),M.lastPublicSignalSent=q,M.lastJobTime=(0,_.d8)()):M.dispatchEvent(q)};var eUw,QM=function(){PB.call(this,{logsStore:{cleanLogsStore:QOH,deleteRequest:B4w,getMostRecentByStatus:iTH,markAsQueued:c_y,resetRequest:gAD,set:PgH},networkManager:_.$sy(),handleError:function(M,q,G){var K,n=G==null?void 0:(K=G.error)==null?void 0:K.code;if(n===400||n===415){var E;M=new _.bj(M.message,q,G==null?void 0:(E=G.error)==null?void 0:E.code);_.Mz(M,void 0,void 0,void 0,!0)}else _.eK(M)},
handleWarning:_.Mz,sendFn:FXs,now:_.d8,writeError:RU4,jobManager:_.AM(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.tL("potential_esf_error_limit",10),getBooleanFlag:_.w,disableYtIdbTransactions:!(_.Zf()&&_.sMs())});this.initializationPromise=new _.sp;_.w("networkless_immediately_drop_all_requests")&&Ipy();aSu("LogsDatabaseV2")};
_.l(QM,PB);_.lSd=function(){var M=_.sx("yt.networklessRequestController.instance");M||(M=new QM,_.Y5("yt.networklessRequestController.instance",M),_.w("networkless_logging")&&_.W2().then(function(q){M.databaseToken=q;dbp(M);M.initializationPromise.resolve();M.enableCleaning&&Math.random()<=M.cleaningRate&&M.databaseToken&&J_s(M.databaseToken);_.w("networkless_immediately_drop_sw_health_store")&&ozf(M)}));
return M};
QM.prototype.writeThenSend=function(M,q){q||(q={});q=HTy(M,q);_.Zf()||(this.initialized=!1);PB.prototype.writeThenSend.call(this,M,q)};
QM.prototype.sendThenWrite=function(M,q,G){q||(q={});q=HTy(M,q);_.Zf()||(this.initialized=!1);PB.prototype.sendThenWrite.call(this,M,q,G)};
QM.prototype.sendAndWrite=function(M,q){q||(q={});q=HTy(M,q);_.Zf()||(this.initialized=!1);PB.prototype.sendAndWrite.call(this,M,q)};
QM.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var ozf=function(M){var q;_.L(function(G){if(!M.databaseToken)throw q=eS("clearSWHealthLogsDb"),q;return G.return(ZTw(M.databaseToken).catch(function(K){M.handleError(K)}))})};_.qEH=!1;_.M5D=_.Kj.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.qEH};_.Y5("ytNetworklessLoggingInitializationOptions",_.M5D);var z6=function(M){var q=this;this.config_=null;M?this.config_=M:QtF()&&(this.config_=_.h0());_.Jp(_.r8,function(){w4$(q)},5E3)};
z6.prototype.isReady=function(){!this.config_&&QtF()&&(this.config_=_.h0());return!!this.config_};
var OTF=function(M,q,G,K){!_.R9("VISITOR_DATA")&&q!=="visitor_id"&&Math.random()<.01&&_.Mz(new _.bj("Missing VISITOR_DATA when sending innertube request.",q,G,K));if(!M.isReady()){var n=new _.bj("innertube xhrclient not ready",q,G,K);_.eK(n);throw n;}var E={headers:K.headers||{},method:"POST",postParams:G,postBody:K.postBody,postBodyFormat:K.postBodyFormat||"JSON",onTimeout:function(){K.onTimeout()},
onFetchTimeout:K.onTimeout,onSuccess:function(h,t){if(K.onSuccess)K.onSuccess(t)},
onFetchSuccess:function(h){if(K.onSuccess)K.onSuccess(h)},
onProgress:function(h){if(K.onProgress)K.onProgress(h)},
onError:function(h,t){if(K.onError)K.onError(t)},
onFetchError:function(h){if(K.onError)K.onError(h)},
timeout:K.timeout,withCredentials:!0,compress:K.compress};E.headers["Content-Type"]||(E.headers["Content-Type"]="application/json");var p="";(n=M.config_.innertubeHostOverride)&&(p=n);var y=M.config_.innertubeUseThirdPartyAuth||!1,Y=_.RH4(y,p,K);Object.assign(E.headers,Y);E.headers.Authorization&&!p&&y&&(E.headers["x-origin"]=window.location.origin);var A=_.Ex(p+("/youtubei/"+M.config_.innertubeApiVersion+"/"+q),{alt:"json"}),v=function(h){h=h===void 0?!1:h;var t;if(K.retry&&p!="www.youtube-nocookie.com"&&
(h||_.w("skip_ls_gel_retry")||E.headers["Content-Type"]!=="application/json"||(t=hUD(q,G,Y,y)),t)){var O=E.onSuccess,a=E.onFetchSuccess;E.onSuccess=function(J,Z){toy(t);O(J,Z)};
G.onFetchSuccess=function(J,Z){toy(t);a(J,Z)}}try{if(h&&K.retry&&!K.networklessOptions.bypassNetworkless)E.method="POST",K.networklessOptions.writeThenSend?_.lSd().writeThenSend(A,E):_.lSd().sendAndWrite(A,E);
else if(K.compress){var g=!K.networklessOptions.writeThenSend;if(E.postBody){var D=E.postBody;typeof D!=="string"&&(D=JSON.stringify(E.postBody));N4i(A,D,E,_.cR,g)}else N4i(A,JSON.stringify(E.postParams),E,A2$,g)}else _.w("web_all_payloads_via_jspb")?_.cR(A,E):A2$(A,E)}catch(J){if(J.name==="InvalidAccessError")t&&(toy(t),t=0),_.Mz(Error("id"));else throw J;}t&&_.Jp(_.r8,function(){w4$(M)},5E3)};
_.GEs()?AnY().then(function(h){v(h)}):v(!1)};var lwy=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(lwy,_.kC);var Xsx=0,njF=_.Hh?"webkit":_.Fa?"moz":_.RH?"ms":Zj2?"o":"";_.Y5("ytDomDomGetNextId",_.sx("ytDomDomGetNextId")||function(){return++Xsx});var Pc9={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},y2=function(M){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(M=
M||window.event){this.event=M;for(var q in M)q in Pc9||(this[q]=M[q]);this.scale=M.scale;this.rotation=M.rotation;var G=M.target||M.srcElement;G&&G.nodeType==3&&(G=G.parentNode);this.target=G;var K=M.relatedTarget;if(K)try{K=K.nodeName?K:null}catch(n){K=null}else this.type=="mouseover"?K=M.fromElement:this.type=="mouseout"&&(K=M.toElement);this.relatedTarget=K;this.clientX=M.clientX!=void 0?M.clientX:M.pageX;this.clientY=M.clientY!=void 0?M.clientY:M.pageY;this.keyCode=M.keyCode?M.keyCode:M.which;
this.charCode=M.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=M.altKey;this.ctrlKey=M.ctrlKey;this.shiftKey=M.shiftKey;this.metaKey=M.metaKey;this.pageX_=M.pageX;this.pageY_=M.pageY}}catch(n){}},iKJ=function(M){if(document.body&&document.documentElement){var q=document.body.scrollTop+document.documentElement.scrollTop;
M.pageX_=M.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);M.pageY_=M.clientY+q}};
y2.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
y2.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
y2.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var pA=_.Kj.ytEventsEventsListeners||{};_.Y5("ytEventsEventsListeners",pA);var LYs=_.Kj.ytEventsEventsCounter||{count:0};_.Y5("ytEventsEventsCounter",LYs);var YEY=_.hc(function(){var M=!1;try{var q=Object.defineProperty({},"capture",{get:function(){M=!0}});
window.addEventListener("test",null,q)}catch(G){}return M});_.TO(Yc,_.uI);Yc.prototype.onMouseMove_=function(M){M.pageX_===void 0&&iKJ(M);var q=M.pageX_;M.pageY_===void 0&&iKJ(M);this.position_=new _.mK(q,M.pageY_)};
Yc.prototype.checkPosition_=function(){if(this.position_){var M=(0,_.d8)();if(this.previousTime_!=0){var q=this.previousPosition_,G=this.position_,K=q.x-G.x;q=q.y-G.y;K=Math.sqrt(K*K+q*q)/(M-this.previousTime_);this.cycles_[this.index_]=Math.abs((K-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(G=q=0;G<4;G++)q+=this.cycles_[G]||0;q>=3&&this.callback_();this.previousVelocity_=K}this.previousTime_=M;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
Yc.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.WYi(this.mouseListenerKey_)};var t5D={};var P8e=new _.e0("rawColdConfigGroup");var Xxj=new _.e0("rawHotConfigGroup");var cn$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(cn$,_.kC);var oND=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(oND,_.kC);var uN=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M,500)};
_.l(uN,_.kC);uN.prototype.getPayloadCase=function(){return _.yj(this,gzf)};
uN.prototype.getContext=function(){return _.t0(this,oND,33)};
var gzf=[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];var OpD=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(OpD,_.kC);var fgy=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(fgy,_.kC);fgy.prototype.setVideoId=function(M){return Pr(this,1,FYy,o8(M))};
fgy.prototype.getPlaylistId=function(){return _.PX(this,Q2(this,FYy,2))};
var FYy=[1,2];var Wd4=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Wd4,_.kC);Wd4.prototype.getContext=function(){return _.t0(this,iN,1)};
Wd4.prototype.getTier=function(){return _.tD(this,7)};var Bzd,vr,hp;Bzd=_.Kj.ytPubsubPubsubInstance||new _.BR;vr=_.Kj.ytPubsubPubsubSubscribedKeys||{};hp=_.Kj.ytPubsubPubsubTopicToKeys||{};_.Olu=_.Kj.ytPubsubPubsubIsSynchronous||{};_.BR.prototype.subscribe=_.BR.prototype.subscribe;_.BR.prototype.unsubscribeByKey=_.BR.prototype.unsubscribeByKey;_.BR.prototype.publish=_.BR.prototype.publish;_.BR.prototype.clear=_.BR.prototype.clear;_.Y5("ytPubsubPubsubInstance",Bzd);_.Y5("ytPubsubPubsubTopicToKeys",hp);_.Y5("ytPubsubPubsubIsSynchronous",_.Olu);
_.Y5("ytPubsubPubsubSubscribedKeys",vr);var wM=window;var IA=_.w("web_enable_lifecycle_monitoring")&&lgF()!==0,Qtl=_.w("web_enable_lifecycle_monitoring");var IS$=function(M){var q=this;var G=G===void 0?0:G;var K=K===void 0?_.AM():K;this.JSC$10890_defaultPriority=G;this.scheduler=K;this.completedResolver=new _.sp;this.scheduledPayloads=M;for(M={i$jscomp$492:0};M.i$jscomp$492<this.scheduledPayloads.length;M={payload$jscomp$20:void 0,i$jscomp$492:M.i$jscomp$492},M.i$jscomp$492++)M.payload$jscomp$20=this.scheduledPayloads[M.i$jscomp$492],G=function(n){return function(){n.payload$jscomp$20.job();q.scheduledPayloads[n.i$jscomp$492].processed=!0;q.scheduledPayloads.every(function(E){return E.processed===
!0})&&q.completedResolver.resolve()}}(M),K=this.getPriority(M.payload$jscomp$20),K=this.scheduler.addJob(G,K),this.scheduledPayloads[M.i$jscomp$492]=Object.assign({},M.payload$jscomp$20,{job:G,
jobId:K})};
IS$.prototype.flushJobs=function(){var M=this,q=Array.from(this.scheduledPayloads.keys()).sort(function(K,n){return M.getPriority(M.scheduledPayloads[n])-M.getPriority(M.scheduledPayloads[K])});
q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=this.scheduledPayloads[G.value],G.jobId===void 0||G.processed||(this.scheduler.cancelJob(G.jobId),this.scheduler.addJob(G.job,10))};
IS$.prototype.cancel=function(){for(var M=_.k(this.scheduledPayloads),q=M.next();!q.done;q=M.next())q=q.value,q.jobId===void 0||q.processed||this.scheduler.cancelJob(q.jobId),q.processed=!0;this.completedResolver.resolve()};
IS$.prototype.getPriority=function(M){var q;return(q=M.priority)!=null?q:this.JSC$10890_defaultPriority};var DD=function(M){this.state=M;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};IA&&Xbi(this.state)};
DD.prototype.install=function(M){this.plugins.push(M);return this};
DD.prototype.uninstall=function(){var M=this;_.rW.apply(0,arguments).forEach(function(q){q=M.plugins.indexOf(q);q>-1&&M.plugins.splice(q,1)})};
DD.prototype.transition=function(M,q){var G=this;IA&&Pmw(this.state);var K=this.transitions.find(function(E){return Array.isArray(E.from)?E.from.find(function(p){return p===G.state&&E.to===M}):E.from===G.state&&E.to===M});
if(K){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);DbB(this,M,q);this.state=M;IA&&Xbi(this.state);K=K.action.bind(this);var n=this.plugins.filter(function(E){return E[M]}).map(function(E){return E[M]});
K(up$(this,n),q)}else throw Error("jd`"+this.state+"`"+M);};
var up$=function(M,q){var G=q.filter(function(n){return Jnp(M,n)===10}),K=q.filter(function(n){return Jnp(M,n)!==10});
return M.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var n=_.rW.apply(0,arguments);return _.L(function(E){if(E.nextAddress==1)return E.yield(M.runImmediateJobsAsync.apply(M,[G].concat(_.Ui(n))),2);M.setJobSetWithScheduledJobs.apply(M,[K].concat(_.Ui(n)));_.gL(E)})}:function(){var n=_.rW.apply(0,arguments);
M.runImmediateJobsSync.apply(M,[G].concat(_.Ui(n)));M.setJobSetWithScheduledJobs.apply(M,[K].concat(_.Ui(n)))}};
DD.prototype.runImmediateJobsSync=function(M){var q=_.rW.apply(1,arguments);_.AM();for(var G=_.k(M),K=G.next(),n={};!K.done;n={lifecycle$jscomp$2:void 0},K=G.next())n.lifecycle$jscomp$2=K.value,Vx(function(E){return function(){ZKv(E.lifecycle$jscomp$2.name);cjH(function(){return E.lifecycle$jscomp$2.callback.apply(E.lifecycle$jscomp$2,_.Ui(q))});
ut(E.lifecycle$jscomp$2.name)}}(n))};
DD.prototype.runImmediateJobsAsync=function(M){var q=_.rW.apply(1,arguments),G,K,n,E;return _.L(function(p){p.nextAddress==1&&(_.AM(),G=_.k(M),K=G.next(),n={});if(p.nextAddress!=3){if(K.done)return p.jumpTo(0);n.lifecycle$jscomp$3=K.value;n.asyncJobCompletion=void 0;E=function(y){return function(){ZKv(y.lifecycle$jscomp$3.name);var Y=cjH(function(){return y.lifecycle$jscomp$3.callback.apply(y.lifecycle$jscomp$3,_.Ui(q))});
AdJ(Y)?y.asyncJobCompletion=_.w("web_lifecycle_error_handling_killswitch")?Y.then(function(){ut(y.lifecycle$jscomp$3.name)}):Y.then(function(){ut(y.lifecycle$jscomp$3.name)},function(A){il4(A);
ut(y.lifecycle$jscomp$3.name)}):ut(y.lifecycle$jscomp$3.name)}}(n);
Vx(E);return n.asyncJobCompletion?p.yield(n.asyncJobCompletion,3):p.jumpTo(3)}n={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};K=G.next();return p.jumpTo(2)})};
DD.prototype.setJobSetWithScheduledJobs=function(M){var q=_.rW.apply(1,arguments),G=this,K=M.map(function(n){return{job:function(){ZKv(n.name);cjH(function(){return n.callback.apply(n,_.Ui(q))});
ut(n.name)},
priority:Jnp(G,n)}});
K.length&&(this.jobSet=new IS$(K))};
var Jnp=function(M,q){var G,K;return(K=(G=M.overridePriority)!=null?G:q.priority)!=null?K:0},ZKv=function(M){IA&&M&&Xbi(M)},ut=function(M){IA&&M&&Pmw(M)},DbB=function(M,q,G){Qtl&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+M.constructor.name+"] '"+M.state+"' to '"+q+"'"),console.log("with message: ",G),console.groupEnd())};
_.Yd.Object.defineProperties(DD.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var bKv=function(M){DD.call(this,M===void 0?"none":M);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(){}}]},Ubp;
_.l(bKv,DD);bKv.prototype.runApplicationNavigationBegin=function(M,q){var G=this;this.navigationTimer=_.Jp(_.r8,function(){G.currentState==="application_navigating"&&G.transition("none")},5E3);
M(q==null?void 0:q.event)};
bKv.prototype.runApplicationNavigationEnd=function(M,q){this.navigationTimer&&(_.r8.cancelJob(this.navigationTimer),this.navigationTimer=null);M(q==null?void 0:q.event)};
_.ltF=function(){Ubp||(Ubp=new bKv);return Ubp};var omu=[];_.Y5("yt.logging.transport.getScrapedGelPayloads",function(){return omu});var CA=function(){var M=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return M.totalEntries}}};
CA.prototype.storePayload=function(M,q){M=gjF(M);this.store[M]?this.store[M].push(q):(this.memoizedKeySequences={},this.store[M]=[q]);this.totalEntries++;_.w("more_accurate_gel_parser")&&(q=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(q));return M};
CA.prototype.smartExtractMatchingEntries=function(M){if(!M.keys.length)return[];for(var q=xbB(this,M.keys.splice(0,1)[0]),G=[],K=0;K<q.length;K++)this.store[q[K]]&&M.sizeLimit&&(this.store[q[K]].length<=M.sizeLimit?(G.push.apply(G,_.Ui(this.store[q[K]])),delete this.store[q[K]]):G.push.apply(G,_.Ui(this.store[q[K]].splice(0,M.sizeLimit))));this.totalEntries-=G.length;(M==null?0:M.sizeLimit)&&G.length<(M==null?void 0:M.sizeLimit)&&(M.sizeLimit-=G.length,G.push.apply(G,_.Ui(this.smartExtractMatchingEntries(M))));
return G};
CA.prototype.extractMatchingEntries=function(M){M=xbB(this,M);for(var q=[],G=0;G<M.length;G++)this.store[M[G]]&&(q.push.apply(q,_.Ui(this.store[M[G]])),delete this.store[M[G]]);this.totalEntries-=q.length;return q};
CA.prototype.getSequenceCount=function(M){M=xbB(this,M);for(var q=0,G=0;G<M.length;G++){var K=void 0;q+=((K=this.store[M[G]])==null?void 0:K.length)||0}return q};
var xbB=function(M,q){var G=gjF(q);if(M.memoizedKeySequences[G])return M.memoizedKeySequences[G];var K=Object.keys(M.store)||[];if(K.length<=1&&gjF(q)===K[0])return K;for(var n=[],E=0;E<K.length;E++){var p=K[E].split("/");if(zHd(q.auth,p[0])){var y=q.isJspb;zHd(y===void 0?"undefined":y?"true":"false",p[1])&&zHd(q.cttAuthInfo,p[2])&&(y=q.tier,y=y===void 0?"undefined":JSON.stringify(y),zHd(y,p[3])&&n.push(K[E]))}}return M.memoizedKeySequences[G]=n},zHd=function(M,q){return M===void 0||M==="undefined"?
!0:M===q};
CA.prototype.getSequenceCount=CA.prototype.getSequenceCount;CA.prototype.extractMatchingEntries=CA.prototype.extractMatchingEntries;CA.prototype.smartExtractMatchingEntries=CA.prototype.smartExtractMatchingEntries;CA.prototype.storePayload=CA.prototype.storePayload;var nmi,GMj,EmH,lN,mbf,Bke,gms,qqy,Mcy,T7F,Kds,C8F,exH;nmi=_.tL("initial_gel_batch_timeout",2E3);GMj=_.tL("gel_queue_timeout_max_ms",6E4);EmH=_.tL("gel_min_batch_size",5);lN=void 0;mbf=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
Bke=new mbf;gms=new mbf;qqy=new mbf;Mcy=new mbf;Kds=!0;C8F=1;_.wxy=new Map;exH=_.Kj.ytLoggingTransportTokensToCttTargetIds_||{};_.Y5("ytLoggingTransportTokensToCttTargetIds_",exH);var Hly=_.Kj.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.Y5("ytLoggingTransportTokensToJspbCttTargetIds_",Hly);var ow={};var U4=_.Kj.ytLoggingGelSequenceIdObj_||{};_.Y5("ytLoggingGelSequenceIdObj_",U4);var DAF=[];var j2y=new Set,UAi=0,fty=0,R4D=0,z4e=[],xA4=[],Fdy=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var pOD=function(){};
pOD.prototype.getUrl=function(M,q){q=q===void 0?!1:q;return M.hasOwnProperty("shareEndpoint")?null:_.sZH(M,null,q)};
var Xww=function(M,q,G){M={endpoint:q,actions:[]};G=(G.path?G.path[0]:G.target).icon||"";q=G.indexOf(":");q>0&&(G=G.substr(q+1));G&&M.actions.push(G);return M};var Ee4=/Command$/,ney=/Endpoint$/,q0F=new Map;var SXM,Tz9;SXM=1;_.GC=function(){this.actionRoutingMap=new Map};
_.GC.prototype.triggerAction=function(M){var q=new q7F(M,!1,_.rW.apply(1,arguments));this.handleAction(q);return q.returnValue};
_.GC.prototype.triggerOptionalAction=function(M){var q=new q7F(M,!0,_.rW.apply(1,arguments));this.handleAction(q);return q.returnValue};
_.Js=function(M,q,G){q.forEach(function(K){var n=KgH(K);n&&M.triggerOptionalAction(n,K,G,void 0)})};
_.GC.prototype.handleAction=function(M){var q=this.actionRoutingMap.get(M.actionName);q&&Tz9(M,q);M.optionalAction||M.returnValue.length!==0||(M=new _.bj("Unhandled action",M.actionName),_.Mz(M))};
Tz9=function(M,q){q.forEach(function(G){var K=null;G?K=G.apply(null,M.args):(G=Error("kd"),G.params=M.actionName,_.eK(G));M.returnValue.push(K)})};
_.KI=function(M,q,G){G||(G=SXM++);for(var K=_.k(Object.keys(q)),n=K.next();!n.done;n=K.next()){n=n.value;var E=M.actionRoutingMap.get(n);E||(E=new Map,M.actionRoutingMap.set(n,E));M.registerActionHandler(G,n,q[n],E)}return G};
_.GC.prototype.registerActionHandler=function(M,q,G,K){K.set(M,_.$2(G))};
_.N6=function(M,q,G){q=_.k(Object.keys(q));for(var K=q.next();!K.done;K=q.next())(K=M.actionRoutingMap.get(K.value))&&K.delete(G)};
_.mi(_.GC);var Y0w=function(M,q){var G=_.GC.getInstance();_.SK(function(){var K={},n=_.KI(G,(K[M]=q,K));_.m_(function(){var E={};_.N6(G,(E[M]="",E),n)})})};var cIY=Symbol("md");hSF=HYH;var gei=new Set(["For","If","Match","Watch"]),rnM={},jtx=(rnM[Hm.default]=function(){return yh4},rnM.style=function(){return yh4},rnM),Vgx;
for(Vgx in jtx)Y_.attributes[Vgx]=jtx[Vgx](Y_.attributes[Vgx]);var A5=new _.$k("VISIBILITY_OBSERVER");var xoy={retrieve:function(M){return this.id.\u0275prov.token===M.\u0275prov.token?this.contextValue:this?_.pW(this,this.id):tGj}};var Rr4=function(M,q,G){if(M!==hVy)return!1;M=oej(document.createElement("div"),function(){var K=vM(!1);try{G[0]()}finally{vM(K)}});
M=Array.from(M.childNodes);M.length===1&&(M=M[0]);return M};var RHd=typeof AbortController==="function";if(typeof DOMException==="function")try{new DOMException}catch(M){}var fS8=typeof WeakRef==="function";var F4l=function(M){this.value=M};
F4l.prototype.deref=function(){return this.value};
var HKd=fS8?WeakRef:F4l,eH2=function(M){this.newKeyHandler=M;this.map=new WeakMap};
eH2.prototype.add=function(M,q){this.map.has(M)||(this.newKeyHandler(M),this.map.set(M,[]));this.map.get(M).push(new HKd(q))};
eH2.prototype.get=function(M){var q=this;return function K(){var n,E,p,y,Y,A,v,h,t,O,a;return _.FT(K,function(g){switch(g.nextAddress){case 1:_.l5(g,2);n=q.map.get(M);if(!n)return g.return();E=0;p=_.k(n);y=p.next();case 4:if(y.done){g.jumpTo(6);break}Y=y.value;A=Y.deref();if(!A){g.jumpTo(5);break}E++;v=_.H3;return g.yield(A,8);case 8:v(g.yieldResult);case 5:y=p.next();g.jumpTo(4);break;case 6:if(2*E<n.length){h=0;t=_.k(n);for(O=t.next();!O.done;O=t.next())a=O.value,a.deref()&&(n[h++]=a);n.length=
h}case 2:_.oS(g),_.Xr(g,0)}})}()};var $bv=document.createDocumentFragment?function(){return document.createDocumentFragment()}:function(){return document.createElement("div")},Vsy=new eH2(function(M){M.addEventListener("abort",fTj,{once:!0})}),jZY=new WeakMap,sr$=function(M){M=M===void 0?ZD:M;
this.signal=new M};
sr$.prototype.abort=function(M){this.signal.aborted||(this.signal.aborted=!0,this.signal.reason=M,M=new Event("abort"),this.signal.dispatchEvent(M))};
var ZD=function(){this.target=$bv();this.aborted=!1;this.onabort=null};
ZD.prototype.throwIfAborted=function(){r$H.call(this)};
ZD.prototype.addEventListener=function(M,q,G){this.target.addEventListener(M,q,G)};
ZD.prototype.removeEventListener=function(M,q,G){this.target.removeEventListener(M,q,G)};
ZD.prototype.dispatchEvent=function(M){if(this.onabort&&M.type==="abort")this.onabort(M);return this.target.dispatchEvent(M)};
ZD.abort=Txj;ZD.timeout=FgF;ZD.any=RVy;var S0e=RHd?AbortController:sr$,bt=RHd?AbortSignal:ZD;typeof bt.abort!=="function"&&(bt.abort=Txj);typeof bt.prototype.throwIfAborted!=="function"&&(bt.prototype.throwIfAborted=r$H);typeof bt.any!=="function"&&(bt.any=RVy);typeof bt.timeout!=="function"&&(bt.timeout=FgF);var vU=null,eVw=new Map;var Ml2=function(M){M=M.clone();CRd(M);wb(M,"dg",null);wb(M,"d","0");h0v(M,null);tU2(M,null);return M},qpI=!0,Guv=function(M,q,G){var K=G===void 0?{}:G;
G=K.cssRowKey===void 0?void 0:K.cssRowKey;var n=K.combinedSignature===void 0?void 0:K.combinedSignature;var E=K.extraEdges===void 0?void 0:K.extraEdges;K=K.callback===void 0?void 0:K.callback;wb(M,"m",q.join(","));E&&wUf(M,E);G&&(wb(M,"ck",G),n?wb(M,"rs",n):qpI&&(qpI=!1));if(K){if(K!=null&&!ly$.test(K))throw Error("Xa`"+K);wb(M,"cb",K)}M=M.toString();_.Ee(M,"/")&&(M=$_f(document.location.href)+M);return _.Qk(M)};var nUM=function(M){return Ka$(M).then(function(q){return JSON.parse(q.responseText)})},Ka$=function(M){var q={},G=q.xmlHttpFactory?q.xmlHttpFactory.createInstance():U$J.createInstance();
return(new _.X4(function(K,n){var E;try{G.open("GET",M,!0)}catch(Y){n(new U6("Error opening XHR: "+Y.message,M,G))}G.onreadystatechange=function(){if(G.readyState==4){_.Kj.clearTimeout(E);var Y;!(Y=bXP(G.status))&&(Y=G.status===0)&&(Y=eq8(M),Y=!(Y=="http"||Y=="https"||Y==""));Y?K(G):n(new EUp(G.status,M,G))}};
G.onerror=function(){n(new U6("Network error",M,G))};
if(q.headers)for(var p in q.headers){var y=q.headers[p];y!=null&&G.setRequestHeader(p,y)}q.withCredentials&&(G.withCredentials=q.withCredentials);q.responseType&&(G.responseType=q.responseType);q.mimeType&&G.overrideMimeType(q.mimeType);q.timeoutMs>0&&(E=_.Kj.setTimeout(function(){G.onreadystatechange=function(){};
G.abort();n(new N2p(M,G))},q.timeoutMs));
try{G.send(null)}catch(Y){G.onreadystatechange=function(){},_.Kj.clearTimeout(E),n(new U6("Error sending XHR: "+Y.message,M,G))}})).thenCatch(function(K){K instanceof _.l_&&G.abort();
throw K;})},U6=function(M,q,G){_.qD.call(this,M+", url="+q);
this.url=q;this.xhr=G};
_.TO(U6,_.qD);U6.prototype.name="XhrError";var EUp=function(M,q,G){U6.call(this,"Request Failed, status="+M,q,G);this.status=M};
_.TO(EUp,U6);EUp.prototype.name="XhrHttpError";var N2p=function(M,q){U6.call(this,"Request timed out",M,q)};
_.TO(N2p,U6);N2p.prototype.name="XhrTimeoutError";zO=zO||{};var xr=function(){_.uI.call(this)};
_.TO(xr,_.uI);xr.prototype.initialize=function(){};var kuS=function(M,q){this.fn_=M;this.handler_=q};
kuS.prototype.execute=function(M){this.fn_&&(this.fn_.call(this.handler_||null,M),this.fn_=this.handler_=null)};
kuS.prototype.abort=function(){this.handler_=this.fn_=null};var zK=function(M,q){_.uI.call(this);this.deps_=M;this.JSC$11045_id_=q;this.onloadCallbacks_=[];this.onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.TO(zK,_.uI);zK.prototype.moduleConstructor_=xr;zK.prototype.module_=null;zK.prototype.getId=function(){return this.JSC$11045_id_};
zK.prototype.registerCallback=function(M,q){return mH(this.onloadCallbacks_,M,q)};
var pEI=function(M,q){mH(M.onErrorCallbacks_,q)},mH=function(M,q,G){q=new kuS(q,G);
M.push(q);return q};
zK.prototype.isLoaded=function(){return!!this.module_};
zK.prototype.onLoad=function(M){var q=new this.moduleConstructor_;q.initialize(M());this.module_=q;q=(q=yKI(this.earlyOnloadCallbacks_,M()))||yKI(this.onloadCallbacks_,M());q||(this.onErrorCallbacks_.length=0);return q};
zK.prototype.onError=function(M){(M=yKI(this.onErrorCallbacks_,M))&&nj(Error("rd`"+M));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var yKI=function(M,q){for(var G=[],K=0;K<M.length;K++)try{M[K].execute(q)}catch(n){nj(n),G.push(n)}M.length=0;return G.length?G:null};
zK.prototype.disposeInternal=function(){zK.superClass_.disposeInternal.call(this);_.ka(this.module_)};var LaS,h3B,drf,vU8,WaM,AK9,axB,wEf,CaJ;
_.t5=function(M,q,G,K,n){K=K===void 0?!1:K;n=n===void 0?!1:n;var E=E===void 0?!0:E;this.scsReferenceUrl_=zow(_.Iv(M).toString(),E);this.cssRowKey_=q;this.combinedSignature_=G;this.useNegativeLoading_=K;this.requestedModuleMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(M=Og(this.scsReferenceUrl_,"excm"))?M.split(","):[];this.shouldScanForCss_=n;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=document.head||document.documentElement;
this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;mlD();_.SD(this,OIB(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
LaS=function(M,q){if(q.href||q.getAttribute("data-href"))if(q=q.href||q.getAttribute("data-href"),ZFj(q)&&!zow(q).urlPrefix_.endsWith("_/js/")){q=OIB(zow(q));q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=G.value,M.loadedCssModuleList_.includes(G)||M.loadedCssModuleList_.push(G)}};
_.t5.prototype.JSC$11050_loadModules=function(M,q,G){var K=G===void 0?{}:G;q=K.extraEdges;G=K.onError;var n=K.onSuccess;K=K.forceReload;if(!M)throw Error("sd");if(this.shouldScanForCss_){for(var E=_.k(document.getElementsByTagName("style")),p=E.next();!p.done;p=E.next())LaS(this,p.value);E=_.k(document.getElementsByTagName("link"));for(p=E.next();!p.done;p=E.next())LaS(this,p.value)}YpM(this,WaM(this,M),q,G,n,K)};
var YpM=function(M,q,G,K,n,E){K=K===void 0?function(){}:K;
n=n===void 0?function(){}:n;
E=E===void 0?!1:E;AK9(M,q,function(p,y,Y){Y=Y===void 0?y:Y;M.enableFallbackFetch&&E?M.loadWithFetch(p,y,K,n,Y):M.load(p,y,K,n,Y,G)},G)||K(-1)};
_.t5.prototype.loadWithFetch=function(){_.L(function(){throw Error("td");})};
_.t5.prototype.maybeSetAdditionalFields=function(){};
h3B=function(M,q,G){if(M.useNegativeLoading_){var K=M.scsReferenceUrl_;M={cssRowKey:M.cssRowKey_,combinedSignature:M.combinedSignature_,extraEdges:G,requestedModuleIds:drf(M),requestedCssModuleIds:vU8(M)};var n=M===void 0?{}:M;M=n.requestedModuleIds===void 0?[]:n.requestedModuleIds;G=n.requestedCssModuleIds===void 0?[]:n.requestedCssModuleIds;var E=n.cssRowKey===void 0?void 0:n.cssRowKey;var p=n.combinedSignature===void 0?void 0:n.combinedSignature;var y=n.extraEdges===void 0?void 0:n.extraEdges;
n=n.callback===void 0?void 0:n.callback;K=Ml2(K);wb(K,"d","1");h0v(K,M);tU2(K,G);q=Guv(K,q,{cssRowKey:E,combinedSignature:p,extraEdges:y,callback:n})}else K=M.scsReferenceUrl_,M={cssRowKey:M.cssRowKey_,combinedSignature:M.combinedSignature_,requestedModuleIds:drf(M),requestedCssModuleIds:vU8(M)},y=M===void 0?{}:M,M=y.requestedCssModuleIds===void 0?[]:y.requestedCssModuleIds,G=y.cssRowKey===void 0?void 0:y.cssRowKey,E=y.combinedSignature===void 0?void 0:y.combinedSignature,p=y.extraEdges===void 0?
void 0:y.extraEdges,y=y.callback===void 0?void 0:y.callback,K=Ml2(K),tU2(K,M),q=Guv(K,q,{cssRowKey:G,combinedSignature:E,extraEdges:p,callback:y});return q};
_.SD=function(M,q){for(var G=!1,K=[],n=0;n<q.length;++n){var E=q[n];M.requestedModuleMap_[E]||(M.requestedModuleMap_[E]=!0,M.requestedModuleList_.push(E),G=!0,K.push(E))}G&&(M.requestedModuleListSorted_=!1)};
_.TK=function(M,q){for(var G=[],K=0;K<q.length;++K){var n=q[K];M.requestedModuleMap_[n]&&(delete M.requestedModuleMap_[n],_.my(M.requestedModuleList_,n),G.push(n))}};
_.t5.prototype.load=function(M,q,G,K,n){n=n===void 0?q:n;_.Iv(M);var E=this.useCors_,p=this.corsMode_,y=this.fetchPriority,Y=_.iI("SCRIPT");_.Ei(Y,M);E&&(Y.crossOrigin=p);Y.async=!1;y&&Y.setAttribute("fetchpriority",y);_.SD(this,q);_.tl8(this,M,Y,q,G,K,n)};
_.tl8=function(M,q,G,K,n,E,p){p=p===void 0?K:p;M.lastScript_=G;M.insertPos.insertBefore(G,M.insertPos.firstChild);_.O_9(G,K,function(){G.parentElement.removeChild(G);M.lastScript_==G&&(M.lastScript_=null);E()},function(y){G.parentElement.removeChild(G);
M.lastScript_==G&&(M.lastScript_=null);_.TK(M,y);M.pendingModuleGraphUpdate_?M.pendingModuleGraphUpdate_.then(function(){n(-1,q)}):n(-1,q)},p)};
_.O_9=function(M,q,G,K,n){n=n===void 0?q:n;var E=q.length,p=function(){E=0;M.onload=null;M.onerror=null;y=function(){}},y=function(){p();
var A=n.filter(function(v){return!zi().getModuleInfo(v).isLoaded()});
A.length!==0?K(A,"Response was successful but was missing module(s) "+A+"."):G()},Y=function(){E--;
E==0&&y()};
q.forEach(function(A){A=zi().getModuleInfo(A);A.isLoaded()?Y():(mH(A.earlyOnloadCallbacks_,Y),pEI(A,Y))});
M.onload=function(){return y()};
M.onerror=function(){p();K(q)}};
drf=function(M){M.requestedModuleListSorted_||(M.requestedModuleListSorted_=!0,M.requestedModuleList_.sort());return M.requestedModuleList_};
vU8=function(M){M=M.loadedCssModuleList_;M.sort();return M};
WaM=function(M,q){return q.filter(function(G){return!M.requestedModuleMap_[G]})};
AK9=function(M,q,G,K){if(M.pendingModuleGraphUpdate_)return M.pendingModuleGraphUpdate_.then(function(){AK9(M,q,G,K)}),!0;
if(!M.useNegativeLoading_){var n=[],E=Object.assign({},M.requestedModuleMap_);wEf(M,q,function(v){n.push(v.getId())},K,function(v){return!v.isLoaded()},E);
q=n}for(E=0;E<q.length;){for(var p=q.length-E,y=E==0?q:q.slice(E,q.length),Y=h3B(M,y,K),A=_.Iv(Y).toString();A.length>M.urlMaxLength;)if(p>1)p-=Math.ceil((A.length-M.urlMaxLength)/6),p=Math.max(p,1),y=q.slice(E,E+p),Y=h3B(M,y,K),A=_.Iv(Y).toString();else return M.useNegativeLoading_?(M.useNegativeLoading_=!1,M.pendingModuleGraphUpdate_=CaJ(M).then(function(v){axB(M,v,K)}),AK9(M,q.slice(E),G,K)):!1;
E+=p;M.useNegativeLoading_?G(Y,y):G(Y,y,E===q.length?q:[])}return!0};
axB=function(M,q,G){zi().setAllModuleInfoString((q||{}).moduleGraph);wEf(M,drf(M),function(K){_.SD(M,[K.getId()])},G);
M.pendingModuleGraphUpdate_=null};
wEf=function(M,q,G,K,n,E){E=E===void 0?{}:E;var p=zi();q=_.k(q);for(var y=q.next();!y.done;y=q.next()){y=y.value;var Y=p.getModuleInfo(y);if(!(E[y]||n&&!n(Y))){E[y]=!0;var A=Y.deps_||[];if(K){var v=[];K[y]&&(v=Object.keys(K[y]));A=A.concat(v)}wEf(M,A,G,K,n,E);G(Y)}}};
CaJ=function(M){M=M.scsReferenceUrl_.clone();CRd(M);wb(M,"dg",null);wb(M,"md","1");return nUM(M.toString())};var sUy=new Uint8Array(123);var oUB=[];var lxB=function(){this.JSC$10058_loader_=null};
_.N=lxB.prototype;_.N.setBatchModeEnabled=function(){};
_.N.setAllModuleInfoString=function(){};
_.N.addExtraEdge=function(){throw Error("ud");};
_.N.removeExtraEdge=function(){throw Error("vd");};
_.N.getModuleContext=function(){return null};
_.N.isActive=function(){return!1};
_.N.isUserActive=function(){return!1};
_.N.registerInitializationCallback=function(){};
_.N.registerCallback=function(){};var rN=function(M,q,G,K,n){var E=Error.call(this);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.name="ModuleLoadFailure";this.type=M;this.status=q;this.requestedModuleIds=G;this.url=K;this.cause=n;this.message=this.toString()};
_.l(rN,Error);rN.prototype.toString=function(){return XEl(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var XEl=function(M){switch(M.type){case rN.Type.UNAUTHORIZED:return"Unauthorized";case rN.Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case rN.Type.TIMEOUT:return"Timed out";case rN.Type.OLD_CODE_GONE:return"Out of date module id";case rN.Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+M.type}};
zO.ModuleLoadFailure=rN;zO.ModuleLoadFailure.Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var jD=function(){this.moduleIds_=this.JSC$10058_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$11063_extraEdges_={};this.JSC$11063_callbackMap_={};this.JSC$11063_currentlyLoadingModule_=this.baseModuleInfo_=new zK([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new r6;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.TO(jD,lxB);var PaS=function(M,q){_.qD.call(this,"Error loading "+M+": "+q)};
_.TO(PaS,_.qD);jD.prototype.setBatchModeEnabled=function(M){this.batchModeEnabled_=M};
jD.prototype.setAllModuleInfoString=function(M,q){if(!(this instanceof jD))this.setAllModuleInfoString(M,q);else if(typeof M==="string"){if(M.startsWith("d$")){M=M.substring(2);for(var G=[],K=0,n=M.indexOf("/"),E=0,p=!1,y=0;;){var Y=p?M.substring(E):M.substring(E,n);if(Y.length===0)K++,E="sy"+K.toString(36),Y=[];else{var A=Y.indexOf(":");if(A<0)E=Y,Y=[];else if(A===Y.length-1)E=Y.substring(0,A),Y=Array(G[y-1]);else{E=Y.substring(0,A);Y=Y.substring(A+1).split(",");A=y;for(var v=0;v<Y.length;v++)A-=
Y[v].length===0?1:Number(Y[v]),Y[v]=G[A]}A=0;if(E.length===0)A=1;else if(E.charAt(0)==="+"||E.charAt(0)==="-")A=Number(E);A!==0&&(K+=A,E="sy"+K.toString(36))}G.push(E);i_l(this,E,Y);if(p)break;E=n+1;n=M.indexOf("/",E);n===-1&&(p=!0);y++}this.moduleIds_=G}else if(M.startsWith("p$"))cKf(this,M);else{M=M.split("/");G=[];for(K=0;K<M.length;K++){y=M[K].split(":");n=y[0];p=[];if(y[1])for(p=y[1].split(","),y=0;y<p.length;y++)p[y]=G[parseInt(p[y],36)];G.push(n);i_l(this,n,p)}this.moduleIds_=G}q&&q.length?
(_.r$(this.loadingModuleIds_,q),this.lastInitialModuleId_=_.uH(q)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$11063_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$11063_currentlyLoadingModule_=null,(q=this.baseModuleInfo_.onLoad((0,_.Ju)(this.getModuleContext,this)))&&q.length&&gU9(this,new zO.ModuleLoadFailure(zO.ModuleLoadFailure.Type.INIT_ERROR,void 0,void 0,void 0,q[0])),VM(this))}};
var cKf=function(M,q){var G=q.substring(2);for(q=0;q<64;q++)sUy["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(q)]=q;var K={buf:G,pos:0};h5(K);var n=h5(K),E=h5(K)+1;q=Array(n);var p=Array(n),y=Array(n);E=Array(E);var Y=0,A=0,v=K.pos,h=K.buf.indexOf("|",K.pos);K.pos=h+1;for(h=0;h<n;h++){var t=h5(K),O=t&2,a=t&1;t>>>=2;a?(Y+=t>>>1^-(t&1),t="sy"+Y.toString(36)):(a=v,v+=t,t=G.substring(a,v));q[h]=t;O&&(E[A++]=t)}E[A]="";K.pos++;A=n&-2;G=n&1;for(Y=0;Y<A;Y+=2)v=Mbw(K),y[Y]=
v&7,y[Y+1]=v>>>3&7;G&&(G=Mbw(K),y[A]=G&7);K.pos++;for(A=0;A<n;A++)y[A]===7&&(y[A]=h5(K));K.pos++;for(G=A=0;G<n;G++){Y=y[G];v=Y===0?oUB:Array(Y);p[G]=v;h=A;for(O=0;O<Y;O++)h-=h5(K),v[O]=E[h];E[A]===q[G]&&A++}for(K=0;K<q.length;K++)i_l(M,q[K],p[K]);M.moduleIds_=q};
_.N=jD.prototype;_.N.getModuleInfo=function(M){return this.moduleInfoMap[M]};
_.N.addExtraEdge=function(M,q){var G=this.getModuleInfo(M);G&&G.isLoaded()?this.load(q):(this.JSC$11063_extraEdges_[M]||(this.JSC$11063_extraEdges_[M]={}),this.JSC$11063_extraEdges_[M][q]=!0)};
_.N.removeExtraEdge=function(M,q){if(this.JSC$11063_extraEdges_[M]){delete this.JSC$11063_extraEdges_[M][q];for(var G in this.JSC$11063_extraEdges_[M])return;delete this.JSC$11063_extraEdges_[M]}};
_.N.isActive=function(){return this.loadingModuleIds_.length>0};
_.N.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var VM=function(M){var q=M.lastActive_,G=M.isActive();G!=q&&(M.executeCallbacks_(G?"active":"idle"),M.lastActive_=G);q=M.isUserActive();q!=M.userLastActive_&&(M.executeCallbacks_(q?"userActive":"userIdle"),M.userLastActive_=q)},i_l=function(M,q,G){M.moduleInfoMap[q]?(M=M.moduleInfoMap[q].deps_,M!=G&&M.splice.apply(M,[0,
M.length].concat(_.Ui(G)))):M.moduleInfoMap[q]=new zK(G,q)},Qr2=function(M,q,G){var K=[];
uiY(q,K);q=[];for(var n={},E=0;E<K.length;E++){var p=K[E],y=M.getModuleInfo(p);if(!y)throw Error("wd`"+p);var Y=new r6;n[p]=Y;y.isLoaded()?Y.callback(null):(B2B(M,p,y,!!G,Y),M.isModuleLoading(p)||q.push(p))}q.length>0&&(M.loadingModuleIds_.length===0?M.loadModules_(q):(M.requestedModuleIdsQueue_.push(q),VM(M)));return n},B2B=function(M,q,G,K,n){G.registerCallback(n.callback,n);
pEI(G,function(E){n.errback(new PaS(q,E))});
M.isModuleLoading(q)?K&&(Ix$(M,q),VM(M)):K&&Ix$(M,q)};
jD.prototype.loadModules_=function(M,q,G){var K=this;q||(this.consecutiveFailures_=0);var n=Drv(this,M);this.loadingModuleIds_=n;this.requestedLoadingModuleIds_=this.batchModeEnabled_?M:_.Sw(n);VM(this);if(n.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,n);M=this.JSC$10058_loader_;if(!M)throw Error("xd");if(Object.keys(this.JSC$11063_extraEdges_).length>0&&!M.supportsExtraEdges)throw Error("yd");G=(0,_.Ju)(M.JSC$11050_loadModules,M,_.Sw(n),this.moduleInfoMap,{extraEdges:this.JSC$11063_extraEdges_,
forceReload:!!G,onError:function(E,p){var y=K.requestedLoadingModuleIds_;E=E!=null?E:void 0;K.consecutiveFailures_++;var Y=_.Sw(n);K.requestedLoadingModuleIds_=y;n.forEach(_.n7(_.my,K.requestedModuleIds_),K);E==401?(gU9(K,new zO.ModuleLoadFailure(zO.ModuleLoadFailure.Type.UNAUTHORIZED,E)),K.requestedModuleIdsQueue_.length=0):E==410?(uwf(K,new zO.ModuleLoadFailure(zO.ModuleLoadFailure.Type.OLD_CODE_GONE,E)),JKB(K)):K.consecutiveFailures_>=3?(uwf(K,new zO.ModuleLoadFailure(zO.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,
E,Y,p)),JKB(K)):K.loadModules_(K.requestedLoadingModuleIds_,!0,E==8001||!1)},
onTimeout:(0,_.Ju)(this.handleLoadTimeout_,this)});(M=Math.pow(this.consecutiveFailures_,2)*5E3)?_.Kj.setTimeout(G,M):G()}};
var Drv=function(M,q){q=q.filter(function(n){return M.moduleInfoMap[n].isLoaded()?(_.Kj.setTimeout(function(){return Error("zd`"+n)},0),!1):!0});
for(var G=[],K=0;K<q.length;K++)G=G.concat(Z_I(M,q[K]));uiY(G);return!M.batchModeEnabled_&&G.length>1?(q=G.shift(),M.requestedModuleIdsQueue_=G.map(function(n){return[n]}).concat(M.requestedModuleIdsQueue_),[q]):G},Z_I=function(M,q){var G=_.xP.createSet(M.requestedModuleIds_),K=[];
G[q]||K.push(q);q=[q];for(var n=0;n<q.length;n++)for(var E=M.getModuleInfo(q[n]).deps_,p=E.length-1;p>=0;p--){var y=E[p];M.getModuleInfo(y).isLoaded()||G[y]||(K.push(y),q.push(y))}K.reverse();uiY(K);return K};
jD.prototype.JSC$11058_setLoaded=function(){if(this.JSC$11063_currentlyLoadingModule_){var M=this.JSC$11063_currentlyLoadingModule_.getId(),q=[];if(this.JSC$11063_extraEdges_[M]){for(var G=_.k(Object.keys(this.JSC$11063_extraEdges_[M])),K=G.next();!K.done;K=G.next()){K=K.value;var n=this.getModuleInfo(K);n&&!n.isLoaded()&&(this.removeExtraEdge(M,K),q.push(K))}this.loadMultiple(q)}this.isDisposed()||((q=this.moduleInfoMap[M].onLoad((0,_.Ju)(this.getModuleContext,this)))&&q.length&&gU9(this,new zO.ModuleLoadFailure(zO.ModuleLoadFailure.Type.INIT_ERROR,
void 0,void 0,void 0,q[0])),_.my(this.userInitiatedLoadingModuleIds_,M),_.my(this.loadingModuleIds_,M),this.loadingModuleIds_.length===0&&JKB(this),this.lastInitialModuleId_&&M==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),VM(this),this.JSC$11063_currentlyLoadingModule_=null)}};
jD.prototype.isModuleLoading=function(M){if(_.zF(this.loadingModuleIds_,M))return!0;for(var q=0;q<this.requestedModuleIdsQueue_.length;q++)if(_.zF(this.requestedModuleIdsQueue_[q],M))return!0;return!1};
jD.prototype.load=function(M,q){return Qr2(this,[M],q)[M]};
jD.prototype.loadMultiple=function(M){return Qr2(this,M)};
var Ix$=function(M,q){_.zF(M.userInitiatedLoadingModuleIds_,q)||M.userInitiatedLoadingModuleIds_.push(q)};
jD.prototype.beforeLoadModuleCode=function(M){var q=this;this.JSC$11063_currentlyLoadingModule_&&this.JSC$11063_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$11058_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[M]&&b_I(this,this.moduleInfoMap[M].deps_||[],function(G){G.module_=new xr;_.my(q.loadingModuleIds_,G.getId())},function(G){return!G.isLoaded()});
this.JSC$11063_currentlyLoadingModule_=this.getModuleInfo(M)};
jD.prototype.registerInitializationCallback=function(M){this.JSC$11063_currentlyLoadingModule_||(this.moduleInfoMap.synthetic_module_overhead=new zK([],"synthetic_module_overhead"),this.JSC$11063_currentlyLoadingModule_=this.moduleInfoMap.synthetic_module_overhead);mH(this.JSC$11063_currentlyLoadingModule_.earlyOnloadCallbacks_,M)};
jD.prototype.handleLoadTimeout_=function(){uwf(this,new zO.ModuleLoadFailure(zO.ModuleLoadFailure.Type.TIMEOUT));JKB(this)};
var uwf=function(M,q){M.requestedLoadingModuleIds_.length>1?M.requestedModuleIdsQueue_=M.requestedLoadingModuleIds_.map(function(G){return[G]}).concat(M.requestedModuleIdsQueue_):gU9(M,q)},gU9=function(M,q){var G=M.requestedLoadingModuleIds_;
M.loadingModuleIds_.length=0;for(var K=[],n=0;n<M.requestedModuleIdsQueue_.length;n++){var E=M.requestedModuleIdsQueue_[n].filter(function(Y){var A=Z_I(this,Y);return nA(G,function(v){return _.zF(A,v)})},M);
_.r$(K,E)}for(n=0;n<G.length;n++)_.B$H(K,G[n]);for(n=0;n<K.length;n++){for(E=0;E<M.requestedModuleIdsQueue_.length;E++)_.my(M.requestedModuleIdsQueue_[E],K[n]);_.my(M.userInitiatedLoadingModuleIds_,K[n])}if(n=M.JSC$11063_callbackMap_.error)for(E=0;E<n.length;E++)for(var p=n[E],y=0;y<K.length;y++)p("error",K[y],q);for(K=0;K<G.length;K++)if(M.moduleInfoMap[G[K]])M.moduleInfoMap[G[K]].onError(q);M.requestedLoadingModuleIds_.length=0;VM(M)},JKB=function(M){for(;M.requestedModuleIdsQueue_.length;){var q=
M.requestedModuleIdsQueue_.shift().filter(function(G){return!this.getModuleInfo(G).isLoaded()},M);
if(q.length>0){M.loadModules_(q);return}}VM(M)};
jD.prototype.registerCallback=function(M,q){Array.isArray(M)||(M=[M]);for(var G=0;G<M.length;G++){var K=M[G],n=q,E=this.JSC$11063_callbackMap_;E[K]||(E[K]=[]);E[K].push(n)}};
jD.prototype.executeCallbacks_=function(M){for(var q=this.JSC$11063_callbackMap_[M],G=0;q&&G<q.length;G++)q[G](M)};
var b_I=function(M,q,G,K,n){K=K===void 0?function(){return!0}:K;
n=n===void 0?{}:n;q=_.k(q);for(var E=q.next();!E.done;E=q.next()){E=E.value;var p=M.getModuleInfo(E);!n[E]&&K(p)&&(n[E]=!0,b_I(M,p.deps_||[],G,K,n),G(p))}};
jD.prototype.dispose=function(){_.yq(_.xP.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$11063_callbackMap_={};this.isDisposed_=!0};
jD.prototype.isDisposed=function(){return this.isDisposed_};
_.xa=function(){return new jD};var UrM=[5E3,2E4],gMH=function(){this.JSC$10058_loader_=null;this.JSC$11071_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$11071_queue_=[];this.JSC$11071_extraEdges_=Object.create(null);this.JSC$11071_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.l(gMH,lxB);_.N=gMH.prototype;_.N.setAllModuleInfoString=function(){this.JSC$11071_currentlyLoadingModule_&&this.JSC$11071_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$11058_setLoaded()};
_.N.getModuleInfo=function(M){var q=this.JSC$11071_moduleInfoMap_[M];q||(q=new zK([],M),this.JSC$11071_moduleInfoMap_[M]=q);return q};
_.N.addExtraEdge=function(M,q){this.getModuleInfo(M).isLoaded()?this.load(q):(this.JSC$11071_extraEdges_[M]||(this.JSC$11071_extraEdges_[M]={}),this.JSC$11071_extraEdges_[M][q]=!0)};
_.N.removeExtraEdge=function(M,q){if(this.JSC$11071_extraEdges_[M]){delete this.JSC$11071_extraEdges_[M][q];for(var G in this.JSC$11071_extraEdges_[M])return;delete this.JSC$11071_extraEdges_[M]}};
_.N.isModuleLoading=function(M){return!!this.loadingModules_[M]};
_.N.load=function(M){xrP(this,[M]);return z3P(this,M)};
_.N.loadMultiple=function(M){var q=this,G=Object.create(null),K=[];M.forEach(function(n){G[n]||(G[n]=z3P(q,n),K.push(n))});
xrP(this,K);return G};
_.N.beforeLoadModuleCode=function(M){var q;((q=this.JSC$11071_currentlyLoadingModule_)==null?void 0:q.getId())==="synthetic_module_overhead"&&this.JSC$11058_setLoaded();var G,K;mrB(this,(K=(G=this.JSC$11071_moduleInfoMap_[M])==null?void 0:G.deps_)!=null?K:[],function(n){n.module_=new xr},function(n){return!n.isLoaded()});
this.JSC$11071_currentlyLoadingModule_=this.getModuleInfo(M)};
_.N.JSC$11058_setLoaded=function(){if(this.JSC$11071_currentlyLoadingModule_){var M=this.JSC$11071_currentlyLoadingModule_.getId(),q=[];if(this.JSC$11071_extraEdges_[M]){for(var G=_.k(Object.keys(this.JSC$11071_extraEdges_[M])),K=G.next();!K.done;K=G.next())K=K.value,this.getModuleInfo(K).isLoaded()||(this.removeExtraEdge(M,K),q.push(K));this.loadMultiple(q)}this.JSC$11071_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$11071_currentlyLoadingModule_=null;(!this.isModuleLoading(M)&&/^sy[0-9a-z]{0,4}$/.test(M)||M==="synthetic_module_overhead")&&delete this.JSC$11071_moduleInfoMap_[M];this.unsetModulesAsLoading(M)}};
_.N.registerInitializationCallback=function(M){this.JSC$11071_currentlyLoadingModule_||(this.JSC$11071_moduleInfoMap_.synthetic_module_overhead=new zK([],"synthetic_module_overhead"),this.JSC$11071_currentlyLoadingModule_=this.JSC$11071_moduleInfoMap_.synthetic_module_overhead);mH(this.JSC$11071_currentlyLoadingModule_.earlyOnloadCallbacks_,M)};
_.N.setModulesAsLoading=function(){var M=this;_.rW.apply(0,arguments).forEach(function(q){M.loadingModules_[q]=!0})};
_.N.unsetModulesAsLoading=function(){var M=this;_.rW.apply(0,arguments).forEach(function(q){delete M.loadingModules_[q]})};
var z3P=function(M,q){return new _.X4(function(G,K){var n=M.getModuleInfo(q);n.isLoaded()?G(null):(n.registerCallback(function(){G(null)}),pEI(n,function(E){var p="Error loading "+q+": "+E;
E instanceof zO.ModuleLoadFailure&&E.url&&(p=p+", requested url: "+E.url.toString());K(Error(p))}))})},xrP=function(M,q){q=q.filter(function(G){return!M.isModuleLoading(G)&&!M.getModuleInfo(G).isLoaded()});
q.length>0&&(M.setModulesAsLoading.apply(M,_.Ui(q)),M.JSC$11071_queue_.push(q),SpB(M))},SpB=function(M){for(var q={};M.activeLoads_<Infinity&&M.JSC$11071_queue_.length>0;q={finishLoad:void 0,
ids$jscomp$37:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})q.ids$jscomp$37=M.JSC$11071_queue_.shift().filter(function(G){return!M.getModuleInfo(G).isLoaded()}),q.ids$jscomp$37.length>0&&(M.activeLoads_++,q.finishLoad=function(G){return function(){M.activeLoads_--;
SpB(M);G.finishLoad=function(){}}}(q),_.oi(q.ids$jscomp$37.map(function(G){return z3P(M,G)})).then(function(G){return function(){(0,G.finishLoad)()}}(q)),q.attempt$jscomp$6=0,q.load$jscomp$1=function(G){return function(){if(Object.keys(M.JSC$11071_extraEdges_).length>0&&!M.JSC$10058_loader_.supportsExtraEdges)throw Error("yd");
M.JSC$10058_loader_.JSC$11050_loadModules(G.ids$jscomp$37,M.JSC$11071_moduleInfoMap_,{extraEdges:M.JSC$11071_extraEdges_,onError:function(K,n){var E=UrM[G.attempt$jscomp$6++];E!==void 0?setTimeout(function(){(0,G.load$jscomp$1)()},E):(M.unsetModulesAsLoading.apply(M,_.Ui(G.ids$jscomp$37)),(0,G.finishLoad)(),G.ids$jscomp$37.forEach(function(p){p=M.getModuleInfo(p);
if(!p.isLoaded())p.onError(new zO.ModuleLoadFailure(zO.ModuleLoadFailure.Type.CONSECUTIVE_FAILURES,K,G.ids$jscomp$37,n))}))}})}}(q),(0,q.load$jscomp$1)())},mrB=function(M,q,G,K,n){K=K===void 0?function(){return!0}:K;
n=n===void 0?{}:n;q=_.k(q);for(var E=q.next();!E.done;E=q.next()){E=E.value;var p=M.getModuleInfo(E);!n[E]&&K(p)&&(n[E]=!0,mrB(M,p.deps_||[],G,K,n),G(p))}};var T29=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var nnF=Symbol("Bd");window.JSCompiler_renameProperty=function(M){return M};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var rK9=!T29||HTMLElement.es5Shimmed||_.Kj.Reflect===void 0||_.Kj.customElements===void 0||_.Kj.customElements.polyfillWrapFlushCallback||!1,jr$,za4=function(){var M=HTMLElement;if(rK9)return M;if(jr$!==void 0)return jr$;var q=_.Kj.Reflect,G=function(){return q.construct(M,[],this.constructor)};
G.prototype=M.prototype;G.prototype.constructor=G;G.es5Shimmed=!0;Object.setPrototypeOf(G,M);return jr$=G},VlJ=!1;rK9||VlJ||(VlJ=!0,_.Kj.HTMLElement=za4());/*

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 yYF=/(url\()([^)]*)(\))/g,khy=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,p3u,OQ;var $I=!window.ShadyDOM||!window.ShadyDOM.inUse,R3l=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),fx2=!window.customElements.polyfillWrapFlushCallback,Faf;if(Faf=$I&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var H_J=new CSSStyleSheet;H_J.replaceSync("");var e39=document.createElement("div");e39.attachShadow({mode:"open"});e39.shadowRoot.adoptedStyleSheets=[H_J];Faf=e39.shadowRoot.adoptedStyleSheets[0]===H_J}catch(M){Faf=!1}
var $rf=Faf,sOf=window.Polymer&&window.Polymer.rootPath||YzD(document.baseURI||window.location.href),Dy=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,whw=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,Gy=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Mof=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,eU=window.Polymer&&window.Polymer.legacyOptimizations||!1,q3=window.Polymer&&window.Polymer.legacyWarnings||!1,qTp=window.Polymer&&window.Polymer.syncInitialRender||
!1,J5=window.Polymer&&window.Polymer.legacyUndefined||!1,GQl=window.Polymer&&window.Polymer.orderedComputed||!1,RA=window.Polymer&&window.Polymer.removeNestedTemplates||!1,f$=window.Polymer&&window.Polymer.fastDomIf||!1,F6=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,KXv=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,nAS=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var HB={},EAI={},bR=function(){return HTMLElement.apply(this,arguments)||this};
_.l(bR,HTMLElement);bR.import=function(M,q){return M?(M=HB[M]||EAI[M.toLowerCase()])&&q?M.querySelector(q):M:null};
bR.prototype.attributeChangedCallback=function(M,q,G){q!==G&&this.register()};
bR.prototype.register=function(M){if(M=M||this.id){if(Gy&&(HB[M]||EAI[M.toLowerCase()])!==void 0)throw HB[M]=EAI[M.toLowerCase()]=null,Error("Cd`"+M);this.id=M;HB[M]=EAI[M.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Yd.Object.defineProperties(bR.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var M=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;M=_.w_(this.getAttribute("assetpath")||"",M.baseURI);this.__assetpath=YzD(M)}return this.__assetpath}}});
_.Yd.Object.defineProperties(bR,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
bR["import"]=bR.import;bR.prototype.modules=HB;customElements.define("dom-module",bR);var N42=0,AYH=0,CI=[],kQM=0,WG4=!1,p4d=document.createTextNode(""),y_9,Fn;(new window.MutationObserver(dQy)).observe(p4d,{characterData:!0});_.eD={after:function(M){return{run:function(q){return window.setTimeout(q,M)},
cancel:function(q){window.clearTimeout(q)}}},
run:function(M,q){return window.setTimeout(M,q)},
cancel:function(M){window.clearTimeout(M)}};
_.Wb={run:function(M){return window.requestAnimationFrame(M)},
cancel:function(M){window.cancelAnimationFrame(M)}};
y_9={run:function(M){return window.requestIdleCallback?window.requestIdleCallback(M):window.setTimeout(M,16)},
cancel:function(M){window.cancelIdleCallback?window.cancelIdleCallback(M):window.clearTimeout(M)}};
Fn={run:function(M){WG4||(WG4=!0,p4d.textContent=kQM++);CI.push(M);return N42++},
cancel:function(M){var q=M-AYH;if(q>=0){if(!CI[q])throw Error("Dd`"+M);CI[q]=null}}};var LX9=0,$r=function(M){var q=M.__mixinApplications;q||(q=new WeakMap,M.__mixinApplications=q);var G=LX9++;return function(K){var n=K.__mixinSet;if(n&&n[G])return K;var E=q,p=E.get(K);p||(p=M(K),E.set(K,p),K=Object.create(p.__mixinSet||n||null),K[G]=!0,p.__mixinSet=K);return p}};_.Ik=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(M){return ShadyDOM.patch(M)}:function(M){return M};var YTJ=$r(function(M){var q=function(){var G=M.call(this)||this;G.__dataEnabled=!1;G.__dataReady=!1;G.__dataInvalid=!1;G.__data={};G.__dataPending=null;G.__dataOld=null;G.__dataInstanceProps=null;G.__dataCounter=0;G.__serializing=!1;G._initializeProperties();return G};
_.l(q,M);q.createProperties=function(G){var K=this.prototype,n;for(n in G)n in K||K._createPropertyAccessor(n)};
q.attributeNameForProperty=function(G){return G.toLowerCase()};
q.typeForProperty=function(){};
q.prototype._createPropertyAccessor=function(G,K){this._addPropertyToAttributeMap(G);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[G]||(this.__dataHasAccessor[G]=!0,this._definePropertyAccessor(G,K))};
q.prototype._addPropertyToAttributeMap=function(G){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var K=this.__dataAttributes[G];K||(K=this.constructor.attributeNameForProperty(G),this.__dataAttributes[K]=G);return K};
q.prototype._definePropertyAccessor=function(G,K){Object.defineProperty(this,G,{get:function(){return this.__data[G]},
set:K?function(){}:function(n){this._setPendingProperty(G,n,!0)&&this._invalidateProperties()}})};
q.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
q.prototype._initializeProperties=function(){for(var G in this.__dataHasAccessor)this.hasOwnProperty(G)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[G]=this[G],delete this[G])};
q.prototype._initializeInstanceProperties=function(G){Object.assign(this,G)};
q.prototype._setProperty=function(G,K){this._setPendingProperty(G,K)&&this._invalidateProperties()};
q.prototype._getProperty=function(G){return this.__data[G]};
q.prototype._setPendingProperty=function(G,K){var n=this.__data[G],E=this._shouldPropertyChange(G,K,n);E&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||G in this.__dataOld||(this.__dataOld[G]=n),this.__data[G]=K,this.__dataPending[G]=K);return E};
q.prototype._isPropertyPending=function(G){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(G))};
q.prototype._invalidateProperties=function(){var G=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Fn.run(function(){G.__dataInvalid&&(G.__dataInvalid=!1,G._flushProperties())}))};
q.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
q.prototype._flushProperties=function(){this.__dataCounter++;var G=this.__data,K=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(G,K,n)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(G,K,n));this.__dataCounter--};
q.prototype._shouldPropertiesChange=function(G,K){return!!K};
q.prototype._propertiesChanged=function(){};
q.prototype._shouldPropertyChange=function(G,K,n){return n!==K&&(n===n||K===K)};
q.prototype.attributeChangedCallback=function(G,K,n,E){K!==n&&this._attributeToProperty(G,n);M.prototype.attributeChangedCallback&&M.prototype.attributeChangedCallback.call(this,G,K,n,E)};
q.prototype._attributeToProperty=function(G,K,n){if(!this.__serializing){var E=this.__dataAttributes;G=E&&E[G]||G;this[G]=this._deserializeValue(K,n||this.constructor.typeForProperty(G))}};
q.prototype._propertyToAttribute=function(G,K,n){this.__serializing=!0;n=arguments.length<3?this[G]:n;this._valueToNodeAttribute(this,n,K||this.constructor.attributeNameForProperty(G));this.__serializing=!1};
q.prototype._valueToNodeAttribute=function(G,K,n){K=this._serializeValue(K);if(n==="class"||n==="name"||n==="slot")G=(0,_.Ik)(G);K===void 0?G.removeAttribute(n):G.setAttribute(n,K===""&&window.trustedTypes?window.trustedTypes.emptyScript:K)};
q.prototype._serializeValue=function(G){switch(typeof G){case "boolean":return G?"":void 0;default:return G!=null?G.toString():void 0}};
q.prototype._deserializeValue=function(G,K){switch(K){case Boolean:return G!==null;case Number:return Number(G);default:return G}};
return q});var WX2=0,vnu=[];var A_9=$r(function(M){function q(E){E=Object.getPrototypeOf(E);return E.prototype instanceof n?E:null}
function G(E){if(!E.hasOwnProperty("__ownProperties")){var p=null;if(E.hasOwnProperty("properties")){var y=E.properties;if(y){p={};for(var Y in y){var A=y[Y];p[Y]=typeof A==="function"?{type:A}:A}}}E.__ownProperties=p}return E.__ownProperties}
var K=YTJ(M),n=function(){return K.apply(this,arguments)||this};
_.l(n,K);n.finalize=function(){if(!this.hasOwnProperty("__finalized")){var E=q(this);E&&E.finalize();this.__finalized=!0;this._finalizeClass()}};
n._finalizeClass=function(){var E=G(this);E&&this.createProperties(E)};
n.typeForProperty=function(E){return(E=this._properties[E])&&E.type};
n.prototype._initializeProperties=function(){WX2++;this.constructor.finalize();K.prototype._initializeProperties.call(this)};
n.prototype.connectedCallback=function(){K.prototype.connectedCallback&&K.prototype.connectedCallback.call(this);this._enableProperties()};
n.prototype.disconnectedCallback=function(){K.prototype.disconnectedCallback&&K.prototype.disconnectedCallback.call(this)};
_.Yd.Object.defineProperties(n,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var E=this;if(!this.hasOwnProperty("__observedAttributes")){hYy(this.prototype);var p=this._properties;this.__observedAttributes=p?Object.keys(p).map(function(y){return E.prototype._addPropertyToAttributeMap(y)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var E=q(this);this.__properties=Object.assign({},E&&E._properties,G(this))}return this.__properties}}});
return n});var tby={},O5j=/-[a-z]/g,w3D=/([A-Z])/g;for(var dsB={},vAB=HTMLElement.prototype;vAB;){for(var hUx=Object.getOwnPropertyNames(vAB),tov=0;tov<hUx.length;tov++)dsB[hUx[tov]]=!0;vAB=Object.getPrototypeOf(vAB)}var OTl=window.trustedTypes?function(M){return trustedTypes.isHTML(M)||trustedTypes.isScript(M)||trustedTypes.isScriptURL(M)}:function(){return!1},w49=$r(function(M){var q=YTJ(M);
M=function(){return q.apply(this,arguments)||this};
_.l(M,q);M.createPropertiesForAttributes=function(){for(var G=this.observedAttributes,K=0;K<G.length;K++)this.prototype._createPropertyAccessor(ak(G[K]))};
M.attributeNameForProperty=function(G){return ok(G)};
M.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);q.prototype._initializeProperties.call(this)};
M.prototype._initializeProtoProperties=function(G){for(var K in G)this._setProperty(K,G[K])};
M.prototype._ensureAttribute=function(G,K){this.hasAttribute(G)||this._valueToNodeAttribute(this,K,G)};
M.prototype._serializeValue=function(G){switch(typeof G){case "object":if(G instanceof Date)return G.toString();if(G){if(OTl(G))return G;try{return JSON.stringify(G)}catch(K){return""}}default:return q.prototype._serializeValue.call(this,G)}};
M.prototype._deserializeValue=function(G,K){switch(K){case Object:try{var n=JSON.parse(G)}catch(E){n=G}break;case Array:try{n=JSON.parse(G)}catch(E){n=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+G)}break;case Date:n=isNaN(G)?String(G):Number(G);n=new Date(n);break;default:n=q.prototype._deserializeValue.call(this,G,K)}return n};
M.prototype._definePropertyAccessor=function(G,K){if(!dsB[G]){var n=this[G];n!==void 0&&(this.__data?this._setPendingProperty(G,n):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[G]=n))}q.prototype._definePropertyAccessor.call(this,G,K)};
M.prototype._hasAccessor=function(G){return this.__dataHasAccessor&&this.__dataHasAccessor[G]};
M.prototype._isPropertyPending=function(G){return!!(this.__dataPending&&G in this.__dataPending)};
return M});var CgP={"dom-if":!0,"dom-repeat":!0},apS=!1,oAP=!1,lp$=function(){var M=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(q){return q}});
return function(q,G,K){G=G.getAttribute(K);M&&K.startsWith("on-")?q.setAttribute(K,M.createScript(G,K)):q.setAttribute(K,G)}}(),X4v=$r(function(M){var q=function(){return M.apply(this,arguments)||this};
_.l(q,M);q._parseTemplate=function(G,K){if(!G._templateInfo){var n=G._templateInfo={};n.nodeInfoList=[];n.nestedTemplate=!!K;n.stripWhiteSpace=K&&K.stripWhiteSpace||G.hasAttribute&&G.hasAttribute("strip-whitespace");this._parseTemplateContent(G,n,{parent:null})}return G._templateInfo};
q._parseTemplateContent=function(G,K,n){return this._parseTemplateNode(G.content,K,n)};
q._parseTemplateNode=function(G,K,n){var E=!1;G.localName!="template"||G.hasAttribute("preserve-content")?G.localName==="slot"&&(K.hasInsertionPoint=!0):E=this._parseTemplateNestedTemplate(G,K,n)||E;if(!apS){apS=!0;var p=document.createElement("textarea");p.placeholder="a";oAP=p.placeholder===p.textContent}oAP&&G.localName==="textarea"&&G.placeholder&&G.placeholder===G.textContent&&(G.textContent=null);G.firstChild&&this._parseTemplateChildNodes(G,K,n);G.hasAttributes&&G.hasAttributes()&&(E=this._parseTemplateNodeAttributes(G,
K,n)||E);return E||n.noted};
q._parseTemplateChildNodes=function(G,K,n){if(G.localName!=="script"&&G.localName!=="style")for(var E=G.firstChild,p=0,y;E;E=y){if(E.localName=="template"){var Y=E.getAttribute("is");if(Y&&CgP[Y])for(y=E,y.removeAttribute("is"),E=y.ownerDocument.createElement(Y),y.parentNode.replaceChild(E,y),E.appendChild(y);y.attributes.length;)Y=y.attributes[0].name,lp$(E,y,Y),y.removeAttribute(Y)}y=E.nextSibling;if(E.nodeType===Node.TEXT_NODE){for(Y=y;Y&&Y.nodeType===Node.TEXT_NODE;)E.textContent+=Y.textContent,
y=Y.nextSibling,G.removeChild(Y),Y=y;if(K.stripWhiteSpace&&!E.textContent.trim()){G.removeChild(E);continue}}Y={parentIndex:p,parentInfo:n};this._parseTemplateNode(E,K,Y)&&(Y.infoIndex=K.nodeInfoList.push(Y)-1);E.parentNode&&p++}};
q._parseTemplateNestedTemplate=function(G,K,n){K=this._parseTemplate(G,K);(K.content=G.content.ownerDocument.createDocumentFragment()).appendChild(G.content);n.templateInfo=K;return!0};
q._parseTemplateNodeAttributes=function(G,K,n){for(var E=!1,p=Array.from(G.attributes),y=p.length-1,Y;Y=p[y];y--)E=this._parseTemplateNodeAttribute(G,K,n,Y.name,Y.value)||E;return E};
q._parseTemplateNodeAttribute=function(G,K,n,E,p){return E.slice(0,3)==="on-"?(G.removeAttribute(E),n.events=n.events||[],n.events.push({name:E.slice(3),value:p}),!0):E==="id"?(n.id=p,!0):!1};
q._contentForTemplate=function(G){var K=G._templateInfo;return K&&K.content||G.content};
q.prototype._stampTemplate=function(G,K){G&&!G.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(G);K=K||this.constructor._parseTemplate(G);var n=K.nodeInfoList;G=document.importNode(K.content||G.content,!0);G.__noInsertionPoint=!K.hasInsertionPoint;var E=G.nodeList=Array(n.length);G.$={};for(var p=0,y=n.length,Y=void 0;p<y&&(Y=n[p]);p++){var A=E[p]=C_F(G,Y);Y.id&&(G.$[Y.id]=A);var v=A,h=Y,t=K;h.templateInfo&&(v._templateInfo=h.templateInfo,v._parentTemplateInfo=
t);if(Y.events&&Y.events.length)for(v=0,h=Y.events,t=void 0;v<h.length&&(t=h[v]);v++)this._addMethodEventListenerToNode(A,t.name,t.value,this)}return G};
q.prototype._addMethodEventListenerToNode=function(G,K,n,E){n=a$D(E||G,n);this._addEventListenerToNode(G,K,n);return n};
q.prototype._addEventListenerToNode=function(G,K,n){G.addEventListener(K,n)};
q.prototype._removeEventListenerFromNode=function(G,K,n){G.removeEventListener(K,n)};
return q});var BU=0,uR=[],PgS={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},iTS=/[A-Z]/,c_v=function(M,q,G,K,n){var E=n?Xn(M):M;if(q=q[E])for(E=0;E<q.length;E++){var p=q[E];if(p.info.lastRun!==BU&&(!n||cYD(M,p.trigger))){p.info.lastRun=BU;p=p.info;for(var y=G,Y=K,A=0,v=y.length-1,h=-1;A<=v;){var t=A+v>>1,O=Y.get(y[t].methodInfo)-Y.get(p.methodInfo);if(O<0)A=t+1;else if(O>0)v=t-1;else{h=t;break}}h<
0&&(h=v+1);y.splice(h,0,p)}}},TIi=[],gAx=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"),MO=$r(function(M){var q=X4v(w49(M));
M=function(){var G=q.call(this)||this;G.__isPropertyEffectsClient=!0;return G};
_.l(M,q);M.prototype._initializeProperties=function(){q.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};
M.prototype._registerHost=function(){if(s5.length){var G=s5[s5.length-1];G._enqueueClient(this);this.__dataHost=G}};
M.prototype._initializeProtoProperties=function(G){this.__data=Object.create(G);this.__dataPending=Object.create(G);this.__dataOld={}};
M.prototype._initializeInstanceProperties=function(G){var K=this.__readOnly,n;for(n in G)K&&K[n]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=G[n])};
M.prototype._addPropertyEffect=function(G,K,n){this._createPropertyAccessor(G,K=="__readOnly");var E=i5i(this,K,!0)[G];E||(E=this[K][G]=[]);E.push(n)};
M.prototype._removePropertyEffect=function(G,K,n){G=i5i(this,K,!0)[G];n=G.indexOf(n);n>=0&&G.splice(n,1)};
M.prototype._hasPropertyEffect=function(G,K){K=this[K];return!(!K||!K[G])};
M.prototype._hasReadOnlyEffect=function(G){return this._hasPropertyEffect(G,"__readOnly")};
M.prototype._hasNotifyEffect=function(G){return this._hasPropertyEffect(G,"__notifyEffects")};
M.prototype._hasReflectEffect=function(G){return this._hasPropertyEffect(G,"__reflectEffects")};
M.prototype._hasComputedEffect=function(G){return this._hasPropertyEffect(G,"__computeEffects")};
M.prototype._setPendingPropertyOrPath=function(G,K,n,E){if(E||Xn(Array.isArray(G)?G[0]:G)!==G){if(!E&&(E=g_(this,G),G=P_4(this,G,K),!G||!q.prototype._shouldPropertyChange.call(this,G,K,E)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(G,K,n)){if(n=this.__dataLinkedPaths)for(var p in n)E=n[p],PU(p,G)?(E=iR(p,E,G),this._setPendingPropertyOrPath(E,K,!0,!0)):PU(E,G)&&(E=iR(E,p,G),this._setPendingPropertyOrPath(E,K,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[G])return this._setPendingProperty(G,
K,n);this[G]=K}return!1};
M.prototype._setUnmanagedPropertyToNode=function(G,K,n){if(n!==G[K]||typeof n=="object")K==="className"&&(G=(0,_.Ik)(G)),G[K]=n};
M.prototype._setPendingProperty=function(G,K,n){var E=this.__dataHasPaths&&lR(G);if(this._shouldPropertyChange(G,K,(E?this.__dataTemp:this.__data)[G])){this.__dataPending||(this.__dataPending={},this.__dataOld={});G in this.__dataOld||(this.__dataOld[G]=this.__data[G]);E?this.__dataTemp[G]=K:this.__data[G]=K;this.__dataPending[G]=K;if(E||this.__notifyEffects&&this.__notifyEffects[G])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[G]=n;return!0}return!1};
M.prototype._setProperty=function(G,K){this._setPendingProperty(G,K,!0)&&this._invalidateProperties()};
M.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
M.prototype._enqueueClient=function(G){this.__dataPendingClients=this.__dataPendingClients||[];G!==this&&this.__dataPendingClients.push(G)};
M.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
M.prototype.__enableOrFlushClients=function(){var G=this.__dataPendingClients;if(G){this.__dataPendingClients=null;for(var K=0;K<G.length;K++){var n=G[K];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}};
M.prototype._readyClients=function(){this.__enableOrFlushClients()};
M.prototype.setProperties=function(G,K){for(var n in G)!K&&this.__readOnly&&this.__readOnly[n]||this._setPendingPropertyOrPath(n,G[n],!0);this._invalidateProperties()};
M.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
M.prototype._propertiesChanged=function(G,K,n){G=this.__dataHasPaths;this.__dataHasPaths=!1;var E;if(E=this.__computeEffects)if(GQl){BU++;var p=uT4(this),y=[],Y;for(Y in K)c_v(Y,E,y,p,G);for(;Y=y.shift();)Z5y(this,"",K,n,Y)&&c_v(Y.methodInfo,E,y,p,G);Object.assign(n,this.__dataOld);Object.assign(K,this.__dataPending);this.__dataPending=null}else for(p=K;Qw(this,E,p,n,G);)Object.assign(n,this.__dataOld),Object.assign(K,this.__dataPending),p=this.__dataPending,this.__dataPending=null;E=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(K,n,G);this._flushClients();Qw(this,this.__reflectEffects,K,n,G);Qw(this,this.__observeEffects,K,n,G);if(E){p=this.__notifyEffects;y=BU++;for(var A in E)if(E[A]){if(Y=p){var v=p;Y=y;var h=A,t=K,O=n,a=G,g=!1,D=a?Xn(h):h;if(v=v[D]){D=0;for(var J=v.length,Z=void 0;D<J&&(Z=v[D]);D++)Z.info&&Z.info.lastRun===Y||a&&!cYD(h,Z.trigger)||(Z.info&&(Z.info.lastRun=Y),Z.fn(this,h,t,O,Z.info,a,void 0),g=!0)}Y=g}if(Y)var V=!0;else{if(Y=G)Y=A,h=K,t=Xn(Y),t!==
Y?(t=ok(t)+"-changed",BIY(this,t,h[Y],Y),Y=!0):Y=!1;Y&&(V=!0)}}var S;V&&(S=this.__dataHost)&&S._invalidateProperties&&S._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
M.prototype._propagatePropertyChanges=function(G,K,n){this.__propagateEffects&&Qw(this,this.__propagateEffects,G,K,n);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,G,K,n)};
M.prototype._runEffectsForTemplate=function(G,K,n,E){var p=this,y=function(Y,A){Qw(p,G.propertyEffects,Y,n,A,G.nodeList);for(var v=G.firstChild;v;v=v.nextSibling)p._runEffectsForTemplate(v,Y,n,A)};
G.runEffects?G.runEffects(y,K,E):y(K,E)};
M.prototype.linkPaths=function(G,K){G=cU(G);K=cU(K);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[G]=K};
M.prototype.unlinkPaths=function(G){G=cU(G);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[G]};
M.prototype.notifySplices=function(G,K){var n={path:""};G=g_(this,G,n);RYe(this,G,n.path,K)};
M.prototype.get=function(G,K){return g_(K||this,G)};
M.prototype.set=function(G,K,n){n?P_4(n,G,K):this.__readOnly&&this.__readOnly[G]||this._setPendingPropertyOrPath(G,K,!0)&&this._invalidateProperties()};
M.prototype.push=function(G){var K=_.rW.apply(1,arguments),n={path:""},E=g_(this,G,n),p=E.length,y=E.push.apply(E,_.Ui(K));K.length&&Zy(this,E,n.path,p,K.length,[]);return y};
M.prototype.pop=function(G){var K={path:""};G=g_(this,G,K);var n=!!G.length,E=G.pop();n&&Zy(this,G,K.path,G.length,0,[E]);return E};
M.prototype.splice=function(G,K,n){var E=_.rW.apply(3,arguments),p={path:""},y=g_(this,G,p);K<0?K=y.length-Math.floor(-K):K&&(K=Math.floor(K));var Y=arguments.length===2?y.splice(K):y.splice.apply(y,[K,n].concat(_.Ui(E)));(E.length||Y.length)&&Zy(this,y,p.path,K,E.length,Y);return Y};
M.prototype.shift=function(G){var K={path:""};G=g_(this,G,K);var n=!!G.length,E=G.shift();n&&Zy(this,G,K.path,0,0,[E]);return E};
M.prototype.unshift=function(G){var K=_.rW.apply(1,arguments),n={path:""},E=g_(this,G,n),p=E.unshift.apply(E,_.Ui(K));K.length&&Zy(this,E,n.path,0,K.length,[]);return p};
M.prototype.notifyPath=function(G,K){if(arguments.length==1){var n={path:""};K=g_(this,G,n);n=n.path}else n=Array.isArray(G)?cU(G):G;this._setPendingPropertyOrPath(n,K,!0,!0)&&this._invalidateProperties()};
M.prototype._createReadOnlyProperty=function(G,K){this._addPropertyEffect(G,"__readOnly");K&&(this["_set"+(G[0].toUpperCase()+G.substring(1))]=function(n){this._setProperty(G,n)})};
M.prototype._createPropertyObserver=function(G,K,n){var E={property:G,method:K,dynamicFn:!!n};this._addPropertyEffect(G,"__observeEffects",{fn:gny,info:E,trigger:{name:G}});n&&this._addPropertyEffect(K,"__observeEffects",{fn:gny,info:E,trigger:{name:K}})};
M.prototype._createMethodObserver=function(G,K){var n=jUw(G);if(!n)throw Error("Ed`"+G);mQy(this,n,"__observeEffects",JYF,null,K)};
M.prototype._createNotifyingProperty=function(G){this._addPropertyEffect(G,"__notifyEffects",{fn:QUy,info:{eventName:ok(G)+"-changed",property:G}})};
M.prototype._createReflectedProperty=function(G){var K=this.constructor.attributeNameForProperty(G);K[0]==="-"?console.warn("Property "+G+" cannot be reflected to attribute "+K+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(G,"__reflectEffects",{fn:I$e,info:{attrName:K}})};
M.prototype._createComputedProperty=function(G,K,n){var E=jUw(K);if(!E)throw Error("Fd`"+K);K=mQy(this,E,"__computeEffects",Z5y,G,n);i5i(this,"__computeInfo")[G]=K};
M.prototype._marshalArgs=function(G,K,n){for(var E=this.__data,p=[],y=0,Y=G.length;y<Y;y++){var A=G[y],v=A.name,h=A.structured,t=A.wildcard,O=A.value;A.literal||(t?(A=PU(v,K),h=Vbi(E,n,A?K:v),O={path:A?K:v,value:h,base:A?g_(E,v):h}):O=h?Vbi(E,n,v):E[v]);if(J5&&!this._overrideLegacyUndefined&&O===void 0&&G.length>1)return uR;p[y]=O}return p};
M.addPropertyEffect=function(G,K,n){this.prototype._addPropertyEffect(G,K,n)};
M.createPropertyObserver=function(G,K,n){this.prototype._createPropertyObserver(G,K,n)};
M.createMethodObserver=function(G,K){this.prototype._createMethodObserver(G,K)};
M.createNotifyingProperty=function(G){this.prototype._createNotifyingProperty(G)};
M.createReadOnlyProperty=function(G,K){this.prototype._createReadOnlyProperty(G,K)};
M.createReflectedProperty=function(G){this.prototype._createReflectedProperty(G)};
M.createComputedProperty=function(G,K,n){this.prototype._createComputedProperty(G,K,n)};
M.bindTemplate=function(G){return this.prototype._bindTemplate(G)};
M.prototype._bindTemplate=function(G,K){var n=this.constructor._parseTemplate(G),E=this.__preBoundTemplateInfo==n;if(!E)for(var p in n.propertyEffects)this._createPropertyAccessor(p);K?(n=Object.create(n),n.wasPreBound=E,this.__templateInfo?(G=G._parentTemplateInfo||this.__templateInfo,K=G.lastChild,n.parent=G,G.lastChild=n,(n.previousSibling=K)?K.nextSibling=n:G.firstChild=n):this.__templateInfo=n):this.__preBoundTemplateInfo=n;return n};
M._addTemplatePropertyEffect=function(G,K,n){(G.hostProps=G.hostProps||{})[K]=!0;G=G.propertyEffects=G.propertyEffects||{};(G[K]=G[K]||[]).push(n)};
M.prototype._stampTemplate=function(G,K){K=K||this._bindTemplate(G,!0);s5.push(this);G=q.prototype._stampTemplate.call(this,G,K);s5.pop();K.nodeList=G.nodeList;if(!K.wasPreBound)for(var n=K.childNodes=[],E=G.firstChild;E;E=E.nextSibling)n.push(E);G.templateInfo=K;n=K.nodeList;E=K.nodeInfoList;if(E.length)for(var p=0;p<E.length;p++){var y=n[p],Y=E[p].bindings;if(Y)for(var A=0;A<Y.length;A++){var v=Y[A],h=y,t=v;if(t.isCompound){for(var O=h.__dataCompoundStorage||(h.__dataCompoundStorage={}),a=t.parts,
g=Array(a.length),D=0;D<a.length;D++)g[D]=a[D].literal;a=t.target;O[a]=g;t.literal&&t.kind=="property"&&(a==="className"&&(h=(0,_.Ik)(h)),h[a]=t.literal)}zY4(y,this,v)}y.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(K,this.__data,null,!1),this._flushClients());return G};
M.prototype._removeBoundDom=function(G){G=G.templateInfo;var K=G.previousSibling,n=G.nextSibling,E=G.parent;K?K.nextSibling=n:E&&(E.firstChild=n);n?n.previousSibling=K:E&&(E.lastChild=K);G.nextSibling=G.previousSibling=null;G=G.childNodes;for(K=0;K<G.length;K++)n=G[K],(0,_.Ik)((0,_.Ik)(n).parentNode).removeChild(n)};
M._parseTemplateNode=function(G,K,n){var E=q._parseTemplateNode.call(this,G,K,n);if(G.nodeType===Node.TEXT_NODE){var p=this._parseBindings(G.textContent,K);p&&(G.textContent=Szu(p)||" ",xQe(this,K,n,"text","textContent",p),E=!0)}return E};
M._parseTemplateNodeAttribute=function(G,K,n,E,p){var y=this._parseBindings(p,K);if(y){p=E;var Y="property";iTS.test(E)?Y="attribute":E[E.length-1]=="$"&&(E=E.slice(0,-1),Y="attribute");var A=Szu(y);A&&Y=="attribute"&&(E=="class"&&G.hasAttribute("class")&&(A+=" "+G.getAttribute(E)),G.setAttribute(E,A));Y=="attribute"&&p=="disable-upgrade$"&&G.setAttribute(E,"");G.localName==="input"&&p==="value"&&G.setAttribute(p,"");G.removeAttribute(p);Y==="property"&&(E=ak(E));xQe(this,K,n,Y,E,y,A);return!0}return q._parseTemplateNodeAttribute.call(this,
G,K,n,E,p)};
M._parseTemplateNestedTemplate=function(G,K,n){var E=q._parseTemplateNestedTemplate.call(this,G,K,n),p=G.parentNode,y=n.templateInfo,Y=p.localName==="dom-if",A=p.localName==="dom-repeat";RA&&(Y||A)&&(p.removeChild(G),n=n.parentInfo,n.templateInfo=y,n.noted=!0,E=!1);G=y.hostProps;if(f$&&Y)G&&(K.hostProps=Object.assign(K.hostProps||{},G),RA||(n.parentInfo.noted=!0));else for(var v in G)xQe(this,K,n,"property","_host_"+v,[{mode:"{",source:v,dependencies:[v],hostProp:!0}]);return E};
M._parseBindings=function(G,K){for(var n=[],E=0,p;(p=gAx.exec(G))!==null;){p.index>E&&n.push({literal:G.slice(E,p.index)});E=p[1][0];var y=!!p[2];p=p[3].trim();var Y=!1,A="",v=-1;E=="{"&&(v=p.indexOf("::"))>0&&(A=p.substring(v+2),p=p.substring(0,v),Y=!0);v=jUw(p);var h=[];if(v){var t=v,O=t.args;t=t.methodName;for(var a=0;a<O.length;a++){var g=O[a];g.literal||h.push(g)}if((O=K.dynamicFns)&&O[t]||v.static)h.push(t),v.dynamicFn=!0}else h.push(p);n.push({source:p,mode:E,negate:y,customEvent:Y,signature:v,
dependencies:h,event:A});E=gAx.lastIndex}E&&E<G.length&&(G=G.substring(E))&&n.push({literal:G});return n.length?n:null};
M._evaluateBinding=function(G,K,n,E,p,y){G=K.signature?JYF(G,n,E,p,K.signature):n!=K.source?g_(G,K.source):y&&lR(n)?g_(G,n):G.__data[n];K.negate&&(G=!G);return G};
_.Yd.Object.defineProperties(M.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return PgS}}});
return M}),s5=[];var B4J=window.ShadyCSS&&window.ShadyCSS.cssBuild,qO=$r(function(M){function q(K,n,E,p){if(!B4J){for(var y=n.content.querySelectorAll("style"),Y=eYD(n),A=$QH(E),v=n.content.firstElementChild,h=0;h<A.length;h++){var t=A[h];t.textContent=K._processStyleText(t.textContent,p);n.content.insertBefore(t,v)}for(v=A=0;v<Y.length;v++)h=Y[v],t=y[A],t!==h?(h=h.cloneNode(!0),t.parentNode.insertBefore(h,t)):A++,h.textContent=K._processStyleText(h.textContent,p)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(n,
E);if(nAS&&B4J&&$rf&&(n=n.content.querySelectorAll("style"))){var O="";Array.from(n).forEach(function(a){O+=a.textContent;a.parentNode.removeChild(a)});
K._styleSheet=new CSSStyleSheet;K._styleSheet.replaceSync(O)}}
var G=A_9(MO(M));M=function(){return G.call(this)||this};
_.l(M,G);M._finalizeClass=function(){G._finalizeClass.call(this);var K;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(K=this.__ownObservers)&&this.createObservers(K,this._properties);this._prepareTemplate()};
M._prepareTemplate=function(){var K=this.template;K&&(typeof K==="string"?(console.error("template getter must return HTMLTemplateElement"),K=null):eU||(K=K.cloneNode(!0)));this.prototype._template=K};
M.createProperties=function(K){for(var n in K){var E=this.prototype,p=n,y=K[n],Y=K;y.computed&&(y.readOnly=!0);y.computed&&(E._hasReadOnlyEffect(p)?console.warn("Cannot redefine computed property '"+p+"'."):E._createComputedProperty(p,y.computed,Y));y.readOnly&&!E._hasReadOnlyEffect(p)?E._createReadOnlyProperty(p,!y.computed):y.readOnly===!1&&E._hasReadOnlyEffect(p)&&console.warn("Cannot make readOnly property '"+p+"' non-readOnly.");y.reflectToAttribute&&!E._hasReflectEffect(p)?E._createReflectedProperty(p):
y.reflectToAttribute===!1&&E._hasReflectEffect(p)&&console.warn("Cannot make reflected property '"+p+"' non-reflected.");y.notify&&!E._hasNotifyEffect(p)?E._createNotifyingProperty(p):y.notify===!1&&E._hasNotifyEffect(p)&&console.warn("Cannot make notify property '"+p+"' non-notify.");y.observer&&E._createPropertyObserver(p,y.observer,Y[y.observer]);E._addPropertyToAttributeMap(p)}};
M.createObservers=function(K,n){for(var E=this.prototype,p=0;p<K.length;p++)E._createMethodObserver(K[p],n)};
M.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);G.prototype._initializeProperties.call(this);this.rootPath=sOf;this.importPath=this.constructor.importPath;var K=this.constructor;if(!K.hasOwnProperty("__propertyDefaults")){K.__propertyDefaults=null;var n=K._properties,E;for(E in n){var p=n[E];"value"in p&&(K.__propertyDefaults=K.__propertyDefaults||{},K.__propertyDefaults[E]=p)}}if(K=K.__propertyDefaults)for(var y in K)n=K[y],
this._canApplyPropertyDefault(y)&&(n=typeof n.value=="function"?n.value.call(this):n.value,this._hasAccessor(y)?this._setPendingProperty(y,n,!0):this[y]=n)};
M.prototype._canApplyPropertyDefault=function(K){return!this.hasOwnProperty(K)};
M._processStyleText=function(K,n){return LGF(K,n)};
M._finalizeTemplate=function(K){var n=this.prototype._template;if(n&&!n.__polymerFinalized){n.__polymerFinalized=!0;var E=this.importPath;E=E?_.w_(E):"";q(this,n,K,E);this.prototype._bindTemplate(n)}};
M.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);G.prototype.connectedCallback.call(this)};
M.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);G.prototype.ready.call(this)};
M.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));G.prototype._readyClients.call(this)};
M.prototype._attachDom=function(K){var n=(0,_.Ik)(this);if(n.attachShadow)return K?(n.shadowRoot||(n.attachShadow({mode:"open",shadyUpgradeFragment:K}),n.shadowRoot.appendChild(K),this.constructor._styleSheet&&(n.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),qTp&&window.ShadyDOM&&window.ShadyDOM.flushInitial(n.shadowRoot),n.shadowRoot):null;throw Error("Hd");};
M.prototype.updateStyles=function(K){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,K)};
M.prototype.resolveUrl=function(K,n){!n&&this.importPath&&(n=_.w_(this.importPath));return _.w_(K,n)};
M._parseTemplateContent=function(K,n,E){n.dynamicFns=n.dynamicFns||this._properties;return G._parseTemplateContent.call(this,K,n,E)};
M._addTemplatePropertyEffect=function(K,n,E){!q3||n in this._properties||E.info.part.signature&&E.info.part.signature.static||E.info.part.hostProp||K.nestedTemplate||console.warn("Property '"+n+"' used in template but not declared in 'properties'; attribute will not be observed.");return G._addTemplatePropertyEffect.call(this,K,n,E)};
_.Yd.Object.defineProperties(M,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var K=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof K==="function"&&(K=K());if(K===void 0){if(K=this.hasOwnProperty("is")){K=this.is;var n=null;if(K&&(!Gy||Mof)&&(n=bR.import(K,"template"),Gy&&!n))throw Error("Gd`"+K);K=n}K=K||Object.getPrototypeOf(this.prototype).constructor.template}this._template=K}return this._template},
set:function(K){this._template=K}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var K=this.importMeta;K?this._importPath=YzD(K.url):this._importPath=(K=bR.import(this.is))&&K.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return M});var QOS=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(M){return M}}),EWy=function(M,q){IpI(M,q);
this.value=q.reduce(function(G,K,n){return G+Nri(K)+M[n+1]},M[0]).toString()},IpI;
EWy.prototype.toString=function(){return this.value};
_.DsB=function(M){var q=_.rW.apply(1,arguments);IpI(M,q);var G=document.createElement("template");q=q.reduce(function(K,n,E){if(n instanceof HTMLTemplateElement)n=n.innerHTML;else if(n instanceof EWy)n=Nri(n);else throw Error("Jd`"+n);return K+n+M[E+1]},M[0]);
QOS&&(q=QOS.createHTML(q));G.innerHTML=q;return G};
IpI=function(M,q){if(!Array.isArray(M)||!Array.isArray(M.raw)||q.length!==M.length-1)throw new TypeError("Kd");};var Gd=qO(HTMLElement);var usp=$r(function(M){var q=qO(M);M=function(){var G=q.call(this)||this;G.__lastItems=null;G.__lastMulti=null;G.__selectedMap=null;return G};
_.l(M,q);M.prototype.__updateSelection=function(G,K){var n=K.path;n=="items"?(K=K.base||[],n=this.__lastItems,G!==this.__lastMulti&&this.clearSelection(),n&&(n=nWs(K,n),this.__applySplices(n)),this.__lastItems=K,this.__lastMulti=G):K.path=="items.splices"?this.__applySplices(K.value.indexSplices):(G=n.slice(6),K=parseInt(G,10),G.indexOf(".")<0&&G==K&&this.__deselectChangedIdx(K))};
M.prototype.__applySplices=function(G){for(var K=this,n=this.__selectedMap,E={},p=0;p<G.length;E={s$jscomp$109:void 0},p++){E.s$jscomp$109=G[p];n.forEach(function(v){return function(h,t){h<v.s$jscomp$109.index||(h>=v.s$jscomp$109.index+v.s$jscomp$109.removed.length?n.set(t,h+v.s$jscomp$109.addedCount-v.s$jscomp$109.removed.length):n.set(t,-1))}}(E));
for(var y=0;y<E.s$jscomp$109.addedCount;y++){var Y=E.s$jscomp$109.index+y;n.has(this.items[Y])&&n.set(this.items[Y],Y)}}this.__updateLinks();var A=0;n.forEach(function(v,h){v<0?(K.multi?K.splice("selected",A,1):K.selected=K.selectedItem=null,n.delete(h)):A++})};
M.prototype.__updateLinks=function(){var G=this;this.__dataLinkedPaths={};if(this.multi){var K=0;this.__selectedMap.forEach(function(n){n>=0&&G.linkPaths("items."+n,"selected."+K++)})}else this.__selectedMap.forEach(function(n){G.linkPaths("selected","items."+n);
G.linkPaths("selectedItem","items."+n)})};
M.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
M.prototype.isSelected=function(G){return this.__selectedMap.has(G)};
M.prototype.isIndexSelected=function(G){return this.isSelected(this.items[G])};
M.prototype.__deselectChangedIdx=function(G){var K=this,n=this.__selectedIndexForItemIndex(G);if(n>=0){var E=0;this.__selectedMap.forEach(function(p,y){n==E++&&K.deselect(y)})}};
M.prototype.__selectedIndexForItemIndex=function(G){if(G=this.__dataLinkedPaths["items."+G])return parseInt(G.slice(9),10)};
M.prototype.deselect=function(G){var K=this.__selectedMap.get(G);if(K>=0){this.__selectedMap.delete(G);var n;this.multi&&(n=this.__selectedIndexForItemIndex(K));this.__updateLinks();this.multi?this.splice("selected",n,1):this.selected=this.selectedItem=null}};
M.prototype.deselectIndex=function(G){this.deselect(this.items[G])};
M.prototype.select=function(G){this.selectIndex(this.items.indexOf(G))};
M.prototype.selectIndex=function(G){var K=this.items[G];this.isSelected(K)?this.toggle&&this.deselectIndex(G):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(K,G),this.__updateLinks(),this.multi?this.push("selected",K):this.selected=this.selectedItem=K)};
_.Yd.Object.defineProperties(M,{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 M}),J_$=usp(Gd),Kk=function(){return J_$.apply(this,arguments)||this};
_.l(Kk,J_$);_.Yd.Object.defineProperties(Kk,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(Kk.is,Kk);var ZTJ=window.Polymer;window.Polymer=function(M){return window.Polymer._polymerFn(M)};
ZTJ&&Object.assign(Polymer,ZTJ);Polymer._polymerFn=function(){throw Error("Ld");};/*

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:LGF,resolveUrl:_.w_,pathFromUrl:YzD};Polymer.DomModule=bR;Polymer.Async={timeOut:_.eD,animationFrame:_.Wb,idlePeriod:y_9,microTask:Fn};Polymer.dedupingMixin=$r;Polymer.wrap=_.Ik;Polymer.PropertiesChanged=YTJ;Polymer.telemetry={instanceCount:WX2,incrementInstanceCount:function(){WX2++},
registrations:vnu,register:hYy,dumpRegistrations:function(){vnu.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=A_9;Polymer.CaseMap={dashToCamelCase:ak,camelToDashCase:ok};Polymer.PropertyAccessors=w49;Polymer.TemplateStamp=X4v;Polymer.Path={isPath:lR,root:Xn,isAncestor:on$,isDescendant:PU,translate:iR,matches:l$w,normalize:cU,split:X3y,get:g_,set:P_4,isDeep:lR};Polymer.Settings={useShadow:$I,useNativeCSSProperties:R3l,useNativeCustomElements:fx2,get rootPath(){return sOf},setRootPath:function(M){sOf=M},
get sanitizeDOMValue(){return Dy},setSanitizeDOMValue:function(M){Dy=M},
get passiveTouchGestures(){return whw},setPassiveTouchGestures:function(M){whw=M},
get strictTemplatePolicy(){return Gy},setStrictTemplatePolicy:function(M){Gy=M},
get allowTemplateFromDomModule(){return Mof},setAllowTemplateFromDomModule:function(M){Mof=M},
get legacyOptimizations(){return eU},setLegacyOptimizations:function(M){eU=M},
get syncInitialRender(){return qTp},setSyncInitialRender:function(M){qTp=M},
get legacyUndefined(){return J5},setLegacyUndefined:function(M){J5=M},
get legacyWarnings(){return q3},setLegacyWarnings:function(M){q3=M},
get orderedComputed(){return GQl},setOrderedComputed:function(M){GQl=M},
get fastDomIf(){return f$},setFastDomIf:function(M){f$=M},
get removeNestedTemplates(){return RA},setRemoveNestedTemplates:function(M){RA=M},
get suppressTemplateNotifications(){return F6},setSuppressTemplateNotifications:F6};Polymer.rootPath!==void 0&&(sOf=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(Dy=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(whw=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(Gy=Polymer.strictTemplatePolicy);Mof=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(eU=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(qTp=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(J5=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(q3=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(GQl=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(f$=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(RA=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(F6=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return Dy},
set:function(M){Dy=M}});Polymer.PropertyEffects=MO;Polymer.StyleGather={stylesFromModules:H5H,stylesFromModule:FGH,stylesFromTemplate:eYD,stylesFromModuleImports:$QH,cssFromModules:Mhy,cssFromModule:sHi,cssFromTemplate:qFD,cssFromModuleImports:function(M){return(M=bR.import(M))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(M):""}};Polymer.ElementMixin=qO;Polymer.updateStyles=function(M){window.ShadyCSS&&window.ShadyCSS.styleDocument(M)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:nWs};Polymer.html=_.DsB;Polymer.htmlLiteral=function(M){return new EWy(M,_.rW.apply(1,arguments))};Polymer.Element=Gd;Polymer.ArraySelectorMixin=usp;Polymer.ArraySelector=Kk;var bTM=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Usp=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,zWF=/@media\s(.*)/;var Liw=null,yMy=window.HTMLImports&&window.HTMLImports.whenReady||null,YFw;var xs2=null,nk=null,E5=function(){this.customStyles=[];this.enqueued=!1;Wiy(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},zU2=function(M){!M.enqueued&&nk&&(M.enqueued=!0,Wiy(nk))};
E5.prototype.addCustomStyle=function(M){M.__seenByShadyCSS||(M.__seenByShadyCSS=!0,this.customStyles.push(M),zU2(this))};
E5.prototype.getStyleForCustomStyle=function(M){if(M.__shadyCSSCachedStyle)return M.__shadyCSSCachedStyle;var q;M.getStyle?q=M.getStyle():q=M;return q};
E5.prototype.processStyles=function(){for(var M=this.customStyles,q=0;q<M.length;q++){var G=M[q];if(!G.__shadyCSSCachedStyle){var K=this.getStyleForCustomStyle(G);K&&(K=K.__appliedElement||K,xs2&&xs2(K),G.__shadyCSSCachedStyle=K)}}return M};
E5.prototype.addCustomStyle=E5.prototype.addCustomStyle;E5.prototype.getStyleForCustomStyle=E5.prototype.getStyleForCustomStyle;E5.prototype.processStyles=E5.prototype.processStyles;Object.defineProperties(E5.prototype,{transformCallback:{get:function(){return xs2},
set:function(M){xs2=M}},
validateCallback:{get:function(){return nk},
set:function(M){var q=!1;nk||(q=!0);nk=M;q&&zU2(this)}}});var dKF=!(window.ShadyDOM&&window.ShadyDOM.inUse),AMH,LY;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(LY=window.ShadyCSS.cssBuild);var msv=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?AMH=window.ShadyCSS.nativeCss:window.ShadyCSS?(vWF(window.ShadyCSS),window.ShadyCSS=void 0):vWF(window.WebComponents&&window.WebComponents.flags);var buY=AMH;var ST9=new E5;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(M,q){ST9.processStyles();kOD(M,q)},
styleElement:function(){ST9.processStyles()},
styleDocument:function(M){ST9.processStyles();kOD(document.body,M)},
getComputedStyleValue:function(M,q){return phj(M,q)},
flushCustomStyles:function(){},
nativeCss:buY,nativeShadow:dKF,cssBuild:LY,disableRuntime:msv});window.ShadyCSS.CustomStyleInterface=ST9;var T4$=window.ShadyCSS.CustomStyleInterface,NO=function(){var M=HTMLElement.call(this)||this;M._style=null;T4$.addCustomStyle(M);return M};
_.l(NO,HTMLElement);NO.prototype.getStyle=function(){if(this._style)return this._style;var M=this.querySelector("style");if(!M)return null;this._style=M;var q=M.getAttribute("include");q&&(M.removeAttribute("include"),M.textContent=Mhy(q)+M.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
NO.prototype.getStyle=NO.prototype.getStyle;window.customElements.define("custom-style",NO);Polymer.CustomStyle=NO;var kH=function(){this._timer=this._callback=this._asyncModule=null},pk,jOd;
kH.prototype.setConfig=function(M,q){var G=this;this._asyncModule=M;this._callback=q;this._timer=this._asyncModule.run(function(){G._timer=null;pk.delete(G);G._callback()})};
kH.prototype.cancel=function(){this.isActive()&&(r_B(this),pk.delete(this))};
var r_B=function(M){M.isActive()&&(M._asyncModule.cancel(M._timer),M._timer=null)};
kH.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
kH.prototype.isActive=function(){return this._timer!=null};
_.yd=function(M,q,G){M instanceof kH?r_B(M):M=new kH;M.setConfig(q,G);return M};
pk=new Set;_.Lk=function(M){pk.add(M)};
jOd=function(){var M=!!pk.size;pk.forEach(function(q){try{q.flush()}catch(G){setTimeout(function(){throw G;})}});
return M};var thu=typeof document.head.style.touchAction==="string",h2y=["mousedown","mousemove","mouseup","click"],isy=[0,1,4,2],Vop;try{Vop=(new MouseEvent("test",{buttons:1})).buttons===1}catch(M){Vop=!1}var Pqi=Vop,Os4=!1;(function(){try{var M=Object.defineProperty({},"passive",{get:function(){Os4=!0}});
window.addEventListener("test",null,M);window.removeEventListener("test",null,M)}catch(q){}})();
var aQy=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),oWs=[],RUd={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},xKF={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},lQi=function(M){var q=M.sourceCapabilities;if(!q||q.firesTouchEvents)if(M.__polymerGesturesHandled={skip:!0},M.type==="click"){q=!1;for(var G=QHi(M),K=0;K<G.length;K++){if(G[K].nodeType===Node.ELEMENT_NODE)if(G[K].localName==="label")oWs.push(G[K]);
else if(RUd[G[K].localName]){var n=G[K];var E=Array.prototype.slice.call(n.labels||[]);if(!E.length){E=[];try{var p=n.getRootNode();if(n.id){var y=p.querySelectorAll("label[for = '"+n.id+"']");for(n=0;n<y.length;n++)E.push(y[n])}}catch(Y){}}for(n=0;n<E.length;n++)q=q||oWs.indexOf(E[n])>-1}if(G[K]===fpd)return}q||(M.preventDefault(),M.stopPropagation())}},fpd=null,YH=null,DKY=0,uaw=0,IQF=-1,JMs=!1;
document.addEventListener("touchend",function(M){YH||Xhy(!0);fpd=QHi(M)[0];YH=_.yd(YH,_.eD.after(2500),function(){Xhy();YH=fpd=null})},Os4?{passive:!0}:!1);
var QHi=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(M){return M.composedPath&&M.composedPath()||[]},TC={},mh=[];
Zs$({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){zC(this.info)},
mousedown:function(M){if(xI(M)){var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),G=this;gWj(this.info,function(K){xI(K)||(HU("up",q,K),zC(G.info))},function(K){xI(K)&&HU("up",q,K);
zC(G.info)});
HU("down",q,M)}},
touchstart:function(M){HU("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),M.changedTouches[0],M)},
touchend:function(M){HU("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),M.changedTouches[0],M)}});
Zs$({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(M){this.moves.length>2&&this.moves.shift();this.moves.push(M)},
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;zC(this.info)},
mousedown:function(M){if(xI(M)){var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M),G=this,K=function(n){var E=n.clientX,p=n.clientY;bsj(G.info,E,p)&&(G.info.state=G.info.started?n.type==="mouseup"?"end":"track":"start",G.info.state==="start"&&SU("tap"),G.info.addMove({x:E,y:p}),xI(n)||(G.info.state="end",zC(G.info)),q&&UKH(G.info,q,n),G.info.started=!0)};
gWj(this.info,K,function(n){G.info.started&&K(n);zC(G.info)});
this.info.x=M.clientX;this.info.y=M.clientY}},
touchstart:function(M){M=M.changedTouches[0];this.info.x=M.clientX;this.info.y=M.clientY},
touchmove:function(M){var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M=M.changedTouches[0];var G=M.clientX,K=M.clientY;bsj(this.info,G,K)&&(this.info.state==="start"&&SU("tap"),this.info.addMove({x:G,y:K}),UKH(this.info,q,M),this.info.state="track",this.info.started=!0)},
touchend:function(M){var q=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M);M=M.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:M.clientX,y:M.clientY}),UKH(this.info,q,M))}});
Zs$({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(M){xI(M)&&(this.info.x=M.clientX,this.info.y=M.clientY)},
click:function(M){xI(M)&&z2u(this.info,M)},
touchstart:function(M){M=M.changedTouches[0];this.info.x=M.clientX;this.info.y=M.clientY},
touchend:function(M){z2u(this.info,M.changedTouches[0],M)}});var FX$=$r(function(M){var q=function(){return M.apply(this,arguments)||this};
_.l(q,M);q.prototype._addEventListenerToNode=function(G,K,n){r_(G,K,n)||M.prototype._addEventListenerToNode.call(this,G,K,n)};
q.prototype._removeEventListenerFromNode=function(G,K,n){jU(G,K,n)||M.prototype._removeEventListenerFromNode.call(this,G,K,n)};
return q});var WW=$r(function(M){var q=function(){return M.apply(this,arguments)||this};
_.l(q,M);q.prototype._shouldPropertyChange=function(G,K,n){return mKu(this,G,K,n,!0)};
return q}),HTv=$r(function(M){var q=function(){return M.apply(this,arguments)||this};
_.l(q,M);q.prototype._shouldPropertyChange=function(G,K,n){return mKu(this,G,K,n,this.mutableData)};
_.Yd.Object.defineProperties(q,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return q});
WW._mutablePropertyChange=mKu;var SFF=!1;var eUJ=FX$(HTv(MO(HTMLElement))),AQ=function(){var M=eUJ.call(this)||this;if(Gy)throw Error("Md");M.root=null;M.$=null;M.__children=null;return M};
_.l(AQ,eUJ);_.N=AQ.prototype;_.N.attributeChangedCallback=function(){this.mutableData=!0};
_.N.connectedCallback=function(){Tre()||(this.style.display="none");this.render()};
_.N.disconnectedCallback=function(){this.__removeChildren()};
_.N.__insertChildren=function(){(0,_.Ik)((0,_.Ik)(this).parentNode).insertBefore(this.root,this)};
_.N.__removeChildren=function(){if(this.__children)for(var M=0;M<this.__children.length;M++)this.root.appendChild(this.__children[M])};
_.N.render=function(){var M=this;if(!this.__children){var q=q||this.querySelector("template");if(!q){var G=new MutationObserver(function(){if(q=M.querySelector("template"))G.disconnect(),M.render();else throw Error("Nd");});
G.observe(this,{childList:!0});return}this.root=this._stampTemplate(q);this.$=this.root.$;this.__children=[];for(var K=this.root.firstChild;K;K=K.nextSibling)this.__children[this.__children.length]=K;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Yd.Object.defineProperties(AQ,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",AQ);Polymer.Debouncer=kH;Polymer.Gestures={gestures:TC,recognizers:mh,deepTargetFind:Bri,addListener:r_,removeListener:jU,register:Zs$,setTouchAction:_.Vw,prevent:SU,resetMouseCanceller:function(){YH&&YH.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:r_,remove:jU};Polymer.GestureEventListeners=FX$;Polymer.MutableData=WW;Polymer.OptionalMutableData=HTv;Polymer.DomBind=AQ;_.dF=function(){do{var M=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var q=jOd()}while(M||q)};var rMF=null;jH4.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:jH4,writable:!0}});var sTF=MO(jH4),$Ks=WW(sTF),$sI=MO(function(){}),sU=function(M){var q=$sI.call(this)||this;
q._configureProperties(M);q.root=q._stampTemplate(q.__dataHost);var G=[];q.children=G;for(var K=q.root.firstChild;K;K=K.nextSibling)G.push(K),K.__templatizeInstance=q;q.__templatizeOwner&&q.__templatizeOwner.__hideTemplateChildren__&&q._showHideChildren(!0);G=q.__templatizeOptions;(M&&G.instanceProps||!G.instanceProps)&&q._enableProperties();return q};
_.l(sU,$sI);_.N=sU.prototype;_.N._configureProperties=function(M){if(this.__templatizeOptions.forwardHostProp)for(var q in this.__hostProps)this._setPendingProperty(q,this.__dataHost["_host_"+q]);for(var G in M)this._setPendingProperty(G,M[G])};
_.N.forwardHostProp=function(M,q){this._setPendingPropertyOrPath(M,q,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.N._addEventListenerToNode=function(M,q,G){var K=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(M,q,function(E){E.model=K;G(E)});
else{var n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(M,q,G)}};
_.N._showHideChildren=function(M){R2e(M,this.children)};
_.N._setUnmanagedPropertyToNode=function(M,q,G){M.__hideTemplateChildren__&&M.nodeType==Node.TEXT_NODE&&q=="textContent"?M.__polymerTextContent__=G:$sI.prototype._setUnmanagedPropertyToNode.call(this,M,q,G)};
_.N.dispatchEvent=function(){return!0};
_.Yd.Object.defineProperties(sU.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var M=this.__parentModel;if(!M){var q;M=this;do M=M.__dataHost.__dataHost;while((q=M.__templatizeOptions)&&!q.parentModel);this.__parentModel=M}return M}}});
var FiY=WW(sU);var vW=function(){var M=Gd.call(this)||this;M.__renderDebouncer=null;M._lastIf=!1;M.__hideTemplateChildren__=!1;return M};
_.l(vW,Gd);_.N=vW.prototype;_.N.__debounceRender=function(){var M=this;this.__renderDebouncer=_.yd(this.__renderDebouncer,Fn,function(){return M.__render()});
_.Lk(this.__renderDebouncer)};
_.N.disconnectedCallback=function(){Gd.prototype.disconnectedCallback.call(this);var M=(0,_.Ik)(this).parentNode;M&&(M.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Ik)(M).host)||this.__teardownInstance()};
_.N.connectedCallback=function(){Gd.prototype.connectedCallback.call(this);Tre()||(this.style.display="none");this.if&&this.__debounceRender()};
_.N.__ensureTemplate=function(){var M=this;if(!this.__template){var q=this._templateInfo?this:(0,_.Ik)(this).querySelector("template");if(!q){var G=new MutationObserver(function(){if((0,_.Ik)(M).querySelector("template"))G.disconnect(),M.__render();else throw Error("Qd");});
G.observe(this,{childList:!0});return!1}this.__template=q}return!0};
_.N.__ensureInstance=function(){var M=(0,_.Ik)(this).parentNode;if(this.__hasInstance()){var q=this.__getInstanceNodes();if(q&&q.length&&(0,_.Ik)(this).previousSibling!==q[q.length-1])for(var G=0,K=void 0;G<q.length&&(K=q[G]);G++)(0,_.Ik)(M).insertBefore(K,this)}else{if(!M||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(M)}return!0};
_.N.render=function(){_.dF()};
_.N.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();F6&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.N.__hasInstance=function(){};
_.N.__getInstanceNodes=function(){};
_.N.__createAndInsertInstance=function(){};
_.N.__teardownInstance=function(){};
_.N._showHideChildren=function(){};
_.Yd.Object.defineProperties(vW,{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:vW.prototype.__debounceRender},restamp:{type:Boolean,observer:vW.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var sM$=function(){var M=vW.call(this)||this;M.__instance=null;M.__syncInfo=null;return M};
_.l(sM$,vW);_.N=sM$.prototype;_.N.__hasInstance=function(){return!!this.__instance};
_.N.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.N.__createAndInsertInstance=function(M){var q=this,G=this.__dataHost||this;if(Gy&&!this.__dataHost)throw Error("Od");var K=G._bindTemplate(this.__template,!0);K.runEffects=function(n,E,p){var y=q.__syncInfo;if(q.if)y&&(q.__syncInfo=null,q._showHideChildren(),E=Object.assign(y.changedProps,E)),n(E,p);else if(q.__instance)if(y||(y=q.__syncInfo={runEffects:n,changedProps:{}}),p)for(var Y in E)n=Xn(Y),y.changedProps[n]=q.__dataHost[n];else Object.assign(y.changedProps,E)};
this.__instance=G._stampTemplate(this.__template,K);(0,_.Ik)(M).insertBefore(this.__instance,this)};
_.N.__syncHostProperties=function(){var M=this.__syncInfo;M&&(this.__syncInfo=null,M.runEffects(M.changedProps,!1))};
_.N.__teardownInstance=function(){var M=this.__dataHost||this;this.__instance&&(M._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.N._showHideChildren=function(){var M=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==M&&(this.__instance.__hidden=M,R2e(M,this.__instance.templateInfo.childNodes));M||this.__syncHostProperties()};
var M5x=function(){var M=vW.call(this)||this;M.__ctor=null;M.__instance=null;M.__invalidProps=null;return M};
_.l(M5x,vW);_.N=M5x.prototype;_.N.__hasInstance=function(){return!!this.__instance};
_.N.__getInstanceNodes=function(){return this.__instance.children};
_.N.__createAndInsertInstance=function(M){this.__ctor||(this.__ctor=M3(this.__template,this,{mutableData:!0,forwardHostProp:function(q,G){this.__instance&&(this.if?this.__instance.forwardHostProp(q,G):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Xn(q)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Ik)(M).insertBefore(this.__instance.root,this)};
_.N.__teardownInstance=function(){if(this.__instance){var M=this.__instance.children;if(M&&M.length){var q=(0,_.Ik)(M[0]).parentNode;if(q){q=(0,_.Ik)(q);for(var G=0,K=void 0;G<M.length&&(K=M[G]);G++)q.removeChild(K)}}this.__instance=this.__invalidProps=null}};
_.N.__syncHostProperties=function(){var M=this.__invalidProps;if(M){this.__invalidProps=null;for(var q in M)this.__instance._setPendingProperty(q,this.__dataHost[q]);this.__instance._flushProperties()}};
_.N._showHideChildren=function(){var M=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==M&&(this.__instance.__hidden=M,this.__instance._showHideChildren(M));M||this.__syncHostProperties()};
_.OT=f$?sM$:M5x;customElements.define(_.OT.is,_.OT);Polymer.enqueueDebouncer=_.Lk;Polymer.flush=_.dF;Polymer.Templatize={templatize:M3,modelForElement:E1Y};Polymer.TemplateInstanceBase=sU;Polymer.DomIf=_.OT;var qES=HTv(Gd),t_=function(){var M=qES.call(this)||this;M.__instances=[];M.__renderDebouncer=null;M.__itemsIdxToInstIdx={};M.__chunkCount=null;M.__renderStartTime=null;M.__itemsArrayChanged=!1;M.__shouldMeasureChunk=!1;M.__shouldContinueChunking=!1;M.__chunkingId=0;M.__sortFn=null;M.__filterFn=null;M.__observePaths=null;M.__ctor=null;M.__isDetached=!0;M.template=null;return M};
_.l(t_,qES);_.N=t_.prototype;_.N.disconnectedCallback=function(){qES.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var M=0;M<this.__instances.length;M++)this.__detachInstance(M);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.N.connectedCallback=function(){qES.prototype.connectedCallback.call(this);Tre()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var M=(0,_.Ik)((0,_.Ik)(this).parentNode),q=0;q<this.__instances.length;q++)this.__attachInstance(q,M);this.__chunkingId&&this.__render()}};
_.N.__ensureTemplatized=function(){var M=this;if(!this.__ctor){var q=this.template=this._templateInfo?this:this.querySelector("template");if(!q){var G=new MutationObserver(function(){if(M.querySelector("template"))G.disconnect(),M.__render();else throw Error("Rd");});
G.observe(this,{childList:!0});return!1}var K={};K[this.as]=!0;K[this.indexAs]=!0;K[this.itemsIndexAs]=!0;this.__ctor=M3(q,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:K,forwardHostProp:function(n,E){for(var p=this.__instances,y=0,Y=void 0;y<p.length&&(Y=p[y]);y++)Y.forwardHostProp(n,E)},
notifyInstanceProp:function(n,E,p){l$w(this.as,E)&&(n=n[this.itemsIndexAs],E==this.as&&(this.items[n]=p),E=iR(this.as,"items."+n,E),this.notifyPath(E,p))}})}return!0};
_.N.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.N.__functionFromPropertyValue=function(M){if(typeof M==="string"){var q=this.__getMethodHost();return function(){return q[M].apply(q,arguments)}}return M};
_.N.__sortChanged=function(M){this.__sortFn=this.__functionFromPropertyValue(M);this.items&&this.__debounceRender(this.__render)};
_.N.__filterChanged=function(M){this.__filterFn=this.__functionFromPropertyValue(M);this.items&&this.__debounceRender(this.__render)};
_.N.__computeFrameTime=function(M){return Math.ceil(1E3/M)};
_.N.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.N.__handleObservedPaths=function(M){if(this.__sortFn||this.__filterFn)if(!M)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var q=this.__observePaths,G=0;G<q.length;G++)M.indexOf(q[G])===0&&this.__debounceRender(this.__render,this.delay)};
_.N.__itemsChanged=function(M){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(M.path,M.value)||(M.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.N.__debounceRender=function(M,q){q=q===void 0?0:q;this.__renderDebouncer=_.yd(this.__renderDebouncer,q>0?_.eD.after(q):Fn,M.bind(this));_.Lk(this.__renderDebouncer)};
_.N.render=function(){this.__debounceRender(this.__render);_.dF()};
_.N.__render=function(){var M=this;if(this.__ensureTemplatized()){var q=this.items||[],G=this.__sortAndFilterItems(q),K=this.__calculateLimit(G.length);this.__updateInstances(q,K,G);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){M.__chunkingId=null;M.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);F6&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.N.__sortAndFilterItems=function(M){for(var q=this,G=Array(M.length),K=0;K<M.length;K++)G[K]=K;this.__filterFn&&(G=G.filter(function(n,E,p){return q.__filterFn(M[n],E,p)}));
this.__sortFn&&G.sort(function(n,E){return q.__sortFn(M[n],M[E])});
return G};
_.N.__calculateLimit=function(M){var q=M,G=this.__instances.length;if(this.initialCount){var K;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(q=Math.min(M,this.initialCount),this.__chunkCount=(K=Math.max(q-G,0))||1):(K=Math.min(Math.max(M-G,0),this.__chunkCount),q=Math.min(G+K,M));this.__shouldMeasureChunk=K===this.__chunkCount;this.__shouldContinueChunking=q<M;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return q};
_.N.__continueChunking=function(){if(this.__shouldMeasureChunk){var M=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/M*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.N.__updateInstances=function(M,q,G){var K=this.__itemsIdxToInstIdx={},n;for(n=0;n<q;n++){var E=this.__instances[n],p=G[n],y=M[p];K[p]=n;E?(E._setPendingProperty(this.as,y),E._setPendingProperty(this.indexAs,n),E._setPendingProperty(this.itemsIndexAs,p),E._flushProperties()):this.__insertInstance(y,n,p)}for(M=this.__instances.length-1;M>=n;M--)this.__detachAndRemoveInstance(M)};
_.N.__detachInstance=function(M){M=this.__instances[M];for(var q=(0,_.Ik)(M.root),G=0;G<M.children.length;G++)q.appendChild(M.children[G]);return M};
_.N.__attachInstance=function(M,q){q.insertBefore(this.__instances[M].root,this)};
_.N.__detachAndRemoveInstance=function(M){this.__detachInstance(M);this.__instances.splice(M,1)};
_.N.__stampInstance=function(M,q,G){var K={};K[this.as]=M;K[this.indexAs]=q;K[this.itemsIndexAs]=G;return new this.__ctor(K)};
_.N.__insertInstance=function(M,q,G){M=this.__stampInstance(M,q,G);G=(G=this.__instances[q+1])?G.children[0]:this;(0,_.Ik)((0,_.Ik)(this).parentNode).insertBefore(M.root,G);return this.__instances[q]=M};
_.N._showHideChildren=function(M){for(var q=0;q<this.__instances.length;q++)this.__instances[q]._showHideChildren(M)};
_.N.__handleItemPath=function(M,q){var G=M.slice(6),K=G.indexOf(".");M=K<0?G:G.substring(0,K);if(M==parseInt(M,10)){G=K<0?"":G.substring(K+1);this.__handleObservedPaths(G);if(M=this.__instances[this.__itemsIdxToInstIdx[M]])M._setPendingPropertyOrPath(this.as+(G?"."+G:""),q,!1,!0),M._flushProperties();return!0}};
_.N.itemForElement=function(M){return(M=this.modelForElement(M))&&M[this.as]};
_.N.indexForElement=function(M){return(M=this.modelForElement(M))&&M[this.indexAs]};
_.N.modelForElement=function(M){return E1Y(this.template,M)};
_.Yd.Object.defineProperties(t_,{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:t_.prototype.__sortChanged},filter:{type:Function,observer:t_.prototype.__filterChanged},observe:{type:String,observer:t_.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!F6,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.*)"]}}});
t_.prototype._setRenderedItemCount=function(){};
customElements.define(t_.is,t_);Polymer.DomRepeat=t_;var GE$=function(M,q){var G=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=M;this.callback=q;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){G._schedule()};
this.connect();this._schedule()},KYS=function(M){var q=(0,_.Ik)(M);
if(KY(M))return q.assignedNodes({flatten:!0});M=[];for(var G=0;G<q.childNodes.length;G++){var K=q.childNodes[G];KY(K)?M.push.apply(M,_.Ui((0,_.Ik)(K).assignedNodes({flatten:!0}))):M.push(K)}return M};
_.N=GE$.prototype;_.N.connect=function(){var M=this;KY(this._target)?this._listenSlots([this._target]):(0,_.Ik)(this._target).children&&(this._listenSlots((0,_.Ik)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(q){M._processMutations(q)}):(this._nativeChildrenObserver=new MutationObserver(function(q){M._processMutations(q)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.N.disconnect=function(){KY(this._target)?this._unlistenSlots([this._target]):(0,_.Ik)(this._target).children&&(this._unlistenSlots((0,_.Ik)(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};
_.N._schedule=function(){var M=this;this._scheduled||(this._scheduled=!0,Fn.run(function(){return M.flush()}))};
_.N._processMutations=function(M){this._processSlotMutations(M);this.flush()};
_.N._processSlotMutations=function(M){if(M)for(var q=0;q<M.length;q++){var G=M[q];G.addedNodes&&this._listenSlots(G.addedNodes);G.removedNodes&&this._unlistenSlots(G.removedNodes)}};
_.N.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 M={target:this._target,addedNodes:[],removedNodes:[]},q=KYS(this._target),G=nWs(q,this._effectiveNodes),K=0,n=void 0;K<G.length&&(n=G[K]);K++)for(var E=0,p=void 0;E<n.removed.length&&(p=n.removed[E]);E++)M.removedNodes.push(p);
K=0;for(n=void 0;K<G.length&&(n=G[K]);K++)for(E=n.index;E<n.index+n.addedCount;E++)M.addedNodes.push(q[E]);this._effectiveNodes=q;q=!1;if(M.addedNodes.length||M.removedNodes.length)q=!0,this.callback.call(this._target,M);return q};
_.N._listenSlots=function(M){for(var q=0;q<M.length;q++){var G=M[q];KY(G)&&G.addEventListener("slotchange",this._boundSchedule)}};
_.N._unlistenSlots=function(M){for(var q=0;q<M.length;q++){var G=M[q];KY(G)&&G.removeEventListener("slotchange",this._boundSchedule)}};var hQ=Element.prototype,nj8=hQ.matches||hQ.matchesSelector||hQ.mozMatchesSelector||hQ.msMatchesSelector||hQ.oMatchesSelector||hQ.webkitMatchesSelector,Ejv=function(M,q){return nj8.call(M,q)},nY=function(M){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(M);
this.node=M},yjB;
_.N=nY.prototype;_.N.observeNodes=function(M){return new GE$(this.node,M)};
_.N.unobserveNodes=function(M){M.disconnect()};
_.N.notifyObserver=function(){};
_.N.deepContains=function(M){if((0,_.Ik)(this.node).contains(M))return!0;var q=M;for(M=M.ownerDocument;q&&q!==M&&q!==this.node;)q=(0,_.Ik)(q).parentNode||(0,_.Ik)(q).host;return q===this.node};
_.N.getOwnerRoot=function(){return(0,_.Ik)(this.node).getRootNode()};
_.N.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Ik)(this.node).assignedNodes({flatten:!0}):[]};
_.N.getDestinationInsertionPoints=function(){for(var M=[],q=(0,_.Ik)(this.node).assignedSlot;q;)M.push(q),q=(0,_.Ik)(q).assignedSlot;return M};
_.N.importNode=function(M,q){return(0,_.Ik)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(M,q)};
_.N.getEffectiveChildNodes=function(){return KYS(this.node)};
_.N.queryDistributedElements=function(M){for(var q=this.getEffectiveChildNodes(),G=[],K=0,n=q.length,E=void 0;K<n&&(E=q[K]);K++)E.nodeType===Node.ELEMENT_NODE&&Ejv(E,M)&&G.push(E);return G};
_.Yd.Object.defineProperties(nY.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var M=this.node;return M._activeElement!==void 0?M._activeElement:M.activeElement}}});
var tQ=function(M){this.event=M};
_.Yd.Object.defineProperties(tQ.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 N7p=nY;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var kEd=window.ShadyDOM.Wrapper,pbf=function(){return kEd.apply(this,arguments)||this};
_.l(pbf,kEd);Object.getOwnPropertyNames(nY.prototype).forEach(function(M){M!="activeElement"&&M!="constructor"&&(pbf.prototype[M]=nY.prototype[M])});
kmY(pbf.prototype,["classList"]);N7p=pbf;Object.defineProperties(tQ.prototype,{localTarget:{get:function(){var M=this.event.currentTarget;M=M&&_.YD(M).getOwnerRoot();for(var q=this.path,G=0;G<q.length;G++){var K=q[G];if(_.YD(K).getOwnerRoot()===M)return K}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else Nli(),kmY(nY.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),p7s();yjB=N7p;_.YD=function(M){M=M||document;if(M instanceof N7p)return M;if(M instanceof tQ)return M;var q=M.__domApi;q||(M instanceof Event?q=new tQ(M):q=new N7p(M),M.__domApi=q);return q};var LY$=/:host\(:dir\((ltr|rtl)\)\)/g,YEB=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,WY2=/:dir\((?:ltr|rtl)\)/,Ajf=!(!window.ShadyDOM||!window.ShadyDOM.inUse),N3=[],O5=null,EU="",dYf=$r(function(M){Ajf||O5||(EU=document.documentElement.getAttribute("dir"),O5=new MutationObserver(yDj),O5.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var q=w49(M);M=function(){var G=q.call(this)||this;G.__autoDirOptOut=!1;return G};
_.l(M,q);M._processStyleText=function(G,K){G=q._processStyleText.call(this,G,K);!Ajf&&WY2.test(G)&&(G=this._replaceDirInCssText(G),this.__activateDir=!0);return G};
M._replaceDirInCssText=function(G){G=G.replace(LY$,':host([dir="$1"])');return G=G.replace(YEB,':host([dir="$2"]) $1')};
M.prototype.ready=function(){q.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
M.prototype.connectedCallback=function(){q.prototype.connectedCallback&&q.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(O5&&O5.takeRecords().length&&yDj(),N3.push(this),this.__autoDirOptOut||this.setAttribute("dir",EU))};
M.prototype.disconnectedCallback=function(){q.prototype.disconnectedCallback&&q.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var G=N3.indexOf(this);G>-1&&N3.splice(G,1)}};
M.__activateDir=!1;return M});var vjM=function(M){for(;M;){var q=Object.getOwnPropertyDescriptor(M,"observedAttributes");if(q)return q.get;M=Object.getPrototypeOf(M.prototype).constructor}return function(){return[]}};
$r(function(M){var q=qO(M),G=vjM(q);M=function(){return q.call(this)||this};
_.l(M,q);M.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:q.prototype._initializeProperties.call(this)};
M.prototype._enableProperties=function(){this.__isUpgradeDisabled||q.prototype._enableProperties.call(this)};
M.prototype._canApplyPropertyDefault=function(K){return q.prototype._canApplyPropertyDefault.call(this,K)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(K))};
M.prototype.attributeChangedCallback=function(K,n,E,p){K=="disable-upgrade"?this.__isUpgradeDisabled&&E==null&&(q.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Ik)(this).isConnected&&q.prototype.connectedCallback.call(this)):q.prototype.attributeChangedCallback.call(this,K,n,E,p)};
M.prototype.connectedCallback=function(){this.__isUpgradeDisabled||q.prototype.connectedCallback.call(this)};
M.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||q.prototype.disconnectedCallback.call(this)};
_.Yd.Object.defineProperties(M,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return G.call(this).concat("disable-upgrade")}}});
return M});var kd=!1,Yvj=[],pY=[];var v1y=window.ShadyDOM,hWF=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Ou$):document.readyState==="interactive"||document.readyState==="complete"?Ou$():window.addEventListener("DOMContentLoaded",Ou$);var ahs=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=""},w7$=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,CZi=/@import[^;]*;/gim,cDe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,g1F=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,BlF=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,QTi=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,PZi=/^@[^\s]*keyframes/,
X7y=/\s+/g;var Ihy={};var JDw=Promise.resolve();var hxM=new Set;var t5x=/;\s*/m,Olf=/^\s*(initial)|(inherit)\s*$/,wbp=/\s*!important/,Cmx=function(){this._map={}};
Cmx.prototype.set=function(M,q){M=M.trim();this._map[M]={properties:q,dependants:{}}};
Cmx.prototype.get=function(M){M=M.trim();return this._map[M]||null};
var ag$=null,wF=function(){this._measureElement=this._currentElement=null;this._map=new Cmx};
_.N=wF.prototype;_.N.detectMixin=function(M){M=Usp.test(M)||bTM.test(M);Usp.lastIndex=0;bTM.lastIndex=0;return M};
_.N.transformTemplate=function(M,q){if(M._gatheredStyle===void 0){var G=[];for(var K=M.content.querySelectorAll("style"),n=0;n<K.length;n++){var E=K[n];if(E.hasAttribute("shady-unscoped")){if(!dKF){var p=E.textContent;if(!hxM.has(p)){hxM.add(p);var y=document.createElement("style");y.setAttribute("shady-unscoped","");y.textContent=p;document.head.appendChild(y)}E.parentNode.removeChild(E)}}else G.push(E.textContent),E.parentNode.removeChild(E)}(G=G.join("").trim())?(K=document.createElement("style"),
K.textContent=G,M.content.insertBefore(K,M.content.firstChild),G=K):G=null;M._gatheredStyle=G}return(M=M._gatheredStyle)?this.JSC$11271_transformStyle(M,q):null};
_.N.JSC$11271_transformStyle=function(M,q){q=q===void 0?"":q;var G=xnY(M);this.transformRules(G,q);M.textContent=Uni(G);return G};
_.N.transformCustomStyle=function(M){var q=this,G=xnY(M);mni(G,function(K){K.selector===":root"&&(K.selector="html");q.transformRule(K)});
M.textContent=Uni(G);return G};
_.N.transformRules=function(M,q){var G=this;this._currentElement=q;mni(M,function(K){G.transformRule(K)});
this._currentElement=null};
_.N.transformRule=function(M){M.cssText=ojM(this,M.parsedCssText,M);M.selector===":root"&&(M.selector=":host > *")};
var ojM=function(M,q,G){q=q.replace(bTM,function(K,n,E,p){return M._produceCssProperties(K,n,E,p,G)});
return M._consumeCssProperties(q,G)};
_.N=wF.prototype;_.N._getInitialValueForProperty=function(M){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(M)};
_.N._fallbacksFromPreviousRules=function(M){for(var q=this,G=M;G.parent;)G=G.parent;var K={},n=!1;mni(G,function(E){(n=n||E===M)||E.selector===M.selector&&Object.assign(K,q._cssTextToMap(E.parsedCssText))});
return K};
_.N._consumeCssProperties=function(M,q){for(var G;G=Usp.exec(M);){var K=G[0],n=G[1];G=G.index;var E=G+K.indexOf("@apply"),p=G+K.length;K=M.slice(0,E);M=M.slice(p);E=q?this._fallbacksFromPreviousRules(q):{};Object.assign(E,this._cssTextToMap(K));n=this._atApplyToCssProperties(n,E);M=K+n+M;Usp.lastIndex=G+n.length}return M};
_.N._atApplyToCssProperties=function(M,q){M=M.replace(t5x,"");var G=[],K=this._map.get(M);K||(this._map.set(M,{}),K=this._map.get(M));if(K){this._currentElement&&(K.dependants[this._currentElement]=!0);var n,E=K.properties;for(n in E){var p=q&&q[n];K=[n,": var(",M,"_-_",n];p&&K.push(",",p.replace(wbp,""));K.push(")");wbp.test(E[n])&&K.push(" !important");G.push(K.join(""))}}return G.join("; ")};
_.N._replaceInitialOrInherit=function(M,q){var G=Olf.exec(q);G&&(q=G[1]?this._getInitialValueForProperty(M):"apply-shim-inherit");return q};
_.N._cssTextToMap=function(M,q){q=q===void 0?!1:q;M=M.split(";");for(var G,K,n={},E=0;E<M.length;E++)if(G=M[E])K=G.split(":"),K.length>1&&(G=K[0].trim(),K=K.slice(1).join(":"),q&&(K=this._replaceInitialOrInherit(G,K)),n[G]=K);return n};
_.N._invalidateMixinEntry=function(M){if(ag$)for(var q in M.dependants)q!==this._currentElement&&ag$(q)};
_.N._produceCssProperties=function(M,q,G,K,n){var E=this;G&&Svy(G,function(a,g){g&&E._map.get(g)&&(K="@apply "+g+";")});
if(!K)return M;var p=this._consumeCssProperties(""+K,n);n=M.slice(0,M.indexOf("--"));var y=p=this._cssTextToMap(p,!0),Y=this._map.get(q),A=Y&&Y.properties;A?y=Object.assign(Object.create(A),p):this._map.set(q,y);var v=[],h,t=!1;for(h in y){var O=p[h];O===void 0&&(O="initial");!A||h in A||(t=!0);v.push(q+"_-_"+h+": "+O)}t&&this._invalidateMixinEntry(Y);Y&&(Y.properties=y);G&&(n=M+";"+n);return n+v.join("; ")+";"};
wF.prototype.detectMixin=wF.prototype.detectMixin;wF.prototype.transformStyle=wF.prototype.JSC$11271_transformStyle;wF.prototype.transformCustomStyle=wF.prototype.transformCustomStyle;wF.prototype.transformRules=wF.prototype.transformRules;wF.prototype.transformRule=wF.prototype.transformRule;wF.prototype.transformTemplate=wF.prototype.transformTemplate;wF.prototype._separator="_-_";Object.defineProperty(wF.prototype,"invalidCallback",{get:function(){return ag$},
set:function(M){ag$=M}});var Ck=new wF,lgl=function(){this.customStyleInterface=null;Ck.invalidCallback=Dnu},ae=function(M){!M.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(M.customStyleInterface=window.ShadyCSS.CustomStyleInterface,M.customStyleInterface.transformCallback=function(q){Ck.transformCustomStyle(q)},M.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){M.customStyleInterface.enqueued&&M.flushCustomStyles()})})};
_.N=lgl.prototype;_.N.prepareTemplate=function(M,q){ae(this);Tl4(M)===""&&(Ihy[q]=M,q=Ck.transformTemplate(M,q),M._styleAst=q)};
_.N.flushCustomStyles=function(){ae(this);if(this.customStyleInterface){var M=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var q=0;q<M.length;q++){var G=this.customStyleInterface.getStyleForCustomStyle(M[q]);G&&Ck.transformCustomStyle(G)}this.customStyleInterface.enqueued=!1}}};
_.N.styleSubtree=function(M,q){ae(this);q&&kOD(M,q);if(M.shadowRoot)for(this.styleElement(M),M=M.shadowRoot.children||M.shadowRoot.childNodes,q=0;q<M.length;q++)this.styleSubtree(M[q]);else for(M=M.children||M.childNodes,q=0;q<M.length;q++)this.styleSubtree(M[q])};
_.N.styleElement=function(M){ae(this);var q=M.localName,G;q?q.indexOf("-")>-1?G=q:G=M.getAttribute&&M.getAttribute("is")||"":G=M.is;q=Ihy[G];if(!(q&&Tl4(q)!==""||!q||uW$(q))){if(uW$(q)||q._applyShimValidatingVersion!==q._applyShimNextVersion)this.prepareTemplate(q,G),Zuj(q);if(M=M.shadowRoot)if(M=M.querySelector("style"))M.__cssRules=q._styleAst,M.textContent=Uni(q._styleAst)}};
_.N.styleDocument=function(M){ae(this);this.styleSubtree(document.body,M)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var oe=new lgl,Xb2=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(M,q){oe.flushCustomStyles();oe.prepareTemplate(M,q)},
prepareTemplateStyles:function(M,q,G){window.ShadyCSS.prepareTemplate(M,q,G)},
prepareTemplateDom:function(){},
styleSubtree:function(M,q){oe.flushCustomStyles();oe.styleSubtree(M,q)},
styleElement:function(M){oe.flushCustomStyles();oe.styleElement(M)},
styleDocument:function(M){oe.flushCustomStyles();oe.styleDocument(M)},
getComputedStyleValue:function(M,q){return phj(M,q)},
flushCustomStyles:function(){oe.flushCustomStyles()},
nativeCss:buY,nativeShadow:dKF,cssBuild:LY,disableRuntime:msv};Xb2&&(window.ShadyCSS.CustomStyleInterface=Xb2)}window.ShadyCSS.ApplyShim=Ck;var PmJ;PmJ=window.ShadyCSS;_.lM=$r(function(M){M=FX$(qO(M));var q=B4J?M:dYf(M),G=vjM(q),K={x:"pan-x",y:"pan-y",none:"none",all:"auto"};M=function(){return q.call(this)||this};
_.l(M,q);M.prototype.created=function(){};
M.prototype.__attributeReaction=function(n,E,p){(this.__dataAttributes&&this.__dataAttributes[n]||n==="disable-upgrade")&&this.attributeChangedCallback(n,E,p,null)};
M.prototype.setAttribute=function(n,E){if(KXv&&!this._legacyForceObservedAttributes){var p=this.getAttribute(n);q.prototype.setAttribute.call(this,n,E);this.__attributeReaction(n,p,String(E))}else q.prototype.setAttribute.call(this,n,E)};
M.prototype.removeAttribute=function(n){if(KXv&&!this._legacyForceObservedAttributes){var E=this.getAttribute(n);q.prototype.removeAttribute.call(this,n);this.__attributeReaction(n,E,null)}else q.prototype.removeAttribute.call(this,n)};
M.prototype._enableProperties=function(){this.__isUpgradeDisabled||q.prototype._enableProperties.call(this)};
M.prototype._canApplyPropertyDefault=function(n){return q.prototype._canApplyPropertyDefault.call(this,n)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(n))};
M.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(q.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
M.prototype.attached=function(){};
M.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(q.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
M.prototype.detached=function(){};
M.prototype.attributeChangedCallback=function(n,E,p,y){E!==p&&(n=="disable-upgrade"?this.__isUpgradeDisabled&&p==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Ik)(this).isConnected&&this.connectedCallback()):(q.prototype.attributeChangedCallback.call(this,n,E,p,y),this.attributeChanged(n,E,p)))};
M.prototype.attributeChanged=function(){};
M.prototype._initializeProperties=function(){if(eU&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var n=Object.getPrototypeOf(this);n.hasOwnProperty("__hasRegisterFinished")||(this._registered(),n.__hasRegisterFinished=!0);q.prototype._initializeProperties.call(this);this.root=this;this.created();KXv&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
M.prototype._takeAttributes=function(){for(var n=this.attributes,E=0,p=n.length;E<p;E++){var y=n[E];this.__attributeReaction(y.name,null,y.value)}};
M.prototype._registered=function(){};
M.prototype.ready=function(){this._ensureAttributes();q.prototype.ready.call(this)};
M.prototype._ensureAttributes=function(){};
M.prototype._applyListeners=function(){};
M.prototype.serialize=function(n){return this._serializeValue(n)};
M.prototype.deserialize=function(n,E){return this._deserializeValue(n,E)};
M.prototype.reflectPropertyToAttribute=function(n,E,p){this._propertyToAttribute(n,E,p)};
M.prototype.serializeValueToAttribute=function(n,E,p){this._valueToNodeAttribute(p||this,n,E)};
M.prototype.extend=function(n,E){if(!n||!E)return n||E;for(var p=Object.getOwnPropertyNames(E),y=0,Y=void 0;y<p.length&&(Y=p[y]);y++){var A=Object.getOwnPropertyDescriptor(E,Y);A&&Object.defineProperty(n,Y,A)}return n};
M.prototype.mixin=function(n,E){for(var p in E)n[p]=E[p];return n};
M.prototype.chainObject=function(n,E){n&&E&&n!==E&&(n.__proto__=E);return n};
M.prototype.instanceTemplate=function(n){n=this.constructor._contentForTemplate(n);return document.importNode(n,!0)};
M.prototype.fire=function(n,E,p){p=p||{};E=E===null||E===void 0?{}:E;n=new Event(n,{bubbles:p.bubbles===void 0?!0:p.bubbles,cancelable:!!p.cancelable,composed:p.composed===void 0?!0:p.composed});n.detail=E;(0,_.Ik)(p.node||this).dispatchEvent(n);return n};
M.prototype.listen=function(n,E,p){n=n||this;var y=this.__boundListeners||(this.__boundListeners=new WeakMap),Y=y.get(n);Y||(Y={},y.set(n,Y));y=E+p;Y[y]||(Y[y]=this._addMethodEventListenerToNode(n,E,p,this))};
M.prototype.unlisten=function(n,E,p){n=n||this;var y=this.__boundListeners&&this.__boundListeners.get(n);p=E+p;var Y=y&&y[p];Y&&(this._removeEventListenerFromNode(n,E,Y),y[p]=null)};
M.prototype.setScrollDirection=function(n,E){_.Vw(E||this,K[n]||"auto")};
M.prototype.$$=function(n){return this.root.querySelector(n)};
M.prototype.distributeContent=function(){var n=_.YD(this);window.ShadyDOM&&n.shadowRoot&&ShadyDOM.flush()};
M.prototype.getEffectiveChildNodes=function(){return _.YD(this).getEffectiveChildNodes()};
M.prototype.queryDistributedElements=function(n){return _.YD(this).queryDistributedElements(n)};
M.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(n){return n.nodeType===Node.ELEMENT_NODE})};
M.prototype.getEffectiveTextContent=function(){for(var n=this.getEffectiveChildNodes(),E=[],p=0,y;y=n[p];p++)y.nodeType!==Node.COMMENT_NODE&&E.push(y.textContent);return E.join("")};
M.prototype.queryEffectiveChildren=function(n){return(n=this.queryDistributedElements(n))&&n[0]};
M.prototype.queryAllEffectiveChildren=function(n){return this.queryDistributedElements(n)};
M.prototype.getContentChildNodes=function(n){return(n=this.root.querySelector(n||"slot"))?_.YD(n).getDistributedNodes():[]};
M.prototype.getContentChildren=function(n){return this.getContentChildNodes(n).filter(function(E){return E.nodeType===Node.ELEMENT_NODE})};
M.prototype.isLightDescendant=function(n){return this!==n&&(0,_.Ik)(this).contains(n)&&(0,_.Ik)(this).getRootNode()===(0,_.Ik)(n).getRootNode()};
M.prototype.isLocalDescendant=function(n){return this.root===(0,_.Ik)(n).getRootNode()};
M.prototype.scopeSubtree=function(n,E){return t$F(n,E===void 0?!1:E)};
M.prototype.getComputedStyleValue=function(n){return PmJ.getComputedStyleValue(this,n)};
M.prototype.debounce=function(n,E,p){this._debouncers=this._debouncers||{};return this._debouncers[n]=_.yd(this._debouncers[n],p>0?_.eD.after(p):Fn,E.bind(this))};
M.prototype.isDebouncerActive=function(n){this._debouncers=this._debouncers||{};n=this._debouncers[n];return!(!n||!n.isActive())};
M.prototype.flushDebouncer=function(n){this._debouncers=this._debouncers||{};(n=this._debouncers[n])&&n.flush()};
M.prototype.cancelDebouncer=function(n){this._debouncers=this._debouncers||{};(n=this._debouncers[n])&&n.cancel()};
M.prototype.async=function(n,E){return E>0?_.eD.run(n.bind(this),E):~Fn.run(n.bind(this))};
M.prototype.cancelAsync=function(n){n<0?Fn.cancel(~n):_.eD.cancel(n)};
M.prototype.create=function(n,E){n=document.createElement(n);if(E)if(n.setProperties)n.setProperties(E);else for(var p in E)n[p]=E[p];return n};
M.prototype.elementMatches=function(n,E){return Ejv(E||this,n)};
M.prototype.toggleAttribute=function(n,E){var p=this;arguments.length===3&&(p=arguments[2]);arguments.length==1&&(E=!p.hasAttribute(n));if(E)return(0,_.Ik)(p).setAttribute(n,""),!0;(0,_.Ik)(p).removeAttribute(n);return!1};
M.prototype.toggleClass=function(n,E,p){p=p||this;arguments.length==1&&(E=!p.classList.contains(n));E?p.classList.add(n):p.classList.remove(n)};
M.prototype.transform=function(n,E){E=E||this;E.style.webkitTransform=n;E.style.transform=n};
M.prototype.translate3d=function(n,E,p,y){this.transform("translate3d("+n+","+E+","+p+")",y||this)};
M.prototype.arrayDelete=function(n,E){if(Array.isArray(n)){if(E=n.indexOf(E),E>=0)return n.splice(E,1)}else if(E=g_(this,n).indexOf(E),E>=0)return this.splice(n,E,1);return null};
M.prototype._logger=function(n,E){Array.isArray(E)&&E.length===1&&Array.isArray(E[0])&&(E=E[0]);switch(n){case "log":case "warn":case "error":console[n].apply(console,_.Ui(E))}};
M.prototype._log=function(){this._logger("log",_.rW.apply(0,arguments))};
M.prototype._warn=function(){this._logger("warn",_.rW.apply(0,arguments))};
M.prototype._error=function(){this._logger("error",_.rW.apply(0,arguments))};
M.prototype._logf=function(n){return["[%s::%s]",this.is,n].concat(_.Ui(_.rW.apply(1,arguments)))};
_.Yd.Object.defineProperties(M.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var n=(0,_.Ik)(this).getRootNode();return n instanceof DocumentFragment?n.host:n}}});
_.Yd.Object.defineProperties(M,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return KXv&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],hYy(this.prototype)),this.__observedAttributes):G.call(this).concat("disable-upgrade")}}});
M.prototype.is="";return M});Polymer.FlattenedNodesObserver=GE$;Polymer.DomApi=yjB;Polymer.EventApi=tQ;Polymer.dom=_.YD;Polymer.dom.matchesSelector=Ejv;Polymer.dom.flush=_.dF;Polymer.dom.addDebouncer=_.Lk;Polymer.DirMixin=dYf;Polymer.RenderStatus={beforeNextRender:_.dny,afterNextRender:_.yb,flush:function(){for(;Yvj.length||pY.length;)L6u(Yvj),L6u(pY);kd=!1}};Polymer.LegacyElementMixin=_.lM;var ild;ild=WW._mutablePropertyChange;var cjS={properties:{mutableData:Boolean},_shouldPropertyChange:function(M,q,G){return ild(this,M,q,G,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(M,q,G){return ild(this,M,q,G,!0)}};
Polymer.OptionalMutableDataBehavior=cjS;var rDy={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},F6i={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},fhy=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},F6i),gj8=(0,_.lM)(HTMLElement),FNH=function(M,q){M||console.warn("Polymer.Class requires `info` argument");q=q?q(gj8):gj8;q=HuF(M,q,M.behaviors);q.is=q.prototype.is=
M.is;return q};Polymer.Class=FNH;Polymer.mixinBehaviors=function(M,q){return HuF({},(0,_.lM)(q),M)};
Polymer.GenerateClassFromInfo=HuF;_.h_=function(M){var q=typeof M==="function"?M:_.h_.Class(M);M._legacyForceObservedAttributes&&(q.prototype._legacyForceObservedAttributes=M._legacyForceObservedAttributes);customElements.define(q.is,q);return q};
_.h_.Class=FNH;Polymer._polymerFn=_.h_;var B7l=window.onLegacyPolymerFunctionDefinedCallback;B7l&&B7l();var ePD={templatize:function(M,q){this._templatizerTemplate=M;this.ctor=M3(M,this,{mutableData:!!q,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(M){return new this.ctor(M)},
modelForElement:function(M){return E1Y(this._templatizerTemplate,M)}};Polymer.Templatizer=ePD;_.XX=(0,_.lM)(HTMLElement).prototype;Polymer.Base=_.XX;var $nF=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.WG=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.l(_.WG,PolymerFakeBaseClass);var Ah=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.l(Ah,PolymerFakeBaseClass);var s5w=Symbol("Sd"),k$F=[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 QMJ=QMJ||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Ig8;(function(M){function q(S,m,R){var se=V.get(S);if(!se){if(!R)return;se=new J;V.set(S,se)}S=se.get(m);if(!S){if(!R)return;S=new J;se.set(m,S)}return S}
function G(S,m,R){if(K(S,m,R))return!0;m=t(m);return m!==null?G(S,m,R):!1}
function K(S,m,R){m=q(m,R,!1);return m===void 0?!1:!!m.has(S)}
function n(S,m,R){if(K(S,m,R))return E(S,m,R);m=t(m);if(m!==null)return n(S,m,R)}
function E(S,m,R){m=q(m,R,!1);if(m!==void 0)return m.get(S)}
function p(S,m){var R=y(S,m);S=t(S);if(S===null)return R;var se=p(S,m);if(se.length<=0)return R;if(R.length<=0)return se;m=new Z;S=[];R=_.k(R);for(var yY=R.next();!yY.done;yY=R.next())yY=yY.value,m.has(yY)||(m.add(yY),S.push(yY));R=_.k(se);for(se=R.next();!se.done;se=R.next())se=se.value,m.has(se)||(m.add(se),S.push(se));return S}
function y(S,m){S=q(S,m,!1);var R=[];S&&S.forEach(function(se,yY){return R.push(yY)});
return R}
function Y(S){return S===void 0}
function A(S){return typeof S==="object"?S!==null:typeof S==="function"}
function v(S){return typeof S==="function"}
function h(S){return typeof S==="symbol"?S:String(S)}
function t(S){var m=Object.getPrototypeOf(S);if(typeof S!=="function"||S===D||m!==D)return m;var R=Object.getPrototypeOf(S.prototype);if(R==null||R===Object.prototype)return m;R=R.constructor;return typeof R!=="function"||R===S?m:R}
function O(){function S(){this._keys=[];this._values=[];this._cache=m}
var m={};S.prototype={get size(){return this._keys.length},has:function(R){return R===this._cache?!0:this._find(R)>=0?(this._cache=R,!0):!1},
get:function(R){var se=this._find(R);if(se>=0)return this._cache=R,this._values[se]},
set:function(R,se){this.delete(R);this._keys.push(R);this._values.push(se);this._cache=R;return this},
delete:function(R){R=this._find(R);return R>=0?(this._keys.splice(R,1),this._values.splice(R,1),this._cache=m,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=m},
forEach:function(R){for(var se=this.size,yY=0;yY<se;++yY){var d$=this._keys[yY],cy=this._values[yY];this._cache=d$;R.call(this,cy,d$,this)}},
_find:function(R){for(var se=this._keys,yY=se.length,d$=0;d$<yY;++d$)if(se[d$]===R)return d$;return-1}};
return S}
function a(){function S(){this._map=new J}
S.prototype={get size(){return this._map.length},has:function(m){return this._map.has(m)},
add:function(m){this._map.set(m,m);return this},
delete:function(m){return this._map.delete(m)},
clear:function(){this._map.clear()},
forEach:function(m,R){this._map.forEach(m,R)}};
return S}
function g(){function S(){this._key=R()}
function m(ay,bH){for(var iH=0;iH<bH;++iH)ay[iH]=Math.random()*255|0}
function R(){do{if(yY)var ay=yY.randomBytes(16);else typeof Uint8Array==="function"?(ay=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(ay):m(ay,16)):(ay=Array(16),m(ay,16));ay[6]=ay[6]&79|64;ay[8]=ay[8]&191|128;for(var bH="",iH=0;iH<16;++iH){var oI=ay[iH];if(iH===4||iH===6||iH===8)bH+="-";oI<16&&(bH+="0");bH+=oI.toString(16).toLowerCase()}ay="@@WeakMap@@"+bH}while(d$.call(cy,ay));cy[ay]=!0;return ay}
function se(ay,bH){if(!d$.call(ay,t4)){if(!bH)return;Object.defineProperty(ay,t4,{value:Object.create(null)})}return ay[t4]}
var yY=typeof global!=="undefined"&&typeof QMJ==="object"&&typeof require==="function"&&require("crypto"),d$=Object.prototype.hasOwnProperty,cy={},t4=R();S.prototype={has:function(ay){return(ay=se(ay,!1))?this._key in ay:!1},
get:function(ay){if(ay=se(ay,!1))return ay[this._key]},
set:function(ay,bH){se(ay,!0)[this._key]=bH;return this},
delete:function(ay){return(ay=se(ay,!1))&&this._key in ay?delete ay[this._key]:!1},
clear:function(){this._key=R()}};
return S}
var D=Object.getPrototypeOf(Function),J=typeof Map==="function"?Map:O(),Z=typeof Set==="function"?Set:a(),V=new (typeof WeakMap==="function"?WeakMap:g());M.decorate=function(S,m,R,se){if(Y(se)){if(Y(R)){if(!Array.isArray(S))throw new TypeError;if(!v(m))throw new TypeError;for(R=S.length-1;R>=0;--R)if(se=(0,S[R])(m),!Y(se)){if(!v(se))throw new TypeError;m=se}return m}if(!Array.isArray(S))throw new TypeError;if(!A(m))throw new TypeError;R=h(R);for(se=S.length-1;se>=0;--se)(0,S[se])(m,R)}else{if(Array.isArray(S))if(A(m)){if(Y(R))throw new TypeError;
if(!A(se))throw new TypeError;}else throw new TypeError;else throw new TypeError;R=h(R);for(var yY=S.length-1;yY>=0;--yY){var d$=(0,S[yY])(m,R,se);if(!Y(d$)){if(!A(d$))throw new TypeError;se=d$}}return se}};
M.metadata=function(S,m){return function(R,se){if(Y(se)){if(!v(R))throw new TypeError;q(R,void 0,!0).set(S,m)}else{if(!A(R))throw new TypeError;se=h(se);q(R,se,!0).set(S,m)}}};
M.defineMetadata=function(S,m){var R;if(A(m))Y(R)||(R=h(R));else throw new TypeError;q(m,R,!0).set("parameters",S)};
M.hasMetadata=function(S,m,R){if(A(m))Y(R)||(R=h(R));else throw new TypeError;return G(S,m,R)};
M.hasOwnMetadata=function(S,m,R){if(A(m))Y(R)||(R=h(R));else throw new TypeError;return K(S,m,R)};
M.getMetadata=function(S,m,R){if(A(m))Y(R)||(R=h(R));else throw new TypeError;return n(S,m,R)};
M.getOwnMetadata=function(S,m,R){if(A(m))Y(R)||(R=h(R));else throw new TypeError;return E(S,m,R)};
M.getMetadataKeys=function(S,m){if(A(S))Y(m)||(m=h(m));else throw new TypeError;return p(S,m)};
M.getOwnMetadataKeys=function(S,m){if(A(S))Y(m)||(m=h(m));else throw new TypeError;return y(S,m)};
M.deleteMetadata=function(S,m,R){if(A(m))Y(R)||(R=h(R));else throw new TypeError;var se=q(m,R,!1);if(!Y(se)){if(!se.delete(S))return!1;if(se.size>0)return!0;S=V.get(m);S.delete(R);if(S.size>0)return!0;V.delete(m);return!0}};
(function(S){if(typeof S.Reflect!=="undefined"){if(S.Reflect!==M)for(var m in M)S.Reflect[m]=M[m]}else S.Reflect=M})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Ig8||(Ig8={}));var XeY=self;var DY9=[0,_.Zh,_.x1,_.Zh];var ugf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ugf,_.kC);var Jj$=_.t9(ugf,[0,_.j$,_.Tm,DY9,_.x1,_.RT]);var blv=[0,_.Vj,-3,_.RT,_.j$,_.Zh,_.L5p,_.Vj,W58,ksx,IT,_.bZ,_.Zh,function(){return Zld},
_.x1],Zld=[0,_.Tm,function(){return blv},
_.j$,14,_.Vj];_.TO(_.dh,_.uI);_.N=_.dh.prototype;_.N.start=function(){this.stop();this.usingListeners_=!1;var M=UY2(this),q=xYl(this);M&&!q&&this.JSC$11314_win_.mozRequestAnimationFrame?(this.JSC$11314_id_=_.Yj(this.JSC$11314_win_,"MozBeforePaint",this.callback_),this.JSC$11314_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$11314_id_=M&&q?M.call(this.JSC$11314_win_,this.callback_):this.JSC$11314_win_.setTimeout(I2v(this.callback_),20)};
_.N.stop=function(){if(this.isActive()){var M=UY2(this),q=xYl(this);M&&!q&&this.JSC$11314_win_.mozRequestAnimationFrame?pl(this.JSC$11314_id_):M&&q?q.call(this.JSC$11314_win_,this.JSC$11314_id_):this.JSC$11314_win_.clearTimeout(this.JSC$11314_id_)}this.JSC$11314_id_=null};
_.N.fire=function(){this.stop();this.JSC$11316_doAction_()};
_.N.isActive=function(){return this.JSC$11314_id_!=null};
_.N.JSC$11316_doAction_=function(){this.usingListeners_&&this.JSC$11314_id_&&pl(this.JSC$11314_id_);this.JSC$11314_id_=null;this.JSC$11314_listener_.call(this.handler_,_.Sh())};
_.N.disposeInternal=function(){this.stop();_.dh.superClass_.disposeInternal.call(this)};
var UY2=function(M){M=M.JSC$11314_win_;return M.requestAnimationFrame||M.webkitRequestAnimationFrame||M.mozRequestAnimationFrame||M.oRequestAnimationFrame||M.msRequestAnimationFrame||null},xYl=function(M){M=M.JSC$11314_win_;
return M.cancelAnimationFrame||M.cancelRequestAnimationFrame||M.webkitCancelRequestAnimationFrame||M.mozCancelRequestAnimationFrame||M.oCancelRequestAnimationFrame||M.msCancelRequestAnimationFrame||null};_.qA=function(M,q,G){_.uI.call(this);this.JSC$11317_listener_=G!=null?M.bind(G):M;this.JSC$11317_interval_=q;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$11317_timer_=null};
_.l(_.qA,_.uI);_.N=_.qA.prototype;_.N.fire=function(M){this.args_=arguments;this.JSC$11317_timer_||this.pauseCount_?this.shouldFire_=!0:zxp(this)};
_.N.stop=function(){this.JSC$11317_timer_&&(_.Kj.clearTimeout(this.JSC$11317_timer_),this.JSC$11317_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.N.pause=function(){this.pauseCount_++};
_.N.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$11317_timer_||(this.shouldFire_=!1,zxp(this))};
_.N.disposeInternal=function(){_.uI.prototype.disposeInternal.call(this);this.stop()};
var zxp=function(M){M.JSC$11317_timer_=Xl(function(){M.JSC$11317_timer_=null;M.shouldFire_&&!M.pauseCount_&&(M.shouldFire_=!1,zxp(M))},M.JSC$11317_interval_);
var q=M.args_;M.args_=null;M.JSC$11317_listener_.apply(null,q)};var mYM=function(M,q){this.childIterator_=M[_.Kj.Symbol.iterator]();this.mapFn_=q};
mYM.prototype[Symbol.iterator]=function(){return this};
mYM.prototype.next=function(){var M=this.childIterator_.next();return{value:M.done?void 0:this.mapFn_.call(void 0,M.value),done:M.done}};
var SEM=function(M,q){return new mYM(M,q)};var T7l={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 WBY=function(M){var q=rjB(M);if(!q)throw Error("Wd`"+M);return q},rjB=function(M){var q={};
M=String(M);var G=M.charAt(0)=="#"?M:"#"+M;if(jM2.test(G))return q.hex=nbH(G),q.type="hex",q;G=hZ$(M);return G.length?(q.hex=SYe(G[0],G[1],G[2]),q.type="rgb",q):T7l&&(M=T7l[M.toLowerCase()])?(q.hex=M,q.type="named",q):null},V52=/#(.)(.)(.)/,nbH=function(M){if(!jM2.test(M))throw Error("Yd`"+M);
M.length==4&&(M=M.replace(V52,"#$1$1$2$2$3$3"));return M.toLowerCase()},APs=function(M){M=nbH(M);
M=parseInt(M.slice(1),16);return[M>>16,M>>8&255,M&255]},SYe=function(M,q,G){M=Number(M);
q=Number(q);G=Number(G);if(M!=(M&255)||q!=(q&255)||G!=(G&255))throw Error("Zd`"+M+"`"+q+"`"+G);q=M<<16|q<<8|G;return M<16?"#"+(16777216|q).toString(16).slice(1):"#"+q.toString(16)},jM2=/^#(?:[0-9a-f]{3}){1,2}$/i,RxB=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,hZ$=function(M){var q=M.match(RxB);
if(q){M=Number(q[1]);var G=Number(q[2]);q=Number(q[3]);if(M>=0&&M<=255&&G>=0&&G<=255&&q>=0&&q<=255)return[M,G,q]}return[]};var fgv={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},sz=fgv;sz=fgv;var ERy,FYI,HlI;ERy=function(M,q){switch(q){case 1:return M%4!=0||M%100==0&&M%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
FYI=function(M,q,G,K,n){M=new Date(M,q,G);n=n||0;return M.valueOf()+(((K!==void 0?K:3)-n+7)%7-((M.getDay()+6)%7-n+7)%7)*864E5};
_.PW=function(M,q,G){typeof M==="number"?(this.date=HlI(M,q||0,G||1),exS(this,G||1)):_.VY(M)?(this.date=HlI(M.getFullYear(),M.getMonth(),M.getDate()),exS(this,M.getDate())):(this.date=new Date(_.Sh()),M=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),exS(this,M))};
HlI=function(M,q,G){q=new Date(M,q,G);M>=0&&M<100&&q.setFullYear(q.getFullYear()-1900);return q};
_.N=_.PW.prototype;_.N.firstDayOfWeek_=sz.FIRSTDAYOFWEEK;_.N.firstWeekCutOffDay_=sz.FIRSTWEEKCUTOFFDAY;_.N.clone=function(){var M=new _.PW(this.date);M.firstDayOfWeek_=this.firstDayOfWeek_;M.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return M};
_.N.getFullYear=function(){return this.date.getFullYear()};
_.N.getYear=function(){return this.getFullYear()};
_.N.getMonth=function(){return this.date.getMonth()};
_.N.getDate=function(){return this.date.getDate()};
_.N.getTime=function(){return this.date.getTime()};
_.N.getDay=function(){return this.date.getDay()};
_.N.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.N.getUTCMonth=function(){return this.date.getUTCMonth()};
_.N.getUTCDate=function(){return this.date.getUTCDate()};
_.N.getUTCDay=function(){return this.date.getDay()};
_.N.getUTCHours=function(){return this.date.getUTCHours()};
_.N.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.N.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.N.set=function(M){this.date=new Date(M.getFullYear(),M.getMonth(),M.getDate())};
_.N.setFullYear=function(M){this.date.setFullYear(M)};
_.N.setYear=function(M){this.setFullYear(M)};
_.N.setMonth=function(M){this.date.setMonth(M)};
_.N.setDate=function(M){this.date.setDate(M)};
_.N.setTime=function(M){this.date.setTime(M)};
_.N.setUTCFullYear=function(M){this.date.setUTCFullYear(M)};
_.N.setUTCMonth=function(M){this.date.setUTCMonth(M)};
_.N.setUTCDate=function(M){this.date.setUTCDate(M)};
_.N.add=function(M){if(M.years||M.months){var q=this.getMonth()+M.months+M.years*12,G=this.getYear()+Math.floor(q/12);q%=12;q<0&&(q+=12);var K=Math.min(ERy(G,q),this.getDate());this.setDate(1);this.setFullYear(G);this.setMonth(q);this.setDate(K)}M.days&&(G=this.getYear(),q=G>=0&&G<=99?-1900:0,M=new Date((new Date(G,this.getMonth(),this.getDate(),12)).getTime()+M.days*864E5),this.setDate(1),this.setFullYear(M.getFullYear()+q),this.setMonth(M.getMonth()),this.setDate(M.getDate()),exS(this,M.getDate()))};
_.N.JSC$11330_toIsoString=function(M){var q=this.getFullYear(),G=q<0?"-":q>=1E4?"+":"";return[G+_.Me(Math.abs(q),G?6:4),_.Me(this.getMonth()+1,2),_.Me(this.getDate(),2)].join(M?"-":"")};
_.N.equals=function(M){return!(!M||this.getYear()!=M.getYear()||this.getMonth()!=M.getMonth()||this.getDate()!=M.getDate())};
_.N.toString=function(){return this.JSC$11330_toIsoString()};
var exS=function(M,q){M.getDate()!=q&&M.date.setUTCHours(M.date.getUTCHours()+(M.getDate()<q?1:-1))};
_.PW.prototype.valueOf=function(){return this.date.valueOf()};var cW=function(M,q,G,K,n){this.reversed=!!q;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!G;M&&iM(this,M,K);this.depth=n!=void 0?n:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.TO(cW,n$);var iM=function(M,q,G,K){if(M.node=q)M.tagType=typeof G==="number"?G:M.node.nodeType!=1?0:M.reversed?-1:1;typeof K==="number"&&(M.depth=K)};
_.N=cW.prototype;_.N.JSC$11345_copyFrom=function(M){this.node=M.node;this.tagType=M.tagType;this.depth=M.depth;this.reversed=M.reversed;this.constrained=M.constrained};
_.N.clone=function(){return new cW(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.N.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return E6;var M=this.node;var q=this.reversed?-1:1;if(this.tagType==q){var G=this.reversed?M.lastChild:M.firstChild;G?iM(this,G):iM(this,M,q*-1)}else(G=this.reversed?M.previousSibling:M.nextSibling)?iM(this,G):iM(this,M.parentNode,q*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(M=this.node)?Nq(M):E6};
_.N.equals=function(M){return M.node==this.node&&(!this.node||M.tagType==this.tagType)};
_.N.splice=function(M){var q=this.node,G=this.reversed?1:-1;this.tagType==G&&(this.tagType=G*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;cW.prototype.next.call(this);this.reversed=!this.reversed;G=_.TF(arguments[0])?arguments[0]:arguments;for(var K=G.length-1;K>=0;K--)_.gB(G[K],q);_.cX(q)};var $YB=function(){},gF=function(M){for(var q=[],G=M.getTextRangeCount(),K=0;K<G;K++)q.push(M.getTextRange(K));
return q};
$YB.prototype.isReversed=function(){return!1};
$YB.prototype.getWindow=function(){return SX(_.T9(this.JSC$11347_getStartNode()))};
var s2M=function(M,q){cW.call(this,M,q,!0)};
_.TO(s2M,cW);var BW=function(M,q,G,K,n){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!n;if(M){this.startNode_=M;this.startOffset_=q;this.endNode_=G;this.endOffset_=K;if(M.nodeType==1&&M.tagName!="BR")if(M=M.childNodes,q=M[q])this.startNode_=q,this.startOffset_=0;else{M.length&&(this.startNode_=_.uH(M));var E=!0}G.nodeType==1&&((this.endNode_=G.childNodes[K])?this.endOffset_=0:this.endNode_=G)}cW.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);E&&this.next()};
_.TO(BW,s2M);_.N=BW.prototype;_.N.JSC$11353_getStartNode=function(){return this.startNode_};
_.N.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)};
_.N.next=function(){return this.isLast()?E6:BW.superClass_.next.call(this)};
_.N.JSC$11345_copyFrom=function(M){this.startNode_=M.startNode_;this.endNode_=M.endNode_;this.startOffset_=M.startOffset_;this.endOffset_=M.endOffset_;this.isReversed_=M.isReversed_;BW.superClass_.JSC$11345_copyFrom.call(this,M)};
_.N.clone=function(){var M=new BW(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);M.JSC$11345_copyFrom(this);return M};var McI=function(){};
McI.prototype.__iterator__=function(){return new BW(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Qd=function(M){this.range_=M};
_.TO(Qd,McI);var qqv=function(M){var q=_.T9(M).createRange();if(M.nodeType==3)q.setStart(M,0),q.setEnd(M,M.length);else if(Pp(M)||M.nodeType==3){for(var G,K=M;(G=K.firstChild)&&(Pp(G)||G.nodeType==3);)K=G;q.setStart(K,0);for(K=M;(G=K.lastChild)&&(Pp(G)||G.nodeType==3);)K=G;q.setEnd(K,K.nodeType==1?K.childNodes.length:K.length)}else G=M.parentNode,M=Array.prototype.indexOf.call(G.childNodes,M),q.setStart(G,M),q.setEnd(G,M+1);return q},GMP=function(M,q,G,K){var n=_.T9(M).createRange();
n.setStart(M,q);n.setEnd(G,K);return n};
_.N=Qd.prototype;_.N.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.N.getContainer=function(){return this.range_.commonAncestorContainer};
_.N.compareBrowserRangeEndpoints=function(M,q,G){return this.range_.compareBoundaryPoints(G==1?q==1?_.Kj.Range.START_TO_START:_.Kj.Range.START_TO_END:q==1?_.Kj.Range.END_TO_START:_.Kj.Range.END_TO_END,M)};
_.N.isCollapsed=function(){return this.range_.collapsed};
_.N.select=function(M){this.selectInternal(SX(_.T9(this.range_.startContainer)).getSelection(),M)};
_.N.selectInternal=function(M){M.removeAllRanges();M.addRange(this.range_)};
_.N.insertNode=function(M,q){var G=this.range_.cloneRange();G.collapse(q);G.insertNode(M);G.detach();return M};
_.N.collapse=function(M){this.range_.collapse(M)};_.TO(vG,Qd);vG.prototype.selectInternal=function(M,q){!q||this.isCollapsed()?vG.superClass_.selectInternal.call(this,M,q):(M.collapse(this.range_.endContainer,this.range_.endOffset),M.extend(this.range_.startContainer,this.range_.startOffset))};_.TO(hh,Qd);hh.prototype.compareBrowserRangeEndpoints=function(M,q,G){return hh.superClass_.compareBrowserRangeEndpoints.call(this,M,q,G)};
hh.prototype.selectInternal=function(M,q){q?M.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):M.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var Kd$=function(M){return _.Hh?new hh(M):_.Fa?new vG(M):new Qd(M)};var Ie=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},nm2;
_.TO(Ie,$YB);nm2=function(M,q){var G=new Ie;G.browserRangeWrapper_=M;G.isReversed_=!!q;return G};
_.EmS=function(M){M=_.Hh?new hh(qqv(M)):_.Fa?new vG(qqv(M)):new Qd(qqv(M));return nm2(M)};
_.Dc=function(M,q,G,K){var n=new Ie;n.isReversed_=Nkp(M,q,G,K);if(_.kc(M)&&!Pp(M)){var E=M.parentNode;q=Array.prototype.indexOf.call(E.childNodes,M);M=E}_.kc(G)&&!Pp(G)&&(E=G.parentNode,K=Array.prototype.indexOf.call(E.childNodes,G),G=E);n.isReversed_?(n.startNode_=G,n.startOffset_=K,n.endNode_=M,n.endOffset_=q):(n.startNode_=M,n.startOffset_=q,n.endNode_=G,n.endOffset_=K);return n};
_.N=Ie.prototype;_.N.clone=function(){var M=new Ie;M.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();M.startNode_=this.startNode_;M.startOffset_=this.startOffset_;M.endNode_=this.endNode_;M.endOffset_=this.endOffset_;M.isReversed_=this.isReversed_;return M};
_.N.JSC$11347_getType=function(){return"text"};
_.N.getBrowserRangeObject=function(){return uM(this).range_};
_.N.getTextRangeCount=function(){return 1};
_.N.getTextRange=function(){return this};
var uM=function(M){var q;if(!(q=M.browserRangeWrapper_)){q=M.JSC$11347_getStartNode();var G=M.JSC$11347_getStartOffset(),K=M.JSC$11347_getEndNode(),n=M.JSC$11347_getEndOffset();q=_.Hh?new hh(GMP(q,G,K,n)):_.Fa?new vG(GMP(q,G,K,n)):new Qd(GMP(q,G,K,n));q=M.browserRangeWrapper_=q}return q};
_.N=Ie.prototype;_.N.getContainer=function(){return uM(this).getContainer()};
_.N.JSC$11347_getStartNode=function(){return this.startNode_||(this.startNode_=uM(this).range_.startContainer)};
_.N.JSC$11347_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=uM(this).range_.startOffset};
_.N.JSC$11347_getEndNode=function(){return this.endNode_||(this.endNode_=uM(this).range_.endContainer)};
_.N.JSC$11347_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=uM(this).range_.endOffset};
_.N.isReversed=function(){return this.isReversed_};
_.N.JSC$11347_containsRange=function(M,q){if(M.JSC$11347_getType()=="text"){var G=uM(this);M=uM(M);q=q&&!M.isCollapsed();M=M.range_;G=q?G.compareBrowserRangeEndpoints(M,0,1)>=0&&G.compareBrowserRangeEndpoints(M,1,0)<=0:G.compareBrowserRangeEndpoints(M,0,0)>=0&&G.compareBrowserRangeEndpoints(M,1,1)<=0}else G=!1;return G};
_.N.isCollapsed=function(){return uM(this).isCollapsed()};
_.N.JSC$11347_getText=function(){return uM(this).range_.toString()};
_.N.__iterator__=function(){return new BW(this.JSC$11347_getStartNode(),this.JSC$11347_getStartOffset(),this.JSC$11347_getEndNode(),this.JSC$11347_getEndOffset())};
_.N.select=function(){uM(this).select(this.isReversed_)};
_.N.JSC$11347_removeContents=function(){var M=uM(this).range_;M.extractContents();if(M.startContainer.hasChildNodes()&&(M=M.startContainer.childNodes[M.startOffset])){var q=M.previousSibling;cg2(M)==""&&_.cX(M);q&&cg2(q)==""&&_.cX(q)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.N.insertNode=function(M,q){M=uM(this).insertNode(M,q);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return M};
_.N.collapse=function(M){M=this.isReversed()?!M:M;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(M);M?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var kMf=function(){};
_.TO(kMf,$YB);kMf.prototype.JSC$11347_containsRange=function(M,q){var G=gF(this);M=gF(M);return(q?nA:_.TpF)(M,function(K){return nA(G,function(n){return n.JSC$11347_containsRange(K,q)})})};
kMf.prototype.insertNode=function(M,q){q?_.cp(M,this.JSC$11347_getStartNode()):_.gB(M,this.JSC$11347_getEndNode());return M};var pxx,yC2=Ig().JSC$9330_document_.documentElement;pxx=yC2.requestFullscreen?"fullscreenchange":yC2.webkitRequestFullscreen?"webkitfullscreenchange":yC2.mozRequestFullScreen?"mozfullscreenchange":yC2.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var LdS=function(){var M=Ig().JSC$9330_document_;return!!(M.webkitIsFullScreen||M.mozFullScreen||M.msFullscreenElement||M.fullscreenElement)};var JQ=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.TO(JQ,kMf);_.N=JQ.prototype;_.N.clone=function(){var M=new JQ;M.browserRanges_=_.Sw(this.browserRanges_);return M};
_.N.JSC$11347_getType=function(){return"mutli"};
_.N.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.N.getTextRangeCount=function(){return this.browserRanges_.length};
_.N.getTextRange=function(M){this.ranges_[M]||(this.ranges_[M]=nm2(Kd$(this.browserRanges_[M])));return this.ranges_[M]};
_.N.getContainer=function(){if(!this.container_){for(var M=[],q=this.getTextRangeCount(),G=0;G<q;G++)M.push(this.getTextRange(G).getContainer());this.container_=CCf.apply(null,M)}return this.container_};
var Zc=function(M){M.sortedRanges_||(M.sortedRanges_=gF(M),M.sortedRanges_.sort(function(q,G){var K=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();var n=G.JSC$11347_getStartNode();G=G.JSC$11347_getStartOffset();return K==n&&q==G?0:Nkp(K,q,n,G)?1:-1}));
return M.sortedRanges_};
_.N=JQ.prototype;_.N.JSC$11347_getStartNode=function(){return Zc(this)[0].JSC$11347_getStartNode()};
_.N.JSC$11347_getStartOffset=function(){return Zc(this)[0].JSC$11347_getStartOffset()};
_.N.JSC$11347_getEndNode=function(){return _.uH(Zc(this)).JSC$11347_getEndNode()};
_.N.JSC$11347_getEndOffset=function(){return _.uH(Zc(this)).JSC$11347_getEndOffset()};
_.N.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.N.JSC$11347_getText=function(){return gF(this).map(function(M){return M.JSC$11347_getText()}).join("")};
_.N.__iterator__=function(){return new bM(this)};
_.N.select=function(){var M=this.getWindow().getSelection();M.removeAllRanges();for(var q=this.getTextRangeCount(),G=0;G<q;G++)M.addRange(this.getTextRange(G).getBrowserRangeObject())};
_.N.JSC$11347_removeContents=function(){gF(this).forEach(function(M){M.JSC$11347_removeContents()})};
_.N.collapse=function(M){if(!this.isCollapsed()){var q=M?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;q.collapse(M);this.ranges_=[q];this.sortedRanges_=[q];this.browserRanges_=[q.getBrowserRangeObject()]}};
var bM=function(M){this.iterators_=null;this.currentIdx_=0;M&&(this.iterators_=Zc(M).map(function(q){return _.opJ(q)}));
cW.call(this,M?this.JSC$11353_getStartNode():null,!1,!0)};
_.TO(bM,s2M);_.N=bM.prototype;_.N.JSC$11353_getStartNode=function(){return this.iterators_[0].JSC$11353_getStartNode()};
_.N.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.N.next=function(){for(;this.currentIdx_<this.iterators_.length;){var M=this.iterators_[this.currentIdx_],q=M.next();if(q.done)this.currentIdx_++;else return iM(this,M.node,M.tagType,M.depth),q}return E6};
_.N.JSC$11345_copyFrom=function(M){this.iterators_=_.Sw(M.iterators_);bM.superClass_.JSC$11345_copyFrom.call(this,M)};
_.N.clone=function(){var M=new bM(null);M.JSC$11345_copyFrom(this);return M};var YqB,Nkp;_.fL=function(){var M=window.getSelection();return M&&YqB(M)};
YqB=function(M){var q=!1;if(M.createRange)try{var G=M.createRange()}catch(n){return null}else if(M.rangeCount){if(M.rangeCount>1){G=new JQ;q=M.rangeCount;for(var K=0;K<q;K++)G.browserRanges_.push(M.getRangeAt(K));return G}G=M.getRangeAt(0);q=Nkp(M.anchorNode,M.anchorOffset,M.focusNode,M.focusOffset)}else return null;return nm2(Kd$(G),q)};
_.U5=function(M,q){return _.Dc(M,q,M,q)};
_.xH=function(M,q,G,K){return _.Dc(M,q,G,K)};
Nkp=function(M,q,G,K){if(M==G)return K<q;var n;if(M.nodeType==1&&q)if(n=M.childNodes[q])M=n,q=0;else if(_.HX(M,G))return!0;if(G.nodeType==1&&K)if(n=G.childNodes[K])G=n,K=0;else if(_.HX(G,M))return!1;return(wcI(M,G)||q-K)>0};var zd=function(){_.w6.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.Ju)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.Ju)(this.dispatchProgressEvent_,this)};
_.TO(zd,_.w6);zd.prototype.abort=function(){try{this.reader_.abort()}catch(M){throw new clB(M,"aborting read");}};
zd.prototype.getError=function(){return this.reader_.error&&new clB(this.reader_.error,"reading file")};
zd.prototype.dispatchProgressEvent_=function(M){this.dispatchEvent(new gDS(M,this))};
zd.prototype.disposeInternal=function(){zd.superClass_.disposeInternal.call(this);delete this.reader_};
var ACJ=function(M){var q=new zd,G=Wdd(q);q.reader_.readAsArrayBuffer(M);return G},dA2=function(M){var q=new zd,G=Wdd(q);
q.reader_.readAsDataURL(M);return G},Wdd=function(M){var q=new r6;
M.listen("loadend",_.n7(function(G,K){var n=K.reader_.result,E=K.getError();n==null||E?G.errback(E):G.callback(n);K.dispose()},q,M));
return q};var mt=function(){_.w6.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$11387_eventHandler_=new _.OU(this);this.JSC$11387_isInitialized_=!1};
_.TO(mt,_.w6);var vmd=new _.Ao("d"),h4B=new _.Ao("beforedragstart"),tcd=new _.Ao("dragstart"),Opx=new _.Ao("beforedragmove"),wxv=new _.Ao("dragmove"),C8l=new _.Ao("beforedragend"),atP=new _.Ao("dragend"),omf=new _.Ao("e");mt.prototype.isDragging=function(){return!!this.JSC$11387_dragger_};
var ltl=function(M,q){q.dlgGrowthDirection_=0;q.dlgDragHoverClass_=void 0;q.dlgDragPermission=0;M.dragLists_.push(q)},XxP=function(M,q){M.getHandleForDragItem_=q};
mt.prototype.init=function(){if(!this.JSC$11387_isInitialized_){for(var M=this.dragLists_.length,q=0;q<M;q++)for(var G=_.Bp(this.dragLists_[q]),K=G.length,n=0;n<K;++n){var E=G[n],p=this.getHandleForDragItem_(E),y=_.Fi(p);this.dragItemForHandle_[y]=E;this.dragItemHoverClasses_&&(this.JSC$11387_eventHandler_.listen(E,"mouseover",this.handleDragItemMouseover_),this.JSC$11387_eventHandler_.listen(E,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$11387_eventHandler_.listen(p,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$11387_eventHandler_.listen(p,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(E);this.JSC$11387_eventHandler_.listen(p,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$11387_isInitialized_=!0}};
mt.prototype.disposeInternal=function(){this.JSC$11387_eventHandler_.dispose();for(var M=this.dragLists_.length,q=0;q<M;q++){var G=this.dragLists_[q];G.dlgGrowthDirection_=void 0;G.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;P8M(this);mt.superClass_.disposeInternal.call(this)};
var ip9=function(M,q){for(var G=M.dragLists_.length,K=0;K<G;K++){var n=M.dragLists_[K];n.dlgBounds_=Acy(n)}G=M.dragItems_.length;for(K=0;K<G;K++)n=M.dragItems_[K],n!=q&&(n.dlgBounds_=Acy(n))};
_.N=mt.prototype;
_.N.handlePotentialDragStart_=function(M){var q=_.Fi(M.currentTarget);q=this.dragItemForHandle_[q];if(q.parentElement.dlgDragPermission!=2){this.currDragItem_=q;a:{q=this.currDragItem_;for(var G=q.cloneNode(!0),K=BX("TEXTAREA",q),n=BX("TEXTAREA",G),E=0;E<K.length;E++)n[E].value=K[E].value;switch(q.tagName){case "TR":q=_.lo("TABLE",null,_.lo("TBODY",null,G));break a;case "TD":case "TH":q=_.lo("TABLE",null,_.lo("TBODY",null,_.lo("TR",null,G)));break a;case "TEXTAREA":G.value=q.value;default:q=G;break a}q=
void 0}this.draggerEl_=q;this.draggerElClasses_&&S8(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.T9(this.currDragItem_).body.appendChild(this.draggerEl_);G=_.rq(this.currDragItem_);q=this.draggerEl_;K=_.rq(q);if(G instanceof _.mK){var p=G.y;G=G.x}Jc(q,q.offsetLeft+(G-K.x),q.offsetTop+(Number(p)-K.y));this.JSC$11387_dragger_=new _.Jq(this.draggerEl_);_.iYv(this.JSC$11387_dragger_,this.hysteresisDistance_);
_.Yj(this.JSC$11387_dragger_,"start",this.handleDragStart_,!1,this);_.Yj(this.JSC$11387_dragger_,"end",this.handleDragEnd_,!1,this);_.Yj(this.JSC$11387_dragger_,"earlycancel",this.JSC$11389_cleanup_,!1,this);this.dispatchEvent(new S9(vmd,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11387_dragger_));this.JSC$11387_dragger_.startDrag(M)}};
_.N.handleDragStart_=function(M){if(this.dispatchEvent(new S9(h4B,this,M.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.hq2(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?S8(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var q=uQ2(this.draggerEl_);this.draggerEl_.halfWidth=q.width/2;this.draggerEl_.halfHeight=q.height/2;q=this.draggerEl_.getBoundingClientRect();
var G=M.clientY,K=chd(this.JSC$11387_dragger_,M.clientX);if(K>q.right){var n=this.currDragItem_.getBoundingClientRect();this.JSC$11387_dragger_.deltaX=K-(K-n.left)/n.width*q.width}G=gdP(this.JSC$11387_dragger_,G);G>q.bottom&&(this.JSC$11387_dragger_.deltaY+=G-q.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";ip9(this,this.currDragItem_);this.currDragItem_.style.display="";_.Yj(this.JSC$11387_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new S9(tcd,
this,M.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$11387_dragger_))}else M.preventDefault(),this.JSC$11389_cleanup_()};
_.N.handleDragMove_=function(M){var q=_.rq(this.draggerEl_);q=new _.mK(q.x+this.draggerEl_.halfWidth,q.y+this.draggerEl_.halfHeight);a:{var G=null;if(this.currDragItem_.style.display!="none"){G=this.currDragItem_.parentNode;var K=Acy(G);if(cCp(q,K))break a}K=this.dragLists_.length;for(var n=0;n<K;n++){var E=this.dragLists_[n];if(E!=G&&cCp(q,E.dlgBounds_)){G=E;break a}}G=null}if(G){if(G==null)throw Error("$d");K=0;n=!1;E=void 0;switch(G.dlgGrowthDirection_){case 0:K=q.y;var p=gm$;var y=BkM;break;case 4:n=
!0;case 2:K=q.x;p=Q2d;y=BkM;break;case 5:n=!0;case 3:K=q.x,p=Itx,y=DA8}for(var Y=null,A,v=_.Bp(G),h=v.length,t=0;t<h;t++){var O=v[t];if(O!=this.currDragItem_){var a=p(O.dlgBounds_);if(n){var g=uYS(O,q);E===void 0&&(E=g);y(K,a)&&(A==void 0||g<E||g==E&&(y(a,A)||a==A))&&(Y=O,A=a);g<E&&(E=g)}else y(K,a)&&(A==void 0||y(a,A))&&(Y=O,A=a)}}p=Y!==null&&uYS(Y,q)>E?null:Y}else p=null;if(!this.dispatchEvent(new S9(Opx,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11387_dragger_,q,G,p)))return!1;if(G&&G.dlgDragPermission!=
1)this.currDragItem_.parentNode==G&&_.hq2(this.currDragItem_)==p||G.insertBefore(this.currDragItem_,p),this.currDragItem_.style.display="",G.dlgDragHoverClass_&&_.Zg(G,G.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",y=this.dragLists_.length,A=0;A<y;A++)K=this.dragLists_[A],K.dlgDragHoverClass_&&_.um(K,K.dlgDragHoverClass_);G!=this.currHoverList_&&(this.currHoverList_=G,ip9(this,this.currDragItem_));this.dispatchEvent(new S9(wxv,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11387_dragger_,
q,G,p));return!1};
_.N.JSC$11389_cleanup_=function(){P8M(this);this.JSC$11387_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var M=this.dragLists_.length,q=0;q<M;q++)this.dragLists_[q].dlgBounds_=null;M=this.dragItems_.length;for(q=0;q<M;q++)this.dragItems_[q].dlgBounds_=null};
_.N.handleDragEnd_=function(M){if(!this.dispatchEvent(new S9(C8l,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11387_dragger_)))return!1;P8M(this);this.dispatchEvent(new S9(atP,this,M,this.currDragItem_,this.draggerEl_,this.JSC$11387_dragger_));this.JSC$11389_cleanup_();return!0};
var P8M=function(M){_.ka(M.JSC$11387_dragger_);var q=M.draggerEl_&&M.draggerEl_.parentElement;M.draggerEl_&&_.cX(M.draggerEl_);M.currDragItem_&&M.currDragItem_.style.display=="none"&&(M.origList_.insertBefore(M.currDragItem_,M.origNextItem_),M.currDragItem_.style.display="");M.currDragItemClasses_&&M.currDragItem_?X29(M.currDragItem_,M.currDragItemClasses_||[]):M.currDragItem_&&(M.currDragItem_.style.visibility="");for(var G=M.dragLists_.length,K=0;K<G;K++){var n=M.dragLists_[K];n.dlgDragHoverClass_&&
_.um(n,n.dlgDragHoverClass_)}q&&M.dispatchEvent(new S9(omf,M,null,M.currDragItem_,M.draggerEl_,M.JSC$11387_dragger_))};
_.N=mt.prototype;_.N.getHandleForDragItem_=function(M){return M};
_.N.handleDragItemMouseover_=function(M){S8(M.currentTarget,this.dragItemHoverClasses_||[])};
_.N.handleDragItemMouseout_=function(M){X29(M.currentTarget,this.dragItemHoverClasses_||[])};
_.N.handleDragItemHandleMouseover_=function(M){S8(M.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.N.handleDragItemHandleMouseout_=function(M){X29(M.currentTarget,this.dragItemHandleHoverClasses_||[])};
var cCp=function(M,q){return M.x>q.left&&M.x<q.left+q.width&&M.y>q.top&&M.y<q.top+q.height},uYS=function(M,q){M=M.dlgBounds_;
return Math.abs(q.y-(M.top+(M.height-1)/2))},gm$=function(M){return M.top+M.height-1},Q2d=function(M){return M.left+M.width-1},Itx=function(M){return M.left||0},BkM=function(M,q){return M<q},DA8=function(M,q){return M>q},S9=function(M,q,G,K,n,E){_.d6.call(this,M);
this.event=G;this.currDragItem=K;this.draggerEl=n;this.JSC$11391_dragger=E};
_.TO(S9,_.d6);_.TO(wh,_.uI);var JC2=new _.mK(0,0);wh.prototype.JSC$11395_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
wh.prototype.JSC$11395_onMouseMove=function(M){var q=this.containerIsActuallyContent_?JC2:Q1(Ig(this.containerNode_)),G=this.horizontalScrolling_?this.calculateScrollDelta(M.clientX+q.x,this.scrollBounds_.left,this.scrollBounds_.width):0,K=this.calculateScrollDelta(M.clientY+q.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=G;this.scrollDelta_.y=K;!(G=!G&&!K)&&(G=this.constrainScroll_)&&(G=M.clientX+q.x,M=M.clientY+q.y,q=this.containerBounds_,G=!(q.left<=G&&q.left+q.width>=
G&&q.top<=M&&q.top+q.height>=M));G?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
wh.prototype.calculateScrollDelta=function(M,q,G){var K=0;M<q?K=-8:M>q+G&&(K=8);return K};
wh.prototype.disposeInternal=function(){wh.superClass_.disposeInternal.call(this);this.JSC$11393_eventHandler_.dispose();this.scrollTimer_.dispose()};var ZpP={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"}}},Td=ZpP;Td=ZpP;var rF={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 bpf=function(){},Jn=function(M){if(typeof M=="number"){var q=new bpf;
q.standardOffset_=M;var G=M;if(G==0)G="Etc/GMT";else{var K=["Etc/GMT",G<0?"-":"+"];G=Math.abs(G);K.push(Math.floor(G/60)%100);G%=60;G!=0&&K.push(":",_.Me(G,2));G=K.join("")}q.timeZoneId_=G;G=M;G==0?G="UTC":(K=["UTC",G<0?"+":"-"],G=Math.abs(G),K.push(Math.floor(G/60)%100),G%=60,G!=0&&K.push(":",G),G=K.join(""));M=UA2(M);q.tzNames_=[G,G];q.tzNamesExt_={STD_LONG_NAME_GMT:M,STD_GENERIC_LOCATION:M};q.transitions_=[];return q}q=new bpf;q.timeZoneId_=M.id;q.standardOffset_=-M.std_offset;q.tzNames_=M.names;
q.tzNamesExt_=M.names_ext;q.transitions_=M.transitions;return q},UA2=function(M){var q=["GMT"];
q.push(M<=0?"+":"-");M=Math.abs(M);q.push(_.Me(Math.floor(M/60)%100,2),":",_.Me(M%60,2));return q.join("")},xAd=function(M,q){q=Date.UTC(q.getUTCFullYear(),q.getUTCMonth(),q.getUTCDate(),q.getUTCHours(),q.getUTCMinutes())/36E5;
for(var G=0;G<M.transitions_.length&&q>=M.transitions_[G];)G+=2;return G==0?0:M.transitions_[G-1]},z4M=function(M,q){M=M.standardOffset_-xAd(M,q);
return M===-1440?0:M};var ZS=function(M,q){this.patternParts_=[];this.JSC$11406_dateTimeSymbols_=q||sz;typeof M=="number"?mAp(this,M):Sqf(this,M)},TkM=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],j9=function(M){return M.getHours?M.getHours():0},Sqf=function(M,q){for($Iu&&(q=q.replace(/\u200f/g,""));q;){for(var G=q,K=0;K<TkM.length;++K){var n=q.match(TkM[K]);
if(n){var E=n[0];q=q.substring(E.length);K==0&&(E=="''"?E="'":(E=E.substring(1,n[1]=="'"?E.length-1:E.length),E=E.replace(/''/g,"'")));M.patternParts_.push({text:E,type:K});break}}if(G===q)throw Error("ae`"+q);}};
ZS.prototype.format=function(M,q){if(!M)throw Error("be");var G=q?(M.getTimezoneOffset()-z4M(q,M))*6E4:0,K=G?new Date(M.getTime()+G):M,n=K;q&&K.getTimezoneOffset()!=M.getTimezoneOffset()&&(K=new Date(K.getTime()+(K.getTimezoneOffset()-M.getTimezoneOffset())*6E4),n=new Date(M.getTime()+(G+(G>0?-864E5:864E5))));G=[];for(var E=0;E<this.patternParts_.length;++E){var p=this.patternParts_[E].text;1==this.patternParts_[E].type?G.push(rCp(this,p,M,K,n,q)):G.push(p)}return G.join("")};
var mAp=function(M,q){if(q<4)var G=M.JSC$11406_dateTimeSymbols_.DATEFORMATS[q];else if(q<8)G=M.JSC$11406_dateTimeSymbols_.TIMEFORMATS[q-4];else if(q<12)G=M.JSC$11406_dateTimeSymbols_.DATETIMEFORMATS[q-8],G=G.replace("{1}",M.JSC$11406_dateTimeSymbols_.DATEFORMATS[q-8]),G=G.replace("{0}",M.JSC$11406_dateTimeSymbols_.TIMEFORMATS[q-8]);else if(q===12)G=M.JSC$11406_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(q===13)G=M.JSC$11406_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{mAp(M,10);return}Sqf(M,G)},Vd=function(M,q){q=String(q);
M=M.JSC$11406_dateTimeSymbols_||sz;if(M.ZERODIGIT!==void 0&&!e6D){for(var G=[],K=0;K<q.length;K++){var n=q.charCodeAt(K);G.push(48<=n&&n<=57?String.fromCharCode(M.ZERODIGIT+n-48):q.charAt(K))}q=G.join("")}return q},e6D=!1,$Iu=!1,Vc8=function(M,q,G,K){G=G.getFullYear();
G<=0&&K&&(G=1-G);return Vd(M,j2v(G,q))},j2v=function(M,q){q==2&&(M%=100);
M<0&&q++;return _.Me(M,q)},Re=function(M){if(!(M.getHours&&M.getSeconds&&M.getMinutes))throw Error("ce");
},R4x=function(M,q){Re(q);
q=j9(q);return M.JSC$11406_dateTimeSymbols_.AMPMS[q>=12&&q<24?1:0]},rCp=function(M,q,G,K,n,E){var p=q.length;
switch(q.charAt(0)){case "G":return G=K.getFullYear()>0?1:0,p>=4?M.JSC$11406_dateTimeSymbols_.ERANAMES[G]:M.JSC$11406_dateTimeSymbols_.ERAS[G];case "y":return Vc8(M,p,K,!0);case "Y":return G=(new Date(FYI(K.getFullYear(),K.getMonth(),K.getDate(),M.JSC$11406_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,M.JSC$11406_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),p==2&&(G%=100),Vd(M,j2v(G,p));case "u":return Vc8(M,p,K,!1);case "M":a:switch(G=K.getMonth(),p){case 5:p=M.JSC$11406_dateTimeSymbols_.NARROWMONTHS[G];
break a;case 4:p=M.JSC$11406_dateTimeSymbols_.MONTHS[G];break a;case 3:p=M.JSC$11406_dateTimeSymbols_.SHORTMONTHS[G];break a;default:p=Vd(M,_.Me(G+1,p))}return p;case "k":return Re(n),Vd(M,_.Me(j9(n)||24,p));case "S":return Vd(M,(n.getMilliseconds()/1E3).toFixed(Math.min(3,p)).slice(2)+(p>3?_.Me(0,p-3):""));case "E":return G=K.getDay(),p>=4?M.JSC$11406_dateTimeSymbols_.WEEKDAYS[G]:M.JSC$11406_dateTimeSymbols_.SHORTWEEKDAYS[G];case "a":return R4x(M,n);case "b":return R4x(M,n);case "B":return R4x(M,
n);case "h":return Re(n),Vd(M,_.Me(j9(n)%12||12,p));case "K":return Re(n),Vd(M,_.Me(j9(n)%12,p));case "H":return Re(n),Vd(M,_.Me(j9(n),p));case "c":a:switch(G=K.getDay(),p){case 5:p=M.JSC$11406_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[G];break a;case 4:p=M.JSC$11406_dateTimeSymbols_.STANDALONEWEEKDAYS[G];break a;case 3:p=M.JSC$11406_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[G];break a;default:p=Vd(M,_.Me(G,1))}return p;case "L":a:switch(G=K.getMonth(),p){case 5:p=M.JSC$11406_dateTimeSymbols_.STANDALONENARROWMONTHS[G];
break a;case 4:p=M.JSC$11406_dateTimeSymbols_.STANDALONEMONTHS[G];break a;case 3:p=M.JSC$11406_dateTimeSymbols_.STANDALONESHORTMONTHS[G];break a;default:p=Vd(M,_.Me(G+1,p))}return p;case "Q":return G=Math.floor(K.getMonth()/3),p<4?M.JSC$11406_dateTimeSymbols_.SHORTQUARTERS[G]:M.JSC$11406_dateTimeSymbols_.QUARTERS[G];case "d":return Vd(M,_.Me(K.getDate(),p));case "m":return Re(n),Vd(M,_.Me(n.getMinutes?n.getMinutes():0,p));case "s":return Re(n),Vd(M,_.Me(n.getSeconds(),p));case "v":return(E||Jn(G.getTimezoneOffset())).timeZoneId_;
case "V":return M=E||Jn(G.getTimezoneOffset()),p<=2?M.timeZoneId_:xAd(M,G)>0?M.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?M.tzNamesExt_.DST_GENERIC_LOCATION:M.tzNamesExt_.DST_GENERIC_LOCATION:M.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?M.tzNamesExt_.STD_GENERIC_LOCATION:M.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return G=FYI(n.getFullYear(),n.getMonth(),n.getDate(),M.JSC$11406_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,M.JSC$11406_dateTimeSymbols_.FIRSTDAYOFWEEK),Vd(M,_.Me(Math.floor(Math.round((G-(new Date((new Date(G)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,p));case "z":return M=E||Jn(G.getTimezoneOffset()),p<4?M.tzNames_[xAd(M,G)>0?2:0]:M.tzNames_[xAd(M,G)>0?3:1];case "Z":return q=E||Jn(G.getTimezoneOffset()),p<4?(p=-z4M(q,G),M=[p<0?"-":"+"],p=Math.abs(p),M.push(_.Me(Math.floor(p/60)%100,2),_.Me(p%60,2)),p=M.join("")):p=Vd(M,UA2(z4M(q,G))),p;default:return""}};var ftv=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Fdv=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,Qpw=function(M){this.patternParts_=[];this.JSC$11415_dateTimeSymbols_=sz;if(typeof M=="number"){M>11&&(M=10);if(M<4)var q=this.JSC$11415_dateTimeSymbols_.DATEFORMATS[M];else M<8?q=this.JSC$11415_dateTimeSymbols_.TIMEFORMATS[M-4]:(q=this.JSC$11415_dateTimeSymbols_.DATETIMEFORMATS[M-8],q=q.replace("{1}",this.JSC$11415_dateTimeSymbols_.DATEFORMATS[M-8]),q=q.replace("{0}",this.JSC$11415_dateTimeSymbols_.TIMEFORMATS[M-
8]));Hpd(this,q)}else Hpd(this,M)},Hpd=function(M,q){for(var G=!1,K="",n=0;n<q.length;n++){var E=q.charAt(n);
if(ftv.test(E))for(K.length>0&&(M.patternParts_.push({text:K,count:0,abutStart:!1,numeric:!1}),K=""),M.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});n<q.length-1&&q.charAt(n+1)==" ";)n++;else if(G)E=="'"?n+1<q.length&&q.charAt(n+1)=="'"?(K+="'",n++):G=!1:K+=E;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(E)>=0){K.length>0&&(M.patternParts_.push({text:K,count:0,abutStart:!1,numeric:!1}),K="");for(var p=q.charAt(n),y=n+1;y<q.length&&q.charAt(y)==p;)y++;p=y-n;p<=0?y=!1:(y="MydhHmsSDkK".indexOf(E),
y=y>0||y==0&&p<3);M.patternParts_.push({text:E,count:p,abutStart:!1,numeric:y});n+=p-1}else E=="'"?n+1<q.length&&q.charAt(n+1)=="'"?(K+="'",n++):G=!0:K+=E}K.length>0&&M.patternParts_.push({text:K,count:0,abutStart:!1,numeric:!1});q=!1;for(G=0;G<M.patternParts_.length;G++)M.patternParts_[G].numeric?!q&&G+1<M.patternParts_.length&&M.patternParts_[G+1].numeric&&(q=!0,M.patternParts_[G].abutStart=!0):q=!1};
Qpw.prototype.parse=function(M,q,G){var K=!1,n=!1;G&&(K=G.predictive||!1,n=G.validate||!1);if(K)for(G=0;G<this.patternParts_.length;G++){var E=this.patternParts_[G];if(E.count>0&&("abBhHkKm".indexOf(E.text.charAt(0))<0||E.count>2||E.abutStart))throw Error("de`"+E.text.charAt(0));}E=new e4M;G=[0];E.dayPeriodIndex=-1;for(var p=0;p<this.patternParts_.length&&!(K&&G[0]>=M.length);p++){if(this.patternParts_[p].count==0){a:{var y=M;var Y=G,A=this.patternParts_[p],v=K;if(A.text.match(ftv)!=null){if(A=Y[0],
$AP(y,Y),Y[0]>A){y=!0;break a}}else{if(y.indexOf(A.text,Y[0])==Y[0]){Y[0]+=A.text.length;y=!0;break a}if(v&&A.text.indexOf(y.substring(Y[0]))==0){Y[0]+=y.length-Y[0];y=!0;break a}}y=!1}if(y)continue;return 0}if(this.patternParts_[p].abutStart){a:{Y=M;A=G;v=p;var h=A[0],t=0;for(y=v;y<this.patternParts_.length;y++){var O=this.patternParts_[y],a=O.count;if(a===0)break;if(y==v&&(a-=t,t++,a==0)){y=0;break a}var g=y>v&&O.numeric,D=A[0];if(!sZS(this,Y,A,O,a,E,!1)||g&&A[0]-D<a)y=v-1,A[0]=h}y-=v}if(y<=0)return 0;
p+=y-1}else if(!sZS(this,M,G,this.patternParts_[p],0,E,K))return 0}a:{M=n;if(q==null)throw Error("ee");E.era!=void 0&&E.year!=void 0&&E.era==0&&E.year>0&&(E.year=-(E.year-1));E.year!=void 0&&q.setFullYear(E.year);K=q.getDate();q.setDate(1);E.month!=void 0&&q.setMonth(E.month);E.day!=void 0?q.setDate(E.day):(n=ERy(q.getFullYear(),q.getMonth()),q.setDate(K>n?n:K));typeof q.setHours==="function"&&(E.hours==void 0&&(E.hours=q.getHours()),E.hours<12&&(E.ampm!=void 0&&E.ampm>0?E.hours+=12:E.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(E.dayPeriodName)||["night1","night2"].includes(E.dayPeriodName)&&E.hours>=6)&&(E.hours+=12)),q.setHours(E.hours));typeof q.setMinutes==="function"&&E.minutes!=void 0&&q.setMinutes(E.minutes);typeof q.setSeconds==="function"&&E.seconds!=void 0&&q.setSeconds(E.seconds);typeof q.setMilliseconds==="function"&&E.milliseconds!=void 0&&q.setMilliseconds(E.milliseconds);if(M&&(E.year&&E.year!=q.getFullYear()||E.month&&E.month!=
q.getMonth()||E.day&&E.day!=q.getDate()||E.hours&&E.hours>=24||E.minutes&&E.minutes>=60||E.seconds&&E.seconds>=60||E.milliseconds&&E.milliseconds>=1E3))q=!1;else{E.tzOffset!=void 0&&q.setTime(q.getTime()+(E.tzOffset-q.getTimezoneOffset())*60*1E3);E.ambiguousYear&&(M=new Date,M.setFullYear(M.getFullYear()-80),q.getTime()<M.getTime()&&q.setFullYear(M.getFullYear()+100));if(E.dayOfWeek!=void 0)if(E.day==void 0)E=(7+E.dayOfWeek-q.getDay())%7,E>3&&(E-=7),M=q.getMonth(),q.setDate(q.getDate()+E),q.getMonth()!=
M&&q.setDate(q.getDate()+(E>0?-7:7));else if(E.dayOfWeek!=q.getDay()){q=!1;break a}q=!0}}return q?G[0]:0};
var sZS=function(M,q,G,K,n,E,p){$AP(q,G);if(K.numeric&&n>0&&G[0]+n>q.length)return!1;switch(K.text.charAt(0)){case "G":return fk(q,G,[M.JSC$11415_dateTimeSymbols_.ERAS],function(y){return E.era=y}),!0;
case "M":case "L":return MsI(M,q,G,n,K,E);case "E":return fk(q,G,[M.JSC$11415_dateTimeSymbols_.WEEKDAYS,M.JSC$11415_dateTimeSymbols_.SHORTWEEKDAYS],function(y){return E.dayOfWeek=y});
case "B":case "b":return n=[],M=[[].concat(M.JSC$11415_dateTimeSymbols_.AMPMS)],n.push("isAm"),n.push("isPm"),q=fk(q,G,M,function(y){return E.dayPeriodIndex=y},p),E.dayPeriodName=n[E.dayPeriodIndex],p?q:!0;
case "a":return q=fk(q,G,[M.JSC$11415_dateTimeSymbols_.AMPMS],function(y){return E.ampm=y},p),p?q:!0;
case "y":return q0l(M,q,G,K,n,E);case "Q":return fk(q,G,[M.JSC$11415_dateTimeSymbols_.QUARTERS,M.JSC$11415_dateTimeSymbols_.SHORTQUARTERS],function(y){E.month=y*3;E.day=1});
case "d":return FX(M,q,G,K,n,function(y){E.day=y}),!0;
case "S":return GSM(M,q,G,n,E);case "h":case "K":case "H":case "k":return q=FX(M,q,G,K,n,function(y){E.hours=K.text.charAt(0)==="h"&&y===12?0:y},p),p?q:!0;
case "m":return q=FX(M,q,G,K,n,function(y){E.minutes=y},p),p?q:!0;
case "s":return FX(M,q,G,K,n,function(y){E.seconds=y}),!0;
case "z":case "Z":case "v":return KgS(M,q,G,E);default:return!1}},q0l=function(M,q,G,K,n,E){var p=G[0];
n=HW(M,q,G,n);n===null&&(n=HW(M,q,G,0,!0));if(n===null)return!1;n>=0&&G[0]-p==2&&K.count==2?(M=n,q=(new Date).getFullYear()-80,G=q%100,E.ambiguousYear=M==G,M+=Math.floor(q/100)*100+(M<G?100:0),E.year=M):E.year=n;return!0},MsI=function(M,q,G,K,n,E){return n.numeric&&FX(M,q,G,n,K,function(p){E.month=p-1})?!0:fk(q,G,[M.JSC$11415_dateTimeSymbols_.MONTHS,
M.JSC$11415_dateTimeSymbols_.STANDALONEMONTHS,M.JSC$11415_dateTimeSymbols_.SHORTMONTHS,M.JSC$11415_dateTimeSymbols_.STANDALONESHORTMONTHS],function(p){E.month=p})},GSM=function(M,q,G,K,n){var E=G[0];
M=HW(M,q,G,K);if(M===null)return!1;G=G[0]-E;n.milliseconds=G<3?M*Math.pow(10,3-G):Math.round(M/Math.pow(10,G-3));return!0},KgS=function(M,q,G,K){q.indexOf("GMT",G[0])==G[0]&&(G[0]+=3);
if(G[0]>=q.length)return K.tzOffset=0,!0;var n=G[0],E=HW(M,q,G,0,!0);if(E===null)return!1;if(G[0]<q.length&&q.charAt(G[0])==":"){var p=E*60;G[0]++;E=HW(M,q,G,0);if(E===null)return!1;p+=E}else p=E,p=p<24&&G[0]-n<=3?p*60:p%100+p/100*60;K.tzOffset=-p;return!0},FX=function(M,q,G,K,n,E,p){p=p||!1;
var y=G[0];M=HW(M,q,G,n);if(M===null)return!1;if(p&&G[0]-y<K.count){if(G[0]<q.length)return!1;M*=Math.pow(10,K.count-(G[0]-y))}E(M);return!0},fk=function(M,q,G,K,n){n=n||!1;
for(var E,p=0;p<G.length;p++){E=q;for(var y=G[p],Y=n,A=0,v=null,h=M.substring(E[0]).toLowerCase(),t=0;t<y.length;t++){var O=y[t].toLowerCase();if(Y&&O.indexOf(h)==0){A=h.length;v=t;break}y[t].length>A&&h.indexOf(O)==0&&(A=y[t].length,v=t)}v!==null&&(E[0]+=A);E=v;if(E!==null)return K(E),!0}return!1},$AP=function(M,q){(M=M.substring(q[0]).match(Fdv))&&(q[0]+=M[0].length)},HW=function(M,q,G,K,n){q=K>0?q.substring(0,G[0]+K):q;
n=n||!1;if(M.JSC$11415_dateTimeSymbols_.ZERODIGIT){K=[];for(var E=G[0];E<q.length;E++){var p=q.charCodeAt(E)-M.JSC$11415_dateTimeSymbols_.ZERODIGIT;K.push(0<=p&&p<=9?String.fromCharCode(p+48):q.charAt(E))}q=K.join("")}else q=q.substring(G[0]);M=q.match(new RegExp("^"+(n?"[+-]?":"")+"\\d+"));if(!M)return null;G[0]+=M[0].length;return parseInt(M[0],10)},e4M=function(){};
e4M.prototype.ambiguousYear=!1;var nep;
nep={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 Eed={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}"]};
Eed={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 NxS=function(){var M={type:"unit",style:"narrow"};this.listType_=M&&M.type?M.type:"conjunction";this.listStyle_=M&&M.style?M.style:"long";this.listSymbols_=Eed;M=0;switch(this.listStyle_){case "short":M=1;break;case "narrow":M=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[M];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[M];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[M];this.listEndPattern_=
this.listSymbols_.AND_END[M];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[M];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[M];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[M];this.listEndPattern_=this.listSymbols_.OR_END[M];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[M],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[M],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[M],this.listEndPattern_=this.listSymbols_.UNIT_END[M]}};
NxS.prototype.format=function(M){return kSB(this,M)};
var kSB=function(M,q){var G=q.length;switch(G){case 0:return"";case 1:return String(q[0]);case 2:return M.listTwoPattern_.replace("{0}",String(q[0])).replace("{1}",String(q[1]))}for(var K=M.listStartPattern_.replace("{0}",String(q[0])).replace("{1}",String(q[1])),n=2;n<G-1;++n)K=M.listMiddlePattern_.replace("{0}",K).replace("{1}",String(q[n]));return M.listEndPattern_.replace("{0}",K).replace("{1}",String(q[G-1]))};var pOx={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"},y$B=pOx,LgM=pOx;LgM=y$B=pOx;var Wg$,e9,sZ,NvF,$H,Y0J;
_.It=function(M,q,G,K){var n;if(n=q){a:if(q&&q.length===3){for(n=0;n<3;n++){var E=q[n];if(E<"A"||E>"Z"&&E<"a"||E>"z"){n=!1;break a}}n=!0}else n=!1;n=!n}if(n)throw new TypeError("fe");this.intlCurrencyCode_=q?q.toUpperCase():null;this.currencyStyle_=G||0;this.overrideNumberFormatSymbols_=K||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_=e9(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof M==="number")switch(M){case 1:$H(this,e9(this).DECIMAL_PATTERN);break;case 2:$H(this,e9(this).SCIENTIFIC_PATTERN);break;case 3:$H(this,e9(this).PERCENT_PATTERN);break;case 4:M=e9(this).CURRENCY_PATTERN;q=["0"];if(G=
rF[sZ(this)]){G=G[0]&7;if(G>0)for(q.push("."),K=0;K<G;K++)q.push("0");M=M.replace(/0.00/g,q.join(""))}$H(this,M);break;case 5:Y0J(this,1);break;case 6:Y0J(this,2);break;default:throw Error("ie");}else $H(this,M)};
Wg$=!1;e9=function(M){return M.overrideNumberFormatSymbols_||(Wg$?LgM:y$B)};
sZ=function(M){return M.intlCurrencyCode_||e9(M).DEF_CURRENCY_CODE};
NvF=function(M,q){if(q>308)throw Error("he`"+q);M.maximumFractionDigits_=q;return M};
$H=function(M,q){var G=[0];M.positivePrefix_=A$x(M,q,G);for(var K=G[0],n=-1,E=0,p=0,y=0,Y=-1,A=q.length,v=!0;G[0]<A&&v;G[0]++)switch(q.charAt(G[0])){case "#":p>0?y++:E++;Y>=0&&n<0&&Y++;break;case "0":if(y>0)throw Error("oe`"+q);p++;Y>=0&&n<0&&Y++;break;case ",":Y>0&&M.groupingArray_.push(Y);Y=0;break;case ".":if(n>=0)throw Error("pe`"+q);n=E+p+y;break;case "E":if(M.useExponentialNotation_)throw Error("qe`"+q);M.useExponentialNotation_=!0;M.minExponentDigits_=0;G[0]+1<A&&q.charAt(G[0]+1)=="+"&&(G[0]++,
M.useSignForPositiveExponent_=!0);for(;G[0]+1<A&&q.charAt(G[0]+1)=="0";)G[0]++,M.minExponentDigits_++;if(E+p<1||M.minExponentDigits_<1)throw Error("re`"+q);v=!1;break;default:G[0]--,v=!1}p==0&&E>0&&n>=0&&(p=n,p==0&&p++,y=E-p,E=p-1,p=1);if(n<0&&y>0||n>=0&&(n<E||n>E+p)||Y==0)throw Error("se`"+q);y=E+p+y;M.maximumFractionDigits_=n>=0?y-n:0;n>=0&&(M.minimumFractionDigits_=E+p-n,M.minimumFractionDigits_<0&&(M.minimumFractionDigits_=0));M.minimumIntegerDigits_=(n>=0?n:y)-E;M.useExponentialNotation_&&(M.maximumIntegerDigits_=
E+M.minimumIntegerDigits_,M.maximumFractionDigits_==0&&M.minimumIntegerDigits_==0&&(M.minimumIntegerDigits_=1));M.groupingArray_.push(Math.max(0,Y));M.decimalSeparatorAlwaysShown_=n==0||n==y;K=G[0]-K;M.positiveSuffix_=A$x(M,q,G);G[0]<q.length&&q.charAt(G[0])==";"?(G[0]++,M.multiplier_!=1&&(M.negativePercentSignExpected_=!0),M.negativePrefix_=A$x(M,q,G),G[0]+=K,M.negativeSuffix_=A$x(M,q,G)):(M.negativePrefix_+=M.positivePrefix_,M.negativeSuffix_+=M.positiveSuffix_)};
Y0J=function(M,q){M.compactStyle_=q;$H(M,e9(M).DECIMAL_PATTERN);M.minimumFractionDigits_=0;NvF(M,2);if(M.minimumFractionDigits_>0)throw Error("ge");M.significantDigits_=2};
_.It.prototype.parse=function(M,q){q=q||[0];if(this.compactStyle_!==0)throw Error("je");M=M.replace(/ |\u202f/g,"\u00a0");var G=M.indexOf(this.positivePrefix_,q[0])==q[0],K=M.indexOf(this.negativePrefix_,q[0])==q[0];G&&K&&(this.positivePrefix_.length>this.negativePrefix_.length?K=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(G=!1));G?q[0]+=this.positivePrefix_.length:K&&(q[0]+=this.negativePrefix_.length);if(M.indexOf(e9(this).INFINITY,q[0])==q[0]){q[0]+=e9(this).INFINITY.length;var n=
Infinity}else{n=M;var E=!1,p=!1,y=!1,Y=-1,A=1,v=e9(this).DECIMAL_SEP,h=e9(this).GROUP_SEP,t=e9(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ke");h=h.replace(/\u202f/g,"\u00a0");for(var O="";q[0]<n.length;q[0]++){var a=n.charAt(q[0]),g=dol(this,a);if(g>=0&&g<=9)O+=g,y=!0;else if(a==v.charAt(0)){if(E||p)break;O+=".";E=!0}else if(a==h.charAt(0)&&("\u00a0"!=h.charAt(0)||q[0]+1<n.length&&dol(this,n.charAt(q[0]+1))>=0)){if(E||p)break}else if(a==t.charAt(0)){if(p)break;O+="E";p=!0;Y=q[0]}else if(a==
"+"||a=="-"){if(y&&Y!=q[0]-1)break;O+=a}else if(this.multiplier_==1&&a==e9(this).PERCENT.charAt(0)){if(A!=1)break;A=100;if(y){q[0]++;break}}else if(this.multiplier_==1&&a==e9(this).PERMILL.charAt(0)){if(A!=1)break;A=1E3;if(y){q[0]++;break}}else break}this.multiplier_!=1&&(A=this.multiplier_);n=parseFloat(O)/A}if(G){if(M.indexOf(this.positiveSuffix_,q[0])!=q[0])return NaN;q[0]+=this.positiveSuffix_.length}else if(K){if(M.indexOf(this.negativeSuffix_,q[0])!=q[0])return NaN;q[0]+=this.negativeSuffix_.length}return K?
-n:n};
_.It.prototype.format=function(M){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("le");if(isNaN(M))return e9(this).NAN;var q=[];var G=M;if(this.compactStyle_==0)G=MS;else{G=Math.abs(G);var K=vex(this,G<=1?0:hVI(G)).divisorBase;G=vex(this,K+hVI(tsf(this,qS(G,-K)).intValue))}M=qS(M,-G.divisorBase);(K=M<0||M==0&&1/M<0)?G.negative_prefix?q.push(G.negative_prefix):(q.push(G.prefix),q.push(this.negativePrefix_)):(q.push(G.prefix),q.push(this.positivePrefix_));if(isFinite(M))if(M*=
K?-1:1,M*=this.multiplier_,this.useExponentialNotation_){var n=M;if(n==0)OLP(this,n,this.minimumIntegerDigits_,q),wOv(this,0,q);else{var E=Math.floor(Math.log(n)/Math.log(10)+2E-15);n=qS(n,-E);var p=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(p=E%this.maximumIntegerDigits_,p<0&&(p=this.maximumIntegerDigits_+p),n=qS(n,p),E-=p,p=1):this.minimumIntegerDigits_<1?(E++,n=qS(n,-1)):(E-=this.minimumIntegerDigits_-1,n=qS(n,this.minimumIntegerDigits_-
1));OLP(this,n,p,q);wOv(this,E,q)}}else OLP(this,M,this.minimumIntegerDigits_,q);else q.push(e9(this).INFINITY);K?G.negative_suffix?q.push(G.negative_suffix):(isFinite(M)&&q.push(G.suffix),q.push(this.negativeSuffix_)):(isFinite(M)&&q.push(G.suffix),q.push(this.positiveSuffix_));return q.join("")};
var tsf=function(M,q){var G=qS(q,M.maximumFractionDigits_);M.significantDigits_>0&&(G=Ch8(G,M.significantDigits_,M.maximumFractionDigits_));G=Math.round(G);if(isFinite(G)){var K=Math.floor(qS(G,-M.maximumFractionDigits_));G=Math.floor(G-qS(K,M.maximumFractionDigits_));if(G<0||G>=qS(1,M.maximumFractionDigits_))K=Math.round(q),G=0}else K=q,G=0;return{intValue:K,fracValue:G}},OLP=function(M,q,G,K){if(M.minimumFractionDigits_>M.maximumFractionDigits_)throw Error("le");
K||(K=[]);q=tsf(M,q);var n=q.intValue,E=q.fracValue,p=M.minimumFractionDigits_>0||E>0||!1;q=M.minimumFractionDigits_;p&&(q=M.minimumFractionDigits_);for(var y="",Y=n;Y>1E20;)y="0"+y,Y=Math.round(qS(Y,-1));y=Y+y;var A=e9(M).DECIMAL_SEP;Y=e9(M).ZERO_DIGIT.codePointAt(0);var v=y.length,h=0;if(n>0||G>0){for(n=v;n<G;n++)K.push(String.fromCodePoint(Y));if(M.groupingArray_.length>=2)for(G=1;G<M.groupingArray_.length;G++)h+=M.groupingArray_[G];G=v-h;if(G>0){n=M.groupingArray_;h=v=0;for(var t,O=e9(M).GROUP_SEP,
a=y.length,g=0;g<a;g++)if(K.push(String.fromCodePoint(Y+Number(y.charAt(g)))),a-g>1)if(t=n[h],g<G){var D=G-g;(t===1||t>0&&D%t===1)&&K.push(O)}else h<n.length&&(g===G?h+=1:t===g-G-v+1&&(K.push(O),v+=t,h+=1))}else{G=y;y=M.groupingArray_;n=e9(M).GROUP_SEP;t=G.length;O=[];for(v=y.length-1;v>=0&&t>0;v--){h=y[v];for(a=0;a<h&&t-a-1>=0;a++)O.push(String.fromCodePoint(Y+Number(G.charAt(t-a-1))));t-=h;t>0&&O.push(n)}K.push.apply(K,O.reverse())}}else p||K.push(String.fromCodePoint(Y));(M.decimalSeparatorAlwaysShown_||
p)&&K.push(A);E=String(E);p=E.split("e+");p.length==2&&(E=String(Ch8(parseFloat(p[0]),M.significantDigits_,1)),E=E.replace(".",""),E+=(0,_.qiS)("0",parseInt(p[1],10)-E.length+1));M.maximumFractionDigits_+1>E.length&&(E="1"+(0,_.qiS)("0",M.maximumFractionDigits_-E.length)+E);for(M=E.length;E.charAt(M-1)=="0"&&M>q+1;)M--;for(q=1;q<M;q++)K.push(String.fromCodePoint(Y+Number(E.charAt(q))))},wOv=function(M,q,G){G.push(e9(M).EXP_SYMBOL);
q<0?(q=-q,G.push(e9(M).MINUS_SIGN)):M.useSignForPositiveExponent_&&G.push(e9(M).PLUS_SIGN);q=""+q;for(var K=e9(M).ZERO_DIGIT,n=q.length;n<M.minExponentDigits_;n++)G.push(K);M=K.codePointAt(0)-aT$;for(K=0;K<q.length;K++)G.push(String.fromCodePoint(M+q.codePointAt(K)))},dol=function(M,q){q=q.codePointAt(0);
if(48<=q&&q<58)return q-48;M=e9(M).ZERO_DIGIT.codePointAt(0);return M<=q&&q<M+10?q-M:-1},aT$="0".codePointAt(0),A$x=function(M,q,G){for(var K="",n=!1,E=q.length;G[0]<E;G[0]++){var p=q.charAt(G[0]);
if(p=="'")G[0]+1<E&&q.charAt(G[0]+1)=="'"?(G[0]++,K+="'"):n=!n;else if(n)K+=p;else switch(p){case "#":case "0":case ",":case ".":case ";":return K;case "\u00a4":if(G[0]+1<E&&q.charAt(G[0]+1)=="\u00a4")G[0]++,K+=sZ(M);else switch(M.currencyStyle_){case 0:p=sZ(M);K+=p in rF?rF[p][1]:p;break;case 2:p=sZ(M);var y=rF[p];K+=y?p==y[1]?p:p+" "+y[1]:p;break;case 1:p=sZ(M),K+=p in rF?rF[p][2]:p}break;case "%":if(!M.negativePercentSignExpected_&&M.multiplier_!=1)throw Error("me");if(M.negativePercentSignExpected_&&
M.multiplier_!=100)throw Error("ne");M.multiplier_=100;M.negativePercentSignExpected_=!1;K+=e9(M).PERCENT;break;case "\u2030":if(!M.negativePercentSignExpected_&&M.multiplier_!=1)throw Error("me");if(M.negativePercentSignExpected_&&M.multiplier_!=1E3)throw Error("ne");M.multiplier_=1E3;M.negativePercentSignExpected_=!1;K+=e9(M).PERMILL;break;default:K+=p}}return K},MS={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},vex=function(M,q){M=M.compactStyle_==1?Td.COMPACT_DECIMAL_SHORT_PATTERN:Td.COMPACT_DECIMAL_LONG_PATTERN;M==null&&(M=Td.COMPACT_DECIMAL_SHORT_PATTERN);if(q<3)return MS;q=Math.min(14,q);var G=M[qS(1,q)];for(--q;!G&&q>=3;)G=M[qS(1,q)],q--;if(!G)return MS;G=G.other;var K=M="",n=G.indexOf(";");n>=0&&(G=G.substring(0,n),n=G.substring(n+1))&&(K=/([^0]*)(0+)(.*)/.exec(n),M=K[1],K=K[3]);return G&&G!="0"?(G=/([^0]*)(0+)(.*)/.exec(G))?{divisorBase:q+
1-(G[2].length-1),negative_prefix:M,negative_suffix:K,prefix:G[1],suffix:G[3]}:MS:MS},hVI=function(M){if(!isFinite(M))return M>0?M:0;
for(var q=0;(M/=10)>=1;)q++;return q},qS=function(M,q){if(!M||!isFinite(M)||q==0)return M;
M=String(M).split("e");return parseFloat(M[0]+"e"+(parseInt(M[1]||0,10)+q))},oeP=function(M,q){return M&&isFinite(M)?qS(Math.round(qS(M,q)),-q):M},Ch8=function(M,q,G){if(!M)return M;
q=q-hVI(M)-1;return q<-G?oeP(M,-G):oeP(M,q)};var lTB=function(M){return M%10==1&&M%100!=11?"one":M%10==2&&M%100!=12?"two":M%10==3&&M%100!=13?"few":"other"},XOl=lTB;
XOl=lTB;var PhB=function(M,q){var G=M|0;if(void 0===q){q=Math;var K=q.min,n=M+"",E=n.indexOf(".");q=K.call(q,E===-1?0:n.length-E-1,3)}K=Math.pow(10,q);M={v:q,f:(M*K|0)%K};return G==1&&M.v==0?"one":"other"},Q0=PhB;
Q0=PhB;var BxJ=function(M){this.JSC$11458_pattern_=M;this.parsedPattern_=this.literals_=this.initialLiterals_=null;M=y$B;var q=Td;if(iLS!==M||c$P!==q)iLS=M,c$P=q,ge2=new _.It(1);this.numberFormatter_=ge2},iLS=null,c$P=null,ge2=null,QZ2=RegExp("'([{}#].*?)'","g"),ITP=RegExp("''","g");
BxJ.prototype.format=function(M){if(this.JSC$11458_pattern_){this.initialLiterals_=[];var q=Do$(this,this.JSC$11458_pattern_);this.parsedPattern_=umP(this,q);this.JSC$11458_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.Sw(this.initialLiterals_),q=[],J$J(this,this.parsedPattern_,M,!1,q),M=q.join("");this.literals_.length>0;)M=M.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else M="";return M};
var J$J=function(M,q,G,K,n){for(var E=0;E<q.length;E++)switch(q[E].type){case 4:n.push(q[E].value);break;case 3:var p=q[E].value;var y=M,Y=n,A=G[p];A===void 0?Y.push("Undefined parameter - "+p):(y.literals_.push(A),Y.push(y.buildPlaceholder_(y.literals_)));break;case 2:p=q[E].value;y=M;Y=G;A=K;var v=n,h=p.argumentIndex;Y[h]===void 0?v.push("Undefined parameter - "+h):(h=p[Y[h]],h===void 0&&(h=p.other),J$J(y,h,Y,A,v));break;case 0:p=q[E].value;ZL9(M,p,G,Q0,K,n);break;case 1:p=q[E].value,ZL9(M,p,G,
XOl,K,n)}},ZL9=function(M,q,G,K,n,E){var p=q.argumentIndex,y=q.argumentOffset,Y=+G[p];
isNaN(Y)?E.push("Undefined or invalid parameter - "+p):(y=Y-y,p=q[G[p]],p===void 0&&(K=K(Math.abs(y)),p=q[K],p===void 0&&(p=q.other)),q=[],J$J(M,p,G,n,q),G=q.join(""),n?E.push(G):(M=M.numberFormatter_.format(y),E.push(G.replace(/#/g,M))))},Do$=function(M,q){var G=M.initialLiterals_,K=M.buildPlaceholder_.bind(M);
q=q.replace(ITP,function(){G.push("'");return K(G)});
return q=q.replace(QZ2,function(n,E){G.push(E);return K(G)})},bLp=function(M){var q=0,G=[],K=[],n=/[{}]/g;
n.lastIndex=0;for(var E;E=n.exec(M);){var p=E.index;E[0]=="}"?(G.pop(),G.length==0&&(E={type:1},E.value=M.substring(q,p),K.push(E),q=p+1)):(G.length==0&&(q=M.substring(q,p),q!=""&&K.push({type:0,value:q}),q=p+1),G.push("{"))}M=M.substring(q);M!=""&&K.push({type:0,value:M});return K},Uox=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,xop=/^\s*(\w+)\s*,\s*selectordinal\s*,/,zVx=/^\s*(\w+)\s*,\s*select\s*,/,umP=function(M,q){var G=[];
q=bLp(q);for(var K=0;K<q.length;K++){var n={};if(0==q[K].type)n.type=4,n.value=q[K].value;else if(1==q[K].type){var E=q[K].value;switch(Uox.test(E)?0:xop.test(E)?1:zVx.test(E)?2:/^\s*\w+\s*/.test(E)?3:5){case 2:n.type=2;n.value=moI(M,q[K].value);break;case 0:n.type=0;n.value=S0M(M,q[K].value);break;case 1:n.type=1;n.value=TxP(M,q[K].value);break;case 3:n.type=3,n.value=q[K].value}}G.push(n)}return G},moI=function(M,q){var G="";
q=q.replace(zVx,function(y,Y){G=Y;return""});
var K={};K.argumentIndex=G;q=bLp(q);for(var n=0;n<q.length;){var E=q[n].value;n++;var p=void 0;1==q[n].type&&(p=umP(M,q[n].value));K[E.replace(/\s/g,"")]=p;n++}return K},S0M=function(M,q){var G="",K=0;
q=q.replace(Uox,function(Y,A,v){G=A;v&&(K=parseInt(v,10));return""});
var n={};n.argumentIndex=G;n.argumentOffset=K;q=bLp(q);for(var E=0;E<q.length;){var p=q[E].value;E++;var y=void 0;1==q[E].type&&(y=umP(M,q[E].value));n[p.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=y;E++}return n},TxP=function(M,q){var G="";
q=q.replace(xop,function(y,Y){G=Y;return""});
var K={};K.argumentIndex=G;K.argumentOffset=0;q=bLp(q);for(var n=0;n<q.length;){var E=q[n].value;n++;var p=void 0;1==q[n].type&&(p=umP(M,q[n].value));K[E.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=p;n++}return K};
BxJ.prototype.buildPlaceholder_=function(M){return"\ufddf_"+(M.length-1).toString(10)+"_"};var xIy=function(){var M={style:1},q=r$S;this.style_=(M==null?void 0:M.style)||0;this.durationSymbols_=q||nep},jZB=function(M,q){switch(q){default:case "years":return M.durationSymbols_.YEAR;
case "months":return M.durationSymbols_.MONTH;case "weeks":return M.durationSymbols_.WEEK;case "days":return M.durationSymbols_.DAY;case "hours":return M.durationSymbols_.HOUR;case "minutes":return M.durationSymbols_.MINUTE;case "seconds":return M.durationSymbols_.SECOND}},Gb=function(M,q,G){a:{G=jZB(M,G);
switch(M.style_){case 1:if(G.LONG!=void 0){M=G.LONG;break a}case 2:if(G.NARROW!=void 0){M=G.NARROW;break a}default:M=G.SHORT;break a}M=void 0}return M?(new BxJ("{DURATION_VALUE,plural,"+M+"}")).format({DURATION_VALUE:q}):""};
xIy.prototype.format=function(M){var q=[],G=M.years,K=M.months,n=M.weeks,E=M.days,p=M.hours,y=M.minutes;M=M.seconds;G!=null&&q.push(Gb(this,G,"years"));K!=null&&q.push(Gb(this,K,"months"));n!=null&&q.push(Gb(this,n,"weeks"));E!=null&&q.push(Gb(this,E,"days"));p!=null&&q.push(Gb(this,p,"hours"));y!=null&&q.push(Gb(this,y,"minutes"));M!=null&&q.push(Gb(this,M,"seconds"));return(new NxS).format(q)};var VsI;
VsI={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 Mjy=function(){this.rdtfSymbols_=RVp||VsI;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
Mjy.prototype.format=function(M,q){a:{q=fTP(this,q);switch(this.style_){case 2:if(q.NARROW!=void 0){q=q.NARROW;break a}case 1:if(q.SHORT!=void 0){q=q.SHORT;break a}default:q=q.LONG;break a}q=void 0}if(!this.alwaysNumeric_&&q&&q.R&&q.R[""+M])M=q.R[""+M];else if(q){var G=Math.abs(M);M=(new BxJ("{N,plural,"+(M>0||M==0&&1/M==Infinity?q.F:q.P)+"}")).format({N:G})}else M="";return M};
var fTP=function(M,q){switch(q){default:case 0:return M.rdtfSymbols_.YEAR;case 1:return M.rdtfSymbols_.QUARTER;case 2:return M.rdtfSymbols_.MONTH;case 3:return M.rdtfSymbols_.WEEK;case 4:return M.rdtfSymbols_.DAY;case 5:return M.rdtfSymbols_.HOUR;case 6:return M.rdtfSymbols_.MINUTE;case 7:return M.rdtfSymbols_.SECOND}};var Fgl=function(M,q,G,K,n,E,p,y){this.x0=M;this.y0=q;this.x1=G;this.y1=K;this.x2=n;this.y2=E;this.x3=p;this.y3=y};
Fgl.prototype.clone=function(){return new Fgl(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Fgl.prototype.equals=function(M){return this.x0==M.x0&&this.y0==M.y0&&this.x1==M.x1&&this.y1==M.y1&&this.x2==M.x2&&this.y2==M.y2&&this.x3==M.x3&&this.y3==M.y3};
var HLM=function(M,q){if(q==0)return M.x0;if(q==1)return M.x3;var G=wB(M.x0,M.x1,q),K=wB(M.x1,M.x2,q);M=wB(M.x2,M.x3,q);G=wB(G,K,q);K=wB(K,M,q);return wB(G,K,q)},eVJ=function(M,q){var G=(q-M.x0)/(M.x3-M.x0);
if(G<=0)return 0;if(G>=1)return 1;for(var K=0,n=1,E=0,p=0;p<8;p++){E=HLM(M,G);var y=(HLM(M,G+1E-6)-E)/1E-6;if(Math.abs(E-q)<1E-6)return G;if(Math.abs(y)<1E-6)break;else E<q?K=G:n=G,G-=(E-q)/y}for(p=0;Math.abs(E-q)>1E-6&&p<8;p++)E<q?(K=G,G=(G+n)/2):(n=G,G=(G+K)/2),E=HLM(M,G);return G};var Kh=function(){_.w6.call(this);this.JSC$11479_name_="closure_frame"+$oP++;this.iframesForDisposal_=[];sUp[this.JSC$11479_name_]=this},nh;
_.TO(Kh,_.w6);var sUp={},$oP=0,MbJ=function(M,q){var G=Ig(M);Ecf(q,function(K,n){Array.isArray(K)||(K=[K]);_.Gc(K,function(E){E=G.JSC$9332_createDom("INPUT",{type:"hidden",name:n,value:E});M.appendChild(E)})})};
_.N=Kh.prototype;_.N.JSC$11481_form_=null;_.N.JSC$11481_iframe_=null;_.N.iframeName_=null;_.N.nextIframeId_=0;_.N.JSC$11481_active_=!1;_.N.complete_=!1;_.N.success_=!1;_.N.lastContent_=null;_.N.JSC$11481_lastErrorCode_=0;_.N.iframeDisposalTimer_=null;
_.N.send=function(M,q,G,K){if(this.JSC$11481_active_)throw Error("te");M=new _.Za(M);q=q?q.toUpperCase():"GET";G&&_.Nu(M);nh||(nh=_.lo("FORM"),nh.acceptCharset="utf-8",G=nh.style,G.position="absolute",G.visibility="hidden",G.top=G.left="-10px",G.width=G.height="10px",G.overflow="hidden",document.body.appendChild(nh));this.JSC$11481_form_=nh;q=="GET"&&MbJ(this.JSC$11481_form_,M.JSC$10036_queryData_);K&&MbJ(this.JSC$11481_form_,K);G=M.toString();G=SxD(G);K=this.JSC$11481_form_;G=_.jM(J9(G));G!==void 0&&
(K.action=G);this.JSC$11481_form_.method=q;qz2(this);Ghx(this)};
_.N.abort=function(M){if(this.JSC$11481_active_){var q=EZ(this);if(q)if(ho(q))q.removeAllListeners(void 0);else if(q=to(q)){var G=0,K;for(K in q.listeners)for(var n=q.listeners[K].concat(),E=0;E<n.length;++E)pl(n[E])&&++G}this.success_=this.JSC$11481_active_=this.complete_=!1;this.JSC$11481_lastErrorCode_=M||7;this.dispatchEvent("abort");KGP(this)}};
_.N.disposeInternal=function(){this.JSC$11481_active_&&this.abort();Kh.superClass_.disposeInternal.call(this);this.JSC$11481_iframe_&&nn8(this);Ghx(this);this.JSC$11481_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$11481_form_=null;this.JSC$11481_lastErrorCode_=0;delete sUp[this.JSC$11479_name_]};
_.N.isComplete=function(){return this.complete_};
_.N.isSuccess=function(){return this.success_};
_.N.isActive=function(){return this.JSC$11481_active_};
_.N.getResponseText=function(){return this.lastContent_};
_.N.getLastError=function(){return _.ZX2(this.JSC$11481_lastErrorCode_)};
var qz2=function(M){M.JSC$11481_active_=!0;M.complete_=!1;M.JSC$11481_lastErrorCode_=0;M.iframeName_=M.JSC$11479_name_+"_"+(M.nextIframeId_++).toString(36);M.JSC$11481_iframe_=Ig(M.JSC$11481_form_).JSC$9332_createDom("IFRAME",{name:M.iframeName_,id:M.iframeName_});var q=M.JSC$11481_iframe_.style;q.visibility="hidden";q.width=q.height="10px";q.display="none";_.Hh?q.marginTop=q.marginLeft="-10px":(q.position="absolute",q.top=q.left="-10px");Ig(M.JSC$11481_form_).JSC$9330_document_.body.appendChild(M.JSC$11481_iframe_);
q=M.iframeName_+"_inner";var G=aJM(M.JSC$11481_iframe_);if(document.baseURI){var K=ec(q);K='<head><base href="'+ec(document.baseURI)+'"></head><body><iframe id="'+K+'" name="'+K+'"></iframe>';K=Ht(K)}else K=ec(q),K=Ht('<body><iframe id="'+K+'" name="'+K+'"></iframe>');G.write(eM(K));_.Yj(G.getElementById(q),"load",M.onIframeLoaded_,!1,M);K=BX("TEXTAREA",M.JSC$11481_form_);for(var n=0,E=K.length;n<E;n++){var p=K[n].value;cg2(K[n])!=p&&(_.QF(K[n],p),K[n].value=p)}K=G.importNode(M.JSC$11481_form_,!0);
K.target=q;K.action=M.JSC$11481_form_.action;G.body.appendChild(K);n=BX("SELECT",M.JSC$11481_form_);E=BX("SELECT",K);p=0;for(var y=n.length;p<y;p++)for(var Y=BX("OPTION",n[p]),A=BX("OPTION",E[p]),v=0,h=Y.length;v<h;v++)A[v].selected=Y[v].selected;n=BX("INPUT",M.JSC$11481_form_);E=BX("INPUT",K);p=0;for(y=n.length;p<y;p++)if(n[p].type=="file"&&n[p].value!=E[p].value){M.JSC$11481_form_.target=q;K=M.JSC$11481_form_;break}try{M.errorHandled_=!1,K.submit(),G.close(),_.Fa&&setTimeout(M.testForFirefoxSilentError_.bind(M),
250)}catch(t){_.OS(G.getElementById(q),"load",M.onIframeLoaded_,!1,M),G.close(),NS(M,2)}};
Kh.prototype.onIframeLoaded_=function(){_.OS(EZ(this),"load",this.onIframeLoaded_,!1,this);try{var M=this.JSC$11481_iframe_?aJM(EZ(this)):null;this.complete_=!0;this.JSC$11481_active_=!1;try{var q=M.body;this.lastContent_=q.textContent||q.innerText}catch(n){var G=1}var K;G||typeof this.errorChecker_!="function"||(K=this.errorChecker_(M))&&(G=4);G?NS(this,G):(this.success_=!0,this.JSC$11481_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),KGP(this))}catch(n){NS(this,1)}};
var NS=function(M,q){M.errorHandled_||(M.success_=!1,M.JSC$11481_active_=!1,M.complete_=!0,M.JSC$11481_lastErrorCode_=q,M.dispatchEvent("complete"),M.dispatchEvent("error"),KGP(M),M.errorHandled_=!0)},KGP=function(M){nn8(M);
Ghx(M);M.JSC$11481_form_=null;M.dispatchEvent("ready")},nn8=function(M){var q=M.JSC$11481_iframe_;
q&&(q.onreadystatechange=null,q.onload=null,q.onerror=null,M.iframesForDisposal_.push(q));M.iframeDisposalTimer_&&(clearTimeout(M.iframeDisposalTimer_),M.iframeDisposalTimer_=null);_.Fa?M.iframeDisposalTimer_=setTimeout(M.disposeIframes_.bind(M),2E3):M.disposeIframes_();M.JSC$11481_iframe_=null;M.iframeName_=null};
Kh.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var M=this.iframesForDisposal_.pop();_.cX(M)}};
var Ghx=function(M){M.JSC$11481_form_&&M.JSC$11481_form_==nh&&_.io(M.JSC$11481_form_)},EZ=function(M){return M.JSC$11481_iframe_?aJM(M.JSC$11481_iframe_).getElementById(M.iframeName_+"_inner"):null};
Kh.prototype.testForFirefoxSilentError_=function(){if(this.JSC$11481_active_){var M=this.JSC$11481_iframe_?aJM(EZ(this)):null;M&&!Jge(M,"documentUri")?(_.OS(EZ(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?NS(this,3):NS(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.kt=function(M){return M=="\r"||M=="\n"||M==" "||M=="\t"};var En$;_.ph=function(M){this.errorMessage_=null;this.result_=[];this.JSC$11483_buffer_="";this.stack_=[];this.JSC$11483_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!M||!M.deliverMessageAsRawString)};
En$={INIT:0,VALUE:1,OBJECT_OPEN:2,OBJECT_END:3,ARRAY_OPEN:4,ARRAY_END:5,STRING:6,KEY_START:7,KEY_END:8,TRUE1:9,TRUE2:10,TRUE3:11,FALSE1:12,FALSE2:13,FALSE3:14,FALSE4:15,NULL1:16,NULL2:17,NULL3:18,NUM_DECIMAL_POINT:19,NUM_DIGIT:20};_.ph.prototype.isInputValid=function(){return this.streamState_!=3};
_.ph.prototype.done=function(){return this.streamState_===2};
var yN=function(M,q,G){M.streamState_=3;M.errorMessage_="The stream is broken @"+M.JSC$11483_pos_+"/"+G+". With input:\n"+q;throw Error(M.errorMessage_);};
_.ph.prototype.acceptsBinaryInput=function(){return!1};
_.ph.prototype.parse=function(M){function q(){for(;t<M.length;)if(_.kt(M[t]))t++,E.JSC$11483_pos_++;else break;return t<A}
function G(){for(var a;;){a=M[t++];if(!a)break;E.JSC$11483_pos_++;switch(E.state_){case Y.INIT:a==="{"?E.state_=Y.OBJECT_OPEN:a==="["?E.state_=Y.ARRAY_OPEN:_.kt(a)||yN(E,M,t);continue;case Y.KEY_START:case Y.OBJECT_OPEN:if(_.kt(a))continue;if(E.state_===Y.KEY_START)p.push(Y.KEY_END);else if(a==="}"){n("{}");E.state_=K();continue}else p.push(Y.OBJECT_END);a==='"'?E.state_=Y.STRING:yN(E,M,t);continue;case Y.KEY_END:case Y.OBJECT_END:if(_.kt(a))continue;a===":"?(E.state_===Y.OBJECT_END&&(p.push(Y.OBJECT_END),
E.depth_++),E.state_=Y.VALUE):a==="}"?(E.depth_--,n(),E.state_=K()):a===","?(E.state_===Y.OBJECT_END&&p.push(Y.OBJECT_END),E.state_=Y.KEY_START):yN(E,M,t);continue;case Y.ARRAY_OPEN:case Y.VALUE:if(_.kt(a))continue;if(E.state_===Y.ARRAY_OPEN)if(E.depth_++,E.state_=Y.VALUE,a==="]"){E.depth_--;if(E.depth_===0){E.state_=Y.ARRAY_END;return}n("[]");E.state_=K();continue}else p.push(Y.ARRAY_END);a==='"'?E.state_=Y.STRING:a==="{"?E.state_=Y.OBJECT_OPEN:a==="["?E.state_=Y.ARRAY_OPEN:a==="t"?E.state_=Y.TRUE1:
a==="f"?E.state_=Y.FALSE1:a==="n"?E.state_=Y.NULL1:a!=="-"&&("0123456789".indexOf(a)!==-1?E.state_=Y.NUM_DIGIT:yN(E,M,t));continue;case Y.ARRAY_END:if(a===",")p.push(Y.ARRAY_END),E.state_=Y.VALUE,E.depth_===1&&(h=t);else if(a==="]"){E.depth_--;if(E.depth_===0)return;n();E.state_=K()}else if(_.kt(a))continue;else yN(E,M,t);continue;case Y.STRING:var g=t;a:for(;;){for(;E.unicodeCount_>0;)if(a=M[t++],E.unicodeCount_===4?E.unicodeCount_=0:E.unicodeCount_++,!a)break a;if(a==='"'&&!E.slashed_){E.state_=
K();break}if(a==="\\"&&!E.slashed_&&(E.slashed_=!0,a=M[t++],!a))break;if(E.slashed_)if(E.slashed_=!1,a==="u"&&(E.unicodeCount_=1),a=M[t++])continue;else break;y.lastIndex=t;a=y.exec(M);if(!a){t=M.length+1;break}t=a.index+1;a=M[a.index];if(!a)break}E.JSC$11483_pos_+=t-g;continue;case Y.TRUE1:if(!a)continue;a==="r"?E.state_=Y.TRUE2:yN(E,M,t);continue;case Y.TRUE2:if(!a)continue;a==="u"?E.state_=Y.TRUE3:yN(E,M,t);continue;case Y.TRUE3:if(!a)continue;a==="e"?E.state_=K():yN(E,M,t);continue;case Y.FALSE1:if(!a)continue;
a==="a"?E.state_=Y.FALSE2:yN(E,M,t);continue;case Y.FALSE2:if(!a)continue;a==="l"?E.state_=Y.FALSE3:yN(E,M,t);continue;case Y.FALSE3:if(!a)continue;a==="s"?E.state_=Y.FALSE4:yN(E,M,t);continue;case Y.FALSE4:if(!a)continue;a==="e"?E.state_=K():yN(E,M,t);continue;case Y.NULL1:if(!a)continue;a==="u"?E.state_=Y.NULL2:yN(E,M,t);continue;case Y.NULL2:if(!a)continue;a==="l"?E.state_=Y.NULL3:yN(E,M,t);continue;case Y.NULL3:if(!a)continue;a==="l"?E.state_=K():yN(E,M,t);continue;case Y.NUM_DECIMAL_POINT:a===
"."?E.state_=Y.NUM_DIGIT:yN(E,M,t);continue;case Y.NUM_DIGIT:if("0123456789.eE+-".indexOf(a)!==-1)continue;else t--,E.JSC$11483_pos_--,E.state_=K();continue;default:yN(E,M,t)}}}
function K(){var a=p.pop();return a!=null?a:Y.VALUE}
function n(a){E.depth_>1||(a||(a=h===-1?E.JSC$11483_buffer_+M.substring(v,t):M.substring(h,t)),E.deliverMessageAsRawString_?E.result_.push(a):E.result_.push(JSON.parse(a)),h=t)}
for(var E=this,p=E.stack_,y=E.stringInputPattern_,Y=En$,A=M.length,v=0,h=-1,t=0;t<A;)switch(E.streamState_){case 3:return yN(E,M,t),null;case 2:return q()&&yN(E,M,t),null;case 0:if(q()){var O=M[t++];E.JSC$11483_pos_++;if(O==="["){E.streamState_=1;v=t;E.state_=Y.ARRAY_OPEN;continue}else yN(E,M,t)}return null;case 1:return G(),E.depth_===0&&E.state_==Y.ARRAY_END?(E.streamState_=2,E.JSC$11483_buffer_=M.substring(t)):E.JSC$11483_buffer_=h===-1?E.JSC$11483_buffer_+M.substring(v):M.substring(h),E.result_.length>
0?(O=E.result_,E.result_=[],O):null}return null};_.TO(_.CY,xJ);al.prototype.getValue=function(){return this.JSC$11491_value_};
al.prototype.clone=function(){return new al(this.JSC$11491_key_,this.JSC$11491_value_)};var Lh=function(M){this.nodes_=[];if(M)a:{if(M instanceof Lh){var q=M.getKeys();M=M.getValues();if(this.getCount()<=0){for(var G=this.nodes_,K=0;K<q.length;K++)G.push(new al(q[K],M[K]));break a}}else q=_.xP.getKeys(M),M=_.xP.getValues(M);for(G=0;G<q.length;G++)this.insert(q[G],M[G])}};
_.N=Lh.prototype;_.N.insert=function(M,q){var G=this.nodes_;G.push(new al(M,q));M=G.length-1;q=this.nodes_;for(G=q[M];M>0;){var K=M-1>>1;if(q[K].JSC$11491_key_>G.JSC$11491_key_)q[M]=q[K],M=K;else break}q[M]=G};
_.N.remove=function(){var M=this.nodes_,q=M.length,G=M[0];if(!(q<=0)){if(q==1)M.length=0;else{M[0]=M.pop();M=0;q=this.nodes_;for(var K=q.length,n=q[M];M<K>>1;){var E=M*2+1,p=M*2+2;E=p<K&&q[p].JSC$11491_key_<q[E].JSC$11491_key_?p:E;if(q[E].JSC$11491_key_>n.JSC$11491_key_)break;q[M]=q[E];M=E}q[M]=n}return G.getValue()}};
_.N.peek=function(){var M=this.nodes_;if(M.length!=0)return M[0].getValue()};
_.N.getValues=function(){for(var M=this.nodes_,q=[],G=M.length,K=0;K<G;K++)q.push(M[K].getValue());return q};
_.N.getKeys=function(){for(var M=this.nodes_,q=[],G=M.length,K=0;K<G;K++)q.push(M[K].JSC$11491_key_);return q};
_.N.containsValue=function(M){return this.nodes_.some(function(q){return q.getValue()==M})};
_.N.containsKey=function(M){return this.nodes_.some(function(q){return q.JSC$11491_key_==M})};
_.N.clone=function(){return new Lh(this)};
_.N.getCount=function(){return this.nodes_.length};
_.N.isEmpty=function(){return this.nodes_.length===0};
_.N.clear=function(){this.nodes_.length=0};_.Yt=function(M,q){this.JSC$11497_map_={};this.JSC$11497_keys_=[];this.version_=this.size=0;var G=arguments.length;if(G>1){if(G%2)throw Error("ma");for(var K=0;K<G;K+=2)this.set(arguments[K],arguments[K+1])}else M&&this.addAll(M)};
_.N=_.Yt.prototype;_.N.getCount=function(){return this.size};
_.N.getValues=function(){Wn(this);for(var M=[],q=0;q<this.JSC$11497_keys_.length;q++)M.push(this.JSC$11497_map_[this.JSC$11497_keys_[q]]);return M};
_.N.getKeys=function(){Wn(this);return this.JSC$11497_keys_.concat()};
_.N.containsKey=function(M){return this.has(M)};
_.N.has=function(M){return At(this.JSC$11497_map_,M)};
_.N.containsValue=function(M){for(var q=0;q<this.JSC$11497_keys_.length;q++){var G=this.JSC$11497_keys_[q];if(At(this.JSC$11497_map_,G)&&this.JSC$11497_map_[G]==M)return!0}return!1};
_.N.equals=function(M,q){if(this===M)return!0;if(this.size!=M.getCount())return!1;q=q||NIB;Wn(this);for(var G,K=0;G=this.JSC$11497_keys_[K];K++)if(!q(this.get(G),M.get(G)))return!1;return!0};
var NIB=function(M,q){return M===q};
_.Yt.prototype.isEmpty=function(){return this.size==0};
_.Yt.prototype.clear=function(){this.JSC$11497_map_={};this.version_=this.size=this.JSC$11497_keys_.length=0};
_.Yt.prototype.remove=function(M){return this.delete(M)};
_.Yt.prototype.delete=function(M){return At(this.JSC$11497_map_,M)?(delete this.JSC$11497_map_[M],--this.size,this.version_++,this.JSC$11497_keys_.length>2*this.size&&Wn(this),!0):!1};
var Wn=function(M){if(M.size!=M.JSC$11497_keys_.length){for(var q=0,G=0;q<M.JSC$11497_keys_.length;){var K=M.JSC$11497_keys_[q];At(M.JSC$11497_map_,K)&&(M.JSC$11497_keys_[G++]=K);q++}M.JSC$11497_keys_.length=G}if(M.size!=M.JSC$11497_keys_.length){q={};for(K=G=0;G<M.JSC$11497_keys_.length;){var n=M.JSC$11497_keys_[G];At(q,n)||(M.JSC$11497_keys_[K++]=n,q[n]=1);G++}M.JSC$11497_keys_.length=K}};
_.N=_.Yt.prototype;_.N.get=function(M,q){return At(this.JSC$11497_map_,M)?this.JSC$11497_map_[M]:q};
_.N.set=function(M,q){At(this.JSC$11497_map_,M)||(this.size+=1,this.JSC$11497_keys_.push(M),this.version_++);this.JSC$11497_map_[M]=q};
_.N.addAll=function(M){if(M instanceof _.Yt)for(var q=M.getKeys(),G=0;G<q.length;G++)this.set(q[G],M.get(q[G]));else for(q in M)this.set(q,M[q])};
_.N.forEach=function(M,q){for(var G=this.getKeys(),K=0;K<G.length;K++){var n=G[K],E=this.get(n);M.call(q,E,n,this)}};
_.N.clone=function(){return new _.Yt(this)};
_.N.transpose=function(){for(var M=new _.Yt,q=0;q<this.JSC$11497_keys_.length;q++){var G=this.JSC$11497_keys_[q];M.set(this.JSC$11497_map_[G],G)}return M};
_.N.keys=function(){return l_v(this.__iterator__(!0)).toEs6()};
_.N.values=function(){return l_v(this.__iterator__(!1)).toEs6()};
_.N.entries=function(){var M=this;return SEM(this.keys(),function(q){return[q,M.get(q)]})};
_.N.__iterator__=function(M){Wn(this);var q=0,G=this.version_,K=this,n=new n$;n.next=function(){if(G!=K.version_)throw Error("ue");if(q>=K.JSC$11497_keys_.length)return E6;var E=K.JSC$11497_keys_[q++];return Nq(M?E:K.JSC$11497_map_[E])};
return n};
var At=function(M,q){return Object.prototype.hasOwnProperty.call(M,q)};var p3f=function(){this.JSC$11500_map_=new _.Yt;this.JSC$11500_head_=new khp("");this.JSC$11500_head_.next=this.JSC$11500_head_.prev=this.JSC$11500_head_},yY8=function(M,q){if(q=M.JSC$11500_map_.get(q))q.remove(),M.insert_(q);
return q};
_.N=p3f.prototype;_.N.get=function(M,q){return(M=yY8(this,M))?M.value:q};
_.N.set=function(M,q){var G=yY8(this,M);G?G.value=q:(G=new khp(M,q),this.JSC$11500_map_.set(M,G),this.insert_(G))};
_.N.peek=function(){return this.JSC$11500_head_.next.value};
_.N.shift=function(){return LG8(this,this.JSC$11500_head_.next)};
_.N.pop=function(){return LG8(this,this.JSC$11500_head_.prev)};
_.N.remove=function(M){return(M=this.JSC$11500_map_.get(M))?(this.removeNode(M),!0):!1};
_.N.removeNode=function(M){M.remove();this.JSC$11500_map_.remove(M.key)};
_.N.getCount=function(){return this.JSC$11500_map_.getCount()};
_.N.isEmpty=function(){return this.JSC$11500_map_.isEmpty()};
_.N.getKeys=function(){return this.map(function(M,q){return q})};
_.N.getValues=function(){return this.map(function(M){return M})};
_.N.contains=function(M){return this.some(function(q){return q==M})};
_.N.containsKey=function(M){return this.JSC$11500_map_.containsKey(M)};
_.N.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$11500_head_.prev)};
_.N.forEach=function(M,q){for(var G=this.JSC$11500_head_.next;G!=this.JSC$11500_head_;G=G.next)M.call(q,G.value,G.key,this)};
_.N.map=function(M,q){for(var G=[],K=this.JSC$11500_head_.next;K!=this.JSC$11500_head_;K=K.next)G.push(M.call(q,K.value,K.key,this));return G};
_.N.some=function(M,q){for(var G=this.JSC$11500_head_.next;G!=this.JSC$11500_head_;G=G.next)if(M.call(q,G.value,G.key,this))return!0;return!1};
_.N.every=function(M,q){for(var G=this.JSC$11500_head_.next;G!=this.JSC$11500_head_;G=G.next)if(!M.call(q,G.value,G.key,this))return!1;return!0};
_.N.insert_=function(M){M.next=this.JSC$11500_head_.next;M.prev=this.JSC$11500_head_;this.JSC$11500_head_.next=M;for(M.next.prev=M;this.getCount()>100;)this.removeNode(this.JSC$11500_head_.prev)};
var LG8=function(M,q){M.JSC$11500_head_!=q&&M.removeNode(q);return q.value},khp=function(M,q){this.key=M;
this.value=q};
khp.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var Yzx=function(){Lh.apply(this,arguments)};
_.l(Yzx,Lh);Yzx.prototype.enqueue=function(M,q){this.insert(M,q)};var WGd=function(){var M=Error();M.name="SecurityError";throw M;},gB$=function(){return{get opener(){return null},
get closed(){return!0},get location(){WGd()},get document(){WGd()},postMessage:function(){},
close:function(){},
focus:function(){}}};var deH={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 tWe={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 AYS={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(tWe).join("|");var dQv=function(){function M(y){y.substr(-1)!==";"&&(y+=";");return p(y)}
for(var q=Object.keys(AYS).sort(hK$),G=Object.keys(tWe).sort(hK$),K=0,n=0;K<G.length;K++)q[n]===G[K]?(G[K]+=";?",n++):G[K]+=";";var E=new RegExp("&(?:"+G.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),p=OeD();return function(y){return String(y).replace(E,M)}}();/*

 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 vnf={};var hYv=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"),tbv=/[\\&]/,O5P=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),w3x=RegExp('[&<>"]',"g"),C_8=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),a$x=function(M){return M.charCodeAt(0)===92?M.charAt(1):dQv(M)},on9=function(M){return tbv.test(M)?M.replace(O5P,a$x):M},l$J=function(M){try{var q,G="";
if(typeof n!=="string"){var K=n;var n=";/?:@&=+$,-_.!~*'()#"}typeof K==="undefined"&&(K=!0);var E,p=vnf[n];if(p)var y=p;else{p=vnf[n]=[];for(E=0;E<128;E++){var Y=String.fromCharCode(E);/^[0-9a-z]$/i.test(Y)?p.push(Y):p.push("%"+("0"+E.toString(16).toUpperCase()).slice(-2))}for(E=0;E<n.length;E++)p[n.charCodeAt(E)]=n[E];y=p}var A=0;for(q=M.length;A<q;A++){var v=M.charCodeAt(A);if(K&&v===37&&A+2<q&&/^[0-9a-f]{2}$/i.test(M.slice(A+1,A+3)))G+=M.slice(A,A+3),A+=2;else if(v<128)G+=y[v];else if(v>=55296&&
v<=57343){if(v>=55296&&v<=56319&&A+1<q){var h=M.charCodeAt(A+1);if(h>=56320&&h<=57343){G+=encodeURIComponent(M[A]+M[A+1]);A++;continue}}G+="%EF%BF%BD"}else G+=encodeURIComponent(M[A])}return G}catch(t){return M}},X3p=function(M){switch(M){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return M}},dQ=function(M,q){return w3x.test(M)?q?M.replace(C_8,X3p):M.replace(w3x,X3p):M};/*

 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 vn;if(String.fromCodePoint)vn=function(M){try{return String.fromCodePoint(M)}catch(q){if(q instanceof RangeError)return String.fromCharCode(65533);throw q;}};
else{var P_d=String.fromCharCode,i52=Math.floor;vn=function(){var M=[],q=-1,G=arguments.length;if(!G)return"";for(var K="";++q<G;){var n=Number(arguments[q]);if(!isFinite(n)||n<0||n>1114111||i52(n)!==n)return String.fromCharCode(65533);if(n<=65535)M.push(n);else{n-=65536;var E=(n>>10)+55296;n=n%1024+56320;M.push(E,n)}if(q+1===G||M.length>16384)K+=P_d.apply(null,M),M.length=0}return K}};var cYx=function(M){this.root=this.current=M;this.entering=!0};
cYx.prototype.next=function(){var M=this.current,q=this.entering;if(M===null)return null;a:switch(M._type){case "document":case "block_quote":case "list":case "item":case "paragraph":case "heading":case "emph":case "strong":case "link":case "image":case "custom_inline":case "custom_block":case "table":case "row":case "th":case "td":var G=!0;break a;default:G=!1}q&&G?M._firstChild?(this.current=M._firstChild,this.entering=!0):this.entering=!1:M===this.root?this.current=null:M._next===null?(this.current=
M._parent,this.entering=!1):(this.current=M._next,this.entering=!0);return{entering:q,node:M}};
var PG=function(M,q){this._type=M;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=q;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};
PG.prototype.appendChild=function(M){M.unlink();M._parent=this;this._lastChild?(this._lastChild._next=M,M._prev=this._lastChild):this._firstChild=M;this._lastChild=M};
PG.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 gnv=function(M,q){q.unlink();q._next=M._next;q._next&&(q._next._prev=q);q._prev=M;M._next=q;q._parent=M._parent;q._next||(q._parent._lastChild=q)};
PG.prototype.insertBefore=function(M){M.unlink();M._prev=this._prev;M._prev&&(M._prev._next=M);M._next=this;this._prev=M;M._parent=this._parent;M._prev||(M._parent._firstChild=M)};
_.Yd.Object.defineProperties(PG.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(M){this._literal=M}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(M){this._destination=M}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(M){this._title=M}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(M){this._info=M}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(M){this._level=M}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(M){this._listData.type=M}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(M){this._listData.tight=M}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(M){this._listData.start=M}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(M){this._onEnter=M}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(M){this._onExit=M}}});var wpF=/[ \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,
Co4={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 BIB=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]/),
QUv=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),I$M=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),DQf=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),uTd=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),JYl=/`+/,Z5I=/^`+/,b5P=/\.\.\./g,UQx=/--+/g,xQM=/^<([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])?)*)>/,
zYd=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,mQp=/^ *(?:\n *)?/,Szf=/^[ \t\n\x0b\x0c\x0d]/,TI2=/[ \t\n\x0b\x0c\x0d]+/g,rY9=/^\s/,jUJ=/ *$/,Vb2=/^ */,RYM=/^ *(?:\n|$)/,f$9=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),FGS=/^[^\n`\[\]\\!<&*_'"]+/m,ht=function(M){var q=new PG("text");q._literal=M;return q},OZ=function(M){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=M||{}};
OZ.prototype.match=function(M){M=M.exec(this.subject.slice(this.pos));if(M===null)return null;this.pos+=M.index+M[0].length;return M[0]};
OZ.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var wQ=function(M){M.match(mQp);return!0},H5S=function(M,q,G){var K=0;
var n=M.pos;if(q===39||q===34)K++,M.pos++;else for(;M.peek()===q;)K++,M.pos++;if(K===0)K=null;else{var E=n===0?"\n":M.subject.charAt(n-1);var p=M.peek();p=p===-1?"\n":vn(p);var y=rY9.test(p);p=BIB.test(p);var Y=rY9.test(E);var A=BIB.test(E);E=!y&&!(p&&!Y&&!A);y=!Y&&!(A&&!y&&!p);q===95?(Y=E&&(!y||A),p=y&&(!E||p)):(Y=q===39||q===34?E&&!y:E,p=y);M.pos=n;K={numdelims:K,can_open:Y,can_close:p}}if(!K)return!1;n=K.numdelims;p=M.pos;M.pos+=n;p=q===39?"\u2019":q===34?"\u201c":M.subject.slice(p,M.pos);p=ht(p);
G.appendChild(p);M.delimiters={cc:q,numdelims:n,origdelims:n,node:p,previous:M.delimiters,next:null,can_open:K.can_open,can_close:K.can_close};M.delimiters.previous!==null&&(M.delimiters.previous.next=M.delimiters);return!0},eYx=function(M,q){q.previous!==null&&(q.previous.next=q.next);
q.next===null?M.delimiters=q.previous:q.next.previous=q.previous},$QS=function(M,q){var G,K,n=[],E=!1;
n[95]=q;n[42]=q;n[39]=q;n[34]=q;for(G=M.delimiters;G!==null&&G.previous!==q;)G=G.previous;for(;G!==null;){var p=G.cc;if(G.can_close){var y=G.previous;for(K=!1;y!==null&&y!==q&&y!==n[p];){E=(G.can_open||y.can_close)&&(y.origdelims+G.origdelims)%3===0;if(y.cc===G.cc&&y.can_open&&!E){K=!0;break}y=y.previous}var Y=G;if(p===42||p===95)if(K){var A=G.numdelims>=2&&y.numdelims>=2?2:1;var v=y.node;var h=G.node;y.numdelims-=A;G.numdelims-=A;v._literal=v._literal.slice(0,v._literal.length-A);h._literal=h._literal.slice(0,
h._literal.length-A);var t=new PG(A===1?"emph":"strong");for(A=v._next;A&&A!==h;){var O=A._next;A.unlink();t.appendChild(A);A=O}gnv(v,t);A=y;O=G;A.next!==O&&(A.next=O,O.previous=A);y.numdelims===0&&(v.unlink(),eYx(M,y));G.numdelims===0&&(h.unlink(),y=G.next,eYx(M,G),G=y)}else G=G.next;else p===39?(G.node._literal="\u2019",K&&(y.node._literal="\u2018"),G=G.next):p===34&&(G.node._literal="\u201d",K&&(y.node.literal="\u201c"),G=G.next);K||E||(n[p]=Y.previous,Y.can_open||eYx(M,Y))}else G=G.next}for(;M.delimiters!==
null&&M.delimiters!==q;)eYx(M,M.delimiters)},sH2=function(M){M=M.match(QUv);
return M===null?null:on9(M.substr(1,M.length-2))},MhI=function(M){var q=M.match(I$M);
if(q===null){q=M.pos;for(var G=0,K;(K=M.peek())!==-1;)if(K===92)M.pos+=1,M.peek()!==-1&&(M.pos+=1);else if(K===40)M.pos+=1,G+=1;else if(K===41)if(G<1)break;else M.pos+=1,--G;else if(Szf.exec(vn(K))!==null)break;else M.pos+=1;q=M.subject.substr(q,M.pos-q);return l$J(on9(q))}return l$J(on9(q.substr(1,q.length-2)))},qFx=function(M){M=M.match(f$9);
return M===null||M.length>1001?0:M.length},GOl=function(M,q,G,K){M.brackets!==null&&(M.brackets.bracketAfter=!0);
M.brackets={node:q,previous:M.brackets,previousDelimiter:M.delimiters,index:G,image:K,active:!0}},KiB=function(M,q){var G;
return(G=M.match(FGS))?(M.options.smart?q.appendChild(ht(G.replace(b5P,"\u2026").replace(UQx,function(K){var n=0,E=0;K.length%3===0?E=K.length/3:K.length%2===0?n=K.length/2:K.length%3===2?(n=1,E=(K.length-2)/3):(n=2,E=(K.length-4)/3);K="";var p;for(p=0;p<E;p++)K+="\u2014";for(p=0;p<n;p++)K+="\u2013";return K}))):q.appendChild(ht(G)),!0):!1},nW$=function(M,q,G){M.subject=q;
M.pos=0;q=M.pos;var K=qFx(M);if(K===0)return 0;var n=M.subject.substr(0,K);if(M.peek()===58)M.pos++;else return M.pos=q,0;wQ(M);K=MhI(M);if(K===null||K.length===0)return M.pos=q,0;var E=M.pos;wQ(M);var p=sH2(M);p===null&&(p="",M.pos=E);var y=!0;M.match(RYM)===null&&(p===""?y=!1:(p="",M.pos=E,y=M.match(RYM)!==null));if(!y)return M.pos=q,0;n=alH(n);if(n==="")return M.pos=q,0;G[n]||(G[n]={destination:K,title:p});return M.pos-q},EWv=function(M,q){var G,K=M.peek();
if(K===-1)return!1;switch(K){case 10:M.pos+=1;if((G=q._lastChild)&&G.type==="text"&&G._literal[G._literal.length-1]===" "){var n=G._literal[G._literal.length-2]===" ";G._literal=G._literal.replace(jUJ,"");q.appendChild(new PG(n?"linebreak":"softbreak"))}else q.appendChild(new PG("softbreak"));M.match(Vb2);G=!0;break;case 92:G=M.subject;M.pos+=1;M.peek()===10?(M.pos+=1,G=new PG("linebreak"),q.appendChild(G)):DQf.test(G.charAt(M.pos))?(q.appendChild(ht(G.charAt(M.pos))),M.pos+=1):q.appendChild(ht("\\"));
G=!0;break;case 96:a:if(G=M.match(Z5I),G===null)G=!1;else{n=M.pos;for(var E;(E=M.match(JYl))!==null;)if(E===G){E=new PG("code");E._literal=M.subject.slice(n,M.pos-G.length).trim().replace(TI2," ");q.appendChild(E);G=!0;break a}M.pos=n;q.appendChild(ht(G));G=!0}break;case 42:case 95:G=H5S(M,K,q);break;case 39:case 34:G=M.options.smart&&H5S(M,K,q);break;case 91:G=M.pos;M.pos+=1;n=ht("[");q.appendChild(n);GOl(M,n,G,!1);G=!0;break;case 33:G=M.pos;M.pos+=1;M.peek()===91?(M.pos+=1,n=ht("!["),q.appendChild(n),
GOl(M,n,G+1,!0)):q.appendChild(ht("!"));G=!0;break;case 93:var p,y=!1,Y;M.pos+=1;var A=M.pos;n=M.brackets;if(n===null)q.appendChild(ht("]"));else if(n.active){G=n.image;var v=M.pos;M.peek()===40&&(M.pos++,wQ(M)&&(E=MhI(M))!==null&&wQ(M)&&(Szf.test(M.subject.charAt(M.pos-1))&&(p=sH2(M)),1)&&wQ(M)&&M.peek()===41?(M.pos+=1,y=!0):M.pos=v);if(!y){var h=M.pos,t=qFx(M);t>2?Y=M.subject.slice(h,h+t):n.bracketAfter||(Y=M.subject.slice(n.index,A));t===0&&(M.pos=v);Y&&(Y=M.refmap[alH(Y)])&&(E=Y.destination,p=
Y.title,y=!0)}if(y){A=new PG(G?"image":"link");A._destination=E;A._title=p||"";for(E=n.node._next;E;)p=E._next,E.unlink(),A.appendChild(E),E=p;q.appendChild(A);$QS(M,n.previousDelimiter);M.brackets=M.brackets.previous;n.node.unlink();if(!G)for(n=M.brackets;n!==null;)n.image||(n.active=!1),n=n.previous}else M.brackets=M.brackets.previous,M.pos=A,q.appendChild(ht("]"))}else q.appendChild(ht("]")),M.brackets=M.brackets.previous;G=!0;break;case 60:(G=M.match(xQM))?(G=G.slice(1,G.length-1),n=new PG("link"),
n._destination=l$J("mailto:"+G),n._title="",n.appendChild(ht(G)),q.appendChild(n),G=!0):(G=M.match(zYd))?(G=G.slice(1,G.length-1),n=new PG("link"),n._destination=l$J(G),n._title="",n.appendChild(ht(G)),q.appendChild(n),G=!0):G=!1;G||(G=M.match(hYv),G===null?G=!1:(n=new PG("html_inline"),n._literal=G,q.appendChild(n),G=!0));break;case 38:(G=M.match(uTd))?(q.appendChild(ht(dQv(G))),G=!0):G=!1;break;default:G=KiB(M,q)}G||(M.pos+=1,q.appendChild(ht(vn(K))));return!0};
OZ.prototype.parseInlines=function(M){this.subject=M._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;EWv(this,M););M._string_content=null;$QS(this,null)};
OZ.prototype.parse=OZ.prototype.parseInlines;var Nr2=[/./,/^<(?: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")],kOx=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],phP=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,yMp=/^[#`~*+_=<>0-9-\|]|\|/,LiJ=/[^ \t\f\v\r\n]/,YFJ=/^[*+-]/,Wiv=/^(\d{1,9})([.)])/,AMS=/^#{1,6}(?:[ \t]+|$)/,dKl=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,vW8=/^(?:`{3,}|~{3,})(?= *$)/,h2p=/^(?:=+|-+)[ \t]*$/,thf=/\r\n|\n|\r/,ll$=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Xpi=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Osd={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(M){return M!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(M,q){for(M=q._firstChild;M;){if(oE4(M)&&M._next){q._listData.tight=!1;break}for(var G=M._firstChild;G;){if(oE4(G)&&(M._next||G._next)){q._listData.tight=!1;break}G=G._next}M=M._next}},
canContain:function(M){return M==="item"},
acceptsLines:!1},block_quote:{continue:function(M){var q=M.currentLine;if(M.indented||ld(q,M.nextNonspace)!==62)return 1;Ch(M);a3(M,1,!1);ol(ld(q,M.offset))&&a3(M,1,!0);return 0},
finalize:function(){},
canContain:function(M){return M!=="item"},
acceptsLines:!1},item:{continue:function(M,q){if(M.blank){if(q._firstChild==null)return 1;Ch(M)}else if(M.indent>=q._listData.markerOffset+q._listData.padding)a3(M,q._listData.markerOffset+q._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(M){return M!=="item"&&!Poi(M)},
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(M,q){var G=M.currentLine,K=M.indent;if(q._isFenced){if((K=K<=3&&G.charAt(M.nextNonspace)===q._fenceChar&&G.slice(M.nextNonspace).match(vW8))&&K[0].length>=q._fenceLength)return M.finalize(q,M.lineNumber),2;for(q=q._fenceOffset;q>0&&ol(ld(G,M.offset));)a3(M,1,!0),q--}else if(K>=4)a3(M,4,!0);else if(M.blank)Ch(M);else return 1;return 0},
finalize:function(M,q){if(q._isFenced){var G=q._string_content,K=G.indexOf("\n");M=G.slice(0,K);G=G.slice(K+1);q.info=on9(M.trim());q._literal=G}else q._literal=q._string_content.replace(/(\n *)+$/,"\n");q._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(M,q){return!M.blank||q._htmlBlockType!==6&&q._htmlBlockType!==7?0:1},
finalize:function(M,q){q._literal=q._string_content.replace(/(\n *)+$/,"");q._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(M){return M.blank?1:0},
finalize:function(M,q){for(var G,K=!1;ld(q._string_content,0)===91&&(G=nW$(M.inlineParser,q._string_content,M.refmap));)q._string_content=q._string_content.slice(G),K=!0;K&&!LiJ.test(q._string_content)&&q.unlink()},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(M){return XG(M.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(M){return M=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(M,q){if(!q._rowIsDelimiter){M=q._isHeader?"th":"td";for(var G=q._parent._tableColumns,K=q._string_content,n=0,E="",p,y=q._sourcepos[0][0];n<K.length;){switch(K[n]){case "|":p&&(p._string_content=E.trim(),E="",p=null,G--,G<=0&&(n=K.length));break;default:if(!p){p=new PG(M,[[y,n],[y,n]]);var Y=q._parent._columnAlignment,A=q._parent._tableColumns-G;Y&&A<=Y.length&&A>=0&&(p._alignment=Y[A]);q.appendChild(p)}E+=K[n];p._sourcepos[1][1]=n}n++}p&&(p._string_content=E.trim());q._string_content=
""}},
canContain:function(M){return M!=="row"},
acceptsLines:!1}},whJ=[function(M){if(M.indented||ld(M.currentLine,M.nextNonspace)!==62)return 0;Ch(M);a3(M,1,!1);ol(ld(M.currentLine,M.offset))&&a3(M,1,!0);o3(M);M.addChild("block_quote",M.nextNonspace);return 1},
function(M){var q;if(!M.indented&&(q=M.currentLine.slice(M.nextNonspace).match(AMS))){Ch(M);a3(M,q[0].length,!1);o3(M);var G=M.addChild("heading",M.nextNonspace);G.level=q[0].trim().length;G._string_content=M.currentLine.slice(M.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");a3(M,M.currentLine.length-M.offset);return 2}return 0},
function(M){var q;if(!M.indented&&(q=M.currentLine.slice(M.nextNonspace).match(dKl))){var G=q[0].length;o3(M);var K=M.addChild("code_block",M.nextNonspace);K._isFenced=!0;K._fenceLength=G;K._fenceChar=q[0][0];K._fenceOffset=M.indent;Ch(M);a3(M,G,!1);return 2}return 0},
function(M,q){if(!M.indented&&ld(M.currentLine,M.nextNonspace)===60){var G=M.currentLine.slice(M.nextNonspace),K;for(K=1;K<=7;K++)if(Nr2[K].test(G)&&(K<7||q.type!=="paragraph"))return o3(M),M.addChild("html_block",M.offset)._htmlBlockType=K,2}return 0},
function(M,q){var G;if(!M.indented&&q.type==="paragraph"&&(G=M.currentLine.slice(M.nextNonspace).match(h2p))){o3(M);var K=new PG("heading",q.sourcepos);K.level=G[0][0]==="="?1:2;K._string_content=q._string_content;gnv(q,K);q.unlink();M.tip=K;a3(M,M.currentLine.length-M.offset,!1);return 2}return 0},
function(M){return!M.indented&&phP.test(M.currentLine.slice(M.nextNonspace))?(o3(M),M.addChild("thematic_break",M.nextNonspace),a3(M,M.currentLine.length-M.offset,!1),2):0},
function(M,q){var G,K;if(!(K=M.indented&&q.type!=="list")){a:{var n=q,E=M.currentLine.slice(M.nextNonspace);K={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:M.indent};if(G=E.match(YFJ))K.type="bullet",K.bulletChar=G[0][0];else{if(!(G=E.match(Wiv))||n.type==="paragraph"&&G[1]!=="1"){G=null;break a}K.type="ordered";K.start=parseInt(G[1],10);K.delimiter=G[2]}var p=ld(M.currentLine,M.nextNonspace+G[0].length);if(p!==-1&&p!==9&&p!==32||n.type==="paragraph"&&!M.currentLine.slice(M.nextNonspace+
G[0].length).match(LiJ))G=null;else{Ch(M);a3(M,G[0].length,!0);n=M.column;E=M.offset;do a3(M,1,!0),p=ld(M.currentLine,M.offset);while(M.column-n<5&&ol(p));p=ld(M.currentLine,M.offset)===-1;var y=M.column-n;y>=5||y<1||p?(K.padding=G[0].length+1,M.column=n,M.offset=E,ol(ld(M.currentLine,M.offset))&&a3(M,1,!0)):K.padding=G[0].length+y;G=K}}K=!G}if(K)return 0;o3(M);(K=M.tip.type!=="list")||(q=q._listData,K=!(q.type===G.type&&q.delimiter===G.delimiter&&q.bulletChar===G.bulletChar));K&&(q=M.addChild("list",
M.nextNonspace),q._listData=G);q=M.addChild("item",M.nextNonspace);q._listData=G;return 1},
function(M){var q;return((q=M.options.shouldParseIndentAsCodeBlock)!=null?q:1)&&M.indented&&M.tip.type!=="paragraph"&&!M.blank?(a3(M,4,!0),o3(M),M.addChild("code_block",M.offset),2):0},
function(M,q){var G=XG(M.currentLine),K=XG(M.lookahead);if(G!==0&&K<0&&Math.abs(G)==Math.abs(K)&&!Poi(q.type)){o3(M);q=M.addChild("table",M.nextNonspace);q._tableRows=1;q._tableColumns=Math.abs(G);G=M.lookahead;if(Xpi.test(G)){K=[];for(var n=0,E=!1,p=0,y=void 0;n<G.length;){var Y=p>=3;switch(G[n]){case "-":p++;break;case "|":E&&(K.push(y),y=void 0,p=0);E=!0;break;case ":":y||Y||(y="left"),!y&&Y&&(y="right"),y==="left"&&Y&&(y="center")}n++}G=K}else G=void 0;q._columnAlignment=G;q=M.addChild("row",
M.nextNonspace);q._isHeader=!0;a3(M,M.currentLine.length-M.offset,!1);q._string_content=M.currentLine;return 1}return 0},
function(M,q){if(q.type=="table"&&XG(M.currentLine)!==0){o3(M);var G=q;q=M.addChild("row",M.nextNonspace);XG(M.currentLine)<0?q._rowIsDelimiter=!0:G._tableRows+=1;a3(M,M.currentLine.length-M.offset,!1);q._string_content=M.currentLine;return 2}return 0}],oTY=function(){var M={shouldParseIndentAsCodeBlock:!1};
M=M===void 0?{}:M;this.lastMatchedContainer=this.doc=ieD();this.refmap={};this.lastLineLength=0;this.inlineParser=new OZ(M);this.options=M;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=Osd;this.blockStarts=whJ},Cq2=function(M){M.partiallyConsumedTab&&(M.offset+=1,M.tip._string_content+=" ".repeat(4-M.column%
4));
M.tip._string_content+=M.currentLine.slice(M.offset)+"\n"};
oTY.prototype.addChild=function(M,q){for(;!this.blocks[this.tip.type].canContain(M);)this.finalize(this.tip,this.lineNumber-1);M=new PG(M,[[this.lineNumber,q+1],[0,0]]);M._string_content="";this.tip.appendChild(M);return this.tip=M};
var o3=function(M){if(!M.allClosed){for(;M.oldtip!==M.lastMatchedContainer;){var q=M.oldtip._parent;M.finalize(M.oldtip,M.lineNumber-1);M.oldtip=q}M.allClosed=!0}},a3=function(M,q,G){for(var K=M.currentLine,n,E;q>0&&(E=K[M.offset]);)E==="\t"?(n=4-M.column%4,G?(M.partiallyConsumedTab=n>q,n=n>q?q:n,M.column+=n,M.offset+=M.partiallyConsumedTab?0:1,q-=n):(M.partiallyConsumedTab=!1,M.column+=n,M.offset+=1,--q)):(M.partiallyConsumedTab=!1,M.offset+=1,M.column+=1,--q)},Ch=function(M){M.offset=M.nextNonspace;
M.column=M.nextNonspaceColumn;M.partiallyConsumedTab=!1},aQp=function(M){for(var q=M.currentLine,G=M.offset,K=M.column,n;(n=q.charAt(G))!=="";)if(n===" ")G++,K++;
else if(n==="\t")G++,K+=4-K%4;else break;M.blank=n==="\n"||n==="\r"||n==="";M.nextNonspace=G;M.nextNonspaceColumn=K;M.indent=M.nextNonspaceColumn-M.column;M.indented=M.indent>=4};
oTY.prototype.finalize=function(M,q){var G=M._parent;M._open=!1;M.sourcepos[1]=[q,this.lastLineLength];this.blocks[M.type].finalize(this,M);this.tip=G};
oTY.prototype.parse=function(M){this.tip=this.doc=ieD();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!M)return this.doc;this.options.time&&console.time("preparing input");var q=M.split(thf),G=q.length;M.charCodeAt(M.length-1)===10&&--G;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(M=0;M<G;M++)a:{var K=void 0,n=q[M],E=q[M+1],p=!0,y=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;n.indexOf("\x00")!==-1&&(n=n.replace(/\0/g,"\ufffd"));this.currentLine=n;for(this.lookahead=E;(K=y._lastChild)&&K._open;){y=K;aQp(this);switch(this.blocks[y.type].continue(this,y)){case 0:break;case 1:p=!1;break;case 2:this.lastLineLength=n.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!p){y=y._parent;break}}this.allClosed=y===this.oldtip;this.lastMatchedContainer=
y;K=y.type!=="paragraph"&&Osd[y.type].acceptsLines;E=this.blockStarts;for(p=E.length;!K;){aQp(this);if(!this.indented&&!yMp.test(n.slice(this.nextNonspace))){Ch(this);break}for(var Y=0;Y<p;){var A=E[Y](this,y);if(A===1){y=this.tip;break}else if(A===2){y=this.tip;K=!0;break}else Y++}if(Y===p){Ch(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){o3(this);this.blank&&y.lastChild&&(y.lastChild._lastLineBlank=!0);K=y.type;E=this.blank&&!(K==="block_quote"||K==="code_block"&&y._isFenced||
K==="item"&&!y._firstChild&&y.sourcepos[0][0]===this.lineNumber);for(p=y;p;)p._lastLineBlank=E,p=p._parent;this.blocks[K].acceptsLines?(Cq2(this),K==="html_block"&&y._htmlBlockType>=1&&y._htmlBlockType<=5&&kOx[y._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(y,this.lineNumber)):this.offset<n.length&&!this.blank&&(this.addChild("paragraph",this.offset),Ch(this),Cq2(this))}else Cq2(this);this.lastLineLength=n.length}for(;this.tip;)this.finalize(this.tip,G);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");n=new cYx(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;G=n.next();)q=G.node,M=q.type,G.entering||M!=="paragraph"&&M!=="heading"&&M!=="th"&&M!="td"||this.inlineParser.parse(q);this.options.time&&console.timeEnd("inline parsing");return this.doc};ccy.prototype.render=function(M){M=new cYx(M);var q;this.buffer="";for(this.lastOut="\n";q=M.next();){var G=q.node.type;if(this[G])this[G](q.node,q.entering)}return this.buffer};
ccy.prototype.out=function(M){lz(this,M)};
var lz=function(M,q){M.buffer+=q;M.lastOut=q};
ccy.prototype.cr=function(){this.lastOut!=="\n"&&lz(this,"\n")};var oW$=/^javascript:|vbscript:|file:|data:/i,lQ2=/^data:image\/(?:png|gif|jpeg|webp)/i,Xhp=function(M){return oW$.test(M)&&!lQ2.test(M)};
id.prototype=Object.create(ccy.prototype);_.N=id.prototype;_.N.text=function(M){this.out(M.literal)};
_.N.html_inline=function(M){this.options.safe?lz(this,"\x3c!-- raw HTML omitted --\x3e"):lz(this,M.literal)};
_.N.html_block=function(M){this.cr();this.options.safe?lz(this,"\x3c!-- raw HTML omitted --\x3e"):lz(this,M.literal);this.cr()};
_.N.softbreak=function(){lz(this,this.options.softbreak)};
_.N.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.N.link=function(M,q){var G=this.attrs(M);q?(this.options.safe&&Xhp(M.destination)||G.push(["href",dQ(M.destination,!0)]),M.title&&G.push(["title",dQ(M.title,!0)]),this.tag("a",G)):this.tag("/a")};
_.N.image=function(M,q){q?(this.disableTags===0&&(this.options.safe&&Xhp(M.destination)?lz(this,'<img src="" alt="'):lz(this,'<img src="'+dQ(M.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(M.title&&lz(this,'" title="'+dQ(M.title,!0)),lz(this,'" />')))};
_.N.emph=function(M,q){this.tag(q?"em":"/em")};
_.N.strong=function(M,q){this.tag(q?"strong":"/strong")};
_.N.paragraph=function(M,q){var G=M.parent.parent;M=this.attrs(M);G!==null&&G.type==="list"&&G.listTight||(q?(this.cr(),this.tag("p",M)):(this.tag("/p"),this.cr()))};
_.N.heading=function(M,q){var G="h"+M.level;M=this.attrs(M);q?(this.cr(),this.tag(G,M)):(this.tag("/"+G),this.cr())};
_.N.code=function(M){this.tag("code");this.out(M.literal);this.tag("/code")};
_.N.code_block=function(M){var q=M.info?M.info.split(/\s+/):[],G=this.attrs(M);q.length>0&&q[0].length>0&&G.push(["class","language-"+dQ(q[0],!0)]);this.cr();this.tag("pre");this.tag("code",G);this.out(M.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.N.thematic_break=function(M){M=this.attrs(M);this.cr();this.tag("hr",M,!0);this.cr()};
_.N.block_quote=function(M,q){M=this.attrs(M);q?(this.cr(),this.tag("blockquote",M)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.N.list=function(M,q){var G=M.listType==="bullet"?"ul":"ol",K=this.attrs(M);q?(M=M.listStart,M!==null&&M!==1&&K.push(["start",M.toString()]),this.cr(),this.tag(G,K)):(this.cr(),this.tag("/"+G));this.cr()};
_.N.item=function(M,q){M=this.attrs(M);q?this.tag("li",M):(this.tag("/li"),this.cr())};
_.N.custom_inline=function(M,q){q&&M.onEnter?lz(this,M.onEnter):!q&&M.onExit&&lz(this,M.onExit)};
_.N.custom_block=function(M,q){this.cr();q&&M.onEnter?lz(this,M.onEnter):!q&&M.onExit&&lz(this,M.onExit);this.cr()};
_.N.table=function(M,q){M=this.attrs(M);q?(this.cr(),this.tag("table",M)):(this.tag("/table"),this.cr())};
_.N.row=function(M,q){M._rowIsDelimiter||(M=this.attrs(M),q?this.tag("tr",M):this.tag("/tr"))};
_.N.td=function(M,q){var G=this.attrs(M);M._alignment&&G.push(["align",M._alignment]);q?this.tag("td",G):this.tag("/td")};
_.N.th=function(M,q){var G=this.attrs(M);M._alignment&&G.push(["align",M._alignment]);q?this.tag("th",G):this.tag("/th")};
_.N.out=function(M){lz(this,dQ(M,!1))};
_.N.tag=function(M,q,G){if(!(this.disableTags>0)){this.buffer+="<"+M;if(q&&q.length>0){M=0;for(var K;(K=q[M])!==void 0;)this.buffer+=" "+K[0]+'="'+K[1]+'"',M++}G&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.N.attrs=function(M){var q=[];this.options.sourcepos&&(M=M.sourcepos)&&q.push(["data-sourcepos",String(M[0][0])+":"+String(M[0][1])+"-"+String(M[1][0])+":"+String(M[1][1])]);return q};
id.prototype.text=id.prototype.text;id.prototype.html_inline=id.prototype.html_inline;id.prototype.html_block=id.prototype.html_block;id.prototype.softbreak=id.prototype.softbreak;id.prototype.linebreak=id.prototype.linebreak;id.prototype.link=id.prototype.link;id.prototype.image=id.prototype.image;id.prototype.emph=id.prototype.emph;id.prototype.strong=id.prototype.strong;id.prototype.paragraph=id.prototype.paragraph;id.prototype.heading=id.prototype.heading;id.prototype.code=id.prototype.code;
id.prototype.code_block=id.prototype.code_block;id.prototype.thematic_break=id.prototype.thematic_break;id.prototype.block_quote=id.prototype.block_quote;id.prototype.list=id.prototype.list;id.prototype.item=id.prototype.item;id.prototype.custom_inline=id.prototype.custom_inline;id.prototype.custom_block=id.prototype.custom_block;id.prototype.table=id.prototype.table;id.prototype.row=id.prototype.row;id.prototype.td=id.prototype.td;id.prototype.th=id.prototype.th;id.prototype.out=id.prototype.out;
id.prototype.tag=id.prototype.tag;id.prototype.attrs=id.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 Pq2,isv,v0F;(function(){function M(u,I){return u<I?-1:u>I?1:u>=I?0:NaN}
function q(u){return function(I,x){return M(u(I),x)}}
function G(){for(var u=0,I=arguments.length,x={},MD;u<I;++u){if(!(MD=arguments[u]+"")||MD in x)throw Error("we`"+MD);x[MD]=[]}return new K(x)}
function K(u){this._=u}
function n(u,I){return u.trim().split(/^|\s+/).map(function(x){var MD="",pj=x.indexOf(".");pj>=0&&(MD=x.slice(pj+1),x=x.slice(0,pj));if(x&&!I.hasOwnProperty(x))throw Error("xe`"+x);return{type:x,name:MD}})}
function E(u,I,x){for(var MD=0,pj=u.length;MD<pj;++MD)if(u[MD].name===I){u[MD]=cVw;u=u.slice(0,MD).concat(u.slice(MD+1));break}x!=null&&u.push({name:I,value:x});return u}
function p(u){var I=u,x=I.indexOf(":");x>=0&&(I=u.slice(0,x))!=="xmlns"&&(u=u.slice(x+1));return Th.hasOwnProperty(I)?{space:Th[I],local:u}:u}
function y(u){return function(){var I=this.ownerDocument,x=this.namespaceURI;return x==="http://www.w3.org/1999/xhtml"&&I.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?I.createElement(u):I.createElementNS(x,u)}}
function Y(u){return function(){return this.ownerDocument.createElementNS(u.space,u.local)}}
function A(u){u=p(u);return(u.local?Y:y)(u)}
function v(){}
function h(u){return u==null?v:function(){return this.querySelector(u)}}
function t(u){return Array(u.length)}
function O(u,I){this.ownerDocument=u.ownerDocument;this.namespaceURI=u.namespaceURI;this._next=null;this._parent=u;this.__data__=I}
function a(u){return function(){return u}}
function g(u,I,x,MD,pj,h4){for(var oy=0,DF,KP=I.length,$s=h4.length;oy<$s;++oy)(DF=I[oy])?(DF.__data__=h4[oy],MD[oy]=DF):x[oy]=new O(u,h4[oy]);for(;oy<KP;++oy)if(DF=I[oy])pj[oy]=DF}
function D(u,I,x,MD,pj,h4,oy){var DF,KP,$s={},Nx=I.length,d9=h4.length,RI=Array(Nx),I8;for(DF=0;DF<Nx;++DF)if(KP=I[DF])RI[DF]=I8="$"+oy.call(KP,KP.__data__,DF,I),I8 in $s?pj[DF]=KP:$s[I8]=KP;for(DF=0;DF<d9;++DF)I8="$"+oy.call(u,h4[DF],DF,h4),(KP=$s[I8])?(MD[DF]=KP,KP.__data__=h4[DF],$s[I8]=null):x[DF]=new O(u,h4[DF]);for(DF=0;DF<Nx;++DF)(KP=I[DF])&&$s[RI[DF]]===KP&&(pj[DF]=KP)}
function J(u,I){return u<I?-1:u>I?1:u>=I?0:NaN}
function Z(u){return function(){this.removeAttribute(u)}}
function V(u){return function(){this.removeAttributeNS(u.space,u.local)}}
function S(u,I){return function(){this.setAttribute(u,I)}}
function m(u,I){return function(){this.setAttributeNS(u.space,u.local,I)}}
function R(u,I){return function(){var x=I.apply(this,arguments);x==null?this.removeAttribute(u):this.setAttribute(u,x)}}
function se(u,I){return function(){var x=I.apply(this,arguments);x==null?this.removeAttributeNS(u.space,u.local):this.setAttributeNS(u.space,u.local,x)}}
function yY(u){return function(){this.style.removeProperty(u)}}
function d$(u,I,x){return function(){this.style.setProperty(u,I,x)}}
function cy(u,I,x){return function(){var MD=I.apply(this,arguments);MD==null?this.style.removeProperty(u):this.style.setProperty(u,MD,x)}}
function t4(u,I){return u.style.getPropertyValue(I)||(u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView).getComputedStyle(u,null).getPropertyValue(I)}
function ay(u){return function(){delete this[u]}}
function bH(u,I){return function(){this[u]=I}}
function iH(u,I){return function(){var x=I.apply(this,arguments);x==null?delete this[u]:this[u]=x}}
function oI(){this.textContent=""}
function r9(u){return function(){this.textContent=u}}
function X2(u){return function(){var I=u.apply(this,arguments);this.textContent=I==null?"":I}}
function EM(){this.innerHTML=""}
function LP(u){return function(){this.innerHTML=u}}
function Pv(u){return function(){var I=u.apply(this,arguments);this.innerHTML=I==null?"":I}}
function g9(){return null}
function a8(){var u=this.parentNode;u&&u.removeChild(this)}
function tE(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function ND(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function Mx(u,I,x){u=hd(u,I,x);return function(MD){var pj=MD.relatedTarget;pj&&(pj===this||pj.compareDocumentPosition(this)&8)||u.call(this,MD)}}
function hd(u,I,x){return function(){u.call(this,this.__data__,I,x)}}
function Kn(u){return u.trim().split(/^|\s+/).map(function(I){var x="",MD=I.indexOf(".");MD>=0&&(x=I.slice(MD+1),I=I.slice(0,MD));return{type:I,name:x}})}
function w9(u){return function(){var I=this.__on;if(I){for(var x=0,MD=-1,pj=I.length,h4;x<pj;++x)(h4=I[x],u.type&&h4.type!==u.type||h4.name!==u.name)?I[++MD]=h4:this.removeEventListener(h4.type,h4.listener,h4.capture);++MD?I.length=MD:delete this.__on}}}
function Gs(u,I,x){var MD=JVM.hasOwnProperty(u.type)?Mx:hd;return function(pj,h4,oy){pj=this.__on;var DF;h4=MD(I,h4,oy);if(pj){oy=0;for(var KP=pj.length;oy<KP;++oy)if((DF=pj[oy]).type===u.type&&DF.name===u.name){this.removeEventListener(DF.type,DF.listener,DF.capture);this.addEventListener(DF.type,DF.listener=h4,DF.capture=x);DF.value=I;return}}this.addEventListener(u.type,h4,x);DF={type:u.type,name:u.name,value:I,listener:h4,capture:x};pj?pj.push(DF):this.__on=[DF]}}
function u5(u,I,x){var MD=u.ownerDocument&&u.ownerDocument.defaultView||u.document&&u||u.defaultView,pj=MD.CustomEvent;typeof pj==="function"?pj=new pj(I,x):(pj=MD.document.createEvent("Event"),x?(pj.initEvent(I,x.bubbles,x.cancelable),pj.detail=x.detail):pj.initEvent(I,!1,!1));u.dispatchEvent(pj)}
function jJ(u,I){return function(){return u5(this,u,I)}}
function Ad(u,I){return function(){return u5(this,u,I.apply(this,arguments))}}
function Wv(u,I){this._groups=u;this._parents=I}
function qM(){return new Wv([[document.documentElement]],gSL)}
function Ry(){this._="@"+(++BJn).toString(36)}
function OM(u,I,x){u.prototype=I.prototype=x;x.constructor=u}
function OL(u,I){u=Object.create(u.prototype);for(var x in I)u[x]=I[x];return u}
function fG(){}
function BI(u){var I;u=(u+"").trim().toLowerCase();return(I=QBw.exec(u))?(I=parseInt(I[1],16),new Xv(I>>8&15|I>>4&240,I>>4&15|I&240,(I&15)<<4|I&15,1)):(I=I6I.exec(u))?mw(parseInt(I[1],16)):(I=DIU.exec(u))?new Xv(I[1],I[2],I[3],1):(I=uUM.exec(u))?new Xv(I[1]*255/100,I[2]*255/100,I[3]*255/100,1):(I=JVL.exec(u))?e1(I[1],I[2],I[3],I[4]):(I=ZCL.exec(u))?e1(I[1]*255/100,I[2]*255/100,I[3]*255/100,I[4]):(I=bCM.exec(u))?pS(I[1],I[2]/100,I[3]/100,1):(I=UII.exec(u))?pS(I[1],I[2]/100,I[3]/100,I[4]):ZCM.hasOwnProperty(u)?
mw(ZCM[u]):u==="transparent"?new Xv(NaN,NaN,NaN,0):null}
function mw(u){return new Xv(u>>16&255,u>>8&255,u&255,1)}
function e1(u,I,x,MD){MD<=0&&(u=I=x=NaN);return new Xv(u,I,x,MD)}
function p8(u){u instanceof fG||(u=BI(u));if(!u)return new Xv;u=u.rgb();return new Xv(u.r,u.g,u.b,u.opacity)}
function fP(u,I,x,MD){return arguments.length===1?p8(u):new Xv(u,I,x,MD==null?1:MD)}
function Xv(u,I,x,MD){this.r=+u;this.g=+I;this.b=+x;this.opacity=+MD}
function NM(u){u=Math.max(0,Math.min(255,Math.round(u)||0));return(u<16?"0":"")+u.toString(16)}
function pS(u,I,x,MD){MD<=0?u=I=x=NaN:x<=0||x>=1?u=I=NaN:I<=0&&(u=NaN);return new Ox(u,I,x,MD)}
function $q(u){if(u instanceof Ox)return new Ox(u.h,u.s,u.l,u.opacity);u instanceof fG||(u=BI(u));if(!u)return new Ox;if(u instanceof Ox)return u;u=u.rgb();var I=u.r/255,x=u.g/255,MD=u.b/255,pj=Math.min(I,x,MD),h4=Math.max(I,x,MD),oy=NaN,DF=h4-pj,KP=(h4+pj)/2;DF?(oy=I===h4?(x-MD)/DF+(x<MD)*6:x===h4?(MD-I)/DF+2:(I-x)/DF+4,DF/=KP<.5?h4+pj:2-h4-pj,oy*=60):DF=KP>0&&KP<1?0:oy;return new Ox(oy,DF,KP,u.opacity)}
function My(u,I,x,MD){return arguments.length===1?$q(u):new Ox(u,I,x,MD==null?1:MD)}
function Ox(u,I,x,MD){this.h=+u;this.s=+I;this.l=+x;this.opacity=+MD}
function PD(u,I,x){return(u<60?I+(x-I)*u/60:u<180?x:u<240?I+(x-I)*(240-u)/60:I)*255}
function LK(u){if(u instanceof By)return new By(u.l,u.a,u.b,u.opacity);if(u instanceof iS){if(isNaN(u.h))return new By(u.l,0,0,u.opacity);var I=u.h*bCx;return new By(u.l,Math.cos(I)*u.c,Math.sin(I)*u.c,u.opacity)}u instanceof Xv||(u=p8(u));var x=ww(u.r),MD=ww(u.g),pj=ww(u.b);I=Ue(.2225045*x+.7168786*MD+.0606169*pj);if(x===MD&&MD===pj)var h4=x=I;else h4=Ue((.4360747*x+.3850649*MD+.1430804*pj)/.96422),x=Ue((.0139322*x+.0971045*MD+.7141733*pj)/.82521);return new By(116*I-16,500*(h4-I),200*(I-x),u.opacity)}
function By(u,I,x,MD){this.l=+u;this.a=+I;this.b=+x;this.opacity=+MD}
function Ue(u){return u>xII?Math.pow(u,1/3):u/UIv+xIv}
function jw(u){return u>Fk?u*u*u:UIv*(u-xIv)}
function aI(u){return 255*(u<=.0031308?12.92*u:1.055*Math.pow(u,1/2.4)-.055)}
function ww(u){return(u/=255)<=.04045?u/12.92:Math.pow((u+.055)/1.055,2.4)}
function Bt(u){if(u instanceof iS)return new iS(u.h,u.c,u.l,u.opacity);u instanceof By||(u=LK(u));if(u.a===0&&u.b===0)return new iS(NaN,0,u.l,u.opacity);var I=Math.atan2(u.b,u.a)*z6M;return new iS(I<0?I+360:I,Math.sqrt(u.a*u.a+u.b*u.b),u.l,u.opacity)}
function QI(u,I,x,MD){return arguments.length===1?Bt(u):new iS(u,I,x,MD==null?1:MD)}
function iS(u,I,x,MD){this.h=+u;this.c=+I;this.l=+x;this.opacity=+MD}
function lS(u,I,x,MD){if(arguments.length===1){var pj=u;if(pj instanceof UL)pj=new UL(pj.h,pj.s,pj.l,pj.opacity);else{pj instanceof Xv||(pj=p8(pj));var h4=pj.g/255,oy=pj.b/255,DF=(mIl*oy+pj.r/255*-1.7884503806-3.5172982438*h4)/(mIl+-1.7884503806-3.5172982438);oy-=DF;var KP=(1.97294*(h4-DF)- -.29227*oy)/-.90649;oy=(h4=Math.sqrt(KP*KP+oy*oy)/(1.97294*DF*(1-DF)))?Math.atan2(KP,oy)*z6M-120:NaN;pj=new UL(oy<0?oy+360:oy,h4,DF,pj.opacity)}}else pj=new UL(u,I,x,MD==null?1:MD);return pj}
function UL(u,I,x,MD){this.h=+u;this.s=+I;this.l=+x;this.opacity=+MD}
function OA(u,I,x,MD,pj){var h4=u*u,oy=h4*u;return((1-3*u+3*h4-oy)*I+(4-6*h4+3*oy)*x+(1+3*u+3*h4-3*oy)*MD+oy*pj)/6}
function td(u){return function(){return u}}
function gq(u,I){return function(x){return u+x*I}}
function jA(u,I,x){return u=Math.pow(u,x),I=Math.pow(I,x)-u,x=1/x,function(MD){return Math.pow(u+MD*I,x)}}
function UA(u,I){var x=I-u;return x?gq(u,x>180||x<-180?x-360*Math.round(x/360):x):td(isNaN(u)?I:u)}
function FS(u){return(u=+u)===1?$c:function(I,x){return x-I?jA(I,x,u):td(isNaN(I)?x:I)}}
function $c(u,I){var x=I-u;return x?gq(u,x):td(isNaN(u)?I:u)}
function Uq(u){return function(I){var x=I.length,MD=Array(x),pj=Array(x),h4=Array(x),oy;for(oy=0;oy<x;++oy){var DF=fP(I[oy]);MD[oy]=DF.r||0;pj[oy]=DF.g||0;h4[oy]=DF.b||0}MD=u(MD);pj=u(pj);h4=u(h4);DF.opacity=1;return function(KP){DF.r=MD(KP);DF.g=pj(KP);DF.b=h4(KP);return DF+""}}}
function y1(u,I){return u=+u,I-=u,function(x){return u+I*x}}
function wl(u){return function(){return u}}
function $0(u){return function(I){return u(I)+""}}
function fj(u,I){var x=kU4.lastIndex=pJF.lastIndex=0,MD,pj,h4,oy=-1,DF=[],KP=[];u+="";for(I+="";(MD=kU4.exec(u))&&(pj=pJF.exec(I));)(h4=pj.index)>x&&(h4=I.slice(x,h4),DF[oy]?DF[oy]+=h4:DF[++oy]=h4),(MD=MD[0])===(pj=pj[0])?DF[oy]?DF[oy]+=pj:DF[++oy]=pj:(DF[++oy]=null,KP.push({i:oy,x:y1(MD,pj)})),x=pJF.lastIndex;x<I.length&&(h4=I.slice(x),DF[oy]?DF[oy]+=h4:DF[++oy]=h4);return DF.length<2?KP[0]?$0(KP[0].x):wl(I):(I=KP.length,function($s){for(var Nx=0,d9;Nx<I;++Nx)DF[(d9=KP[Nx]).i]=d9.x($s);return DF.join("")})}
function PI(u,I,x,MD,pj,h4){var oy,DF,KP;if(oy=Math.sqrt(u*u+I*I))u/=oy,I/=oy;if(KP=u*x+I*MD)x-=u*KP,MD-=I*KP;if(DF=Math.sqrt(x*x+MD*MD))x/=DF,MD/=DF,KP/=DF;u*MD<I*x&&(u=-u,I=-I,KP=-KP,oy=-oy);return{translateX:pj,translateY:h4,rotate:Math.atan2(I,u)*SO$,skewX:Math.atan(KP)*SO$,scaleX:oy,scaleY:DF}}
function Ts(u,I,x,MD){function pj($s){return $s.length?$s.pop()+" ":""}
function h4($s,Nx,d9,RI,I8,av){$s!==d9||Nx!==RI?(I8=I8.push("translate(",null,I,null,x),av.push({i:I8-4,x:y1($s,d9)},{i:I8-2,x:y1(Nx,RI)})):(d9||RI)&&I8.push("translate("+d9+I+RI+x)}
function oy($s,Nx,d9,RI){$s!==Nx?($s-Nx>180?Nx+=360:Nx-$s>180&&($s+=360),RI.push({i:d9.push(pj(d9)+"rotate(",null,MD)-2,x:y1($s,Nx)})):Nx&&d9.push(pj(d9)+"rotate("+Nx+MD)}
function DF($s,Nx,d9,RI){$s!==Nx?RI.push({i:d9.push(pj(d9)+"skewX(",null,MD)-2,x:y1($s,Nx)}):Nx&&d9.push(pj(d9)+"skewX("+Nx+MD)}
function KP($s,Nx,d9,RI,I8,av){$s!==d9||Nx!==RI?(I8=I8.push(pj(I8)+"scale(",null,",",null,")"),av.push({i:I8-4,x:y1($s,d9)},{i:I8-2,x:y1(Nx,RI)})):d9===1&&RI===1||I8.push(pj(I8)+"scale("+d9+","+RI+")")}
return function($s,Nx){var d9=[],RI=[];$s=u($s);Nx=u(Nx);h4($s.translateX,$s.translateY,Nx.translateX,Nx.translateY,d9,RI);oy($s.rotate,Nx.rotate,d9,RI);DF($s.skewX,Nx.skewX,d9,RI);KP($s.scaleX,$s.scaleY,Nx.scaleX,Nx.scaleY,d9,RI);$s=Nx=null;return function(I8){for(var av=-1,rL=RI.length,cD;++av<rL;)d9[(cD=RI[av]).i]=cD.x(I8);return d9.join("")}}}
function yI(u){return function(I,x){var MD=u((I=My(I)).h,(x=My(x)).h),pj=$c(I.s,x.s),h4=$c(I.l,x.l),oy=$c(I.opacity,x.opacity);return function(DF){I.h=MD(DF);I.s=pj(DF);I.l=h4(DF);I.opacity=oy(DF);return I+""}}}
function dq(u){return function(I,x){var MD=u((I=QI(I)).h,(x=QI(x)).h),pj=$c(I.c,x.c),h4=$c(I.l,x.l),oy=$c(I.opacity,x.opacity);return function(DF){I.h=MD(DF);I.c=pj(DF);I.l=h4(DF);I.opacity=oy(DF);return I+""}}}
function Rg(u){return function MD(x){function pj(h4,oy){var DF=u((h4=lS(h4)).h,(oy=lS(oy)).h),KP=$c(h4.s,oy.s),$s=$c(h4.l,oy.l),Nx=$c(h4.opacity,oy.opacity);return function(d9){h4.h=DF(d9);h4.s=KP(d9);h4.l=$s(Math.pow(d9,x));h4.opacity=Nx(d9);return h4+""}}
x=+x;pj.gamma=MD;return pj}(1)}
function Vq(){return i9||(TJl(Kl),i9=Zv.now()+t1w)}
function Kl(){i9=0}
function xm(){this._call=this._time=this._next=null}
function g5(u,I,x){var MD=new xm;MD.restart(u,I,x);return MD}
function Bu(){i9=(OAY=Zv.now())+t1w;Hq=bT=0;try{Vq();++Hq;for(var u=wry,I;u;)(I=i9-u._time)>=0&&u._call.call(null,I),u=u._next;--Hq}finally{Hq=0;u=wry;for(var x=Infinity;u;)if(u._call){x>u._time&&(x=u._time);var MD=u;u=u._next}else I=u._next,u._next=null,u=MD?MD._next=I:wry=I;Ur=MD;Qv(x);i9=0}}
function $pH(){var u=Zv.now(),I=u-OAY;I>1E3&&(t1w-=I,OAY=u)}
function Qv(u){Hq||(bT&&(bT=clearTimeout(bT)),u-i9>24?(u<Infinity&&(bT=setTimeout(Bu,u-Zv.now()-t1w)),xf&&(xf=clearInterval(xf))):(xf||(OAY=Zv.now(),xf=setInterval($pH,1E3)),Hq=1,TJl(Bu)))}
function rVM(u,I,x){var MD=new xm;I=I==null?0:+I;MD.restart(function(pj){MD.stop();u(pj+I)},I,x);
return MD}
function yVj(u,I,x,MD,pj,h4){var oy=u.__transition;if(!oy)u.__transition={};else if(x in oy)return;z6L(u,x,{name:I,index:MD,group:pj,on:mIs,tween:SOg,time:h4.time,delay:h4.delay,duration:h4.duration,ease:h4.ease,timer:null,state:0})}
function LrF(u,I){u=mP(u,I);if(u.state>0)throw Error("ye");return u}
function c9(u,I){u=mP(u,I);if(u.state>2)throw Error("ze");return u}
function mP(u,I){u=u.__transition;if(!u||!(u=u[I]))throw Error("Ae");return u}
function z6L(u,I,x){function MD(KP){var $s,Nx;if(x.state!==1)return h4();for(RI in oy){var d9=oy[RI];if(d9.name===x.name){if(d9.state===3)return rVM(MD);d9.state===4?(d9.state=6,d9.timer.stop(),d9.on.call("interrupt",u,u.__data__,d9.index,d9.group),delete oy[RI]):+RI<I&&(d9.state=6,d9.timer.stop(),delete oy[RI])}}rVM(function(){x.state===3&&(x.state=4,x.timer.restart(pj,x.delay,x.time),pj(KP))});
x.state=2;x.on.call("start",u,u.__data__,x.index,x.group);if(x.state===2){x.state=3;DF=Array(Nx=x.tween.length);var RI=0;for($s=-1;RI<Nx;++RI)if(d9=x.tween[RI].value.call(u,u.__data__,x.index,x.group))DF[++$s]=d9;DF.length=$s+1}}
function pj(KP){KP=KP<x.duration?x.ease.call(null,KP/x.duration):(x.timer.restart(h4),x.state=5,1);for(var $s=-1,Nx=DF.length;++$s<Nx;)DF[$s].call(null,KP);x.state===5&&(x.on.call("end",u,u.__data__,x.index,x.group),h4())}
function h4(){x.state=6;x.timer.stop();delete oy[I];for(var KP in oy)return;delete u.__transition}
var oy=u.__transition,DF;oy[I]=x;x.timer=g5(function(KP){x.state=1;x.timer.restart(MD,x.delay,x.time);x.delay<=KP&&MD(KP-x.delay)},0,x.time)}
function TJs(u,I){var x,MD;return function(){var pj=c9(this,u),h4=pj.tween;if(h4!==x){MD=x=h4;h4=0;for(var oy=MD.length;h4<oy;++h4)if(MD[h4].name===I){MD=MD.slice();MD.splice(h4,1);break}}pj.tween=MD}}
function rVL(u,I,x){var MD,pj;if(typeof x!=="function")throw Error();return function(){var h4=c9(this,u),oy=h4.tween;if(oy!==MD){pj=(MD=oy).slice();oy={name:I,value:x};for(var DF=0,KP=pj.length;DF<KP;++DF)if(pj[DF].name===I){pj[DF]=oy;break}DF===KP&&pj.push(oy)}h4.tween=pj}}
function YOH(u,I,x){var MD=u._id;u.each(function(){var pj=c9(this,MD);(pj.value||(pj.value={}))[I]=x.apply(this,arguments)});
return function(pj){return mP(pj,MD).value[I]}}
function jBd(u,I){var x;return(typeof I==="number"?y1:I instanceof BI?Vrp:(x=BI(I))?(I=x,Vrp):fj)(u,I)}
function jBE(u){return function(){this.removeAttribute(u)}}
function Vr5(u){return function(){this.removeAttributeNS(u.space,u.local)}}
function R6P(u,I,x){var MD,pj;return function(){var h4=this.getAttribute(u);return h4===x?null:h4===MD?pj:pj=I(MD=h4,x)}}
function f6v(u,I,x){var MD,pj;return function(){var h4=this.getAttributeNS(u.space,u.local);return h4===x?null:h4===MD?pj:pj=I(MD=h4,x)}}
function Frw(u,I,x){var MD,pj,h4;return function(){var oy=x(this);if(oy==null)return void this.removeAttribute(u);var DF=this.getAttribute(u);return DF===oy?null:DF===MD&&oy===pj?h4:h4=I(MD=DF,pj=oy)}}
function HCg(u,I,x){var MD,pj,h4;return function(){var oy=x(this);if(oy==null)return void this.removeAttributeNS(u.space,u.local);var DF=this.getAttributeNS(u.space,u.local);return DF===oy?null:DF===MD&&oy===pj?h4:h4=I(MD=DF,pj=oy)}}
function e6M(u,I){function x(){var MD=this,pj=I.apply(MD,arguments);return pj&&function(h4){MD.setAttributeNS(u.space,u.local,pj(h4))}}
x._value=I;return x}
function $Iw(u,I){function x(){var MD=this,pj=I.apply(MD,arguments);return pj&&function(h4){MD.setAttribute(u,pj(h4))}}
x._value=I;return x}
function scI(u,I){return function(){LrF(this,u).delay=+I.apply(this,arguments)}}
function MjI(u,I){return I=+I,function(){LrF(this,u).delay=I}}
function qWR(u,I){return function(){c9(this,u).duration=+I.apply(this,arguments)}}
function GR8(u,I){return I=+I,function(){c9(this,u).duration=I}}
function K$I(u,I){if(typeof I!=="function")throw Error();return function(){c9(this,u).ease=I}}
function n8g(u){return(u+"").trim().split(/^|\s+/).every(function(I){var x=I.indexOf(".");x>=0&&(I=I.slice(0,x));return!I||I==="start"})}
function E8s(u,I,x){var MD,pj,h4=n8g(I)?LrF:c9;return function(){var oy=h4(this,u),DF=oy.on;if(DF!==MD)(pj=(MD=DF).copy()).on(I,x);oy.on=pj}}
function NnE(u){return function(){var I=this.parentNode,x;for(x in this.__transition)if(+x!==u)return;I&&I.removeChild(this)}}
function kR5(u,I){var x,MD,pj;return function(){var h4=t4(this,u),oy=(this.style.removeProperty(u),t4(this,u));return h4===oy?null:h4===x&&oy===MD?pj:pj=I(x=h4,MD=oy)}}
function plM(u){return function(){this.style.removeProperty(u)}}
function yaI(u,I,x){var MD,pj;return function(){var h4=t4(this,u);return h4===x?null:h4===MD?pj:pj=I(MD=h4,x)}}
function L$g(u,I,x){var MD,pj,h4;return function(){var oy=t4(this,u),DF=x(this);DF==null&&(DF=(this.style.removeProperty(u),t4(this,u)));return oy===DF?null:oy===MD&&DF===pj?h4:h4=I(MD=oy,pj=DF)}}
function YW8(u,I,x){function MD(){var pj=this,h4=I.apply(pj,arguments);return h4&&function(oy){pj.style.setProperty(u,h4(oy),x)}}
MD._value=I;return MD}
function W$I(u){return function(){this.textContent=u}}
function Aag(u){return function(){var I=u(this);this.textContent=I==null?"":I}}
function hv(u,I,x,MD){this._groups=u;this._parents=I;this._name=x;this._id=MD}
function Wri(u){return{type:u}}
function AVF(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function CNH(){}
function R6S(u,I){var x=new CNH;if(u instanceof CNH)u.each(function(oy,DF){x.set(DF,oy)});
else if(Array.isArray(u)){var MD=-1,pj=u.length,h4;if(I==null)for(;++MD<pj;)x.set(MD,u[MD]);else for(;++MD<pj;)x.set(I(h4=u[MD],MD,u),h4)}else if(u)for(MD in u)x.set(MD,u[MD]);return x}
function aby(){}
function f62(u){return function(I){for(var x={},MD=0;MD<u.length;MD++)x[u[MD]]=I[MD]||"";return x}}
function dJR(u,I){var x=f62(u);return function(MD,pj){return I(x(MD),pj,u)}}
function v8I(u){var I=Object.create(null),x=[];u.forEach(function(MD){for(var pj in MD)pj in I||x.push(I[pj]=pj)});
return x}
function Frf(u){function I(oy,DF){function KP(){if(av)return dIH;if(rL)return rL=!1,HC$;var nI,$_=d9,wj;if(oy.charCodeAt($_)===34){for(;d9++<Nx&&oy.charCodeAt(d9)!==34||oy.charCodeAt(++d9)===34;);(nI=d9)>=Nx?av=!0:(wj=oy.charCodeAt(d9++))===10?rL=!0:wj===13&&(rL=!0,oy.charCodeAt(d9)===10&&++d9);return oy.slice($_+1,nI-1).replace(/""/g,'"')}for(;d9<Nx;){if((wj=oy.charCodeAt(nI=d9++))===10)rL=!0;else if(wj===13)rL=!0,oy.charCodeAt(d9)===10&&++d9;else if(wj!==h4)continue;return oy.slice($_,nI)}return av=
!0,oy.slice($_,Nx)}
var $s=[],Nx=oy.length,d9=0,RI=0,I8,av=Nx<=0,rL=!1;oy.charCodeAt(Nx-1)===10&&--Nx;for(oy.charCodeAt(Nx-1)===13&&--Nx;(I8=KP())!==dIH;){for(var cD=[];I8!==HC$&&I8!==dIH;)cD.push(I8),I8=KP();DF&&(cD=DF(cD,RI++))==null||$s.push(cD)}return $s}
function x(oy){return oy.map(MD).join(u)}
function MD(oy){return oy==null?"":pj.test(oy)?'"'+oy.replace(/"/g,'""')+'"':oy}
var pj=new RegExp('["'+u+"\n\r]"),h4=u.charCodeAt(0);return{parse:function(oy,DF){var KP,$s;oy=I(oy,function(Nx,d9){if(KP)return KP(Nx,d9-1);$s=Nx;KP=DF?dJR(Nx,DF):f62(Nx)});
oy.columns=$s||[];return oy},
parseRows:I,format:function(oy,DF){DF==null&&(DF=v8I(oy));return[DF.map(MD).join(u)].concat(oy.map(function(KP){return DF.map(function($s){return MD(KP[$s])}).join(u)})).join("\n")},
formatRows:function(oy){return oy.map(x).join("\n")}}}
function hsL(u){if(!u.ok)throw Error("Be`"+u.status+"`"+u.statusText);return u.text()}
function e6x(u){return function(I,x,MD){arguments.length===2&&typeof x==="function"&&(MD=x,x=void 0);return fetch(I,x).then(hsL).then(function(pj){return u(pj,MD)})}}
function $If(u,I,x,MD){if(isNaN(I)||isNaN(x))return u;var pj,h4=u._root;MD={data:MD};var oy=u._x0,DF=u._y0,KP=u._x1,$s=u._y1,Nx,d9,RI,I8,av;if(!h4)return u._root=MD,u;for(;h4.length;)if((RI=I>=(Nx=(oy+KP)/2))?oy=Nx:KP=Nx,(I8=x>=(d9=(DF+$s)/2))?DF=d9:$s=d9,pj=h4,!(h4=h4[av=I8<<1|RI]))return pj[av]=MD,u;var rL=+u._x.call(null,h4.data);var cD=+u._y.call(null,h4.data);if(I===rL&&x===cD)return MD.next=h4,pj?pj[av]=MD:u._root=MD,u;do pj=pj?pj[av]=Array(4):u._root=Array(4),(RI=I>=(Nx=(oy+KP)/2))?oy=Nx:KP=
Nx,(I8=x>=(d9=(DF+$s)/2))?DF=d9:$s=d9;while((av=I8<<1|RI)===(RI=(cD>=d9)<<1|rL>=Nx));return pj[RI]=h4,pj[av]=MD,u}
function jl(u,I,x,MD,pj){this.node=u;this.x0=I;this.y0=x;this.x1=MD;this.y1=pj}
function tjR(u){return u[0]}
function OiP(u){return u[1]}
function vSj(u,I,x,MD,pj,h4){this._x=u;this._y=I;this._x0=x;this._y0=MD;this._x1=pj;this._y1=h4;this._root=void 0}
function scB(u){for(var I={data:u.data},x=I;u=u.next;)x=x.next={data:u.data};return I}
function ocw(u,I){if((I=(u=I?u.toExponential(I-1):u.toExponential()).indexOf("e"))<0)return null;var x=u.slice(0,I);return[x.length>1?x[0]+x.slice(2):x,+u.slice(I+1)]}
function wlw(u){return u=ocw(Math.abs(u)),u?u[1]:NaN}
function C4L(u,I){return function(x,MD){for(var pj=x.length,h4=[],oy=0,DF=u[0],KP=0;pj>0&&DF>0;){KP+DF+1>MD&&(DF=Math.max(1,MD-KP));h4.push(x.substring(pj-=DF,pj+DF));if((KP+=DF+1)>MD)break;DF=u[oy=(oy+1)%u.length]}return h4.reverse().join(I)}}
function aB5(u){return function(I){return I.replace(/[0-9]/g,function(x){return u[+x]})}}
function h6H(u){return new OCu(u)}
function OCu(u){if(!(I=o8P.exec(u)))throw Error("Ce`"+u);var I;this.fill=I[1]||" ";this.align=I[2]||">";this.sign=I[3]||"-";this.symbol=I[4]||"";this.zero=!!I[5];this.width=I[6]&&+I[6];this.comma=!!I[7];this.precision=I[8]&&+I[8].slice(1);this.trim=!!I[9];this.type=I[10]||""}
function Mjv(u,I){I=ocw(u,I);if(!I)return u+"";u=I[0];I=I[1];return I<0?"0."+Array(-I).join("0")+u:u.length>I+1?u.slice(0,I+1)+"."+u.slice(I+1):u+Array(I-u.length+2).join("0")}
function qWJ(u){return u}
function lBw(u){function I(DF){function KP(Fe){var O4=wj,VI=nL,CG,LG;if($_==="c")VI=sb(Fe)+VI,Fe="";else{Fe=+Fe;var JE=Fe<0;Fe=sb(Math.abs(Fe),cD);if(nI){var F1=Fe.length,Rk=1,EQ=-1;a:for(;Rk<F1;++Rk)switch(Fe[Rk]){case ".":EQ=CG=Rk;break;case "0":EQ===0&&(EQ=Rk);CG=Rk;break;default:if(!+Fe[Rk])break a;EQ>0&&(EQ=0)}Fe=EQ>0?Fe.slice(0,EQ)+Fe.slice(CG+1):Fe}JE&&+Fe===0&&(JE=!1);O4=(JE?d9==="("?d9:"-":d9==="-"||d9==="("?"":d9)+O4;VI=($_==="s"?GRI[8+K$B/3]:"")+VI+(JE&&d9==="("?")":"");if(CS)for(JE=-1,
CG=Fe.length;++JE<CG;)if(LG=Fe.charCodeAt(JE),48>LG||LG>57){VI=(LG===46?pj+Fe.slice(JE+1):Fe.slice(JE))+VI;Fe=Fe.slice(0,JE);break}}rL&&!I8&&(Fe=x(Fe,Infinity));LG=O4.length+Fe.length+VI.length;JE=LG<av?Array(av-LG+1).join($s):"";rL&&I8&&(Fe=x(JE+Fe,JE.length?av-VI.length:Infinity),JE="");switch(Nx){case "<":Fe=O4+Fe+VI+JE;break;case "=":Fe=O4+JE+Fe+VI;break;case "^":Fe=JE.slice(0,LG=JE.length>>1)+O4+Fe+VI+JE.slice(LG);break;default:Fe=JE+O4+Fe+VI}return h4(Fe)}
DF=h6H(DF);var $s=DF.fill,Nx=DF.align,d9=DF.sign,RI=DF.symbol,I8=DF.zero,av=DF.width,rL=DF.comma,cD=DF.precision,nI=DF.trim,$_=DF.type;$_==="n"?(rL=!0,$_="g"):n8$[$_]||(cD==null&&(cD=12),nI=!0,$_="g");if(I8||$s==="0"&&Nx==="=")I8=!0,$s="0",Nx="=";var wj=RI==="$"?MD[0]:RI==="#"&&/[boxX]/.test($_)?"0"+$_.toLowerCase():"",nL=RI==="$"?MD[1]:/[%p]/.test($_)?oy:"",sb=n8$[$_],CS=/[defgprs%]/.test($_);cD=cD==null?6:/[gprs]/.test($_)?Math.max(1,Math.min(21,cD)):Math.max(0,Math.min(20,cD));KP.toString=function(){return DF+
""};
return KP}
var x=u.grouping&&u.thousands?C4L(u.grouping,u.thousands):qWJ,MD=u.currency,pj=u.decimal,h4=u.numerals?aB5(u.numerals):qWJ,oy=u.percent||"%";return{format:I,formatPrefix:function(DF,KP){var $s=I((DF=h6H(DF),DF.type="f",DF));DF=Math.max(-8,Math.min(8,Math.floor(wlw(KP)/3)))*3;var Nx=Math.pow(10,-DF),d9=GRI[8+DF/3];return function(RI){return $s(Nx*RI)+d9}}}}
function zm(){this.reset()}
function E8l(u,I,x){var MD=u.s=I+x,pj=MD-I;u.t=I-(MD-pj)+(x-pj)}
function lby(u){return u>1?rI:u<-1?-rI:Math.asin(u)}
function XlL(){}
function Nnd(u){var I=u[0];u=u[1];var x=jb(u);return[x*jb(I),x*gz(I),gz(u)]}
function kRp(u,I){return[u[1]*I[2]-u[2]*I[1],u[2]*I[0]-u[0]*I[2],u[0]*I[1]-u[1]*I[0]]}
function plx(u){var I=Xry(u[0]*u[0]+u[1]*u[1]+u[2]*u[2]);u[0]/=I;u[1]/=I;u[2]/=I}
function P4w(){var u=[],I;return{point:function(x,MD){I.push([x,MD])},
lineStart:function(){u.push(I=[])},
lineEnd:XlL,rejoin:function(){u.length>1&&u.push(u.pop().concat(u.shift()))},
result:function(){var x=u;u=[];I=null;return x}}}
function PNw(u,I,x,MD){this.x=u;this.z=I;this.o=x;this.e=MD;this.v=!1;this.n=this.p=null}
function iiP(u,I,x,MD,pj){var h4=[],oy=[];u.forEach(function(d9){if(!((RI=d9.length-1)<=0)){var RI,I8=d9[0],av=d9[RI],rL=I8;if(tv(rL[0]-av[0])<1E-6&&tv(rL[1]-av[1])<1E-6){pj.lineStart();for(DF=0;DF<RI;++DF)pj.point((I8=d9[DF])[0],I8[1]);pj.lineEnd()}else h4.push(RI=new PNw(I8,d9,null,!0)),oy.push(RI.o=new PNw(I8,null,RI,!1)),h4.push(RI=new PNw(av,d9,null,!1)),oy.push(RI.o=new PNw(av,null,RI,!0))}});
if(h4.length){oy.sort(I);yaB(h4);yaB(oy);var DF=0;for(u=oy.length;DF<u;++DF)oy[DF].e=x=!x;x=h4[0];for(var KP;;){for(var $s=x,Nx=!0;$s.v;)if(($s=$s.n)===x)return;I=$s.z;pj.lineStart();do{$s.v=$s.o.v=!0;if($s.e){if(Nx)for(DF=0,u=I.length;DF<u;++DF)pj.point((KP=I[DF])[0],KP[1]);else MD($s.x,$s.n.x,1,pj);$s=$s.n}else{if(Nx)for(I=$s.p.z,DF=I.length-1;DF>=0;--DF)pj.point((KP=I[DF])[0],KP[1]);else MD($s.x,$s.p.x,-1,pj);$s=$s.p}$s=$s.o;I=$s.z;Nx=!Nx}while(!$s.v);pj.lineEnd()}}}
function yaB(u){if(I=u.length){for(var I,x=0,MD=u[0],pj;++x<I;)MD.n=pj=u[x],pj.p=MD,MD=pj;MD.n=pj=u[0];pj.p=MD}}
function can(u){return u.length>1}
function g8R(u,I){return((u=u.x)[0]<0?u[1]-rI-1E-6:rI-u[1])-((I=I.x)[0]<0?I[1]-rI-1E-6:rI-I[1])}
function wJH(){}
function L$$(u){return function(I,x){var MD=jb(I),pj=jb(x);MD=u(MD*pj);return[MD*pj*gz(I),MD*gz(x)]}}
function z2(u){return function(I,x){var MD=Xry(I*I+x*x),pj=u(MD),h4=gz(pj);pj=jb(pj);return[YWI(I*h4,MD*pj),lby(MD&&x*h4/MD)]}}
function Bng(u){var I=0,x=u.children,MD=x&&x.length;if(MD)for(;--MD>=0;)I+=x[MD].value;else I=1;u.value=I}
function W$B(u,I){var x=new mc(u);u=+u.value&&(x.value=u.value);var MD,pj=[x],h4,oy,DF,KP;for(I==null&&(I=Qcs);MD=pj.pop();)if(u&&(MD.value=+MD.data.value),(oy=I(MD.data))&&(KP=oy.length))for(MD.children=Array(KP),DF=KP-1;DF>=0;--DF)pj.push(h4=MD.children[DF]=new mc(oy[DF])),h4.parent=MD,h4.depth=MD.depth+1;return x.eachBefore(IBM)}
function Qcs(u){return u.children}
function DJL(u){u.data=u.data.data}
function IBM(u){var I=0;do u.height=I;while((u=u.parent)&&u.height<++I)}
function mc(u){this.data=u;this.depth=this.height=0;this.parent=null}
function tl(u,I,x,MD){function pj(h4){return u(h4=new Date(+h4)),h4}
pj.floor=pj;pj.ceil=function(h4){return u(h4=new Date(h4-1)),I(h4,1),u(h4),h4};
pj.round=function(h4){var oy=pj(h4),DF=pj.ceil(h4);return h4-oy<DF-h4?oy:DF};
pj.offset=function(h4,oy){return I(h4=new Date(+h4),oy==null?1:Math.floor(oy)),h4};
pj.range=function(h4,oy,DF){var KP=[],$s;h4=pj.ceil(h4);DF=DF==null?1:Math.floor(DF);if(!(h4<oy&&DF>0))return KP;do KP.push($s=new Date(+h4)),I(h4,DF),u(h4);while($s<h4&&h4<oy);return KP};
pj.filter=function(h4){return tl(function(oy){if(oy>=oy)for(;u(oy),!h4(oy);)oy.setTime(oy-1)},function(oy,DF){if(oy>=oy)if(DF<0)for(;++DF<=0;)for(;I(oy,-1),!h4(oy););
else for(;--DF>=0;)for(;I(oy,1),!h4(oy););})};
x&&(pj.count=function(h4,oy){C3$.setTime(+h4);a6e.setTime(+oy);u(C3$);u(a6e);return Math.floor(x(C3$,a6e))},pj.every=function(h4){h4=Math.floor(h4);
return isFinite(h4)&&h4>0?h4>1?pj.filter(MD?function(oy){return MD(oy)%h4===0}:function(oy){return pj.count(0,oy)%h4===0}):pj:null});
return pj}
function gX(u){return tl(function(I){I.setDate(I.getDate()-(I.getDay()+7-u)%7);I.setHours(0,0,0,0)},function(I,x){I.setDate(I.getDate()+x*7)},function(I,x){return(x-I-(x.getTimezoneOffset()-I.getTimezoneOffset())*6E4)/6048E5})}
function B9(u){return tl(function(I){I.setUTCDate(I.getUTCDate()-(I.getUTCDay()+7-u)%7);I.setUTCHours(0,0,0,0)},function(I,x){I.setUTCDate(I.getUTCDate()+x*7)},function(I,x){return(x-I)/6048E5})}
function u5n(u){if(0<=u.y&&u.y<100){var I=new Date(-1,u.m,u.d,u.H,u.M,u.S,u.L);I.setFullYear(u.y);return I}return new Date(u.y,u.m,u.d,u.H,u.M,u.S,u.L)}
function iAe(u){if(0<=u.y&&u.y<100){var I=new Date(Date.UTC(-1,u.m,u.d,u.H,u.M,u.S,u.L));I.setUTCFullYear(u.y);return I}return new Date(Date.UTC(u.y,u.m,u.d,u.H,u.M,u.S,u.L))}
function SI(u){return{y:u,m:0,d:1,H:0,M:0,S:0,L:0}}
function JaE(u){function I(VI,CG){return function(LG){var JE=[],F1=-1,Rk=0,EQ=VI.length,ou,tt;for(LG instanceof Date||(LG=new Date(+LG));++F1<EQ;)if(VI.charCodeAt(F1)===37){JE.push(VI.slice(Rk,F1));(Rk=Aa$[ou=VI.charAt(++F1)])!=null?ou=VI.charAt(++F1):Rk=ou==="e"?" ":"0";if(tt=CG[ou])ou=tt(LG,Rk);JE.push(ou);Rk=F1+1}JE.push(VI.slice(Rk,F1));return JE.join("")}}
function x(VI,CG){return function(LG){var JE=SI(1900);if(MD(JE,VI,LG,0)!=LG.length)return null;if("Q"in JE)return new Date(JE.Q);"p"in JE&&(JE.H=JE.H%12+JE.p*12);if("V"in JE){if(JE.V<1||JE.V>53)return null;"w"in JE||(JE.w=1);if("Z"in JE){LG=iAe(SI(JE.y));var F1=LG.getUTCDay();LG=F1>4||F1===0?oSi.ceil(LG):oSi(LG);LG=dJJ.offset(LG,(JE.V-1)*7);JE.y=LG.getUTCFullYear();JE.m=LG.getUTCMonth();JE.d=LG.getUTCDate()+(JE.w+6)%7}else LG=CG(SI(JE.y)),F1=LG.getDay(),LG=F1>4||F1===0?l6y.ceil(LG):l6y(LG),LG=v8v.offset(LG,
(JE.V-1)*7),JE.y=LG.getFullYear(),JE.m=LG.getMonth(),JE.d=LG.getDate()+(JE.w+6)%7}else if("W"in JE||"U"in JE)"w"in JE||(JE.w="u"in JE?JE.u%7:"W"in JE?1:0),F1="Z"in JE?iAe(SI(JE.y)).getUTCDay():CG(SI(JE.y)).getDay(),JE.m=0,JE.d="W"in JE?(JE.w+6)%7+JE.W*7-(F1+5)%7:JE.w+JE.U*7-(F1+6)%7;return"Z"in JE?(JE.H+=JE.Z/100|0,JE.M+=JE.Z%100,iAe(JE)):CG(JE)}}
function MD(VI,CG,LG,JE){for(var F1=0,Rk=CG.length,EQ=LG.length,ou;F1<Rk;){if(JE>=EQ)return-1;ou=CG.charCodeAt(F1++);if(ou===37){if(ou=CG.charAt(F1++),ou=O4[ou in Aa$?CG.charAt(F1++):ou],!ou||(JE=ou(VI,LG,JE))<0)return-1}else if(ou!=LG.charCodeAt(JE++))return-1}return JE}
var pj=u.dateTime,h4=u.date,oy=u.time,DF=u.periods,KP=u.days,$s=u.shortDays,Nx=u.months,d9=u.shortMonths,RI=T2(DF),I8=rv(DF),av=T2(KP),rL=rv(KP),cD=T2($s),nI=rv($s),$_=T2(Nx),wj=rv(Nx),nL=T2(d9),sb=rv(d9),CS={a:function(VI){return $s[VI.getDay()]},
A:function(VI){return KP[VI.getDay()]},
b:function(VI){return d9[VI.getMonth()]},
B:function(VI){return Nx[VI.getMonth()]},
c:null,d:hsM,e:hsM,f:ZiP,H:biR,I:UJM,j:xJs,L:tjJ,m:zsU,M:mJs,p:function(VI){return DF[+(VI.getHours()>=12)]},
Q:OiS,s:wlf,S:SWv,u:TnM,U:raR,V:jcE,w:Vjn,W:RsP,x:null,X:null,y:fBR,Y:F$P,Z:HiL,"%":C4M},Fe={a:function(VI){return $s[VI.getUTCDay()]},
A:function(VI){return KP[VI.getUTCDay()]},
b:function(VI){return d9[VI.getUTCMonth()]},
B:function(VI){return Nx[VI.getUTCMonth()]},
c:null,d:aBp,e:aBp,f:esI,H:$JE,I:s4n,j:MfM,L:o8S,m:q28,M:Gow,p:function(VI){return DF[+(VI.getUTCHours()>=12)]},
Q:OiS,s:wlf,S:KFw,u:nLE,U:ELv,V:Nss,w:kow,W:p5L,x:null,X:null,y:yRU,Y:LFM,Z:Y25,"%":C4M},O4={a:function(VI,CG,LG){return(CG=cD.exec(CG.slice(LG)))?(VI.w=nI[CG[0].toLowerCase()],LG+CG[0].length):-1},
A:function(VI,CG,LG){return(CG=av.exec(CG.slice(LG)))?(VI.w=rL[CG[0].toLowerCase()],LG+CG[0].length):-1},
b:function(VI,CG,LG){return(CG=nL.exec(CG.slice(LG)))?(VI.m=sb[CG[0].toLowerCase()],LG+CG[0].length):-1},
B:function(VI,CG,LG){return(CG=$_.exec(CG.slice(LG)))?(VI.m=wj[CG[0].toLowerCase()],LG+CG[0].length):-1},
c:function(VI,CG,LG){return MD(VI,pj,CG,LG)},
d:lB9,e:lB9,f:WF5,H:XlM,I:XlM,j:ARw,L:dBv,m:vL5,M:hm5,p:function(VI,CG,LG){return(CG=RI.exec(CG.slice(LG)))?(VI.p=I8[CG[0].toLowerCase()],LG+CG[0].length):-1},
Q:tfM,s:ORR,S:w55,u:C0P,U:adU,V:oL8,w:lds,W:X5v,x:function(VI,CG,LG){return MD(VI,h4,CG,LG)},
X:function(VI,CG,LG){return MD(VI,oy,CG,LG)},
y:P0n,Y:iRI,Z:cRs,"%":gLI};CS.x=I(h4,CS);CS.X=I(oy,CS);CS.c=I(pj,CS);Fe.x=I(h4,Fe);Fe.X=I(oy,Fe);Fe.c=I(pj,Fe);return{format:function(VI){var CG=I(VI,CS);CG.toString=function(){return VI};
return CG},
parse:function(VI){var CG=x(VI,u5n);CG.toString=function(){return VI};
return CG},
utcFormat:function(VI){var CG=I(VI,Fe);CG.toString=function(){return VI};
return CG},
utcParse:function(VI){var CG=x(VI,iAe);CG.toString=function(){return VI};
return CG}}}
function Ob(u,I,x){var MD=u<0?"-":"";u=(MD?-u:u)+"";var pj=u.length;return MD+(pj<x?Array(x-pj+1).join(I)+u:u)}
function Bsn(u){return u.replace(Q4w,"\\$&")}
function T2(u){return new RegExp("^(?:"+u.map(Bsn).join("|")+")","i")}
function rv(u){for(var I={},x=-1,MD=u.length;++x<MD;)I[u[x].toLowerCase()]=x;return I}
function lds(u,I,x){return(I=C7.exec(I.slice(x,x+1)))?(u.w=+I[0],x+I[0].length):-1}
function C0P(u,I,x){return(I=C7.exec(I.slice(x,x+1)))?(u.u=+I[0],x+I[0].length):-1}
function adU(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.U=+I[0],x+I[0].length):-1}
function oL8(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.V=+I[0],x+I[0].length):-1}
function X5v(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.W=+I[0],x+I[0].length):-1}
function iRI(u,I,x){return(I=C7.exec(I.slice(x,x+4)))?(u.y=+I[0],x+I[0].length):-1}
function P0n(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.y=+I[0]+(+I[0]>68?1900:2E3),x+I[0].length):-1}
function cRs(u,I,x){return(I=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(I.slice(x,x+6)))?(u.Z=I[1]?0:-(I[2]+(I[3]||"00")),x+I[0].length):-1}
function vL5(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.m=I[0]-1,x+I[0].length):-1}
function lB9(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.d=+I[0],x+I[0].length):-1}
function ARw(u,I,x){return(I=C7.exec(I.slice(x,x+3)))?(u.m=0,u.d=+I[0],x+I[0].length):-1}
function XlM(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.H=+I[0],x+I[0].length):-1}
function hm5(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.M=+I[0],x+I[0].length):-1}
function w55(u,I,x){return(I=C7.exec(I.slice(x,x+2)))?(u.S=+I[0],x+I[0].length):-1}
function dBv(u,I,x){return(I=C7.exec(I.slice(x,x+3)))?(u.L=+I[0],x+I[0].length):-1}
function WF5(u,I,x){return(I=C7.exec(I.slice(x,x+6)))?(u.L=Math.floor(I[0]/1E3),x+I[0].length):-1}
function gLI(u,I,x){return(u=Idg.exec(I.slice(x,x+1)))?x+u[0].length:-1}
function tfM(u,I,x){return(I=C7.exec(I.slice(x)))?(u.Q=+I[0],x+I[0].length):-1}
function ORR(u,I,x){return(I=C7.exec(I.slice(x)))?(u.Q=+I[0]*1E3,x+I[0].length):-1}
function hsM(u,I){return Ob(u.getDate(),I,2)}
function biR(u,I){return Ob(u.getHours(),I,2)}
function UJM(u,I){return Ob(u.getHours()%12||12,I,2)}
function xJs(u,I){return Ob(1+v8v.count(e7(u),u),I,3)}
function tjJ(u,I){return Ob(u.getMilliseconds(),I,3)}
function ZiP(u,I){return tjJ(u,I)+"000"}
function zsU(u,I){return Ob(u.getMonth()+1,I,2)}
function mJs(u,I){return Ob(u.getMinutes(),I,2)}
function SWv(u,I){return Ob(u.getSeconds(),I,2)}
function TnM(u){u=u.getDay();return u===0?7:u}
function raR(u,I){return Ob(DBM.count(e7(u),u),I,2)}
function jcE(u,I){var x=u.getDay();u=x>=4||x===0?XJ4(u):XJ4.ceil(u);return Ob(XJ4.count(e7(u),u)+(e7(u).getDay()===4),I,2)}
function Vjn(u){return u.getDay()}
function RsP(u,I){return Ob(l6y.count(e7(u),u),I,2)}
function fBR(u,I){return Ob(u.getFullYear()%100,I,2)}
function F$P(u,I){return Ob(u.getFullYear()%1E4,I,4)}
function HiL(u){u=u.getTimezoneOffset();return(u>0?"-":(u*=-1,"+"))+Ob(u/60|0,"0",2)+Ob(u%60,"0",2)}
function aBp(u,I){return Ob(u.getUTCDate(),I,2)}
function $JE(u,I){return Ob(u.getUTCHours(),I,2)}
function s4n(u,I){return Ob(u.getUTCHours()%12||12,I,2)}
function MfM(u,I){return Ob(1+dJJ.count($O(u),u),I,3)}
function o8S(u,I){return Ob(u.getUTCMilliseconds(),I,3)}
function esI(u,I){return o8S(u,I)+"000"}
function q28(u,I){return Ob(u.getUTCMonth()+1,I,2)}
function Gow(u,I){return Ob(u.getUTCMinutes(),I,2)}
function KFw(u,I){return Ob(u.getUTCSeconds(),I,2)}
function nLE(u){u=u.getUTCDay();return u===0?7:u}
function ELv(u,I){return Ob(uus.count($O(u),u),I,2)}
function Nss(u,I){var x=u.getUTCDay();u=x>=4||x===0?P3F(u):P3F.ceil(u);return Ob(P3F.count($O(u),u)+($O(u).getUTCDay()===4),I,2)}
function kow(u){return u.getUTCDay()}
function p5L(u,I){return Ob(oSi.count($O(u),u),I,2)}
function yRU(u,I){return Ob(u.getUTCFullYear()%100,I,2)}
function LFM(u,I){return Ob(u.getUTCFullYear()%1E4,I,4)}
function Y25(){return"+0000"}
function C4M(){return"%"}
function OiS(u){return+u}
function wlf(u){return Math.floor(+u/1E3)}
function hg(u){for(var I=u.length/6|0,x=Array(I),MD=0;MD<I;)x[MD]="#"+u.slice(MD*6,++MD*6);return x}
function HM(u){return JRU(u[u.length-1])}
function cpj(u){var I=u.length;return function(x){return u[Math.max(0,Math.min(I-1,Math.floor(x*I)))]}}
function P4f(u){this._context=u}
function iiS(u){this._curve=u}
function caP(u,I,x){var MD=u._x1-u._x0;I-=u._x1;var pj=(u._y1-u._y0)/(MD||I<0&&-0);u=(x-u._y1)/(I||MD<0&&-0);return((pj<0?-1:1)+(u<0?-1:1))*Math.min(Math.abs(pj),Math.abs(u),.5*Math.abs((pj*I+u*MD)/(MD+I)))||0}
function g8J(u,I){var x=u._x1-u._x0;return x?(3*(u._y1-u._y0)/x-I)/2:I}
function iC$(u,I,x){var MD=u._x0,pj=u._x1,h4=u._y1,oy=(pj-MD)/3;u._context.bezierCurveTo(MD+oy,u._y0+oy*I,pj-oy,h4-oy*x,pj,h4)}
function cV$(u){this._context=u}
function Bn$(u){this._context=u}
function jI(u,I,x){this.k=u;this.x=I;this.y=x}
(function(u){u.length===1&&(u=q(u));return{left:function(I,x,MD,pj){MD==null&&(MD=0);pj==null&&(pj=I.length);for(;MD<pj;){var h4=MD+pj>>>1;u(I[h4],x)<0?MD=h4+1:pj=h4}return MD},
right:function(I,x,MD,pj){MD==null&&(MD=0);pj==null&&(pj=I.length);for(;MD<pj;){var h4=MD+pj>>>1;u(I[h4],x)>0?pj=h4:MD=h4+1}return MD}}})(M);
var cVw={value:function(){}};
K.prototype=G.prototype={constructor:K,on:function(u,I){var x=this._,MD=n(u+"",x),pj,h4=-1,oy=MD.length;if(arguments.length<2)for(;++h4<oy;){var DF;if(DF=pj=(u=MD[h4]).type){a:{DF=x[pj];for(var KP=0,$s=DF.length;KP<$s;++KP)if((pj=DF[KP]).name===u.name){pj=pj.value;break a}pj=void 0}DF=pj}if(DF)return pj}else{if(I!=null&&typeof I!=="function")throw Error("De`"+I);for(;++h4<oy;)if(pj=(u=MD[h4]).type)x[pj]=E(x[pj],u.name,I);else if(I==null)for(pj in x)x[pj]=E(x[pj],u.name,null);return this}},
copy:function(){var u={},I=this._,x;for(x in I)u[x]=I[x].slice();return new K(u)},
call:function(u,I){if((pj=arguments.length-2)>0)for(var x=Array(pj),MD=0,pj,h4;MD<pj;++MD)x[MD]=arguments[MD+2];if(!this._.hasOwnProperty(u))throw Error("xe`"+u);h4=this._[u];MD=0;for(pj=h4.length;MD<pj;++MD)h4[MD].value.apply(I,x)},
apply:function(u,I,x){if(!this._.hasOwnProperty(u))throw Error("xe`"+u);u=this._[u];for(var MD=0,pj=u.length;MD<pj;++MD)u[MD].value.apply(I,x)}};
var Th={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/"},Qcl=function(u){return function(){return this.matches(u)}};
if(typeof document!=="undefined"){var Vl=document.documentElement;if(!Vl.matches){var ZRP=Vl.webkitMatchesSelector||Vl.msMatchesSelector||Vl.mozMatchesSelector||Vl.oMatchesSelector;Qcl=function(u){return function(){return ZRP.call(this,u)}}}}var IBx=Qcl;
O.prototype={constructor:O,appendChild:function(u){return this._parent.insertBefore(u,this._next)},
insertBefore:function(u,I){return this._parent.insertBefore(u,I)},
querySelector:function(u){return this._parent.querySelector(u)},
querySelectorAll:function(u){return this._parent.querySelectorAll(u)}};
var JVM={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(JVM={mouseenter:"mouseover",mouseleave:"mouseout"}));var gSL=[null];Wv.prototype=qM.prototype={constructor:Wv,select:function(u){typeof u!=="function"&&(u=h(u));for(var I=this._groups,x=I.length,MD=Array(x),pj=0;pj<x;++pj)for(var h4=I[pj],oy=h4.length,DF=MD[pj]=Array(oy),KP,$s,Nx=0;Nx<oy;++Nx)(KP=h4[Nx])&&($s=u.call(KP,KP.__data__,Nx,h4))&&("__data__"in KP&&($s.__data__=KP.__data__),DF[Nx]=$s);return new Wv(MD,
this._parents)},
filter:function(u){typeof u!=="function"&&(u=IBx(u));for(var I=this._groups,x=I.length,MD=Array(x),pj=0;pj<x;++pj)for(var h4=I[pj],oy=h4.length,DF=MD[pj]=[],KP,$s=0;$s<oy;++$s)(KP=h4[$s])&&u.call(KP,KP.__data__,$s,h4)&&DF.push(KP);return new Wv(MD,this._parents)},
data:function(u,I){if(!u)return I8=Array(this.size()),$s=-1,this.each(function($_){I8[++$s]=$_}),I8;
var x=I?D:g,MD=this._parents,pj=this._groups;typeof u!=="function"&&(u=a(u));for(var h4=pj.length,oy=Array(h4),DF=Array(h4),KP=Array(h4),$s=0;$s<h4;++$s){var Nx=MD[$s],d9=pj[$s],RI=d9.length,I8=u.call(Nx,Nx&&Nx.__data__,$s,MD),av=I8.length,rL=DF[$s]=Array(av),cD=oy[$s]=Array(av);RI=KP[$s]=Array(RI);x(Nx,d9,rL,cD,RI,I8,I);d9=Nx=0;for(var nI;Nx<av;++Nx)if(RI=rL[Nx]){for(Nx>=d9&&(d9=Nx+1);!(nI=cD[d9])&&++d9<av;);RI._next=nI||null}}oy=new Wv(oy,MD);oy._enter=DF;oy._exit=KP;return oy},
enter:function(){return new Wv(this._enter||this._groups.map(t),this._parents)},
exit:function(){return new Wv(this._exit||this._groups.map(t),this._parents)},
merge:function(u){var I=this._groups;u=u._groups;for(var x=I.length,MD=Math.min(x,u.length),pj=Array(x),h4=0;h4<MD;++h4)for(var oy=I[h4],DF=u[h4],KP=oy.length,$s=pj[h4]=Array(KP),Nx,d9=0;d9<KP;++d9)if(Nx=oy[d9]||DF[d9])$s[d9]=Nx;for(;h4<x;++h4)pj[h4]=I[h4];return new Wv(pj,this._parents)},
order:function(){for(var u=this._groups,I=-1,x=u.length;++I<x;)for(var MD=u[I],pj=MD.length-1,h4=MD[pj],oy;--pj>=0;)if(oy=MD[pj])h4&&h4!==oy.nextSibling&&h4.parentNode.insertBefore(oy,h4),h4=oy;return this},
sort:function(u){function I(d9,RI){return d9&&RI?u(d9.__data__,RI.__data__):!d9-!RI}
u||(u=J);for(var x=this._groups,MD=x.length,pj=Array(MD),h4=0;h4<MD;++h4){for(var oy=x[h4],DF=oy.length,KP=pj[h4]=Array(DF),$s,Nx=0;Nx<DF;++Nx)if($s=oy[Nx])KP[Nx]=$s;KP.sort(I)}return(new Wv(pj,this._parents)).order()},
call:function(){var u=arguments[0];arguments[0]=this;u.apply(null,arguments);return this},
nodes:function(){var u=Array(this.size()),I=-1;this.each(function(){u[++I]=this});
return u},
node:function(){for(var u=this._groups,I=0,x=u.length;I<x;++I)for(var MD=u[I],pj=0,h4=MD.length;pj<h4;++pj){var oy=MD[pj];if(oy)return oy}return null},
size:function(){var u=0;this.each(function(){++u});
return u},
empty:function(){return!this.node()},
each:function(u){for(var I=this._groups,x=0,MD=I.length;x<MD;++x)for(var pj=I[x],h4=0,oy=pj.length,DF;h4<oy;++h4)(DF=pj[h4])&&u.call(DF,DF.__data__,h4,pj);return this},
attr:function(u,I){var x=p(u);if(arguments.length<2){var MD=this.node();return x.local?MD.getAttributeNS(x.space,x.local):MD.getAttribute(x)}return this.each((I==null?x.local?V:Z:typeof I==="function"?x.local?se:R:x.local?m:S)(x,I))},
style:function(u,I,x){return arguments.length>1?this.each((I==null?yY:typeof I==="function"?cy:d$)(u,I,x==null?"":x)):t4(this.node(),u)},
property:function(u,I){return arguments.length>1?this.each((I==null?ay:typeof I==="function"?iH:bH)(u,I)):this.node()[u]},
text:function(u){return arguments.length?this.each(u==null?oI:(typeof u==="function"?X2:r9)(u)):this.node().textContent},
html:function(u){return arguments.length?this.each(u==null?EM:(typeof u==="function"?Pv:LP)(u)):this.node().innerHTML},
append:function(u){var I=typeof u==="function"?u:A(u);return this.select(function(){return this.appendChild(I.apply(this,arguments))})},
insert:function(u,I){var x=typeof u==="function"?u:A(u),MD=I==null?g9:typeof I==="function"?I:h(I);return this.select(function(){return this.insertBefore(x.apply(this,arguments),MD.apply(this,arguments)||null)})},
remove:function(){return this.each(a8)},
clone:function(u){return this.select(u?ND:tE)},
datum:function(u){return arguments.length?this.property("__data__",u):this.node().__data__},
on:function(u,I,x){var MD=Kn(u+""),pj=MD.length,h4;if(arguments.length<2){var oy=this.node().__on;if(oy)for(var DF=0,KP=oy.length,$s;DF<KP;++DF){var Nx=0;for($s=oy[DF];Nx<pj;++Nx)if((h4=MD[Nx]).type===$s.type&&h4.name===$s.name)return $s.value}}else{oy=I?Gs:w9;x==null&&(x=!1);for(Nx=0;Nx<pj;++Nx)this.each(oy(MD[Nx],I,x));return this}},
dispatch:function(u,I){return this.each((typeof I==="function"?Ad:jJ)(u,I))}};
var BJn=0;Ry.prototype=function(){return new Ry}.prototype={constructor:Ry,
get:function(u){for(var I=this._;!(I in u);)if(!(u=u.parentNode))return;return u[I]},
set:function(u,I){return u[this._]=I},
remove:function(u){return this._ in u&&delete u[this._]},
toString:function(){return this._}};
var sk=1/.7,QBw=/^#([0-9a-f]{3})$/,I6I=/^#([0-9a-f]{6})$/,DIU=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),uUM=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),JVL=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),ZCL=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*\\)$"),
bCM=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),UII=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*\\)$"),ZCM={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};
OM(fG,BI,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
OM(Xv,fP,OL(fG,{brighter:function(u){u=u==null?sk:Math.pow(sk,u);return new Xv(this.r*u,this.g*u,this.b*u,this.opacity)},
darker:function(u){u=u==null?.7:Math.pow(.7,u);return new Xv(this.r*u,this.g*u,this.b*u,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"#"+NM(this.r)+NM(this.g)+NM(this.b)},
toString:function(){var u=this.opacity;u=isNaN(u)?1:Math.max(0,Math.min(1,u));return(u===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))+(u===1?")":", "+u+")")}}));
OM(Ox,My,OL(fG,{brighter:function(u){u=u==null?sk:Math.pow(sk,u);return new Ox(this.h,this.s,this.l*u,this.opacity)},
darker:function(u){u=u==null?.7:Math.pow(.7,u);return new Ox(this.h,this.s,this.l*u,this.opacity)},
rgb:function(){var u=this.h%360+(this.h<0)*360,I=this.l,x=I+(I<.5?I:1-I)*(isNaN(u)||isNaN(this.s)?0:this.s);I=2*I-x;return new Xv(PD(u>=240?u-240:u+120,I,x),PD(u,I,x),PD(u<120?u+240:u-120,I,x),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 bCx=Math.PI/180,z6M=180/Math.PI,xIv=4/29,Fk=6/29,UIv=3*Fk*Fk,xII=Fk*Fk*Fk;OM(By,function(u,I,x,MD){return arguments.length===1?LK(u):new By(u,I,x,MD==null?1:MD)},OL(fG,{brighter:function(u){return new By(this.l+18*(u==null?1:u),this.a,this.b,this.opacity)},
darker:function(u){return new By(this.l-18*(u==null?1:u),this.a,this.b,this.opacity)},
rgb:function(){var u=(this.l+16)/116,I=isNaN(this.a)?u:u+this.a/500,x=isNaN(this.b)?u:u-this.b/200;I=.96422*jw(I);u=1*jw(u);x=.82521*jw(x);return new Xv(aI(3.1338561*I-1.6168667*u-.4906146*x),aI(-.9787684*I+1.9161415*u+.033454*x),aI(.0719453*I-.2289914*u+1.4052427*x),this.opacity)}}));
OM(iS,QI,OL(fG,{brighter:function(u){return new iS(this.h,this.c,this.l+18*(u==null?1:u),this.opacity)},
darker:function(u){return new iS(this.h,this.c,this.l-18*(u==null?1:u),this.opacity)},
rgb:function(){return LK(this).rgb()}}));
var mIl=1.78277*-.29227-.1347134789;OM(UL,lS,OL(fG,{brighter:function(u){u=u==null?sk:Math.pow(sk,u);return new UL(this.h,this.s,this.l*u,this.opacity)},
darker:function(u){u=u==null?.7:Math.pow(.7,u);return new UL(this.h,this.s,this.l*u,this.opacity)},
rgb:function(){var u=isNaN(this.h)?0:(this.h+120)*bCx,I=+this.l,x=isNaN(this.s)?0:this.s*I*(1-I),MD=Math.cos(u);u=Math.sin(u);return new Xv(255*(I+x*(-.14861*MD+1.78277*u)),255*(I+x*(-.29227*MD+-.90649*u)),255*(I+1.97294*MD*x),this.opacity)}}));
var Vrp=function x(I){function MD(h4,oy){var DF=pj((h4=fP(h4)).r,(oy=fP(oy)).r),KP=pj(h4.g,oy.g),$s=pj(h4.b,oy.b),Nx=$c(h4.opacity,oy.opacity);return function(d9){h4.r=DF(d9);h4.g=KP(d9);h4.b=$s(d9);h4.opacity=Nx(d9);return h4+""}}
var pj=FS(I);MD.gamma=x;return MD}(1),JRU=Uq(function(I){var x=I.length-1;
return function(MD){var pj=MD<=0?MD=0:MD>=1?(MD=1,x-1):Math.floor(MD*x),h4=I[pj],oy=I[pj+1];return OA((MD-pj/x)*x,pj>0?I[pj-1]:2*h4-oy,h4,oy,pj<x-1?I[pj+2]:2*oy-h4)}});
Uq(function(I){var x=I.length;return function(MD){var pj=Math.floor(((MD%=1)<0?++MD:MD)*x);return OA((MD-pj/x)*x,I[(pj+x-1)%x],I[pj%x],I[(pj+1)%x],I[(pj+2)%x])}});
var kU4=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pJF=new RegExp(kU4.source,"g"),SO$=180/Math.PI,gSe={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},R$,BJj,DJM,gcj,bRL=Ts(function(I){if(I==="none")return gSe;R$||(R$=document.createElement("DIV"),BJj=document.documentElement,DJM=document.defaultView);R$.style.transform=I;I=DJM.getComputedStyle(BJj.appendChild(R$),null).getPropertyValue("transform");BJj.removeChild(R$);I=I.slice(7,-1).split(",");return PI(+I[0],+I[1],+I[2],+I[3],
+I[4],+I[5])},"px, ","px)","deg)"),UBs=Ts(function(I){if(I==null)return gSe;
gcj||(gcj=document.createElementNS("http://www.w3.org/2000/svg","g"));gcj.setAttribute("transform",I);if(!(I=gcj.transform.baseVal.consolidate()))return gSe;I=I.matrix;return PI(I.a,I.b,I.c,I.d,I.e,I.f)},", ",")",")");
yI(UA);yI($c);dq(UA);dq($c);Rg(UA);var QB$=Rg($c),Hq=0,bT=0,xf=0,wry,Ur,OAY=0,i9=0,t1w=0,Zv=typeof performance==="object"&&performance.now?performance:Date,TJl=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(I){setTimeout(I,17)};
xm.prototype=g5.prototype={constructor:xm,restart:function(I,x,MD){if(typeof I!=="function")throw new TypeError("Ee");MD=(MD==null?Vq():+MD)+(x==null?0:+x);this._next||Ur===this||(Ur?Ur._next=this:wry=this,Ur=this);this._call=I;this._time=MD;Qv()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Qv())}};
var mIs=G("start","end","interrupt"),SOg=[],xBv=qM.prototype.constructor,u5P=0,MZ=qM.prototype;hv.prototype=function(I){return qM().transition(I)}.prototype={constructor:hv,
select:function(I){var x=this._name,MD=this._id;typeof I!=="function"&&(I=h(I));for(var pj=this._groups,h4=pj.length,oy=Array(h4),DF=0;DF<h4;++DF)for(var KP=pj[DF],$s=KP.length,Nx=oy[DF]=Array($s),d9,RI,I8=0;I8<$s;++I8)(d9=KP[I8])&&(RI=I.call(d9,d9.__data__,I8,KP))&&("__data__"in d9&&(RI.__data__=d9.__data__),Nx[I8]=RI,yVj(Nx[I8],x,MD,I8,Nx,mP(d9,MD)));return new hv(oy,this._parents,x,MD)},
filter:function(I){typeof I!=="function"&&(I=IBx(I));for(var x=this._groups,MD=x.length,pj=Array(MD),h4=0;h4<MD;++h4)for(var oy=x[h4],DF=oy.length,KP=pj[h4]=[],$s,Nx=0;Nx<DF;++Nx)($s=oy[Nx])&&I.call($s,$s.__data__,Nx,oy)&&KP.push($s);return new hv(pj,this._parents,this._name,this._id)},
merge:function(I){if(I._id!==this._id)throw Error();var x=this._groups;I=I._groups;for(var MD=x.length,pj=Math.min(MD,I.length),h4=Array(MD),oy=0;oy<pj;++oy)for(var DF=x[oy],KP=I[oy],$s=DF.length,Nx=h4[oy]=Array($s),d9,RI=0;RI<$s;++RI)if(d9=DF[RI]||KP[RI])Nx[RI]=d9;for(;oy<MD;++oy)h4[oy]=x[oy];return new hv(h4,this._parents,this._name,this._id)},
selection:function(){return new xBv(this._groups,this._parents)},
transition:function(){for(var I=this._name,x=this._id,MD=++u5P,pj=this._groups,h4=pj.length,oy=0;oy<h4;++oy)for(var DF=pj[oy],KP=DF.length,$s,Nx=0;Nx<KP;++Nx)if($s=DF[Nx]){var d9=mP($s,x);yVj($s,I,MD,Nx,DF,{time:d9.time+d9.delay+d9.duration,delay:0,duration:d9.duration,ease:d9.ease})}return new hv(pj,this._parents,I,MD)},
call:MZ.call,nodes:MZ.nodes,node:MZ.node,size:MZ.size,empty:MZ.empty,each:MZ.each,on:function(I,x){var MD=this._id;return arguments.length<2?mP(this.node(),MD).on.on(I):this.each(E8s(MD,I,x))},
attr:function(I,x){var MD=p(I),pj=MD==="transform"?UBs:jBd;return this.attrTween(I,typeof x==="function"?(MD.local?HCg:Frw)(MD,pj,YOH(this,"attr."+I,x)):x==null?(MD.local?Vr5:jBE)(MD):(MD.local?f6v:R6P)(MD,pj,x+""))},
attrTween:function(I,x){var MD="attr."+I;if(arguments.length<2)return(MD=this.tween(MD))&&MD._value;if(x==null)return this.tween(MD,null);if(typeof x!=="function")throw Error();var pj=p(I);return this.tween(MD,(pj.local?e6M:$Iw)(pj,x))},
style:function(I,x,MD){var pj=I==="transform"?bRL:jBd;return x==null?this.styleTween(I,kR5(I,pj)).on("end.style."+I,plM(I)):this.styleTween(I,typeof x==="function"?L$g(I,pj,YOH(this,"style."+I,x)):yaI(I,pj,x+""),MD)},
styleTween:function(I,x,MD){var pj="style."+I;if(arguments.length<2)return(pj=this.tween(pj))&&pj._value;if(x==null)return this.tween(pj,null);if(typeof x!=="function")throw Error();return this.tween(pj,YW8(I,x,MD==null?"":MD))},
text:function(I){return this.tween("text",typeof I==="function"?Aag(YOH(this,"text",I)):W$I(I==null?"":I+""))},
remove:function(){return this.on("end.remove",NnE(this._id))},
tween:function(I,x){var MD=this._id;if(arguments.length<2){MD=mP(this.node(),MD).tween;for(var pj=0,h4=MD.length,oy;pj<h4;++pj)if((oy=MD[pj]).name===I)return oy.value;return null}return this.each((x==null?TJs:rVL)(MD,I,x))},
delay:function(I){var x=this._id;return arguments.length?this.each((typeof I==="function"?scI:MjI)(x,I)):mP(this.node(),x).delay},
duration:function(I){var x=this._id;return arguments.length?this.each((typeof I==="function"?qWR:GR8)(x,I)):mP(this.node(),x).duration},
ease:function(I){var x=this._id;return arguments.length?this.each(K$I(x,I)):mP(this.node(),x).ease}};
var I6y={time:null,delay:0,duration:250,ease:function(I){return((I*=2)<=1?I*I*I:(I-=2)*I*I+2)/2}};
qM.prototype.transition=function(I){var x;if(I instanceof hv){var MD=I._id;I=I._name}else MD=++u5P,(x=I6y).time=Vq(),I=I==null?null:I+"";for(var pj=this._groups,h4=pj.length,oy=0;oy<h4;++oy)for(var DF=pj[oy],KP=DF.length,$s,Nx=0;Nx<KP;++Nx)if($s=DF[Nx]){var d9=$s,RI=I,I8=MD,av=Nx,rL=DF,cD;if(!(cD=x))a:{cD=void 0;for(var nI=MD;!(cD=$s.__transition)||!(cD=cD[nI]);)if(!($s=$s.parentNode)){cD=(I6y.time=Vq(),I6y);break a}}yVj(d9,RI,I8,av,rL,cD)}return new hv(pj,this._parents,I,MD)};
["e","w"].map(Wri);["n","s"].map(Wri);"n e s w nw ne se sw".split(" ").map(Wri);AVF.prototype=function(){return new AVF}.prototype={constructor:AVF,
moveTo:function(I,x){this._+="M"+(this._x0=this._x1=+I)+","+(this._y0=this._y1=+x)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(I,x){this._+="L"+(this._x1=+I)+","+(this._y1=+x)},
bezierCurveTo:function(I,x,MD,pj,h4,oy){this._+="C"+ +I+","+ +x+","+ +MD+","+ +pj+","+(this._x1=+h4)+","+(this._y1=+oy)},
rect:function(I,x,MD,pj){this._+="M"+(this._x0=this._x1=+I)+","+(this._y0=this._y1=+x)+"h"+ +MD+"v"+ +pj+"h"+-MD+"Z"},
toString:function(){return this._}};
CNH.prototype=R6S.prototype={constructor:CNH,has:function(I){return" "+I in this},
get:function(I){return this[" "+I]},
set:function(I,x){this[" "+I]=x;return this},
remove:function(I){I=" "+I;return I in this&&delete this[I]},
clear:function(){for(var I in this)I[0]===" "&&delete this[I]},
keys:function(){var I=[],x;for(x in this)x[0]===" "&&I.push(x.slice(1));return I},
values:function(){var I=[],x;for(x in this)x[0]===" "&&I.push(this[x]);return I},
entries:function(){var I=[],x;for(x in this)x[0]===" "&&I.push({key:x.slice(1),value:this[x]});return I},
size:function(){var I=0,x;for(x in this)x[0]===" "&&++I;return I},
empty:function(){for(var I in this)if(I[0]===" ")return!1;return!0},
each:function(I){for(var x in this)x[0]===" "&&I(this[x],x.slice(1),this)}};
var Qg=R6S.prototype;aby.prototype=function(I,x){var MD=new aby;if(I instanceof aby)I.each(function(oy){MD.add(oy)});
else if(I){var pj=-1,h4=I.length;if(x==null)for(;++pj<h4;)MD.add(I[pj]);else for(;++pj<h4;)MD.add(x(I[pj],pj,I))}return MD}.prototype={constructor:aby,
has:Qg.has,add:function(I){this[" "+I]=I;return this},
remove:Qg.remove,clear:Qg.clear,values:Qg.keys,size:Qg.size,empty:Qg.empty,each:Qg.each};var HC$={},dIH={},zmw=Frf(",").parse,mBs=Frf("\t").parse;e6x(zmw);e6x(mBs);var Vr=function(I,x,MD){x=new vSj(x==null?tjR:x,MD==null?OiP:MD,NaN,NaN,NaN,NaN);return I==null?x:x.addAll(I)}.prototype=vSj.prototype;
Vr.copy=function(){var I=new vSj(this._x,this._y,this._x0,this._y0,this._x1,this._y1),x=this._root,MD,pj;if(!x)return I;if(!x.length)return I._root=scB(x),I;for(MD=[{source:x,target:I._root=Array(4)}];x=MD.pop();)for(var h4=0;h4<4;++h4)if(pj=x.source[h4])pj.length?MD.push({source:pj,target:x.target[h4]=Array(4)}):x.target[h4]=scB(pj);return I};
Vr.add=function(I){var x=+this._x.call(null,I),MD=+this._y.call(null,I);return $If(this.cover(x,MD),x,MD,I)};
Vr.addAll=function(I){var x,MD,pj=I.length,h4,oy,DF=Array(pj),KP=Array(pj),$s=Infinity,Nx=Infinity,d9=-Infinity,RI=-Infinity;for(MD=0;MD<pj;++MD)isNaN(h4=+this._x.call(null,x=I[MD]))||isNaN(oy=+this._y.call(null,x))||(DF[MD]=h4,KP[MD]=oy,h4<$s&&($s=h4),h4>d9&&(d9=h4),oy<Nx&&(Nx=oy),oy>RI&&(RI=oy));d9<$s&&($s=this._x0,d9=this._x1);RI<Nx&&(Nx=this._y0,RI=this._y1);this.cover($s,Nx).cover(d9,RI);for(MD=0;MD<pj;++MD)$If(this,DF[MD],KP[MD],I[MD]);return this};
Vr.cover=function(I,x){if(isNaN(I=+I)||isNaN(x=+x))return this;var MD=this._x0,pj=this._y0,h4=this._x1,oy=this._y1;if(isNaN(MD))h4=(MD=Math.floor(I))+1,oy=(pj=Math.floor(x))+1;else if(MD>I||I>h4||pj>x||x>oy){var DF=h4-MD,KP=this._root,$s;switch($s=(x<(pj+oy)/2)<<1|I<(MD+h4)/2){case 0:do{var Nx=Array(4);Nx[$s]=KP;KP=Nx}while(DF*=2,h4=MD+DF,oy=pj+DF,I>h4||x>oy);break;case 1:do Nx=Array(4),Nx[$s]=KP,KP=Nx;while(DF*=2,MD=h4-DF,oy=pj+DF,MD>I||x>oy);break;case 2:do Nx=Array(4),Nx[$s]=KP,KP=Nx;while(DF*=
2,h4=MD+DF,pj=oy-DF,I>h4||pj>x);break;case 3:do Nx=Array(4),Nx[$s]=KP,KP=Nx;while(DF*=2,MD=h4-DF,pj=oy-DF,MD>I||pj>x)}this._root&&this._root.length&&(this._root=KP)}else return this;this._x0=MD;this._y0=pj;this._x1=h4;this._y1=oy;return this};
Vr.data=function(){var I=[];this.visit(function(x){if(!x.length){do I.push(x.data);while(x=x.next)}});
return I};
Vr.extent=function(I){return arguments.length?this.cover(+I[0][0],+I[0][1]).cover(+I[1][0],+I[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
Vr.find=function(I,x,MD){var pj=this._x0,h4=this._y0,oy,DF,KP,$s,Nx=this._x1,d9=this._y1,RI=[],I8=this._root,av;I8&&RI.push(new jl(I8,pj,h4,Nx,d9));MD==null?MD=Infinity:(pj=I-MD,h4=x-MD,Nx=I+MD,d9=x+MD,MD*=MD);for(;av=RI.pop();)if(!(!(I8=av.node)||(oy=av.x0)>Nx||(DF=av.y0)>d9||(KP=av.x1)<pj||($s=av.y1)<h4))if(I8.length){av=(oy+KP)/2;var rL=(DF+$s)/2;RI.push(new jl(I8[3],av,rL,KP,$s),new jl(I8[2],oy,rL,av,$s),new jl(I8[1],av,DF,KP,rL),new jl(I8[0],oy,DF,av,rL));if(I8=(x>=rL)<<1|I>=av)av=RI[RI.length-
1],RI[RI.length-1]=RI[RI.length-1-I8],RI[RI.length-1-I8]=av}else if(av=I-+this._x.call(null,I8.data),rL=x-+this._y.call(null,I8.data),av=av*av+rL*rL,av<MD){var cD=Math.sqrt(MD=av);pj=I-cD;h4=x-cD;Nx=I+cD;d9=x+cD;cD=I8.data}return cD};
Vr.remove=function(I){if(isNaN($s=+this._x.call(null,I))||isNaN(Nx=+this._y.call(null,I)))return this;var x,MD=this._root,pj,h4=this._x0,oy=this._y0,DF=this._x1,KP=this._y1,$s,Nx,d9,RI,I8,av,rL;if(!MD)return this;if(MD.length)for(;;){(I8=$s>=(d9=(h4+DF)/2))?h4=d9:DF=d9;(av=Nx>=(RI=(oy+KP)/2))?oy=RI:KP=RI;if(!(x=MD,MD=MD[rL=av<<1|I8]))return this;if(!MD.length)break;if(x[rL+1&3]||x[rL+2&3]||x[rL+3&3]){var cD=x;var nI=rL}}for(;MD.data!==I;)if(!(pj=MD,MD=MD.next))return this;(I=MD.next)&&delete MD.next;
if(pj)return I?pj.next=I:delete pj.next,this;if(!x)return this._root=I,this;I?x[rL]=I:delete x[rL];(MD=x[0]||x[1]||x[2]||x[3])&&MD===(x[3]||x[2]||x[1]||x[0])&&!MD.length&&(cD?cD[nI]=MD:this._root=MD);return this};
Vr.removeAll=function(I){for(var x=0,MD=I.length;x<MD;++x)this.remove(I[x]);return this};
Vr.root=function(){return this._root};
Vr.size=function(){var I=0;this.visit(function(x){if(!x.length){do++I;while(x=x.next)}});
return I};
Vr.visit=function(I){var x=[],MD,pj=this._root,h4,oy,DF,KP,$s;for(pj&&x.push(new jl(pj,this._x0,this._y0,this._x1,this._y1));MD=x.pop();)if(!I(pj=MD.node,oy=MD.x0,DF=MD.y0,KP=MD.x1,$s=MD.y1)&&pj.length){MD=(oy+KP)/2;var Nx=(DF+$s)/2;(h4=pj[3])&&x.push(new jl(h4,MD,Nx,KP,$s));(h4=pj[2])&&x.push(new jl(h4,oy,Nx,MD,$s));(h4=pj[1])&&x.push(new jl(h4,MD,DF,KP,Nx));(h4=pj[0])&&x.push(new jl(h4,oy,DF,MD,Nx))}};
Vr.visitAfter=function(I){var x=[],MD=[],pj;for(this._root&&x.push(new jl(this._root,this._x0,this._y0,this._x1,this._y1));pj=x.pop();){var h4=pj.node;if(h4.length){var oy,DF=pj.x0,KP=pj.y0,$s=pj.x1,Nx=pj.y1,d9=(DF+$s)/2,RI=(KP+Nx)/2;(oy=h4[0])&&x.push(new jl(oy,DF,KP,d9,RI));(oy=h4[1])&&x.push(new jl(oy,d9,KP,$s,RI));(oy=h4[2])&&x.push(new jl(oy,DF,RI,d9,Nx));(oy=h4[3])&&x.push(new jl(oy,d9,RI,$s,Nx))}MD.push(pj)}for(;pj=MD.pop();)I(pj.node,pj.x0,pj.y0,pj.x1,pj.y1);return this};
Vr.x=function(I){return arguments.length?(this._x=I,this):this._x};
Vr.y=function(I){return arguments.length?(this._y=I,this):this._y};
var o8P=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;h6H.prototype=OCu.prototype;OCu.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 K$B,n8$={"%":function(I,x){return(I*100).toFixed(x)},
b:function(I){return Math.round(I).toString(2)},
c:function(I){return I+""},
d:function(I){return Math.round(I).toString(10)},
e:function(I,x){return I.toExponential(x)},
f:function(I,x){return I.toFixed(x)},
g:function(I,x){return I.toPrecision(x)},
o:function(I){return Math.round(I).toString(8)},
p:function(I,x){return Mjv(I*100,x)},
r:Mjv,s:function(I,x){var MD=ocw(I,x);if(!MD)return I+"";var pj=MD[0];MD=MD[1];MD=MD-(K$B=Math.max(-8,Math.min(8,Math.floor(MD/3)))*3)+1;var h4=pj.length;return MD===h4?pj:MD>h4?pj+Array(MD-h4+1).join("0"):MD>0?pj.slice(0,MD)+"."+pj.slice(MD):"0."+Array(1-MD).join("0")+ocw(I,Math.max(0,x+MD-1))[0]},
X:function(I){return Math.round(I).toString(16).toUpperCase()},
x:function(I){return Math.round(I).toString(16)}},GRI="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),S2s;
(function(I){return S2s=lBw(I)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});zm.prototype={constructor:zm,reset:function(){this.s=this.t=0},
add:function(I){E8l(BMy,I,this.t);E8l(this,BMy.s,this.s);this.s?this.t+=BMy.t:this.s=BMy.t},
valueOf:function(){return this.s}};
var BMy=new zm,fI=Math.PI,rI=fI/2,Jad=fI/4,Tsn=fI*2,DIF=fI/180,tv=Math.abs,uUD=Math.atan,YWI=Math.atan2,jb=Math.cos,gz=Math.sin,Xry=Math.sqrt;new zm;new zm;new zm;var JVe=new zm;(function(I,x,MD,pj){return function(h4){function oy(sb,CS){I(sb,CS)&&h4.point(sb,CS)}
function DF(sb,CS){I8.point(sb,CS)}
function KP(){nL.point=DF;I8.lineStart()}
function $s(){nL.point=oy;I8.lineEnd()}
function Nx(sb,CS){wj.push([sb,CS]);rL.point(sb,CS)}
function d9(){rL.lineStart();wj=[]}
function RI(){Nx(wj[0][0],wj[0][1]);rL.lineEnd();var sb=rL.clean(),CS=av.result(),Fe=CS.length,O4;wj.pop();nI.push(wj);wj=null;if(Fe)if(sb&1){if(Fe=CS[0],(CS=Fe.length-1)>0){cD||(h4.polygonStart(),cD=!0);h4.lineStart();for(sb=0;sb<CS;++sb)h4.point((O4=Fe[sb])[0],O4[1]);h4.lineEnd()}}else Fe>1&&sb&2&&CS.push(CS.pop().concat(CS.shift())),$_.push(CS.filter(can))}
var I8=x(h4),av=P4w(),rL=x(av),cD=!1,nI,$_,wj,nL={point:oy,lineStart:KP,lineEnd:$s,polygonStart:function(){nL.point=Nx;nL.lineStart=d9;nL.lineEnd=RI;$_=[];nI=[]},
polygonEnd:function(){nL.point=oy;nL.lineStart=KP;nL.lineEnd=$s;var sb=$_,CS=sb.length;var Fe=-1;for(var O4=0,VI,CG;++Fe<CS;)O4+=sb[Fe].length;for(VI=Array(O4);--CS>=0;)for(CG=sb[CS],Fe=CG.length;--Fe>=0;)VI[--O4]=CG[Fe];$_=VI;sb=nI;CS=pj[0];O4=pj[1];var LG=gz(O4);Fe=[gz(CS),-jb(CS),0];CG=VI=0;JVe.reset();LG===1?O4=rI+1E-6:LG===-1&&(O4=-rI-1E-6);LG=0;for(var JE=sb.length;LG<JE;++LG)if(Rk=(F1=sb[LG]).length){var F1,Rk,EQ=F1[Rk-1],ou=EQ[0],tt=EQ[1]/2+Jad,QwD=gz(tt),ZiS=jb(tt);for(tt=0;tt<Rk;++tt,ou=
ZCe,QwD=biJ,ZiS=fa,EQ=Ibj){var Ibj=F1[tt],ZCe=Ibj[0];fa=Ibj[1]/2+Jad;var biJ=gz(fa),fa=jb(fa),qZ=ZCe-ou,bCD=qZ>=0?1:-1,UIy=bCD*qZ,D8s=UIy>fI;QwD*=biJ;JVe.add(YWI(QwD*bCD*gz(UIy),ZiS*fa+QwD*jb(UIy)));VI+=D8s?qZ+bCD*Tsn:qZ;D8s^ou>=CS^ZCe>=CS&&(EQ=kRp(Nnd(EQ),Nnd(Ibj)),plx(EQ),ou=kRp(Fe,EQ),plx(ou),ou=(D8s^qZ>=0?-1:1)*lby(ou[2]),O4>ou||O4===ou&&(EQ[0]||EQ[1]))&&(CG+=D8s^qZ>=0?1:-1)}}sb=(VI<-1E-6||VI<1E-6&&JVe<-1E-6)^CG&1;$_.length?(cD||(h4.polygonStart(),cD=!0),iiP($_,g8R,sb,MD,h4)):sb&&(cD||(h4.polygonStart(),
cD=!0),h4.lineStart(),MD(null,null,1,h4),h4.lineEnd());cD&&(h4.polygonEnd(),cD=!1);$_=nI=null},
sphere:function(){h4.polygonStart();h4.lineStart();MD(null,null,1,h4);h4.lineEnd();h4.polygonEnd()}};
return nL}})(function(){return!0},function(I){var x=NaN,MD=NaN,pj=NaN,h4;
return{lineStart:function(){I.lineStart();h4=1},
point:function(oy,DF){var KP=oy>0?fI:-fI,$s=tv(oy-x);if(tv($s-fI)<1E-6)I.point(x,MD=(MD+DF)/2>0?rI:-rI),I.point(pj,MD),I.lineEnd(),I.lineStart(),I.point(KP,MD),I.point(oy,MD),h4=0;else if(pj!==KP&&$s>=fI){tv(x-pj)<1E-6&&(x-=pj*1E-6);tv(oy-KP)<1E-6&&(oy-=KP*1E-6);$s=x;var Nx=MD,d9=oy,RI,I8,av=gz($s-d9);MD=tv(av)>1E-6?uUD((gz(Nx)*(I8=jb(DF))*gz(d9)-gz(DF)*(RI=jb(Nx))*gz($s))/(RI*I8*av)):(Nx+DF)/2;I.point(pj,MD);I.lineEnd();I.lineStart();I.point(KP,MD);h4=0}I.point(x=oy,MD=DF);pj=KP},
lineEnd:function(){I.lineEnd();x=MD=NaN},
clean:function(){return 2-h4}}},function(I,x,MD,pj){I==null?(MD*=rI,pj.point(-fI,MD),pj.point(0,MD),pj.point(fI,MD),pj.point(fI,0),pj.point(fI,-MD),pj.point(0,-MD),pj.point(-fI,-MD),pj.point(-fI,0),pj.point(-fI,MD)):tv(I[0]-x[0])>1E-6?(I=I[0]<x[0]?fI:-fI,MD=MD*I/2,pj.point(-I,MD),pj.point(0,MD),pj.point(I,MD)):pj.point(x[0],x[1])},[-fI,
-rI]);new zm;new zm;new zm;new zm;wJH.prototype={constructor:wJH,point:function(I,x){this.stream.point(I,x)},
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()}};
jb(30*DIF);(function(I){return function(x){var MD=new wJH,pj;for(pj in I)MD[pj]=I[pj];MD.stream=x;return MD}})({point:function(I,x){this.stream.point(I*DIF,x*DIF)}});
L$$(function(I){return Xry(2/(1+I))}).invert=z2(function(I){return 2*lby(I/2)});
L$$(function(I){return(I=I>1?0:I<-1?fI:Math.acos(I))&&I/gz(I)}).invert=z2(function(I){return I});
Xry(3);z2(uUD);z2(lby);z2(function(I){return 2*uUD(I)});
mc.prototype=W$B.prototype={constructor:mc,count:function(){return this.eachAfter(Bng)},
each:function(I){var x,MD=[this],pj;do{var h4=MD.reverse();for(MD=[];x=h4.pop();)if(I(x),x=x.children){var oy=0;for(pj=x.length;oy<pj;++oy)MD.push(x[oy])}}while(MD.length);return this},
eachAfter:function(I){for(var x,MD=[this],pj=[],h4,oy;x=MD.pop();)if(pj.push(x),x=x.children)for(h4=0,oy=x.length;h4<oy;++h4)MD.push(x[h4]);for(;x=pj.pop();)I(x);return this},
eachBefore:function(I){for(var x,MD=[this],pj;x=MD.pop();)if(I(x),x=x.children)for(pj=x.length-1;pj>=0;--pj)MD.push(x[pj]);return this},
sum:function(I){return this.eachAfter(function(x){for(var MD=+I(x.data)||0,pj=x.children,h4=pj&&pj.length;--h4>=0;)MD+=pj[h4].value;x.value=MD})},
sort:function(I){return this.eachBefore(function(x){x.children&&x.children.sort(I)})},
path:function(I){var x=this;var MD=x;var pj=I;if(MD!==pj){var h4=MD.ancestors(),oy=pj.ancestors(),DF=null;MD=h4.pop();for(pj=oy.pop();MD===pj;)DF=MD,MD=h4.pop(),pj=oy.pop();MD=DF}for(pj=[x];x!==MD;)x=x.parent,pj.push(x);for(x=pj.length;I!==MD;)pj.splice(x,0,I),I=I.parent;return pj},
ancestors:function(){for(var I=this,x=[I];I=I.parent;)x.push(I);return x},
links:function(){var I=this,x=[];I.each(function(MD){MD!==I&&x.push({source:MD.parent,target:MD})});
return x},
copy:function(){return W$B(this).eachBefore(DJL)}};
(function(I,x){this._=I;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=x}).prototype=Object.create(mc.prototype);
var C3$=new Date,a6e=new Date,UJx=tl(function(){},function(I,x){I.setTime(+I+x)},function(I,x){return x-I});
UJx.every=function(I){I=Math.floor(I);return isFinite(I)&&I>0?I>1?tl(function(x){x.setTime(Math.floor(x/I)*I)},function(x,MD){x.setTime(+x+MD*I)},function(x,MD){return(MD-x)/I}):UJx:null};
tl(function(I){I.setTime(Math.floor(I/1E3)*1E3)},function(I,x){I.setTime(+I+x*1E3)},function(I,x){return(x-I)/1E3},function(I){return I.getUTCSeconds()});
tl(function(I){I.setTime(Math.floor(I/6E4)*6E4)},function(I,x){I.setTime(+I+x*6E4)},function(I,x){return(x-I)/6E4},function(I){return I.getMinutes()});
tl(function(I){var x=I.getTimezoneOffset()*6E4%36E5;x<0&&(x+=36E5);I.setTime(Math.floor((+I-x)/36E5)*36E5+x)},function(I,x){I.setTime(+I+x*36E5)},function(I,x){return(x-I)/36E5},function(I){return I.getHours()});
var v8v=tl(function(I){I.setHours(0,0,0,0)},function(I,x){I.setDate(I.getDate()+x)},function(I,x){return(x-I-(x.getTimezoneOffset()-I.getTimezoneOffset())*6E4)/864E5},function(I){return I.getDate()-1}),DBM=gX(0),l6y=gX(1);
gX(2);gX(3);var XJ4=gX(4);gX(5);gX(6);tl(function(I){I.setDate(1);I.setHours(0,0,0,0)},function(I,x){I.setMonth(I.getMonth()+x)},function(I,x){return x.getMonth()-I.getMonth()+(x.getFullYear()-I.getFullYear())*12},function(I){return I.getMonth()});
var e7=tl(function(I){I.setMonth(0,1);I.setHours(0,0,0,0)},function(I,x){I.setFullYear(I.getFullYear()+x)},function(I,x){return x.getFullYear()-I.getFullYear()},function(I){return I.getFullYear()});
e7.every=function(I){return isFinite(I=Math.floor(I))&&I>0?tl(function(x){x.setFullYear(Math.floor(x.getFullYear()/I)*I);x.setMonth(0,1);x.setHours(0,0,0,0)},function(x,MD){x.setFullYear(x.getFullYear()+MD*I)}):null};
tl(function(I){I.setUTCSeconds(0,0)},function(I,x){I.setTime(+I+x*6E4)},function(I,x){return(x-I)/6E4},function(I){return I.getUTCMinutes()});
tl(function(I){I.setUTCMinutes(0,0,0)},function(I,x){I.setTime(+I+x*36E5)},function(I,x){return(x-I)/36E5},function(I){return I.getUTCHours()});
var dJJ=tl(function(I){I.setUTCHours(0,0,0,0)},function(I,x){I.setUTCDate(I.getUTCDate()+x)},function(I,x){return(x-I)/864E5},function(I){return I.getUTCDate()-1}),uus=B9(0),oSi=B9(1);
B9(2);B9(3);var P3F=B9(4);B9(5);B9(6);tl(function(I){I.setUTCDate(1);I.setUTCHours(0,0,0,0)},function(I,x){I.setUTCMonth(I.getUTCMonth()+x)},function(I,x){return x.getUTCMonth()-I.getUTCMonth()+(x.getUTCFullYear()-I.getUTCFullYear())*12},function(I){return I.getUTCMonth()});
var $O=tl(function(I){I.setUTCMonth(0,1);I.setUTCHours(0,0,0,0)},function(I,x){I.setUTCFullYear(I.getUTCFullYear()+x)},function(I,x){return x.getUTCFullYear()-I.getUTCFullYear()},function(I){return I.getUTCFullYear()});
$O.every=function(I){return isFinite(I=Math.floor(I))&&I>0?tl(function(x){x.setUTCFullYear(Math.floor(x.getUTCFullYear()/I)*I);x.setUTCMonth(0,1);x.setUTCHours(0,0,0,0)},function(x,MD){x.setUTCFullYear(x.getUTCFullYear()+MD*I)}):null};
var Aa$={"-":"",_:" ",0:"0"},C7=/^\s*\d+/,Idg=/^%/,Q4w=/[\\^$*+?|[\]().{}]/g,u4F;(function(I){u4F=JaE(I);Pq2=u4F.utcFormat;isv=u4F.utcParse;return u4F})({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||Pq2("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||isv("%Y-%m-%dT%H:%M:%S.%LZ");hg("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
hg("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");hg("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");hg("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");hg("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");hg("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");hg("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
hg("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");hg("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");hg("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");hg("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");hg("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var rRE=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(hg);HM(rRE);var j4I=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(hg);HM(j4I);var VfE=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(hg);HM(VfE);var RmI=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(hg);
HM(RmI);var fds=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(hg);HM(fds);var FFM=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(hg);HM(FFM);var HRw=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(hg);HM(HRw);var em5=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(hg);HM(em5);var $BE=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(hg);HM($BE);var sxw=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(hg);HM(sxw);var MLs=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(hg);HM(MLs);var qY5=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(hg);HM(qY5);var GWs=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(hg);HM(GWs);var KU8=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(hg);HM(KU8);var nlU=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(hg);HM(nlU);var ElE=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(hg);HM(ElE);var NpI=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(hg);HM(NpI);var kWU=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(hg);HM(kWU);var peR=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(hg);HM(peR);var ybL=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(hg);HM(ybL);var LUw=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(hg);HM(LUw);var YYw=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(hg);HM(YYw);var WUI=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(hg);HM(WUI);var Ab5=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(hg);HM(Ab5);var dNv=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(hg);HM(dNv);var vlw=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(hg);HM(vlw);var hg5=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(hg);HM(hg5);QB$(lS(300,.5,0),lS(-240,.5,1));QB$(lS(-100,.75,.35),lS(80,1.5,.8));QB$(lS(260,.75,.35),lS(80,1.5,.8));lS();fP();cpj(hg("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
cpj(hg("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
cpj(hg("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
cpj(hg("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
P4f.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(I,x){I=+I;x=+x;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(I,x):this._context.moveTo(I,x);break;case 1:this._point=2;default:this._context.lineTo(I,x)}}};
(function(I){function x(MD){return new iiS(I(MD))}
x._curve=I;return x})(function(I){return new P4f(I)});
iiS.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(I,x){this._curve.point(x*Math.sin(I),x*-Math.cos(I))}};
cV$.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:iC$(this,this._t0,g8J(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(I,x){var MD=NaN;I=+I;x=+x;if(I!==this._x1||x!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(I,x):this._context.moveTo(I,x);break;case 1:this._point=2;break;case 2:this._point=3;iC$(this,g8J(this,MD=caP(this,I,x)),MD);break;default:iC$(this,this._t0,MD=caP(this,I,x))}this._x0=this._x1;this._x1=I;this._y0=this._y1;this._y1=x;this._t0=MD}}};
(function(I){this._context=new Bn$(I)}.prototype=Object.create(cV$.prototype)).point=function(I,x){cV$.prototype.point.call(this,x,I)};
Bn$.prototype={moveTo:function(I,x){this._context.moveTo(x,I)},
closePath:function(){this._context.closePath()},
lineTo:function(I,x){this._context.lineTo(x,I)},
bezierCurveTo:function(I,x,MD,pj,h4,oy){this._context.bezierCurveTo(x,I,pj,MD,oy,h4)}};
jI.prototype={constructor:jI,scale:function(I){return I===1?this:new jI(this.k*I,this.x,this.y)},
translate:function(I,x){return I===0&x===0?this:new jI(this.k,this.x+this.k*I,this.y+this.k*x)},
apply:function(I){return[I[0]*this.k+this.x,I[1]*this.k+this.y]},
invert:function(I){return[(I[0]-this.x)/this.k,(I[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new jI(1,0,0);v0F=BI;Th.svg=Th.svg;Th.xhtml=Th.xhtml;Th.xlink=Th.xlink;Th.xml=Th.xml;Th.xmlns=Th.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 cM8="hammer_"+(Math.random()*1E6|0),gWP=function(){var M=document||document;if(!M[cM8]){var q=function(){(function(G,K,n,E){function p(By,Ue,jw){return setTimeout(t(By,jw),Ue)}
function y(By,Ue,jw){return Array.isArray(By)?(Y(By,jw[Ue],jw),!0):!1}
function Y(By,Ue,jw){var aI;if(By)if(By.forEach)By.forEach(Ue,jw);else if(By.length!==E){var ww=0;for(aI=By.length;ww<aI;ww++)Ue.call(jw,By[ww],ww,By)}else for(ww in By)By.hasOwnProperty(ww)&&Ue.call(jw,By[ww],ww,By)}
function A(By,Ue,jw){for(var aI=Object.keys(Ue),ww=0,Bt=aI.length;ww<Bt;ww++)if(!jw||jw&&By[aI[ww]]===E)By[aI[ww]]=Ue[aI[ww]];return By}
function v(By,Ue){return A(By,Ue,!0)}
function h(By,Ue,jw){Ue=Ue.prototype;var aI=By.prototype=Object.create(Ue);aI.constructor=By;aI._super=Ue;jw&&A(aI,jw)}
function t(By,Ue){return function(){return By.apply(Ue,arguments)}}
function O(By,Ue){return typeof By=="function"?By.apply(Ue?Ue[0]||E:E,Ue):By}
function a(By,Ue,jw){Y(D(Ue),function(aI){By.addEventListener(aI,jw,!1)})}
function g(By,Ue,jw){Y(D(Ue),function(aI){By.removeEventListener(aI,jw,!1)})}
function D(By){return By.trim().split(/\s+/g)}
function J(By,Ue,jw){if(By.indexOf&&!jw)return By.indexOf(Ue);for(var aI=0,ww=By.length;aI<ww;aI++)if(jw&&By[aI][jw]==Ue||!jw&&By[aI]===Ue)return aI;return-1}
function Z(By,Ue,jw){for(var aI=[],ww=[],Bt=0,QI=By.length;Bt<QI;Bt++){var iS=Ue?By[Bt][Ue]:By[Bt];J(ww,iS)<0&&aI.push(By[Bt]);ww[Bt]=iS}jw&&(aI=Ue?aI.sort(function(lS,UL){return lS[Ue]>UL[Ue]}):aI.sort());
return aI}
function V(By,Ue){for(var jw,aI=Ue[0].toUpperCase()+Ue.slice(1),ww=0,Bt=Ad.length;ww<Bt;ww++)if(jw=(jw=Ad[ww])?jw+aI:Ue,jw in By)return jw;return E}
function S(By,Ue){var jw=this;this.manager=By;this.callback=Ue;this.element=By.element;this.target=By.options.inputTarget;this.domHandler=function(aI){O(By.options.enable,[By])&&jw.handler(aI)};
this.evEl&&a(this.element,this.evEl,this.domHandler);this.evTarget&&a(this.target,this.evTarget,this.domHandler);this.evWin&&a(G,this.evWin,this.domHandler)}
function m(By){var Ue;mw?Ue=bH:e1?Ue=iH:BI?Ue=oI:Ue=ay;return new Ue(By,R)}
function R(By,Ue,jw){var aI=jw.pointers.length,ww=jw.changedPointers.length,Bt=Ue&1&&aI-ww===0;jw.isFirst=!!Bt;jw.isFinal=!!(Ue&12&&aI-ww===0);Bt&&(By.session={});jw.eventType=Ue;Ue=By.session;aI=jw.pointers;ww=aI.length;Ue.firstInput||(Ue.firstInput=se(jw));ww>1&&!Ue.firstMultiple?Ue.firstMultiple=se(jw):ww===1&&(Ue.firstMultiple=!1);Bt=Ue.firstInput;var QI=(ww=Ue.firstMultiple)?ww.center:Bt.center,iS=jw.center=yY(aI);jw.timeStamp=OM();jw.deltaTime=jw.timeStamp-Bt.timeStamp;jw.angle=t4(QI,iS);jw.distance=
cy(QI,iS);Bt=jw.center;QI=Ue.offsetDelta||{};iS=Ue.prevDelta||{};var lS=Ue.prevInput||{};if(jw.eventType===1||lS.eventType===4)iS=Ue.prevDelta={x:lS.deltaX||0,y:lS.deltaY||0},QI=Ue.offsetDelta={x:Bt.x,y:Bt.y};jw.deltaX=iS.x+(Bt.x-QI.x);jw.deltaY=iS.y+(Bt.y-QI.y);jw.offsetDirection=d$(jw.deltaX,jw.deltaY);ww?(Bt=ww.pointers,Bt=cy(aI[0],aI[1],fP)/cy(Bt[0],Bt[1],fP)):Bt=1;jw.scale=Bt;ww?(ww=ww.pointers,aI=t4(aI[1],aI[0],fP)-t4(ww[1],ww[0],fP)):aI=0;jw.rotation=aI;QI=Ue.lastInterval||jw;aI=jw.timeStamp-
QI.timeStamp;jw.eventType!=8&&(aI>25||QI.velocity===E)?(Bt=QI.deltaX-jw.deltaX,QI=QI.deltaY-jw.deltaY,iS=Bt/aI||0,lS=QI/aI||0,aI=iS,ww=lS,iS=Ry(iS)>Ry(lS)?iS:lS,Bt=d$(Bt,QI),Ue.lastInterval=jw):(iS=QI.velocity,aI=QI.velocityX,ww=QI.velocityY,Bt=QI.direction);jw.velocity=iS;jw.velocityX=aI;jw.velocityY=ww;jw.direction=Bt;Ue=By.element;a:{for(aI=jw.srcEvent.target;aI;){if(aI==Ue){aI=!0;break a}aI=aI.parentNode}aI=!1}aI&&(Ue=jw.srcEvent.target);jw.target=Ue;By.emit("hammer.input",jw);By.recognize(jw);
By.session.prevInput=jw}
function se(By){for(var Ue=[],jw=0;jw<By.pointers.length;jw++)Ue[jw]={clientX:qM(By.pointers[jw].clientX),clientY:qM(By.pointers[jw].clientY)};return{timeStamp:OM(),pointers:Ue,center:yY(Ue),deltaX:By.deltaX,deltaY:By.deltaY}}
function yY(By){var Ue=By.length;if(Ue===1)return{x:qM(By[0].clientX),y:qM(By[0].clientY)};for(var jw=0,aI=0,ww=0;ww<Ue;ww++)jw+=By[ww].clientX,aI+=By[ww].clientY;return{x:qM(jw/Ue),y:qM(aI/Ue)}}
function d$(By,Ue){return By===Ue?1:Ry(By)>=Ry(Ue)?By>0?2:4:Ue>0?8:16}
function cy(By,Ue,jw){jw||(jw=p8);var aI=Ue[jw[0]]-By[jw[0]];By=Ue[jw[1]]-By[jw[1]];return Math.sqrt(aI*aI+By*By)}
function t4(By,Ue,jw){jw||(jw=p8);return Math.atan2(Ue[jw[1]]-By[jw[1]],Ue[jw[0]]-By[jw[0]])*180/Math.PI}
function ay(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;S.apply(this,arguments)}
function bH(){this.evEl=$q;this.evWin=My;S.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function iH(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};S.apply(this,arguments)}
function oI(){S.apply(this,arguments);var By=t(this.handler,this);this.touch=new iH(this.manager,By);this.mouse=new ay(this.manager,By)}
function r9(By,Ue){this.manager=By;this.set(Ue)}
function X2(By){if(By.indexOf("none")>-1)return"none";var Ue=By.indexOf("pan-x")>-1,jw=By.indexOf("pan-y")>-1;return Ue&&jw?"pan-x pan-y":Ue||jw?Ue?"pan-x":"pan-y":By.indexOf("manipulation")>-1?"manipulation":"auto"}
function EM(By){this.id=OL++;this.manager=null;this.options=v(By||{},this.defaults);By=this.options.enable;this.options.enable=By===E?!0:By;this.state=1;this.simultaneous={};this.requireFail=[]}
function LP(By){return By==16?"down":By==8?"up":By==2?"left":By==4?"right":""}
function Pv(By,Ue){return(Ue=Ue.manager)?Ue.get(By):By}
function g9(){EM.apply(this,arguments)}
function a8(){g9.apply(this,arguments);this.pY=this.pX=null}
function tE(){g9.apply(this,arguments)}
function ND(){EM.apply(this,arguments);this._input=this._timer=null}
function Mx(){g9.apply(this,arguments)}
function hd(){g9.apply(this,arguments)}
function Kn(){EM.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function w9(By,Ue){Ue=Ue||{};var jw=Ue.recognizers;Ue.recognizers=jw===E?w9.defaults.preset:jw;return new Gs(By,Ue)}
function Gs(By,Ue){Ue=Ue||{};this.options=v(Ue,w9.defaults);this.options.inputTarget=this.options.inputTarget||By;this.handlers={};this.session={};this.recognizers=[];this.element=By;this.input=m(this);this.touchAction=new r9(this,this.options.touchAction);u5(this,!0);Y(Ue.recognizers,function(jw){var aI=this.add(new jw[0](jw[1]));jw[2]&&aI.recognizeWith(jw[2]);jw[3]&&aI.requireFailure(jw[2])},this)}
function u5(By,Ue){var jw=By.element;Y(By.options.cssProps,function(aI,ww){jw.style[V(jw.style,ww)]=Ue?aI:""})}
function jJ(By,Ue){var jw=K.createEvent("Event");jw.initEvent(By,!0,!0);jw.gesture=Ue;Ue.target.dispatchEvent(jw)}
var Ad=" webkit moz MS ms o".split(" "),Wv=K.createElement("div"),qM=Math.round,Ry=Math.abs,OM=Date.now,OL=1,fG=/mobile|tablet|ip(ad|hone|od)|android/i,BI="ontouchstart"in G,mw=V(G,"PointerEvent")!==E,e1=BI&&fG.test(navigator.userAgent),p8=["x","y"],fP=["clientX","clientY"];S.prototype={handler:function(){},
destroy:function(){this.evEl&&g(this.element,this.evEl,this.domHandler);this.evTarget&&g(this.target,this.evTarget,this.domHandler);this.evWin&&g(G,this.evWin,this.domHandler)}};
var Xv={mousedown:1,mousemove:2,mouseup:4};h(ay,S,{handler:function(By){var Ue=Xv[By.type];Ue&1&&By.button===0&&(this.pressed=!0);Ue&2&&By.which!==1&&(Ue=4);this.pressed&&this.allow&&(Ue&4&&(this.pressed=!1),this.callback(this.manager,Ue,{pointers:[By],changedPointers:[By],pointerType:"mouse",srcEvent:By}))}});
var NM={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},pS={2:"touch",3:"pen",4:"mouse",5:"kinect"},$q="pointerdown",My="pointermove pointerup pointercancel";G.MSPointerEvent&&($q="MSPointerDown",My="MSPointerMove MSPointerUp MSPointerCancel");h(bH,S,{handler:function(By){var Ue=this.store,jw=!1,aI=By.type.toLowerCase().replace("ms","");aI=NM[aI];var ww=pS[By.pointerType]||By.pointerType;aI&1&&(By.button===0||ww=="touch")?Ue.push(By):aI&12&&(jw=!0);var Bt=J(Ue,By.pointerId,"pointerId");
Bt<0||(Ue[Bt]=By,this.callback(this.manager,aI,{pointers:Ue,changedPointers:[By],pointerType:ww,srcEvent:By}),jw&&Ue.splice(Bt,1))}});
var Ox={touchstart:1,touchmove:2,touchend:4,touchcancel:8};h(iH,S,{handler:function(By){var Ue=Ox[By.type];var jw=Array.prototype.slice.call(By.touches,0);var aI=this.targetIds;if(Ue&3&&jw.length===1)aI[jw[0].identifier]=!0,aI=[jw,jw];else{var ww,Bt=Array.prototype.slice.call(By.targetTouches,0),QI=Array.prototype.slice.call(By.changedTouches,0),iS=[];if(Ue===1)for(jw=0,ww=Bt.length;jw<ww;jw++)aI[Bt[jw].identifier]=!0;jw=0;for(ww=QI.length;jw<ww;jw++)aI[QI[jw].identifier]&&iS.push(QI[jw]),Ue&12&&
delete aI[QI[jw].identifier];aI=iS.length?[Z(Bt.concat(iS),"identifier",!0),iS]:void 0}aI&&this.callback(this.manager,Ue,{pointers:aI[0],changedPointers:aI[1],pointerType:"touch",srcEvent:By})}});
h(oI,S,{handler:function(By,Ue,jw){var aI=jw.pointerType=="mouse";if(jw.pointerType=="touch")this.mouse.allow=!1;else if(aI&&!this.mouse.allow)return;Ue&12&&(this.mouse.allow=!0);this.callback(By,Ue,jw)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var PD=V(Wv.style,"touchAction"),LK=PD!==E;r9.prototype={set:function(By){By=="compute"&&(By=this.compute());LK&&(this.manager.element.style[PD]=By);this.actions=By.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var By=[];Y(this.manager.recognizers,function(Ue){O(Ue.options.enable,[Ue])&&(By=By.concat(Ue.getTouchAction()))});
return X2(By.join(" "))},
preventDefaults:function(By){if(!LK){var Ue=By.srcEvent;By=By.offsetDirection;if(this.manager.session.prevented)Ue.preventDefault();else{var jw=this.actions,aI=jw.indexOf("none")>-1,ww=jw.indexOf("pan-y")>-1;jw=jw.indexOf("pan-x")>-1;if(aI||ww&&jw||ww&&By&6||jw&&By&24)return this.preventSrc(Ue)}}},
preventSrc:function(By){this.manager.session.prevented=!0;By.preventDefault()}};
EM.prototype={defaults:{},set:function(By){A(this.options,By);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(By){if(y(By,"recognizeWith",this))return this;var Ue=this.simultaneous;By=Pv(By,this);Ue[By.id]||(Ue[By.id]=By,By.recognizeWith(this));return this},
dropRecognizeWith:function(By){if(y(By,"dropRecognizeWith",this))return this;By=Pv(By,this);delete this.simultaneous[By.id];return this},
requireFailure:function(By){if(y(By,"requireFailure",this))return this;var Ue=this.requireFail;By=Pv(By,this);J(Ue,By)===-1&&(Ue.push(By),By.requireFailure(this));return this},
dropRequireFailure:function(By){if(y(By,"dropRequireFailure",this))return this;By=Pv(By,this);By=J(this.requireFail,By);By>-1&&this.requireFail.splice(By,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(By){return!!this.simultaneous[By.id]},
emit:function(By){function Ue(ww){jw.manager.emit(jw.options.event+(ww?aI&16?"cancel":aI&8?"end":aI&4?"move":aI&2?"start":"":""),By)}
var jw=this,aI=this.state;aI<8&&Ue(!0);Ue();aI>=8&&Ue(!0)},
tryEmit:function(By){if(this.canEmit())return this.emit(By);this.state=32},
canEmit:function(){for(var By=0;By<this.requireFail.length;By++)if(!(this.requireFail[By].state&33))return!1;return!0},
recognize:function(By){By=A({},By);O(this.options.enable,[this,By])?(this.state&56&&(this.state=1),this.state=this.process(By),this.state&30&&this.tryEmit(By)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
h(g9,EM,{defaults:{pointers:1},attrTest:function(By){var Ue=this.options.pointers;return Ue===0||By.pointers.length===Ue},
process:function(By){var Ue=this.state,jw=By.eventType,aI=Ue&6;By=this.attrTest(By);return aI&&(jw&8||!By)?Ue|16:aI||By?jw&4?Ue|8:Ue&2?Ue|4:2:32}});
h(a8,g9,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var By=this.options.direction;if(By===30)return["none"];var Ue=[];By&6&&Ue.push("pan-y");By&24&&Ue.push("pan-x");return Ue},
directionTest:function(By){var Ue=this.options,jw=!0,aI=By.distance,ww=By.direction,Bt=By.deltaX,QI=By.deltaY;ww&Ue.direction||(Ue.direction&6?(ww=Bt===0?1:Bt<0?2:4,jw=Bt!=this.pX,aI=Math.abs(By.deltaX)):(ww=QI===0?1:QI<0?8:16,jw=QI!=this.pY,aI=Math.abs(By.deltaY)));By.direction=ww;return jw&&aI>Ue.threshold&&ww&Ue.direction},
attrTest:function(By){return g9.prototype.attrTest.call(this,By)&&(this.state&2||!(this.state&2)&&this.directionTest(By))},
emit:function(By){this.pX=By.deltaX;this.pY=By.deltaY;var Ue=LP(By.direction);Ue&&this.manager.emit(this.options.event+Ue,By);this._super.emit.call(this,By)}});
h(tE,g9,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(By){return this._super.attrTest.call(this,By)&&(Math.abs(By.scale-1)>this.options.threshold||this.state&2)},
emit:function(By){this._super.emit.call(this,By);By.scale!==1&&this.manager.emit(this.options.event+(By.scale<1?"in":"out"),By)}});
h(ND,EM,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(By){var Ue=this.options,jw=By.pointers.length===Ue.pointers,aI=By.distance<Ue.threshold,ww=By.deltaTime>Ue.time;this._input=By;if(!aI||!jw||By.eventType&12&&!ww)this.reset();else if(By.eventType&1)this.reset(),this._timer=p(function(){this.state=8;this.tryEmit()},Ue.time,this);
else if(By.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(By){this.state===8&&(By&&By.eventType&4?this.manager.emit(this.options.event+"up",By):(this._input.timeStamp=OM(),this.manager.emit(this.options.event,this._input)))}});
h(Mx,g9,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(By){return this._super.attrTest.call(this,By)&&(Math.abs(By.rotation)>this.options.threshold||this.state&2)}});
h(hd,g9,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return a8.prototype.getTouchAction.call(this)},
attrTest:function(By){var Ue=this.options.direction;if(Ue&30)var jw=By.velocity;else Ue&6?jw=By.velocityX:Ue&24&&(jw=By.velocityY);return this._super.attrTest.call(this,By)&&Ue&By.direction&&Ry(jw)>this.options.velocity&&By.eventType&4},
emit:function(By){var Ue=LP(By.direction);Ue&&this.manager.emit(this.options.event+Ue,By);this.manager.emit(this.options.event,By)}});
h(Kn,EM,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(By){var Ue=this.options,jw=By.pointers.length===Ue.pointers,aI=By.distance<Ue.threshold,ww=By.deltaTime<Ue.time;this.reset();if(By.eventType&1&&this.count===0)return this.failTimeout();if(aI&&ww&&jw){if(By.eventType!=4)return this.failTimeout();jw=this.pTime?By.timeStamp-this.pTime<Ue.interval:!0;aI=!this.pCenter||cy(this.pCenter,By.center)<Ue.posThreshold;this.pTime=By.timeStamp;this.pCenter=By.center;aI&&jw?this.count+=1:this.count=1;this._input=By;if(this.count%Ue.taps===0)return this.hasRequireFailures()?
(this._timer=p(function(){this.state=8;this.tryEmit()},Ue.interval,this),2):8}return 32},
failTimeout:function(){this._timer=p(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))}});
w9.VERSION="2.0.2";w9.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[Mx,{enable:!1}],[tE,{enable:!1},["rotate"]],[hd,{direction:6}],[a8,{direction:6},["swipe"]],[Kn],[Kn,{event:"doubletap",taps:2},["tap"]],[ND]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};Gs.prototype={set:function(By){A(this.options,By);return this},
stop:function(By){this.session.stopped=By?2:1},
recognize:function(By){var Ue=this.session;if(!Ue.stopped){this.touchAction.preventDefaults(By);var jw=this.recognizers,aI=Ue.curRecognizer;if(!aI||aI&&aI.state&8)aI=Ue.curRecognizer=null;for(var ww=0,Bt=jw.length;ww<Bt;ww++){var QI=jw[ww];Ue.stopped===2||aI&&QI!=aI&&!QI.canRecognizeWith(aI)?QI.reset():QI.recognize(By);!aI&&QI.state&14&&(aI=Ue.curRecognizer=QI)}}},
get:function(By){if(By instanceof EM)return By;for(var Ue=this.recognizers,jw=0;jw<Ue.length;jw++)if(Ue[jw].options.event==By)return Ue[jw];return null},
add:function(By){if(y(By,"add",this))return this;var Ue=this.get(By.options.event);Ue&&this.remove(Ue);this.recognizers.push(By);By.manager=this;this.touchAction.update();return By},
remove:function(By){if(y(By,"remove",this))return this;var Ue=this.recognizers;By=this.get(By);Ue.splice(J(Ue,By),1);this.touchAction.update();return this},
on:function(By,Ue){var jw=this.handlers;Y(D(By),function(aI){jw[aI]=jw[aI]||[];jw[aI].push(Ue)});
return this},
off:function(By,Ue){var jw=this.handlers;Y(D(By),function(aI){Ue?jw[aI].splice(J(jw[aI],Ue),1):delete jw[aI]});
return this},
emit:function(By,Ue){this.options.domEvents&&jJ(By,Ue);var jw=this.handlers[By]&&this.handlers[By].slice();if(jw&&jw.length){Ue.type=By;Ue.preventDefault=function(){Ue.srcEvent.preventDefault()};
By=0;for(var aI=jw.length;By<aI;By++)jw[By](Ue)}},
destroy:function(){this.element&&u5(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
A(w9,{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:Gs,Input:S,TouchAction:r9,Recognizer:EM,AttrRecognizer:g9,Tap:Kn,Pan:a8,Swipe:hd,Pinch:tE,Rotate:Mx,Press:ND,on:a,off:g,each:Y,merge:v,extend:A,inherit:h,bindFn:t,prefixed:V});
G[n]=w9})(window,document,"Hammer");
return window.Hammer}.call({});
q.DOCUMENT=M;M[cM8]=q}return M[cM8]};/*

 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 Br2=function(M,q){if(M.length!==q.length)return!1;for(var G=0;G<M.length;++G)if(M[G]!==q[G])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var QH2=_.k(["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"]),IQ8=QH2.next();!IQ8.done;IQ8=QH2.next()){var DKB=IQ8.value,uaJ=document.createElement("link");uaJ.rel="stylesheet";uaJ.href=DKB;document.head.appendChild(uaJ)};var uZF,Zee,UeY,Q5$,JcF,IlY,gEe,BBj;uZF={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};Zee={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:"*"};UeY={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};Q5$=/[a-z0-9*]/;JcF=/U\+/;IlY=/^arrow/;gEe=/^space(bar)?/;BBj=/^escape$/;_.X9={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(M,q){this._imperativeKeyBindings[M]=q;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(M,q){q=zKF(q);for(var G=0;G<q.length;++G)if(be$(q[G],M))return!0;return!1},
_collectKeyBindings:function(){var M=this.behaviors.map(function(q){return q.keyBindings});
M.indexOf(this.keyBindings)===-1&&M.push(this.keyBindings);return M},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(G){for(var K in G)this._addKeyBinding(K,G[K])},this);
for(var M in this._imperativeKeyBindings)this._addKeyBinding(M,this._imperativeKeyBindings[M]);for(var q in this._keyBindings)this._keyBindings[q].sort(function(G,K){G=G[0].hasModifiers;return G===K[0].hasModifiers?0:G?-1:1})},
_addKeyBinding:function(M,q){zKF(M).forEach(function(G){this._keyBindings[G.event]=this._keyBindings[G.event]||[];this._keyBindings[G.event].push([G,q])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(M){var q=this._onKeyBindingEvent.bind(this,this._keyBindings[M]);this._boundKeyHandlers.push([this.keyEventTarget,M,q]);this.keyEventTarget.addEventListener(M,q)},this)},
_unlistenKeyEventListeners:function(){for(var M,q,G;this._boundKeyHandlers.length;)M=this._boundKeyHandlers.pop(),q=M[0],G=M[1],M=M[2],q.removeEventListener(G,M)},
_onKeyBindingEvent:function(M,q){this.stopKeyboardEventPropagation&&q.stopPropagation();if(!q.defaultPrevented)for(var G=0;G<M.length;G++){var K=M[G][0],n=M[G][1];if(be$(K,q)&&(this._triggerKeyHandler(K,n,q),q.defaultPrevented))break}},
_triggerKeyHandler:function(M,q,G){var K=Object.create(M);K.keyboardEvent=G;M=new CustomEvent(M.event,{detail:K,cancelable:!0});this[q].call(this,M);M.defaultPrevented&&G.preventDefault()}};/*

Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
_.h_({is:"iron-a11y-keys",_template:null,behaviors:[_.X9],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(M){this.keyEventTarget=M},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(M){this.fire("keys-pressed",M.detail,{})}});_.Pn={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(M){this._setFocused(M.type==="focus")},
_disabledChanged:function(M){this.setAttribute("aria-disabled",M?"true":"false");this.style.pointerEvents=M?"none":"";M?(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 iz={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(M){this._detectKeyboardFocus(M);M||this._setPressed(!1)},
_detectKeyboardFocus:function(M){this._setReceivedFocusFromKeyboard(!this.pointerDown&&M)},
_userActivate:function(M){this.active!==M&&(this.active=M,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(M){M=M.detail.keyboardEvent;var q=_.YD(M).localTarget;this.isLightDescendant(q)||(M.preventDefault(),M.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(M){M=_.YD(M.detail.keyboardEvent).localTarget;this.isLightDescendant(M)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(M,q){q&&q!=M&&this.hasAttribute(q)&&this.removeAttribute(q)},
_activeChanged:function(M){this.toggles?this.setAttribute(this.ariaActiveAttribute,M?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},JM$=[_.X9,
iz];_.cn={IronButtonState:JM$,IronButtonStateImpl:iz};_.gQ={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.Bn=function(M){_.Bn[" "](M);this.type=M&&M.type||"default";this.key=M&&M.key;M&&"value"in M&&(this.value=M.value)};
_.Bn.prototype.byKey=function(M){this.key=M;return this.value};
_.Yd.Object.defineProperties(_.Bn.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var M=this.type,q=this.key;if(M&&q)return QN[M]&&QN[M][q]},
set:function(M){var q=this.type,G=this.key;q&&G&&(q=QN[q]=QN[q]||{},M==null?delete q[G]:q[G]=M)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var M=QN[this.type];return M?Object.keys(M).map(function(q){return QN[this.type][q]},this):[]}}});
_.Bn[" "]=function(){};
var QN={};_.h_({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(M,q,G){M=new _.Bn({type:M,key:q});G!==void 0&&G!==M.value?M.value=G:this.value!==M.value&&(this.value=M.value);return M},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(M){M&&(this.value=this)},
byKey:function(M){return(new _.Bn({type:this.type,key:M})).value}});var Zs9;Zs9=null;_.I3={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){Zs9=new _.Bn({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return Zs9&&Zs9.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(M){this.invalid=M===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(M);return!this.invalid},
_getValidity:function(M){return this.hasValidator()?this._validator.validate(M):!0}};var bsP={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"}},UKS=[_.gQ,
_.I3,bsP];_.h_({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 _.Bn({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(M){return this.name+":"+M},this)},
applyIcon:function(M,q){this.removeIcon(M);if(q=this._cloneIcon(q,this.rtlMirroring&&this._targetIsRTL(M))){var G=_.YD(M.root||M);G.insertBefore(q,G.childNodes[0]);return M._svgIcon=q}return null},
removeIcon:function(M){M._svgIcon&&(_.YD(M.root||M).removeChild(M._svgIcon),M._svgIcon=null)},
_targetIsRTL:function(M){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(M&&M.nodeType!==Node.ELEMENT_NODE&&(M=M.host),this.__targetIsRTL=M&&window.getComputedStyle(M).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 M=Object.create(null);_.YD(this).querySelectorAll("[id]").forEach(function(q){M[q.id]=q});
return M},
_cloneIcon:function(M,q){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[M],this.size,q)},
_prepareSvgClone:function(M,q,G){if(M){M=M.cloneNode(!0);var K=document.createElementNS("http://www.w3.org/2000/svg","svg");q=M.getAttribute("viewBox")||"0 0 "+q+" "+q;var n="pointer-events: none; display: block; width: 100%; height: 100%;";G&&M.hasAttribute("mirror-in-rtl")&&(n+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");K.setAttribute("viewBox",q);K.setAttribute("preserveAspectRatio","xMidYMid meet");K.setAttribute("focusable","false");K.style&&(K.style.cssText=
n);K.appendChild(M).removeAttribute("id");return K}return null}});var xK8=function(M){this.multi=!1;this.selection=[];this.selectCallback=M};
_.N=xK8.prototype;_.N.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.N.clear=function(M){this.selection.slice().forEach(function(q){(!M||M.indexOf(q)<0)&&this.setItemSelected(q,!1)},this)};
_.N.isSelected=function(M){return this.selection.indexOf(M)>=0};
_.N.setItemSelected=function(M,q){if(M!=null&&q!==this.isSelected(M)){if(q)this.selection.push(M);else{var G=this.selection.indexOf(M);G>=0&&this.selection.splice(G,1)}this.selectCallback&&this.selectCallback(M,q)}};
_.N.select=function(M){this.multi?this.toggle(M):this.get()!==M&&(this.setItemSelected(this.get(),!1),this.setItemSelected(M,!0))};
_.N.toggle=function(M){this.setItemSelected(M,!this.isSelected(M))};_.IO={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 xK8(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.YD(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(M){return this.items?this.items.indexOf(M):-1},
select:function(M){this.selected=M},
selectPrevious:function(){var M=this.items.length,q=M-1;this.selected!==void 0&&(q=(Number(this._valueToIndex(this.selected))-1+M)%M);this.selected=this._indexToValue(q)},
selectNext:function(){var M=0;this.selected!==void 0&&(M=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(M)},
selectIndex:function(M){this.select(this._indexToValue(M))},
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(M){this.listen(this,M,"_activateHandler")},
_removeListener:function(M){this.unlisten(this,M,"_activateHandler")},
_activateEventChanged:function(M,q){this._removeListener(q);this._addListener(M)},
_updateItems:function(){var M=_.YD(this).queryDistributedElements(this.selectable||"*");M=Array.prototype.filter.call(M,this._bindFilterItem);this._setItems(M)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var M=this._valueToItem(this.selected);M?this._selection.select(M):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(M){return!this._excludedLocalNames[M.localName]},
_valueToItem:function(M){return M==null?null:this.items[this._valueToIndex(M)]},
_valueToIndex:function(M){if(this.attrForSelected)for(var q=0,G;G=this.items[q];q++){if(this._valueForItem(G)==M)return q}else return Number(M)},
_indexToValue:function(M){if(this.attrForSelected){if(M=this.items[M])return this._valueForItem(M)}else return M},
_valueForItem:function(M){if(!M)return null;if(!this.attrForSelected)return M=this.indexOf(M),M===-1?null:M;var q=M[ak(this.attrForSelected)];return q!=void 0?q:M.getAttribute(this.attrForSelected)},
_applySelection:function(M,q){this.selectedClass&&this.toggleClass(this.selectedClass,q,M);this.selectedAttribute&&this.toggleAttribute.call(M,this.selectedAttribute,q);this._selectionChange();this.fire("iron-"+(q?"select":"deselect"),{item:M})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(M){return _.YD(M).observeNodes(function(q){this._updateItems();this._updateSelected();this.fire("iron-items-changed",q,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(M){M=M.target;for(var q=this.items;M&&M!=this;){var G=q.indexOf(M);if(G>=0){q=this._indexToValue(G);this._itemActivate(q,M);break}M=M.parentNode}},
_itemActivate:function(M,q){this.fire("iron-activate",{selected:M,item:q},{cancelable:!0}).defaultPrevented||this.select(M)}};var z2f={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(M){this.multi?this._toggleSelected(M):this.selected=M},
multiChanged:function(M){this._selection.multi=M;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(M){return this._indexToValue(this.indexOf(M))},this).filter(function(M){return M!=null},this)):_.IO._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(M){M=M||[];M=(this._valuesToItems(M)||[]).filter(function(G){return G!==null&&G!==void 0});
this._selection.clear(M);for(var q=0;q<M.length;q++)this._selection.setItemSelected(M[q],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var M=this._selection.get();this.multi?(this._setSelectedItems(M),this._setSelectedItem(M.length?M[0]:null)):M!==null&&M!==void 0?(this._setSelectedItems([M]),this._setSelectedItem(M)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(M){var q=this.selectedValues.indexOf(M);q<0?this.push("selectedValues",M):this.splice("selectedValues",q,1)},
_valuesToItems:function(M){return M==null?null:M.map(function(q){return this._valueToItem(q)},this)}},mKf=[_.IO,
z2f];var SF8;
_.D4={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(M){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var q=this._valueToItem(M);q&&q.hasAttribute("disabled")||(this._setFocusedItem(q),z2f.select.apply(this,arguments))},
_resetTabindices:function(){var M=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(q){q.setAttribute("tabindex",q===M?"0":"-1");q.setAttribute("aria-selected",this._selection.isSelected(q))},this)},
_updateMultiselectable:function(M){M?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(M){if(this._MODIFIER_KEYS.indexOf(M.key)===-1){this.cancelDebouncer("_clearSearchText");var q=this._searchText||"";q+=(M.key&&M.key.length==1?M.key:String.fromCharCode(M.keyCode)).toLocaleLowerCase();M=q.length;for(var G=0,K;K=this.items[G];G++)if(!K.hasAttribute("disabled")){var n=this.attrForItemTitle||"textContent";n=(K[n]||K.getAttribute(n)||"").trim();if(!(n.length<M)&&n.slice(0,M).toLocaleLowerCase()==q){this._setFocusedItem(K);break}}this._searchText=q;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var M=this.items.length,q=Number(this.indexOf(this.focusedItem)),G=1;G<M+1;G++){var K=this.items[(q-G+M)%M];if(!K.hasAttribute("disabled")){var n=_.YD(K).getOwnerRoot()||document;this._setFocusedItem(K);if(_.YD(n).activeElement==K)break}}},
_focusNext:function(){for(var M=this.items.length,q=Number(this.indexOf(this.focusedItem)),G=1;G<M+1;G++){var K=this.items[(q+G)%M];if(!K.hasAttribute("disabled")){var n=_.YD(K).getOwnerRoot()||document;this._setFocusedItem(K);if(_.YD(n).activeElement==K)break}}},
_applySelection:function(M,q){q?M.setAttribute("aria-selected","true"):M.setAttribute("aria-selected","false");_.IO._applySelection.apply(this,arguments)},
_focusedItemChanged:function(M,q){q&&q.setAttribute("tabindex","-1");!M||M.hasAttribute("disabled")||this.disabled||(M.setAttribute("tabindex","0"),M.focus())},
_onIronItemsChanged:function(M){M.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var M=this.getAttribute("tabindex");_.D4._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",M);_.D4._shiftTabPressed=!1},1)},
_onFocus:function(M){!_.D4._shiftTabPressed&&(M=_.YD(M).rootTarget,M===this||typeof M.tabIndex==="undefined"||this.isLightDescendant(M))&&(this._defaultFocusAsync=this.async(function(){var q=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);q?this._setFocusedItem(q):this.items[0]&&this._focusNext()}))},
_onUpKey:function(M){this._focusPrevious();M.detail.keyboardEvent.preventDefault()},
_onDownKey:function(M){this._focusNext();M.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var M=this.focusedItem;M&&M.blur()},
_onKeydown:function(M){this.keyboardEventMatchesKeys(M,"up down esc")||this._focusWithKeyboardEvent(M);M.stopPropagation()},
_activateHandler:function(M){_.IO._activateHandler.call(this,M);M.stopPropagation()},
_disabledChanged:function(M){M?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};SF8=[mKf,_.X9,_.D4];_.TrM={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(M){this.focusedItem&&(this.focusedItem.click(),M.detail.keyboardEvent.preventDefault())},
_onDownKey:function(M){this.focusedItem&&(this.focusedItem.click(),M.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(M){return M.ctrlKey||M.shiftKey||M.altKey||M.metaKey},
_onLeftKey:function(M){this._isSpecialKey(M.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),M.detail.keyboardEvent.preventDefault())},
_onRightKey:function(M){this._isSpecialKey(M.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),M.detail.keyboardEvent.preventDefault())},
_onKeydown:function(M){this.keyboardEventMatchesKeys(M,"up down left right esc")||this._focusWithKeyboardEvent(M)}};
_.rM8=[SF8,_.TrM];var jHd;jHd=new Set;_.uz={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):(jHd.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(M){this.resizerShouldNotify(M)&&this._notifyDescendant(M)},this),this._fireResize())},
assignParentResizable:function(M){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=M)&&M._interestedResizables.indexOf(this)===-1&&(M._interestedResizables.push(this),M._subscribeIronResize(this))},
stopResizeNotificationsFor:function(M){var q=this._interestedResizables.indexOf(M);q>-1&&(this._interestedResizables.splice(q,1),this._unsubscribeIronResize(M))},
_subscribeIronResize:function(M){M.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(M){M.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(M){this._notifyingDescendant?M.stopPropagation():$I||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(M){var q=_.YD(M).rootTarget;q!==this&&(q.assignParentResizable(this),this._notifyDescendant(q),M.stopPropagation())},
_parentResizableChanged:function(M){M&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(M){this.isAttached&&(this._notifyingDescendant=!0,M.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var M=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function G(){document.removeEventListener("readystatechange",G);M()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(q){q!==this&&q._findParent()},this):(jHd.forEach(function(q){q!==this&&q._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?jHd.delete(this):jHd.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
*/
_.VhJ={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(M,q){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);q&&(M==="document"?this.scrollTarget=this._doc:typeof M==="string"?this.scrollTarget=(q=this.domHost)&&q.$?q.$[M]:_.YD(this.ownerDocument).querySelector("#"+M):this._isValidScrollTarget()&&(this._oldScrollTarget=M,this._toggleScrollListener(this._shouldHaveListener,M)))},
_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(M){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,M):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
M)},set _scrollLeft(M){this.scrollTarget===this._doc?window.scrollTo(M,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=M)},scroll:function(M,q){if(typeof M==="object"){var G=M.left;q=M.top}else G=M;G=G||0;q=q||0;this.scrollTarget===this._doc?window.scrollTo(G,q):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=G,this.scrollTarget.scrollTop=q)},
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(M,q){q=q===this._doc?window:q;M?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),q.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(q.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(M){this._shouldHaveListener=M;this._toggleScrollListener(M,this.scrollTarget)}};_.h_({is:"iron-selector",_template:null,behaviors:[mKf]});var Jt={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(M){if(M.timing)for(var q in M.timing)this.animationTiming[q]=M.timing[q];return this.animationTiming},
setPrefixedProperty:function(M,q,G){for(var K={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[q],n,E=0;n=K[E];E++)M.style[n]=G;M.style[q]=G},
complete:function(){}};_.h_({is:"fade-in-animation",_template:null,behaviors:[Jt],configure:function(M){return this._effect=new KeyframeEffect(M.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(M))}});_.h_({is:"fade-out-animation",_template:null,behaviors:[Jt],configure:function(M){return this._effect=new KeyframeEffect(M.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(M))}});var R2M=[{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(M,q){for(var G in q)M[G]=q[G]},
_cloneConfig:function(M){var q={isClone:!0};this._copyProperties(q,M);return q},
_getAnimationConfigRecursive:function(M,q,G){if(this.animationConfig)if(this.animationConfig.value&&typeof this.animationConfig.value==="function")this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else{var K=M?this.animationConfig[M]:this.animationConfig;Array.isArray(K)||(K=[K]);if(K)for(var n,E=0;n=K[E];E++)if(n.animatable)n.animatable._getAnimationConfigRecursive(n.type||M,q,G);else if(n.id){var p=q[n.id];
p?(p.isClone||(q[n.id]=this._cloneConfig(p),p=q[n.id]),this._copyProperties(p,n)):q[n.id]=n}else G.push(n)}},
getAnimationConfig:function(M){var q={},G=[];this._getAnimationConfigRecursive(M,q,G);for(var K in q)G.push(q[K]);return G}},
{_configureAnimations:function(M){var q=[],G=[];if(M.length>0)for(var K,n=0;K=M[n];n++){var E=document.createElement(K.name);if(E.isNeonAnimation){var p=null;E.configure||(E.configure=function(){return null});
p=E.configure(K);G.push({result:p,config:K})}else console.warn(this.is+":",K.name,"not found!")}for(M=0;M<G.length;M++){p=G[M].result;K=G[M].config;try{typeof p.cancel!="function"&&(p=document.timeline.play(p))}catch(y){p=null,console.warn("Couldnt play","(",K.name,").",y)}p&&q.push({neonAnimation:E,config:K,animation:p})}return q},
_shouldComplete:function(M){for(var q=!0,G=0;G<M.length;G++)if(M[G].animation.playState!="finished"){q=!1;break}return q},
_complete:function(M){for(var q=0;q<M.length;q++)M[q].neonAnimation.complete(M[q].config);for(q=0;q<M.length;q++)M[q].animation.cancel()},
playAnimation:function(M,q){var G=this.getAnimationConfig(M);if(G){this._active=this._active||{};this._active[M]&&(this._complete(this._active[M]),delete this._active[M]);var K=this._configureAnimations(G);if(K.length==0)this.fire("neon-animation-finish",q,{bubbles:!1});else for(this._active[M]=K,G=0;G<K.length;G++)K[G].animation.onfinish=function(){this._shouldComplete(K)&&(this._complete(K),delete this._active[M],this.fire("neon-animation-finish",q,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var M in this._active){var q=this._active[M],G;for(G in q)q[G].animation&&q[G].animation.cancel&&q[G].animation.cancel()}this._active={}}}];var cG=function(M,q){M=Error.call(this,M);this.message=M.message;"stack"in M&&(this.stack=M.stack);this.arg=q;this.name=this.constructor.name;this.constructor=cG;this.__proto__=cG.prototype};
_.l(cG,Error);var fQ2=$r(function(M){var q=function(){return M.apply(this,arguments)||this};
_.l(q,M);q.prototype._marshalArgs=function(G,K,n){K=M.prototype._marshalArgs.call(this,G,K,n);if(this._legacyUndefinedCheck&&K.length>1)for(n=0;n<K.length;n++)if(K[n]===void 0||G[n].wildcard&&K[n].base===void 0)throw G=G[n].name,new cG("Argument '"+G+"' is undefined.",G);return K};
q.prototype._addPropertyEffect=function(G,K,n){return M.prototype._addPropertyEffect.call(this,G,K,mew(n,n&&n.info&&n.info.methodName))};
q._addTemplatePropertyEffect=function(G,K,n){return M._addTemplatePropertyEffect.call(this,G,K,mew(n))};
return q}),FiB=_.h_.Class;
_.h_.Class=function(M,q){return FiB(M,function(G){return q?q(fQ2(G)):fQ2(G)})};
var Hs2=$r(function(M){var q=fQ2(M);M=function(){return q.apply(this,arguments)||this};
_.l(M,q);_.Yd.Object.defineProperties(M.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return M}),e2S=M3.mixin;
M3.mixin=e2S?function(M){return Hs2(e2S(M))}:Hs2;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.Z4=_.cn.IronButtonState;var H4j=eU;_.SBs="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");var RKe=function(){return Math.random().toString(36).substring(7).split("").join(".")},VWH="@@redux/INIT"+RKe(),Hew="@@redux/REPLACE"+RKe();var eKu=typeof Symbol==="function"&&Symbol.observable||"@@observable";var $K$=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var sTl="top right bottom left width height size weight".split(" "),M$v=typeof MutationObserver!=="undefined",qvI=$K$&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,GmB=function(){this.mutationEventsAdded_=this.JSC$11756_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=$ew(this.refresh.bind(this))},K62=function(M,
q){var G=M.observers_;
q=G.indexOf(q);~q&&G.splice(q,1);!G.length&&M.JSC$11756_connected_&&$K$&&M.JSC$11756_connected_&&(document.removeEventListener("transitionend",M.onTransitionEnd_),window.removeEventListener("resize",M.refresh),M.mutationsObserver_&&(M.mutationsObserver_.disconnect(),qvI&&(HTMLElement.prototype.attachShadow=qvI)),M.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",M.refresh),M.mutationsObserver_=null,M.mutationEventsAdded_=!1,M.JSC$11756_connected_=!1)};
GmB.prototype.refresh=function(){n1v(this)&&this.refresh()};
var n1v=function(M){M=M.observers_.filter(function(q){return E1B(q),q.activeObservations_.length>0});
M.forEach(function(q){return Nl2(q)});
return M.length>0},kmB=function(M){if($K$&&!M.JSC$11756_connected_){document.addEventListener("transitionend",M.onTransitionEnd_);
window.addEventListener("resize",M.refresh);if(M$v){M.mutationsObserver_=new MutationObserver(M.refresh);var q={attributes:!0,childList:!0,characterData:!0,subtree:!0};M.mutationsObserver_.observe(document,q);qvI&&(function n(K){var E=K.shadowRoot;E&&(M.mutationsObserver_.observe(E,q),n(E));for(K=K.firstElementChild;K;)n(K),K=K.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var K=qvI.apply(this,_.rW.apply(0,arguments));
M.mutationsObserver_.observe(K,q);return K})}else document.addEventListener("DOMSubtreeModified",M.refresh),M.mutationEventsAdded_=!0;
M.JSC$11756_connected_=!0}};
GmB.prototype.onTransitionEnd_=function(M){var q=M.propertyName===void 0?"":M.propertyName;sTl.some(function(G){return!!~q.indexOf(G)})&&this.refresh()};
var p7$=null;var yDP=function(M,q){for(var G=_.k(Object.keys(q)),K=G.next();!K.done;K=G.next())K=K.value,Object.defineProperty(M,K,{value:q[K],enumerable:!1,writable:!1,configurable:!0})};var bz=function(M){var q;return(M==null?void 0:(q=M.ownerDocument)==null?void 0:q.defaultView)||globalThis};var L6f={x:0,y:0,width:0,height:0},YvP=typeof SVGGraphicsElement!=="undefined"?function(M){return M instanceof bz(M).SVGGraphicsElement}:function(M){return M instanceof bz(M).SVGElement&&typeof M.getBBox==="function"};var W6P=function(M){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=M};
W6P.prototype.isActive=function(){var M=this.target;if($K$)if(YvP(M)){var q=M.getBBox();q={x:0,y:0,width:q.width,height:q.height}}else{var G=M.clientWidth,K=M.clientHeight;if(G||K){var n=bz(M).getComputedStyle(M);q=BG(n["padding-top"]);var E=BG(n["padding-left"]),p=E+BG(n["padding-right"]),y=q+BG(n["padding-bottom"]),Y=BG(n.width),A=BG(n.height);n.boxSizing==="border-box"&&(Math.round(Y+p)!==G&&(Y-=si$(n,"left","right")+p),Math.round(A+y)!==K&&(A-=si$(n,"top","bottom")+y));M!==bz(M).document.documentElement&&
(M=Math.round(Y+p)-G,K=Math.round(A+y)-K,Math.abs(M)!==1&&(Y-=M),Math.abs(K)!==1&&(A-=K));q={x:E,y:q,width:Y,height:A}}else q=L6f}else q=L6f;this.contentRect_=q;return q.width!==this.broadcastWidth||q.height!==this.broadcastHeight};var ADI=function(M,q){var G=q.x;var K=q.y;var n=q.width;q=q.height;var E=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);yDP(E,{x:G,y:K,width:n,height:q,top:K,right:G+n,bottom:q+K,left:G});yDP(this,{target:M,contentRect:E})};var dnp=function(M,q){var G=p7$;this.activeObservations_=[];this.observations_=new Map;if(typeof M!=="function")throw new TypeError("Ve");this.callback_=M;this.controller_=G;this.callbackCtx_=q};
dnp.prototype.observe=function(M){if(M===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(M instanceof bz(M).Element))throw new TypeError("Xe");var q=this.observations_;q.has(M)||(q.set(M,new W6P(M)),M=this.controller_,~M.observers_.indexOf(this)||M.observers_.push(this),M.JSC$11756_connected_||kmB(M),this.controller_.refresh())}};
dnp.prototype.unobserve=function(M){if(M===void 0)throw new TypeError("We");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(M instanceof bz(M).Element))throw new TypeError("Xe");var q=this.observations_;q.has(M)&&(q.delete(M),q.size||K62(this.controller_,this))}};
dnp.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();K62(this.controller_,this)};
var E1B=function(M){M.activeObservations_.splice(0);M.observations_.forEach(function(q){q.isActive()&&M.activeObservations_.push(q)})},Nl2=function(M){if(M.activeObservations_.length>0){var q=M.callbackCtx_,G=M.activeObservations_.map(function(K){var n=K.target,E=K.contentRect_;
K.broadcastWidth=E.width;K.broadcastHeight=E.height;return new ADI(n,E)});
M.callback_.call(q,G,q);M.activeObservations_.splice(0)}};var UZ=function(M){if(!(this instanceof UZ))throw new TypeError("Ye");if(!arguments.length)throw new TypeError("We");p7$||(p7$=new GmB);this.observer_=new dnp(M,this)};
UZ.prototype.observe=function(M){this.observer_.observe(M)};
UZ.prototype.unobserve=function(M){this.observer_.unobserve(M)};
UZ.prototype.disconnect=function(){this.observer_.disconnect()};var Q0y=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:UZ;var HG={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"},su={"2D":0,WebGL:1,WebGL2:2};su[su["2D"]]="2D";su[1]="WebGL";su[2]="WebGL2";var qSe={Node:["childNodes","parentNode","parentElement","textContent"],ShadowRoot:["host","styleSheets"],Element:["shadowRoot","querySelector","querySelectorAll"],MutationObserver:[]},GZH={Node:["contains","getRootNode"],ShadowRoot:["getSelection"],Element:[],MutationObserver:["constructor"]},M8e={},nuF={},Euj={},UU=function(M){return Qb("Node",M,"childNodes")},bd=function(M){return Qb("Node",M,"parentNode")},xd=function(M){return Qb("Node",M,"parentElement")},z_j=function(M){return Qb("Node",M,
"textContent")},qge=function(M){return N6e(M,"getRootNode")()},De=function(M){return M&&"host"in M?Qb("ShadowRoot",M,"host"):null},ud=function(M){return M&&"shadowRoot"in M?Qb("Element",M,"shadowRoot"):null};var Ty=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
Ty.prototype.getId=function(M){if(!M)return-1;var q,G;return(G=(q=this.nodeMetaMap.get(M)||null)==null?void 0:q.id)!=null?G:-1};
Ty.prototype.getIds=function(){return Array.from(this.idNodeMap.keys())};
var v1p=function(M,q){var G=M.getId(q);M.idNodeMap.delete(G);q.childNodes&&q.childNodes.forEach(function(K){return v1p(M,K)})};
Ty.prototype.has=function(M){return this.idNodeMap.has(M)};
Ty.prototype.add=function(M,q){this.idNodeMap.set(q.id,M);this.nodeMetaMap.set(M,q)};
Ty.prototype.replace=function(M,q){var G=this.idNodeMap.get(M)||null;G&&(G=this.nodeMetaMap.get(G))&&this.nodeMetaMap.set(q,G);this.idNodeMap.set(M,q)};
Ty.prototype.reset=function(){this.idNodeMap=new Map;this.nodeMetaMap=new WeakMap};
var vuu=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,h_H=/^(?:[a-z+]+:)?\/\//i,t8i=/^www\..*/i,OE$=/^(data:)([^,]*),(.*)/i;var aOF=1,lOu=RegExp("[^a-z0-9-_:]"),zy,SSi,iEy=/^[^ \t\n\r\u000c]+/,P2j=/^[, \t\n\r\u000c]+/,Qis=new WeakMap;var Mh,FG=function(M){return Mh?function(){var q=_.rW.apply(0,arguments);try{return M.apply(null,_.Ui(q))}catch(G){if(!Mh||Mh(G)!==!0)throw G;}}:M};var xt=function(M){this.generateIdFn=M;this.iframeIdToRemoteIdMap=new WeakMap;this.iframeRemoteIdToIdMap=new WeakMap};
xt.prototype.getId=function(M,q,G,K){G=G||hWl(this,M);M=K||t$l(this,M);K=G.get(q);K||(K=this.generateIdFn(),G.set(q,K),M.set(K,q));return K};
xt.prototype.getIds=function(M,q){var G=this,K=hWl(this,M),n=t$l(this,M);return q.map(function(E){return G.getId(M,E,K,n)})};
xt.prototype.reset=function(M){M?(this.iframeIdToRemoteIdMap.delete(M),this.iframeRemoteIdToIdMap.delete(M)):(this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap)};
var hWl=function(M,q){var G=M.iframeIdToRemoteIdMap.get(q);G||(G=new Map,M.iframeIdToRemoteIdMap.set(q,G));return G},t$l=function(M,q){var G=M.iframeRemoteIdToIdMap.get(q);
G||(G=new Map,M.iframeRemoteIdToIdMap.set(q,G));return G};var rqy=function(M){this.iframes=new WeakMap;this.crossOriginIframeMap=new WeakMap;this.crossOriginIframeMirror=new xt(ous);this.crossOriginIframeRootIdMap=new WeakMap;this.mutationCb=M.mutationCb;this.wrappedEmit=M.wrappedEmit;this.stylesheetManager=M.stylesheetManager;this.recordCrossOriginIframes=M.recordCrossOriginIframes;this.crossOriginIframeStyleMirror=new xt(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror));this.mirror=M.mirror;this.recordCrossOriginIframes&&
window.addEventListener("message",this.JSC$11820_handleMessage.bind(this))},F7D=function(M,q){M.iframes.set(q,!0);
q.contentWindow&&M.crossOriginIframeMap.set(q.contentWindow,q)},q6H=function(M,q){M.loadListener=q},$ui=function(M,q,G){M.mutationCb({adds:[{parentId:M.mirror.getId(q),
nextId:null,node:G}],removes:[],texts:[],attributes:[],isAttachIframe:!0});if(M.recordCrossOriginIframes){var K;(K=q.contentWindow)==null||K.addEventListener("message",M.JSC$11820_handleMessage.bind(M))}var n;(n=M.loadListener)==null||n.call(M,q);q.contentDocument&&q.contentDocument.adoptedStyleSheets&&q.contentDocument.adoptedStyleSheets.length>0&&lAj(M.stylesheetManager,q.contentDocument.adoptedStyleSheets,M.mirror.getId(q.contentDocument))};
rqy.prototype.JSC$11820_handleMessage=function(M){if(M.data.type==="rrweb"&&M.origin===M.data.origin&&M.source){var q=this.crossOriginIframeMap.get(M.source);q&&(q=Ou9(this,q,M.data.event))&&this.wrappedEmit(q,M.data.isCheckout)}};
var Ou9=function(M,q,G){switch(G.type){case 2:M.crossOriginIframeMirror.reset(q);M.crossOriginIframeStyleMirror.reset(q);w79(M,G.data.node,q);var K=G.data.node.id;M.crossOriginIframeRootIdMap.set(q,K);CZ2(M,G.data.node,K);return{timestamp:G.timestamp,type:3,data:{source:0,adds:[{parentId:M.mirror.getId(q),nextId:null,node:G.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}};case 6:return G;case 5:return zb(M,G.data.payload,q,["id","parentId","previousId","nextId"]),G;case 3:switch(G.data.source){case 0:return G.data.adds.forEach(function(n){zb(M,
n,q,["parentId","nextId","previousId"]);w79(M,n.node,q);var E=M.crossOriginIframeRootIdMap.get(q);E&&CZ2(M,n.node,E)}),G.data.removes.forEach(function(n){zb(M,n,q,["parentId",
"id"])}),G.data.attributes.forEach(function(n){zb(M,n,q,["id"])}),G.data.texts.forEach(function(n){zb(M,n,q,["id"])}),G;
case 12:case 6:case 1:return G.data.positions.forEach(function(n){zb(M,n,q,["id"])}),G;
case 7:case 2:case 3:case 9:case 5:return zb(M,G.data,q,["id"]),G;case 8:case 13:return zb(M,G.data,q,["id"]),ah$(M,G.data,q,["styleId"]),G;case 10:return G;case 14:return G.data.ranges.forEach(function(n){zb(M,n,q,["start","end"])}),G;
case 15:return zb(M,G.data,q,["id"]),ah$(M,G.data,q,["styleIds"]),(K=G.data.styles)==null||K.forEach(function(n){ah$(M,n,q,["styleId"])}),G}}return!1};
rqy.prototype.replace=function(M,q,G,K){K=_.k(K);for(var n=K.next();!n.done;n=K.next())if(n=n.value,Array.isArray(q[n])||typeof q[n]==="number")Array.isArray(q[n])?q[n]=M.getIds(G,q[n]):q[n]=M.getId(G,q[n]);return q};
var zb=function(M,q,G,K){M.replace(M.crossOriginIframeMirror,q,G,K)},ah$=function(M,q,G,K){M.replace(M.crossOriginIframeStyleMirror,q,G,K)},w79=function(M,q,G){zb(M,q,G,["id",
"rootId"]);"childNodes"in q&&q.childNodes.forEach(function(K){w79(M,K,G)})},CZ2=function(M,q,G){q.type===0||q.rootId||(q.rootId=G);
"childNodes"in q&&q.childNodes.forEach(function(K){CZ2(M,K,G)})};var YgY=/[1-9][0-9]{12}/.test(Date.now().toString())?Date.now:function(){return(new Date).getTime()},o1B=function(){this.id=1;
this.styleIDMap=new WeakMap;this.idStyleMap=new Map};
_.N=o1B.prototype;_.N.getId=function(M){var q;return(q=this.styleIDMap.get(M))!=null?q:-1};
_.N.has=function(M){return this.styleIDMap.has(M)};
_.N.add=function(M,q){if(this.has(M))return this.getId(M);q=q===void 0?this.id++:q;this.styleIDMap.set(M,q);this.idStyleMap.set(q,M);return q};
_.N.getStyle=function(M){return this.idStyleMap.get(M)||null};
_.N.reset=function(){this.styleIDMap=new WeakMap;this.idStyleMap=new Map;this.id=1};
_.N.generateId=function(){return this.id++};var lh9=function(){this.length=0;this.tail=this.head=null};
lh9.prototype.get=function(M){if(M>=this.length)throw Error("Ze");for(var q=this.head,G=0;G<M;G++){var K=void 0;q=((K=q)==null?void 0:K.next)||null}return q};
var X7p=function(M,q){var G={value:q,previous:null,next:null};q.__ln=G;if(q.previousSibling&&"__ln"in q.previousSibling){var K=q.previousSibling.__ln.next;G.next=K;G.previous=q.previousSibling.__ln;q.previousSibling.__ln.next=G;K&&(K.previous=G)}else q.nextSibling&&"__ln"in q.nextSibling&&q.nextSibling.__ln.previous?(K=q.nextSibling.__ln.previous,G.previous=K,G.next=q.nextSibling.__ln,q.nextSibling.__ln.previous=G,K&&(K.next=G)):(M.head&&(M.head.previous=G),G.next=M.head,M.head=G);G.next===null&&
(M.tail=G);M.length++};
lh9.prototype.removeNode=function(M){var q=M.__ln;this.head&&(q.previous?(q.previous.next=q.next)?q.next.previous=q.previous:this.tail=q.previous:(this.head=q.next)?this.head.previous=null:this.tail=null,M.__ln&&delete M.__ln,this.length--)};
var PZ2=function(M,q){return M+"@"+q},yqF=function(){var M=this;
this.locked=this.JSC$11851_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(q){q.forEach(M.JSC$11851_processMutation);M.emit()};
this.emit=function(){if(!M.JSC$11851_frozen&&!M.locked){for(var q=[],G=new Set,K=new lh9,n=function(h){for(var t=-2;t===-2;)t=(h=h&&h.nextSibling)&&M.mirror.getId(h);return t},E=function(h){var t=bd(h);
if(t&&K7D(h)){var O=!1;if(h.nodeType===Node.TEXT_NODE){var a=t.tagName;if(a==="TEXTAREA")return;a==="STYLE"&&M.addedSet.has(t)&&(O=!0)}t=Jh(t)?M.mirror.getId(GjF(h)):M.mirror.getId(t);a=n(h);if(t===-1||a===-1)return X7p(K,h);if(O=S4(h,{doc:M.doc,mirror:M.mirror,blockClass:M.blockClass,blockSelector:M.blockSelector,maskTextClass:M.maskTextClass,maskTextSelector:M.maskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:M.inlineStylesheet,maskInputOptions:M.maskInputOptions,maskTextFn:M.maskTextFn,
maskInputFn:M.maskInputFn,slimDOMOptions:M.slimDOMOptions,dataURLOptions:M.dataURLOptions,recordCanvas:M.recordCanvas,inlineImages:M.inlineImages,onSerialize:function(g){g.nodeName==="IFRAME"&&M.mirror.nodeMetaMap.get(g)&&F7D(M.iframeManager,g);M0F(g,M.mirror)&&HO$(M.stylesheetManager,g);h&&ud(h)&&eED(M.shadowDomManager,ud(h),M.doc)},
onIframeLoad:function(g,D){$ui(M.iframeManager,g,D);g.contentWindow&&g.contentDocument&&sAF(M.shadowDomManager,g.contentWindow.Element,g.contentDocument)},
onStylesheetLoad:function(g,D){MDY(M.stylesheetManager,g,D)},
cssCaptured:O}))q.push({parentId:t,nextId:a,node:O}),G.add(O.id)}};M.mapRemoves.length;)v1p(M.mirror,M.mapRemoves.shift());
for(var p=_.k(M.movedSet),y=p.next();!y.done;y=p.next())y=y.value,NbF(M.removesSubTreeCache,y)&&!M.movedSet.has(bd(y))||E(y);p=_.k(M.addedSet);for(y=p.next();!y.done;y=p.next())y=y.value,pLY(M.droppedSet,y)||NbF(M.removesSubTreeCache,y)?pLY(M.movedSet,y)?E(y):M.droppedSet.add(y):E(y);for(y=null;K.length;){p=null;if(y){var Y=M.mirror.getId(bd(y.value)),A=n(y.value);Y!==-1&&A!==-1&&(p=y)}if(!p)for(y=K.tail;y;){var v=y;y=y.previous;if(v&&(Y=M.mirror.getId(bd(v.value)),n(v.value)!==-1))if(Y!==-1){p=v;
break}else if((Y=bd(v.value))&&Y.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(Y=De(Y),M.mirror.getId(Y)!==-1)){p=v;break}}if(!p){for(;K.head;)K.removeNode(K.head.value);break}y=p.previous;K.removeNode(p.value);E(p.value)}E={texts:M.texts.map(function(h){var t=h.node,O=bd(t);O&&O.tagName==="TEXTAREA"&&M.genTextAreaValueMutation(O);return{id:M.mirror.getId(t),value:h.value}}).filter(function(h){return!G.has(h.id)}).filter(function(h){return M.mirror.has(h.id)}),
attributes:M.attributes.map(function(h){var t=h.attributes;if(typeof t.style==="string"){var O=JSON.stringify(h.styleDiff),a=JSON.stringify(h._unchangedStyles);O.length<t.style.length&&(O+a).split("var(").length===t.style.split("var(").length&&(t.style=h.styleDiff)}return{id:M.mirror.getId(h.node),attributes:t}}).filter(function(h){return!G.has(h.id)}).filter(function(h){return M.mirror.has(h.id)}),
removes:M.removes,adds:q};if(E.texts.length||E.attributes.length||E.removes.length||E.adds.length)M.texts=[],M.attributes=[],M.attributeMap=new WeakMap,M.removes=[],M.addedSet=new Set,M.movedSet=new Set,M.droppedSet=new Set,M.removesSubTreeCache=new Set,M.movedMap={},M.mutationCb(E)}};
this.genTextAreaValueMutation=function(q){var G=M.attributeMap.get(q);G||(G={node:q,attributes:{},styleDiff:{},_unchangedStyles:{}},M.attributes.push(G),M.attributeMap.set(q,G));var K=Array.from(UU(q),function(n){return z_j(n)||""}).join("");
G.attributes.value=YSF({element:q,maskInputOptions:M.maskInputOptions,tagName:q.tagName,type:Aoj(q),value:K,maskInputFn:M.maskInputFn})};
this.JSC$11851_processMutation=function(q){if(!HEY(q.target,M.mirror,M.slimDOMOptions))switch(q.type){case "characterData":var G=z_j(q.target);Vb(q.target,M.blockClass,M.blockSelector,!1)||G===q.oldValue||M.texts.push({value:ZEF(q.target,M.maskTextClass,M.maskTextSelector,!0)&&G?M.maskTextFn?M.maskTextFn(G,FPy(q.target)):G.replace(/[\S]/g,"*"):G,node:q.target});break;case "attributes":G=q.target;var K=q.attributeName,n=q.target.getAttribute(K);if(K==="value"){var E=Aoj(G);n=YSF({element:G,maskInputOptions:M.maskInputOptions,
tagName:G.tagName,type:E,value:n,maskInputFn:M.maskInputFn})}if(Vb(q.target,M.blockClass,M.blockSelector,!1)||n===q.oldValue)break;E=M.attributeMap.get(q.target);if(G.tagName==="IFRAME"&&K==="src"&&!M.keepIframeSrcFn(n))if(G.contentDocument)break;else K="rr_src";E||(E={node:q.target,attributes:{},styleDiff:{},_unchangedStyles:{}},M.attributes.push(E),M.attributeMap.set(q.target,E));K==="type"&&G.tagName==="INPUT"&&(q.oldValue||"").toLowerCase()==="password"&&G.setAttribute("data-rr-is-password","true");
if(!DpF(G.tagName,K))if(E.attributes[K]=IOe(M.doc,G.tagName.toLowerCase(),K.toLowerCase(),n),K==="style"){if(!M.unattachedDoc)try{M.unattachedDoc=document.implementation.createHTMLDocument()}catch(A){M.unattachedDoc=M.doc}K=M.unattachedDoc.createElement("span");q.oldValue&&K.setAttribute("style",q.oldValue);n=_.k(Array.from(G.style));for(var p=n.next();!p.done;p=n.next()){p=p.value;var y=G.style.getPropertyValue(p),Y=G.style.getPropertyPriority(p);y!==K.style.getPropertyValue(p)||Y!==K.style.getPropertyPriority(p)?
E.styleDiff[p]=Y===""?y:[y,Y]:E._unchangedStyles[p]=[y,Y]}K=_.k(Array.from(K.style));for(n=K.next();!n.done;n=K.next())n=n.value,G.style.getPropertyValue(n)===""&&(E.styleDiff[n]=!1)}else K==="open"&&G.tagName==="DIALOG"&&(G.matches("dialog:modal")?E.attributes.rr_open_mode="modal":E.attributes.rr_open_mode="non-modal");break;case "childList":Vb(q.target,M.blockClass,M.blockSelector,!0)||(q.target.tagName==="TEXTAREA"?M.genTextAreaValueMutation(q.target):(q.addedNodes.forEach(function(A){return M.genAdds(A,
q.target)}),q.removedNodes.forEach(function(A){var v=M.mirror.getId(A),h=Jh(q.target)?M.mirror.getId(De(q.target)):M.mirror.getId(q.target);
Vb(q.target,M.blockClass,M.blockSelector,!1)||HEY(A,M.mirror,M.slimDOMOptions)||M.mirror.getId(A)===-1||(M.addedSet.has(A)?(nk$(M.addedSet,A),M.droppedSet.add(A)):M.addedSet.has(q.target)&&v===-1||e_e(q.target,M.mirror)||(M.movedSet.has(A)&&M.movedMap[v+"@"+h]?nk$(M.movedSet,A):(M.removes.push({parentId:h,id:v,isShadow:Jh(q.target)&&Ze(q.target)?!0:void 0}),Ekj(A,M.removesSubTreeCache))),M.mapRemoves.push(A))})))}};
this.genAdds=function(q,G){if(!iul(M.processedNodeManager,q,M)&&!M.addedSet.has(q)&&!M.movedSet.has(q)){if(M.mirror.nodeMetaMap.has(q)){if(HEY(q,M.mirror,M.slimDOMOptions))return;M.movedSet.add(q);var K=null;G&&M.mirror.nodeMetaMap.has(G)&&(K=M.mirror.getId(G));K&&K!==-1&&(M.movedMap[PZ2(M.mirror.getId(q),K)]=!0)}else M.addedSet.add(q),M.droppedSet.delete(q);Vb(q,M.blockClass,M.blockSelector,!1)||(UU(q).forEach(function(n){return M.genAdds(n)}),q&&ud(q)&&UU(ud(q)).forEach(function(n){M.processedNodeManager.add(n,
M);
M.genAdds(n,q)}))}}};
_.N=yqF.prototype;_.N.init=function(M){var q=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(G){q[G]=M[G]})};
_.N.freeze=function(){this.JSC$11851_frozen=!0;this.canvasManager.freeze()};
_.N.unfreeze=function(){this.JSC$11851_frozen=!1;this.canvasManager.unfreeze();this.emit()};
_.N.isFrozen=function(){return this.JSC$11851_frozen};
_.N.lock=function(){this.locked=!0;this.canvasManager.lock()};
_.N.unlock=function(){this.locked=!1;this.canvasManager.unlock();this.emit()};
_.N.reset=function(){this.shadowDomManager.reset();this.canvasManager.reset()};var fY=[],$d=window.Proxy,hEy=["INPUT","TEXTAREA","SELECT"],t0y=new WeakMap;var cDM=new Map,ZOF=function(M,q,G){if(M&&(Jqy(M,q)||typeof M==="object")){q=M.constructor.name;var K=cDM.get(G);K||(K=new Map,cDM.set(G,K));K.has(q)||K.set(q,[]);G=K.get(q);q=G.indexOf(M);q===-1&&(q=G.length,G.push(M));return q}},bOy=function(M,q,G){return M.map(function(K){return ucy(K,q,G)})},Jqy=function(M,q){return!!"WebGLActiveInfo WebGLBuffer WebGLFramebuffer WebGLProgram WebGLRenderbuffer WebGLShader WebGLShaderPrecisionFormat WebGLTexture WebGLUniformLocation WebGLVertexArrayObject WebGLVertexArrayObjectOES".split(" ").filter(function(G){return typeof q[G]===
"function"}).find(function(G){return M instanceof q[G]})};var g18=IH(["\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"]),
rgw=_.Gp(g18.join(""));var RE4=function(M){var q=this;this.pendingCanvasMutations=new Map;this.rafStamps={latestId:0,invokeId:null};this.locked=this.JSC$11893_frozen=!1;this.JSC$11893_processMutation=function(Y,A){if(q.rafStamps.invokeId&&q.rafStamps.latestId!==q.rafStamps.invokeId||!q.rafStamps.invokeId)q.rafStamps.invokeId=q.rafStamps.latestId;q.pendingCanvasMutations.has(Y)||q.pendingCanvasMutations.set(Y,[]);q.pendingCanvasMutations.get(Y).push(A)};
var G=M.sampling===void 0?"all":M.sampling,K=M.win,n=M.blockClass,E=M.blockSelector,p=M.recordCanvas,y=M.dataURLOptions;this.mutationCb=M.mutationCb;this.mirror=M.mirror;p&&G==="all"&&Bl8(this,K,n,E);p&&typeof G==="number"&&QT2(this,G,K,n,E,{dataURLOptions:y})};
_.N=RE4.prototype;_.N.reset=function(){this.pendingCanvasMutations.clear();this.resetObservers&&this.resetObservers()};
_.N.freeze=function(){this.JSC$11893_frozen=!0};
_.N.unfreeze=function(){this.JSC$11893_frozen=!1};
_.N.lock=function(){this.locked=!0};
_.N.unlock=function(){this.locked=!1};
var QT2=function(M,q,G,K,n,E){var p=xuD(G,K,n,!0),y=new Map,Y=OvY(jgi());Y.onmessage=function(a){var g=a.data.id;y.set(g,!1);"base64"in a.data&&(a=a.data,M.mutationCb({id:g,type:su["2D"],commands:[{property:"clearRect",args:[0,0,a.width,a.height]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:a.base64}],type:a.type}]},0,0]}]}))};
var A=1E3/q,v=0,h=function(){var a=[];G.document.querySelectorAll("canvas").forEach(function(g){Vb(g,K,n,!0)||a.push(g)});
return a},t=function(a){v&&a-v<A||(v=a,h().forEach(function(g){var D,J,Z,V,S;
return _.L(function(m){if(m.nextAddress==1){D=M.mirror.getId(g);if(y.get(D)||g.width===0||g.height===0)return m.return();y.set(D,!0);["webgl","webgl2"].includes(g.__context)&&(J=g.getContext(g.__context),((Z=J)==null?void 0:(V=Z.getContextAttributes())==null?void 0:V.preserveDrawingBuffer)===!1&&J.clear(J.COLOR_BUFFER_BIT));return m.yield(createImageBitmap(g),2)}S=m.yieldResult;Y.postMessage({id:D,bitmap:S,width:g.width,height:g.height,dataURLOptions:E.dataURLOptions},[S]);_.gL(m)})}));
O=requestAnimationFrame(t)};
var O=requestAnimationFrame(t);M.resetObservers=function(){p();cancelAnimationFrame(O)}},Bl8=function(M,q,G,K){Ihp(M);
Dnf(M);var n=xuD(q,G,K,!1),E=Uui(M.JSC$11893_processMutation.bind(M),q,G,K),p=muy(M.JSC$11893_processMutation.bind(M),q,G,K);M.resetObservers=function(){n();E();p()}},Dnf=function(M){requestAnimationFrame(function(){return uW9(M)})},Ihp=function(M){var q=function(G){M.rafStamps.latestId=G;
requestAnimationFrame(q)};
requestAnimationFrame(q)},uW9=function(M){M.pendingCanvasMutations.forEach(function(q,G){var K=M.mirror.getId(G);
JDJ(M,G,K)});
requestAnimationFrame(function(){return uW9(M)})},JDJ=function(M,q,G){if(!M.JSC$11893_frozen&&!M.locked){var K=M.pendingCanvasMutations.get(q);
if(K&&G!==-1){var n=K.map(function(E){E=Object.assign({},E);return delete E.type,E});
M.mutationCb({id:G,type:K[0].type,commands:n});M.pendingCanvasMutations.delete(q)}}};var j14=function(){this.nodeMap=new WeakMap;this.active=!1},iul=function(M,q,G){return(M=M.nodeMap.get(q))&&Array.from(M).some(function(K){return K!==G})};
j14.prototype.add=function(M,q){var G=this;this.active||(this.active=!0,requestAnimationFrame(function(){G.nodeMap=new WeakMap;G.active=!1}));
this.nodeMap.set(M,(this.nodeMap.get(M)||new Set).add(q))};
j14.prototype.destroy=function(){};var fAj=function(M){this.shadowDoms=new WeakSet;this.restoreHandlers=[];this.mutationCb=M.mutationCb;this.scrollCb=M.scrollCb;this.bypassOptions=M.bypassOptions;this.mirror=M.mirror;this.init()};
fAj.prototype.init=function(){this.reset();sAF(this,Element,document)};
var eED=function(M,q,G){if(Ze(q)&&!M.shadowDoms.has(q)){M.shadowDoms.add(q);var K=L74(Object.assign({},M.bypassOptions,{doc:G,mutationCb:M.mutationCb,mirror:M.mirror,shadowDomManager:M}),q);M.restoreHandlers.push(function(){return K.disconnect()});
M.restoreHandlers.push(duH(Object.assign({},M.bypassOptions,{scrollCb:M.scrollCb,doc:q,mirror:M.mirror})));setTimeout(function(){q.adoptedStyleSheets&&q.adoptedStyleSheets.length>0&&lAj(M.bypassOptions.stylesheetManager,q.adoptedStyleSheets,M.mirror.getId(De(q)));M.restoreHandlers.push(XLy({mirror:M.mirror,stylesheetManager:M.bypassOptions.stylesheetManager},q))},0)}},sAF=function(M,q,G){M.restoreHandlers.push(Il(q.prototype,"attachShadow",function(K){return function(n){n=K.call(this,n);
var E=ud(this);E&&K7D(this)&&eED(M,E,G);return n}}))};
fAj.prototype.reset=function(){this.restoreHandlers.forEach(function(M){try{M()}catch(q){}});
this.restoreHandlers=[];this.shadowDoms=new WeakSet};var TbD=function(M){this.trackedLinkElements=new WeakSet;this.styleMirror=new o1B;this.mutationCb=M.mutationCb;this.adoptedStyleSheetCb=M.adoptedStyleSheetCb},MDY=function(M,q,G){"_cssText"in G.attributes&&M.mutationCb({adds:[],
removes:[],texts:[],attributes:[{id:G.id,attributes:G.attributes}]});HO$(M,q)},HO$=function(M,q){M.trackedLinkElements.has(q)||M.trackedLinkElements.add(q)},lAj=function(M,q,G){if(q.length!==0){G={id:G,
styleIds:[]};var K=[];q=_.k(q);for(var n=q.next(),E={};!n.done;E={sheet$jscomp$3:void 0},n=q.next())E.sheet$jscomp$3=n.value,n=void 0,M.styleMirror.has(E.sheet$jscomp$3)?n=M.styleMirror.getId(E.sheet$jscomp$3):(n=M.styleMirror.add(E.sheet$jscomp$3),K.push({styleId:n,rules:Array.from(E.sheet$jscomp$3.rules||CSSRule,function(p){return function(y,Y){return{rule:pTi(y,p.sheet$jscomp$3.href),index:Y}}}(E))})),G.styleIds.push(n);
K.length>0&&(G.styles=K);M.adoptedStyleSheetCb(G)}};
TbD.prototype.reset=function(){this.styleMirror.reset();this.trackedLinkElements=new WeakSet};var Gt,Sgs,V0w;try{if(Array.from([1],function(M){return M*2})[0]!==2){var ZuP=document.createElement("iframe");
document.body.appendChild(ZuP);var buB;Array.from=((buB=ZuP.contentWindow)==null?void 0:buB.Array.from)||Array.from;document.body.removeChild(ZuP)}}catch(M){console.debug("Unable to override Array.from",M)}var qh=new Ty;var LH$="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(" "),ysH={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},pBH=null,KHy=null;var Y6s={},WHy=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 wBH={text:1},vry={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var Un2=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,xnB={CONSTANT:{isUnwrappable:function(M){return M instanceof Rw},
unwrap:KKP},JAVASCRIPT:{isUnwrappable:function(M){return M instanceof _.qX},
unwrap:Kv},HTML:{isUnwrappable:function(M){return M instanceof Rv},
unwrap:function(M){return eM(M)}},
RESOURCE_URL:{isUnwrappable:function(M){return M instanceof gW},
unwrap:_.Iv},STRING:{isUnwrappable:function(M){return M instanceof Object},
unwrap:function(M){return String(M)}},
STYLE:{isUnwrappable:function(M){return typeof M==="string"},
unwrap:function(M){return M}},
URL:{isUnwrappable:function(M){return ZC(M)},
unwrap:_.by}},zW8={CONSTANT:CtY,JAVASCRIPT:CtY,HTML:function(M){M=M instanceof Rv?M:Ht(String(M).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return eM(M)},
RESOURCE_URL:CtY,STRING:String,STYLE:CtY,URL:function(M,q){M=Un2.test(M)?M:void 0;return M===void 0?q:M}};var IDi=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,aDw=/[\t\n\f\r ]+/,lDH=/[\t\n\f\r ,]+/g,Pty=function(M,q,G){return G},Nh={},mn2=function(){var M=function(){var K={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",K):K}(),q=M.createHTML(""),G=M.createScript("");
M=M.createScriptURL("");return{INNOCUOUS_STRING:q,INNOCUOUS_SCRIPT:G,INNOCUOUS_URL:M}}(),Eu=mn2.INNOCUOUS_STRING,QAw=mn2.INNOCUOUS_SCRIPT,BNF=mn2.INNOCUOUS_URL;var Svv=function(M){var q=Dqy(M);return function(G,K,n,E){return E?q(E,K,n,G):Eu}}({reportHandler:function(M,q){if(M)try{throw Error(q);
}catch(G){_.T6(G)}},
safeTypesBridge:function(M,q,G){var K=xnB[q];return K.isUnwrappable(M)&&(K=K.unwrap(M,G),K!==G)?K:(0,zW8[q])(String(M),G)},
allowedIdentifierPrefixes:[""]});if(Dy!==void 0)throw Error("af");Dy=Svv;if(Dy!==Svv)throw Error("bf");kD("Injectable",[]);var EHi=kD("Inject",[["token",void 0]]),kdw=kD("Optional",[]);kD("Injectable",[]);var pWu=kD("Self",[]),yQF=kD("SkipSelf",[]);kD("Host",[]);var Tld={},rDv=function(){};
rDv.prototype.resolve=function(){throw Error("df");};
rDv.prototype.addProvider=function(){throw Error("df");};var KtH=Function;var jTp=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,V$B=function(){this._reflect=window.Reflect};
_.N=V$B.prototype;_.N.factory=function(M){return function(){return new (Function.prototype.bind.apply(M,[null].concat(_.Ui(_.rW.apply(0,arguments)))))}};
_.N._zipTypesAndAnnotations=function(M,q){var G=typeof M==="undefined"?Array(q.length):Array(M.length);for(var K=0;K<G.length;K++)G[K]=typeof M==="undefined"?[]:M[K]!=Object?[M[K]]:[],q&&JsY(q[K])&&(G[K]=G[K].concat(q[K]));return G};
_.N._ownParameters=function(M,q){if(jTp.exec(M.toString()))return null;if(M.parameters&&M.parameters!==q.parameters)return M.parameters;var G=M.ctorParameters;return G&&G!==q.ctorParameters?(q=typeof G==="function"?G():G,M=q.map(function(K){return K&&K.type}),q=q.map(function(K){return K&&b$y(K.decorators)}),this._zipTypesAndAnnotations(M,q)):JsY(this._reflect)&&JsY(this._reflect.getOwnMetadata)&&(q=this._reflect.getOwnMetadata("parameters",M),(G=this._reflect.getOwnMetadata("design:paramtypes",M))||
q)?this._zipTypesAndAnnotations(G,q):Array(M.length).fill(void 0)};
_.N.parameters=function(M){if(!M.prototype)return[];var q=Object.getPrototypeOf(M.prototype).constructor;(M=this._ownParameters(M,q))||q===Object||(M=this.parameters(q));return M||[]};
_.N._ownAnnotations=function(M,q){if(M.annotations&&M.annotations!==q.annotations)return M=M.annotations,typeof M==="function"&&M.annotations&&(M=M.annotations),M;if(M.decorators&&M.decorators!==q.decorators)return b$y(M.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",M)};
_.N.annotations=function(M){var q=Object.getPrototypeOf(M.prototype).constructor;M=this._ownAnnotations(M,q)||[];return(q!==Object?this.annotations(q):[]).concat(M)};
_.N._ownPropMetadata=function(M,q){if(M.propMetadata&&M.propMetadata!==q.propMetadata)return M=M.propMetadata,typeof M==="function"&&M.propMetadata&&(M=M.propMetadata),M;if(M.propDecorators&&M.propDecorators!==q.propDecorators){var G=M.propDecorators,K={};Object.keys(G).forEach(function(n){K[n]=b$y(G[n])});
return K}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",M)};
_.N.propMetadata=function(M){var q=Object.getPrototypeOf(M.prototype).constructor,G={};if(q!==Object){var K=this.propMetadata(q);Object.keys(K).forEach(function(E){G[E]=K[E]})}var n=this._ownPropMetadata(M,q);
n&&Object.keys(n).forEach(function(E){var p=[];G.hasOwnProperty(E)&&p.push.apply(p,_.Ui(G[E]));p.push.apply(p,_.Ui(n[E]));G[E]=p});
return G};
_.N.getter=function(M){return function(q){return q[M]}};
_.N.setter=function(M){return function(q,G){return q[M]=G}};
_.N.method=function(M){return function(q,G){if(!q[M])throw Error("ef`"+M);return q[M].apply(q,G)}};var RW9=function(){};var fhv=function(M){this.reflectionCapabilities=M};
_.l(fhv,RW9);_.N=fhv.prototype;_.N.factory=function(M){return this.reflectionCapabilities.factory(M)};
_.N.parameters=function(M){return this.reflectionCapabilities.parameters(M)};
_.N.annotations=function(M){return this.reflectionCapabilities.annotations(M)};
_.N.propMetadata=function(M){return this.reflectionCapabilities.propMetadata(M)};
_.N.getter=function(M){return this.reflectionCapabilities.getter(M)};
_.N.setter=function(M){return this.reflectionCapabilities.setter(M)};
_.N.method=function(M){return this.reflectionCapabilities.method(M)};var VDu=new fhv(new V$B);var mx=function(M,q){this.token=M;this.id=q;if(M===void 0||M===null)throw Error("kf");};
_.Yd.Object.defineProperties(mx.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return px(this.token)}}});
_.Yd.Object.defineProperties(mx,{JSC$11949_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return Lx.JSC$11953_numberOfKeys}}});
var F62=function(){this._allKeys=new Map};
F62.prototype.get=function(M){if(M instanceof mx)return M;if(this._allKeys.has(M))return this._allKeys.get(M);var q=new mx(M,mx.JSC$11949_numberOfKeys);this._allKeys.set(M,q);return q};
_.Yd.Object.defineProperties(F62.prototype,{JSC$11953_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var Lx=new F62;var Lte=function(M,q,G){this.key=M;this.optional=q;this.visibility=G},fDe=function(M){return new Lte(M,!1,null)},H$i=[],seF=function(M,q,G){this.key=M;
this.resolvedFactories=q;this.multiProvider=G},eIj=function(M,q,G,K){this.factory=M;
this.dependencies=q;this.providerClass=G;this.providerValue=K};var Sv={},Tb=function(M,q){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=q===void 0?null:q;M=_.k(M);for(q=M.next();!q.done;q=M.next())this.addProvider(q.value)};
_.N=Tb.prototype;_.N.addProvider=function(M){this.keyIdToIndex.set(M.key.id,this.keyIds.length);this.providers.push(M);this.keyIds.push(M.key.id);this.objs.push(Sv)};
_.N.resolve=function(M,q){q=q===void 0?Tld:q;return this._getByKey(Lx.get(yW(M)),null,q)};
_.N._new=function(M){if(this.constructedKeyIds[M.key.id])throw TNy(this,M.key);this.constructedKeyIds[M.key.id]=!0;return this._instantiateProvider(M)};
_.N._instantiateProvider=function(M){if(M.multiProvider){for(var q=Array(M.resolvedFactories.length),G=0;G<M.resolvedFactories.length;++G)q[G]=this._instantiate(M,M.resolvedFactories[G]);return q}return this._instantiate(M,M.resolvedFactories[0])};
_.N._instantiate=function(M,q){var G=this,K=q.factory;try{var n=q.dependencies.map(function(p){return G._getByReflectiveDependency(p)})}catch(p){throw p.addKey&&p.addKey(this,M.key),p;
}try{var E=K.apply(null,_.Ui(n))}catch(p){throw rse(this,p,M.key);}return E};
_.N._getByReflectiveDependency=function(M){return this._getByKey(M.key,M.visibility,M.optional?null:Tld)};
_.N._getByKey=function(M,q,G){return M===Hul?this:q instanceof pWu?this._getByKeySelf(M,G):this._getByKeyDefault(M,G,q)};
_.N._getObjByKeyId=function(M){for(var q=0;q<this.keyIds.length;q++)if(this.keyIds[q]===M)return this.objs[q]===Sv&&(this.objs[q]=this._new(this.providers[q])),this.objs[q];return Sv};
_.N._throwOrNull=function(M,q){if(q!==Tld)return q;throw S6w(this,M);};
_.N._getByKeySelf=function(M,q){var G=this._getObjByKeyId(M.id);return G!==Sv?G:this._throwOrNull(M,q)};
_.N._getByKeyDefault=function(M,q,G){for(var K=G=G instanceof yQF?this.parent:this;G instanceof Tb;){var n=G._getObjByKeyId(M.id);if(n!==Sv)return n;G=G.parent}n=void 0;if(G!==null)try{var E=G.resolve(M.token,q);if(E!==Sv)return E}catch(p){n=p}if(!(K instanceof Tb&&Wt$(M.token))){if(n)throw n;return this._throwOrNull(M,q)}for(E=K;E.parent instanceof Tb;)E=E.parent;E.addProvider(M9F({provide:M.token,useClass:M.token}));return E.resolve(M.token,q)};
_.N.toString=function(){return this.displayName};
_.Yd.Object.defineProperties(Tb.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Y5y(this,function(M){return' "'+M.key.displayName+'" '}).join(", ")+"])"}}});
var Hul=Lx.get(yW(rDv));(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 eWM=window.XRegExp;var $nl=-1,s5J=function(M){addEventListener("pageshow",function(q){q.persisted&&($nl=q.timeStamp,M(q))},!0)};var qBd=function(M,q,G){var K=MWM,n,E;return function(p){if(q.value>=0&&(p||G)){var y;if((E=q.value-((y=n)!=null?y:0))||n===void 0)n=q.value,q.delta=E,p=q.value,q.rating=p>K[1]?"poor":p>K[0]?"needs-improvement":"good",M(q)}}};var G$B=function(M){requestAnimationFrame(function(){return requestAnimationFrame(function(){return M()})})};var KE2=function(){var M=performance.getEntriesByType("navigation")[0];if(M&&M.responseStart>0&&M.responseStart<performance.now())return M};var nEM=function(){var M,q;return(q=(M=KE2())==null?void 0:M.activationStart)!=null?q:0};var rQ=-1,EEv=new Set,NB2=function(M){if(document.visibilityState==="hidden"){if(M.type==="visibilitychange")for(var q=_.k(EEv),G=q.next();!G.done;G=q.next())G=G.value,G();isFinite(rQ)||(rQ=M.type==="visibilitychange"?M.timeStamp:0,removeEventListener("prerenderingchange",NB2,!0))}},k$l=function(){if(rQ<0){var M=nEM(),q,G;
rQ=(G=document.prerendering?void 0:(q=globalThis.performance.getEntriesByType("visibility-state").filter(function(K){return K.name==="hidden"&&K.startTime>M})[0])==null?void 0:q.startTime)!=null?G:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
addEventListener("visibilitychange",NB2,!0);addEventListener("prerenderingchange",NB2,!0);s5J(function(){setTimeout(function(){rQ=document.visibilityState!=="hidden"||document.prerendering?Infinity:0})})}return{get firstHiddenTime(){return rQ},
onHidden:function(K){EEv.add(K)}}};var ppp=function(){var M=M===void 0?-1:M;var q=KE2(),G="navigate";$nl>=0?G="back-forward-cache":q&&(document.prerendering||nEM()>0?G="prerender":document.wasDiscarded?G="restore":q.type&&(G=q.type.replace(/_/g,"-")));return{name:"LCP",value:M,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:G}};var dOY=new WeakMap;var yc$=function(M){var q=q===void 0?{}:q;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var G=new PerformanceObserver(function(K){Promise.resolve().then(function(){M(K.getEntries())})});
G.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},q));return G}}catch(K){}};var LE9=function(M){var q=!1;return function(){q||(M(),q=!0)}};var YBx=function(M){document.prerendering?addEventListener("prerenderingchange",function(){return M()},!0):M()};var WEx=function(M){var q=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?M():(M=LE9(M),addEventListener("visibilitychange",M,{once:!0,capture:!0}),q(function(){M();removeEventListener("visibilitychange",M,{capture:!0})}))};var AQ4=function(){};
AQ4.prototype._processEntry=function(M){var q;(q=this._onBeforeProcessingEntry)==null||q.call(this,M)};var MWM=[2500,4E3],EVF=function(M){var q=q===void 0?{}:q;YBx(function(){var G=k$l(),K=ppp(),n=vHF(q),E=function(t){q.reportAllChanges||(t=t.slice(-1));t=_.k(t);for(var O=t.next();!O.done;O=t.next())O=O.value,n._processEntry(O),O.startTime<G.firstHiddenTime&&(K.value=Math.max(O.startTime-nEM(),0),K.entries=[O],y())},p=yc$(E);
if(p){var y=qBd(M,K,q.reportAllChanges);for(var Y=LE9(function(){E(p.takeRecords());p.disconnect();y(!0)}),A=function(t){t.isTrusted&&(WEx(Y),removeEventListener(t.type,A,{capture:!0}))},v=_.k(["keydown",
"click","visibilitychange"]),h=v.next();!h.done;h=v.next())addEventListener(h.value,A,{capture:!0});s5J(function(t){K=ppp();y=qBd(M,K,q.reportAllChanges);G$B(function(){K.value=performance.now()-t.timeStamp;y(!0)})})}})};var Acv;var deS;_.f=function(){return deS!==void 0?deS:deS=document.createElement("template")};
document.head.appendChild(_.f().content);var vE2;_.h_({_template:function(){if(vE2!==void 0)return vE2;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
var q=M.content,G=q.insertBefore;Acv===void 0&&(Acv=document.createElement("template"));var K=Acv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return vE2=M},
is:"tp-yt-app-toolbar"});var hK9;var tWM;_.jv=function(){};
_.jv=_.h_({_template:function(){if(tWM!==void 0)return tWM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;hK9===void 0&&(hK9=document.createElement("template"));var K=hK9;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return tWM=M},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.jv.instance||(_.jv.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(M){this._text===M&&(M+="\u00a0");this._text="";this.async(function(){this._text=M},this.timeout)},
_onIronAnnounce:function(M){M.detail&&M.detail.text&&this.announce(M.detail.text)}});
_.jv.instance=null;_.jv.requestAvailability=function(){_.jv.instance||(_.jv.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.jv.instance):document.addEventListener("load",function(){document.body.appendChild(_.jv.instance)})};var Oex;var wp8;/*

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

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 VN,iex,ccv;VN=Element.prototype;iex=VN.matches||VN.matchesSelector||VN.mozMatchesSelector||VN.msMatchesSelector||VN.oMatchesSelector||VN.webkitMatchesSelector;ccv=function(){};
_.BBP=function(M){var q=gEM,G=[];return q._collectTabbableNodes(M,G)?q._sortByTabIndex(G):G};
_.N=ccv.prototype;_.N.isFocusable=function(M){return iex.call(M,"input, select, textarea, button, object")?iex.call(M,":not([disabled])"):iex.call(M,"a[href], area[href], iframe, [tabindex], [contentEditable]")};
_.N._normalizedTabIndex=function(M){return this.isFocusable(M)?(M=M.getAttribute("tabindex")||0,Number(M)):-1};
_.N._collectTabbableNodes=function(M,q){if(M.nodeType!==Node.ELEMENT_NODE||!this._isVisible(M))return!1;var G=this._normalizedTabIndex(M),K=G>0;G>=0&&q.push(M);if(M.localName==="content"||M.localName==="slot")G=_.YD(M).getDistributedNodes();else{var n;G=((n=_.YD(M).shadowRoot)!=null?n:_.YD(M.root||M)).children}for(M=0;M<G.length;M++)K=this._collectTabbableNodes(G[M],q)||K;return K};
_.N._isVisible=function(M){var q=M.style;return q.visibility!=="hidden"&&q.display!=="none"?(q=window.getComputedStyle(M),q.visibility!=="hidden"&&q.display!=="none"):!1};
_.N._sortByTabIndex=function(M){var q=M.length;if(q<2)return M;var G=Math.ceil(q/2);q=this._sortByTabIndex(M.slice(0,G));M=this._sortByTabIndex(M.slice(G));return this._mergeSortByTabIndex(q,M)};
_.N._mergeSortByTabIndex=function(M,q){for(var G=[];M.length>0&&q.length>0;)this._hasLowerTabOrder(M[0],q[0])?G.push(q.shift()):G.push(M.shift());return G.concat(M,q)};
_.N._hasLowerTabOrder=function(M,q){M=Math.max(M.tabIndex,0);q=Math.max(q.tabIndex,0);return M===0||q===0?q>M:M>q};
var gEM=new ccv;var Q59;var IlB;_.h_({_template:function(){if(IlB!==void 0)return IlB;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Q59===void 0&&(Q59=document.createElement("template"));var K=Q59;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return IlB=M},
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&&_.YD(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.YD(this.parentNode).removeChild(this)},
_onTransitionend:function(M){M&&M.target===this&&this.complete()},
_openedChanged:function(M){M?this.prepare():(M=window.getComputedStyle(this),M.transitionDuration!=="0s"&&M.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 R3=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;r_(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)};
R3.prototype._bringOverlayAtIndexToFront=function(M){var q=this._overlays[M];if(q){var G=this._overlays.length-1,K=this._overlays[G];K&&this._shouldBeBehindOverlay(q,K)&&G--;if(!(M>=G)){K=Math.max(this._getZ(_.Del(this)),this._minimumZ);for(this._getZ(q)<=K&&this._applyOverlayZ(q,K);M<G;)this._overlays[M]=this._overlays[M+1],M++;this._overlays[G]=q}}};
R3.prototype.addOverlay=function(M){var q=this._overlays.indexOf(M);if(q>=0)this._bringOverlayAtIndexToFront(q);else{q=this._overlays.length;var G=this._overlays[q-1],K=Math.max(this._getZ(G),this._minimumZ),n=this._getZ(M);G&&this._shouldBeBehindOverlay(M,G)&&(this._applyOverlayZ(G,K),q--,K=Math.max(this._getZ(this._overlays[q-1]),this._minimumZ));n<=K&&this._applyOverlayZ(M,K);this._overlays.splice(q,0,M)}this.trackBackdrop()};
R3.prototype.removeOverlay=function(M){M=this._overlays.indexOf(M);M!==-1&&(this._overlays.splice(M,1),this.trackBackdrop())};
_.Del=function(M){return M._overlays[M._overlays.length-1]};
_.N=R3.prototype;_.N.trackBackdrop=function(){var M=this._overlayWithBackdrop();if(M||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(M)-1,this.backdropElement.opened=!!M,this.backdropElement.prepare()};
_.N._overlayWithBackdrop=function(){for(var M=this._overlays.length-1;M>=0;M--)if(this._overlays[M].withBackdrop)return this._overlays[M]};
_.N._getZ=function(M){var q=this._minimumZ;if(M){var G,K,n=Number(((G=M.hostElement)!=null?G:M).style.zIndex||window.getComputedStyle((K=M.hostElement)!=null?K:M).zIndex);n===n&&(q=n)}return q};
_.N._setZ=function(M,q){var G;((G=M.hostElement)!=null?G:M).style.zIndex=q};
_.N._applyOverlayZ=function(M,q){this._setZ(M,q+2)};
_.N._overlayInPath=function(M){M=M||[];for(var q=0;q<M.length;q++){var G=void 0;if(((G=M[q].polymerController)!=null?G:M[q])._manager===this)return M[q]}};
_.N._onCaptureClick=function(M){var q=this._overlays.length-1;if(q!==-1)for(var G=_.YD(M).path,K,n;(K=this._overlays[q])&&this._overlayInPath(G)!==((n=K.hostElement)!=null?n:K);)if(K._onCaptureClick(M),K.allowClickThrough)q--;else break};
_.N._onCaptureFocus=function(M){var q=_.Del(this);q&&q._onCaptureFocus(M)};
_.N._onCaptureKeyDown=function(M){var q=_.Del(this);q&&(_.X9.keyboardEventMatchesKeys(M,"esc")?q._onCaptureEsc(M):_.X9.keyboardEventMatchesKeys(M,"tab")&&q._onCaptureTab(M))};
_.N._shouldBeBehindOverlay=function(M,q){return!M.alwaysOnTop&&q.alwaysOnTop&&!q.contains(M)};
_.Yd.Object.defineProperties(R3.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 M=document.activeElement;M&&M instanceof Element!==!1||(M=document.body);for(;M.root&&_.YD(M.root).activeElement;)M=_.YD(M.root).activeElement;return M}}});
_.fh=new R3;var hpy=0,t9i=0,Okw=null,wWY=[],WF=["wheel","mousewheel","DOMMouseScroll"],CMH;_.w("web_no_lock_on_touchstart_killswitch")&&(WF.push("touchstart"),WF.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;_.F9={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:_.fh},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var M;return this._focusedChild||_.YD((M=this.hostElement)!=null?M:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var M;return _.BBP((M=this.hostElement)!=null?M: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 M;this._observer=_.YD((M=this.hostElement)!=null?M:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var M;_.YD((M=this.hostElement)!=null?M:this).unobserveNodes(this._observer)}this._observer=null;for(var q in this.__rafs)this.__rafs[q]!==null&&cancelAnimationFrame(this.__rafs[q]);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(M){this.fire("iron-overlay-canceled",M,{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 M;((M=this.hostElement)!=null?M:this).style.outline="none";var q;((q=this.hostElement)!=null?q:this).style.display="none"}},
_openedChanged:function(M){if(M){var q;((q=this.hostElement)!=null?q:this).removeAttribute("aria-hidden")}else{var G;((G=this.hostElement)!=null?G:this).setAttribute("aria-hidden","true")}this.isAttached&&(this.__isAnimating=!0,this.__deraf("__openedChanged",this.__openedChanged))},
_canceledChanged:function(){this.closingReason=this.closingReason||{};this.closingReason.canceled=this.canceled},
_withBackdropChanged:function(){var M;if(this.withBackdrop&&!((M=this.hostElement)!=null?M:this).hasAttribute("tabindex")){var q;((q=this.hostElement)!=null?q:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var G;((G=this.hostElement)!=null?G:this).removeAttribute("tabindex");this.__shouldRemoveTabIndex=!1}this.opened&&this.isAttached&&this._manager.trackBackdrop()},
_prepareRenderOpened:function(){this.__restoreFocusNode=this._manager.deepActiveElement;this._preparePositioning();this.refit();this._finishPositioning();this.noAutoFocus&&document.activeElement===this._focusNode&&(this._focusNode.blur(),this.__restoreFocusNode.focus())},
_renderOpened:function(){this._finishRenderOpened()},
_renderClosed:function(){this._finishRenderClosed()},
_finishRenderOpened:function(){this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-opened")},
_finishRenderClosed:function(){var M;((M=this.hostElement)!=null?M:this).style.display="none";var q;((q=this.hostElement)!=null?q:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var M,q;((M=this.hostElement)!=null?M:this).style.transition=((q=this.hostElement)!=null?q:this).style.webkitTransition="none";var G,K;((G=this.hostElement)!=null?G:this).style.transform=((K=this.hostElement)!=null?K:this).style.webkitTransform="none";var n;((n=this.hostElement)!=null?n:this).style.display=""},
_finishPositioning:function(){var M;((M=this.hostElement)!=null?M:this).style.display="none";this.scrollTop=this.scrollTop;var q,G;((q=this.hostElement)!=null?q:this).style.transition=((G=this.hostElement)!=null?G:this).style.webkitTransition="";var K,n;((K=this.hostElement)!=null?K:this).style.transform=((n=this.hostElement)!=null?n:this).style.webkitTransform="";var E;((E=this.hostElement)!=null?E:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var M=this._manager.deepActiveElement,q;if(!(q=M===document.body))a:{for(;M;M=M.assignedSlot||M.parentNode||M.host)if(M===this){q=!0;break a}q=!1}q&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(M){this.noCancelOnOutsideClick||this.cancel(M)},
_onCaptureFocus:function(M){if(this.withBackdrop){var q=_.YD(M).path;q.indexOf(this)===-1?(M.stopPropagation(),this._applyFocus()):this._focusedChild=q[0]}},
_onCaptureEsc:function(M){this.noCancelOnEscKey||this.cancel(M)},
_onCaptureTab:function(M){if(this.withBackdrop){this.__ensureFirstLastFocusables();var q=M.shiftKey,G=q?this.__firstFocusableNode:this.__lastFocusableNode;q=q?this.__lastFocusableNode:this.__firstFocusableNode;if(G===q)G=!0;else{var K=this._manager.deepActiveElement;G=K===G||K===this}G&&(M.preventDefault(),this._focusedChild=q,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 M=this._focusableNodes;this.__firstFocusableNode=M[0];this.__lastFocusableNode=M[M.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(M,q){var G=this.__rafs;G[M]!==null&&cancelAnimationFrame(G[M]);G[M]=requestAnimationFrame(function(){G[M]=null;q.call(this)}.bind(this))},
__updateScrollObservers:function(M,q,G){M&&q&&this.__isValidScrollAction(G)?(G==="lock"&&(this.__saveScrollPosition(),_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this)>=0||(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.length===0&&_._lockScrollInteractions$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(),
_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.push(this),CMH=_._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()):(M=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),M!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(M,1),CMH=_._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($I)for(var M=this;M;)M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&M.host&&this.__rootNodes.push(M),M=M.host||M.assignedSlot||M.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(q){q.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(M){M.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(M){return M==="lock"||M==="refit"||M==="cancel"},
__onCaptureScroll:function(M){if(!(this.__isAnimating||_.YD(M).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(M)}},
__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)}};
_.Hn=[Po2,_.uz,_.F9];_.h_({_template:function(){if(ll9!==void 0)return ll9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;oEd===void 0&&(oEd=document.createElement("template"));var K=oEd;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return ll9=M},
is:"tp-yt-iron-dropdown",behaviors:[_.Pn,_.X9,_.Hn,R2M],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 M=_.YD(this.$.content).getDistributedNodes(),q=0,G=M.length;q<G;q++)if(M[q].nodeType===Node.ELEMENT_NODE)return M[q]},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(),_.F9._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.F9._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.F9._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var M=this.containedElement,q=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),G=0;G<q.length;G++)q[G].node=M;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(M){this._readied&&(M?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var M=this.focusTarget||this.containedElement;M&&this.opened&&!this.noAutoFocus?M.focus():_.F9._applyFocus.apply(this,arguments)}});var uZl;var Jcl;/*

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 ZeM=new _.Bn({type:"iconset"});
_.h_({_template:function(){if(Jcl!==void 0)return Jcl;var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;uZl===void 0&&(uZl=document.createElement("template"));
var K=uZl;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return Jcl=M},
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(M){M=(M||"").split(":");this._iconName=M.pop();this._iconsetName=M.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&&_.YD(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=ZeM.byKey(this._iconsetName)){var M=this._iconset.applyIcon(this,this._iconName,this.theme);M&&M.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,_.YD(this.root).appendChild(this._img)}});var be9;var UeB;_.h_({_template:function(){if(UeB!==void 0)return UeB;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
var q=M.content,G=q.insertBefore;be9===void 0&&(be9=document.createElement("template"));var K=be9;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return UeB=M},
is:"tp-yt-iron-input",behaviors:[_.I3],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(){_.jv.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.YD(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.YD(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 M=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":M=/[0-9.,e-]/}return M},_bindValueChanged:function(M,q){q&&(M===void 0?q.value=null:M!==q.value&&(this.inputElement.value=M),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:M}))},
_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(M){var q=M.keyCode==19||M.keyCode==20||M.keyCode==45||M.keyCode==46||M.keyCode==144||M.keyCode==145||M.keyCode>32&&M.keyCode<41||M.keyCode>111&&M.keyCode<124;return!(M.keyCode==8||M.keyCode==9||M.keyCode==13||M.keyCode==27)&&!(M.charCode==0&&q)},
_onKeypress:function(M){if(this.allowedPattern||this.inputElement.type==="number"){var q=this._patternRegExp;if(q&&!(M.metaKey||M.ctrlKey||M.altKey)){this._patternAlreadyChecked=!0;var G=String.fromCharCode(M.charCode);this._isPrintable(M)&&!q.test(G)&&(M.preventDefault(),this._announceInvalidCharacter("Invalid character "+G+" not entered."))}}},
_checkPatternValidity:function(){var M=this._patternRegExp;if(!M)return!0;for(var q=0;q<this.inputElement.value.length;q++)if(!M.test(this.inputElement.value[q]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var M=this.inputElement.checkValidity();M&&(this.required&&this.bindValue===""?M=!1:this.hasValidator()&&(M=_.I3.validate.call(this,this.bindValue)));this.invalid=!M;this.fire("iron-input-validate");return M},
_announceInvalidCharacter:function(M){this.fire("iron-announce",{text:M})},
_computeValue:function(M){return M}});var xe9;var zKl;var meJ=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),SB$=meJ&&meJ[1]>=8;
_.h_({_template:function(){if(zKl!==void 0)return zKl;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-iron-list--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_iron_list.tp.yt.iron.list.css.js--\x3e<array-selector id="selector" items="{{items}}" selected="{{selectedItems}}" selected-item="{{selectedItem}}" class="style-scope tp-yt-iron-list"></array-selector>\n\n<div id="items" class="style-scope tp-yt-iron-list">\n  <slot class="style-scope tp-yt-iron-list"></slot>\n</div>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;xe9===void 0&&(xe9=document.createElement("template"));var K=xe9;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return zKl=M},
is:"tp-yt-iron-list",properties:{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},selectedAs:{type:String,value:"selected"},grid:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_gridChanged"},selectionEnabled:{type:Boolean,value:!1},selectedItem:{type:Object,notify:!0},selectedItems:{type:Object,notify:!0},multiSelection:{type:Boolean,value:!1},scrollOffset:{type:Number,value:0}},observers:["_itemsChanged(items.*)","_selectionEnabledChanged(selectionEnabled)",
"_multiSelectionChanged(multiSelection)","_setOverflow(scrollTarget, scrollOffset)"],behaviors:[ePD,_.uz,_.VhJ,cjS],_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 _.YD(_.YD(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var M=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,M-this._physicalCount)},set _virtualStart(M){M=this._clamp(M,0,this._maxVirtualStart);this.grid&&(M-=M%this._itemsPerRow);this._virtualStartVal=M},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(M){M%=this._physicalCount;M<0&&(M=this._physicalCount+M);this.grid&&(M-=M%this._itemsPerRow);this._physicalStartVal=M},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(M){this._physicalCountVal=M},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 M=this._firstVisibleIndexVal;if(M==null){var q=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
M=this._iterateItems(function(G,K){q+=this._getPhysicalSizeIncrement(G);if(q>this._scrollPosition)return this.grid?K-K%this._itemsPerRow:K;if(this.grid&&this._virtualCount-1===K)return K-K%this._itemsPerRow})||0}return M},
get lastVisibleIndex(){var M=this._lastVisibleIndexVal;if(M==null){if(this.grid)M=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var q=this._physicalTop+this._scrollOffset;this._iterateItems(function(G,K){q<this._scrollBottom&&(M=K);q+=this._getPhysicalSizeIncrement(G)})}this._lastVisibleIndexVal=M}return M},
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,_.Wb);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(M){this.style.webkitOverflowScrolling=M===this?"touch":"";this.style.overflowY=M===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Wb)},
updateViewportBoundaries:function(){var M=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(M["padding-top"],10);this._isRTL=M.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var M=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),q=M-this._scrollPosition,G=q>=0;this._scrollPosition=M;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(q)>this._physicalSize&&this._physicalSize>0?(q-=this._scrollOffset,G=Math.round(q/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=G,this._physicalStart+=G,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(M=this._getReusables(G),G?(this._physicalTop=M.physicalTop,this._virtualStart+=M.indexes.length,this._physicalStart+=M.indexes.length):(this._virtualStart=this._virtualStart-M.indexes.length,this._physicalStart=this._physicalStart-M.indexes.length),this._update(M.indexes,G?null:M.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Fn))},
_getReusables:function(M){var q=[],G=this._hiddenContentSize*this._ratio,K=this._virtualStart,n=this._virtualEnd,E=this._physicalCount,p=this._physicalTop+this._scrollOffset;var y=this._physicalBottom+this._scrollOffset;var Y=this._scrollPosition,A=this._scrollBottom;if(M){var v=this._physicalStart;y=Y-p}else v=this._physicalEnd,y-=A;for(;;){var h=this._getPhysicalSizeIncrement(v);y-=h;if(q.length>=E||y<=G)break;if(M){if(n+q.length+1>=this._virtualCount)break;if(p+h>=Y-this._scrollOffset)break;q.push(v);
p+=h;v=(v+1)%E}else{if(K-q.length<=0)break;if(p+this._physicalSize-h<=A)break;q.push(v);p-=h;v=v===0?E-1:v-1}}return{indexes:q,physicalTop:p-this._scrollOffset}},
_update:function(M,q){if(!(M&&M.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(M);this._updateMetrics(M);if(q)for(;q.length;)M=q.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(M);this._positionItems();this._updateScrollerSize()}},
_createPool:function(M){this._ensureTemplatized();var q,G=Array(M);for(q=0;q<M;q++){var K=this.stamp(null);G[q]=K.root.querySelector("*");this._itemsParent.appendChild(K.root)}return G},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(M){M=this._clamp(this._physicalCount+M,3,this._virtualCount-this._virtualStart);M=this._convertIndexToCompleteRow(M);if(this.grid){var q=M%this._itemsPerRow;q&&M-q<=this._physicalCount&&(M+=this._itemsPerRow);M-=q}M-=this._physicalCount;q=Math.round(this._physicalCount*.5);if(!(M<0)){if(M>0){q=window.performance.now();[].push.apply(this._physicalItems,this._createPool(M));for(var G=0;G<M;G++)this._physicalSizes.push(0);this._physicalCount+=M;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=M);this._update();this._templateCost=(window.performance.now()-q)/M;q=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||q===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,q)),y_9):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,q),Fn))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var M=this._getReusables(!0);this._physicalTop=M.physicalTop;this._virtualStart+=M.indexes.length;this._physicalStart+=M.indexes.length;this._update(M.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 M={__key__:!0};M[this.as]=!0;M[this.indexAs]=!0;M[this.selectedAs]=!0;M.tabIndex=!0;this._instanceProps=M;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(M,q){typeof q!=="undefined"&&(this.notifyResize(),_.dF(),M&&this._updateGridMetrics())},
_itemsChanged:function(M){if(M.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,
_.Wb);else if(M.path==="items.splices"){this._adjustVirtualIndex(M.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(M.value.indexSplices.some(function(G){return G.addedCount>0||G.removed.length>0})){var q=this._getActiveElement();
this.contains(q)&&q.blur()}M=M.value.indexSplices.some(function(G){return G.index+G.addedCount>=this._virtualStart&&G.index<=this._virtualEnd},this);
this._isClientFull()&&!M||this._debounce("_render",this._render,_.Wb)}else M.path!=="items.length"&&this._forwardItemPath(M.path,M.value)},
_forwardItemPath:function(M,q){M=M.slice(6);var G=M.indexOf(".");G===-1&&(G=M.length);var K,n=this.modelForElement(this._offscreenFocusedItem),E=parseInt(M.substring(0,G),10);if(K=this._isIndexRendered(E)){var p=this._getPhysicalIndex(E);var y=this.modelForElement(this._physicalItems[p])}else n&&(y=n);y&&y[this.indexAs]===E&&(M=M.substring(G+1),M=this.as+(M?"."+M:""),y._setPendingPropertyOrPath(M,q,!1,!0),y._flushProperties&&y._flushProperties(),K&&(this._updateMetrics([p]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(M){M.forEach(function(q){q.removed.forEach(this._removeItem,this);q.index<this._virtualStart&&(q=Math.max(q.addedCount-q.removed.length,q.index-this._virtualStart),this._virtualStart+=q,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=q))},this)},
_removeItem:function(M){this.$.selector.deselect(M);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===M&&this._removeFocusedItem()},
_iterateItems:function(M,q){var G,K;if(arguments.length===2&&q)for(K=0;K<q.length;K++){var n=q[K];var E=this._computeVidx(n);if((G=M.call(this,n,E))!=null)return G}else{n=this._physicalStart;for(E=this._virtualStart;n<this._physicalCount;n++,E++)if((G=M.call(this,n,E))!=null)return G;for(n=0;n<this._physicalStart;n++,E++)if((G=M.call(this,n,E))!=null)return G}},
_computeVidx:function(M){return M>=this._physicalStart?this._virtualStart+(M-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+M},
_assignModels:function(M){this._iterateItems(function(q,G){var K=this._physicalItems[q],n=this.items&&this.items[G];if(n!=null){var E=this.modelForElement(K);E.__key__=null;this._forwardProperty(E,this.as,n);this._forwardProperty(E,this.selectedAs,this.$.selector.isSelected(n));this._forwardProperty(E,this.indexAs,G);this._forwardProperty(E,"tabIndex",this._focusedVirtualIndex===G?0:-1);this._physicalIndexForKey[E.__key__]=q;E._flushProperties&&E._flushProperties(!0);K.removeAttribute("hidden")}else K.setAttribute("hidden",
"")},M)},
_updateMetrics:function(M){_.dF();var q=0,G=0,K=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems(function(E){G+=this._physicalSizes[E];this._physicalSizes[E]=this._physicalItems[E].offsetHeight;q+=this._physicalSizes[E];this._physicalAverageCount+=this._physicalSizes[E]?1:0},M);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(G=this._itemsPerRow===1?G:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+q-G,this._itemsPerRow=1);this._physicalAverageCount!==K&&(this._physicalAverage=Math.round((n*K+q)/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 M=this._physicalTop;if(this.grid){var q=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(G,K){var n=Math.floor(K%this._itemsPerRow*this._itemWidth+q);this._isRTL&&(n*=-1);this.translate3d(n+"px",M+"px",0,this._physicalItems[G]);this._shouldRenderNextRow(K)&&(M+=this._rowHeight)})}else this._iterateItems(function(G){this.translate3d(0,M+"px",0,this._physicalItems[G]);
M+=this._physicalSizes[G]})},
_getPhysicalSizeIncrement:function(M){return this.grid?this._computeVidx(M)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[M]},
_shouldRenderNextRow:function(M){return M%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var M=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(M!==0){this._physicalTop=this._physicalTop-M;var q=this._scrollPosition;!SB$&&q>0&&this._resetScrollPosition(q-M)}},
_resetScrollPosition:function(M){this.scrollTarget&&M>=0&&(this._scrollPosition=this._scrollTop=M)},
_updateScrollerSize:function(M){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((M=(M=(M=M||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(M){return this.scrollToIndex(this.items.indexOf(M))},
scrollToIndex:function(M){if(!(typeof M!=="number"||M<0||M>this.items.length-1)&&(_.dF(),this._physicalCount!==0)){M=this._clamp(M,0,this._virtualCount-1);if(!this._isIndexRendered(M)||M>=this._maxVirtualStart)this._virtualStart=this.grid?M-this._itemsPerRow*2:M-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var q=this._physicalStart,G=this._virtualStart,K=0,n=this._hiddenContentSize;G<M&&
K<=n;)K+=this._getPhysicalSizeIncrement(q),q=(q+1)%this._physicalCount,G++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+K);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)},_.Wb)},
selectItem:function(M){return this.selectIndex(this.items.indexOf(M))},
selectIndex:function(M){if(!(M<0||M>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(M)){var q=this.modelForElement(this._physicalItems[this._getPhysicalIndex(M)]);q&&(q[this.selectedAs]=!0);this.updateSizeForIndex(M)}this.$.selector.selectIndex(M)}},
deselectItem:function(M){return this.deselectIndex(this.items.indexOf(M))},
deselectIndex:function(M){M<0||M>=this._virtualCount||(this._isIndexRendered(M)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(M)])[this.selectedAs]=!1,this.updateSizeForIndex(M)),this.$.selector.deselectIndex(M))},
toggleSelectionForItem:function(M){return this.toggleSelectionForIndex(this.items.indexOf(M))},
toggleSelectionForIndex:function(M){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(M):this.$.selector.isSelected(this.items[M]))?this.deselectIndex(M):this.selectIndex(M)},
clearSelection:function(){this._iterateItems(function(M){this.modelForElement(this._physicalItems[M])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(M){(M?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(M){var q=this.modelForElement(M.target);if(q){var G=_.YD(M).path[0];M=this._getActiveElement();var K=this._physicalItems[this._getPhysicalIndex(q[this.indexAs])];if(G.localName!=="input"&&G.localName!=="button"&&G.localName!=="select"){G=q.tabIndex;q.tabIndex=-100;var n=M?M.tabIndex:-1;q.tabIndex=G;M&&K!==M&&K.contains(M)&&n!==-100||this.toggleSelectionForItem(q[this.as])}}},
_multiSelectionChanged:function(M){this.clearSelection();this.$.selector.multi=M},
updateSizeForItem:function(M){return this.updateSizeForIndex(this.items.indexOf(M))},
updateSizeForIndex:function(M){if(!this._isIndexRendered(M))return null;this._updateMetrics([this._getPhysicalIndex(M)]);this._positionItems();return null},
_manageFocus:function(){var M=this._focusedVirtualIndex;M>=0&&M<this._virtualCount?this._isIndexRendered(M)?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(M){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(M/this._itemsPerRow)*this._itemsPerRow:M},
_isIndexRendered:function(M){return M>=this._virtualStart&&M<=this._virtualEnd},
_isIndexVisible:function(M){return M>=this.firstVisibleIndex&&M<=this.lastVisibleIndex},
_getPhysicalIndex:function(M){return(this._physicalStart+(M-this._virtualStart))%this._physicalCount},
focusItem:function(M){this._focusPhysicalItem(M)},
_focusPhysicalItem:function(M){if(!(M<0||M>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(M)||this.scrollToIndex(M);var q=this._physicalItems[this._getPhysicalIndex(M)],G=this.modelForElement(q),K;G.tabIndex=-100;q.tabIndex===-100&&(K=q);K||(K=_.YD(q).querySelector('[tabindex="-100"]'));G.tabIndex=0;this._focusedVirtualIndex=M;K&&K.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 M=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var q=this.stamp(null);this._focusBackfillItem=q.root.querySelector("*");this._itemsParent.appendChild(q.root)}this._offscreenFocusedItem=this._physicalItems[M];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[M]=this._focusBackfillItem;this._focusedPhysicalIndex=M;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var M=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),q=this._physicalItems[M];if(q){var G=this.modelForElement(q),K=this.modelForElement(this._offscreenFocusedItem);G[this.as]===K[this.as]?(this._focusBackfillItem=q,G.tabIndex=-1,this._physicalItems[M]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(M){M=this.modelForElement(M.target);var q=this.modelForElement(this._focusedItem),G=this._offscreenFocusedItem!==null,K=this._focusedVirtualIndex;M&&(q===M?this._isIndexVisible(K)||this.scrollToIndex(K):(this._restoreFocusedItem(),q&&(q.tabIndex=-1),M.tabIndex=0,this._focusedVirtualIndex=K=M[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(K),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],G&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(M){switch(M.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&M.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&&M.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(M)}},
_clamp:function(M,q,G){return Math.min(G,Math.max(q,M))},
_debounce:function(M,q,G){this._debouncers=this._debouncers||{};this._debouncers[M]=_.yd(this._debouncers[M],G,q.bind(this));_.Lk(this._debouncers[M])},
_forwardProperty:function(M,q,G){M._setPendingProperty(q,G)},
_forwardHostPropV2:function(M,q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&this.modelForElement(G).forwardHostProp(M,q)},this)},
_notifyInstancePropV2:function(M,q,G){l$w(this.as,q)&&(M=M[this.indexAs],q==this.as&&(this.items[M]=G),this.notifyPath(iR(this.as,"items."+M,q),G))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(M,q,G){q.indexOf(this.as+".")===0&&this.notifyPath("items."+M.__key__+"."+q.slice(this.as.length+1),G)},
_forwardParentPath:function(M,q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&this.modelForElement(G).notifyPath(M,q)},this)},
_forwardParentProp:function(M,q){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(G){G&&(this.modelForElement(G)[M]=q)},this)},
_getActiveElement:function(){var M=this._itemsParent.node.domHost;return _.YD(M?M.root:document).activeElement},
_scrollTargetChanged:function(M,q){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(q)if(M==="document")this.scrollTarget=this._doc;else if(typeof M==="string"){var G,K;this.scrollTarget=(q=(K=(G=this.domHost)==null?void 0:G.polymerController)!=null?K:this.domHost)&&q.$?q.$[M]:_.YD(this.ownerDocument).querySelector("#"+M)}else this._isValidScrollTarget()&&(this._oldScrollTarget=M,this._toggleScrollListener(this._shouldHaveListener,M))}});var TBS;var rc$;var j5x=function(M,q,G,K){M-=G;q-=K;return Math.sqrt(M*M+q*q)},VWS=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
acy.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var oHy=function(M){M.maxRadius=0;M.mouseDownStart=0;M.mouseUpStart=0;M.xStart=0;M.yStart=0;M.xEnd=0;M.yEnd=0;M.containerMetrics=new acy(M.element)};
lc$.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var M=VWS()-this.mouseDownStart;this.mouseUpStart&&(M-=this.mouseUpElapsed);return M},get mouseUpElapsed(){return this.mouseUpStart?VWS()-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 M=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(M*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-M/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 M=this.radius/(this.containerMetrics.size/2);var q=this.xNow-this.containerMetrics.width/2;var G=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+q+"px, "+G+"px)";this.waveContainer.style.transform="translate3d("+q+"px, "+G+"px, 0)";this.wave.style.webkitTransform="scale("+M+","+M+")";this.wave.style.transform="scale3d("+M+","+M+",1)"},
downAction:function(M){var q=this.containerMetrics.width/2,G=this.containerMetrics.height/2;oHy(this);this.mouseDownStart=VWS();this.center?(this.xStart=q,this.yStart=G):(this.xStart=M?M.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=M?M.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=q,this.yEnd=G);M=this.containerMetrics;q=this.xStart;G=this.yStart;this.maxRadius=Math.max(j5x(q,G,0,0),j5x(q,G,
M.width,0),j5x(q,G,0,M.height),j5x(q,G,M.width,M.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=VWS())},
remove:function(){_.YD(_.YD(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.h_({_template:function(){if(rc$!==void 0)return rc$;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;TBS===void 0&&(TBS=document.createElement("template"));var K=TBS;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return rc$=M},
is:"tp-yt-paper-ripple",behaviors:[_.X9],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(){_.YD(this).parentNode.nodeType==11?this.keyEventTarget=_.YD(this).getOwnerRoot().host:this.keyEventTarget=_.YD(this).parentNode;var M=this.keyEventTarget;this.listen(M,"up","uiUpAction");this.listen(M,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(M){M.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var M=0;M<this.ripples.length;++M)if(!this.ripples[M].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(M){this.noink||this.downAction(M)},
downAction:function(M){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(M),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(M){this.noink||this.upAction(M)},
upAction:function(M){this.holdDown||(this.ripples.forEach(function(q){q.upAction(M)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var M=0;M<this.ripples.length;++M){var q=this.ripples[M];q.isOpacityFullyDecayed&&!q.isRestingAtMaxRadius&&this.removeRipple(q)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var M=new lc$(this);_.YD(this.$.waves).appendChild(M.waveContainer);this.$.background.style.backgroundColor=M.color;this.ripples.push(M);this._setAnimating(!0);return M},
removeRipple:function(M){var q=this.ripples.indexOf(M);q<0||(this.ripples.splice(q,1),M.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var M;for(M=0;M<this.ripples.length;++M){var q=this.ripples[M];q.draw();this.$.background.style.opacity=q.outerOpacity;q.isOpacityFullyDecayed&&!q.isRestingAtMaxRadius&&this.removeRipple(q)}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(M,q){q!==void 0&&(M?this.downAction():this.upAction())}});var ev={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(M){iz._downHandler.call(this,M);this.pressed&&this.ensureRipple(M)},
ensureRipple:function(M){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var q=this._rippleContainer||this.root;q&&_.YD(q).appendChild(this._ripple);if(M){q=_.YD(this._rippleContainer||this);var G=_.YD(M).rootTarget;q.deepContains(G)&&this._ripple.uiDownAction(M)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(M){this.hasRipple()&&(this._ripple.noink=M)}};var RKM={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 M=1;this.disabled?M=0:this.active||this.pressed?M=4:this.receivedFocusFromKeyboard&&(M=3);this._setElevation(M)},
_computeKeyboardClass:function(M){this.toggleClass("keyboard-focus",M)},
_spaceKeyDownHandler:function(M){iz._spaceKeyDownHandler.call(this,M);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(M){iz._spaceKeyUpHandler.call(this,M);this.hasRipple()&&this._ripple.uiUpAction()}},flB=[JM$,
_.Pn,ev,RKM];_.FEv={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(M){M&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=M)},
_createRipple:function(){var M=ev._createRipple();M.id="ink";M.setAttribute("center","");M.classList.add("circle");return M}};
_.HeJ=[JM$,_.Pn,ev,_.FEv];_.eKf=[_.HeJ,UKS,{_checkedChanged:function(){bsP._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){ev._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var $eJ;var si9;var M8M=function(){};
_.N=M8M.prototype;_.N.registered=function(){};
_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._tapHandler=function(){};
_.N._focusChanged=function(){};
_.N._detectKeyboardFocus=function(){};
_.N._userActivate=function(){};
_.N._upHandler=function(){};
_.N._asyncClick=function(){};
_.N._pressedChanged=function(){};
_.N._ariaActiveAttributeChanged=function(){};
_.N._activeChanged=function(){};
_.N._controlStateChanged=function(){};
_.N._changedButtonState=function(){};
_.N._focusBlurHandler=function(){};
_.N._disabledChanged=function(){};
_.N._changedControlState=function(){};
_.N._buttonStateChanged=function(){};
_.N._downHandler=function(){};
_.N.ensureRipple=function(){};
_.N.getRipple=function(){};
_.N.hasRipple=function(){};
_.N._createRipple=function(){};
_.N._noinkChanged=function(){};
_.N._computeKeyboardClass=function(){};
_.N._spaceKeyDownHandler=function(){};
_.N._spaceKeyUpHandler=function(){};
_.N._setPressed=function(){};
_.N._setPointerDown=function(){};
_.N._setReceivedFocusFromKeyboard=function(){};
_.N._setFocused=function(){};
_.N._setElevation=function(){};
M8M=_.h_({_template:function(){if(si9!==void 0)return si9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
var q=M.content,G=q.insertBefore;$eJ===void 0&&($eJ=document.createElement("template"));var K=$eJ;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return si9=M},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[flB],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?RKM._calculateElevation.apply(this):this._setElevation(0)}});var qSM;var GZS;var KPM={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(M){_.w("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(M)},
_onDialogClickWrapped:function(M){_.w("dialog_behavior_no_tap_killswitch")||this._onDialogClick(M)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(M,q){q&&(M?(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(M){if(M){var q;((q=this.hostElement)!=null?q:this).setAttribute("aria-modal","true")}else{var G;((G=this.hostElement)!=null?G:this).removeAttribute("aria-modal")}},
_updateClosingReasonConfirmed:function(M){this.closingReason=this.closingReason||{};this.closingReason.confirmed=M},
_onDialogClick:function(M){for(var q=_.YD(M).path,G=0,K,n=q.indexOf((K=this.hostElement)!=null?K:this);G<n;G++)if(K=q[G],K.hasAttribute&&(K.hasAttribute("dialog-dismiss")||K.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(K.hasAttribute("dialog-confirm"));this.close();M.stopPropagation();break}}},nu8=[_.Hn,
KPM];var EuP=document.createElement("template");_.X(EuP,'<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(EuP.content);var N6M=document.createElement("template");_.X(N6M,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(N6M.content);_.h_({_template:function(){if(GZS!==void 0)return GZS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
var q=M.content,G=q.insertBefore;qSM===void 0&&(qSM=document.createElement("template"));var K=qSM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return GZS=M},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[nu8,R2M],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 kZB;var pT2;_.h_({_template:function(){if(pT2!==void 0)return pT2;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;kZB===void 0&&(kZB=document.createElement("template"));var K=kZB;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return pT2=M},
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 M,q,G;if(((M=window.ShadyDOM)==null?void 0:M.noPatch)!==!0&&((q=window.ShadyDOM)==null?void 0:q.noPatch)!=="on-demand"||((G=this.__shady_parentNode)==null?void 0:G.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(KPM)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var yoP=_.DQ(['<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>']),LPv=_.DsB(yoP);LPv.setAttribute("style","display: none;");document.head.appendChild(LPv.content);var YSl;var WPI;var AoP;var dpB;_.h_({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[Jt],configure:function(M){var q=M.node,G=q.getBoundingClientRect().height;return this._effect=new KeyframeEffect(q,[{height:G/2+"px"},{height:G+"px"}],this.timingFromConfig(M))}});
_.h_({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[Jt],configure:function(M){var q=M.node,G=q.getBoundingClientRect().width;return this._effect=new KeyframeEffect(q,[{width:G/2+"px"},{width:G+"px"}],this.timingFromConfig(M))}});
_.h_({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[Jt],configure:function(M){var q=M.node,G=q.getBoundingClientRect().width;return this._effect=new KeyframeEffect(q,[{width:G+"px"},{width:G-G/20+"px"}],this.timingFromConfig(M))}});
_.h_({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[Jt],configure:function(M){var q=M.node,G=q.getBoundingClientRect().height;this.setPrefixedProperty(q,"transformOrigin","0 0");return this._effect=new KeyframeEffect(q,[{height:G+"px",transform:"translateY(0)"},{height:G/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(M))}});var $t={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},vuf=function(){};
_.N=vuf.prototype;_.N.registered=function(){};
_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._focusBlurHandler=function(){};
_.N._changedControlState=function(){};
_.N._setFocused=function(){};
vuf=_.h_({_template:function(){if(dpB!==void 0)return dpB;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;AoP===void 0&&(AoP=document.createElement("template"));var K=AoP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return dpB=M},
is:"tp-yt-paper-menu-button",behaviors:[_.X9,_.Pn],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:$t.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:$t.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:$t.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 M=_.YD(this.$.content).getDistributedNodes(),q=0,G=M.length;q<G;q++)if(M[q].nodeType===Node.ELEMENT_NODE)return M[q]},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(M,q){M?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):q!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(M){_.Pn._disabledChanged.apply(this,arguments);M&&this.opened&&this.close()},
__onIronOverlayCanceled:function(M){var q=this.$.trigger;_.YD(M.detail).path.indexOf(q)>-1&&M.preventDefault()}});
Object.keys($t).forEach(function(M){vuf[M]=$t[M]});var h_S=_.cn.IronButtonState,t82=(0,_.lM)(HTMLElement);
_.h_({_template:function(){if(WPI!==void 0)return WPI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;YSl===void 0&&(YSl=document.createElement("template"));var K=YSl;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return WPI=M},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[h_S,_.Pn,ev,_.gQ,_.I3],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(M){var q=(0,_.Ik)(this);q.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:M});q.shadowRoot.appendChild(M);return t82.prototype._attachDom.call(this,M)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var M=this.contentElement;M&&M.selectedItem&&this._setSelectedItem(M.selectedItem)},
get contentElement(){for(var M=_.YD(this.$.content).getDistributedNodes(),q=0,G=M.length;q<G;q++)if(M[q].nodeType===Node.ELEMENT_NODE)return M[q]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(M){this._setSelectedItem(M.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(M){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)===this&&this.open()},
_selectedItemChanged:function(M){var q="";M?q=M.label||M.getAttribute("label")||M.textContent.trim():q="";this.value=q;this._setSelectedItemLabel(q)},
_computeMenuVerticalOffset:function(M,q){return q?q:M?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var M=this.opened?"true":"false",q=this.contentElement;q&&q.setAttribute("aria-expanded",M)},
_computeLabelClass:function(M,q,G){var K="label";if(M)G&&(K+=" label-is-hidden");else if(G||q)K+=" label-is-floating";return K},
_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 OE9;var wTS;_.h_({is:"tp-yt-paper-icon-button",_template:function(){if(wTS!==void 0)return wTS;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;OE9===void 0&&(OE9=document.createElement("template"));var K=OE9;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return wTS=M},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.HeJ],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(M,q){var G=this.getAttribute("aria-label");G&&q!=G||this.setAttribute("aria-label",M)}});var C28;var aO8;_.s7=[JM$,_.Pn,{hostAttributes:{role:"option",tabindex:"0"}}];_.h_({_template:function(){if(aO8!==void 0)return aO8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;C28===void 0&&(C28=document.createElement("template"));var K=C28;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return aO8=M},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.s7]});var ou$;var lOf;var XT$={attached:function(){this.fire("addon-attached")},
update:function(){}};var P2P=1,iEI=1,cov=1,guI=[_.Pn,_.X9,{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();!Gd&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(M,q){M?M=M+" "+q:M=q;return M},
_onAddonAttached:function(M){M=_.YD(M).rootTarget;if(M.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,M.id);else{var q="paper-input-add-on-"+iEI++;M.id=q;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,q)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(M){_.Pn._focusBlurHandler.call(this,M);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var M=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",M);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(M){try{var q=this.inputElement.selectionStart;this.value=M;this.inputElement.selectionStart=q;this.inputElement.selectionEnd=q}catch(G){this.value=M}},
_computeAlwaysFloatLabel:function(M,q){return q||M},
_updateAriaLabelledBy:function(){var M=_.YD(this.root).querySelector("label");if(M){if(M.id)var q=M.id;else q="paper-input-label-"+P2P++,M.id=q;this._ariaLabelledBy=q}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+cov++)},
_onChange:function(M){this.shadowRoot&&this.fire(M.type,{sourceEvent:M},{node:this,bubbles:M.bubbles,cancelable:M.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var M=document.activeElement;M instanceof HTMLElement&&M!==document.body&&M!==document.documentElement||this._focusableElement.focus()}}}];var B62;var Qi$;_.h_({_template:function(){if(Qi$!==void 0)return Qi$;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;B62===void 0&&(B62=document.createElement("template"));var K=B62;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return Qi$=M},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[XT$],properties:{_charCounterStr:{type:String,value:"0"}},update:function(M){if(M.inputElement){M.value=M.value||"";var q=M.value.toString().length.toString();M.inputElement.hasAttribute("maxlength")&&(q+="/"+M.inputElement.getAttribute("maxlength"));this._charCounterStr=q}}});var IOM;var Dpl;_.h_({_template:function(){if(Dpl!==void 0)return Dpl;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;IOM===void 0&&(IOM=document.createElement("template"));var K=IOM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return Dpl=M},
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 ak(this.attrForValue)},get _inputElement(){return _.YD(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(M){this._addons||(this._addons=[]);M=M.target;this._addons.indexOf(M)===-1&&(this._addons.push(M),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(M){this._handleValueAndAutoValidate(M.target)},
_onValueChanged:function(M){var q=M.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,q.value===void 0||q.value===""))return;this._handleValueAndAutoValidate(M.target)},
_handleValue:function(M){var q=this._inputElementValue;q||q===0||M.type==="number"&&!M.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:M,value:q,invalid:this.invalid})},
_handleValueAndAutoValidate:function(M){this.autoValidate&&M&&(this.invalid=!(M.validate?M.validate(this._inputElementValue):M.checkValidity()));this._handleValue(M)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(M){if(this._addons)for(var q,G=0;q=this._addons[G];G++)q.update(M)},
_computeInputContentClass:function(M,q,G,K,n){var E="input-content";M?(n&&(E+=" label-is-hidden"),K&&!this.noUnfloatedLabelError&&(E+=" is-invalid")):(M=this.querySelector("label"),q||n?(E+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",K?E+=" is-invalid":G&&(E+=" label-is-highlighted")):(M&&(this.$.labelAndInputContainer.style.position="relative"),K&&!this.noUnfloatedLabelError&&(E+=" is-invalid")));G&&(E+=" focused");return E},
_computeUnderlineClass:function(M,q){var G="underline";q?G+=" is-invalid":M&&(G+=" is-highlighted");return G},
_computeAddOnContentClass:function(M,q){var G="add-on-content";q?G+=" is-invalid":M&&(G+=" is-highlighted");return G}});var ulI;var Jo8;_.h_({_template:function(){if(Jo8!==void 0)return Jo8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;ulI===void 0&&(ulI=document.createElement("template"));var K=ulI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return Jo8=M},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[XT$],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(M){this._setInvalid(M.invalid)}});_.h_({is:"tp-yt-paper-input",_template:function(){if(lOf!==void 0)return lOf;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;ou$===void 0&&(ou$=document.createElement("template"));var K=ou$;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return lOf=M},
behaviors:[guI,_.gQ],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 ZE8;var bE8;_.h_({_template:function(){if(bE8!==void 0)return bE8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=
M.content,G=q.insertBefore;ZE8===void 0&&(ZE8=document.createElement("template"));var K=ZE8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return bE8=M},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.s7]});var Upv;var xpM;_.h_({_template:function(){if(xpM!==void 0)return xpM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
var q=M.content,G=q.insertBefore;Upv===void 0&&(Upv=document.createElement("template"));var K=Upv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return xpM=M},
is:"tp-yt-paper-item-body"});var z_P;var mpB;var SS2=function(){};
_.N=SS2.prototype;_.N.indexOf=function(){};
_.N.selectPrevious=function(){};
_.N.selectNext=function(){};
_.N.selectIndex=function(){};
_.N.forceSynchronousItemUpdate=function(){};
_.N._checkFallback=function(){};
_.N._addListener=function(){};
_.N._removeListener=function(){};
_.N._activateEventChanged=function(){};
_.N._updateItems=function(){};
_.N._selectSelected=function(){};
_.N._filterItem=function(){};
_.N._valueToItem=function(){};
_.N._valueToIndex=function(){};
_.N._indexToValue=function(){};
_.N._valueForItem=function(){};
_.N._observeItems=function(){};
_.N._itemActivate=function(){};
_.N.multiChanged=function(){};
_.N._updateAttrForSelected=function(){};
_.N._updateSelected=function(){};
_.N._selectMulti=function(){};
_.N._selectionChange=function(){};
_.N._toggleSelected=function(){};
_.N._valuesToItems=function(){};
_.N.registered=function(){};
_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N.select=function(){};
_.N._resetTabindices=function(){};
_.N._updateMultiselectable=function(){};
_.N._focusWithKeyboardEvent=function(){};
_.N._clearSearchText=function(){};
_.N._focusPrevious=function(){};
_.N._focusNext=function(){};
_.N._applySelection=function(){};
_.N._focusedItemChanged=function(){};
_.N._onIronItemsChanged=function(){};
_.N._onShiftTabDown=function(){};
_.N._onFocus=function(){};
_.N._onUpKey=function(){};
_.N._onDownKey=function(){};
_.N._onEscKey=function(){};
_.N._onKeydown=function(){};
_.N._activateHandler=function(){};
_.N._disabledChanged=function(){};
_.N._setSelectedItem=function(){};
_.N._setItems=function(){};
_.N._setSelectedItems=function(){};
_.N._setFocusedItem=function(){};
SS2=_.h_({_template:function(){if(mpB!==void 0)return mpB;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
var q=M.content,G=q.insertBefore;z_P===void 0&&(z_P=document.createElement("template"));var K=z_P;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return mpB=M},
is:"tp-yt-paper-listbox",behaviors:[SF8],hostAttributes:{role:"listbox"}});var T68;var ro9;var jiJ={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(M,q){return[M||q?"active":"",q?"cooldown":""].join(" ")},
__activeChanged:function(M,q){this.__setAriaHidden(!M);this.__coolingDown=!M&&q},
__altChanged:function(M){this.setAttribute("aria-label",M||"loading")},
__setAriaHidden:function(M){M?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.h_({_template:function(){if(ro9!==void 0)return ro9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;T68===void 0&&(T68=document.createElement("template"));var K=T68;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return ro9=M},
is:"tp-yt-paper-spinner",behaviors:[jiJ]});var V8p;var R_f;_.h_({_template:function(){if(R_f!==void 0)return R_f;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;V8p===void 0&&(V8p=document.createElement("template"));var K=V8p;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return R_f=M},
is:"tp-yt-paper-spinner-lite",behaviors:[jiJ]});var fO$;var FPv;_.h_({_template:function(){if(FPv!==void 0)return FPv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;fO$===void 0&&(fO$=document.createElement("template"));var K=fO$;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return FPv=M},
is:"tp-yt-paper-tab",behaviors:[_.Pn,_.cn.IronButtonState,ev],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 M=_.YD(this).parentNode;return!!M&&!!M.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(M){if(this.link){var q=this.queryEffectiveChildren("a");q&&M.target!==q&&q.click()}}});var HEB;var e_M;var $pS=_.DQ(['<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>']),s19=_.DsB($pS);document.head.appendChild(s19.content);_.h_({_template:function(){if(e_M!==void 0)return e_M;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:tp-yt-paper-tabs--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,third_party.javascript.youtube_components.tp_yt_paper_tabs.tp.yt.paper.tabs.css.js--\x3e<tp-yt-paper-icon-button id="left" icon="paper-tabs:chevron-left" alt="[[altPrevious]]" class$="[[_computeScrollButtonClass(_leftHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onLeftScrollButtonDown" tabindex="-1" disabled="[[_leftHidden]]"></tp-yt-paper-icon-button>\n\n<div id="tabsContainer" on-track="_scroll" on-down="_down" class="style-scope tp-yt-paper-tabs">\n  <div id="tabsContent" style-target="content" class$="[[_computeTabsContentClass(scrollable, fitContainer)]] style-scope tp-yt-paper-tabs">\n    <div id="selectionBar" style-target="selection-bar" class$="[[_computeSelectionBarClass(noBar, alignBottom)]] style-scope tp-yt-paper-tabs" on-transitionend="_onBarTransitionEnd"></div>\n    <slot class="style-scope tp-yt-paper-tabs"></slot>\n  </div>\n</div>\n\n<tp-yt-paper-icon-button id="right" icon="paper-tabs:chevron-right" alt="[[altNext]]" class$="[[_computeScrollButtonClass(_rightHidden, scrollable, hideScrollButtons, removeIdleScrollButtons)]] style-scope tp-yt-paper-tabs" on-up="_onScrollButtonUp" on-down="_onRightScrollButtonDown" tabindex="-1" disabled="[[_rightHidden]]"></tp-yt-paper-icon-button>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;HEB===void 0&&(HEB=document.createElement("template"));var K=HEB;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return e_M=M},
is:"tp-yt-paper-tabs",behaviors:[_.uz,_.rM8],properties:{noink:{type:Boolean,value:!1,observer:"_noinkChanged"},noBar:{type:Boolean,value:!1},noSlide:{type:Boolean,value:!1},scrollable:{type:Boolean,value:!1},fitContainer:{type:Boolean,value:!1},disableDrag:{type:Boolean,value:!1},hideScrollButtons:{type:Boolean,value:!1},removeIdleScrollButtons:{type:Boolean,value:!1},alignBottom:{type:Boolean,value:!1},selectable:{type:String,value:"tp-yt-paper-tab"},autoselect:{type:Boolean,value:!1},autoselectDelay:{type:Number,
value:0},altNext:{type:String,value:""},altPrevious:{type:String,value:""},_step:{type:Number,value:10},_holdDelay:{type:Number,value:1},_leftHidden:{type:Boolean,value:!1},_rightHidden:{type:Boolean,value:!1},_previousTab:{type:Object}},hostAttributes:{role:"tablist"},listeners:{"iron-resize":"_onTabSizingChanged","iron-items-changed":"_onTabSizingChanged","iron-select":"_onIronSelect","iron-deselect":"_onIronDeselect"},keyBindings:{"left:keyup right:keyup":"_onArrowKeyup"},created:function(){this._holdJob=
null;this._pendingActivationTimeout=this._pendingActivationItem=void 0;this._bindDelayedActivationHandler=this._delayedActivationHandler.bind(this);this.addEventListener("blur",this._onBlurCapture.bind(this),!0);this._rightHidden=this._leftHidden=this.hideScrollButtons},
ready:function(){this.setScrollDirection("y",this.$.tabsContainer)},
detached:function(){this._cancelPendingActivation()},
_noinkChanged:function(M){_.YD(this).querySelectorAll("tp-yt-paper-tab").forEach(M?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(M){M.setAttribute("noink","")},
_removeNoinkAttribute:function(M){M.removeAttribute("noink")},
_computeScrollButtonClass:function(M,q,G,K){return!q||G?"hidden":M?K?"hidden":"not-visible":""},
_computeTabsContentClass:function(M,q){var G="tabs-content";M&&(G+=" scrollable");if(!M||q)G+=" fit-container";return G},
_computeSelectionBarClass:function(M,q){var G="selection-bar";M?G+=" hidden":q&&(G+=" align-bottom");return G},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(M){return""+M},
_onIronSelect:function(M){this._tabChanged(M.detail.item,this._previousTab);this._previousTab=M.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();_.D4._activateHandler.apply(this,arguments)},
_scheduleActivation:function(M,q){this._pendingActivationItem=M;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,q)},
_delayedActivationHandler:function(){var M=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;M.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(M){M.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(M,q){this.scrollable&&this._affectScroll(q&&-q.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(M){this.$.tabsContainer.scrollLeft+=M;M=this.$.tabsContainer.scrollLeft;this._leftHidden=M===0||this.hideScrollButtons;this._rightHidden=M===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(M,q){if(M){var G=this.$.tabsContent.getBoundingClientRect(),K=G.width,n=M.getBoundingClientRect();G=n.left-G.left;this._pos={width:this._calcPercent(n.width,K),left:this._calcPercent(G,K)};if(this.noSlide||q==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var E=q.getBoundingClientRect();q=this.items.indexOf(q);M=this.items.indexOf(M);this.$.selectionBar.classList.add("expand");
M=q<M;this._isRTL&&(M=!M);M?this._positionBar(this._calcPercent(n.left+n.width-E.left,K)-5,this._left):this._positionBar(this._calcPercent(E.left+E.width-n.left,K)-5,this._calcPercent(G,K)+5);this.scrollable&&this._scrollToSelectedIfNeeded(n.width,G)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(M,q){q-=this.$.tabsContainer.scrollLeft;q<0?this.$.tabsContainer.scrollLeft+=q:(q+=M-this.$.tabsContainer.offsetWidth,q>0&&(this.$.tabsContainer.scrollLeft+=q))},
_calcPercent:function(M,q){return 100*M/q},
_positionBar:function(M,q){M=M||0;q=q||0;this._width=M;this._left=q;this.transform("translateX("+q+"%) scaleX("+M/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var M=this.$.selectionBar.classList;M.contains("expand")?(M.remove("expand"),M.add("contract"),this._positionBar(this._pos.width,this._pos.left)):M.contains("contract")&&M.remove("contract")}});var M08;var qgM;_.h_({_template:function(){if(qgM!==void 0)return qgM;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;M08===void 0&&(M08=document.createElement("template"));var K=M08;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return qgM=M},
is:"tp-yt-paper-textarea",behaviors:[guI,_.gQ],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(M){this.$.input.textarea.selectionStart=M},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(M){this.$.input.textarea.selectionEnd=M},_ariaLabelledByChanged:function(M){this._focusableElement.setAttribute("aria-labelledby",M)},
_ariaDescribedByChanged:function(M){this._focusableElement.setAttribute("aria-describedby",M)},
get _focusableElement(){return this.inputElement.textarea}});var Gj8;var K7x;/*

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 nk9=function(){};
_.N=nk9.prototype;_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._tapHandler=function(){};
_.N._focusChanged=function(){};
_.N._detectKeyboardFocus=function(){};
_.N._userActivate=function(){};
_.N._upHandler=function(){};
_.N._spaceKeyDownHandler=function(){};
_.N._spaceKeyUpHandler=function(){};
_.N._asyncClick=function(){};
_.N._pressedChanged=function(){};
_.N._ariaActiveAttributeChanged=function(){};
_.N._activeChanged=function(){};
_.N._controlStateChanged=function(){};
_.N._changedButtonState=function(){};
_.N._focusBlurHandler=function(){};
_.N._disabledChanged=function(){};
_.N._changedControlState=function(){};
_.N._downHandler=function(){};
_.N.ensureRipple=function(){};
_.N.getRipple=function(){};
_.N.hasRipple=function(){};
_.N._noinkChanged=function(){};
_.N._focusedChanged=function(){};
_.N.registered=function(){};
_.N._invalidChanged=function(){};
_.N.hasValidator=function(){};
_.N.validate=function(){};
_.N._getValidity=function(){};
_.N._requiredChanged=function(){};
_.N._valueChanged=function(){};
_.N._checkedChanged=function(){};
_.N._buttonStateChanged=function(){};
_.N._setPressed=function(){};
_.N._setPointerDown=function(){};
_.N._setReceivedFocusFromKeyboard=function(){};
_.N._setFocused=function(){};
nk9=_.h_({is:"tp-yt-paper-toggle-button",_template:function(){if(K7x!==void 0)return K7x;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;Gj8===void 0&&(Gj8=document.createElement("template"));var K=Gj8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return K7x=M},
behaviors:[_.eKf],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");_.yb(this,function(){_.Vw(this,"pan-y")})},
_ontrack:function(M){M=M.detail;M.state==="start"?this._trackStart(M):M.state==="track"?this._trackMove(M):M.state==="end"&&this._trackEnd(M)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(M){M=M.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+M:M)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+M:M));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 M=ev._createRipple();M.id="ink";M.setAttribute("recenters","");M.classList.add("circle","toggle-ink");return M}});var EkP;var Nbl;_.h_({_template:function(){if(Nbl!==void 0)return Nbl;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;EkP===void 0&&(EkP=document.createElement("template"));var K=EkP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return Nbl=M},
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 M=_.YD(this).parentNode,q=_.YD(this).getOwnerRoot(),G;this.for?G=_.YD(q).querySelector("#"+this.for):G=M.nodeType==Node.DOCUMENT_FRAGMENT_NODE?q.host:M;return G},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(M){M==="entry"?this.show():M==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.YD(this).textContent.trim()===""){for(var M=!0,q=_.YD(this).getEffectiveChildNodes(),G=0;G<q.length;G++)if(q[G].textContent.trim()!==""){M=!1;break}if(M)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 M=this.offset;this.marginTop!=14&&this.offset==14&&(M=this.marginTop);var q=this.offsetParent.getBoundingClientRect(),G=this._target.getBoundingClientRect(),K=this.getBoundingClientRect(),n=(G.width-K.width)/2,E=(G.height-K.height)/2,p=G.left-q.left,y=G.top-q.top;switch(this.position){case "top":var Y=p+n;var A=y-K.height-M;break;case "bottom":Y=p+n;A=y+G.height+M;break;case "left":Y=p-K.width-M;A=y+E;break;case "right":Y=p+G.width+
M,A=y+E}this.fitToVisibleBounds?(q.left+Y+K.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,Y)+"px",this.style.right="auto"),q.top+A+K.height>window.innerHeight?(this.style.bottom=q.height+"px",this.style.top="auto"):(this.style.top=Math.max(-q.top,A)+"px",this.style.bottom="auto")):(this.style.left=Y+"px",this.style.top=A+"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(M){M!==500&&this.updateStyles({"--paper-tooltip-delay-in":M+"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(M){if(M==="entry"&&this.animationEntry!=="")return this.animationEntry;if(M==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[M]&&typeof this.animationConfig[M][0].name==="string"){if(this.animationConfig[M][0].timing&&this.animationConfig[M][0].timing.delay&&this.animationConfig[M][0].timing.delay!==0){var q=this.animationConfig[M][0].timing.delay;M==="entry"?this.updateStyles({"--paper-tooltip-delay-in":q+"ms"}):M==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":q+
"ms"})}return this.animationConfig[M][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 kjf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(kjf,_.kC);var pLB=_.t9(kjf,[0,_.RT]);var MC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(MC,_.kC);var yq8=[3,4],L7d=[5,6];var YgB=[0,yq8,L7d,_.Hp,-1,_.rl,_.eW,-1,CPM,aUf];var W7J=_.t9(MC,YgB),Aq8=_.wW(YgB);var duS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(duS,_.kC);var vkM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(vkM,_.kC);var hEp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(hEp,_.kC);var t0p=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(t0p,_.kC);var OOP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(OOP,_.kC);var qC=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(qC,_.kC);qC.prototype.getSource=function(){return _.tD(this,1)};
qC.prototype.getMessage=function(){return _.hD(this,4)};
qC.prototype.getData=function(){return _.t0(this,OOP,8)};var wLJ=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(wLJ,_.kC);var GX=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(GX,_.kC);var K1=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(K1,_.kC);var n1=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(n1,_.kC);n1.prototype.getUrl=function(){return _.hD(this,1)};
n1.prototype.setUrl=function(M){return _.DJ(this,1,M)};
n1.prototype.hasUrl=function(){return _.lP(_.nu(this,1))!=null};var Cil=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Cil,_.kC);var aAM=[3];var ok$=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ok$,_.kC);var E7=function(M){var q=new ok$;return _.Oh(q,2,M)};
ok$.prototype.getLanguage=function(){return Cu(this,4,NC)};
var lAP=function(M){var q=E7(1);return _.Pt(q,6,NC,M)},NC=[3,
4,5,6];var XLp=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(XLp,_.kC);var kN=function(M){var q=new XLp;return _.Oh(q,1,M)},p1=function(M,q){return _.Pt(M,2,Pi8,q)},Pi8=[2,
3,4,5];var iO8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(iO8,_.kC);var yL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(yL,_.kC);var cqS=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(cqS,_.kC);var gkf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(gkf,_.kC);var Bb2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Bb2,_.kC);var Q1M=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Q1M,_.kC);var IA2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(IA2,_.kC);var L1=function(M){return _.t0(M,K1,5)};var Du2=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Du2,_.kC);Du2.prototype.getValue=function(){return dl(this,1)};var ucI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ucI,_.kC);var YN=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(YN,_.kC);YN.prototype.getMetadata=function(){return _.aT(this,Bb2,7,WA)};
YN.prototype.hasMetadata=function(){return _.Nn(this,Bb2,7,WA)};
var Jqv=_.VMH(YN),WA=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Ar=function(M){this.JSC$12173_name_=M;this.files_=[];this.directories_=[];this.directoryMap_={}};
Ar.prototype.getName=function(){return this.JSC$12173_name_};var vA=function(M,q){this.callback_=q;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Ar("");ZO8(this,M,this.rootDirectory_);di(this)},ZO8=function(M,q,G){for(var K=0;K<q.length;K++){var n=q[K];
n.isFile?(M.fileOps_++,n.file((0,_.Ju)(M.handleFileSuccess_,M,G),(0,_.Ju)(M.handleFileError_,M))):M.unscannedDirectories_.push(new bOI(n,G))}},di=function(M){if(M.unscannedDirectories_.length>0&&M.directoryOps_<5&&!M.hasError_){M.directoryOps_++;
var q=M.unscannedDirectories_.shift(),G=q.entry,K=new Ar(G.name);q=q.parent;q.directoryMap_[K.getName()]=K;q.directories_.push(K);G=G.createReader();G.readEntries((0,_.Ju)(M.handleDirectorySuccess_,M,G,K),(0,_.Ju)(M.handleDirectoryError_,M))}M.directoryOps_!=0||M.fileOps_!=0||M.unscannedDirectories_.length!=0&&!M.hasError_||M.callback_(M.rootDirectory_.files_,M.rootDirectory_.directories_,M.hasError_)};
vA.prototype.handleDirectorySuccess_=function(M,q,G){ZO8(this,G,q);G.length==0?(this.directoryOps_--,di(this)):M.readEntries((0,_.Ju)(this.handleDirectorySuccess_,this,M,q),(0,_.Ju)(this.handleDirectoryError_,this))};
vA.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;di(this)};
vA.prototype.handleFileSuccess_=function(M,q){M.files_.push(q);this.fileOps_--;di(this)};
vA.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;di(this)};
var bOI=function(M,q){this.entry=M;this.parent=q};var hr=function(M){_.w6.call(this);_.Yj(M,"drop",this.onObjectsDropped_,!1,this);_.Yj(M,"dragenter",this.onFilesDragged_,!1,this);_.Yj(M,"dragover",this.onFilesDragged_,!1,this);_.Yj(M,"dragleave",this.onDragLeave_,!1,this);_.Yj(M,"dragend",this.onDragLeave_,!1,this)};
_.TO(hr,_.w6);var Uu2=function(M,q){_.d6.call(this,"f");this.files=M;this.directories=q};
_.TO(Uu2,_.d6);var xux=function(){_.d6.call(this,"h")};
_.TO(xux,_.d6);var zEl=function(){_.d6.call(this,"i")};
_.TO(zEl,_.d6);var muI=function(){_.d6.call(this,"g")};
_.TO(muI,_.d6);hr.prototype.onObjectsDropped_=function(M){var q=this;M.preventDefault();var G=M.event_.dataTransfer;if((M=G&&G.items)&&M.length>0&&M[0].webkitGetAsEntry){G=[];for(var K=[],n=0;n<M.length;n++){var E=M[n].webkitGetAsEntry();E?G.push(E):K.push(M[n])}new vA(G,function(p,y,Y){Y?q.dispatchEvent(new muI("Error occurred while reading from the file system.")):q.dispatchEvent(new Uu2(p,y,K))})}else(M=G&&G.files)&&this.dispatchEvent(new Uu2(Array.from(M),[]))};
hr.prototype.onFilesDragged_=function(M){M.type==="dragenter"&&this.dispatchEvent(new xux);M.preventDefault()};
hr.prototype.onDragLeave_=function(){this.dispatchEvent(new zEl)};var Sg$=function(M,q){this.JSC$12196_name_=M;this.inputElement_=q};
Sg$.prototype.getName=function(){return this.JSC$12196_name_};
Sg$.prototype.getInputElement=function(){return this.inputElement_};var tr=function(M,q,G){q=q===void 0?"single_file":q;G=G===void 0?[]:G;_.w6.call(this);this.overlayTarget_=M;this.parentOverlay_=M!=null?M.parentNode:_.iI("scotty-overlay-parent");this.selectorType_=q;this.acceptTypes_=G;this.overlay_=Tbx(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.l(tr,_.w6);
var Tbx=function(M,q,G,K){var n=document.createElement("input");n.setAttribute("type","file");n.setAttribute("name","Filedata");_.Yj(n,"change",M.onFilesSelected_,!1,M);G==="multiple_file"&&(n.multiple="true");G==="single_directory"&&(n.webkitdirectory="true");K.length>0&&n.setAttribute("accept",K.join(","));n.style.position="absolute";n.style.overflow="hidden";n.style.height="0px";n.style.width="0px";n.style.opacity="0";n.setAttribute("aria-hidden","true");n.setAttribute("tabIndex",-1);if(M.overlayTarget_!=
null)return n.style.height=q.offsetHeight+"px",n.style.width=q.offsetWidth+"px",M.parentOverlay_&&(M.parentOverlay_.style.position="relative"),_.gB(n,q),Jc(n,new _.mK(q.offsetLeft,q.offsetTop)),n;M.parentOverlay_.appendChild(n);return n};
tr.prototype.click=function(){this.overlay_.click()};
tr.prototype.onFilesSelected_=function(M){a:{try{var q=(new XMLHttpRequest).upload!==void 0;break a}catch(A){}q=!1}if(q){var G;M=Array.from((G=M.target.files)!=null?G:[]);G=[];if(this.selectorType_==="single_directory"&&(_.Hh||yn||_.Fa)){G=new Ar("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(q=0;q<M.length;q++)for(var K=M[q],n=K.webkitRelativePath.split("/"),E=G,p=0;p<n.length;p++){var y=n[p];if(p==n.length-1){y!="."&&E.files_.push(K);break}var Y=E.directoryMap_[y];Y==void 0&&(y=
Y=new Ar(y),E.directoryMap_[y.getName()]=y,E.directories_.push(y));E=Y}G=G.directories_}this.dispatchEvent(new rqv(M,G,null))}else M=M.target.value,M.match(/^c:\\fakepath\\/i)&&(M=M.substring(12)),this.dispatchEvent(new rqv([],[],new Sg$(M,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=Tbx(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var rqv=function(M,q){_.d6.call(this,"j");this.files=M;this.directories=q};
_.l(rqv,_.d6);var j1d=function(M){this.uploadUrl_=M};var V0J=function(){_.w6.call(this)};
_.TO(V0J,_.w6);var O7=function(M){_.d6.call(this,M)};
_.TO(O7,_.d6);var wi=function(M){_.d6.call(this,M)};
_.TO(wi,_.d6);var REd=function(M,q,G,K,n){_.w6.call(this);G=document.createElement("form");G.setAttribute("method",q);G.setAttribute("enctype","multipart/form-data");G.setAttribute("encoding","multipart/form-data");q=document.createElement("input");q.setAttribute("type","hidden");q.setAttribute("name","metadata");q.setAttribute("value",n);G.appendChild(q);G.appendChild(K);this.JSC$12213_form_=G;M=new _.Za(M);_.qT(M,"upload_protocol","multipart");this.JSC$12213_url_=M.toString();this.JSC$12213_request_=new Kh;this.state_=
"Ready";this.JSC$12213_errorDescription_=null;this.JSC$12213_eventHandler_=new _.OU(this);_.oE(this,this.JSC$12213_eventHandler_);this.JSC$12213_eventHandler_.listen(this.JSC$12213_request_,"success",this.onTransferSuccess_);this.JSC$12213_eventHandler_.listen(this.JSC$12213_request_,"error",this.onTransferError_)};
_.l(REd,V0J);_.N=REd.prototype;_.N.run=function(){this.state_="Transferring";var M=this.JSC$12213_request_,q=this.JSC$12213_form_;if(M.JSC$11481_active_)throw Error("te");var G=new _.Za(this.JSC$12213_url_||q.action);M.JSC$11481_form_=q;q=M.JSC$11481_form_;G=_.jM(G.toString());G!==void 0&&(q.action=G);qz2(M)};
_.N.getResponseCode=function(){return null};
_.N.getResponseText=function(){return this.JSC$12213_request_&&this.JSC$12213_request_.getResponseText()||null};
_.N.JSC$29757_getErrorDescription=function(){return this.JSC$12213_errorDescription_};
_.N.cancel=function(){this.JSC$12213_request_&&this.JSC$12213_request_.abort();this.state_="Cancelled";this.dispatchEvent(new O7("o"))};
_.N.pause=function(){};
_.N.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new O7("l"))};
_.N.onTransferError_=function(){this.JSC$12213_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new O7("n"))};var C1=function(){_.cT.call(this)};
_.l(C1,_.cT);C1.prototype.createXhr=function(){var M=_.cT.prototype.createXhr.call(this);M.upload&&(M.upload.onprogress=(0,_.Ju)(this.onProgress_,this));return M};
C1.prototype.onProgress_=function(M){this.dispatchEvent(M)};var fAP=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},HO9=function(M,q){var G=M.attempt_+1;
if(M.maxAttempts_>0&&G>M.maxAttempts_)return!1;G==0?q():M.delayCallId_=Xl(function(){M.delayCallId_=null;q()},F7x(M),M);
M.attempt_=G;return!0};
fAP.prototype.reset=function(){this.delayCallId_&&_.Kj.clearTimeout(this.delayCallId_);this.attempt_=-1};
var F7x=function(M){var q=250*Math.pow(2,M.attempt_);M.maxDelayMs_>=0&&(q=Math.min(q,M.maxDelayMs_));return q};var PMY=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var aD=function(){_.w6.call(this);this.JSC$12223_request_=this.state_=null;this.JSC$12223_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$12223_bytesTransferred_=0;this.retryIterator_=new fAP;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$12223_errorDescription_=null;this.JSC$12223_eventHandler_=new _.OU(this);_.oE(this,this.JSC$12223_eventHandler_);this.JSC$12223_url_=this.blob_=null;this.JSC$12223_method_=void 0;this.chunkSize_=this.JSC$12223_metadata_=
this.JSC$12223_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$12223_responseText_=this.JSC$12223_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.TO(aD,V0J);_.N=aD.prototype;_.N.run=function(){oD(this)};
_.N.getResponseCode=function(){return this.JSC$12223_responseCode_};
_.N.getResponseText=function(){return this.JSC$12223_responseText_};
_.N.JSC$29757_getErrorDescription=function(){return this.JSC$12223_errorDescription_};
_.N.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$12223_eventHandler_.removeAll();this.JSC$12223_request_&&this.JSC$12223_request_.abort();this.retryIterator_.reset();var M=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(M==="Upload"||M==="Query")M=new C1,M.JSC$9800_withCredentials_=this.JSC$12223_withCredentials_,M.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$12223_bytesTransferred_=
0;this.dispatchEvent(new O7("o"))}};
_.N.pause=function(){this.pauseRequested_=!0};
var oD=function(M){var q=M.state_;M.pauseRequested_?(M.pauseRequested_=!1,M.stateAfterUnpausing_=q,M.state_="Paused"):HO9(M.retryIterator_,function(){switch(M.state_){case "Start":M.JSC$12223_request_=new C1;var G=_.xP.clone(M.JSC$12223_headers_);M.blob_.size!=null&&(G["Content-Length"]=M.blob_.size);G=iky(G);G["X-Goog-Upload-Protocol"]="resumable";G["X-Goog-Upload-Command"]="start";M.JSC$12223_eventHandler_.removeAll();M.JSC$12223_eventHandler_.listen(M.JSC$12223_request_,"complete",M.onStartComplete_);
M.JSC$12223_request_.JSC$9800_withCredentials_=M.JSC$12223_withCredentials_;M.JSC$12223_request_.send(M.JSC$12223_url_,M.JSC$12223_method_,M.JSC$12223_metadata_,G);M.lastCommandResponseCode_=null;M.dispatchEvent(new wi("q"));break;case "Upload":G=M.transferHandle_.uploadUrl_;var K=M.blob_.size;if(Qf8()){var n=M.chunkSize_;var E=M.offset_+n>=K;K=Btx(M.blob_,M.offset_,E?K:M.offset_+n)}else M.offset_=0,K=M.blob_,E=!0;M.JSC$12223_request_=new C1;M.JSC$12223_request_.JSC$9800_withCredentials_=M.JSC$12223_withCredentials_;
M.JSC$12223_eventHandler_.removeAll();M.JSC$12223_eventHandler_.listen(M.JSC$12223_request_,"progress",M.onUploadProgress_);n=(0,_.Ju)(M.JSC$12225_onUploadComplete_,M,M.offset_+K.size,E);M.JSC$12223_eventHandler_.listen(M.JSC$12223_request_,"complete",n);M.lastCommandResponseCode_=null;M.dispatchEvent(new wi("q"));E=Object.assign({},M.JSC$12223_headers_||{},{"X-Goog-Upload-Command":"upload"+(E?", finalize":""),"X-Goog-Upload-Offset":M.offset_});M.JSC$12223_request_.send(G,"POST",K,E);break;case "Query":M.JSC$12223_request_=
new C1;M.JSC$12223_eventHandler_.removeAll();M.JSC$12223_eventHandler_.listen(M.JSC$12223_request_,"complete",M.onQueryComplete_);G=Object.assign({},M.JSC$12223_headers_||{},{"X-Goog-Upload-Command":"query"});M.JSC$12223_request_.send(M.transferHandle_.uploadUrl_,"POST","",G);M.lastCommandResponseCode_=null;M.dispatchEvent(new wi("q"));break;default:throw Error("lf");}})||lU(M,"Transfer encountered too many consecutive failures.")},lU=function(M,q){M.state_="Error";
M.JSC$12223_errorDescription_=q;M.dispatchEvent(new O7("n"))};
aD.prototype.onStartComplete_=function(M){var q=M.target;this.lastCommandResponseCode_=q.getStatus();this.dispatchEvent(new wi("r"));if(eEx(q))$u2(this,q);else if(sA8(q)){M=E9(M.target.getAllResponseHeaders());for(var G in M)_.Ee(G.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new O7("m"));G=Al(M,"X-Goog-Upload-URL");M=(M=Al(M,"X-Goog-Upload-Chunk-Granularity"))?parseInt(M,10):1;G===void 0||isNaN(M)||M<=0?lU(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
M)*M,this.transferHandle_=new j1d(G),this.dispatchEvent(new O7("p")),this.state_="Upload",this.retryIterator_.reset(),oD(this))}else oD(this)};
aD.prototype.onUploadProgress_=function(M){this.JSC$12223_bytesTransferred_=this.offset_+M.loaded;this.dispatchEvent(new O7("k"))};
aD.prototype.JSC$12225_onUploadComplete_=function(M,q,G){var K=this,n,E;return _.L(function(p){switch(p.nextAddress){case 1:n=G.target;K.lastCommandResponseCode_=n.getStatus();K.dispatchEvent(new wi("r"));if(MDB(n)||n.getStatus()==404)return K.JSC$12223_bytesTransferred_=M,$u2(K,n),p.return();if(sA8(n)){p.jumpTo(2);break}if(!(E=K.detectCorruptedBlobEnabled_)){p.jumpTo(3);break}return p.yield(q6S(K),4);case 4:E=p.yieldResult;case 3:if(E)return lU(K,"Blob has been modified or corrupted."),p.return();
K.requireUploadRequestModification_=n.getStatus()==400;K.state_="Query";oD(K);return p.return();case 2:if(q)return lU(K,"Got a non-final success response after issuing a finalize command."),p.return();K.JSC$12223_bytesTransferred_=M;K.offset_=M;K.retryIterator_.reset();oD(K);return p.return()}})};
aD.prototype.onQueryComplete_=function(M){var q=M.target;this.lastCommandResponseCode_=q.getStatus();this.dispatchEvent(new wi("r"));eEx(q)?(q.getStatus()===200&&(this.JSC$12223_bytesTransferred_=this.blob_.size),$u2(this,q)):sA8(q)?(M=E9(M.target.getAllResponseHeaders()),M=parseInt(Al(M,"X-Goog-Upload-Size-Received"),10),isNaN(M)?lU(this,"Server did not respond with current offset."):M<this.offset_?lU(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
M+"."):this.requireUploadRequestModification_&&this.offset_===M?lU(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<M&&this.retryIterator_.reset(),this.offset_=this.JSC$12223_bytesTransferred_=M,this.state_="Upload",oD(this))):oD(this)};
var $u2=function(M,q){M.JSC$12223_responseCode_=q.getStatus();var G=E9(q.getAllResponseHeaders());cQi(G);M.JSC$12223_responseText_=q.getResponseText();M.state_="Response received";M.dispatchEvent(new O7("l"))},sA8=function(M){var q=M.getStatus();
M=E9(M.getAllResponseHeaders());M=Al(M,"X-Goog-Upload-Status");return q===200&&M==="active"},MDB=function(M){M=E9(M.getAllResponseHeaders());
return Al(M,"X-Goog-Upload-Status")==="final"},eEx=function(M){if(MDB(M))return!0;
M=M.getStatus();return M>=400&&M<500},q6S=function(M){var q;
return _.L(function(G){if(G.nextAddress==1){if(!M.blob_||M.originalBlobSize_<=0)return G.return(!1);if(M.blob_.size!==M.originalBlobSize_)return G.return(!0);_.Cv(G,2);if(q=Btx(M.blob_,0,1)){var K=G.yield,n=new zd,E=Wdd(n);n.reader_.readAsBinaryString(q);G=K.call(G,E,4)}else G=G.return(!0);return G}if(G.nextAddress!=2)return G.return(M.blob_.size!==M.originalBlobSize_);_.i5(G);return G.return(!0)})};var GKP=function(M,q,G,K,n,E){_.w6.call(this);this.payload_=K;this.JSC$12226_url_=M;this.JSC$12226_method_=q;this.JSC$12226_headers_=G;this.JSC$12226_metadata_=n;this.encoding_=E||"binary";M=new _.PW;this.boundary_="uploader-"+$a()+"-"+M.JSC$11330_toIsoString();this.JSC$12226_responseText_=this.JSC$12226_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$12226_errorDescription_=null;this.JSC$12226_eventHandler_=new _.OU(this);_.oE(this,this.JSC$12226_eventHandler_)};
_.l(GKP,V0J);_.N=GKP.prototype;
_.N.run=function(){var M=_.xP.clone(this.JSC$12226_headers_);this.payload_.length!=null&&(M["Content-Length"]=this.payload_.length);M=iky(M);M["X-Goog-Upload-Protocol"]="multipart";M["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new C1;this.JSC$12226_eventHandler_.removeAll();this.JSC$12226_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$12226_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$12226_url_,this.JSC$12226_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$12226_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",M)};
_.N.getResponseCode=function(){return this.JSC$12226_responseCode_};
_.N.getResponseText=function(){return this.JSC$12226_responseText_};
_.N.JSC$29757_getErrorDescription=function(){return this.JSC$12226_errorDescription_};
_.N.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$12226_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new O7("o")))};
_.N.pause=function(){};
_.N.onTransferProgress_=function(){this.dispatchEvent(new O7("k"))};
_.N.onTransferComplete_=function(M){var q=M.target.getStatus();q===void 0||q===-1?(this.JSC$12226_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new O7("n"))):(this.JSC$12226_responseCode_=q,M=M.target,q=E9(M.getAllResponseHeaders()),cQi(q),this.JSC$12226_responseText_=M.getResponseText(),this.state_="Complete",this.dispatchEvent(new O7("l")))};_.KHp=function(M,q,G,K){K=K===void 0?!1:K;if(G instanceof Sg$)return new REd(M,"POST",q,G.getInputElement(),"");if(typeof G==="string"||G instanceof String)return new GKP(M,"POST",q,G,"");var n=new aD(void 0);n.JSC$12223_url_=M;n.JSC$12223_method_="POST";n.JSC$12223_headers_=q;n.blob_=G;n.originalBlobSize_=G.size;n.JSC$12223_metadata_="";K&&(n.JSC$12223_withCredentials_=K);n.state_="Start";return n};var X7=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(X7,_.kC);_.N=X7.prototype;_.N.getEnableSsEngine=function(){return _.AD(this,2)};
_.N.getEnableAwr=function(){return _.AD(this,3)};
_.N.getAlohaAutoGaRollout=function(){return _.AD(this,5)};
_.N.getEnableConfigurator=function(){return _.AD(this,6)};
_.N.getEnableMweb=function(){return _.AD(this,7)};
var Erd=function(){var M=nrI();return _.vF(M,7,!0)};
X7.prototype.getEnableCtlConsentCheckbox=function(){return _.AD(this,8)};
X7.prototype.getEnableIframe=function(){return _.AD(this,9)};
var nrI=function(){var M=new X7;M=_.vF(M,5,!0);M=_.vF(M,2,!0);M=_.vF(M,4,!1);M=_.vF(M,8,!0);return _.vF(M,9,!0)};
X7.prototype.getEnableScreenshotNudge=function(){return _.AD(this,10)};
var NNM=function(){var M=Erd();return _.vF(M,10,!0)};
X7.prototype.getEnableWebStartupConfigEndpoint=function(){return _.AD(this,11)};
X7.prototype.getEnableJunkNudge=function(){return _.AD(this,12)};
var Rpw=function(){var M=NNM();return _.vF(M,12,!0)};
_.N=X7.prototype;_.N.getEnableConfiguratorLocale=function(){return _.AD(this,13)};
_.N.getEnableTinyNoPointer=function(){return _.AD(this,14)};
_.N.getEnableSupportSessionLogging=function(){return _.AD(this,15)};
_.N.getEnableFileUploadForScreenshot=function(){return _.AD(this,16)};
_.N.getEnableDirectDeflectionForSingleCategory=function(){return _.AD(this,17)};
_.N.getEnableImageSanitization=function(){return _.AD(this,18)};
_.N.getEnableAlohaBinarySplit=function(){return _.AD(this,19)};
_.N.getEnableDbFeedbackIntents=function(){return _.AD(this,20)};
_.N.getEnableMarkMandatoryFieldsWithRequired=function(){return _.AD(this,21)};
_.N.getEnableFeedbackCategoryCustomUi=function(){return _.AD(this,22)};
_.N.getEnableRealtimeCtl=function(){return _.AD(this,23)};var V94=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(V94,_.kC);var gHj=[/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 QeD="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 Ic4=_.DQ(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),DOD=_.DQ(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var JQF,UO4,ZkF,xO4;var kKS,pBS;
kKS=function(M,q,G){M.timeOfStartCall=(new Date).getTime();var K=G||_.Kj,n=K.document,E=M.nonce||_.MX(K.document);E&&!M.nonce&&(M.nonce=E);if(M.flow=="help"){var p=_.sx("document.location.href",K);!M.helpCenterContext&&p&&(M.helpCenterContext=p.substring(0,1200));p=!0;if(q&&JSON&&JSON.stringify){var y=JSON.stringify(q);(p=y.length<=1200)&&(M.psdJson=y)}p||(q={invalidPsd:!0})}q=[M,q,G];K.GOOGLE_FEEDBACK_START_ARGUMENTS=q;G=M.feedbackServerUri||"//www.google.com/tools/feedback";if(p=K.GOOGLE_FEEDBACK_START)p.apply(K,q);
else{K=G+"/load.js?";for(var Y in M)q=M[Y],q==null||_.VY(q)||(K+=encodeURIComponent(Y)+"="+encodeURIComponent(q)+"&");M=Ig(n).createElement("SCRIPT");E&&M.setAttribute("nonce",E);_.Ei(M,_.Qk(K));n.body.appendChild(M)}};
pBS=function(M,q,G,K){var n,E;_.L(function(p){n=G||_.Kj;var y=M.serverEnvironment==="DEV",Y=G||_.Kj;Y=M.nonce||_.MX(Y.document);y={integrationKeys:{productId:M.productId,feedbackBucket:M.bucket,triggerId:M.triggerId},callbacks:{onClose:M.callback,onLoad:M.onLoadCallback},formContent:{locale:M.locale,disableScreenshot:M.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:M.abuseLink,additionalDataConsent:M.additionalDataConsent},initializationData:{isLocalServer:y,nonce:Y,useNightlyRelease:y,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:M.feedbackServerUri,colorScheme:M.colorScheme},extraData:{productVersion:M.productVersion,authUser:M.authuser,configuratorId:M.configuratorId,customZIndex:M.customZIndex,tinyNoPointer:M.tinyNoPointer,
allowNonLoggedInFeedback:M.allowNonLoggedInFeedback,enableAnonymousFeedback:M.enableAnonymousFeedback}};q&&(Y=new Map(Object.entries(q)),y.extraData.productSpecificData=Y);E=y;return p.yield(TF$(E,K,n),0)})};
_.ysS=function(M,q,G){try{if(M.flow==="help"){var K=M.helpCenterPath.replace(/^\//,"");_.si(G||window,"https://support.google.com/"+K)}else M.flow==="submit"?kKS(M,q,G):fcj(M.productId,M.feedbackServerUri).then(function(n){n=_.t0(n,X7,1);var E=!UD$||(n==null?void 0:n.getEnableMweb()),p=!M.tinyNoPointer||(n==null?void 0:n.getEnableTinyNoPointer());!n||n.getAlohaAutoGaRollout()&&E&&p?pBS(M,q,G,n):kKS(M,q,G)},function(n){n&&n.name!=="DuplicateFormError"&&kKS(M,q,G)})}catch(n){pBS(M,q,G,null)}};
_.Y5("userfeedback.api.startFeedback",_.ysS);var Fti=/https?:\/\/\S+\.\S+/,Hky=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],epy=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var Za$=function(M){var q=M.split(""),G=[-263237435,15,q,function(K,n,E){var p=n.length;E.forEach(function(y,Y,A){this.push(A[Y]=n[(n.indexOf(y)-n.indexOf(this[Y])+Y+p--)%n.length])},K.split(""))},
function(K,n){K=(K%n.length+n.length)%n.length;n.splice(-K).reverse().forEach(function(E){n.unshift(E)})},
"response",function(){for(var K=64,n=[];++K-n.length-32;){switch(K){case 58:K-=14;case 91:case 92:case 93:continue;case 123:K=47;case 94:case 95:case 96:continue;case 46:K=95}n.push(String.fromCharCode(K))}return n},
null,12,1540023973,65941107,null,q,function(K,n){for(K=(K%n.length+n.length)%n.length;K--;)n.unshift(n.pop())},
695603893,function(K){for(var n=K.length;n;)K.push(K.splice(--n,1)[0])},
"'[;'[(",function(K,n){K.push(n)},
null,function(K,n,E,p,y){return n(E,p,y)},
"continuation",q,function(K,n){if(K.length!=0){n=(n%K.length+K.length)%K.length;var E=K[0];K[0]=K[n];K[n]=E}},
function(){for(var K=64,n=[];++K-n.length-32;){switch(K){case 91:K=44;continue;case 123:K=65;break;case 65:K-=18;continue;case 58:K=96;continue;case 46:K=95}n.push(String.fromCharCode(K))}return n},
'"),/]];'];G[7]=G;G[11]=G;G[18]=G;try{(((0,G[15])(G[21]),G[22])(G[11],G[9]),G[22])(G[new Date("1970-01-01T04:30:12.000+04:30")/1E3],G[1]),((0,G[22])(G[11],G[23]),G[4])(G[10],G[18]),(0,G[20])(G[21],G[14])<<(0,G[17])(G[18],G[1]),(0,G[4])(G[8],G[21]),(0,G[19])((0,G[19])((0,G[17])(G[7],G[9]),G[3],G[20],(0,G[6])(),G[2]),G[3],G[5],(0,G[15])(),G[2])}catch(K){return"aTlOUOubTO4AP____8P_"+M}return q.join("")};_.LH9=new _.e0("runAttestationCommand");var Y6$=new _.e0("verifyCommand");_.NQ=new _.e0("accessibilityContext");var WHp=new _.e0("accessibilityData");var AsJ=new _.e0("profileCardCommand");var DGy=new _.e0("signInEndpoint");var Iny=new _.e0("signOutEndpoint");var vrp;_.dqP=new _.e0("accountItemSectionRenderer");vrp=new _.e0("accountItemRenderer");_.hIS=new _.e0("saveCommandToSessionStorageAction");var tDf=new _.e0("crossAccountChannelTransferEndpoint");var lYi=new _.e0("getAccountMenuEndpoint");_.XZH=new _.e0("getAccountSwitcherEndpoint");var o7i=new _.e0("getAccountsListEndpoint");var O$x=new _.e0("getAccountsListInnertubeEndpoint");_.wBS=new _.e0("addToToastAction");var CtB=new _.e0("hideEnclosingAction");_.PA=new _.e0("replaceEnclosingAction");var aDJ=new _.e0("buttonRefreshAction");var or9=new _.e0("adsControlFlowOpportunityReceivedCommand");var lDS=new _.e0("openAdAllowlistInstructionCommand");var XBM=new _.e0("videoMastheadAdPrimaryVideoRenderer");var Ptp=new _.e0("displayAdRenderer");_.i$p=new _.e0("inFeedAdLayoutRenderer");var cs9=new _.e0("sequenceItemInPlayerAdLayoutRenderer");_.grI=new _.e0("adSlotRenderer");var BNl=new _.e0("adAvatarViewModel");var QAJ=new _.e0("adBadgeViewModel");var ID2=new _.e0("adButtonViewModel");var DqI=new _.e0("adImageViewModel");var eNj=new _.e0("reelsAdCardButtonedViewModel");var u6p=new _.e0("reelsPlayerOverlayLayoutViewModel");var JsB=new _.e0("updateConversationIdCommand");var Z$d=new _.e0("showSchedulingPanelCommand");var b$I=new _.e0("backstageCommentsRenderer");var Uqd=new _.e0("backstageImageRenderer");var xqd=new _.e0("backstagePostRenderer");var zIx=new _.e0("backstageZeroStateRenderer");var mq$=new _.e0("postRenderer");var S6J=new _.e0("sharedPostRenderer");var TNI=new _.e0("createBackstagePostEndpoint");var rsM=new _.e0("getPostVideoPreviewEndpoint");var jAp=new _.e0("updateBackstagePostEndpoint");var VDf=new _.e0("filterChipTransformCommand");var RIf=new _.e0("insertRichSectionCommand");var yAF=new _.e0("talkToRecsDeselectCommand");var fDM=new _.e0("talkToRecsNextCommand");var pde=new _.e0("talkToRecsSelectCommand");var FHM=new _.e0("talkToRecsUpdateTextCommand");_.n_=new _.e0("browseEndpoint");_.H$2=new _.e0("confirmDialogEndpoint");var eIP=new _.e0("expandOnHoverCardRenderer");var $qJ=new _.e0("lumiereShelfDetailsRenderer");var se8=new _.e0("revealBusinessEmailCommand");var M9l=new _.e0("validateChannelHandleCommand");var q58=new _.e0("channelCreationFormEndpoint");var Gdv=new _.e0("aboutChannelViewModel");var KtS=new _.e0("channelThumbnailWithLinkRenderer");var nHS=new _.e0("channelCreationServiceEndpoint");var EH2=new _.e0("updateChannelPageSettingsEndpoint");var iU=function(M){this.delegate=M},cA=function(){iU.apply(this,arguments)};
_.l(cA,iU);_.Yd.Object.defineProperties(cA.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(M){this.delegate.entityMetadata=M}}});var NFJ=function(){cA.apply(this,arguments)};
_.l(NFJ,cA);NFJ.prototype.getAssociations=function(){return[]};
NFJ.prototype.getTypeName=function(){return"channelHandle"};var Pky=new _.e0("webThumbnailDetailsExtensionData");var MtF=new _.e0("commandContext");var kdJ=new _.e0("addVideoLinkAction");var pWf=new _.e0("banAuthorAction");var yQ8=new _.e0("createCommentAction");var LtM=new _.e0("createCommentReplyAction");var Y5v=new _.e0("createPollAction");var Wt9=new _.e0("hideIdentityChipAction");var AQd=new _.e0("openUpdateCommentDialogAction");var dOB=new _.e0("pinCommentAction");var vHl=new _.e0("removeCommentAction");var hpp=new _.e0("unpinCommentAction");var gi=new _.e0("updateBackstagePollAction");var t92=new _.e0("updateCommentVoteAction");var OkJ=new _.e0("commentThreadRenderer");var wWB=function(){cA.apply(this,arguments)};
_.l(wWB,cA);wWB.prototype.getAssociations=function(){return[]};
wWB.prototype.getTypeName=function(){return"contextNoteFeedEntityPayload"};var CMS=function(){cA.apply(this,arguments)};
_.l(CMS,cA);CMS.prototype.getAssociations=function(){return[]};
CMS.prototype.getTypeName=function(){return"contextNoteUserRatingEntityPayload"};_.acI=new _.e0("commentDialogRenderer");var oHv=new _.e0("reloadCommentsCommand");var lc9=new _.e0("updateCommentsSettingsEndpoint");var XWB=new _.e0("commentViewModel");var PMB=new _.e0("triStateButtonViewModel");var ikv=new _.e0("voiceReplyContainerViewModel");_.eP=new _.e0("commandExecutorCommand");var OE=new _.e0("emoji");var cQ2=new _.e0("updateCreatorChannelInnertubeCommand");_.gHP=new _.e0("appendContinuationItemsAction");_.BFP=new _.e0("changeEngagementPanelVisibilityAction");_.XY=new _.e0("continuationCommand");var Qex=new _.e0("hideReportedCommentAction");var Icd=new _.e0("listMutationCommand");_.BA=new _.e0("openPopupAction");var DOx=new _.e0("persistSubscriptionsDisplayPreferencesCommand");var mOP;_.uXl=new _.e0("playlistRemoveVideosAction");_.JQ8=new _.e0("updatePlaylistAction");_.Zkl=new _.e0("addToPlaylistCommand");_.bkd=new _.e0("endPlaylistCommand");_.UOd=new _.e0("recoverPlaylistCommand");_.xOd=new _.e0("refreshPlaylistCommand");_.zpd=new _.e0("refreshFormCommand");mOP=new _.e0("openOnePickAddVideoModalCommand");_.IY4=new _.e0("reloadContinuationItemsCommand");_.S5$=new _.e0("scrollToEngagementPanelCommand");var TF9=new _.e0("selectCountryCommand");var rQJ=new _.e0("showReloadUiCommand");var jeS=new _.e0("undoFeedbackAction");var V9d=new _.e0("updateButtonAction");var RpJ=new _.e0("updateSubscribeButtonAction");var fcP=new _.e0("updateToggleAction");var Ft2=new _.e0("webNativeShareCommand");_.Mg=new _.e0("webCommandMetadata");_.QL=new _.e0("webHandleServiceEndpointExtension");var a9$=new _.e0("webNavigationEndpointData");var HkI=new _.e0("backgroundAudioPlaybackCommand");var epv=new _.e0("copyLinkCommand");var $Ov=new _.e0("playlistVotingRefreshPopupCommand");var s3P=new _.e0("selectChipCommand");var Mvp=new _.e0("setCookieCommand");var qZP=new _.e0("setLocalStorageCommand");var Gbd=new _.e0("setPrefStorageEntryCommand");var NQd;_.KxJ=new _.e0("settingsUpdateCheckboxCommand");_.nt$=new _.e0("settingsUpdateTextCommand");_.EtB=new _.e0("settingsUpdateOptionsCommand");NQd=new _.e0("settingsUpdateSwitchCommand");_.kbP=new _.e0("settingsUpdateConnectedAppRendererCommand");var pnS=new _.e0("showCreatorChatbotEngagementPanelCommand");var yt2=new _.e0("updateTextInputFormFieldRendererCommand");var Lxx=new _.e0("updateToggleButtonStateCommand");var YZ8=new _.e0("updateUrlParamCommand");var Wx2=new _.e0("webSubmitFormCommand");var Atf=new _.e0("channelSwitcherPageRenderer"),dSP=new _.e0("updateChannelSwitcherPageAction");_.Z$=new _.e0("continuationItemRenderer");_.ID=new _.e0("richItemRenderer");var vtI=new _.e0("richSectionRenderer");_.hnJ=new _.e0("richShelfRenderer");_.tvd=new _.e0("metadataBadgeRenderer");_.Oh9=new _.e0("multiPageMenuNotificationSectionRenderer");_.wn$=new _.e0("playlistLoopButtonStateRenderer");var Czv=new _.e0("claimLegacyYoutubeChannelEndpoint");var a4B=new _.e0("getNotificationMenuEndpoint");var otP=new _.e0("getSearchInVideoCommand");_.l4B=new _.e0("getTranscriptEndpoint");_.sl=new _.e0("signalServiceEndpoint");var XnI=new _.e0("verifyAgeEndpoint");var xcF=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(xcF,_.kC);xcF.prototype.getPath=function(){return _.hD(this,1)};
xcF.prototype.getValue=function(){return _.hD(this,2)};var Pzp=[0,_.x1,-1];var ihI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ihI,_.kC);var Uc4=_.t9(ihI,[0,_.Tm,Pzp]);var ctv=new _.e0("dismissalEndpoint");var gtB=new _.e0("elementsCommand");_.Cl=new _.e0("innertubeCommand");var BQM=new _.e0("multipleInlinePlaybackCommand");var Ebs=new _.e0("loggingDirectives");var Q38=new _.e0("acknowledgeChannelTouStrikeCommand");var I4p=function(){cA.apply(this,arguments)};
_.l(I4p,cA);I4p.prototype.getAssociations=function(){return[]};
I4p.prototype.getTypeName=function(){return"booleanEntity"};var DSx=function(){cA.apply(this,arguments)};
_.l(DSx,cA);DSx.prototype.getAssociations=function(){return[]};
DSx.prototype.getTypeName=function(){return"stringEntity"};var JC=new _.e0("entityBatchUpdate");_.u9J=new _.e0("entityUpdateCommand");var JtB=function(){cA.apply(this,arguments)};
_.l(JtB,cA);JtB.prototype.getAssociations=function(){var M=[];this.delegate.alternateChannel&&M.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&M.push.apply(M,_.Ui(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&M.push(this.delegate.oneofChannelEntity);return[].concat(_.Ui(new Set(M)))};
JtB.prototype.getTypeName=function(){return"fakeChannel"};var ZhP=function(){cA.apply(this,arguments)};
_.l(ZhP,cA);ZhP.prototype.getAssociations=function(){var M=[];this.delegate.entryCollection&&M.push(this.delegate.entryCollection);return[].concat(_.Ui(new Set(M)))};
ZhP.prototype.getTypeName=function(){return"fakePlaylist"};
var bh8=function(){cA.apply(this,arguments)};
_.l(bh8,cA);bh8.prototype.getAssociations=function(){var M=[];this.delegate.parentPlaylist&&M.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var q=_.k(this.delegate.entries),G=q.next();!G.done;G=q.next())M.push.apply(M,_.Ui((new US2(G.value)).getAssociations()));return[].concat(_.Ui(new Set(M)))};
bh8.prototype.getTypeName=function(){return"fakePlaylistEntryCollection"};
var US2=function(){iU.apply(this,arguments)};
_.l(US2,iU);US2.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);return[].concat(_.Ui(new Set(M)))};var xSJ=function(){cA.apply(this,arguments)};
_.l(xSJ,cA);xSJ.prototype.getAssociations=function(){var M=[];this.delegate.descriptionEntity&&M.push(this.delegate.descriptionEntity);this.delegate.creators&&M.push.apply(M,_.Ui(this.delegate.creators));this.delegate.theBiggestFan&&M.push(this.delegate.theBiggestFan);return[].concat(_.Ui(new Set(M)))};
xSJ.prototype.getTypeName=function(){return"fakeVideo"};
var znP=function(){cA.apply(this,arguments)};
_.l(znP,cA);znP.prototype.getAssociations=function(){return[]};
znP.prototype.getTypeName=function(){return"fakeVideoDescription"};var mSx=new _.e0("fantasyRosterViewModel");var SZM=new _.e0("addFollowUpSurveyCommand");var TQf=new _.e0("getSurveyCommand");var rtJ=new _.e0("ratingSurveyOptionRenderer");_.tM=new _.e0("feedbackEndpoint");var j39=new _.e0("reportHistoryTableCellRenderer"),VvP=new _.e0("reportHistoryTableTextCellRenderer"),Rnd=new _.e0("reportHistoryTableReasonCellRenderer");_.f4$=new _.e0("flagEndpoint");_.Fx8=new _.e0("flowNextStepCommand");_.HhM=new _.e0("flowPrevStepCommand");var end=new _.e0("getFlowCommand");var $SI=new _.e0("submitFormWithValidationFlowCommand");_.sDd=new _.e0("updateFlowCommand");var MNx=function(){cA.apply(this,arguments)};
_.l(MNx,cA);MNx.prototype.getAssociations=function(){return[]};
MNx.prototype.getTypeName=function(){return"flowStateEntity"};var q7l=new _.e0("flowFormState");_.Dw=new _.e0("flowStepRenderer");var GXJ=new _.e0("gameCardRenderer");var KzI=new _.e0("accountLinkingStateChangedCommand");var nN$=function(){cA.apply(this,arguments)};
_.l(nN$,cA);nN$.prototype.getAssociations=function(){return[]};
nN$.prototype.getTypeName=function(){return"accountLinkStatusEntity"};var ENS=new _.e0("changeMiniAppPlayStateCommand");var Nip=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Nip,_.kC);var uU=[1,2,3];var kXv=[0,uU,tRl,_.S$,yE$];var pAP=_.t9(Nip,kXv),yr2=_.wW(kXv);var Lzx=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Lzx,_.kC);var Y7x=[0,_.Dh,_.x1];var Wzl=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Wzl,_.kC);var Arl=[0,_.x1,_.Dh,-1];var Jr=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Jr,_.kC);var dCI=_.wW([0,1,Y7x,_.RT,Arl]);var vNP=new _.e0("miniAppScoreChallengeViewModel");var hbB=new _.e0("miniGameCardViewModel");var tNB=new _.e0("teaserCardViewModel");var O1d=function(){cA.apply(this,arguments)};
_.l(O1d,cA);O1d.prototype.getAssociations=function(){return[]};
O1d.prototype.getTypeName=function(){return"logoEntity"};var wAx=new _.e0("feedbackItemRenderer");var CU$=function(){cA.apply(this,arguments)};
_.l(CU$,cA);CU$.prototype.getAssociations=function(){return[]};
CU$.prototype.getTypeName=function(){return"interstitialInteractionStateEntity"};_.awp=new _.e0("playerInterstitialRenderer");var oNx=new _.e0("getKidsBlocklistPickerCommand");_.lwv=new _.e0("updateKidsBlacklistEndpoint");_.oU=new _.e0("likeEndpoint");var XAf,PUd,i1d;XAf=new _.e0("addChatItemAction");PUd=new _.e0("removeChatItemAction");i1d=new _.e0("markChatItemAsDeletedAction");_.cr2=new _.e0("setLiveChatCollapsedStateAction");var gN9=function(){cA.apply(this,arguments)};
_.l(gN9,cA);gN9.prototype.getAssociations=function(){return[]};
gN9.prototype.getTypeName=function(){return"liveChatPollStateEntity"};var Bi9=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Bi9,_.kC);Bi9.prototype.getPayloadCase=function(){return _.yj(this,QDp)};
var QDp=[3,4];var IwS=[0,_.Tm,[0,[1,2],_.S$,_.rl,[0,_.m6,1,_.m6]]];var DC2=[0,_.x1,-1];var u7P=[0,[1],_.S$];var Zw=[0,[1,2],_.S$,_.rl,[0,_.RT]];var bU=[0,_.x1];var JrM=[0,[0,_.bZ,_.Zh,[0,_.m6,_.fu,_.m6]],1,[0,_.bZ]];var Z1B=[0,uZ];var b1l=[0,uZ];var UCP=[0,b1l,Z1B];var xCS=[0,_.Tm,[0,[1,2],_.S$,-1],_.bZ];var zb9=[0,[2],1,_.rl,[0,_.m6,-1,xCS]];var mCx=[0,[1],_.rl,[0,_.m6,_.x1,_.fu,1,xCS]];var S7B=[0,_.Zh,-1,pI$,_.RT];var Ti$=[0,[0,IT,-3],-4];var U7=[0,_.bZ,-3,_.x1,_.bZ,_.Hp,_.bZ,IwS,_.bZ,-2];var xN=[0,_.Tm,[0,[1,2],_.S$,-1],_.bZ,_.x1];var rrv=[0,[3],Zw,[0,[2,3,4],og$,_.S$,-2],_.rl,[0,_.x1],_.Dh];var jD$=[0,[3,5],_.x1,_.JD,_.rl,[0,1,_.Dh,_.RT],_.RT,_.rl,[0,_.RT,_.Dh]];var VNv=[0,2,_.JD,_.x1,-1];var RbS=[0,vgM];var fwB=[0,[3,4],2,YLB,_.S$,_.x1];var Fz9=[0,_.RT,-2,1,_.x1];var H1I=[0,_.x1,-1,_.RT];var eb9=[0,bU,function(){return zX},
bU,_.x1],$Cd=[0,_.RT,bU,Zw,function(){return zX},
_.x1],zX=[-160,{},[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],bU,_.JD,[0,_.bZ,1,_.bZ,1,_.bZ,1,_.RT,-1,bU],[0,1,_.bZ,2,_.bZ,_.RT,_.bZ],1,_.JD,-1,_.x1,_.JD,2,IT,[0,IT,_.JD],_.x1,1,JrM,1,Zw,_.Hp,1,[0,[0,_.Tm,[0,_.x1,_.bZ,_.RT]]],[0,_.bZ,[0,_.Dh,[0,_.fu]],_.Dh,1,[0,AEx,-1]],_.x1,[0,1,_.x1],76,_.rl,[0,Zw,xN,JrM,1,[0,_.Tm,xN]],1,_.rl,[0,Zw,_.x1,_.bZ],
_.rl,[0,Zw,u7P],_.rl,[0,Zw,u7P,_.JD],_.rl,[0,Zw,u7P],_.rl,[0,Zw,_.Tm,bU,Zw,OnP],_.rl,[0,Zw,bU,_.x1],_.rl,[0,Zw,_.bZ,U7,-1,_.bZ],4,_.rl,[0,Zw,_.bZ,_.JD,U7,_.bZ],_.rl,[0,[4,9],Zw,_.RT,_.JD,_.S$,xN,1,JrM,_.x1,_.S$,Fz9],_.rl,[0,Zw,bU,Zw,_.RT,_.x1],_.rl,[0,_.bZ,Zw,U7,_.bZ,_.x1],_.rl,[0,Zw,bU,Zw,_.RT,_.x1],1,_.rl,[0,Zw,_.RT,_.x1,U7],_.rl,[0,Zw,_.RT,[0,_.x1,_.JD],_.x1,_.JD,_.x1,_.Vj,-2,3,H1I,_.Tm,H1I,H1I,Fz9],_.rl,[0,Zw,_.RT,mCx,_.Tm,[0,b1l,zb9],bU,_.Tm,UCP,_.x1,1,_.RT,S7B,Ti$,ksx,-1],_.rl,[0,Zw,[0,_.fu,
-1,mCx,_.Tm,[0,b1l,zb9,Z1B],[0,_.eW],1,_.m6],bU,_.x1],_.rl,[0,Zw,xN,_.x1,[0,_.Zh]],_.rl,function(){return $Cd},
_.rl,[0,Zw,_.JD,_.x1,-1,_.bZ],_.rl,[0,[6,7],Zw,_.Tm,VNv,_.RT,xN,1,_.rl,fwB,_.rl,RbS],_.rl,[0,_.Tm,VNv,_.RT,_.bZ],_.rl,[0,_.x1,tGP,-1],_.rl,[0,bU,_.Tm,UCP,_.x1],_.rl,[0,Zw,bU,_.x1],_.rl,[0,_.Vj,_.x1],_.rl,[0,DC2],_.rl,[0,DC2],_.rl,[0,xN],_.rl,[0,bU,xN],_.rl,function(){return eb9},
_.rl,[0,bU,_.x1],_.rl,[0,bU,_.x1],1,_.rl,[0,_.bZ,Zw,U7,_.bZ,U7],_.rl,[0,_.eW],1,_.rl,[0],1,_.rl,[0,bU,_.RT,Zw,_.RT],_.rl,[0,[1,2],_.rl,fwB,_.rl,RbS,_.JD],_.rl,[0,_.eW,xN,jD$,_.x1,_.JD],_.rl,[0,jD$,_.x1,_.JD],_.rl,[0,S7B,xN,_.bZ,Ti$],_.rl,rrv,_.rl,[0],_.rl,[0,_.x1,-1,_.Dh],_.rl,[0,bU,_.x1],_.rl,[0,rrv,_.Dh,_.x1],_.rl,[0,Zw,U7,_.bZ],_.rl,[0,Zw,U7,_.bZ],_.rl,[0,S7B,Ti$,xN,_.Hp,_.bZ,ksx,-1],_.rl,[0,Zw,U7,_.bZ]];var sQf=[0,_.Tm,zX];var M6J=_.t9(Bi9,[0,QDp,1,_.Dh,_.rl,[0,[18,22,24],sQf,3,[0,sQf],1,_.Dh,[0,_.Tm,[0,_.JD,IT],_.JD],1,zX,-1,[0,_.Uv,-2,_.Hp,_.Uv,-1,_.Hp,_.Uv,IwS,_.Uv,-2],Egl,[!0,_.x1,[0,u7P,2,_.x1,_.JD,_.bZ,2,_.x1,_.Vj]],[0,[1,2,3],[5,6],_.rl,[0,_.m6],_.rl,[0,_.m6,-1],_.rl,[0,_.m6],1,_.rl,DC2,_.rl,[0,_.x1]],[0,zX,-1],_.eW,zX,_.rl,zX,[0,sQf],_.Dh,zX,_.rl,zX,_.x1,_.rl,zX],_.rl,Zld,_.Dh]);var qj2=new _.e0("liveChatEndpoint");var Gkx=new _.e0("liveChatItemContextMenuEndpoint");var Kq9=new _.e0("liveChatReplayEndpoint");_.nxx=new _.e0("emojiPickerRenderer");var Exd=new _.e0("liveChatAuthorBadgeViewModel");var NTP=new _.e0("deleteLiveChatMessageCommand");var kkM=new _.e0("liveChatActionEndpoint");var pgI=new _.e0("createLiveChatPollEndpoint");var y12=new _.e0("manageLiveChatUserEndpoint");var LqI=new _.e0("moderateLiveChatEndpoint");_.Yjv=new _.e0("sendLiveChatMessageEndpoint");var WqS=new _.e0("sendLiveChatVoteEndpoint");var A18=new _.e0("clearLocationCommand");var d1$=new _.e0("resolveLocationCommand");var vxS=new _.e0("interactionLoggingCommandMetadata");var hXM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(hXM,_.kC);var t6I=function(M,q){return _.tu(M,1,q)};var ONJ=[0,_.bZ];var wgf=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(wgf,_.kC);var CuM=function(M,q){return gM(M,1,hXM,q)};wgf.prototype.JSC$12320_serializeBinary=jvu([0,_.Tm,ONJ]);var wns={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 aMJ={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"},
ox2={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 MJD={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"};_.VxF=new _.e0("logFlowLoggingEventCommand");_.EE=new _.e0("loggingContext");var lMJ=new _.e0("audioTrackSelectActionCommand");var Xg2=new _.e0("captionLanguageSelectActionCommand");var PuI=new _.e0("showAudioTrackPickerActionCommand");var iNS=new _.e0("showCaptionLanguageSelectActionCommand");var c1I=new _.e0("dismissDialogEndpoint");var gxP=new _.e0("dismissPlayerOverlayCommand");var BTP=new _.e0("hideItemSectionVideosByIdCommand");var QQd=new _.e0("showMiniplayerCommand");var IM$=function(){cA.apply(this,arguments)};
_.l(IM$,cA);IM$.prototype.getAssociations=function(){return[]};
IM$.prototype.getTypeName=function(){return"downloadQualityPickerEntity"};var D1P=function(){cA.apply(this,arguments)};
_.l(D1P,cA);D1P.prototype.getAssociations=function(){return[]};
D1P.prototype.getTypeName=function(){return"downloadStatusEntity"};var u3S=function(){cA.apply(this,arguments)};
_.l(u3S,cA);u3S.prototype.getAssociations=function(){return[]};
u3S.prototype.getTypeName=function(){return"downloadsPageRefreshTokenEntity"};var J1v=function(){cA.apply(this,arguments)};
_.l(J1v,cA);J1v.prototype.getAssociations=function(){var M=[];this.delegate.downloadsList&&M.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&M.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&M.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&M.push(this.delegate.refresh);return[].concat(_.Ui(new Set(M)))};
J1v.prototype.getTypeName=function(){return"mainDownloadsLibraryEntity"};var ZNJ=function(){cA.apply(this,arguments)};
_.l(ZNJ,cA);ZNJ.prototype.getAssociations=function(){var M=[];this.delegate.refresh&&M.push(this.delegate.refresh);if(this.delegate.downloads)for(var q=_.k(this.delegate.downloads),G=q.next();!G.done;G=q.next())M.push.apply(M,_.Ui((new bNJ(G.value)).getAssociations()));return[].concat(_.Ui(new Set(M)))};
ZNJ.prototype.getTypeName=function(){return"mainDownloadsListEntity"};
var bNJ=function(){iU.apply(this,arguments)};
_.l(bNJ,iU);bNJ.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.playlist&&M.push(this.delegate.playlist);this.delegate.videoItem&&M.push(this.delegate.videoItem);this.delegate.playlistItem&&M.push(this.delegate.playlistItem);return[].concat(_.Ui(new Set(M)))};var U1x=function(){cA.apply(this,arguments)};
_.l(U1x,cA);U1x.prototype.getAssociations=function(){var M=[];this.delegate.localImageEntities&&M.push.apply(M,_.Ui(this.delegate.localImageEntities));return[].concat(_.Ui(new Set(M)))};
U1x.prototype.getTypeName=function(){return"mainPlaylistDownloadStateEntity"};var x1J=function(){cA.apply(this,arguments)};
_.l(x1J,cA);x1J.prototype.getAssociations=function(){var M=[];this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.localImageEntities&&M.push.apply(M,_.Ui(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Ui(new Set(M)))};
x1J.prototype.getTypeName=function(){return"mainVideoDownloadStateEntity"};var zX2=function(){cA.apply(this,arguments)};
_.l(zX2,cA);zX2.prototype.getAssociations=function(){return[]};
zX2.prototype.getTypeName=function(){return"offlineabilityEntity"};var m1J=function(){cA.apply(this,arguments)};
_.l(m1J,cA);m1J.prototype.getAssociations=function(){var M=[];this.delegate.fakeChildren&&M.push.apply(M,_.Ui(this.delegate.fakeChildren));return[].concat(_.Ui(new Set(M)))};
m1J.prototype.getTypeName=function(){return"orchestrationWebSamplingEntity"};var SjJ=function(){cA.apply(this,arguments)};
_.l(SjJ,cA);SjJ.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&M.push(this.delegate.offlineVideoPolicy);return[].concat(_.Ui(new Set(M)))};
SjJ.prototype.getTypeName=function(){return"ytMainDownloadedVideoEntity"};var TT9=function(){cA.apply(this,arguments)};
_.l(TT9,cA);TT9.prototype.getAssociations=function(){return[]};
TT9.prototype.getTypeName=function(){return"continuationTokenEntity"};var r19=function(){cA.apply(this,arguments)};
_.l(r19,cA);r19.prototype.getAssociations=function(){var M=[];this.delegate.channelOwner&&M.push(this.delegate.channelOwner);this.delegate.videos&&M.push.apply(M,_.Ui(this.delegate.videos));this.delegate.collaboratorChannels&&M.push.apply(M,_.Ui(this.delegate.collaboratorChannels));this.delegate.downloadState&&M.push(this.delegate.downloadState);this.delegate.refresh&&M.push(this.delegate.refresh);return[].concat(_.Ui(new Set(M)))};
r19.prototype.getTypeName=function(){return"mainPlaylistEntity"};var jQl=function(){cA.apply(this,arguments)};
_.l(jQl,cA);jQl.prototype.getAssociations=function(){var M=[];this.delegate.video&&M.push(this.delegate.video);this.delegate.channelContributor&&M.push(this.delegate.channelContributor);return[].concat(_.Ui(new Set(M)))};
jQl.prototype.getTypeName=function(){return"mainPlaylistVideoEntity"};var V69=function(){iU.apply(this,arguments)};
_.l(V69,iU);V69.prototype.getAssociations=function(){var M=[];this.delegate.recommendedVideoMetadata&&M.push.apply(M,_.Ui((new RX9(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Ui(new Set(M)))};
var RX9=function(){iU.apply(this,arguments)};
_.l(RX9,iU);RX9.prototype.getAssociations=function(){var M=[];this.delegate.localImageEntities&&M.push.apply(M,_.Ui(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Ui(new Set(M)))};var fM8=function(){iU.apply(this,arguments)};
_.l(fM8,iU);fM8.prototype.getAssociations=function(){var M=[];this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);return[].concat(_.Ui(new Set(M)))};var Fqf=function(){cA.apply(this,arguments)};
_.l(Fqf,cA);Fqf.prototype.getAssociations=function(){var M=[];this.delegate.owner&&M.push(this.delegate.owner);this.delegate.downloadState&&M.push(this.delegate.downloadState);this.delegate.userState&&M.push.apply(M,_.Ui((new fM8(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&M.push.apply(M,_.Ui((new V69(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Ui(new Set(M)))};
Fqf.prototype.getTypeName=function(){return"mainVideoEntity"};var HNv=function(){cA.apply(this,arguments)};
_.l(HNv,cA);HNv.prototype.getAssociations=function(){var M=[];this.delegate.userChannelDetails&&M.push(this.delegate.userChannelDetails);return[].concat(_.Ui(new Set(M)))};
HNv.prototype.getTypeName=function(){return"ytMainChannelEntity"};var eXv=function(){cA.apply(this,arguments)};
_.l(eXv,cA);eXv.prototype.getAssociations=function(){var M=[];this.delegate.channelOwner&&M.push(this.delegate.channelOwner);this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&M.push.apply(M,_.Ui(this.delegate.localImageEntities));this.delegate.downloadStatus&&M.push(this.delegate.downloadStatus);return[].concat(_.Ui(new Set(M)))};
eXv.prototype.getTypeName=function(){return"ytMainVideoEntity"};var tuF=new _.e0("downloadsPageSmartDownloadsOptInBannerParams");var aju=new _.e0("downloadsPageUpsellBannerParams");var $1I=function(){cA.apply(this,arguments)};
_.l($1I,cA);$1I.prototype.getAssociations=function(){return[]};
$1I.prototype.getTypeName=function(){return"downloadsPageViewConfigurationEntity"};var sqJ=function(){cA.apply(this,arguments)};
_.l(sqJ,cA);sqJ.prototype.getAssociations=function(){return[]};
sqJ.prototype.getTypeName=function(){return"likeButtonAnimationEntity"};var MpI=function(){cA.apply(this,arguments)};
_.l(MpI,cA);MpI.prototype.getAssociations=function(){return[]};
MpI.prototype.getTypeName=function(){return"macroMarkerEntity"};var q_$=function(){cA.apply(this,arguments)};
_.l(q_$,cA);q_$.prototype.getAssociations=function(){return[]};
q_$.prototype.getTypeName=function(){return"markersEngagementPanelSyncEntity"};var GDl=function(){cA.apply(this,arguments)};
_.l(GDl,cA);GDl.prototype.getAssociations=function(){return[]};
GDl.prototype.getTypeName=function(){return"markersVisibilityOverrideEntity"};var KZM=function(){cA.apply(this,arguments)};
_.l(KZM,cA);KZM.prototype.getAssociations=function(){return[]};
KZM.prototype.getTypeName=function(){return"playerStateEntity"};var nyM=function(){cA.apply(this,arguments)};
_.l(nyM,cA);nyM.prototype.getAssociations=function(){return[]};
nyM.prototype.getTypeName=function(){return"selectedChipIndexEntityPayload"};var Ey$=function(){cA.apply(this,arguments)};
_.l(Ey$,cA);Ey$.prototype.getAssociations=function(){return[]};
Ey$.prototype.getTypeName=function(){return"suggestedFeedbackChipStateEntity"};var N1l=function(){cA.apply(this,arguments)};
_.l(N1l,cA);N1l.prototype.getAssociations=function(){return[]};
N1l.prototype.getTypeName=function(){return"youchatPendingResponseEntity"};_.mz=new _.e0("dislikeButtonViewModel");_.SN=new _.e0("likeButtonViewModel");var kDx=new _.e0("videoSummaryContentViewModel");var pz2=new _.e0("videoSummaryParagraphViewModel");var y7d=new _.e0("changeTimelyActionVisibilityCommand");var LZl=new _.e0("hideEngagementPanelEndpoint");var Y_9=new _.e0("refreshPanelEndpoint");var WZf=new _.e0("scrollToSectionEndpoint");var A7S=new _.e0("seekToVideoTimestampCommand");_.hM=new _.e0("showEngagementPanelEndpoint");var d5M=new _.e0("showTransientPlayerScrimOverlayCommand");var vyf=new _.e0("toggleEngagementPanelCommand");_.hJP=new _.e0("createBroadcastCommand");var tpl=new _.e0("metadataUpdateCommand");var OVS=function(){cA.apply(this,arguments)};
_.l(OVS,cA);OVS.prototype.getAssociations=function(){return[]};
OVS.prototype.getTypeName=function(){return"featuredProductsEntity"};var wz9=function(){cA.apply(this,arguments)};
_.l(wz9,cA);wz9.prototype.getAssociations=function(){return[]};
wz9.prototype.getTypeName=function(){return"pinnedProductEntity"};var CWd=function(){cA.apply(this,arguments)};
_.l(CWd,cA);CWd.prototype.getAssociations=function(){return[]};
CWd.prototype.getTypeName=function(){return"trendingOfferEntity"};_.aIv=new _.e0("merchandiseShelfRenderer");var oy2=new _.e0("shoppingContentLineItemViewModel");var lIl=new _.e0("gridMovieRenderer");_.Xz2=new _.e0("movieRenderer");var PW8=function(){cA.apply(this,arguments)};
_.l(PW8,cA);PW8.prototype.getAssociations=function(){return[]};
PW8.prototype.getTypeName=function(){return"compositeSourceEntity"};var iV$=function(){cA.apply(this,arguments)};
_.l(iV$,cA);iV$.prototype.getAssociations=function(){var M=[];this.delegate.compositeSourceKeys&&M.push.apply(M,_.Ui(this.delegate.compositeSourceKeys));return[].concat(_.Ui(new Set(M)))};
iV$.prototype.getTypeName=function(){return"multiviewStagingEntity"};var c79=function(){cA.apply(this,arguments)};
_.l(c79,cA);c79.prototype.getAssociations=function(){var M=[];this.delegate.trackDownloadMetadatas&&M.push.apply(M,_.Ui(this.delegate.trackDownloadMetadatas));return[].concat(_.Ui(new Set(M)))};
c79.prototype.getTypeName=function(){return"musicAlbumReleaseDownloadMetadataEntity"};var gy8=function(){cA.apply(this,arguments)};
_.l(gy8,cA);
gy8.prototype.getAssociations=function(){var M=[];this.delegate.downloadedTracks&&M.push.apply(M,_.Ui(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&M.push.apply(M,_.Ui(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&M.push.apply(M,_.Ui(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&M.push.apply(M,_.Ui(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&M.push.apply(M,_.Ui(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
M.push.apply(M,_.Ui(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&M.push.apply(M,_.Ui(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&M.push.apply(M,_.Ui(this.delegate.metadataOnlyTracks));return[].concat(_.Ui(new Set(M)))};
gy8.prototype.getTypeName=function(){return"musicDownloadsLibraryEntity"};var B1$=function(){cA.apply(this,arguments)};
_.l(B1$,cA);B1$.prototype.getAssociations=function(){var M=[];this.delegate.trackDownloadMetadatas&&M.push.apply(M,_.Ui(this.delegate.trackDownloadMetadatas));return[].concat(_.Ui(new Set(M)))};
B1$.prototype.getTypeName=function(){return"musicPlaylistDownloadMetadataEntity"};var Qqf=function(){cA.apply(this,arguments)};
_.l(Qqf,cA);Qqf.prototype.getAssociations=function(){var M=[];this.delegate.playbackData&&M.push(this.delegate.playbackData);this.delegate.localImageEntities&&M.push.apply(M,_.Ui(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Ui(new Set(M)))};
Qqf.prototype.getTypeName=function(){return"musicTrackDownloadMetadataEntity"};var IIl=function(){cA.apply(this,arguments)};
_.l(IIl,cA);
IIl.prototype.getAssociations=function(){var M=[];this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&M.push.apply(M,_.Ui(this.delegate.primaryArtists));this.delegate.details&&M.push(this.delegate.details);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.tracks&&M.push.apply(M,_.Ui(this.delegate.tracks));this.delegate.share&&M.push(this.delegate.share);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.refresh&&
M.push(this.delegate.refresh);return[].concat(_.Ui(new Set(M)))};
IIl.prototype.getTypeName=function(){return"musicAlbumRelease"};
var D5J=function(){cA.apply(this,arguments)};
_.l(D5J,cA);D5J.prototype.getAssociations=function(){var M=[];this.delegate.albumRelease&&M.push(this.delegate.albumRelease);this.delegate.tracks&&M.push.apply(M,_.Ui(this.delegate.tracks));return[].concat(_.Ui(new Set(M)))};
D5J.prototype.getTypeName=function(){return"musicAlbumReleaseDetail"};
var ut$=function(){cA.apply(this,arguments)};
_.l(ut$,cA);ut$.prototype.getAssociations=function(){var M=[];this.delegate.albumRelease&&M.push(this.delegate.albumRelease);return[].concat(_.Ui(new Set(M)))};
ut$.prototype.getTypeName=function(){return"musicAlbumReleaseUserDetail"};var J7x=function(){cA.apply(this,arguments)};
_.l(J7x,cA);J7x.prototype.getAssociations=function(){var M=[];this.delegate.details&&M.push(this.delegate.details);this.delegate.userDetails&&M.push(this.delegate.userDetails);return[].concat(_.Ui(new Set(M)))};
J7x.prototype.getTypeName=function(){return"musicArtist"};
var ZVd=function(){cA.apply(this,arguments)};
_.l(ZVd,cA);ZVd.prototype.getAssociations=function(){var M=[];this.delegate.parentArtist&&M.push(this.delegate.parentArtist);return[].concat(_.Ui(new Set(M)))};
ZVd.prototype.getTypeName=function(){return"musicArtistDetail"};
var bVx=function(){cA.apply(this,arguments)};
_.l(bVx,cA);bVx.prototype.getAssociations=function(){var M=[];this.delegate.parentArtist&&M.push(this.delegate.parentArtist);return[].concat(_.Ui(new Set(M)))};
bVx.prototype.getTypeName=function(){return"musicArtistUserDetail"};var U5v=function(){cA.apply(this,arguments)};
_.l(U5v,cA);U5v.prototype.getAssociations=function(){return[]};
U5v.prototype.getTypeName=function(){return"musicLibraryEdit"};var x59=function(){cA.apply(this,arguments)};
_.l(x59,cA);x59.prototype.getAssociations=function(){return[]};
x59.prototype.getTypeName=function(){return"musicLibraryStatusEntity"};var zJl=function(){cA.apply(this,arguments)};
_.l(zJl,cA);
zJl.prototype.getAssociations=function(){var M=[];this.delegate.tracks&&M.push.apply(M,_.Ui(this.delegate.tracks));this.delegate.refresh&&M.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&M.push(this.delegate.details);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&M.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.entryCollection&&
M.push(this.delegate.entryCollection);this.delegate.share&&M.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&M.push.apply(M,_.Ui((new m5B(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Ui(new Set(M)))};
zJl.prototype.getTypeName=function(){return"musicPlaylist"};
var m5B=function(){iU.apply(this,arguments)};
_.l(m5B,iU);m5B.prototype.getAssociations=function(){var M=[];this.delegate.creatorEntity&&M.push(this.delegate.creatorEntity);return[].concat(_.Ui(new Set(M)))};var S_v=function(){cA.apply(this,arguments)};
_.l(S_v,cA);S_v.prototype.getAssociations=function(){return[]};
S_v.prototype.getTypeName=function(){return"musicShare"};var T1v=function(){cA.apply(this,arguments)};
_.l(T1v,cA);
T1v.prototype.getAssociations=function(){var M=[];this.delegate.musicLibraryStatusEntity&&M.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&M.push.apply(M,_.Ui(this.delegate.artists));this.delegate.audioModeVersion&&M.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&M.push(this.delegate.videoModeVersion);this.delegate.userDetails&&M.push(this.delegate.userDetails);this.delegate.details&&M.push(this.delegate.details);this.delegate.albumRelease&&M.push(this.delegate.albumRelease);this.delegate.share&&
M.push(this.delegate.share);this.delegate.libraryEdit&&M.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&M.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&M.push(this.delegate.playbackPosition);this.delegate.lyrics&&M.push(this.delegate.lyrics);return[].concat(_.Ui(new Set(M)))};
T1v.prototype.getTypeName=function(){return"musicTrack"};
var r72=function(){cA.apply(this,arguments)};
_.l(r72,cA);r72.prototype.getAssociations=function(){var M=[];this.delegate.parentTrack&&M.push(this.delegate.parentTrack);return[].concat(_.Ui(new Set(M)))};
r72.prototype.getTypeName=function(){return"musicTrackDetail"};
var jqv=function(){cA.apply(this,arguments)};
_.l(jqv,cA);jqv.prototype.getAssociations=function(){var M=[];this.delegate.parentTrack&&M.push(this.delegate.parentTrack);return[].concat(_.Ui(new Set(M)))};
jqv.prototype.getTypeName=function(){return"musicTrackUserDetail"};var D$=new _.e0("musicResponsiveListItemRenderer");var Zry=new _.e0("addToPlaylistEndpoint");var VpI=new _.e0("captionPickerEndpoint");var RJI=new _.e0("suggestStats");var fIP=new _.e0("backstageImageUploadEndpoint");var FZ8=new _.e0("createBackstagePostDialogEndpoint");_.HVS=new _.e0("createCommentReplyDialogEndpoint");_.eJ2=new _.e0("updateCommentDialogEndpoint");_.$59=new _.e0("updateCommentReplyDialogEndpoint");var sGd=new _.e0("menuEndpoint");var Ofj=new _.e0("modalEndpoint");var MuI=new _.e0("playlistEditorEndpoint");var qH8=new _.e0("copyTextEndpoint");var Gz2,KQ$;Gz2=new _.e0("shareEndpoint");KQ$=new _.e0("shareEntityEndpoint");_.nv$=new _.e0("shareEntityServiceEndpoint");_.Pr4=new _.e0("userFeedbackEndpoint");_.Jl=new _.e0("watchEndpoint");var kWF=new _.e0("watchPlaylistEndpoint");var EvI=new _.e0("addUpcomingEventReminderEndpoint");_.TX=new _.e0("getCommentsFromInboxCommand");var NgM=new _.e0("notificationOptOutEndpoint");var kzd=new _.e0("recordNotificationInteractionsEndpoint");var pfI=new _.e0("removeUpcomingEventReminderEndpoint");var uyD=new _.e0("getDownloadActionCommand");_.yvp=new _.e0("offlineOrchestrationActionCommand");var LQ$=function(){cA.apply(this,arguments)};
_.l(LQ$,cA);LQ$.prototype.getAssociations=function(){return[]};
LQ$.prototype.getTypeName=function(){return"captionTrack"};var YHx=function(){cA.apply(this,arguments)};
_.l(YHx,cA);YHx.prototype.getAssociations=function(){return[]};
YHx.prototype.getTypeName=function(){return"offlineOrchestrationActionWrapperEntity"};var WQ8=function(){cA.apply(this,arguments)};
_.l(WQ8,cA);WQ8.prototype.getAssociations=function(){return[]};
WQ8.prototype.getTypeName=function(){return"offlineVideoPolicy"};var AvB=function(){cA.apply(this,arguments)};
_.l(AvB,cA);AvB.prototype.getAssociations=function(){return[]};
AvB.prototype.getTypeName=function(){return"offlineVideoStreams"};var dt8=function(){cA.apply(this,arguments)};
_.l(dt8,cA);dt8.prototype.getAssociations=function(){var M=[];this.delegate.transfer&&M.push(this.delegate.transfer);this.delegate.adsPlaybackData&&M.push.apply(M,_.Ui(this.delegate.adsPlaybackData));this.delegate.drmLicense&&M.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&M.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&M.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Ui(new Set(M)))};
dt8.prototype.getTypeName=function(){return"playbackData"};var vvd=function(){cA.apply(this,arguments)};
_.l(vvd,cA);vvd.prototype.getAssociations=function(){return[]};
vvd.prototype.getTypeName=function(){return"refresh"};var hCS=function(){cA.apply(this,arguments)};
_.l(hCS,cA);hCS.prototype.getAssociations=function(){var M=[];this.delegate.offlineVideoStreams&&M.push.apply(M,_.Ui(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&M.push.apply(M,_.Ui(this.delegate.captionTrack));return[].concat(_.Ui(new Set(M)))};
hCS.prototype.getTypeName=function(){return"transfer"};var tu8=function(){cA.apply(this,arguments)};
_.l(tu8,cA);tu8.prototype.getAssociations=function(){return[]};
tu8.prototype.getTypeName=function(){return"videoDownloadContextEntity"};var O3f=new _.e0("showMoreDrawerCommand");var wf$=new _.e0("updateEngagementPanelContentCommand");var CAl=new _.e0("getPdgBuyFlowCommand");var ajf=new _.e0("liveChatPurchaseMessageEndpoint");var ovP=new _.e0("openSuperStickerBuyFlowCommand");var lj2=new _.e0("updatePdgFeatureEnablementCommand");var Xfp=function(){cA.apply(this,arguments)};
_.l(Xfp,cA);Xfp.prototype.getAssociations=function(){return[]};
Xfp.prototype.getTypeName=function(){return"liveViewerLeaderboardChatEntryPointStateEntity"};var PAf=function(){cA.apply(this,arguments)};
_.l(PAf,cA);PAf.prototype.getAssociations=function(){return[]};
PAf.prototype.getTypeName=function(){return"liveViewerLeaderboardPointsEntity"};_.i3v=new _.e0("pdgCommentChipRenderer");_.cv2=new _.e0("permissionRoleBottomBarRenderer");_.gvM=new _.e0("updatePermissionRoleCommand");var Bg9=new _.e0("prefetchWatchCommand");var QGv=new _.e0("updatePlayerErrorMessageCommand");var Pvu=new _.e0("toggleCaptionsVisibilityCommand");_.Ijd=new _.e0("quickActionsViewModel");var DtI=new _.e0("playerResponse");var u$9=new _.e0("playlistRenderer");_.Jvv=new _.e0("playlistVideoListRenderer");_.ri=new _.e0("playlistEditEndpoint");var Z3d=new _.e0("createImagePollCommand");var b3f=new _.e0("createQuizCommand");var Utf=new _.e0("quizRenderer");var xtf=new _.e0("uploadedVideoRenderer");var zCM=new _.e0("decorateMessageEndpoint");var mtS=new _.e0("lpOfferCardOptionViewModel");var SHx=new _.e0("sfvAudioItemPlaybackCommand");var Tgd=function(){cA.apply(this,arguments)};
_.l(Tgd,cA);Tgd.prototype.getAssociations=function(){return[]};
Tgd.prototype.getTypeName=function(){return"sfvAudioItemCurrentlyPlayingEntity"};_.jN=new _.e0("reelNonVideoContentEndpoint");_.p_=new _.e0("reelWatchEndpoint");_.VL=new _.e0("reelItemRenderer");var rv2=new _.e0("reelMetapanelViewModel");_.RD=new _.e0("reelNonVideoContentRenderer");_.jGv=new _.e0("reelPlayerOverlayRenderer");var Vul=new _.e0("shortsLockupViewModel");var RCJ=new _.e0("sponsorButtonViewModel");var fj2=new _.e0("reelItemWatchResponse");var FQl=new _.e0("textBadgeRenderer");_.f1=new _.e0("buttonRenderer");_.F7=new _.e0("toggleButtonRenderer");var SRj=new _.e0("switchButtonViewModel");_.H3I=new _.e0("confirmDialogRenderer");var eCJ;eCJ=new _.e0("menuRenderer");_.$tf=new _.e0("menuFlexibleItemRenderer");var sBS=new _.e0("pollRenderer");_.Mrx=new _.e0("backgroundPromoRenderer");var GU8;_.qOx=new _.e0("chipCloudRenderer");GU8=new _.e0("chipCloudChipRenderer");var Krl=new _.e0("dropdownRenderer");var nS9=new _.e0("gridVideoRenderer");_.ESB=new _.e0("itemSectionRenderer");_.NJd=new _.e0("messageRenderer");var kUd=new _.e0("sortFilterHeaderRenderer");_.HA=new _.e0("videoRenderer");var pJl=new _.e0("resolveUrlCommandMetadata");var yVP=function(){cA.apply(this,arguments)};
_.l(yVP,cA);yVP.prototype.getAssociations=function(){return[]};
yVP.prototype.getTypeName=function(){return"saveToPlaylistListEntity"};_.Lr8=new _.e0("getAnswerCommand");_.Ep=new _.e0("searchEndpoint");var YOS=new _.e0("genAiRichTextViewModel");var D2y=new _.e0("overviewAnswerViewModel");var Wr2=new _.e0("videoOverviewViewModel");var AVl=new _.e0("addToPlaylistServiceEndpoint");var dIS=new _.e0("clearSearchHistoryEndpoint");var vSP=new _.e0("clearWatchHistoryEndpoint");var h6S=new _.e0("webSerializedServiceEndpointExtension");_.trI=new _.e0("createCommentEndpoint");var OCf=new _.e0("createCommentReplyEndpoint");var wJS=new _.e0("performCommentActionEndpoint");var C39=new _.e0("updateCommentEndpoint");var a6M=new _.e0("updateCommentReplyEndpoint");_.eN=new _.e0("createPlaylistServiceEndpoint");var oS2=new _.e0("deletePlaylistEndpoint");var l6I=new _.e0("deleteVideoEndpoint");var JBj=new _.e0("getReportFormEndpoint");var XJd=new _.e0("modifyChannelNotificationPreferenceEndpoint");var Vqu;_.E0=new _.e0("offlinePlaylistEndpoint");Vqu={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 Rjw;_.KL=new _.e0("offlineVideoEndpoint");Rjw={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 P38=new _.e0("pingingEndpoint");_.iC9=new _.e0("selectActiveIdentityEndpoint");var cV9=new _.e0("setSettingEndpoint");var Ljw=new _.e0("undoFeedbackEndpoint");var gSM=new _.e0("unsubscribeEndpoint");_.BJP=new _.e0("updatedMetadataEndpoint");var QB9=function(){cA.apply(this,arguments)};
_.l(QB9,cA);QB9.prototype.getAssociations=function(){return[]};
QB9.prototype.getTypeName=function(){return"settingEntity"};_.I6v=new _.e0("updateLocalAppSettingCommand");var DI8=new _.e0("saveImageToDeviceEndpoint");var uUx=new _.e0("shareImageCommand");var xJl=new _.e0("sharingProviderDataCommand");var zs8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(zs8,_.kC);var mJl=[0,_.x1,-1];zs8.prototype.JSC$12527_serializeBinary=jvu(mJl);var SW2=_.wW(mJl);var Tnx=new _.e0("userMentionSuggestionRenderer");var raJ=new _.e0("liveChatTunnelCommand");var jcd=new _.e0("showSponsorshipsGiftOfferDialogCommand");var VjP=new _.e0("sponsorshipsScrollableShelfViewModel");var RsS=new _.e0("updateUpcomingEventReminderButtonStateCommand");var fBJ=new _.e0("upcomingEventReminderButtonStateRenderer");var F$S=new _.e0("subscribeEndpoint");var HiM=new _.e0("registerTasksCommand");var esB=new _.e0("hideSheetCommand");var $Jd=new _.e0("hideSnackbarCommand");var s4P=new _.e0("showDialogCommand");_.Ayy=new _.e0("showSheetCommand");var Mfx=new _.e0("showSnackbarCommand");var q2I=function(){cA.apply(this,arguments)};
_.l(q2I,cA);q2I.prototype.getAssociations=function(){return[]};
q2I.prototype.getTypeName=function(){return"chipEntity"};var Gof=function(){cA.apply(this,arguments)};
_.l(Gof,cA);Gof.prototype.getAssociations=function(){return[]};
Gof.prototype.getTypeName=function(){return"dismissState"};_.aZ=new _.e0("avatarViewModel");var KF9=new _.e0("badgeViewModel");_.$N=new _.e0("buttonViewModel");_.sj=new _.e0("chipViewModel");var ka4=new _.e0("collectionThumbnailViewModel");var nLd=new _.e0("contentPreviewImageViewModel");var EL2=new _.e0("decoratedAvatarViewModel");_.Mni=new _.e0("engagementBarViewModel");_.Nsl=new _.e0("imageBannerViewModel");var ko9=new _.e0("lockupContentMetadataRowExtension");_.p5M=new _.e0("lockupMetadataViewModel");_.yR8=new _.e0("lockupViewModel");var LFx=new _.e0("avatarStackViewModel");_.Y2p=new _.e0("contentMetadataViewModel");var WFp=function(){cA.apply(this,arguments)};
_.l(WFp,cA);WFp.prototype.getAssociations=function(){return[]};
WFp.prototype.getTypeName=function(){return"pageHeaderEntity"};_.ARf=new _.e0("pageHeaderViewModel");var dB2=new _.e0("snackbarViewModel");var vLp=new _.e0("thumbnailHoverOverlayToggleActionsViewModel");_.M1=new _.e0("toggleButtonViewModel");var hmp=function(){cA.apply(this,arguments)};
_.l(hmp,cA);hmp.prototype.getAssociations=function(){return[]};
hmp.prototype.getTypeName=function(){return"votingEntity"};_.q8y=new _.e0("votingViewModel");var tfx=new _.e0("sectionHeaderViewModel");var ORJ=new _.e0("notifyDropdownOptionSelectedCommand");var dfs=new _.e0("listViewModel");_.Ye=new _.e0("listItemViewModel");var Nmj=new _.e0("toggleableListItemViewModel");var w5p=new _.e0("dialogHeaderViewModel");var C0S=function(){cA.apply(this,arguments)};
_.l(C0S,cA);C0S.prototype.getAssociations=function(){return[]};
C0S.prototype.getTypeName=function(){return"dataFreshnessEntity"};var PEj=new _.e0("suspenseViewModel");var ad8=new _.e0("tooltipViewModel");var oLI=function(){cA.apply(this,arguments)};
_.l(oLI,cA);oLI.prototype.getAssociations=function(){return[]};
oLI.prototype.getTypeName=function(){return"emojiCustomizationSetEntity"};var ldl=function(){cA.apply(this,arguments)};
_.l(ldl,cA);ldl.prototype.getAssociations=function(){return[]};
ldl.prototype.getTypeName=function(){return"emojiFountainDataEntity"};var X52=function(){cA.apply(this,arguments)};
_.l(X52,cA);X52.prototype.getAssociations=function(){return[]};
X52.prototype.getTypeName=function(){return"liveReactionsDataEntity"};_.P0P=new _.e0("transcriptSubmitCaptionCorrectionCommand");var iRv=function(){cA.apply(this,arguments)};
_.l(iRv,cA);iRv.prototype.getAssociations=function(){return[]};
iRv.prototype.getTypeName=function(){return"buttonEntity"};var NAs=new _.e0("unpluggedStringRunImage");var cRl=new _.e0("tabViewModel");var gLv=new _.e0("tabbedViewModel");var BsP=function(){cA.apply(this,arguments)};
_.l(BsP,cA);BsP.prototype.getAssociations=function(){return[]};
BsP.prototype.getTypeName=function(){return"videoPlaybackPositionEntity"};_.Q49=new _.e0("updateDescriptionAction");var Id$=new _.e0("updateToggleButtonTextAction");var DBx=new _.e0("showFullscreenPlayerControlsCommand");var uul=new _.e0("updateVideoMetadataCommand");_.JR8=new _.e0("autoplaySwitchButtonRenderer");var Cs;_.ZRS=new _.e0("multiMarkersPlayerBarRenderer");Cs=new _.e0("chapterRenderer");var bRM=new _.e0("heatMarkerRenderer");var auw=new _.e0("heatmapRenderer");var UBl=new _.e0("smartSkipPlayerScrimOverlayRenderer");var xB2=new _.e0("timedMarkerDecorationRenderer");var mvY=new _.e0("postWebToNativeMessageCommand");var Oz=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Oz,_.kC);Oz.prototype.getMethodName=function(){return _.hD(this,1)};var zm9=[0,_.x1,-2];Oz.prototype.JSC$12549_serializeBinary=jvu(zm9);var mBl=_.t9(Oz,zm9);var S2l=new _.e0("whitelistEditEndpoint");var TsP=new _.e0("clearUrlParamCommand");var rRd=new _.e0("commerceActionCommand");_.j4v=new _.e0("getPaymentInstrumentsParamsCommand");var Vfd=new _.e0("getPaymentsClientTokenCommand");var RmB=new _.e0("googlePaymentBillingCommand");var fdl=new _.e0("googlePaymentPurchaseManagerCommand");_.FFx=new _.e0("logGtmCommand");var HR9=new _.e0("updateCardItemOnClickCommand");_.emp=new _.e0("ypcPauseSubscriptionCommand");_.$Bd=new _.e0("ypcResumeSubscriptionCommand");var sx9=function(){cA.apply(this,arguments)};
_.l(sx9,cA);sx9.prototype.getAssociations=function(){return[]};
sx9.prototype.getTypeName=function(){return"commerceAcquisitionClientPayloadEntity"};var MLl=function(){cA.apply(this,arguments)};
_.l(MLl,cA);MLl.prototype.getAssociations=function(){return[]};
MLl.prototype.getTypeName=function(){return"commerceCartListEntity"};var qYp=function(){cA.apply(this,arguments)};
_.l(qYp,cA);qYp.prototype.getAssociations=function(){return[]};
qYp.prototype.getTypeName=function(){return"iconBadgeEntity"};var GWl=function(){cA.apply(this,arguments)};
_.l(GWl,cA);GWl.prototype.getAssociations=function(){return[]};
GWl.prototype.getTypeName=function(){return"pdpStateEntity"};var KUI=function(){cA.apply(this,arguments)};
_.l(KUI,cA);KUI.prototype.getAssociations=function(){return[]};
KUI.prototype.getTypeName=function(){return"quantityIncrementerEntity"};var lRy=new _.e0("ypcOffersEndpoint");var nl8=new _.e0("cardItemRenderer"),Eld=new _.e0("cardItemTextRenderer");var NpB=new _.e0("commerceCartItemQuantityPickerRenderer");var kW8=new _.e0("linkCardRenderer");var uAj=new _.e0("quantityIncrementerButtonViewModel");var peJ=new _.e0("quantityIncrementerViewModel");var ybM=new _.e0("themedImageViewModel");_.LU9=new _.e0("ypcCancelRecurrenceEndpoint");var YY9=new _.e0("ypcCompleteTransactionEndpoint");_.WUv=new _.e0("ypcGetCartEndpoint");_.uh=new _.e0("ypcGetOffersEndpoint");_.q1=new _.e0("ypcHandleTransactionEndpoint");var Abp=new _.e0("ypcLogWalletAnalyticDataEndpoint");_.dN2=new _.e0("ypcRedeemCodeEndpoint");var vl9=new _.e0("ypcUpdateFopEndpoint");p1(kN(1),E7(4));ewP((new MessageChannel).port2);var hgp=function(){this.register=new Map},a4Y=function(M,q,G){M=M+"_"+q;
Gk.register.has(M)?G=Gk.register.get(M):(G=G(),Gk.register.set(M,G));return G},tLS=function(M){M=_.k(M.register.values());
for(var q=M.next();!q.done;q=M.next())_.$n(q.value,"ABORTED")};
hgp.prototype.clear=function(){tLS(this);this.register.clear()};
var Gk=new hgp;var qZj=Date.now().toString();var nts=Kxw();var Wxi={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 O0d,Ou;O0d=1;Ou=function(M){this.veData=M};
_.yx=function(M){return new Ou({trackingParams:M})};
_.$m=function(M,q,G,K,n,E){var p=O0d++;return new Ou({veType:M,veCounter:p,elementIndex:G,dataElement:q,youtubeData:K,jspbYoutubeData:n,loggingDirectives:E})};
_.N=Ou.prototype;
_.N.getAsJson=function(){var M={};this.veData.trackingParams!==void 0?M.trackingParams=this.veData.trackingParams:(M.veType=this.veData.veType,this.veData.veCounter!==void 0&&(M.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(M.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(M.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(M.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(M.isCounterfactual=!0);
return M};
_.N.getAsJspb=function(){var M=new A29;this.veData.trackingParams!==void 0?M.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.oT(M,2,this.veData.veType),this.veData.veCounter!==void 0&&_.oT(M,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.oT(M,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.tu(M,5,!0));if(this.veData.dataElement!==void 0){var q=this.veData.dataElement.getAsJspb();_.Xe(M,7,q)}this.veData.youtubeData!==void 0&&_.Xe(M,8,this.veData.jspbYoutubeData);
return M};
_.N.toString=function(){return JSON.stringify(this.getAsJson())};
_.N.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.N.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.Y5("yt_logging_screen.getRootVeType",yti);_.Y5("yt_logging_screen.getCurrentCsn",_.Cx);_.Y5("yt_logging_screen.getCttAuthInfo",af);_.Y5("yt_logging_screen.setCurrentScreen",_.of);var weJ=function(){this.events=new Map},CJd=function(M){var q=[];
M=_.k(M.events.values());for(var G=M.next();!G.done;G=M.next())q.push(G.value);return q};
weJ.prototype.clear=function(){this.events.clear()};var olM=function(){this.logTransport=new aif;this.loggedEventRegister=new weJ;this.unloggedEventRegister=new weJ;this.eventsCount=0;this.flushInterval=3E4;this.JSC$12586_flushTimer=new _.th(this.flushInterval);this.JSC$12586_flushTimer.listen("tick",this.flush,!1,this)};
olM.prototype.flush=function(){if(this.eventsCount){var M={loggedEvents:CJd(this.loggedEventRegister),unloggedEvents:CJd(this.unloggedEventRegister)};if(_.w("export_player_version_to_ytconfig")){var q;(q=_.R9("PLAYER_CLIENT_VERSION"))?(q=q.split("-")[0].replace(/\./g,""),q=isNaN(Number(q))?"0":q):q="";var G=_.R9("PLAYER_CLIENT_VERSION");if(G){G=G.split("-");var K="";G.length>1&&(K=G[G.length-1]);G=Mvy(K.startsWith("canary_experiment")?"canary":K.startsWith("canary_control")?"control":"none")}else G=
"CLIENT_CANARY_STATE_UNKNOWN";M.dimensions={playerClientVersion:q,playerCanaryState:G}}this.logTransport.flush(M);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$12586_flushTimer.enabled&&this.JSC$12586_flushTimer.stop()}};
var liv=function(M){KN==null&&(KN=new olM);var q=KN;var G=q.loggedEventRegister;M.dimensions=M.dimensions||{};M.dimensions.csn=_.Cx()||"";var K=vty(M.dimensions).join(";");if(M.records!=null)if(G.events.has(K)){var n;(n=G.events.get(K).records)==null||n.push.apply(n,_.Ui(M.records))}else G.events.set(K,M);q.JSC$12586_flushTimer.enabled||q.JSC$12586_flushTimer.start();q.eventsCount++;q.eventsCount>=100&&q.flush()};var aif=function(){};
aif.prototype.flush=function(M,q){_.w("enable_client_sli_logging")&&_.ml("sliEventBatch",M,{sendIsolatedPayload:!!q})};var KN;var PJf;PJf=function(M){var q=XeB;M=M===void 0?{}:M;q=q.name;var G=Czy("SUCCESS");liv({dimensions:M,records:[{name:q,state:"SLI_STATE_END",status:G}]})};
_.otj=function(M,q,G,K){this.name=M;this.sliId=q;this.timeoutMs=G;this.statusOnTimeout=K;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.otj.prototype.getId=function(){return this.sliId};
_.eb=function(M,q){q=q===void 0?{}:q;M.ongoing||(M.ongoing=!0,M.dimensions=q,M.logSliId=TBH(),liv({dimensions:M.dimensions,records:[{name:M.name,state:"SLI_STATE_START",sliId:M.logSliId}]}),M.timeoutMs>0&&(M.timeoutHandle=setTimeout(function(){_.$n(M,M.statusOnTimeout)},M.timeoutMs)))};
_.$n=function(M,q){M.ongoing&&(M.timeoutMs>0&&clearTimeout(M.timeoutHandle),M.ongoing=!1,q={dimensions:M.dimensions,records:[{name:M.name,status:Czy(q),state:"SLI_STATE_END",sliId:M.logSliId}]},Gk.register.delete(M.name+"_"+M.sliId),liv(q))};var XeB=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var i0l=function(){cA.apply(this,arguments)};
_.l(i0l,cA);i0l.prototype.getAssociations=function(){return[]};
i0l.prototype.getTypeName=function(){return"videoOverviewAsyncDataEntity"};var TAF=new _.e0("highlightTextDecoratorColorMapExtension");var mR$=new _.e0("styleRunColorMapExtension");var BQe=_.DQ(["data-"]),DSD={};var JtY={};var nN=function(M){this.wrappedPromise_=M===void 0?null:M;this.state_=0;this.JSC$12617_value_=null};
nN.prototype.then=function(M,q,G){return this.wrappedPromise_?this.wrappedPromise_.then(M,q,G):this.state_===1&&M?(M=M.call(G,this.JSC$12617_value_))&&typeof M.then==="function"?M:_.Ej(M):this.state_===2&&q?(M=q.call(G,this.JSC$12617_value_))&&typeof M.then==="function"?M:_.cbv(M):this};
nN.prototype.getValue=function(){return this.JSC$12617_value_};
nN.prototype.isRejected=function(){return this.state_==2};
LTl(nN);_.cbv=function(M){var q=new nN;M=M===void 0?null:M;q.state_=2;q.JSC$12617_value_=M===void 0?null:M;return q};
_.Ej=function(M){var q=new nN;M=M===void 0?null:M;q.state_=1;q.JSC$12617_value_=M===void 0?null:M;return q};var Hhe="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var gl2=["load","abort","error"],N1=function(M,q,G){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$12637_maxAspectRatio_=M;this.disableAnimation_=q===void 0?!1:q;this.disableExifRotation_=G===void 0?!1:G;this.JSC$12637_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$12637_reject_=this.resolve_=null};
N1.prototype.transform=function(M){var q=this;this.mime_=M.type;VJ(dA2(M),this.dataUrlRead_,this.readError_,this);VJ(ACJ(M.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(G,K){q.resolve_=G;q.JSC$12637_reject_=K})};
N1.prototype.dataUrlRead_=function(M){this.dataUrl_=M;this.angle_!=null&&BpP(this)};
N1.prototype.exifRead_=function(M){if(this.disableExifRotation_)this.angle_=0;else{a:if(M=new DataView(M),M.byteLength<2||M.getUint16(0)!==65496)M=-2;else{for(var q=2,G=M.byteLength;q<G;){var K=M.getUint16(q),n=M.getUint16(q+2);if(K===65505){q+=4;K=M.getUint32(q);n=M.getUint16(q+4);if(K!==1165519206||n!==0)break;q+=6;K=M.getUint16(q)===18761;q+=M.getUint32(q+4,K);n=M.getUint16(q,K);q+=2;for(var E=0;E<n;E++){if(M.getUint16(q,K)===274){q+=8;M=M.getUint16(q,K);break a}q+=12}}else if(K>>8!==255)break;
else q+=n+2}M=-1}switch(M){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&&BpP(this)};
N1.prototype.readError_=function(){this.JSC$12637_reject_()};
var BpP=function(M){kj(M.JSC$12637_image_,gl2,M.completeTransform_,!1,M);M.JSC$12637_image_.src=_.SM(M.dataUrl_).toString();M.JSC$12637_image_.src!=mL.toString()&&M.JSC$12637_image_.src.substr(0,11)==="data:image/"||M.JSC$12637_reject_()};
N1.prototype.completeTransform_=function(){if(this.JSC$12637_image_.src!=mL.toString()){var M=_.SM(this.dataUrl_),q=this.JSC$12637_image_.naturalHeight?this.JSC$12637_image_.naturalWidth/this.JSC$12637_image_.naturalHeight:null;this.invalidAspectRatio=q>this.JSC$12637_maxAspectRatio_||q<1/this.JSC$12637_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var G=this.JSC$12637_image_.naturalWidth,K=this.JSC$12637_image_.naturalHeight,n=q=0,E=this.JSC$12637_image_.naturalHeight?this.JSC$12637_image_.naturalWidth/
this.JSC$12637_image_.naturalHeight:null;E>this.JSC$12637_maxAspectRatio_?(G=this.JSC$12637_maxAspectRatio_*K,q=(G-this.JSC$12637_image_.naturalWidth)/2,this.cropped=!0):E<1/this.JSC$12637_maxAspectRatio_?(K=this.JSC$12637_maxAspectRatio_*G,n=(K-this.JSC$12637_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)E=G,G=K,K=E,E=q,q=n,n=E;switch(this.angle_){case 90:n-=G;break;case 180:q-=G;n-=K;break;case 270:q-=
K}this.cropped||this.angle_%360!==0?(M=document.createElement("canvas"),M.width=G||1,M.height=K||1,this.JSC$12637_image_.naturalWidth&&this.JSC$12637_image_.naturalHeight&&(G=M.getContext("2d"),G.rotate(Math.PI/180*this.angle_),G.drawImage(this.JSC$12637_image_,q,n,this.JSC$12637_image_.naturalWidth,this.JSC$12637_image_.naturalHeight)),this.transformedData=_.SM(M.toDataURL(this.mime_))):this.transformedData=M}else this.transformedData=M;this.resolve_(this)}};var kx=function(M,q){_.d6.call(this,M);this.value=q};
_.l(kx,_.d6);
var pN=function(M,q,G,K,n,E,p){p=p===void 0?!1:p;_.w6.call(this);var y=this;this.JSC$12642_url_=M;this.channelId_=q;this.maxFileSizeMb_=G;this.JSC$12642_maxAspectRatio_=K;this.dropZoneEl_=n;this.rejectInvalidAspectRatio_=p;this.selectButtonEl_=E;this.JSC$12642_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new hr(this.dropZoneEl_);this.selectOverlay_=new tr(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$12642_image_=this.transfer_=null;this.handler_=new _.OU(this);_.oE(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(E,"click",function(){y.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.l(pN,_.w6);pN.prototype.disposeInternal=function(){for(var M=this.selectButtonEl_.nextSibling;M&&M.parentNode&&M.tagName=="INPUT";)M.parentNode.removeChild(M),M=this.selectButtonEl_.nextSibling;this.cancel();_.w6.prototype.disposeInternal.call(this)};
pN.prototype.uploadPromise=function(){if(this.JSC$12642_image_==null)return null;this.uploadPromise_||Qxf(this);return this.uploadPromise_};
pN.prototype.cancel=function(){Iil(this);this.JSC$12642_image_=null};
var Iil=function(M){M.transfer_&&M.transfer_.cancel();M.transfer_=null;M.uploadPromise_=null;M.resolve_=null;M.JSC$12642_reject_=null},Qxf=function(M){Iil(M);
M.transfer_=_.KHp(M.JSC$12642_url_,{"X-YouTube-ChannelId":M.channelId_},M.JSC$12642_image_);M.handler_.listenOnce(M.transfer_,"l",M.JSC$12644_onUploadComplete_);M.handler_.listenOnce(M.transfer_,"n",M.onUploadError_);M.transfer_.run();M.uploadPromise_=new Promise(function(q,G){M.resolve_=q;M.JSC$12642_reject_=G})};
_.N=pN.prototype;_.N.onChange_=function(M){M.files.length&&(this.JSC$12642_image_=M.files[0],this.JSC$12642_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$12642_image_=null,this.dispatchEvent(new kx("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Qxf(this),(new N1(this.JSC$12642_maxAspectRatio_)).transform(this.JSC$12642_image_).then((0,_.Ju)(this.onPreview_,this),(0,_.Ju)(this.onPreviewError_,this))))};
_.N.onPreview_=function(M){if(M.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$12642_image_=null),this.dispatchEvent(new kx("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;M.cropped&&this.dispatchEvent(new kx("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new kx("yt.comments.ImageUploadOverlay.CHANGE_EVENT",M.transformedData))};
_.N.onPreviewError_=function(){this.JSC$12642_image_=null;this.dispatchEvent(new kx("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.N.onHover_=function(M){M.stopPropagation();M.preventDefault();if(M.type==="dragover")M=!0;else if(M.type==="dragleave")M=!1;else return;this.dispatchEvent(new kx("yt.comments.ImageUploadOverlay.HOVER_EVENT",M))};
_.N.JSC$12644_onUploadComplete_=function(){var M=(0,_.J3d)(this.transfer_.getResponseText());this.resolve_(M.encryptedBlobId)};
_.N.onUploadError_=function(){this.JSC$12642_reject_();Iil(this)};var DN8=function(M){M=M||{};var q={},G={};this.url=M.url||"";this.args=M.args||_.xP.clone(q);this.assets=M.assets||{};this.attrs=M.attrs||_.xP.clone(G);this.fallback=M.fallback||null;this.fallbackMessage=M.fallbackMessage||null;this.html5=!!M.html5;this.disable=M.disable||{};this.loaded=!!M.loaded;this.messages=M.messages||{}};
DN8.prototype.clone=function(){var M=new DN8,q;for(q in this)if(this.hasOwnProperty(q)){var G=this[q];_.$$(G)=="object"?M[q]=_.xP.clone(G):M[q]=G}return M};var u0P,JbS,Z0M,IU,UN2,xNP,zg$,mN9,SYM,Tpl,rbx,jxp,VLf,RgJ,fiS,FUB,H0d,eg8,$NB,sRJ,MBM,qGJ,G4p,KMM,nhJ,Ehf,NX2,k4$,p9S,HaH,yJp,LMM,YG$,WMv,AJd,d42,vhl,hld,tB9,OJ$,FcF,w9B,C9S,aHJ,ohl,lH2,X9J,P9J,iJI,cJv,ghv,BXP,QRf,IHd,D4d,uMv,ya,JJ8,ZJx,bJB,U4S,x4B,zl9,m4v,SG8,TXf,rJl,jRv,VBB,Rld,fHl,FMM,HJv,elB,$4x,s_$,RLj,MeJ,qfp,G52,KNP,nKx,EKI,NE9,k5v,p_9,yZ2,LNI,Yfd,WNJ,AZv,diJ,vKl,hPB,tev,O4I,w_f,CVv,aW9,oKx,lWP,X_p;u0P=["account/accounts_list"];JbS=["acknowledge_channel_tou_strike"];Z0M=["notification/add_upcoming_event_reminder"];
_.b0S=["att/get"];IU=["browse","music/browse","unplugged/browse"];UN2=["channel/claim_legacy_youtube_channel"];xNP=["history/clear_search_history"];zg$=["history/clear_watch_history"];mN9=["comment/perform_comment_action"];SYM=["comment/get_comment_replies"];Tpl=["ypc/commerce_action"];rbx=["backstage/create_post"];jxp=["live/create_broadcast"];VLf=["channel/create_channel"];RgJ=["comment/create_comment_reply"];fiS=["comment/create_comment"];FUB=["live_chat/create_poll"];H0d=["playlist/create"];
eg8=["decorate_message"];$NB=["live_chat/delete_message"];sRJ=["playlist/delete"];MBM=["video/delete"];qGJ=["like/dislike"];G4p=["dismissal/dismiss"];KMM=["flag/flag"];nhJ=["flow"];Ehf=["account/account_menu"];NX2=["playlist/get_add_to_playlist"];k4$=["get_answer"];p9S=["channel/get_channel_creation_form"];HaH=["offline/get_download_action"];yJp=["kids/get_kids_blocklist_picker"];LMM=["live_chat/get_item_context_menu"];YG$=["live_chat/get_live_chat_message_buy_flow"];WMv=["live_chat/get_live_chat_replay"];
AJd=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];d42=["live_chat/get_live_chat_super_sticker_buy_flow"];vhl=["notification/get_notification_menu"];hld=["playlist/get_settings_editor"];tB9=["backstage/get_post_video_preview"];OJ$=["account/get_profile_card"];FcF=["share/get_share_panel"];w9B=["share/get_sharing_provider_data"];C9S=["get_survey"];aHJ=["notification/get_unseen_count"];ohl=["get_user_mention_suggestions"];lH2=["get_watch"];X9J=["guide"];
P9J=["feedback"];iJI=["kids/update_blacklist"];cJv=["like/like"];ghv=["live_chat/live_chat_action"];BXP=["live_chat/manage_user"];QRf=["video_manager/metadata_update"];IHd=["live_chat/moderate"];D4d=["notification/modify_channel_preference"];uMv=["notification/opt_out"];ya=["get_panel","get_posts_by_host_panel"];JJ8=["player"];ZJx=["browse/edit_playlist"];bJB=["notification/record_interactions"];U4S=["reel/reel_item_watch"];x4B=["reel/reel_watch_sequence"];zl9=["like/removelike"];m4v=["notification/remove_upcoming_event_reminder"];
SG8=["flag/get_form"];TXf=["miniapp/report_value"];rJl=["navigation/resolve_url"];jRv=["channel/reveal_business_email"];VBB=["in_video/search"];Rld=["search","sfv/search","unplugged/search"];fHl=["live_chat/send_message"];FMM=["live_chat/send_live_chat_vote"];HJv=["account/set_setting"];elB=["submit_caption_correction"];$4x=["submit_form"];s_$=["subscription/subscribe"];RLj=["get_transcript"];MeJ=["resolve_location","unplugged/resolve_location"];qfp=["subscription/unsubscribe"];G52=["backstage/update_post"];
KNP=["channel_edit/update_channel_page_settings"];nKx=["comment/update_comment_reply"];EKI=["comment/update_comment"];NE9=["comment/update_comments_settings"];k5v=["creator/update_creator_channel"];p_9=["pdg/update_enablement"];yZ2=["updated_metadata"];LNI=["channel_edit/validate_channel_handle"];Yfd=["verify_age"];WNJ=["next","unplugged/watch_next"];AZv=["whitelist/edit"];diJ=["ypc/cancel_recurrence"];vKl=["ypc/complete_transaction"];hPB=["ypc/get_cart"];tev=["ypc/get_fix_instrument_params"];
O4I=["ypc/get_offers"];w_f=["ypc/get_payment_instruments_params"];CVv=["ypc/handle_transaction"];aW9=["ypc/log_payment_server_analytics"];oKx=["ypc/pause_subscription"];lWP=["ypc/redeem_code"];X_p=["ypc/resume_subscription"];var PVM=[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,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,197891,
156655,156654,121692,211414,211411,211412,211413,211403,184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,262686,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,
45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,74616,122224,74617,77820,74618,262988,262989,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,271884,222932,279119,271886,213915,225216,251244,258251,218674,251266,258250,251265,251245,271885,156999,3945,16989,45520,25488,25492,25494,232113,55760,
14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,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,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,263843,196075,194768,252201,194769,191885,233634,265810,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,272252,253833,253834,204574,191390,179556,238596,212661,191392,197826,191393,204573,36216,28237,241212,272049,173718,39553,192547,29222,26107,241211,38050,26108,275810,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,278306,277848,173191,173192,173193,101951,
171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,270560,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,
264490,211189,111059,211188,5754,264491,20445,233471,151308,151152,228067,130975,130976,247244,271622,271813,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,273960,113746,268886,66557,183215,17310,28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,
62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,275869,271673,274637,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,213904,269342,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,273646,273647,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,
63667,63668,63669,130686,248381,147036,239094,262743,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,267645,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,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 qg=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.Y5("yt.msgs_",qg);var LN=new _.$k("ACTION_ROUTER_TOKEN");_.Yx=function(){this.autonavState_=_.w("kevlar_is_pupi_enabled")?2:pAj()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.Yx.prototype.getState=function(){return this.autonavState_};
_.Yx.prototype.pause=function(M){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=M):this.autonavState_==1&&(this.disabledAutonavPauseReason_=M)};
_.Yx.prototype.setState=function(M,q,G){q&&(this.autoplayChangedByUser=!0);q=this.autonavState_===3||M===3;this.autonavState_!=M&&(this.autonavState_=M,M!=3&&_.yri(M==2),M=_.w("kevlar_is_pupi_enabled")?G||q:!0,_.GC.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,M,G))};
_.Yx.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.mi(_.Yx);var Wg=function(){this.hasRun=!1};var A1={},CUs=(A1.auto_search="LATENCY_ACTION_AUTO_SEARCH",A1.ad_to_ad="LATENCY_ACTION_AD_TO_AD",A1.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",A1.app_startup="LATENCY_ACTION_APP_STARTUP",A1.browse="LATENCY_ACTION_BROWSE",A1.cast_splash="LATENCY_ACTION_CAST_SPLASH",A1.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",A1.channels="LATENCY_ACTION_CHANNELS",A1.chips="LATENCY_ACTION_CHIPS",A1.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",A1.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
A1.editor="LATENCY_ACTION_EDITOR",A1.embed="LATENCY_ACTION_EMBED",A1.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",A1.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",A1.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",A1.explore="LATENCY_ACTION_EXPLORE",A1.favorites="LATENCY_ACTION_FAVORITES",A1.home="LATENCY_ACTION_HOME",A1.inboarding="LATENCY_ACTION_INBOARDING",A1.landing="LATENCY_ACTION_LANDING",A1.learning="LATENCY_ACTION_LEARNING",
A1.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",A1.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",A1.library="LATENCY_ACTION_LIBRARY",A1.live="LATENCY_ACTION_LIVE",A1.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",A1.management="LATENCY_ACTION_MANAGEMENT",A1.mini_app="LATENCY_ACTION_MINI_APP_PLAY",A1.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",A1.onboarding="LATENCY_ACTION_ONBOARDING",A1.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",
A1.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",A1.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",A1.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",A1.prebuffer="LATENCY_ACTION_PREBUFFER",A1.prefetch="LATENCY_ACTION_PREFETCH",A1.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",A1.profile_switcher="LATENCY_ACTION_LOGIN",A1.projects="LATENCY_ACTION_PROJECTS",A1.reel_watch="LATENCY_ACTION_REEL_WATCH",A1.results="LATENCY_ACTION_RESULTS",A1.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",
A1.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",A1.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",A1.review="LATENCY_ACTION_REVIEW",A1.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",A1.search_ui="LATENCY_ACTION_SEARCH_UI",A1.search_suggest="LATENCY_ACTION_SUGGEST",A1.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",A1.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",A1.seek="LATENCY_ACTION_PLAYER_SEEK",A1.settings="LATENCY_ACTION_SETTINGS",A1.store="LATENCY_ACTION_STORE",
A1.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",A1.tenx="LATENCY_ACTION_TENX",A1.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",A1.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",A1.watch="LATENCY_ACTION_WATCH",A1.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",A1["watch,watch7"]="LATENCY_ACTION_WATCH",A1["watch,watch7_html5"]="LATENCY_ACTION_WATCH",A1["watch,watch7ad"]="LATENCY_ACTION_WATCH",A1["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",A1.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",
A1.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",A1.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",A1.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",A1.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",A1.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",A1.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",A1.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",A1),Z1Y=0;var S7Y=function(M,q){lt.call(this,1,arguments);this.timer=q};
_.l(S7Y,lt);var mCD=new JKY("aft-recorded",S7Y);var XAu=_.Kj.ytLoggingGelSequenceIdObj_||{};_.Y5("ytLoggingGelSequenceIdObj_",XAu);var dT=_.Kj.ytLoggingLatencyUsageStats_||{};_.Y5("ytLoggingLatencyUsageStats_",dT);var vg=function(){this.cleanupJob=0},cri=function(){vg.instance||(vg.instance=new vg);
return vg.instance};
_.N=vg.prototype;_.N.baseline=function(M,q,G){h1(this,"baseline_"+M)||_.ml("latencyActionBaselined",{clientActionNonce:M},{timestamp:q,cttAuthInfo:G})};
_.N.tick=function(M,q,G,K){h1(this,"tick_"+M+"_"+q)||_.ml("latencyActionTicked",{tickName:M,clientActionNonce:q},{timestamp:G,cttAuthInfo:K})};
_.N.info=function(M,q,G){var K=Object.keys(M).join("");h1(this,"info_"+K+"_"+q)||(M=Object.assign({},M),M.clientActionNonce=q,_.ml("latencyActionInfo",M,{cttAuthInfo:G}))};
_.N.jspbInfo=function(M,q,G){for(var K="",n=0;n<bP(M).length;n++)bP(M)[n]!==void 0&&(K=n===0?K.concat(""+n):K.concat("_"+n));h1(this,"info_"+K+"_"+q)||(_.DJ(M,2,q),q={cttAuthInfo:G},G=_.w("jspb_sparse_encoded_pivot")?new uN([{}]):new uN,_.Pt(G,7,gzf,M),PU4("latencyActionInfo",G,q))};
_.N.span=function(M,q,G){var K=Object.keys(M).join("");h1(this,"span_"+K+"_"+q)||(M.clientActionNonce=q,_.ml("latencyActionSpan",M,{cttAuthInfo:G}))};
var h1=function(M,q){dT[q]=dT[q]||{count:0};var G=dT[q];G.count++;G.time=(0,_.d8)();M.cleanupJob||(M.cleanupJob=_.Jp(_.r8,function(){var K=(0,_.d8)(),n;for(n in dT)dT[n]&&K-dT[n].time>6E4&&delete dT[n];M&&(M.cleanupJob=0)},5E3));
return G.count>5?(G.count===6&&Math.random()*1E5<1&&(G=new _.bj("CSI data exceeded logging limit with key",q.split("_")),q.indexOf("plev")>=0||_.j1(G)),!0):!1};var i4J,cZp;i4J=window;cZp=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.L7=i4J.performance||i4J.mozPerformance||i4J.msPerformance||i4J.webkitPerformance||new cZp;var zb$=!1,Bi$=!1,Tis=(0,_.Ju)(_.L7.clearResourceTimings||_.L7.webkitClearResourceTimings||_.L7.mozClearResourceTimings||_.L7.msClearResourceTimings||_.L7.oClearResourceTimings||_.vp,_.L7);var gKP=window;gKP.ytcsi&&(gKP.ytcsi.infoGel=_.t2,gKP.ytcsi.tick=_.oJ);var M6w=function(M){lt.call(this,1,arguments);this.csn=M};
_.l(M6w,lt);var z3j=new JKY("screen-created",M6w),hXe=[],sQu=vxH,t6y=0,c8=new Map,qji=new Map,GkD=new Map;var SIy=Symbol("Df"),xp=new WeakMap;var t1=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},NY=function(){t1.instance||(t1.instance=new t1);
return t1.instance};
_.N=t1.prototype;_.N.setClient=function(M){this.client=M};
_.N.JSC$12723_newScreen=function(){this.clear();this.csn=_.Cx()};
_.N.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.N.reportShown=function(M,q,G){var K=this.JSC$12723_getTrackingParams(M),n=M.visualElement?M.visualElement:K;q=this.shownElements.has(n);var E=this.visibleState.get(n);this.shownElements.add(n);this.visibleState.set(n,!0);M.impressionLog&&!q&&M.impressionLog();if(K||M.visualElement)if(G=BEl(this,M,G))if(n=Q_8(this,M),Oj(this,M)||n){K=M.visualElement?M.visualElement:_.yx(K);var p=M.interactionLoggingClientData;n||q?Oj(this,M)&4?E||Lqy(this.client,G,K,p):Oj(this,M)&1&&!q&&kke(this.client,G,K,p):kke(this.client,
G,K,p)}};
_.N.reportHidden=function(M,q,G){var K=this.JSC$12723_getTrackingParams(M),n=M.visualElement?M.visualElement:K;q=this.hiddenElements.has(n);var E=this.visibleState.get(n);this.hiddenElements.add(n);this.visibleState.set(n,!1);if(E===!1)return!0;if(!K&&!M.visualElement)return!1;G=BEl(this,M,G);if(!G||!Oj(this,M)&&Q_8(this,M))return!1;K=M.visualElement?M.visualElement:_.yx(K);Oj(this,M)&8?Yjy(this.client,G,K):Oj(this,M)&2&&!q&&(M=this.client,q=iO({cttAuthInfo:af(G)||void 0},G),K={csn:G,ve:K.getAsJson(),
eventType:2},G==="UNDEFINED_CSN"?B8("visualElementHidden",q,K):M?xc("visualElementHidden",K,M,q):_.ml("visualElementHidden",K,q));return!0};
_.N.JSC$12723_getTrackingParams=function(M){var q=this.getData(M),G,K;if(_.w("il_use_view_model_logging_context")&&(q==null?0:(G=q.context)==null?0:(K=G.loggingContext)==null?0:K.loggingDirectives))return q.context.loggingContext.loggingDirectives.trackingParams||"";var n,E;if(q==null?0:(n=q.rendererContext)==null?0:(E=n.loggingContext)==null?0:E.loggingDirectives)return q.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(q==null?0:q.loggingDirectives)return q.loggingDirectives.trackingParams||
"";var p;return((p=M.veContainer)==null?0:p.trackingParams)?M.veContainer.trackingParams:(q==null?void 0:q.trackingParams)||""};
_.N.JSC$12723_elementShouldLogGesture=function(M,q){M=this.getData(M);return!!((Math.floor(Number(M&&M.loggingDirectives&&M.loggingDirectives.gestures&&M.loggingDirectives.gestures.types||""))||0)&q)};
_.N.JSC$12723_getNearestParentVe=function(M){var q=this.JSC$12723_getTrackingParams(M);return M.visualElement?M.visualElement:q?_.yx(q):M.parentElement?this.JSC$12723_getNearestParentVe(M.parentElement):null};
var BEl=function(M,q,G){var K=_.Cx(G);return M.csn===null||K===M.csn||G?K:(M=new _.bj("VisibilityLogger called before newScreen",{caller:q.tagName,previous_csn:M.csn,current_csn:K}),_.j1(M),null)};
t1.prototype.getData=function(M){var q,G=M.data||((q=M.props)==null?void 0:q.data);if(!G||M.isWebComponentWrapper){var K;G=(K=xp.get(M))==null?void 0:K[SIy]}return G};
var Q_8=function(M,q){var G;return!((G=M.getData(q))==null||!G.loggingDirectives)},Oj=function(M,q){M=M.getData(q);
return Math.floor(Number(M&&M.loggingDirectives&&M.loggingDirectives.visibility&&M.loggingDirectives.visibility.types||""))||1};var wT;wT=function(){};
_.qY=function(){wT.instance||(wT.instance=new wT);return wT.instance};
wT.prototype.setClient=function(M){_.$2(NY().setClient).bind(NY())(M)};
_.IW8=function(){_.qY();_.$2(NY().JSC$12723_newScreen).bind(NY())()};
wT.prototype.clear=function(){_.$2(NY().clear).bind(NY())()};
wT.prototype.reportShown=function(M,q,G){_.$2(NY().reportShown).bind(NY())(M,q,G)};
wT.prototype.reportHidden=function(M,q,G){return _.$2(NY().reportHidden).bind(NY())(M,q,G)};
var Soy=function(M,q){return _.$2(NY().JSC$12723_getTrackingParams).bind(NY())(q)},Tye=function(M,q){return _.$2(NY().JSC$12723_getNearestParentVe).bind(NY())(q)};var CN,DiS;CN=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};
_.nl=function(){CN.instance||(CN.instance=new CN);return CN.instance};
CN.prototype.setClient=function(M){this.client=M};
DiS=function(M,q,G){G=G===void 0?{}:G;_.$2(function(){var K,n,E,p=((K=_.C(q==null?void 0:q.commandMetadata,_.Mg))==null?void 0:K.rootVe)||((n=_.C(q==null?void 0:q.commandMetadata,vxS))==null?void 0:(E=n.screenVisualElement)==null?void 0:E.uiType);if(p){K=_.C(q==null?void 0:q.commandMetadata,pJl);if(K==null?0:K.parentTrackingParams){var y=_.yx(K.parentTrackingParams);if(K.parentCsn)var Y=K.parentCsn}else G.clickedVisualElement?y=G.clickedVisualElement:q.clickTrackingParams&&(y=_.yx(q.clickTrackingParams));
a:{K=_.C(q,_.Jl);n=_.C(q,kWF);if(K){if(n=LzD(K,"VIDEO")){K={token:n,videoId:K.videoId};break a}}else if(n&&(K=LzD(n,"PLAYLIST"))){K={token:K,playlistId:n.playlistId};break a}K=void 0}G=Object.assign({},{cttAuthInfo:K,parentCsn:Y},G);if(_.w("expectation_logging")){var A;G.loggingExpectations=((A=_.C(q==null?void 0:q.commandMetadata,vxS))==null?void 0:A.loggingExpectations)||void 0}_.aQ(M,p,y,G)}else _.j1(new _.bj("Error: Trying to create a new screen without a rootVeType",q))})()};
_.aQ=function(M,q,G,K){K=K===void 0?{}:K;_.$2(function(){PVM.includes(q)||(_.j1(new _.bj("createClientScreen() called with a non-page VE",q)),q=83769);K.isHistoryNavigation||(M.forwardHistoryStack=[],M.backHistoryStack.push({rootVe:q,key:K.key||""}));M.graftQueue=[];M.stateChangedQueue=[];K.dataPromises?uKd(M,q,G,K):JZ9(M,q,G,K)})()};
_.Z4S=function(M,q,G){G=G===void 0?0:G;_.$2(function(){q.then(function(K){M.pendingScreenCreation.has(G)&&M.pendingScreenFn&&M.pendingScreenFn();var n=_.Cx(G),E=_.wt(G);if(n&&E){var p={automatedLogEventSource:3},y;(K==null?0:(y=K.response)==null?0:y.trackingParams)&&gj(M.client,n,E,_.yx(K.response.trackingParams),!1,p);var Y;(K==null?0:(Y=K.playerResponse)==null?0:Y.trackingParams)&&gj(M.client,n,E,_.yx(K.playerResponse.trackingParams),!1,p)}})})()};
CN.prototype.graftServerVe=function(M,q,G){var K=this;return _.$2(function(){var n=_.yx(M);_.oQ(K,n,q,G);return n})()};
_.rFj=function(M,q,G,K){return _.w("enable_client_ve_spec")&&q.clientVeSpec?(q=_.$m(q.clientVeSpec.uiType,void 0,q.clientVeSpec.elementIndex,q.clientVeSpec.clientYoutubeData,void 0,q),_.oQ(M,q,G,K)?q:null):q.trackingParams?M.graftServerVe(q.trackingParams,G,K):null};
_.GE=function(M,q,G,K){return _.$2(function(){if(!q.veType)return _.rM(new _.bj("Error: Trying to graft a client VE without a veType.")),null;if(q.visibilityTypes){var n=q.visibilityTypes.reduce(function(E,p){return E|p});
n={visibility:{types:String(n)}}}n=_.$m(q.veType,q.visualElement,q.elementIndex,q.clientYouTubeData,void 0,n);return _.oQ(M,n,G,K)?n:null})()};
_.oQ=function(M,q,G,K){K=K===void 0?0:K;return _.$2(function(){if(M.pendingScreenCreation.has(K))return M.graftQueue.push([q,G]),!0;var n=_.Cx(K),E=G||_.wt(K);if(n&&E){if(_.w("combine_ve_grafts")){var p=M.cachedVisualElements.get(E.toString());p?p.push(q):(M.cachedRootVisualElements.set(E.toString(),E),M.cachedVisualElements.set(E.toString(),[q]));M.attachTimeout||(M.attachTimeout=_.Jp(_.r8,function(){b4P(M,n)},1200))}else gj(M.client,n,E,q);
return!0}return!1})()};
_.lu=function(M,q,G){G=G===void 0?0:G;var K=M.recurringGrafts.get(G)||new Map;if(_.w("smarter_ve_dedupping"))for(var n=Array.from(K.keys()),E=0;E<n.length;E++){var p=void 0,y=void 0;var Y=q;var A=n[E];A.isClientVe()&&Y.isClientVe()?(p=Y.getAsJson(),y=A.getAsJson(),Y=p.veType!==y.veType||p.elementIndex!==y.elementIndex||p.dataElement!==y.dataElement||Y.getLoggingDirectives()!==A.getLoggingDirectives()?!1:!0):Y=A.veData.trackingParams!==void 0&&Y.veData.trackingParams!==void 0?((y=Y.veData)==null?void 0:
y.trackingParams)===((p=A.veData)==null?void 0:p.trackingParams):!1;if(Y)return}else if(K.has(q))return;K.set(q,void 0);M.recurringGrafts.set(G,K);_.Cx(G)==="UNDEFINED_CSN"||M.pendingScreenCreation.has(G)||_.oQ(M,q,void 0,G)};
_.X3=function(M,q,G,K){K=_.Cx(K===void 0?0:K);if(!K)return!1;A1F(M.client,K,q,G);return!0};
_.Pg=function(M,q,G,K){if(!q)return!1;K=_.Cx(K===void 0?0:K);if(!K)return!1;A1F(M.client,K,_.yx(q),G);return!0};
_.Bx=function(M,q){var G=q.getScreenLayer&&q.getScreenLayer();if(q.visualElement)return _.X3(M,q.visualElement,void 0,G);q=Soy(_.qY(),q);return _.Pg(M,q,void 0,G)};
CN.prototype.clickCommand=function(M,q,G){return _.Pg(this,M.clickTrackingParams,q,G===void 0?0:G)};
CN.prototype.stateChanged=function(M,q,G){this.visualElementStateChanged(_.yx(M),q,G===void 0?0:G)};
CN.prototype.visualElementStateChanged=function(M,q,G){G=G===void 0?0:G;G===0&&this.pendingScreenCreation.has(G)?this.stateChangedQueue.push([M,q]):this.logStateChanged(M,q,G)};
CN.prototype.logStateChanged=function(M,q,G){G=G===void 0?0:G;var K=_.Cx(G);M=M||_.wt(G);return K&&M?(d1s(this.client,K,M,q),!0):!1};
var uKd=function(M,q,G,K){K=K===void 0?{}:K;M.pendingScreenCreation.add(K.layer||0);M.pendingScreenFn=function(){JZ9(M,q,G,K);var p=_.wt(K.layer);if(p){for(var y=_.k(M.graftQueue),Y=y.next();!Y.done;Y=y.next())Y=Y.value,_.oQ(M,Y[0],Y[1]||p,K.layer);p=_.k(M.stateChangedQueue);for(y=p.next();!y.done;y=p.next())y=y.value,M.logStateChanged(y[0],y[1])}};
G||_.Cx(K.layer)||M.pendingScreenFn();if(K.dataPromises)for(var n=_.k(K.dataPromises),E=n.next();!E.done;E=n.next())_.Z4S(M,E.value,K.layer);else _.T6(Error("Ef"))},JZ9=function(M,q,G,K){K=K===void 0?{}:K;
var n=void 0;K.layer||(K.layer=0);n=K.parentLayer!==void 0?K.parentLayer:K.layer;var E=_.Cx(n);n=_.wt(n);var p=G||n,y;p&&(K.parentCsn!==void 0?y={clientScreenNonce:K.parentCsn,visualElement:p}:E&&E!=="UNDEFINED_CSN"&&(y={clientScreenNonce:E,visualElement:p}));var Y,A=_.R9("EVENT_ID");E==="UNDEFINED_CSN"&&A&&(Y={servletData:{serializedServletEventId:A}});_.w("combine_ve_grafts")&&E&&b4P(M,E);_.w("no_client_ve_attach_unless_shown")&&p&&E&&NTj(p,E);try{var v=_.Kq$(M.client,q,y,K.csnToClone,K.cttAuthInfo,
Y,K.implicitGestureType,void 0,K.loggingExpectations)}catch(O){_.V2(O,{rootVeType:q,rootVe:n,parentVisualElement:G,currentCsn:E,parentEl:y,csnToClone:K.csnToClone});_.T6(O);return}_.of(v,q,K.layer,K.cttAuthInfo);E&&E!=="UNDEFINED_CSN"&&n&&!Atu(E)&&Yjy(M.client,E,n,!0);M.backHistoryStack[M.backHistoryStack.length-1]&&!M.backHistoryStack[M.backHistoryStack.length-1].csn&&(M.backHistoryStack[M.backHistoryStack.length-1].csn=v||"");_.t2({clientScreenNonce:v});_.IW8();var h=_.wt(K.layer);E&&E!=="UNDEFINED_CSN"&&
h&&(_.w("web_mark_root_visible")||_.w("music_web_mark_root_visible"))&&_.D_(v,h);M.pendingScreenCreation.delete(K.layer||0);M.pendingScreenFn=void 0;var t;(t=M.recurringGrafts.get(K.layer))==null||t.forEach(function(O,a){O?_.oQ(M,a,O,K.layer):h&&_.oQ(M,a,h,K.layer)});
UiM(M)},UiM=function(M){for(var q=0;q<M.afterNewScreenOneOffJobs.length;q++){var G=M.afterNewScreenOneOffJobs[q];
try{G()}catch(K){_.T6(K)}}for(q=M.afterNewScreenOneOffJobs.length=0;q<M.afterNewScreenRecurringJobs.length;q++){G=M.afterNewScreenRecurringJobs[q];try{G()}catch(K){_.T6(K)}}},b4P=function(M,q){if(q===void 0)for(var G=YZF(),K=0;K<G.length;K++)G[K]!==void 0&&b4P(M,G[K]);
else M.cachedVisualElements.forEach(function(n,E){(E=M.cachedRootVisualElements.get(E))&&nxD(M.client,q,E,n)}),M.cachedVisualElements.clear(),M.cachedRootVisualElements.clear(),M.attachTimeout=void 0};var iu=function(M){M=M===void 0?{layer:0}:M;this.hasRun=!1;this.createScreenConfig=M;M={};this.zfH=(M.response=!1,M.playerResponse=!1,M)};
_.l(iu,Wg);iu.prototype.validate=function(M){return!(!M.data||!M.data.response&&!M.data.playerResponse)};
iu.prototype.handle=function(M){var q=_.nl(),G=this.createScreenConfig.layer;M.data.response&&M.data.response.trackingParams&&!this.zfH.response&&(q.graftServerVe(M.data.response.trackingParams,void 0,G),this.zfH.response=!0);M.data.playerResponse&&M.data.playerResponse.trackingParams&&!this.zfH.playerResponse&&(q.graftServerVe(M.data.playerResponse.trackingParams,void 0,G),this.zfH.playerResponse=!0)};var cg=function(){this.aR=_.u8();this.pG=[];this.pfM=0};
cg.prototype.processChunk=function(M){if(M){for(var q=_.k(this.pG),G=q.next();!G.done;G=q.next())G=G.value,G.validate(M)&&(G.handle(M),G.hasRun=!0);_.oJ("np"+this.pfM);this.pfM++}};var lMw=function(M,q){this.name=M;this.options=void 0;this.startTime=(0,_.d8)();this.id=ze.nextSpanId++;this.sessionId=ze.sessionId;this.attributes=q;this.status=0;if(M=ze.stack[ze.stack.length-1])this.parentId=M.id,M.children||(M.children=[]),M.children.push(this);M=_.k(ze.processors);for(q=M.next();!q.done;q=M.next()){q=q.value;try{var G=void 0,K=void 0;(K=(G=q).onSpanStart)==null||K.call(G,this)}catch(n){_.j1(n)}}};
lMw.prototype.end=function(M){M=M===void 0?1:M;this.endTime=(0,_.d8)();this.duration=this.endTime-this.startTime;this.status||(this.status=M);var q;((q=this.options)==null?void 0:q.active)!==!1&&(ze.stack[ze.stack.length-1]===this?ze.stack.pop():_.j1(Error("Ff`"+String(this.name))));M=_.k(ze.processors);for(q=M.next();!q.done;q=M.next()){q=q.value;try{var G=void 0,K=void 0;(K=(G=q).onSpanEnd)==null||K.call(G,this)}catch(n){_.j1(n)}}};
var ze={initialized:!1,nextSpanId:0,stack:[],sessionId:"",enabledSpans:void 0,processors:[],shouldSampleFn:function(){return!0}},oxi={rootSpan:function(){return ze.stack[0]}};var Puy={};var zPJ=function(){var M=xif;this.observers=[];this.value=M};
_.N=zPJ.prototype;_.N.subscribe=function(M){var q=this;if(M.idx!=null)throw Error("Gf");M.idx=this.observers.length;this.observers.push(M);return function(){var G=q.observers[q.observers.length-1];q.observers[M.idx]=G;G.idx=M.idx;q.observers.pop()}};
_.N.update=function(M){this.value=M(this.value);this.notify()};
_.N.mutate=function(M){M(this.value);this.notify()};
_.N.set=function(M){this.value=M;this.notify()};
_.N.notify=function(){for(var M=_.k(this.observers),q=M.next();!q.done;q=M.next()){q=q.value;try{q(this.value)}catch(G){}}};var YcF,mi8,rZ2;_.$A=function(M,q,G,K,n,E,p,y){p=p===void 0?[]:p;y=y===void 0?[]:y;this.buildCommandPayload=M;this.navigate=q;this.handleServiceRequest=G;this.sendAction=K;this.JSC$12773_screenManager=n;this.commandResolverMap=E;this.autoLogResolverAllowlist=p;this.metaCommandClickLoggingDenylist=y;this.pendingCommands=new Set;this.isTracingEnabled=!1;mi8(this)};
YcF=function(M,q,G){var K=[_.u9J,fDM],n=erF,E=$Ly,p=_.nl(),y=SfB;G=G===void 0?[]:G;K=K===void 0?[]:K;_.$A.instance=new _.$A(M,q,n,E,p,y,G,K)};
mi8=function(M){if(!M.isTracingEnabled&&aMw("command")){var q=M.resolveCommand;M.resolveCommand=function(G,K){a:{for(n in G)if(Object.prototype.hasOwnProperty.call(G,n)){var n={commandType:n};break a}n={}}return Xgi("command",n,q.bind(this,G,K))};
M.isTracingEnabled=!0}};
rZ2=function(M,q,G){if(!M.commandResolverMap)return!1;var K=IMs(q,M.commandResolverMap);return K?((M.autoLogResolverAllowlist.some(function(n){return!!_.C(q,n)})||(G==null?0:G.forceClickLogging))&&TE$(M,q,G),K instanceof Promise?K.then(function(n){n.resolve(q,G)}):K.resolve(q,G),!0):!1};
_.$A.prototype.resolveCommand=function(M,q){var G=this,K=j_J(M);if(rZ2(this,M,q))return!0;if(K)return VeM(this,M,q);if(!this.buildCommandPayload)return gxj(M,"Unhandled command by buildCommandPayload"),!1;var n=this.buildCommandPayload(M,q);if(q==null?0:q.commandController)n.commandController=q.commandController;if(n.type===0){if(!this.navigate)return BTj(M,"navigate"),!1;if(!RPd(n.command))return gxj(M,"Page requests need to specify a url"),!1;_.w("logging_avoid_blocking_during_navigation")&&_.ltF().transition("application_navigating");
M=this.navigate(n)||[];tKf(M).then(function(){G.pendingCommands.delete(n.command)});
return!0}if(n.type===1){if(!this.handleServiceRequest)return BTj(M,"handleServiceRequest"),!1;(q==null?0:q.forceClickLogging)&&TE$(this,n.command,q);M=this.handleServiceRequest(n);tKf(M).then(function(){G.pendingCommands.delete(n.command)});
return!0}if(n.type===2){if(!this.sendAction)return BTj(M,"sendAction"),!1;TE$(this,n.command,q);this.sendAction(n);return!0}return!1};
var TE$=function(M,q,G){if((G==null||!G.disableClickTracking)&&M.JSC$12773_screenManager)if(q.clickTrackingParams&&_.w("log_click_with_layer_from_element_in_command_handler")){var K;G=G==null?void 0:(K=G.form)==null?void 0:K.element;M.JSC$12773_screenManager.clickCommand(q,null,G&&G.getScreenLayer&&G.getScreenLayer())}else q.clickTrackingParams?M.JSC$12773_screenManager.clickCommand(q):!_.w("disable_clicked_visual_element_in_command_handler")&&(G==null?0:G.clickedVisualElement)&&_.X3(M.JSC$12773_screenManager,
G.clickedVisualElement)},j_J=function(M){var q=!!_.C(M,_.eP),G;
M=((G=_.C(M,_.sl))==null?void 0:G.signal)==="CLIENT_SIGNAL";return q||M},VeM=function(M,q,G){var K=_.C(q,_.eP);
if(K)var n=(K==null?void 0:K.commands)||[];else{var E;if(((E=_.C(q,_.sl))==null?void 0:E.signal)==="CLIENT_SIGNAL"){var p;n=((p=_.C(q,_.sl))==null?void 0:p.actions)||[]}}if(n){(K=fWf(M,n))&&TE$(M,q,G);q=_.k(n);for(n=q.next();!n.done;n=q.next()){n=n.value;try{var y=Object.assign({},G);K&&(y.disableClickTracking=!0);M.resolveCommand(n,y)}catch(Y){Y instanceof Error&&_.T6(Y)}}return!0}gxj(q,"Could not handle the meta command");return!1},fWf=function(M,q){return q.every(function(G){return M.metaCommandClickLoggingDenylist.some(function(K){return!!_.C(G,
K)})})},RPd=function(M){var q;
return!((q=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null||!q.url)};var gT=function(){Wg.apply(this,arguments)};
_.l(gT,Wg);gT.prototype.validate=function(M){var q,G;return!this.hasRun&&!!((q=M.data.response)==null?0:(G=q.onResponseReceivedEndpoints)==null?0:G.length)};
gT.prototype.handle=function(M){var q=_.$A.instance;M=_.k(M.data.response.onResponseReceivedEndpoints);for(var G=M.next();!G.done;G=M.next())q.resolveCommand(G.value)};var FNS,H4P,ePx;
FNS=function(){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=_.HF();this.navigatingAwayFromWatchDeletedVideo=!1;
this.currentEndpoint=null;this.isVideoPlaying=!1};
_.Bg=function(){H4P||(H4P=new FNS);return H4P};
ePx=function(){var M=_.Bg();M.miniplayerButtonActivation=!1;M.userActivation=!1;M.playlistWatchPageActivation=!1;M.productDetailsPageActivation=!1;M.miniAppPageActivation=!1;M.playablesDestPageActivation=!1;M.lockupActivation=!1;M.showMiniplayerCommandActivation=!1;M.playlistSuggestionsShelfActivation=!1;M.mediaSessionPipActivation=!1;M.watchPipActivation=!1;M.watchWhileActivation=!1;M.shortsPipActivation=!1;M.companionCanvasActivation=!1};
_.$iS=function(){var M=_.Bg(),q=M.mediaSessionPipActivation,G=M.watchPipActivation,K=M.watchWhileActivation,n=M.playlistWatchPageActivation,E=M.lockupActivation,p=M.showMiniplayerCommandActivation,y=M.navigatingAwayFromWatchDeletedVideo,Y=M.shortsPipActivation,A=M.playlistSuggestionsShelfActivation,v=M.productDetailsPageActivation,h=M.miniAppPageActivation,t=M.playablesDestPageActivation,O=M.companionCanvasActivation;return!M.miniplayerButtonActivation&&!n&&!A&&!v&&!h&&!t&&!E&&!p&&!q&&!G&&!K&&!Y&&
!O||y};var ROF;_.Qa=_.SE("FEwhat_to_watch","/",3854);_.fVu=_.SE("FEdownloads","/feed/downloads",42352);ROF=_.SE("FEmusic_offline","browse/FEmusic_offline",42352);var xz=function(M,q){q=q===void 0?[]:q;var G=G===void 0?[]:G;q=rcs.apply(null,[j5D.apply(null,_.Ui(q))].concat(_.Ui(G)));this.store=FEy(M,void 0,q)};
xz.prototype.getState=function(){return this.store.getState()};
xz.prototype.dispatch=function(M){return this.store.dispatch(M)};
xz.prototype.subscribe=function(M){return this.store.subscribe(M)};
xz.prototype.replaceReducer=function(M){return this.store.replaceReducer(M)};
xz.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.IQ=function(M,q,G){var K=q(M.getState());return M.subscribe(function(){var n=q(M.getState());if(n!==K){var E=K;K=n;G(n,E)}})};var oyi;_.LL=function(M,q,G){return _.RJ({type:"REPLACE_ENTITY",payload:{entityPayload:G,entityType:M,key:q}})};
oyi=function(M){return _.RJ({type:"REPLACE_ENTITIES",payload:M})};
_.hY=function(M,q,G,K){return _.RJ({type:"UPDATE_ENTITY",payload:{entityPayload:G,entityType:M,key:q,mergeOption:K}})};var jQF=function(M){var q=this;M=M===void 0?[]:M;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;M.forEach(function(G){q.append(G)})};
_.N=jQF.prototype;_.N.getLength=function(){return this.totalLength};
_.N.append=function(M){var q=this.arrays.length===0?!1:(q=this.arrays[this.arrays.length-1])&&q.buffer===M.buffer&&q.byteOffset+q.length===M.byteOffset;q?(q=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(q.buffer,q.byteOffset,q.length+M.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(M);this.totalLength+=M.length};
_.N.split=function(M){for(var q=new jQF,G=new jQF,K=_.k(this.arrays),n=K.next();!n.done;n=K.next())n=n.value,M>=n.length?(q.append(n),M-=n.length):M?(q.append(new Uint8Array(n.buffer,n.byteOffset,M)),G.append(new Uint8Array(n.buffer,n.byteOffset+M,n.length-M)),M=0):G.append(n);return{headView:q,tailView:G}};
_.N.isFocused=function(M){return M>=this.arrayPos&&M<this.arrayPos+this.arrays[this.arrayIdx].length};
_.N.focus=function(M){if(!this.isFocused(M))for(M<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=M&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var sKd=function(M,q){M.focus(q);return M.arrays[M.arrayIdx][q-M.arrayPos]};(function(){var M=function(K){return new Uint8Array(K)},q=function(K){for(var n=new Uint8Array(K.length),E=0;E<K.length;E++)n[E]=K[E];
return n},G=new Uint8Array([1]);
return G.length===1&&G[0]===1?M:q})();
var x1w=Array(1024),U1D=window.TextDecoder?new TextDecoder:void 0,m1w=window.TextEncoder?new TextEncoder:void 0;var r1$=function(M){this.arrayView=M;this.pos=0;this.pendingTagAndType=-1},f7=function(M){var q=sKd(M.arrayView,M.pos);
++M.pos;if(q<128)return q;for(var G=q&127,K=1;q>=128;)q=sKd(M.arrayView,M.pos),++M.pos,K*=128,G+=(q&127)*K;return G},V6$=function(M,q){var G=M.pendingTagAndType;
for(M.pendingTagAndType=-1;M.pos+1<=M.arrayView.totalLength;){G<0&&(G=f7(M));var K=G>>3,n=G&7;if(K===q)return!0;if(K>q){M.pendingTagAndType=G;break}G=-1;switch(n){case 0:f7(M);break;case 1:M.pos+=8;break;case 2:K=f7(M);M.pos+=K;break;case 5:M.pos+=4}}return!1};var fMF=function(){this.wasm=void 0;this.pos=0;this.submessagePosStack=[];this.buf=TT$(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},eE=function(M,q){q=M.pos+q;
if(!(M.buf.length>=q)){for(var G=M.buf.length*2;G<q;)G*=2;M.buf=TT$(G,M.wasm,M.buf.subarray(0,M.pos));M.view=new DataView(M.buf.buffer,M.buf.byteOffset,M.buf.byteLength)}},H8=function(M,q){if(q>268435455){eE(M,4);
for(var G=q&1073741823,K=0;K<4;K++)M.view.setUint8(M.pos,G&127|128),G>>=7,M.pos+=1;q=Math.floor(q/268435456)}for(eE(M,4);q>127;)M.view.setUint8(M.pos,q&127|128),q>>=7,M.pos+=1;M.view.setUint8(M.pos,q);M.pos+=1};for(var Fqu={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},RX$={},MQM=_.k(Object.entries(Fqu)),qPx=MQM.next();!qPx.done;qPx=MQM.next()){var G1p=_.k(qPx.value),KOv=G1p.next().value,n62=G1p.next().value,E6d=KOv,NZd=n62;NZd&&(RX$[NZd]=E6d)};var eXy=function(M,q){M=M===void 0?{}:M;switch(q.type){case "ENTITY_LOADED":return q.payload.reduce(function(K,n){var E,p=(E=n.options)==null?void 0:E.persistenceOption;if(p&&p!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&p!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return K;if(!n.entityKey)return _.T6(Error("If")),K;if(n.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!n.payload)return n=new _.bj("REPLACE entity mutation is missing a payload",{entityKey:n.entityKey}),_.T6(n),K;var y=(0,_.xP.getAnyKey)(n.payload);
return sqw(K,y,n.entityKey,n.payload[y])}if(n.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{n=n.entityKey;try{var Y=_.FI(n).entityType;y=sqw(K,Y,n);break a}catch(h){if(h instanceof Error){n=new _.bj("Failed to deserialize entity key",{entityKey:n,originalMessage:h.message});_.T6(n);y=K;break a}throw h;}y=void 0}return y}if(n.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!n.payload)return n=new _.bj("UPDATE entity mutation is missing a payload",{entityKey:n.entityKey}),_.T6(n),K;y=(0,_.xP.getAnyKey)(n.payload);
var A,v;return Mpy(K,y,n.entityKey,n.payload[y],(A=n.fieldMask)==null?void 0:(v=A.mergeOptions)==null?void 0:v.repeatedFieldsMergeOption)}return K},M);
case "REPLACE_ENTITY":var G=q.payload;return sqw(M,G.entityType,G.key,G.entityPayload);case "REPLACE_ENTITIES":return Object.keys(q.payload).reduce(function(K,n){var E=q.payload[n];return Object.keys(E).reduce(function(p,y){return sqw(p,n,y,E[y])},K)},M);
case "UPDATE_ENTITY":return G=q.payload,Mpy(M,G.entityType,G.key,G.entityPayload,G.mergeOption);default:return M}};var q_s;var k1d=!1,DM,uu,J1,ZM,bu,pPB=function(M){_.uI.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!k1d){var q,G=new Uint8Array(256),K=new Uint8Array(256);var n=1;for(q=0;q<256;q++)G[n]=q,K[q]=n,n^=n<<1^(n>>7&&283);DM=new Uint8Array(256);uu=Mb(256);J1=Mb(256);ZM=Mb(256);bu=Mb(256);for(var E=0;E<256;E++){n=E?K[255^G[E]]:0;n^=n<<1^n<<2^n<<3^n<<4;n=n&255^n>>>8^99;DM[E]=n;q=n<<1^(n>>7&&283);var p=q^n;uu[E]=q<<24|n<<16|n<<8|p;J1[E]=p<<24|uu[E]>>>8;ZM[E]=n<<24|J1[E]>>>
8;bu[E]=n<<24|ZM[E]>>>8}k1d=!0}n=Mb(44);for(G=0;G<4;G++)n[G]=M[4*G]<<24|M[4*G+1]<<16|M[4*G+2]<<8|M[4*G+3];for(K=1;G<44;G++)M=n[G-1],G%4||(M=(DM[M>>16&255]^K)<<24|DM[M>>8&255]<<16|DM[M&255]<<8|DM[M>>>24],K=K<<1^(K>>7&&283)),n[G]=n[G-4]^M;this.key=n};
_.l(pPB,_.uI);
pPB.prototype.encrypt=function(M){var q=M.length;M=new Uint8Array(M.buffer.slice(M.byteOffset,M.byteOffset+q));for(var G=this.cipherBlock,K=0;K<q&&this.blockOffset<16;)M[K++]^=G[this.blockOffset++];for(var n=q-(q-K)%16;K<n;)yXf(this),M[K++]^=G[0],M[K++]^=G[1],M[K++]^=G[2],M[K++]^=G[3],M[K++]^=G[4],M[K++]^=G[5],M[K++]^=G[6],M[K++]^=G[7],M[K++]^=G[8],M[K++]^=G[9],M[K++]^=G[10],M[K++]^=G[11],M[K++]^=G[12],M[K++]^=G[13],M[K++]^=G[14],M[K++]^=G[15];if(K<q)for(yXf(this),this.blockOffset=0;K<q;)M[K++]^=
G[this.blockOffset++];return M};
var yXf=function(M){for(var q=M.key,G=M.counter[0]^q[0],K=M.counter[1]^q[1],n=M.counter[2]^q[2],E=M.counter[3]^q[3],p=3;p>=0&&!(M.counter[p]=-~M.counter[p]);p--);for(var y,Y,A=4;A<40;)p=uu[G>>>24]^J1[K>>16&255]^ZM[n>>8&255]^bu[E&255]^q[A++],y=uu[K>>>24]^J1[n>>16&255]^ZM[E>>8&255]^bu[G&255]^q[A++],Y=uu[n>>>24]^J1[E>>16&255]^ZM[G>>8&255]^bu[K&255]^q[A++],E=uu[E>>>24]^J1[G>>16&255]^ZM[K>>8&255]^bu[n&255]^q[A++],G=p,K=y,n=Y;M=M.cipherBlock;p=q[40];M[0]=DM[G>>>24]^p>>>24;M[1]=DM[K>>16&255]^p>>16&255;M[2]=
DM[n>>8&255]^p>>8&255;M[3]=DM[E&255]^p&255;p=q[41];M[4]=DM[K>>>24]^p>>>24;M[5]=DM[n>>16&255]^p>>16&255;M[6]=DM[E>>8&255]^p>>8&255;M[7]=DM[G&255]^p&255;p=q[42];M[8]=DM[n>>>24]^p>>>24;M[9]=DM[E>>16&255]^p>>16&255;M[10]=DM[G>>8&255]^p>>8&255;M[11]=DM[K&255]^p&255;p=q[43];M[12]=DM[E>>>24]^p>>>24;M[13]=DM[G>>16&255]^p>>16&255;M[14]=DM[K>>8&255]^p>>8&255;M[15]=DM[n&255]^p&255};var LOJ=!1;(function(){var M=function(K){return new Uint8Array(K)},q=function(K){for(var n=new Uint8Array(K.length),E=0;E<K.length;E++)n[E]=K[E];
return n},G=new Uint8Array([1]);
return G.length===1&&G[0]===1?M:q})();
var Uj;var AXS=function(M){a:{if(!LOJ&&!yn){if(Uj){var q=Uj;break a}Uj=(q=window.crypto)==null?void 0:q.subtle;var G,K,n;if(((G=Uj)==null?0:G.importKey)&&((K=Uj)==null?0:K.sign)&&((n=Uj)==null?0:n.encrypt)){q=Uj;break a}Uj=void 0}q=void 0}q&&(this.nativeEncryptor=new YPf(M,q));this.encryptorPolyfill=new WOf(M)};
AXS.prototype.encrypt=function(M,q){var G=this,K;return _.L(function(n){switch(n.nextAddress){case 1:if(!G.nativeEncryptor){n.jumpTo(2);break}_.Cv(n,3);return n.yield(G.nativeEncryptor.encrypt(M,q),5);case 5:return n.return(n.yieldResult);case 3:K=_.i5(n),_.j1(K),LOJ=!0,G.nativeEncryptor=void 0;case 2:return n.return(G.encryptorPolyfill.encrypt(M,q))}})};
AXS.prototype.decrypt=function(M,q){return this.encrypt(M,q)};
var YPf=function(M,q){this.JSC$12846_aesKey=M;this.subtleCrypto=q};
YPf.prototype.encrypt=function(M,q){var G=this,K;return _.L(function(n){if(n.nextAddress==1)return _.Cv(n,2),n.yield(dj9(G,M,q),4);if(n.nextAddress!=2)return n.return(n.yieldResult);K=_.i5(n);_.j1(K);LOJ=!0;throw K;})};
var dj9=function(M,q,G){var K,n;return _.L(function(E){switch(E.nextAddress){case 1:if(M.cryptoKey){E.jumpTo(2);break}return E.yield(M.subtleCrypto.importKey("raw",M.JSC$12846_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:M.cryptoKey=E.yieldResult;case 2:return K={name:"AES-CTR",counter:G,length:128},E.yield(M.subtleCrypto.encrypt(K,M.cryptoKey,q),4);case 4:return n=E.yieldResult,E.return(new Uint8Array(n))}})},WOf=function(M){this.JSC$12849_aesKey=M};
WOf.prototype.encrypt=function(M,q){this.encryptor||(this.encryptor=new pPB(this.JSC$12849_aesKey));for(var G=this.encryptor,K=0;K<4;K++)G.counter[K]=q[K*4]<<24|q[K*4+1]<<16|q[K*4+2]<<8|q[K*4+3];G.blockOffset=16;return this.encryptor.encrypt(M)};
WOf.prototype.decrypt=function(M,q){return this.encrypt(M,q)};var v6p={},nye=A0("yt-idb-pref-storage",{objectStores:(v6p.prefs={addedAtVersion:1},v6p),shared:!1,upgrade:function(M,q){q(1)&&$5(eG(M,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.xx=function(M){this.token=M};
_.xx.getInstance=function(){return _.L(function(M){return M.return(new Promise(function(q){_.W2().then(function(G){G?(_.xx.instance||(_.xx.instance=new _.xx(G)),q(_.xx.instance)):q(void 0)})}))})};
_.xx.prototype.get=function(M){var q=this,G,K,n;return _.L(function(E){if(E.nextAddress==1)return E.yield(Eys(q.token),2);if(E.nextAddress!=3)return G=E.yieldResult,E.yield(G.get("prefs",M),3);K=E.yieldResult;if(!K)return E.return();n=(0,_.d8)();return K.expirationTimestampMs<=n?E.return():E.return(K.value)})};
_.xx.prototype.set=function(M,q,G){G=G===void 0?31536E3:G;var K=this,n,E,p;return _.L(function(y){if(y.nextAddress==1)return n=(0,_.d8)(),E={key:M,value:q,expirationTimestampMs:n+G*1E3},y.yield(Eys(K.token),2);p=y.yieldResult;return y.yield(p.put("prefs",E),0)})};
_.xx.prototype.remove=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(Eys(q.token),2);G=K.yieldResult;return K.yield(G.delete("prefs",M),0)})};var zk={},h8f=(zk.INVALID_ENCODER_VERSION="Invalid encoder version",zk.KEY_CREATION_FAILED="Failed to create encoder key",zk.UNKNOWN_DECODE_ERROR="Failed to decode PES data",zk.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",zk.WRONG_DATA_TYPE="Encoder cannot process the data type",zk),qb=function(M,q){q=q===void 0?{}:q;_.bj.call(this,h8f[M],Object.assign({},{name:"PESEncoderError",type:M},q));this.type=M;this.level="WARNING";Object.setPrototypeOf(this,qb.prototype)};
_.l(qb,_.bj);var mq=function(){};
mq.prototype.encode=function(M,q){try{return this.encodeImpl(M,q)}catch(G){y74(G,kDD)}};
mq.prototype.decode=function(M,q){try{return this.decodeImpl(M,q)}catch(G){y74(G,pzi)}};
var tQd=function(M,q,G){var K;return _.L(function(n){if(n.nextAddress==1)return _.Cv(n,2),n.yield(M.decodeAsyncImpl(q,G),4);if(n.nextAddress!=2)return n.return(n.yieldResult);K=_.i5(n);y74(K,pzi);_.gL(n)})};
mq.prototype.decodeAsyncImpl=function(M,q){return Promise.resolve(this.decodeImpl(M,q))};var S6=function(M,q){this.aesEncryptor=M;this.aesEncryptorAsync=q};
_.l(S6,mq);S6.prototype.encodeImpl=function(M,q){q=LZF(q);M=(new TextEncoder).encode(JSON.stringify(M));return this.aesEncryptor.encrypt(M,q)};
S6.prototype.decodeImpl=function(M,q){if(!(M instanceof Uint8Array))throw N1F(1);var G=new TextDecoder;q=LZF(q);M=this.aesEncryptor.decrypt(M,q);return JSON.parse(G.decode(M))};
S6.prototype.decodeAsyncImpl=function(M,q){var G=this,K,n,E;return _.L(function(p){if(p.nextAddress==1){if(!(M instanceof Uint8Array))throw N1F(1);K=new TextDecoder;n=LZF(q);return p.yield(G.aesEncryptorAsync.decrypt(M,n),2)}E=p.yieldResult;return p.return(JSON.parse(K.decode(E)))})};var Y_$={accountLinkStatusEntity:nN$,booleanEntity:I4p,buttonEntity:iRv,captionTrack:LQ$,channelHandle:NFJ,chipEntity:q2I,commerceAcquisitionClientPayloadEntity:sx9,commerceCartListEntity:MLl,compositeSourceEntity:PW8,multiviewStagingEntity:iV$,contextNoteFeedEntityPayload:wWB,contextNoteUserRatingEntityPayload:CMS,continuationTokenEntity:TT9,downloadQualityPickerEntity:IM$,downloadsPageRefreshTokenEntity:u3S,downloadsPageViewConfigurationEntity:$1I,downloadStatusEntity:D1P,dismissState:Gof,sfvAudioItemCurrentlyPlayingEntity:Tgd,
emojiFountainDataEntity:ldl,emojiCustomizationSetEntity:oLI,fakeChannel:JtB,fakePlaylist:ZhP,fakePlaylistEntryCollection:bh8,fakeVideo:xSJ,fakeVideoDescription:znP,featuredProductsEntity:OVS,flowStateEntity:MNx,iconBadgeEntity:qYp,interstitialInteractionStateEntity:CU$,likeButtonAnimationEntity:sqJ,liveChatPollStateEntity:gN9,dataFreshnessEntity:C0S,liveViewerLeaderboardChatEntryPointStateEntity:Xfp,liveViewerLeaderboardPointsEntity:PAf,liveReactionsDataEntity:X52,logoEntity:O1d,macroMarkerEntity:MpI,
mainDownloadsLibraryEntity:J1v,mainDownloadsListEntity:ZNJ,mainPlaylistDownloadStateEntity:U1x,mainPlaylistEntity:r19,mainPlaylistVideoEntity:jQl,mainVideoDownloadStateEntity:x1J,mainVideoEntity:Fqf,markersEngagementPanelSyncEntity:q_$,markersVisibilityOverrideEntity:GDl,musicAlbumReleaseDetail:D5J,musicAlbumReleaseDownloadMetadataEntity:c79,musicAlbumRelease:IIl,musicAlbumReleaseUserDetail:ut$,musicArtistDetail:ZVd,musicArtist:J7x,musicArtistUserDetail:bVx,musicDownloadsLibraryEntity:gy8,musicLibraryEdit:U5v,
musicLibraryStatusEntity:x59,musicPlaylist:zJl,musicPlaylistDownloadMetadataEntity:B1$,musicShare:S_v,musicTrackDetail:r72,musicTrackDownloadMetadataEntity:Qqf,musicTrack:T1v,musicTrackUserDetail:jqv,offlineOrchestrationActionWrapperEntity:YHx,offlineVideoPolicy:WQ8,offlineVideoStreams:AvB,offlineabilityEntity:zX2,orchestrationWebSamplingEntity:m1J,pageHeaderEntity:WFp,pdpStateEntity:GWl,pinnedProductEntity:wz9,playbackData:dt8,playerStateEntity:KZM,quantityIncrementerEntity:KUI,refresh:vvd,saveToPlaylistListEntity:yVP,
selectedChipIndexEntityPayload:nyM,settingEntity:QB9,stringEntity:DSx,suggestedFeedbackChipStateEntity:Ey$,transfer:hCS,trendingOfferEntity:CWd,videoDownloadContextEntity:tu8,videoOverviewAsyncDataEntity:i0l,videoPlaybackPositionEntity:BsP,votingEntity:hmp,ytMainChannelEntity:HNv,youchatPendingResponseEntity:N1l,ytMainDownloadedVideoEntity:SjJ,ytMainVideoEntity:eXv};var OMB,Cxf,Nb,wz$,CW4,lsP,Pxp,XPd,o6M;OMB=function(M,q){this.JSC$12868_wrapped=M;this.JSC$12868_encoderRegistry=q;this.changedKeys={}};
Cxf=function(M,q){return wP8(M.JSC$12868_encoderRegistry,q.version).decode(q.data,q.key)};
_.asv=function(M,q,G){return M.JSC$12868_wrapped.objectStore("EntityStore").get(q).then(function(K){if(K){if(G&&K.entityType!==G)throw Error("Jf");return Cxf(M,K)}})};
Nb=function(M,q,G){return G?(G=G.map(function(K){return _.asv(M,K,q)}),$J.all(G)):M.JSC$12868_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(q)).then(function(K){return K.map(function(n){return Cxf(M,n)})})};
_.OVH=function(M,q,G){var K=HNy(q),n=wP8(M.JSC$12868_encoderRegistry,1),E=Object.assign({},q);return M.JSC$12868_wrapped.objectStore("EntityStore").get(K).then(function(p){if(p){if(p.entityType!==G)throw Error("Jf");E.entityMetadata||(p=Cxf(M,p),E.entityMetadata=p.entityMetadata)}}).then(function(){var p={key:K,
entityType:G,data:n.encode(E,K),version:1};return $J.all([M.JSC$12868_wrapped.objectStore("EntityStore").put(p),o6M(M,E,G)])}).then(function(){lsP(M,K,G);
return K})};
wz$=function(M,q){var G=_.FI(q).entityType;return $J.all([M.JSC$12868_wrapped.objectStore("EntityStore").delete(q),XPd(M,q)]).then(function(){lsP(M,q,G)})};
CW4=function(M,q,G,K){var n=wP8(M.JSC$12868_encoderRegistry,1);return _.asv(M,q,K).then(function(E){if(E){E=bNw(E,G);var p={key:q,entityType:K,data:n.encode(E,q),version:1};return $J.all([M.JSC$12868_wrapped.objectStore("EntityStore").put(p),o6M(M,E,K)])}}).then(function(){lsP(M,q,K);
return q})};
lsP=function(M,q,G){var K=M.changedKeys[G];K||(K=new Set,M.changedKeys[G]=K);K.add(q)};
Pxp=function(M,q,G){var K=HNy(q);G=WZu(G);if(!G)return $J.resolve([]);G=new G(q);M=M.JSC$12868_wrapped.objectStore("EntityAssociationStore");q=[];G=_.k(G.getAssociations());for(var n=G.next();!n.done;n=G.next())q.push(M.put({parentEntityKey:K,childEntityKey:n.value}));return $J.all(q).then(function(E){return E.map(function(p){return p[1]})})};
XPd=function(M,q){return M.JSC$12868_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(q))};
o6M=function(M,q,G){var K=HNy(q);return XPd(M,K).then(function(){return Pxp(M,q,G)})};var iMS=function(){};
_.l(iMS,mq);iMS.prototype.encodeImpl=function(M){return M};
iMS.prototype.decodeImpl=function(M){if(M instanceof Uint8Array)throw N1F(0);return M};var vyu=function(){this.cacheMap={};this.cacheMap[0]=new iMS;if(!_.w("aes_pes_encoder_killswitch")){var M=this.cacheMap;try{var q=_.JL();var G=LZF(q);var K=new S6(new WOf(G),new AXS(G))}catch(n){throw M=n instanceof Error?new qb("KEY_CREATION_FAILED",{originalMessage:n.message}):new qb("KEY_CREATION_FAILED"),_.T6(M),M;}M[1]=K}},wP8=function(M,q){q=q===void 0?0:q;
M=M.cacheMap[q];if(!M)throw q=new qb("INVALID_ENCODER_VERSION",{encoderVersion:q}),_.T6(q),q;return M};var KK=function(M,q){_.uI.call(this);this.token=M;this.JSC$12882_encoderRegistry=q;this.observers=[];M=new _.Kj.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.JL());M.onmessage=this.JSC$12882_handleMessage.bind(this);this.channel=M};
_.l(KK,_.uI);_.EX=function(M,q,G){var K,n,E,p;return _.L(function(y){if(y.nextAddress==1)return y.yield(KZe(M.token),2);if(y.nextAddress!=3)return K=y.yieldResult,y.yield(_.Nl(K,["EntityStore","EntityAssociationStore"],q,function(Y){n=new OMB(Y,M.JSC$12882_encoderRegistry);return G(n)}),3);
E=y.yieldResult;n&&(p=n.changedKeys,Object.keys(p).length>0&&(M.channel.postMessage(p),cXI(M,p)));return y.return(E)})};
KK.prototype.observe=function(M){var q=this;this.observers.push(M);return function(){var G=q.observers.indexOf(M);G>=0&&q.observers.splice(G,1)}};
var vFu=function(M){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(_.EX(M,{mode:"readonly",enableRetries:!0},function(K){return K.JSC$12868_wrapped.objectStore("EntityStore").getAll()}),2);
q=G.yieldResult;return G.return(Promise.all(q.filter(function(K){return!!K}).map(function(K){var n,E;
return _.L(function(p){if(p.nextAddress==1){n=K.key;E=K.entityType;var y=p.yield;var Y=tQd(wP8(M.JSC$12882_encoderRegistry,K.version),K.data,K.key);return y.call(p,Y,2)}return p.return({key:n,entityType:E,data:p.yieldResult})})})))})};
KK.prototype.JSC$12882_handleMessage=function(M){cXI(this,M.data)};
var cXI=function(M,q){M=_.k(M.observers);for(var G=M.next();!G.done;G=M.next())G=G.value,G(q)};
KK.prototype.disposeInternal=function(){this.channel.close()};
var A7H;var Tk,BZ2,zJF;Tk={};_.g6J=(Tk.mainVideoEntity="mainVideoEntityActionMetadata",Tk.mainPlaylistEntity="mainPlaylistEntityActionMetadata",Tk.musicTrack="musicTrackEntityActionMetadata",Tk.musicPlaylist="musicPlaylistEntityActionMetadata",Tk);BZ2=new _.$k("DOWNLOADS_ENTITY_TYPE_MAP");_.vs=_.$p("","downloadsPageViewConfigurationEntity");zJF=_.$p("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.wfs=_.$p("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.$p("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.$p("SMART_DOWNLOADS_ENABLED","settingEntity");_.$p("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var PWF=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var D5w=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];_.QKS={isLeaderTab:!0};var kz4={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var rT=window,Bs=rT.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US",NJ4=rT.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||Q0,TJF=rT.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||sz,RVp=rT.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||VsI,r$S=rT.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||nep,k2e=rT.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||LgM;var ESY;Jn({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 GRy=rVe(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(M){return M}}}),uhi=rVe(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(M){return M}}}),f6i=new Map;var n8s=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],scY;var Is9=function(M){return _.RJ({type:"SET_EPHEMERAL_ACTION",payload:M})};_.Dj$={ephemeralAction:null};var uBd=function(M){return _.RJ({type:"SET_SHARED_PERSISTENT_PANEL_VISIBLE",payload:M})};_.JXp={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:"",persistentPanelVisible:!1};var Bns={sharedUi:function(M,q){M=M===void 0?_.JXp:M;switch(q.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},M,{animatedThumbnailEnabled:q.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},M,{inlinePreviewEnabled:q.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},M,{currentPageType:q.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},M,{currentPageSubType:q.payload});case "SET_SHARED_PERSISTENT_PANEL_VISIBLE":return Object.assign({},
M,{persistentPanelVisible:q.payload});default:return M}},
a11y:gh({ephemeralAction:function(M,q){M=M===void 0?_.Dj$.ephemeralAction:M;switch(q.type){case "SET_EPHEMERAL_ACTION":return q.payload;default:return M}}}),
entities:$1y};_.L$s={playlistId:"",inviteLinkURL:""};_.ZMB={continuationCommand:{}};var aBy=gh({continuationCommand:function(M,q){M=M===void 0?_.ZMB.continuationCommand:M;switch(q.type){case "SET_CONTINUATION_COMMAND":return q.payload.continuationCommand;default:return M}}});_.W$Y={currentFormId:"",commandsMap:{}};var o8H=gh({isLeaderTab:function(M,q){M=M===void 0?_.QKS.isLeaderTab:M;switch(q.type){case "SET_IS_LEADER_TAB":var G,K;return(K=q==null?void 0:(G=q.payload)==null?void 0:G.isLeaderTab)!=null?K:M;default:return M}}});var UjM;_.bM9=function(M){return _.RJ({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:M}})};
UjM=function(M){return _.RJ({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:M}})};_.j6={isDesktopSmallWidth:!1,isShortsActive:!1,isWatchWhileMode:!1,playerState:-1,isFullscreen:!1,isSmallScreenSqueezeback:!1,isPlaybackStarted:!1,isShortsPipActive:!1};var g8w=gh({isDesktopSmallWidth:function(M,q){M=M===void 0?_.j6.isDesktopSmallWidth:M;switch(q.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return q.payload.isDesktopSmallWidth;default:return M}},
isShortsActive:function(M,q){M=M===void 0?_.j6.isShortsActive:M;switch(q.type){case "SET_IS_SHORTS_ACTIVE":return q.payload.isShortsActive;default:return M}},
isWatchWhileMode:function(M,q){M=M===void 0?_.j6.isWatchWhileMode:M;switch(q.type){case "SET_IS_WATCH_WHILE_MODE":return q.payload.isWatchWhileMode;default:return M}},
playerState:function(M,q){M=M===void 0?_.j6.playerState:M;switch(q.type){case "SET_PLAYER_STATE":return q.payload.playerState;default:return M}},
isFullscreen:function(M,q){M=M===void 0?_.j6.isFullscreen:M;switch(q.type){case "SET_IS_FULLSCREEN":return q.payload.isFullscreen;default:return M}},
isSmallScreenSqueezeback:function(M,q){M=M===void 0?_.j6.isSmallScreenSqueezeback:M;switch(q.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return q.payload.isSmallScreenSqueezeback;default:return M}},
isShortsPipActive:function(M,q){M=M===void 0?_.j6.isShortsPipActive:M;switch(q.type){case "SET_IS_SHORTS_PIP_ACTIVE":return q.payload.isShortsPipActive;default:return M}},
isPlaybackStarted:function(M,q){M=M===void 0?_.j6.isPlaybackStarted:M;switch(q.type){case "SET_IS_PLAYBACK_STARTED":return q.payload.isPlaybackStarted;default:return M}}});_.dJw={currentMode:"canvas-hidden"};var IBD=function(){return function(M){return function(q){var G=M(q);_.VW(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[q],!0);return G}}};var xjB,UGy;xjB=new _.sp;_.fp=new _.$k("WATCH_PLAYER_PROMISE_TOKEN");_.z8$=new _.sp;_.mjP=new _.$k("SHORTS_PLAYER_PROMISE_TOKEN");UGy=new _.$k("GET_SHORTS_PLAYER_FUNCTION_TOKEN");var DJe=function(){return function(M){return function(q){q.type==="ENTITY_LOADED"&&_.AL().resolve(_.fp).then(function(G){var K;(K=G.dispatchReduxAction)==null||K.call(G,q)});
return M(q)}}};_.SPf={additionalContext:"",impersonatedChannelUrl:"",selectedVideoIds:{}};var lB$=gh({additionalContext:function(M,q){M=M===void 0?_.SPf.additionalContext:M;switch(q.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var G;return(G=q.payload)!=null?G:"";default:return M}},
impersonatedChannelUrl:function(M,q){M=M===void 0?_.SPf.impersonatedChannelUrl:M;switch(q.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var G;return(G=q.payload)!=null?G:"";default:return M}},
selectedVideoIds:function(M,q){M=M===void 0?_.SPf.selectedVideoIds:M;switch(q.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var G={};return Object.assign({},M,(G[q.payload]=!0,G));case "VIDEO_UNSELECTED":return q=q.payload,M=Object.assign({},M),delete M[q],M;default:return M}}});_.TZB={parentClickTrackingParams:""};var Xle=gh({parentClickTrackingParams:function(M,q){M=M===void 0?_.TZB.parentClickTrackingParams:M;switch(q.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return q.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return M}}});var rXI=function(M){return _.RJ({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:M})};_.jK8={stepStates:{}};var P4u=gh({stepStates:function(M,q){M=M===void 0?_.jK8.stepStates:M;switch(q.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var G=M,K=q.payload,n,E,p;M={};q={selectionStates:Object.assign({},(p=(n=G[K.stepId])==null?void 0:n.selectionStates)!=null?p:{},(M[K.token]={isSelected:K.isSelected},M)),userQuery:(E=G[K.stepId])==null?void 0:E.userQuery};n={};return Object.assign({},G,(n[K.stepId]=q,n));case "TALK_TO_RECS_UPDATE_USER_QUERY":return n=M,E=q.payload,
p={selectionStates:Object.assign({},(K=(G=n[E.stepId])==null?void 0:G.selectionStates)!=null?K:{}),userQuery:{userQuery:E.userQuery,token:E.userQueryToken}},G={},Object.assign({},n,(G[E.stepId]=p,G));default:return M}}});var VQv,R8I,FOP;VQv=function(M){return _.RJ({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:M})};
R8I=function(M){return _.RJ({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:M})};
_.dr=function(M){return _.RJ({type:"SET_CURRENT_PAGE_TYPE",payload:M})};
_.fsM=function(M){return _.RJ({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:M})};
FOP=function(M){return _.RJ({type:"SET_CHIP_BAR_IS_STICKY",payload:M})};_.hse={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"};_.HMP=function(M){return _.RJ({type:"SET_PLAYER_STATE",payload:{playerState:M}})};_.Va={isWatchActive:!1,isLearningJourneyActive:!1,isSwatcherooActive:!1,isTheaterMode:OiH(),isWatchFullscreen:!1,isWatchNarrowWidth:!1,isWatchRetroMode:!1,isLiveChatCollapsed:!1,openEngagementPanels:[],playerState:-1,watchScrollTop:0,watchWindowSize:{width:0,height:0}};var iiH=gh({isTheaterMode:function(M,q){M=M===void 0?OiH():M;switch(q.type){case "SET_IS_THEATER_MODE":return q.payload.isTheaterMode;default:return M}},
isWatchActive:function(M,q){M=M===void 0?_.Va.isWatchActive:M;switch(q.type){case "SET_IS_WATCH_ACTIVE":return q.payload.isWatchActive;default:return M}},
isLearningJourneyActive:function(M,q){M=M===void 0?_.Va.isLearningJourneyActive:M;switch(q.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return q.payload.isLearningJourneyActive;default:return M}},
isWatchFullscreen:function(M,q){M=M===void 0?_.Va.isWatchFullscreen:M;switch(q.type){case "SET_IS_WATCH_FULLSCREEN":return q.payload.isWatchFullscreen;default:return M}},
isWatchNarrowWidth:function(M,q){M=M===void 0?_.Va.isWatchNarrowWidth:M;switch(q.type){case "SET_IS_WATCH_NARROW_WIDTH":return q.payload.isWatchNarrowWidth;default:return M}},
isSwatcherooActive:function(M,q){M=M===void 0?_.Va.isSwatcherooActive:M;switch(q.type){case "SET_IS_SWATCHEROO_ACTIVE":return q.payload.isSwatcherooActive;default:return M}},
isWatchRetroMode:function(M,q){M=M===void 0?_.Va.isWatchRetroMode:M;switch(q.type){case "SET_IS_WATCH_RETRO_MODE":return q.payload.isWatchRetroMode;default:return M}},
isLiveChatCollapsed:function(M,q){M=M===void 0?_.Va.isLiveChatCollapsed:M;switch(q.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return q.payload.isLiveChatCollapsed;default:return M}},
openEngagementPanels:function(M,q){M=M===void 0?_.Va.openEngagementPanels:M;var G=[].concat(_.Ui(M));switch(q.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return G.push(q.payload.panelToAdd),G;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return G.splice(G.indexOf(q.payload.panelToRemove),1),G;default:return M}},
playerState:function(M,q){M=M===void 0?_.Va.playerState:M;switch(q.type){case "SET_PLAYER_STATE":return q.payload.playerState;default:return M}},
watchScrollTop:function(M,q){M=M===void 0?_.Va.watchScrollTop:M;switch(q.type){case "SET_WATCH_SCROLL_TOP":return q.payload.watchScrollTop;default:return M}},
watchWindowSize:function(M,q){M=M===void 0?_.Va.watchWindowSize:M;switch(q.type){case "SET_WATCH_WINDOW_SIZE":return q.payload.watchWindowSize;default:return M}}});_.e8M={surveyFeedbackData:{feedbackTokens:[]}};var caj=gh({surveyFeedbackData:function(M,q){M=M===void 0?_.e8M.surveyFeedbackData:M;switch(q.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return q.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},M,q.payload);default:return M}}});_.wlu={};var Ja4=void 0;_.w("web_enable_redux_store_on_demand")||(Ja4=u5j());var $jv=function(M,q,G){var K=this;this.listId=M;this.JSC$13026_updateCallback=q;this.isOfflineVideoCallback=G;_.zw().subscribe(function(){K.handleUpdate()})};
$jv.prototype.getPlaylistData=function(){var M=_.zw().getState().entities;if(this.listId&&this.listId!=="PPSV"){var q=HVH(M,this.listId,!0),G=_.$p(this.listId,"mainPlaylistEntity"),K,n;M=M==null?void 0:(K=M.mainPlaylistEntity)==null?void 0:(n=K[G])==null?void 0:n.title;return ZiH(q,M,this.listId)}q=_.uts(PAu(M));M=_.uts(_.hn(M));M=q.concat(M);return ZiH(M)};
$jv.prototype.getPlaylistId=function(){return this.listId};
$jv.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$13026_updateCallback(this.listId,this.getPlaylistData(),{})};var RQ=function(M,q,G,K){K=K===void 0?[]:K;this.JSC$13029_playlistNetworkManager=M;this.listId=q;this.JSC$13029_updateCallback=G;this.videoIds=K;this.pendingUpdates=[];this.currentIndex=0};
RQ.prototype.JSC$13029_setCurrentIndex=function(M){this.currentIndex=M};
RQ.prototype.setListId=function(M){this.listId=M};
var sdd=function(M,q){M.currentCreateRequest&&M.currentCreateRequest.cancel(q);M.currentUpdateRequest&&M.currentUpdateRequest.cancel(q);M.currentRefreshRequest&&M.currentRefreshRequest.cancel(q)};
RQ.prototype.delete=function(){sdd(this,"PROXY DELETED")};
RQ.prototype.addVideos=function(M,q,G){var K=this;G!==void 0?this.videoIds.splice.apply(this.videoIds,[G,0].concat(_.Ui(M))):this.videoIds.push.apply(this.videoIds,_.Ui(M));this.listId||this.currentCreateRequest?(M.forEach(function(n,E){n={addedVideoId:n,action:"ACTION_ADD_VIDEO"};G&&(n.addedVideoPosition=G+E);K.pendingUpdates.push(n)}),fN(this)):MyS(this,q.onCreateListCommand)};
var qtl=function(M,q,G,K,n){UDs(M.videoIds,q,G);q>M.currentIndex&&G<=M.currentIndex?M.JSC$13029_setCurrentIndex(M.currentIndex+1):q===M.currentIndex?M.JSC$13029_setCurrentIndex(G):q<M.currentIndex&&G>=M.currentIndex&&M.JSC$13029_setCurrentIndex(M.currentIndex-1);M.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:K,movedSetVideoIdPredecessor:n});fN(M)},MyS=function(M,q){sdd(M,"OBSOLETE");
M.currentCreateRequest=GxP(M.JSC$13029_playlistNetworkManager,q,M.videoIds);_.l2(M.currentCreateRequest,function(){M.currentCreateRequest=void 0}).then(function(G){M.setListId(G.playlistId);
M.pendingUpdates.length>0?fN(M):KVB(M)})},fN=function(M){if(M.pendingUpdates.length!==0&&(M.currentRefreshRequest&&M.currentRefreshRequest.cancel("OBSOLETE"),!M.currentUpdateRequest&&!M.currentCreateRequest)){var q=M.pendingUpdates.splice(0,M.pendingUpdates.length);
M.currentUpdateRequest=M.JSC$13029_playlistNetworkManager.updatePlaylist(M.listId,q);_.l2(M.currentUpdateRequest,function(){M.currentUpdateRequest=void 0}).then(function(){M.pendingUpdates.length>0?fN(M):KVB(M)}).thenCatch(function(){M.pendingUpdates.unshift.apply(M.pendingUpdates,_.Ui(q))})}},KVB=function(M){M.currentRefreshRequest=_.no9(M.JSC$13029_playlistNetworkManager,M.listId,M.currentIndex,M.videoIds[M.currentIndex]);
_.l2(M.currentRefreshRequest,function(){M.currentRefreshRequest=void 0}).then(function(q){M.JSC$13029_updateCallback(q.playlistId,q.playlistPanelRenderer,q.autoplayRenderer)})};
RQ.prototype.size=function(){return this.videoIds.length};var Eox=function(M,q,G,K){K=K===void 0?[]:K;RQ.call(this,M,q,G,K);this.JSC$13029_playlistNetworkManager=M;this.listId=q;this.JSC$13029_updateCallback=G;this.videoIds=K};
_.l(Eox,RQ);_.F3=function(M,q,G,K,n,E,p){n=n===void 0?[]:n;p=p===void 0?KE:p;RQ.call(this,M,q,G,n);this.JSC$13029_playlistNetworkManager=M;this.listId=q;this.JSC$13029_updateCallback=G;this.onAuthChange=K;this.videoIds=n;this.storage=E;this.cookieReader=p;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.RM(_.r8,this.checkLoggedInStatusChange.bind(this),1E3)};
_.l(_.F3,RQ);_.N=_.F3.prototype;_.N.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.RM(_.r8,this.checkLoggedInStatusChange.bind(this),1E3)};
_.N.JSC$13029_setCurrentIndex=function(M){RQ.prototype.JSC$13029_setCurrentIndex.call(this,M);this.store()};
_.N.delete=function(){_.r8.cancelJob(this.queueSapisIdJob);RQ.prototype.delete.call(this)};
_.N.setListId=function(M){RQ.prototype.setListId.call(this,M);this.store()};
_.N.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var N0p=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],kx2=["playerResponse","videoDetails"],pjv=["response","currentVideoEndpoint","watchEndpoint","videoId"],yUl=["response","currentVideoEndpoint","watchEndpoint","playlistId"],LV2=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Yt9=["response","contents","twoColumnWatchNextResults","playlist","playlist"],WV9=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
AU$=["response","contents","twoColumnWatchNextResults"];var Hg={},mJF=(Hg.WEB_UNPLUGGED="^unplugged/",Hg.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Hg.WEB_UNPLUGGED_OPS="^unplugged/",Hg.WEB_UNPLUGGED_PUBLIC="^unplugged/",Hg.WEB_CREATOR="^creator/",Hg.WEB_KIDS="^kids/",Hg.WEB_EXPERIMENTS="^experiments/",Hg.WEB_MUSIC="^music/",Hg.WEB_REMIX="^music/",Hg.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Hg.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Hg);var WUy,GxP;WUy=function(M,q){this.networkManager=M;this.innertubeTransportService=q};
GxP=function(M,q,G){if(!_.C(q,_.eN))return _.Aj(Error("Nf"));_.C(q,_.eN).videoIds=G;G={create_playlist_title:_.Ge("QUEUE",void 0,"Queue")};return xJF(_.Dt(M.innertubeTransportService,q,G),biw)};
_.no9=function(M,q,G,K){q={videoId:K,playlistId:q,playlistIndex:G};G=_.m4(WNJ);return xJF(_.e6(M.innertubeTransportService,q,G),zsF)};
WUy.prototype.updatePlaylist=function(M,q){return xJF(_.Dt(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:M,actions:q}}),UJD)};var dwP=function(M){this.storage=M},voB;
dwP.prototype.store=function(M,q){q=q===void 0?0:q;if(this.storage&&M.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",M),this.storage.set("TLPQindex",String(q)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(G){}};
dwP.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
dwP.prototype.getPlaylistId=function(){if(!this.storage)return null;var M=null;try{M=this.storage.get("TLPQplaylist")}catch(q){}return M};var jc4=["navigationEndpoint","watchEndpoint","videoId"],raw=["nextButtonVideo","watchEndpoint","videoId"];_.L_=new _.$k("NETWORK_TOKEN");_.md=new _.$k("PAGE_TOKEN");_.$x=new _.$k("PLAYLIST_TOKEN");var hi9;hi9=new _.$k("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.YU=new _.$k("INNERTUBE_TRANSPORT_TOKEN");var ty$,s_,wjf,Cl8,ooS,lzl;ty$=new Set(["ci","cr","carml"]);s_=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$13076_parkedJobs=new Map;this.parkedProcessors=new Map};
_.M5=function(){s_.instance||(s_.instance=new s_);return s_.instance};
s_.prototype.onAny=function(M){return _.OU2(this,M,2)};
s_.prototype.parkOrScheduleJob=function(M,q,G,K,n){_.q5(this,G)?_.AM().addJob(M,q,K):(n&&(M=wjf(M),Cl8(this,M,q,G,n)),n=this.JSC$13076_parkedJobs.get(G),n||(this.JSC$13076_parkedJobs.set(G,[]),n=this.JSC$13076_parkedJobs.get(G)),n.push({job:M,priority:q,delay:K}))};
s_.prototype.addListener=function(M,q,G){G&&(q=wjf(q),Cl8(this,q,0,M,G));G=this.parkedProcessors.get(M);G||(this.parkedProcessors.set(M,[]),G=this.parkedProcessors.get(M));G.push(q)};
s_.prototype.processSignal=function(M){if(!_.q5(this,M)){this.inProgressSignals.add(M);var q=this.JSC$13076_parkedJobs.get(M);if(q){q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=G.value,_.AM().addJob(G.job,G.priority,G.delay);this.JSC$13076_parkedJobs.delete(M)}if(q=this.parkedProcessors.get(M)){q=_.k(q);for(G=q.next();!G.done;G=q.next())G=G.value,G();this.parkedProcessors.delete(M)}this.signals.push(M);this.inProgressSignals.delete(M)}};
_.q5=function(M,q){return ty$.has(q)||_.fX("IS_HOMEPAGE_COLD")||_.fX("IS_RESULTS_PAGE_COLD")||_.fX("IS_WATCH_PAGE_COLD")?M.signals.indexOf(q)>=0:!0};
wjf=function(M){var q=!1;return function(){q||(q=!0,M())}};
Cl8=function(M,q,G,K,n){if(azI.has(K))_.AM().addJob(q,G,n);else{var E=M.compoundSignals.get(K);E&&_.AM().addJob(function(){_.q5(M,K)||(E.isTimeoutConditionSatisfied?_.AM().addJob(q,G):E.timeoutConditionObservers.push(function(){_.AM().addJob(q,G)}))},G,n)}};
_.OU2=function(M,q,G){if(q.length>1){var K=[],n=Object.create(null);q=_.k(q);for(var E=q.next();!E.done;E=q.next())E=E.value,n[E]||(K.push(E),n[E]=!0);q=K}if(q.length===1)return q[0];E=q;K="";n=G===2?"|":"&";E.sort();E=_.k(E);for(var p=E.next();!p.done;p=E.next())K+=p.value+n;if(!M.compoundSignals.get(K)){n=0;E=[];p=_.k(q);for(var y=p.next();!y.done;y=p.next())y=y.value,n++,_.q5(M,y)||E.push(y);(G=G===2)&&n>E.length||!G&&!E.length?M.signals.push(K):ooS(M,K,G,q,E)}return K};
ooS=function(M,q,G,K,n){var E=n.length,p=function(){G||--E===0?M.processSignal(q):lzl(M,q)};
n=_.k(n);for(var y=n.next();!y.done;y=n.next())M.addListener(y.value,p);M.compoundSignals.set(q,{signals:K,isOnAny:G,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});lzl(M,q)};
lzl=function(M,q){if(!_.q5(M,q)){var G=M.compoundSignals.get(q);if(G&&!G.isTimeoutConditionSatisfied){for(var K=!1,n=0,E=0,p=_.k(G.signals),y=p.next();!y.done;y=p.next()){var Y=y.value;y=!_.q5(M,Y);azI.has(Y)?K=!0:(Y=M.compoundSignals.get(Y))?y&&!Y.isTimeoutConditionSatisfied&&(E++,G.isInitialized||Y.timeoutConditionObservers.push(function(){lzl(M,q)})):y&&n++}G.isInitialized=!0;
G.isOnAny?K&&(G.isTimeoutConditionSatisfied=!0):n===0&&E===0&&(G.isTimeoutConditionSatisfied=!0);if(G.isTimeoutConditionSatisfied)for(G=_.k(G.timeoutConditionObservers),K=G.next();!K.done;K=G.next())K=K.value,K()}}};
s_.prototype.processSignal=s_.prototype.processSignal;s_.prototype.parkOrScheduleJob=s_.prototype.parkOrScheduleJob;s_.prototype.onAny=s_.prototype.onAny;_.Y5("ytsignals.getInstance",_.M5);s_.prototype.onAny=s_.prototype.onAny;s_.prototype.parkOrScheduleJob=s_.prototype.parkOrScheduleJob;s_.prototype.processSignal=s_.prototype.processSignal;var azI=new Set(["eop","eocs","dl","pcl"]);_.lq=new _.$k("MINIPLAYER_SERVICE");var GD,XjS,Pll;GD=function(M,q,G){var K=_.GC.getInstance();if(!voB){var n=new zeH;var E=void 0,p=_.R9("ID_TOKEN");p&&n.isAvailable()&&(E=new m8(n,"yt-queue"+p));voB=new dwP(E)}n=voB;E=_.M5();this.JSC$13083_actionRouter=K;this.JSC$13083_pageManager=M;this.playlistManager=q;this.JSC$13083_playlistNetworkManager=G;this.storage=n;this.signals=E;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.KV=function(){if(!XjS){var M=_.AL(),q=M.resolve(_.WR(_.md)),G=M.resolve(_.WR(_.L_)),K=M.resolve(_.WR(_.$x));M=M.resolve(_.YU);XjS=new GD(q,K,new WUy(G,M))}return XjS};
Pll=function(M,q,G){if(G){var K;if(((K=M.responsePlaylistData)==null?void 0:K.playlistId)!==G)return}M.responsePlaylistData&&(G=esY(q,M.responsePlaylistData),M.responsePlaylistData=(0,_.xP.unsafeClone)(M.responsePlaylistData),s4j(M.responsePlaylistData,G));G=M.temporaryItems.findIndex(function(n){return n.videoId===q});
G>-1&&M.temporaryItems.splice(G,1);_.nV(M,_.E_(M,M.response?M.response.autoplayRenderer:void 0))};
_.iUP=function(M,q){if(M.responsePlaylistData){var G=$J4(q,M.responsePlaylistData);s4j(M.responsePlaylistData,G);if(M.queueProxy){var K=M.queueProxy;G<0||(K.videoIds.splice(G,1),G<K.currentIndex&&K.JSC$13029_setCurrentIndex(K.currentIndex-1),K.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:q}),fN(K))}}_.nV(M,_.E_(M,M.response?M.response.autoplayRenderer:void 0))};
GD.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.nV(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
GD.prototype.setPlaylistData=function(M,q,G){this.temporaryItems=[];this.listId=M;this.responsePlaylistData=q;_.nV(this,_.E_(this,G))};
var cUl=function(M){return(M==null?0:M.playlistId)?M.playlistId:"PPSV"},go2=function(M){return M&&M.playlistId?M.playlistId==="PPSV"?!0:fIj(_.zw().getState().entities,M.playlistId):!1};
GD.prototype.isPlayingOfflineVideo=function(){return this.response?go2(this.response):!1};
GD.prototype.closeMiniplayer=function(M){var q=this.queueProxy&&this.queueProxy.size()<=1,G=_.AL().resolve(_.lq);if(!this.queueProxy||q)this.queueProxy&&this.clearQueue(),G.close(!0);else{G.pipController.getWindow()&&window.focus();q=this.responsePlaylistData;var K=this.temporaryItems.length+(q&&q.contents?q.contents.length:0);q=_.Ge("QUEUE_CLEARED_UNPLURALIZED")||_.K7("QUEUE_CLEARED",K);q=_.Tw(q);G=_.Ge("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");K=_.Ge("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.K7("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",K);var n=_.Ge("MINIPLAYER_CLOSE",void 0,"Close"),E=_.Ge("CANCEL",void 0,"Cancel");_.Js(this.JSC$13083_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.bc(G),dialogMessages:[_.bc(K)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bc(n),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
q]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.bc(E)}}}}}}],M)}};
_.E_=function(M,q){var G={},K=M.response;G.autoplayRenderer=q;if(!M.responsePlaylistData&&!M.temporaryItems.length)return!K||!K.hasRelatedVideoData&&_.w("kevlar_prefetch_data_augments_network_data")||(G.playerData={rvs:K.relatedVideoArgs,endScreenRenderer:K.endScreenRenderer}),G;G.playerData={};if(M.index===void 0)return _.T6(Error("Pf")),G;G.panel=M.responsePlaylistData?(0,_.xP.unsafeClone)(M.responsePlaylistData):{titleText:_.bc(_.Ge("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
q=G.panel;if(q.contents)for(var n=_.k(M.temporaryItems),E=n.next();!E.done;E=n.next())q.contents.push({playlistPanelVideoRenderer:E.value});M.queueProxy&&K&&K.playingVideo&&K.playingVideoId&&!Hie(K.playingVideoId,G.panel)&&(q=K.playingVideo,n=G.panel,E=M.index,n.contents&&n.contents.splice(E===void 0?0:E,0,{playlistPanelVideoRenderer:q}));K&&K.playingVideoId&&(q=M.index,n=G.panel,q=!n.contents||q>=n.contents.length?void 0:n.contents[q].playlistPanelVideoRenderer,q&&q.videoId===K.playingVideoId||(q=
esY(K.playingVideoId,G.panel),M.index=q!==-1?q:M.index?M.index-1:0));q=F$H(M.index+1,G.panel);n=void 0;M.index>0&&(n=F$H(M.index-1,G.panel));if(n||q)G.autoplayRenderer=Vjj(q,n,G.autoplayRenderer);!q&&(K==null?0:K.relatedVideoArgs)&&(G.playerData.rvs=K.relatedVideoArgs);K=K?K.playlistIndexOffset:0;M.queueProxy?Gou(G.panel,M.index,K,fBw,!0,!0,!0):Gou(G.panel,M.index,K);G.playerData.playlistPanelRenderer=G.panel;return G};
GD.prototype.openToast=function(M){_.AL().resolve(_.lq).openToast(M,_.Ge("ADDED_TO_QUEUE",void 0,"Added to queue"))};
GD.prototype.isMiniplayerActive=function(){return _.AL().resolve(_.lq).isMiniplayerActive()};
_.nV=function(M,q){M.playlistManager.setAutoplayRenderer(q.autoplayRenderer||null);M.playlistManager.setPlaylistData(q.panel||null);q.playerData&&M.playlistManager.setPlayerPlaybackControlData(q.playerData)};var nL4="#";var B0B={},Qdp={},Izl={},DwJ={},udv={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:(B0B.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",B0B),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:(Qdp.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",Qdp),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:(Izl.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",Izl),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:(DwJ.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",DwJ),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 mBF=[{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:udv},{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:udv}}];var Q4$;_.$z=[[["bG50OWttMnc3aDN5a2luZCM=","eW9rdXl5NWhiYW1ndmFsdWUj"],"eGM0c2s1MmNuOThyQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQj"]];
Q4$=[[["MnRqMXhvejFocnFocHJpbWFyeSM=",null,null],[null,["aXZnYW16aXcwdWQ0eXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","czgydmU4bzVqN3Zyc3R5bGUtc2NvcGUj"],null],["bGhwdjBrOHd3Zzh3bWFzdGhlYWQtYWQj",["dDNxb3E4bW4ybTRheXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM="],null],[null,["bHl2aXZyajRpdWJreXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM=","Nzh0bGxrZXFnbm1sc3R5bGUtc2NvcGUj"],null],[null,["YnJpaGY1dXU3b29jeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","NGdzeWt4ejV0bzN0c3R5bGUtc2NvcGUj"],null],[null,["OHhqNzZ1bG04M24yeXRkLWFkLXNsb3QtcmVuZGVyZXIj"],
null]],[["cGwwcWI3d29laWM3cGxheWVyLWFkcyM=",null,null]]];_.eg=["NWNweXB3YmZxZWQ5Z2xvYmFsQ2FsbGJhY2tzIw==","MzNlaXUxd2c5NjF0b25BYm5vcm1hbGl0eURldGVjdGVkIw==","anJrdWRtNnViOXk0b25BZFNraXAj","ZW1xaDY1MjFjb3BvcmF3X3BsYXllcl9yZXNwb25zZSM=","cmx2d3M0ajh4N2pkYWRTbG90cyM="];_.N5="NWNweXB3YmZxZWQ5Z2xvYmFsQ2FsbGJhY2tzIw== MzNlaXUxd2c5NjF0b25BYm5vcm1hbGl0eURldGVjdGVkIw== anJrdWRtNnViOXk0b25BZFNraXAj ZW1xaDY1MjFjb3BvcmF3X3BsYXllcl9yZXNwb25zZSM= aGsweHBlbGVyZXpzd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIw== bWFibnk3ZWh1MGlvYWJfc2FfZWYj cmx2d3M0ajh4N2pkYWRTbG90cyM=".split(" ");var ky;ky=function(M,q,G){this.z9F=M;this.isAsync=q;this.tgH=G};
_.sx$=[new ky("b.f_",!1,0),new ky("j.s_",!1,2),new ky("r.s_",!1,4),new ky("e.h_",!1,6),new ky("i.s_",!0,8),new ky("s.t_",!1,10),new ky("p.h_",!1,12),new ky("s.i_",!1,14),new ky("f.i_",!1,16),new ky("a.b_",!1,18),new ky("a.o_",!1),new ky("g.o_",!1,22),new ky("p.i_",!1,24),new ky("p.m_",!1),new ky("n.k_",!0,20),new ky("i.f_",!1),new ky("a.s_",!0),new ky("m.c_",!1),new ky("n.h_",!1,26),new ky("o.p_",!1),new ky("m.p_",!0,28),new ky("o.a_",!1),new ky("d.p_",!1),new ky("e.i_",!1)].reduce(function(M,q){M[q.z9F]=
q;return M},{});var JUf=function(){};
JUf.prototype.flush=function(M,q){M=M===void 0?[]:M;q=q===void 0?!1:q;if(_.w("enable_client_streamz_web")){M=_.k(M);for(var G=M.next();!G.done;G=M.next())G=kLI(G.value),this.rootSpec&&_.Xe(G,2,this.rootSpec),G={serializedIncrementBatch:_.ZU(G.JSC$9611_serializeBinary())},_.ml("streamzIncremented",G,{sendIsolatedPayload:q})}};
var yRF=function(){};
_.l(yRF,JUf);var ZU9=function(M){var q=new M_M;var G=new ekP;G=_.DJ(G,1,"botguard");M=_.DJ(G,2,M);this.rootSpec=_.Pt(q,1,q98,M)};
_.l(ZU9,JUf);var fK,bUJ=new Map;var JRF,Y2y,C0H,dBi,tfD,gLy,bRe,iRy;JRF=2;Y2y=2;C0H=2;dBi=2;tfD=2;gLy=2;bRe=2;iRy=new qhp;var xw$,ziI;xw$=function(){this.ongoingFlowNonces=new Map};
_.qr=function(){ziI||(ziI=new xw$);return ziI};
_.Mr=function(M,q,G){return{eventType:{flowEventNamespace:M,flowEventType:q},metadata:G,statusCode:void 0,csn:void 0,can:void 0}};
_.qYy=function(M,q){var G=_.qr(),K=mw9(G,q,!0);G.logFlowEvent(M,q,K,void 0)};
xw$.prototype.logFlowEvent=function(M,q,G,K){q={flowNonce:G||mw9(this,q),flowType:q,flowEventType:M.eventType};M.metadata&&(q.flowMetadata=M.metadata);M.statusCode!==void 0&&(q.flowEventStatus=M.statusCode);M.csn&&(q.csn=M.csn);M.can&&(q.can=M.can);_.ml("flowEvent",q,K)};
var mw9=function(M,q,G){G=G===void 0?!1:G;var K=M.ongoingFlowNonces.get(q);if(!K||G)K=hl(16),M.ongoingFlowNonces.set(q,K);return K};_.Stf=new MGp;var NpY={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 pV=function(M,q,G,K,n,E,p){G=G===void 0?!1:G;K=K===void 0?!1:K;E=E===void 0?_.KV():E;this.hasRun=!1;this.g8q=M;this.daG=q;this.aR5=G;this.fromHistory=K;this.previousVideoId=n;this.m4X=E;this.tempData=p;this.fRJ=new _.GII};
_.l(pV,Wg);pV.prototype.validate=function(M){return!(!M.data.playerResponse||M.data.page!=="watch"&&M.data.page!=="learning_journey_watch"&&M.data.page!=="shorts"||this.hasRun)};
pV.prototype.handle=function(M){var q=this,G=_.C(M.endpoint,_.Jl),K=_.C(M.endpoint,_.p_);if(_.w("kevlar_continue_playback_without_player_response")&&(G==null?0:G.videoId)&&this.previousVideoId&&(G==null?void 0:G.videoId)===this.previousVideoId&&(G==null?0:G.continuePlayback)&&!this.fromHistory)this.g8q.resolve();else{var n={};G?n.watch_endpoint=G:K&&(n.watch_endpoint=K,K.endTimeSeconds&&(n.end=K.endTimeSeconds));M.data.page==="watch"?(M.data.filler||this.aR5||(_.lO("cfg"),_.GC.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(n,T0J(this,M.endpoint)),_.w("enable_masthead_quartile_ping_fix")&&Object.assign(n,rUS(this)),Object.assign(n,void 0),M.data.forceExternalPlaylist&&(n.external_list=!0)):M.data.page==="shorts"?_.GC.getInstance().triggerAction("yt-start-loading-shorts"):M.data.page==="learning_journey_watch"&&_.GC.getInstance().triggerAction("yt-start-loading-learning-journey");if(G=this.daG()){try{G.loadVideoWithPlayerResponse(M.data.playerResponse,n),G.getPlayerPromise().then(this.g8q.resolve)}catch(E){_.T6(E),
this.g8q.resolve()}this.hasRun=!0;G.getPlayerPromise().then(function(E){E.addEventListener("onAbnormalityDetected",function(){var p=M.data.playerResponse,y=E.getVideoData().cpn;bRe=0;_.Uwl=y;if(y=$B4(p))q.fRJ.increment("IN_PLAYER"),_.Gu(5),_.w("ab_st_vid_ks")?E.pauseVideo(!0):E.stopVideo(),p.playabilityStatus=Object.assign({},p.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:y}}),p.videoDetails=void 0,_.GC.getInstance().triggerOptionalAction("yt-updated-playability-status",
p.playabilityStatus)})})}else _.j1(Error("Sf"))}};
var T0J=function(M,q){var G=_.C(q,_.Jl);if(q&&G&&G.playlistId&&G.videoId&&(M=M.m4X,M.queueProxy?(M=M.queueProxy,G=M.listId===G.playlistId?M.attributionData.get(G.videoId):void 0):G=void 0,G))return{queue_info:G}},rUS=function(M){var q;
if((q=M.tempData)==null?0:q.adpings)return{adpings:M.tempData.adpings}};var yf=function(M,q,G){this.hasRun=!1;this.x4K=M;this.m2d=q;this.yY2=G};
_.l(yf,Wg);yf.prototype.validate=function(M){return!!_.xP.getValueByKeys.apply(null,[M.data].concat(_.Ui(AU$)))};
yf.prototype.handle=function(M){var q=this;this.x4K.promise.then(function(){var G=M.data;var K=_.xP.getValueByKeys.apply(null,[G].concat(_.Ui(N0p))),n=_.xP.getValueByKeys.apply(null,[G].concat(_.Ui(Yt9))),E=_.xP.getValueByKeys.apply(null,[G].concat(_.Ui(pjv)));var p=(p=_.xP.getValueByKeys.apply(null,[G].concat(_.Ui(kx2))))?{videoId:p.videoId,thumbnail:p.thumbnail,title:p.title?_.bc(p.title):void 0,shortBylineText:p.author?_.bc(p.author):void 0}:void 0;var y=void 0;_.w("web_get_playlist_id_from_current_endpoint_ks")||
(y=_.xP.getValueByKeys.apply(null,[G].concat(_.Ui(yUl))));var Y=_.xP.getValueByKeys.apply(null,[G].concat(_.Ui(WV9))),A=_.xP.getValueByKeys.apply(null,[G].concat(_.Ui(LV2))),v=!!Y||!!A&&!!A.results&&A.results.length>0,h=0;n&&n.currentIndex&&n.localCurrentIndex&&(h=n.currentIndex-n.localCurrentIndex);n&&n.playlistId&&(y=n.playlistId);G={rawResponse:G,autoplayRenderer:K,hasRelatedVideoData:v,playingVideo:p,playingVideoId:E,playlistPanelRenderer:n,playlistId:y,playlistIndex:n&&n.currentIndex,relatedVideoArgs:Y,
endScreenRenderer:A,playlistIndexOffset:h};a:{K=q.yY2;n=q.m2d;K.response=G;if(go2(G))K.downloadPlaylistProxy&&K.downloadPlaylistProxy.getPlaylistId()===cUl(G)||(K.downloadPlaylistProxy=new $jv(cUl(G),K.setPlaylistData.bind(K),K.isPlayingOfflineVideo.bind(K))),K.responsePlaylistData=K.downloadPlaylistProxy.getPlaylistData(),K.listId=cUl(G),K.index=0;else if(G.playlistPanelRenderer&&G.playlistId&&G.autoplayRenderer)G.playlistId.startsWith("TLPQ")?K.queueProxy?K.listId===G.playlistId?(K.index=G.playlistIndex,
K.responsePlaylistData=G.playlistPanelRenderer,K.queueProxy.JSC$13029_setCurrentIndex(K.index)):G.playingVideoId&&K.index!==void 0&&n.clientParams.autoSaveToQueue&&(K.index+=1,K.queueProxy.JSC$13029_setCurrentIndex(K.index),K.queueProxy.addVideos([G.playingVideoId],{},K.index)):(K.queueProxy=new _.F3(K.JSC$13083_playlistNetworkManager,G.playlistId,K.setPlaylistData.bind(K),K.clearQueue.bind(K),_.MfD(G.playlistPanelRenderer),K.storage),K.responsePlaylistData=G.playlistPanelRenderer,K.listId=G.playlistId,
K.index=G.playlistIndex):(K.index=G.playlistIndex,K.listId!==G.playlistId&&K.clearQueue(),K.responsePlaylistData=G.playlistPanelRenderer,K.listId=G.playlistId,K.playlistProxy=new Eox(K.JSC$13083_playlistNetworkManager,G.playlistId,K.setPlaylistData.bind(K),_.MfD(G.playlistPanelRenderer)));else if(!K.queueProxy)K.responsePlaylistData=void 0;else if(G.playingVideoId&&n.clientParams.autoSaveToQueue){if(K.index===void 0){_.T6(Error("Of"));K.clearQueue();break a}K.queueProxy.videoIds.includes(G.playingVideoId)||
(K.index+=1,K.queueProxy.JSC$13029_setCurrentIndex(K.index),K.queueProxy.addVideos([G.playingVideoId],{},K.index))}_.nV(K,_.E_(K,K.response.autoplayRenderer))}})};var jdS=function(M,q){q=q===void 0?_.KV():q;cg.call(this);this.pG.push(new yf(this.aR,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},q));this.pG.push(new pV(this.aR,M,!1,!1));_.w("web_response_commands_chunk_processor")&&this.pG.push(new gT)};
_.l(jdS,cg);jdS.prototype.processChunk=function(M){M&&M.data.player===void 0&&this.aR.resolve();cg.prototype.processChunk.call(this,M)};var LV=function(M,q){M=M===void 0?{layer:0}:M;this.hasRun=!1;this.createScreenConfig=M;this.vU2=q};
_.l(LV,Wg);LV.prototype.validate=function(M){return!(this.hasRun||!M.endpoint)};
LV.prototype.handle=function(M){var q=_.nl(),G,K,n=(K=_.C((G=M.endpoint)==null?void 0:G.commandMetadata,_.Mg))==null?void 0:K.rootVe;this.vU2&&n?_.aQ(q,n,this.vU2,this.createScreenConfig):DiS(q,M.endpoint,this.createScreenConfig);this.hasRun=!0};var Yy=function(M,q){this.hasRun=!1;this.evl=M;this.previousVideoId=q};
_.l(Yy,Wg);Yy.prototype.validate=function(M){return _.w("kevlar_continue_playback_without_player_response")&&(M=_.C(M.endpoint,_.Jl),(M==null?0:M.videoId)&&this.previousVideoId&&(M==null?void 0:M.videoId)===this.previousVideoId&&(M==null?0:M.continuePlayback))?!1:this.evl.pfM===0};
Yy.prototype.handle=function(M){_.GC.getInstance().triggerAction("yt-stop-old-player",M.data,!0)};var VyJ=function(M){M=M===void 0?{layer:0}:M;cg.call(this);this.pG.push(new Yy(this));this.pG.push(new LV(M));this.pG.push(new iu(M))};
_.l(VyJ,cg);var Wz=function(){Wg.apply(this,arguments)};
_.l(Wz,Wg);Wz.prototype.validate=function(M){return!!M.data.preconnect};
Wz.prototype.handle=function(M){_.oJ("bc");M=_.k(M.data.preconnect);for(var q=M.next();!q.done;q=M.next())q=q.value,(new Image).src=q};var RiJ=function(M,q,G,K,n,E,p){G=G===void 0?{layer:0}:G;E=E===void 0?_.KV():E;cg.call(this);if(K)if(n){n=E;this.pG.push(new yf(this.aR,q,n));this.pG.push(new Wz);var y,Y;this.pG.push(new pV(this.aR,M,!1,!((y=q.clientParams)==null||!y.fromHistory),(Y=q.clientParams)==null?void 0:Y.previousVideoId,n,q.tempData));var A;this.pG.push(new Yy(this,(A=q.clientParams)==null?void 0:A.previousVideoId));var v;(v=q.clientParams)!=null&&v.fromHistory||(G.layer||(G=Object.assign({},G,{layer:0})),this.pG.push(new LV(G,
p)),this.pG.push(new iu(G)))}else this.pG.push(new yf(this.aR,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},E)),this.pG.push(new pV(this.aR,M,!1,!1));else this.pG.push(new Yy(this)),this.pG.push(new LV(G)),this.pG.push(new iu(G));_.w("web_response_commands_chunk_processor")&&K&&this.pG.push(new gT)};
_.l(RiJ,cg);RiJ.prototype.processChunk=function(M){M&&M.data.player===void 0&&this.aR.resolve();cg.prototype.processChunk.call(this,M)};var fzI=function(){this.hasRun=this.hasRun=!1};
_.l(fzI,Wg);fzI.prototype.validate=function(M){return!this.hasRun&&!(!M.data.csn||!M.data.rootVe)};
fzI.prototype.handle=function(M){this.hasRun=!0;_.of(M.data.csn,M.data.rootVe,3)};var FVJ=function(M,q,G){G=G===void 0?{layer:0}:G;cg.call(this);this.pG.push(new pV(this.aR,M));this.pG.push(new LV(G));this.pG.push(new iu(G))};
_.l(FVJ,cg);var HUd=function(M,q,G,K,n){G=G===void 0?{layer:0}:G;K=K===void 0?_.KV():K;cg.call(this);var E=!!q&&!!q.clientParams&&!!q.clientParams.miniplayer;E&&this.pG.push(new fzI);this.pG.push(new yf(this.aR,q,K));this.pG.push(new Wz);var p,y;this.pG.push(new pV(this.aR,M,E,!((p=q.clientParams)==null||!p.fromHistory),(y=q.clientParams)==null?void 0:y.previousVideoId,K,q.tempData));var Y;this.pG.push(new Yy(this,(Y=q.clientParams)==null?void 0:Y.previousVideoId));var A;(A=q.clientParams)!=null&&A.fromHistory||
(G.layer||(G=Object.assign({},G,{layer:E?3:0})),this.pG.push(new LV(G,n)),this.pG.push(new iu(G)));_.w("web_response_commands_chunk_processor")&&this.pG.push(new gT)};
_.l(HUd,cg);var A7,szp;A7={};
_.eiP=(A7["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},A7["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},A7["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},A7["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},A7["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},A7["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},A7["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},A7);_.d1=new _.F8("yt-edu");_.$wB=function(){this.JSC$13181_eduDisplayedThisLoad_={}};
szp=function(M){var q=_.$wB.getInstance();var G=_.tL("kevlar_tooltip_impression_cap");q=G&&parseInt(_.d1.get(M+"-impression")||0,10)>=G||_.d1.get(M+"-dismissed")?!1:(G=_.eiP[M])&&!q.JSC$13181_eduDisplayedThisLoad_[G.setKey||M]&&(G.titleText&&_.Ge(G.titleText)||G.bodyText&&_.Ge(G.bodyText))?!0:!1;if(!q)return null;q=_.eiP[M];if(!q)return null;G=q.bodyText?_.Ge(q.bodyText):void 0;var K=q.titleText?_.Ge(q.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:q.position,popup:{bubbleHintRenderer:{text:K?
_.bc(K):void 0,detailsText:G?_.bc(G):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.bc(_.Ge("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:M}}]}}}}}}}},{eduImpressionAction:{key:M}}]};
_.mi(_.$wB);var GWF=!1;for(var MV2="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),q1J=[],vz=6;vz>=1;vz--)q1J.push({columnCount:vz,query:vz==1?0:vz*2*107-4+32,className:"grid-"+vz+"-columns",width:vz*2*107+"px"});_.h7=function(M){this.actionRouter_=M=M===void 0?_.GC.getInstance():M;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.GVx(this);this.persistentPanelVisible_=this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.GVx=function(M){var q=M.documentWidth_-(M.miniGuideVisible_?72:0)-(M.guidePersistentAndVisible_?240:0)-(M.persistentPanelVisible_?400:0);return q1J.find(function(G){return q>G.query})};
_.mi(_.h7);var KRI=function(){var M=this;this.JSC$13193_keyboardInUse=!1;document.addEventListener("keydown",function(){M.onKeydown()});
document.addEventListener("mousedown",function(){M.JSC$13193_keyboardInUse=!1})},n9M;
KRI.prototype.isKeyBoardInUse=function(){return this.JSC$13193_keyboardInUse};
KRI.prototype.onKeydown=function(){this.JSC$13193_keyboardInUse=!0};var E9l,w1;_.t7=new _.F8("yt-mentions");_.O_=function(){};
E9l=function(M,q){return w1(q,"drag-to-reorder-edu-displayed")};
w1=function(M,q,G,K,n,E){G=G===void 0?"OPEN_POPUP_POSITION_TOP":G;if(q){if(_.t7.get(q))return;_.t7.set(q,!0,K)}if(n&&E!==void 0){q=Number(_.t7.get(n)||0);if(q>=E)return;_.t7.set(n,q+1)}return[{openPopupAction:{popupType:"HINT",position:G,popup:{bubbleHintRenderer:{detailsText:M,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.mi(_.O_);var NKS,kV2,pYv;NKS=function(M,q,G,K){this.JSC$13203_taskManager_=M;this.onFulfilled_=typeof q==="function"?q:null;this.onRejected_=typeof G==="function"?G:null;this.JSC$13203_context_=K};
kV2=function(M,q){M.onFulfilled_&&_.WO(M.JSC$13203_taskManager_,function(){M.onFulfilled_.call(M.JSC$13203_context_,q)})};
pYv=function(M,q){M.onRejected_&&_.WO(M.JSC$13203_taskManager_,function(){M.onRejected_.call(M.JSC$13203_context_,q)})};
_.CV=function(M){this.JSC$13206_taskManager_=M;this.callbacks_=[]};
_.CV.prototype.then=function(M,q,G){this.callbacks_.push(new NKS(this.JSC$13206_taskManager_,M,q,G));return this};
_.CV.prototype.onSuccess=function(M){this.callbacks_.forEach(function(q){kV2(q,M)})};
_.CV.prototype.onFailure=function(M){this.callbacks_.forEach(function(q){pYv(q,M)})};
_.CV.prototype.cancel=function(){this.callbacks_.length=0};
LTl(_.CV);_.pew=null;_.Lp=new _.$k("ACTIVITY_TOKEN");var yzl;_.Ls=new _.$k("PAGE_REQUEST_TOKEN");yzl=new _.$k("FETCH_PBJ_TOKEN");_.LR$=function(M){if(M.validatedFragments_.length==0)return null;if(!M.mergedPrefetchedData_){for(var q=[],G=_.k(M.validatedFragments_),K=G.next();!K.done;K=G.next()){K=_.k(M.fragmentConfiguration_[K.value].graftedKeys);for(var n=K.next();!n.done;n=K.next())(n=M.prefetchedData_[n.value].trackingParams)&&q.push(n)}M.mergedPrefetchedData_={};Object.assign(M.mergedPrefetchedData_,M.prefetchedData_,{clientSideGrafts:q})}return M.mergedPrefetchedData_};var Y1J;_.aq=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Y1J=function(M,q,G){if(_.ybe(q))return M.prefetchCache_.get(_.LU$(q,G))};_.oq=new _.$k("NAVIGATION_TOKEN");var WRS=function(M){var q=this;var G=G===void 0?Aby():G;var K=K===void 0?_.AL().resolve(_.oq):K;this.onePickCommand=M;this.JSC$13278_playlistNetworkManager=G;this.navigationManager=K;this.videoPickerBuilder=_.YY$("yt-addtoplaylist");_.Qkl(lap(XFP(oDl(this.videoPickerBuilder.setTitle(M.modalTitle).setSize(1E3).addView(iIP()).addView(PRl())).addView("youtube"),M.selectButtonLabel)),function(n){q.handleAction(n)})};
WRS.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
WRS.prototype.handleAction=function(M){var q=this;if(M&&this.onePickCommand.listId&&M.action==="picked"&&M.docs){var G=[];M.docs.forEach(function(K){G.push({addedVideoId:K.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$13278_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,G).then(function(){_.w("playlist_add_video_hard_reload_killswitch")?q.navigationManager.reload():Azp(q.navigationManager)})}};var dE$=function(){if(this.constructor===dE$)throw new TypeError("Uf");};
_.N=dE$.prototype;_.N.dispose=function(){};
_.N.disconnect=function(){};
_.N.reconnect=function(){};
_.N.observe=function(M,q,G){return{element:M,option:G}};
_.N.unobserveByKey=function(){};var dNi=function(M,q){q=q===void 0?0:q;dE$.call(this);this.viewroot=M;this.defaultPrescanHeight=q;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),M?{root:M,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.l(dNi,dE$);_.N=dNi.prototype;_.N.dispose=function(){this.disconnect();this.handlers.clear()};
_.N.disconnect=function(M){this.isConnected=!1;this.pauseObservingUntilReconnect=M===void 0?!1:M;this.observer.disconnect();M=_.k(this.prescanObservers.values());for(var q=M.next();!q.done;q=M.next())q.value.disconnect()};
_.N.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var M=_.k(this.handlers),q=M.next();!q.done;q=M.next()){var G=_.k(q.value);q=G.next().value;var K=G.next().value;G=!1;K=_.k(K.keys());for(var n=K.next();!n.done;n=K.next())if((n=n.value)&&n.state==="prescan"){G=!0;break}G&&v9$(this,q).observe(q);this.observer.observe(q)}}};
_.N.handleObserveEvent=function(M){M=_.k(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;var G=this.handlers.get(q.target);if(G){var K=q.isIntersecting;G=_.k(G);for(var n=G.next();!n.done;n=G.next()){var E=_.k(n.value);n=E.next().value;E=E.next().value;n&&(n.state==="visible"&&K||n.state==="hidden"&&!K)&&(E(q.target,n.state),n.calledOnce&&this.unobserveByKey({element:q.target,option:n}))}}}};
_.N.handlePrescanEvent=function(M){M=_.k(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;var G=this.handlers.get(q.target);if(G&&q.isIntersecting){G=_.k(G);for(var K=G.next();!K.done;K=G.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;K&&K.state==="prescan"&&(n(q.target,K.state),K.calledOnce&&this.unobserveByKey({element:q.target,option:K}))}}}};
_.N.observe=function(M,q,G){var K=(K=this.handlers.get(M))&&K.has(G)?{element:M,option:G}:void 0;if(K)return K;K={element:M,option:G};this.handlers.has(M)||this.handlers.set(M,new Map);var n=this.handlers.get(M);n&&!n.has(G)&&n.set(G,q);this.pauseObservingUntilReconnect||(G.state==="prescan"&&v9$(this,M).observe(M),this.observer.observe(M));return K};
_.N.unobserveByKey=function(M){var q=this.handlers.get(M.element);if(q&&q.has(M.option)){q.delete(M.option);if(M&&M.option.state==="prescan")for(var G=_.k(this.prescanObservers.values()),K=G.next();!K.done;K=G.next())K.value.unobserve(M.element);q.size===0&&(this.handlers.delete(M.element),this.observer.unobserve(M.element))}};
var v9$=function(M,q){var G=M.defaultPrescanHeight;q.hasAttribute("prescan-height")&&(q=Number(q.getAttribute("prescan-height")),isNaN(q)||(G=q));if(M.prescanObservers.has(G))return M.prescanObservers.get(G);q="-0.1px -0.1px "+G+"px -0.1px";q=new IntersectionObserver(M.handlePrescanEvent.bind(M),M.viewroot?{root:M.viewroot,rootMargin:q}:{rootMargin:q});M.prescanObservers.set(G,q);return q};var hTp=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],tVf=function(){var M,q=this;this.JSC$13295_actionRouter=M=M===void 0?_.GC.getInstance():M;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return q.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return q.visibilityObservedElementHandlerKeys}}},Ob8,Cnx,l1$;
tVf.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.w("kevlar_use_vimio_behavior")&&_.R9("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=vl$())};
tVf.prototype.dispose=function(){this.visibilityMonitor&&_.OS(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
tVf.prototype.handleVisibilityRefreshed=function(){for(var M=_.k(this.targetMap.entries()),q=M.next();!q.done;q=M.next()){var G=_.k(q.value);q=G.next().value;G=G.next().value;_.wYv(this,q,G)}};
_.o9B=function(M,q,G){Cnx(M,G);var K=_.a1J(M,q);K.element=G;M.targetedElements.set(G,q);_.wYv(M,q,K)};
Cnx=function(M,q){var G=M.targetedElements.get(q);if(G){var K=M.targetMap.get(G);K&&(delete K.element,M.targetMap.set(G,K));M.targetedElements.delete(q);M.visibilityObserver&&M.visibilityObservedElementHandlerKeys&&(G=M.visibilityObservedElementHandlerKeys.get(q))&&(M.visibilityObserver.unobserveByKey(G),M.visibilityObservedElementHandlerKeys.delete(q))}};
_.wYv=function(M,q,G){var K=G.action,n=G.element;n&&K&&(hTp.includes(q)||_.R9("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||M.visibilityMonitor&&M.visibilityMonitor.isNodeVisible(n)?l1$(M,q,G):M.visibilityObserver&&(M.visibilityObservedElementHandlerKeys||(M.visibilityObservedElementHandlerKeys=new WeakMap),K=M.visibilityObserver.observe(n,function(){l1$(M,q,G);M.visibilityObservedElementHandlerKeys.delete(n)},{calledOnce:!0,
state:"visible"}),M.visibilityObservedElementHandlerKeys.set(n,K)))};
l1$=function(M,q,G){var K=G.action;(G=G.element)&&K&&(_.Js(M.JSC$13295_actionRouter,[K],G),M.targetMap.delete(q),M.targetedElements.delete(G),M.triggeredTargets.add(q))};
_.a1J=function(M,q){var G=M.targetMap.get(q);G||(G={},M.targetMap.set(q,G));return G};
_.lW=function(){Ob8||(Ob8=new tVf);return Ob8};var XY2=document.createElement("div");XY2.style.touchAction="pan-down";var hgy=XY2.style.touchAction==="pan-down";var Pn8,ibJ;Pn8=function(){this.hammerFn=gWP();this.JSC$13303_screenManager=_.nl();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.$m(83615);_.lu(this.JSC$13303_screenManager,this.ve);tLH()};
_.Xt=function(){ibJ||(ibJ=new Pn8);return ibJ};
Pn8.prototype.registerTouchEvents=function(M,q,G){var K=_.rW.apply(3,arguments),n=this.hammerFn(M,{cssProps:{},recognizers:[[Hammer.Rotate,{enable:!1}],[Hammer.Pinch,{enable:!1},["rotate"]],[Hammer.Swipe,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL}],[Hammer.Pan,{enable:!1,direction:Hammer.DIRECTION_HORIZONTAL},["swipe"]],[Hammer.Tap,{enable:!1}],[Hammer.Tap,{enable:!1,event:"doubletap",taps:2},["tap"]],[Hammer.Press,{enable:!1}]]});G&&n.set({touchAction:G});this.nodeManagerMapping.set(M,n);var E=
O04(q);K=_.k(K);for(var p=K.next();!p.done;p=K.next()){p=p.value;if(p.includes("swipe")||p.includes("pinch")||p.includes("pan"))p.includes("swipe")?n.get("swipe").set({enable:!0,direction:E,velocity:.2}):p.includes("pinch")?n.get("pinch").set({enable:!0}):p.includes("pan")&&(n.get("pan").set({enable:!0,direction:E}),n.get("swipe").set({enable:!0,direction:E,velocity:.2}),n.get("swipe").recognizeWith("pan"));czS(this,M,n,p)}};
var czS=function(M,q,G,K){G.on(K,function(n){if(K.includes("pinch"))M.lastPinchTime=Date.now();else if(K.includes("swipe")&&Date.now()-M.lastPinchTime<400)return;n.pointerType!=="mouse"&&(n=K==="doubletap"?{coordinates:n.center}:K.includes("pan")?n:K.includes("swipe")?{target:n.target}:{},q.dispatchEvent(new CustomEvent(K,{bubbles:!0,composed:!0,detail:n})))})};
Pn8.prototype.unregisterTouchEvents=function(M){var q=_.rW.apply(1,arguments),G=this.nodeManagerMapping.get(M);if(G){q=_.k(q);for(var K=q.next();!K.done;K=q.next())G.off(K.value);this.nodeManagerMapping.delete(M);M.style.touchAction="unset"}};var g9d=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var wew=null;_.WE={getLocalStorage:_.hc(function(){try{var M=new xgy;var q=M.isAvailable()?M:null}catch(G){return null}return q?new _.CY(q):null}),
getSessionStorage:_.hc(function(){var M=new zeH;return M.isAvailable()?new _.CY(M):null})};var BKI=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},UNi=function(){BKI.instance||(BKI.instance=new BKI);
return BKI.instance},xNj=function(M){var q=M.networkEvents;
M.networkEvents=[];return _.w("enable_network_monitoring")?q:[]};var Qz8;Qz8={};_.I1d=A0("yt-serviceworker-metadata",{objectStores:(Qz8.auth={addedAtVersion:1},Qz8["resource-manifest-assets"]={addedAtVersion:2},Qz8),shared:!0,upgrade:function(M,q){q(1)&&eG(M,"resource-manifest-assets");q(2)&&eG(M,"auth")},
version:2});var PJu=self.location.origin+"/";i0F([/^https:\/\/([\w-]*\.)*youtube\.com.*/,/^https:\/\/([\w-]*\.)*gstatic\.com.*/]);i0F([/\.css$/,/\.js$/,/\.webm$/,/\.png$/]);i0F([/\.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\//]);i0F([/purge_shell=1/]);var DES=void 0;DES=DES===void 0?[]:DES;
for(var uR9=[],JzI=_.k(keS),Zb2=JzI.next();!Zb2.done;Zb2=JzI.next())uR9.push({key:Zb2.value});for(var bbv=_.k(DES),UEM=bbv.next();!UEM.done;UEM=bbv.next())uR9.push(UEM.value);var xEM,hK=_.Kj==null?void 0:(xEM=_.Kj.performance)==null?void 0:xEM.memory,Bpj=!1,zgs={},DNF={},tK={},Op=navigator;var Pz=function(M){this.JSC$13348_expiringStorage=new xJ(M)};
Pz.prototype.set=function(M,q,G){G=G!==void 0?Date.now()+G:void 0;this.JSC$13348_expiringStorage.set(M,q,G)};
Pz.prototype.get=function(M){return this.JSC$13348_expiringStorage.get(M)};
Pz.prototype.remove=function(M){this.JSC$13348_expiringStorage.remove(M)};var fiH=_.DQ(["https://www.youtube.com/",""]),FUY=_.DQ(["https://studio.youtube.com/",""]),MBe="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",egF=null,Ehu;var zTB=_.DQ(["https://www.youtube.com/iframe_api"]),iW=function(){this.playerResolver_=_.u8();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.vp;this.playbackDurationSeconds_=0},mEM=function(M){var q=function(){return window.YT&&typeof window.YT.ready==="function"};
if(q())return _.HF(window.YT);var G=_.u8(),K=_.iI("SCRIPT");K.onload=K.onreadystatechange=function(){K.readyState&&K.readyState!="loaded"&&K.readyState!="complete"||(K.onload=_.vp,K.onreadystatechange=_.vp,K.onerror=_.vp,q()?G.resolve(window.YT):G.reject(new _.bj("Failed to load the iframe player library","script.onload",K.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
K.onerror=function(n){K.onload=_.vp;K.onreadystatechange=_.vp;K.onerror=_.vp;G.reject(new _.bj("Failed to load the iframe player library","script.onerror",n&&n.target&&n.target.src))};
_.Ei(K,_.Ow(zTB));M.insertBefore(K,M.firstChild);return G.promise},S1f=function(M,q,G){var K,n;
_.L(function(E){switch(E.nextAddress){case 1:return M.playbackEndedCallback_=G,_.Cv(E,2),E.yield(mEM(q.parentElement||null),4);case 4:K=E.yieldResult;_.KF(E,3);break;case 2:return n=_.i5(E),n instanceof _.bj&&n.args&&n.args[0]=="script.onerror"?_.j1(n):_.T6(n),E.return();case 3:K.ready(function(){return new K.Player(q,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:M.onPlayerReady_.bind(M),onStateChange:M.onPlayerStateChange_.bind(M),
onCueRangeExit:M.onCueRangeExit_.bind(M)}})}),_.gL(E)}})};
_.N=iW.prototype;_.N.getPlayerPromise=function(){return this.playerPromise_};
_.N.onPlayerReady_=function(M){this.playerResolver_.resolve(M.target)};
_.N.onPlayerStateChange_=function(M){if(M.data==YT.PlayerState.PLAYING){M=M.target;var q=M.getCurrentTime();M.addCueRange("playback",q,q+this.playbackDurationSeconds_)}};
_.N.onCueRangeExit_=function(M){M.data=="playback"&&(M.target.stopVideo(),this.playbackEndedCallback_())};
_.N.stopVideo=function(){this.playerPromise_.then(function(M){M.stopVideo()})};
var TKM=function(M){M.playerVars_&&M.playerPromise_.then(function(q){typeof q.cueVideoByPlayerVars!="function"?_.j1(new _.bj("vmh: player API not ready","cueVideoByPlayerVars",typeof q.cueVideoByPlayerVars)):q.cueVideoByPlayerVars(M.playerVars_)})};
iW.prototype.playVideo=function(){var M=this;this.playerVars_&&this.playerPromise_.then(function(q){typeof q.loadVideoByPlayerVars!="function"?(q=new _.bj("vmh: player API not ready","loadVideoByPlayerVars",typeof q.loadVideoByPlayerVars),_.T6(q)):q.loadVideoByPlayerVars(M.playerVars_)})};
var rzM=function(M,q,G,K,n){q&&(G===void 0&&(G=0),K===void 0&&(K=0),M.playbackDurationSeconds_=K/1E3,M.playerVars_={adformat:"17_8",videoId:q,suggestedQuality:"hd720",startSeconds:G/1E3,player_params:n})};
iW.prototype.mute=function(){this.playerPromise_.then(function(M){M.mute()})};
iW.prototype.unMute=function(){this.playerPromise_.then(function(M){M.unMute()})};var WMy=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var cz;cz=function(){this.tokenJars={};if(this.cookiesEnabled=_.uj()){var M=_.Iu.get("CONSISTENCY",void 0);M&&jzv(this,{encryptedTokenJarContents:M})}};
_.d4i=function(){cz.instance||(cz.instance=new cz);return cz.instance};
cz.prototype.handleResponse=function(M,q){if(!q)throw Error("Zf");var G,K;q=((G=q.innerTubeRequest.context)==null?void 0:(K=G.request)==null?void 0:K.consistencyTokenJars)||[];var n;(M=(n=M.responseContext)==null?void 0:n.consistencyTokenJar)&&this.replace(q,M)};
cz.prototype.replace=function(M,q){M=_.k(M);for(var G=M.next();!G.done;G=M.next())delete this.tokenJars[G.value.encryptedTokenJarContents];jzv(this,q)};
var jzv=function(M,q){if(q.encryptedTokenJarContents&&(M.tokenJars[q.encryptedTokenJarContents]=q,typeof q.expirationSeconds==="string")){var G=Number(q.expirationSeconds);setTimeout(function(){delete M.tokenJars[q.encryptedTokenJarContents]},G*1E3);
M.cookiesEnabled&&_.Df("CONSISTENCY",q.encryptedTokenJarContents,G,void 0,!0)}};var VV2,g1;VV2=window.location.hostname.split(".").slice(-2).join(".");_.Qr=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var M=_.R9("LOCATION_PLAYABILITY_TOKEN");_.R9("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=RT2(this))&&(M=this.localStorage.get("yt-location-playability-token"));M&&(this.locationPlayabilityToken=M,this.mostRecentPosition=void 0)};
_.Qr.getInstance=function(){g1=_.sx("yt.clientLocationService.instance");g1||(g1=new _.Qr,_.Y5("yt.clientLocationService.instance",g1));return g1};
_.Qr.prototype.setLocationOnInnerTubeContext=function(M){M.client||(M.client={});if(this.mostRecentPosition)M.client.locationInfo||(M.client.locationInfo={}),M.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),M.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),M.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),M.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)M.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.Qr.prototype.handleResponse=function(M){var q;M=(q=M.responseContext)==null?void 0:q.locationPlayabilityToken;M!==void 0&&(this.locationPlayabilityToken=M,this.mostRecentPosition=void 0,_.R9("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=RT2(this))&&this.localStorage.set("yt-location-playability-token",M,15552E3):_.Df("YT_CL",JSON.stringify({loctok:M}),15552E3,VV2,!0))};
var RT2=function(M){return M.localStorage===void 0?new _.F8("yt-client-location"):M.localStorage};
_.Qr.prototype.clearLocationPlayabilityToken=function(M){M==="TVHTML5"?(this.localStorage=RT2(this))&&this.localStorage.remove("yt-location-playability-token"):_.I_e("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.Qr.prototype.getCurrentPositionFromGeolocation=function(){var M=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("$f"));var q=!1,G=1E4;_.R9("INNERTUBE_CLIENT_NAME")==="MWEB"&&(q=!0,G=15E3);return new Promise(function(K,n){navigator.geolocation.getCurrentPosition(function(E){M.mostRecentPosition=E;K(E)},function(E){n(E)},{enableHighAccuracy:q,
maximumAge:0,timeout:G})})};
_.Qr.prototype.createUnpluggedLocationInfo=function(M){var q={};M=M.coords;if(M==null?0:M.latitude)q.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)q.longitudeE7=Math.floor(M.longitude*1E7);if(M==null?0:M.accuracy)q.locationRadiusMeters=Math.round(M.accuracy);return q};
_.Qr.prototype.createLocationInfo=function(M){var q={};M=M.coords;if(M==null?0:M.latitude)q.latitudeE7=Math.floor(M.latitude*1E7);if(M==null?0:M.longitude)q.longitudeE7=Math.floor(M.longitude*1E7);return q};var f1p=function(M,q){var G=iG();M||(M="unknown");q||(q="unknown");M="MAIN_APP_WEB_PAGE_TYPE_"+M.toUpperCase();M in aMJ||(M="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");q="MAIN_APP_WEB_REQUEST_TYPE_"+q.toUpperCase();q in ox2||(q="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.eb(G,{mainAppWeb:{pageType:M,requestType:q,isShellLoad:_.fX("IS_SHELL_LOAD",!1)}})},FRx={start:function(){_.eb(Xny(),{mainAppWeb:_.Ir()})},
success:function(){_.$n(Xny(),"SUCCESS")},
failure:function(){_.$n(Xny(),"FAILURE")},
cancelled:function(){_.$n(Xny(),"CANCELLED")}};var Hbp,eT2,w9Y;Hbp=_.DQ(["/sw.js"]);eT2=_.DQ(["/sw.js?0"]);_.$EP=_.Ow(Hbp);w9Y=_.Ow(eT2);var shv=function(){var M=Error.apply(this,arguments);this.message=M.message;"stack"in M&&(this.stack=M.stack)};
_.l(shv,Error);_.JK.prototype.load=function(M){this.megabloxUrl_=_.R9("YPC_MB_URL");_.cF(this.megabloxUrl_,(0,_.Ju)(function(){M&&M()},this))};
_.xHu=function(M,q,G,K,n,E,p,y,Y,A,v){_.aHw(Y);M.load((0,_.Ju)(function(){try{var h=E?E:_.R9("HL"),t=_.R9("SESSION_INDEX");_.Kzy("client",function(){dlv("59",{helpCenterPath:"/youtube",locale:h,window:window}).JSC$9979_loadChatSupport({authuser:String(t)})})}catch(O){throw Dx(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),n&&n(O),_.T6(O),O;
}Mxp(this,q,G,K,n,E,p,y,Y,A,v)},M))};
_.JK.prototype.openFixFlowDialog=function(M,q,G,K){this.load((0,_.Ju)(function(){try{qo$(this,_.sx("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(M).withIntegratorCallback(q).load(G,K)}catch(n){throw _.T6(n),n;}},this))};
var qo$=function(M,q,G,K){var n=q.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.w("enable_window_constrained_buy_flow_dialog")&&(n=n.usingPopupStyle(_.sx("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));K&&(n=n.usingCloseCallback(K));q.bootstrap.fromPaymentsUrl(M.megabloxUrl_);M=q.bootstrap.asMashupMode(n);G=G?G:_.R9("HL");M.usingGaiaIndex(_.R9("SESSION_INDEX")).usingLocale(G).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.w("enable_google_payments_buyflow_material2_style_web")?
M.usingStyle(":m2;pc=#444;ac=#065fd4"):M.usingStyle(":md;pc=#444;ac=#065fd4");return M},Mxp=function(M,q,G,K,n,E,p,y,Y,A,v){try{var h=_.sx("payments.business.integration");
if(!h)throw new shv("payments.business.integration is undefined");var t=h.standaloneContextAuthId.forUserId(),O=qo$(M,h,E,function(){lHi(!1);y&&y()});
p&&O.usingServerAnalyticsEventHandler(p);var a=O.inStandaloneContext(t).buyFlow(function(g){if(g&&(!g.integratorData||g.integratorData===""||g.error))if(g.error!=null)if(String(g.error)==="-1")_.ohF(Y);else{var D=String(g.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";Dx(10,v,D,g.debugCode);_.ua(D,Y,g.debugCode);D=new _.bj("PAYMENT_ERROR_MESSAGE::"+g.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+g.internalErrorDetails);
_.T6(D)}else Dx(10,v,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.ua("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",Y,"EMPTY_INTEGRATOR_DATA"),_.T6(Error("bg"));G&&(lHi(!1),G(g))}).withEncryptedParameters(q);
A&&a.withClientParameters(huM(_.bay(A)));a.load(function(){Dx(24,v);_.XI("ttc",void 0,"commerce_transaction");Ol("commerce_transaction");K&&(K(),lHi(!0))},function(g){if(g==null?0:g.debugCode)var D=g==null?void 0:g.debugCode;
else if(!g||(g==null?0:g.debugCode))D="EMPTY_LOAD_FAILURE_ERROR",_.T6(Error(D));else{D="EMPTY_LOAD_FAILURE_DEBUG_CODE";var J=new _.bj("LOAD_FAILURE:"+g.message," DEBUG_CODE:"+D);_.T6(J)}Dx(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",D);_.ua("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",Y,D);_.T6(g);n&&n(g)})}catch(g){throw g instanceof shv&&(Dx(10,v,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),n&&n(g)),_.T6(g),g;
}};var GJx;GJx=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.Zc$=function(M,q){q=q===void 0?!1:q;M=GJx.test(M)?_.Qk(M):null;!q&&window.payments||!M?(M=_.u8(),q=M.promise,M.resolve()):q=_.qUS(M,{attributes:{"data-payments-main":"",id:"payment-lib"}});return q};var KBf;KBf=_.DQ(["//www.googletagmanager.com/gtm.js?id=",""]);_.Bz=function(M,q){_.jc(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:q}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.R9("GL")}),q=_.iI("SCRIPT"),q.async=!0,_.Ei(q,_.Ow(KBf,M)),q.id="gtm",M=document.getElementsByTagName("script"),M.length==0?document.head.appendChild(q):(M=M[0],M.parentNode.insertBefore(q,M)))};
_.Qf=function(M){if(M=JSON.parse(M))window.dataLayer=window.dataLayer||[],window.dataLayer.push(M)};var n0S,E02;n0S=_.DQ(["https://clients2.google.com/gr/gr_sync.js"]);_.ujH=function(){};
_.ujH.prototype.init=function(){if(E02()){var M=_.u8();M.resolve();return M.promise}return _.qUS(_.Ow(n0S)).then(function(){if(!E02())throw Error("cg");},function(){throw Error("dg");
})};
_.JfF=function(){if(!E02())return"";var M=window.google.gr;M.init({async:{schedule:"sync"},merchantId:"youtube"});M.start();M=M.finish();return M==null?"":M};
E02=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.Q=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.l(_.Q,PolymerFakeBaseClassWithoutHtml);_.kA=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.l(_.kA,PolymerFakeBaseClassWithoutHtml);var X9w=window.ShadyDOM;var p_$,NE$,LNy,Yf4,AZy,diw,Iq,Rr;p_$=_.w("enable_shadydom_free_scoped_query_methods");NE$=_.w("enable_shadydom_free_scoped_node_methods");LNy=_.w("enable_shadydom_free_scoped_readonly_properties_batch_one");Yf4=_.w("enable_shadydom_free_parent_node");AZy=_.w("enable_shadydom_free_children");diw=_.w("enable_shadydom_free_last_child");Iq=window.ShadyDOM;_.$U=Iq&&Iq.noPatch&&Iq.wrap?Iq.wrap:Iq?function(M){return Iq.patch(M)}:function(M){return M};
Rr=function(M){if(M instanceof ShadowRoot)this.host=(0,_.$U)(M.host),this.root=M;else if(M.$$){this.host=(0,_.$U)(M);var q;this.root=(q=M.root)!=null?q:this.host}else if(M.polymerController){this.host=(0,_.$U)(M);var G;this.root=(G=this.host.shadowRoot)!=null?G:this.host}else this.root=this.host=(0,_.$U)(M)};
k5y();yZi();vKF();hPY();WNw();var NuI={querySelector:function(M,q){q=U4H(q,zu(M));return _.w("sunnydom_native_scoped_query_selectors")?iJy(M,q):iJy(_.ma(M),q)},
querySelectorAll:function(M,q){q=U4H(q,zu(M));return _.w("sunnydom_native_scoped_query_selectors")?Array.from(cJy(M,q)):cJy(_.ma(M),q)}},kJx={appendChild:function(M,q){var G=zu(M),K=_.xU(q);
return _.nKD(_.ma(M),G?_.Tu(q,G,K):q)},
cloneNode:function(M,q){var G=_.xU(M);M=_.ma(M);q=Up(M).prototype.cloneNode.call(M,q);return G?r2(q,G):q},
contains:function(M,q){var G=zu(M),K=_.xU(q);return G!==K?!1:EKy(M,q)},
insertBefore:function(M,q,G){var K=zu(M),n=_.xU(q);M=_.ma(M);q=K?_.Tu(q,K,n):q;return Up(M).prototype.insertBefore.call(M,q,G)},
removeChild:function(M,q){var G=zu(M);M=_.ma(M);q=G?r2(q,G):q;return Up(M).prototype.removeChild.call(M,q)},
replaceChild:function(M,q,G){var K=zu(M),n=_.xU(q);q=K?_.Tu(q,K,n):n?r2(q,n):q;G=K?r2(G,K):G;M=_.ma(M);return Up(M).prototype.replaceChild.call(M,q,G)},
getRootNode:function(M,q){q=q===void 0?{composed:!0}:q;var G;if(((G=q)!=null?G:{}).composed)M=KNj(M);else{q=M;for(M=BXj(M);M;)q=M,M=zl$(M);M=q}return M}},O4y=LNy?{firstChild:elY,
nextSibling:fHF,previousSibling:HJy,firstElementChild:$4D,lastElementChild:Mew,nextElementSibling:Rl4,previousElementSibling:FMe,childNodes:qfy}:{};Yf4&&(O4y.parentNode=VBY);AZy&&(O4y.children=G5i);diw&&(O4y.lastChild=s_s);p_$&&tey(NuI);NE$&&tey(kJx);w_u();var CVy=function(M){this.node=M instanceof ShadowRoot?M.host:M};
aW$();oKD();var PVe=new WeakMap;var cZy=Symbol("Bd");var DiH=new Set(["tap","track","down","up"]),uK4=_.w("pbcm_fi_query_decorators");var DI=function(){return _.kA.apply(this,arguments)||this};
_.l(DI,_.kA);_.N=DI.prototype;_.N.getState=function(){return this.store.getState()};
_.N.dispatch=function(M){this.store.dispatch(M)};
_.N.beforeRegister=function(){if(this&&typeof this==="object"){var M;var q=!!this.useSignals||!((M=this.polymerController)==null||!M.useSignals)}else q=!1;if(!q&&this.properties)for(q=_.k(Object.keys(this.properties)),M=q.next();!M.done;M=q.next()){var G=M.value;M=this.properties[G];if(M.selector){if(M.computed)throw Error("kg");G=["reduxPropertiesRecomputeTrigger",'"'+G+'"'].concat(_.Ui(M.selectorArgs||[])).join(",");M.computed="recomputeReduxSelector("+G+")"}}};
_.N.attached=function(){var M=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){M.reduxPropertiesRecomputeTrigger++}));
_.w("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.N.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.N.recomputeReduxSelector=function(M,q){var G=_.rW.apply(2,arguments),K=this.properties[q].selector;if(!K)throw Error("ig`"+q);return K.apply(null,[this.store.getState()].concat(_.Ui(G)))};
_.N.select=function(M){var q=_.rW.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return M.apply(null,[this.store.getState()].concat(_.Ui(q)))};
_.Yd.Object.defineProperties(DI.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
DI.prototype.recomputeReduxSelector=DI.prototype.recomputeReduxSelector;_.T([_.B(),_.r("design:type",Number)],DI.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.T([_.pT()],DI);var uW=[],Uie={},CT=function(){return Ah.apply(this,arguments)||this};
_.l(CT,Ah);CT.prototype._addPropertyEffect=function(M,q,G){if(q==="__observeEffects"&&G){var K,n=(K=G.info.method)!=null?K:G.info.methodName;if(n){var E=this[n];this[n]=function(){uW.push(n);try{E==null||E.apply(this,arguments)}finally{uW.pop()}}}}_.XX._addPropertyEffect.apply(this,[M,
q,G])};
CT.prototype._setPendingProperty=function(M,q,G){if(uW.length){var K=uW[uW.length-1],n;(n=Uie[this.is])!=null&&n.has(K)||(xiu(this.is,K),_.ml("polymerPropertyChangedInObserver",{componentName:this.is,observerName:K}))}return _.XX._setPendingProperty.apply(this,[M,q,G])};
_.T([qB4()],CT);var zPw=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),SfY,YA={};_.w("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=YA);var d4=function(){return _.kA.apply(this,arguments)||this};
_.l(d4,_.kA);d4.prototype._setUnmanagedPropertyToNode=function(M,q,G){M.loggingStatus&&(M.loggingStatus.isDeclarativeExternal=!0);if(G!==M[q]||typeof G==="object")M[q]=G;M.is&&M.polymerController&&M.polymerController!==M&&W4(M.is,q,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");M.loggingStatus&&(M.loggingStatus.isDeclarativeExternal=!1)};
_.T([_.pT()],d4);miF()&&(sU.prototype._setUnmanagedPropertyToNode=(new d4)._setUnmanagedPropertyToNode);_.G1y={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(M){},set polymerController(M){}}]};var w4=function(){var M=Ah.apply(this,arguments)||this;M.json=function(){};
return M};
_.l(w4,Ah);w4.prototype.equals=function(M,q){return M===q};
w4.prototype.isEmpty=function(M){var q;(q=!M)||(q=_.TF(M)&&M.length===0);return q};
_.T([qB4()],w4);var pCl=function(M){M=Gdy(M);Tb.call(this,M)};
_.l(pCl,Tb);pCl.prototype.addProvider=function(M){M=M.key?M:Gdy([M])[0];var q=this.keyIdToIndex.get(M.key.id);if(q){if(RP4(M,this.providers[q]))throw Error("lg`"+M.key.displayName);}else Tb.prototype.addProvider.call(this,M)};
var yPB=new pCl([]);var LBJ=!1;var sK4={};LBJ||($iH(),LBJ=!0);
sK4.InjectBehavior={initializeInjection:function(){var M=this.provide;try{if((M=M!=null?M:[])&&M.length>0)for(var q=Gdy(M),G=_.k(q),K=G.next();!K.done;K=G.next())yPB.addProvider(K.value);var n=new Set;fWu(this.behaviors||[],n);q={};for(var E=_.k(n),p=E.next();!p.done;p=E.next()){var y=p.value;y.inject&&Object.assign(q,y.inject)}this.inject&&Object.assign(q,this.inject);for(var Y=_.k(Object.keys(q)),A=Y.next();!A.done;A=Y.next()){var v=A.value,h=q[v];try{this[v]=yPB.resolve(h)}catch(t){throw t;}}}catch(t){throw Error(t.message);
}}};var qPD;var KOy=/\bclass\b/.test(function(){}.toString()),NZ4=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var YoI=function(M){this.wasDefined=!0;Array.isArray(M)||M instanceof Array?(this.JSC$13506_getImpl=M[0],this.JSC$13506_setImpl=M[1]):this.JSC$13506_getImpl=M};
_.N=YoI.prototype;_.N.getWithPath=function(M){return yXu(this.JSC$13506_getImpl(),M)};
_.N.setWithPath=function(M,q){var G=this;if(M.length)throw Error("mg");if(!this.JSC$13506_setImpl)throw Error("ng");Bm(function(){G.JSC$13506_setImpl(q)})};
_.N.notifyPath=function(){throw Error("og");};
_.N.notifySplices=function(){throw Error("pg");};
_.N.getChangeRecordSignal=function(M,q){var G=this;if(M.length)throw Error("qg");return function(){var K=G.getWithPath(M);return{path:q!=null?q:"",base:K,value:K}}};
_.N.getSplicesSignal=function(){throw Error("rg");};
_.N.getPathMutationSignal=function(){throw Error("sg");};
_.N.pop=function(){throw Error("tg");};
_.N.push=function(){throw Error("ug");};
_.N.splice=function(){throw Error("vg");};
_.N.unshift=function(){throw Error("wg");};var J7=function(M){var q=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(M)||M instanceof Array?(this.JSC$13511_getImpl=M[0],this.JSC$13511_setImpl=M[1]):this.JSC$13511_getImpl=M;this.wasDefined=!1;_.oY(function(){q.wasDefined=q.JSC$13511_getImpl()!==void 0})};
J7.prototype.getWithPath=function(M){return yXu(this.JSC$13511_getImpl(),M)};
J7.prototype.setWithPath=function(M,q){var G=this;if(M[M.length-1]!=="*"&&M[M.length-1]!=="splices"){var K=_.oY(function(){return G.getWithPath([])});
if(M.length===0){if(!this.JSC$13511_setImpl)throw Error("xg");if(K===q)return;this.wasDefined||(this.wasDefined=q!==void 0);Bm(function(){G.JSC$13511_setImpl(q)})}else{for(var n=0;n<M.length-1;n++){if(!K)return;
K=K[M[n]]}n=M[M.length-1];K&&(K[n]=q);this.wasDefined||(this.wasDefined=M.length>1||q!==void 0)}WBB(this,M,{pathComponents:M,value:q})}};
J7.prototype.notifyPath=function(M,q){M.length===0?q&&this.setWithPath(M,q.value):WBB(this,M,{pathComponents:M,value:q==null?void 0:q.value,fallbackWhenUndefined:q==null?void 0:q.value})};
var WBB=function(M,q,G,K){if(M.setMutationSignal){var n=++M.mutationIndex,E=[M.observedPath],p=M.observedPath,y;q.length===0&&(y=p);for(var Y=0;Y<q.length;Y++){var A=p.subPaths[q[Y]];if(!A)break;E.push(A);p=A;Y===q.length-1&&(y=A)}for(q=!1;E.length;)p=E.shift(),p.data={index:n,mutation:G,spliceMutationIndex:K},q||(q=p===y),q&&E.push.apply(E,_.Ui(Object.values(p.subPaths)));Bm(function(){M.setMutationSignal(n)})}};
J7.prototype.notifySplices=function(M,q){var G=this,K=_.oY(function(){return G.getWithPath(M)}),n=[].concat(_.Ui(M),["splices"]);
WBB(this,n,{pathComponents:n,value:{indexSplices:q}});if(K==null?0:K.length)q=this.mutationIndex,n=[].concat(_.Ui(M),["length"]),WBB(this,n,{pathComponents:n,value:K.length},q)};
var AP$=function(M,q,G,K,n,E){M.notifySplices(G,[{index:K,addedCount:n,removed:E,object:q,type:"splice"}])},d7S=function(M,q){M=M.observedPath;
for(var G=0;G<q.length;G++){var K=q[G],n=M.subPaths[K];n||(n={pathComponents:q.slice(0,G+1),subPaths:{}},M.subPaths[K]=n);M=n}},hZ9=function(M,q,G){d7S(M,q);
if(!M.getMutationSignal){var K=_.k(_.lQ(M.mutationIndex,void 0,"sNBMCd"));M.getMutationSignal=K.next().value;M.setMutationSignal=K.next().value}var n=M.getMutationSignal;return _.gY(function(){n();return G(v08(M,q))},void 0,"zvsXEd")};
J7.prototype.getChangeRecordSignal=function(M,q){var G=this,K=this.mutationIndex,n;return hZ9(this,M,function(E){if(E&&E.index>K){var p=E.mutation;K=E.index;n=void 0}E=_.oY(function(){return G.getWithPath(M)});
if(p){var y=p.pathComponents[p.pathComponents.length-1],Y=[].concat(_.Ui(p.pathComponents));if(y==="splices"||y==="length")return{base:E,path:(q?[q].concat(_.Ui(Y)):Y).join("."),value:p.value};var A=M.length>Y.length?M:Y,v;return{base:E!=null?E:p.fallbackWhenUndefined,path:(q?[q].concat(_.Ui(A)):A).join("."),value:(v=_.oY(function(){return G.getWithPath(A)}))!=null?v:p.fallbackWhenUndefined}}n||(n={base:E,
path:(q?[q].concat(_.Ui(M)):M).join("."),value:E});return n})};
J7.prototype.getSplicesSignal=function(M){var q=this.mutationIndex,G;return hZ9(this,M,function(K){if(K&&K.index>q&&K.spliceMutationIndex!==q){var n=K.mutation;q=K.index;G=void 0}return n&&n.pathComponents[n.pathComponents.length-1]==="splices"?G=K=n.value:G})};
J7.prototype.getPathMutationSignal=function(M){var q=this;d7S(this,M);if(!this.getMutationSignal){var G=_.k(_.lQ(this.mutationIndex,void 0,"ugyMh"));this.getMutationSignal=G.next().value;this.setMutationSignal=G.next().value}var K=this.getMutationSignal,n=this.mutationIndex,E;return _.gY(function(){K();var p=v08(q,M);if(p&&p.index>n&&p.mutation&&LOw(p.mutation.pathComponents,M)){var y=p.mutation;n=p.index}if(!E||n!==E.index){var Y,A;p=(A=_.oY(function(){return q.getWithPath(M)}))!=null?A:(Y=y)==null?
void 0:Y.fallbackWhenUndefined;
E={index:n,value:p}}return E},void 0,"RXYC9b")};
var v08=function(M,q){M=M.observedPath;q=_.k(q);for(var G=q.next();!G.done;G=q.next())M=M.subPaths[G.value];return M.data};
J7.prototype.pop=function(M){var q=this,G=_.oY(function(){return q.getWithPath(M)});
if(!(G instanceof Array))throw Error("yg");var K=G.length>0,n=G.pop();K&&AP$(this,G,M,G.length,0,[n]);return n};
J7.prototype.push=function(M){var q=_.rW.apply(1,arguments),G=this,K=_.oY(function(){return G.getWithPath(M)});
if(!(K instanceof Array))throw Error("zg");var n=K.length,E=K.push.apply(K,_.Ui(q));q.length&&AP$(this,K,M,n,q.length,[]);return E};
J7.prototype.splice=function(M,q,G){var K=_.rW.apply(3,arguments),n=this,E=_.oY(function(){return n.getWithPath(M)});
if(!(E instanceof Array))throw Error("Ag");q<0?q=E.length-Math.floor(-q):q&&(q=Math.floor(q));var p=E.splice.apply(E,[q,G].concat(_.Ui(K)));(K.length||p.length)&&AP$(this,E,M,q,K.length,p);return p};
J7.prototype.unshift=function(M){var q=_.rW.apply(1,arguments),G=this,K=_.oY(function(){return G.getWithPath(M)});
if(!(K instanceof Array))throw Error("Bg");var n=K.unshift.apply(K,_.Ui(q));q.length&&AP$(this,K,M,0,q.length,[]);return n};var ZI=function(M,q,G){this.model=M;this.unknownSignalResolver=q;this.options=G;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];q=_.k(wPF());M=q.next().value;q=q.next().value;this.owner=M;this.disposeImpl=q};
ZI.prototype.dispose=function(){if(!this.isDisposed){for(var M=_.k(this.childSignalProxies),q=M.next();!q.done;q=M.next())q.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var txB=function(M,q){M=_.k_(M.owner);try{q()}finally{_.k_(M)}};
ZI.prototype.effect=function(M){txB(this,function(){_.rY(M,"g")})};
var Oyv=function(M,q){M.options!=null||(M.options={});var G;(G=M.options).immutableProps!=null||(G.immutableProps=new Set);M.options.immutableProps.add(q)},jKF=function(M,q){q=""+q;
wCd(M,q);var G,K;if((G=M.options)==null?0:(K=G.immutableProps)==null?0:K.has(q))return!0;var n;if((n=M.model.__signalCache)==null?0:n.has(q))G=M.model.__signalCache.get(q),Array.isArray(G)&&Oyv(M,q);var E,p,y;return(y=(E=M.options)==null?void 0:(p=E.immutableProps)==null?void 0:p.has(q))!=null?y:!1},C6J=function(M,q){var G;
M.unknownSignalResolver&&(G=M.unknownSignalResolver(q));var K,n;((K=M.options)==null?0:(n=K.immutableProps)==null?0:n.has(q))?G!=null||(G=new YoI(_.lQ(M.model[q],void 0,"By5iP"))):G!=null||(G=new J7(_.lQ(M.model[q],void 0,"CXghNc")));var E=M.model.hostElement;Object.defineProperty(M.model,q,{get:function(){rZi(E,q);return G.getWithPath([])},
set:function(p){A_(E,q);M.setWithPath([q],p)},
configurable:!0});return G},wCd=function(M,q){var G,K,n;
((G=M.model.__signalCache)==null||!G.has(q))&&((K=M.options)==null?0:(n=K.externalSignalProps)==null?0:n.has(q))&&M.model[q]},Xs=function(M,q){q=""+q;
var G=M.signalCache[q];if(G!==void 0)return G;G=!1;wCd(M,q);var K;if((K=M.model.__signalCache)==null?0:K.has(q))if(G=M.model.__signalCache.get(q),Array.isArray(G))G=!0,Oyv(M,q);else return M.signalCache[q]=M.model.__signalCache.get(q).signal,M.signalCache[q];var n,E;K=(E=(n=M.options)==null?void 0:n.reactivityMode)!=null?E:0;var p,y;if(!((p=M.options)==null?0:(y=p.reactiveProps)==null?0:y.has(q))&&!G&&K===1)throw Error("Cg`"+q);n=G?aq$(M,q):C6J(M,q);return M.signalCache[q]=n},aq$=function(M,q){var G=
Object.getOwnPropertyDescriptor(M.model.constructor.prototype,q),K=function(){return M.model[q]};
return new YoI(G&&G.get&&!G.set?K:[K,function(n){M.model[q]=n}])};
ZI.prototype.getWithPath=function(M){var q=_.k(M);M=q.next().value;q=nW(q);rZi(this.model.hostElement,""+M);return Xs(this,M).getWithPath(q)};
ZI.prototype.setWithPath=function(M,q){if(M.length){A_(this.model.hostElement,M.join("."));var G=_.k(M);M=G.next().value;G=nW(G);Xs(this,M).setWithPath(G,q)}};
ZI.prototype.getPathMutationSignal=function(M){var q=_.k(M);M=q.next().value;q=nW(q);return Xs(this,M).getPathMutationSignal(q)};
ZI.prototype.notifyPath=function(M,q){var G=_.k(M);M=G.next().value;G=nW(G);Xs(this,M).notifyPath(G,q)};
var o0d=function(M,q){if(q.type==="literal")return function(){return{rootWasDefined:!0,value:q.value}};
var G=oO(q.path),K=_.k(G),n=K.next().value;K=nW(K);var E,p;if(q.type==="path"&&(G.length===1||((E=M.options)==null?0:(p=E.immutableProps)==null?0:p.has(n))))return function(){var h=M.getWithPath(G.slice(0,1));h=yXu(h,G.slice(1));return{rootWasDefined:Xs(M,G[0]).wasDefined,value:h}};
var y=Xs(M,n);if(q.type==="path"){var Y=y.getPathMutationSignal(K);return function(){var h,t=(h=Y())==null?void 0:h.value;return{rootWasDefined:y.wasDefined,value:t}}}if(q.type==="splices"){var A=y.getSplicesSignal(K);
return function(){var h=A();return{rootWasDefined:y.wasDefined,value:h}}}var v=y.getChangeRecordSignal(K,""+n);
return function(){var h=v();return{rootWasDefined:y.wasDefined,value:h}}},h8u=function(M,q,G){var K=G.map(function(y){return o0d(M,y)}),n=G.length===0,E=[],p=G.length!==1||G[0].type!=="path"?!1:!0;
M.effect(function(){for(var y=K.length,Y=[],A=!!E.length,v=0;v<y;v++){var h=K[v](),t=h.rootWasDefined;h=h.value;n||(n=t);Y[v]=h;p&&(Y[v+y]=A?E[v]:Y[v],E[v]=h)}n&&j_(M.owner,function(){return void q.apply(null,_.Ui(Y))})})},YPu=function(M,q,G,K,n){var E=Xs(M,q);
n!==void 0&&E.setWithPath([],n);h8u(M,function(){var p=_.rW.apply(0,arguments);A_(M.model.hostElement,q,!0);E.setWithPath([],G.apply(null,_.Ui(p)))},K)};
ZI.prototype.arrayPush=function(M){var q=_.rW.apply(1,arguments),G=_.k(M),K=G.next().value;G=nW(G);K=Xs(this,K);return K.push.apply(K,[G].concat(_.Ui(q)))};
ZI.prototype.arraySplice=function(M,q,G){var K=_.rW.apply(3,arguments),n=_.k(M),E=n.next().value;n=nW(n);E=Xs(this,E);return E.splice.apply(E,[n,q,G].concat(_.Ui(K)))};
ZI.prototype.arrayUnshift=function(M){var q=_.rW.apply(1,arguments),G=_.k(M),K=G.next().value;G=nW(G);K=Xs(this,K);return K.unshift.apply(K,[G].concat(_.Ui(q)))};
ZI.prototype.notifySplices=function(M,q){var G=_.k(M);M=G.next().value;G=nW(G);Xs(this,M).notifySplices(G,q)};var lqP=!0,XCp=!1,Vyw=!1,P6p=!1,iyx=0;P6p=!1;iyx=0;lqP=!0;XCp=Vyw=!1;var Pxy=/([^\s]+?)\(([\s\S]*)\)/,o6e=/\.([^.]+)$/,cXy=/\\,/g,Cxu=/&comma;/g,asy=/\\(.)/g,iMH=[],lsj={"*":"wildcard",splices:"splices"};var Uje=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"),uB4=/[A-Z]/,cPl=["class","hidden","id","on-dom-change"],z8s=new Set([].concat(_.Ui(cPl),
["if","notify-dom-change","restamp"])),mjj=new Set([].concat(_.Ui(cPl),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),SPu=new Set(["restamp"]);var S1u=new Set(["className","id"]);var R8y=Symbol(),MyH=window;var pjy=window;var voY=0,Yt$=0,P4=[],dwj=0,LVi=!1,AUs=document.createTextNode("");(new window.MutationObserver(WV$)).observe(AUs,{characterData:!0});var c4=new Map,ig=0,g02=function(M){this.mappedHandleId=M},tys=function(M,q,G,K){this.mappedHandleId=M;
var n=this;this.mappedHandleId=M;this.callback=q;this.waitTime=G;this.schedulerPriority=K;this.handleId=_.r8.addJob(function(){n.callback();c4.delete(n.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.l(tys,g02);tys.prototype.cancel=function(){_.r8.cancelJob(this.handleId);c4.delete(this.mappedHandleId)};
var OUi=function(M,q){this.mappedHandleId=M;var G=this;this.mappedHandleId=M;this.callback=q;this.handleId=hi$(function(){G.callback();c4.delete(G.mappedHandleId)})};
_.l(OUi,g02);OUi.prototype.cancel=function(){var M=this.handleId-Yt$;M<0||P4.length<=M||(P4[M]=null);c4.delete(this.mappedHandleId)};var ooH=function(){};
ooH.prototype.cancel=function(){this.jobHandle!==void 0&&(wju(this.jobHandle),this.jobHandle=void 0)};
ooH.prototype.run=function(M,q,G){var K=this;this.cancel();this.callback=M;this.jobHandle=_.g4(function(){M();K.callback=void 0},q,G)};
ooH.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var ClF=new WeakMap;var BuB=$r(function(M){for(var q=M,G=0;G<3;G++)q=Object.getPrototypeOf(q);delete q.prototype.connectedCallback;var K=function(){return M.apply(this,arguments)||this};
_.l(K,M);K.prototype._attachDom=function(n){if(!n)return null;var E=(0,_.$U)(this.hostElement);E.attachShadow({mode:"open",shadyUpgradeFragment:n});E.shadowRoot.appendChild(n);return E.shadowRoot};
K.prototype._takeAttributes=function(){for(var n=this.hostElement.attributes,E=0;E<n.length;E++){var p=n[E],y=void 0,Y=void 0;(Y=(y=this).__attributeReaction)==null||Y.call(y,p.name,null,p.value)}};
K.prototype._readyClients=function(){M.prototype._readyClients.call(this);this.root=this};
K.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);M.prototype.connectedCallback.call(this)};
_.Yd.Object.defineProperties(K,{template:{configurable:!0,enumerable:!0,get:function(){return K.prototype._template}}});
return K}),QhM=$r(function(M){var q=function(){return M.apply(this,arguments)||this};
_.l(q,M);q.prototype.created=function(){if(this.__notifyEffects)for(var G=_.k(Object.values(this.__notifyEffects)),K=G.next();!K.done;K=G.next()){K=_.k(K.value);for(var n=K.next();!n.done;n=K.next())n.value.fn=iUj}if(this.__reflectEffects)for(G=_.k(Object.values(this.__reflectEffects)),K=G.next();!K.done;K=G.next())for(K=_.k(K.value),n=K.next();!n.done;n=K.next())n.value.fn=cUF};
q.prototype._addEventListenerToNode=function(G,K,n){G=QO(G);r_(G,K,n)||M.prototype._addEventListenerToNode.call(this,G,K,n)};
q.prototype._removeEventListenerFromNode=function(G,K,n){G=QO(G);jU(G,K,n)||M.prototype._removeEventListenerFromNode.call(this,G,K,n)};
q.prototype._propertiesChanged=function(G,K,n){if(this.__dataToNotify&&this.__notifyEffects)for(var E=_.k(Object.keys(this.__dataToNotify)),p=E.next();!p.done;p=E.next()){p=p.value;var y=PlF(p);this.__notifyEffects[y]||delete this.__dataToNotify[p]}else this.__dataToNotify=null;M.prototype._propertiesChanged.call(this,G,K,n)};
q.prototype.fire=function(G,K,n){K=K===void 0?{}:K;var E;return _.jP(QO((E=n==null?void 0:n.node)!=null?E:this),G,K,n)};
q.prototype._ensureAttribute=function(G,K){var n=QO(this);n.hasAttribute(G)||lg(n,K,G)};
q.prototype.isLightDescendant=function(G){var K=QO(this);return QO(K)!==G&&_.f_(K).contains(G)&&_.f_(K).getRootNode()===_.f_(G).getRootNode()};
return q});
_.Pn.ready=function(){var M;((M=this.hostElement)!=null?M:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var q;((q=this.hostElement)!=null?q:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.uz._subscribeIronResize=function(M){var q;((q=M.hostElement)!=null?q:M).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.uz._unsubscribeIronResize=function(M){var q;((q=M.hostElement)!=null?q:M).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var Qdy=[Array,Boolean,Date,Number,Object,String],Dp=function(M,q,G,K){this.polySiInfo=M;this.polySiParams=q;this.polySiContext=G;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;K||this instanceof HTMLElement&&(K=this);if(!K)throw Error("Jg");this.allowedProps=q.allowedProps;this.hostElement=K;this.is=M.is;this.upgradeDisabled=!!q.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");M=new Set(q.reactiveSchemas.filter(function(n){return n.type!==
"observe"}).map(function(n){return n.propertyKey}));
this.signalProxy=new ZI(this,void 0,{reactiveProps:M,reactivityMode:q.reactivityMode});this.__dataHasAccessor={};q=_.k(q.reactiveSchemas);for(M=q.next();!M.done;M=q.next())M=M.value,M.type==="signal"&&(this.__dataHasAccessor[M.propertyKey]=!0);this.upgradeDisabled||IqB(this)};
Dp.prototype.getExtraMethodsToForward=function(){return[]};
var IqB=function(M){M.polySiContext.didRegister||(M.registered(),M.polySiContext.didRegister=!0);M.polySiContext.finalizedTemplate||(M.polySiContext.finalizedTemplate={},M.polySiParams.templateGetter&&(M.polySiContext.finalizedTemplate.processedTemplate=yUF(M.polySiParams.templateGetter,M.polySiParams.is)));D7x(M);var q=M.hostElement;q.loggingStatus!=null||(q.loggingStatus={});q.loggingStatus.isInitializing=!0;_.oY(function(){return void M.created()});
q.loggingStatus.isInitializing=!1;M.isPolySiElementConnected&&uF$(M)},uF$=function(M){M.didCallReady||(_.oY(function(){return void M.ready()}),M.didCallReady=!0);
M.isAttached=!0;M.attached()};
_.N=Dp.prototype;_.N.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||uF$(this)};
_.N.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.N.attributeChangedCallback=function(M,q,G){if(this.upgradeDisabled)M==="disable-upgrade"&&G===null&&(this.upgradeDisabled=!1,IqB(this));else if(q!==G){var K=_.nx(M),n=this.polySiContext.typesForSignals[K];if(n&&(!this.reflecting||_.w("polysi_attribute_changed_serializing_killswitch"))){switch(n){case Object:try{var E=JSON.parse(G)}catch(y){E=G}break;case Array:try{E=JSON.parse(G)}catch(y){E=null}break;case Date:E=isNaN(G)?String(G):Number(G);E=new Date(E);break;case Boolean:E=G!==null;break;case Number:E=
Number(G);break;default:E=G}this[K]=E}K=_.k(this.polySiParams.behaviors);for(n=K.next();!n.done;n=K.next())E=void 0,(E=n.value.attributeChanged)==null||E.call(this,M,q,G);var p;(p=this.attributeChanged)==null||p.call(this,M,q,G)}};
_.N.attributeChangedCallbackWrapper=function(M,q,G){this.attributeChangedCallback(M,q,G)};
_.N.setPropertiesFromInitialAttributeValues=function(){for(var M=0;M<this.hostElement.attributes.length;M++){var q=this.hostElement.attributes[M];(q.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(q.name))&&this.attributeChangedCallback(q.name,null,q.value)}};
_.N.created=function(){this.provide=this.polySiParams.provide;var M;(M=this.initializeInjection)==null||M.call(this);M=_.k(this.polySiParams.reactiveSchemas);for(var q=M.next();!q.done;q=M.next())q=q.value,q.type==="signal"&&(this.mutablePropNames.add(q.propertyKey),Xs(this.signalProxy,q.propertyKey));B0Y(this,this.polySiInfo,this.polySiParams.behaviors);M=_.k(this.polySiParams.reactiveSchemas);for(q=M.next();!q.done;q=M.next())q=q.value,q.type==="signal"&&q.value!==void 0&&(this.signalProxy.model[q.propertyKey]=
typeof q.value==="function"?q.value.call(this):q.value);if(this.polySiParams.signalProperties)for(M=_.k(this.polySiParams.signalProperties),q=M.next();!q.done;q=M.next()){q=q.value;var G=void 0;((G=this.__signalCache)==null?0:G.has(q))||(this.signalProxy.model[q]=void 0)}P6p||JPf(this);goi(this);M=_.k(this.polySiParams.behaviors);for(q=M.next();!q.done;q=M.next())G=void 0,(G=q.value.created)==null||G.call(this);var K;(K=this.polySiInfo.created)==null||K.call(this)};
_.N.registered=function(){var M=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var q=Object.getPrototypeOf(this);q.addReactiveSchema=function(y){M.polySiParams.reactiveSchemas.push(y)};
for(var G=_.k(this.polySiParams.behaviors),K=G.next();!K.done;K=G.next()){var n=void 0;(n=K.value.beforeRegister)==null||n.call(q)}var E;(E=this.polySiInfo.beforeRegister)==null||E.call(q);q.addReactiveSchema=Dww;G=_.k(this.polySiParams.behaviors);for(K=G.next();!K.done;K=G.next())n=void 0,(n=K.value.registered)==null||n.call(q);var p;(p=this.polySiInfo.registered)==null||p.call(q)};
_.N.ready=function(){var M;(M=this.beforeReady)==null||M.call(this);P6p&&JPf(this);var q;if(M=(q=this.polySiContext.finalizedTemplate)==null?void 0:q.processedTemplate){M=kxi(M.template,M.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:M.hasInsertionPoint,thisCtx:this});q=M.nodesById;M=M.root;var G=this.hostElement;var K=K===void 0?!1:K;G=(0,_.$U)(G);if(!G.attachShadow)throw Error("Hd");if(!G.shadowRoot||K)G.attachShadow({mode:"open",shadyUpgradeFragment:M}),G.shadowRoot.appendChild(M);
this.root=G.shadowRoot;this.$=q}Zyp(this);K=_.k(this.polySiParams.behaviors);for(q=K.next();!q.done;q=K.next())M=void 0,(M=q.value.ready)==null||M.call(this);var n;(n=this.polySiInfo.ready)==null||n.call(this)};
_.N.attached=function(){for(var M=_.k(this.polySiParams.behaviors),q=M.next();!q.done;q=M.next()){var G=void 0;(G=q.value.attached)==null||G.call(this)}var K;(K=this.polySiInfo.attached)==null||K.call(this)};
_.N.detached=function(){for(var M=_.k(this.polySiParams.behaviors),q=M.next();!q.done;q=M.next()){var G=void 0;(G=q.value.detached)==null||G.call(this)}var K;(K=this.polySiInfo.detached)==null||K.call(this)};
var D7x=function(M){for(var q=_.k(M.polySiParams.behaviors),G=q.next();!G.done;G=q.next())if(G=G.value,G.listeners)for(var K in G.listeners)N0y(M,M.hostElement,K,G.listeners[K]);if(M.polySiInfo.listeners)for(var n in M.polySiInfo.listeners)N0y(M,M.hostElement,n,M.polySiInfo.listeners[n])},N0y=function(M,q,G,K,n){M=pPY(M,K,n);
r_(q,G,M)||q.addEventListener(G,M);return M},JPf=function(M){for(var q=_.k(M.polySiParams.reactiveSchemas),G=q.next();!G.done;G=q.next())G=G.value,G.type==="compute"||G.type==="computeWithMethod"?WOu(M.signalProxy,G,M):G.type==="redux"?v6y(M.signalProxy,G,M.store):G.type==="signal"&&G.readOnly&&dj$(M.signalProxy,G)},Zyp=function(M){for(var q=_.k(M.polySiParams.reactiveSchemas),G=q.next(),K={};!G.done;K={schema$jscomp$12:void 0},G=q.next())K.schema$jscomp$12=G.value,K.schema$jscomp$12.type==="notify"?
tQ4(M.signalProxy,K.schema$jscomp$12,M.hostElement):K.schema$jscomp$12.type==="observe"?OMY(M.signalProxy,K.schema$jscomp$12,M):K.schema$jscomp$12.type==="reflect"&&M.signalProxy.effect(function(E){return function(){var p=M.signalProxy.getWithPath([E.schema$jscomp$12.propertyKey]);
M.reflecting=!0;BZi(M.hostElement,E.schema$jscomp$12.propertyKey,p,!0);M.reflecting=!1}}(K));
if(M.reflectedAttributes)for(q=_.k(Object.entries(M.reflectedAttributes)),K=q.next(),G={};!K.done;G={key$jscomp$940:void 0,value$jscomp$10087:void 0},K=q.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;G.key$jscomp$940=K;G.value$jscomp$10087=n;M.signalProxy.effect(function(E){return function(){M.reflecting=!0;BZi(M.hostElement,E.key$jscomp$940,(0,E.value$jscomp$10087)(),!0);M.reflecting=!1}}(G))}};
_.N=Dp.prototype;_.N._setPendingProperty=function(M,q){this.set(M,q);return!1};
_.N._enableProperties=function(){};
_.N._setPendingPropertyOrPath=function(M,q){this.notifyPath(M,q);return!1};
_.N._addPropertyEffect=function(){};
_.N._stampTemplate=function(){throw Error("Kg");};
_.N.fire=function(M,q,G){q=q===void 0?{}:q;G=G===void 0?{}:G;var K,n,E={bubbles:(K=G.bubbles)!=null?K:!0,cancelable:!!G.cancelable,composed:(n=G.composed)!=null?n:!0},p;return _.jP(udy((p=G.node)!=null?p:this.hostElement),M,q,E)};
_.N.get=function(M,q){var G=oO(M);return q?yXu(q,G):M==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(G)};
_.N.linkPaths=function(){};
_.N.listen=function(M,q,G){M=udy(M);this.boundListeners!=null||(this.boundListeners=new WeakMap);var K=this.boundListeners.get(M);K||(K={},this.boundListeners.set(M,K));var n=q+G;K[n]||(K[n]=N0y(this,M,q,G))};
_.N.notifyPath=function(M,q){this.signalProxy.notifyPath(oO(M),arguments.length===2?{value:q}:void 0)};
_.N.canNotifyPath=function(M){return this.mutablePropNames.has(M)&&!jKF(this.signalProxy,M)};
_.N.notifySplices=function(M,q){this.signalProxy.notifySplices(oO(M),q)};
_.N.pop=function(M){var q=this.signalProxy;M=oO(M);var G=_.k(M);M=G.next().value;G=nW(G);return Xs(q,M).pop(G)};
_.N.push=function(M){var q=_.rW.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[oO(M)].concat(_.Ui(q)))};
_.N.set=function(M,q,G){if(G)throw Error("Lg");M==="hidden"?this.hostElement.hidden=!!q:this.signalProxy.setWithPath(oO(M),q)};
_.N.setProperties=function(M){M=_.k(Object.entries(M));for(var q=M.next();!q.done;q=M.next()){var G=_.k(q.value);q=G.next().value;G=G.next().value;this[q]=G}};
_.N.splice=function(M,q,G){var K=_.rW.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[oO(M),q,G].concat(_.Ui(K)))};
_.N.unlinkPaths=function(){};
_.N.unlisten=function(M,q,G){M=udy(M);if(this.boundListeners){var K=this.boundListeners.get(M);if(K){G=q+G;var n=K[G];n&&(jU(M,q,n)||M.removeEventListener(q,n),delete K[G])}}};
_.N.unshift=function(M){var q=_.rW.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[oO(M)].concat(_.Ui(q)))};
_.Yd.Object.defineProperties(Dp.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 jdH=[Array,Boolean,Date,Number,Object,String];var fzy=!1;var bW=function(){var M=HTMLElement.apply(this,arguments)||this;M.restamp=!1;M.notifyDomChange=!1;M.JSC$13619_didCallConnected=!1;M.JSC$13619_renderDebouncer=null;M.disableTemplateUpdateSignalImpl=ug()?void 0:_.lQ(!1,void 0,"Ofhkwb");var q;M.getDisableTemplateUpdate=(q=M.disableTemplateUpdateSignalImpl)==null?void 0:q[0];var G;M.setDisableTemplateUpdate=(G=M.disableTemplateUpdateSignalImpl)==null?void 0:G[1];return M};
_.l(bW,HTMLElement);var byv=function(M){M.conditionSignalImpl!=null||(M.conditionSignalImpl=new J7(_.lQ(!1,void 0,"gE52Fb")));return M.conditionSignalImpl};
_.N=bW.prototype;_.N.showHideChildren=function(M){U7p(this,M,this.if)};
_.N.attributeChangedCallback=function(M,q,G){if(this.JSC$13619_didCallConnected)throw Error("Pg`"+M);M==="notify-dom-change"?this.notifyDomChange=G!==null:M==="restamp"&&(this.restamp=G!==null)};
_.N.debounceRender=function(){this.JSC$13619_renderDebouncer=_.yd(this.JSC$13619_renderDebouncer,Fn,this.JSC$13619_renderImpl.bind(this));_.Lk(this.JSC$13619_renderDebouncer)};
_.N.disconnectedCallback=function(){var M=(0,_.$U)(this).parentNode;(!M||M.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in M&&!M.host)&&x7P(this)};
_.N.connectedCallback=function(){var M=this;this.JSC$13619_didCallConnected=!0;lqP?FVw():this.style.display="none";this.parentSignalProxy.isDisposed&&!_.w("ps_dom_if_check_disposed_in_connected_killswitch")||this.parentSignalProxy.effect(function(){byv(M).getWithPath([]);M.debounceRender()})};
_.N.render=function(){_.dF()};
_.N.JSC$13619_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var M=this.if,q=!1;if(M){this.hasInstance()||(zZB(this),q=!0);a:{var G=(0,_.$U)(this).parentNode;if(this.hasInstance()){var K=this.instance.children;if((K==null?0:K.length)&&(0,_.$U)(this).previousSibling!==K[K.length-1])for(var n=0;n<K.length;n++)(0,_.$U)(G).insertBefore(K[n],this)}else{if(!G){G=!1;break a}m7I(this,G)}G=!0}if(!G)return}else this.restamp&&x7P(this);U7p(this,!1,M);M&&!q&&zZB(this);XCp&&!this.notifyDomChange||
this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.N.hasInstance=function(){return!!this.instance};
var m7I=function(M,q){var G=M.parentSignalProxy;if(ug()){var K=_.k(_.lQ(!0,void 0,"dkzufd"));var n=K.next().value;K=K.next().value;G=M.parentSignalProxy}else{var E;var p=new ZI((E=Sop(M))!=null?E:{},function(Y){var A=Xs(M.parentSignalProxy,Y).getChangeRecordSignal([]);Y=_.lQ(void 0,void 0,"iG8Uwe");var v=new J7(Y);p.effect(function(){if(M.getDisableTemplateUpdate&&!M.getDisableTemplateUpdate()){var h=A();v.notifyPath(oO(h.path),{value:h.value})}});
return v});
M.parentSignalProxy.childSignalProxies.push(p);var y=G=p}G=kxi(M.templateInfo,M.templateInfo.nodeInfoList,G,{eventListenerHost:M.eventListenerHost,hasInsertionPoint:M.templateInfo.hasInsertionPoint,thisCtx:M.eventListenerHost,enabledSignal:ug()?n:void 0,getModel:function(){return Sop(M)}}).root;
M.instance={root:G,children:[],hidden:!1,signalProxy:y,getTemplateUpdatesEnabled:n,setTemplateUpdatesEnabled:K};y=_.k(G.childNodes);for(n=y.next();!n.done;n=y.next())M.instance.children.push(n.value);(0,_.$U)(q).insertBefore(M.instance.root,M)},Sop=function(M){if((M=M.parentSignalProxy.model)&&!M.hostElement){var q={},G;
for(G in M)M.hasOwnProperty(G)&&(q[G]=M[G]);return q}},x7P=function(M){if(M.instance){var q=M.instance.children;
if(q.length){var G=(0,_.$U)(q[0]).parentNode;if(G){G=(0,_.$U)(G);for(var K=0;K<q.length;K++)G.removeChild(q[K])}}ug()?M.instance.setTemplateUpdatesEnabled(!1):M.instance.signalProxy.dispose();M.instance=void 0}},U7p=function(M,q,G){q=q||!G;
M.instance&&M.instance.hidden!==q&&(M.instance.hidden=q,Riw(q,M.instance.children))},zZB=function(M){if(ug()){var q=M.instance;
q&&j_(M.parentSignalProxy.owner,function(){return!q.getTemplateUpdatesEnabled()})&&q.setTemplateUpdatesEnabled(!0)}else M.setDisableTemplateUpdate(!1)};
_.Yd.Object.defineProperties(bW.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var M=this;return j_(this.parentSignalProxy.owner,function(){return byv(M).getWithPath([])})},
set:function(M){M||(ug()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));byv(this).setWithPath([],!!M)}}});
_.Yd.Object.defineProperties(bW,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",bW);var Tu8=[],U_=function(){var M=HTMLElement.apply(this,arguments)||this;M.as="item";M.indexAs="index";M.itemsIndexAs="itemsIndex";M.targetFramerate=20;M.notifyDomChange=!1;M.isDetached=!1;M.JSC$13626_renderDebouncer=null;M.instances=[];M.chunkingId=null;M.chunkCount=null;M.shouldMeasureChunk=!1;M.shouldContinueChunking=!1;M.renderStartTime=null;M.JSC$13626_didCallConnected=!1;return M};
_.l(U_,HTMLElement);var rP2=function(M){M.itemSignalImpl!=null||(M.itemSignalImpl=new J7(_.lQ(Tu8,void 0,"YBrqgf")));return M.itemSignalImpl},jhf=function(M,q){Array.isArray(q)||(q=Tu8);
rP2(M).setWithPath([],q)};
_.N=U_.prototype;_.N.showHideChildren=function(M){for(var q=_.k(this.instances),G=q.next();!G.done;G=q.next())Riw(M,G.value.children)};
_.N.notifyPath=function(M,q){M=oO(M);M[0]==="items"&&(M.length===1?jhf(this,q):rP2(this).setWithPath(M.slice(1),q))};
_.N.canNotifyPath=function(M){return M==="items"};
_.N.attributeChangedCallback=function(M,q,G){if(this.JSC$13626_didCallConnected)throw Error("Qg`"+M);M==="as"?this.as=G:M==="index-as"?this.indexAs=G:M==="items-index-as"?this.itemsIndexAs=G:M==="initial-count"?this.initialCount=Number(G):M==="notify-dom-change"?this.notifyDomChange=G!==null:M==="target-framerate"&&(this.targetFramerate=Number(G))};
_.N.disconnectedCallback=function(){this.isDetached=!0;for(var M=0;M<this.instances.length;M++)Vxl(this,M);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.N.connectedCallback=function(){var M=this,q=rP2(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var n=q(),E=oO(n.path);if(E[0]===void 0||E[0]==="splices"||E[0]==="length")M.debounceRender();else{var p=E[0];if(p=M.instances[typeof p==="string"?Math.floor(Number(p)):p])E=[M.as].concat(_.Ui(E.slice(1))),p.signalProxy.notifyPath(E,n)}});
this.JSC$13626_didCallConnected=!0;lqP?FVw():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var G=(0,_.$U)((0,_.$U)(this).parentNode),K=0;K<this.instances.length;K++)G.insertBefore(this.instances[K].root,this);this.chunkingId&&this.render()}};
_.N.debounceRender=function(){this.JSC$13626_renderDebouncer=_.yd(this.JSC$13626_renderDebouncer,Fn,this.JSC$13626_renderImpl.bind(this));_.Lk(this.JSC$13626_renderDebouncer)};
_.N.render=function(){this.debounceRender();_.dF()};
_.N.JSC$13626_renderImpl=function(){var M=this;if(!this.parentSignalProxy.isDisposed){var q=this.items,G=RZ2(this,q.length);fqM(this,q,G);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){M.chunkingId=null;if(M.shouldMeasureChunk){var K=performance.now()-M.renderStartTime;M.chunkCount=Math.round(Math.ceil(1E3/M.targetFramerate)/K*M.chunkCount)||1}M.shouldContinueChunking&&M.debounceRender()}));
XCp&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
var RZ2=function(M,q){var G=q,K=M.instances.length;if(M.initialCount){if(M.chunkCount){var n=Math.min(Math.max(q-K,0),M.chunkCount);G=Math.min(K+n,q)}else G=Math.min(q,M.initialCount),n=Math.max(G-K,0),M.chunkCount=n||1;M.shouldMeasureChunk=n===M.chunkCount;M.shouldContinueChunking=G<q;M.renderStartTime=performance.now()}return G},fqM=function(M,q,G){for(var K=0;K<G;K++){var n=M.instances[K],E=q[K];
n?(n.signalProxy.setWithPath([M.as],E),n.signalProxy.setWithPath([M.indexAs],K)):FBJ(M,E,K)}for(q=M.instances.length-1;q>=K;q--)G=M,n=q,Vxl(G,n),_.k(G.instances.splice(n,1)).next().value.signalProxy.dispose()},Vxl=function(M,q){M=M.instances[q];
q=(0,_.$U)(M.root);for(var G=0;G<M.children.length;G++)q.appendChild(M.children[G])},FBJ=function(M,q,G){var K={};
q=Object.assign({},HyJ(M),(K[M.as]=q,K[M.indexAs]=G,K[M.itemsIndexAs]=G,K));var n=new ZI(q,function(p){if(p!==M.as&&p!==M.indexAs){if(p===M.itemsIndexAs)return Xs(n,M.indexAs);var y=Xs(M.parentSignalProxy,p).getChangeRecordSignal([]);p=_.lQ(void 0,void 0,"T21Pqc");var Y=new J7(p);n.effect(function(){var A=y();Y.notifyPath(oO(A.path),{value:A.value})});
return Y}});
M.parentSignalProxy.childSignalProxies.push(n);K=kxi(M.templateInfo,M.templateInfo.nodeInfoList,n,{eventListenerHost:M.eventListenerHost,getModel:function(){var p={};return Object.assign({},HyJ(M),(p[M.as]=n.model[M.as],p[M.indexAs]=n.model[M.indexAs],p[M.itemsIndexAs]=n.model[M.indexAs],p))},
hasInsertionPoint:M.templateInfo.hasInsertionPoint,thisCtx:M.eventListenerHost,methodInvocationRequirement:iyx,enabledSignal:M.stampingEnabled}).root;q={root:K,children:[],signalProxy:n};K=_.k(K.childNodes);for(var E=K.next();!E.done;E=K.next())q.children.push(E.value);K=(K=M.instances[G+1])?K.children[0]:M;(0,_.$U)((0,_.$U)(M).parentNode).insertBefore(q.root,K);M.instances[G]=q},HyJ=function(M){if((M=M.parentSignalProxy.model)&&!M.hostElement){var q={},G;
for(G in M)M.hasOwnProperty(G)&&(q[G]=M[G]);return q}};
U_.prototype.itemForElement=function(M){var q=this,G=this.instances.find(function(K){return K.children.includes(M)});
if(G)return j_(this.parentSignalProxy.owner,function(){return G.signalProxy.getWithPath([q.as])})};
U_.prototype.indexForElement=function(M){var q=this.instances.findIndex(function(G){return G.children.includes(M)});
return q>=0?q:void 0};
_.Yd.Object.defineProperties(U_.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var M=this;return j_(this.parentSignalProxy.owner,function(){return rP2(M).getWithPath([])})},
set:function(M){jhf(this,M)}},
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}}});
_.Yd.Object.defineProperties(U_,{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",U_);var eZP,$7x;_.xy=new _.$k("STATE_STORE_TOKEN");eZP=new _.$k("SELECT_TOKEN");$7x=new _.$k("DISPATCH_TOKEN");var q1w={getSelectFn:function(){var M;return(M=_.AL().resolve(_.WR(eZP)))!=null?M:HU4},
getDispatchFn:function(){var M;return(M=_.AL().resolve(_.WR($7x)))!=null?M:_.J_().dispatch.bind(_.J_())},
getAppStore:function(){return _.AL().resolve(_.xy)}},eij,MVi=!1;var E9F,xif={traceAllComponents:_.w("web_tracing_all_components"),exportToCsi:_.w("web_tracing_export_to_csi"),enabledSpansArray:_.CD("web_tracing_enabled_spans"),exportToDevTools:_.w("web_tracing_export_to_devtools"),sessionReplayEvents:_.tL("web_tracing_session_replay"),maxBreadcrumbs:_.tL("tel_max_breadcrumbs",0)};E9F=new zPJ;var LRs=function(){};var kVi=void 0;var s6$=function(){};
s6$.prototype.hasAttribute=function(M){if(M==="dir")return!1;if(M==="disable-upgrade"){var q,G;return(G=(q=this.hostElement)==null?void 0:q.hasAttribute("disable-upgrade"))!=null?G:!1}throw Error("Rg`"+M);};
s6$.prototype.attributeChangedCallbackWrapper=function(M,q,G){if(M==="disable-upgrade"&&this.__isUpgradeDisabled&&G===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var K;((K=this.hostElement)!=null?K:this).isConnected&&this.connectedCallback()}else q===G||this.__isReflecting||this.attributeChangedCallback(M,q,G)};
s6$.prototype.getExtraMethodsToForward=function(){for(var M=this,q=[],G=_.k(M3S),K=G.next(),n={};!K.done;n={tagName$jscomp$67:void 0,name$jscomp$629:void 0},K=G.next())n.name$jscomp$629=K.value,K=void 0,n.name$jscomp$629==="_setPendingProperty"?(n.tagName$jscomp$67=this.hostElement.tagName.toLowerCase(),K=function(E){return function(p,y,Y){W4(E.tagName$jscomp$67,p,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return M._setPendingProperty(p,y,Y)}}(n)):K=function(E){return function(){return M[E.name$jscomp$629].apply(M,
_.Ui(_.rW.apply(0,arguments)))}}(n),q.push([n.name$jscomp$629,
K]);return q};
for(var Azy=QhM(BuB((0,_.lM)(s6$))),tVu=["disabled","disable-upgrade"],qmB=(0,_.lM)(function(){}),GGS=new Set(Object.getOwnPropertyNames(qmB.prototype)),o9Y=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Ui(GGS))),wYy=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),M3S=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),KI8=new Set([].concat(_.Ui(wYy),_.Ui(M3S),_.Ui(GGS))),nbS=_.k(KI8),Eb$=nbS.next();!Eb$.done;Eb$=nbS.next())zPw.add(Eb$.value);var a1w={created:function(){goi(this);this.initializeInjection()}};var I14=!1,So=window.ShadyDOM,zTY=["appendChild","insertBefore","removeChild","replaceChild"],xEe=[Node];So&&xEe.push(So.Wrapper);var RTi,f1y,eTi={};var TQ,r4=new Set;var E0i=new Set("context didCallReady is info params signalProxy".split(" ")),kJD="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),pCF="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var NA$=gh({entities:$1y}),kG2=new xz(NA$);var pQB=function(){return _.kA.apply(this,arguments)||this};
_.l(pQB,_.kA);_.Yd.Object.defineProperties(pQB.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return kG2}}});
_.T([_.pT()],pQB);_.zD=[DI.prototype,pQB.prototype];_.mZ={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var M=this,q={};setTimeout(function(){var G;return _.jP((G=M.hostElement)!=null?G:M,"yt-live-chat-add-tooltip-target",q)},0);
this.handler_=q.handler},
detached:function(){if(this.handler_){var M;this.handler_.removeElementFromSupportingTooltips((M=this.hostElement)!=null?M:this)}this.handler_=null}}};_.eo=new _.$k("ICON_MANAGER_TOKEN");var yT$=[48,20,18,16,15,13,12],g0i=new Map,XCy=new Set,aqs=new Set,lqj=new Set,C6w=new Set,o04=new Set,iyD=new Promise(function(M){var q=!1,G=!1,K=!1,n=[],E=function(p){if("detail"in p)if(p=p.detail,p.name==="yt-icons")P6y(p),q=!0;else if(p.name==="yt-sys-icons")P6y(p),G=!0;else{var y;((y=p.name)==null?0:y.includes("yt-sys-icons"))&&p.size!==24&&(P6y(p,!0),n.push(p.size),n.length===yT$.length&&(K=!0))}q&&G&&K&&(window.removeEventListener("iron-iconset-added",E),M())};
window.addEventListener("iron-iconset-added",E)}),LII=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"]]);_.Sp={};_.Sp.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.UX,computeHref_:function(M,q){q=q===void 0?!1:q;if(!M||M.commandExecutorCommand)return null;var G=y$Y(M,q);return q||G!==null?G?_.w("enable_polymer_resin")?_.SM(G).toString():G:null:(_.j1(new _.bj("computeHref was null",this.is,M)),null)},
computeOptionalHref_:function(M){return this.computeHref_(M,!0)},
computeNofollow_:function(M){return M?Msy(M)?"nofollow":null:null},
computeIcon_:function(M){return M&&M.iconType?_.H4(M.iconType):""},
resolveCommand:function(M,q,G){q=q===void 0?{}:q;return _.sE(M,this.hostElement,q,G===void 0?!1:G)}};var WIf,TD;_.YmI={};WIf=null;
TD={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_=vl$(this.viewroot));_.g4(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var M=this;this.unobserve_();if(_.w("kevlar_vimio_use_shared_monitor"))uFs(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 q=[];this.visibilityOptionVisible_&&q.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&q.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&q.push(this.visibilityObserver.observe(this.hostElement,function(){return M.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=q}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){BuY(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 M=_.jX(this.parentNode,function(G){var K,n=(K=G.polymerController)!=null?K:G;return!!n.getVisibilityObserverForChild&&n.getVisibilityObserverForChild()},!0);
if(M){var q;this.localVisibilityObserver_=((q=M.polymerController)!=null?q:M).getVisibilityObserverForChild()}else WIf||(WIf=vl$()),this.localVisibilityObserver_=WIf;return this.localVisibilityObserver_},visibilityCallback:function(M){M?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.w("kevlar_use_vimio_behavior")||(TD={});TD&&!_.w("kevlar_use_vimio_behavior")&&(delete TD.attached,delete TD.detached);_.YmI.YtVisibilityObserverBehavior=[TD];var ATv={};ATv.YtVisualElementBehavior=[_.YmI.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.w("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.w("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var M=this.getScreenLayer&&this.getScreenLayer(),q=this.getVisibilityLogger();q&&q.reportShown(this,void 0,M)}},
onHidden:function(){if(_.w("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.w("kevlar_vimio_use_shared_monitor")){var M=this.getScreenLayer&&this.getScreenLayer(),q=this.getVisibilityLogger();q&&q.reportHidden(this,void 0,M)}},
getVisibilityLogger:function(){return _.w("kevlar_use_vimio_behavior")?_.qY():null},
shouldSkipLogging:function(){if(_.R9("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var M=this.getParentRenderer&&this.getParentRenderer();if(!M)return!1;var q,G=(q=M.polymerController)!=null?q:M;if(!G.data)return!1;M=this.data.trackingParams;M=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:M;var K;q=(K=G.data)==null?void 0:K.trackingParams;var n,E;q=((n=G.data)==null?0:n.loggingDirectives)?(E=G.data)==null?void 0:E.loggingDirectives.trackingParams:q;return M&&q&&M===
q}}];var byy=new Map,Ll;var mLs=function(M){this.layer=M},sF=function(M){return M.layer!==void 0?M.layer:M.parent?sF(M.parent):M.layer=0};var TuF;_.F={};TuF=0;_.F.YtRendererBehavior=[_.Sp.YtComponentBehavior,ATv.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_:_.w("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var M,q;(q=(M=this.monitorScrollElement)!=null?M:this.hostElement)==null||q.removeEventListener("scroll",_.qs(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();JPu(this.hostElement);Cnx(_.lW(),this.hostElement);xp.delete(this.hostElement)},
registerRenderer:function(M){var q;((q=M.polymerController)!=null?q:M).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(M),this.markDirty())},
unregisterRenderer_:function(M){this.useVimio_||(this.childCache_.delete(M),this.markDirty())},
attached:function(){var M=this,q=this.getParentRenderer();if(q){var G,K,n;(K=(G=(n=q.polymerController)!=null?n:q).registerRenderer)==null||K.call(G,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var E,p;(p=(E=this.monitorScrollElement)!=null?E:this.hostElement)==null||p.addEventListener("scroll",_.qs(this,this.onScroll))}_.r8.addJob(function(){U7y(M.hostElement)},8);
G=new mLs(this.screenLayer||void 0);(q=xp.get(q))&&q.layerNode&&(G.parent=q.layerNode);q={};ONw(this.hostElement,(q.isRenderer=!0,q.layerNode=G,q[SIy]=this.data,q))},
getParentRenderer:function(){for(var M=this.hostElement.parentNode,q,G;M&&((q=xp.get(M))==null||!q.isRenderer)&&!((G=M.polymerController)!=null?G:M).isRenderer_;)M=M.parentNode||M.host;return M},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.w("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.fX("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.w("debug_web_ve_data")&&this.data.trackingParams){var M="";try{M=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(G){_.T6(G)}if(M){var q=c2w(M,1);q!==void 0&&(this.hostElement.dataset.veIndex=String(q));M=c2w(M,2);
M!==void 0&&(this.hostElement.dataset.ve=String(M))}}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,_.w("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.yx(this.data.loggingDirectives.trackingParams)),this.visualElement=_.GE(_.nl(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var M=this.data.targetId;_.o9B(_.lW(),M,this.hostElement)}else Cnx(_.lW(),this.hostElement)},
onScroll:function(){var M=Date.now();M-this.lastHandledScroll_<50||(this.lastHandledScroll_=M,this.markDirty())},
markDirty:function(){_.w("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():rPi(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var M=this.getParentRenderer();if(M&&(M=xp.get(M))&&M.layerNode)return sF(M.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Ui(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var M=0;M<this.data.impressionEndpoints.length;M++)this.sendImpression(this.data.impressionEndpoints[M]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(M){M.clickTrackingParams&&delete M.clickTrackingParams;var q,G;(M==null?0:(q=M.commandMetadata)==null?0:(G=q.webCommandMetadata)==null?0:G.sendPost)?_.fx(this.hostElement,[M,{impression:!0}]):_.FH(this.hostElement,[M],this.hostElement)},
logExplicitClick:function(M){var q=_.Cx(this.getScreenLayer());if(q){var G,K=(G=M.polymerController)!=null?G:M;M=K.visualElement;K=K.trackingParams||K.clickTrackingParams;!M&&K&&(M=_.yx(K));M&&_.Z_(q,M)}}}];var dRB={},r1=function(){return _.kA.apply(this,arguments)||this};
_.l(r1,_.kA);r1.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
r1.prototype.onPdgItemBehaviorClick=r1.prototype.onPdgItemBehaviorClick;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],r1.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],r1.prototype,"data",void 0);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],r1.prototype,"onPdgItemBehaviorClick",null);_.T([_.pT()],r1);dRB.YtPdgLiveChatItemBehavior=[r1.prototype,_.F.YtRendererBehavior];var vbd;var htd;_.jp={};_.jp.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var Vf=function(){var M=Ah.apply(this,arguments)||this;M.switchTemplateAtRegistration=!1;return M};
_.l(Vf,Ah);Vf.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||fqe(this),_.lzF(this,"doRender"),this.doRender())};
Vf.prototype.debounceRender=function(){this.templatingFn&&_.B4(this,"doRender",this.doRender)};
Vf.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.T6(Error("ah"))};
Vf.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.T([qB4()],Vf);var t3I=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Rq={},$7D=(Rq[1]={filterString:null,isUnwrappable:null,unwrap:null},Rq[2]={filterString:function(M,q,G){return ec(G)},
isUnwrappable:function(M){return M instanceof Rv},
unwrap:function(M){return eM(M)}},Rq[3]={filterString:function(M,q,G){return t3I.test(G)?G:mL.toString()},
isUnwrappable:function(M){return ZC(M)},
unwrap:function(M){return _.by(M)}},Rq[4]={filterString:function(){return mL.toString()},
isUnwrappable:function(M){return M instanceof gW},
unwrap:function(M){return _.Iv(M).toString()}},Rq[5]={filterString:function(M,q,G){return G},
isUnwrappable:function(M){return typeof M==="string"},
unwrap:function(M){return M.toString()}},Rq[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(M){return M instanceof _.qX},
unwrap:function(M){return Kv(M)}},Rq[8]={filterString:function(M,q,G){G=String(G).toLowerCase();
return gIs(M,q,G)?G:"zClosurez"},
isUnwrappable:null,unwrap:null},Rq[10]={filterString:null,isUnwrappable:null,unwrap:null},Rq);YI[Hm["default"]]=M3H;var qmY=[];(function(){var M=pX;pX=function(q){M==null||M(q);d7(function(){for(var G=0;G<q.length;G++)GGH(q[G])})}})();var OfP=function(){var M=_.kA.apply(this,arguments)||this;M.hasUnmounted=!1;return M};
_.l(OfP,_.kA);_.N=OfP.prototype;_.N.beforeRegister=function(){var M=this.doIdomRender;this.templatingFn?_.T6(Error("$g")):(this.templatingFn=M,this.switchTemplateAtRegistration=!0,eZj(this))};
_.N.attached=function(){};
_.N.detached=function(){GGH(this.hostElement)};
_.N.renderIdom=function(){throw Error("ch");};
_.N.doIdomRender=function(){var M=this;oej(this.hostElement,function(){M.renderIdom()})};
_.T([_.pT()],OfP);var wQ9=[Vf.prototype,OfP.prototype];var CKJ,a99=function(){return CKJ!==void 0?CKJ:CKJ=document.createElement("template")};
document.head.appendChild(a99().content);var obS;var l9x,XQS=function(){return l9x!==void 0?l9x:l9x=document.createElement("template")};
document.head.appendChild(XQS().content);var PK$;var ifI=document.head,cT$=ifI.appendChild,gbJ;if(PK$===void 0){var BAJ=document.createElement("template");_.X(BAJ,"\x3c!--css-build:shady--\x3e");BAJ.content.insertBefore(XQS().content.cloneNode(!0),BAJ.content.firstChild);PK$=BAJ}gbJ=PK$;cT$.call(ifI,gbJ.content);var Q6p,I9$=function(){return Q6p!==void 0?Q6p:Q6p=document.createElement("template")};
document.head.appendChild(I9$().content);var DRv;var uCp=document.head,JTS=uCp.appendChild,ZfM;if(DRv===void 0){var bfS=document.createElement("template");_.X(bfS,"\x3c!--css-build:shady--\x3e");bfS.content.insertBefore(I9$().content.cloneNode(!0),bfS.content.firstChild);DRv=bfS}ZfM=DRv;JTS.call(uCp,ZfM.content);var URv=document.head,xRp=URv.appendChild,ztS;if(obS===void 0){var mR9=document.createElement("template");_.X(mR9,"\x3c!--css-build:shady--\x3e");mR9.content.insertBefore(a99().content.cloneNode(!0),mR9.content.firstChild);obS=mR9}ztS=obS;xRp.call(URv,ztS.content);var Smf,TA8=function(){return Smf!==void 0?Smf:Smf=document.createElement("template")};
document.head.appendChild(TA8().content);var rTB;_.Qx=new _.$k("DARK_THEME_TOKEN");var j6H=new _.e0("accessibilityProperties");var rTY=new _.e0("layoutProperties");var V3Y=new _.e0("imageType");var j6S={};if("ytAttributedStringLinkHoverColor"in j6S)throw Error("fh`ytAttributedStringLinkHoverColor");(function(M,q){j6S[M]="value"in q&&"unit"in q?pQY(M,q):function(G){try{return q(G)}catch(K){throw Error("dh`"+M+"`"+K.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var V3B=function(M){var q=this;this.holdTime=M===void 0?500:M;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(G){var K=new CustomEvent("LONG_PRESS"),n;(n=G.changedTouches[0].target)==null||n.dispatchEvent(K)};
this.ontouchstart=function(G){q.longPressTimeout=_.MK(_.r8,function(){q.onlongpress(G);q.longPressOccurred=!0},q.holdTime)};
this.ontouchmove=function(){_.r8.cancelJob(q.longPressTimeout);q.longPressTimeout=NaN;q.longPressOccurred=!1;q.moveOccurred=!0};
this.ontouchend=function(G){if(q.longPressTimeout&&!q.longPressOccurred&&!q.moveOccurred){var K;(K=G.changedTouches[0].target)==null||K.dispatchEvent(new Event("click"))}_.r8.cancelJob(q.longPressTimeout);q.longPressTimeout=NaN;q.longPressOccurred=!1;q.moveOccurred=!1}};var ify=function(M,q){V3B.call(this,q);var G=this;this.callback=M;this.onlongpress=function(K){var n;(n=G.callback)==null||n.call(G,K)}};
_.l(ify,V3B);var cTs=function(M,q){var G=Object.assign({},q);M=_.k(new Map([["ontouchstart",M.ontouchstart],["ontouchend",M.ontouchend],["ontouchmove",M.ontouchmove]]));for(var K=M.next(),n={};!K.done;n={eventName$jscomp$103:void 0,eventHandler$jscomp$2:void 0},K=M.next()){var E=_.k(K.value);K=E.next().value;E=E.next().value;n.eventName$jscomp$103=K;n.eventHandler$jscomp$2=E;q[n.eventName$jscomp$103]=function(p){return function(y){var Y;(Y=G[p.eventName$jscomp$103])==null||Y.call(G,y);(0,p.eventHandler$jscomp$2)(y)}}(n)}};_.vR=new _.$k("COMMAND_HANDLER_TOKEN");var LIy=new _.e0("parallelCommand");var ATy=new _.e0("performOnceCommand");var WIu=new _.e0("serialCommand");var dRY=void 0;var Rt2=function(){this.data=[];this.consumer=null};
Rt2.prototype.push=function(M){this.consumer?this.consumer(M):this.data.push(M)};var DT={};_.lQ(DT,void 0,"sgPmTd");_.lQ(null,void 0,"jypsq");_.lQ(null,void 0,"mWiOof");var Uvs=new Rt2;var obH=[zGv,maJ,SA8,r9p,TW$,xad,jvf,VMS];var Smu=new _.e0("bracketTextDecorator");var g7=new _.e0("highlightTextDecorator");_.Dg=new _.$k("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var bfH=function(){},f9d;
(f9d=window.requestIdleCallback)==null||f9d.bind(window);var xRy={calledOnce:!1,state:"visible"},URy={calledOnce:!1,state:"hidden"};var FI8=new _.$k("ICON_WIZ_COMPONENT_TOKEN");_.np=_.U(function(M){var q=M.icon;var G=M.active;var K=M.className;var n=M.style;var E=M.dataSelected;var p=M.dataDisabled;var y=M.role;var Y=M.animateIcon;var A=M.themeOverride;var v=M.ariaHidden;var h=M.ariaExpanded;var t=M.ariaLabel;var O=M.tabindex;var a=M.id;var g=M.size;var D=M.iconFilter;var J=M.gradientColor;var Z=M.onKeydown;return _.W(_.d,{cond:q,then:function(){var V=_.AL().resolve(FI8);return _.W(V,{icon:q,dataSelected:E,dataDisabled:p,animateIcon:Y,themeOverride:A,ariaExpanded:h,tabindex:O,
id:a,active:G,size:g,role:y,className:K,ariaHidden:v,ariaLabel:t,style:function(){return n!=null&&n()||g==null||!g()?n==null?void 0:n():"width: "+(g==null?void 0:g())+"px;height: "+((g==null?void 0:g())+"px;")},
iconFilter:D,gradientColor:J,onKeydown:Z})}})},"k");
_.np.idomCompat={callbacks:{onKeydown:!0}};var pqj=window.devicePixelRatio||1;var WAF=new Map([["yt_outline_bag_black_24","bag"]]);var fV=function(M){var q=this;this.margin=.1;this.whenInViewportWithMargin=M;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){q.requestScan()});
window.addEventListener("touchend",function(){q.requestScan()});
window.addEventListener("updateui",function(){q.requestScan()});
var G=new _.qA((0,_.Ju)(this.requestScan,this),100);window.addEventListener("scroll",function(){G.fire()},!0);
window.addEventListener("resize",(0,_.Ju)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){q.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.Ju)(this.requestScan,this))};
fV.prototype.observe=function(M){this.observationTargets.includes(M)||this.observationTargets.push(M)};
fV.prototype.unobserve=function(M){this.observationTargets=this.observationTargets.filter(function(q){return q!==M})};
fV.prototype.requestScan=function(){var M=this;this.scanRequested||(d7(function(){HfS(M)}),this.scanRequested=!0)};
var HfS=function(M){var q=(1+M.margin)*(document.documentElement.clientHeight||window.innerHeight);M.observationTargets=M.observationTargets.filter(function(G){var K=G.getBoundingClientRect();(K=q>K.top&&!!K.height)&&M.whenInViewportWithMargin(G);return!K&&G.parentNode});
M.scanRequested=!1};
fV.prototype.disconnect=function(){this.observationTargets=[]};var et$,s79;et$=_.k(_.lQ(t7y(),void 0,"O3X2wd"));_.$Rd=et$.next().value;s79=et$.next().value;window.addEventListener("resize",function(){s79(t7y())});var M7P={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},qnd=void 0,GBl=window.innerWidth,KAx=window.innerHeight;window.addEventListener("resize",function(){qnd=void 0});var nOf;if("IntersectionObserver"in window)nOf=CkH();else{if(qnd===void 0){var EO2;EO2="matchMedia"in window?window.matchMedia(M7P.landscape+","+M7P.portrait).matches:void 0;qnd=EO2!==void 0?EO2:GBl>=930&&KAx>=550||GBl>=550&&KAx>=930}nOf=qnd?{observe:function(M){d7(function(){var q;(q=M.onViewportEntered)==null||q.call(M)})},
unobserve:function(){}}:new fV(function(M){d7(function(){var q;
(q=M.onViewportEntered)==null||q.call(M)})})}var OQy=nOf;var NR8=_.U(function(M){var q=!1,G=_.pI("img",function(K){_.m_(function(){q=!0;K.onload=null})});
_.zL(function(){var K,n=(K=M.data)==null?void 0:K.call(M),E,p=(E=M.getSrc)==null?void 0:E.call(M).cb,y;K=(y=M.config)==null?void 0:y.call(M);if(y=G.value)if(E=function(A,v){if(!q)return p?p(A,v):A},l3s(y,K),_.w("web_image_dont_reload_same_src")&&oOH(y,n,E))_.w("web_image_dont_reload_same_src_simulate_load")&&y.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var Y;a3e(y,n||null,E,K,(Y=M.lazy)==null?void 0:Y.call(M))}},"zS0jKb");
return _.W("img",{el:G})},"m");
NR8.idomCompat=!0;_.Jj=_.U(function(M){var q=function(){var G,K=M.data(),n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R,se,yY,d$,cy,t4,ay,bH,iH,oI,r9;var X2={contentMode:(n=M.contentMode)==null?void 0:n.call(M),loadedClass:(E=M.loadedClass)==null?void 0:E.call(M),isPreloaded:(p=M.isPreloaded)==null?void 0:p.call(M),notifyOnLoaded:(y=M.notifyOnLoaded)==null?void 0:y.call(M),notifyOnUnloaded:(Y=M.notifyOnUnloaded)==null?void 0:Y.call(M),preferredThumbnail:(A=M.preferredThumbnail)==null?void 0:A.call(M),preserveHeight:(v=M.preserveHeight)==
null?void 0:v.call(M),preserveWidth:(h=M.preserveWidth)==null?void 0:h.call(M),objectPosition:(t=M.objectPosition)==null?void 0:t.call(M),targetWidth:(O=M.targetWidth)==null?void 0:O.call(M),targetHeight:(a=M.targetHeight)==null?void 0:a.call(M),shouldShowPlaceholder:(g=M.shouldShowPlaceholder)==null?void 0:g.call(M),useWidth:(D=M.useWidth)==null?void 0:D.call(M),isToggled:(J=M.isToggled)==null?void 0:J.call(M),alt:(Z=M.alt)==null?void 0:Z.call(M),className:(V=M.className)==null?void 0:V.call(M),
onerror:M.onerror,onload:M.onload,style$:((S=M.style$)==null?void 0:S.call(M))||((m=M.style)==null?void 0:m.call(M)),color:(R=M.color)==null?void 0:R.call(M),width:(se=M.width)==null?void 0:se.call(M),height:(yY=M.height)==null?void 0:yY.call(M),"aria-hidden$":(oI=(d$=M["aria-hidden$"])==null?void 0:d$.call(M))!=null?oI:(cy=M.ariaHidden)==null?void 0:cy.call(M),draggable:(t4=M.draggable)==null?void 0:t4.call(M),"data-disabled$":(r9=(ay=M["data-disabled$"])==null?void 0:ay.call(M))!=null?r9:(bH=M.dataDisabled)==
null?void 0:bH.call(M),size:(iH=M.size)==null?void 0:iH.call(M)};return iQs(K,X2,(G=M.hideOn404)==null?void 0:G.call(M))};
return _.W(_.Ub,null,_.W(_.J3,{when:function(){var G;return((G=q())==null?void 0:G.type)==="image"}},function(){return _.W(NR8,{data:function(){return q().image},
getSrc:{cb:function(G,K){var n=q().image.sources,E=q().config.isPreloaded,p=q().config.useWidth,y=q().config.targetWidth,Y=q().config.targetHeight,A=q().config.preferredThumbnail;return _.yI$(K,n,E,p,y,Y,A)||""}},
config:function(){var G=q().config,K;for(K in G)G[K]===void 0&&delete G[K];return G},
lazy:M.renderLazy})}),_.W(_.J3,{when:function(){var G;
return((G=q())==null?void 0:G.type)==="icon"}},function(){return _.W(_.np,{icon:function(){return q().iconName},
role:function(){return q().config.role},
className:function(){return q().config.className},
style:function(){return q().config.style$+";width: "+(q().config.width+"px;height: ")+(q().config.height+"px;color: ")+(q().config.color+";")},
ariaLabel:function(){return q().config["aria-label$"]},
ariaHidden:function(){return q().config["aria-hidden$"]},
dataDisabled:function(){return q().config["data-disabled$"]},
active:function(){return q().config.isToggled},
size:function(){return q().config.size}})}))},"n");
_.Jj.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var kB2=function(M){return function(q){return _.W(zVD,null,function(){var G=q.data(),K=_.TL(q.config);return _.W(hVy,null,function(){return void M(G,K)})})}}(I3$),BRD=_.U(function(M){var q=function(n){var E,p=_.bm(function(O){E=S_(function(){for(var a=_.k(h()),g=a.next();!g.done;g=a.next()){g=Ddy(g.value);
g=typeof g==="string"?document.createTextNode(g):g;if(!(g instanceof Node)){a=new _.bj("Part is not a node",g,typeof g);_.T6(a);break}O.appendChild(g)}})});
var y=_.w("web_wiz_attributed_string_skip_empty")?n:UE(function(){return f94(n())},{isEqual:gOy});
var Y=_.bg(M.config),A=function(){var O,a=y();return!((O=Y())==null||!O.ariaLabel)||!(a.commandRuns&&a.commandRuns.length!==0||a.paragraphStyleRuns&&a.paragraphStyleRuns.length!==0)},v=UE(Y,{isEqual:JIF}),h=function(){var O=Rti(y(),v());
HfH(O,v());return y().content?GBF(y().content,O).parts:[]},t=!0;
_.zL(function(){y();v();if(t)t=!1;else{var O=h();Promise.resolve().then(function(){var a=p.value;if(a){a.innerText="";var g;(g=E)==null||g();E=_.z_(a,function(){return _.W(uki,{parts:O})},"o")}})}},"S2CIIe");
return _.W("span",{el:p,class:function(){return y()&&DRy(y(),Y())},
dir:function(){var O;return((O=Y())==null?0:O.userInput)?"auto":void 0},
"aria-label":function(){var O;return A()?(O=Y())==null?void 0:O.ariaLabel:void 0},
role:function(){return A()?"text":void 0}})},G=_.w("web_wiz_attributed_string_skip_empty")?UE(function(){var n,E=(n=M.text)==null?void 0:n.call(M);
if(E)return n=f94(E),(n==null?0:n.content)?n:void 0},{isEqual:gOy}):M.text,K;
return((K=M.config)==null?0:K.renderedFromFormattedString)?q(G):_.W(_.d,{cond:G,then:q})},"q");
BRD.idomCompat=!0;_.Ft=_.U(function(M){var q=_.bg(M.text),G=ZQj(M);M.renderedFromFormattedString!==void 0&&(G.renderedFromFormattedString=!0);return _.w("attr_string_reactive")?_.W(BRD,{text:q,config:G}):_.W(_.d,{cond:function(){var K;return q()&&((K=f94(q()))==null?void 0:K.content)},
then:function(){return _.W(kB2,{data:M.text,config:G})},
debugInstance:"Apcuac"})},"r");
_.Ft.idomCompat=!0;var TRj="";SUy({beforeVisit:function(M){M.type.TAG_NAME&&(TRj=M.type.TAG_NAME)},
afterRender:function(M,q){var G;TRj=(G=q==null?void 0:q.type)!=null?G:""},
didPatch:function(){TRj=""}});var bQD=function(M,q,G){q=q===void 0?"unknown":q;G=G===void 0?{}:G;_.bj.call(this,M+" ("+q+")",Object.assign({},{name:"YtWcwError",tagName:q},G));Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(bQD,_.bj);_.mY=new WeakMap;_.zE=!1;var SnY,rIF,mde;_.Hz=Symbol("hh");_.xj=Symbol("ih");SnY=Symbol("jh");rIF=new Set(Object.getOwnPropertyNames(Element.prototype));mde=Symbol("kh");var pqP=_.U(function(M){return _.W("yt-attributed-string",{"aria-label":M.ariaLabel,hidden:M.hidden,id:M.id,class:M.className,"force-default-style":M.forceDefaultStyle},_.W(_.Ft,{text:M.data,ariaLabel:M.ariaLabel,ellipsisTruncate:M.ellipsisTruncate,isOverlay:M.isOverlay,linkInheritColor:M.linkInheritColor,noPreWrap:M.noPreWrap,noWrap:M.noWrap,userInput:M.userInput,noEndpoints:M.noEndpoints,headerRuns:M.headerRuns,isHeadline:M.isHeadline}))},"s");
_.w("web_wiz_attributed_string")&&_.S5(pqP,"yt-attributed-string",{props:{ariaHidden:_.Hz,ariaLabel:_.Hz,className:_.Hz,ellipsisTruncate:_.Hz,isOverlay:_.Hz,linkInheritColor:_.Hz,noEndpoints:_.Hz,noStyleRuns:_.Hz,noLinkColor:_.Hz,noPreWrap:_.Hz,noWrap:_.Hz,skipOnClick:_.Hz,userInput:_.Hz,headerRuns:_.Hz,isHeadline:_.Hz,id:_.Hz,data:_.Hz,hidden:_.Hz,forceDefaultStyle:_.Hz,text:_.xj,disableUpgrade:_.xj,disable:_.xj,slot:_.xj}});var ep=function(){return _.Q.apply(this,arguments)||this};
_.l(ep,_.Q);ep.prototype.renderIdom=function(){this.data&&!this.disable&&(this.config={ariaLabel:this.hostElement.ariaLabel,ellipsisTruncate:this.ellipsisTruncate,isOverlay:this.isOverlay,linkInheritColor:this.linkInheritColor,noPreWrap:this.noPreWrap,noWrap:this.noWrap,userInput:this.userInput,noEndpoints:this.noEndpoints,headerRuns:this.headerRuns},I3$(this.data,this.config))};
_.T([_.P(wQ9),_.r("design:type",Object)],ep.prototype,"ytIdomTemplatingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ep.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ep.prototype,"ariaLabel",void 0);_.T([_.B(),_.r("design:type",Boolean)],ep.prototype,"disable",void 0);_.T([_.B(),_.r("design:type",Boolean)],ep.prototype,"ellipsisTruncate",void 0);_.T([_.B(),_.r("design:type",Boolean)],ep.prototype,"isOverlay",void 0);
_.T([_.B(),_.r("design:type",Boolean)],ep.prototype,"linkInheritColor",void 0);_.T([_.B(),_.r("design:type",Boolean)],ep.prototype,"noPreWrap",void 0);_.T([_.B(),_.r("design:type",Boolean)],ep.prototype,"noWrap",void 0);_.T([_.B(),_.r("design:type",Boolean)],ep.prototype,"userInput",void 0);_.T([_.B(),_.r("design:type",Boolean)],ep.prototype,"noEndpoints",void 0);_.T([_.B(),_.r("design:type",Array)],ep.prototype,"headerRuns",void 0);
_.T([_.aO({is:"yt-attributed-string",disableElementRegistration:!0})],ep);
_.w("web_wiz_attributed_string")||_.z(ep,"yt-attributed-string",function(){if(rTB===void 0){var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
M.content.insertBefore(TA8().content.cloneNode(!0),M.content.firstChild);rTB=M}M=rTB;return M},{mode:2});var yI9,LAv,eaw;yI9=function(){this.firstThumbnailLoaded=!1};
_.Ynf=function(){LAv||(LAv=new yI9);return LAv};
eaw=function(M){var q=_.Ynf();q.firstThumbnailLoaded||(q.firstThumbnailLoaded=!0,_.oJ("ftl",M))};
yI9.prototype.reset=function(){this.firstThumbnailLoaded=!1};var V7y=0,HQe=new WeakMap,f3e=0,j5=new Set;var WAl,AIf=function(){return WAl!==void 0?WAl:WAl=document.createElement("template")};
document.head.appendChild(AIf().content);var ddp;var qk$,Kfu,$y;_.fl=_.Kj.caches;$y=function(){};
$y.prototype.open=function(M){return _.fl.open(vO$(M))};
$y.prototype.has=function(M){return _.fl.has(vO$(M))};
$y.prototype.delete=function(M){return _.fl.delete(vO$(M))};
$y.prototype.match=function(M,q){var G=this,K,n,E,p,y,Y;return _.L(function(A){switch(A.nextAddress){case 1:return A.yield(G.keys(),2);case 2:K=A.yieldResult,n=_.k(K),E=n.next();case 3:if(E.done){A.jumpTo(5);break}p=E.value;return A.yield(G.open(p),6);case 6:return y=A.yieldResult,A.yield(y.match(M,q),7);case 7:if(Y=A.yieldResult)return A.return(Y);E=n.next();A.jumpTo(3);break;case 5:return A.return()}})};
var nGy=function(){};
_.l(nGy,$y);var vO$=function(M){if(M.includes(":"))throw Error("nh`"+M);return M+":"+_.JL("CacheStorage get")};
nGy.prototype.keys=function(){var M,q,G,K,n,E,p,y,Y;return _.L(function(A){if(A.nextAddress==1)return M=[],q=_.JL("CacheStorage keys"),A.yield(_.fl.keys(),2);G=A.yieldResult;K=_.k(G);for(n=K.next();!n.done;n=K.next())E=n.value,p=_.Mae(E),y=p.originalName,Y=p.datasyncId,Y===q&&M.push(y);return A.return(M)})};var sH=function(){var M=_.Q.apply(this,arguments)||this;M.objectURL=null;M.loadTime=Infinity;return M};
_.l(sH,_.Q);_.N=sH.prototype;_.N.renderIdom=function(){soF(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&Xqs(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.N.objectFitToContentMode=function(M){switch(M){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.N.logThumbnailFailureVe=function(){var M=_.$m(197497);_.oQ(_.nl(),M);var q=_.Cx();q&&M&&q&&_.uO(q,[M])};
_.N.loadImageFromCacheIfExists=function(M){var q=this,G=M.target;(G==null?0:G.src)&&NCj(G.src).then(function(K){q.objectURL=_.T3(K).toString();q.setSrc(G,q.objectURL)}).catch(function(){})};
_.N.onError=function(M){var q=this;if(_.w("web_use_cache_for_image_fallback")){var G=M.target;G&&NCj(G.src).then(function(K){q.objectURL=_.T3(K).toString();q.setSrc(G,q.objectURL)}).catch(function(){_.w("kevlar_woffle_log_thumbnail_failure_ve")&&q.logThumbnailFailureVe();
_.w("kevlar_woffle_fallback_image")&&q.setSrc(G,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.N.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.N.setConfig=function(){var M=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(q){M.loadImageFromCacheIfExists(q);M.revokeObjectURL();$ds(M.hostElement)},
onerror:function(q){M.onError(q)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.w("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.N.setSrc=function(M,q){q&&(M.src=q)};
_.T([_.P(wQ9),_.r("design:type",Object)],sH.prototype,"ytIdomTemplatingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sH.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],sH.prototype,"alt",void 0);_.T([_.B(),_.r("design:type",Boolean)],sH.prototype,"ftlEligible",void 0);_.T([_.B(),_.r("design:type",Number)],sH.prototype,"height",void 0);_.T([_.B(),_.r("design:type",Boolean)],sH.prototype,"notifyOnLoaded",void 0);
_.T([_.B(),_.r("design:type",Boolean)],sH.prototype,"notifyOnUnloaded",void 0);_.T([_.B(),_.r("design:type",String)],sH.prototype,"objectFit",void 0);_.T([_.B(),_.r("design:type",String)],sH.prototype,"objectPosition",void 0);_.T([_.B(),_.r("design:type",String)],sH.prototype,"preferredThumbnail",void 0);_.T([_.B(),_.r("design:type",Boolean)],sH.prototype,"preserveHeight",void 0);_.T([_.B(),_.r("design:type",Boolean)],sH.prototype,"preserveWidth",void 0);
_.T([_.B({value:!0}),_.r("design:type",Boolean)],sH.prototype,"useWidth",void 0);_.T([_.B({value:function(){return!_.fX("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.r("design:type",Boolean)],sH.prototype,"shouldRenderLazy",void 0);_.T([_.B(),_.r("design:type",Number)],sH.prototype,"width",void 0);_.T([_.aO({is:"yt-image",disableElementRegistration:!0})],sH);
_.z(sH,"yt-image",function(){if(ddp===void 0){var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);M.content.insertBefore(AIf().content.cloneNode(!0),M.content.firstChild);
ddp=M}M=ddp;return M},{mode:2});var Mt=function(){return _.Q.apply(this,arguments)||this};
_.l(Mt,_.Q);Mt.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var M=_.aM(this.data.onVisibleCommand);M&&this.ytComponentBehavior.resolveCommand(M)}};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Mt.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.jp.YtVisibilityBehavior),_.r("design:type",Object)],Mt.prototype,"ytVisibilityBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Mt.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],Mt);
_.z(Mt,"yt-bumper-user-edu-content-view-model",function(){if(htd===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;vbd===void 0&&(vbd=document.createElement("template"));var K=vbd;G.call(q,K.content.cloneNode(!0),M.content.firstChild);htd=M}M=htd;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var haM;var t7p,OQI=function(){if(t7p!==void 0)return t7p;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-progress-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_progress_flow_view_model.yt.creator.goal.progress.flow.view.model.css.js--\x3e<div id="header" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="avatar-images" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="creator-thumbnail" data="[[creatorGoalState.authorPhoto]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <yt-image id="goal-icon" data="[[targetIconThemedImage]]" height="60" preserve-height="" preserve-width="" width="60" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n  </div>\n  <div id="countdown-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-attributed-string id="goal-timer-description" data="[[creatorGoalState.goalHeadlineText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n    <template is="dom-if" if="[[shouldShowCountdown]]" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <yt-countdown class-name="[[is]] countdown" target-timestamp="[[endTimestamp]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-countdown>\n    </template>\n  </div>\n  <yt-attributed-string id="goal-subheader-info" data="[[creatorGoalState.goalSubheaderText]]" hidden$="[[isGoalActive]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-image id="background-image" data="[[creatorGoalState.goalHeaderBackgroundImage]]" height="100" width="100" class="style-scope yt-creator-goal-progress-flow-view-model">\n  </yt-image>\n</div>\n<div id="content" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <yt-attributed-string id="goal-target" data="[[creatorGoalState.goalTargetText]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <yt-attributed-string id="goal-description" data="[[creatorGoalState.goalDescription]]" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-attributed-string>\n  <div id="goal-progress-info" class="style-scope yt-creator-goal-progress-flow-view-model">\n    <yt-image id="sc-tier-image" data="[[creatorGoalState.superChatTierImage]]" height="32" preserve-height="" preserve-width="" width="32" class="style-scope yt-creator-goal-progress-flow-view-model"></yt-image>\n    <div id="goal-numbers" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="current-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model">[[creatorGoalState.currentGoalCount]] </div>\n      <div id="goal-number-separator" class="style-scope yt-creator-goal-progress-flow-view-model">/ </div>\n      <div id="target-goal-number" class="style-scope yt-creator-goal-progress-flow-view-model"> [[creatorGoalState.totalGoalCount]]</div>\n    </div>\n    <div id="progress-bar-container" class="style-scope yt-creator-goal-progress-flow-view-model">\n      <div id="progress-bar-progress" class="style-scope yt-creator-goal-progress-flow-view-model">\n      </div>\n    </div>\n  </div>\n</div>\n<div id="footer" class="style-scope yt-creator-goal-progress-flow-view-model">\n  <div id="progress-button" class="style-scope yt-creator-goal-progress-flow-view-model"></div>\n</div>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;haM===void 0&&(haM=document.createElement("template"));var K=haM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return t7p=M};var wqS;_.qt={};wqS=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"]);_.qt.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var M=this.getContext_();return M?M.getTaskManager():_.r8},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var M=_.jP(this.hostElement,"yt-get-context-provider",{});M.detail&&M.detail.contextProvider?this.cachedProviderNode_=M.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return wqS.has(this.hostElement.localName)},
getNetworkManager:function(){var M=this.getContext_();if(M)return M.getNetworkManager()}};var Wfy,CkS,oOS,a3M;_.Gz=function(M){var q=CkS.get(M);if(q&&(q=q.pop()))return a3M++,q;oOS++;try{var G=document.createElement(M)}catch(K){throw new _.bj("ElementPool failed to create element",M,K.message);}return G};
Wfy=function(M){var q=M.is;if(q){var G=CkS.get(q);G||(G=[],CkS.set(q,G));var K=_.R9("ELEMENT_POOL_CONFIG")||{};G.length>=(K[q]!==void 0?K[q]:_.R9("ELEMENT_POOL_DEFAULT_CAP",0))||G.push(M)}else _.j1(new _.bj("Element pool should only handle custom elements:",M.nodeName))};
CkS=new Map;oOS=0;a3M=0;var Fg=new WeakMap,Yky=new WeakMap;var Xq$;_.K3=function(M,q,G){G=G===void 0?_.AM():G;this.JSC$13892_defaultPriority=M;this.signal=q;this.scheduler=G;this.nextJobDescriptor=0;this.JSC$13892_parkedJobs=[];this.scheduledJobs=new Map};
_.n3=function(M,q){if(q){var G=_.M5();M.signal&&!_.q5(G,M.signal)?(G.addListener(M.signal,function(){M.processSignal()}),M.JSC$13892_parkedJobs.push({job:q,
priority:void 0})):l3$(M,q)}};
Xq$=function(M,q){if(q!==M.JSC$13892_defaultPriority){M.JSC$13892_defaultPriority=q;for(var G=_.k(M.scheduledJobs.values()),K=G.next();!K.done;K=G.next())K=K.value,M.scheduler.cancelJob(K.jobId),K.jobId=M.scheduler.addJob(K.jobWrapper,q)}};
_.K3.prototype.flushJobs=function(){Xq$(this,10);this.processSignal()};
_.K3.prototype.cancel=function(){for(var M=_.k(this.scheduledJobs),q=M.next();!q.done;q=M.next()){var G=_.k(q.value);q=G.next().value;G=G.next().value;this.scheduler.cancelJob(G.jobId);this.scheduledJobs.delete(q)}this.JSC$13892_parkedJobs=[]};
_.K3.prototype.processSignal=function(){for(var M=_.k(this.JSC$13892_parkedJobs),q=M.next();!q.done;q=M.next())q=q.value,l3$(this,q.job,q.priority);this.JSC$13892_parkedJobs=[]};
var l3$=function(M,q,G){G=G||M.JSC$13892_defaultPriority;if(G===10)Vx(q);else{var K=M.nextJobDescriptor++,n=function(){q();M.scheduledJobs.delete(K)},E=M.scheduler.addJob(n,G);
M.scheduledJobs.set(K,{jobWrapper:n,jobId:E,priority:G})}};var PkI;_.EH={};PkI={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.EH.YtRendererstamperBehavior=[_.qt.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 M in this.stampDom){var q=this.stampDom[M];q&&q.id&&this.addReactiveSchema({type:"observe",method:{methodName:p1D(q.id),args:[{type:"wildcard",path:M}]}})}else{(M=(this.constructor.generatedFrom||this).observers)||(M=[]);for(q in this.stampDom){var G=this.stampDom[q];G&&G.id&&M.push(p1D(G.id)+"("+q+".*)")}this.constructor.generatedFrom.observers=M}},
addStampDomObserverFns_:function(){for(var M in this.stampDom){var q=this.stampDom[M];q.id?(this[p1D(q.id)]=this.rendererStamperObserver_.bind(this,M,q.id),this.hasDataPath_[M]=!1):(q=new _.bj("Bad rendererstamper config",this.is+":"+M),_.T6(q))}},
rendererStamperObserver_:function(M,q,G){if(G.path==M){if(G.value===void 0&&!this.hasDataPath_[M])return;this.hasDataPath_[M]=G.value!==void 0}this.rendererStamperApplyChangeRecord_(M,q,G)},
rendererStamperApplyChangeRecord_:function(M,q,G){var K=this.renderJobsMap_[q],n=null;M==G.path?(G=G.value,_.TF(G)||(G=G===void 0||G===null?[]:[G]),M=this.stampDom[M],M.mapping&&(n=this.stampDomArray_.bind(this,G,q,M.mapping,M.reuseComponents,M.events,M.stamperStableList)),K&&K.cancel(),G=M.usePageScheduler?this.getTaskManager():void 0,K||M.initialRenderPriority==void 0)?M.renderPriority==void 0||K||(K=new _.K3(M.renderPriority,M.waitForSignal,G),this.renderJobsMap_[q]=K):(K=new _.K3(M.initialRenderPriority,
M.waitForSignal,G),this.renderJobsMap_[q]=K,n=function(E,p){E();Xq$(p,10)}.bind(this,n,K)):n=M+".splices"==G.path?this.stampDomArraySplices_.bind(this,M,q,G.value):this.forwardRendererStamperChanges_.bind(this,M,q,G);
K?_.n3(K,n):n()},
forwardRendererStamperChanges_:function(M,q,G){var K=G.path.slice(M.length+1),n=this.getStampContainer_(q),E=K.indexOf("."),p=K.substring(0,E),y=!1,Y=0,A=parseInt(p,0);if(p[0]=="#"){y=parseInt(p.substring(1),0);A=this.get(M);var v=this.get([M,p]);A[y]==v?Y=y:Y=A.indexOf(v);y=!0}else isNaN(A)||(Y=A,y=!0);y&&(K=K.substring(p.length+1),E=K.indexOf("."));p=this.polymerDom(n).children[Y];var h;if(n=(h=p==null?void 0:p.polymerController)!=null?h:p)K="data"+K.slice(E),typeof n.notifyPath!=="function"?_.j1(new _.bj("notifyPath missing",
this.is+": "+M+", "+q)):G.value?n.notifyPath(K,G.value):n.notifyPath(K)},
stampDomArraySplices_:function(M,q,G){if(G&&G.indexSplices){var K=this.getStampContainer_(q);if(K){for(var n=this.polymerDom(K),E=LfH(this.stampDom[M].reuseComponents),p=G.indexSplices.length,y=0;y<p;y++){for(var Y=G.indexSplices[y],A=n.children[Y.index],v=Y.removed.length;v>0;v--)A&&A.parentElement&&(this.polymerDom(A.parentElement).removeChild(A),E&&Wfy(A),A=n.children[Y.index]);v=this.stampDom[M].mapping;for(var h=Y.index+Y.addedCount,t=document.createDocumentFragment(),O=E,a=Y.index;a<h;a++){var g=
Y.object[a],D=k8D(v,g);if(D){var J=v[D];g=g[D];D=this.getComponentName_(J,g);var Z=A?Fg.has(A):!1;O&&A&&A.is==D&&Z?(D=A,this.telemetry_.reuse++,A=A.nextElementSibling):O&&A&&Z?(D=this.createComponent_(J,g,E),Z=this.polymerDom(A).nextElementSibling,n.insertBefore(D,Z),dZF(this.is,n,A,E),A=Z):(O=!1,D=this.createComponent_(J,g,E),t.appendChild(D));this.deferRenderStamperBinding_(D,J,g)}else J=new _.bj("Unimplemented type",M,q,K.tagName,Object.keys(g)[0]),_.T6(J)}n.insertBefore(t,A)}this.flushRenderStamperComponentBindings_();
this.stampDom[M].events&&_.jP(this.hostElement,"yt-rendererstamper-finished",{container:K})}else M=new _.bj("Container object not found",q,this.hostElement?this.hostElement.is:""),_.T6(M)}},
stampDomArray_:function(M,q,G,K,n,E){var p=this.getStampContainer_(q);if(p)if(q=this.polymerDom(p),K=LfH(K),M){var y=0,Y=0,A;if(E=E===void 0?_.fX("STAMPER_STABLE_LIST",!1):E||!1)for(A=q.firstElementChild;A&&!Fg.has(A)&&M.length>Y;){E=M[Y];var v=k8D(G,E);if(v){if(this.getComponentName_(G[v],E[v])!=A.is){var h=this.createComponent_(G[v],E[v],K),t=_.YD(A).nextElementSibling;t?q.insertBefore(h,t):q.appendChild(h);dZF(this.is,q,A,K);A=h}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(A,G[v],
E[v]);y++;Y++;A=this.polymerDom(A).nextElementSibling}else Y++}vGw(this.is,q,y,K);y=A;if(M.length>Y){E=document.createDocumentFragment();for(v=M.length;Y<v;Y++)if(h=M[Y],t=k8D(G,h))A=this.createComponent_(G[t],h[t],K),this.deferRenderStamperBinding_(A,G[t],h[t]),E.appendChild(A);if(y&&this.polymerDom(y).parentNode&&A&&!Fg.has(A))q.insertBefore(E,y);else try{q.appendChild(E)}catch(O){_.j1(new _.bj("Error in RendererStamperBehavior: appendChild failed.",{componentName:this.hostElement.is}))}}this.flushRenderStamperComponentBindings_();
this.markDirty&&this.markDirty();n&&_.jP(this.hostElement,"yt-rendererstamper-finished",{container:p})}else vGw(this.is,q,0,K);else M=new _.bj("Container object not found",q,this.hostElement?this.hostElement.is:""),_.T6(M)},
polymerDom:function(M){return this.minimizePipBreakages?M:_.YD(M)},
getStampContainer_:function(M){return this.$&&this.$[M]||_.f_(this.hostElement).querySelector("#"+M)},
getComponentName_:function(M,q){return typeof M==="string"?M:M.matcher?M.matcher.call(this,q):M.component},
createComponent_:function(M,q,G){M=this.getComponentName_(M,q);try{var K=r4.has(M);if(G&&!K){var n=_.Gz(M);try{_.sT(n)}catch(E){G="Failed to clear styles for "+M+".",E.message&&(G+=" Original error: "+E.message),_.j1(new _.bj(G))}}else n=document.createElement(M)}catch(E){return n="YtRendererStamperBehavior failed to create "+M+".",E.message&&(n+=" Original description: "+E.message),E.message="YtRendererStamperBehavior failed to create element",_.V2(E,n),PkI.hasOwnProperty(M)?_.j1(E):_.T6(E),document.createElement("SPAN")}this.telemetry_.create++;
return n},
deferRenderStamperBinding_:function(M,q,G){this.deferredBindingTasks_.push({component:M,typeOrConfig:q,data:G})},
flushRenderStamperComponentBindings_:function(){for(var M=0,q=this.deferredBindingTasks_.length;M<q;M++){var G=this.deferredBindingTasks_[M];if(!G)break;var K=void 0,n=void 0,E=void 0,p=void 0,y=G.component,Y=G.typeOrConfig;G=G.data;var A=(p=y.polymerController)!=null?p:y;p=y.loggingStatus;try{p&&(p.isRendererStamper=!0);if(typeof Y!=="string"){for(E in Y.attributes)Y.attributes[E]===!0?y.setAttribute(E,""):Y.attributes[E]===!1?y.removeAttribute(E):y.setAttribute(E,Y.attributes[E]);for(n in Y.params)A[n]=
Y.params[n],y!==A&&W4(y.localName,n,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(K in Y.properties){var v=Y.properties[K];if(v){var h=y6y(v);A[K]=this.get(h);y!==A&&W4(y.localName,K,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(K==="on-tap"||K==="on-click"){var t=this.get(h);y.addEventListener("click",t);Yky.set(y,{property:K,listener:{type:"element",eventName:"click",handler:t}})}}else{var O=new _.bj("Undefined property binding",K);_.T6(O)}}}if(Y.classListBinding){var a=y6y(Y.classListBinding),
g=a?this[a]:null;if(g)for(K=0;K<g.length;K++)_.HE(y,g[K],!0)}A.data=G}finally{p&&(p.isRendererStamper=!1)}if(K=Fg.get(y))y.hidden=!1,Fg.delete(y),_.r8.cancelJob(K)}this.deferredBindingTasks_.length=0}}];_.S5(_.U(function(M){function q(){G().seconds&&E(GUF({seconds:Number(G().seconds)-Date.now()/1E3}))}
var G=M.targetTimestamp;M=M.className;var K=_.k(_.lQ("",void 0,"U1Q8Ae")),n=K.next().value,E=K.next().value;_.mT(function(){q();var p=setInterval(function(){q()},1E3);
_.m_(function(){clearInterval(p)})});
return _.W("yt-countdown",{class:_.Hb("ytCountDownHost",M)},_.W("div",null,n))},"u"),"yt-countdown",{props:{targetTimestamp:_.Hz,
className:_.xj}});_.Nt=new _.$k("KEY_MANAGER_TOKEN");var l7$={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"};_.kv=_.U(function(M){var q=_.pI("a",M.ref),G=M.aTagConfig?M.aTagConfig:_.gY(function(){var K,n,E,p,y;var Y=(y=_.aM((E=M.command)==null?void 0:E.call(M)))!=null?y:(p=M.command)==null?void 0:p.call(M);return _.lm({innertubeCommand:Y,skipOnClick:(K=M.skipOnClick)==null?void 0:K.call(M),defaultTarget:(n=M.target)==null?void 0:n.call(M)})||{}},void 0,"TAvz0");
_.zL(function(){_.w("mweb_get_endpoint_from_atag_command")||(q.value._data=G()._data,q.value.params=G().params)},"dcjvAe");
return _.W("a",{el:q,href:function(){return G().href$},
rel:function(){return G().rel$},
class:function(){var K,n;return(n=G().className)!=null?n:(K=M.className)==null?void 0:K.call(M)},
style:function(){var K;if((K=M.style)==null?0:K.call(M))return M.style();var n;return((n=M.disabled)==null?0:n.call(M))?"pointer-events:none":""},
"aria-haspopup":function(){return!!G()["aria-haspopup$"]},
"force-new-state":MA(function(){return G()["force-new-state$"]}),
title:MA(function(){var K,n;return(n=G().title$)!=null?n:(K=M.title)==null?void 0:K.call(M)}),
role:MA(function(){var K;return((K=M.role)==null?void 0:K.call(M))||G().role$}),
target:MA(function(){return G().target$}),
dir:MA(function(){var K;return((K=M.dir)==null?void 0:K.call(M))||G().dir}),
tabindex:function(){var K;return G().tabindex$?Number(G().tabindex$):(K=M.tabIndex)==null?void 0:K.call(M)},
"aria-hidden":function(){var K,n;return(n=G()["aria-hidden$"])!=null?n:(K=M.ariaHidden)==null?void 0:K.call(M)},
"aria-label":function(){var K,n;return(n=G()["aria-label$"])!=null?n:(K=M.ariaLabel)==null?void 0:K.call(M)},
"aria-current":M.ariaCurrent,"aria-disabled":M.disabled,"aria-labelledby":M.ariaLabelledby,"aria-describedby":M.ariaDescribedby,"aria-selected":M.ariaSelected,"tab-identifier":M.tabIdentifier,"on:pointerdown":_.sq(function(K){var n,E;return void((E=(n=G()).onpointerdown)==null?void 0:E.call(n,K))}),
"on:click":_.sq(function(K){var n,E;(E=(n=G()).onclick)==null||E.call(n,K);var p;(p=M.onClick)==null||p.call(M,K)}),
"on:focusin":_.sq(function(K){var n;(n=M.onFocusin)==null||n.call(M,K)}),
"on:focusout":_.sq(function(K){var n;(n=M.onFocusout)==null||n.call(M,K)})},M.children)},"w");var I7s={duration:1E3,easing:"ease",fill:"forwards"};Qou.componentType=ZP;var J6$={duration:1E3,easing:"ease",fill:"forwards"},gOI=_.U(function(M){var q=_.pI("animated-rolling-character"),G=void 0,K=function(){var y,Y;return bG((y=M.character)==null?void 0:y.call(M))||bG((Y=M.previousCharacter)==null?void 0:Y.call(M))},n=_.k(_.lQ(0,void 0,"CYT8Ob")),E=n.next().value,p=n.next().value;
_.mT(function(){if(window.ResizeObserver&&_.w("web_fix_rolling_numbers_zoom_safari")){var y=new _.qA(function(){var A,v,h=Math.round(((v=(A=q.value.querySelector("div"))==null?void 0:A.getBoundingClientRect().height)!=null?v:0)*100)/100;h&&p(h)},500),Y=new ResizeObserver(function(){y.fire()});
Y.observe(q.value);_.m_(function(){Y.disconnect();y.dispose()})}});
_.zL(function(){var y=_.w("web_fix_rolling_numbers_zoom_safari")?E:M.marginMultiplier;if(y()){var Y;(Y=G)==null||Y.cancel();if(K()){var A;Y=((A=M.previousCharacter)==null?0:A.call(M))?Number(M.previousCharacter())+10:M.rollUp()?0:30;var v;if((v=M.shouldAnimate)==null||!v.call(M)){var h,t;Y-=uqj((h=M.character)==null?void 0:h.call(M),(t=M.previousCharacter)==null?void 0:t.call(M),M.rollUp(),Y)}}else{Y=M.rollUp()?0:2;var O;(O=M.shouldAnimate)!=null&&O.call(M)||(A=Y,v=M.rollUp()?-1:1,Y=A-v)}q.value.style.marginTop=
"-"+Y*y()+"px";var a;if((a=M.shouldAnimate)==null?0:a.call(M)){var g,D;G=ZBY(q.value,(g=M.character)==null?void 0:g.call(M),(D=M.previousCharacter)==null?void 0:D.call(M),M.rollUp(),Y,K(),y())}else{var J;q.value.style.display=((J=M.character)==null?0:J.call(M))?"":"none"}}},"CA6Pmf");
return _.W("animated-rolling-character",{el:q,class:"animatedRollingCharacterHost"},_.W(_.d,{cond:K,then:function(){return _.W(iQ$,null)},
else:function(){return _.W(cIB,{character:M.character})}}))},"z");
gOI.idomCompat=!0;var bBH=_.w("web_enable_sink_animated_rolling_character_and_number")?gOI:Qou,BRx=_.w("web_enable_sink_animated_rolling_character_and_number")?gOI:DZy(Qou),iQ$=_.U(function(){for(var M=[],q=1;q<30;q++)M.push(_.W("div",null,q%10));return _.W(_.dU,null,_.W("div",null,"\u00a0"),M,_.W("div",null,"\u00a0"))},"A"),cIB=_.U(function(M){var q=M.character;
return _.W(_.dU,null,_.W("div",null,"\u00a0"),_.W(_.d,{cond:function(){return!(q==null?0:q())||_.Lj(q==null?void 0:q())},
then:function(){return _.W("div",null,"\u00a0")},
else:function(){return _.W("div",null,q)}}),_.W("div",null,"\u00a0"))},"B");UZy.componentType=ZP;var Q7$=_.U(function(M){var q=void 0,G=void 0,K=function(){var E;return((E=M.fontSizeMultiplier)==null?0:E.call(M))?M.heightPx()*M.fontSizeMultiplier():M.heightPx()},n=_.gY(function(){if(!M.numberText())return[];
var E,p,y=((E=M.forceRollUp)==null?void 0:E.call(M))||!G||!((p=M.numberValue)==null?0:p.call(M))||G<M.numberValue(),Y,A=M.numberText();E=K();p=!((Y=M.shouldAnimate)==null||!Y.call(M));Y=[];var v=0,h=0,t=(q?q.replace(/\D/g,"").length:0)-(A?A.replace(/\D/g,"").length:0),O=q?q.split(/(\d)/).filter(Boolean):[];for(A=A.split(/(\d)/).filter(Boolean);t<0;){var a=A[h];Y.push({character:a,rollUp:y,marginMultiplier:E,shouldAnimate:p});h++;bG(a)&&t++}for(;v<t;)a=O[v],Y.push({previousCharacter:a,rollUp:y,marginMultiplier:E,
shouldAnimate:p}),v++,bG(a)||t++;for(;h<A.length;)t=A[h],a=O[v],bG(t)===bG(a)?(h++,v++):bG(t)?(v++,t=void 0):bG(a)&&(h++,a=void 0),Y.push({character:t,previousCharacter:a,rollUp:y,marginMultiplier:E,shouldAnimate:p});q=M.numberText();var g;G=(g=M.numberValue)==null?void 0:g.call(M);return Y},void 0,"kWiBv");
return _.W("yt-animated-rolling-number",{class:"animatedRollingNumberHost",style:function(){return M.numberText()?["height: "+K()+"px;","line-height: "+M.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.W(_.bf,{each:n,keyBy:"INDEX"},function(E){return _.W(BRx,{character:function(){return E().character},
previousCharacter:function(){return E().previousCharacter},
marginMultiplier:function(){return E().marginMultiplier},
rollUp:function(){return E().rollUp},
shouldAnimate:function(){return E().shouldAnimate}})}))},"C");
Q7$.idomCompat=!0;_.I39=_.w("web_enable_sink_animated_rolling_character_and_number")?Q7$:DZy(UZy);var Ddp=function(M,q){this.fillAnimation=new Animation(Skj(M),document.timeline);this.strokeAnimation=new Animation(TC$(q),document.timeline)};
Ddp.prototype.play=function(){var M,q;(q=(M=this.fillAnimation).play)==null||q.call(M);var G,K;(K=(G=this.strokeAnimation).play)==null||K.call(G)};
Ddp.prototype.cancel=function(){var M,q;(q=(M=this.fillAnimation).cancel)==null||q.call(M);var G,K;(K=(G=this.strokeAnimation).cancel)==null||K.call(G)};_.p3=_.U(function(M){var q=M.model;var G=M.pointerDownEvent;var K=M.pointerUpEvent;var n=M.pointerLeaveEvent;var E=M.hovered;M=_.pI("yt-touch-feedback-shape");var p=_.pI("div"),y=_.pI("div"),Y=_.k(_.GM(function(){return(K==null?0:K())||(n==null?0:n())?!1:!(G==null||!G())||!1})),A=Y.next().value,v=Y.next().value,h=void 0,t=function(){!h&&y.value&&p.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(h=new Ddp(y.value,p.value));
var Z;(Z=h)==null||Z.play()},O=function(){var Z;
(Z=h)==null||Z.cancel()},a=function(){var Z;
(Z=h)==null||Z.cancel()};
_.zL(function(){(K==null?0:K())&&t()},"bg756c");
_.zL(function(){(G==null?0:G())&&O()},"QAes8c");
_.zL(function(){(n==null?0:n())&&a()},"YaFbrc");
Y=_.sq(function(){t();v(!1)});
var g=_.sq(function(){O();v(!0)}),D=_.sq(function(){a();
v(!1)});
_.m_(function(){if(h){var Z;(Z=h)==null||Z.cancel();h=void 0}});
var J={};A=_.Hb("yt-spec-touch-feedback-shape",function(){return r6e(q().color)},function(){return jo4(q().thumbnailSize,!!q().isExtended)},(J["yt-spec-touch-feedback-shape--focused"]=function(){return!!q().focused&&!q().disabled},J["yt-spec-touch-feedback-shape--circular"]=function(){return!!q().circular},J["yt-spec-touch-feedback-shape--down"]=A,J["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!q().triggerEvents},J["yt-spec-touch-feedback-shape--hovered"]=function(){return E==
null?void 0:E()},J));
return _.W("yt-touch-feedback-shape",{el:M,class:A,style:_.Kp({"margin-top":function(){return q().customTopExtend?"-"+q().customTopExtend+"px":void 0}}),
"on:mousedown":g,"on:mouseup":Y,"on:pointerleave":D,"on:touchstart":g,"on:touchend":Y,"aria-hidden":!0},_.W(_.d,{cond:function(){return!!q().hoverEffect},
then:function(){return _.W("div",{class:"yt-spec-touch-feedback-shape__hover-effect",style:_.Kp({"border-radius":function(){return q().borderRadius},
background:function(){var Z;if(Z=q().hoverEffect){for(var V=[],S=_.k((Z==null?void 0:Z.lightingTechniques)||[]),m=S.next();!m.done;m=S.next())switch(m.value){case 2:var R=m=void 0,se=void 0,yY=void 0;V.push("linear-gradient(180deg, "+((m=Z)==null?void 0:(R=m.palette)==null?void 0:R.keyLight)+", "+((se=Z)==null?void 0:(yY=se.palette)==null?void 0:yY.background)+")")}var d$,cy;V.push((d$=q().hoverEffect)==null?void 0:(cy=d$.palette)==null?void 0:cy.background);Z=V.join(", ")}else Z=void 0;return Z}})})}}),
_.W("div",{class:"yt-spec-touch-feedback-shape__stroke",
style:_.Kp({"border-radius":function(){return q().borderRadius},
"border-color":function(){var Z,V;return(Z=q().touchEffect)==null?void 0:(V=Z.palette)==null?void 0:V.background}}),
el:p}),_.W("div",{class:"yt-spec-touch-feedback-shape__fill",style:_.Kp({"border-radius":function(){return q().borderRadius},
"background-color":function(){var Z,V;return(Z=q().touchEffect)==null?void 0:(V=Z.palette)==null?void 0:V.background}}),
el:y}))},"I");
_.p3.idomCompat=!0;var uk2={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 y$=_.Oe();y$=y$.toLowerCase();if(_.Ys(y$,"android")){var JIl=y$.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);JIl&&parseFloat(JIl[1])<100||y$.match("("+Object.keys(uk2).join("|")+")")};var ZQP=_.U(function(M){return _.W(_.d,{cond:M.aTagConfig,then:function(q){return _.W(_.kv,{aTagConfig:q,disabled:M.disabled,className:M.className,style:M.style,title:M.title,ariaLabel:M.ariaLabel,ariaCurrent:function(){var G,K;return((G=M.toggleable)==null?void 0:G.call(M))&&((K=M.toggled)==null?void 0:K.call(M))},
ref:M.ref},M.children)},
else:function(){return _.W("button",{el:_.bm(M.ref),"on:click":_.sq(function(q){var G;return(G=M.onClick)==null?void 0:G.call(M,q)}),
class:M.className,title:M.title,style:M.style,disabled:M.disabled,"aria-pressed":function(){var q,G;return((q=M.toggleable)==null?0:q.call(M))?!((G=M.toggled)==null||!G.call(M)):void 0},
"aria-label":M.ariaLabel,"aria-disabled":M.visiblyDisabled,"aria-hidden":M.ariaHidden,tabindex:M.tabIndex},M.children)}})},"J"),UdI=_.U(function(M){var q=M.data;
var G=M.hasIconLeading;var K=M.hasIconLeadingTrailing;var n=M.hasIconTrailing;var E=M.iconButton;var p=M.iconClassName;var y=M.secondaryIconClassName;var Y=M.icon;var A=M.secondaryIcon;var v=M.textContentClassName;return _.W(L3,{className:"",style:"display: inherit; justify-content: center"},_.W(_.d,{debugInstance:"V4z1Uc",cond:function(){return Y&&(G()||K()||(E==null?void 0:E()))},
then:function(){return _.W(L3,null,_.W("div",{class:p,"aria-hidden":"true"},Y==null?void 0:Y()))}}),_.W(_.d,{debugInstance:"ok3btb",
cond:function(){return(q().buttonText||q().animatedTextProps||q().formattedButtonText)&&!(E==null?0:E())},
then:function(){return _.W(L3,null,_.W(bQx,{className:v,iconPosition:function(){return q().iconPosition},
text:function(){return q().buttonText},
oneOffCustomTextWrap:function(){return q().oneOffCustomTextWrap},
formattedButtonText:function(){return q().formattedButtonText},
animatedTextProps:function(){return q().animatedTextProps}}))}}),_.W(_.d,{debugInstance:"DO5Rz",
cond:n,then:function(){return _.W(L3,null,_.W("div",{class:p},Y==null?void 0:Y()))}}),_.W(_.d,{debugInstance:"bnojSc",
cond:K,then:function(){return _.W(L3,null,_.W("div",{class:y},A==null?void 0:A()))}}),_.W(_.d,{debugInstance:"HN3kad",
cond:function(){return!q().disabled&&!0},
then:function(){return _.W(_.p3,{model:function(){var h=q();return{color:h.style==="overlay-dark"?4:h.style==="overlay"?h.type==="filled"?4:3:h.type==="filled"||h.style==="call-to-action-inverse"||h.style==="mono-inverse"?2:1}}})}}))},"K"),bQx=_.U(function(M){var q=function(){var G,K;
return((G=M.iconPosition)==null?void 0:G.call(M))==="icon-with-label"||((K=M.oneOffCustomTextWrap)==null?void 0:K.call(M))};
return _.W("div",{class:M.className,"aria-hidden":function(){var G,K,n;return((G=M.ariaHidden)==null?void 0:G.call(M))&&(!((K=M.animatedTextProps)==null||!K.call(M))||!((n=M.formattedButtonText)==null||!n.call(M)))}},_.W(_.Ub,null,_.W(_.J3,{when:function(){var G;
return(G=M.animatedTextProps)==null?void 0:G.call(M)}},function(){return _.W(_.I39,{numberText:function(){return M.animatedTextProps().numberText},
numberValue:function(){return M.animatedTextProps().numberValue},
heightPx:function(){return M.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return M.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return M.animatedTextProps().shouldAnimate},
forceRollUp:function(){return M.animatedTextProps().forceRollUp}})}),_.W(_.J3,{when:function(){var G;
return(G=M.formattedButtonText)==null?void 0:G.call(M)}},function(){return _.W(_.Ft,{text:function(){return Object.assign({},M.formattedButtonText(),{lineBreakMode:q()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":M.formattedButtonText().lineBreakMode,
alignment:q()?"TEXT_ALIGNMENT_CENTER":M.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!q()}})}),_.W(_.J3,{when:function(){var G,K;
return((G=M.iconPosition)==null?void 0:G.call(M))==="icon-with-label"&&((K=M.text)==null?void 0:K.call(M))}},function(){return _.W(_.Ft,{text:function(){return{content:M.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.W(_.Zk,null,function(){return M.text})))},"L"),xd2=_.U(function(M){return _.W(_.d,{debugInstance:"kM7Sgc",
cond:M.hasLabel,then:function(){var q;return _.W("label",{class:M.className},M.children,(q=M.textContent)==null?void 0:q.call(M))},
else:function(){return M.children}})},"M"),L3=_.U(function(M){return M.children},"N");var zad=_.U(function(M){function q(){E(void 0);y(void 0);A(void 0)}
var G=_.bm(),K=_.k(_.lQ(void 0,void 0,"Ug77pc")),n=K.next().value,E=K.next().value;K=_.k(_.lQ(void 0,void 0,"XGf7Zb"));var p=K.next().value,y=K.next().value,Y=_.k(_.lQ(void 0,void 0,"w55oqd"));K=Y.next().value;var A=Y.next().value;Y=_.k(_.lQ(0,void 0,"rBgpzc"));var v=Y.next().value,h=Y.next().value;Y=_.sq(function(){switch(v()){case 1:h(2);break;case 3:var O,a;(a=(O=G.value).hidePopover)==null||a.call(O);h(0);q()}});
_.zL(function(){if(M.show()){var O;E((O=M.children)==null?void 0:O.call(M));var a;y((a=M.location)==null?void 0:a.call(M));var g;A((g=M.classNames)==null?void 0:g.call(M));switch(v()){case 0:var D,J;(J=(D=G.value).showPopover)==null||J.call(D);h(1);break;case 3:h(1);var Z,V;(V=(Z=G.value).hidePopover)==null||V.call(Z);var S,m;(m=(S=G.value).showPopover)==null||m.call(S)}}else switch(v()){case 2:h(3);break;case 1:var R,se;(se=(R=G.value).hidePopover)==null||se.call(R);q();h(0)}},"Z8V4Qb");
_.SK(function(){});
var t={};return _.W("yt-popover",{popover:"manual",el:G,style:_.Kp({left:function(){var O;return(O=p())==null?void 0:O.left},
top:function(){var O;return(O=p())==null?void 0:O.top},
bottom:function(){var O;return(O=p())==null?void 0:O.bottom},
right:function(){var O;return(O=p())==null?void 0:O.right}}),
class:_.Hb("ytPopoverComponentHost",K,(t.ytPopoverComponentHostClosing=function(){return v()===3},t.ytPopoverComponentHostSeeThrough=function(){var O;
return((O=M.seeThrough)==null?void 0:O.call(M))===!0},t)),
"on:animationend":Y},n)},"P");var mdM={left:"0px",right:"auto",top:"0px",bottom:"auto"},SnB=function(){var M=this;this.registerTooltipElement=function(G){var K;M.tooltipElement=(K=G.querySelector("yt-popover"))!=null?K:void 0};
var q=_.k(_.lQ(void 0,void 0,"EIh5sc"));this.state=q.next().value;this.setState=q.next().value;q=_.k(_.lQ(void 0,void 0,"PC1M0b"));this.schedulerJobID=q.next().value;this.setSchedulerJobID=q.next().value},MZF=function(M,q){var G=NA,K=_.r8.addJob(function(){var n=TRP(G,M,q);
G.currentConfig=q;G.setState({text:q.text,location:_.w("web_tooltip_location_fix")?void 0:n,anchor:M,offset:q.offset,style:q.style})},4,q.delay);
G.setSchedulerJobID(K)},q$s=function(){var M=NA,q=M.schedulerJobID();
q&&(_.r8.cancelJob(q),M.setSchedulerJobID(void 0));M.setState(void 0);M.currentConfig=void 0};
SnB.prototype.notify=function(M,q){var G;((G=this.state())==null?void 0:G.anchor)===M&&(G=TRP(this,M,q),this.currentConfig=q,this.setState({text:q.text,location:_.w("web_tooltip_location_fix")?void 0:G,anchor:M,offset:q.offset,style:q.style}))};
var TRP=function(M,q,G){var K=q.getBoundingClientRect();q=window.innerWidth;var n=window.innerHeight,E=G.location,p=G.offset;G=G.text;if(M=M.tooltipElement){var y=getComputedStyle(M);M=y.font;var Y=Eq(y.lineHeight),A=Eq(y.paddingLeft),v=Eq(y.paddingRight),h=Eq(y.paddingTop);y=Eq(y.paddingBottom);var t=document.createElement("canvas").getContext("2d");t.font=M;G={width:t.measureText(G).width+A+v,height:Y+h+y}}else G=void 0;M=G;if(!M)return mdM;G=M.width;M=M.height;A=p+M;h=p+G;Y=K.top>=A;A=n-K.bottom>=
A;v=K.left>=h;h=q-K.right>=h;y=E;switch(E){case "top":!Y&&A&&(y="bottom");break;case "bottom":!A&&Y&&(y="top");break;case "left":!v&&h&&(y="right");break;case "right":!h&&v&&(y="left")}switch(y){case "top":E=K.left+K.width/2-G/2;K=K.top-M-p;break;case "bottom":E=K.left+K.width/2-G/2;K=K.bottom+p;break;case "left":E=K.left-G-p;K=K.top+K.height/2-M/2;break;case "right":E=K.right+p;K=K.top+K.height/2-M/2;break;default:E=K.left+K.width/2-G/2,K=K.bottom+p}p=Object.assign({},mdM);E+G>q?(p.right="0px",p.left=
"auto"):(p.left=Math.round(Math.max(0,E)+window.scrollX)+"px",p.right="auto");K+M>n?(p.bottom="0px",p.top="auto"):(p.top=Math.round(Math.max(0,K)+window.scrollY)+"px",p.bottom="auto");return p};var NA;NA=new SnB;_.rI8=_.U(function(){var M=_.gY(function(){var n;return(n=NA.state())==null?void 0:n.anchor},void 0,"tiGUn"),q=_.gY(function(){var n;
return(n=NA.state())==null?void 0:n.text},void 0,"TA2GQe"),G=_.gY(function(){var n;
return(n=NA.state())==null?void 0:n.style},void 0,"ucvFsf"),K=_.w("web_tooltip_location_fix")?_.gY(function(){var n=M();
var E=NA.currentConfig;if(n&&E)return TRP(NA,n,E)},void 0,"EpDz6"):_.gY(function(){var n;
return(n=NA.state())==null?void 0:n.location},void 0,"aRJtfd");
return _.W("yt-tooltip",{class:"ytTooltipContainerHost",el:_.bm(NA.registerTooltipElement),"aria-hidden":"true"},_.W(zad,{classNames:function(){switch(G()){case "TOOLTIP_VIEW_MODEL_STYLE_PLAYER":return"ytTooltipContainerPlayerTooltipContent";default:return"ytTooltipContainerDefaultTooltipContent"}},
location:K,show:function(){return!!q()&&!!K()},
seeThrough:!0},q))},"Q");var J$w=y5("stamper-context");_.Yv=_.U(function(M){var q=M.data;var G=M.icon;var K=M.iconName;var n=M.animateIcon;var E=M.secondaryIcon;var p=M.secondaryIconName;var y=M.focusedOverride;var Y=M.clientOnlyWizTooltipsEnabled;KCF();var A=VaH(q),v=A.size,h=A.style;M=A.disabled;var t=A.onTap,O=A.alignByText,a=A.aTagConfig,g=A.customColors,D=A.segmentedPosition,J=A.toggled,Z=A.toggleable,V=A.accessibilityLabel,S=A.onToggle,m=A.iconPosition,R=A.oneOffCustomTextWrap,se=A.disableTextEllipsis,yY=A.disableBackdropFilter,d$=A.tooltipText,
cy=A.ariaHidden,t4=A.tabIndex,ay=A.buttonText,bH=A.formattedButtonText,iH=A.animatedTextProps,oI=A.onClickRateLimitMs,r9=HBe(q,G,E,K,p,y,n),X2=r9.type;G=r9.shouldFocus;K=r9.hasIconLeading;n=r9.hasIconTrailing;var EM=r9.hasIconLeadingTrailing,LP=r9.hasIconOnly;E=r9.hasIconOnly40;var Pv=r9.hasIconWithLabel;p=r9.iconButton;var g9=r9.visiblyDisabled;y=r9.overrideSmallSizeIcon;var a8=r9.iconToRender;r9=r9.secondaryIconToRender;var tE=_.k(Gvw(d$,A.tooltipShape)).next().value,ND=function(w9){t==null||t(w9);
Z()&&(S==null||S(w9))},Mx=_.gY(function(){return oI==null?void 0:oI()},void 0,"siKywb"),hd=_.gY(function(){return Mx()?DX$(ND,Mx()):ND},void 0,"wDTcN");
A={};var Kn={};return _.W(xd2,{className:_.Hb("yt-spec-button-shape-with-label",(A["yt-spec-button-shape-with-label--is-overlay"]=function(){return h()==="overlay"||h()==="overlay-dark"},A)),
hasLabel:Pv,textContent:function(){return _.W(bQx,{text:ay,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:R,iconPosition:m,formattedButtonText:bH,animatedTextProps:iH})}},_.W(ZQP,{aTagConfig:a,
className:_.Hb("yt-spec-button-shape-next",function(){return e$H(X2())},function(){return g9()?void 0:$Zu(h())},function(){return sWF(v())},(Kn["yt-spec-button-shape-next--disabled"]=g9,Kn["yt-spec-button-shape-next--focused"]=G,Kn["yt-spec-button-shape-next--icon-trailing"]=n,Kn["yt-spec-button-shape-next--icon-leading"]=K,Kn["yt-spec-button-shape-next--icon-leading-trailing"]=EM,Kn["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return EM()&&!(ay()||bH())},Kn["yt-spec-button-shape-next--icon-button"]=
function(){return LP()||Pv()},Kn["yt-spec-button-shape-next--icon-only-default"]=E,Kn["yt-spec-button-shape-next--align-by-text"]=O,Kn["yt-spec-button-shape-next--segmented-start"]=function(){return D()==="start"},Kn["yt-spec-button-shape-next--segmented-end"]=function(){return D()==="end"},Kn["yt-spec-button-shape-next--override-small-size-icon"]=y,Kn["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=R,Kn["yt-spec-button-shape-next--disable-text-ellipsis"]=se,Kn["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!yY()&&!_.w("web_disable_backdrop_filter")},Kn)),
style:function(){var w9=g();if(w9){var Gs=w9.color;var u5=w9.backgroundColor;w9=w9.borderColor;var jJ="";Gs&&(jJ+="color: "+Gs+";");u5&&(jJ+="background-color: "+u5+";");w9&&(jJ+="border-color: "+w9+";");Gs={style:jJ}}else Gs={};return Gs.style},
onClick:function(w9){hd()(w9)},
disabled:M,ariaLabel:V,toggleable:Z,toggled:J,title:function(){return(Y==null?0:Y())||!d$()?"":d$()},
visiblyDisabled:g9,ariaHidden:cy,tabIndex:t4,ref:function(w9){(Y==null?0:Y())&&tE(w9)}},_.W(UdI,{data:q,
hasIconLeading:K,hasIconLeadingTrailing:EM,hasIconTrailing:n,iconButton:p,icon:a8,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:r9})))},"S");
_.Yv.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};_.Wf=_.U(function(M){var q=M.data;var G=M.className;var K=M.style;var n=M.useOutlinedIcon;var E=M.buttonOverrides;var p=M.animatedTextProps;var y=M.onClick;var Y=M.target;var A=_.pI("button-view-model",function(S){S.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var m=q().targetId;m&&_.o9B(_.lW(),m,S);return function(){Cnx(_.lW(),S)}}),v=function(){return q().iconName},h=_.pp(function(S){a:{var m=q().entityKey,R=q().buttonEntitySelectorType;
if(R&&m)switch(R){case "BUTTON_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE":S=(S=_.e5(S,m))?{isHidden:S.adsState==="ADS_STATE_NONE"||S.adsState==="ADS_STATE_UNKNOWN"}:void 0;break a;default:S={isHidden:!1};break a}S=void 0}return S}),t,O=(t=_.AL().resolve(_.WR(_.Qx)))==null?void 0:t(),a=function(){var S=q();
var m=E==null?void 0:E(),R=p==null?void 0:p(),se=Y==null?void 0:Y();if(S){var yY=Y$y(S.type);var d$=!!S.title||!!S.titleFormatted;var cy=!(!S.iconName&&!S.iconImage);d$=cy&&!d$?"icon-only":cy?S.iconTrailing||S.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;d$==="icon-only-40"&&(yY="text");var t4;cy=(t4=m==null?void 0:m.state)!=null?t4:WCF(S.state);var ay,bH=(ay=m==null?void 0:m.disabled)!=null?ay:S.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||S.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";
if(_.w("web_button_vm_refactor_disabled")){var iH;bH=(iH=m==null?void 0:m.disabled)!=null?iH:cy==="disabled"}R=R&&R.numberText&&!isNaN(Number(R.numberValue))?R:void 0;ay=Object;iH=ay.assign;t4=S.title;var oI=S.titleFormatted,r9=S.accessibilityText,X2=LCe(S.style),EM=AWi(S.buttonSize);se=yWu(S,A,bH,y,se);bH=bH&&!S.onDisabledTap;var LP=kvu(S,A),Pv=S.customFontColor,g9=S.customBackgroundColor;var a8=S.customBorderColor;var tE=S.customDarkThemeFontColor,ND=S.customDarkThemeBackgroundColor,Mx=S.customDarkThemeBorderColor;
Pv=O&&tE?tE:Pv;g9=O&&ND?ND:g9;a8=O&&Mx?Mx:a8;a8={color:Pv?_.C_(Pv):void 0,backgroundColor:g9?_.C_(g9):void 0,borderColor:a8?_.C_(a8):void 0};if(Mx=_.C(S.tooltipData,ad8)){var hd;g9={text:(hd=Mx.tooltipText)!=null?hd:"",location:E4F(Mx.placement),style:Mx.style}}else g9=void 0;S=iH.call(ay,{},{buttonText:t4,formattedButtonText:oI,animatedTextProps:R,accessibilityLabel:r9,style:X2,type:yY,state:cy,size:EM,iconPosition:d$,onTap:se,disabled:bH,aTagConfig:LP,customColors:a8,tooltipText:S.tooltip,tooltipShape:g9},
m)}else S={style:"mono",type:"text",state:"active",size:"M"};S.focused=J();return S},g=function(){return f7H(a(),!!q().iconName)};
M=_.k(_.lQ(!1,void 0,"yZ8hab"));t=M.next().value;var D=M.next().value,J=t;M=_.sq(function(){var S=_.AL().resolve(_.WR(_.Nt));S&&D(S.isKeyBoardInUse());return!1});
t=_.sq(function(){D(!1);return!1});
_.zL(function(){var S,m=_.C(q==null?void 0:(S=q())==null?void 0:S.onVisible,_.Cl);m&&_.oM(m,{disableClickTracking:!0})},"G9MlKd");
var Z=function(){var S;return(q==null?0:(S=q())==null?0:S.iconImage)?{sources:[q().iconImage]}:void 0},V=_.w("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
return _.W("button-view-model",{el:A,class:_.Hb("ytSpecButtonViewModelHost",G),"on:focusin":M,"on:focusout":t},_.W(_.d,{cond:function(){var S,m;return!((m=q().entityKey&&q().buttonEntitySelectorType&&((S=h())==null?void 0:S.isHidden))!=null&&m)},
then:function(){return _.W(_.d,{cond:Z,then:function(S){return _.W(_.Yv,{data:a,icon:function(){return _.W(_.Jj,{data:S,alt:"",targetWidth:g,targetHeight:g,preserveWidth:!0,preserveHeight:!0})},
clientOnlyWizTooltipsEnabled:V})},
else:function(){return _.W(_.Yv,{data:a,icon:function(){return _.W(_.np,{icon:v,active:function(){return(n==null?0:n())?!1:a().toggled},
animateIcon:function(){var S;return!!(K==null?0:(S=K())==null?0:S.animateIcon)},
size:g})},
clientOnlyWizTooltipsEnabled:V})}})}}))},"U");
_.Wf.idomCompat={callbacks:{onClick:!0}};_.S5(_.U(function(M){return _.W("yt-button-view-model",{id:M.id,class:_.Hb(M.scopingClassName,M.classes),icon:function(){var q;return(q=M.icon)==null?void 0:q.call(M)},
"dialog-dismiss":function(){var q;return((q=M.dialogDismiss)==null?0:q.call(M))?"":void 0}},_.W(_.Wf,{data:function(){var q;
return(q=M.data)==null?void 0:q.call(M)},
className:function(){var q;return(q=M.className)==null?void 0:q.call(M)},
style:function(){var q;return(q=M.style)==null?void 0:q.call(M)},
useOutlinedIcon:function(){var q;return(q=M.useOutlinedIcon)==null?void 0:q.call(M)},
buttonOverrides:function(){var q;return(q=M.buttonOverrides)==null?void 0:q.call(M)},
animatedTextProps:function(){var q;return(q=M.animatedTextProps)==null?void 0:q.call(M)},
onClick:function(q){var G;return(G=M.onClick)==null?void 0:G.call(M,q)}}))},"V"),"yt-button-view-model",{props:{data:_.Hz,
className:_.Hz,style:_.Hz,useOutlinedIcon:_.Hz,buttonOverrides:_.Hz,animatedTextProps:_.Hz,onClick:_.xj,scopingClassName:_.Hz,id:_.Hz,icon:_.Hz,dialogDismiss:_.Hz,classes:_.Hz,target:_.xj}});_.S5(_.U(function(M){var q=M.data;var G=M.id;var K=M.className;var n=M.iconName;var E=M.animateIcon;var p=M.secondaryIconName;M=_.k(_.lQ(!1,void 0,"TtJl8"));var y=M.next().value,Y=M.next().value,A=function(){var h=_.AL().resolve(_.WR(_.Nt));h&&Y(h.isKeyBoardInUse())},v=function(){Y(!1)};
M=_.pI("yt-button-shape",function(h){if(_.AL().resolve(_.WR(_.Nt)))return h.addEventListener("focusin",A),h.addEventListener("focusout",v),function(){h.removeEventListener("focusin",A);h.removeEventListener("focusout",v)}});
return _.W("yt-button-shape",{el:M,id:G,class:K},_.W(_.d,{cond:q,then:function(){return _.W(_.Yv,{data:q,iconName:n,secondaryIconName:p,focusedOverride:y,animateIcon:E})}}))},"W"),"yt-button-shape",{props:{data:_.Hz,
id:_.Hz,className:_.Hz,iconName:_.Hz,animateIcon:_.Hz,secondaryIconName:_.Hz,clientOnlyWizTooltipsEnabled:_.Hz,disableUpgrade:_.Hz},unsafeExternallySettableAttributes:new Set(["hidden","key","dialog-dismiss","disable-upgrade"])});var Av=function(){var M=_.Q.apply(this,arguments)||this;M.isGoalActive=!0;return M};
_.l(Av,_.Q);Av.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Av.prototype.progressBarChanged=function(){var M=_.f_(this.hostElement).querySelector("#progress-bar-progress"),q,G,K,n=(K=Number((q=this.creatorGoalState)==null?void 0:q.currentGoalCount)/Number((G=this.creatorGoalState)==null?void 0:G.totalGoalCount)*100)!=null?K:0,E;M.style.width=((E=Math.min(n,100))!=null?E:0)+"%"};
Av.prototype.goalStateChanged=function(){var M;this.isGoalActive=((M=this.creatorGoalState)==null?void 0:M.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var q;M={"--yt-progress-bar-color":jhu((q=this.creatorGoalState)==null?void 0:q.progressBarColor)};_.sT(this.hostElement,M)};
Av.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Yd.Object.defineProperties(Av.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var M;return this.isGoalActive&&!((M=this.creatorGoalState)==null||!M.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.creatorGoalState)==null?0:M.endTimestampMs){var q;M=Number((q=this.creatorGoalState)==null?void 0:q.endTimestampMs)/1E3;return{seconds:String(M)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.creatorGoalState)==null?0:M.themedTargetImage){var q;M=_.C((q=this.creatorGoalState)==null?void 0:q.themedTargetImage,ybM);return this.isAppDarkTheme()?M==null?void 0:M.imageDark:M==null?void 0:M.imageLight}}}});
_.Yd.Object.defineProperties(Av,{template:{configurable:!0,enumerable:!0,get:function(){return OQI()}}});
Av.prototype.goalStateChanged=Av.prototype.goalStateChanged;Av.prototype.progressBarChanged=Av.prototype.progressBarChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],Av.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);
_.T([_.B({selectorArgs:["data.creatorGoalEntityKey"],selector:function(M,q){return _.sX(M.entities,"creatorGoalEntity",q)}}),
_.r("design:type",Object)],Av.prototype,"creatorGoalState",void 0);_.T([_.B(),_.r("design:type",Object)],Av.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Av.prototype,"isGoalActive",void 0);_.T([_.c("creatorGoalState","isGoalActive"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Av.prototype,"shouldShowCountdown",null);_.T([_.c("creatorGoalState"),_.r("design:type",Object),_.r("design:paramtypes",[])],Av.prototype,"endTimestamp",null);
_.T([_.c("creatorGoalState"),_.r("design:type",Object),_.r("design:paramtypes",[])],Av.prototype,"targetIconThemedImage",null);_.T([_.KT("creatorGoalState.currentGoalCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Av.prototype,"progressBarChanged",null);_.T([_.KT("creatorGoalState.creatorGoalState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Av.prototype,"goalStateChanged",null);
_.T([_.aO({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Av);_.z(Av,"yt-creator-goal-progress-flow-view-model",function(){return OQI()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var j7B;var V7p;var dg=function(){return _.Q.apply(this,arguments)||this};
_.l(dg,_.Q);dg.prototype.attached=function(){var M,q,G;if(this==null?0:(M=this.data)==null?0:(q=M.pdgPurchasedBumperLoggingDirectives)==null?0:(G=q.loggingDirectives)==null?0:G.trackingParams){var K,n,E;hhF(this==null?void 0:(K=this.data)==null?void 0:(n=K.pdgPurchasedBumperLoggingDirectives)==null?void 0:(E=n.loggingDirectives)==null?void 0:E.trackingParams)}};
dg.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],dg.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],dg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],dg.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],dg);
_.z(dg,"yt-live-chat-item-bumper-view-model",function(){if(V7p===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;j7B===void 0&&(j7B=document.createElement("template"));var K=j7B;G.call(q,K.content.cloneNode(!0),M.content.firstChild);V7p=M}M=V7p;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Rap;var f3M;_.Zt=function(M,q){this.data=M;this.actions=q;this.data=M;this.actions=q};
_.gk=function(){};_.vf={};_.vf.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(M,q){tZu(this.hostElement,M,q)},
getNavigationEndpointPopupAction:function(M){return Oms(M,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(M,q){wwy(this.hostElement,M,q,this.openPopupConfig)}};var Bfs=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.OH={};
_.OH.YtEndpointBehavior=[_.vf.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.R9("openPopupConfig");(this.useClickHandler=_.fX("useClickHandler",!1))?this.hostElement.addEventListener("click",Ms(this,this.onEndpointClick_)):(r_(this.hostElement,"tap",Ms(this,this.onEndpointTap_)),r_(this.hostElement,"touchend",Ms(this,this.onEndpointTouchEnd_)));r_(this.hostElement,"touchstart",Ms(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
Ms(this,this.onEndpointTapStart_))},
onEndpointClick_:function(M){o4y(this.hostElement,M,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(M){var q=this.hostElement,G=this.openPopupConfig,K=this.disableCommandHandlerOverride;K=K===void 0?!1:K;var n=CrF(M);if(n){n.href&&Xw(n.href);var E=M.detail;var p=E.sourceEvent;E=E.preventer;p=p.button!==void 0?p.button===0&&!yZ(p):E?!yZ(E):!0;n.data&&p&&arH(q,n,M,G,K)}},
onEndpointTouchEnd_:function(M){yZ(M)||CrF(M)&&M.preventDefault()},
onEndpointTapStart_:function(M){cWY(M)}}];_.wg={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(M){for(var q=_.GC.getInstance(),G=_.k(Object.keys(M)),K=G.next();!K.done;K=G.next()){var n=K.value;K=M[n];if(this&&this[K]){var E=q.actionRoutingMap.get(n);E||(E=new Map,q.actionRoutingMap.set(n,E));q.registerActionHandler(this,n,this[K].bind(this),E)}else n=Error("ld"),n.params=K,_.eK(n)}},
unregisterActionMap:function(M){_.N6(_.GC.getInstance(),M,this)}}]};var Wx=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_"+(_.w("enable_web_delhi_icons")?"v5":"v4")+".json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_"+(_.w("enable_web_delhi_icons")?"v5":"v4")+".json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:_.w("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:_.w("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:_.w("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:_.w("enable_web_delhi_icons")?120:79,lazyLoad:!1}]]);var Ym;var AC=new Map;var Zmi=window.matchMedia("(forced-colors: active)").matches;var FAM;var HQM;var eaJ=new _.$k("LOTTIE_LOADER_TOKEN");_.C3=_.U(function(M){var q=M.data;var G=M.className;var K=M.animationName;var n=M.animationRef;var E=M.elRefForInterop;var p=_.yw("lottie-component"),y;_.m_(function(){var A;return void((A=y)==null?void 0:A.destroy())});
var Y;_.zL(function(){var A=_.TL(K);if(A!==Y){Y=A;var v=Object.assign({},{animationName:A,animationRef:_.TL(n)},_.TL(q));try{_.AL().resolve(eaJ)().then(function(O){var a;(a=y)==null||a.destroy();var g,D;a=(D=E==null?void 0:(g=E())==null?void 0:g.value)!=null?D:p.value;g=v.animationRef;D=v.listeners;O=O.loadAnimation(Object.assign({},{container:a},v.animationConfig));g&&(g.lottieEl=O);if(D)for(a=_.k(Object.entries(D)),g=a.next();!g.done;g=a.next())D=_.k(g.value),g=D.next().value,(D=D.next().value)&&
O.addEventListener(g,D);y=O})}catch(O){A=O;
var h="LottieComponent error.";A.message&&(h+=" Original description: "+A.message);_.V2(A,h);_.j1(A);var t;((t=v.listeners)==null?0:t.error)&&v.listeners.error(A)}}},"nrJISd");
return _.W(pF4,{cond:function(){return!(E==null?0:E())},
then:function(){return _.W("lottie-component",{class:_.Hb("ytLottieComponentHost",G),el:p})}})},"Y");_.S5(_.U(function(M){return _.W("ytd-lottie-player",{id:M.id,hidden:M.hidden,class:M.className,"aria-label":M.ariaLabel,style:"display: block;"},_.W(_.C3,{data:M.data,animationName:function(){var q;return((q=M.data().animationConfig)==null?void 0:q.name)||""},
animationRef:function(){return M.data().animationRef}}))},"Z"),"ytd-lottie-player",{props:{data:_.Hz,
id:_.Hz,hidden:_.Hz,className:_.Hz,ariaLabel:_.Hz}});var aG=function(){var M=_.Q.apply(this,arguments)||this;M.animationRef={};M.delhiIconsEnabled=_.w("enable_web_delhi_icons");return M};
_.l(aG,_.Q);_.N=aG.prototype;
_.N.handlePropertyChange=function(){var M=this.animatedIcon,q=this.active,G=this.isDarkTheme;if(M){var K=this.previousActive!==q;this.previousActive=q;this.animationRef.lottieEl?K&&this.toggleAnimation(q,M.totalFrames):q?this.initializeAnimationAsToggled(M.lottiePlayerProps,M.totalFrames):this.initializeAnimationAsUntoggled(M.lottiePlayerProps);M.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=M.type;this.lottiePlayerProps=this.computeLottiePlayerProps(M,G)}};
_.N.computeLottiePlayerProps=function(M,q){var G=this.deepCloneLottiePlayerProps(M);q?(q=M.nameDarkTheme,M=M.pathDarkTheme):(q=M.name,M=M.path);G.animationConfig.name=q;(q=AC.get(M))?G.animationConfig.animationData=q:G.animationConfig.path=M;return G};
_.N.initializeAnimationAsToggled=function(M,q){M.animationConfig.initialSegment=[q-1,q]};
_.N.initializeAnimationAsUntoggled=function(M){M.animationConfig.initialSegment=void 0};
_.N.toggleAnimation=function(M,q){if(M){var G;(G=this.animationRef.lottieEl)==null||G.playSegments([0,q],!0)}else{var K;(K=this.animationRef.lottieEl)==null||K.playSegments([0,1],!0)}};
_.N.deepCloneLottiePlayerProps=function(M){var q=Object.assign({},M.lottiePlayerProps.animationConfig);M=Object.assign({},M.lottiePlayerProps);M.animationConfig=q;return M};
aG.prototype.handlePropertyChange=aG.prototype.handlePropertyChange;_.T([_.B(),_.r("design:type",Object)],aG.prototype,"animatedIcon",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],aG.prototype,"active",void 0);_.T([_.B(),_.r("design:type",Boolean)],aG.prototype,"isDarkTheme",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],aG.prototype,"animatedIconType",void 0);_.T([_.B(),_.r("design:type",Boolean)],aG.prototype,"previousActive",void 0);
_.T([_.B(),_.r("design:type",Object)],aG.prototype,"lottiePlayerProps",void 0);_.T([_.B(),_.r("design:type",Object)],aG.prototype,"animationRef",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],aG.prototype,"delhiIconsEnabled",void 0);_.T([_.KT("animatedIcon","active","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aG.prototype,"handlePropertyChange",null);_.T([_.aO({is:"yt-animated-icon",disableElementRegistration:!0})],aG);
_.z(aG,"yt-animated-icon",function(){if(HQM===void 0){var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-animated-icon--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.core.yt_animated_icon.yt.animated.icon.css.js--\x3e<ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope yt-animated-icon"></ytd-lottie-player>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;FAM===void 0&&(FAM=document.createElement("template"));var K=FAM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);HQM=M}M=HQM;return M},{mode:2});var $d$;var sol;var S$i=_.U(function(M){var q=_.yw("span"),G=T_(function(){return{value:null,cancelled:!1}});
_.m_(function(){G.cancelled=!0});
var K=_.gY(M.data,{equals:function(n,E){return n.iconName===E.iconName&&n.iconStyle===E.iconStyle&&n.iconSize===E.iconSize&&n.iconSetName===E.iconSetName&&n.iconSelected===E.iconSelected}},"AoOoyf");
_.zL(function(){var n,E=(n=M.options)==null?void 0:n.call(M);mF$(q,G,K(),E)},"Tie9e");
return _.W("span",{class:"yt-icon-shape",el:q})},"aa");
S$i.idomCompat=!0;var nij=["youtube_fill","youtube_outline"];var MaM=new _.Bn({type:"iconset",value:void 0}),oG=function(){var M=_.Q.apply(this,arguments)||this;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.iconName="";M.iconsetName="yt-icons";M.iconset=null;M.missingIconSet=!1;M.iconType=null;M.iconShapeDataSignal=_.lQ(void 0,void 0,"ZwOn2");M.renderingOptionsSignal=_.lQ({iconWidth:"100%",iconHeight:"100%",iconFilter:M.iconFilter,iconColor:M.gradientColor},void 0,"UgqF6d");M.wizHasRendered=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return M};
_.l(oG,_.Q);oG.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
oG.prototype.handlePropertyChange=function(){var M=this,q,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J;return _.L(function(Z){switch(Z.nextAddress){case 1:if(q=!M.icon&&!M.iconName||!M.isAttached)return Z.return();G=M;K=G.icon;n=G.size;E=G.defaultToFilled;p=G.active;y=G.targetContainer;M.toggleContainerClass(y);_.w("kevlar_use_wil_icons")&&K&&(Y=wC4(K),M.iconType=Y.length?Y[1]:null);if(K){Z.jumpTo(2);break}M.iconsetName="";M.iconName="";return Z.yield(M.renderIcon(y,K),3);case 3:return Z.return();case 2:A=qk9(K);
v=wC4(A);v.length&&(M.iconsetName=v[0],M.iconName=v[1]);if(!_.w("kevlar_use_wil_icons")){Z.jumpTo(4);break}h=oG;t=G82;O=M.iconType;a=M.active;g=M.defaultToFilled;D=M.size;J=M.iconsetName;return Z.yield(Kff(),6);case 6:return Z.yield(t.call(h,O,a,g,D,J,Z.yieldResult),5);case 5:M.iconShapeData=Z.yieldResult;case 4:if(M.shouldRenderIconShape(y)){Z.jumpTo(7);break}return Z.yield(M.determineIconSet(A,p,E,n,y),7);case 7:return Z.yield(M.renderIcon(y,K),0)}})};
oG.prototype.toggleContainerClass=function(M){M?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var qk9=function(M){return!_.w("default_to_innertube_icon")||M.indexOf(":")>0?M:_.H4(M)};
_.N=oG.prototype;_.N.determineIconSet=function(M,q,G,K){var n=this;return _.L(function(E){return E.nextAddress==1?_.w("kevlar_system_icons")||_.R9("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.R9("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?E.yield(n.switchToYtSysIconset(M,q,G,K),3):E.jumpTo(2):E.nextAddress!=2?E.return():E.yield(n.useYtSysIconsetForMissingIcons(M,q,G,K),0)})};
_.N.switchToYtSysIconset=function(M,q,G,K){var n=this,E,p,y,Y,A,v,h;return _.L(function(t){switch(t.nextAddress){case 1:if(!M||n.iconsetName!=="yt-icons"&&n.iconsetName!=="yt-sys-icons"){t.jumpTo(0);break}E=wC4(M);p=E[1];var O=p;if(cPF(O))p=O;else{var a=O=O.toLowerCase();(O=LII.get(O))&&(a=O);p=a}_.w("enable_polymer_icons_replace_underscores_dash")&&p.includes("_filled")&&(p=p.replace(/_filled/g,"-filled"));return t.yield(Fs(p,!0),3);case 3:return y=t.yieldResult,t.yield(Fs(p,!1),4);case 4:if((Y=
t.yieldResult)||q&&y)n.iconsetName="yt-sys-icons";n.iconName=n.getIconName(p,q,G,Y,y);if(K===24){t.jumpTo(0);break}A="yt-sys-icons"+K+":"+n.iconName;return t.yield(Fs(A,!1,!0),6);case 6:return v=t.yieldResult,t.yield(Fs(A,!0,!0),7);case 7:h=t.yieldResult;n.iconName=n.getIconName(p,q,G,v,h);if(!q&&v||q&&h)n.iconsetName="yt-sys-icons"+K;_.gL(t)}})};
_.N.getIconName=function(M,q,G,K,n){M.includes("-filled")&&(M=M.replace("-filled",""));return n&&(q||G)?M+"-filled":M};
_.N.useYtSysIconsetForMissingIcons=function(M,q,G,K){var n=this,E,p;return _.L(function(y){if(y.nextAddress==1)return n.iconsetName!=="yt-icons"?y.jumpTo(0):y.yield(Fs(n.iconName,!1,!1,!0),3);if(y.nextAddress!=4)return E=y.yieldResult,y.yield(Fs(n.iconName,!1),4);p=y.yieldResult;if(E||!p)return y.jumpTo(0);n.iconsetName="yt-sys-icons";return y.yield(n.switchToYtSysIconset(M,q,G,K),0)})};
_.N.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var Kff=function(){return _.L(function(M){try{return M.return(_.AL().resolve(_.eo))}catch(q){return M.return(new Promise(function(G){_.M5().parkOrScheduleJob(function(){G(_.AL().resolve(_.eo))},2,"ci")}))}})},G82=function(M,q,G,K,n,E){K=K===void 0?24:K;
if(M){M=M.toLowerCase();var p=M.endsWith("_filled")||M.endsWith("-filled");q={iconName:M,iconStyle:(q===void 0?0:q)||(G===void 0?0:G)||p?"youtube_fill":"youtube_outline",iconSize:K,iconSetName:n===void 0?"yt-icons":n};G=!!E.resolveIcon(q);G||(q.iconSize=void 0,G=!!E.resolveIcon(q));!G&&p&&(q.iconName=M.substring(0,M.length-7),q.iconSize=K,G=!!E.resolveIcon(q),G||(q.iconSize=void 0,G=!!E.resolveIcon(q)));G||(q.iconStyle=void 0,G=!!E.resolveIcon(q));G||_.j1(new _.bj("Icon not supported",{iconName:q.iconName,
iconStyle:q.iconStyle,iconSize:q.iconSize,iconType:M}));return G?q:void 0}};
_.N=oG.prototype;_.N.shouldRenderIconShape=function(M){if(!_.w("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;M=this.getContainer(M);return!bmi(M,this.icon)};
_.N.renderIcon=function(M,q){var G=this,K,n,E,p,y,Y,A,v;return _.L(function(h){switch(h.nextAddress){case 1:if(q&&G.icon!==q)return h.return();K=G.getContainer(M);n=bmi(K,G.icon);if(G.shouldRenderIconShape(M)&&G.iconType)return G.applyIconShape(n,K),h.return();G.removeIconShape();if(!K)return h.return();G.iconName===""&&G.iconset&&K&&(G.removeStaticIcon(G.iconset,K),n&&G.removeAnimatedIcon(K));if(G.iconName===""&&G.iconset||!G.iconsetName||!MaM)return h.return();G.iconset=MaM.byKey(G.iconsetName);
if(!G.iconset)return G.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.qs(G,G.onIconsetAdded)),h.return();G.missingIconSet&&(G.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.qs(G,G.onIconsetAdded)));p=(E=n||G.isAnimatedIcon?uV$(G.icon):void 0)&&!E.lazyLoad;Y=E&&((y=E)==null?void 0:y.lazyLoad)&&(E.lottiePlayerProps.animationConfig.animationData?!0:AC.get(G.isDarkTheme?E.pathDarkTheme:E.path)?!0:!1);if(p||Y)return G.applyAnimatedIcon(K,E,G.iconset),h.return();if(Y||
(A=E)==null||!A.lazyLoad){h.jumpTo(2);break}v=xFH(E,G.isDarkTheme);G.applyStaticIcon(G.iconset,K,G.iconName,M,n);return h.yield(v,3);case 3:return h.yield(G.renderIcon(G.targetContainer,G.icon),4);case 4:return h.return();case 2:G.applyStaticIcon(G.iconset,K,G.iconName,M,n),_.gL(h)}})};
_.N.getContainer=function(M){var q,G=(q=KNj(this.hostElement))==null?void 0:q.host;q=!!G&&!!G.polymerController;if(!M||q)return M?this.getTargetContainer(M,G):this.hostElement};
_.N.getTargetContainer=function(M,q){var G=_.f_(q).querySelector("#"+M);G||(M=new _.bj("yt-icon container missing",q.is,M),_.T6(M));return G};
_.N.applyStaticIcon=function(M,q,G,K,n){n&&this.removeAnimatedIcon(q);this.removeIconShape();n=n&&!!this.iconType&&!!this.iconShapeData&&_.w("kevlar_use_wil_icons");try{n?this.applyIconShape(!1,q):M.applyIcon(q,G)}catch(E){this.handleError(E,K,q)}};
_.N.applyIconShape=function(M,q){this.iconset&&q&&(this.removeStaticIcon(this.iconset,q),M&&this.removeAnimatedIcon(q));M={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter,iconColor:this.gradientColor};var G=_.k(this.iconShapeDataSignal);q=G.next().value;G=G.next().value;var K=_.k(this.renderingOptionsSignal),n=K.next().value;K=K.next().value;G(this.iconShapeData);K(M);if(!this.wizHasRendered)for(this.wizHasRendered=!0,M=_.k(Tfy(q,n)).next().value;M.firstChild;)_.f_(this.hostElement).appendChild(M.firstChild)};
_.N.removeIconShape=function(){if(_.w("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.N.removeStaticIcon=function(M,q){M.removeIcon(q)};
_.N.applyAnimatedIcon=function(M,q,G){this.removeStaticIcon(G,M);this.removeIconShape();var K;G=this.animatedIconElement&&((K=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:K.type)===q.type;if(this.animatedIconElement&&G){this.animatedIconElement.polymerController.animatedIcon=q;var n;((n=this.animatedIconElement)==null?void 0:n.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(M),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=q,this.animatedIconElement.polymerController.active=this.active,_.w("delhi_modern_web_player_icons")?(q=JWD(M,this.icon)&&M.closest("yt-player-quick-action-buttons")?{useDarkTheme:!0}:void 0,this.animatedIconElement.polymerController.isDarkTheme=q?q.useDarkTheme:this.isDarkTheme):this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.w("kevlar_use_wil_icons")?
M.insertBefore(this.animatedIconElement,M.childNodes[0]):(M=_.f_(M),M.insertBefore(this.animatedIconElement,M.childNodes[0]))};
_.N.removeAnimatedIcon=function(M){_.w("kevlar_use_wil_icons")?this.animatedIconElement&&M.contains(this.animatedIconElement)&&M.removeChild(this.animatedIconElement):(M=_.f_(M),this.animatedIconElement&&M.contains(this.animatedIconElement)&&M.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.N.handleError=function(M,q,G){_.V2(M,this.iconName,q,G);q=bmi(G,this.icon);var K=!1;window.location.href.includes("JpymaW6Lh2w")?K=!0:G._svgIcon&&(G=(G=G._svgIcon.parentNode)?G.tagName:"unknown",_.V2(M,G),G==="YT-ICON"&&M.name==="NotFoundError"?K=!0:M.name==="NotFoundError"&&q&&(K=!0));K?_.j1(M):_.T6(M)};
_.Yd.Object.defineProperties(oG,{template:{configurable:!0,enumerable:!0,get:function(){if(sol===void 0){var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;
$d$===void 0&&($d$=document.createElement("template"));var K=$d$;G.call(q,K.content.cloneNode(!0),M.content.firstChild);sol=M}M=sol;return M}}});
oG.prototype.handlePropertyChange=oG.prototype.handlePropertyChange;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],oG.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",String)],oG.prototype,"icon",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],oG.prototype,"active",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],oG.prototype,"defaultToFilled",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],oG.prototype,"isAnimatedIcon",void 0);
_.T([_.B({value:24}),_.r("design:type",Number)],oG.prototype,"size",void 0);_.T([_.B({value:""}),_.r("design:type",String)],oG.prototype,"targetContainer",void 0);_.T([_.B(),_.r("design:type",Object)],oG.prototype,"animatedIconElement",void 0);_.T([_.B(),_.r("design:type",Object)],oG.prototype,"isDarkTheme",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],oG.prototype,"ariaHidden",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],oG.prototype,"ariaLabel",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],oG.prototype,"role",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],oG.prototype,"tabindex",void 0);_.T([_.B(),_.r("design:type",String)],oG.prototype,"style",void 0);_.T([_.B(),_.r("design:type",String)],oG.prototype,"iconFilter",void 0);_.T([_.B(),_.r("design:type",String)],oG.prototype,"gradientColor",void 0);
_.T([_.KT("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme","gradientColor","iconFilter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],oG.prototype,"handlePropertyChange",null);_.T([_.aO({is:"yt-icon",noInjection:!0})],oG);var rWy="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),VZ4=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var nGp={};nGp.YtPlaintextBehavior=[_.X9,{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(M){M.preventDefault();M=M.clipboardData.getData("text/plain");document.execCommand("insertText",!1,M)},
preventRichTextFormatting_:function(M){_.sv&&(M=M.detail.keyboardEvent,M.stopImmediatePropagation(),M.preventDefault())}}];var EGI;var NCP;var lA=function(){var M=_.Q.apply(this,arguments)||this;M.ignoreShadyDom=!1;M.hasChange_=!1;M.hasSetTitle_=!1;M.useIOObserverForVisibilityLogging_=_.w("kevlar_use_vimio_behavior")&&_.R9("INNERTUBE_CLIENT_NAME")==="WEB";M.ytFormattedStringObserverHandlerKeys_=void 0;return M};
_.l(lA,_.Q);_.N=lA.prototype;_.N.created=function(){this.useIOObserverForVisibilityLogging_=_.w("kevlar_use_vimio_behavior")&&_.R9("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.N.ready=function(){_.R9("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_()};
_.N.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.N.detached=function(){this.unobserveIOObservers_()};
_.N.clearContents_=function(){for(var M=this.getRoot(),q=M.lastChild;q&&q.tagName!=="STYLE";){try{M.removeChild(q)}catch(G){break}q=M.lastChild}};
_.N.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var M=_.k(this.ytFormattedStringObserverHandlerKeys_),q=M.next();!q.done;q=M.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(q.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.N.resetForAttributedString=function(){var M=this.getRoot();!M.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),M.appendChild(this.ytAttributedStringElementRef))};
_.N.resetForFormattedString=function(){var M=this.getRoot(),q=M.querySelector("yt-attributed-string");q&&(this.ytAttributedStringElementRef=M.removeChild(q))};
_.N.textChanged=function(){this.textChanged_(this.text)};
_.N.textChanged_=function(M){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!M||!M.runs&&!M.simpleText;if(_.w("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var q=this.hostElement.firstChild;q&&q.nodeName==="FONT";){var G=q;q=q.nextSibling;this.hostElement.removeChild(G)}q=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
G=M.simpleText;var K;!G&&((K=M.runs)==null?void 0:K.length)===1&&this.isSimpleString_(M.runs[0])&&(G=M.runs[0].text);G!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.R9("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(G!==void 0){try{q.textContent=G}catch(n){}q.textContent||(this.isEmpty=!0)}else M=M.runs,G!==void 0&&(M=[{text:G}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),M&&this.updateText_(M),
q.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.N.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)};
_.N.computeAriaLabel_=function(M){return M};
_.N.computeEllipsisTruncateStyling=function(M,q){return M&&!q};
_.N.computeUseAttributedString=function(M){return _.w("web_replace_formatted_with_attributed_string")&&kGi(M)&&!this.disableAttributedString&&!this.enableContentEditable};
_.N.setNodeStyle_=function(M,q){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.w("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?q.removeAttribute("dir"):q.setAttribute("dir","auto");q.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");q.style.color="";var G=null;this.noStyles||(M.bold&&(q.classList.add("bold"),G="bold"),M.deemphasize&&(q.classList.add("deemphasize"),G="deemphasize"),M.italics&&q.classList.add("italic"),
M.strikethrough&&q.classList.add("strikethrough"),M.errorUnderline&&(q.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),M.bracket&&q.classList.add("bracket"),M.textColor&&(q.style.color=_.w2(M.textColor)));G!==q.getAttribute("style-target")&&(G?q.setAttribute("style-target",G):q.removeAttribute("style-target"))};
_.N.setUpVisibilityLogging_=function(M,q){var G=this;this.setNodeTrackingParams_(M,q);var K;((K=q.data)==null?0:K.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(M=this.ytRendererBehavior.visibilityObserver.observe(q,function(n){var E=G.ytRendererBehavior.getVisibilityLogger();E&&E.reportShown(n)},this.ytRendererBehavior.visibilityOptionVisible_),q=this.ytRendererBehavior.visibilityObserver.observe(q,function(n){var E=G.ytRendererBehavior.getVisibilityLogger();
E&&E.reportHidden(n)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(M),this.ytFormattedStringObserverHandlerKeys_.push(q))};
_.N.setNodeTrackingParams_=function(M,q){q.data||(q.data={});if((M=M.loggingDirectives?M.loggingDirectives.trackingParams:null)||q.data.trackingParams)q.data.trackingParams=M};
_.N.computeHasLinkOnly_=function(M){return!(!M||M.length!==1||this.noEndpoints||!M[0].navigationEndpoint)};
_.N.getRoot=function(){var M=this.buildScopeDomOptions();return this.enableContentEditable?_.f_(_.f_(this.hostElement,M).querySelector("[contenteditable]")):_.f_(this.hostElement,M)};
_.N.fixContenteditableScope=function(){var M=function(q){q&&(q.nodeType===1&&q.classList&&(q.classList.add("style-scope"),q.classList.add("yt-formatted-string")),q.childNodes&&q.childNodes.forEach(function(G){M(G)}))};
M(this.getRoot())};
_.N.updateText_=function(M){for(var q=M.length,G=this.getRoot(),K=G.firstChild;K&&K.nodeName==="STYLE";)K=K.nextSibling;for(var n=0;n<q&&K;){var E=M[n],p=_.w("remove_cr_char")&&E.text?E.text.replace("\r",""):E.text;if(this.isSimpleString_(E)&&!this.useMixedDirectionFormattedStrings)if(K.nodeName==="#text"){K.textContent!=p&&(K.textContent=p);n++;K=K.nextSibling;continue}else break;if(_.C(E,OE))break;else if(!this.noEndpoints&&E.navigationEndpoint){if(K.nodeName!=="A")break;this.setDataOnAnchor_(K,
E.navigationEndpoint)}else if(K.nodeName!=="SPAN")break;this.setNodeStyle_(E,K);this.setUpVisibilityLogging_(E,K);K.textContent!=p&&(K.textContent=p);n++;K=K.nextSibling}if(K)for(E=G.lastChild,K=n?K.previousSibling:null;E&&E!=K;){try{G.removeChild(E)}catch(y){break}E=G.lastChild}n!==q&&this.addTextNodes_(M,n)};
_.N.addTextNodes_=function(M,q){for(var G=document.createDocumentFragment(),K=M.length;q<K;q++){var n=M[q],E=_.w("remove_cr_char")&&n.text?n.text.replace("\r",""):n.text;if(this.isSimpleString_(n)&&!this.useMixedDirectionFormattedStrings)G.appendChild(document.createTextNode(E));else{var p=_.C(n,OE);if(p){if(p.image){var y=document.createElement("img");p.isCustomEmoji||y.classList.add("small-emoji");y.classList.add("emoji");p.isCustomEmoji&&(y.dataset.emojiId=p.emojiId);y.src=_.TE(p.image.thumbnails,
this.emojiSize);(n=this.get("image.accessibility.accessibilityData.label",p))?y.alt=n:p.shortcuts&&p.shortcuts.length>0?y.alt=p.shortcuts[0]:p.emojiId&&(y.alt=p.emojiId);G.appendChild(y);this.hasEmoji=!0}}else!this.noEndpoints&&n.navigationEndpoint?(y=document.createElement("a"),y.classList.add("yt-simple-endpoint"),y.setAttribute("spellcheck","false"),this.setDataOnAnchor_(y,n.navigationEndpoint)):y=document.createElement("span"),this.setNodeStyle_(n,y),this.setUpVisibilityLogging_(n,y),y.appendChild(document.createTextNode(E)),
G.appendChild(y)}}this.getRoot().appendChild(G)};
_.N.isSimpleString_=function(M){return(this.noEndpoints||!M.navigationEndpoint)&&!_.C(M,OE)&&(this.noStyles||!(M.bold||M.deemphasize||M.italics||M.strikethrough||M.errorUnderline||M.bracket||M.textColor))&&!M.loggingDirectives};
_.N.getRawText=function(){return _.UX(this.text)};
_.N.getFirstRunText=function(){var M;if(((M=this.text)==null?0:M.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.N.setFirstRunText=function(M){var q;((q=this.text)==null?0:q.runs)&&this.text.runs[0]&&(this.text.runs[0].text=M,this.textChanged_(this.text))};
_.N.setDataOnAnchor_=function(M,q){var G=this;!_.w("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(q)||this.isSignalServiceEndpoint_(q)?(M.onclick=this.serviceEndpointHandler_(q),Vk(M,"#")):$Aj({text:this.text,command:q},function(){Lge(M,q,G.target)})};
_.N.isServiceEndpoint_=function(M){var q;return!((q=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null||!q.sendPost)};
_.N.isSignalServiceEndpoint_=function(M){return!!_.C(M,_.sl)};
_.N.serviceEndpointHandler_=function(M){var q=this;return function(G){_.fx(q.hostElement,[M]);G.preventDefault()}};
_.N.overrideAriaLabelChanged_=function(){var M=this.getRoot();this.enableContentEditable&&M&&M.setAttribute("aria-label",this.overrideAriaLabel)};
_.N.enableContentEditableChanged_=function(){var M=this,q=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),q=_.f_(this.hostElement,q),!q.lastChild||q.lastChild instanceof HTMLElement&&q.lastChild.id!=="contenteditable-root"){var G=document.createElement("div");G.id="contenteditable-root";G.setAttribute("contenteditable","true");G.setAttribute("dir","auto");G.onfocus=function(){M.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
q.appendChild(G);this.overrideAriaLabel&&G.setAttribute("aria-label",this.overrideAriaLabel)}}else G=_.Fw(this.hostElement).firstChild,G instanceof HTMLElement&&G.id==="contenteditable-root"&&_.f_(this.hostElement,q).removeChild(G)};
_.N.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.N.getNodesForVisibilityLogging_=function(){return _.jh(this.getRoot().childNodes,function(M){var q;return!((q=M.data)==null||!q.trackingParams)})};
_.N.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.N.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var M=this.ytRendererBehavior.getVisibilityLogger();M&&this.getNodesForVisibilityLogging_().forEach(function(q){M.reportShown(q)})}};
_.N.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var M=this.ytRendererBehavior.getVisibilityLogger();M&&this.getNodesForVisibilityLogging_().forEach(function(q){M.reportHidden(q)})}};
_.Yd.Object.defineProperties(lA.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.w("enable_mixed_direction_formatted_strings")}}});
lA.prototype.enableContentEditableChanged_=lA.prototype.enableContentEditableChanged_;lA.prototype.overrideAriaLabelChanged_=lA.prototype.overrideAriaLabelChanged_;lA.prototype.ellipsisTruncateChanged_=lA.prototype.ellipsisTruncateChanged_;lA.prototype.textChanged=lA.prototype.textChanged;_.T([_.P(nGp.YtPlaintextBehavior),_.r("design:type",Object)],lA.prototype,"ytPlaintextBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],lA.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],lA.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],lA.prototype,"text",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"noEndpoints",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"noStyles",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],lA.prototype,"isDarkTheme",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],lA.prototype,"splitLines",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],lA.prototype,"forceDefaultStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],lA.prototype,"ellipsisTruncate",void 0);_.T([_.B(),_.r("design:type",Object)],lA.prototype,"ignoreShadyDom",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.r("design:type",Boolean)],lA.prototype,"ellipsisTruncateStyling",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.r("design:type",String)],lA.prototype,"ariaLabel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],lA.prototype,"isEmpty",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.r("design:type",Boolean)],lA.prototype,"hasLinkOnly_",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"hasEmoji",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"disableAttributedString",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"isOverlay",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"linkInheritColor",void 0);
_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"noPreWrap",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"userInput",void 0);_.T([_.B({value:16}),_.r("design:type",Number)],lA.prototype,"emojiSize",void 0);_.T([_.B(),_.r("design:type",String)],lA.prototype,"target",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"enableContentEditable",void 0);_.T([_.B(),_.r("design:type",String)],lA.prototype,"overrideAriaLabel",void 0);
_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"respectHtmlDir",void 0);_.T([_.B(),_.r("design:type",Boolean)],lA.prototype,"respectLangDir",void 0);_.T([_.c("plaintextOnly"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],lA.prototype,"useMixedDirectionFormattedStrings",null);_.T([_.B({computed:"computeUseAttributedString(text)"}),_.r("design:type",Boolean)],lA.prototype,"useYtAttributedString",void 0);
_.T([_.KT("text"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lA.prototype,"textChanged",null);_.T([_.KT("ellipsisTruncate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lA.prototype,"ellipsisTruncateChanged_",null);_.T([_.KT("overrideAriaLabel"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lA.prototype,"overrideAriaLabelChanged_",null);
_.T([_.KT("enableContentEditable"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lA.prototype,"enableContentEditableChanged_",null);_.T([_.aO({is:"yt-formatted-string",disableElementRegistration:!0})],lA);
_.z(lA,"yt-formatted-string",function(){if(NCP===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;EGI===void 0&&(EGI=document.createElement("template"));var K=EGI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);NCP=M}M=NCP;return M});var k8x;var p1x;var y6v;var LfS;var X$=function(){var M=_.Q.apply(this,arguments)||this;M.focused=!1;M.disabled=!1;M.isOverlay=!1;return M};
_.l(X$,_.Q);X$.prototype.triggerDown=function(){if(!this.disabled){_.HE(this.hostElement,"down",!0);var M;(M=this.currentAnimation)==null||M.cancel()}};
X$.prototype.triggerUp=function(){if(!this.disabled){_.HE(this.hostElement,"down",!1);var M=this.fillElement;var q=this.strokeElement;typeof GroupEffect==="function"?(M=new GroupEffect([Skj(M),TC$(q)]),M=new Animation(M,document.timeline)):M=new Ddp(M,q);this.currentAnimation=M;var G;(G=this.currentAnimation)==null||G.play()}};
_.T([_.ET(".stroke"),_.r("design:type",HTMLElement)],X$.prototype,"strokeElement",void 0);_.T([_.ET(".fill"),_.r("design:type",HTMLElement)],X$.prototype,"fillElement",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],X$.prototype,"focused",void 0);_.T([_.B(),_.r("design:type",Object)],X$.prototype,"disabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],X$.prototype,"isOverlay",void 0);_.T([_.aO({is:"yt-interaction",disableElementRegistration:!0})],X$);
_.z(X$,"yt-interaction",function(){if(LfS===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;y6v===void 0&&(y6v=document.createElement("template"));var K=y6v;G.call(q,K.content.cloneNode(!0),M.content.firstChild);LfS=M}M=LfS;return M},{mode:2});var Pf=function(){return _.Q.apply(this,arguments)||this};
_.l(Pf,_.Q);_.N=Pf.prototype;_.N.ready=function(){var M=this,q=_.f_(this.hostElement).querySelector("#button");q.addEventListener("focus",function(){n9M||(n9M=new KRI);M.keyboardFocused=n9M.isKeyBoardInUse()});
q.addEventListener("blur",function(){M.keyboardFocused=!1;M.rippleUp_()})};
_.N.computeTabIndex_=function(M){return M?-1:0};
_.N.computeButtonAriaPressed_=function(M){if(this.toggleable)return M?"true":"false"};
_.N.rippleDown_=function(){_.f_(this.hostElement).querySelector("#interaction").triggerDown()};
_.N.rippleUp_=function(){_.f_(this.hostElement).querySelector("#interaction").triggerUp()};
_.N.onPressedChanged_=function(){var M=_.Fw(_.f_(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Fw(_.f_(this.hostElement).querySelector("#button")).children[0];M&&(M.active=this.pressed)};
Pf.prototype.onPressedChanged_=Pf.prototype.onPressedChanged_;Pf.prototype.rippleUp_=Pf.prototype.rippleUp_;Pf.prototype.rippleDown_=Pf.prototype.rippleDown_;_.T([_.B(),_.r("design:type",String)],Pf.prototype,"label",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pf.prototype,"disabled",void 0);_.T([_.B(),_.r("design:type",Boolean)],Pf.prototype,"pressed",void 0);_.T([_.B(),_.r("design:type",Object)],Pf.prototype,"toggleable",void 0);
_.T([_.B(),_.r("design:type",Boolean)],Pf.prototype,"untabbable",void 0);_.T([_.B(),_.r("design:type",Boolean)],Pf.prototype,"keyboardFocused",void 0);_.T([_.GQ("down"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pf.prototype,"rippleDown_",null);_.T([_.GQ("up"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pf.prototype,"rippleUp_",null);
_.T([_.KT("pressed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pf.prototype,"onPressedChanged_",null);_.T([_.aO({is:"yt-icon-button",disableElementRegistration:!0})],Pf);
_.z(Pf,"yt-icon-button",function(){if(p1x===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;k8x===void 0&&(k8x=document.createElement("template"));var K=k8x;G.call(q,K.content.cloneNode(!0),M.content.firstChild);p1x=M}M=p1x;return M},{mode:2});var Ykp;var Wfp=function(){var M=document.body,q=M.appendChild;if(Ykp===void 0){var G=document.createElement("template");_.X(G,'\x3c!--css-build:shady--\x3e<svg style="position: absolute; height: 0; width: 0;" aria-hidden="true"><defs><mask id="artwork__b" fill="#fff"><path d="M.24.24v70.2h10.43c0 33 26.76 59.77 59.77 59.77 33 0 59.77-26.7 59.77-59.7h9.7V.3H.3z"></path></mask><mask id="artwork__d" fill="#fff"><path d="M17.3.23C-2.2-.13.26 14.73.26 14.73s-.1 25.85 14.83 28.3c3.9.06 5.2-5.33 5.2-5.33l-2.2 13.24-4.6 31.26s17.9 5.3 33.4 1.02c.1-12.1 4-43.73 3.9-49.96 3.2 3.7 9 24.97 11 51.1 5.8 1.27 9.3 0 9.3 0S70.9 43.12 54.9 21c-4.7-6.87-16.7-6.87-16.7-6.87-7-.98-8.9-.8-16 .18-7.1 1-6.6 9.5-6.6 9.5s1 5.5-1.4 10.2c-8.1-5-7.1-20.5-7.1-20.5s.5-5.6 8.1-6.8c2.3-1.3 3.9-4.7 2-6.3z"></path></mask><mask id="artwork__f" fill="#fff"><path d="M15.65 12.32L2.2 10.67C1.06 10.54.26 9.5.4 8.4L1.18 2C1.32.88 2.35.07 3.48.2l13.45 1.66c1.12.13 1.92 1.16 1.8 2.28l-.8 6.4c-.13 1.1-1.16 1.92-2.28 1.78z"></path></mask><mask id="artwork__h" fill="#fff"><path id="artwork__g" d="M2.97.2l12.6 1.55-.3 11.72-15.03-2.1z"></path></mask><mask id="artwork__j" fill="#fff"><path d="M.2.24c10.98 3.92 12.35 11.63 12.35 11.63l-.44.8S3.3 10.34.2.25z"></path></mask><mask id="artwork__l" fill="#fff"><path d="M.17.27S7.42.9 5.7 4.77l-.7.98C1 8.05.16.27.16.27z"></path></mask><mask id="artwork__n" fill="#fff"><path d="M.24.24H6.4S7.14 4.8 3.32 4.8C-.5 4.8.24.24.24.24z" id="artwork__m"></path></mask><mask id="artwork__p" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__r" fill="#fff"><circle cx="6.46" cy="6.64" r="6.46"></circle></mask><mask id="artwork__t" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__v" fill="#fff"><path d="M28 14.83c0 8.06-6.22 14.6-13.9 14.6-7.7 0-13.9-4-13.9-14.6C.2 6.77 6.4.25 14.1.25 21.77.25 28 6.78 28 14.83z"></path></mask><mask id="artwork__x" fill="#fff"><path d="M.55.4l9.95.24s1.64 9.34-2.4 9.6C-1.47 10.54.54.4.54.4z"></path></mask><mask id="artwork__z" fill="#fff"><circle cx="59.77" cy="59.77" r="59.77"></circle></mask><clipPath id="hashtag_landing_page_empty__a"><path class="hashtag_landing_page_empty__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_empty_dark_mode__a"><path class="hashtag_landing_page_empty_dark_mode__cls-1" d="M0 0h200v200H0z"></path></clipPath><clipPath id="hashtag_landing_page_error__a"><path class="hashtag_landing_page_error__cls-1" d="M-79.58-79.58h459.2v459.2h-459.2z"></path></clipPath><clipPath id="hashtag_landing_page_error__c"><path class="hashtag_landing_page_error__cls-1" d="M189.2 50.73c-44.7 0-83.94 30.59-90.33 67.34-7.88 45.31 26.77 92.29 78 101.2s101.3-23.34 109.2-68.65-28.76-89.53-80.04-98.45a97.63 97.63 0 00-16.75-1.45"></path></clipPath><clipPath id="hashtag_landing_page_error__b"><path class="hashtag_landing_page_error__cls-1" d="M1.49 219.9L124.8 212l-60.67-41.9z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__a"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M-78.75-78.75h457.5v457.5h-457.5z"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__c"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M99.07 118.2c-7.85 45.15 26.68 92 77.76 100.8s100.9-23.25 108.8-68.39-28.69-89.21-79.78-98.1a98.36 98.36 0 00-16.72-1.44c-44.54 0-83.64 30.48-90 67.09"></path></clipPath><clipPath id="hashtag_landing_page_error_dark_mode__b"><path class="hashtag_landing_page_error_dark_mode__cls-1" d="M2.03 219.7l122.87-7.9L64.45 170z"></path></clipPath><mask id="offline_no_content__b" fill="#fff"><use xlink:href="#offline_no_content__a"></use></mask><mask id="offline_no_content__d" fill="#fff"><use xlink:href="#offline_no_content__c"></use></mask><path id="offline_no_content__a" d="M0 194.555V.675h191.961v193.88z"></path><path d="M.668 18.586C8.545 12.047 15.125 3.19 25.082.49v20.673H.668v-2.577z" id="offline_no_content__c"></path><clipPath id="empty_search__clip-path"><path d="M3.43 126.34H227a29.17 29.17 0 0 0-5.06-24c-4.42-6.11-10-12.51-9.71-28.73s-.4-59.23-20.9-67.3c-28.87-11.37-53.18 18.05-71.57 19s-32.31-9.34-45.87-4.5-11.63 16.68-18.17 19.83-20.58.73-25.18 13.8S34.06 77.8 25 83.73c-8.82 5.75-27.62 9.32-21.57 42.61z" fill="none"></path></clipPath><clipPath id="chrome_icon__b"><use overflow="visible" xlink:href="#chrome_icon__a"></use></clipPath><clipPath id="chrome_icon__f"><use overflow="visible" xlink:href="#chrome_icon__e"></use></clipPath><clipPath id="chrome_icon__j"><use overflow="visible" xlink:href="#chrome_icon__i"></use></clipPath><clipPath id="chrome_icon__n"><use overflow="visible" xlink:href="#chrome_icon__m"></use></clipPath><linearGradient id="chrome_icon__c" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__d" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__g" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__h" x1="121.858" x2="136.547" y1="49.804" y2="114.13" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ea6100" stop-opacity=".3"></stop><stop offset=".66" stop-color="#ea6100" stop-opacity="0"></stop></linearGradient><linearGradient id="chrome_icon__k" x1="29.337" x2="81.837" y1="75.021" y2="44.354" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#a52714" stop-opacity=".6"></stop><stop offset=".66" stop-color="#a52714" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__l" cx="668.176" cy="55.948" r="84.078" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><linearGradient id="chrome_icon__o" x1="110.872" x2="52.538" y1="164.495" y2="130.329" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#055524" stop-opacity=".4"></stop><stop offset=".33" stop-color="#055524" stop-opacity="0"></stop></linearGradient><radialGradient id="chrome_icon__p" cx="597.875" cy="48.52" r="78.044" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#3e2723" stop-opacity=".2"></stop><stop offset="1" stop-color="#3e2723" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__q" cx="671.844" cy="96.138" r="87.87" gradientTransform="translate(-576)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#263238" stop-opacity=".2"></stop><stop offset="1" stop-color="#263238" stop-opacity="0"></stop></radialGradient><radialGradient id="chrome_icon__r" cx="34.286" cy="32.014" r="176.746" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".1"></stop><stop offset="1" stop-color="#fff" stop-opacity="0"></stop></radialGradient><circle id="chrome_icon__a" cx="96" cy="96" r="88"></circle><path id="chrome_icon__e" d="M8 184h83.77l38.88-38.88V116H61.36L8 24.48z"></path><path id="chrome_icon__i" d="M96 56l34.65 60-38.88 68H184V56z"></path><path id="chrome_icon__m" d="M21.97 8v40.34L61.36 116 96 56h88V8z"></path><circle id="ring__dot" cx="4" cy="4" r="2"></circle><linearGradient id="premium_standalone_cairo__paint0_linear_6125_21625" x1="2" y1="22" x2="22" y2="2" gradientUnits="userSpaceOnUse"><stop offset="0.3" stop-color="#E1002D"></stop><stop offset="0.9" stop-color="#E01378"></stop></linearGradient></defs></svg><iron-iconset-svg name="backstage"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="hashtag-landing-page"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="live-chat-badges" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="miniplayer" size="24"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="offline-no-content"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="promo-full-height"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="rotten-tomatoes" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="settings"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="shorts" size="32"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="spinners" size="22"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-logos"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons" rtl-mirroring="" size="24" use-global-rtl-attribute=""><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons12" rtl-mirroring="" size="12"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons13" rtl-mirroring="" size="13"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons15" rtl-mirroring="" size="15"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons16" rtl-mirroring="" size="16"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons18" rtl-mirroring="" size="18"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons20" rtl-mirroring="" size="20"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons36" rtl-mirroring="" size="36"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="yt-sys-icons48" rtl-mirroring="" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="ytcp-icons" size="24"><svg><defs></defs></svg></iron-iconset-svg>');
Ykp=G}G=Ykp;q.call(M,G.content)};
document.body?Wfp():window.addEventListener("DOMContentLoaded",Wfp);var A6B=_.DQ(["aria-"]),iA={};iA.YtRenderButtonBehavior=[_.F.YtRendererBehavior,_.OH.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!!_.AL().resolve(_.WR(_.Nt))&&_.w("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 M=this.computeHref_(this.endpoint,!0);M?Vk(this.elements_.endpoint,M):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){M=this.buttonClass.split(" ");M=_.k(M);for(var q=M.next();!q.done;q=M.next())q=q.value,_.HE(this.hostElement,q,!0),this.elements_.button&&_.HE(this.elements_.button,q,!0),this.elements_.text&&_.HE(this.elements_.text,q,!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&&(M=null,this.buttonAccessibility&&(M=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=M:M?_.kq([_.vc(A6B)],this.elements_.button,"aria-label",M):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var M=_.AL().resolve(_.WR(_.Nt));M&&(this.keyboardFocused=M.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.Gz("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,_.YD(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.YD(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(M,q){if(q)for(M=q.split(" "),M=_.k(M),q=M.next();!q.done;q=M.next())q=q.value,_.HE(this.hostElement,q,!1),this.elements_.button&&_.HE(this.elements_.button,q,!1),this.elements_.text&&_.HE(this.elements_.text,q,!1)},
buttonIconChanged_:function(M){this.elements_.icon?M?(this.elements_.icon.icon=M,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.YD(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.el(this.hostElement,"is-paper-button-with-icon",!1)):M&&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"&&_.YD(this.elements_.button).appendChild(this.elements_.icon):_.YD(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.el(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(M){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,M){var q=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(M){case "yt_icon_button_with_label":q=!0;_.HE(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();M=_.YD(this.elements_.button).firstElementChild;
this.elements_.icon=M;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.YD(this.elements_.endpoint).appendChild(this.elements_.button);_.YD(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.Gz("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;_.YD(this.elements_.button).appendChild(this.elements_.text);_.YD(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":q=!0,this.elements_.button=this.getYtIconButton_(),M=_.YD(this.elements_.button).firstElementChild,this.elements_.icon=M,this.setIconActive_(this.elements_.icon),
_.YD(this.elements_.endpoint).appendChild(this.elements_.button)}_.el(this.hostElement,"is-icon-button",q);_.el(this.hostElement,"is-paper-button",!q);_.el(this.hostElement,"has-no-text",!this.elements_.text);this.elements_.button.id="button";this.elements_.button.noink=this.noink;this.elements_.button.disabled=this.disabled;var G;_.f_((G=this.container.hostElement)!=null?G:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.YD(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(M){if(M!=void 0||this.disabled)this.disabled=M,this.elements_.button&&(this.elements_.button.disabled=M)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(M){_.w("kevlar_system_icons")&&M&&this.data&&(this.data.isSelected!==void 0?M.active=this.data.isSelected:this.data.isToggled!==void 0&&(M.active=this.data.isToggled))},
observeBasicPalette_:function(M){_.dk(this.hostElement,M)},
disabledChanged_:function(M){this.data&&this.set("data.isDisabled",M)},
onYtButtonTap_:function(M){if(this.disabled)M.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.fx(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(M=this.disableCommandHandlerOverride,!this.data||!this.data.command||M||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.w("handle_service_request_actions")||_.fx(this.hostElement,[this.serviceEndpoint]),
_.jP(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.w("handle_service_request_actions")?(M=[],this.serviceEndpoint&&M.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&M.push(this.data.command),M.length&&_.FH(this.hostElement,M,this.hostElement)):this.data&&this.data.command&&(M=this.data.command,M.accountUnlinkCommand||M.accountLinkCommand||M.insertAdCommand||M.insertHighlightMarkerCommand||
M.createLivestreamHighlightClipCommand||M.getVideoUploadFeedbackCommand||M.musicDeletePrivatelyOwnedEntityCommand||M.ypcCancelRecurrenceEndpoint||M.getMultiSelectCommandEndpoint?_.fx(this.hostElement,[M]):_.FH(this.hostElement,[M],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 M,q=_.f_((M=this.container.hostElement)!=null?M:this.container);q.lastChild&&q.lastChild.tagName!="STYLE";)try{q.removeChild(q.lastChild)}catch(G){break}},
getYtIconButton_:function(){var M=this.reuseEnabled_()?_.Gz("yt-icon-button"):document.createElement("yt-icon-button"),q=_.YD(M).firstElementChild;if(q&&q.is!="yt-icon"){for(q=_.YD(M);q.lastChild;)q.removeChild(q.lastChild);q=null}q||(q=this.getIcon_(),this.setIconActive_(q),_.YD(M).appendChild(q));return M},
reuseEnabled_:function(){return _.w("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.Gz("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.Gz("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.dZ8={};
_.dZ8.YtButtonBehavior=[iA.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var M=this.data;M&&(this._setEndpoint(this.computeEndpoint_(M)),this._setServiceEndpoint(this.computeServiceEndpoint_(M)),this._setCommand(this.computeCommand_(M)),this._setButtonIcon(this.computeButtonIcon_(M)),this._setButtonText(this.computeButtonText_(M,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(M)),this._setButtonTooltip(this.computeTooltip_(M)),this._setButtonClass(this.computeButtonClass_(M)),this._setIconPositionType(this.computeIconPositionType_(M)),this.updateRenderedElements())},
setPressedState:function(M){var q;if((q=this.elements_)==null?0:q.button)this.elements_.button.pressed=!!M},
computeIconPositionType_:function(M){return M&&M.iconPosition||null},
computeEndpoint_:function(M){var q=M&&M.navigationEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.url"),K=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return q?q:M&&M.command&&M.command.modalEndpoint?M.command:G&&!K&&M.command?M.command:null},
computeServiceEndpoint_:function(M){var q=M&&M.serviceEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return q?q:G&&M.command?M.command:null},
computeCommand_:function(M){return M&&M.command||null},
computeButtonIcon_:function(M){return M&&M.icon&&M.icon.iconType?_.H4(M.icon.iconType):null},
computeButtonText_:function(M,q){return!q&&M&&M.text||null},
computeAccessibility_:function(M){return this.get("accessibilityData.accessibilityData",M)||M&&M.accessibility||(M&&M.text?{label:this.getSimpleString(M.text)}:null)},
computeTooltip_:function(M){return M?M.isDisabled&&M.disabledTooltip||M.tooltip||null:null},
computeButtonClass_:function(M){var q=M&&M.style?M.style.toLowerCase().replace(/_/g,"-")+" ":"";q+=M&&M.size?M.size.toLowerCase().replace(/_/g,"-")+" ":"";M.colorData&&M.colorData.basicColorPaletteData&&M.colorData.basicColorPaletteData.borderColor&&(q+="palette-with-border");return q.trim()}}];var vx={};var vGJ;var h$p;var taI,OBf=function(){return taI!==void 0?taI:taI=document.createElement("template")};
document.head.appendChild(OBf().content);var w1p;var CD9,a7P=function(){return CD9!==void 0?CD9:CD9=document.createElement("template")};
document.head.appendChild(a7P().content);var oGM;var l79,X1x=function(){return l79!==void 0?l79:l79=document.createElement("template")};
document.head.appendChild(X1x().content);var PDx;var iBp=document.head,c6v=iBp.appendChild,gG9;if(PDx===void 0){var BC8=document.createElement("template");_.X(BC8,"\x3c!--css-build:shady--\x3e");BC8.content.insertBefore(X1x().content.cloneNode(!0),BC8.content.firstChild);PDx=BC8}gG9=PDx;c6v.call(iBp,gG9.content);var Qof=document.head,I7$=Qof.appendChild,DZI;if(oGM===void 0){var uqP=document.createElement("template");_.X(uqP,"\x3c!--css-build:shady--\x3e");uqP.content.insertBefore(a7P().content.cloneNode(!0),uqP.content.firstChild);oGM=uqP}DZI=oGM;I7$.call(Qof,DZI.content);var J69=document.head,ZBB=J69.appendChild,bBS;if(w1p===void 0){var UZI=document.createElement("template");_.X(UZI,"\x3c!--css-build:shady--\x3e");UZI.content.insertBefore(OBf().content.cloneNode(!0),UZI.content.firstChild);w1p=UZI}bBS=w1p;ZBB.call(J69,bBS.content);var xZB;_.hC("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");xZB=_.w("web_button_rework")&&_.fX("BUTTON_REWORK")||_.w("web_button_rework_with_live");_.cf=function(){return _.Q.apply(this,arguments)||this};
_.l(_.cf,_.Q);_.cf.prototype.created=function(){this.openPopupConfig=_.R9("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.cf.prototype.onYtNavigate_=function(M){var q=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);q&&(this.ytOpenPopupBehavior.openPopup(q),M.stopPropagation(),M.preventDefault())};
_.Yd.Object.defineProperties(_.cf,{template:{configurable:!0,enumerable:!0,get:function(){if(h$p===void 0){var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
var q=M.content,G=q.insertBefore;vGJ===void 0&&(vGJ=document.createElement("template"));var K=vGJ;G.call(q,K.content.cloneNode(!0),M.content.firstChild);h$p=M}M=h$p;return M}}});
_.cf.prototype.onYtNavigate_=_.cf.prototype.onYtNavigate_;_.T([_.P(_.vf.YtOpenPopupBehavior),_.r("design:type",Object)],_.cf.prototype,"ytOpenPopupBehavior",void 0);_.T([_.P(_.dZ8.YtButtonBehavior),_.r("design:type",Object)],_.cf.prototype,"ytButtonBehavior",void 0);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],_.cf.prototype,"onYtNavigate_",null);
_.T([_.aO({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:xZB})],_.cf);var z$p;var mZl=_.w("web_button_rework")&&_.fX("BUTTON_REWORK")||_.w("web_button_rework_with_live"),gg=function(){var M=_.Q.apply(this,arguments)||this;M.isPressed=!1;M.forceIconButton=!1;M.forceIconOnly=!1;M.forceModernIconButton=!1;M.skipCommandHandling=!1;M.alignByText=!1;M.fitToVisibleBounds=!0;M.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};M.onTap=function(q){_.jP(M.hostElement,"yt-service-request-sent-button-renderer",q)};
return M};
_.l(gg,_.Q);_.N=gg.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.N.onClick=function(M){var q,G=this.disabled||((q=this.data)==null?void 0:q.isDisabled);q=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");G&&q&&M.stopPropagation()};
_.N.computeIcon=function(){var M,q,G=(M=this.data)==null?void 0:(q=M.icon)==null?void 0:q.iconType;if(G)return _.H4(G)};
_.N.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.N.handleUpdateButtonAction=function(M){M=_.C(M,V9d);var q=_.C(M==null?void 0:M.updatedButton,_.f1);if(this.data&&M&&q){var G=this.data;G.targetId&&M.targetId&&G.targetId===M.targetId&&(this.data=q)}};
_.Yd.Object.defineProperties(gg.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var M=this;if(this.data){var q=$Fs({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.jP(M.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.jP(M.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});q.alignByText=this.alignByText;return q}}}});
_.Yd.Object.defineProperties(gg,{template:{configurable:!0,enumerable:!0,get:function(){if(z$p===void 0){var M=document.createElement("template");_.X(M,'\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>');z$p=M}M=z$p;return M}}});
gg.prototype.onClick=gg.prototype.onClick;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],gg.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gg.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],gg.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],gg.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],gg.prototype,"isPressed",void 0);
_.T([_.B(),_.r("design:type",Object)],gg.prototype,"forceIconButton",void 0);_.T([_.B(),_.r("design:type",Object)],gg.prototype,"forceIconOnly",void 0);_.T([_.B(),_.r("design:type",Object)],gg.prototype,"forceModernIconButton",void 0);_.T([_.B(),_.r("design:type",Object)],gg.prototype,"skipCommandHandling",void 0);_.T([_.B(),_.r("design:type",Object)],gg.prototype,"alignByText",void 0);_.T([_.B(),_.r("design:type",Object)],gg.prototype,"buttonTooltipPosition",void 0);
_.T([_.B(),_.r("design:type",Object)],gg.prototype,"fitToVisibleBounds",void 0);_.T([_.B({computed:"computeTooltip(data)"}),_.r("design:type",Object)],gg.prototype,"tooltip",void 0);_.T([_.B(),_.r("design:type",Object)],gg.prototype,"overrides",void 0);_.T([_.B(),_.r("design:type",Boolean)],gg.prototype,"disabled",void 0);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],gg.prototype,"onClick",null);
_.T([_.c("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.r("design:type",Object),_.r("design:paramtypes",[])],gg.prototype,"computedButtonShape",null);_.T([_.aO({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!mZl,cssBuildOptOut:!0}),_.aO({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!mZl,cssBuildOptOut:!0})],gg);var SkP;var TC9;var Bf=function(){var M=_.Q.apply(this,arguments)||this;M.empty_=!0;M.loadTime=Infinity;M.pendingPaint=!1;M.hasChange_=!1;M.oldThumbnail_=null;M.oldDelayedSrc_="";M.objectURL_=null;return M};
_.l(Bf,_.Q);_.N=Bf.prototype;_.N.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.N.ready=function(){var M=this.shouldShowPlaceholder_();_.HE(this.hostElement,"no-transition",!0);M&&this.hostElement.classList.add("with-placeholder")};
_.N.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.N.isThumbPreloaded_=function(M){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",M)};
_.N.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||r6M};
_.N.computeThumbnailSrc_=function(M){return M&&M.thumbnails?_.TE(M.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.N.computeAlt_=function(){var M=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&M||""};
_.N.thumbnailChanged_=function(){var M=_.k([this.thumbnail,this.oldThumbnail_]),q=M.next().value;M=M.next().value;this.oldThumbnail_=q;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(M=this.computeThumbnailSrc_(M),this.computeThumbnailSrc_(q)===M))return;_.w("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(q)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):q&&_.fX("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.yb(this,this.onReload_):_.yb(this,this.onShow_):this.resetImage_();q&&(this.hostElement.style.opacity=""+q.opacity)}};
_.N.delayedSrcChanged_=function(){var M=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===M||this.resetImage_()};
_.N.setSrc_=function(M){M?(_.f_(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.f_(this.hostElement).querySelector("#img").src=M):(_.f_(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.N.resetImage_=function(){soF(this.hostElement);this.empty_=!0;this.setSrc_(r6M);this.ytRendererBehavior.invalidate(!1)};
_.N.observePlaceholderColor_=function(){var M=this.thumbnail&&this.thumbnail.placeholderColor;M?this.hostElement.style.backgroundColor=_.w2(M):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.N.onLoad_=function(){_.f_(this.hostElement).querySelector("#img").src&&_.f_(this.hostElement).querySelector("#img").src!==r6M&&($ds(this.hostElement),this.notifyOnLoaded&&_.jP(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.N.onError_=function(){var M=this;if(_.w("web_use_cache_for_image_fallback"))NCj(_.f_(this.hostElement).querySelector("#img").src).then(function(q){M.objectURL_=_.T3(q).toString();M.setSrc_(M.objectURL_)}).catch(function(){_.w("kevlar_woffle_fallback_image")&&M.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.N.onPrescanVisible=function(){this.onShow_()};
_.N.onVisible=function(){if(_.w("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.N.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var M=this.computeSrc_();M!==_.f_(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(M))}};
_.N.onReload_=function(){this.empty_=!1;var M=this.computeSrc_();M!==_.f_(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(M))};
_.N.shouldShowPlaceholder_=function(){return _.w("kevlar_thumbnail_bg")};
Bf.prototype.observePlaceholderColor_=Bf.prototype.observePlaceholderColor_;Bf.prototype.delayedSrcChanged_=Bf.prototype.delayedSrcChanged_;Bf.prototype.thumbnailChanged_=Bf.prototype.thumbnailChanged_;_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Bf.prototype,"alt",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Bf.prototype,"ariaHidden",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Bf.prototype,"ariaLabel",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Bf.prototype,"hidden",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Bf.prototype,"id",void 0);_.T([_.P(_.jp.YtVisibilityBehavior),_.r("design:type",Object)],Bf.prototype,"ytVisibilityBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Bf.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",String)],Bf.prototype,"delayedSrc",void 0);
_.T([_.B(),_.r("design:type",Object)],Bf.prototype,"thumbnail",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Bf.prototype,"loaded",void 0);_.T([_.B(),_.r("design:type",Boolean)],Bf.prototype,"notifyOnLoaded",void 0);_.T([_.B(),_.r("design:type",Number)],Bf.prototype,"height",void 0);_.T([_.B(),_.r("design:type",Number)],Bf.prototype,"width",void 0);_.T([_.B({value:function(){return"width"}}),
_.r("design:type",String)],Bf.prototype,"dimension",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Bf.prototype,"fit",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Bf.prototype,"fitHeight",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Bf.prototype,"fitWidth",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Bf.prototype,"objectFit",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Bf.prototype,"objectPosition",void 0);_.T([_.B(),_.r("design:type",String)],Bf.prototype,"preferredThumbnail",void 0);_.T([_.B({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.r("design:type",String)],Bf.prototype,"alt_",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Bf.prototype,"sharedTooltipText",void 0);
_.T([_.B(),_.r("design:type",Boolean)],Bf.prototype,"ftlEligible",void 0);_.T([_.B({value:void 0}),_.r("design:type",String)],Bf.prototype,"observeHiddenOption",void 0);_.T([_.B({value:"observe_once"}),_.r("design:type",String)],Bf.prototype,"observePrescanOption",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Bf.prototype,"roundedContainer",void 0);
_.T([_.yO("thumbnail"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bf.prototype,"thumbnailChanged_",null);_.T([_.yO("delayedSrc"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bf.prototype,"delayedSrcChanged_",null);_.T([_.KT("thumbnail.placeholderColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bf.prototype,"observePlaceholderColor_",null);
_.T([_.aO({is:"yt-img-shadow",disableElementRegistration:!0})],Bf);var r6M=_.fX("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.jo()(Bf,"yt-img-shadow",function(){if(TC9===void 0){var M=document.createElement("template");_.X(M,'\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">');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;SkP===void 0&&(SkP=document.createElement("template"));var K=SkP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);TC9=M}M=TC9;return M},{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 KjD;_.Q$=new _.$k("SCREEN_MANAGER_TOKEN");KjD=new _.$k("LOG_INITIAL_SCREEN_TOKEN");var jod=_.Oq({entities:{}});_.IG=_.wk(jod)(jod.entities,{selectSfvAudioItemPlaybackState:function(M,q){var G,K;M=(K=_.sX(M,"sfvAudioItemCurrentlyPlayingEntity",q))!=null?K:void 0;return(G=M==null?void 0:M.sfvAudioItemPlaybackState)!=null?G:void 0},
playlistLoopStateEntitySelector:qJs,toggleMenuServiceItemEntitySelector:GNi});_.Dj=_.U(function(M){function q(se){return _.C(se,_.$N)}
function G(){var se=K().isTogglingDisabled||g()&&K().toggledIsTogglingDisabled,yY=se||t()?g():!g();D(yY);Z(!1);if(!se){var d$;(d$=p)==null||d$(!!yY)}var cy;((cy=E)==null?0:cy())||_.Pg(_.AL().resolve(_.Q$),K().trackingParams);var t4;if(!yY||!q(K().defaultButtonViewModel)||(t4=E)!=null&&t4()){var ay;!q(K().toggledButtonViewModel)||((ay=E)==null?0:ay())||_.Pg(_.AL().resolve(_.Q$),q(K().toggledButtonViewModel).trackingParams)}else _.Pg(_.AL().resolve(_.Q$),q(K().defaultButtonViewModel).trackingParams)}
var K=M.data,n=M.buttonShapeOverrides,E=M.disableExplicitClickLogging,p=M.onToggle,y=M.style,Y=M.useOutlinedIcon,A=M.className,v=function(){var se,yY;return g()?(se=M.animatedTextPropsToggled)==null?void 0:se.call(M):(yY=M.animatedTextPropsDefault)==null?void 0:yY.call(M)},h=_.gY(function(){return v()?Object.assign({},v(),{shouldAnimate:J()}):void 0},void 0,"Zp4uoe"),t=function(){var se;
return((se=m())==null?void 0:se.isToggled)!==void 0},O=_.k(_.GM(function(){var se,yY,d$;
return t()?(se=m())==null?void 0:se.isToggled:(d$=n==null?void 0:(yY=n())==null?void 0:yY.toggled)!=null?d$:K().isToggled})),a=O.next().value;
O=O.next().value;var g=a,D=O;O=_.k(_.GM(function(){var se,yY;return(se=M.animatedTextPropsToggled)==null?void 0:(yY=se.call(M))==null?void 0:yY.shouldAnimate}));
a=O.next().value;O=O.next().value;var J=a,Z=O;a=_.k(_.lQ(!1,void 0,"mq3Zfe"));var V=a.next().value,S=a.next().value,m=_.pp(function(se){a:{var yY=K().entityKey,d$=K().toggledStateEntitySelectorType;if(d$)switch(d$){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":if(!yY)break;se=_.IG.selectSfvAudioItemPlaybackState(se,yY);if(se==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){se={isToggled:!0};break a}if(se){se={isToggled:!1};break a}break;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_COMMENTS_PANEL":se=
{isToggled:_.E7y(se).includes("engagement-panel-comments-section")};break a;case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_LIVE_CHAT_PANEL":se={isToggled:_.E7y(se).includes("engagement-panel-live-chat-item-section")};break a;default:_.j1(new _.bj("Error: entitySelectorType defined but not matched in selector.",se,d$))}se=void 0}return se}),R=function(){return Object.assign({},n==null?void 0:n(),{onToggle:G,
toggleable:!0,toggled:g(),focused:V()})};
return _.W("toggle-button-view-model",{"on:focusin":_.sq(function(){var se=_.AL().resolve(_.WR(_.Nt));se&&S(se.isKeyBoardInUse());return!1}),
"on:focusout":_.sq(function(){S(!1);return!1})},_.W(_.d,{cond:function(){return g()?q(K().toggledButtonViewModel):q(K().defaultButtonViewModel)},
then:function(se){return _.W(_.Wf,{data:se,className:A,style:y,useOutlinedIcon:Y,buttonOverrides:R,animatedTextProps:h})}}))},"ca");
_.Dj.idomCompat={callbacks:{onToggle:!0}};_.S5(_.U(function(M){return _.W("yt-toggle-button-view-model",{class:function(){var q;return(q=M.scopingClassName)==null?void 0:q.call(M)}},_.W(_.Dj,{data:function(){var q;
return(q=M.data)==null?void 0:q.call(M)},
buttonShapeOverrides:function(){var q;return(q=M.overrides)==null?void 0:q.call(M)},
animatedTextPropsDefault:function(){var q;return(q=M.animatedTextPropsDefault)==null?void 0:q.call(M)},
animatedTextPropsToggled:function(){var q;return(q=M.animatedTextPropsToggled)==null?void 0:q.call(M)},
disableExplicitClickLogging:function(){var q;return(q=M.disableExplicitClickLogging)==null?void 0:q.call(M)},
onToggle:function(q){var G;return(G=M.onToggle)==null?void 0:G.call(M,q)},
style:function(){var q;return(q=M.style)==null?void 0:q.call(M)},
useOutlinedIcon:function(){var q;return(q=M.useOutlinedIcon)==null?void 0:q.call(M)},
className:function(){var q;return(q=M.className)==null?void 0:q.call(M)}}))},"da"),"yt-toggle-button-view-model",{props:{data:_.Hz,
buttonShapeOverrides:_.Hz,overrides:_.Hz,animatedTextPropsDefault:_.Hz,animatedTextPropsToggled:_.Hz,disableExplicitClickLogging:_.Hz,onToggle:_.xj,style:_.Hz,useOutlinedIcon:_.Hz,className:_.Hz,scopingClassName:_.Hz}});var uA=function(){return _.Q.apply(this,arguments)||this};
_.l(uA,_.Q);uA.prototype.onTap=function(M){M.stopPropagation();M=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.hY("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:M})):this.ytLiveChatReduxBehavior.dispatch(_.LL("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:M}))};
_.Yd.Object.defineProperties(uA.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.engagementState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=_.C(this.data.toggleButton,_.M1),q;if(Number(((q=this.likeCountState)==null?void 0:q.likeCountIfIndifferentNumber)||"0")===0){var G;q=((G=this.data.likeCountPlaceholder)==null?void 0:G.content)||""}else{var K,n,E;q=((K=this.likeCountState)==null?void 0:(n=K.likeCountIfIndifferent)==null?void 0:n.content)||((E=this.data.likeCountPlaceholder)==null?void 0:E.content)||""}var p,y;G=((p=this.likeCountState)==null?void 0:(y=
p.likeCountIfLiked)==null?void 0:y.content)||"1";p=_.C(M.toggledButtonViewModel,_.$N);return Object.assign({},M,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.C(M.defaultButtonViewModel,_.$N),{title:q})},toggledButtonViewModel:{buttonViewModel:Object.assign({},p,{title:G})}})}}}});
uA.prototype.onTap=uA.prototype.onTap;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],uA.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],uA.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],uA.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],uA.prototype,"data",void 0);
_.T([_.B({selectorArgs:["data.likeCountEntityKey"],selector:NSu}),_.r("design:type",Object)],uA.prototype,"likeCountState",void 0);_.T([_.B({selectorArgs:["data.engagementStateKey"],selector:dFY}),_.r("design:type",Object)],uA.prototype,"engagementState",void 0);_.T([_.c("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uA.prototype,"isLiked",null);
_.T([_.c("data","likeCountState","isLiked"),_.r("design:type",Object),_.r("design:paramtypes",[])],uA.prototype,"toggleButton",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],uA.prototype,"onTap",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],uA);
_.z(uA,"yt-live-chat-like-button-view-model",function(){if(f3M===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Rap===void 0&&(Rap=document.createElement("template"));var K=Rap;G.call(q,K.content.cloneNode(!0),M.content.firstChild);f3M=M}M=f3M;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var VaS;var R$I;var Jv=function(){return _.Q.apply(this,arguments)||this};
_.l(Jv,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Jv.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Jv.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],Jv);
_.z(Jv,"yt-live-chat-paid-message-footer-renderer",function(){if(R$I===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;VaS===void 0&&(VaS=document.createElement("template"));var K=VaS;G.call(q,K.content.cloneNode(!0),M.content.firstChild);R$I=M}M=R$I;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var f7S;var FfI;var HBM;var e$S,$Zf=function(){if(e$S!==void 0)return e$S;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;HBM===void 0&&(HBM=document.createElement("template"));var K=HBM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return e$S=M};var Zj=function(){return _.Q.apply(this,arguments)||this};
_.l(Zj,_.Q);Zj.prototype.onTap=function(M){M.stopPropagation()};
_.Yd.Object.defineProperties(Zj.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=_.C(this.data.replyButton,_.$N),q,G,K,n,E,p,y,Y=Number(((q=this.replyCountState)==null?void 0:q.replyCountNumber)||"0")===0?(G=this.data)==null?void 0:(K=G.replyCountPlaceholder)==null?void 0:K.content:((n=this.replyCountState)==null?void 0:(E=n.replyCount)==null?void 0:E.content)||((p=this.data)==null?void 0:(y=p.replyCountPlaceholder)==null?void 0:y.content)||"",A;return Object.assign({},
M,{title:Y,accessibilityText:(A=this.replyCountState)==null?void 0:A.replyButtonAccessibilityText})}}}});
_.Yd.Object.defineProperties(Zj,{template:{configurable:!0,enumerable:!0,get:function(){return $Zf()}}});
Zj.prototype.onTap=Zj.prototype.onTap;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Zj.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],Zj.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Zj.prototype,"data",void 0);
_.T([_.B({selectorArgs:["data.replyCountEntityKey"],selector:function(M,q){return _.sX(M.entities,"replyCountEntity",q)}}),
_.r("design:type",Object)],Zj.prototype,"replyCountState",void 0);_.T([_.c("data","replyCountState"),_.r("design:type",Object),_.r("design:paramtypes",[])],Zj.prototype,"buttonViewModel",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Zj.prototype,"onTap",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],Zj);
_.z(Zj,"yt-live-chat-reply-button-view-model",function(){return $Zf()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var sWl;var MZ8;var bA=function(){var M=_.Q.apply(this,arguments)||this;M.ariaLabel="";return M};
_.l(bA,_.Q);
bA.prototype.dataChanged=function(){for(var M=(0,_.$U)(_.f_(this.hostElement).querySelector("#image"));M.firstChild;)M.removeChild(M.firstChild);if(this.data)if(this.data.icon){var q=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(q.polymerController.icon="yt-sys-icons:shield-filled",q.polymerController.defaultToFilled=!0):q.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();M.appendChild(q)}else if(this.data.customThumbnail){q=document.createElement("img");
var G=_.j7Y(this.data.customThumbnail.thumbnails,16);G?(q.src=G,M.appendChild(q),q.setAttribute("alt",this.hostElement.ariaLabel||"")):_.j1(new _.bj("Could not compute URL for thumbnail",this.data.customThumbnail))}};
bA.prototype.identity=function(M){return M};
bA.prototype.computeType=function(M){return RO(M||void 0)};
bA.prototype.dataChanged=bA.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],bA.prototype,"data",void 0);_.T([_.B({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.r("design:type",Object)],bA.prototype,"ariaLabel",void 0);_.T([_.B({computed:"computeType(data)",reflectToAttribute:!0}),_.r("design:type",String)],bA.prototype,"type",void 0);
_.T([_.B({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.r("design:type",String)],bA.prototype,"sharedTooltipText",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("live_chat_enable_new_moderator_badge")}}),
_.r("design:type",Boolean)],bA.prototype,"enableNewModeratorBadge",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bA.prototype,"dataChanged",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],bA);
_.z(bA,"yt-live-chat-author-badge-renderer",function(){if(MZ8===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;sWl===void 0&&(sWl=document.createElement("template"));var K=sWl;G.call(q,K.content.cloneNode(!0),M.content.firstChild);MZ8=M}M=MZ8;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var q$$;var GvJ;var UH=function(){return _.Q.apply(this,arguments)||this};
_.l(UH,_.Q);_.N=UH.prototype;_.N.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"}}}}};
_.N.computeBadgesInsideChip=function(M){return M?M.filter(function(q){return RO(q.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.N.computeBadgesOutsideChip=function(M){return this.prependChatBadges||!M?[]:M.filter(function(q){q=RO(q.liveChatAuthorBadgeRenderer);return q!=="verified"&&q!=="owner"})};
_.N.computeBadgesBeforeChip=function(M){return this.prependChatBadges&&M?M.filter(function(q){q=RO(q.liveChatAuthorBadgeRenderer);return q!=="verified"&&q!=="owner"}):[]};
_.N.computeIsHighlighted=function(M,q){var G=!!Yoy(M,"owner"),K=!!Yoy(M,"verified");M=!!Yoy(M,"moderator");return(G||K&&!M)&&!q};
_.N.computeAuthorType=function(M){return LBw(M)};
_.N.computeAuthorClass=function(M,q){return q?(M?M+" ":"")+"single-line":M};
_.N.onSeedColorChanged=function(){_.w("live_chat_author_name_color_usernames")||_.w("live_chat_seed_color_usernames")||_.w("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):_.w("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
UH.prototype.onSeedColorChanged=UH.prototype.onSeedColorChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],UH.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],UH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],UH.prototype,"authorName",void 0);_.T([_.B(),_.r("design:type",Array)],UH.prototype,"authorBadges",void 0);
_.T([_.B({computed:"computeAuthorType(authorBadges)"}),_.r("design:type",String)],UH.prototype,"authorType",void 0);_.T([_.B({computed:"computeAuthorClass(authorType, singleLine)"}),_.r("design:type",String)],UH.prototype,"authorClass",void 0);_.T([_.B({computed:"computeBadgesInsideChip(authorBadges)"}),_.r("design:type",Array)],UH.prototype,"badgesInsideChip",void 0);_.T([_.B({computed:"computeBadgesOutsideChip(authorBadges)"}),_.r("design:type",Array)],UH.prototype,"badgesOutsideChip",void 0);
_.T([_.B({computed:"computeBadgesBeforeChip(authorBadges)"}),_.r("design:type",Array)],UH.prototype,"badgesBeforeChip",void 0);_.T([_.B({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.r("design:type",Boolean)],UH.prototype,"isHighlighted",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],UH.prototype,"singleLine",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],UH.prototype,"disableHighlighting",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],UH.prototype,"dashboardMoneyFeed",void 0);_.T([_.B({value:_.w("live_chat_prepend_badges"),reflectToAttribute:!0}),_.r("design:type",Boolean)],UH.prototype,"prependChatBadges",void 0);_.T([_.B(),_.r("design:type",String)],UH.prototype,"authorNameColor",void 0);_.T([_.ET("#author-name"),_.r("design:type",HTMLDivElement)],UH.prototype,"username",void 0);
_.T([_.KT("authorNameColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UH.prototype,"onSeedColorChanged",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],UH);
_.z(UH,"yt-live-chat-author-chip",function(){if(GvJ===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;q$$===void 0&&(q$$=document.createElement("template"));var K=q$$;G.call(q,K.content.cloneNode(!0),M.content.firstChild);GvJ=M}M=GvJ;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var KC8;var n4P;var xv=function(){var M=_.Q.apply(this,arguments)||this;M.debounceCommand=_.tc(function(q){M.ytComponentBehavior.resolveCommand(q)},1500);
return M};
_.l(xv,_.Q);xv.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var M=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",q,G,K=this.isHearted?(q=this.data)==null?void 0:q.unheartCommand:(G=this.data)==null?void 0:G.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.hY("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:M}));(M=_.aM(K))&&this.debounceCommand(M)}};
_.Yd.Object.defineProperties(xv.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var M,q;if(!((M=this.data)==null?0:(q=M.creatorThumbnail)==null?0:q.sources))return{};M={thumbnails:[]};q={};q.url=this.data.creatorThumbnail.sources[0].url;M.thumbnails.push(q);return M}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.engagementState)==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((q=this.engagementState)==null?void 0:q.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((G=this.engagementState)==null?void 0:G.heartState)==="TOOLBAR_HEART_STATE_HEARTED"}},
label:{configurable:!0,enumerable:!0,get:function(){return this.data?(this.isHearted?this.data.heartedAccessibilityLabel:this.data.unheartedAccessibilityLabel)||"":""}},
heartHoverText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.isHearted?this.data.heartedHoverText:this.data.unheartedHoverText}}});
xv.prototype.onTap=xv.prototype.onTap;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],xv.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xv.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],xv.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],xv.prototype,"data",void 0);
_.T([_.B({selectorArgs:["data.engagementStateKey"],selector:dFY}),_.r("design:type",Object)],xv.prototype,"engagementState",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],xv.prototype,"thumbnailDetails",null);_.T([_.c("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xv.prototype,"isHearted",null);_.T([_.c("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xv.prototype,"isEditable",null);
_.T([_.c("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xv.prototype,"showCreatorView",null);_.T([_.c("data","engagementState"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xv.prototype,"showButton",null);_.T([_.c("data","isHearted"),_.r("design:type",String),_.r("design:paramtypes",[])],xv.prototype,"label",null);_.T([_.c("data","isHearted"),_.r("design:type",Object),_.r("design:paramtypes",[])],xv.prototype,"heartHoverText",null);
_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xv.prototype,"onTap",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],xv);
_.z(xv,"yt-live-chat-creator-heart-view-model",function(){if(n4P===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;KC8===void 0&&(KC8=document.createElement("template"));var K=KC8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);n4P=M}M=n4P;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var zz=function(M,q){this.serviceId=new LhP(M,q)};
zz.prototype.toString=function(){return this.serviceId.toString()};var E4l=function(){this.internalMap={}};
_.N=E4l.prototype;_.N.contains=function(M){return Object.prototype.hasOwnProperty.call(this.internalMap,M)};
_.N.get=function(M){if(this.contains(M))return this.internalMap[M]};
_.N.set=function(M,q){this.internalMap[M]=q};
_.N.getKeys=function(){return Object.keys(this.internalMap)};
_.N.remove=function(M){delete this.internalMap[M]};var mQ=function(){this.mappings=new E4l;this.errorCallbacks=new Set};
mQ.prototype.getModuleId=function(M){return M.serviceId.getModuleId()};
mQ.prototype.get=function(M){var q=this.mappings.get(M.toString());return Nfd(this,q,M)};
mQ.prototype.getMultipleAsync=function(){var M=_.rW.apply(0,arguments),q=this,G=M.map(function(Y){return q.getModuleId(Y)}),K=M.map(function(Y){return q.mappings.get(Y.toString())}).filter(function(Y){return Y});
if(K.length===M.length)return _.HF(K.map(function(Y,A){return Nfd(q,Y,M[A])}));
var n=zi().loadMultiple(G);K=_.oi(G.map(function(Y){return n[Y]}));
var E=document.hidden,p=-1,y=_.tL("get_async_timeout_ms",-1);y>-1&&(p=setTimeout(function(){_.j1(new _.bj("Module timeout.",G,E,document.hidden))},y));
return _.l2(K.then(function(){return M.map(function(Y){return Nfd(q,q.mappings.get(Y.toString()),Y)})}).thenCatch(function(Y){for(var A=_.k(q.errorCallbacks),v=A.next();!v.done;v=A.next())v=v.value,v(Y);
throw Y;}),function(){clearTimeout(p)})};
mQ.prototype.registerService=function(M,q){this.mappings.set(M.toString(),{type:"mapping",value:q});return M};
var Nfd=function(M,q,G){switch(q.type){case "mapping":return q.value;case "factory":return q=q.value(),M.mappings.set(G.toString(),{type:"mapping",value:q}),q;default:return _.F2(q)}};
mQ.prototype.onLoadError=function(M){var q=this;this.errorCallbacks.add(M);return function(){q.errorCallbacks.delete(M)}};
_.Su=new mQ;var kvf=function(){};
_.N=kvf.prototype;
_.N.JSC$14168_getRequest=function(M,q,G){q=q===void 0?{}:q;G=G===void 0?dgM:G;var K=q;if(this.isNavigationCommand()){var n,E=(n=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?void 0:n.url;K=_.vhF(M.clickTrackingParams,!0,!1,E,this.JSC$14168_getClientScreen(K))}else K=_.vhF(M.clickTrackingParams,!1,this.includeCsn);K={context:K};if(n=this.getExtension(M))return this.JSC$14168_buildRequest(K,n,q),n=this.getApiUrl(M),E=Object.assign({},{command:M},this.getRequestConfig(M,q)),K={input:n,requestShell:Da(n),
innerTubeRequest:K,config:E},K.config.authStrategy?K.config.authStrategy.identity=G:K.config.authStrategy={identity:G},(M=this.JSC$14168_getRequestKey(M,q))&&!K.config.requestKey&&(K.config.requestKey=M),K;M=new _.bj("Error: Failed to create Request from Command.",M);_.T6(M)};
_.N.getApiUrl=function(M){var q=_.m4(this.getApiPaths(M)),G;(M=(G=_.C(M.commandMetadata,_.Mg))==null?void 0:G.apiUrl)&&(q=M);return znj(xSw(q))};
_.N.isNavigationCommand=function(){return!1};
_.N.JSC$14168_getClientScreen=function(){};
_.N.JSC$14168_getRequestKey=function(){};
_.N.getRequestConfig=function(){};
_.Yd.Object.defineProperties(kvf.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Tz=function(){};
_.l(Tz,kvf);Tz.prototype.JSC$14175_getStoreKey=function(){};
Tz.prototype.JSC$14168_getRequestKey=function(M,q){q=q===void 0?{}:q;return this.JSC$14175_getStoreKey(M,q)};var rg=function(){};
_.l(rg,Tz);rg.prototype.JSC$14168_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:Da("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
rg.prototype.getApiPaths=function(){return[]};
rg.prototype.getExtension=function(){};
rg.prototype.JSC$14168_buildRequest=function(){};var pwI={},yWf=(pwI.GET_DATASYNC_IDS=Px(rg),pwI);var LCM,Y$I,WC8,Om$,ju,hhl,AW2,v4S,dFB;LCM="tokens consistency service_params mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");Y$I=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.QZ=function(M,q,G,K,n,E,p,y,Y){this.endpointMap=M;this.networkManager=q;this.authService=G;this.responseProcessorMap=K;this.innertubeResponseStore=n;this.contextProcessors=E;this.asyncContextProcessors=p;this.localInnertubeRouter=y;this.requestSequencer=Y;this.inflightRequests=new Map;M.signalEndpointMap||(M.signalEndpointMap={});M.signalEndpointMap=Object.assign({},yWf,M.signalEndpointMap)};
WC8=function(M,q,G,K,n,E,p,y,Y){if(_.QZ.instance!==void 0){if(K=_.QZ.instance,M=[M!==K.endpointMap,q!==K.networkManager,G!==K.authService,n!==K.innertubeResponseStore,E!==K.contextProcessors,p!==K.asyncContextProcessors,y!==K.localInnertubeRouter],M.some(function(A){return A}))throw new _.bj("InnerTubeTransportService is already initialized",M);
}else _.QZ.instance=new _.QZ(M,q,G,K,n,E,p,y,Y)};
_.Dt=function(M,q,G){var K=K===void 0?dgM:K;var n=AW2(M,q);return n?new _.X4(function(E,p){var y,Y,A,v,h;return _.L(function(t){switch(t.nextAddress){case 1:return t.yield(n,2);case 2:y=t.yieldResult;Y=y.JSC$14168_getRequest(q,G,K);if(!Y){p(new _.bj("Error: Failed to build request for command.",q));t.jumpTo(0);break}Xw(Y.input);v=((A=Y.requestShell)==null?void 0:A.mode)==="cors"?"cors":void 0;if(M.authService.syncHeaders){h=dFB(Y.config,v);t.jumpTo(4);break}return t.yield(v4S(Y.config,v),5);case 5:h=
t.yieldResult;case 4:E(hhl(M,Y,h)),_.gL(t)}})}):_.Aj(new _.bj("Error: No request builder found for command.",q))};
Om$=function(M,q,G,K){var n=n===void 0?dgM:n;var E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R;return _.L(function(se){switch(se.nextAddress){case 1:E=L2u(q,M.endpointMap);if(!E)throw new _.bj("Error: No streaming request builder found for command",q);p=E.JSC$14168_getRequest(q,G,n);if(!p)throw new _.bj("Failed to build YtRequest for streaming Command",q);if((y=M.localInnertubeRouter)==null||!y.shouldPreferLocalResponse(p.input,p.innerTubeRequest)){se.jumpTo(2);break}return se.yield(M.localInnertubeRouter.localInnertubeResponse(p.input,
p.innerTubeRequest),3);case 3:return Y=se.yieldResult,A={},Y.playerResponse&&(ju(M,Y.playerResponse,p),A.player=Y.playerResponse,(v=K)==null||v(A,Y)),Y.watchNextResponse&&(ju(M,Y.watchNextResponse,p),A.content=Y.watchNextResponse,(h=K)==null||h(A,Y)),se.return(A);case 2:O=((t=p.requestShell)==null?void 0:t.mode)==="cors"?"cors":void 0;if(M.authService.syncHeaders){a=dFB(p.config,O);se.jumpTo(4);break}return se.yield(v4S(p.config,O),5);case 5:a=se.yieldResult;case 4:return J=(D=(g=p.requestShell)==
null?void 0:g.headers)!=null?D:{},p.requestShell=Object.assign({},p.requestShell,{headers:Object.assign({},J,a)}),Z=Object.assign({},p.requestShell),V=JSON.stringify(p.innerTubeRequest),p.requestShell.method==="POST"&&(Z=Object.assign({},Z,{body:V})),S=function(yY,d$){ju(M,d$.playerResponse||d$.watchNextResponse||d$.reelItemWatchResponse||d$.reelWatchSequenceResponse,p);K==null||K(yY,d$)},m={},se.yield(tZf(M.networkManager,p.input,Z,S),6);
case 6:return m=se.yieldResult,((R=p.config)==null?0:R.responseTick)&&_.oJ(p.config.responseTick),se.return(m)}})};
_.e6=function(M,q,G,K,n){n=n===void 0?{authStrategy:{identity:dgM}}:n;var E=E===void 0?!0:E;var p=function(){};
p=$C4(H1y(G));q.context||(q.context=_.vhF(K,E));return new _.X4(function(y){var Y,A,v,h,t;return _.L(function(O){if(O.nextAddress==1)return Y=xSw(G),A=_.If(Y),M.authService.syncHeaders?(v=dFB(n,A),O.jumpTo(2)):O.yield(v4S(n,A),3);O.nextAddress!=2&&(v=O.yieldResult);h=znj(xSw(G));t={input:h,requestShell:Da(h),innerTubeRequest:q,config:n};y(hhl(M,t,v,p));_.gL(O)})})};
ju=function(M,q,G){var K;if(q&&!(q==null?0:(K=q.sequenceMetaData)==null?0:K.skipProcessing)&&M.responseProcessorMap){K=_.k(LCM);for(var n=K.next();!n.done;n=K.next())n=n.value,M.responseProcessorMap[n]&&M.responseProcessorMap[n].handleResponse(q,G)}};
hhl=function(M,q,G,K){K=K===void 0?function(){}:K;
var n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R,se,yY,d$,cy,t4,ay,bH,iH,oI,r9,X2,EM,LP,Pv,g9,a8,tE,ND,Mx,hd,Kn;return _.L(function(w9){switch(w9.nextAddress){case 1:p=(n=q.config)==null?void 0:(E=n.storeStrategy)==null?void 0:E.storeKey;if(!(p&&M.innertubeResponseStore&&M.innertubeResponseStore.has(p))||((y=q.config)==null?0:(Y=y.storeStrategy)==null?0:Y.disableCache)){w9.jumpTo(2);break}return w9.yield(M.innertubeResponseStore.get(p),3);case 3:if((A=w9.yieldResult)&&!A.isExpired())return w9.return(Promise.resolve(_.zh(A)));
case 2:if(!((v=q)==null?0:(h=v.innerTubeRequest)==null?0:h.context)){w9.jumpTo(4);break}t=q.innerTubeRequest.context;if(!(M.asyncContextProcessors&&M.asyncContextProcessors.length>0)){w9.jumpTo(5);break}O=[];a=_.k(M.asyncContextProcessors);for(g=a.next();!g.done;g=a.next())D=g.value,J=D.processContext(q),J.wrappedPromise_&&O.push(J.wrappedPromise_);if(!(O.length>0)){w9.jumpTo(5);break}return w9.yield(Promise.all(O),5);case 5:Z=_.k(M.contextProcessors||[]),V=Z.next();case 8:if(V.done){w9.jumpTo(4);
break}S=V.value;return w9.yield(S.processContext(t),9);case 9:V=Z.next();w9.jumpTo(8);break;case 4:if((m=M.localInnertubeRouter)==null||!m.shouldPreferLocalResponse(q.input,q.innerTubeRequest)){w9.jumpTo(12);break}return w9.yield(M.localInnertubeRouter.localInnertubeResponse(q.input,q.innerTubeRequest),13);case 13:return R=w9.yieldResult,ju(M,R,q),w9.return(R);case 12:return(d$=(yY=q.config)==null?void 0:yY.requestKey)&&M.inflightRequests.has(d$)?se=M.inflightRequests.get(d$):(cy=JSON.stringify(q.innerTubeRequest),
bH=(ay=(t4=q.requestShell)==null?void 0:t4.headers)!=null?ay:{},q.requestShell=Object.assign({},q.requestShell,{headers:Object.assign({},bH,G)}),iH=Object.assign({},q.requestShell),q.requestShell.method==="POST"&&(iH=Object.assign({},iH,{body:cy})),((oI=q.config)==null?0:oI.requestTick)&&_.oJ(q.config.requestTick),r9=function(){return M.networkManager.fetch(q.input,iH,q.config)},se=M.requestSequencer?wwp(M.requestSequencer,q,r9):r9(),d$&&M.inflightRequests.set(d$,se)),w9.yield(se,14);
case 14:(X2=w9.yieldResult)&&_.w("web_streaming_player")&&Array.isArray(X2)&&(X2=X2[0].playerResponse);if(X2&&"error"in X2&&((EM=X2)==null?0:(LP=EM.error)==null?0:LP.details))for(Pv=X2.error.details,g9=_.k(Pv),a8=g9.next();!a8.done;a8=g9.next())tE=a8.value,(ND=tE["@type"])&&Y$I.indexOf(ND)>-1&&(delete tE["@type"],X2=tE);d$&&M.inflightRequests.has(d$)&&M.inflightRequests.delete(d$);((Mx=q.config)==null?0:Mx.responseTick)&&_.oJ(q.config.responseTick);if(X2||(hd=M.localInnertubeRouter)==null||!hd.canProvideFallbackResponse(q.input,
q.innerTubeRequest)){w9.jumpTo(15);break}return w9.yield(M.localInnertubeRouter.localFallbackInnertubeResponse(q.input,q.innerTubeRequest),16);case 16:X2=w9.yieldResult;case 15:return ju(M,X2,q),((Kn=q.config)==null?0:Kn.processorTick)&&_.oJ(q.config.processorTick),K(),w9.return(X2||void 0)}})};
_.I2=function(M,q){return yBY(q,M.endpointMap)};
AW2=function(M,q){M=YJF(q,M.endpointMap);if(M!==void 0)return Promise.resolve(M)};
v4S=function(M,q){var G,K,n,E;return _.L(function(p){if(p.nextAddress==1){n=(G=M)==null?void 0:(K=G.authStrategy)==null?void 0:K.sessionIndex;var y=p.yield;var Y=_.HF(VgD({sessionIndex:n}));return y.call(p,Y,2)}E=p.yieldResult;return p.return(Promise.resolve(Object.assign({},W2e(q),E)))})};
dFB=function(M,q){var G;M=M==null?void 0:(G=M.authStrategy)==null?void 0:G.sessionIndex;G=VgD({sessionIndex:M});return Object.assign({},W2e(q),G)};var Crl,arS,o4p,lr$,XwJ,Prd,g4B,Bf$,f3,QWf,Irl,cWB,DFS;Crl=0;arS=/tone[1-5]/;o4p=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");lr$="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
XwJ=Number.MAX_SAFE_INTEGER;Prd=RegExp("\ufe0f","g");_.V$=function(M){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;M&&_.im9(this,M)};
_.im9=function(M,q){try{_.cR(q,{context:M,onSuccess:function(K,n){Array.isArray(n)?M.load(n):(K=new _.bj("Emoji manager JSON response was not an array!",{response:n}),_.T6(K))},
onError:function(K){K=new _.bj("Failed to retrieve emoji manager initial JSON data!",{url:q,statusCode:_.au(K).toString()});_.j1(K)}})}catch(K){var G=new _.bj("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:q});
_.j1(G)}};
_.V$.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.V$.prototype.load=function(M,q){if(q)if(M.length)M=M.concat(q.emojis);else{this.emojis=q.emojis;this.emojiMap=q.emojiMap;this.emojiShortcutMap=q.emojiShortcutMap;this.emojiShortcutCharMap=cWB(q);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=q.emojiRegex;return}this.emojis=[].concat(_.Ui(new Set(this.emojis.concat(M))));this.hasInitializedShortcutCharMap=!1;M=Array(this.emojis.length);for(q=0;q<this.emojis.length;q++){var G=this.emojis[q];if(G.emojiId){this.emojiMap[G.emojiId]=G;this.emojiMap[G.emojiId].index=
q;for(var K=0;G.shortcuts&&K<G.shortcuts.length;K++)this.emojiShortcutMap[G.shortcuts[K].toLocaleLowerCase()]=G;M[q]=G.isCustomEmoji&&G.shortcuts?G.shortcuts[0]:G.emojiId}}M.sort(function(n,E){return E.length-n.length});
if(M.length)try{this.emojiRegex=new RegExp(M.join("|").replace("*","\\*"),"gi")}catch(n){this.emojiRegex=/$./}else this.emojiRegex=/$./};
g4B=function(M,q){q=_.k(q);for(var G=q.next();!G.done;G=q.next()){var K=G.value;if(K.emojiId&&M.emojiMap[K.emojiId]){G=Object.assign({},M.emojiMap[K.emojiId],K);M.emojiMap[K.emojiId]=G;var n=void 0;G.index&&((n=M.emojis[G.index])==null?void 0:n.emojiId)===K.emojiId&&(M.emojis[G.index]=G);K=void 0;if((K=G.shortcuts)==null?0:K.length)for(M.hasInitializedShortcutCharMap=!1,K=_.k(G.shortcuts),n=K.next();!n.done;n=K.next())M.emojiShortcutMap[n.value.toLocaleLowerCase()]=G}}};
Bf$=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(_.xx.getInstance(),2);if(K.nextAddress!=3)return(q=K.yieldResult)?K.yield(q.get("ytlc-emoji-pref"),3):K.return();(G=K.yieldResult)&&g4B(M,Object.keys(G).map(function(n){return{emojiId:n,stickyPrefId:G[n]}}).filter(function(n){return!!n.emojiId&&!!n.stickyPrefId}));
_.gL(K)})};
_.RG=function(M,q,G){return(M=M.emojiMap[q])&&(!M.isLocked||G!==void 0&&G)?M:void 0};
f3=function(M,q,G){G=_.RG(M,q,G===void 0?!1:G);var K=q.match("\u200d");G&&M.skinTone!==0&&(M=(K==null?void 0:K.length)===1?_.RG(M,q.replace("\u200d",o4p[M.skinTone]+"\u200d")):_.RG(M,q+o4p[M.skinTone]))&&(G=M);return G};
QWf=function(M,q){var G=M.emojiMap[q];return(G==null?0:G.stickyPrefId)?M.emojiMap[G.stickyPrefId]:f3(M,q)};
_.Vu=function(M,q){M=M.emojiShortcutMap[q.toLocaleLowerCase()];return!M||M.isLocked?null:M};
Irl=function(M,q,G){return cWB(M,G===void 0?!1:G)[q]||{}};
cWB=function(M,q){q=q===void 0?!1:q;if(!M.hasInitializedShortcutCharMap){M.hasInitializedShortcutCharMap=!0;for(var G=0;G<M.emojis.length;G++){var K=M.emojis[G];if(!(K.isLocked||q&&K.isCustomEmoji&&K.emojiId&&!M.pickerCustomEmojiIds.includes(K.emojiId)))for(var n=0;K.shortcuts&&n<K.shortcuts.length;n++){var E=K.shortcuts[n];E.startsWith(":_")&&K.isCustomEmoji&&(M.emojiShortcutCharMap[":_"]==null&&(M.emojiShortcutCharMap[":_"]=Object.create(null)),M.emojiShortcutCharMap[":_"][E]=K);if(!(E.length<3||
!K.isCustomEmoji&&arS.test(E))){var p=E.substr(0,3).toLocaleLowerCase();M.emojiShortcutCharMap[p]==null&&(M.emojiShortcutCharMap[p]=Object.create(null));M.emojiShortcutCharMap[p][E]=K}}}}return M.emojiShortcutCharMap};
_.V$.prototype.createEmoji=function(M,q){q=q===void 0?!0:q;var G=document.createElement("img");M.isCustomEmoji||G.classList.add("small-emoji");G.classList.add("emoji");G.classList.add("yt-formatted-string");G.src=M.image?_.TE(M.image.thumbnails,this.emojiSize)||"":"";var K=void 0;M.image&&M.image.accessibility&&M.image.accessibility.accessibilityData&&(K=M.image.accessibility.accessibilityData.label);G.alt=K?K:(M.isCustomEmoji&&M.shortcuts?M.shortcuts[0]:M.emojiId)||"";M.isCustomEmoji&&(G.dataset.emojiId=
M.emojiId);_.RH&&(G.setAttribute("contenteditable","false"),G.setAttribute("unselectable","on"));q&&(M.shortcuts&&M.shortcuts.length&&G.setAttribute("shared-tooltip-text",M.shortcuts[0]),G.id="emoji-"+Crl++);return G};
_.V$.prototype.createDocumentFragment=function(M,q,G,K){q=q===void 0?!1:q;G=G===void 0?!0:G;K=K===void 0?!1:K;M=M.replace(Prd,"");for(var n=document.createDocumentFragment(),E=0,p,y=0;(p=this.emojiRegex.exec(M))!=null;){var Y=_.RG(this,p[0])||_.Vu(this,p[0]);!Y||Y.isCustomEmoji&&!q||(Y=this.createEmoji(Y,G),E!==p.index&&n.appendChild(document.createTextNode(M.substring(E,p.index))),n.appendChild(Y),E=p.index+p[0].length,y++)}if(!K||y)return n.appendChild(document.createTextNode(M.substr(E))),n};
DFS=function(M,q,G){var K,n,E,p,y,Y,A,v,h;return _.L(function(t){if(t.nextAddress==1){if(!q.emojiId||!M.emojiMap[q.emojiId])return t.return();K=Object.assign({},M.emojiMap[q.emojiId],{stickyPrefId:G});M.emojiMap[q.emojiId]=K;q.index&&((n=M.emojis[q.index])==null?void 0:n.emojiId)===q.emojiId&&(M.emojis[q.index]=K);if((E=q.shortcuts)==null?0:E.length)for(M.hasInitializedShortcutCharMap=!1,p=_.k(q.shortcuts),y=p.next();!y.done;y=p.next())Y=y.value,M.emojiShortcutMap[Y.toLocaleLowerCase()]=K;return t.yield(_.xx.getInstance(),
2)}if(t.nextAddress!=4)return(A=t.yieldResult)?t.yield(A.get("ytlc-emoji-pref"),4):t.jumpTo(0);h=(v=t.yieldResult)!=null?v:{};h[q.emojiId]=G;return t.yield(A.set("ytlc-emoji-pref",h,XwJ),0)})};
_.F$=new _.V$;var Zm2;_.Hf={};
Zm2={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.w("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:_.w("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 ZS(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 M=_.f_(this.hostElement||this).querySelector("#inline-action-button-container");M&&M.setAttribute("aria-hidden","true");this.menuButton=_.f_(this.hostElement).querySelector("#menu-button")},
attached:function(){var M=this.menuButton;M&&(M.addEventListener("focusin",_.qs(this,this.onMenuButtonFocus_)),M.addEventListener("focusout",_.qs(this,this.onMenuButtonBlur_)))},
detached:function(){var M=this.menuButton;M&&(M.removeEventListener("focusin",_.qs(this,this.onMenuButtonFocus_)),M.removeEventListener("focusout",_.qs(this,this.onMenuButtonBlur_)))},
identity:_.ZF,truthy:function(M){return!!M},
computeTimestampString:function(M){return M?M.timestampText?this.getSimpleString(M.timestampText):this.TIME_FORMATTER.format(new Date(M.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(M){return M},
computeMenuVisible_:function(M,q){return M||q},
computeHasInlineActionButtons:function(M){if(!M)return!1;var q,G;return!((q=M.inlineActionButtons)==null||!q.length)||!((G=M.additionalInlineActionButtons)==null||!G.length)},
createDocumentFragmentFromString:function(M){var q=_.F$.createDocumentFragment.bind(_.F$),G;if((G=this.participantsManager)==null||!G.viewerRegex)return q(M);G=document.createDocumentFragment();for(var K=0,n;(n=this.participantsManager.viewerRegex.exec(M))!=null;){if(n.index>0){var E=":"+n[0]+":";if((_.RG(_.F$,E)||_.Vu(_.F$,E))&&M.indexOf(E)===n.index-1)continue}G.appendChild(q(M.substring(K,n.index)));K=document.createElement("span");K.appendChild(q(n[0]));K.classList.add("mention");G.appendChild(K);
K=n.index+n[0].length}G.appendChild(q(M.substring(K)));return G},
createDocumentFragment:function(M){var q=document.createDocumentFragment();if(M.simpleText)return q.appendChild(this.createDocumentFragmentFromString(M.simpleText)),q;if(!M.runs)return q;for(var G=0;G<M.runs.length;G++){var K=M.runs[G];if(K.emoji)q.appendChild(_.F$.createEmoji(K.emoji));else if(K.text)if(K.navigationEndpoint){var n=document.createElement("a");n.classList.add("yt-simple-endpoint");Lge(n,K.navigationEndpoint);_.f_(n).appendChild(this.createDocumentFragmentFromString(K.text));q.appendChild(n)}else q.appendChild(this.createDocumentFragmentFromString(K.text))}return q},
hasModerationOverlayVisible:function(){var M;return((M=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:M.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(M){M.composedPath().some(function(q){return(q=q instanceof Element?q:null)?q.tagName&&(q.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||q.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.w("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(M)},
colorFromDecimal:function(M){return jhu(M)},
markAsDeleted:function(M,q){this.set("data.deletedStateMessage",M);this.set("data.showOriginalContentMessage",q)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(M){if(this.data.contextMenuEndpoint){var q=_.AL().resolve(_.L_),G=this.data.contextMenuEndpoint,K;(K=_.QZ.instance)&&_.I2(K,G)?(q=uV9(q,G),K=_.e6(K,{},q)):K=_.JWx(q,G);K.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);M&&M.stopPropagation()}},
handleGetContextMenuResponse_:function(M){var q=_.QZ.instance;q&&_.I2(q,{liveChatEndpoint:{}})||(M=M.response);M.liveChatItemContextMenuSupportedRenderers&&M.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(M.liveChatItemContextMenuSupportedRenderers.menuRenderer);M.actions&&_.VW(this.hostElement,"yt-live-chat-actions",[M.actions])},
handleGetContextMenuError:function(M){if(M instanceof Error||M instanceof Object||M instanceof String)var q=M;_.T6(new _.bj("Error encountered calling GetLiveChatItemContextMenu",q))},
showContextMenu_:function(M){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:M}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.jP(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.jP(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.Hf.YtLiveChatItemBehavior=[Zm2,_.Sp.YtComponentBehavior,_.vf.YtOpenPopupBehavior];_.eu=function(){};var bm2;var UF2;var xFS;var zhd;var $v=function(){var M=_.Q.apply(this,arguments)||this;M.active=!1;M.identity=_.ZF;return M};
_.l($v,_.Q);$v.prototype.dataChanged=function(){this.active=!1};
$v.prototype.onClick=function(){_.jP(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
$v.prototype.dataChanged=$v.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],$v.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$v.prototype,"active",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$v.prototype,"dataChanged",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],$v);
_.z($v,"yt-live-chat-text-input-field-suggestion",function(){if(zhd===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;xFS===void 0&&(xFS=document.createElement("template"));var K=xFS;G.call(q,K.content.cloneNode(!0),M.content.firstChild);zhd=M}M=zhd;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});_.sO=function(M,q,G){return CustomEvent.call(this,M,{detail:{value:q,path:G}})||this};
_.l(_.sO,CustomEvent);_.MI=function(){var M=_.Q.apply(this,arguments)||this;M.viewerName=null;M.actionMap={"yt-live-chat-actions":"onChatMessage_"};M.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];M.PARTICIPANT_TIME_USEC_=3E8;return M};
_.l(_.MI,_.Q);_.N=_.MI.prototype;_.N.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.N.addParticipant=function(M){var q=_.Zji(this.participants,M,function(K,n){K=K[Object.keys(K)[0]];n=n[Object.keys(n)[0]];K=String(_.UX(K.authorName)).toLowerCase();n=String(_.UX(n.authorName)).toLowerCase();return K<n?-1:K==n?0:1}.bind(this));
if(q>=0){var G=this.participants[q];G[Object.keys(G)[0]].timestampUsec&&this.splice("participants",q,1,M)}else this.splice("participants",-q-1,0,M);M=M[Object.keys(M)[0]];q=_.UX(M.authorName).toLocaleLowerCase();G=q.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(G)||(this.allParticipantsCharMap_[G]={});this.allParticipantsCharMap_[G][q]=M};
_.N.getAuthorsFromPrefix=function(M){return this.allParticipantsCharMap_.hasOwnProperty(M)?this.allParticipantsCharMap_[M]:null};
_.N.computeViewerRegex_=function(M){if(!M)return null;M=M.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var q=M.indexOf("@")===0&&_.w("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(q+M.replace(/ /g,"\\s*")+"|^"+M.replace(/ /g,"\\s*")+"$|^"+M.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+M.replace(/ /g,"\\s*")+"$|(?<=\\s)"+M.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.N.checkForStaleParticipants_=function(){var M=this;this.trimOldParticipants_();this.asyncHandle_&&wju(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.g4(function(){M.checkForStaleParticipants_()},3E4))};
_.N.onChatMessage_=function(M){var q=this,G=Date.now()*1E3;M.forEach(function(K){if(K=_.C(K,XAf)){K=K.item;var n=Object.keys(K)[0];q.SUPPORTED_ITEM_TYPES_.indexOf(n)!=-1&&K[n].timestampUsec>=G-q.PARTICIPANT_TIME_USEC_&&q.addParticipant(K)}},this);
this.checkForStaleParticipants_()};
_.N.trimOldParticipants_=function(){for(var M=Date.now()*1E3,q=this.participants.length-1;q>=0;q--){var G=this.participants[q];G=G[Object.keys(G)[0]];G.timestampUsec&&G.timestampUsec<M-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",q,1)}};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],_.MI.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],_.MI.prototype,"viewerName",void 0);_.T([_.B({computed:"computeViewerRegex_(viewerName)"}),_.r("design:type",Object)],_.MI.prototype,"viewerRegex",void 0);_.T([_.B({value:function(){return[]},
notify:!0}),_.r("design:type",Array)],_.MI.prototype,"participants",void 0);_.T([_.aO({is:"yt-live-chat-participants-manager",noInjection:!0})],_.MI);var mF9=/.*([:@#].*?)$/,qI=/\u00a0/g,S$2=String.fromCharCode(160),TfI={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"},GU=function(){var M=_.Q.apply(this,arguments)||this;M.disabled=!1;M.liveChatRichMessageInput=null;M.messageInput=null;M.isValidWithNoInputText=!1;M.suggestions=[];M.emojiManager=_.F$;M.inputMethodEditorActive=
!1;M.suggestionIndex=-1;M.JSC$14226_lastSuggestionRange=null;return M};
_.l(GU,_.Q);_.N=GU.prototype;_.N.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.N.attached=function(){_.Fa&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.N.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.N.dataChanged=function(){if(!this.ignoreColorMapping){var M=!1,q={},G;for(G in TfI)this.data&&this.data.hasOwnProperty(G)&&(q[TfI[G]]=this.colorFromDecimal(this.data[G]),M=!0);M&&_.sT(this.hostElement,q)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.N.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.N.colorFromDecimal=function(M){M=Math.floor(Number(M));return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
_.N.preventDrag=function(M){M.dataTransfer&&(M.dataTransfer.dropEffect="none");M.preventDefault()};
_.N.preventResize=function(M){M.returnValue=!1};
_.N.onInputChange=function(){var M=this.characterCount,q=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&q&&q.remove();if(!q&&this.characterCount>this.maxCharacterLimit){var G=window.getSelection();if(G){var K=G.getRangeAt(0);G.removeAllRanges();G.addRange(K)}}if(G=this.getCurrentRange())K=this.calculateTextBeforeRange(G),this.completeEmojisInRange(G,K,!0)||this.updateSuggestions(G,K);K=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(K);
_.jP(this.hostElement,"yt-live-chat-message-input-change",K);q&&this.characterCount===0&&q.remove();G&&G.commonAncestorContainer.parentElement.id==="input"&&G.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>M):G&&!G.collapsed&&G.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(M=this.input.childNodes.length-1;M>=0;M--)this.input.childNodes[M].nodeName==="BR"&&this.input.childNodes[M].remove()};
_.N.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.N.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var M=this.getCurrentRange();M&&M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.N.mergeOverflowText=function(M){if(M){var q=document.createRange();q.selectNodeContents(M);q=q.extractContents();this.input.insertBefore(q,M)}};
_.N.checkRangeAtEndOfInput=function(){var M=this.getCurrentRange();if(M){var q=_.f_(this.hostElement).querySelector("#overflow-text"),G=document.createRange();q&&q.previousSibling?q.previousSibling instanceof HTMLImageElement?G.selectNode(q.previousSibling):G.selectNodeContents(q.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?G.selectNode(this.input.lastChild):G.selectNodeContents(this.input.lastChild));G.collapse(!1);return G.isPointInRange(M.startContainer,
M.startOffset)}return!1};
_.N.handleOverflowText=function(M){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var q=_.f_(this.hostElement).querySelector("#overflow-text"),G=this.getCurrentRange();this.input.normalize();M=this.checkRangeAtEndOfInput()&&M;this.mergeOverflowText(q);for(var K,n=0,E=0,p,y=this.input.childNodes,Y=0;Y<y.length;Y++){var A=y[Y];A instanceof Text?(E+=A.textContent.length,E>this.maxCharacterLimit&&(K=A,n=this.maxCharacterLimit+A.textContent.length-E)):A instanceof HTMLImageElement&&
(K=void 0,E=A.dataset.emojiId&&((K=this.data)==null?0:K.emojiCharacterCount)?E+this.data.emojiCharacterCount:E+A.alt.length,K=this.input,n=Y);if(E>this.maxCharacterLimit&&K){p=document.createRange();p.collapse(!1);q?(E=this.input.lastChild.previousSibling,E instanceof Text?p.setEnd(this.input.lastChild.previousSibling,E.textContent.length):E instanceof HTMLImageElement&&p.setEnd(this.input,this.input.childNodes.length-1)):p.selectNodeContents(this.input);p.setStart(K,n);break}}p&&(K=!1,G&&(M=p.isPointInRange(G.startContainer,
G.startOffset-1)),q||(q=document.createElement("span"),q.id="overflow-text",q.textContent="",q.setAttribute("contenteditable","true"),_.f_(_.f_(this.hostElement).querySelector("#input")).appendChild(q),K=!0),q&&(G=p.extractContents(),q.insertBefore(G,q.firstChild),M&&q.firstChild&&(G=document.createRange(),K?G.setStartAfter(q.lastChild):G.setStartAfter(q.firstChild),G.collapse(!0),q=window.getSelection(),q.removeAllRanges(),q.addRange(G))))}};
_.N.checkForDuplicateSpans=function(){for(var M=0;M<this.input.childNodes.length;M++){var q=this.input.childNodes[M];if(q.nodeName==="SPAN"){var G=document.createRange();G.selectNodeContents(q);G=G.extractContents();this.input.insertBefore(G,q);q.remove()}}this.handleOverflowText(!0)};
_.N.getCurrentRange=function(){var M=window.getSelection();return M&&M.rangeCount?M.getRangeAt(0).cloneRange():null};
_.N.getInputRange=function(){var M=this.getCurrentRange();if(M){for(var q=M.commonAncestorContainer,G=!1,K=_.f_(this.hostElement).querySelector("#input");q;){if(q===K){G=!0;break}q=q.parentNode}G||(M=null)}M||(M=this.getRangeAtEnd());return M};
_.N.getRangeAtEnd=function(){var M=document.createRange(),q=_.f_(this.hostElement).querySelector("#input").lastChild;!q||q.nodeName!=="#text"&&q.nodeName!=="SPAN"?(M.selectNodeContents(_.f_(this.hostElement).querySelector("#input")),M.collapse(!1)):q.nodeName==="#text"?M.setStart(q,q.textContent.length):M.setStart(q,q.childNodes.length);return M};
_.N.getChatParticipantSuggestions=function(M,q,G,K){var n=_.w("live_chat_enable_handles_web_text_input_update");if(q)for(var E in q)if(E.indexOf(M)===0||n&&E.indexOf(G+M)===0){var p=q[E],y=_.UX(p.authorName);K.push({suggestion:{author:!0,authorType:G,image:p.authorPhoto,alt:y,text:y}});if(K.length>=64)break}};
_.N.getSuggestions=function(M){var q=[],G=M.substring(0,3),K=Irl(_.F$,G,!0);if(K)for(var n in K)if(n.toLocaleLowerCase().indexOf(M)===0){var E=K[n];if(E&&E.emojiId){if(E=QWf(_.F$,E.emojiId)){var p=void 0,y=void 0,Y=void 0,A=void 0,v=((p=E.image)==null?0:(y=p.accessibility)==null?0:(Y=y.accessibilityData)==null?0:Y.label)||E.isCustomEmoji?(A=E.shortcuts)==null?void 0:A[0]:E.emojiId;q.push({suggestion:{emoji:!0,image:E.image,alt:v,text:n,textToInsertWhenSelected:E.isCustomEmoji?n:v}})}if(q.length>=
64)break}}if(!this.participantsManager)return null;if(G.indexOf("@")===0||G.indexOf("#")===0)K=G.charAt(0),M=M.substring(1),n=_.w("live_chat_enable_handles_web_text_input_update"),G.indexOf("@")===0&&n&&(n=this.participantsManager.getAuthorsFromPrefix(G.substring(0,2)),this.getChatParticipantSuggestions(M,n,K,q)),G=G.substring(1),G=this.participantsManager.getAuthorsFromPrefix(G),this.getChatParticipantSuggestions(M,G,K,q);return q?q.sort(function(h,t){return t.suggestion.text<h.suggestion.text?-1:
t.suggestion.text===h.suggestion.text?0:1}):null};
_.N.insertSuggestion=function(M){var q=_.w("live_chat_enable_handles_web_text_input_update"),G=M.authorType;q=M.text.indexOf(G)===0&&q?M.text+S$2:G+M.text+S$2;M.emoji?this.insertTextAtRange(this.JSC$14226_lastSuggestionRange,M.textToInsertWhenSelected||""):M.author&&this.insertTextAtRange(this.JSC$14226_lastSuggestionRange,q)};
_.N.updateSuggestionsAtCaret=function(){var M=this.getCurrentRange();M&&this.updateSuggestions(M,this.calculateTextBeforeRange(M))};
_.N.offsetStartOfRangeBy=function(M,q){for(;q>0;)if(M.startOffset-q>=0){M.setStart(M.startContainer,M.startOffset-q);break}else{q=M.startContainer instanceof HTMLImageElement?q-M.startContainer.alt.length:q-M.startOffset;var G=M.startContainer.previousSibling;if(!G){M.setStart(M.startContainer,0);break}if(_.w("live_chat_require_space_for_autocomplete_emoji")){var K=void 0,n=void 0;M.setStart(G,((K=G)==null?void 0:(n=K.textContent)==null?void 0:n.length)||0)}else M.setStart(G,G.childNodes.length||
0)}};
_.N.updateSuggestions=function(M,q){var G=this;this.JSC$14226_lastSuggestionRange&&(this.JSC$14226_lastSuggestionRange.detach(),this.JSC$14226_lastSuggestionRange=null);if((q=mF9.exec(q))&&q.length&&(q=q[q.length-1].toLocaleLowerCase(),q.length>2&&(this.offsetStartOfRangeBy(M,q.length),this.JSC$14226_lastSuggestionRange=M,(M=this.getSuggestions(q))&&M.length))){this.suggestions=M;_.yb(this,function(){_.f_(G.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(M.length-1);return}this.dropdown.opened=!1};
_.N.completeEmojisInRange=function(M,q,G){var K=q.replace(/[\s\xa0]+$/,"");q=q.length-K.length;K=K.split(" ");K=K[K.length-1].trim().toLocaleLowerCase();var n=K.lastIndexOf(":");if(G&&!q&&n!==K.length-1)return!1;n!==-1&&(G=K.lastIndexOf(":",n-1),G!==-1&&(K=K.substring(G)));if((G=_.Vu(_.F$,K))&&G.emojiId){G=QWf(_.F$,G.emojiId)||null;this.offsetStartOfRangeBy(M,K.length+q);var E,p,y,Y;K=(((E=G)==null?0:E.isCustomEmoji)?(p=G)==null?void 0:(y=p.shortcuts)==null?void 0:y[0]:(Y=G)==null?void 0:Y.emojiId)||
"";q&&(K+=S$2);this.insertTextAtRange(M,K);this.dropdown.opened=!1;return!0}return!1};
_.N.onSuggestion=function(M){this.insertSuggestion(M.detail);this.dropdown.opened=!1};
_.N.onKeyPress=function(M){M.keyCode===13&&(M.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.jP(this.hostElement,"yt-live-chat-send-message"))};
_.N.completeEmojis=function(){var M=document.createRange(),q=_.f_(this.hostElement).querySelector("#input").lastChild;q?M.setStart(q,q.childNodes.length):(M.selectNodeContents(_.f_(this.hostElement).querySelector("#input")),M.collapse(!1));this.completeEmojisInRange(M,this.calculateTextBeforeRange(M),_.w("live_chat_require_space_for_autocomplete_emoji"))};
_.N.maybePreventTextFormatting=function(M){!_.sv||!M.ctrlKey&&!M.metaKey||M.keyCode!==66&&M.keyCode!==73||(M.stopImmediatePropagation(),M.preventDefault())};
_.N.onKeyDown=function(M){this.maybePreventTextFormatting(M);if(this.dropdown.opened)switch(M.keyCode){case 27:this.dropdown.opened=!1;M.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;M.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);M.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),M.preventDefault()}};
_.N.onKeyUp=function(M){switch(M.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.RH)this.onInputChange()};
_.N.changeSuggestionIndex=function(M){if(this.dropdown.opened){var q=_.f_(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<q.children.length&&(q.children[this.suggestionIndex].active=!1);var G=this.suggestions.length;this.suggestionIndex=(M+G)%G;M=q.children[this.suggestionIndex];M.active=!0;q.scrollTop=M.offsetTop}};
_.N.onInputPaste=function(M){M.preventDefault();(M=M.clipboardData)&&M.types&&(M=M.getData("text/plain")||"",M=M.replace(/\n/g,""),this.insertText(M));(M=this.getCurrentRange())&&M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.N.onFocus=function(){this._setFocused(!0)};
_.N.onBlur=function(){this._setFocused(!1)};
_.N.insertText=function(M){this.insertTextAtRange(this.getInputRange(),M)};
_.N.insertTextAtRange=function(M,q){if(M&&(M.collapsed||M.deleteContents(),q=_.F$.createDocumentFragment(q,!0,!1))){for(var G=_.k((q==null?void 0:q.childNodes)||[]),K=G.next();!K.done;K=G.next()){K=K.value;var n=void 0,E=void 0,p=void 0,y=void 0,Y=void 0;(p=(n=window)==null?void 0:(E=n.ShadyCSS)==null?void 0:E.ScopingShim)==null||(Y=(y=p).scopeNode)==null||Y.call(y,K,this.hostElement.localName)}G=q.lastChild;M.insertNode(q);this.focused||this.input.focus();if(this.focused){M=M.cloneRange();M.selectNodeContents(G);
M.collapse(!1);if(q=window.getSelection())q.removeAllRanges(),q.addRange(M);M.commonAncestorContainer.parentElement.id==="input"&&M.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}M=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(M);_.jP(this.hostElement,"yt-live-chat-message-input-change",M)}};
_.N.setLiveChatRichMessageInput=function(M){_.f_(_.f_(this.hostElement).querySelector("#input")).textContent="";if(M&&M.textSegments){for(var q=0;q<M.textSegments.length;q++){var G=M.textSegments[q];G.text?_.f_(_.f_(this.hostElement).querySelector("#input")).appendChild(_.F$.createDocumentFragment(G.text,!0,!1)):G.emojiId&&(G=_.RG(_.F$,G.emojiId))&&_.f_(_.f_(this.hostElement).querySelector("#input")).appendChild(_.F$.createEmoji(G,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.N.setText=function(M){this.setLiveChatRichMessageInput(M?{textSegments:[{text:M}]}:null)};
_.N.calculateTextBeforeRange=function(M){var q="",G=M.startContainer;if(G&&G instanceof Text){var K;q=((K=G.textContent)==null?void 0:K.substring(0,M.startOffset))||"";G=G.previousSibling}for(;G&&G instanceof Text;)q=G.textContent+q,G=G.previousSibling;return q.replace(qI," ")};
_.N.calculateLiveChatRichMessageInput=function(){for(var M=[],q="",G=_.f_(_.f_(this.hostElement).querySelector("#input")).childNodes,K=0;K<G.length;K++){var n=G[K];n instanceof Text?q+=n.textContent:n instanceof HTMLImageElement&&(n.dataset.emojiId?(q&&(M.push({text:q.replace(qI," ")}),q=""),M.push({emojiId:n.dataset.emojiId})):q+=n.alt)}q&&M.push({text:q.replace(qI," ")});if(G=_.f_(this.hostElement).querySelector("#overflow-text")){q="";G=G.childNodes;for(K=0;K<G.length;K++)n=G[K],n instanceof Text?
q+=n.textContent:n instanceof HTMLImageElement&&(n.dataset.emojiId?(q&&(M.push({text:q.replace(qI," ")}),q=""),M.push({emojiId:n.dataset.emojiId})):q+=n.alt);q&&M.push({text:q.replace(qI," ")})}return{textSegments:M}};
_.N.computeCharacterCount=function(M){if(!M||!M.textSegments)return 0;for(var q=0,G=0;G<M.textSegments.length;G++){var K=M.textSegments[G];if(K.text)q+=K.text.length;else if(K.emojiId){var n=void 0;if((n=this.data)==null?0:n.emojiCharacterCount)q+=this.data.emojiCharacterCount;else{var E=n=void 0,p=void 0;q+=((E=_.RG(_.F$,(n=K)==null?void 0:n.emojiId))==null?void 0:(p=E.shortcuts)==null?void 0:p[0].length)||0}}}return q};
_.N.characterCountChanged=function(){_.jP(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.N.focusedChanged=function(){this.hostElement.dispatchEvent(new _.sO("focused-changed",this.focused))};
_.N.focus=function(){this.setFocus(!1)};
_.N.focusAtEnd=function(){this.setFocus(!0)};
_.N.setFocus=function(M){M=M?this.getRangeAtEnd():this.getInputRange();_.f_(this.hostElement).querySelector("#input").focus();var q=window.getSelection();q&&(q.removeAllRanges(),q.addRange(M))};
_.N.insertEmoji=function(M){var q,G=((M==null?0:M.isCustomEmoji)?(q=M.shortcuts)==null?void 0:q[0]:M==null?void 0:M.emojiId)||"";this.insertText(G)};
_.N.computeText=function(M){if(!M||!M.textSegments)return"";for(var q="",G=0;G<M.textSegments.length;G++){var K=M.textSegments[G];if(K.text)q+=K.text;else if(K.emojiId){var n=void 0,E=void 0,p=void 0;q+=((E=_.RG(_.F$,(n=K)==null?void 0:n.emojiId))==null?void 0:(p=E.shortcuts)==null?void 0:p[0])||""}}return q};
_.N.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Yd.Object.defineProperties(GU.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.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}}});
GU.prototype.focusedChanged=GU.prototype.focusedChanged;GU.prototype.characterCountChanged=GU.prototype.characterCountChanged;GU.prototype.onSuggestion=GU.prototype.onSuggestion;GU.prototype.onMessageSet=GU.prototype.onMessageSet;GU.prototype.dataChanged=GU.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],GU.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],GU.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],GU.prototype,"disabled",void 0);_.T([_.c("disabled"),_.r("design:type",Number),_.r("design:paramtypes",[])],GU.prototype,"inputTabIndex",null);_.T([_.c("data.maxCharacterLimit"),_.B({readOnly:!0,notify:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],GU.prototype,"maxCharacterLimit",null);
_.T([_.c("liveChatRichMessageInput"),_.B({readOnly:!0,notify:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],GU.prototype,"characterCount",null);_.T([_.c("maxCharacterLimit, characterCount"),_.B({readOnly:!0,notify:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],GU.prototype,"remainingCharacterCount",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],GU.prototype,"isChatMessageInput",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],GU.prototype,"inputExpanded",void 0);_.T([_.B({readOnly:!0,notify:!0}),_.r("design:type",Object)],GU.prototype,"liveChatRichMessageInput",void 0);_.T([_.B(),_.r("design:type",Object)],GU.prototype,"messageInput",void 0);_.T([_.B(),_.r("design:type",Boolean)],GU.prototype,"ignoreColorMapping",void 0);_.T([_.c("characterCount"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],GU.prototype,"hasText",null);
_.T([_.B(),_.r("design:type",Object)],GU.prototype,"isValidWithNoInputText",void 0);_.T([_.c("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.B(),_.r("design:type",Boolean),_.r("design:paramtypes",[])],GU.prototype,"isInputValid",null);_.T([_.B({readOnly:!0,value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],GU.prototype,"focused",void 0);_.T([_.B(),_.r("design:type",Array)],GU.prototype,"suggestions",void 0);
_.T([_.B(),_.r("design:type",_.V$)],GU.prototype,"emojiManager",void 0);_.T([_.B(),_.r("design:type",_.MI)],GU.prototype,"participantsManager",void 0);_.T([_.B(),_.r("design:type",Boolean)],GU.prototype,"noUnderline",void 0);_.T([_.B(),_.r("design:type",Object)],GU.prototype,"inputMethodEditorActive",void 0);_.T([_.ET("#dropdown"),_.r("design:type",Object)],GU.prototype,"dropdown",void 0);_.T([_.ET("#input"),_.r("design:type",HTMLElement)],GU.prototype,"input",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GU.prototype,"dataChanged",null);_.T([_.KT("messageInput"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GU.prototype,"onMessageSet",null);_.T([_.GQ("yt-live-chat-select-suggestion"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],GU.prototype,"onSuggestion",null);
_.T([_.KT("characterCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GU.prototype,"characterCountChanged",null);_.T([_.KT("focused"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GU.prototype,"focusedChanged",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],GU);
_.rWp=_.z(GU,"yt-live-chat-text-input-field-renderer",function(){if(UF2===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;bm2===void 0&&(bm2=document.createElement("template"));var K=bm2;G.call(q,K.content.cloneNode(!0),M.content.firstChild);UF2=M}M=UF2;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var KC=function(){var M=_.Q.apply(this,arguments)||this;M.buttonOverrides={style:"overlay",type:"filled"};M.allowAnimations=!1;M.modern=_.w("web_button_rework_with_live");M.noPadding=!1;return M};
_.l(KC,_.Q);_.N=KC.prototype;_.N.shouldSupportInlineActionButtons=function(){return!0};
_.N.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"}}}}};
_.N.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.N.attached=function(){this.allowAnimations=!1};
_.N.dataChanged=function(){if(this.data){var M={"--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)};_.sT(this.hostElement,M);this.allowAnimations=!0}};
_.N.messageChanged=function(){var M,q=(M=this.data)==null?void 0:M.message;M=_.f_(_.f_(this.hostElement).querySelector("#message"));M.textContent="";q&&M.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(q))};
_.N.computeShowOnlyHeader=function(M,q){return!M||M.pdgLikeButton||M.replyButton||M.buyFlowButton?!1:this.isEmpty(M,q)&&!M.footer};
_.N.computeShowFooterDivider=function(M,q,G){return M?!!M.footer&&!this.isEmpty(M,q)&&!G:!1};
_.N.computeIsUserEditable=function(M){return!!M.inputField};
_.N.computeHasHeartButton=function(M){return(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(M==null?void 0:M.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.N.computeNoveltyImage=function(M){if(M.headerOverlayImage&&M.headerOverlayImage.thumbnails.length){var q=M.headerOverlayImage.thumbnails[0],G,K;if((G=M.pdgPurchasedNoveltyLoggingDirectives)==null?0:(K=G.loggingDirectives)==null?0:K.trackingParams){var n,E;hhF((n=M.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(E=n.loggingDirectives)==null?void 0:E.trackingParams)}return q.width||0}return 0};
_.N.computeAuthorPhotoSize=function(M){return(M==null?0:M.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.N.inputFocus=function(){var M=_.f_(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");M&&M.focus()};
_.N.inputInsertEmoji=function(M){var q=_.f_(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");q&&q.insertEmoji(M)};
_.N.inputMessage=function(){var M=_.f_(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),q;return M&&((q=this.data)==null?0:q.inputField)?(M.completeEmojis(),_.cx(M.liveChatRichMessageInput)):null};
_.N.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.N.isEmpty=function(M,q){return M?M.empty||!(M.message||M.inputField||q):!0};
_.N.onLowerBuyButtonClick=function(){var M,q=_.C((M=this.data)==null?void 0:M.buyButton,_.f1);q&&q.trackingParams&&!RZi(q.command)&&(M=_.yx(q.trackingParams))&&(q=_.Cx())&&_.Z_(q,M)};
_.N.shouldSupportWholeItemClick=function(){return!0};
_.Yd.Object.defineProperties(KC.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
KC.prototype.isDeletedChanged=KC.prototype.isDeletedChanged;KC.prototype.messageChanged=KC.prototype.messageChanged;KC.prototype.dataChanged=KC.prototype.dataChanged;_.T([_.P(dRB.YtPdgLiveChatItemBehavior),_.r("design:type",Object)],KC.prototype,"ytPdgLiveChatItemBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],KC.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],KC.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],KC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],KC.prototype,"data",void 0);_.T([_.B({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:dFY}),_.r("design:type",Object)],KC.prototype,"engagementState",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.r("design:type",Boolean)],KC.prototype,"isUserEditable",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.r("design:type",Boolean)],KC.prototype,"hasHeartButton",void 0);_.T([_.B({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.r("design:type",Boolean)],KC.prototype,"showOnlyHeader",void 0);
_.T([_.B({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.r("design:type",Boolean)],KC.prototype,"showFooterDivider",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Object)],KC.prototype,"allowAnimations",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],KC.prototype,"dashboardMoneyFeed",void 0);_.T([_.B({computed:"computeNoveltyImage(data)"}),_.r("design:type",Number)],KC.prototype,"noveltyWidth",void 0);
_.T([_.B({computed:"computeAuthorPhotoSize(data)"}),_.r("design:type",Number)],KC.prototype,"authorPhotoSize",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],KC.prototype,"modern",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],KC.prototype,"noPadding",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KC.prototype,"dataChanged",null);
_.T([_.KT("data.message"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KC.prototype,"messageChanged",null);_.T([_.c("data","dashboardMoneyFeed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],KC.prototype,"hideLowerBumper",null);_.T([_.KT("isDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KC.prototype,"isDeletedChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],KC);
_.z(KC,"yt-live-chat-paid-message-renderer",function(){if(FfI===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;f7S===void 0&&(f7S=document.createElement("template"));var K=f7S;G.call(q,K.content.cloneNode(!0),M.content.firstChild);FfI=M}M=FfI;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var jWp;var VZd;var nC=function(){var M=_.kA.apply(this,arguments)||this;M._noAccessors=!0;return M};
_.l(nC,_.kA);nC.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.R9("openPopupConfig")};
_.T([_.P(_.vf.YtOpenPopupBehavior),_.r("design:type",Object)],nC.prototype,"ytOpenPopupBehavior",void 0);_.T([_.pT()],nC);_.EO=[_.vf.YtOpenPopupBehavior,nC.prototype];var Rhf;var BSF=[_.n_,q58,_.ri,_.Ep,_.Jl,_.l4B,_.p_,_.Lr8,_.tM,uyD,_.BJP];_.w("web_continuation_response_processing")&&BSF.push(_.XY);var Peu=new _.$k("RESPONSE_RECEIVED_COMMANDS"),g7H=new _.$k("RESPONSE_RECEIVED_COMMANDS");var aYH="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),CvH=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],wZy=["GET_UNSEEN_NOTIFICATION_COUNT"];var NI=function(){var M=_.kA.apply(this,arguments)||this;M._noAccessors=!0;M.serviceEndpointHandlers=[];return M};
_.l(NI,_.kA);NI.prototype.created=function(){var M=this;this.endpointHandlerActionMap={"yt-service-request":function(q,G,K,n){var E;return OrH(M.hostElement,q,G,K,n,M.serviceEndpointHandlers,(E=M.onEntitiesUpdated)==null?void 0:E.bind(M))}}};
NI.prototype.attached=function(){_.KI(_.GC.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
NI.prototype.detached=function(){_.N6(_.GC.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.T([_.pT()],NI);_.frI=[NI.prototype];var FCx,Hmp=function(){return FCx!==void 0?FCx:FCx=document.createElement("template")};
document.head.appendChild(Hmp().content);var ehx;var $F$=document.head,sC2=$F$.appendChild,MOx;if(ehx===void 0){var qJ$=document.createElement("template");_.X(qJ$,"\x3c!--css-build:shady--\x3e");qJ$.content.insertBefore(Hmp().content.cloneNode(!0),qJ$.content.firstChild);ehx=qJ$}MOx=ehx;sC2.call($F$,MOx.content);var GN2,K2J=function(){return GN2!==void 0?GN2:GN2=document.createElement("template")};
document.head.appendChild(K2J().content);var n7p;var E7I=document.head,NSf=E7I.appendChild,kNB;if(n7p===void 0){var pZM=document.createElement("template");_.X(pZM,"\x3c!--css-build:shady--\x3e");pZM.content.insertBefore(K2J().content.cloneNode(!0),pZM.content.firstChild);n7p=pZM}kNB=n7p;NSf.call(E7I,kNB.content);var yBB;_.hC("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.hC("sharingRendererButtons","buttonRenderer","ytd-button-renderer");yBB=_.w("web_button_rework")&&_.fX("BUTTON_REWORK")||_.w("web_button_rework_with_live");_.kS=function(){var M=_.Q.apply(this,arguments)||this;M.isPressed=!1;M.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return M};
_.l(_.kS,_.Q);_.N=_.kS.prototype;_.N.created=function(){this.showTooltips=!0};
_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.onHintIdChanged=function(){var M=this,q,G,K=(q=this.ytButtonBehavior.data)==null?void 0:(G=q.hint)==null?void 0:G.hintRenderer;if(K&&K.hintId){q=_.Rf(this.hostElement,"yt-get-opened-popups-action");q=(q&&q.length===1?q[0]:[]).length>0;var n=null;K.hintId!=="sponsor-pre-purchase"||q?K.hintId.startsWith("sponsor-post-purchase")&&!q?n=szp("membership-manage"):K.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!q&&(n=szp("membership-freebie-join")):n=szp("membership-join");n&&_.r8.addLowPriorityJob(function(){for(var E=
_.k(n),p=E.next();!p.done;p=E.next())M.ytComponentBehavior.resolveCommand(p.value)})}};
_.N.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.N.onYtNavigate=function(M){var q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);q&&(M.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(q))};
_.N.onYtServiceRequestSent=function(M,q){this.handleServiceRequestActions(q);_.jP(this.hostElement,"yt-service-request-sent-button-renderer")};
_.N.onServiceRequestCompleted=function(M,q){this.handleServiceRequestActions(q);_.jP(this.hostElement,"yt-service-request-completed-button-renderer")};
_.N.updateButton=function(M){var q;if(M=(q=_.C(M,V9d))==null?void 0:q.updatedButton)this.ytButtonBehavior.data=_.C(M,_.f1)};
_.N.handleUpdateButtonAction=function(M){var q=this.ytButtonBehavior.data;q.targetId&&M.updateButtonAction.targetId&&q.targetId===M.updateButtonAction.targetId&&this.updateButton(M)};
_.N.handleServiceRequestActions=function(M){if(M=M.actions)for(var q=0;q<M.length;q++)this.updateButton(M[q])};
_.Yd.Object.defineProperties(_.kS,{template:{configurable:!0,enumerable:!0,get:function(){if(Rhf===void 0){var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);Rhf=M}M=Rhf;return M}}});
_.kS.prototype.onServiceRequestCompleted=_.kS.prototype.onServiceRequestCompleted;_.kS.prototype.onYtServiceRequestSent=_.kS.prototype.onYtServiceRequestSent;_.kS.prototype.onYtNavigate=_.kS.prototype.onYtNavigate;_.kS.prototype.onPressedStateChanged=_.kS.prototype.onPressedStateChanged;_.kS.prototype.onHintIdChanged=_.kS.prototype.onHintIdChanged;_.T([_.B(),_.r("design:type",Object)],_.kS.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],_.kS.prototype,"isPressed",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],_.kS.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.dZ8.YtButtonBehavior),_.r("design:type",Object)],_.kS.prototype,"ytButtonBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],_.kS.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],_.kS.prototype,"ytComponentBehavior",void 0);
_.T([_.P(iA.YtRenderButtonBehavior),_.r("design:type",Object)],_.kS.prototype,"ytRenderButtonBehavior",void 0);_.T([_.KT("data.hint.hintRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],_.kS.prototype,"onHintIdChanged",null);_.T([_.KT("isPressed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],_.kS.prototype,"onPressedStateChanged",null);
_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],_.kS.prototype,"onYtNavigate",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],_.kS.prototype,"onYtServiceRequestSent",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],_.kS.prototype,"onServiceRequestCompleted",null);_.T([_.b({is:"ytd-button-renderer",disableElementRegistration:yBB})],_.kS);var pC=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.l(pC,_.Q);_.N=pC.prototype;_.N.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"}}}}};
_.N.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.N.dataChanged=function(){if(this.data&&this.data.sticker){var M=_.TE(this.data.sticker.thumbnails,this.stickerWidth);M||_.bru(M).thenCatch(function(){_.j1(new _.bj("Failed to load Super Sticker with url",M))})}};
_.N.computeAuthorPhotoSize=function(M){return(M==null?0:M.isV2Style)?32:40};
_.N.computeIsV2Style=function(M){return(M==null?0:M.isV2Style)?!0:!1};
_.N.onStickerLoaded=function(M){var q,G,K;(q=_.ba(M))==null||(G=q.parentNode)==null||(K=G.classList)==null||K.add("sticker-loaded")};
_.N.computeNoveltyImageWidth=function(M){var q,G;if(M==null?0:(q=M.headerOverlayImage)==null?0:(G=q.thumbnails)==null?0:G.length){q=M.headerOverlayImage.thumbnails[0];var K,n;if((K=M.pdgPurchasedNoveltyLoggingDirectives)==null?0:(n=K.loggingDirectives)==null?0:n.trackingParams){var E,p;hhF((E=M.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(p=E.loggingDirectives)==null?void 0:p.trackingParams)}return q.width||0}return 0};
_.N.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.N.updateStickerStyles=function(){var M=this.data;M&&(M={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(M.authorNameTextColor)},
_.sT(this.hostElement,M))};
_.N.onBuyButtonClick=function(){var M,q=_.C((M=this.data)==null?void 0:M.buyButton,_.f1);q&&!RZi(q.command)&&this.ytRendererBehavior.logExplicitClick(q)};
_.N.shouldSupportWholeItemClick=function(){return!0};
_.Yd.Object.defineProperties(pC.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 M;return((M=this.data)==null?0:M.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
pC.prototype.updateStickerStyles=pC.prototype.updateStickerStyles;pC.prototype.isDeletedChanged=pC.prototype.isDeletedChanged;pC.prototype.onStickerLoaded=pC.prototype.onStickerLoaded;pC.prototype.dataChanged=pC.prototype.dataChanged;_.T([_.P(dRB.YtPdgLiveChatItemBehavior),_.r("design:type",Object)],pC.prototype,"ytPdgLiveChatItemBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],pC.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],pC.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],pC.prototype,"data",void 0);
_.T([_.B({computed:"computeAuthorPhotoSize(data)"}),_.r("design:type",Number)],pC.prototype,"authorPhotoSize",void 0);_.T([_.B(),_.r("design:type",Boolean)],pC.prototype,"isDeleted",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],pC.prototype,"dashboardMoneyFeed",void 0);_.T([_.B({computed:"computeNoveltyImageWidth(data)"}),_.r("design:type",Number)],pC.prototype,"noveltyWidth",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],pC.prototype,"modern",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.r("design:type",Boolean)],pC.prototype,"isV2Style",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pC.prototype,"dataChanged",null);_.T([_.GQ("yt-img-shadow-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],pC.prototype,"onStickerLoaded",null);
_.T([_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],pC.prototype,"stickerWidth",null);_.T([_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],pC.prototype,"stickerHeight",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],pC.prototype,"hasHeartButton",null);_.T([_.c("data","dashboardMoneyFeed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],pC.prototype,"hideLowerBumper",null);
_.T([_.KT("isDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pC.prototype,"isDeletedChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pC.prototype,"updateStickerStyles",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],pC);
_.z(pC,"yt-live-chat-paid-sticker-renderer",function(){if(VZd===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;jWp===void 0&&(jWp=document.createElement("template"));var K=jWp;G.call(q,K.content.cloneNode(!0),M.content.firstChild);VZd=M}M=VZd;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var L2f;var YJl;var W2M,ABl=function(){return W2M!==void 0?W2M:W2M=document.createElement("template")};
document.head.appendChild(ABl().content);var d22,v7J=function(){return d22!==void 0?d22:d22=document.createElement("template")};
document.head.appendChild(v7J().content);var h1S;var tOv,OrS=function(){return tOv!==void 0?tOv:tOv=document.createElement("template")};
document.head.appendChild(OrS().content);var wZI;var CvS=document.head,aYS=CvS.appendChild,o72;if(wZI===void 0){var lY2=document.createElement("template");_.X(lY2,"\x3c!--css-build:shady--\x3e");lY2.content.insertBefore(OrS().content.cloneNode(!0),lY2.content.firstChild);wZI=lY2}o72=wZI;aYS.call(CvS,o72.content);var XZS=document.head,Pvf=XZS.appendChild,irJ;if(h1S===void 0){var y3=document.createElement("template");_.X(y3,"\x3c!--css-build:shady--\x3e");y3.content.insertBefore(v7J().content.cloneNode(!0),y3.content.firstChild);y3.content.insertBefore(ABl().content.cloneNode(!0),y3.content.firstChild);h1S=y3}irJ=h1S;Pvf.call(XZS,irJ.content);var LC=function(){var M=_.kA.apply(this,arguments)||this;M.focusedIndex=0;M.verticalOffset=0;M.verticalAlign="top";M.dynamicAlign=!0;return M};
_.l(LC,_.kA);LC.prototype.emojiUrl=function(M){M=_.RG(this.emojiManager,M);if(!M)return"";var q;M=(q=M.image)==null?void 0:q.thumbnails;return _.TE(M,24)||""};
var cBx=function(M){var q;M.emojiVariants&&(q=M.data)!=null&&q.target&&_.yb(M,function(){M.set("verticalOffset",-1*M.hostElement.clientHeight);var G=_.f_(M.hostElement).querySelector("img");G&&G.focus()})};
_.N=LC.prototype;_.N.onKeyboardEnter=function(){};
_.N.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.N.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.N.onKeyDown=function(M){switch(M.keyCode){case 13:this.onKeyboardEnter();M.preventDefault();break;case 40:this.changeFocus(1);M.preventDefault();break;case 38:this.changeFocus(-1);M.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.N.onYtEmojiSelect=function(M){var q=this,G,K,n,E,p,y,Y,A;return _.L(function(v){if(v.nextAddress==1)return K=(G=q.data)==null?void 0:G.emoji,p=((n=K)==null?void 0:n.stickyPrefId)||((E=K)==null?void 0:E.emojiId),Y=(y=M.detail)==null?void 0:y.emojiId,p&&Y&&p!==Y?v.yield((A=q.emojiManager)==null?void 0:DFS(A,K,Y),2):v.return();_.VW(q.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[K,Y]);_.gL(v)})};
_.N.changeFocus=function(M){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+M+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(M=_.f_(this.hostElement).querySelector("#variants"))&&M.children[this.focusedIndex].focus())};
_.Yd.Object.defineProperties(LC.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
LC.prototype.onYtEmojiSelect=LC.prototype.onYtEmojiSelect;LC.prototype.onKeyDown=LC.prototype.onKeyDown;LC.prototype.onEmojiVariantsChanged=LC.prototype.onEmojiVariantsChanged;LC.prototype.onVerticalOffsetOrPositionTargetChanged=LC.prototype.onVerticalOffsetOrPositionTargetChanged;_.T([_.P(_.Hn),_.r("design:type",Object)],LC.prototype,"ironOverlayBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],LC.prototype,"data",void 0);_.T([_.B(),_.r("design:type",_.V$)],LC.prototype,"emojiManager",void 0);
_.T([_.B(),_.r("design:type",Object)],LC.prototype,"emojiVariants",void 0);_.T([_.B(),_.r("design:type",Object)],LC.prototype,"focusedIndex",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],LC.prototype,"positionTarget",null);_.T([_.B({reflectToAttribute:!0}),_.c("verticalOffset","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],LC.prototype,"isPositioned",null);_.T([_.B(),_.r("design:type",Object)],LC.prototype,"verticalOffset",void 0);
_.T([_.B(),_.r("design:type",Object)],LC.prototype,"verticalAlign",void 0);_.T([_.B(),_.r("design:type",Object)],LC.prototype,"dynamicAlign",void 0);_.T([_.KT("verticalOffset","positionTarget"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LC.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.T([_.KT("emojiVariants"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LC.prototype,"onEmojiVariantsChanged",null);
_.T([_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],LC.prototype,"onKeyDown",null);_.T([_.GQ("yt-emoji-select"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype",Promise)],LC.prototype,"onYtEmojiSelect",null);_.T([_.pT()],LC);var g7S=[LC.prototype];var BS8;var QCx;var IYd=/medium-light|medium-dark|light|medium|dark/,D2v=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,uyx=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),YS=function(){var M=_.Q.apply(this,arguments)||this;M.userSelection={left:null,right:null};M.scrollAction="lock";M.isEmojiDraftInProgress=!1;return M};
_.l(YS,_.Q);_.N=YS.prototype;_.N.onClick=function(M){M=_.ba(M);M instanceof HTMLImageElement&&this.selectOrUpdateEmoji(M)};
_.N.selectOrUpdateEmoji=function(M){var q=M.getAttribute("selection");q&&(q==="default"?_.jP(this.hostElement,"yt-emoji-select",_.RG(this.emojiManager,M.id)):q==="left"?this.userSelection=Object.assign({},this.userSelection,{left:M.src}):q==="right"?this.userSelection=Object.assign({},this.userSelection,{right:M.src}):q==="user"&&this.userSelection.left&&this.userSelection.right&&_.jP(this.hostElement,"yt-emoji-select",_.RG(this.emojiManager,M.id)))};
_.N.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.N.onMultiSelectorThumbnailRowChanged=function(){var M,q,G;((M=this.data)==null?0:(q=M.emoji)==null?0:(G=q.multiSelectorThumbnailRow)==null?0:G.length)&&this.openSelector()};
_.N.getThumbnailFromEmojiRow=function(M){var q,G;return(M==null?void 0:(q=M.thumbnails)==null?void 0:(G=q[0])==null?void 0:G.url)||""};
_.N.getEmojiAltTextForPartialSelector=function(M){var q;return((q=this.getThumbnailFromEmojiRow(M).match(D2v))==null?void 0:q[0])||""};
_.N.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.N.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.N.getRowSelection=function(M){return["left","right"][M]};
_.N.getIdFromComposedEmoji=function(M){return(M==null?void 0:M.emojiId)||""};
_.N.getEmojiFromPartialSelections=function(M,q){if(!M&&!q)return null;var G,K,n=(G=this.data)==null?void 0:(K=G.emoji)==null?void 0:K.variantIds;if(!n||!n.length)return null;var E;M=(E=M.match(IYd))==null?void 0:E[0];var p;q=(p=q.match(IYd))==null?void 0:p[0];if(!M||!q)return null;var y=uyx.get(M);p=uyx.get(q);if(y===p){p=Array.from(uyx.values()).filter(function(A){return A!==y}).join("|");
var Y=new RegExp("^((?!("+p+")).)*"+y+"$")}else Y=new RegExp(y+".*"+p);return(n=n.find(function(A){return Y.test(A)}))&&_.RG(this.emojiManager,n)||null};
_.N.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var M,q=this.ytEmojiSelectorBehavior.emojiUrl(((M=this.data.emoji)==null?void 0:M.emojiId)||"");_.f_(this.hostElement).querySelector('[selection="user"]').src.includes(q)||(this.isEmojiDraftInProgress=!0)}};
_.N.onDomChange=function(){cBx(this.ytEmojiSelectorBehavior)};
_.N.getFocusableElements=function(){return _.f_(this.hostElement).querySelectorAll("img").filter(function(M){return M.getAttribute("role")==="option"})};
_.N.changeFocus=function(M){var q=this.getFocusableElements();q!=null&&q.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+M+q.length)%q.length,this.ytEmojiSelectorBehavior.focusedIndex<q.length&&(M=q[this.ytEmojiSelectorBehavior.focusedIndex])&&M.focus())};
_.N.onKeyboardEnter=function(){var M=this.getFocusableElements();M!=null&&M.length&&(M=M[this.ytEmojiSelectorBehavior.focusedIndex])&&M instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(M),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Yd.Object.defineProperties(YS.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var M=this,q,G,K;return this.emojiManager&&((q=this.data)==null?0:(G=q.emoji)==null?0:(K=G.variantIds)==null?0:K.length)?this.data.emoji.variantIds.map(function(n){return!!n&&_.RG(M.emojiManager,n)}).filter(function(n){return!!n}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var M,q=(M=this.userSelection)==null?void 0:M.left,G;M=(G=this.userSelection)==null?void 0:G.right;return q&&M?this.getEmojiFromPartialSelections(q,M):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.composedEmojiSelection)==null?0:M.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var q;M=(q=this.userSelection)==null?void 0:q.left;var G;q=(G=this.userSelection)==null?void 0:G.right;if(!M&&!q){var K;return this.ytEmojiSelectorBehavior.emojiUrl(((K=this.data.emoji)==null?void 0:K.emojiId)||"")}return M&&!q?M:!M&&q?q:""}}});
YS.prototype.onMultiSelectorThumbnailRowChanged=YS.prototype.onMultiSelectorThumbnailRowChanged;YS.prototype.onClick=YS.prototype.onClick;_.T([_.P(_.Hn),_.r("design:type",Object)],YS.prototype,"ironOverlayBehavior",void 0);_.T([_.P(g7S),_.r("design:type",Object)],YS.prototype,"ytEmojiSelectorBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],YS.prototype,"data",void 0);_.T([_.B(),_.r("design:type",_.V$)],YS.prototype,"emojiManager",void 0);
_.T([_.B(),_.r("design:type",Object)],YS.prototype,"userSelection",void 0);_.T([_.B(),_.r("design:type",Object)],YS.prototype,"scrollAction",void 0);_.T([_.B(),_.r("design:type",Object)],YS.prototype,"isEmojiDraftInProgress",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],YS.prototype,"emojiVariants",null);_.T([_.c("data","userSelection"),_.r("design:type",Object),_.r("design:paramtypes",[])],YS.prototype,"composedEmojiSelection",null);
_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[MouseEvent]),_.r("design:returntype")],YS.prototype,"onClick",null);_.T([_.KT("data.emoji.multiSelectorThumbnailRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YS.prototype,"onMultiSelectorThumbnailRowChanged",null);_.T([_.c("data","userSelection","composedEmojiSelection"),_.r("design:type",String),_.r("design:paramtypes",[])],YS.prototype,"draftEmojiUrl",null);
_.T([_.aO({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],YS);
_.z(YS,"yt-emoji-multi-person-selector",function(){if(QCx===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;BS8===void 0&&(BS8=document.createElement("template"));var K=BS8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);QCx=M}M=QCx;return M},{mode:2});var JBP;var Zrp;var WJ=function(){var M=_.Q.apply(this,arguments)||this;M.tooltip_=null;return M};
_.l(WJ,_.Q);_.N=WJ.prototype;_.N.dataChanged_=function(){var M;if((M=this.data)==null?0:M.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.f_(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.$U)(this.tooltip_).textContent=this.data.tooltip};
_.N.computeTargetId=function(){var M;return((M=this.data)==null?void 0:M.targetId)||""};
_.N.computeId_=function(M){return M};
_.N.computeIcon_=function(M){return _.H4(M)};
_.N.onTap_=function(){this.active=!this.active;_.jP(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.N.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("active-changed",this.active))};
_.Yd.Object.defineProperties(WJ.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var M,q;if((M=this.data)==null?0:(q=M.icon)==null?0:q.iconType)return this.data.icon.iconType==="SUPER_STICKER";var G,K;return((G=this.data)==null?void 0:(K=G.icon)==null?void 0:K.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
WJ.prototype.activeChangedForBinding=WJ.prototype.activeChangedForBinding;WJ.prototype.dataChanged_=WJ.prototype.dataChanged_;_.T([_.P(_.mZ.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],WJ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],WJ.prototype,"data",void 0);_.T([_.B({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.r("design:type",String)],WJ.prototype,"id",void 0);
_.T([_.B({computed:"computeTargetId(data.targetId)"}),_.r("design:type",String)],WJ.prototype,"targetId",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],WJ.prototype,"active",void 0);_.T([_.B({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.r("design:type",String)],WJ.prototype,"icon",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WJ.prototype,"dataChanged_",null);
_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],WJ.prototype,"iconFilled",null);_.T([_.KT("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WJ.prototype,"activeChangedForBinding",null);_.T([_.aO({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],WJ);
_.z(WJ,"yt-emoji-picker-category-button-renderer",function(){if(Zrp===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;JBP===void 0&&(JBP=document.createElement("template"));var K=JBP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Zrp=M}M=Zrp;return M},{mode:2});var brf;var U2x;var AV=function(){var M=_.Q.apply(this,arguments)||this;M.ariaLabel=null;M.ariaActivedescendant=null;M.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};M.JSC$14291_ignoreNextFocus_=!1;M.longPressTimeoutId=-1;return M};
_.l(AV,_.Q);_.N=AV.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.N.emojiChanged_=function(){this.changeFocus_(0,!1);for(var M=_.nl(),q=0;q<this.emoji.length;q++){var G={veType:88013,elementIndex:q},K=this.emoji[q];K.isCustomEmoji&&(K=document.querySelector(("#"+K.emojiId).replace("/","\\/")))&&(G=_.GE(M,G))&&(K.visualElement=G)}};
_.N.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.N.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.N.emojiSkinToneChanged_=function(M){this.skinTone=M};
_.N.dataChanged=function(){this.data&&this.data.emojiData&&g4B(this.emojiManager,this.data.emojiData)};
_.N.emojiUrl=function(M){M=this.getEmoji(M);if(!M)return"";var q;M=(q=M.image)==null?void 0:q.thumbnails;return _.TE(M,24)||""};
_.N.emojiAlt=function(M){var q=this.get("image.accessibility.accessibilityData.label",M);return q?q:M.isCustomEmoji?M.shortcuts[0]:M.emojiId};
_.N.emojiAriaLabel=function(M){return M.shortcuts?M.shortcuts[0]:""};
_.N.emojiAriaSelected=function(M,q,G){return M&&G==q?"true":"false"};
_.N.getEmoji=function(M){if(this.emojiManager)return this.shouldUseStickyPreferences?QWf(this.emojiManager,M):f3(this.emojiManager,M)};
_.N.computeId_=function(M){return M.categoryId||""};
_.N.computeEmoji=function(M){var q=this;return this.emojiManager?M.emojiIds?M.emojiIds.map(function(G){return G?_.RG(q.emojiManager,G):null}).filter(U2D):M.emojiData?M.emojiData.map(function(G){var K=!!G.emojiId&&_.RG(q.emojiManager,G.emojiId);
return K?Object.assign({},K,G):null}).filter(U2D):[]:[]};
_.N.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.N.computeAriaLabel_=function(M){return _.UX(M)};
_.N.computeAriaActivedescendant_=function(M,q){return M&&M[q]?M[q].emojiId||"":""};
_.N.handleLongPressEmojiWithVariants=function(M,q){this.changeFocusToEmoji(M.emojiId,!1);this.openVariantSelector(M,q)};
_.N.onMouseDown=function(M){var q=this;this.hostElement!==document.activeElement&&(this.JSC$14291_ignoreNextFocus_=!0);if(M.button===0){var G=_.ba(M);if(G instanceof HTMLImageElement){var K=_.f_(this.hostElement).querySelector("#repeat").itemForElement(G);this.emojiContainsVariants(K)&&(this.longPressTimeoutId=setTimeout(function(){q.handleLongPressEmojiWithVariants(K,G)},500))}}};
_.N.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.N.onFocus=function(){this.JSC$14291_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14291_ignoreNextFocus_=!1};
_.N.onBlur_=function(){this.showFocus=!1};
_.N.emojiContainsVariants=function(M){return!!(M&&M.variantIds&&M.variantIds.length)};
_.N.onClick=function(M){clearTimeout(this.longPressTimeoutId);M=_.ba(M);if(M instanceof HTMLImageElement){var q=M.id;this.changeFocusToEmoji(q,!1);var G=this.getEmoji(q),K;if(K=this.shouldUseStickyPreferences&&this.emojiContainsVariants(G)){var n;K=!((n=this.emojiManager.emojiMap[q])!=null&&n.stickyPrefId)}K?(n=_.f_(this.hostElement).querySelector("#repeat").itemForElement(M),this.openVariantSelector(n,M)):_.jP(this.hostElement,"yt-emoji-select",G)}};
_.N.isActiveEmojiWithVariants=function(M,q){return M&&q?q.stickyPrefId?M===q.stickyPrefId:M===q.emojiId:!1};
_.N.onCloseEmojiVariantSelector=function(M){this.activeEmojiWithVariantsId===M&&(this.activeEmojiWithVariantsId="")};
_.N.onMouseOver_=function(M){M=_.ba(M);M instanceof HTMLImageElement&&_.jP(this.hostElement,"yt-emoji-hover",_.RG(this.emojiManager,M.id))};
_.N.changeFocus_=function(M,q){this.focusedIndex=(this.focusedIndex+M+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(M=this.emoji[this.focusedIndex],q&&(this.showFocus=!0,_.f_(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.jP(this.hostElement,"yt-emoji-hover",M)))};
_.N.changeFocusToEmoji=function(M,q){if(M){var G=this.emoji.findIndex(function(K){return K.emojiId===M});
G!==-1&&this.changeFocus_(G-this.focusedIndex,q)}};
_.N.onKeyDown_=function(M){switch(M.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var q=this.emoji[this.focusedIndex];if(q&&q.emojiId){if(this.emojiContainsVariants(q)){var G=_.f_(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(q,G)}else _.jP(this.hostElement,"yt-emoji-select",f3(this.emojiManager,q.emojiId)),this.hostElement.focus();M.preventDefault()}}break;case 40:this.changeFocus_(1,!0);M.preventDefault();break;case 38:this.changeFocus_(-1,!0),
M.preventDefault()}};
_.N.onEmojiStickyPreferenceChanged=function(M,q){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&M.emojiId&&M.variantIds&&M.variantIds.includes(q)&&this.activeEmojiWithVariantsId!==q&&this.setStickyEmojiPreference(M.emojiId,q)};
_.N.openVariantSelector=function(M,q){this.activeEmojiWithVariantsId=M.stickyPrefId||M.emojiId||"";_.jP(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:M,target:q})};
_.N.setStickyEmojiPreference=function(M,q){if(this.data){var G=this.emoji.findIndex(function(n){return n.emojiId===M});
if(G!==-1){var K=this.emoji[G];K.stickyPrefId=q;this.set("emoji."+G,Object.assign({},K));this.activeEmojiWithVariantsId=q}}};
AV.prototype.onKeyDown_=AV.prototype.onKeyDown_;AV.prototype.onMouseOver_=AV.prototype.onMouseOver_;AV.prototype.onClick=AV.prototype.onClick;AV.prototype.onBlur_=AV.prototype.onBlur_;AV.prototype.onFocus=AV.prototype.onFocus;AV.prototype.onMouseUp=AV.prototype.onMouseUp;AV.prototype.onMouseDown=AV.prototype.onMouseDown;AV.prototype.dataChanged=AV.prototype.dataChanged;AV.prototype.disableIncrementalLoadingChanged_=AV.prototype.disableIncrementalLoadingChanged_;AV.prototype.emojiManagerChanged_=AV.prototype.emojiManagerChanged_;
AV.prototype.emojiChanged_=AV.prototype.emojiChanged_;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],AV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],AV.prototype,"data",void 0);_.T([_.B({computed:"computeId_(data)"}),_.r("design:type",String)],AV.prototype,"id",void 0);_.T([_.B({computed:"computeEmoji(data)"}),_.r("design:type",Array)],AV.prototype,"emoji",void 0);_.T([_.B(),_.r("design:type",Number)],AV.prototype,"skinTone",void 0);
_.T([_.B(),_.r("design:type",_.V$)],AV.prototype,"emojiManager",void 0);_.T([_.B(),_.r("design:type",Boolean)],AV.prototype,"disableIncrementalLoading",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],AV.prototype,"focusedIndex",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],AV.prototype,"showFocus",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.r("design:type",Object)],AV.prototype,"ariaLabel",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.r("design:type",Object)],AV.prototype,"ariaActivedescendant",void 0);_.T([_.B({value:60}),_.r("design:type",Number)],AV.prototype,"domRepeatTargetFramerate",void 0);_.T([_.B({value:1}),_.r("design:type",Number)],AV.prototype,"domRepeatInitialCount",void 0);_.T([_.B({value:""}),_.r("design:type",String)],AV.prototype,"activeEmojiWithVariantsId",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],AV.prototype,"shouldUseStickyPreferences",void 0);_.T([_.KT("emoji"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AV.prototype,"emojiChanged_",null);_.T([_.KT("emojiManager"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AV.prototype,"emojiManagerChanged_",null);
_.T([_.KT("disableIncrementalLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AV.prototype,"disableIncrementalLoadingChanged_",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AV.prototype,"dataChanged",null);_.T([_.GQ("mousedown"),_.r("design:type",Function),_.r("design:paramtypes",[Object]),_.r("design:returntype")],AV.prototype,"onMouseDown",null);
_.T([_.GQ("mouseup"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AV.prototype,"onMouseUp",null);_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AV.prototype,"onFocus",null);_.T([_.GQ("blur"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AV.prototype,"onBlur_",null);
_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],AV.prototype,"onClick",null);_.T([_.GQ("mouseover"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],AV.prototype,"onMouseOver_",null);_.T([_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],AV.prototype,"onKeyDown_",null);
_.T([_.aO({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],AV);
_.z(AV,"yt-emoji-picker-category-renderer",function(){if(U2x===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;brf===void 0&&(brf=document.createElement("template"));var K=brf;G.call(q,K.content.cloneNode(!0),M.content.firstChild);U2x=M}M=U2x;return M},{mode:2});var x2M;var z1P;var m2x;var SJv;var dJ=function(){var M=_.Q.apply(this,arguments)||this;M.ariaLabel=null;M.ariaActivedescendant=null;M.getFormattedStringRawText=_.UX;M.JSC$14297_ignoreNextFocus_=!1;return M};
_.l(dJ,_.Q);_.N=dJ.prototype;_.N.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")};
_.N.emojiUrl=function(M){var q,G;M=(q=f3(this.emojiManager,M,!0))==null?void 0:(G=q.image)==null?void 0:G.thumbnails;return _.TE(M,24)||""};
_.N.emojiAlt=function(M){var q=this.get("image.accessibility.accessibilityData.label",M);return q?q:M.isCustomEmoji?M.shortcuts[0]:M.emojiId};
_.N.emojiId=function(M){return"emoji"+M};
_.N.computeId_=function(M){return M.categoryId||""};
_.N.computeAriaActivedescendant_=function(M){return this.emoji&&M<this.emoji.length?this.emojiId(M):""};
_.N.emojiChanged_=function(){this.changeFocus_(0,!1);for(var M=_.nl(),q=0;q<this.emoji.length;q++){var G={veType:88013,elementIndex:q},K=this.emoji[q];K.isCustomEmoji&&(K=document.querySelector(("#"+K.emojiId).replace("/","\\/")))&&(G=_.GE(M,G))&&(K.visualElement=G)}};
_.N.computeEmoji_=function(M){var q=this;return this.emojiManager?M.emojiIds.map(function(G){return _.RG(q.emojiManager,G,!0)}).filter(x2e):[]};
_.N.titleOffsetChanged_=function(){var M=this.hostElement.getBoundingClientRect(),q=_.f_(this.hostElement).querySelector("#title").getBoundingClientRect();M=Math.max(0,Math.min(this.titleOffset,M.height-q.height));_.f_(this.hostElement).querySelector("#title").style.top=M+"px"};
_.N.onEmojiMouseOver_=function(M){_.jP(this.hostElement,"yt-emoji-hover",M.model.item)};
_.N.onEmojiTap_=function(M){this.data.command&&(M=Xww(_.AL().resolve(_.WR(M6)),this.data.command,M),_.jP(this.hostElement,"yt-navigate",M))};
_.N.emojiAriaLabel=function(M){return M.shortcuts[0]};
_.N.emojiAriaSelected=function(M,q,G){return M&&G==q?"true":"false"};
_.N.changeFocus_=function(M,q){var G=this.emoji.length;this.focusedIndex=(this.focusedIndex+M+G)%G;M=this.emoji[this.focusedIndex];if(q){var K;(K=_.f_(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||K.scrollIntoView(!1);_.jP(this.hostElement,"yt-emoji-hover",M)}};
_.N.onMouseDown_=function(){this.JSC$14297_ignoreNextFocus_=!0};
_.N.onFocus_=function(){this.JSC$14297_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$14297_ignoreNextFocus_=!1};
_.N.onBlur_=function(){this.showFocus=!1};
_.N.onKeyDown_=function(M){switch(M.keyCode){case 13:this.onEmojiTap_(M);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);M.preventDefault();break;case 38:this.changeFocus_(-1,!0),M.preventDefault()}};
dJ.prototype.onKeyDown_=dJ.prototype.onKeyDown_;dJ.prototype.onBlur_=dJ.prototype.onBlur_;dJ.prototype.onFocus_=dJ.prototype.onFocus_;dJ.prototype.onMouseDown_=dJ.prototype.onMouseDown_;dJ.prototype.onEmojiTap_=dJ.prototype.onEmojiTap_;dJ.prototype.titleOffsetChanged_=dJ.prototype.titleOffsetChanged_;dJ.prototype.emojiChanged_=dJ.prototype.emojiChanged_;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],dJ.prototype,"ytComponentBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],dJ.prototype,"data",void 0);_.T([_.B({computed:"computeId_(data)"}),_.r("design:type",String)],dJ.prototype,"id",void 0);_.T([_.B({computed:"computeEmoji_(data)"}),_.r("design:type",Array)],dJ.prototype,"emoji",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],dJ.prototype,"titleOffset",void 0);_.T([_.B({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.r("design:type",Object)],dJ.prototype,"ariaLabel",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.r("design:type",Object)],dJ.prototype,"ariaActivedescendant",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],dJ.prototype,"showFocus",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],dJ.prototype,"focusedIndex",void 0);_.T([_.B(),_.r("design:type",_.V$)],dJ.prototype,"emojiManager",void 0);
_.T([_.KT("emoji"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dJ.prototype,"emojiChanged_",null);_.T([_.KT("titleOffset"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dJ.prototype,"titleOffsetChanged_",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],dJ.prototype,"onEmojiTap_",null);
_.T([_.GQ("mousedown"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dJ.prototype,"onMouseDown_",null);_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dJ.prototype,"onFocus_",null);_.T([_.GQ("blur"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dJ.prototype,"onBlur_",null);
_.T([_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],dJ.prototype,"onKeyDown_",null);_.T([_.aO({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],dJ);
_.z(dJ,"yt-emoji-picker-upsell-category-renderer",function(){if(SJv===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;m2x===void 0&&(m2x=document.createElement("template"));var K=m2x;G.call(q,K.content.cloneNode(!0),M.content.firstChild);SJv=M}M=SJv;return M},{mode:2});var TSM;var rB9;var vJ=function(){var M=_.Q.apply(this,arguments)||this;M.scrollAction="lock";M.verticalAlign="top";return M};
_.l(vJ,_.Q);_.N=vJ.prototype;_.N.onClick=function(M){M=_.ba(M);M instanceof HTMLImageElement&&_.jP(this.hostElement,"yt-emoji-select",_.RG(this.emojiManager,M.id))};
_.N.openSelector=function(){this.ironOverlayBehavior.open()};
_.N.onDomChange=function(){cBx(this.ytEmojiSelectorBehavior)};
_.N.computeIsFamilySelector=function(M){var q;return(M==null?void 0:(q=M.emoji)==null?void 0:q.emojiId)==="\ud83d\udc6a"};
_.N.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var M=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];M&&M.emojiId&&(_.jP(this.hostElement,"yt-emoji-select",_.RG(this.emojiManager,M.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Yd.Object.defineProperties(vJ.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var M=this,q,G,K;return this.emojiManager&&((q=this.data)==null?0:(G=q.emoji)==null?0:(K=G.variantIds)==null?0:K.length)?this.data.emoji.variantIds.map(function(n){return!!n&&_.RG(M.emojiManager,n)}).filter(function(n){return!!n}):[]}}});
vJ.prototype.onClick=vJ.prototype.onClick;_.T([_.P(_.Hn),_.r("design:type",Object)],vJ.prototype,"ironOverlayBehavior",void 0);_.T([_.P(g7S),_.r("design:type",Object)],vJ.prototype,"ytEmojiSelectorBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],vJ.prototype,"data",void 0);_.T([_.B(),_.r("design:type",_.V$)],vJ.prototype,"emojiManager",void 0);_.T([_.B(),_.r("design:type",Object)],vJ.prototype,"scrollAction",void 0);_.T([_.B(),_.r("design:type",Object)],vJ.prototype,"verticalAlign",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.r("design:type",Boolean)],vJ.prototype,"isFamilySelector",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],vJ.prototype,"emojiVariants",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[MouseEvent]),_.r("design:returntype")],vJ.prototype,"onClick",null);_.T([_.aO({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],vJ);
_.z(vJ,"yt-emoji-variant-selector",function(){if(rB9===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;TSM===void 0&&(TSM=document.createElement("template"));var K=TSM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);rB9=M}M=rB9;return M},{mode:2});var jC2=/:/g,VO9=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],hV=function(){var M=_.Q.apply(this,arguments)||this;M.emojiVariantSelector=null;M.emojiMultiPersonSelector=null;M.identity=_.ZF;M.lastAnimationTime_=0;M.animationStart_=null;M.animationEnd_=null;return M};
_.l(hV,_.Q);_.N=hV.prototype;
_.N.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}}};
_.N.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.F$)};
_.N.attached=function(){_.RH&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&Bf$(this.emojiManager)};
_.N.dataChanged=function(){var M;if((M=this.data)==null?0:M.categories){M=this.emojiManager;var q=this.getCustomEmojiIds();M.pickerCustomEmojiIds=[].concat(_.Ui(lr$),_.Ui(q))}};
_.N.getCustomEmojiIds=function(){var M,q=(M=this.data.categories)==null?void 0:M.find(function(E){var p;return((p=E.emojiPickerCategoryRenderer)==null?void 0:p.categoryId)&&VO9.includes(E.emojiPickerCategoryRenderer.categoryId)}),G;
M=(G=this.data.categories)==null?void 0:G.find(function(E){return E.emojiPickerUpsellCategoryRenderer});
var K,n;return[q==null?void 0:(K=q.emojiPickerCategoryRenderer)==null?void 0:K.emojiIds,M==null?void 0:(n=M.emojiPickerUpsellCategoryRenderer)==null?void 0:n.emojiIds].flat().filter(function(E){return!!E})};
_.N.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.N.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.N.updateCategoriesAndPlaceholderInternal=function(M,q){var G=this;M&&q&&(this.categories=M.categories||[],this.categoryButtons=M.categoryButtons||[],this.resetPlaceholder(),this.search="",_.g4(function(){G.updateButtons_()}))};
_.N.computeId_=function(M){return M.id||""};
_.N.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(M){return M.emojiPickerCategoryRenderer&&M.emojiPickerCategoryRenderer.emojiData}):!1};
_.N.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.N.onShowEmojiVariantSelector=function(M){var q=M.detail.emojiData;q.variantIds&&q.variantIds.length&&(q.multiSelectorThumbnailRow&&q.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:q,target:M.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:q,target:M.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.N.onIronOverlayClosed=function(M){var q=QWf(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");q&&M.composedPath&&(M.composedPath().includes(_.f_(this.hostElement).querySelector("#emoji-variant-selector"))||M.composedPath().includes(_.f_(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.VW(this.hostElement,"yt-close-emoji-variant-selector",[q.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.N.onEmojiVariantSelectorMouseup=function(M){var q=M.target.firstChild;this.variantSelectorOpened&&q&&_.g4(function(){q.noCancelOnOutsideClick=!1},100)};
_.N.onEmojiVariantSelectorMousedown=function(M){M=M.target.firstChild;this.variantSelectorOpened&&M&&(M.noCancelOnOutsideClick=!1)};
_.N.onSelectCategory_=function(M){var q=this.search!="";this.search="";for(var G=_.f_(this.hostElement).querySelector("#categories").children,K=0;K<G.length;K++){var n=G[K];if(n.id==M.detail.categoryId){q?(_.f_(this.hostElement).querySelector("#categories").scrollTop=n.offsetTop,this.updateButtons_()):(this.animationStart_=_.f_(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=n.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.N.onEmojiHover_=function(M){this.placeholder=M.detail.shortcuts?M.detail.shortcuts[0]:""};
_.N.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.N.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.N.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.N.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.N.computeSearchCategory_=function(M){M=M.replace(jC2,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();M=M.split(" ");for(var q=[],G=this.emojiManager.emojis,K=0;K<G.length;K++){var n=G[K];if(n.searchTerms)for(var E=0;E<n.searchTerms.length;E++){for(var p=n.searchTerms[E].toLocaleLowerCase(),y=!1,Y=0;Y<M.length;Y++)if(p.indexOf(M[Y])!=-1){y=!0;break}if(y&&(!n.isCustomEmoji||!n.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(n.emojiId))){q.push(n.emojiId);
break}}}return{categoryId:-1,emojiIds:q}};
_.N.computeSearchEmptyMessage_=function(M,q){return M&&q&&q.emojiIds&&q.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.N.computeSearching_=function(M){return this.emojiManager&&M.replace(jC2,"").length>1};
_.N.computeSkinToneHidden=function(){var M;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((M=this.data)==null||!M.hideSkinTonePicker)};
_.N.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.N.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.N.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.N.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.N.selectSkinTone_=function(M){M=Number(M.target.getAttribute("tone"));this.set("emojiManager.skinTone",M);_.VW(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[M]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.N.skinToneChanged_=function(){_.f_(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var M=_.f_(this.hostElement).querySelector("#dropdown-content").children,q=0;q<M.length;q++)q===this.skinTone?M[q].setAttribute("selected",""):M[q].removeAttribute("selected")};
_.N.animateScroll_=function(M){this.lastAnimationTime_||(this.lastAnimationTime_=M);M-=this.lastAnimationTime_;M<200?(_.f_(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*M/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.f_(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.N.searchChanged_=function(){this.updateButtons_()};
_.N.updateButtons_=function(){var M=null;if(!this.search)for(var q=_.f_(this.hostElement).querySelector("#categories").scrollTop,G=_.f_(this.hostElement).querySelector("#categories").children,K=0;K<G.length;K++){var n=G[K];n.offsetTop<=q&&(M=n.id)}q=_.f_(this.hostElement).querySelector("#category-buttons").children;for(G=0;G<q.length;G++)K=q[G],K.active=K.id===M};
hV.prototype.searchChanged_=hV.prototype.searchChanged_;hV.prototype.skinToneChanged_=hV.prototype.skinToneChanged_;hV.prototype.onEmojiHover_=hV.prototype.onEmojiHover_;hV.prototype.onSelectCategory_=hV.prototype.onSelectCategory_;hV.prototype.onShowEmojiVariantSelector=hV.prototype.onShowEmojiVariantSelector;hV.prototype.updateCategoriesAndPlaceholder_=hV.prototype.updateCategoriesAndPlaceholder_;hV.prototype.dataChanged=hV.prototype.dataChanged;
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hV.prototype,"data",void 0);_.T([_.B({value:function(){return[]}}),
_.r("design:type",Array)],hV.prototype,"categories",void 0);_.T([_.B({value:function(){return[]}}),
_.r("design:type",Array)],hV.prototype,"categoryButtons",void 0);_.T([_.B({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.r("design:type",Boolean)],hV.prototype,"disableScroll",void 0);_.T([_.B({computed:"computeId_(data)",reflectToAttribute:!0}),_.r("design:type",String)],hV.prototype,"id",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],hV.prototype,"selected",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],hV.prototype,"disableIncrementalLoading",void 0);_.T([_.B(),_.r("design:type",String)],hV.prototype,"placeholder",void 0);_.T([_.B({value:""}),_.r("design:type",String)],hV.prototype,"search",void 0);_.T([_.B({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.r("design:type",Boolean)],hV.prototype,"searching",void 0);_.T([_.B({computed:"computeSearchCategory_(search)"}),_.r("design:type",Object)],hV.prototype,"searchCategory",void 0);
_.T([_.B({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.r("design:type",Object)],hV.prototype,"searchEmptyMessage",void 0);_.T([_.B({computed:"identity(emojiManager.skinTone)"}),_.r("design:type",Number)],hV.prototype,"skinTone",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],hV.prototype,"skinToneOpened",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],hV.prototype,"variantSelectorOpened",void 0);
_.T([_.B({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.r("design:type",Boolean)],hV.prototype,"skinToneHidden",void 0);_.T([_.B(),_.r("design:type",_.V$)],hV.prototype,"emojiManager",void 0);_.T([_.B(),_.r("design:type",Object)],hV.prototype,"emojiVariantSelector",void 0);_.T([_.B(),_.r("design:type",Object)],hV.prototype,"emojiMultiPersonSelector",void 0);
_.T([_.B({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.r("design:type",Boolean)],hV.prototype,"shouldUseStickyPreferences",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hV.prototype,"dataChanged",null);_.T([_.KT("data","selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hV.prototype,"updateCategoriesAndPlaceholder_",null);
_.T([_.GQ("yt-show-emoji-variant-selector"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],hV.prototype,"onShowEmojiVariantSelector",null);_.T([_.GQ("yt-emoji-picker-select-category"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],hV.prototype,"onSelectCategory_",null);_.T([_.GQ("yt-emoji-hover"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],hV.prototype,"onEmojiHover_",null);
_.T([_.KT("skinTone"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hV.prototype,"skinToneChanged_",null);_.T([_.KT("search"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hV.prototype,"searchChanged_",null);_.T([_.aO({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],hV);
_.z(hV,"yt-emoji-picker-renderer",function(){if(z1P===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;x2M===void 0&&(x2M=document.createElement("template"));var K=x2M;G.call(q,K.content.cloneNode(!0),M.content.firstChild);z1P=M}M=z1P;return M},{mode:2});var tV=function(){var M=_.Q.apply(this,arguments)||this;M.emojiManager=_.F$;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.selectedIndex=1;M.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return M};
_.l(tV,_.Q);_.N=tV.prototype;_.N.handleEmojiCustomizationVisible=function(M){this.emojiPickerRenderer.selected=M;this.selectedIndex=1;M?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.N.emojiCustomizationSetChanged=function(){var M;(M=this.data)!=null&&M.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.Hy(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.N.updateSaveButtonState=function(M){var q;(q=this.data)!=null&&q.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.LL("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:M}))};
_.N.emojiUrl=function(M){M=_.RG(this.emojiManager,M);if(!M)return"";var q;M=(q=M.image)==null?void 0:q.thumbnails;return _.TE(M,24)||""};
_.N.emojiAlt=function(M){var q=_.RG(this.emojiManager,M);if(!q)return M;var G,K,n,E=(q==null?void 0:(G=q.image)==null?void 0:(K=G.accessibility)==null?void 0:(n=K.accessibilityData)==null?void 0:n.label)||"";return E?E:q.isCustomEmoji?q.shortcuts[0]:q.emojiId||M};
_.N.emojiAriaLabel=function(M){var q,G;return((q=_.RG(this.emojiManager,M))==null?void 0:(G=q.shortcuts)==null?void 0:G[0])||M};
_.N.onEmojiClick=function(M){M.model.index!==0&&(this.selectedIndex=M.model.index)};
_.N.onEmojiSelect=function(M){M=M.detail;var q,G;((q=this.data)==null?0:q.emojiCustomizationSetEntityKey)&&((G=this.emojiCustomizationSet)==null?0:G.emojiId)&&M.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,M.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.LL("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,M.emojiId,this.selectedIndex)}))};
_.N.canEditEmoji=function(M,q,G){M=M.indexOf(q);return M===G||M===0||G===0?!1:!0};
_.N.getUpdatedEmojiIdList=function(M,q,G){var K=M.indexOf(q);M=[].concat(_.Ui(M));K>=0&&(M[K]=M[G]);M[G]=q;return M};
_.Yd.Object.defineProperties(tV,{template:{configurable:!0,enumerable:!0,get:function(){if(YJl===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;L2f===void 0&&(L2f=document.createElement("template"));var K=L2f;G.call(q,K.content.cloneNode(!0),M.content.firstChild);YJl=M}M=YJl;return M}}});
tV.prototype.onEmojiSelect=tV.prototype.onEmojiSelect;_.T([_.P(_.zD),_.r("design:type",Object)],tV.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],tV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.ET("yt-emoji-picker-renderer"),_.r("design:type",Object)],tV.prototype,"emojiPickerRenderer",void 0);
_.T([_.B({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(M,q){return _.sX(M.entities,"emojiCustomizationSetEntity",q)},
observer:"emojiCustomizationSetChanged"}),_.r("design:type",Object)],tV.prototype,"emojiCustomizationSet",void 0);_.T([_.B(),_.r("design:type",Object)],tV.prototype,"originalEmojiSet",void 0);_.T([_.B(),_.r("design:type",_.V$)],tV.prototype,"emojiManager",void 0);_.T([_.B(),_.r("design:type",Object)],tV.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tV.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",Object)],tV.prototype,"selectedIndex",void 0);
_.T([_.GQ("yt-emoji-select"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],tV.prototype,"onEmojiSelect",null);_.T([_.aO({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],tV);var R1v;var fY2;var F2v;var HrB;var OO=function(){var M=_.Q.apply(this,arguments)||this;M.authorBadges=[];return M};
_.l(OO,_.Q);_.N=OO.prototype;_.N.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.N.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]]"}}}}}};
_.N.dataChanged=function(){var M=LBw(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",M)};
_.N.updateMessage=function(){var M=this.data.message,q=_.f_(_.f_(this.hostElement).querySelector("#message"));q.textContent="";M&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M))};
_.N.shouldSupportWholeItemClick=function(){return!0};
_.N.onShowOriginalClick=function(M){M.preventDefault();this.showOriginal=!0};
_.N.computeShowBar=function(M,q,G){return M&&q||G};
_.N.computeAuthorBadges=function(M){return M.authorBadges||[]};
_.N.computeAuthorIsOwner=function(M){return!!Yoy(M.authorBadges,"owner")};
_.N.computeAuthorNameColor=function(M){var q;if(_.w("live_chat_author_name_color_usernames")&&(M==null?0:(q=M.authorName)==null?0:q.simpleText))return _.txY(_.Oyy(M.authorName.simpleText));if(_.w("live_chat_seed_color_usernames")&&(M==null?0:M.authorSeedColorArgb))return _.txY(_.fT(M.authorSeedColorArgb));if(_.w("live_chat_colored_usernames"))return"#cc0000";var G;return _.w("live_chat_simple_color_usernames")&&(M==null?0:(G=M.authorName)==null?0:G.simpleText)&&(M==null?0:M.authorUsernameColorLight)&&
(M==null?0:M.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.fT(M.authorUsernameColorDark):_.fT(M.authorUsernameColorLight):""};
OO.prototype.updateMessage=OO.prototype.updateMessage;OO.prototype.dataChanged=OO.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],OO.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],OO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],OO.prototype,"data",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],OO.prototype,"showOriginal",void 0);_.T([_.B({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.r("design:type",Boolean)],OO.prototype,"isDimmed",void 0);_.T([_.B({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.r("design:type",Boolean)],OO.prototype,"showBar",void 0);
_.T([_.B({computed:"computeAuthorBadges(data)"}),_.r("design:type",Array)],OO.prototype,"authorBadges",void 0);_.T([_.B({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],OO.prototype,"authorIsOwner",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],OO.prototype,"inCollapsedBanner",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],OO.prototype,"inBanner",void 0);
_.T([_.B({value:_.w("live_chat_hide_avatars"),reflectToAttribute:!0}),_.r("design:type",Boolean)],OO.prototype,"avatarHidden",void 0);_.T([_.B({computed:"computeAuthorNameColor(data)"}),_.r("design:type",String)],OO.prototype,"authorNameColor",void 0);_.T([_.B(),_.r("design:type",_.MI)],OO.prototype,"participantsManager",void 0);_.T([_.B({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.r("design:type",Object)],OO.prototype,"filledButtonOverrides",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],OO.prototype,"dataChanged",null);_.T([_.KT("data.message"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],OO.prototype,"updateMessage",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],OO);
_.z(OO,"yt-live-chat-text-message-renderer",function(){if(HrB===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;F2v===void 0&&(F2v=document.createElement("template"));var K=F2v;G.call(q,K.content.cloneNode(!0),M.content.firstChild);HrB=M}M=HrB;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var wJ=function(){var M=_.Q.apply(this,arguments)||this;M.tonalButtonOverrides={type:"tonal",style:"overlay"};return M};
_.l(wJ,_.Q);
wJ.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]]"}}}}}};
wJ.prototype.shouldSupportInlineActionButtons=function(){return!0};
wJ.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Yd.Object.defineProperties(wJ.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],wJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],wJ.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],wJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],wJ.prototype,"data",void 0);_.T([_.B(),_.r("design:type",_.MI)],wJ.prototype,"participantsManager",void 0);
_.T([_.B(),_.r("design:type",Object)],wJ.prototype,"tonalButtonOverrides",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.infoDialogButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],wJ.prototype,"hasInfoDialogButton",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],wJ);
_.z(wJ,"yt-live-chat-auto-mod-message-renderer",function(){if(fY2===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;R1v===void 0&&(R1v=document.createElement("template"));var K=R1v;G.call(q,K.content.cloneNode(!0),M.content.firstChild);fY2=M}M=fY2;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var e1I;var $2d;var sVv;var Mqf=function(){return _.Q.apply(this,arguments)||this};
_.l(Mqf,_.Q);_.T([_.B(),_.r("design:type",Object)],Mqf.prototype,"data",void 0);_.T([_.b({is:"ytd-factoid-renderer",disableElementRegistration:!0})],Mqf);
_.z(Mqf,"ytd-factoid-renderer",function(){if(sVv!==void 0)return sVv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return sVv=M},{mode:1});var CC=function(){return _.Q.apply(this,arguments)||this};
_.l(CC,_.Q);CC.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.T([_.B(),_.r("design:type",Object)],CC.prototype,"data",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],CC);
_.z(CC,"yt-live-chat-channel-activity-reputation-renderer",function(){if($2d===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;e1I===void 0&&(e1I=document.createElement("template"));var K=e1I;G.call(q,K.content.cloneNode(!0),M.content.firstChild);$2d=M}M=$2d;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var qDp;var G0B;var aB=function(){return _.Q.apply(this,arguments)||this};
_.l(aB,_.Q);aB.prototype.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],aB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Boolean)],aB.prototype,"menuFocused",void 0);_.T([_.B(),_.r("design:type",Object)],aB.prototype,"data",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],aB.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],aB);
_.z(aB,"yt-live-chat-donation-announcement-renderer",function(){if(G0B===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;qDp===void 0&&(qDp=document.createElement("template"));var K=qDp;G.call(q,K.content.cloneNode(!0),M.content.firstChild);G0B=M}M=G0B;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var K99;var nBI,EBI=function(){if(nBI!==void 0)return nBI;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;K99===void 0&&(K99=document.createElement("template"));var K=K99;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return nBI=M};var oB=function(){return _.Q.apply(this,arguments)||this};
_.l(oB,_.Q);_.Yd.Object.defineProperties(oB,{template:{configurable:!0,enumerable:!0,get:function(){return EBI()}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],oB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],oB.prototype,"data",void 0);_.T([_.aO({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],oB);_.z(oB,"yt-live-chat-empty-feed-view-model",function(){return EBI()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var NO$;var k0B;var l3=function(){return _.Q.apply(this,arguments)||this};
_.l(l3,_.Q);l3.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"}}}}}};
_.Yd.Object.defineProperties(l3.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var M,q;return{runs:[{text:(M=this.data)==null?void 0:(q=M.channelName)==null?void 0:q.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var M=[],q;if((q=this.data)==null||!q.channelBadges)return M;var G;q=_.k((G=this.data)==null?void 0:G.channelBadges);for(G=q.next();!G.done;G=q.next()){G=_.C(G.value,Exd);var K=void 0,n=void 0;if((K=G)==null?0:(n=K.badgeImage)==null?0:n.sources)K=void 0,n={liveChatAuthorBadgeRenderer:{tooltip:G.tooltip,accessibility:{accessibilityData:{label:(K=_.C(G.rendererContext,_.NQ))==null?void 0:K.label}}}},G.badgeImage.sources[0].clientResource?n.liveChatAuthorBadgeRenderer.icon=
{iconType:G.badgeImage.sources[0].clientResource.imageName}:n.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:G.badgeImage.sources},M.push(n)}return M}}});
_.T([_.B(),_.r("design:type",Object)],l3.prototype,"data",void 0);_.T([_.c("data.channelName"),_.r("design:type",Object),_.r("design:paramtypes",[])],l3.prototype,"channelName",null);_.T([_.c("data.channelBadges"),_.r("design:type",Array),_.r("design:paramtypes",[])],l3.prototype,"channelBadges",null);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],l3);
_.z(l3,"yt-live-chat-identity-view-model",function(){if(k0B===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;NO$===void 0&&(NO$=document.createElement("template"));var K=NO$;G.call(q,K.content.cloneNode(!0),M.content.firstChild);k0B=M}M=k0B;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var paf;var yGI;var L9S;var YDv;var XU=function(){var M=_.Q.apply(this,arguments)||this;M.hidden=!1;M.supportsInlineActionButtons=!0;return M};
_.l(XU,_.Q);XU.prototype.ready=function(){var M;((M=document.querySelector("yt-live-chat-app"))==null?0:M.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
XU.prototype.dataChanged=function(M){var q=(0,_.$U)(_.f_(this.hostElement).querySelector("#detail-text"));q.textContent="";(M==null?0:M.detailText)&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M.detailText))};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],XU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],XU.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],XU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B({observer:"dataChanged"}),_.r("design:type",Object)],XU.prototype,"data",void 0);
_.T([_.B({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.r("design:type",Object)],XU.prototype,"hidden",void 0);_.T([_.b({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],XU);
_.z(XU,"yt-live-chat-legacy-paid-message-renderer",function(){if(YDv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;L9S===void 0&&(L9S=document.createElement("template"));var K=L9S;G.call(q,K.content.cloneNode(!0),M.content.firstChild);YDv=M}M=YDv;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var W9v;var AG2;var dGP={},PJ=function(){return _.kA.apply(this,arguments)||this};
_.l(PJ,_.kA);PJ.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
PJ.prototype.onLiveChatMembershipItemBehaviorClick=PJ.prototype.onLiveChatMembershipItemBehaviorClick;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],PJ.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],PJ.prototype,"data",void 0);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],PJ.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.T([_.pT()],PJ);
dGP.YtLiveChatMembershipItemBehavior=[PJ.prototype,_.F.YtRendererBehavior];var i3=function(){var M=_.Q.apply(this,arguments)||this;M.supportsInlineActionButtons=!0;M.hasPrimaryHeaderText=!1;M.showOnlyHeader=!1;M.authorBadges=[];M.modern=_.w("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.l(i3,_.Q);_.N=i3.prototype;_.N.shouldSupportInlineActionButtons=function(){return!0};
_.N.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.N.ready=function(){var M=document.querySelector("yt-live-chat-app");M&&M.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.N.messageChanged=function(){var M=this.data.message,q=(0,_.$U)(_.f_(this.hostElement).querySelector("#message"));q.textContent="";M&&q.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(M))};
_.N.computeHasPrimaryHeaderText=function(M){return!(!M||!M.headerPrimaryText)};
_.N.computeShowOnlyHeader=function(M,q){return this.isMessageEmpty(M,q)};
_.N.computeAuthorBadges=function(M){return M.authorBadges||[]};
_.N.isMessageEmpty=function(M,q){return!M||M.empty?!0:!M.message&&!M.inputField&&!q};
_.N.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.N.getInputElement=function(){return _.f_(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.N.inputFocus=function(){var M=this.getInputElement();M&&M.focus()};
_.N.inputInsertEmoji=function(M){var q=this.getInputElement();q&&q.insertEmoji(M)};
_.N.inputMessage=function(){var M=this.getInputElement();return M&&this.data.inputField?(M.completeEmojis(),_.cx(M.liveChatRichMessageInput)):null};
_.N.onFooterButtonClick=function(){this.data.footerButton&&_.jP(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.N.shouldSupportWholeItemClick=function(){return!0};
i3.prototype.isDeletedChanged=i3.prototype.isDeletedChanged;i3.prototype.messageChanged=i3.prototype.messageChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],i3.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],i3.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.P(dGP.YtLiveChatMembershipItemBehavior),_.r("design:type",Object)],i3.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],i3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],i3.prototype,"data",void 0);_.T([_.B({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.r("design:type",Object)],i3.prototype,"hasPrimaryHeaderText",void 0);_.T([_.B({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.r("design:type",Object)],i3.prototype,"showOnlyHeader",void 0);
_.T([_.B({computed:"computeAuthorBadges(data)"}),_.r("design:type",Array)],i3.prototype,"authorBadges",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i3.prototype,"modern",void 0);_.T([_.KT("data.message"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i3.prototype,"messageChanged",null);_.T([_.KT("isDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i3.prototype,"isDeletedChanged",null);
_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],i3);
_.z(i3,"yt-live-chat-membership-item-renderer",function(){if(AG2===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;W9v===void 0&&(W9v=document.createElement("template"));var K=W9v;G.call(q,K.content.cloneNode(!0),M.content.firstChild);AG2=M}M=AG2;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var vB$;var hjP;var cJ=function(){return _.Q.apply(this,arguments)||this};
_.l(cJ,_.Q);cJ.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],cJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],cJ.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],cJ);
_.z(cJ,"yt-live-chat-mode-change-message-renderer",function(){if(hjP===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;vB$===void 0&&(vB$=document.createElement("template"));var K=vB$;G.call(q,K.content.cloneNode(!0),M.content.firstChild);hjP=M}M=hjP;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var tqP;var OHM;var gJ=function(){return _.Q.apply(this,arguments)||this};
_.l(gJ,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],gJ.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],gJ.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],gJ);
_.z(gJ,"yt-live-chat-moderation-message-renderer",function(){if(OHM===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;tqP===void 0&&(tqP=document.createElement("template"));var K=tqP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);OHM=M}M=OHM;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var wap;var CLx;var BJ=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_button_rework");return M};
_.l(BJ,_.Q);BJ.prototype.onClick=function(){var M;if((M=this.data)!=null&&M.onClickCommand){var q;_.$A.instance.resolveCommand((q=this.data)==null?void 0:q.onClickCommand)}};
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],BJ.prototype,"modern",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],BJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],BJ.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],BJ.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],BJ.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],BJ.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],BJ);
_.z(BJ,"yt-live-chat-offer-click-count-message-renderer",function(){if(CLx===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;wap===void 0&&(wap=document.createElement("template"));var K=wap;G.call(q,K.content.cloneNode(!0),M.content.firstChild);CLx=M}M=CLx;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var anx;var oB9=function(){return _.Q.apply(this,arguments)||this};
_.l(oB9,_.Q);_.T([_.B(),_.r("design:type",Object)],oB9.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],oB9);
_.z(oB9,"yt-live-chat-placeholder-item-renderer",function(){if(anx===void 0){var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);anx=M}M=anx;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var lnP;var Xap;var PL9=new ZS(7),Q3=function(){var M=_.Q.apply(this,arguments)||this;M.data={};return M};
_.l(Q3,_.Q);Q3.prototype.dataChanged=function(){var M;((M=this.data)==null?0:M.class)&&_.HE(this.hostElement,this.data.class,!0);var q;((q=this.oldData)==null?0:q.class)&&_.HE(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
Q3.prototype.computeTimestampString=function(M){return PL9.format(new Date(M/1E3))};
Q3.prototype.dataChanged=Q3.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],Q3.prototype,"data",void 0);_.T([_.B({computed:"computeTimestampString(data.timestampUsec)"}),_.r("design:type",String)],Q3.prototype,"timestampString",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Q3.prototype,"dataChanged",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],Q3);
_.z(Q3,"yt-live-chat-server-error-message",function(){if(Xap===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;lnP===void 0&&(lnP=document.createElement("template"));var K=lnP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Xap=M}M=Xap;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var iHd;var cGf;var IB=function(){var M=_.Q.apply(this,arguments)||this;M.defaultToFilledIcon=!1;return M};
_.l(IB,_.Q);IB.prototype.computeHasPrimaryColorIcon=function(M){return M==="SPARK"||M==="SPONSORSHIP_STAR"};
IB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],IB.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],IB.prototype,"defaultToFilledIcon",void 0);_.T([_.B(),_.r("design:type",Object)],IB.prototype,"data",void 0);
_.T([_.B({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.r("design:type",Boolean)],IB.prototype,"hasPrimaryColorIcon",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],IB);
_.z(IB,"yt-live-chat-viewer-engagement-message-renderer",function(){if(cGf===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;iHd===void 0&&(iHd=document.createElement("template"));var K=iHd;G.call(q,K.content.cloneNode(!0),M.content.firstChild);cGf=M}M=cGf;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var gB9;var D6=function(){var M=_.Q.apply(this,arguments)||this;M.modernUpdate=!1;M.buttonStyle="overlay";M.buttonType="filled";return M};
_.l(D6,_.Q);D6.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
D6.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],D6.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],D6.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],D6.prototype,"modernUpdate",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],D6.prototype,"buttonStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],D6.prototype,"buttonType",void 0);
_.T([_.b({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],D6);
_.z(D6,"ytd-ad-hover-text-button-renderer",function(){if(gB9!==void 0)return gB9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return gB9=M},{mode:1});var BO9;var u3=function(){var M=_.Q.apply(this,arguments)||this;M.buttonOverrides={size:"XS"};M.modern=_.w("web_button_rework");return M};
_.l(u3,_.Q);u3.prototype.onHelpTap=function(M){this.data&&this.data.informationDialog&&(_.jP(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),M.preventDefault(),M.stopPropagation())};
_.T([_.B(),_.r("design:type",Object)],u3.prototype,"buttonOverrides",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],u3.prototype,"modern",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],u3.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],u3);
_.z(u3,"ytd-live-chat-purchased-product-message-renderer",function(){if(BO9!==void 0)return BO9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return BO9=M},{mode:1});var QV2;var InI;var JV=function(){var M=_.Q.apply(this,arguments)||this;M.isContainerDeleted=!1;return M};
_.l(JV,_.Q);JV.prototype.onContextMenuClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
JV.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))};
JV.prototype.isContainerDeletedChanged=JV.prototype.isContainerDeletedChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],JV.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],JV.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],JV.prototype,"isContainerDeleted",void 0);
_.T([_.B(),_.r("design:type",String)],JV.prototype,"deletedStateMessage",void 0);_.T([_.KT("isContainerDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JV.prototype,"isContainerDeletedChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],JV);
_.z(JV,"ytd-sponsorships-live-chat-header-renderer",function(){if(InI!==void 0)return InI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return InI=M},{mode:1});var Z6=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_button_rework_with_live");M.buttonOverrides={style:"overlay",type:"filled"};return M};
_.l(Z6,_.Q);Z6.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]]"}}}}}};
Z6.prototype.onCtaButtonClick=function(){var M,q=_.C((M=this.data)==null?void 0:M.optInPrompt,_.f1);if(M=this.maybeGetButtonCommand(q)){var G;(G=_.nl())==null||G.clickCommand(M)}};
Z6.prototype.maybeGetButtonCommand=function(M){return!M||!M.command||_.C(M.command,jcd)===void 0&&_.C(M.command,raJ)===void 0?null:M.command};
Z6.prototype.shouldHideOptinPrompt=function(M,q){return!M||q};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Z6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],Z6.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Z6.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Z6.prototype,"modern",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],Z6);
_.z(Z6,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(QV2!==void 0)return QV2;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return QV2=M},{mode:1});var DGp;var b3=function(){return _.Q.apply(this,arguments)||this};
_.l(b3,_.Q);b3.prototype.onContextMenuClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
b3.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))};
b3.prototype.isDeletedChanged=b3.prototype.isDeletedChanged;_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],b3.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],b3.prototype,"data",void 0);_.T([_.KT("isDeleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b3.prototype,"isDeletedChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],b3);
_.z(b3,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(DGp!==void 0)return DGp;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return DGp=M},{mode:1});var UO=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return M};
_.l(UO,_.Q);_.N=UO.prototype;
_.N.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"}}}};
_.N.handleLiveChatAction=function(M){_.C(M,i1d)?this.handleMarkChatItemAsDeletedAction(_.C(M,i1d)):_.C(M,PUd)&&this.handleRemoveChatItemAction(_.C(M,PUd))};
_.N.handleLiveChatActions=function(M){M.forEach(this.handleLiveChatAction,this)};
_.N.handleMarkChatItemAsDeletedAction=function(M){var q=this,G;((G=this.data)==null?0:G.items)&&this.data.items.forEach(function(K,n){var E=Object.keys(K)[0];Object.values(K)[0].id===M.targetItemId&&q.markAsDeleted("data.items",n,E,M.deletedStateMessage,M.showOriginalContentMessage)})};
_.N.handleRemoveChatItemAction=function(M){var q=this,G;((G=this.data)==null?0:G.items)&&this.data.items.forEach(function(K,n){Object.values(K)[0].id===M.targetItemId&&q.splice("data.items",n,1)})};
_.N.markAsDeleted=function(M,q,G,K,n){M=[M,q,G].join(".");this.set(M+".deletedStateMessage",K);this.set(M+".showOriginalContentMessage",n)};
_.T([_.B(),_.r("design:type",Object)],UO.prototype,"data",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],UO.prototype,"ytActionHandlerBehavior",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],UO);
_.z(UO,"yt-live-chat-item-display-list-renderer",function(){if(yGI===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;paf===void 0&&(paf=document.createElement("template"));var K=paf;G.call(q,K.content.cloneNode(!0),M.content.firstChild);yGI=M}M=yGI;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var uEM;var JGS,ZHl=function(){if(JGS!==void 0)return JGS;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;uEM===void 0&&(uEM=document.createElement("template"));var K=uEM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return JGS=M};var xS=function(){var M=_.Q.apply(this,arguments)||this;M.isHeader=!1;return M};
_.l(xS,_.Q);xS.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Yd.Object.defineProperties(xS,{template:{configurable:!0,enumerable:!0,get:function(){return ZHl()}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],xS.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],xS.prototype,"isHeader",void 0);_.T([_.aO({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],xS);_.z(xS,"yt-live-chat-item-display-renderer",function(){return ZHl()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var bHd,UGI,TOM,SDp;
bHd={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}};UGI={home:"eohps",search:"eosps",watch:"eowps"};_.xGB=["watch","search","home"];
_.zU=function(){this.JSC$14408_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$14408_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.R9("PRECONSTRUCTION_DELAY",0);this.signals_=_.M5();this.targetPage_=""};
_.zU.prototype.init=function(M,q){M=M===void 0?"":M;q=q===void 0?null:q;if(this.JSC$14408_isInitialized_)this.abort();else if(this.JSC$14408_isInitialized_=!0,M&&_.zj8(this,M),q){var G=_.q5(this.signals_,"pcl")?0:10,K=function(){for(var n=0,E;E=_.xGB[n++];)E!=M&&E!=q&&this.pendingPages_.push(E);_.mGv(this)}.bind(this);
this.signals_.parkOrScheduleJob(K,G,"pcl")}};
_.zU.prototype.abort=function(){this.fragmentJobId_&&(_.r8.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);SDp(this)};
_.zj8=function(M,q){M.JSC$14408_isInitialized_&&!M.targetPage_&&(M.targetPage_=q,TOM(M,q),M.isInitialPass_=!1,TOM(M,q),M.signals_.processSignal(UGI[M.targetPage_]),SDp(M),_.mGv(M))};
_.mGv=function(M){M.pendingPages_.length&&!M.pagePreparerJobId_&&(M.pagePreparerJobId_=_.Jp(_.r8,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.zj8(this,this.pendingPages_.shift())}.bind(M),M.DEFAULT_DELAY_))};
TOM=function(M,q){if(q=bHd[q])for(var G in q){var K=!1,n=G;G.charAt(0)=="~"&&(K=!0,n=G.substring(1));var E=q[G];E=typeof E=="object"?E:{count:E};q[G]=E;E.componentName=n;E.count>0&&(M.isInitialPass_?K||M.isSeenDuringInitialPass_[n]||(M.JSC$14408_queue_.push({componentName:n,count:1,signals:E.signals}),M.isSeenDuringInitialPass_[n]=!0,E.count--):M.JSC$14408_queue_.push(E))}};
SDp=function(M){M.JSC$14408_queue_.length=0;M.targetPage_="";M.isInitialPass_=!0;M.signals_.processSignal("eop")};
_.zU.getInstance=function(){return _.Uz(_.zU)};var rG$=function(){this.signals=_.M5();this.init()};
rG$.prototype.startPreconstruction=function(){_.zU.getInstance().init(_.fX("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
rG$.prototype.init=function(){jV8(this);window.Polymer&&sJ2&&KUy();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var M=_.Kj.ytcsi;if(M&&M.gt&&(M=M.gt())&&M.tick&&(M.tick.aft>0||M.tick.pbs>0)&&(_.fX("IS_HOMEPAGE_COLD")||_.fX("IS_RESULTS_PAGE_COLD")||_.fX("IS_WATCH_PAGE_COLD"))){Vqf(this);break a}Ure(mCD,this.onNotifications,this)}};
var jV8=function(M){var q=function(){M.signals.processSignal("dl")};
document.readyState==="complete"?(_.Mz(Error("th"),"WARNING"),q()):_.Aju(window,"load",q)};
rG$.prototype.onNotifications=function(M){M.timer||(_.fX("IS_HOMEPAGE_COLD")||_.fX("IS_RESULTS_PAGE_COLD")||_.fX("IS_WATCH_PAGE_COLD"))&&Vqf(this)};
var Vqf=function(M){M.signals.parkOrScheduleJob(function(){M.signals.processSignal("eocs")},10,"eor")};
new rG$;var RjJ=function(){return _.kA.apply(this,arguments)||this};
_.l(RjJ,_.kA);_.Yd.Object.defineProperties(RjJ.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_entity_store_from_dependency_injection")?_.J_():_.zw()}}});
_.T([_.pT()],RjJ);_.mr=[DI.prototype,RjJ.prototype];var fnB=["ytd-rich-shelf-renderer"],Sr=function(){var M=_.kA.apply(this,arguments)||this;M._noAccessors=!0;M.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";M.followUpDialogPromise=null;M.followUpDialogPromiseResolve=null;M.followUpDialogPromiseReject=null;return M};
_.l(Sr,_.kA);_.N=Sr.prototype;_.N.dismissibleItemIsDismissedChanged_=function(M){_.w("kevlar_fluid_dismiss")&&(M?_.jP(this.hostElement,"yt-dismissible-item-dismissed"):_.jP(this.hostElement,"yt-dismissible-item-undismissed"))};
_.N.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.N.dismissibleItemReset_=function(){var M=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 _.X4(function(q,G){M.followUpDialogPromiseResolve=q;M.followUpDialogPromiseReject=G});
_.jP(this.hostElement,"yt-enable-lockup-interaction")};
_.N.dismissibleItemOnYtServiceRequestSent_=function(M,q){q.actions&&this.dismissibleItemProcessActions(q.actions,M)};
_.N.dismissibleItemOnRequestSent=function(M){if(_.w("web_button_rework"))for(var q=_.k(M.detail),G=q.next();!G.done;G=q.next()){var K=void 0;(G=(K=_.C(G.value,_.sl))==null?void 0:K.actions)&&this.dismissibleItemProcessActions(G,M)}};
_.N.dismissibleItemOnCommandSent=function(M,q){q&&this.dismissibleItemProcessActions(q,M)};
_.N.setAndGetDismissedContentId=function(M){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+M};
_.N.replayDismissAction=function(M){this.dismissibleItemProcessActions([M])};
_.N.dismissibleItemProcessActions=function(M,q){for(var G=0;G<M.length;G++){var K=M[G],n=void 0;((n=_.C(K,_.eP))==null?0:n.commands)&&this.dismissibleItemProcessActions(_.C(K,_.eP).commands,q);if(_.C(K,_.PA)){if(n=_.C(K,_.PA),!n.replaceParentSection||fnB.includes(this.hostElement.nodeName.toLowerCase()))n.groupDismissal&&z1j(this,n.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(n),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.LL("commandEntity",this.dismissedContentId,
{key:this.dismissedContentId,command:K})),K=void 0,(K=q)==null||K.stopPropagation()}else if(_.C(K,CtB))this.dismissibleItemHandleHideEnclosingAction_(),K=void 0,(K=q)==null||K.stopPropagation();else if(_.C(K,jeS))K=_.C(K,jeS),n=void 0,((n=K)==null?0:n.targetGroupId)&&z1j(this,{targetGroupId:K.targetGroupId},!1),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.LL("commandEntity",this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),
K=void 0,(K=q)==null||K.stopPropagation();else if(_.C(K,_.sl))(K=_.C(K,_.sl).actions)&&_.FH(this.hostElement,K,this.hostElement),K=void 0,(K=q)==null||K.stopPropagation();else{var E=n=void 0;((n=_.C(K,_.sQ))==null?void 0:n.signal)!=="TELL_US_WHY"||((E=_.C(K,_.sQ))==null?0:E.targetId)&&_.w("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),K=void 0,(K=q)==null||K.stopPropagation())}}};
_.N.dismissibleItemOnYtServiceRequestCompleted_=function(M,q){var G=this.get("feedbackResponses.0.followUpDialog",q.data);G?this.followUpDialogPromiseResolve(G):q.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(q.actions,M)};
_.N.dismissibleItemHandleReplaceEnclosingAction_=function(M){this.dismissedRenderer=M.item;this.isDismissed=!0;var q=null;(q=_.f_(this.hostElement).querySelector("#dismissed"))&&_.yb(this,function(){_.N8(q)});
_.jP(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.N.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.N.dismissibleItemHandleUndoFeedbackAction_=function(){_.jP(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.N.dismissibleItemHandleTellUsWhySignalAction_=function(){var M=this;this.followUpDialogPromise.then(function(q){M.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:q}})})};
Sr.prototype.dismissibleItemOnYtServiceRequestCompleted_=Sr.prototype.dismissibleItemOnYtServiceRequestCompleted_;Sr.prototype.dismissibleItemOnCommandSent=Sr.prototype.dismissibleItemOnCommandSent;Sr.prototype.dismissibleItemOnRequestSent=Sr.prototype.dismissibleItemOnRequestSent;Sr.prototype.dismissibleItemOnYtServiceRequestSent_=Sr.prototype.dismissibleItemOnYtServiceRequestSent_;Sr.prototype.dismissibleItemDataChanged_=Sr.prototype.dismissibleItemDataChanged_;
Sr.prototype.dismissibleItemIsDismissedChanged_=Sr.prototype.dismissibleItemIsDismissedChanged_;_.T([_.P(_.EO),_.r("design:type",Object)],Sr.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Sr.prototype,"ytdReduxBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Sr.prototype,"isDismissed",void 0);_.T([_.B(),_.r("design:type",Object)],Sr.prototype,"dismissedRenderer",void 0);
_.T([_.KT("isDismissed"),_.r("design:type",Function),_.r("design:paramtypes",[Boolean]),_.r("design:returntype")],Sr.prototype,"dismissibleItemIsDismissedChanged_",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sr.prototype,"dismissibleItemDataChanged_",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],Sr.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.T([_.GQ("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Sr.prototype,"dismissibleItemOnRequestSent",null);
_.T([_.GQ("yt-dismissible-item-action"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Array]),_.r("design:returntype")],Sr.prototype,"dismissibleItemOnCommandSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],Sr.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.T([_.pT()],Sr);_.TU=[_.EO,_.mr,Sr.prototype];var rJ=function(){var M=_.kA.apply(this,arguments)||this;M.disableGridStateAware=!1;M.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};M.currentGridClass="";return M};
_.l(rJ,_.kA);rJ.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.yb(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var M=this.gridStateAwareGetElement();_.HE(M,"grid",!0)}};
rJ.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
rJ.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.f_(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
rJ.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var M="grid-disabled";else{M=_.h7.getInstance();var q=this.get("pageSubtype");M=q&&MV2.includes(q)?"grid-disabled":M.currentSnapState_?M.currentSnapState_.className:null}(q=this.gridStateAwareGetElement())&&M!==this.currentGridClass&&(M&&_.HE(q,M,!0),this.currentGridClass&&_.HE(q,this.currentGridClass,!1),this.currentGridClass=M)};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],rJ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",String)],rJ.prototype,"gridStateAwareSizingElementSelector",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],rJ.prototype,"disableGridStateAware",void 0);_.T([_.pT()],rJ);_.jr=[rJ.prototype,_.wg.YtActionHandlerBehavior];_.V3=new _.$k("GUIDE_TOKEN");var fC;_.RB={};fC=function(){var M=_.kA.apply(this,arguments)||this;M.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 M};
_.l(fC,_.kA);_.N=fC.prototype;_.N.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.N.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var M=_.AL().resolve(_.WR(_.V3));M&&(this.guidePersistentAndVisible=M.getGuidePersistentAndVisible(),this.activeEndpoint=M.getActiveEndpoint(),this.guideOpened=M.getGuideOpened(),this.miniGuideVisible=M.getMiniGuideVisible())};
_.N.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.N.handleGuideStateAction=function(M){this.guidePersistentAndVisible=M};
_.N.handleMiniGuideStateAction=function(M){this.miniGuideVisible=M};
_.N.handleGuideOpenedAction=function(M){this.guideOpened=M};
_.N.handleActiveEndpointAction=function(M){this.activeEndpoint=M};
fC.prototype.onActiveEndpointChange=fC.prototype.onActiveEndpointChange;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],fC.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],fC.prototype,"guidePersistentAndVisible",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],fC.prototype,"miniGuideVisible",void 0);_.T([_.B(),_.r("design:type",Object)],fC.prototype,"activeEndpoint",void 0);
_.T([_.KT("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fC.prototype,"onActiveEndpointChange",null);_.T([_.B(),_.r("design:type",Boolean)],fC.prototype,"guideOpened",void 0);_.T([_.pT()],fC);_.RB.YtdGuideStateAwareBehavior=[];_.RB.YtdGuideStateAwareBehavior.push(fC.prototype,_.wg.YtActionHandlerBehavior);var F9J=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],FU=function(){var M=_.kA.apply(this,arguments)||this;M.hoverJobId=0;M.JSC$14435_touched=!1;return M};
_.l(FU,_.kA);_.N=FU.prototype;_.N.created=function(){this.useExpandableTooltip=!F9J.includes(this.is)};
_.N.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.N.detached=function(){this.useExpandableTooltip=!1};
_.N.lockupOnDown=function(M){this.interactionElement&&!_.b8(_.Zx(M),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.N.lockupOnUp=function(M){this.interactionElement&&!_.b8(_.Zx(M),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.N.onTouchStart=function(){this.JSC$14435_touched=!0};
_.N.lockupOnMouseEnter=function(){var M=this,q=_.tL("kevlar_lockup_hover_delay",-1);this.JSC$14435_touched&&q>=0?(_.r8.cancelJob(this.hoverJobId),this.hoverJobId=_.r8.addJob(function(){M.lockupIsHovered=!0},8,q),this.JSC$14435_touched=!1):this.lockupIsHovered=!0};
_.N.lockupOnMouseLeave=function(){this.hoverJobId&&(_.r8.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.N.lockupOnPopupClosed=function(M,q){var G;((G=q.popupRenderer)==null?void 0:G.is)==="ytd-menu-popup-renderer"&&(M=q.popupRenderer.veData,q=_.Cx(),M&&q&&_.J2(q,[M]))};
_.N.lockupOnLockupRequested=function(M){var q=M.detail.videoIds[0],G;M.detail&&q===((G=this.data)==null?void 0:G.videoId)&&(M.detail.returnValue=[this.data])};
_.N.lockupOnYtServiceRequestSent=function(M,q){if(M=q.actions)for(var G=0;G<M.length;G++){var K=M[G];if(K.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&q.ajaxPromise){var n=void 0,E=(n=_.C(q.endpoint,_.ri))==null?void 0:n.playlistId;n=void 0;K=(n=K.removedVideoId)!=null?n:"";Pll(_.KV(),K,E)}else K.action==="ACTION_REMOVE_VIDEO"&&q.ajaxPromise&&(E=void 0,K=(E=K.setVideoId)!=null?E:"",_.iUP(_.KV(),K))}};
_.N.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.N.lockupOnLockupEnabled=function(){if(!this.$){var M=_.AL().resolve(_.md).getCurrentPage(),q=this.getParentRenderer?this.getParentRenderer():void 0;_.j1(new _.bj("component not ready",this.is,this.isAttached,M==null?void 0:M.is,q==null?void 0:q.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
FU.prototype.lockupOnLockupEnabled=FU.prototype.lockupOnLockupEnabled;FU.prototype.lockupOnLockupDisabled=FU.prototype.lockupOnLockupDisabled;FU.prototype.lockupOnYtServiceRequestSent=FU.prototype.lockupOnYtServiceRequestSent;FU.prototype.lockupOnLockupRequested=FU.prototype.lockupOnLockupRequested;FU.prototype.lockupOnPopupClosed=FU.prototype.lockupOnPopupClosed;FU.prototype.lockupOnMouseLeave=FU.prototype.lockupOnMouseLeave;FU.prototype.lockupOnMouseEnter=FU.prototype.lockupOnMouseEnter;
FU.prototype.onTouchStart=FU.prototype.onTouchStart;FU.prototype.lockupOnUp=FU.prototype.lockupOnUp;FU.prototype.lockupOnDown=FU.prototype.lockupOnDown;_.T([_.B(),_.r("design:type",Object)],FU.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],FU.prototype,"lockupIsHovered",void 0);_.T([_.B(),_.r("design:type",Boolean)],FU.prototype,"lockupTouchTriggered",void 0);_.T([_.B(),_.r("design:type",Boolean)],FU.prototype,"useExpandableTooltip",void 0);
_.T([_.ET("#interaction"),_.r("design:type",Object)],FU.prototype,"interactionElement",void 0);_.T([_.GQ("down"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],FU.prototype,"lockupOnDown",null);_.T([_.GQ("up"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],FU.prototype,"lockupOnUp",null);
_.T([_.GQ("touchstart"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FU.prototype,"onTouchStart",null);_.T([_.GQ("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FU.prototype,"lockupOnMouseEnter",null);_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FU.prototype,"lockupOnMouseLeave",null);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],FU.prototype,"lockupOnPopupClosed",null);_.T([_.GQ("yt-lockup-requested"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],FU.prototype,"lockupOnLockupRequested",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],FU.prototype,"lockupOnYtServiceRequestSent",null);_.T([_.GQ("yt-disable-lockup-interaction"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FU.prototype,"lockupOnLockupDisabled",null);
_.T([_.GQ("yt-enable-lockup-interaction"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FU.prototype,"lockupOnLockupEnabled",null);_.T([_.pT()],FU);_.HJ=[FU.prototype];_.HHl={YtdReduxBehavior:[]};_.HHl.YtdReduxBehavior.push.apply(_.HHl.YtdReduxBehavior,_.mr);var er=function(){var M=_.kA.apply(this,arguments)||this;M._noAccessors=!0;M.disableNowPlaying=!1;M.disableTooltips=!1;M.useHoveredProperty=!1;M.hovered=!1;M.isThumbnailHovered_=!1;M.addBackground=_.w("kevlar_thumbnail_bg");M.nowPlaying=!1;M.disableRounding=!1;M.size="small";return M};
_.l(er,_.kA);_.N=er.prototype;_.N.computeThumbnailOverlaySidePanelWidth_=function(M,q){return M-q};
_.N.computeSize=function(M,q){if(!this.disableRounding){if(!M&&!q)return"small";M=Math.max(M||0,q||0);return M>=256?"large":M>=96?"medium":"small"}};
_.N.computeFinalHoveredState_=function(M,q,G){return this.nowPlaying?!1:_.w("kevlar_thumbnail_fluid")&&M?q:G};
_.N.computeHoverOverlays_=function(M,q){return M&&q?q:void 0};
_.N.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.N.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.N.checkMiniplayer_=function(){var M;if(((M=this.data)==null?0:M.playlistSetVideoId)&&_.w("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{M=_.Bg();var q=M.currentEndpoint;!this.disableNowPlaying&&q&&_.C(q,_.Jl)&&this.data?(q=_.C(q,_.Jl),this.nowPlaying=this.data.playlistId?q.playlistId===this.data.playlistId:q.videoId===this.data.videoId,this.isVideoPlaying=M==null?void 0:M.isVideoPlaying):this.nowPlaying=!1}};
er.prototype.checkMiniplayer_=er.prototype.checkMiniplayer_;er.prototype.onMouseLeave_=er.prototype.onMouseLeave_;er.prototype.onMouseEnter_=er.prototype.onMouseEnter_;er.prototype.computeHoverOverlays_=er.prototype.computeHoverOverlays_;er.prototype.computeFinalHoveredState_=er.prototype.computeFinalHoveredState_;er.prototype.computeSize=er.prototype.computeSize;er.prototype.computeThumbnailOverlaySidePanelWidth_=er.prototype.computeThumbnailOverlaySidePanelWidth_;
_.T([_.P(_.mr),_.r("design:type",Object)],er.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],er.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],er.prototype,"height",void 0);_.T([_.B(),_.r("design:type",Boolean)],er.prototype,"bottomSidePanel",void 0);_.T([_.B(),_.r("design:type",Number)],er.prototype,"width",void 0);_.T([_.B(),_.r("design:type",Object)],er.prototype,"disableNowPlaying",void 0);
_.T([_.B({selector:_.at}),_.r("design:type",Boolean)],er.prototype,"miniplayerIsActive",void 0);_.T([_.B(),_.r("design:type",Object)],er.prototype,"disableTooltips",void 0);_.T([_.B(),_.r("design:type",Object)],er.prototype,"useHoveredProperty",void 0);_.T([_.B(),_.r("design:type",Object)],er.prototype,"hovered",void 0);_.T([_.B(),_.r("design:type",Object)],er.prototype,"isThumbnailHovered_",void 0);
_.T([_.B({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.r("design:type",Boolean)],er.prototype,"finalHoveredState_",void 0);_.T([_.B({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.r("design:type",Number)],er.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],er.prototype,"addBackground",void 0);
_.T([_.B({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.r("design:type",Object)],er.prototype,"hoverOverlays_",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],er.prototype,"nowPlaying",void 0);_.T([_.B(),_.r("design:type",Boolean)],er.prototype,"isVideoPlaying",void 0);_.T([_.B(),_.r("design:type",Object)],er.prototype,"disableRounding",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.r("design:type",Object)],er.prototype,"size",void 0);_.T([_.GQ("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],er.prototype,"onMouseEnter_",null);_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],er.prototype,"onMouseLeave_",null);
_.T([_.KT("data","disableNowPlaying","miniplayerIsActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],er.prototype,"checkMiniplayer_",null);_.T([_.pT()],er);var ejM=[er.prototype];_.$S={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(M,q){return M+":"+_.Fi(q)},
getPlayerListener_:function(M,q,G){M=this.getPlayerListenerKey_(M,q);q=this.playerListeners_.get(M);G&&this.playerListeners_.delete(M);return q},
savePlayerListener_:function(M,q){var G=q.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(M,q),G);return G},
listenToPlayerEvent:function(M,q,G){G=this.savePlayerListener_(q,G);M.addEventListener(q,G)},
listenToPlayerEvents:function(M,q){q.forEach(function(G,K){this.listenToPlayerEvent(M,K,G)}.bind(this))},
unlistenFromPlayerEvent:function(M,q,G){G=this.getPlayerListener_(q,G,!0);M.removeEventListener(q,G)},
unlistenFromPlayerEvents:function(M,q){q.forEach(function(G,K){this.unlistenFromPlayerEvent(M,K,G)}.bind(this))}}};
_.sW=function(){};_.$G8=new _.$k("PLAYER_API_TOKEN");var rB$=!1,fYi,VO$=!1,HrY;var VZ=function(M,q,G,K,n){_.uI.call(this);var E=this;this.playerId=q;this.webPlayerContextConfig=K;this.bUN=n;this.sHF=!1;this.api={};this.ttg=this.cAq=null;this.aXM=new _.BR;this.v5={};this.drW=this.uxM=this.elementId=this.dQc=this.config=null;this.vrU=!1;this.vJ=this.z9H=null;this.meq={};this.e4D=["onReady"];this.lastError=null;this.oGD=NaN;this.iHH={};this.pSU=0;this.cG=this.targetElement=M;_.oE(this,this.aXM);sP$(this);G?this.pSU=setTimeout(function(){E.loadNewVideoConfig(G)},0):K&&(Mix(this),
qaJ(this))};
_.l(VZ,_.uI);VZ.prototype.getId=function(){return this.playerId};
VZ.prototype.loadNewVideoConfig=function(M){if(!this.isDisposed()){this.pSU&&(clearTimeout(this.pSU),this.pSU=0);var q=M||{};q instanceof DN8||(q=new DN8(q));this.config=q;this.setConfig(M);qaJ(this);this.isReady()&&GY8(this)}};
var Mix=function(M){var q;M.webPlayerContextConfig?q=M.webPlayerContextConfig.rootElementId:q=M.config.attrs.id;M.elementId=q||M.elementId;M.elementId==="video-player"&&(M.elementId=M.playerId,M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId=M.playerId:M.config.attrs.id=M.playerId);var G;((G=M.cG)==null?void 0:G.id)===M.elementId&&(M.elementId+="-player",M.webPlayerContextConfig?M.webPlayerContextConfig.rootElementId=M.elementId:M.config.attrs.id=M.elementId)};
VZ.prototype.setConfig=function(M){this.dQc=M;this.config=KuB(M);Mix(this);if(!this.uxM){var q;this.uxM=nYI(this,((q=this.config.args)==null?void 0:q.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var G;if((G=this.config)==null?0:G.attrs)M=this.config.attrs,(q=M.width)&&this.cG&&(this.cG.style.width=uo(Number(q)||q,!0)),(M=M.height)&&this.cG&&(this.cG.style.height=uo(Number(M)||M,!0))};
VZ.prototype.getConfig=function(){return this.dQc};
var GY8=function(M){if(M.config&&M.config.loaded!==!0)if(M.config.loaded=!0,!M.config.args||M.config.args.autoplay!=="0"&&M.config.args.autoplay!==0&&M.config.args.autoplay!==!1){var q;M.api.loadVideoByPlayerVars((q=M.config.args)!=null?q:null)}else M.api.cueVideoByPlayerVars(M.config.args)},NV8=function(M){var q=!0,G=M.getPlayerElement();
G&&M.config&&(q=G.dataset.version===EY8(M));return q&&!!_.sx("yt.player.Application.create")},qaJ=function(M){if(!M.isDisposed()&&!M.vrU){var q=NV8(M);
if(q&&(M.getPlayerElement()?"html5":null)==="html5")M.drW="html5",M.isReady()||kYB(M);else if(pox(M),M.drW="html5",q&&M.vJ&&M.targetElement)M.targetElement.appendChild(M.vJ),kYB(M);else{M.config&&(M.config.loaded=!0);var G=!1;M.z9H=function(){G=!0;var K=yOv(M,"player_bootstrap_method")?_.sx("yt.player.Application.createAlternate")||_.sx("yt.player.Application.create"):_.sx("yt.player.Application.create");var n=M.config?KuB(M.config):void 0;K&&K(M.targetElement,n,M.webPlayerContextConfig,M.bUN);kYB(M)};
M.vrU=!0;q?M.z9H():(_.cF(EY8(M),M.z9H),(q=Lu8(M))&&kXy(q||""),YaJ(M)&&!G&&_.Y5("yt.player.Application.create",null))}}};
VZ.prototype.getPlayerElement=function(){var M=_.jc(document,this.elementId);!M&&this.cG&&this.cG.querySelector&&(M=this.cG.querySelector("#"+this.elementId));return M};
var kYB=function(M){if(!M.isDisposed()){var q=M.getPlayerElement(),G=!1;q&&q.getApiInterface&&q.getApiInterface()&&(G=!0);if(G){M.vrU=!1;if(!yOv(M,"html5_remove_not_servable_check_killswitch")){var K;if((q==null?0:q.isNotServable)&&M.config&&(q==null?0:q.isNotServable((K=M.config.args)==null?void 0:K.video_id)))return}Wuv(M)}else M.oGD=setTimeout(function(){kYB(M)},50)}},Wuv=function(M){sP$(M);
M.sHF=!0;var q=M.getPlayerElement();if(q){M.cAq=AOf(M,q,"addEventListener");M.ttg=AOf(M,q,"removeEventListener");var G=q.getApiInterface();G=G.concat(q.getInternalApiInterface());for(var K=M.api,n=0;n<G.length;n++){var E=G[n];K[E]||(K[E]=AOf(M,q,E))}}for(var p in M.v5)M.v5.hasOwnProperty(p)&&M.cAq&&M.cAq(p,M.v5[p]);GY8(M);M.uxM&&M.uxM(M.api);M.aXM.publish("onReady",M.api)},AOf=function(M,q,G){var K=q[G];
return function(){var n=_.rW.apply(0,arguments);try{return M.lastError=null,K.apply(q,n)}catch(E){if(G!=="sendAbandonmentPing")throw E.params=G,M.lastError=E,n=new _.bj("PlayerProxy error in method call",{error:E,method:G,playerId:M.playerId}),n.level="WARNING",n;}}},sP$=function(M){M.sHF=!1;
if(M.ttg)for(var q in M.v5)M.v5.hasOwnProperty(q)&&M.ttg(q,M.v5[q]);for(var G in M.iHH)M.iHH.hasOwnProperty(G)&&clearTimeout(Number(G));M.iHH={};M.cAq=null;M.ttg=null;q=M.api;for(var K in q)q.hasOwnProperty(K)&&(q[K]=null);q.addEventListener=function(n,E){M.addEventListener(n,E)};
q.removeEventListener=function(n,E){M.removeEventListener(n,E)};
q.destroy=function(){M.dispose()};
q.getLastError=function(){return M.getLastError()};
q.getPlayerType=function(){return M.getPlayerType()};
q.getCurrentVideoConfig=function(){return M.getConfig()};
q.loadNewVideoConfig=function(n){M.loadNewVideoConfig(n)};
q.isReady=function(){return M.isReady()}};
VZ.prototype.isReady=function(){return this.sHF};
VZ.prototype.addEventListener=function(M,q){var G=this;this.isDisposed();var K=nYI(this,q);K&&(_.zF(this.e4D,M)||this.v5[M]||(q=dm2(this,M),this.cAq&&this.cAq(M,q)),this.aXM.subscribe(M,K),M==="onReady"&&this.isReady()&&setTimeout(function(){K(G.api)},0))};
VZ.prototype.removeEventListener=function(M,q){this.isDisposed()||(q=nYI(this,q))&&this.aXM.unsubscribe(M,q)};
var nYI=function(M,q){var G=q;if(typeof q==="string"){if(M.meq[q])return M.meq[q];G=function(){var K=_.rW.apply(0,arguments),n=_.sx(q);if(n)try{n.apply(_.Kj,K)}catch(E){throw K=new _.bj("PlayerProxy error when executing callback",{error:E}),K.level="ERROR",K;}};
M.meq[q]=G}return G?G:null},dm2=function(M,q){var G=function(K){var n=function(){M.isDisposed();
if(!M.isDisposed())try{M.aXM.publish(q,K!=null?K:void 0)}catch(y){var p=new _.bj("PlayerProxy error when creating global callback",{error:y.message,event:q,playerId:M.playerId,data:K,originalStack:y.stack,componentStack:y.componentStack});p.level="WARNING";throw p;}};
if(yOv(M,"web_player_publish_events_immediately"))n();else{var E=setTimeout(function(){n();_.xP.remove(M.iHH,String(E))},0);
_.xP.add(M.iHH,String(E),!0)}};
return M.v5[q]=G};
VZ.prototype.getPlayerType=function(){return this.drW||(this.getPlayerElement()?"html5":null)};
VZ.prototype.getLastError=function(){return this.lastError};
var pox=function(M){M.cancel();sP$(M);M.drW=null;M.config&&(M.config.loaded=!1);var q=M.getPlayerElement();q&&(NV8(M)||!YaJ(M)?M.vJ=q:(q&&q.destroy&&q.destroy(),M.vJ=null));M.targetElement&&_.io(M.targetElement)};
VZ.prototype.cancel=function(){this.z9H&&_.Zhj(EY8(this),this.z9H);clearTimeout(this.oGD);this.vrU=!1};
VZ.prototype.disposeInternal=function(){pox(this);if(this.vJ&&this.config&&this.vJ.destroy)try{this.vJ.destroy()}catch(q){var M=new _.bj("PlayerProxy error during disposal",{error:q});M.level="ERROR";throw M;}this.meq=null;for(M in this.v5)this.v5.hasOwnProperty(M)&&delete this.v5[M];this.dQc=this.config=this.api=null;delete this.targetElement;delete this.cG;_.uI.prototype.disposeInternal.call(this)};
var YaJ=function(M){var q,G;M=(q=M.config)==null?void 0:(G=q.args)==null?void 0:G.fflags;return!!M&&M.indexOf("player_destroy_old_version=true")!==-1},EY8=function(M){return M.webPlayerContextConfig?M.webPlayerContextConfig.jsUrl:(M=M.config.assets)?M.js:""},Lu8=function(M){return M.webPlayerContextConfig?M.webPlayerContextConfig.cssUrl:(M=M.config.assets)?M.css:""},yOv=function(M,q){if(M.webPlayerContextConfig)var G=M.webPlayerContextConfig.serializedExperimentFlags;
else{var K;if((K=M.config)==null?0:K.args)G=M.config.args.fflags}return(G||"").split("&").includes(q+"=true")},KuB=function(M){for(var q={},G=_.k(Object.keys(M)),K=G.next();!K.done;K=G.next()){K=K.value;
var n=M[K];q[K]=typeof n==="object"?_.xP.clone(n):n}return q};var qDy={},Mqu="player_uid_"+(Math.random()*1E9>>>0);var MJ=function(M,q,G,K,n,E){q=q===void 0?document.createElement("div"):q;this.webPlayerContextConfig=M;this.container=q;this.commandResolver=G;this.apiResolver=nBy();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.sp;K||E?vYB(this):hRB(this);this.pendingPlayerResponse=K;this.pendingWatchNextResponse=n;this.pendingPlayerVars=E;tip(this)};
MJ.prototype.loadVideoWithPlayerResponse=function(M,q,G){this.loadVideo(M,q,G)};
MJ.prototype.loadVideoWithPlayerVars=function(M){return this.loadVideo(void 0,void 0,M)};
MJ.prototype.destroy=function(M){if(M=_.jc(document,M))M=Mqu+"_"+_.Fi(M),(M=qDy[M])&&M.dispose()};
var wo9=function(M,q){var G;_.L(function(K){if(K.nextAddress==1)return M.pendingWatchNextResponse=q,M.synchronousApi?(G=M.synchronousApi,K.jumpTo(2)):K.yield(M.api,3);K.nextAddress!=2&&(G=K.yieldResult);if(!Od8(M,G))return K.return();M.pendingWatchNextResponse&&(G.updateVideoData({raw_watch_next_response:M.pendingWatchNextResponse}),M.pendingWatchNextResponse=void 0);_.gL(K)})},Od8=function(M,q){var G;
if(!(q==null?0:(G=q.isReady)==null?0:G.call(q))){var K;_.j1(new _.bj("playerApi is falsey",{synchronousApi:M.synchronousApi,apiResolved:M.apiResolver.resolved,playerApiUndefined:q===void 0,playerApiNull:q===null,playerApiReady:(q==null?void 0:(K=q.isReady)==null?void 0:K.call(q))===!0,playerApiMethods:q?Object.keys(q):[]}));return!1}return!0},Cpf=function(M,q){if(typeof M[q]==="function")return M[q]()},aNv=function(M){var q=window,G,K=(G=q.ytplayer)==null?void 0:G.bootstrapPlayerContainer;
if((G=K==null?void 0:K.firstElementChild)&&_.zZ(G,"html5-video-player")){var n,E,p=(n=q.ytplayer)==null?void 0:(E=n.bootstrapWebPlayerContextConfig)==null?void 0:E.contextId;n=M.webPlayerContextConfig.contextId;if(p&&p===n){K!==M.container&&(K=!1,Cpf(G,"getPlayerState")===2&&(K=!0),M.container.appendChild(G),K||Cpf(G,"playVideo"));var y;if((y=q.ytplayer)==null?0:y.bootstrapPlayerResponse)M.bootstrapPlayerResponse=q.ytplayer.bootstrapPlayerResponse}}},tip=function(M){var q,G,K,n,E;
_.L(function(p){if(p.nextAddress==1)return M.pageReadyOrDataAvailable?p.jumpTo(2):p.yield(M.pageReadyOrDataAvailableResolver.promise,2);if(p.nextAddress!=4)return!_.w("kevlar_player_unified_player_loading")||jCi()&&R1y()?p.jumpTo(4):p.yield($24(),4);aNv(M);if(M.pendingPlayerResponse||M.pendingPlayerVars)q=sVy(M.pendingPlayerResponse,M.pendingWatchNextResponse,M.pendingPlayerVars),M.pendingPlayerResponse&&M.pendingPlayerResponse===M.bootstrapPlayerResponse&&(q.loaded=!0),M.bootstrapPlayerResponse=
void 0;G=K9$(M.container,q,M.webPlayerContextConfig);((K=q)==null?0:K.loaded)&&M.pendingWatchNextResponse?(wo9(M,M.pendingWatchNextResponse),M.pendingPlayerResponse=void 0,M.pendingPlayerVars=void 0):oYf(M);n=function(y){G.removeEventListener("onReady",n);M.synchronousApi=y;M.apiResolver.resolve(y)};
G.addEventListener("onReady",n);M.commandResolver!==void 0&&(E=M.commandResolver,G.addEventListener("innertubeCommand",function(y){E(y)}));
_.gL(p)})};
MJ.prototype.loadVideo=function(M,q,G){var K=this,n,E,p,y,Y,A,v,h,t;return _.L(function(O){if(O.nextAddress==1)return K.pendingPlayerResponse=M,K.pendingWatchNextResponse=q,K.pendingPlayerVars=G,vYB(K),K.synchronousApi?(n=K.synchronousApi,O.jumpTo(2)):O.yield(K.api,3);O.nextAddress!=2&&(n=O.yieldResult);if(!Od8(K,n))return O.return(new Promise(function(){}));
p=new Promise(function(a){E=a});
y=function(){var a=n.getPlayerResponse();a&&(n.removeEventListener("onVideoDataChange",y),E(a))};
n.addEventListener("onVideoDataChange",y);if(K.pendingPlayerResponse||K.pendingPlayerVars)K.pendingPlayerResponse&&K.pendingPlayerResponse===K.bootstrapPlayerResponse?(E(K.pendingPlayerResponse),K.pendingWatchNextResponse&&wo9(K,K.pendingWatchNextResponse)):(Y=sVy(K.pendingPlayerResponse,K.pendingWatchNextResponse,K.pendingPlayerVars),(t=(A=K.pendingPlayerResponse)==null?void 0:(v=A.playerConfig)==null?void 0:(h=v.playbackStartConfig)==null?void 0:h.startPaused)?n.cueVideoByPlayerVars(Y.args):n.loadVideoByPlayerVars(Y.args)),
oYf(K),K.bootstrapPlayerResponse=void 0;return O.return(p)})};
var hRB=function(M){if(document.readyState==="complete"||document.readyState==="interactive")vYB(M);else{var q=function(){document.removeEventListener("DOMContentLoaded",q);vYB(M)};
document.addEventListener("DOMContentLoaded",q)}},vYB=function(M){M.pageReadyOrDataAvailable=!0;
M.pageReadyOrDataAvailableResolver.resolve()},oYf=function(M){M.pendingPlayerResponse=void 0;
M.pendingWatchNextResponse=void 0;M.pendingPlayerVars=void 0};
_.Yd.Object.defineProperties(MJ.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var qJ=function(M){DD.call(this,M===void 0?"document_active":M);var q=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(G){q.transition("document_disposed",{event:G})});
window.addEventListener("beforeunload",function(G){q.transition("document_disposed_preventable",{event:G})});
window.addEventListener("unload",function(G){q.transition("document_disposed",{event:G});q.hasRun=new Map})};
_.l(qJ,DD);
qJ.prototype.runPreventableDispose=function(M,q){if(!this.hasRun.get("document_disposed_preventable")){M(q==null?void 0:q.event);var G,K;if((q==null?0:(G=q.event)==null?0:G.defaultPrevented)||(q==null?0:(K=q.event)==null?0:K.returnValue)){q.event.returnValue||(q.event.returnValue=!0);q.event.defaultPrevented||q.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
qJ.prototype.runDispose=function(M,q){this.hasRun.get("document_disposed")?this.transition("document_active"):(M(q==null?void 0:q.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
qJ.prototype.runFlush=function(M,q){M(q==null?void 0:q.event);this.transition("document_active")};
qJ.prototype.runActive=function(){};var GR=function(M){DD.call(this,M===void 0?"document_visibility_unknown":M);var q=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(G){document.visibilityState==="visible"?q.transition("document_visible",{event:G}):q.transition("document_hidden",
{event:G})});
_.w("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(G){q.transition("document_backgrounded",{event:G})}),window.addEventListener("focus",function(G){q.transition("document_foregrounded",{event:G})}))};
_.l(GR,DD);GR.prototype.runVisible=function(M,q){M(q==null?void 0:q.event);_.w("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
GR.prototype.runHidden=function(M,q){M(q==null?void 0:q.event);_.w("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
GR.prototype.runBackgrounded=function(M,q){M(q==null?void 0:q.event)};
GR.prototype.runForegrounded=function(M,q){M(q==null?void 0:q.event)};var Ki=function(){this.teardownLifecycle=new qJ;this.visibilityLifecycle=new GR};
Ki.prototype.install=function(){var M=_.rW.apply(0,arguments),q=this;M.forEach(function(G){q.teardownLifecycle.install(G)});
M.forEach(function(G){q.visibilityLifecycle.install(G)})};var ni=function(){Ki.call(this);var M={};this.install((M.document_disposed={callback:this.abortSlisAndFlush},M));_.w("combine_ve_grafts")&&(M={},this.install((M.document_disposed={callback:this.flushInteractionLoggingAttachVes},M)));M={};this.install((M.flush_logs={callback:this.logFinalPayload},M));_.w("web_log_cfg_cee_ks")||_.Jp(_.r8,lNS)};
_.l(ni,Ki);var EBy=function(){ni.loggingInstance||(ni.loggingInstance=new ni);return ni.loggingInstance};
ni.prototype.logFinalPayload=function(){if(_.w("web_fp_via_jspb")){var M=new cn$,q=_.Cx();q&&_.DJ(M,1,q);q=_.w("jspb_sparse_encoded_pivot")?new uN([{}]):new uN;_.Pt(q,380,gzf,M);PU4("finalPayload",q);_.w("web_fp_via_jspb_and_json")&&_.ml("finalPayload",{csn:_.Cx()})}else _.ml("finalPayload",{csn:_.Cx()})};
ni.prototype.abortSlisAndFlush=function(){tLS(Gk);KN!=null&&KN.flush()};
ni.prototype.flushInteractionLoggingAttachVes=function(){b4P(_.nl())};
var lNS=function(){var M=_.R9("CLIENT_EXPERIMENT_EVENTS");if(M){var q=qMu();M=_.k(M);for(var G=M.next();!G.done;G=M.next())G=G.value,q(G)&&_.ml("genericClientExperimentEvent",{eventType:G});delete _.jK.CLIENT_EXPERIMENT_EVENTS}};var Xol={};
Xol.YtPlayerBehavior=[_.$S.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 M=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.sp;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;NOs(function(){M.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.Vw(this,"pan-down"),_.w("kevlar_pinch_fullscreen")&&_.Xt().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.w("kevlar_pinch_fullscreen")&&_.Xt().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(M,q,G){var K=this;R2(this.useUnifiedPlayer_());if(this.mainAppPlayer_)R2(!1,"MainAppPlayer already created.");else{var n=_.w("kevlar_player_container_query_killswitch")?this.$.container:_.f_(this.hostElement).querySelector("#container");this.mainAppPlayer_=new MJ(this.getWebPlayerContextConfig_(),n,function(E){return _.sE(E,K.hostElement)},M,q,G);
this.mainAppPlayer_.api.then(function(E){K.player_=E;K.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&xjB.resolve(E)})}},
loadVideoWithPlayerResponse:function(M,q){var G=this;if(this.useUnifiedPlayer_()){var K=this.watchNextData,n,E=(n=M.videoDetails)==null?void 0:n.videoId,p,y,Y;(n=(p=this.watchNextData)==null?void 0:(y=p.currentVideoEndpoint)==null?void 0:(Y=y.watchEndpoint)==null?void 0:Y.videoId)&&E!=n&&(K=void 0,_.w("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(M,K,q):this.createMainAppPlayer_(M,K,q);this.mainAppPlayer_.api.then(function(){_.jP(G.hostElement,
"yt-player-updated")})}else this.update(m2D(M,q))},
loadVideoWithPlayerVars:function(M){var q=this;this.useUnifiedPlayer_()?(_.w("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(M):this.createMainAppPlayer_(void 0,void 0,M),this.mainAppPlayer_.api.then(function(){_.jP(q.hostElement,"yt-player-updated")})):this.update({args:M})},
update:function(M){var q=this;if(this.useUnifiedPlayer_())R2(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(M);var G=j3$(M.args);G&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==G&&Object.assign(M.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(M).then(function(K){_.jP(q.hostElement,"yt-player-updated",_.w("kevlar_player_updated_obsolete_player_killswitch")?
K:void 0)})}_.rM(new _.bj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(q.getPlayerPromise(),2);G=K.yieldResult;if(!G)throw Error("vh");M&&q.updatePlayerPlaylist_(M);_.gL(K)})},
acquireApi_:function(M){var q=this;if(this.useUnifiedPlayer_())R2(!1,"Invalid method call in kevlar_unified_player.");else return _.r8.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(R2(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(G){q.shouldAutoplay_(M)?G.loadVideoByPlayerVars(M.args):G.cueVideoByPlayerVars(M.args)})):this.initPlayerPromise_=this.initPlayerContainer_(M),this.initPlayerPromise_},
initPlayerContainer_:function(M){var q=this;if(this.useUnifiedPlayer_())R2(!1,"Invalid method call in kevlar_unified_player.");else return R2(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.j1(Error("wh")),R2(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.w("kevlar_player_container_query_killswitch")?this.$.container:_.f_(this.hostElement).querySelector("#container"),$24().then(function(){var G=q.initPlayer_(M);q.playerResolver_.resolve(G);
return G})},
onPlayerReady_:function(M,q){this.useUnifiedPlayer_()?R2(!1,"Invalid method call in kevlar_unified_player."):(M.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&xjB.resolve(M),q(M))},
maybeCallApiMethodOnElement_:function(M,q){if(typeof M[q]==="function")return M[q]()},
maybeAdoptBootstrapPlayer_:function(){var M=window,q,G=(q=M.ytplayer)==null?void 0:q.bootstrapPlayerContainer;if((q=G==null?void 0:G.firstElementChild)&&q.classList.contains("html5-video-player")){var K,n,E=(K=M.ytplayer)==null?void 0:(n=K.bootstrapWebPlayerContextConfig)==null?void 0:n.contextId;K=this.getWebPlayerContextConfig_().contextId;if(E&&E===K){G!==this.playerContainer_&&(G=!1,this.maybeCallApiMethodOnElement_(q,"getPlayerState")===2&&(G=!0),this.playerContainer_.appendChild(q),G||this.maybeCallApiMethodOnElement_(q,
"playVideo"));var p;if((p=M.ytplayer)==null?0:p.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=M.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(M){var q=this;if(this.useUnifiedPlayer_())R2(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(G){q.maybeAdoptBootstrapPlayer_();var K=M?SJy(M):void 0;K&&K==q.bootstrapPlayerResponse_&&(M.loaded=!0);K=q.playerContainer_;var n=q.getWebPlayerContextConfig_();K=K9$(K,M,n);q.player_=K;q.onPlayerReadyEvent_=q.onPlayerReady_.bind(q,q.player_,G);q.player_.addEventListener("onReady",q.onPlayerReadyEvent_);q.player_.addEventListener("innertubeCommand",
q.onPlayerInnerTubeCommand_.bind(q))})},
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(M){M.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(M){M.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var M=_.AL().resolve(_.md).getCurrentPage();M&&M.getScrollTop()<=0?_.Vw(this,"pan-down"):_.Vw(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(M){M.isFullscreen()||M.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(M){M.isFullscreen()&&M.toggleFullscreen()})},
updatePlayerPlaylist_:function(M){var q=this,G,K,n;return _.L(function(E){if(E.nextAddress==1)return G=_.AL().resolve(_.WR(_.$x)),K=!!(G&&G.playlistComponent&&G.playlistComponent.loopOn),E.yield(q.getPlayerPromise(),2);var p=n=E.yieldResult,y=p.updatePlaylist,Y=[];if(_.w("kevlar_player_playlist_use_local_index")){var A,v;var h=(v=(A=M.localCurrentIndex)!=null?A:M.currentIndex)!=null?v:0}else{var t;h=(t=M.currentIndex)!=null?t:0}if(M.contents)for(A=0;A<M.contents.length;A++)if((v=M.contents[A])&&v.playlistPanelVideoRenderer)if(RsH(v)){v=
v.playlistPanelVideoRenderer;t="";v.shortBylineText&&(t=_.UX(v.shortBylineText));var O="";v.title?O=_.UX(v.title):v.unplayableText&&(O=_.UX(v.unplayableText));Y.push({author:t,title:O,encrypted_id:v.videoId})}else A<h&&--h;y.call(p,{index:h,list:M.playlistId?M.playlistId:"",loop:K,playlist_title:M.title,playlist_length:Y.length,video:Y,fetch:0,external_list:"1",title:M.title?M.title:"",playlist_author:M.ownerName?_.UX(M.ownerName):void 0});_.gL(E)})},
focusOnPlayer:function(){_.yb(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var M=this.playerContainer_.querySelector(".html5-video-player");M&&(_.EW(_.AL().resolve(_.Lp)),M.focus())}})},
preparePlayer:function(){var M=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(q){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")q();else{var G=function(){document.removeEventListener("DOMContentLoaded",G);q()};
document.addEventListener("DOMContentLoaded",G)}})).then(function(){return $24()}).then(function(){M.initPlayerPromise_||M.preparePlayerJobId_||(M.preparePlayerJobId_=_.Jp(_.r8,function(){M.initPlayerPromise_||(M.initPlayerPromise_=M.initPlayerContainer_())}))}):_.rM(new _.bj("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(M){this.useUnifiedPlayer_()?R2(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(M)||(M.args.autoplay="0")},
shouldAutoplay_:function(M){if(this.useUnifiedPlayer_())R2(!1,"Invalid method call in kevlar_unified_player.");else{var q=this.get("args.el",M);return q&&q!="detailpage"&&this.isMiniplayerActive_()||q&&(q=="sponsorshipsoffer"||q=="handlesclaiming")&&this.get("args.autoplay",M)=="0"?!1:(M=SJy(M))&&this.get("playerConfig.playbackStartConfig.startPaused",M)?!1:!0}},
isMiniplayerActive_:function(){return _.AL().resolve(_.lq).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var M=this.getPlayer();if(M){var q=M.getPlayerState();_.w("kevlar_player_check_ad_state_on_stop")&&(q=M.getPlayerState(M.getPresentingPlayerType()));q!=5&&M.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(M,q,G){G=G===void 0?!1:G;var K=this,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1)return q||(q=K.hostElement),n=K.useUnifiedPlayer_()?!!K.mainAppPlayer_:!!K.initPlayerPromise_,n?Y.yield(K.getPlayerPromise(),2):(G?M.insertBefore(q,M.firstChild):M.appendChild(q),Y.return());E=Y.yieldResult;p=E.getPlayerState(E.getPresentingPlayerType());y=!1;if(p==-1||p==1||p==3)y=!0;G?M.insertBefore(q,M.firstChild):M.appendChild(q);y&&E.playVideo();E.setSize(NaN,NaN);_.gL(Y)})},
watchNextDataChanged_:function(M){var q=this;M&&(this.useUnifiedPlayer_()&&_.w("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&wo9(this.mainAppPlayer_,M):this.getPlayerPromise().then(function(G){G.updateVideoData(q.computeWatchNextPlayerVars_(M))}))},
computeWatchNextPlayerVars_:function(M){if(this.useUnifiedPlayer_()&&_.w("kevlar_unified_player_update_watch_next_killswitch"))R2(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:M}},
maybeSendAbandonmentPing_:function(){var M=this.getPlayer();M&&M.getPlayerState()!=5&&M.getPlayerState()!=0&&M.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var M=_.R9("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(M=Object.assign({},M),M.rootElementId=this.playerId);M.serializedExperimentIds&&M.serializedExperimentFlags||_.j1(Error("xh"));return M},
hasWebPlayerContextConfig_:function(){return!!_.R9("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(M){this.useUnifiedPlayer_()?R2(!1,"Invalid method call in kevlar_unified_player."):_.sE(M,this.hostElement)},
useUnifiedPlayer_:function(){var M=_.w("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.w("kevlar_unified_player")||M}}];var Pp8={};Pp8.YtPlaylistPanelBehavior=[_.F.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(M){M=M.detail;if(M.actions.loop!=void 0||M.actions["yt-icons:loop"]!=void 0)this.loopOn=M.actions.loop||M.actions["yt-icons:loop"];if(M.actions.shuffle!=void 0||M.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=M.actions.shuffle||M.actions["yt-icons:shuffle"]},
setMenuData_:function(M){if(!M||!M.playlistButtons||M.isInfinite)return null;for(var q=M.playlistButtons.menuRenderer.topLevelButtons,G=q.length,K=0;K<G;K++)if(q[K].toggleButtonRenderer){var n=q[K].toggleButtonRenderer;n.defaultIcon.iconType=="LOOP"&&this.loopOn?n.isToggled=this.loopOn:n.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(n.isToggled=this.shuffleOn)}return M.playlistButtons}}];_.NJ={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(M,q,G){var K=this.getClickTarget_(q);if(K&&this.isClickAllowed_(K)){q.preventDefault();M=(0,_.xP.unsafeClone)(M);var n=this.getContainerBoundingRect();q=this.getRelativeClickXy_(q,n);this.expandEndpointUrlMacros_(M,{NX:q[0],NY:q[1],NB:K.code});G&&this.truncateWebCommendMetadataUrl_(M);_.jP(this.hostElement,"yt-navigate",{endpoint:M})}},
getClickTarget_:function(M){if(!this.clickTargetMap)return null;M=_.Zx(M)||[];M=_.k(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;if(q===_.f_(this.hostElement).querySelector("#menu"))break;if(q=this.clickTargetMap.get(q.id))return q}return null},
getRelativeClickXy_:function(M,q){var G=Math.round(M.detail.x-q.left);M=Math.round(M.detail.y-q.top);return G<0||M<0?[null,null]:[G,M]},
getContainerBoundingRect:function(){return _.f_(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(M,q){for(var G=_.k(M.loggingUrls||[]),K=G.next();!K.done;K=G.next())K=K.value,K.baseUrl&&(K.baseUrl=Y9y(K.baseUrl,q));M.urlEndpoint&&M.urlEndpoint.url&&(M.urlEndpoint.url=Y9y(M.urlEndpoint.url,q));M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url&&(M.commandMetadata.webCommandMetadata.url=Y9y(M.commandMetadata.webCommandMetadata.url,q))},
truncateWebCommendMetadataUrl_:function(M){if(M.commandMetadata&&M.commandMetadata.webCommandMetadata&&M.commandMetadata.webCommandMetadata.url){var q=M.commandMetadata.webCommandMetadata.url,G=q.indexOf("&pp=");if(G>0){var K=q.indexOf("&",G+1);M.commandMetadata.webCommandMetadata.url=K>G&&K<q.length?q.slice(0,G)+q.slice(K):q.slice(0,G)}}},
configureClickTargets:function(M,q,G){this.containerId=M;this.clickTargetMap=new Map;M=_.k(q);for(q=M.next();!q.done;q=M.next())if(q=q.value,q.location){var K=G.get(q.location);K&&(_.HE(_.f_(this.hostElement).querySelector("#"+K),"yt-simple-endpoint",this.isClickAllowed_(q)),this.clickTargetMap.set(K,q))}},
isClickAllowed_:function(M){return M.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||M.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.k8={};
_.k8.YtLazyListBehavior=[_.qt.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 M=(this.constructor.generatedFrom||this).observers;M||(M=[]);M.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
M}},
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 M=this.renderElementsOutsideVisibleArea_;M&&(Xq$(M,4),M.processSignal())},
deepLazyListObserver_:function(M){var q=this;if(M){var G=M.value||[];if(this.itemsPath==M.path){var K=this.nonDeferredItemCount;M=0;K>-1&&G.length>K&&(M=_.R9("REMAINING_DOVA_DEFERRED_CHUNKS",-1));M>0?(K>0&&(K=G.slice(0,K),this.setInitialItemsOnDataChanged(K)),(K=this.renderElementsOutsideVisibleArea_)?K.cancel():(K=this.renderElementsOutsideVisibleArea_=new _.K3(2,"eocs"),_.Aju(window,"scroll",function(){return q.renderDeferredElements()})),_.n3(K,function(){q.setInitialItemsOnDataChanged(G)}),_.Vz("REMAINING_DOVA_DEFERRED_CHUNKS",
M-1)):this.setInitialItemsOnDataChanged(G)}else if(this.itemsPath+".splices"==M.path)this.onItemsUpdated_(G);
else K="shownItems"+M.path.substr(this.itemsPath.length),this.useSignals&&K==="shownItems.length"||this.notifyPath(K,M.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(M){M&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(M),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(M){M=M.indexSplices;for(var q=0,G=M.length;q<G;q++){var K=M[q];if(K.index<this.shownCount&&(K.removed&&this.splice("shownItems",K.index,K.removed.length),K.addedCount)){var n=K.object.slice(K.index,K.index+K.addedCount);K=["shownItems",K.index,0];K.push.apply(K,n);this.splice.apply(this,K)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(M){this.cancelPendingTasks_();M||(M=[]);this.items_=M;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&&(_.fX("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.yb(this,this.tryRenderChunk_)))},
fillRange_:function(M,q){this.canShowMore&&this.items_&&(M=this.items_.slice(M,q),M.unshift("shownItems"),this.push.apply(this,M),this.shownCount=q,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var M=this;this.canShowMore&&_.B4(this,"renderChunk",function(){M.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.fX("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.WO(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var M=this.renderElementsOutsideVisibleArea_;M&&(M.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var M=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(M-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=M;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(M){return Math.ceil(1E3/M)},
onCanShowMoreUpdated_:function(M){this.data&&this.items_!==null&&(M?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(M){!this.shouldUseTaskManager()&&this.data&&(!M&&this.canShowMore?(_.lzF(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):M&&this.partiallyRenderedItems_.has(this.items_)&&(_.w("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Li;_.pi={};
Li=function(){var M=_.kA.apply(this,arguments)||this;M.atStart=!0;M.atEnd=!0;M.startIndex=0;M.endIndex=0;M.scrollCount=0;M.initialStartIndex=0;M.disableScrollEventListener=!1;M.useFloorScrolling=!1;M.isSearch=!1;M.dragging=!1;M.dragMouseStart=0;M.dragOffsetStart=0;M.disableWheelScroll=!1;M.centerListItems=!1;M.offset=0;M.minComponentWidth=0;M.marginWidthRight=0;M.marginWidthLeft=0;M.setButtonsStateRequested=!1;M.itemsVisibilityObserver=null;M.fullyVisibleItemsIndices=[];M.JSC$14497_onWheelScroll=function(q){if(M.isSearch&&
!M.disableWheelScroll&&_.w("desktop_enable_dmpanel_wheel_scroll")){var G=q.shiftKey?Math.abs(q.deltaY)>Math.abs(q.deltaX)?q.deltaY:q.deltaX:q.deltaX;G!==0&&(q.preventDefault(),M.ytLazyListBehavior.fillRemainingListItems(),M.offset+=G,yT(M),M.reposition_())}};
M.onPointerDown=function(q){idP(M)&&(M.dragMouseStart=q.clientX,M.dragOffsetStart=M.offset,M.dragging=!0)};
M.onPointerMove=function(q){idP(M)&&M.dragging&&(M.ytLazyListBehavior.fillRemainingListItems(),M.offset=M.dragOffsetStart-(q.clientX-M.dragMouseStart),yT(M),M.reposition_())};
M.onPointerUp=function(){idP(M)&&(M.dragging=!1)};
return M};
_.l(Li,_.kA);var cOM=function(M){var q=_.f_(M.hostElement).querySelector("#items").children;if(!q)return 0;var G=0;M=_.k(M.fullyVisibleItemsIndices);for(var K=M.next();!K.done;K=M.next())G+=q[K.value].clientWidth;return G},idP=function(M){return M.isSearch&&_.w("desktop_enable_dmpanel_click_drag_scroll")};
Li.prototype.created=function(){this.cachedViewportWidth=_.R9("initialInnerWidth")||window.innerWidth;this.JSC$14497_cachedViewportHeight=_.R9("initialInnerHeight")||window.innerHeight;_.R9("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.Vz("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Li.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.w("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();gYv(this)};
Li.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.w("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var M;(M=this.itemsVisibilityObserver)==null||M.disconnect();this.itemsVisibilityObserver=null;var q;(q=this.itemsObserver)==null||q.disconnect()};
var gYv=function(M){var q=_.f_(M.hostElement).querySelector("#scroll-container");if(q){if(!M.itemsVisibilityObserver){var G=window.getComputedStyle(q).marginRight;M.itemsVisibilityObserver=new IntersectionObserver(function(K){BVJ(M,K)},{root:q,
rootMargin:G,threshold:.98})}if(q=_.f_(M.hostElement).querySelector("#items"))M.itemsObserver=new GE$(q,function(K){QPp(M,K)})}},QPp=function(M,q){INp(M)&&(Array.from(q.addedNodes).filter(function(G){return G.nodeType===Node.ELEMENT_NODE}).forEach(function(G){M.itemsVisibilityObserver&&M.itemsVisibilityObserver.observe(G)}),Array.from(q.removedNodes).filter(function(G){return G.nodeType===Node.ELEMENT_NODE}).forEach(function(G){M.itemsVisibilityObserver&&M.itemsVisibilityObserver.unobserve(G)}))},
BVJ=function(M,q){var G=new Set(M.fullyVisibleItemsIndices);
q=_.k(q);for(var K=q.next();!K.done;K=q.next()){K=K.value;var n=K.target.parentElement;n?(n=Array.from(n.children).indexOf(K.target),K.isIntersecting?G.add(n):G.has(n)&&G.delete(n)):_.j1(new _.bj("Parent element not found",K.target.nodeName))}M.fullyVisibleItemsIndices=Array.from(G).sort(function(E,p){return E-p});
G.size===0?_.j1(new _.bj("No visible entries in horizontal list")):(M.startIndex=M.fullyVisibleItemsIndices[0],M.endIndex=M.fullyVisibleItemsIndices[M.fullyVisibleItemsIndices.length-1])},INp=function(M){M.data?M=(M=M.data)&&M.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===M.itemSizeConstraint:!1:M=!1;
return M};
_.N=Li.prototype;_.N.addScrollEventListeners=function(){var M=_.f_(this.hostElement).querySelector("#scroll-container");M.style.touchAction="pan-y";M.addEventListener("wheel",this.JSC$14497_onWheelScroll);M.addEventListener("pointerdown",this.onPointerDown);M.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.N.removeScrollEventListeners=function(){var M=_.f_(this.hostElement).querySelector("#scroll-container");M.removeEventListener("wheel",this.JSC$14497_onWheelScroll);M.removeEventListener("pointerdown",this.onPointerDown);M.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.N.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.yb(this,this.setStartIndex,[this.initialStartIndex])};
_.N.reposition_=function(){var M=_.R9("HTML_DIR")=="rtl"?"":"-",q=_.f_(this.hostElement).querySelector("#items");q&&(q.style.transform="translateX("+M+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.N.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.yb(this,this.setButtonsState_))};
_.N.setButtonsState_=function(){this.setButtonsStateRequested=!1;var M=_.f_(this.hostElement).querySelector("#items").firstElementChild;if(M){this.minComponentWidth||(this.minComponentWidth=DmI(this,M));M=_.f_(this.hostElement).querySelector("#scroll-container").clientWidth;var q=_.f_(this.hostElement).querySelector("#items");q=_.w("kevlar_horizontal_list_scroll_width_killswitch")?q.clientWidth:q.scrollWidth;var G=this.get(this.ytLazyListBehavior.itemsPath,this);if(G){var K=Math.round(M/this.minComponentWidth)||
1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+K,G.length)-1)}this.ytLazyListBehavior.canShowMore?q+this.minComponentWidth>=this.offset+M&&(this.atEnd=!1):this.atEnd=this.offset+M>=q-20?!0:!1;this.atStart=this.offset<=20}};
_.N.setStartIndex=function(M){if(!this.minComponentWidth){var q=_.f_(this.hostElement).querySelector("#items").firstElementChild;if(!q)return;this.minComponentWidth=DmI(this,q)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*M;yT(this);this.reposition_()};
_.N.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.dF();var M=_.f_(this.hostElement).querySelector("#scroll-container").clientWidth;_.w("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=DmI(this,_.f_(this.hostElement).querySelector("#items").firstElementChild));M=this.useFloorScrolling?Math.floor(M/this.minComponentWidth)||1:Math.round(M/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&uov(this);this.offset+=INp(this)?
cOM(this):M*this.minComponentWidth;yT(this);this.reposition_();this.scrollCount++};
_.N.prevClick_=function(){var M=_.f_(this.hostElement).querySelector("#scroll-container").clientWidth;M=this.useFloorScrolling?Math.floor(M/this.minComponentWidth)||1:Math.round(M/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=INp(this)?cOM(this):this.minComponentWidth*this.scrollCount-1):this.offset-=INp(this)?cOM(this):M*this.minComponentWidth;this.centerListItems&&uov(this);yT(this);this.reposition_()};
_.N.onIronResize_=function(){this.resizeSupportEnabled&&_.yb(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.N.onItemsTransitionEnd_=function(M){_.ba(M)===_.f_(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.N.onChildElementFocus_=function(M){M=M.target.closest("#items > *");var q=_.f_(this.hostElement).querySelector("#scroll-container");if(q.contains(M)){if(_.w("web_horizontal_list_behavior_focus_killswitch"))if(M.offsetLeft<this.offset)this.offset=Math.abs(M.offsetLeft)<M.clientWidth?0:M.offsetLeft;else if(M.offsetLeft+M.clientWidth>this.offset+q.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.dF(),this.offset=M.offsetLeft+M.clientWidth-q.clientWidth;else return;else{var G=_.f_(this.hostElement).querySelector("#items"),
K=_.R9("HTML_DIR")==="rtl",n=K?G.clientWidth-M.offsetLeft:M.offsetLeft;G=K?G.clientWidth-(M.offsetLeft+M.clientWidth):M.offsetLeft+M.clientWidth;var E=K?n>this.offset+q.clientWidth:n<this.offset,p=K?G<this.offset:G>this.offset+q.clientWidth,y=K?E:p;if(K?p:E)q=K?G:n,this.offset=Math.abs(q)<M.clientWidth?0:q;else if(y)this.ytLazyListBehavior.fillRemainingListItems(),_.dF(),this.offset=(K?n:G)-q.clientWidth;else return}yT(this);this.reposition_()}};
_.N.observeShownItems_=function(){this.reset()};
_.N.checkComponentWidthResize=function(){var M=_.f_(this.hostElement).querySelector("#items").firstElementChild;M&&(M=DmI(this,M),this.centerListItems||M!==this.minComponentWidth)&&(this.minComponentWidth=M,this.offset=M*this.scrollCount,this.centerListItems&&uov(this),yT(this),this.reposition_())};
var DmI=function(M,q){var G=window.getComputedStyle(q).marginRight;G=Math.floor(Number(G.replace("px","")));var K=window.getComputedStyle(q).marginLeft;K=Math.floor(Number(K.replace("px","")));M.centerListItems&&!M.marginWidthRight&&(M.marginWidthRight=G,M.marginWidthLeft=K);return M.resizeSupportEnabled?q.getBoundingClientRect().width+G:q.offsetWidth+G},yT=function(M){var q=_.f_(M.hostElement).querySelector("#scroll-container").clientWidth,G=_.f_(M.hostElement).querySelector("#items").clientWidth;
M.offset<0?M.offset=0:M.offset+q>=G&&(M.offset=G-q)},uov=function(M){M.offset-=(_.f_(M.hostElement).querySelector("#scroll-container").clientWidth+M.marginWidthRight-M.minComponentWidth)/2-M.marginWidthLeft};
_.Yd.Object.defineProperties(Li.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var M=_.R9("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(M==-1)M=this.JSC$14497_cachedViewportHeight,M=M>1320?5:M>1020?4:M>730?3:M>430?2:1;else if(M==0)return 0;_.Vz("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",M-1);M=_.R9("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(M>-1)return M;M=this.cachedViewportWidth;M=M>1600?6:M>1400?5:M>1300?4:M>1090?5:M>870?4:M>660?3:2;_.Vz("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
M);return M},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.w("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Li.prototype.observeShownItems_=Li.prototype.observeShownItems_;Li.prototype.onChildElementFocus_=Li.prototype.onChildElementFocus_;Li.prototype.onItemsTransitionEnd_=Li.prototype.onItemsTransitionEnd_;Li.prototype.onIronResize_=Li.prototype.onIronResize_;Li.prototype.prevClick_=Li.prototype.prevClick_;Li.prototype.nextClick_=Li.prototype.nextClick_;Li.prototype.setButtonsState_=Li.prototype.setButtonsState_;Li.prototype.requestButtonsStateUpdate_=Li.prototype.requestButtonsStateUpdate_;
Li.prototype.reposition_=Li.prototype.reposition_;Li.prototype.reset=Li.prototype.reset;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Li.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],Li.prototype,"ytLazyListBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Li.prototype,"atStart",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Li.prototype,"atEnd",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"startIndex",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"endIndex",void 0);_.T([_.B({value:6}),_.r("design:type",Number)],Li.prototype,"initialCount",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"scrollCount",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"initialStartIndex",void 0);
_.T([_.B(),_.r("design:type",Object)],Li.prototype,"disableScrollEventListener",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"supportComponentResize",void 0);_.T([_.B({value:function(){var M=this;return function(){return M.prevClick_()}}}),
_.r("design:type",Function)],Li.prototype,"boundPrevClick",void 0);_.T([_.B({value:function(){var M=this;return function(){return M.nextClick_()}}}),
_.r("design:type",Function)],Li.prototype,"boundNextClick",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"useFloorScrolling",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"isSearch",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"dragging",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"dragMouseStart",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"dragOffsetStart",void 0);
_.T([_.B(),_.r("design:type",Object)],Li.prototype,"disableWheelScroll",void 0);_.T([_.B(),_.r("design:type",Object)],Li.prototype,"centerListItems",void 0);_.T([_.GQ("iron-resize"),_.KT("guideOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Li.prototype,"onIronResize_",null);_.T([_.GQ("transitionend"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Li.prototype,"onItemsTransitionEnd_",null);
_.T([_.GQ("focusin"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Li.prototype,"onChildElementFocus_",null);_.T([_.KT("shownItems"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Li.prototype,"observeShownItems_",null);_.T([_.pT()],Li);_.pi.YtdHorizontalListBehavior=[];_.pi.YtdHorizontalListBehavior.push(_.uz,_.F.YtRendererBehavior,_.k8.YtLazyListBehavior,_.RB.YtdGuideStateAwareBehavior,Li.prototype);var pau=["APP_STATE","PI"];var Y8,Wl=function(M){this.hostElement=M},Aa=function(M,q){if(q&&(W9y(q.viewableCommands)||W9y(q.endOfSessionCommands))){var G=dGj(q.viewableCommands);
q=dGj(q.endOfSessionCommands);if(!Y8){var K=_.tL("custom_active_view_tos_timeout_ms");Y8=K>0&&K!==36E5?new mWY(AGi(),K):new mWY(AGi())}TGi(Y8,M.hostElement);rwy(Y8,M.hostElement,G,q)}},dn=function(M){Y8&&TGi(Y8,M.hostElement)};var JOM=_.DQ(["about:blank"]),Zd9={pushState:window.history.pushState,replaceState:window.history.replaceState};var vl=function(M){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=M;this.internalPushState=M.pushState.bind(M);this.internalReplaceState=M.replaceState.bind(M)};
vl.prototype.init=function(){this.initialized=!0};
vl.prototype.pushState=function(M,q){this.initialized||this.init();this.internalPushState&&this.internalPushState(M,"",q)};
vl.prototype.replaceState=function(M,q){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(M,"",q)};
vl.prototype.getState=function(){return this.history&&this.history.state};var bdB=function(M){var q=function(){var G=M.apply(this,arguments)||this;G.boundHistoryPushState=!1;G.boundHistoryReplaceState=!1;G.debugInfo={};return G};
_.l(q,M);q.prototype.init=function(){var G=_.iI("IFRAME");_.$C(G,_.Ow(JOM));G.sandbox="allow-same-origin";G.style.display="none";this.iframe=G;document.body.appendChild(G);this.bindHistoryStateFunctions();M.prototype.init.call(this)};
q.prototype.bindHistoryStateFunctions=function(){var G=this,K=[],n;this.iframe&&((n=this.iframe.contentWindow)==null?0:n.history)&&(n=this.iframe.contentWindow.history)&&(K.push(n),Object.getPrototypeOf(n)&&K.push(Object.getPrototypeOf(n)));window.history&&K.push(window.history);n=window.history;Object.getPrototypeOf(n)&&K.push(Object.getPrototypeOf(n));K.push(Zd9);n=function(p){for(var y=null,Y=0;Y<K.length;Y++){var A=K[Y][p];if(typeof A==="function"){y=A.bind(window.history);G.debugInfo[p]=Y;break}}return y};
if(!this.boundHistoryReplaceState){var E=n("replaceState");E&&(this.internalReplaceState=E,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(n=n("pushState"))&&(this.internalPushState=n,this.boundHistoryPushState=!0)};
return q}(vl),UmS=function(){return bdB.call(this,window.history)||this};
_.l(UmS,bdB);UmS.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var ha=function(M){this.browserHistory=M;this.initialized=!1};
ha.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
ha.prototype.pushState=function(M,q){this.initialized||this.init();this.browserHistory.pushState(M,q)};
ha.prototype.replaceState=function(M,q){this.initialized||this.init();this.browserHistory.replaceState(M,q)};
ha.prototype.handlePopstate=function(M){return M.state};_.xm$=function(M,q,G,K,n){this.endpoint=M;this.forward=q;this.historyEntry=G;this.JSC$30449_savedComponentState=K;this.legacyBorder=n===void 0?!1:n};var zR$=function(M,q){this.rootData=M;this.scrollTop=q};_.ta=new _.$k("EPHEMERAL_STORE_TOKEN");_.OW=function(M){this.data=Object.assign({},M);var q;(q=this.data.innertubeResponse)==null||delete q.frameworkUpdates};
_.OW.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.d8)()};
_.zh=function(M){return Object.assign({},M.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var mmJ=function(){this.maxSize=100;this.timeToDataCache=new Map};
mmJ.prototype.get=function(M){var q=this.timeToDataCache.get(M);q&&(this.timeToDataCache.delete(M),this.timeToDataCache.set(M,q));if(q&&q.rootData&&(_.w("web_use_response_store_for_history_cache")||_.w("mweb_use_new_history_manager"))){var G=_.AL().resolve(_.ta),K=Saf(q),n=!!K;if(K){if(K.content){var E=wn(G,K.content);n&&E?q.rootData.response=_.zh(E):n=!1}K.player&&(E=wn(G,K.player),n&&E?q.rootData.playerResponse=_.zh(E):n=!1);K.reelSequence&&(G=wn(G,K.reelSequence),n&&G?q.rootData.reelWatchSequenceResponse=
_.zh(G):n=!1)}n||(this.timeToDataCache.delete(M),q=void 0)}return q};
mmJ.prototype.set=function(M,q){if(q.rootData&&(_.w("web_use_response_store_for_history_cache")||_.w("mweb_use_new_history_manager"))){var G=Saf(q),K=Object.assign({},q.rootData);G&&(G.content&&q.rootData.response&&(TV2(this,G.content,q.rootData.response),K.response=null),G.player&&q.rootData.playerResponse&&(TV2(this,G.player,q.rootData.playerResponse),K.playerResponse=null),G.reelSequence&&q.rootData.reelWatchSequenceResponse&&(TV2(this,G.reelSequence,q.rootData.reelWatchSequenceResponse),K.reelWatchSequenceResponse=
null));q=new zR$(K,q.scrollTop)}this.timeToDataCache.has(M)?this.timeToDataCache.delete(M):this.timeToDataCache.size>=this.maxSize&&(G=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(G.value));this.maxSize!==0&&this.timeToDataCache.set(M,q)};
mmJ.prototype.clear=function(){this.timeToDataCache.clear()};
var Saf=function(M){var q=_.AL().resolve(_.WR(_.Ls)),G;if((G=M.rootData)==null?0:G.endpoint)return q==null?void 0:wSw(q,M.rootData.endpoint);var K;_.j1(new _.bj("History snapshot response data does not contain endpoint",(K=M.rootData)==null?void 0:K.url));return null},TV2=function(M,q,G){if(M.maxSize>0){var K;
(M=(K=G.responseContext)==null?void 0:K.maxAgeSeconds)&&Number(M)>0&&(K=_.AL().resolve(_.ta),G=Hx(G,M),K.put(q,new _.OW(G)))}};var rO2=function(M,q,G){this.endpoint=q;this.JSC$30455_savedComponentState=G===void 0?null:G;this.entryTime=M};var tqj=1;var Ci=function(M){var q=function(){var G=M.apply(this,[].concat(_.Ui(_.rW.apply(0,arguments))))||this;G.historyEntryTime=0;G.historySnapshotCache=G.createHistoryCache();return G};
_.l(q,M);q.prototype.createHistoryCache=function(){return new mmJ};
q.prototype.saveAndReplace=function(G,K,n){var E=window.location.href;var p=p===void 0?{}:p;var y=(y=this.browserHistory.getState())&&y.entryTime?y.entryTime:OHe();G=this.createNewHistoryEntry(G,p,y);this.saveSnapshot(y,K,n);this.replaceState(G,E||window.location.href)};
q.prototype.saveAndPush=function(G,K,n,E,p){p=p===void 0?{}:p;this.saveSnapshot(this.historyEntryTime,n,E);n=this.historySnapshotCache;E=this.historyEntryTime;var y=n.timeToDataCache.keys();y=_.k(y);for(var Y=y.next();!Y.done;Y=y.next())Y=Y.value,Y>E&&n.timeToDataCache.delete(Y);K=this.createNewHistoryEntry(K,p);this.pushState(K,G)};
q.prototype.saveSnapshot=function(G,K,n){this.historySnapshotCache.set(G,new zR$(K,n))};
q.prototype.createNewHistoryEntry=function(G,K,n){n=n===void 0?OHe():n;return new rO2(n,G,K)};
q.prototype.handlePopstate=function(G){var K=M.prototype.handlePopstate.call(this,G),n=null,E=null,p=!1,y=null;K&&K.entryTime&&(y=this.historySnapshotCache.get(K.entryTime)||null,p=K.entryTime>this.historyEntryTime,this.historyEntryTime=K.entryTime,n=K.endpoint,E=K.JSC$30455_savedComponentState);this.handleHistoryCacheLoad(new _.xm$(n,p,y,E),G);return K};
q.prototype.pushState=function(G,K){Number(G==null?void 0:G.entryTime)>=0&&(this.historyEntryTime=G.entryTime);M.prototype.pushState.call(this,G,K)};
q.prototype.replaceState=function(G,K){Number(G==null?void 0:G.entryTime)>=0&&(this.historyEntryTime=G.entryTime);M.prototype.replaceState.call(this,G,K)};
q.prototype.handleHistoryCacheLoad=function(){};
return q}(ha),jPI=function(){var M=Ci.call(this,new UmS)||this;
M.dispatchElement=null;M.entryIndex=0;return M};
_.l(jPI,Ci);_.N=jPI.prototype;_.N.init=function(M){M=M===void 0?!0:M;Ci.prototype.init.call(this);this.initialized||(M||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.N.handlePopstate=function(M){var q=null;M.state||(q="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return Ci.prototype.handlePopstate.call(this,M);var G=new CustomEvent("yt-history-pop",{cancelable:!0});_.VW(this.dispatchElement,"yt-history-pop",[G,{errorMsg:q}]);_.Rf(this.dispatchElement,"yt-close-all-popups-action");if(!G.defaultPrevented){G=_.AL().resolve(_.md);q=G.getCurrentData();var K=G.getCurrentPage();G=0;K?(K=_.VW(this.dispatchElement,"yt-get-page-offset",
[K]),K.length>0&&(G=K[0])):_.j1(new _.bj("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:q?q.page:"undefined"}));q&&(q.csn=_.Cx());this.saveSnapshot(this.historyEntryTime,q,G)}return Ci.prototype.handlePopstate.call(this,M)};
_.N.handleHistoryCacheLoad=function(M,q){M.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.k(_.Rf(this.dispatchElement,"yt-history-will-navigate",[q])).next().value||_.VW(this.dispatchElement,"yt-history-load",[q,M]))};
_.N.pushState=function(M,q){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var G=new _.bj("history.pushState is not a function",this.getDebugString());_.T6(G)}Ci.prototype.pushState.call(this,M,q)};
_.N.replaceState=function(M,q){if(!this.browserHistory.boundHistoryReplaceState){var G=new _.bj("history.replaceState is not a function",this.getDebugString());_.T6(G)}Ci.prototype.replaceState.call(this,M,q)};
_.N.saveAndPush=function(M,q,G,K,n){n=n===void 0?{}:n;G&&(G.csn=_.Cx());Ci.prototype.saveAndPush.call(this,M,q,G,K,n)};
_.N.getDebugString=function(){var M=[];this.initialized&&M.push("i");this.browserHistory.boundHistoryReplaceState&&M.push("bhr");this.browserHistory.boundHistoryPushState&&M.push("bhs");"replaceState"in this.browserHistory.debugInfo&&M.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&M.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&M.push("ei:"+String(this.entryIndex));return M.join(",")};
_.ac=function(M,q){M.init(!0);var G=M.browserHistory.getState();M.replaceState(G,FY(q))};
jPI.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.oc=new _.$k("DESKTOP_HISTORY_MANAGER_TOKEN");var Vil=[10,20,30,40,50,60],l4=function(){this.currentPartitionIndex=0},RR9=function(M){PJf({mainAppWeb:_.Ir(),
survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},fN$=function(M){PJf({mainAppWeb:_.Ir(),
survivalSli:{partitionMinute:M,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},Fuf=function(M){return M.currentPartitionIndex>=0&&M.currentPartitionIndex<Vil.length?Vil[M.currentPartitionIndex]:-1},HdS=function(M){return M.currentPartitionIndex>0&&M.currentPartitionIndex-1<Vil.length?Vil[M.currentPartitionIndex-1]:-1};
l4.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var M=HdS(this);M>0&&fN$(M);M=Fuf(this);M>0&&RR9(M);eRv(this)}};
var eRv=function(M){var q=Fuf(M);if(q>0){var G=HdS(M);G<0&&(G=0);M.intervalId=_.r8.addJob(function(){var K=HdS(M);K>0&&fN$(K);K=Fuf(M);K>0&&RR9(K);eRv(M)},3,(q-G)*6E4);
M.currentPartitionIndex+=1}else M.currentPartitionIndex=-1};var $m8=function(M){wh.call(this,M,132);this.isDocument=M===document.documentElement};
_.l($m8,wh);$m8.prototype.calculateScrollDelta=function(M,q,G){var K=0;M<q?K=M<q-100?-48:-8:M>q+G&&(K=M>q+G+100?48:8);return K};
$m8.prototype.JSC$11395_onMouseMove=function(M){this.isDocument||(M.clientX=M.event_.pageX,M.clientY=M.event_.pageY);wh.prototype.JSC$11395_onMouseMove.call(this,M)};_.sad=function(M,q){var G=this;this.scrollElement=document.documentElement;this.dragScrollSupport=this.JSC$14551_dragListGroup=null;this.onDraggerCreated=function(K){var n=K.JSC$11391_dragger;n.scrollTarget_=G.scrollElement;K=K.draggerEl;n&&K.menuOpened&&n.setEnabled(!1)};
this.onDragStart=function(K){var n=K.draggerEl;K=K.currDragItem;var E=Object.assign({},K==null?void 0:K.data);E.trackingParams=void 0;n.data=E;n.style.position="absolute";n.style.width=(K==null?void 0:K.clientWidth)+"px";n.style.zIndex="2030";n.onDrag&&n.onDrag();K=_.T9(n);(E=K.querySelector("ytd-app"))?_.f_(E).appendChild(n):K.body.appendChild(n);G.dragScrollSupport=new $m8(G.scrollElement);G.dragScrollSupport.horizontalScrolling_=!1;n=G.dragScrollSupport;n.constrainScroll_=!!n.margin_&&!1};
this.onDrop=function(K){G.handleDrop(K);G.dragScrollSupport&&(_.ka(G.dragScrollSupport),G.dragScrollSupport=null)};
this.onReorderableScroll=function(){if(G.JSC$14551_dragListGroup){var K=G.JSC$14551_dragListGroup;ip9(K,K.currDragItem_)}};
this.handleDrop=q};
_.X5=function(M){M.JSC$14551_dragListGroup&&(_.OS(M.JSC$14551_dragListGroup,tcd,M.onDragStart),_.OS(M.JSC$14551_dragListGroup,atP,M.onDragStart),M.JSC$14551_dragListGroup.dispose(),M.JSC$14551_dragListGroup=null);M.dragScrollSupport&&(_.ka(M.dragScrollSupport),M.dragScrollSupport=null);M.scrollElement.removeEventListener("scroll",M.onReorderableScroll)};
_.MYf=function(M,q,G,K){K=K===void 0?"":K;_.X5(M);G&&(M.scrollElement=G);M.JSC$14551_dragListGroup=new mt;M.JSC$14551_dragListGroup.hysteresisDistance_=2;ltl(M.JSC$14551_dragListGroup,q);M.JSC$14551_dragListGroup.draggerElClasses_=A4("dragging").split(" ");K&&XxP(M.JSC$14551_dragListGroup,function(n){var E=n||document,p=null;E.getElementsByClassName?p=E.getElementsByClassName(K)[0]:p=nPJ("*",K,n);return p||n});
_.Yj(M.JSC$14551_dragListGroup,vmd,M.onDraggerCreated);_.Yj(M.JSC$14551_dragListGroup,tcd,M.onDragStart);_.Yj(M.JSC$14551_dragListGroup,atP,M.onDrop);M.JSC$14551_dragListGroup.init();M.scrollElement.addEventListener("scroll",M.onReorderableScroll,{passive:!0})};
_.Yd.Object.defineProperties(_.sad.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});var qdI=function(){this.skipNextNavigation=!1},GPf=function(M,q,G){if(!q)return!1;
if(M.skipNextNavigation)return M.skipNextNavigation=!1;if(_.C(G,_.q6))return!1;var K,n,E;if((K=_.C(G,_.n_))==null?0:(n=K.browseEndpointContextSupportedConfigs)==null?0:(E=n.browseEndpointContextMainConfig)==null?0:E.skipConfirmation)return!1;var p;return((p=_.C(q.commandMetadata,_.Mg))==null?void 0:p.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
qdI.prototype.showConfirmationDialog=function(M,q){this.navigateParams=q;this.customConfirmationCommand?_.AL().resolve(_.vR).resolveCommand(this.customConfirmationCommand):(q={openPopupAction:{popup:{confirmDialogRenderer:{title:_.bc(_.Ge("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.bc(_.Ge("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.bc(_.Ge("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.bc(_.Ge("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.GC.getInstance().triggerAction("yt-open-popup-action",q,M))};
qdI.prototype.cancelPendingNavigation=function(){var M;((M=this.navigateParams)==null?void 0:M.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var K09=function(){},EX2=function(M,q,G,K,n,E,p){G=G===void 0?{}:G;
p=p===void 0?{}:p;var y=_.AL().resolve(_.Ls),Y,A=(Y=_.C(q,_.q6))==null?void 0:Y.url;return A?qcw(y,A,G,window.location.href,function(v,h){nXI(M,v,h,!1,!0,G,E,K)},function(){return!1}):iq(y,q,G,window.location.href,Nr(q),function(v,h){nXI(M,v,h,!1,!0,G,E,K)},n,p)},nXI=function(M,q,G,K,n,E,p,y){if(!M.JSC$14566_chunkHandler)if(G.page==="learning_journey_watch"&&_.w("web_enable_canvas_on_learning_journey")){var Y=!_.C(y,_.n_);
n=n||K;if(Y)if(n){if(_.w("kevlar_continue_playback_without_player_response")){var A;var v=(A=_.C(y,_.Jl))==null?void 0:A.videoId}K={clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:K,previousVideoId:v},tempData:E}}else K={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};else K={clientParams:{miniplayer:!1,autoSaveToQueue:!1}};M.JSC$14566_chunkHandler=new RiJ(_.TM,K,p,Y,n)}else if(G.page==="watch"||G.page==="learning_journey_watch")if(n||K){if(_.w("kevlar_continue_playback_without_player_response")){var h;
Y=(h=_.C(y,_.Jl))==null?void 0:h.videoId}M.JSC$14566_chunkHandler=new HUd(_.TM,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:K,previousVideoId:Y},tempData:E},p)}else M.JSC$14566_chunkHandler=new jdS(_.TM);else G.page==="shorts"&&n&&!K?M.JSC$14566_chunkHandler=new FVJ(_.TM,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:E},p):M.JSC$14566_chunkHandler=new VyJ(p);M.JSC$14566_chunkHandler.processChunk({endpoint:q,data:G});return M.JSC$14566_chunkHandler.aR.promise},
NDp=function(M,q,G,K,n){(G=_.LR$(G))&&nXI(M,q,G,!1,!0,K,void 0,n)};_.kP9=new _.$k("NAVIGATION_SERVICE_TOKEN");var p6f=function(){this.pendingNavigationPromise=null};
_.N=p6f.prototype;_.N.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.N.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.N.addEventListener=function(){throw Error("yh");};
_.N.dispatchEvent=function(){throw Error("yh");};
_.N.removeEventListener=function(){throw Error("yh");};var yyS=new _.$k("APP_ROOT");var CLD=null;var L0d=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],Pl=function(){_.w6.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];YdM(this)};
_.l(Pl,_.w6);Pl.prototype.verifyUser=function(){var M=YdM(this),q=M.logout;if(!M.sessionChange)return!0;this.dispatchEvent("ytsessionchange");q&&this.dispatchEvent("ytuserinvalid");return!1};
var YdM=function(M){var q=L0d.map(function(n){var E;return(E=_.Iu.get(n))!=null?E:""}),G=q.some(function(n,E){return M.sessionCookies&&M.sessionCookies[E]!==""&&n===""}),K=q.some(function(n,E){return M.sessionCookies&&M.sessionCookies[E]!==n});
M.sessionCookies=q;return{logout:G,sessionChange:K}};
Pl.prototype.clearTimeout=function(){this.scheduledJobId&&(_.r8.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var iH4=new _.$k("POSTMESSAGE_TUNNEL_TOKEN");var lnj=["/parent_tools","/file_download","/artist_roster"],BO$=[zGv,maJ,SA8,r9p,TW$,xad,jvf,VMS];var i4=new _.$k("NAVIGATION_CONFIRMATION_SERVICE");var W08="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /contribute-notes /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),Ayv=[{url:"/podcasts",
expFlag:"enable_polymer_navigation_for_podcasts_destination_page"},{url:"/companion_canvas",expFlag:"enable_ai_companion"}],cl=function(M,q){this.pendingNavigationPromise=null;this.JSC$14589_clientRoot=M;this.historyManager=q;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 K09;this.debugString=M.is;M={"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};_.KI(_.GC.getInstance(),M,this.JSC$14589_clientRoot)},OqS,w6P,CX2,aoJ,tYd;
_.l(cl,p6f);cl.prototype.reload=function(){_.PE(window.location.href)};
var Azp=function(M){M.currentEndpoint&&_.C(M.currentEndpoint,_.p_)?M.reload():M.currentEndpoint&&M.navigate(M.currentEndpoint,!0,void 0,{disableCache:!0})};
cl.prototype.navigate=function(M,q,G,K,n,E,p,y){q=q===void 0?!1:q;G=G===void 0?{}:G;K=K===void 0?{}:K;var Y=_.AL().resolve(i4),A;if(!p&&GPf(Y,(A=this.currentEndpoint)!=null?A:void 0,M))return Y.showConfirmationDialog(this.JSC$14589_clientRoot.parentElement,{endpoint:M,reload:q,params:G,tempData:K,requestType:n,createScreenConfig:E}),!1;var v=_.M5();_.q5(v,"eocs")||v.parkOrScheduleJob(function(){v.processSignal("eocs")},10,"eor");
anD();p=Nr(M);Y=K.autonav==="1";A=_.Cx();Pl.instance||(Pl.instance=new Pl);var h=Pl.instance.verifyUser(),t;if(_.w("enable_dark_theme_only_on_shorts")){var O=document.documentElement.hasAttribute("dark"),a=_.cE(!0)==="USER_INTERFACE_THEME_DARK";if(p==="shorts"){if(!O)if(_.w("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var g;_.PE((g=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?void 0:g.url,void 0,void 0,window.top)}}else{var D;_.PE(_.Ex((D=_.C(M==
null?void 0:M.commandMetadata,_.Mg))==null?void 0:D.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.w("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!O){var J;_.PE(_.Ex((J=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?void 0:J.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(a!==O){var Z;_.PE(_.Ex((Z=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?void 0:Z.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(p==="watch"){if(df$(_.AL().resolve(_.lq),
M)&&(h||_.w("fix_miniplayer_navigation_killswitch")))return!1;_.w("block_all_player_prefetch_requests")||(t=Y1J(_.Uz(_.aq),M,Y))}else{var V,S=(V=_.C(this.currentEndpoint,_.Jl))==null?void 0:V.videoId;S&&_.xx.getInstance().then(function(bH){bH&&bH.set("yt-miniplayer-shown-video-id",S)})}t&&(G.frags=t.missingFragments_.join(","));
g=null;var m;D=(m=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?void 0:m.ignoreNavigation;if(!D)if(_.w("kevlar_command_url")){var R;g=(R=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?void 0:R.url}else g=_.sZH(M,G);if(g&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&g==this.lastNavigationUrl)return _.t2({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.$n(iG(),"CANCELLED")}g&&(this.lastNavigationUrl=g);MLF();_.Vz("IS_HOMEPAGE_COLD",
!1);_.Vz("IS_RESULTS_PAGE_COLD",!1);_.Vz("IS_WATCH_PAGE_COLD",!1);M.loggingUrls&&M.loggingUrls.forEach(function(bH){bH.baseUrl&&_.M8(bH.baseUrl)});
_.uEe(M,E?E.layer:0)&&_.w("kevlar_flush_logs_on_away_navigation")&&_.S1();if(QVi(M))return!1;f1p(p,n);if(!g)return D||_.j1(new _.bj("Can't construct url for endpoint",M)),_.$n(iG(),"FAILURE"),!1;_.oB$();m=M&&_.C(M,_.n_)&&_.C(M,_.n_).browseId.startsWith("UC");G=(R=_.w("enable_dark_theme_only_on_shorts")&&p==="shorts"?!1:_.g2()&&document.documentElement.hasAttribute("dark")!==_.ia())?{themeRefresh:1}:{};R&&!_.uj()&&_.cE()==="USER_INTERFACE_THEME_DARK"&&(G.theme="dark");m=R||vXB(g)&&!m&&!_.w("kevlar_disable_url_allowlist");
h||(m=!0);if(m||_.R9("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var se;var yY=(se=window.top)==null?void 0:se.location.href}catch(bH){var d$;yY=(d$=bH)==null?void 0:d$.message}_.j1(new _.bj("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:yY}))}M=_.w("kevlar_redirect_on_window_killswitch")?window.top:window;Xw(g);_.PE(_.Ex(g,G),void 0,void 0,M);_.$n(iG(),"ABORTED");return!1}_.w("kevlar_early_popup_close")&&_.VW(this.JSC$14589_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$14566_chunkHandler=void 0;var cy;yY=Nr((cy=this.currentEndpoint)!=null?cy:void 0);(cy=p==="shorts"&&yY==="shorts")||_.jDs();_.$2(QDy)("nr",void 0);Y&&_.t2({webInfo:{navigationReason:"an"}});M.clickTrackingParams&&(K.itct=M.clickTrackingParams,K.csn=A);sRw(K);K.endpoint=JSON.stringify(M);_.w("enable_unknown_lact_fix_on_html5")&&(_.AL().resolve(_.Lp),K.lact=_.Ap());_.xP.isEmpty(K)||_.xD(g,K);!_.w("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(E=Object.assign({},{layer:0},E,{parentLayer:3}));this.pendingNavigationPromise=E=EX2(this.pageFetcher,M,K,this.currentEndpoint,this.JSC$14589_isNetworkPromiseStale.bind(this),E,y);E=E.then(this.handleNavigateSuccess.bind(this,E,M,t,K),this.handleNavigateFail.bind(this,E,M));_.Bg().navigationFinishPromise=E;q={endpoint:M,pageType:p,url:FY(g),reload:!!q,noProgressBar:cy};n&&(q.type=n);var t4;n=_.K_((t4=this.currentEndpoint)!=null?t4:null);t4=_.K_(M!=null?M:null);this.fireEvent("yt-navigate-start",
q);var ay;(ay=_.AL().resolve(_.WR(_.kP9)))==null||ay.publish("navigation-start",{sourcePageSubtype:n,destinationPageSubtype:t4});t&&NDp(this.pageFetcher,M,t,K,this.currentEndpoint);return!0};
cl.prototype.JSC$14589_isNetworkPromiseStale=function(M){return M!=this.pendingNavigationPromise};
var hcl=function(M,q,G,K,n){var E=Nr(q);q={endpoint:q,pageType:E};n&&(q.errorMessage=n);_.j1(G);q.navigationDoneMs=_.oJ("nd");q.navigationErrorReason=K;M.fireEvent("yt-navigate-error",q)};
cl.prototype.handleNavigateFail=function(M,q,G){var K=void 0;G instanceof _.l_&&(K=G,e4e(G));if(this.JSC$14589_isNetworkPromiseStale(M))return _.Aj(K);_.$n(iG(),"FAILURE");hcl(this,q,G,"101");return _.Aj(G)};
cl.prototype.handleNavigateSuccess=function(M,q,G,K,n){if(this.JSC$14589_isNetworkPromiseStale(M))return _.HF();this.pendingNavigationPromise=null;if(!n)return q=new _.bj("Missing data in response for navigation endpoint",q),_.Aj(q);if(n.reload)return window.location.reload(!0),_.HF();G&&(M={},_.xP.extend(M,_.LR$(G),n),n=M);var E,p;G=(E=n)==null?void 0:(p=E.timing)==null?void 0:p.responseStart;G!=null&&_.oJ("srt",G);_.oJ("pdc");var y,Y;E=(y=n)==null?void 0:(Y=y.timing)==null?void 0:Y.info;E!=null&&
(y=_.$2(_.Jre)(E),_.t2(y));_.$n(iG(),"SUCCESS");tYd(this,q,n,1,K);return _.HF()};
var vXB=function(M){var q=M;_.w("kevlar_no_redirect_to_classic_2_ks")||(q=(new _.Za(M)).getPath());if(q==="/"||q==="/red")return!1;var G=!0;W08.forEach(function(K){M.indexOf(K)===0&&(G=!1)});
Ayv.forEach(function(K){var n=K.url;_.w(K.expFlag)&&M.indexOf(n)===0&&(G=!1)});
return G};
cl.prototype.publishPageData=function(M){this.fireEvent("yt-page-data-fetched",{pageData:M})};
OqS=function(M,q,G,K,n,E){var p=null;q.page!=="watch"&&q.page!=="learning_journey_watch"||K?q.filler||_.VW(M.JSC$14589_clientRoot,"yt-stop-old-player",[q]):p=nXI(M.pageFetcher,n,q,G,!1,E,void 0,M.currentEndpoint);if(p)return p.then(M.publishPageData.bind(M,q));M.publishPageData(q);return _.HF()};
w6P=function(M,q,G){var K=null;if(!G)return K=new _.bj("Empty data",M.debugString,q);var n=G.response;if(!n)return K;var E={endpointType:Nr(q)||"unknown"};n.responseContext?(n=n.responseContext.errors)&&(K=new _.bj("Errors in response context",M.debugString,q,n,E)):K=n.error||n.errorMetadata?new _.bj("Errors in response",M.debugString,q,n.error,n.errorMetadata,E):new _.bj("responseContext missing",M.debugString,q,Object.keys(n).sort().join(","),E);var p,y,Y,A;if(M=G==null?void 0:(p=G.response)==null?
void 0:(y=p.responseContext)==null?void 0:(Y=y.webResponseContextExtensionData)==null?void 0:(A=Y.webResponseContextDebugData)==null?void 0:A.debugErrorMessages)for(p=0;p<M.length;p++);return K};
CX2=function(M){var q,G,K,n;return M==null?void 0:(q=M.response)==null?void 0:(G=q.responseContext)==null?void 0:(K=G.errors)==null?void 0:(n=K.error)==null?void 0:n["0"]};
aoJ=function(M,q){var G;if(G=q.url&&!q.url.startsWith("/clip"))G=q.url,G=!_.w("webfe_parse_debug_param_in_resolveurl_service")&&M.searchDebugUrlMatcher.test(G)||Njj(G)?!0:!1;if(G)Njj(q.url)&&_.nD(window.location.href).themeRefresh?(q=_.zt(q.url,"themeRefresh"),_.ac(M.historyManager,q)):q.url&&!vBs(q.url)&&_.ac(M.historyManager,q.url);else if(q.endpoint){var K,n,E;(G=(K=q.endpoint)==null?void 0:(n=K.commandMetadata)==null?void 0:(E=n.webCommandMetadata)==null?void 0:E.url)&&!vBs(G)&&_.ac(M.historyManager,
G);G&&q.url&&G!=q.url&&!q.url.match("playnext=1")&&new _.bj("Response url mismatch in response data",M.debugString,G,q.url)}};
_.oX2=function(M,q,G,K,n,E,p,y){E=E===void 0?!1:E;var Y=_.AL().resolve(i4),A;if(!y&&GPf(Y,(A=M.currentEndpoint)!=null?A:void 0,q))return Y.showConfirmationDialog(M.JSC$14589_clientRoot.parentElement,{endpoint:q,data:G,navigationType:K,tempData:n,isMiniplayer:E,isForwardHistoryNavigation:p==null?void 0:p.forward}),_.HF();M.pageFetcher.JSC$14566_chunkHandler=void 0;return tYd(M,q,G,K,n,E)};
tYd=function(M,q,G,K,n,E){E=E===void 0?!1:E;M.isMiniplayerExpansion=E;var p=K===2;M.currentEndpoint=q;M.numNavigations++;M.numNavigations&&(zgs.navigationCount=M.numNavigations);_.Vz("NUM_NAV",M.numNavigations);var y=w6P(M,q,G);if(y)return hcl(M,q,y,"102",CX2(G)),_.Aj(y);var Y,A,v,h;y=G.rootVe||(G==null?void 0:(Y=G.response)==null?void 0:(A=Y.responseContext)==null?void 0:(v=A.webResponseContextExtensionData)==null?void 0:(h=v.ytConfigData)==null?void 0:h.rootVisualElementType);!p&&G&&aoJ(M,G);var t,
O;Y=G==null?void 0:(t=G.response)==null?void 0:(O=t.responseContext)==null?void 0:O.maxAgeSeconds;if(!p&&!isNaN(Y)){var a;_.w("kevlar_use_response_ttl_to_invalidate_cache")?a=(0,_.d8)()+1E3*Y:_.w("kevlar_always_invalidate_cache")&&(a=0);isNaN(a)||(G.expirationTime=a)}_.Uz(_.aq).prefetchCache_.clear();p||G.page!=="watch"||G.type!=="reduced"&&K!==1?K=OqS(M,G,p,!!E,q,n):(M.publishPageData(G),K=_.HF());n=K.then(function(){var g=Nr(q);g={endpoint:q,pageType:g,fromHistory:p,response:G};g.navigationDoneMs=
_.oJ("nd");M.fireEvent("yt-navigate-finish",g);var D;(D=_.AL().resolve(_.WR(_.kP9)))==null||D.publish("navigation-end")});
G.csn&&y&&G.clientSideGrafts&&K.then(M.attachClientSideGrafts.bind(M,G,_.wt()));return n};
_.N=cl.prototype;_.N.attachClientSideGrafts=function(M,q){M.clientSideGrafts&&q&&M.clientSideGrafts.forEach(function(G){if(q&&G){var K=_.yx(G);_.w("combine_ve_grafts")?_.nl().graftServerVe(G,q):_.QQ(M.csn,q,K)}})};
_.N.handleSignalActionHistoryBack=function(){window.history.back()};
_.N.handleSignalActionCloseWindow=function(){window.close()};
_.N.handleSignalActionReloadPage=function(){this.reload()};
_.N.handleSignalActionSoftReloadPage=function(){Azp(this)};
_.N.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.N.fireEvent=function(M,q){M=new CustomEvent(M,{bubbles:!0,cancelable:!1,composed:!0,detail:q});this.dispatchEvent(M)};
_.N.addEventListener=function(M,q){this.JSC$14589_clientRoot.addEventListener(M,q)};
_.N.dispatchEvent=function(M){return this.JSC$14589_clientRoot.dispatchEvent(M)};
_.N.removeEventListener=function(M,q){this.JSC$14589_clientRoot.removeEventListener(M,q)};
cl[dP]=[yyS,_.oc];_.nMe=new zz("browse","h8y2qb");_.EMu=new zz("search","JzFVk");_.NaF=new zz("shorts","xwEKAe");_.kH$=new zz("watchFixie","nmfa2d");_.pSy=new zz("watchFlexy","CF909");_.yH$=new zz("watchGrid","Tm0L3c");_.LSF=new zz("watchLearningJourney","L3n37");var loB;var X6f=function(){return _.Q.apply(this,arguments)||this};
_.l(X6f,_.Q);_.Yd.Object.defineProperties(X6f,{template:{configurable:!0,enumerable:!0,get:function(){if(loB===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);loB=M}M=loB;return M}}});
_.T([_.P(Xol.YtPlayerBehavior),_.r("design:type",Object)],X6f.prototype,"ytPlayerBehavior",void 0);_.T([_.b({is:"ytd-player"})],X6f);var PXM;var iqP;var cyv;var gn=function(){var M=_.Q.apply(this,arguments)||this;M.forceModernIconButton=!1;M.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return M};
_.l(gn,_.Q);gn.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]]"}}}}}};
gn.prototype.handleAccountLinkingStateChangedCommand=function(M){if(M=_.C(M,KzI)){var q,G=(q=this.data)==null?void 0:q.providerKey;q=M.providerKey;G&&q&&G.id===q.id&&G.subject===q.subject&&(M=M.linked,M!==void 0&&(this.set("data.linked",M),this.notifyPath("data.linked"),_.w("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(M)))}};
gn.prototype.setPlayerAccountLinkState=function(M){var q=new wgf;CuM(q,t6I(new hXM,M));var G=_.TM();G&&G.getPlayerPromise().then(function(K){K.setAccountLinkState(_.ZU(q.JSC$12320_serializeBinary(),4));K.updateAccountLinkingConfig(M)})};
gn.prototype.handleShowAccountLinkDialog=function(){var M=this.get("button.buttonRenderer.command");M&&_.$D([M],this.hostElement)};
_.Yd.Object.defineProperties(gn.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}}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],gn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gn.prototype,"ytRendererBehavior",void 0);_.T([_.P([_.wg.YtActionHandlerBehavior]),_.r("design:type",Object)],gn.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],gn.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],gn.prototype,"overrides",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],gn.prototype,"forceModernIconButton",void 0);_.T([_.B({value:"bottom"}),_.r("design:type",String)],gn.prototype,"buttonTooltipPosition",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],gn.prototype,"forceIconButton",void 0);_.T([_.B(),_.r("design:type",Boolean)],gn.prototype,"disableTextTransform",void 0);
_.T([_.c("data","data.linked","data.isWarning"),_.r("design:type",Object),_.r("design:paramtypes",[])],gn.prototype,"button",null);_.T([_.b({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],gn);
_.z(gn,"ytd-account-link-button-renderer",function(){if(cyv!==void 0)return cyv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return cyv=M},{mode:1});var gXJ;var BDB=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Bl=function(){return _.Q.apply(this,arguments)||this};
_.l(Bl,_.Q);Bl.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Bl.prototype.updateButtonActiveState=function(){var M=this,q=!!BDB.find(function(G){return M.currentState===G});
this.currentState==="PLAYLIST_LOOP_STATE_ONE"&&_.w("enable_web_delhi_icons")&&(q=!1);this.button&&(this.button.isPressed=q)};
_.Yd.Object.defineProperties(Bl.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.playlistLoopStateEntity)==null?void 0:M.state)||((q=this.data)==null?void 0:q.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var M=void 0,q;if(this.currentState&&((q=this.data)==null?0:q.states)){q=_.k(this.data.states);for(var G=q.next();!G.done;G=q.next()){G=_.C(G.value,_.wn$);var K=void 0;if(((K=G)==null?void 0:K.state)===this.currentState){M=G;break}}}return M}}});
Bl.prototype.updateButtonActiveState=Bl.prototype.updateButtonActiveState;_.T([_.P(_.mr),_.r("design:type",Object)],Bl.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Bl.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Bl.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.IG.playlistLoopStateEntitySelector}),_.r("design:type",Object)],Bl.prototype,"playlistLoopStateEntity",void 0);_.T([_.B(),_.r("design:type",Object)],Bl.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],Bl.prototype,"forceIconOnly",void 0);_.T([_.ET("ytd-button-renderer"),_.r("design:type",_.kS)],Bl.prototype,"button",void 0);
_.T([_.c("data","playlistLoopStateEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Bl.prototype,"currentState",null);_.T([_.KT("currentButtonStateRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bl.prototype,"updateButtonActiveState",null);_.T([_.c("currentState"),_.r("design:type",Object),_.r("design:paramtypes",[])],Bl.prototype,"currentButtonStateRenderer",null);
_.T([_.b({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Bl);
_.z(Bl,"ytd-playlist-loop-button-renderer",function(){if(gXJ!==void 0)return gXJ;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return gXJ=M},
{mode:1});var QaS;var Iol=_.Ge("DOWNLOAD",{},"Download"),Dfp=_.Ge("DOWNLOADING",{},"Downloading"),uh2=_.Ge("DOWNLOADED",{},"Downloaded"),Jyx=_.Ge("RETRY",{},"Retry"),QT=function(){var M=_.Q.apply(this,arguments)||this;M.forceIconButton=!1;M.forceIconOnly=!1;M.overrides=!1;M.buttonTooltipPosition=!1;M.styleActionButton=!1;M.disableTextTransform=!1;M.downloadProgress=0;M.isDownloadComplete=!1;M.isHidden=!0;M.transferState="TRANSFER_STATE_UNKNOWN";M.isVideoDeletedByUser=!1;M.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return M};
_.l(QT,_.Q);_.N=QT.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.dataChanged=function(){var M;(M=this.data)!=null&&M.text||(M=_.Xp(_.zw().getState(),this.videoId),this.updateButtonState(M))};
_.N.computeVideoId=function(M){return M};
_.N.computePlayerStateEntityKey=function(M){return M};
_.N.showHideButton=function(){this.updateButtonVisibility()};
_.N.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;var M;((M=this.playerStateEntity)==null?void 0:M.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};
_.N.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.N.updateButtonState=function(M){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==Dfp||!_.pK(M))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(M){case "TRANSFER_STATE_UNKNOWN":M=Iol;var q="OFFLINE_DOWNLOAD";var G="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":M=Jyx;q="OFFLINE_DOWNLOAD";G="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":M=uh2;q="OFFLINE_PIN";G="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":M=
Dfp;q="OFFLINE_DOWNLOADING_ZERO";G="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":M=Jyx;q="OFFLINE_DOWNLOAD";G="ACTION_RETRY";break;default:M=Iol,q="OFFLINE_DOWNLOAD",G="ACTION_ADD"}this.isVideoDeletedByUser&&(M=Iol,q="OFFLINE_DOWNLOAD",G="ACTION_ADD");var K=Object.assign({},this.data);K.text=_.bc(M);K.tooltip=M;K.icon={iconType:q};K.size="SIZE_DEFAULT";K.style="STYLE_DEFAULT";_.C(K.command,_.KL)&&(_.C(K.command,_.KL).action=G);this.set("data",K)}};
_.N.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var M="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?M="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?M="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?M="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?M="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?M="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(M="OFFLINE_PIN",this.isDownloadComplete=!0);var q;M!==((q=this.data.icon)==null?void 0:q.iconType)&&(q=Object.assign({},this.data),q.text=_.bc(Dfp),q.tooltip=Dfp,q.icon={iconType:M},_.C(q.command,_.KL)&&(_.C(q.command,_.KL).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",q))}};
QT.prototype.updateProgress=QT.prototype.updateProgress;QT.prototype.onTransferStateChanged=QT.prototype.onTransferStateChanged;QT.prototype.showHideButton=QT.prototype.showHideButton;QT.prototype.dataChanged=QT.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QT.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],QT.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QT.prototype,"forceIconButton",void 0);
_.T([_.B(),_.r("design:type",Object)],QT.prototype,"forceIconOnly",void 0);_.T([_.B(),_.r("design:type",Object)],QT.prototype,"overrides",void 0);_.T([_.B(),_.r("design:type",Object)],QT.prototype,"buttonTooltipPosition",void 0);_.T([_.B(),_.r("design:type",Object)],QT.prototype,"styleActionButton",void 0);_.T([_.B(),_.r("design:type",Object)],QT.prototype,"disableTextTransform",void 0);
_.T([_.B({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.r("design:type",String)],QT.prototype,"videoId",void 0);_.T([_.B({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.r("design:type",String)],QT.prototype,"playerStateEntityKey",void 0);_.T([_.B(),_.r("design:type",Object)],QT.prototype,"data",void 0);_.T([_.B({selector:ic,selectorArgs:["videoId"]}),_.r("design:type",Object)],QT.prototype,"downloadProgress",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],QT.prototype,"isDownloadComplete",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],QT.prototype,"isHidden",void 0);_.T([_.B({selector:_.Xp,selectorArgs:["videoId"]}),_.r("design:type",String)],QT.prototype,"transferState",void 0);_.T([_.B({selector:_.eCw,selectorArgs:["videoId"]}),_.r("design:type",Object)],QT.prototype,"isVideoDeletedByUser",void 0);
_.T([_.B({selector:jGy,selectorArgs:["videoId"]}),_.r("design:type",Object)],QT.prototype,"offlineabilityState",void 0);_.T([_.B({selector:_.e5,selectorArgs:["playerStateEntityKey"]}),_.r("design:type",Object)],QT.prototype,"playerStateEntity",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],QT.prototype,"showTooltips",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],QT.prototype,"sendCommandWhenDisabled",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],QT.prototype,"disabled",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QT.prototype,"dataChanged",null);_.T([_.yO("offlineabilityState","playerStateEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QT.prototype,"showHideButton",null);
_.T([_.yO("transferState","isVideoDeletedByUser"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QT.prototype,"onTransferStateChanged",null);_.T([_.yO("downloadProgress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QT.prototype,"updateProgress",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],QT);
_.z(QT,"ytd-download-button-renderer",function(){if(QaS!==void 0)return QaS;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return QaS=M},{mode:2});var Zqp;var bqJ,Ufv=function(){if(bqJ!==void 0)return bqJ;var M=document.createElement("template");_.X(M,'\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 bqJ=M};var xfp=_.w("web_button_rework")&&_.fX("BUTTON_REWORK")||_.w("web_button_rework_with_live"),zcf=_.tL("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,Ic=function(){var M=_.Q.apply(this,arguments)||this;M.isPressed=!1;M.forceIconButton=!1;M.forceIconOnly=!1;M.forceModernIconButton=!1;M.alignByText=!1;M.isShorts=!1;M.animatedText=!1;M.shouldAnimate=!1;M.JSC$14627_browserSupportsAnimation=_.w("web_supports_animations_api");M.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};M.onTap=function(){var q;if((q=M.data)==null||!q.defaultNavigationEndpoint){var G;q=!((G=M.data)==null?0:G.isToggled);var K;if((K=M.data)==null||!K.preventAutoToggle){M.shouldAnimate=!1;M.disableTextUpdateJobId&&_.r8.cancelJob(M.disableTextUpdateJobId);M.disableTextUpdateJobId=_.r8.addLowPriorityJob(function(){M.disableTextUpdateJobId=void 0},zcf);
var n;M.set("data.isToggled",!((n=M.data)==null?0:n.isToggled));G=M.getInnertubeIcon();K={toggled:q,actions:{}};G&&(K.actions[G.toLowerCase()]=q);_.jP(M.hostElement,"yt-toggle-button",K)}}};
return M};
_.l(Ic,_.Q);_.N=Ic.prototype;_.N.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.r8.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.toggle=function(M){var q;this.set("data.isToggled",M!==void 0?M:!((q=this.data)==null?0:q.isToggled))};
_.N.handleUpdateToggleButtonStateCommand=function(M){if(this.data){M=_.C(M,Lxx);var q,G,K,n=(q=this.data)==null?void 0:(G=q.toggleButtonSupportedData)==null?void 0:(K=G.toggleButtonIdData)==null?void 0:K.id;n&&M&&n===(M==null?void 0:M.buttonId)&&this.set("data.isToggled",M.toggled)}};
_.N.handleUpdateToggleButtonTextAction=function(M){if(this.data){M=_.C(M,Id$);var q,G,K,n=(q=this.data)==null?void 0:(G=q.toggleButtonSupportedData)==null?void 0:(K=G.toggleButtonIdData)==null?void 0:K.id;n&&M&&n===(M==null?void 0:M.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=M.defaultNumericalValue,this.set("data.defaultText",M.defaultText),this.set("data.toggledText",M.toggledText),this.shouldAnimate=!1)}};
_.N.getInnertubeIcon=function(){var M=this.data;if(M){var q,G,K=((q=M.defaultIcon)==null?0:q.iconType)?(G=M.defaultIcon)==null?void 0:G.iconType:null,n,E;q=((n=M.toggledIcon)==null?0:n.iconType)?(E=M.toggledIcon)==null?void 0:E.iconType:K;return M.isToggled?q:K}};
_.N.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Yd.Object.defineProperties(Ic.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M={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$14627_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var q=M.renderer;var G=M.element;var K=M.toggled;var n=M.onTapCallback;var E=M.commandClientArgs;var p=M.overrides;var y=M.forceIcon;var Y=M.forceModernIconButton;var A=M.forceDisabled;var v=M.useAnimatedText;var h=M.animatedTextProps;M=bH4(q,K);y=!q.defaultIcon||!y&&q.defaultText?q.defaultIcon?"leading":void 0:Y?"icon-only":"icon-only-40";y==="icon-only-40"&&(M.type="text");var t;Y=Object;var O=Y.assign,a;a:switch((a=
q.style)==null?void 0:a.styleType){case "STYLE_COMPACT_GRAY":a={size:"S"};break a;default:a={size:"M"}}var g=!!K;var D=(D=K&&q.toggledText||q.defaultText)?_.tj(D):void 0;v?(v=_.UX(K&&q.toggledText||q.defaultText))&&h&&!isNaN(Number(h.numberValue))?(h.numberText=v,K&&(h.numberValue+=1),v=h):v=void 0:v=void 0;var J,Z,V,S;var m=(h=((Z=K?q.toggledAccessibilityData||((m=q.toggledText)==null?void 0:m.accessibility):q.accessibilityData||((J=q.defaultText)==null?void 0:J.accessibility))==null?void 0:(V=Z.accessibilityData)==
null?void 0:V.label)||((S=q.accessibility)==null?void 0:S.label))?h:_.UX(K&&q.toggledText||q.defaultText);A=A===void 0?q.isDisabled:A;G=ZHF(q,K,n,G,E);K=JGH(q,K);K!=null&&K.length?(K=_.lm({innertubeCommand:CKw(K),forceNewState:!0}),K=Xg(K)?K:void 0):K=void 0;q=O.call(Y,{},M,a,{iconPosition:y},p,{focused:!1,toggled:g,toggleable:!0,formattedButtonText:D,animatedTextProps:v,accessibilityLabel:m,disabled:A,onTap:G,aTagConfig:K},Rhu((t=q.colorData)==null?void 0:t.basicColorPaletteData));q.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(q.type="filled");return q}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var M=this.getInnertubeIcon();if(M)return _.H4(M)}}});
Ic.prototype.resetAnimation=Ic.prototype.resetAnimation;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Ic.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ic.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Ic.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"isPressed",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"forceIconButton",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"forceIconOnly",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"forceModernIconButton",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"alignByText",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"overrides",void 0);
_.T([_.B(),_.r("design:type",Boolean)],Ic.prototype,"disabled",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"isShorts",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"buttonTooltipPosition",void 0);_.T([_.B(),_.r("design:type",Object)],Ic.prototype,"animatedText",void 0);_.T([_.B(),_.r("design:type",String)],Ic.prototype,"textNumberValue",void 0);_.T([_.B({computed:"computeTooltip(data, data.isToggled)"}),_.r("design:type",Object)],Ic.prototype,"tooltip",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ic.prototype,"resetAnimation",null);_.T([_.c("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ic.prototype,"computedButtonShape",null);_.T([_.c("data.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ic.prototype,"computedIcon",null);
_.T([_.b({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],Ic);xfp&&_.z(Ic,"ytd-toggle-button-renderer",Ufv,{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var mfp=_.U(function(M){function q(A){var v;return _.L(function(h){if(h.nextAddress==1)return(v=!xGY(A,y())||!y().enabled)?h.jumpTo(2):h.yield(rGs(),3);h.nextAddress!=2&&(v=h.yieldResult);if(v)return h.return();G();setTimeout(function(){p(!1)},1500);
_.gL(h)})}
function G(){setTimeout(function(){p(!0);var A;(A=K.lottieEl)==null||A.goToAndPlay(0)},150)}
var K=_.qo(),n=_.k(_.lQ(!1,void 0,"UfUosc")),E=n.next().value,p=n.next().value,y=_.bg(M.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.SK(function(){var A,v;((A=M.settings)==null?void 0:(v=A.call(M))==null?void 0:v.uniqueId)==="this is not intended behavior"&&_.j1(new _.bj("Smartimation Settings is undefined"))});
_.zL(function(){y().experimentEnabled&&(y().enabled?zjF(q):(p(!1),mGy(q)),_.m_(function(){mGy(q)}))},"IHhVmc");
_.zL(function(){y().timings.join("");y().experimentEnabled&&(SDy(y()),_.m_(function(){TOe(y())}))},"fsfhOe");
var Y=_.gY(function(){var A=K,v=y().uniqueId+"-border",h,t;var O="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((t=(h=_.AL().resolve(_.WR(_.Qx)))==null?void 0:h())!=null&&t?"dark":"light")+"_v2.json";return{animationRef:A,animationConfig:{name:v,autoplay:!1,loop:!1,path:O}}},void 0,"UWvUGe");
n={};return _.W("yt-smartimation",{class:_.Hb(M.className,"smartimation",(n["smartimation--experiment-enabled"]=function(){return y().experimentEnabled},n["smartimation--active-border"]=E,n["smartimation--enable-masking"]=jVF(),n))},_.W(_.d,{cond:function(){return y().experimentEnabled},
then:function(){return _.W("div",{class:"smartimation__border"},_.W(_.C3,{className:"smartimation__border-gradient",data:Y,animationName:function(){return Y().animationConfig.name}}))}}),_.W("div",{class:"smartimation__content"},M.children))},"ga");
mfp.idomCompat=!0;_.S5(mfp,"yt-smartimation",{props:{className:_.Hz,settings:_.Hz}});var DB=function(){var M=_.Q.apply(this,arguments)||this;M.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};M.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};M.shouldEnableSmartimation=!1;return M};
_.l(DB,_.Q);DB.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
DB.prototype.onDataChanged=function(){var M,q;this.shouldEnableSmartimation=(((M=this.data)==null?void 0:(q=M.timedAnimationData)==null?void 0:q.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
DB.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var M=_.C(this.data.likeButton,_.F7),q=_.C(this.data.dislikeButton,_.F7);return!!((M==null?0:M.isToggled)||(q==null?0:q.isToggled))};
DB.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]]"}}}}}};
_.Yd.Object.defineProperties(DB.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var M,q,G=((M=this.data)==null?void 0:(q=M.timedAnimationData)==null?void 0:q.animationTiming)||[];return{uniqueId:"like-dislike",timings:G,enabled:this.shouldEnableSmartimation,experimentEnabled:G.length>0}}}});
DB.prototype.onDataChanged=DB.prototype.onDataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],DB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],DB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],DB.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],DB.prototype,"likeButtonOverride",void 0);_.T([_.B(),_.r("design:type",Object)],DB.prototype,"dislikeButtonOverride",void 0);
_.T([_.c("shouldEnableSmartimation"),_.r("design:type",Object),_.r("design:paramtypes",[])],DB.prototype,"smartimationSettings",null);_.T([_.KT("data"),_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DB.prototype,"onDataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],DB);
_.z(DB,"ytd-segmented-like-dislike-button-renderer",function(){if(Zqp!==void 0)return Zqp;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Zqp=M},{mode:1});var Sd9;var TD8;(TD8=document.body)==null||TD8.setAttribute("rounded-container","");var ryI={};ryI.YtToggleButtonBehavior=[_.wg.YtActionHandlerBehavior,iA.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 M=this.data.isToggled;if(!this.isModal_(M)){if(!this.data.preventAutoToggle){this.toggle();var q={toggled:this.data.isToggled,actions:{}};q.actions[this.buttonIcon]=this.data.isToggled;_.jP(this.hostElement,"yt-toggle-button",q)}q=this.data.defaultServiceEndpoint||null;var G=this.data.toggledServiceEndpoint||null;if(q&&G||q&&this.data.preventAutoToggle)M=M?G:q,q=this.disableCommandHandlerOverride,_.w("killswitch_toggle_button_behavior_resolve_command")||q?_.fx(this.hostElement,
[M]):_.sE(M,this.hostElement),_.jP(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:M})}},
stateChanged_:function(){var M=this.data;if(M){var q=M.isToggled;this._setEndpoint(this.computeEndpoint_(M));this._setServiceEndpoint(this.computeServiceEndpoint_(M));this._setButtonIcon(this.computeButtonIcon_(M,q));this._setButtonText(this.computeButtonText_(M,q));this._setButtonAccessibility(this.computeAccessibility_(M,q));this._setButtonTooltip(this.computeTooltip_(M,q));this._setButtonClass(this.computeButtonClass_(M,q));this._setIconPositionType(this.computeIconPositionType_(M));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=q):this.elements_.button.setAttribute("aria-pressed",q));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=q)}},
shouldSetIconActiveState_:function(){return _.w("kevlar_system_icons")},
toggle:function(M){this.set("data.isToggled",M!==void 0?M:!this.data.isToggled);_.w("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(M){if(M){var q,G;return!!((q=this.data)==null?0:(G=q.toggledServiceEndpoint)==null?0:G.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(M){return M&&M.defaultNavigationEndpoint||null},
computeButtonIcon_:function(M,q){var G=M&&M.defaultIcon?_.H4(M.defaultIcon.iconType):null;M=M&&M.toggledIcon?_.H4(M.toggledIcon.iconType):G;return q?M:G},
handleUpdateToggleButtonStateCommand_:function(M){M=M.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==M.buttonId&&this.toggle(M.toggled)},
computeButtonText_:function(M,q){return M?q&&M.toggledText||M.defaultText||null:null},
computeAccessibility_:function(M,q){return M?(q?this.get("toggledAccessibilityData.accessibilityData",M):this.get("accessibilityData.accessibilityData",M))||M.accessibility||null:null},
computeTooltip_:function(M,q){return M?q&&M.toggledTooltip||M.defaultTooltip||null:null},
computeButtonClass_:function(M,q){if(!M)return"";var G="",K=M.toggledStyle||M.style;if(q=q?K:M.style){q.styleType&&(q=q.styleType);try{G+=q.toLowerCase().replace(/_/g,"-")+" "}catch(n){_.V2(n,q,typeof q),_.j1(n)}}if(M=M.size){M.sizeType&&(M=M.sizeType);try{G+=M.toLowerCase().replace(/_/g,"-")+" "}catch(n){_.V2(n,M,typeof M),_.j1(n)}}return G.trim()},
computeIconPositionType_:function(M){return M&&M.iconPosition||null},
computeServiceEndpoint_:function(M){var q=M&&M.serviceEndpoint,G=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return q?q:G&&M.command?M.command:null},
handleUpdateToggleButtonTextAction_:function(M){M=M.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==M.buttonId&&(this.set("data.defaultText",M.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",M.toggledText),this.notifyPath("data.toggledText"))}}];_.hC("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var ja8=_.w("web_button_rework")&&_.fX("BUTTON_REWORK")||_.w("web_button_rework_with_live"),u4=function(){var M=_.Q.apply(this,arguments)||this;M.systemIcons=_.w("kevlar_system_icons");M.roundedContainer=!0;return M};
_.l(u4,_.Q);u4.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
u4.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var M=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var q={toggled:!!this.data.isToggled,actions:{}};q.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var G,K;q.actions.playlistId=(G=this.data.defaultServiceEndpoint)==null?void 0:(K=G.playlistEditEndpoint)==null?void 0:K.playlistId;_.jP(this.hostElement,"yt-toggle-button",q)}(M=M?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(M)}};
u4.prototype.onYtNavigate=function(M){var q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);q&&(M.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(q))};
_.Yd.Object.defineProperties(u4,{template:{configurable:!0,enumerable:!0,get:function(){if(Sd9===void 0){var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);Sd9=M}M=Sd9;return M}}});
u4.prototype.onYtNavigate=u4.prototype.onYtNavigate;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],u4.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],u4.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],u4.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(ryI.YtToggleButtonBehavior),_.r("design:type",Object)],u4.prototype,"ytToggleButtonBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],u4.prototype,"data",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],u4.prototype,"showTooltips",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],u4.prototype,"systemIcons",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],u4.prototype,"roundedContainer",void 0);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],u4.prototype,"onYtNavigate",null);
_.T([_.b({is:"ytd-toggle-button-renderer",disableElementRegistration:ja8})],u4);var VYS,Rcd;_.Ja=new _.$k("PANEL_CONTROLLER_TOKEN");_.ZB=new _.$k("SHEET_CONTROLLER_TOKEN");_.b4=new _.$k("DIALOG_CONTROLLER_TOKEN");VYS=new _.$k("DIALOG_CONTAINER_TOKEN");Rcd=new _.$k("ENGAGEMENT_PANEL_ELEMENT_TOKEN");_.UW=new _.$k("PERSISTENT_PANEL_CONTROLLER_TOKEN");var MiD=_.Ge("DOWNLOAD",{},"Download"),qaw=_.Ge("DOWNLOADING",{},"Downloading"),GYF=_.Ge("DOWNLOADED",{},"Downloaded"),KuY=_.Ge("RETRY",{},"Retry");var fod=_.U(function(M){var q=poD,G=function(){return""},K=nYy(M.data),n=EYF(M.data),E=NVF(M.data),p=kYY(M.data);
q=function(){var y=M.data(),Y=$GF(y,K(),n(),E(),p()),A=!!y.videoId,v=Y.text;return{title:A?v:void 0,tooltip:A?void 0:v,accessibilityText:v,onTap:Y.onTap,iconName:Y.iconType,style:y.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:Y.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:y.buttonSize}};
G={};G=_.Hb("ytDownloadButtonViewModelHost",(G.ytDownloadButtonViewModelIsHidden=function(){var y=M.data(),Y=p();return y.playlistId||Y()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||Y()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},G));
return _.W("download-button-view-model",{class:G},_.W(_.Wf,{data:q}))},"ha");
fod.idomCompat=!0;var tiy=new _.$k("SUBMIT_API_SERVICE_TOKEN");var dmi,vYY,OdF={submitAction:"SUBMIT_ACTION_SUBMISSION",allFields:!0};var Zd$=new _.$k("RENDERER_LOGGER_TOKEN");var INy=new _.$k("RENDERER_STAMPER_OPTIONS_TOKEN");var Cpu;_.pL=new p3f;Cpu=new Map;var Dmy="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel gridShelfViewModel".split(" "),JOe=["notificationTextRenderer","notificationMultiActionRenderer"],
uoy="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),QPy=aNy(function(M){return _.TL(M==null?void 0:M.targetId)}).useUpdatableData;var BVw=0;_.yu.debugName="EjJbCe";var F0f=_.U(function(M){var q=M.data;M=M.className;_.mT(function(){q().formId||_.T6(Error("Ch"))});
var G=_.AOu(function(){return q().formId},function(){return q().beforeSubmitCommand},function(){return q().afterSubmitCommand}),K=G.submitForm,n=G.isValid,E=G.isSubmitting,p=function(){return{state:q().isDisabled||!n()||E()?"disabled":"active"}};
return _.W("yt-submit-button-view-model",{class:_.Hb("ytSubmitButtonViewModelHost",M)},_.W(_.yu,{data:function(){return q().button}},{buttonViewModel:function(y){return _.W(_.Wf,{data:y.data,
buttonOverrides:p,onClick:K})}}))},"ka");var ecB=_.U(function(M){var q=M.backgroundLottieRef;var G=M.foregroundLottieRef;var K=M.children;var n=M.wrapperClass;var E=M.disableAnimation;M=function(){return(_.w("web_animated_actions")||_.w("web_animated_actions_v2"))&&!(E==null?0:E())};
return _.W("yt-animated-action",{class:_.Hb("ytAnimatedActionHost",n)},_.W("div",{class:"ytAnimatedActionContentWithBackground"},_.W(_.d,{cond:M,then:function(){return _.W(Hq2,{wrapperClass:"ytAnimatedActionBackgroundContainer",lottieClass:"ytAnimatedActionBackground",lottiePlayerProps:function(){return{animationRef:q==null?void 0:q(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(bdY()?"dark":"light")+"_v5.json"}}}})}}),K),_.W(_.d,{cond:M,
then:function(){return _.W(Hq2,{lottiePlayerProps:function(){return{animationRef:G==null?void 0:G(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(bdY()?"dark":"light")+"_v4.json"}}}})}}))},"la");
ecB.idomCompat=!0;var Hq2=_.U(function(M){var q=M.wrapperClass;var G=M.lottieClass;var K=M.lottiePlayerProps;return _.W("div",{class:_.Hb("ytAnimatedActionLottie",q),"aria-hidden":"true"},_.W(_.C3,{className:G,data:K,animationName:function(){return K().animationConfig.name}}))},"ma");var UmH={isOpen:!1};var zRs={isAllowed:!1};var Sau={errorMessage:"",title:"",privacy:"",isDisabled:!0};var rOi={isOpen:!1};var ViF={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var $fd={response:void 0};var fNs=function(M,q){M=M===void 0?$fd:M;switch(q.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},M,{response:q.payload});default:return M}};var sb9={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var Fuu=function(M,q){M=M===void 0?sb9:M;switch(q.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},M,{nextDisabled:q.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},M,{nextCommand:q.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},M,{footerSubmissionData:q.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},M,{isImpersonationValid:q.payload});default:return M}};var Mt8={reportFormData:void 0,reportDetailsFormData:void 0};var HdH=function(M,q){M=M===void 0?Mt8:M;switch(q.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},M,{reportFormData:q.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},M,{reportDetailsFormData:q.payload});default:return M}};var qVv=void 0;_.w("mweb_enable_redux_store_on_demand")||(qVv=new xz(eRy()));var x8=_.w("enable_web_delhi_icons");var GTp=_.U(function(M){M=_.UT(M,{themeOverride:void 0,animationRef:{}});var q=M.animatedIconType,G=M.active,K=M.themeOverride,n=M.animationRef;M=M.staticIconFn;var E=_.k(_.lQ(void 0,void 0,"l48agc")),p=E.next().value,y=E.next().value,Y=function(){a:{var D=q();var J=K==null?void 0:K();var Z;J=(J==null?void 0:J.useDarkTheme)||((Z=_.AL().resolve(_.WR(_.Qx)))==null?void 0:Z());switch(D){case "LIKE":qVv||(qVv=new xz(eRy()));D=(D=oGe(qVv.getState()))&&D.animationLightUrl&&D.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:J?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:J?D.animationDarkUrl:D.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(D){J=D;break a}J="animated_like_icon_"+(J?"dark":"light")+"_"+(x8?"v5":"v4");J={lottiePlayerProps:{animationConfig:{name:J,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+J+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"+
(x8?" animated-like-icon-delhi":"")}}},totalFrames:x8?120:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":J={lottiePlayerProps:{animationConfig:{name:J?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(J?"dark":"light")+(x8?"_v4":"")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"+(x8?" animated-subscribe-icon-delhi":"")}}},totalFrames:x8?120:79,lazyLoad:!1};break a}J=
void 0}return J},A=function(){var D,J;
return(J=(D=Y())==null?void 0:D.lottiePlayerProps.animationConfig.name)!=null?J:""},v=function(){if(Y()){var D=Y().lottiePlayerProps.animationConfig.path;
return AC.get(D)||p()}};
E=_.k(_.lQ(!1,void 0,"sDrGId"));var h=E.next().value;E=E.next().value;var t=sa4(E),O=function(){var D=Y(),J,Z,V;return(V=D==null?void 0:(J=D.lottiePlayerProps.animationConfig)==null?void 0:(Z=J.rendererSettings)==null?void 0:Z.className)!=null?V:""},a=void 0,g=void 0;
_.zL(function(){var D=Y(),J=A(),Z=v(),V=h(),S=G();if(D&&(g!==J&&(g=J,a=S,J=n(),t.animationConfig=D.lottiePlayerProps.animationConfig,t.animationRef=J,Z&&(t.animationConfig.animationData=Z,t.animationConfig.path=void 0),J=D.lottiePlayerProps.animationConfig.path,!AC.get(J)&&D.lazyLoad&&J&&$mF(J,y)),!(V||D.lazyLoad&&!Z))){if(Z=!n().lottieEl)S?(V=D.totalFrames,t.animationConfig.initialSegment=[V-1,V]):t.animationConfig.initialSegment=void 0;if(a!==S&&!Z)if(Z=n(),S){var m;(m=Z.lottieEl)==null||m.playSegments([0,
D.totalFrames],!0)}else{var R;(R=Z.lottieEl)==null||R.playSegments([0,1],!0)}a=S}},"RQVZ1d");
return _.W("animated-icon",{class:"ytAnimatedIconHost"},_.W(_.d,{cond:function(){var D,J;return!((D=Y())==null||!D.lottiePlayerProps.animationConfig.path||((J=Y())==null?0:J.lazyLoad)&&!v()||h())},
then:function(){return _.W(_.C3,{data:t,animationName:A,className:O,animationRef:n})},
else:M}))},"oa");_.zR=_.U(function(M){var q=_.pI("yt-subscribe-button-view-model"),G=_.pI("div"),K=_.pI("div"),n=_.qo(),E=_.qo(),p=_.qo(),y=_.No(K0$,function(){return M.data().stateEntityStoreKey}),Y=_.No(nXy,function(){var EM,LP;
return(LP=(EM=M.data().notificationStateEntityStoreKeys)==null?void 0:EM.subsNotificationStateKey)!=null?LP:""}),A=function(){return!M.data().enableSubscribeButtonPostClickAnimation},v=_.k(_.lQ(0,void 0,"YtsSKb")),h=v.next().value,t=v.next().value;
v=_.k(_.lQ(0,void 0,"V6JxRe"));var O=v.next().value,a=v.next().value;v=_.k(_.lQ(!1,void 0,"JUCSZ"));var g=v.next().value,D=v.next().value;v=_.k(_.lQ(!1,void 0,"oV6jwf"));var J=v.next().value,Z=v.next().value;v=_.k(_.lQ(!1,void 0,"hK1Whe"));var V=v.next().value,S=v.next().value,m;v=_.k(_.lQ(!1,void 0,"Asaolf"));var R=v.next().value,se=v.next().value,yY=function(){Z(!0);_.WO(_.r8,function(){Z(!1)},1500)};
_.zL(function(){var EM=J();_.oY(function(){EM&&!A()&&y()&&OqH(n,E,p)})},"Qq6Hsf");
_.zL(function(){var EM=y();_.oY(function(){if(!A()&&EM){var LP;((LP=M.animateWidth)==null?0:LP.call(M))&&tY4(q.value,!!EM.subscribed,h(),O());var Pv,g9;((Pv=m)==null?0:Pv.subscribed)||!EM.subscribed||EM.key!==((g9=m)==null?void 0:g9.key)||yY();m=EM}})},"hog8te");
v=_.gY(function(){var EM,LP,Pv,g9=M.data(),a8=!((EM=y())==null||!EM.subscribed);EM=!((LP=M.isOverlay)==null||!LP.call(M));LP=g()?q:void 0;var tE=(Pv=Y())==null?void 0:Pv.state;Pv=R();hcF(g9,tE);return GPu({model:g9,subscribed:a8,isOverlay:EM,element:LP,notificationState:tE,disableTextEllipsis:!0,focused:Pv})},void 0,"hc1PRd");
var d$=function(){var EM;if(!A()&&((EM=M.animateWidth)==null?0:EM.call(M))&&(G==null?0:G.value)&&(K==null?0:K.value)&&!V()){EM=y();var LP=_.k((EM==null?0:EM.subscribed)?[G,K]:[K,G]),Pv=LP.next().value;LP=LP.next().value;Pv=Math.ceil(Pv.value.getBoundingClientRect().width);LP=Math.ceil(LP.value.getBoundingClientRect().width);t(Pv);a(LP);tY4(q.value,!(EM==null||!EM.subscribed),Pv,LP);S(!0)}},cy=_.sq(function(EM){d$();
var LP=y();LP&&(EM.detail.endpoint.subscribeEndpoint||EM.detail.endpoint.unsubscribeEndpoint)&&W0F(q.value,!LP.subscribed,LP)}),t4=function(){var EM=_.AL().resolve(_.WR(_.Nt));
EM&&se(EM.isKeyBoardInUse())},ay=function(){se(!1)};
_.kI("yt-player-subscribe",function(EM){var LP=y();LP&&EM===M.data().channelId&&W0F(q.value,!0,LP)});
_.kI("yt-player-unsubscribe",function(EM){var LP=y();LP&&EM===M.data().channelId&&W0F(q.value,!1,LP)});
_.kI("yt-update-subscribe-button-action",function(EM){EM=_.C(EM,RpJ);var LP=y();LP&&EM&&EM.channelId===M.data().channelId&&W0F(q.value,!!EM.subscribed,LP)});
_.SK(function(){q.value&&(q.value.addEventListener("focusin",t4),q.value.addEventListener("focusout",ay));var EM=_.Jp(_.r8,function(){d$()});
D(!0);_.m_(function(){_.r8.cancelJob(EM);q.value&&(q.value.removeEventListener("focusin",t4),q.value.removeEventListener("focusout",ay))})});
var bH=function(){var EM,LP,Pv;if(Pv=!((EM=y())==null||!EM.subscribed))EM=!!M.data().disableNotificationBell,Pv=(LP=Y())==null?void 0:LP.state,Pv=!EM&&!!Pv;return Pv},iH=function(){var EM;
return!((EM=y())==null?0:EM.subscribed)},oI=function(){var EM,LP;
if(LP=iH()){LP=!!M.data().disableNotificationBell;var Pv=(EM=Y())==null?void 0:EM.state;LP=!LP&&!!Pv}return LP},r9={},X2={};
return _.W("yt-subscribe-button-view-model",{class:_.Hb(M.className,"ytSubscribeButtonViewModelHost",(r9.ytSubscribeButtonViewModelHostCanAnimateWidth=function(){var EM,LP;return!((EM=y())==null||!EM.subscribed)&&((LP=M.animateWidth)==null?void 0:LP.call(M))&&J()},r9.ytSubscribeButtonViewModelHostHidden=function(){var EM;
return!((EM=y())==null?0:EM.subscribed)&&M.data().hideWhenUnsubscribed},r9)),
el:q,"on:yt-service-request-sent":cy},_.W(ecB,{backgroundLottieRef:n,foregroundLottieRef:E,wrapperClass:_.Hb("ytSubscribeButtonViewModelAnimatedActionWrapper",(X2.ytSubscribeButtonViewModelAnimatedActionWrapperIsAnimating=function(){var EM;return((EM=M.animateWidth)==null?void 0:EM.call(M))&&J()},X2.ytSubscribeButtonViewModelStaticWidth=function(){var EM;
return!((EM=M.animateWidth)==null?0:EM.call(M))},X2)),
disableAnimation:A},_.W("div",{el:G,class:"ytSubscribeButtonViewModelContainer"},_.W(_.Yv,{data:v,icon:function(){return _.W(_.d,{cond:bH,then:function(){var EM=function(){var LP;return Yde((LP=Y())==null?void 0:LP.state)};
return _.W(_.d,{cond:function(){return A()||EM()!=="NOTIFICATIONS_NONE"},
then:function(){return _.W(_.np,{icon:EM})},
else:function(){return _.W(GTp,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:p})}})}})},
secondaryIconName:function(){return bH()?"EXPAND":void 0}}))),_.W("div",{el:K,
class:"ytSubscribeButtonViewModelInvisible"},_.W(_.d,{cond:function(){var EM;return((EM=M.animateWidth)==null?void 0:EM.call(M))&&!A()&&!V()},
then:function(){return _.W(_.Yv,{data:_.gY(function(){var EM;return GPu({model:M.data(),subscribed:iH(),isOverlay:!((EM=M.isOverlay)==null||!EM.call(M)),element:q,disableTextEllipsis:!0})},void 0,"L4sKmd"),
iconName:function(){var EM;return oI()?Yde((EM=Y())==null?void 0:EM.state):void 0},
secondaryIconName:function(){return oI()?"EXPAND":void 0}})}})))},"ra");
_.zR.idomCompat=!0;var KWJ=_.U(function(M){var q=M.data;var G=_.No(K0$,function(){return q().subscriptionStateEntityKey});
return _.W(_.d,{cond:function(){var K=q(),n=G();return!K.hideWhenUnsubscribed||(n==null?0:n.subscribed)?_.C(q().button,_.$N):void 0},
then:function(K){return _.W("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.W(_.Wf,{data:K,buttonOverrides:function(){return{toggled:!0}}}))}})},"sa");
KWJ.idomCompat=!0;var n3$,m$;n3$=_.U(function(M){return _.W(_.yu,{data:function(){return M.actionRow().actions}},{buttonViewModel:function(q){var G=q.data;
return _.W(m$,{isRow:M.isRow,isIconOnlyButton:function(){return w6j(G())},
useIntrinsicWidth:M.useIntrinsicWidth},_.W(_.Wf,{data:G}))},
subscribeButtonViewModel:function(q){return _.W(m$,{isRow:M.isRow},_.W(_.zR,{data:q.data,isOverlay:!1,animateWidth:function(){return!M.isRow()}}))},
downloadButtonViewModel:function(q){var G=q.data;return _.W(m$,{isRow:M.isRow,isIconOnlyButton:function(){return!!G().playlistId}},_.W(fod,{data:G}))},
submitButtonViewModel:function(q){var G=q.data;return _.W(m$,{isRow:M.isRow,isIconOnlyButton:function(){var K=G();return w6j(_.C(K==null?void 0:K.button,_.$N))}},_.W(F0f,{data:G}))},
toggleButtonViewModel:function(q){var G=q.data;return _.W(m$,{isRow:M.isRow,isIconOnlyButton:function(){var K=G();return w6j(_.C(K.isToggled?K.toggledButtonViewModel:K.defaultButtonViewModel,_.$N))}},_.W(_.Dj,{data:G}))},
subscribePlusButtonViewModel:function(q){return _.W(m$,{isRow:M.isRow},_.W(KWJ,{data:q.data}))}})},"ta");
m$=_.U(function(M){var q={};return _.W("div",{class:_.Hb("ytFlexibleActionsViewModelAction",(q.ytFlexibleActionsViewModelActionRowAction=M.isRow,q.ytFlexibleActionsViewModelActionIntrinsicWidth=M.useIntrinsicWidth,q.ytFlexibleActionsViewModelActionRowActionFeaturePhone=!1,q.ytFlexibleActionsViewModelActionIconOnlyButton=M.isIconOnlyButton,q))},M.children)},"ua");
_.Sj=_.U(function(M){var q=function(){var K;return((K=M.layout)==null?void 0:K.call(M))===1},G={};
return _.W("yt-flexible-actions-view-model",{class:_.Hb("ytFlexibleActionsViewModelHost",M.className,(G.ytFlexibleActionsViewModelInline=function(){return!q()},G.ytFlexibleActionsViewModelScrollable=function(){return M.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},G))},_.W(_.bf,{each:function(){return M.data().actionsRows||[]}},function(K){return _.W(_.d,{cond:q,
then:function(){return _.W("div",{class:"ytFlexibleActionsViewModelActionRow"},_.W(n3$,{actionRow:K,isRow:q,useIntrinsicWidth:function(){return!!M.data().respectActionIntrinsicWidth}}))},
else:function(){return _.W(n3$,{actionRow:K,isRow:q})}})}))},"va");_.S5(_.Sj,"yt-flexible-actions-view-model",{props:{data:_.Hz,layout:_.Hz,justifyContentOverride:_.Hz,className:_.Hz}});_.TR=_.U(function(M){var q=_.No(l8,function(){var n;return(n=M.data().dislikeEntityKey)!=null?n:""}),G=_.gY(function(){var n=q();
return n?n.likeStatus==="DISLIKE":_.C(M.data().toggleButtonViewModel,_.M1).isToggled},void 0,"fNr9he"),K=_.gY(function(){return Object.assign({},_.C(M.data().toggleButtonViewModel,_.M1),{isToggled:G()})},void 0,"AezoCc");
return _.W("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.W(_.Dj,{data:K,buttonShapeOverrides:M.buttonShapeOverrideables,onToggle:function(n){var E=q();E&&n!==(E.likeStatus==="DISLIKE")&&E.key&&_.Zp(_.hY("likeStatusEntity",E.key,{likeStatus:n?"DISLIKE":"INDIFFERENT",hadUserInteraction:n}))}}))},"wa");
_.TR.idomCompat=!0;_.rn=_.U(function(M){var q=_.w("web_supports_animations_api"),G=UE(function(t){var O=A();if(!t){var a,g;return{numberText:(g=O==null?void 0:(a=O.likeCountIfIndifferent)==null?void 0:a.content)!=null?g:"",numberValue:Number(O==null?void 0:O.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1}}var D;a=(O==null?void 0:(D=O.likeCountIfIndifferent)==null?void 0:D.content)!==t.numberText;if(y()||!a)return t;var J;return{numberText:(O==null?void 0:(J=O.likeCountIfIndifferent)==null?void 0:J.content)||
"",numberValue:Number(O==null?void 0:O.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!!O}}),K=UE(function(t){var O=A();
if(!t){var a,g;return{numberText:(g=O==null?void 0:(a=O.likeCountIfLiked)==null?void 0:a.content)!=null?g:"",numberValue:Number(O==null?void 0:O.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}}var D;a=(O==null?void 0:(D=O.likeCountIfIndifferent)==null?void 0:D.content)!==t.numberText;if(y()||!a)return t;var J;return{numberText:(O==null?void 0:(J=O.likeCountIfLiked)==null?void 0:J.content)||"",numberValue:Number(O==null?void 0:O.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!!O}}),n=_.k(_.lQ(void 0,
void 0,"xldjge")),E=n.next().value,p=n.next().value,y=E,Y=_.No(l8,function(){var t,O;
return(O=(t=M.data())==null?void 0:t.likeStatusEntityKey)!=null?O:""}),A=_.No(NSu,function(){var t,O;
return((t=M.likeCountEntity)==null?void 0:(O=t.call(M))==null?void 0:O.key)||""}),v=_.gY(function(){var t;
return((t=Y())==null?void 0:t.likeStatus)==="LIKE"},void 0,"B3od5e"),h=function(){var t;
return q&&!((t=M.likeCountEntity)==null||!t.call(M))};
return _.W("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.W(_.Dj,{data:function(){var t=Object,O=t.assign,a;var g=_.C((a=M.data())==null?void 0:a.toggleButtonViewModel,_.M1);return O.call(t,{},g||{},{isToggled:v()})},
buttonShapeOverrides:M.buttonShapeOverrideables,animatedTextPropsDefault:function(){return h()?G():void 0},
animatedTextPropsToggled:function(){return h()?K():void 0},
onToggle:function(t){CXi(t,Y(),y(),p)},
style:function(){var t;return((t=M.disableIconAnimation)==null?0:t.call(M))?void 0:{animateIcon:"true"}}}))},"xa");
_.rn.idomCompat=!0;var E3P=_.U(function(M){var q=function(){return _.C(M.data().likeButtonViewModel,_.SN)},G=function(){var n;
return((n=q())==null?void 0:n.likeStatusEntityKey)||""},K=_.gY(function(){var n,E;
var p=(E=_.No(l8,G)())!=null?E:(n=q())==null?void 0:n.likeStatusEntity;n=M.data();var y;n=(n==null?void 0:(y=n.timedAnimationData)==null?void 0:y.animationTiming)||[];return{uniqueId:"like-dislike",timings:n,enabled:(p==null?void 0:p.likeStatus)==="INDIFFERENT"&&n.length>0,experimentEnabled:n.length>0}},void 0,"zZ3GQb");
return _.W("segmented-like-dislike-button-view-model",{class:_.Hb("ytSegmentedLikeDislikeButtonViewModelHost",M.className),"button-renderer":!0},_.W(mfp,{settings:K},_.W("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.W(_.d,{cond:q,then:function(n){return _.W(_.rn,{data:n,likeCountEntity:function(){return M.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start",onClickRateLimitMs:_.w("web_enable_like_button_click_debouncing")?500:void 0}})}}),_.W(_.d,{cond:function(){return _.C(M.data().dislikeButtonViewModel,_.mz)},
then:function(n){return _.W(_.TR,{data:n,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"ya");
E3P.idomCompat=!0;_.S5(E3P,"segmented-like-dislike-button-view-model",{props:{data:_.Hz,className:_.Hz}});var NHI=_.U(function(M){var q=M.data;var G=M.className;var K=M.setMinWidth;var n=M.forceIconOnly;var E=_.pI("account-link-button-view-model"),p=_.No(_.aow,function(){var t;return(t=q().accountLinkStatusEntityKey)!=null?t:""}),y=_.No(_.aow,function(){var t;
return(t=q().accountLinkStatusSecondaryEntityKey)!=null?t:""}),Y=function(){if(!_.w("web_account_link_secondary_killswitch")){var t,O;
return((t=p())==null?void 0:t.linked)||((O=y())==null?void 0:O.linked)}var a;return(a=p())==null?void 0:a.linked};
_.zL(function(){var t=p();if(t){var O=CuM(new wgf,t6I(new hXM,!!t.linked));_.s0().then(function(a){a&&(a.setAccountLinkState(_.ZU(O.JSC$12320_serializeBinary(),4)),a.updateAccountLinkingConfig(!!t.linked))})}},"IvZF7");
var A=function(){return _.C(q().toggleButtonViewModel,_.M1)};
_.kI("yt-signal-action-show-account-link-dialog",function(){if(A()){var t=Y()?A().toggledButtonViewModel:A().defaultButtonViewModel;t=_.C(t,_.$N);var O;if((O=p())==null?0:O.isWarning){O=_.C(q().warningButtonViewModel,_.$N);if(!O){_.Mz(Error("Dh"));return}t=O}var a;(O=_.aM((a=t)==null?void 0:a.onTap))&&_.$D([O],E.value)}else _.Mz(Error("Eh"))});
var v=function(){var t=A();return Object.assign({},t,{isToggled:Y()})},h=function(){return(n==null?0:n())?{iconPosition:"icon-only"}:{}};
return _.W("account-link-button-view-model",{class:_.Hb("ytwAccountLinkButtonViewModelHost",G,function(){return(K==null?0:K())?"ytwAccountLinkButtonViewModelHostMinWidth":""}),
el:E,"button-renderer":!0},_.W("div",null,_.W(_.d,{cond:function(){var t;if((t=p())==null?0:t.isWarning)return(t=_.C(q().warningButtonViewModel,_.$N))||_.Mz(Error("Dh")),t},
then:function(t){return _.W(_.Wf,{data:t,buttonOverrides:h})},
else:function(){return _.W(_.Dj,{data:v,buttonShapeOverrides:h})}})))},"Aa");_.S5(NHI,"account-link-button-view-model",{props:{data:_.Hz,className:_.xj,setMinWidth:_.xj,forceIconOnly:_.xj}});_.hC("menuRenderer","menuRenderer","ytd-menu-renderer");
var kTl={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"}},
piv=_.w("web_fix_missing_action_buttons")?100:200,jj=function(){var M=_.Q.apply(this,arguments)||this;M.safeArea=!_.w("kevlar_flex_menu_safe_area_killswitch");M.tonalOverride=!1;M.threeDotSize="M";M.isOverlay=!1;M.useOverlayDark=!1;M.topLevelIconsOnly=!1;M.JSC$14760_lastWidth=0;M.maybeUpdateFlexibleMenu=function(){_.w("web_fix_missing_action_buttons")?requestAnimationFrame(M.maybeUpdateFlexibleMenuImpl):M.maybeUpdateFlexibleMenuImpl()};
M.maybeUpdateFlexibleMenuImpl=function(){var q;if((q=M.data)!=null&&q.flexibleItems){M.maybeFlushDebouncer();q=M.hostElement.clientWidth;var G=q>M.JSC$14760_lastWidth,K,n=((K=M.topLevelButtonsContainer)==null?void 0:K.scrollHeight)||0,E;K=((E=M.flexibleItemButtonsContainer)==null?void 0:E.scrollHeight)||0;E=M.hostElement.scrollHeight>Math.max(n,K)+8;G?(M.resetFlexibleItems(),M.JSC$14760_lastWidth=M.hostElement.clientWidth,M.maybeUpdateFlexibleMenu()):E&&(M.shrinkFlexibleMenu(),M.JSC$14760_lastWidth=
q)}};
M.computeThreeDotButtonShape=function(){if(M.tonalOverride)return Object.assign({},{onTap:function(){M.onOverflowTap()},
iconPosition:"icon-only",style:M.isOverlay?M.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:M.threeDotSize,state:"active",accessibilityLabel:M.computeAccessibilityLabel(M.data)},M.threeDotButtonOverride)};
M.onOverflowTap=function(){if(M.data.fetchMenuCommand)_.AL().resolve(_.vR).resolveCommand(M.data.fetchMenuCommand,{form:{element:M.hostElement}});else if(M.data.isDisabled&&M.data.disabledCommand)_.sE(M.data.disabledCommand,M.hostElement);else{var q=M.createMenuRendererVe(),G={items:M.items};M.data.menuPopupAccessibility&&(G.menuPopupAccessibility=M.data.menuPopupAccessibility);M.data.footer&&(G.footer=M.data.footer);q={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:G},veData:q}};
_.AL().resolve(_.ZB).openSheet({openPopupActionCommand:q},M.hostElement)}};
return M};
_.l(jj,_.Q);_.N=jj.prototype;_.N.updateButtonOverrides=function(){if(!_.w("menu_renderer_label_update_upkillswitch")){var M=_.f_(this.hostElement).querySelector("yt-button-view-model");M&&(M.buttonOverrides=this.buttonOverrides)}};
_.N.computeHasItems=function(){var M;return((M=this.topLevelButtonData)==null?void 0:M.length)||this.hasFlexibleItems};
_.N.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.N.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.sT(this.hostElement,{"--ytd-menu-renderer-button-color":_.w2(this.data.iconColor)}))};
_.N.onStamperFinished=function(){this.JSC$14760_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.N.setupFlexibleMenu=function(){var M=this,q;(q=this.data)!=null&&q.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.qA(this.maybeUpdateFlexibleMenu,piv,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){M.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))};
_.N.maybeFlushDebouncer=function(){if(_.w("web_replace_formatted_with_attributed_string")){var M;(M=this.topLevelButtons)==null||M.forEach(function(G){var K;(G=(K=G.getElementsByTagName("yt-attributed-string"))==null?void 0:K[0])&&XjH(G)});
var q;(q=this.flexibleItemButtons)==null||q.forEach(function(G){var K;(G=(K=G.getElementsByTagName("yt-attributed-string"))==null?void 0:K[0])&&XjH(G)})}};
_.N.resetFlexibleItems=function(){var M;if((M=this.data)!=null&&M.flexibleItems){_.w("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var q;this.flexAsTopLevelButtons=(q=this.data.flexibleItems)==null?void 0:q.map(function(G){return _.C(G,_.$tf).topLevelButton});
_.w("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.N.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.N.shrinkFlexibleMenu=function(){var M;(M=this.flexAsTopLevelButtons)!=null&&M.length&&(this.flexAsTopLevelButtons=[].concat(_.Ui(this.flexAsTopLevelButtons.slice(0,-1))))};
_.N.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:kTl,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:kTl,events:!0}}};
_.N.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.N.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.N.detached=function(){this.icon="MORE_VERT"};
_.N.computeTopLevelButtonData=function(M){if(!M)return[];var q;M=(q=M==null?void 0:M.topLevelButtons)!=null?q:[];return _.xP.unsafeClone([].concat(_.Ui(M)))};
_.N.computeItems=function(M,q){if(!M)return[];var G=[];if(q){var K=(M.flexibleItems||[]).map(function(p){return _.C(p,_.$tf)});
K=_.k(K);for(var n=K.next();!n.done;n=K.next())n=n.value,q.includes(n.topLevelButton)||(n=n.menuItem)&&G.push(n)}var E;M=(E=M==null?void 0:M.items)!=null?E:[];return[].concat(_.Ui(G),_.Ui(M))};
_.N.computeMenuActive=function(M,q){return M||q};
_.N.onPopupOpened=function(){this.overlayOpen=!0;_.jP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.N.onPopupClosed=function(){this.overlayOpen=!1;_.jP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.N.onPopupCanceled=function(){this.overlayOpen=!1;_.jP(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.N.computeAccessibilityLabel=function(M){return this.get("accessibility.accessibilityData.label",M)};
_.N.isHidden=function(M,q){return this.tonalOverride||!M?!0:M.fetchMenuCommand||M.isDisabled&&M.disabledCommand?!1:!(q==null?0:q.length)};
_.N.isModernOverflowHidden=function(M,q){return this.tonalOverride&&M?M.fetchMenuCommand?!1:!(q==null?0:q.length):!0};
_.N.createMenuRendererVe=function(){var M=this.data.trackingParams,q=_.Cx(),G=_.wt();return M&&q&&G?(M=_.yx(M),G=_.$m(7591),_.w("combine_ve_grafts")?_.oQ(_.nl(),G,M):_.QQ(q,M,G),G):null};
_.Yd.Object.defineProperties(jj.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.flexAsTopLevelButtons)==null||!M.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
jj.prototype.onPopupCanceled=jj.prototype.onPopupCanceled;jj.prototype.onPopupClosed=jj.prototype.onPopupClosed;jj.prototype.onPopupOpened=jj.prototype.onPopupOpened;jj.prototype.tonalOverrideChanged=jj.prototype.tonalOverrideChanged;jj.prototype.resetFlexibleItems=jj.prototype.resetFlexibleItems;jj.prototype.setupFlexibleMenu=jj.prototype.setupFlexibleMenu;jj.prototype.iconButtonColorChanged=jj.prototype.iconButtonColorChanged;jj.prototype.updateButtonOverrides=jj.prototype.updateButtonOverrides;
_.T([_.P(_.EO),_.r("design:type",Object)],jj.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],jj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("#button-shape"),_.r("design:type",HTMLElement)],jj.prototype,"buttonShape",void 0);_.T([_.ET("#button"),_.r("design:type",Object)],jj.prototype,"button",void 0);
_.T([_.B(),_.r("design:type",Object)],jj.prototype,"data",void 0);_.T([_.B({computed:"computeTopLevelButtonData(data)"}),_.r("design:type",Array)],jj.prototype,"topLevelButtonData",void 0);_.T([_.B(),_.r("design:type",Array)],jj.prototype,"flexAsTopLevelButtons",void 0);_.T([_.B({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.r("design:type",Array)],jj.prototype,"items",void 0);_.T([_.B({value:"MORE_VERT"}),_.r("design:type",String)],jj.prototype,"icon",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jj.prototype,"safeArea",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.r("design:type",Boolean)],jj.prototype,"menuActive",void 0);_.T([_.B(),_.r("design:type",Boolean)],jj.prototype,"menuFocused",void 0);_.T([_.B({value:"bottom"}),_.r("design:type",String)],jj.prototype,"buttonTooltipPosition",void 0);_.T([_.B(),_.r("design:type",Boolean)],jj.prototype,"overlayOpen",void 0);
_.T([_.B({value:!0}),_.r("design:type",Boolean)],jj.prototype,"forceIconButton",void 0);_.T([_.B(),_.r("design:type",Boolean)],jj.prototype,"styleActionButton",void 0);_.T([_.B(),_.r("design:type",Boolean)],jj.prototype,"disableTextTransformOnButtons",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jj.prototype,"tonalOverride",void 0);_.T([_.B(),_.r("design:type",Object)],jj.prototype,"threeDotSize",void 0);
_.T([_.B(),_.r("design:type",Object)],jj.prototype,"threeDotButtonOverride",void 0);_.T([_.B(),_.r("design:type",Object)],jj.prototype,"isOverlay",void 0);_.T([_.B(),_.r("design:type",Object)],jj.prototype,"useOverlayDark",void 0);_.T([_.B({computed:"computeButtonOverride(tonalOverride)"}),_.r("design:type",Object)],jj.prototype,"buttonOverride",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],jj.prototype,"hasCustomIconColor",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("flexAsTopLevelButtons"),_.r("design:type",Object),_.r("design:paramtypes",[])],jj.prototype,"hasFlexibleItems",null);_.T([_.B({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.r("design:type",Boolean)],jj.prototype,"hasItems",void 0);_.T([_.B(),_.r("design:type",Object)],jj.prototype,"topLevelIconsOnly",void 0);
_.T([_.KT("topLevelIconsOnly"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jj.prototype,"updateButtonOverrides",null);_.T([_.c("topLevelIconsOnly"),_.r("design:type",Object),_.r("design:paramtypes",[])],jj.prototype,"buttonOverrides",null);_.T([_.ET("#top-level-buttons-computed"),_.r("design:type",HTMLElement)],jj.prototype,"topLevelButtonsContainer",void 0);_.T([_.Ns(".top-level-buttons > *"),_.r("design:type",Array)],jj.prototype,"topLevelButtons",void 0);
_.T([_.ET("#flexible-item-buttons"),_.r("design:type",HTMLElement)],jj.prototype,"flexibleItemButtonsContainer",void 0);_.T([_.Ns("#flexible-item-buttons > *"),_.r("design:type",Array)],jj.prototype,"flexibleItemButtons",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jj.prototype,"iconButtonColorChanged",null);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jj.prototype,"setupFlexibleMenu",null);_.T([_.yO("topLevelIconsOnly"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jj.prototype,"resetFlexibleItems",null);_.T([_.KT("tonalOverride"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jj.prototype,"tonalOverrideChanged",null);
_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jj.prototype,"onPopupOpened",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jj.prototype,"onPopupClosed",null);_.T([_.GQ("yt-popup-canceled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jj.prototype,"onPopupCanceled",null);
_.z(jj,"ytd-menu-renderer",function(){if(iqP===void 0){var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-level-buttons-computed" class="top-level-buttons style-scope ytd-menu-renderer"></div><div id="flexible-item-buttons" hidden="[[!flexAsTopLevelButtons]]" class="style-scope ytd-menu-renderer"></div><yt-icon-button id="button" class="dropdown-trigger style-scope ytd-menu-renderer" hidden="[[isHidden(data, items)]]" label="[[computeAccessibilityLabel(data)]]" style-target="button" on-click="onOverflowTap"><yt-icon icon="[[icon]]" class="style-scope ytd-menu-renderer"></yt-icon></yt-icon-button><yt-button-shape id="button-shape" data="[[computeThreeDotButtonShape(data, isOverlay, threeDotButtonOverride)]]" disable-upgrade$="[[!tonalOverride]]" hidden$="[[isModernOverflowHidden(data, items, tonalOverride)]]" icon-name="[[icon]]" class="style-scope ytd-menu-renderer"></yt-button-shape>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);iqP=M}M=iqP;return M},{mode:2});var yNJ;var LW$;_.VT=_.U(function(M){var q=M.data;var G=function(){if(q().icon)a:{var n={iconName:q().icon};for(var E=_.AL().resolve(_.eo),p=_.k([12,24]),y=p.next();!y.done;y=p.next()){var Y=y.value;y=Object.assign({},n,{iconStyle:"youtube_fill",iconSize:Y});Y=Object.assign({},n,{iconStyle:"youtube_outline",iconSize:Y});if(E.resolveIcon(y)){n=y;break a}if(E.resolveIcon(Y)){n=Y;break a}}n=void 0}else n=void 0;return n};
M={};var K={};return _.W("badge-shape",{class:_.Hb("yt-badge-shape",function(){return cyy(q().type)},(M["yt-badge-shape--overlay"]=function(){return q().isOverlay},M["yt-badge-shape--ads-include-dot"]=function(){return q().adsIncludeDot},M["yt-badge-shape--thumbnail-badge"]=function(){a:switch(q().type){case 17:case 18:case 19:var n=!0;
break a;default:n=!1}return n},M["yt-badge-shape--status-badge"]=function(){a:switch(q().type){case 12:case 13:case 14:case 15:case 16:var n=!0;
break a;default:n=!1}return n},M["yt-badge-shape--no-text"]=function(){return!q().text},M["yt-badge-shape--modern"]=function(){return q().modern||_.w("web_modern_badge_shape")},M)),
style:_.Kp({"background-color":function(){var n;return(n=q().customColors)==null?void 0:n.backgroundColor}}),
role:function(){return q().accessibilityText?"img":void 0},
"aria-label":function(){return q().accessibilityText}},_.W(_.d,{cond:function(){return q().animation},
then:function(n){return _.W(_.C3,{className:"yt-badge-shape__icon",data:n,animationName:function(){return n().animationConfig.name||""}})}}),_.W(_.d,{cond:function(){var n;
return G()&&!((n=q())==null?0:n.animation)},
then:function(){return _.W("div",{class:"yt-badge-shape__icon"},_.W(S$i,{data:function(){return G()}}))}}),_.W("div",{class:_.Hb("yt-badge-shape__text",(K["yt-badge-shape__text--has-multiple-badges-in-row"]=function(){return(q().numBadgesInRow||0)>1},K))},function(){var n;
return(n=q())==null?void 0:n.text}))},"Ba");
_.VT.idomCompat=!0;_.S5(_.VT,"badge-shape",{props:{data:_.Hz}});var Rc=function(){var M=_.Q.apply(this,arguments)||this;M.systemIcons=_.w("kevlar_system_icons");M.animated=_.w("animated_live_badge_icon");M.useBadgeShape=_.w("web_badge_shape_defrag");return M};
_.l(Rc,_.Q);_.N=Rc.prototype;_.N.addTooltips=function(){for(var M=_.f_(this.hostElement).querySelectorAll(".badge"),q=0,G;G=M[q++];){var K=this.repeatElement.itemForElement(G);G=_.f_(G);G.lastChild&&G.lastChild.is==="tp-yt-paper-tooltip"&&G.removeChild(G.lastChild);if(K=K.metadataBadgeRenderer&&K.metadataBadgeRenderer.tooltip){var n=_.Gz("tp-yt-paper-tooltip");(0,_.$U)(n).textContent=K;n.setAttribute("position","top");n.setAttribute("aria-hidden","true");G.appendChild(n)}}};
_.N.badgesChanged=function(){var M=this;_.M5().parkOrScheduleJob(function(){M.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.N.standaloneRoundedBadgeChanged=function(){var M=this.useRoundedBadge?this.useRoundedBadge:void 0;M&&(this.useRoundedBadge=M)};
_.N.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.N.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.N.computeStyle=function(M){_.w("enable_html5_teal_ad_badge")&&M==="BADGE_STYLE_TYPE_AD"&&(M="badge-style-type-ad-alternate");_.w("kevlar_ytb_live_badges")&&M==="BADGE_STYLE_TYPE_LIVE_NOW"&&(M="badge-style-type-live-now-alternate");return M?M.toLowerCase().replace(/_/g,"-"):""};
_.N.computeRole=function(M){return this.computeAriaLabel(M)?"img":"status"};
_.N.computeAriaLabel=function(M){var q;return(M==null?void 0:(q=M.accessibilityData)==null?void 0:q.label)||(M==null?void 0:M.label)};
_.N.computeBadgeShape=function(M){if(M){var q,G;var K=PXe(M.style);var n=iqj(M.style),E=M.label,p=((q=M.accessibilityData)==null?void 0:q.label)||M.label;a:switch(M.style){case "BADGE_STYLE_TYPE_SHORTS_PLAYER":case "BADGE_STYLE_TYPE_BLACK":case "BADGE_STYLE_TYPE_OVERLAY":q=!0;break a;default:q=!1}var y=(G=M.icon)==null?void 0:G.iconType;a:switch(M.style){case "BADGE_STYLE_TYPE_AD":case "BADGE_STYLE_TYPE_AD_STARK":M=!0;break a;default:M=!1}K={type:K,brNzRatingBadgeType:n,text:E,accessibilityText:p,
isOverlay:q,icon:y!=="PREMIUM"?y:void 0,modern:_.w("web_modern_badge_view_model"),numBadgesInRow:this.numBadgesInRow,adsIncludeDot:M}}else K={};return K};
_.N.updateComputedBadges=function(M,q,G){var K=this;(q=q?[q]:G?[G]:void 0)?this.computedBadges=q:this.computedBadges=M==null?void 0:M.filter(function(n){var E;if((E=n.metadataBadgeRenderer)==null?0:E.groups){E=!1;n=_.k(n.metadataBadgeRenderer.groups);for(var p=n.next();!p.done;p=n.next()){p=p.value;var y=void 0;E=E||((y=K.hiddenBadgeGroups)==null?void 0:y.includes(p))}return!E}return!0})};
_.N.useFilledIcons=function(M){return _.w("kevlar_system_icons")&&(M==="AUDIO_BADGE"||M==="CHECK_CIRCLE_THICK"||M==="OFFICIAL_ARTIST_BADGE"||M==="SPONSORSHIP_STAR"||M==="PERSON_RADAR_FILLED"||M==="PERSON_RADAR")};
_.N.computeBadgeShapeStyle=function(M){return this.useBadgeShape?M==="BADGE_STYLE_TYPE_VERIFIED_ARTIST"||M==="BADGE_STYLE_TYPE_VERIFIED"?"badge-shape-style-type-verified-artist":M==="BADGE_STYLE_TYPE_SIMPLE_STRIKETHROUGH"?"badge-shape-style-type-strikethrough":"":""};
_.N.computeIcon=function(M){var q,G;M=M==null?void 0:(q=M.metadataBadgeRenderer)==null?void 0:(G=q.icon)==null?void 0:G.iconType;if(M!=="PREMIUM"&&M)return _.H4(M)};
_.N.computeStandaloneBadge=function(M){var q;M=M==null?void 0:(q=M.icon)==null?void 0:q.iconType;return M==="PREMIUM_STANDALONE"||M==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
Rc.prototype.hiddenBadgeGroupsChanged=Rc.prototype.hiddenBadgeGroupsChanged;Rc.prototype.standaloneBadgeChanged=Rc.prototype.standaloneBadgeChanged;Rc.prototype.standaloneRoundedBadgeChanged=Rc.prototype.standaloneRoundedBadgeChanged;Rc.prototype.badgesChanged=Rc.prototype.badgesChanged;_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"hidden",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Rc.prototype,"componentBehavior",void 0);
_.T([_.B(),_.r("design:type",Array)],Rc.prototype,"badges",void 0);_.T([_.B(),_.r("design:type",Object)],Rc.prototype,"topStandaloneBadge",void 0);_.T([_.B(),_.r("design:type",Object)],Rc.prototype,"bottomStandaloneBadge",void 0);_.T([_.B(),_.r("design:type",Object)],Rc.prototype,"computedBadges",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"mediumFontAdBadge",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"useRoundedBadge",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"largeFontAdBadge",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"overlayAd",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"overlayPremium",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"noDotAdBadge",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"collectionTruncate",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"isThumbnailBadge",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rc.prototype,"wrapBadges",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Number)],Rc.prototype,"numBadgesInRow",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Rc.prototype,"systemIcons",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Rc.prototype,"animated",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Rc.prototype,"useBadgeShape",void 0);_.T([_.B({value:[]}),_.r("design:type",Array)],Rc.prototype,"hiddenBadgeGroups",void 0);_.T([_.ET("#repeat"),_.r("design:type",t_)],Rc.prototype,"repeatElement",void 0);_.T([_.yO("badges"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rc.prototype,"badgesChanged",null);
_.T([_.yO("useRoundedBadge"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rc.prototype,"standaloneRoundedBadgeChanged",null);_.T([_.yO("topStandaloneBadge","bottomStandaloneBadge"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rc.prototype,"standaloneBadgeChanged",null);_.T([_.yO("hiddenBadgeGroups"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rc.prototype,"hiddenBadgeGroupsChanged",null);
_.T([_.b({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],Rc);
var YVp=_.jo()(Rc,"ytd-badge-supported-renderer",function(){if(LW$===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);LW$=M}M=LW$;return M},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups numBadgesInRow isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.VO("kevlar_poly_si_batch_j053")?1:2});var fi=function(){var M=_.Q.apply(this,arguments)||this;M.iconType="STAR";M.standardizeIconSize=_.w("kevlar_system_icons");M.mediaHoverOverlayInitialVisibility=_.w("enable_top_landscape_image_button_command_web");M.noBottomMargin=!1;M.thumbnailObjectFit="CONTAIN";M.thumbnailFitHeight=!0;M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.l(fi,_.Q);_.N=fi.prototype;_.N.created=function(){this.activeView=new Wl(this.hostElement)};
_.N.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"}}}};
_.N.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",fi.JSC$14772_DEFAULT_CLICK_LOCATION_BEHAVIOR,fi.JSC$14772_CLICK_LOCATION_ID_MAP))};
_.N.onTap=function(M){this.onTapOrClick(M)};
_.N.onTapOrClick=function(M){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,M,!1)};
_.N.updateMediaBackgroundImage=function(){var M=this.get("data.image.thumbnail.thumbnails");M&&(M=_.TE(M,0))&&_.sT(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+M+")"})};
_.N.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var M=0;M<this.data.impressionEndpoints.length;M++){var q=this.data.impressionEndpoints[M];q.clickTrackingParams&&delete q.clickTrackingParams;_.AL().resolve(_.vR).resolveCommand(q,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var G;((G=this.data)==null?0:G.activeView)&&Aa(this.activeView,this.data.activeView)}};
_.N.handleMuteAd=function(){};
_.N.attached=function(){var M=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dn(M.activeView)})};
_.N.detached=function(){_.w("stop_av_measurement_on_detach")&&dn(this.activeView)};
_.Yd.Object.defineProperties(fi.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.titleText)return"";var q;return _.Ge("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((q=this.data)==null?void 0:q.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.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 M;return!((M=this.data)==null||!M.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"}}});
fi.prototype.onTap=fi.prototype.onTap;fi.prototype.dataChanged=fi.prototype.dataChanged;
fi.JSC$14772_CLICK_LOCATION_ID_MAP=_.w("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"]]);
fi.JSC$14772_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.w("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"}];_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],fi.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],fi.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.TU),_.r("design:type",Object)],fi.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],fi.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],fi.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.P([_.wg.YtActionHandlerBehavior]),_.r("design:type",Object)],fi.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fi.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],fi.prototype,"clickCommand",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],fi.prototype,"miniMode",void 0);_.T([_.B(),_.r("design:type",String)],fi.prototype,"iconType",void 0);_.T([_.c("data.titleText"),_.r("design:type",String),_.r("design:paramtypes",[])],fi.prototype,"titleAriaLabel",null);_.T([_.c("data.rating"),_.r("design:type",Object),_.r("design:paramtypes",[])],fi.prototype,"getRating",null);
_.T([_.c("data.price"),_.r("design:type",Object),_.r("design:paramtypes",[])],fi.prototype,"getPrice",null);_.T([_.c("data.thirdLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],fi.prototype,"getThirdLine",null);_.T([_.c("data.fourthLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],fi.prototype,"getFourthLine",null);_.T([_.c("data.fifthLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],fi.prototype,"getFifthLine",null);
_.T([_.c("getRating"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fi.prototype,"computeRatingHidden",null);_.T([_.c("getPrice"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fi.prototype,"computePriceHidden",null);_.T([_.c("getThirdLine"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fi.prototype,"computeThirdLineHidden",null);_.T([_.c("getFourthLine"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fi.prototype,"computeFourthLineHidden",null);
_.T([_.c("getFifthLine"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fi.prototype,"computeFifthLineHidden",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.energyIcon"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fi.prototype,"hasEnergyIcon",null);_.T([_.c("computePriceHidden","computeRatingHidden"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fi.prototype,"computeSecondaryTextHidden",null);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fi.prototype,"standardizeIconSize",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fi.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fi.prototype,"noBottomMargin",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.layout"),_.r("design:type",String),_.r("design:paramtypes",[])],fi.prototype,"layout",null);
_.T([_.c("data.layout"),_.r("design:type",Object),_.r("design:paramtypes",[])],fi.prototype,"mediaThumbnailWidth",null);_.T([_.c("layout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fi.prototype,"useRoundedBadge",null);_.T([_.B(),_.r("design:type",String)],fi.prototype,"thumbnailObjectFit",void 0);_.T([_.B(),_.r("design:type",Object)],fi.prototype,"thumbnailFitHeight",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fi.prototype,"dataChanged",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],fi.prototype,"onTap",null);_.T([_.b({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],fi);
_.z(fi,"ytd-display-ad-renderer",function(){if(yNJ!==void 0)return yNJ;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return yNJ=M},{mode:1});var WW9;var ANI;var dPS;var gXw=new Map;var v3d=!1;var F5=function(){var M=_.Q.apply(this,arguments)||this;M.DEFAULT_TOOLTIP_OFFSET="10";M.TOOLTIP_OFFSET_NO_BANNER="-8";M.badges=null;M.noEndpoints=!1;M.wrapText=!1;M.forceVerified=!1;M.tooltipPosition="top";M.compactStyle=!1;M.height=0;M.lineHeight=0;return M};
_.l(F5,_.Q);_.N=F5.prototype;_.N.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.N.attached=function(){var M=this;this.observer=new MutationObserver(function(q,G){M.handleResized();G.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.N.detached=function(){this.observer&&this.observer.disconnect()};
_.N.logTooltipEvent=function(){_.w("kevlar_wiz_tooltip_event_killswitch")||v3d||(_.BDY("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),v3d=!0)};
_.N.handleWindowResized=function(){this.handleResized()};
_.N.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")))};
_.N.onHeightChanged=function(){if(this.verified){var M=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.R9("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=M:this.textContainerEl.style.marginRight=M}};
_.N.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.R9("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.N.handleResized=function(){var M=this;this.verified&&_.r8.addLowPriorityJob(function(){M.fitBackgroundToText();var q=getComputedStyle(M.hostElement).lineHeight;q&&(q=q.match(/\d+/))&&q.length&&(M.lineHeight=Number(q[0]));M.height=M.lineHeight&&!M.wrapText?M.lineHeight:M.textEl.offsetHeight})};
_.N.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var M=document.createRange(),q=_.f_(this.textEl).children;q.length>0?M.selectNodeContents(q[0]):M.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(M.getBoundingClientRect().width)+"px"}};
_.N.computeChannelBadgeStyle=function(M){var q;if((M==null?0:(q=M.runs)==null?0:q.length)&&M.runs[0].textColor)return"--ytd-badge-icon-color:"+_.w2(M.runs[0].textColor)+";"};
_.Yd.Object.defineProperties(F5.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"?_.bc(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var M=this.get("badges.0.metadataBadgeRenderer.tooltip");if(M)return M}return _.UX(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
F5.prototype.onLineHeightChanged=F5.prototype.onLineHeightChanged;F5.prototype.onHeightChanged=F5.prototype.onHeightChanged;F5.prototype.onChannelNameChanged=F5.prototype.onChannelNameChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],F5.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],F5.prototype,"badges",void 0);_.T([_.B(),_.r("design:type",Object)],F5.prototype,"channelName",void 0);
_.T([_.B(),_.r("design:type",Object)],F5.prototype,"noEndpoints",void 0);_.T([_.B(),_.r("design:type",Object)],F5.prototype,"wrapText",void 0);_.T([_.B(),_.r("design:type",Object)],F5.prototype,"forceVerified",void 0);_.T([_.B(),_.r("design:type",Object)],F5.prototype,"tooltipPosition",void 0);_.T([_.B(),_.r("design:type",String)],F5.prototype,"tooltip",void 0);_.T([_.B(),_.r("design:type",Boolean)],F5.prototype,"hasChannelArt",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],F5.prototype,"compactStyle",void 0);_.T([_.ET("#text-container"),_.r("design:type",HTMLElement)],F5.prototype,"textContainerEl",void 0);_.T([_.ET("#text"),_.r("design:type",Object)],F5.prototype,"textEl",void 0);_.T([_.ET("#verified-tooltip"),_.r("design:type",HTMLElement)],F5.prototype,"verifiedTooltip",void 0);_.T([_.B(),_.r("design:type",Object)],F5.prototype,"height",void 0);
_.T([_.B(),_.r("design:type",Object)],F5.prototype,"lineHeight",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("badges","forceVerified"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],F5.prototype,"verified",null);_.T([_.c("badges","verified"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],F5.prototype,"hideBadges",null);_.T([_.c("channelName"),_.r("design:type",Object),_.r("design:paramtypes",[])],F5.prototype,"formattedName",null);
_.T([_.c("badges","verified","formattedName"),_.r("design:type",String),_.r("design:paramtypes",[])],F5.prototype,"tooltipText",null);_.T([_.c("hasChannelArt"),_.r("design:type",String),_.r("design:paramtypes",[])],F5.prototype,"tooltipOffset",null);_.T([_.KT("channelName"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],F5.prototype,"onChannelNameChanged",null);
_.T([_.KT("height"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],F5.prototype,"onHeightChanged",null);_.T([_.KT("lineHeight","height"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],F5.prototype,"onLineHeightChanged",null);_.T([_.b({is:"ytd-channel-name",disableElementRegistration:!0})],F5);
_.z(F5,"ytd-channel-name",function(){if(dPS!==void 0)return dPS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return dPS=M},{mode:_.VO("kevlar_poly_si_batch_j036")?1:2});var Hl=function(){var M=_.Q.apply(this,arguments)||this;M.standardizeIconSize=_.w("kevlar_system_icons");return M};
_.l(Hl,_.Q);Hl.prototype.basicPaletteChanged=function(){var M;(M=this.data.color)!=null&&M.basicColorPaletteData&&_.dk(this.hostElement,this.data.color.basicColorPaletteData)};
Hl.prototype.useFilledIcons=function(M){return _.w("kevlar_system_icons")&&(M==="CHECK_CIRCLE_THICK"||M==="OFFICIAL_ARTIST_BADGE")};
_.Yd.Object.defineProperties(Hl.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return this.data.authorCreator||((M=this.data)==null?void 0:(q=M.color)==null?void 0:(G=q.basicColorPaletteData)==null?void 0:G.backgroundColor)}}});
Hl.prototype.basicPaletteChanged=Hl.prototype.basicPaletteChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Hl.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Hl.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Hl.prototype,"standardizeIconSize",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.authorUnifiedVerified"),_.r("design:type",Object),_.r("design:paramtypes",[])],Hl.prototype,"verified",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Hl.prototype,"creator",null);_.T([_.KT("data.color.basicColorPaletteData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hl.prototype,"basicPaletteChanged",null);_.T([_.b({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Hl);
_.z(Hl,"ytd-author-comment-badge-renderer",function(){if(ANI!==void 0)return ANI;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return ANI=M},{mode:1});var h5B;var ej=function(){return _.Q.apply(this,arguments)||this};
_.l(ej,_.Q);ej.prototype.computeThumbnailWidth=function(M){if(M==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ej.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ej.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],ej.prototype,"icon",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],ej.prototype,"surface",void 0);
_.T([_.B({reflectToAttribute:!0,value:_.w("enable_shrink_image_size_on_web_posts_singleton")}),_.r("design:type",Boolean)],ej.prototype,"searchSxsUx",void 0);_.T([_.B({reflectToAttribute:!0,value:_.w("enable_community_page_on_desktop")}),_.r("design:type",Boolean)],ej.prototype,"useSmallerPostImageAttachments",void 0);_.T([_.b({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],ej);
_.z(ej,"ytd-backstage-image-renderer",function(){if(h5B!==void 0)return h5B;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return h5B=M},{mode:1});var ttM;var $8=function(){var M=_.Q.apply(this,arguments)||this;M.isLoading=!1;M.selectedItemIndex=-1;return M};
_.l($8,_.Q);_.N=$8.prototype;_.N.computeIsChannelOwner=function(M){if(!M)return!0;M=M[0];return!(M&&(M.signinEndpoint||M.selectServiceEndpoint))};
_.N.computeIsImagePoll=function(M){return(M==null?void 0:M.type)==="POLL_TYPE_IMAGE"};
_.N.computeIsTotalVotesDisabled=function(M){return!(M==null?0:M.totalVotes)};
_.N.thumbnailSrc=function(M){var q,G,K,n;return(M==null?0:(q=M.thumbnails)==null?0:(G=q[0])==null?0:G.url)?_.SM((K=M.thumbnails)==null?void 0:(n=K[0])==null?void 0:n.url):void 0};
_.N.progressWidth=function(M){return"width:"+(M?M*100:0)+"%;"};
_.N.textAreaWidth=function(M){return this.isImagePoll?null:"width:"+(M?M*100:0)+"%;"};
_.N.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.N.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var M=this.data.choices,q=0;q<M.length;q++)if(M[q].selected){this.selectedItemIndex=q;break}};
_.N.onPopupClosed=function(M,q){M=Number(this.pollVotes.selected);q.confirmed&&(this.selectChoice(M,!1),_.VW(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.N.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.N.onYtCommentPollRevert=function(M,q){q&&(this.selectChoice(q.selectedChoiceIndex,!0),this.set("data.totalVotes",q.totalVotes))};
_.N.onYtServiceRequestSent=function(M,q){if(q.actions)for(M=0;M<q.actions.length;M++){var G=q.actions[M];_.C(G,gi)&&this.set("data.totalVotes",_.C(G,gi).totalVotes)}};
_.N.onYtServiceRequestCompleted=function(M){var q=this.get("detail.data.actionResults.0.feedback",M);M=this.get("detail.data.actionResults.0.status",M);if(q==="FEEDBACK_DESELECT"||q==="FEEDBACK_SELECT")this.isLoading=!1,M==="STATUS_FAILED"?_.jP(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.N.getEndpoint=function(M,q){return q===M?this.data.choices[q].deselectServiceEndpoint||null:this.data.choices[M].selectServiceEndpoint||null};
_.N.selectChoice=function(M,q){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var G=0;G<this.data.choices.length;G++){var K;if(M===this.selectedItemIndex){var n=!1;var E=K=null}else K=(n=G===M)?this.data.choices[G].voteRatioIfSelected:this.data.choices[G].voteRatioIfNotSelected,E=n?this.data.choices[G].votePercentageIfSelected:this.data.choices[G].votePercentageIfNotSelected;this.set("data.choices."+G+".voteRatio",K);
this.set("data.choices."+G+".votePercentage",E);this.set("data.choices."+G+".selected",n)}q||(this.isLoading=!0,(q=this.getEndpoint(M,this.selectedItemIndex))&&_.AL().resolve(_.vR).resolveCommand(q,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===M?-1:M};
_.Yd.Object.defineProperties($8.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
$8.prototype.onYtServiceRequestCompleted=$8.prototype.onYtServiceRequestCompleted;$8.prototype.onYtServiceRequestSent=$8.prototype.onYtServiceRequestSent;$8.prototype.onYtCommentPollRevert=$8.prototype.onYtCommentPollRevert;$8.prototype.onPopupClosed=$8.prototype.onPopupClosed;$8.prototype.dataChanged=$8.prototype.dataChanged;_.T([_.P(_.s7),_.r("design:type",Object)],$8.prototype,"paperItemBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],$8.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$8.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],$8.prototype,"isLoading",void 0);_.T([_.B({computed:"computeIsChannelOwner(data.choices)"}),_.r("design:type",Boolean)],$8.prototype,"isChannelOwner",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.r("design:type",Boolean)],$8.prototype,"isImagePoll",void 0);_.T([_.B({computed:"computeIsTotalVotesDisabled(data)"}),_.r("design:type",Boolean)],$8.prototype,"isTotalVotesDisabled",void 0);_.T([_.B(),_.r("design:type",Object)],$8.prototype,"previousPollInfo",void 0);_.T([_.B(),_.r("design:type",Object)],$8.prototype,"selectedItemIndex",void 0);_.T([_.ET("#poll-votes"),_.r("design:type",Object)],$8.prototype,"pollVotes",void 0);
_.T([_.c("isChannelOwner"),_.r("design:type",Object),_.r("design:paramtypes",[])],$8.prototype,"endpointStyle",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$8.prototype,"dataChanged",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],$8.prototype,"onPopupClosed",null);
_.T([_.GQ("yt-comment-poll-revert"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],$8.prototype,"onYtCommentPollRevert",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],$8.prototype,"onYtServiceRequestSent",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],$8.prototype,"onYtServiceRequestCompleted",null);_.T([_.b({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],$8);
_.z($8,"ytd-backstage-poll-renderer",function(){if(ttM!==void 0)return ttM;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-poll-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-poll-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="poll-votes" on-iron-select="onPollChoiceSelected" class="style-scope ytd-backstage-poll-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-poll-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-poll-renderer" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="option">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-poll-renderer" name="[[index]]" selected$="[[item.selected]]" show-percentage$="[[item.votePercentage]]">\n        <template is="dom-if" if="[[!isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <tp-yt-paper-button class="check-icons style-scope ytd-backstage-poll-renderer" hidden="[[isChannelOwner]]">\n            <yt-icon hidden="[[item.selected]]" icon="radio-button-unchecked" class="style-scope ytd-backstage-poll-renderer"></yt-icon>\n            <yt-icon class="checked style-scope ytd-backstage-poll-renderer" hidden="[[!item.selected]]" icon="check-circle" default-to-filled="true"></yt-icon>\n          </tp-yt-paper-button>\n        </template>\n        <template is="dom-if" if="[[isImagePoll]]" class="style-scope ytd-backstage-poll-renderer">\n          <img class="choice-image style-scope ytd-backstage-poll-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n        </template>\n        <div class="choice-info style-scope ytd-backstage-poll-renderer">\n          <div class="text-area style-scope ytd-backstage-poll-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-poll-renderer" text="[[item.text]]">\n            </yt-formatted-string>\n            <yt-formatted-string class="vote-percentage style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n            </yt-formatted-string>\n          </div>\n          <div class="vote-percentage-area style-scope ytd-backstage-poll-renderer" style$="[[textAreaWidth(item.voteRatio)]]">\n          </div>\n          <div class="progress-bar style-scope ytd-backstage-poll-renderer" hidden="[[!item.votePercentage]]" style$="[[progressWidth(item.voteRatio)]]">\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ttM=M},{mode:2});var Otx;var wi$={autoplay:!1,loop:!1},CYd={simpleText:""},s2=function(){var M=_.Q.apply(this,arguments)||this;M.isLoading=!1;M.usesPanelLockup=!1;M.selectedItemIndex=-1;M.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},wi$,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});M.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},wi$,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});M.correctnessAnimationProps=[];M.correctnessAnimationRefs=[];return M};
_.l(s2,_.Q);_.N=s2.prototype;_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.N.computeIsChannelOwner=function(M){if(!M)return!0;M=M[0];return!(M&&(M.signinEndpoint||M.selectServiceEndpoint))};
_.N.computeIsTotalVotesDisabled=function(M){return!(M==null?0:M.totalVotes)};
_.N.computeIsImageQuiz=function(M){return(M==null?void 0:M.type)==="POLL_TYPE_IMAGE"};
_.N.onExplanationChanged=function(){this.expander.reset()};
_.N.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var M=this.data.choices;if(M){this.maybeInitializeQuizLotties(M);for(var q=0;q<M.length;q++)if(M[q].isSelected||this.isChannelOwner&&M[q].isCorrect){this.selectedItemIndex=q;return}this.selectedItemIndex=-1}}};
_.N.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var M=this.selectedItemIndex,q=Number(this.quizVotes.selected);this.selectChoice(q);this.sendVoteAction(q,M);this.quizVotes.selected=-1;var G;M=!((G=this.data)==null?0:G.enableAnimation);this.maybePlayAnswerAnimations(M)}};
_.N.onYtCommentPollRevert=function(M,q){q&&(this.selectChoice(q.selectedChoiceIndex),this.set("data.totalVotes",q.totalVotes))};
_.N.onYtServiceRequestSent=function(M,q){if(q.actions)for(M=_.k(q.actions),q=M.next();!q.done;q=M.next())(q=_.C(q.value,gi))&&this.set("data.totalVotes",q.totalVotes)};
_.N.onYtServiceRequestCompleted=function(M){var q=this.get("detail.data.actionResults.0.feedback",M);M=this.get("detail.data.actionResults.0.status",M);if(q==="FEEDBACK_DESELECT"||q==="FEEDBACK_SELECT")this.isLoading=!1,M==="STATUS_FAILED"?_.jP(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.N.getAnimationPropsForChoiceIndex=function(M,q){return q[M]};
_.N.maybePlayAnswerAnimations=function(M){M=M===void 0?!1:M;var q;if((q=this.data)!=null&&q.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){q=_.k(this.correctnessAnimationRefs);for(var G=q.next();!G.done;G=q.next()){var K=void 0,n=void 0;(K=G.value)==null||(n=K.lottieEl)==null||n.stop()}if(!(this.selectedItemIndex<0)){q=0;M&&(q=this.isCorrect?37:25);var E,p;(E=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(p=E.lottieEl)==null||p.goToAndPlay(M?q:0,!0);if(!(this.isCorrect||
(E=this.data.choices.findIndex(function(v){return v.isCorrect}),E<0))){var y,Y;
(Y=(y=this.correctnessAnimationRefs[E])==null?void 0:y.lottieEl)==null||Y.goToAndPlay(37,!0);var A;y=(A=this.fadeContainers)==null?void 0:A.item(E);!M&&y&&this.fadeIn(y)}}}};
_.N.thumbnailSrc=function(M){var q,G,K,n;return(M==null?0:(q=M.thumbnails)==null?0:(G=q[0])==null?0:G.url)?_.SM((K=M.thumbnails)==null?void 0:(n=K[0])==null?void 0:n.url):void 0};
_.N.a11yVotedText=function(M,q){var G,K,n=((G=this.data)==null?void 0:(K=G.correctVotedText)==null?void 0:K.simpleText)||"",E,p;G=((E=this.data)==null?void 0:(p=E.votedText)==null?void 0:p.simpleText)||"";if(!q)return"";var y,Y;if((y=this.data)==null?0:(Y=y.choices)==null?0:Y[M].isCorrect)return n;var A,v;return((A=this.data)==null?0:(v=A.choices)==null?0:v[M].isSelected)?G:""};
_.N.getEndpoint=function(M,q){return q===M?this.data.choices[M].deselectServiceEndpoint||null:this.data.choices[M].selectServiceEndpoint||null};
_.N.sendVoteAction=function(M,q){if(M=this.getEndpoint(M,q))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(M)};
_.N.selectChoice=function(M){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var q=0;q<this.data.choices.length;q++)this.set("data.choices."+q+".isSelected",M===this.selectedItemIndex?!1:q===M);this.selectedItemIndex=this.selectedItemIndex===M?-1:M};
_.N.maybeInitializeQuizLotties=function(M){var q=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=M.map(function(G){return{animationConfig:G.isCorrect?q.baseCorrectLottiePlayerAnimationConfig:q.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){q.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(G){return G.animationRef||{}})};
_.N.fadeIn=function(M){M.classList.add("fade-in");_.RM(_.r8,function(){M.classList.remove("fade-in")},900)};
_.Yd.Object.defineProperties(s2.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.UX(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 M,q;return((M=this.data)==null?void 0:(q=M.choices)==null?void 0:q.some(function(G){return G.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null||!M.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?CYd:this.data.choices[this.selectedItemIndex].explanation||CYd}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null||!M.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
s2.prototype.onYtServiceRequestCompleted=s2.prototype.onYtServiceRequestCompleted;s2.prototype.onYtServiceRequestSent=s2.prototype.onYtServiceRequestSent;s2.prototype.onYtCommentPollRevert=s2.prototype.onYtCommentPollRevert;s2.prototype.dataChanged=s2.prototype.dataChanged;s2.prototype.onExplanationChanged=s2.prototype.onExplanationChanged;_.T([_.P(_.s7),_.r("design:type",Object)],s2.prototype,"paperItemBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],s2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],s2.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.qt.YtTaskEmitterBehavior),_.r("design:type",Object)],s2.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],s2.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],s2.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],s2.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Object)],s2.prototype,"usesPanelLockup",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.r("design:type",Boolean)],s2.prototype,"isChannelOwner",void 0);_.T([_.B({computed:"computeIsTotalVotesDisabled(data)"}),_.r("design:type",Boolean)],s2.prototype,"isTotalVotesDisabled",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.r("design:type",Boolean)],s2.prototype,"isImageQuiz",void 0);_.T([_.B(),_.r("design:type",Object)],s2.prototype,"previousQuizInfo",void 0);_.T([_.B(),_.r("design:type",Object)],s2.prototype,"selectedItemIndex",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data","usesPanelLockup"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],s2.prototype,"shouldUseModernUi",null);
_.T([_.Ns(".fade-container"),_.r("design:type",Object)],s2.prototype,"fadeContainers",void 0);_.T([_.B(),_.r("design:type",Array)],s2.prototype,"correctnessAnimationProps",void 0);_.T([_.c("explanation","showCorrectAnswer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],s2.prototype,"showExplanation",null);_.T([_.c("isChannelOwner","isAttempted"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],s2.prototype,"showCorrectAnswer",null);
_.T([_.c("isChannelOwner","isAttempted","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],s2.prototype,"isQuizAnsweringDisabled",null);_.T([_.c("isQuizAnsweringDisabled"),_.r("design:type",Object),_.r("design:paramtypes",[])],s2.prototype,"endpointStyle",null);_.T([_.c("data","selectedItemIndex"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],s2.prototype,"isAttempted",null);
_.T([_.c("data","selectedItemIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],s2.prototype,"explanation",null);_.T([_.c("data","selectedItemIndex"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],s2.prototype,"isCorrect",null);_.T([_.ET("ytd-expander"),_.r("design:type",Object)],s2.prototype,"expander",void 0);_.T([_.ET("#quiz-votes"),_.r("design:type",Object)],s2.prototype,"quizVotes",void 0);
_.T([_.KT("explanation"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],s2.prototype,"onExplanationChanged",null);_.T([_.KT("data","isChannelOwner"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],s2.prototype,"dataChanged",null);_.T([_.GQ("yt-comment-quiz-revert"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],s2.prototype,"onYtCommentPollRevert",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],s2.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],s2.prototype,"onYtServiceRequestCompleted",null);_.T([_.b({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],s2);
_.z(s2,"ytd-backstage-quiz-renderer",function(){if(Otx!==void 0)return Otx;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="vote-info" hidden="[[isTotalVotesDisabled]]" text="[[data.totalVotes]]" class="style-scope ytd-backstage-quiz-renderer">\n</yt-formatted-string>\n<tp-yt-paper-listbox id="quiz-votes" on-iron-select="onQuizChoiceSelected" class="style-scope ytd-backstage-quiz-renderer">\n  <template is="dom-repeat" items="[[data.choices]]" class="style-scope ytd-backstage-quiz-renderer">\n    <a id="sign-in" class$="[[endpointStyle]] style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" href$="[[computeHref_(item.signinEndpoint)]]" data="[[item.signinEndpoint]]" role="button">\n      <tp-yt-paper-item class="vote-choice style-scope ytd-backstage-quiz-renderer" aria-disabled="[[isQuizAnsweringDisabled]]" attempted$="[[isAttempted]]" correct$="[[item.isCorrect]]" is-channel-owner$="[[isChannelOwner]]" name="[[index]]" role="button" selected$="[[item.isSelected]]" show-correct-answer$="[[showCorrectAnswer]]">\n        <div class="choice-info style-scope ytd-backstage-quiz-renderer">\n          <template is="dom-if" if="[[isImageQuiz]]" class="style-scope ytd-backstage-quiz-renderer">\n            <img class="choice-image style-scope ytd-backstage-quiz-renderer" alt="" src$="[[thumbnailSrc(item.image)]]">\n          </template>\n          <div class="text-area style-scope ytd-backstage-quiz-renderer">\n            <yt-formatted-string class="choice-text style-scope ytd-backstage-quiz-renderer" text="[[item.text]]"> </yt-formatted-string>\n            \n            <div class="a11y-voted-text style-scope ytd-backstage-quiz-renderer" aria-label$="[[a11yVotedText(index, isAttempted)]]"> </div>\n            \n            <span style="user-select: none" class="style-scope ytd-backstage-quiz-renderer"> \u00a0 </span>\n            <div class="voted-box style-scope ytd-backstage-quiz-renderer">\n              <yt-formatted-string class="vote-percentage style-scope ytd-backstage-quiz-renderer" hidden="[[!item.votePercentage]]" text="[[item.votePercentage]]">\n              </yt-formatted-string>\n              <div class="fade-container animation-container style-scope ytd-backstage-quiz-renderer">\n                <ytd-lottie-player class-name="[[is]] correctness-lottie" data="[[getAnimationPropsForChoiceIndex(index, correctnessAnimationProps)]]" class="style-scope ytd-backstage-quiz-renderer">\n                </ytd-lottie-player>\n              </div>\n            </div>\n          </div>\n        </div>\n      </tp-yt-paper-item>\n    </a>\n  </template>\n</tp-yt-paper-listbox>\n<div class="explanation-box style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" hidden="[[!showExplanation]]">\n  <yt-formatted-string class="explanation-header style-scope ytd-backstage-quiz-renderer" correct$="[[isCorrect]]" text="[[data.explanationHeaderText]]">\n  </yt-formatted-string>\n  <ytd-expander id="expander" max-number-of-lines="3" class="style-scope ytd-backstage-quiz-renderer">\n    <yt-formatted-string class="choice-explanation style-scope ytd-backstage-quiz-renderer" slot="content" force-default-style="" text="[[explanation]]">\n    </yt-formatted-string>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="more-button">[[getSimpleString(data.explanationExpandText)]]</span>\n    <span class="exp-button style-scope ytd-backstage-quiz-renderer" slot="less-button">[[getSimpleString(data.explanationCollapseText)]]</span>\n  </ytd-expander>\n</div>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Otx=M},{mode:1});var a59;var MB=function(){return _.Q.apply(this,arguments)||this};
_.l(MB,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],MB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],MB.prototype,"data",void 0);_.T([_.b({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],MB);
_.z(MB,"ytd-post-uploaded-video-renderer",function(){if(a59!==void 0)return a59;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return a59=M},{mode:1});var o3l;var qB=function(){return _.Q.apply(this,arguments)||this};
_.l(qB,_.Q);qB.prototype.useFilledIcons=function(M){return M==="SPONSORSHIP_STAR"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],qB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],qB.prototype,"data",void 0);_.T([_.b({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],qB);
var l5J=_.jo()(qB,"ytd-sponsors-only-badge-renderer",function(){if(o3l===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);o3l=M}M=o3l;return M},{allowedProps:["data"],
mode:1});var Xid;var Go=function(){return _.Q.apply(this,arguments)||this};
_.l(Go,_.Q);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Go.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Go.prototype,"data",void 0);_.T([_.b({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Go);
_.z(Go,"ytd-child-video-renderer",function(){if(Xid!==void 0)return Xid;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Xid=M},{mode:1});var PYJ;var itS;var KR=function(){var M=_.Q.apply(this,arguments)||this;M.size=0;M.fallbackImageSize={height:void 0,width:9999};M.webModernCollections=!1;return M};
_.l(KR,_.Q);_.N=KR.prototype;_.N.computeBlurredImageSize=function(M){return M?{height:M*2,width:M*2}:this.fallbackImageSize};
_.N.computeImageSize=function(M){return M?{height:M,width:M}:this.fallbackImageSize};
_.N.computeObjectFit=function(M){return M?"FILL":"CONTAIN"};
_.N.computePreserve=function(M){return M?!0:!1};
_.N.setBackground=function(){var M,q;if((M=this.data)==null?0:(q=M.thumbnail)==null?0:q.sampledThumbnailColor)M=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+M.red+","+M.green+","+M.blue+",1)"};
KR.prototype.setBackground=KR.prototype.setBackground;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],KR.prototype,"ytRendererBehavior",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],KR.prototype,"watchFeedThumbnail",void 0);_.T([_.B(),_.r("design:type",Object)],KR.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],KR.prototype,"size",void 0);
_.T([_.B({computed:"computeBlurredImageSize(size)"}),_.r("design:type",Object)],KR.prototype,"blurredImageSize",void 0);_.T([_.B({computed:"computeImageSize(size)"}),_.r("design:type",Object)],KR.prototype,"imageSize",void 0);_.T([_.B({computed:"computePreserve(size)"}),_.r("design:type",String)],KR.prototype,"preserve",void 0);_.T([_.B({computed:"computeObjectFit(size)"}),_.r("design:type",String)],KR.prototype,"objectFit",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],KR.prototype,"webModernCollections",void 0);_.T([_.KT("data.thumbnail.sampledThumbnailColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KR.prototype,"setBackground",null);_.T([_.b({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],KR);
_.z(KR,"ytd-playlist-custom-thumbnail-renderer",function(){if(itS!==void 0)return itS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return itS=M},{mode:1});var cNl;var nR=function(){return _.Q.apply(this,arguments)||this};
_.l(nR,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],nR.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],nR.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],nR.prototype,"width",void 0);_.T([_.b({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],nR);
_.z(nR,"ytd-playlist-video-thumbnail-renderer",function(){if(cNl!==void 0)return cNl;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return cNl=M},{mode:1});var g3J;var E2=function(){return _.Q.apply(this,arguments)||this};
_.l(E2,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],E2.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],E2.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],E2.prototype,"width",void 0);_.T([_.b({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],E2);
_.z(E2,"ytd-show-custom-thumbnail-renderer",function(){if(g3J!==void 0)return g3J;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return g3J=M},{mode:1});var BH2;var NB=function(){return _.Q.apply(this,arguments)||this};
_.l(NB,_.Q);NB.prototype.useFilledIcons=function(M){return M==="MUSIC"||M==="COURSE"};
NB.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=ar(this.overlayColor,"0.8");else if(this.overlayColor){var M=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+M.red+","+M.green+","+M.blue+",0.8)"}};
_.Yd.Object.defineProperties(NB.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)}}});
NB.prototype.overlayColorChanged=NB.prototype.overlayColorChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],NB.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],NB.prototype,"overlayColor",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.icon","data.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],NB.prototype,"overlayStyle",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data.icon","data.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],NB.prototype,"overlayTextStyle",null);_.T([_.KT("overlayColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],NB.prototype,"overlayColorChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],NB);
_.z(NB,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(BH2!==void 0)return BH2;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return BH2=M},{mode:1});var QbM;var kL=function(){var M=_.Q.apply(this,arguments)||this;M.active=!1;return M};
_.l(kL,_.Q);kL.prototype.computeIsSpinnerHidden=function(M){return(M==null?void 0:M.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
kL.prototype.computeOverlayIcon=function(M){return(M==null?void 0:M.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(M==null?void 0:M.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],kL.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],kL.prototype,"active",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],kL);
_.z(kL,"ytd-thumbnail-overlay-downloading-renderer",function(){if(QbM!==void 0)return QbM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return QbM=M},{mode:1});var I5$;var pR=function(){return _.Q.apply(this,arguments)||this};
_.l(pR,_.Q);_.Yd.Object.defineProperties(pR.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pR.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],pR.prototype,"data",void 0);_.T([_.c("data.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],pR.prototype,"text",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],pR);
_.z(pR,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(I5$!==void 0)return I5$;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return I5$=M},{mode:1});var DP8,uff=function(){if(DP8!==void 0)return DP8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return DP8=M};var yE=function(){return _.Q.apply(this,arguments)||this};
_.l(yE,_.Q);_.Yd.Object.defineProperties(yE,{template:{configurable:!0,enumerable:!0,get:function(){return uff()}}});
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],yE.prototype,"animateEqualizer",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],yE);_.jo()(yE,"ytd-thumbnail-overlay-equalizer",function(){return uff()},{allowedProps:["animateEqualizer"],
mode:1});var JNS;var LR=function(){var M=_.Q.apply(this,arguments)||this;M.nowPlayingBadge=_.w("web_now_playing_badge");M.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return M};
_.l(LR,_.Q);LR.prototype.activeChanged=function(){var M=this;_.w("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.yb(this,function(){_.jP(M.hostElement,"yt-playlist-lockup-now-playing-active",M)})};
LR.prototype.onMiniplayerPlayStateChanged=function(M){var q,G=(q=_.C(_.Bg().currentEndpoint,_.Jl))==null?void 0:q.videoId;this.isVideoPlaying=M&&(_.w("web_limit_now_playing_animation_killswitch")||this.videoId===G)};
LR.prototype.activeChanged=LR.prototype.activeChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],LR.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],LR.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],LR.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],LR.prototype,"isVideoPlaying",void 0);_.T([_.B(),_.r("design:type",String)],LR.prototype,"videoId",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],LR.prototype,"equalizerOnly",void 0);_.T([_.B(),_.r("design:type",Boolean)],LR.prototype,"isActive",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],LR.prototype,"nowPlayingBadge",void 0);_.T([_.KT("isActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LR.prototype,"activeChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],LR);
_.z(LR,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(JNS!==void 0)return JNS;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return JNS=M},{mode:1});var Ztv;var YL=function(){return _.Q.apply(this,arguments)||this};
_.l(YL,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],YL.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],YL);
_.z(YL,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(Ztv!==void 0)return Ztv;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Ztv=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var btp;var W5=function(){return _.Q.apply(this,arguments)||this};
_.l(W5,_.Q);W5.prototype.onDurationChanged=function(){var M,q;_.f_(this.hostElement).querySelector("#progress").style.width=((q=(M=this.data)==null?void 0:M.percentDurationWatched)!=null?q:0)+"%"};
W5.prototype.onDurationChanged=W5.prototype.onDurationChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],W5.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],W5.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],W5.prototype,"isLive",void 0);_.T([_.KT("data.percentDurationWatched"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],W5.prototype,"onDurationChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],W5);
_.z(W5,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(btp!==void 0)return btp;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return btp=M},{mode:1});var UPv;var AR=function(){var M=_.Q.apply(this,arguments)||this;M.bottomPanel=!1;M.richGridOverlay=!1;M.watchFeedOverlay=!1;M.isCompact=!1;return M};
_.l(AR,_.Q);AR.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Yd.Object.defineProperties(AR.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:(q=M.icon)==null?void 0:q.iconType)==="PLAY_ALL"&&_.w("kevlar_system_icons")}}});
AR.prototype.widthChanged=AR.prototype.widthChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],AR.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],AR.prototype,"width",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],AR.prototype,"bottomPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],AR.prototype,"richGridOverlay",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],AR.prototype,"watchFeedOverlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],AR.prototype,"isCompact",void 0);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],AR.prototype,"isIconFilled",null);_.T([_.KT("width","watchFeedOverlay"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AR.prototype,"widthChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],AR);
_.z(AR,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(UPv!==void 0)return UPv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return UPv=M},{mode:1});var xP$;var z5$=["CLIP","SHORTS"],ds=function(){var M=_.Q.apply(this,arguments)||this;M.animated=_.w("animated_live_badge_icon");M.hasIcon=!1;M.updateTimerIntervalId=0;M.timeSinceLive=0;return M};
_.l(ds,_.Q);_.N=ds.prototype;_.N.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.N.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.N.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.N.hasIconOrText=function(){var M,q;return!!(((M=this.data)==null?0:M.icon)||((q=this.data)==null?0:q.text))};
_.N.initializeLiveBadgeTimer=function(){var M=this,q,G=(q=this.liveBadgeData)==null?void 0:q.startTimestampSec;if(G&&this.canShowLiveBadgeTimer()){var K;q=Number((K=this.liveBadgeData)==null?void 0:K.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(G);this.updateTimerIntervalId=_.XN(function(){M.canShowLiveBadgeTimer()?M.timeSinceLive++:(M.timeSinceLive=0,window.clearInterval(M.updateTimerIntervalId))},q)}else this.timeSinceLive=0};
_.N.canShowLiveBadgeTimer=function(){var M=Date.now(),q,G;return M<(Number((q=this.liveBadgeData)==null?void 0:q.endTimestampSec)-1)*1E3&&M>Number((G=this.liveBadgeData)==null?void 0:G.startTimestampSec)*1E3};
_.Yd.Object.defineProperties(ds.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){return this.data?_.QaH(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 M;return(M=this.data)==null?void 0:M.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 z5$.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
ds.prototype.initializeLiveBadgeTimer=ds.prototype.initializeLiveBadgeTimer;ds.prototype.dataChanged=ds.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ds.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ds.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],ds.prototype,"icon",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ds.prototype,"animated",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.r("design:type",Boolean)],ds.prototype,"hideTimeStatus",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ds.prototype,"hasIcon",void 0);_.T([_.B(),_.r("design:type",Object)],ds.prototype,"timeSinceLive",void 0);_.T([_.c("data","timeSinceLive"),_.r("design:type",Object),_.r("design:paramtypes",[])],ds.prototype,"badgeShapeData",null);
_.T([_.c("data","overlayType"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ds.prototype,"hideBadgeShape",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ds.prototype,"dataChanged",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.style"),_.r("design:type",Object),_.r("design:paramtypes",[])],ds.prototype,"overlayStyle",null);
_.T([_.c("data.liveBadgeData"),_.r("design:type",Object),_.r("design:paramtypes",[])],ds.prototype,"liveBadgeData",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.type"),_.r("design:type",Object),_.r("design:paramtypes",[])],ds.prototype,"overlayType",null);_.T([_.c("overlayType","overlayStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ds.prototype,"useFilledIcon",null);
_.T([_.yO("liveBadgeData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ds.prototype,"initializeLiveBadgeTimer",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],ds);
_.z(ds,"ytd-thumbnail-overlay-time-status-renderer",function(){if(xP$!==void 0)return xP$;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return xP$=M},{mode:_.VO("kevlar_poly_si_batch_j035")?1:2});var mP$;var v5=function(){return _.Q.apply(this,arguments)||this};
_.l(v5,_.Q);v5.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"}}}}};
v5.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(M){if(this.hasPlaybackProgressBar)return{percentDurationWatched:M.percentDurationWatched}};
v5.prototype.computeHasPlaybackProgressBar=function(M){return!!M.percentDurationWatched&&M.percentDurationWatched>0};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],v5.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],v5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],v5.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.r("design:type",Boolean)],v5.prototype,"hasPlaybackProgressBar",void 0);
_.T([_.b({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],v5);
_.z(v5,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(mP$!==void 0)return mP$;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return mP$=M},{mode:1});var SV8;var TH8=_.U(function(M){var q=M.data;var G=M.children;var K=function(){return!!q().doubleStack},n=function(){return!!q().includeStackHeight};
return _.W("yt-collections-stack",{class:"ytCollectionsStackHost",hidden:function(){return!q().experimentEnabled}},_.W(_.d,{cond:q,
then:function(){var E={};return _.W(_.dU,null,_.W(_.d,{cond:n,then:function(){var p={};return _.W("div",{class:_.Hb("ytCollectionsStackSpacer",(p.ytCollectionsStackSpacerDoubleStack=K,p))})}}),_.W("div",{class:_.Hb((E.ytCollectionsStackRelativeStack=n,E))},_.W(_.d,{cond:K,
then:function(){var p={};return _.W("div",{class:_.Hb("ytCollectionsStackCollectionStack2",function(){return q().customClassName2ndStack},(p.ytCollectionsStackCollectionStack2ResponsiveMode=function(){return q().enableResponsiveMode},p)),
style:_.Kp({"background-color":function(){return Dfy(q())}})})}}),_.W("div",{class:_.Hb("ytCollectionsStackCollectionStack1",function(){return q().customClassName1stStack},function(){return IoF(q().thumbnailSize?q().thumbnailSize:"medium")}),
style:_.Kp({"background-color":function(){return Dfy(q())}})}),G))}}))},"Ca");_.S5(TH8,"yt-collections-stack",{props:{data:_.Hz}});var hR=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};M.webModernCollections=!1;M.isSearch=!1;M.isDoubleStack=!1;M.thumbnailSize="medium";return M};
_.l(hR,_.Q);_.N=hR.prototype;
_.N.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]]"}}}}}};
_.N.getThumbnailDetails=function(M){if(M!=null&&M.thumbnailRenderer){var q=M.thumbnailRenderer,G;if((G=q.playlistVideoThumbnailRenderer)==null?0:G.thumbnail)return q.playlistVideoThumbnailRenderer.thumbnail;var K;if((K=q.playlistCustomThumbnailRenderer)==null?0:K.thumbnail)return q.playlistCustomThumbnailRenderer.thumbnail;M=M.thumbnailRenderer;var n;if((n=M.showCustomThumbnailRenderer)==null?0:n.thumbnail)return M.showCustomThumbnailRenderer.thumbnail}};
_.N.computeOverlayColor=function(M){var q,G;if((q=this.getThumbnailDetails(M))==null?0:(G=q.darkColorPalette)==null?0:G.section2Color)return this.getThumbnailDetails(M).darkColorPalette.section2Color;var K;return(K=this.getThumbnailDetails(M))==null?void 0:K.sampledThumbnailColor};
_.N.computeWebModernCollections=function(M){if(M==null||!M.thumbnailOverlays)return!1;M=_.k(M.thumbnailOverlays);for(var q=M.next();!q.done;q=M.next()){var G=void 0;if((G=q.value)==null?0:G.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.N.computeNavigationEndpoint=function(M){return J1y(M==null?void 0:M.navigationEndpoint)};
_.Yd.Object.defineProperties(hR.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:M==null?void 0:M.sampledThumbnailColor,vibrantColorPalette:M==null?void 0:M.vibrantColorPalette,darkColorPalette:M==null?void 0:M.darkColorPalette,experimentEnabled:!0}}}});
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],hR.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(ejM),_.r("design:type",Object)],hR.prototype,"ytdThumbnailBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],hR.prototype,"componentBehavior",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],hR.prototype,"watchFeedThumbnail",void 0);_.T([_.B(),_.r("design:type",Number)],hR.prototype,"customThumbnailSize",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],hR.prototype,"hideAria",void 0);_.T([_.B(),_.r("design:type",Object)],hR.prototype,"data",void 0);_.T([_.B({computed:"computeOverlayColor(data)"}),_.r("design:type",Object)],hR.prototype,"overlayColor",void 0);
_.T([_.B({computed:"computeWebModernCollections(data)"}),_.r("design:type",Object)],hR.prototype,"webModernCollections",void 0);_.T([_.B({computed:"computeNavigationEndpoint(data)"}),_.r("design:type",Object)],hR.prototype,"computedNavigationEndpoint",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],hR.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],hR.prototype,"isDoubleStack",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],hR.prototype,"thumbnailSize",void 0);_.T([_.c("data","isDoubleStack","thumbnailSize"),_.r("design:type",Object),_.r("design:paramtypes",[])],hR.prototype,"collectionStack",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],hR);
_.z(hR,"ytd-playlist-thumbnail",function(){if(SV8!==void 0)return SV8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return SV8=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var rNS;_.S5(_.U(function(M){return _.W("yt-text-view-model",{class:_.Hb("ytTextViewModelHost")},_.W(_.Ft,{text:function(){return M.data().text}}))},"Da"),"yt-text-view-model",{props:{data:_.Hz}});var tR=function(){var M=_.Q.apply(this,arguments)||this;M.noEndpoints=!1;M.amsterdamPostMvp=_.w("web_amsterdam_post_mvp_playlists");M.badges=[];M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.l(tR,_.Q);_.N=tR.prototype;_.N.configureRendererStamper=function(){return{"data.attributedBylineText":{id:"attributed-channel-name",mapping:{textViewModel:"yt-text-view-model"}}}};
_.N.getMetadata=function(M){if(!M)return[];var q=[],G=M.shortViewCountText||M.viewCountText;G&&q.push(_.UX(G));M.publishedTimeText&&q.push(_.UX(M.publishedTimeText));M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&q.push(_.A$(_.UX(M.upcomingEventData.upcomingEventText),Number(M.upcomingEventData.startTime)));return q};
_.N.observeDataForBylineSeparator=function(){this.data&&_.HE(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.N.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.w2(this.metadataColor)};
_.N.getSimpleString=function(M){return _.UX(M)};
_.N.isBylineHidden=function(M){return this.noByline||!((M==null?0:M.longBylineText)||(M==null?0:M.shortBylineText))};
_.N.isMetadataHidden=function(M){var q;return((q=this.getMetadata(M))==null?void 0:q.length)===0};
_.N.isBylineMetadataSeparatorHidden=function(M){return this.isMetadataHidden(M)||!this.shouldShowVideoInfo};
_.N.isLongByline=function(M,q){return q&&!(M==null||!M.longBylineText)};
_.Yd.Object.defineProperties(tR.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var M;return this.amsterdamPostMvp&&!((M=this.data)==null||!M.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 M;return!((M=this.data)==null||!M.attributedBylineText)}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
tR.prototype.metadataColorChanged=tR.prototype.metadataColorChanged;tR.prototype.observeDataForBylineSeparator=tR.prototype.observeDataForBylineSeparator;_.T([_.P(_.mr),_.r("design:type",Object)],tR.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tR.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],tR.prototype,"noEndpoints",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],tR.prototype,"isSlimShort",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],tR.prototype,"radioMeta",void 0);_.T([_.B({selector:_.o2}),_.r("design:type",Object)],tR.prototype,"isGridViewEnabled",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],tR.prototype,"richMeta",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tR.prototype,"amsterdamPostMvp",void 0);
_.T([_.B(),_.r("design:type",Boolean)],tR.prototype,"noByline",void 0);_.T([_.B({computed:"isLongByline(data, radioMeta)"}),_.r("design:type",Boolean)],tR.prototype,"longByline",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],tR.prototype,"truncateMetadataLine",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],tR.prototype,"miniMode",void 0);_.T([_.B(),_.r("design:type",Number)],tR.prototype,"metadataColor",void 0);
_.T([_.B(),_.r("design:type",Array)],tR.prototype,"badges",void 0);_.T([_.B({selector:_.Xp,selectorArgs:["data.videoId"]}),_.r("design:type",String)],tR.prototype,"transferState",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],tR.prototype,"isDownloading",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],tR.prototype,"typographyBump",void 0);_.T([_.ET("#metadata-line"),_.r("design:type",HTMLElement)],tR.prototype,"metadataLine",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tR.prototype,"observeDataForBylineSeparator",null);_.T([_.KT("metadataColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tR.prototype,"metadataColorChanged",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],tR.prototype,"shouldShowVideoInfo",null);
_.T([_.c("badges"),_.r("design:type",String),_.r("design:paramtypes",[])],tR.prototype,"inlineBadgeClass",null);_.T([_.c("longByline"),_.r("design:type",String),_.r("design:paramtypes",[])],tR.prototype,"longBylineClass",null);_.T([_.c("data","longByline"),_.r("design:type",Object),_.r("design:paramtypes",[])],tR.prototype,"bylineText",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tR.prototype,"hasAttributedBylineText",null);
_.T([_.c("isGridViewEnabled","data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tR.prototype,"watchFeedBigThumbs",null);_.T([_.b({is:"ytd-video-meta-block",disableElementRegistration:!0})],tR);
_.z(tR,"ytd-video-meta-block",function(){if(rNS!==void 0)return rNS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return rNS=M},{mode:_.VO("kevlar_poly_si_batch_j080")?1:2});_.hC("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var O2=function(){var M=_.Q.apply(this,arguments)||this;M.displayItemCount=2;M.isBackstagePlaylist=!1;M.isPostCompactPlaylist=!1;M.shouldShowChannelThumbnail=!1;return M};
_.l(O2,_.Q);_.N=O2.prototype;_.N.computeFirstVideos=function(M,q){return M===void 0||q===void 0?[]:M.slice(0,q)};
_.N.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var M=this.data.thumbnailRenderer;M.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",M.playlistVideoThumbnailRenderer.thumbnail);M.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",M.playlistCustomThumbnailRenderer.thumbnail)}};
_.N.computeThumbnailHeight=function(M,q,G,K,n){return K?n==="BIG"?280:n==="MASSIVE"?337:234:G?240:q?72:M?118:138};
_.N.computeThumbnailWidth=function(M,q,G,K,n){return K?n==="MEDIUM"?450:n==="BIG"?500:n==="MASSIVE"?600:420:G?360:q?128:M?210:246};
_.N.computeUseBiggerThumbs=function(M){return M&&_.w("enable_desktop_search_bigger_thumbs")};
_.N.computeShouldShowChannelThumbnail=function(M,q){return M&&!(q==null||!q.channelThumbnail)};
_.Yd.Object.defineProperties(O2.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
O2.prototype.dataChanged=O2.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],O2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],O2.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],O2.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],O2.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],O2.prototype,"displayItemCount",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],O2.prototype,"isBackstagePlaylist",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],O2.prototype,"isPostCompactPlaylist",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],O2.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.r("design:type",Boolean)],O2.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],O2.prototype,"biggerThumbsStyle",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],O2.prototype,"isDownloads",void 0);_.T([_.B({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.r("design:type",Object)],O2.prototype,"shouldShowChannelThumbnail",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],O2.prototype,"dataChanged",null);
_.T([_.c("isSearch"),_.r("design:type",String),_.r("design:paramtypes",[])],O2.prototype,"stackThumbnailSize",null);_.T([_.b({is:"ytd-playlist-renderer",disableElementRegistration:!0})],O2);
_.z(O2,"ytd-playlist-renderer",function(){if(PYJ===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);PYJ=M}M=PYJ;return M},{mode:1});var jb$;var Vtx;var ws=function(){var M=_.Q.apply(this,arguments)||this;M.startX=0;return M};
_.l(ws,_.Q);ws.prototype.onEndpointMouseDown=function(M){this.startX=M.clientX};
ws.prototype.onEndpointClick=function(M){this.startX!==M.clientX&&(M.preventDefault(),M.stopPropagation())};
ws.prototype.computeObjectFit=function(M){return M==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||M==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||M==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
ws.prototype.computeCardStyle=function(M){return M?M.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Yd.Object.defineProperties(ws.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:(q=M.searchRefinementCardRendererStyle)==null?void 0:q.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}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ws.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ws.prototype,"data",void 0);_.T([_.B({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.r("design:type",Number)],ws.prototype,"objectFit",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.r("design:type",String)],ws.prototype,"cardStyle",void 0);
_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],ws.prototype,"roundContainer",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ws.prototype,"isAlbumCard",null);_.T([_.c("data","isAlbumCard"),_.r("design:type",Object),_.r("design:paramtypes",[])],ws.prototype,"collectionStack",null);_.T([_.b({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],ws);
_.z(ws,"ytd-search-refinement-card-renderer",function(){if(Vtx!==void 0)return Vtx;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Vtx=M},{mode:1});var R5B;var CR=function(){var M=_.Q.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.l(CR,_.Q);_.T([_.B(),_.r("design:type",Object)],CR.prototype,"data",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],CR.prototype,"componentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],CR.prototype,"ytdReduxBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],CR.prototype,"isRichGrid",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],CR.prototype,"miniMode",void 0);
_.T([_.b({is:"ytd-game-details-renderer",disableElementRegistration:!0})],CR);
_.z(CR,"ytd-game-details-renderer",function(){if(R5B!==void 0)return R5B;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return R5B=M},{mode:1});var f5S;var FWv;var a4=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return M};
_.l(a4,_.Q);_.N=a4.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.currentStateData=function(M){var q=M||this.data;return q&&q.states&&q.currentStateId!=null?q.states.find(function(G){return G.stateId===q.currentStateId})||null:null};
_.N.currentStateRendererData=function(M){return(M=this.currentStateData(M))&&M.state&&M.state.buttonRenderer?M.state.buttonRenderer:null};
_.N.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())};
_.N.computeButtonIcon=function(M){M=this.currentStateRendererData(M);var q;return(M==null?0:(q=M.icon)==null?0:q.iconType)?M.icon.iconType.toLowerCase():null};
_.N.computeAccessibility=function(M){return(M=this.currentStateRendererData(M))&&M.accessibilityData?M.accessibilityData.accessibilityData||null:null};
_.N.computeButtonClass=function(M){var q=this.currentStateRendererData(M);if(!q)return"";M="";var G=q.style;G&&(M+=G.toLowerCase().replace(/_/g,"-")+" ");(q=q.size)&&(M+=q.toLowerCase().replace(/_/g,"-")+" ");return M.trim()};
_.N.computeServiceEndpoint=function(M){if(!M)return null;var q=M&&M.serviceEndpoint,G=this.get("command.commandMetadata.webCommandMetadata.sendPost",M);return q?q:G&&M.command?M.command:null};
_.N.computeBellMenuItemParams=function(M){var q;M=(q=_.C(M==null?void 0:M.command,_.eP))==null?void 0:q.commands;if(!M||M.length===0)return null;q=_.C(M[0],_.BA);var G,K;return(q==null?0:(G=q.popup)==null?0:(K=G.menuPopupRenderer)==null?0:K.items)?q.popup.menuPopupRenderer.items.map(function(n){return n.menuServiceItemRenderer.trackingParams}):null};
_.N.handleBellMenuOpenSelectedAction=function(M){var q=M.trackingParams,G=this.computeBellMenuItemParams(this.data);this.data&&q&&G&&G.includes(q)&&this.ytRenderButtonBehavior._setButtonIcon(M.icon.iconType.toLowerCase())};
_.N.onYtServiceRequestCompleted=function(M,q){(M=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",q))&&this.set("data",M)};
_.N.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.N.resetState=function(){this.set("data.currentStateId",3)};
_.N.onYtButtonTapHandler=function(){if(this.data){var M=this.currentStateRendererData(this.data);M&&this.ytRendererBehavior.logExplicitClick(M)}};
a4.prototype.onYtServiceRequestError=a4.prototype.onYtServiceRequestError;a4.prototype.onYtServiceRequestCompleted=a4.prototype.onYtServiceRequestCompleted;a4.prototype.stateChanged=a4.prototype.stateChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],a4.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],a4.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(iA.YtRenderButtonBehavior),_.r("design:type",Object)],a4.prototype,"ytRenderButtonBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],a4.prototype,"data",void 0);_.T([_.yO("data","data.currentStateId"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],a4.prototype,"stateChanged",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],a4.prototype,"onYtServiceRequestCompleted",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],a4.prototype,"onYtServiceRequestError",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],a4);
_.z(a4,"ytd-subscription-notification-toggle-button-renderer",function(){if(FWv!==void 0)return FWv;var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return FWv=M},{mode:1});var HtJ;var o4=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};M.tapHandler=function(){if(M.data){var q=M.currentStateRendererData();q&&M.ytRendererBehavior.logExplicitClick(q)}};
return M};
_.l(o4,_.Q);_.N=o4.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.currentStateData=function(){var M=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(q){return q.stateId===M.data.currentStateId})||null:null};
_.N.currentStateRendererData=function(){var M=this.currentStateData();return M&&M.state&&M.state.buttonRenderer?M.state.buttonRenderer:null};
_.N.computeAccessibilityLabel=function(){var M,q,G;return(M=this.currentStateRendererData())==null?void 0:(q=M.accessibilityData)==null?void 0:(G=q.accessibilityData)==null?void 0:G.label};
_.N.computeBellMenuItemParams=function(){var M,q,G=(q=_.C((M=this.data)==null?void 0:M.command,_.eP))==null?void 0:q.commands;if(!G||G.length===0)return null;M=_.C(G[0],_.BA);var K,n;return(M==null?0:(K=M.popup)==null?0:(n=K.menuPopupRenderer)==null?0:n.items)?M.popup.menuPopupRenderer.items.map(function(E){return E.menuServiceItemRenderer.trackingParams}):null};
_.N.handleBellMenuOpenSelectedAction=function(M){var q=M.trackingParams,G=this.computeBellMenuItemParams();if(this.data&&q&&G&&G.includes(q)&&(M==null||!M.isDisabled)){var K;((K=_.C(M.serviceEndpoint,_.sl))==null?void 0:K.signal)!=="CLIENT_SIGNAL"&&(this.icon=M.icon.iconType)}};
_.N.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.N.onYtServiceRequestCompleted=function(M,q){if(M=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",q))this.icon=void 0,this.set("data",M)};
_.N.onYtServiceRequestError=function(){this.icon=void 0};
_.Yd.Object.defineProperties(o4.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data,q=this.textLabel,G=this.hostElement,K=this.computeAccessibilityLabel(),n=this.tapHandler,E=this.isOverlay?"overlay":"mono",p=(M==null?0:M.disableButton)?"disabled":"active";q=q?_.tj(q):void 0;return{style:E,type:"tonal",state:p,size:"M",focused:!1,formattedButtonText:q,iconPosition:"leading-trailing",onTap:JyD(M,n,G),accessibilityLabel:K}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var M=this.currentStateRendererData(),q,G,K=(G=this.icon)!=null?G:M==null?void 0:(q=M.icon)==null?void 0:q.iconType;if(K)return _.H4(K)}},
computedAnimateIcon:{configurable:!0,enumerable:!0,get:function(){return this.computedIcon==="NOTIFICATIONS_NONE"?!0:void 0}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.data)==null?void 0:(q=M.secondaryIcon)==null?void 0:q.iconType;if(G)return _.H4(G)}}});
o4.prototype.onYtServiceRequestError=o4.prototype.onYtServiceRequestError;o4.prototype.onYtServiceRequestCompleted=o4.prototype.onYtServiceRequestCompleted;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],o4.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],o4.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],o4.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],o4.prototype,"textLabel",void 0);
_.T([_.B(),_.r("design:type",String)],o4.prototype,"icon",void 0);_.T([_.B(),_.r("design:type",Boolean)],o4.prototype,"isOverlay",void 0);_.T([_.c("data.*","textLabel"),_.r("design:type",Object),_.r("design:paramtypes",[])],o4.prototype,"computedButtonShape",null);_.T([_.c("data.*","icon"),_.r("design:type",Object),_.r("design:paramtypes",[])],o4.prototype,"computedIcon",null);_.T([_.c("computedIcon"),_.r("design:type",Object),_.r("design:paramtypes",[])],o4.prototype,"computedAnimateIcon",null);
_.T([_.c("data.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],o4.prototype,"computedSecondaryIcon",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],o4.prototype,"onYtServiceRequestCompleted",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o4.prototype,"onYtServiceRequestError",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],o4);
_.z(o4,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(HtJ!==void 0)return HtJ;var M=document.createElement("template");_.X(M,'\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 HtJ=M},{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var e5I;_.S5(ecB,"yt-animated-action",{props:{backgroundLottieRef:_.Hz,foregroundLottieRef:_.Hz,wrapperClass:_.Hz,disableAnimation:_.Hz},unsafeExternallySettableAttributes:new Set(["key"])});var l0=function(){var M=_.Q.apply(this,arguments)||this;M.animatedActionEnabled=_.w("web_animated_actions");M.foregroundLottieRef={};M.backgroundLottieRef={};M.forceIconOnly=!1;M.showTextWhileAnimating=!1;M.keyboardFocused=!1;M.isAnimating=!1;M.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return M};
_.l(l0,_.Q);_.N=l0.prototype;_.N.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.N.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]]"}}}}}};
_.N.attached=function(){this.keyboardFocused=!1};
_.N.onYtServiceRequestSent=function(M,q){(this.get("endpoint.subscribeEndpoint",q)||this.get("endpoint.unsubscribeEndpoint",q))&&this.updateSubscriptionState(!this.subscribed)};
_.N.onYtServiceRequestCompleted=function(M,q){(M=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",q.data))&&this.bellButton&&(this.bellButton.data=M)};
_.N.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.sT(this.hostElement)};
_.N.onPlayerSubscribe=function(M){this.isCompactRed()||M!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.N.onPlayerUnsubscribe=function(M){this.isCompactRed()||M!==this.data.channelId||this.updateSubscriptionState(!1)};
_.N.handleUpdateSubscribeButtonAction=function(M){M=_.C(M,RpJ);var q;M&&M.channelId===((q=this.data)==null?void 0:q.channelId)&&this.updateSubscriptionState(!!M.subscribed)};
_.N.computeButtonStyle=function(M){return this.get("style.styleType",M)||null};
_.N.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.N.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.N.updateSubscriptionState=function(M){if(M!==this.subscribed){this.set("data.subscribed",M);var q,G=(q=this.data)==null?void 0:q.subscribedEntityKey;G&&this.ytdReduxBehavior.dispatch(_.LL("subscriptionStateEntity",G,{key:G,subscribed:M}));this.isCompactRed()||_.jP(this.hostElement,"yt-subscription-changed",M);M||(_.VW(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!M),M&&this.hasBellButton&&this.startAnimation())}};
_.N.startAnimation=function(){var M=this;if(!this.isAnimating){var q=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var G;(G=this.backgroundLottieRef.lottieEl)==null||G.goToAndPlay(0);var K;(K=this.foregroundLottieRef.lottieEl)==null||K.goToAndPlay(0);_.r8.addJob(function(){M.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.r8.addJob(function(){M.updateContainerToFitContent(!!M.subscribed,!0)},2,1500);
_.r8.addJob(function(){M.isAnimating=!1},2,q)}};
_.N.maybeAnimateBellIcon=function(){var M=_.Fw(this.hostElement).querySelector("yt-animated-icon");if(M){var q;(q=M.animationRef.lottieEl)==null||q.goToAndPlay(0)}};
_.N.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.N.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.N.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var M;this.unsubscribedWidth=(M=this.subscribeButtonShape)==null?void 0:M.getBoundingClientRect().width}var q;this.subscribedWidth=(q=this.bellButton)==null?void 0:q.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.N.updateContainerToFitContent=function(M,q){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(M?(M=this.subscribedWidth,q=this.isAnimating&&!q,this.subscribedIconOnlyWidth===void 0||q||(M=this.subscribedIconOnlyWidth),this.hostElement.style.width=M+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.N.clearContainerSize=function(){this.hostElement.style.width=""};
_.N.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.N.maybeSetSubscribedButtonIconOnlyWidth=function(){var M=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 q;M.subscribedIconOnlyWidth=(q=M.bellButton)==null?void 0:q.getBoundingClientRect().width;requestAnimationFrame(function(){if(M.bellButton){var G;M.bellButton.textLabel=
(G=M.data)==null?void 0:G.subscribedButtonText}})})))};
_.Yd.Object.defineProperties(l0.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 M;return(M=this.data)==null?void 0:M.subscribedButtonText}var q;return this.forceIconOnly?void 0:(q=this.data)==null?void 0:q.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var M,q,G=((M=this.data)==null?void 0:(q=M.timedAnimationData)==null?void 0:q.animationTiming)||[];return{uniqueId:"subscribe",timings:G,enabled:G.length>0&&!this.subscribed,experimentEnabled:G.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!this.subscribed&&((M=this.data)==null?void 0:M.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 M={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var q=M.renderer;var G=M.element;var K=M.subscribed;var n=M.commandController;var E=M.isOverlay;M=M.stopPropagation;var p=xfy(q,K);E&&(p.style="overlay");E=Object;var y=E.assign,Y;a:switch((Y=q.style)==null?void 0:Y.styleType){case "COMPACT_GRAY":case "COMPACT_RED":Y={size:"S"};break a;default:Y={size:"M"}}var A=Ufy(q,
K);var v=(v=K?q.subscribedButtonText:q.unsubscribedButtonText)?_.tj(v):void 0;return y.call(E,{},p,Y,{focused:!1,toggled:K,accessibilityLabel:A,formattedButtonText:v,onTap:bqw(q,K,G,n,M)})}}}});
l0.prototype.onMouseDown=l0.prototype.onMouseDown;l0.prototype.onDataChanged=l0.prototype.onDataChanged;l0.prototype.observedSubscribed=l0.prototype.observedSubscribed;l0.prototype.onYtServiceRequestCompleted=l0.prototype.onYtServiceRequestCompleted;l0.prototype.onYtServiceRequestSent=l0.prototype.onYtServiceRequestSent;l0.prototype.maybeUpdateBellButtonText=l0.prototype.maybeUpdateBellButtonText;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],l0.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],l0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],l0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],l0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],l0.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],l0.prototype,"data",void 0);
_.T([_.B({selectorArgs:["data.subscribedEntityKey"],selector:K0$}),_.r("design:type",Object)],l0.prototype,"subscriptionStateEntity",void 0);_.T([_.B({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.r("design:type",Boolean)],l0.prototype,"subscribed",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],l0.prototype,"branded",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],l0.prototype,"animatedActionEnabled",void 0);
_.T([_.B(),_.r("design:type",Object)],l0.prototype,"foregroundLottieRef",void 0);_.T([_.B(),_.r("design:type",Object)],l0.prototype,"backgroundLottieRef",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],l0.prototype,"overlayButton",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.r("design:type",Object)],l0.prototype,"buttonStyle",void 0);_.T([_.B(),_.r("design:type",Object)],l0.prototype,"forceIconOnly",void 0);
_.T([_.B(),_.r("design:type",Object)],l0.prototype,"showTextWhileAnimating",void 0);_.T([_.B({value:function(){return!!_.AL().resolve(_.WR(_.Nt))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.r("design:type",Boolean)],l0.prototype,"useKeyboardFocused",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],l0.prototype,"keyboardFocused",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],l0.prototype,"isAnimating",void 0);_.T([_.c("data.notificationPreferenceButton.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],l0.prototype,"hasBellButton",null);
_.T([_.KT("subscribedButtonText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],l0.prototype,"maybeUpdateBellButtonText",null);_.T([_.c("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],l0.prototype,"subscribedButtonText",null);_.T([_.c("data.timedAnimationData.animationTiming","subscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],l0.prototype,"smartimationSettings",null);
_.T([_.B({reflectToAttribute:!0}),_.c("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],l0.prototype,"subscribeButtonHidden",null);_.T([_.B({reflectToAttribute:!0}),_.c("subscribed","hasBellButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],l0.prototype,"subscribeButtonInvisible",null);
_.T([_.B({reflectToAttribute:!0}),_.c("subscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],l0.prototype,"unsubscribeButtonHidden",null);_.T([_.ET("ytd-subscription-notification-toggle-button-renderer-next"),_.r("design:type",Object)],l0.prototype,"bellButton",void 0);_.T([_.ET("#subscribe-button-shape"),_.r("design:type",HTMLElement)],l0.prototype,"subscribeButtonShape",void 0);
_.T([_.c("overlayButton","subscribed","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],l0.prototype,"buttonShape",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],l0.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],l0.prototype,"onYtServiceRequestCompleted",null);
_.T([_.KT("subscribed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],l0.prototype,"observedSubscribed",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],l0.prototype,"onDataChanged",null);_.T([_.GQ("mousedown"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],l0.prototype,"onMouseDown",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],l0);
_.z(l0,"ytd-subscribe-button-renderer",function(){if(e5I!==void 0)return e5I;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return e5I=M},{mode:1});var Xu=function(){var M=_.Q.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.l(Xu,_.Q);Xu.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Xu.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Xu.prototype,"isRichGrid",void 0);_.T([_.b({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Xu);
_.z(Xu,"ytd-game-card-renderer",function(){if(f5S!==void 0)return f5S;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return f5S=M},{mode:1});var P5={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.w("defer_menus")&&!g9d?0:void 0,waitForSignal:"eocs"};var $P9;var sNv;var i0=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return M};
_.l(i0,_.Q);_.N=i0.prototype;_.N.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.N.onSeriesReminderStateEntityChange=function(){var M,q,G;((M=this.eventReminderStateEntity)==null?0:M.key)&&((q=this.seriesReminderStateEntity)==null?void 0:q.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((G=this.eventReminderStateEntity)==null?void 0:G.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.LL("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.N.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.N.onYtServiceRequestError=function(){var M;this.updateReminderStateEntitiesFromButtonState((M=this.data)==null?void 0:M.currentState)};
_.N.handleUpdateUpcomingEventReminderButtonStateCommand=function(M){if(M=_.C(M,RsS)){var q,G=(q=this.data)==null?void 0:q.targetId;G&&M.targetId===G&&_.g4(this.updateReminderStateEntitiesFromButtonState.bind(this,M.state))}};
_.N.getButtonStateFromReminderState=function(){var M;if(((M=this.seriesReminderStateEntity)==null?void 0:M.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var q;if(((q=this.eventReminderStateEntity)==null?void 0:q.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var G,K;if(((G=this.seriesReminderStateEntity)==null?void 0:G.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((K=this.eventReminderStateEntity)==
null?void 0:K.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var n;return(n=this.data)==null?void 0:n.currentState};
_.N.updateReminderStateEntitiesFromButtonState=function(M){if(M){switch(M){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":M="UPCOMING_EVENT_REMINDER_STATE_NONE";var q="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":M="UPCOMING_EVENT_REMINDER_STATE_SINGLE";q="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":M="UPCOMING_EVENT_REMINDER_STATE_NONE";q="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var G;
((G=this.eventReminderStateEntity)==null?0:G.key)&&this.ytdReduxBehavior.dispatch(_.LL("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:M})));var K;((K=this.seriesReminderStateEntity)==null?0:K.key)&&this.ytdReduxBehavior.dispatch(_.LL("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:q})))}};
_.Yd.Object.defineProperties(i0.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var M=this.getButtonStateFromReminderState(),q,G;if(M&&((q=this.data)==null?0:(G=q.states)==null?0:G.length))for(q=_.k(this.data.states),G=q.next();!G.done;G=q.next()){G=G.value;var K=void 0;if(((K=_.C(G,fBJ))==null?void 0:K.state)===M)return _.C(G,fBJ)}}}});
i0.prototype.onYtServiceRequestError=i0.prototype.onYtServiceRequestError;i0.prototype.onYtServiceRequestCompleted=i0.prototype.onYtServiceRequestCompleted;i0.prototype.onSeriesReminderStateEntityChange=i0.prototype.onSeriesReminderStateEntityChange;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],i0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],i0.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],i0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],i0.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],i0.prototype,"data",void 0);_.T([_.B({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:EXi}),_.r("design:type",Object)],i0.prototype,"eventReminderStateEntity",void 0);
_.T([_.B({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(M,q){return _.sX(M.entities,"sportsSeriesReminderStateEntity",q)}}),
_.r("design:type",Object)],i0.prototype,"seriesReminderStateEntity",void 0);_.T([_.c("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],i0.prototype,"currentButtonStateRenderer",null);_.T([_.KT("seriesReminderStateEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i0.prototype,"onSeriesReminderStateEntityChange",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i0.prototype,"onYtServiceRequestCompleted",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i0.prototype,"onYtServiceRequestError",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],i0);
_.z(i0,"ytd-upcoming-event-reminder-button-renderer",function(){if(sNv!==void 0)return sNv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return sNv=M},{mode:1});var Mkf;var c5=function(){return _.Q.apply(this,arguments)||this};
_.l(c5,_.Q);c5.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Yd.Object.defineProperties(c5.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(_.w("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],c5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],c5.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],c5.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],c5.prototype,"shelfDismissal",void 0);_.T([_.c("data.responseText"),_.r("design:type",Object),_.r("design:paramtypes",[])],c5.prototype,"text",null);
_.T([_.c("data.responseText"),_.r("design:type",Object),_.r("design:paramtypes",[])],c5.prototype,"textAriaLabel",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],c5);
_.z(c5,"ytd-notification-multi-action-renderer",function(){if(Mkf!==void 0)return Mkf;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Mkf=M},{mode:1});var qC9;var gs=function(){return _.Q.apply(this,arguments)||this};
_.l(gs,_.Q);gs.prototype.ready=function(){var M=this;_.f_(this.hostElement).querySelector("#undo").addEventListener("tap",function(){M.onUndoTap()})};
gs.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gs.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],gs.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],gs);
_.z(gs,"ytd-notification-text-renderer",function(){if(qC9!==void 0)return qC9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qC9=M},{mode:1});var Gr8;var B5=function(){var M=_.Q.apply(this,arguments)||this;M.mouseOverDelayJobId=0;M.fadeInImageDelayJobId=0;M.startTimeMs=-1;M.loadingStartTimeMs=-1;M.loadingEndTimeMs=-1;M.hasVideoPreview=!1;return M};
_.l(B5,_.Q);_.N=B5.prototype;_.N.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.N.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.N.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.N.showThumbnail=function(){var M=this;this.csn=_.Cx();_.lO("fmth");_.r8.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.RM(_.r8,function(){M.loadingStartTimeMs=(0,_.d8)();var q=_.f_(M.hostElement).querySelector("#thumbnail");q.complete?M.displayMouseOverImage():q.addEventListener("load",_.qs(M,M.displayMouseOverImage))},150):_.HE(_.f_(this.hostElement).querySelector("#play"),"show",!0)};
_.N.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.N.onTap=function(){this.removeVideoPreview()};
_.N.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var M=this.videoId,q=this.csn,G=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,K=this.startTimeMs,n=this.hasVideoPreview,E=_.yx(this.trackingParams),p={isMovingThumbnail:n};n&&K>0&&(G>0&&(p.movingThumbnailLoadingDurationMs=Math.round(G)),p.durationHoveredMs=Math.round((0,_.d8)()-K));M&&(p.videoId=M);_.bO(q,E,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:p});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.N.removeVideoPreview=function(){_.r8.cancelJob(this.mouseOverDelayJobId);_.r8.cancelJob(this.fadeInImageDelayJobId);var M=_.f_(this.hostElement).querySelector("#thumbnail");_.HE(M,"fade-in",!1);M.removeEventListener("load",_.qs(this,this.displayMouseOverImage));M=_.f_(this.hostElement).querySelector("#play");_.HE(M,"fade-in",!1);_.HE(M,"show",!1)};
_.N.displayMouseOverImage=function(){var M=_.f_(this.hostElement).querySelector("#thumbnail"),q=_.f_(this.hostElement).querySelector("#play");this.isImageAvailable(M)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.d8)(),this.startTimeMs=(0,_.d8)(),this.fadeInImageDelayJobId=_.RM(_.r8,function(){_.HE(M,"fade-in",!0)},50)):_.HE(q,"fade-in",!0)};
_.N.computeThumbnail=function(M,q){var G;M&&M.movingThumbnailDetails&&M.movingThumbnailDetails.thumbnails&&q?G=_.TE(M.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):G=q?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(G)return _.SM(G)};
_.N.isImageAvailable=function(M){return!(!M.src||M.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||M.naturalWidth===120)};
B5.prototype.onTap=B5.prototype.onTap;B5.prototype.dataChanged=B5.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],B5.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],B5.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],B5.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],B5.prototype,"csn",void 0);_.T([_.B(),_.r("design:type",Object)],B5.prototype,"trackingParams",void 0);
_.T([_.B(),_.r("design:type",String)],B5.prototype,"videoId",void 0);_.T([_.B(),_.r("design:type",Boolean)],B5.prototype,"isAttachedAndDataSet",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],B5.prototype,"dataChanged",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],B5.prototype,"onTap",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],B5);
_.z(B5,"ytd-moving-thumbnail-renderer",function(){if(Gr8!==void 0)return Gr8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Gr8=M},{mode:1});var KnP;_.f5=function(M){this.hostElement=M;this.eventSink=null;this.eventList=[]};
_.f5.prototype.shouldForward=function(){var M,q;return(q=(M=this.eventSink)==null?void 0:M.isConnected)!=null?q:document.body.contains(this.eventSink)};
_.f5.prototype.start=function(M,q){this.eventSink&&this.stop();for(var G=0;G<M.length;G++)this.hostElement.addEventListener(M[G],_.qs(this,this.forwardEvent));var K;this.eventSink=(K=q.hostElement)!=null?K:q;this.eventList=M};
_.f5.prototype.stop=function(){for(var M=0;M<this.eventList.length;M++)this.hostElement.removeEventListener(this.eventList[M],_.qs(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.f5.prototype.forwardEvent=function(M,q){this.shouldForward()&&(M.stopPropagation(),this.eventSink instanceof Element?_.jP(this.eventSink,M.type,q):_.j1(new _.bj("eventSink is not an element")))};_.QE={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.f5(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(M,q){this.forwarder_.start(M,q)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var I4=function(){return _.Q.apply(this,arguments)||this};
_.l(I4,_.Q);_.N=I4.prototype;_.N.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=_.R9("HTML_DIR")==="rtl"?"right":"left"};
_.N.dataChanged=function(){this.popupOpen=!1};
_.N.computeAriaLabel=function(M){return _.C(M,WHp).label};
_.N.onTap=function(M){M.stopPropagation();M.preventDefault();this.data.command&&_.AL().resolve(_.vR).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.N.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.N.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
I4.prototype.onPopupClosed=I4.prototype.onPopupClosed;I4.prototype.onPopupOpened=I4.prototype.onPopupOpened;I4.prototype.onTap=I4.prototype.onTap;I4.prototype.dataChanged=I4.prototype.dataChanged;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],I4.prototype,"eventForwardingBehavior",void 0);_.T([_.P(_.Z4),_.r("design:type",Object)],I4.prototype,"ironButtonState",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],I4.prototype,"componentBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],I4.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:-1}),_.r("design:type",Number)],I4.prototype,"tabindex",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.r("design:type",Object)],I4.prototype,"ariaLabel",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],I4.prototype,"disableTooltips",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],I4.prototype,"popupOpen",void 0);
_.T([_.B(),_.r("design:type",Element)],I4.prototype,"eventSink",void 0);_.T([_.ET("#tooltip"),_.r("design:type",Object)],I4.prototype,"tooltip",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],I4.prototype,"dataChanged",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],I4.prototype,"onTap",null);
_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],I4.prototype,"onPopupOpened",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],I4.prototype,"onPopupClosed",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],I4);
_.z(I4,"ytd-thumbnail-overlay-button-renderer",function(){if(KnP!==void 0)return KnP;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return KnP=M},{mode:1});var nZ2;var Dd=function(){return _.Q.apply(this,arguments)||this};
_.l(Dd,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Dd.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Dd.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Dd.prototype,"disableAnimation",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Dd.prototype,"rounded",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Dd.prototype,"transparentBackground",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Dd.prototype,"noPadding",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Dd);
_.z(Dd,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(nZ2!==void 0)return nZ2;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return nZ2=M},{mode:1});var EZB;var u0=function(){return _.Q.apply(this,arguments)||this};
_.l(u0,_.Q);u0.prototype.computeIconPosition=function(M){return this.get("iconPosition",M)||null};
u0.prototype.computeIconStyle=function(M){return this.get("iconStyle",M)||null};
u0.prototype.computeIsIconStyleFilled=function(M){if(!M)return!1;var q;return M.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((q=M.icon)==null?void 0:q.iconType)==="ERROR_BLACK"};
_.T([_.B(),_.r("design:type",Object)],u0.prototype,"data",void 0);_.T([_.B({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.r("design:type",Object)],u0.prototype,"iconPosition",void 0);_.T([_.B({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.r("design:type",Object)],u0.prototype,"iconStyle",void 0);_.T([_.B({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],u0.prototype,"iconStyleFilled",void 0);
_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],u0);
_.z(u0,"ytd-thumbnail-overlay-icon-renderer",function(){if(EZB!==void 0)return EZB;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return EZB=M},{mode:1});var NGM;var JR=function(){return _.Q.apply(this,arguments)||this};
_.l(JR,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],JR.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],JR);
_.z(JR,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(NGM!==void 0)return NGM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return NGM=M},{mode:1});var krv;var Zd=function(){var M=_.Q.apply(this,arguments)||this;M.isPreviewLoading=!1;return M};
_.l(Zd,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Zd.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Zd.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Zd.prototype,"isPreviewLoading",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Zd);
_.z(Zd,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(krv!==void 0)return krv;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return krv=M},{mode:1});var p$J;var b0=function(){return _.Q.apply(this,arguments)||this};
_.l(b0,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],b0.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],b0.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],b0);
_.z(b0,"ytd-thumbnail-overlay-pinking-renderer",function(){if(p$J!==void 0)return p$J;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return p$J=M},{mode:1});var ywp;var U2=function(){var M=_.Q.apply(this,arguments)||this;M.disableTooltips=!1;M.isLoading=!1;M.useExpandableTooltip=!1;M.toggled=!1;M.hovered=!1;M.mouseoverDelayJobId=0;M.toggleDelayJobId=0;M.expandAnimationDelayJobId=0;return M};
_.l(U2,_.Q);_.N=U2.prototype;_.N.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");_.f_(this.hostElement).querySelector("#tooltip").position=_.R9("HTML_DIR")==="rtl"?"right":"left"};
_.N.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.r8.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.r8.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.r8.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.N.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.r8.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.r8.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.r8.cancelJob(this.expandAnimationDelayJobId)};
_.N.computeIcon=function(M,q,G){return(M=G?q:M)&&M.iconType?_.H4(M.iconType):void 0};
_.N.computeAriaLabel=function(M,q,G){return _.C(G?q:M,WHp).label};
_.N.computeTooltip=function(M,q,G){return G?q:M};
_.N.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.N.computeIconOnHover=function(M,q){if((M==null?0:M.iconType)&&!q)return _.H4(M.iconType)};
_.N.onTap=function(M){var q=this;M.stopPropagation();M.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(M=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(M),this.useExpandableTooltip&&(this.toggleDelayJobId=_.RM(_.r8,function(){q.hovered=!1;q.data&&!q.data.toggledServiceEndpoint&&(q.expandAnimationDelayJobId=_.RM(_.r8,function(){q.set("data.isToggled",
!1)},200))},2E3))};
_.N.onMouseenter=function(){var M=this;this.mouseoverDelayJobId=_.RM(_.r8,function(){M.hovered=!0},300)};
_.N.onMouseleave=function(){_.r8.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.N.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.N.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.N.onServiceRequestCompleted=function(M,q){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(q)||this.set("data.isToggled",!this.data.isToggled)};
_.N.serviceRequestWasSuccessful=function(M){return _.C(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.ri)?M.data.status==="STATUS_SUCCEEDED":!0};
U2.prototype.onServiceRequestCompleted=U2.prototype.onServiceRequestCompleted;U2.prototype.onPopupClosed=U2.prototype.onPopupClosed;U2.prototype.onPopupOpened=U2.prototype.onPopupOpened;U2.prototype.onMouseleave=U2.prototype.onMouseleave;U2.prototype.dataChanged=U2.prototype.dataChanged;_.T([_.P(_.Z4),_.r("design:type",Object)],U2.prototype,"ironButtonState",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],U2.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],U2.prototype,"ytEventForwardingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],U2.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.r("design:type",Object)],U2.prototype,"ariaLabel",void 0);_.T([_.B(),_.r("design:type",Object)],U2.prototype,"disableTooltips",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],U2.prototype,"popupOpen",void 0);_.T([_.B(),_.r("design:type",Object)],U2.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Element)],U2.prototype,"eventSink",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],U2.prototype,"useExpandableTooltip",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.r("design:type",Object)],U2.prototype,"toggled",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],U2.prototype,"hovered",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.r("design:type",Object)],U2.prototype,"iconOnHover",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U2.prototype,"dataChanged",null);
_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U2.prototype,"onMouseleave",null);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U2.prototype,"onPopupOpened",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U2.prototype,"onPopupClosed",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],U2.prototype,"onServiceRequestCompleted",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],U2);
_.z(U2,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(ywp!==void 0)return ywp;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ywp=M},{mode:_.VO("kevlar_poly_si_batch_j053")?1:2});var Lnx;var YCM=_.U(function(M){var q=M.data;var G=M.thumbnailSize;var K=function(){return q().enableSegmentView};
return _.W("yt-thumbnail-overlay-progress-bar-view-model",{class:_.Hb("ytThumbnailOverlayProgressBarHost",function(){return zcu(G==null?void 0:G())})},_.W(_.d,{cond:K,
then:function(){return _.W("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.W("div",{class:_.vO("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+q().startPercent+"%"}}),_.W("div",{class:_.vO("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+q().segmentDurationPercent+"%"}},_.W("div",{class:_.vO("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.W("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.W("div",null," ",function(){return q().segmentLabel})),_.W("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.W("div",{class:_.vO("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.W(_.d,{cond:function(){return!K()&&q().startPercent},
then:function(){var n={};return _.W("div",{class:_.vO("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(n.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.w("web_enable_modern_progress_bar_overlay"),n))},_.W("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+q().startPercent+"%"}}))}}))},"Ea");
YCM.idomCompat=!0;var WnM=_.U(function(M){var q=_.qo(),G=_.pp(function(n){var E,p,y;a:{var Y=(E=M.data())==null?void 0:E.animationActivationTargetId;E=((p=M.data())==null?void 0:p.animationActivationEntityKey)||"";p=(y=M.data())==null?void 0:y.animationActivationEntitySelectorType;if(E&&Y)switch(p){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":n=_.e5(n,E);y=_.AL().resolve(_.WR(_.lq));Y=!!(n&&n.videoId===Y&&(y==null?0:y.isMiniplayerActive()));Y={activated:Y,playAnimation:Y&&n.playerState==="PLAYER_STATE_PLAYING"};
break a}Y=void 0}return Y});
_.zL(function(){var n;if((n=G())==null?0:n.activated){var E;if((E=G())==null?0:E.playAnimation){var p;(p=q.lottieEl)==null||p.goToAndPlay(0)}else{var y;(y=q.lottieEl)==null||y.goToAndStop(0)}}},"DbQiXd");
var K=function(){var n,E=!((n=G())==null||!n.activated);if(M.data()){n=M.data();var p=void 0;n.icon&&(p=_.NRF(n.icon),p=AIu(p));var y=void 0,Y;if((Y=n.backgroundColor)==null?0:Y.lightTheme){var A;y={backgroundColor:ar((A=n.backgroundColor)==null?void 0:A.lightTheme,"0.8")}}if(n.text||p||E){if(E&&n.lottieData&&q){A=n.lottieData;var v,h,t;Y={animationConfig:{name:A.url,path:A.url,autoplay:(v=A.settings)==null?void 0:v.autoplay,loop:(t=(h=A.settings)==null?void 0:h.loop)!=null?t:!0},animationRef:q}}else Y=
void 0;if(E)v=17;else b:switch(n.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":v=18;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":v=19;break b;default:v=17}E={type:v,text:E&&n.animatedText?n.animatedText:n.text,icon:p,customColors:y,animation:Y}}else E=void 0}else E=void 0;return E};
return _.W("yt-thumbnail-badge-view-model",{class:_.Hb("ytThumbnailBadgeViewModelHost",M.class)},_.W(_.d,{cond:K,then:function(){return _.W(_.VT,{data:function(){return K()}})}}))},"Ga");var AwJ=_.U(function(M){var q={},G={};return _.W("yt-thumbnail-bottom-overlay-view-model",{class:_.Hb("ytThumbnailBottomOverlayViewModelHost",(q.ytThumbnailBottomOverlayViewModelHostBackground=function(){return M.data().enableGradientBackground},q))},_.W(_.yu,{data:function(){return M.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(K){return _.W(YCM,{data:K.data,
thumbnailSize:M.thumbnailSize})}}),_.W("div",{class:_.Hb("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var K;
return mfy((K=M.thumbnailSize)==null?void 0:K.call(M))},(G.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var K;
return(K=M.isClip)==null?void 0:K.call(M)},G.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var K;
return!_.w("web_enable_modern_progress_bar_overlay")&&((K=M.thumbnailSize)==null?void 0:K.call(M))==="small"},G))},_.W(_.yu,{data:function(){return M.data().badge}},{thumbnailBadgeViewModel:function(K){return _.W(WnM,{data:K.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.W(_.yu,{data:function(){return M.data().badges}},{thumbnailBadgeViewModel:function(K){return _.W(WnM,{data:K.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"Ha");
AwJ.idomCompat=!0;_.S5(AwJ,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.xj,thumbnailSize:_.xj,isClip:_.xj}});var ecY={calledOnce:!1,state:"visible"},$f4={calledOnce:!1,state:"hidden"};var xL=_.U(function(M){var q=M.data;var G=M.className;M=M.alwaysShow;var K=_.ryy(),n={};return _.W("thumbnail-hover-overlay-view-model",{el:_.bm(_.CL(function(){return q().rendererContext})),
class:_.Hb("ytThumbnailHoverOverlayViewModelHost",G,(n.ytThumbnailHoverOverlayViewModelHostForceHover=M,n)),"aria-label":function(){var E;return(E=_.C(q().rendererContext,_.NQ))==null?void 0:E.label},
role:function(){return _.O0(q().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.O0(q().rendererContext)!==void 0?0:void 0},
"on:keypress":K},_.W("div",{class:_.Hb("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(q().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var E="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:E="ytThumbnailHoverOverlayViewModelStyleCover"}return E})},_.W(_.d,{cond:function(){return q().icon},
then:function(E){return _.W(_.Jj,{data:E,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.W(_.d,{cond:function(){return q().text},
then:function(E){return _.W(_.Ft,{text:E,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"Ja");
xL.idomCompat=!0;var dWf=_.U(function(M){var q=M.data;return _.W(_.yu,{data:function(){return q==null?void 0:q().overlays}},{thumbnailHoverOverlayViewModel:xL})},"Ka");
dWf.idomCompat=!0;var vZf={};var hNP=_.U(function(M){var q=M.data;var G=M.image;var K=M.state;var n=M.iconType;var E=M.overlays;var p=M.isOverlay;var y=_.yw("div");M=_.k(_.lQ(!0,void 0,"AA4e7b"));var Y=M.next().value,A=M.next().value,v=function(){return!!q().onTap},h=_.bg(n,"LIVE");
_.zL(function(){var O=q();requestAnimationFrame(function(){if(y.value===null)var a=!0;else{var g=y.value;a=O.badgeText;var D=qVy(O.size);a in vZf?g=vZf[a]:(g=g.clientWidth,vZf[a]=g);(a=g>D)?y.value.style.display="none":y.value.style.visibility="visible"}A(a)})},"vNdN8b");
var t=function(){var O={};return O["yt-spec-avatar-shape__image"]=!0,O["yt-spec-avatar-shape__image--ads-app"]=q().type===1,O["yt-spec-avatar-shape__image--inscribed-square"]=q().type===2,O};
return _.W("yt-avatar-shape",null,_.W("div",{el:_.bm(KWw(v,{keydown:function(O){if(O.key==="Enter"){var a;(a=O.currentTarget)==null||a.click()}},
click:function(O){var a,g;return void((g=(a=q()).onTap)==null?void 0:g.call(a,O))}})),
class:function(){var O={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},a=q();O=(O[a.clusterLayoutConfig?NHy(a.clusterLayoutConfig):kTF(a.size)]=!0,O["yt-spec-avatar-shape__button--tappable"]=v(),O);(a=q().avatarButtonCustomClassName)&&(O[a]=!0);return _.vO(O)},
"aria-label":function(){return v()?q().accessibilityText:""},
role:function(){return v()?"button":void 0},
tabindex:function(){return v()?0:void 0}},_.W("div",{class:function(){var O,a=q(),g=K==null?void 0:K(),D=p==null?void 0:p(),J=!((O=a.decorations)==null||!O.includes(2)||a.size!=="medium"&&a.size!=="large"),Z=a.size==="tiny"||a.size==="extra-small",V,S,m,R,se={};
O=(se["yt-spec-avatar-shape--live-ring"]=!!(((V=a.decorations)==null?0:V.includes(0))&&yNw(a.size)),se["yt-spec-avatar-shape--stories-watched"]=J&&!(g==null||!g.storiesWatched),se["yt-spec-avatar-shape--stories-unwatched"]=J&&!(g==null?0:g.storiesWatched),se["yt-spec-avatar-shape--background-border"]=LWs(a.decorations)&&!Z,se["yt-spec-avatar-shape--background-border-thin"]=LWs(a.decorations)&&Z,se["yt-spec-avatar-shape__on-select-border"]=!((S=a.decorations)==null||!S.includes(4)),se["yt-spec-avatar-shape__white-border"]=
!((m=a.decorations)==null||!m.includes(5)),se["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((R=a.decorations)==null?0:R.includes(5))&&Z),se["yt-spec-avatar-shape--is-overlay"]=!!D,se);return _.vO(O)},
style:function(){a:{var O=q().clusterLayoutConfig;if(O){b:{var a=O.numAvatarsInCluster;var g=O.avatarIndex;if(g!==a-1){switch(O.clusterSize){case "small":O="32";break;case "medium":O="36";break;case "40":O="40";break;default:a=void 0;break b}a="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+O+"x"+O+"_avatars_"+a+"_index_"+g+".svg"}else a=void 0}if(a){a=_.Kp({"-webkit-mask-image":"url("+a+")","mask-image":"url("+a+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}a=void 0}return a}},_.W("div",{class:function(){var O={};
var a=q();O=(O[a.clusterLayoutConfig?n3s(a.clusterLayoutConfig):E3j(a.size)]=!0,O["yt-spec-avatar-shape--no-margin"]=LWs(q().decorations),O["yt-spec-avatar-shape--square"]=q().type===2,O);return _.vO(O)}},_.W(_.Jj,{data:G,
alt:function(){return!v()&&q().accessibilityText?q().accessibilityText:""},
targetWidth:function(){return piy(q().size)},
targetHeight:function(){return piy(q().size)},
className:function(){return _.vO(t())}}),_.W(_.d,{cond:function(){var O;
return((O=q().decorations)==null?void 0:O.includes(0))&&yNw(q().size)},
then:function(){return _.W("div",{class:function(){var O={};O=(O["yt-spec-avatar-shape__live-badge"]=!0,O["yt-spec-avatar-shape__live-badge--badge-small"]=q().size==="small",O["yt-spec-avatar-shape__live-badge--badge-medium"]=q().size==="medium"||q().size==="48",O["yt-spec-avatar-shape__live-badge--badge-large"]=q().size==="large",O["yt-spec-avatar-shape__live-badge--badge-extra-large"]=q().size==="extra-large"||q().size==="extra-extra-large"||q().size==="giant",O);return _.vO(O)}},_.W(_.d,{cond:function(){return q().badgeText},
then:function(O){return _.W("div",{class:"yt-spec-avatar-shape__badge-text",el:y},O)}}),_.W(_.d,{cond:Y,
then:function(){return _.W("div",{class:"yt-spec-avatar-shape__badge-icon"},_.W(_.np,{icon:h,size:function(){a:switch(q().size){case "extra-large":var O=16;break a;default:O=13}return O}}))}}))}}),_.W(_.d,{cond:function(){var O,a;
return((O=q().decorations)==null?void 0:O.includes(1))||((a=q().decorations)==null?void 0:a.includes(0))&&!yNw(q().size)},
then:function(){return _.W("div",{class:function(){var O=q(),a,g,D={};var J=(D["yt-spec-avatar-shape__live-dot"]=!((a=O.decorations)==null||!a.includes(0)||yNw(O.size)),D["yt-spec-avatar-shape__new-content"]=!((g=O.decorations)==null||!g.includes(1)),D);return _.vO(J)}})}}),_.W(_.d,{cond:function(){return!!E},
then:function(){return _.W("div",{class:function(){var O={};O=Object.assign((O["yt-spec-avatar-shape__image-overlays"]=!0,O),t());return _.vO(O)}},E==null?void 0:E())}})))))},"Na");
hNP.idomCompat={callbacks:{overlays:!0}};_.zo=_.U(function(M){function q(){G().endpoint&&_.Pb(G().endpoint)}
var G=M.data;var K=M.decorations;var n=M.avatarButtonCustomClassName;var E=M.isOverlay;var p=M.clusterLayoutConfig;return _.W("avatar-view-model",null,_.W(_.d,{cond:function(){return G().image},
then:function(y){return _.W(hNP,{data:function(){return WW$({data:G(),onTap:G().endpoint?q:void 0,decorations:K==null?void 0:K(),badgeText:void 0,accessibilityText:G().accessibilityText,avatarButtonCustomClassName:n==null?void 0:n(),clusterLayoutConfig:p==null?void 0:p()})},
image:y,iconType:"RADAR_LIVE",overlays:function(){return _.W(dWf,{data:G})},
isOverlay:E})}}))},"Oa");
_.zo.idomCompat=!0;_.mF=_.U(function(M){var q=M.data;M=M.className;var G=_.yw("yt-decorated-avatar-view-model"),K=function(){return _.C(q().avatar,_.aZ)},n=_.gY(function(){var E,p=q(),y=K(),Y=_.O0(q().rendererContext),A=(E=G.value)!=null?E:void 0,v;
if(y){A={data:p,avatar:y,onTap:Y,element:A};E=A.data;p=A.avatar;y=A.onTap;Y=A.element;A=A.commandController;y=y?h5Y(y,Y,A):void 0;Y=[];E.liveData&&Y.push(0);var h;A=(h=E.liveData)==null?void 0:h.liveBadgeText;h=(v=_.C(E.rendererContext,_.NQ))==null?void 0:v.label;v=WW$({data:p,onTap:y,decorations:Y,badgeText:A,accessibilityText:h?h:E.a11yLabel})}else v={size:"medium"};return v},void 0,"c00kWd");
return _.W("yt-decorated-avatar-view-model",{class:_.Hb("ytDecoratedAvatarViewModelHost",M),el:G},_.W(_.d,{cond:function(){var E;return(E=K())==null?void 0:E.image},
then:function(E){return _.W(hNP,{data:n,image:E,iconType:"RADAR_LIVE",overlays:function(){return _.W(dWf,{data:K})}})}}))},"Pa");
_.mF.idomCompat=!0;_.Sf=_.U(function(M){var q=function(){var y;return Object.assign({},M.data(),(y=M.overrides)==null?void 0:y.call(M))},G=function(){return _.wx(q().rendererContext)},K=function(){var y=q().avatars,Y,A;
return(A=(Y=(y==null?0:y[0])?_.C(y[0],_.aZ):void 0)==null?void 0:Y.avatarImageSize)!=null?A:"AVATAR_SIZE_UNKNOWN"},n=function(){return v34(q())},E=function(){if(q().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var y=void 0;
else if((y=M.decorations)==null?0:y.call(M))y=M.decorations();else{y=q();var Y=0;y.avatars&&(Y+=y.avatars.length);y.decoratedText&&(Y+=1);y=Y>1?[3]:[]}return y},p={};
return _.W("yt-avatar-stack-view-model",{el:_.bm(_.CL(function(){return q().rendererContext})),
class:_.Hb("yt-avatar-stack-view-model",M.className,(p["yt-avatar-stack-view-model--tappable"]=G,p["yt-avatar-stack-view-model--is-overlay"]=M.isOverlay,p["yt-avatar-stack-view-model--medium-text"]=M.useMediumText,p)),tabindex:function(){return G()?0:void 0},
role:function(){return G()?"link":void 0},
"aria-label":function(){var y,Y;return(Y=(y=_.C(q().rendererContext,_.NQ))==null?void 0:y.label)!=null?Y:""}},_.W(_.d,{cond:function(){var y;
return q().avatars&&!((y=M.hideAvatar)==null?0:y.call(M))},
then:function(){return _.W("div",{class:"yt-avatar-stack-view-model__avatars"},_.W(_.d,{cond:function(){return q().decoratedText},
then:function(y){var Y={};return _.W("div",{class:_.Hb("yt-avatar-stack-view-model__text-container",(Y["yt-avatar-stack-view-model__text-container--thin-border"]=function(){return K()==="AVATAR_SIZE_XXS"||K()==="AVATAR_SIZE_XS"},Y["yt-avatar-stack-view-model__text-container--thin-border-overlay"]=function(){var A;
return((A=M.isOverlay)==null?void 0:A.call(M))&&(K()==="AVATAR_SIZE_XXS"||K()==="AVATAR_SIZE_XS")},Y)),
style:_.Kp({width:function(){return n().avatarSizeInPx+"px"},
height:function(){return n().avatarSizeInPx+"px"}})},_.W(_.Ft,{text:y,
className:"yt-avatar-stack-view-model__avatar-decorated-text"}))}}),_.W("div",{style:function(){return _.Kp(n().avatarStackStyle)()},
class:function(){return n().avatarStackClass}},_.W(_.yu,{data:function(){return n().avatars.reverse()}},{avatarViewModel:function(y,Y){return _.W("div",{style:function(){var A,v;
return _.Kp((v=(A=n()).avatarStyle)==null?void 0:v.call(A,Y()))()},
class:function(){return n().avatarClass}},_.W(_.zo,{data:y.data,
decorations:E,avatarButtonCustomClassName:function(){return n().avatarButtonCustomClassName},
isOverlay:M.isOverlay,clusterLayoutConfig:function(){var A,v;return(v=(A=n()).clusterLayoutConfig)==null?void 0:v.call(A,Y())}}))},
decoratedAvatarViewModel:function(y,Y){return _.W("div",{style:function(){var A,v;return _.Kp((v=(A=n()).avatarStyle)==null?void 0:v.call(A,Y()))()},
class:function(){return n().avatarClass}},_.W(_.mF,{data:y.data}))}})))}}),_.W(_.d,{cond:function(){return q().text},
then:function(y){return _.W(_.Ft,{text:y,className:"yt-avatar-stack-view-model__avatar-stack-text",linkInheritColor:!0})}}))},"Qa");
_.Sf.idomCompat=!0;_.S5(_.U(function(M){var q=M.data;var G=M.thumbnailSize;return _.W("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.W("div",{class:_.Hb("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return tte(G==null?void 0:G())})},_.W(_.yu,{data:function(){return q().avatarStack}},{avatarStackViewModel:function(K){return _.W(_.Sf,{data:K.data,
decorations:[5]})}})))},"Ra"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.Hz,
thumbnailSize:_.Hz}});var tk8=_.U(function(M){M=_.UT(M,{hidden:!1});var q=M.data;M=M.hidden;return _.W("yt-thumbnail-overlay-title-view-model",{class:_.Hb("ytThumbnailOverlayTitleViewModelHost",function(){a:switch(q().position){case "THUMBNAIL_OVERLAY_TITLE_POSITION_BOTTOM":var G="ytThumbnailOverlayTitleViewModelPositionBottom";break a;default:G="ytThumbnailOverlayTitleViewModelPositionTop"}return G}),
hidden:M},_.W(_.d,{cond:function(){return q().leadingContent},
then:function(G){return _.W("div",{class:"ytThumbnailOverlayTitleViewModelLeadingContent"},_.W(_.yu,{data:G},{decoratedAvatarViewModel:_.mF}))}}),_.W("div",null,_.W(_.Ft,{text:function(){return q().title},
className:"ytThumbnailOverlayTitleViewModelTitle"}),_.W(_.d,{cond:function(){return q().subtitle},
then:function(){return _.W(_.Ft,{text:function(){return q().subtitle},
className:"ytThumbnailOverlayTitleViewModelSubtitle"})}})))},"Sa");
tk8.idomCompat=!0;_.S5(tk8,"yt-thumbnail-overlay-title-view-model",{props:{data:_.Hz,hidden:_.Hz}});_.OZB=_.U(function(M){M=_.UT(M,{isClip:!1});var q=M.data,G=M.thumbnailSize,K={};return _.W("yt-thumbnail-overlay-badge-view-model",{class:_.Hb("yt-thumbnail-overlay-badge-view-model",function(){a:switch(q().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var n="yt-thumbnail-overlay-badge-view-model--top-start";break a;default:n="yt-thumbnail-overlay-badge-view-model--bottom-end"}return n},function(){return OtD(G==null?void 0:G())},(K["yt-thumbnail-overlay-badge-view-model--clip"]=M.isClip,
K))},_.W(_.yu,{data:function(){return q().thumbnailBadges}},{thumbnailBadgeViewModel:function(n){return _.W(WnM,{data:n.data,
class:"yt-thumbnail-overlay-badge-view-model__badge"})}}))},"Ta");
_.OZB.idomCompat=!0;_.S5(_.OZB,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.Hz,thumbnailSize:_.Hz,isClip:_.Hz}});var w$l=_.U(function(M){var q=M.data;M=M.hidden;var G=_.gY(function(){return q().indicatorCount||0},void 0,"AbKnMc"),K={};
return _.W("yt-page-indicator-view-model",{class:_.Hb("ytPageIndicatorViewModelHost",(K.ytPageIndicatorViewModelIndicatorHidden=function(){return!q().indicatorCount},K)),
hidden:M},_.W(_.bf,{each:function(){return Array(G())}},function(n,E){var p={};
return _.W("div",{class:_.Hb("ytPageIndicatorViewModelIndicator",(p.ytPageIndicatorViewModelIndicatorSelected=function(){return q().selectedIndex===E()},p))})}))},"Ua");
w$l.idomCompat=!0;_.S5(w$l,"yt-page-indicator-view-model",{props:{data:_.Hz,hidden:_.Hz}});var To=function(){var M=_.Q.apply(this,arguments)||this;M.eventSink=function(){return M};
M.disableInteraction=!1;M.noRoundedCorners=!1;M.isPreviewLoading=!1;M.isOriginalAspectRatio=!1;M.computedObjectFit=!1;M.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return M};
_.l(To,_.Q);_.N=To.prototype;
_.N.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:_.w("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"}}};
_.N.onImageLoaded=function(){this.loaded=!0};
_.N.onImageUnloaded=function(){this.loaded=!1};
_.N.computeRichThumbnail=function(M,q,G,K){if(M&&q&&!K&&!_.w("disable_moving_thumbs_handling")&&!G)return q};
_.N.computeImageWidth=function(M,q){return q||9999};
_.N.computeIsOriginalAspectRatio=function(M){return M};
_.N.computeIsLive=function(M){if(M==null?0:M.badges)for(var q=0;q<M.badges.length;q++){var G=M.badges[q];if(G.metadataBadgeRenderer&&G.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(M==null?0:M.thumbnailOverlays)for(q=0;q<M.thumbnailOverlays.length;q++)if(G=M.thumbnailOverlays[q],G.thumbnailOverlayTimeStatusRenderer&&G.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.N.computeObjectFit=function(M,q){return q||(M?"CONTAIN":"")};
_.N.computeNavigationEndpoint=function(M,q,G){return M?q:G};
_.N.computeHasClip=function(M){M=_.k(M||[]);for(var q=M.next();!q.done;q=M.next())if(q.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.N.computeOverlayColor=function(M){var q;return(M==null?0:(q=M.darkColorPalette)==null?0:q.section2Color)?M.darkColorPalette.section2Color:M==null?void 0:M.sampledThumbnailColor};
_.Yd.Object.defineProperties(To.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return z$y(this.width)}}});
To.prototype.onImageUnloaded=To.prototype.onImageUnloaded;To.prototype.onImageLoaded=To.prototype.onImageLoaded;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],To.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(ejM),_.r("design:type",Object)],To.prototype,"ytdThumbnailBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],To.prototype,"componentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],To.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],To.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],To.prototype,"circular",void 0);
_.T([_.B({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.r("design:type",Object)],To.prototype,"richThumbnail",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.r("design:type",Boolean)],To.prototype,"hasClip",void 0);_.T([_.B(),_.r("design:type",Object)],To.prototype,"eventSink",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],To.prototype,"queued",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],To.prototype,"richGridThumbnail",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],To.prototype,"useExpandableTooltip",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],To.prototype,"useUntranslatedNavigationEndpoint",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],To.prototype,"disableInteraction",void 0);
_.T([_.B({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.r("design:type",Object)],To.prototype,"computedNavigationEndpoint",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],To.prototype,"nowPlayingEqualizerOnly",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],To.prototype,"hidePlaybackStatus",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],To.prototype,"objectFit",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],To.prototype,"noRoundedCorners",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],To.prototype,"watchFeedThumbnail",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],To.prototype,"isPreviewLoading",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.r("design:type",Object)],To.prototype,"isOriginalAspectRatio",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.r("design:type",Object)],To.prototype,"computedObjectFit",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.r("design:type",Boolean)],To.prototype,"isLiveVideo",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],To.prototype,"loaded",void 0);_.T([_.B({computed:"computeOverlayColor(data.thumbnail)"}),_.r("design:type",Object)],To.prototype,"overlayColor",void 0);_.T([_.B({selector:_.u$$}),_.r("design:type",Boolean)],To.prototype,"inlinePreviewIsEnabled",void 0);_.T([_.B(),_.r("design:type",Number)],To.prototype,"width",void 0);
_.T([_.c("inlinePreviewIsEnabled"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],To.prototype,"isPreviewDisabled",null);_.T([_.c("width"),_.r("design:type",String),_.r("design:paramtypes",[])],To.prototype,"thumbnailSize",null);_.T([_.GQ("image-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],To.prototype,"onImageLoaded",null);
_.T([_.GQ("image-unloaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],To.prototype,"onImageUnloaded",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-thumbnail"})],To);
var CEf=_.jo()(To,"ytd-thumbnail",function(){if(Lnx===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);Lnx=M}M=Lnx;return M},{callbackProps:["onClick"],
allowedProps:"data disableInteraction noRoundedCorners objectFit useExpandableTooltip useUntranslatedNavigationEndpoint width circular watchFeedThumbnail queued".split(" "),allowedPropsFromBehaviors:"height bottomSidePanel size disableRounding disableNowPlaying disableTooltips useHoveredProperty hovered addBackground nowPlaying isVideoPlaying".split(" "),mode:2});var a5$=function(M){var q=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$15032_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$15032_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(G){aRp(q,G)};
this.onLockupMouseLeaveFn=function(G){G=G.relatedTarget;var K,n;((K=document.getElementsByTagName("ytd-video-preview"))==null?0:(n=K.item(0))==null?0:n.contains(G))||(q.terminateVideoPreview(),rs(q))};
this.onThumbnailMouseDownFn=function(){q.terminateVideoPreview();rs(q)};
this.onTouchStart=function(){q.JSC$15032_touched=!0};
this.mediaRenderer=M.mediaRenderer;this.thumbnailElement=M.thumbnailElement;this.lockupElement=M.lockupElement;this.videoPreviewOptsInput=M.videoPreviewOpts;oZ2(this);jf(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)):
_.j1(Error("Fh")):_.j1(Error("Gh")):lRI(this)},JY=function(M){lRI(M);
var q;(q=M.lockupElement)==null||q.removeEventListener("mouseenter",M.onMouseMoveFn);var G;(G=M.lockupElement)==null||G.removeEventListener("mouseleave",M.onLockupMouseLeaveFn);var K;(K=M.lockupElement)==null||K.removeEventListener("touchstart",M.onTouchStart);var n;(n=M.thumbnailElement)==null||n.removeEventListener("mousedown",M.onThumbnailMouseDownFn);rs(M)},oZ2=function(M){M.inlinePreviewIsEnabledForUser=_.zw().getState().ui.inlinePreviewIsEnabled;
M.unsubscribeFromInlinePreviewIsEnabled=_.IQ(_.zw(),_.u$$,function(q){(M.inlinePreviewIsEnabledForUser=q)||rs(M)});
M.JSC$15032_unsubscribeFromInlinePreviewIsActive=_.IQ(_.zw(),_.Dty,function(q){(M.inlinePreviewIsActive=q)||rs(M)})},lRI=function(M){M.unsubscribeFromInlinePreviewIsEnabled();
M.unsubscribeFromInlinePreviewIsEnabled=function(){};
M.JSC$15032_unsubscribeFromInlinePreviewIsActive();M.JSC$15032_unsubscribeFromInlinePreviewIsActive=function(){}},aRp=function(M,q){q.buttons>0||(q=_.tL("kevlar_lockup_hover_delay",-1),M.JSC$15032_touched&&q>=0?(_.r8.cancelJob(M.videoPreviewJobId),M.videoPreviewJobId=_.RM(_.r8,function(){X$$(M)},q),M.JSC$15032_touched=!1):X$$(M))},Y8s=function(M){M.videoPreviewJobId=_.RM(_.r8,function(){return _.L(function(q){return q.yield(PEP(M,{isAutoplay:!0}),0)})})},X$$=function(M){!M.previewTriggered&&jf(M)&&
(M.inlinePreviewIsActive&&M.terminateVideoPreview(),M.previewTriggered=!0,M.mediaRenderer.isInlinePreviewTriggered=!0,_.r8.cancelJob(M.videoPreviewJobId),M.videoPreviewJobId=_.RM(_.r8,function(){return _.L(function(q){return q.yield(PEP(M),0)})}))},PEP=function(M,q){q=q===void 0?{}:q;
var G=q.isAutoplay===void 0?!1:q.isAutoplay;var K,n,E,p;return _.L(function(y){if(y.nextAddress==1){if(!jf(M))return y.return();K=M.getVideoPreviewOpts();if(!K)return y.return();G&&(K.isAutoplay=!0);return(E=(n=_.Rf(M.mediaRenderer.hostElement,"yt-open-video-preview-action",[K]))&&n[0])?y.yield(n[0],3):y.jumpTo(2)}y.nextAddress!=2&&(E=y.yieldResult===1);if(E){var Y=(p=M.mediaRenderer)==null?void 0:p.data;Y&&(CY4(Y)?delete Y.inlinePlayerData:"inlinePlaybackEndpoint"in Y&&delete Y.inlinePlaybackEndpoint)}_.gL(y)})};
a5$.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var M,q;if((q=(M=this.videoPreviewOptsInput)==null?void 0:M.videoPreviewData)!=null)M=q;else if(M=this.mediaRenderer.data)if(CY4(M))M={inlinePlaybackEndpoint:_.aM(M.inlinePlayerData.onVisible),navigationEndpoint:_.aM(M.onTap),thumbnail:"image"in M?M.image:M.thumbnail,thumbnailOverlays:void 0,accessibilityText:wis(M)};else if("multipleInlinePlaybackEndpoint"in M){var G=_.C(_.C(M.multipleInlinePlaybackEndpoint,gtB),BQM);if(G!=
null&&G.playerDescriptors){q=[];G=_.k(G.playerDescriptors);for(var K=G.next();!K.done;K=G.next())K=K.value,q.push({inlinePlaybackEndpoint:K.inlinePlaybackEndpoint,navigationEndpoint:K.navigationEndpoint,thumbnail:K.thumbnail,thumbnailOverlays:K.thumbnailOverlays,accessibilityText:wis(M)});M=q}else M=void 0}else M={inlinePlaybackEndpoint:M.inlinePlaybackEndpoint,navigationEndpoint:M.navigationEndpoint,thumbnail:M.thumbnail,thumbnailOverlays:M.thumbnailOverlays,accessibilityText:wis(M)};else M=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:M,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var jf=function(M){var q;if(q=M.inlinePreviewIsEnabledForUser)q=(M=M.mediaRenderer.data)?"inlinePlaybackEndpoint"in M&&M.inlinePlaybackEndpoint||CY4(M)&&M.inlinePlayerData||"multipleInlinePlaybackEndpoint"in M&&M.multipleInlinePlaybackEndpoint?!0:!1:!1;return q};
a5$.prototype.terminateVideoPreview=function(){_.VW(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var rs=function(M){_.r8.cancelJob(M.videoPreviewJobId);M.inlinePreviewIsActive=!1;M.previewTriggered=!1;M.mediaRenderer.isInlinePreviewTriggered=!1};var iZS=_.DQ(["#"]),VE=function(){var M=_.Q.apply(this,arguments)||this;M.isDisabled=!1;return M};
_.l(VE,_.Q);_.N=VE.prototype;
_.N.configureRendererStamper=function(){return{"data.menu":P5,"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"}}}};
_.N.attached=function(){this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.getMetadata=function(M){var q=[];if(M.metadataText&&Object.keys(M.metadataText).length>0){var G=this.ytRendererBehavior.getSimpleString(M.metadataText);M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&(G=_.A$(G,Number(M.upcomingEventData.startTime)));q.push(G)}else M.shortViewCountText&&q.push(this.ytRendererBehavior.getSimpleString(M.shortViewCountText)),M.publishedTimeText&&q.push(this.ytRendererBehavior.getSimpleString(M.publishedTimeText)),M.upcomingEventData&&M.upcomingEventData.upcomingEventText&&
(G=this.ytRendererBehavior.getSimpleString(M.upcomingEventData.upcomingEventText),q.push(_.A$(G,Number(M.upcomingEventData.startTime))));return q};
_.N.calculateBylineText=function(M){return M.shortBylineText?M.shortBylineText:M.bylineText?M.bylineText:null};
_.N.calculateIsDisabled=function(M){return!!M.isDisabled};
_.N.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M)||_.NLj(iZS)};
_.N.onDetailsTap=function(M){var q=this.data&&this.data.navigationEndpoint;q&&!_.b8(_.Zx(M)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.w("kevlar_grid_video_renderer_killswitch")?_.jP(this.hostElement,"yt-navigate",{endpoint:q}):this.ytComponentBehavior.resolveCommand(q))};
_.N.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15039_inlinePreviewHoverListener=oZ({mediaRenderer:this,lockupElement:_.f_(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.f_(this.hostElement).querySelector("ytd-thumbnail")})};
_.N.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15039_inlinePreviewHoverListener)==null||JY(M)};
_.N.computeThumbnailWidth=function(M,q){return q&&q>0?q:M?360:210};
_.N.computeNumBadgesInRow=function(M){var q;return((q=M.badges)==null?void 0:q.length)||0};
_.N.computeShowChannelThumbnail=function(M,q){var G;return q&&!!(M==null?0:(G=M.channelThumbnailSupportedRenderers)==null?0:G.channelThumbnailWithLinkRenderer)};
_.Yd.Object.defineProperties(VE.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$15039_inlinePreviewHoverListener)==null?0:jf(M))&&!!this.ytdLockupBehavior.lockupIsHovered}},
hasAttributedBylineText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.attributedBylineText)}},
showBylineText:{configurable:!0,enumerable:!0,get:function(){return!!this.bylineText&&!this.hasAttributedBylineText}}});
VE.prototype.dataChanged=VE.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],VE.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],VE.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],VE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],VE.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.P(_.HJ),_.r("design:type",Object)],VE.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],VE.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],VE.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],VE.prototype,"noEndpoints",void 0);_.T([_.B({computed:"calculateBylineText(data)"}),_.r("design:type",Object)],VE.prototype,"bylineText",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],VE.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],VE.prototype,"isDownloading",void 0);_.T([_.B({reflectToAttribute:!0,value:0}),_.r("design:type",Number)],VE.prototype,"width",void 0);_.T([_.B({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.r("design:type",Object)],VE.prototype,"isDisabled",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VE.prototype,"dataChanged",null);_.T([_.c("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],VE.prototype,"isHovered",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],VE.prototype,"hasAttributedBylineText",null);
_.T([_.c("bylineText","hasAttributedBylineText"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],VE.prototype,"showBylineText",null);_.T([_.b({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],VE);
_.z(VE,"ytd-grid-video-renderer",function(){if($P9!==void 0)return $P9;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return $P9=M},{mode:_.VO("kevlar_poly_si_batch_j047")?1:2});var cwv;var R4=function(){var M=_.Q.apply(this,arguments)||this;M.roundedContainer=!0;M.skipRoundingTop=!1;M.disableTopPadding=!1;M.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");M.extractOverlay=!1;return M};
_.l(R4,_.Q);R4.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
R4.prototype.onClick=function(M){var q,G=(q=this.data)==null?void 0:q.sourceEndpoint;!_.b8(_.Zx(M),this.hostElement,["A".toString()])&&G&&_.jP(this.hostElement,"yt-navigate",{endpoint:G})};
_.Yd.Object.defineProperties(R4.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 M;return!((M=this.data)==null||!M.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=(M=this.data)==null?void 0:M.paragraphMaxLines)!=null?q:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],R4.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],R4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],R4.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],R4.prototype,"showVerticalDividers",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],R4.prototype,"roundedContainer",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],R4.prototype,"skipRoundingTop",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],R4.prototype,"disableTopPadding",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],R4.prototype,"amsterdamEnabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],R4.prototype,"extractOverlay",void 0);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],R4.prototype,"showMetadataAtTop",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],R4.prototype,"showMetadataBelowTitle",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.menu"),_.r("design:type",Object),_.r("design:paramtypes",[])],R4.prototype,"hasMenu",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data.truncateParagraphs"),_.r("design:type",Object),_.r("design:paramtypes",[])],R4.prototype,"truncateParagraphs",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.paragraphMaxLines"),_.r("design:type",Number),_.r("design:paramtypes",[])],R4.prototype,"paragraphMaxLines",null);
_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.c("data.background"),_.r("design:type",Object),_.r("design:paramtypes",[])],R4.prototype,"background",null);_.T([_.b({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],R4);
_.z(R4,"ytd-info-panel-content-renderer",function(){if(cwv!==void 0)return cwv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return cwv=M},{mode:_.VO("kevlar_poly_si_batch_j076")?1:2});var gZ9;var BGf;var QNI;var IR8;var fR=function(){return _.Q.apply(this,arguments)||this};
_.l(fR,_.Q);fR.prototype.computeStyle=function(M){return M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],fR.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fR.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],fR.prototype,"style_",void 0);_.T([_.aO({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],fR);
_.z(fR,"yt-channel-thumbnail-with-link-renderer",function(){if(IR8===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;QNI===void 0&&(QNI=document.createElement("template"));var K=QNI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);IR8=M}M=IR8;return M},{mode:2});var Fu=function(){return _.Q.apply(this,arguments)||this};
_.l(Fu,_.Q);Fu.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"}}}};
Fu.prototype.computeTitleStyle=function(M){return M||null};
Fu.prototype.computeAvatarStyle=function(M){return M||null};
Fu.prototype.computeShowNavigationButton=function(M,q){return!(M==null||!M.navigationButton||q)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Fu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Fu.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.r("design:type",String)],Fu.prototype,"titleStyle",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.r("design:type",String)],Fu.prototype,"avatarStyle",void 0);_.T([_.B(),_.r("design:type",Boolean)],Fu.prototype,"hideNavigationButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Fu.prototype,"isModernSd",void 0);_.T([_.b({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],Fu);
_.z(Fu,"ytd-rich-list-header-renderer",function(){if(BGf!==void 0)return BGf;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return BGf=M},{mode:_.VO("kevlar_poly_si_batch_j058")?1:2});var H5=function(){return _.Q.apply(this,arguments)||this};
_.l(H5,_.Q);H5.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],H5.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],H5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],H5.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],H5.prototype,"isSearch",void 0);_.T([_.b({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],H5);
_.z(H5,"ytd-preview-card-renderer",function(){if(gZ9!==void 0)return gZ9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return gZ9=M},{mode:1});var DWl;var ef=function(){return _.Q.apply(this,arguments)||this};
_.l(ef,_.Q);ef.prototype.configureRendererStamper=function(){return{"data.menu":P5}};
ef.prototype.dataChanged=function(){var M=this.get("colorExtractionPalette.section1Color",this.data);M=_.w2(M);_.sT(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":M})};
ef.prototype.computeCardStyle=function(M){return this.get("style.value",M)||null};
ef.prototype.dataChanged=ef.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ef.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ef.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],ef.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ef.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.r("design:type",String)],ef.prototype,"cardStyle",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ef.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],ef);
_.z(ef,"ytd-compact-channel-recommendation-card-renderer",function(){if(DWl!==void 0)return DWl;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return DWl=M},{mode:1});var uJ9;var Jwx;var $L=function(){var M=_.Q.apply(this,arguments)||this;M.alignAuto=!1;M.collapsed=!0;M.isToggled=!1;M.alwaysCollapsed=!1;M.canToggle=!0;M.collapsedHeight=80;M.disableToggle=!1;M.alwaysToggleable=!1;M.reversed=!1;M.shouldUseNumberOfLines=!1;M.recomputeOnResize=!1;M.canToggleJobId=0;M.lastReversed=!1;return M};
_.l($L,_.Q);_.N=$L.prototype;_.N.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.N.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.N.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var M=_.f_(this.hostElement),q=M.childNodes,G=document.createDocumentFragment(),K=M.childNodes.length-1;K>=0;K--)_.f_(G).appendChild(q[K]);_.w("enable_shadydom_free_scoped_node_methods")?_.Fw(this.hostElement).appendChild(G):M.appendChild(G)}};
_.N.ready=function(){var M=this;_.g4(function(){M.initChildrenObserver()},1)};
_.N.attached=function(){var M;(M=this.resizeObserver)==null||M.observe(this.content)};
_.N.detached=function(){this.detachObserver()};
_.N.toggle=function(M,q){this.canToggle&&(this.isToggled=q,_.jP(this.hostElement,"yt-refit"),M&&M.stopPropagation())};
_.N.reset=function(){this.childrenChanged()};
_.N.onIronResize=function(){this.recomputeOnResize&&!_.w("ytd_expander_use_resize_observer")&&this.childrenChanged()};
_.N.computeIsMoreVisible=function(M,q){return M&&!q};
_.N.computeShouldUseNumberOfLines=function(M){try{return!!M&&window.CSS.supports("-webkit-line-clamp","1")}catch(q){}return!1};
_.N.computeIsLessVisible=function(M,q){return M&&q};
_.N.observeCollapsedHeightAndMaxLines=function(){var M=this.collapsedHeight,q=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.sT(this.hostElement,{"--ytd-expander-max-lines":""+q,"--ytd-expander-collapsed-height":""}):_.sT(this.hostElement,{"--ytd-expander-collapsed-height":M+"px","--ytd-expander-max-lines":""})};
_.N.handleMoreTap=function(M){this.disableToggle||(_.jP(this.hostElement,"yt-expander-more-tapped"),this.toggle(M,!0))};
_.N.handleLessTap=function(M){_.jP(this.hostElement,"yt-expander-less-tapped");this.toggle(M,!1)};
_.N.initChildrenObserver=function(){var M=this;this.observer=new MutationObserver(function(){M.childrenChanged()});
this.recomputeOnResize&&window.ResizeObserver&&_.w("ytd_expander_use_resize_observer")&&(this.resizeThrottle=new _.qA(this.childrenChanged,50,this),this.resizeObserver=new ResizeObserver(function(){var q;(q=M.resizeThrottle)==null||q.fire()}),this.resizeObserver.observe(this.content));
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.N.childrenChanged=function(){var M=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Vx(function(){M.canToggleJobId=0;M.calculateCanCollapse()})}))};
_.N.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};
_.N.detachObserver=function(){this.observer&&this.observer.disconnect();this.resizeObserver&&this.resizeObserver.disconnect()};
_.N.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("collapsed-changed",this.collapsed))};
_.N.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("is-toggled-changed",this.isToggled))};
_.N.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("can-toggle-changed",this.canToggle))};
_.Yd.Object.defineProperties($L.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
$L.prototype.canToggleChangedForBinding=$L.prototype.canToggleChangedForBinding;$L.prototype.isToggledChangedForBinding=$L.prototype.isToggledChangedForBinding;$L.prototype.collapsedChangedForBinding=$L.prototype.collapsedChangedForBinding;$L.prototype.observeCollapsedHeightAndMaxLines=$L.prototype.observeCollapsedHeightAndMaxLines;$L.prototype.onIronResize=$L.prototype.onIronResize;$L.prototype.reversedChanged=$L.prototype.reversedChanged;$L.prototype.toggledChanged=$L.prototype.toggledChanged;
$L.prototype.alwaysToggleableChanged=$L.prototype.alwaysToggleableChanged;_.T([_.P(_.uz),_.r("design:type",Object)],$L.prototype,"ironResizableBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$L.prototype,"alignAuto",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$L.prototype,"collapsed",void 0);_.T([_.B(),_.r("design:type",Object)],$L.prototype,"isToggled",void 0);_.T([_.B(),_.r("design:type",Object)],$L.prototype,"alwaysCollapsed",void 0);
_.T([_.B(),_.r("design:type",Object)],$L.prototype,"canToggle",void 0);_.T([_.B(),_.r("design:type",Object)],$L.prototype,"collapsedHeight",void 0);_.T([_.B(),_.r("design:type",Object)],$L.prototype,"disableToggle",void 0);_.T([_.B(),_.r("design:type",Object)],$L.prototype,"alwaysToggleable",void 0);_.T([_.B(),_.r("design:type",Object)],$L.prototype,"reversed",void 0);_.T([_.B(),_.r("design:type",Number)],$L.prototype,"maxNumberOfLines",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.r("design:type",Object)],$L.prototype,"shouldUseNumberOfLines",void 0);_.T([_.B(),_.r("design:type",Object)],$L.prototype,"recomputeOnResize",void 0);_.T([_.ET("#content"),_.r("design:type",HTMLDivElement)],$L.prototype,"content",void 0);_.T([_.yO("alwaysToggleable"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$L.prototype,"alwaysToggleableChanged",null);
_.T([_.yO("isToggled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$L.prototype,"toggledChanged",null);_.T([_.c("canToggleJobId"),_.r("design:type",Object),_.r("design:paramtypes",[])],$L.prototype,"isResetting",null);_.T([_.KT("reversed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$L.prototype,"reversedChanged",null);
_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$L.prototype,"onIronResize",null);_.T([_.KT("maxNumberOfLines","collapsedHeight"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$L.prototype,"observeCollapsedHeightAndMaxLines",null);_.T([_.KT("collapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$L.prototype,"collapsedChangedForBinding",null);
_.T([_.KT("isToggled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$L.prototype,"isToggledChangedForBinding",null);_.T([_.KT("canToggle"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$L.prototype,"canToggleChangedForBinding",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-expander"})],$L);
_.z($L,"ytd-expander",function(){if(Jwx!==void 0)return Jwx;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Jwx=M},{mode:1});var sY=function(){return _.Q.apply(this,arguments)||this};
_.l(sY,_.Q);sY.prototype.computeIsCarousel=function(M){return!!M.isCarousel};
sY.prototype.observeLightsourcePalette=function(){var M,q=(M=this.data)==null?void 0:M.vibrantsourceColorPaletteData;q&&_.dk(this.hostElement,q)};
sY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
sY.prototype.observeLightsourcePalette=sY.prototype.observeLightsourcePalette;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],sY.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],sY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sY.prototype,"data",void 0);_.T([_.B({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],sY.prototype,"isCarousel",void 0);
_.T([_.KT("data.vibrantsourceColorPaletteData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sY.prototype,"observeLightsourcePalette",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],sY);
_.z(sY,"ytd-media-upsell-renderer",function(){if(uJ9!==void 0)return uJ9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return uJ9=M},{mode:2});var ZZ9;var MN=function(){var M=_.Q.apply(this,arguments)||this;M.JSC$15066_playerEvents=new Map;M.listeningToPlayer=!1;M.startX=0;M.active=!1;M.shouldShowButtons=_.w("web_buttons_hidden_killswitch");M.isHighlighted=!1;M.useHighlightStyling=_.w("web_enable_deeper_metadata_highlight_styling");M.modern=_.w("kevlar_modern_sd");M.enableProblemWalkthrough=_.w("problem_walkthrough_sd");return M};
_.l(MN,_.Q);_.N=MN.prototype;
_.N.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}}}}}};
_.N.created=function(){this.JSC$15066_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.N.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.qs(this,this.onRepeatButtonToggle));this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.qs(this,this.onActiveUpdate))};
_.N.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.qs(this,this.onRepeatButtonToggle));this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.qs(this,this.onActiveUpdate))};
_.N.onDataChanged=function(){this.removePlayerListeners()};
_.N.onColorPaletteChange=function(){var M={},q;if(_.cE()==="USER_INTERFACE_THEME_DARK"&&((q=this.data)==null?0:q.darkColorPalette)){var G=this.data.darkColorPalette;M["--ytd-macro-markers-list-item-background-color"]=_.C_(this.get("section2Color",G))}else{var K;_.cE()==="USER_INTERFACE_THEME_LIGHT"&&((K=this.data)==null?0:K.lightColorPalette)&&(G=this.data.lightColorPalette,M["--ytd-macro-markers-list-item-background-color"]=_.C_(this.get("section3Color",G)))}G?(M["--ytd-macro-markers-list-item-title-color"]=
_.C_(this.get("primaryTitleColor",G)),M["--ytd-macro-markers-list-item-secondary-color"]=_.C_(this.get("secondaryTitleColor",G)),M["--ytd-macro-markers-list-item-timestamp-background-color"]=_.C_(this.get("section1Color",G)),this.customButtonProperties={customColors:{color:_.C_(this.get("primaryTitleColor",G))}},this.useColorSampling=!0):(M["--ytd-macro-markers-list-item-background-color"]="initial",M["--ytd-macro-markers-list-item-title-color"]="initial",M["--ytd-macro-markers-list-item-secondary-color"]=
"initial",M["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.sT(this.hostElement,M)};
_.N.onEndpointMouseDown=function(M){this.startX=M.clientX};
_.N.onEndpointClick=function(M){var q=this,G,K,n;return _.L(function(E){if(E.nextAddress==1){if(q.startX!==M.clientX)return M.preventDefault(),E.return();q.data&&q.ytRendererBehavior.logExplicitClick(q.data);if(!q.seekWithAnimationOnClick)return E.jumpTo(0);if(M.button!==0||M.shiftKey||M.altKey||M.metaKey||M.ctrlKey||_.b8(_.Zx(M),q.hostElement,["BUTTON".toString()]))return E.return();M.stopPropagation();M.preventDefault();return q.data?E.yield(_.rk().getPlayerPromise(),3):E.return()}G=E.yieldResult;
n=(K=_.C(q.data.onTap,_.Jl))==null?void 0:K.startTimeSeconds;n!==void 0&&G.seekToTimeWithAnimation(n*1E3,_.UX(q.data.title));_.gL(E)})};
_.N.computeLayout=function(M){return M};
_.N.computeIsHighlighted=function(M){return!!M};
_.N.computeCarouselType=function(M){return M};
_.N.hideModernCarousel=function(M){return this.modern&&this.hideThumbnail(M)};
_.N.hideThumbnail=function(M){return this.enableProblemWalkthrough&&M!==null&&M==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.N.onRepeatButtonToggle=function(M){var q=this;M.detail.toggled&&_.rk().getPlayerPromise().then(function(G){q.ytPlayerListenerBehavior.listenToPlayerEvents(G,q.JSC$15066_playerEvents);q.listeningToPlayer=!0})};
_.N.onLoopRangeChange=function(M){var q=_.f_(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(q){var G=q.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",q.polymerController.data);if(G){var K=Number(G.endTimeMs);if(Number(G.startTimeMs)!==(M==null?void 0:M.startTimeMs)||K!==(M==null?void 0:M.endTimeMs))q.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.N.removePlayerListeners=function(){var M=this;this.listeningToPlayer&&_.rk().getPlayerPromise().then(function(q){M.ytPlayerListenerBehavior.unlistenFromPlayerEvents(q,M.JSC$15066_playerEvents);M.listeningToPlayer=!1})};
_.N.onActiveUpdate=function(M){this.active=M.detail.active};
MN.prototype.onColorPaletteChange=MN.prototype.onColorPaletteChange;MN.prototype.onDataChanged=MN.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],MN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],MN.prototype,"ytPlayerListenerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],MN.prototype,"data",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],MN.prototype,"useCustomColors",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],MN.prototype,"active",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],MN.prototype,"shouldShowButtons",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.r("design:type",String)],MN.prototype,"layout",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.r("design:type",Object)],MN.prototype,"isHighlighted",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],MN.prototype,"useHighlightStyling",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],MN.prototype,"modern",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],MN.prototype,"enableProblemWalkthrough",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.r("design:type",String)],MN.prototype,"carouselType",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],MN.prototype,"useColorSampling",void 0);_.T([_.B(),_.r("design:type",Boolean)],MN.prototype,"seekWithAnimationOnClick",void 0);_.T([_.B(),_.r("design:type",Object)],MN.prototype,"customButtonProperties",void 0);
_.T([_.ET("#repeat-button"),_.r("design:type",HTMLElement)],MN.prototype,"repeatButton",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MN.prototype,"onDataChanged",null);_.T([_.KT("data.lightColorPalette","data.darkColorPalette"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MN.prototype,"onColorPaletteChange",null);_.T([_.b({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],MN);
_.z(MN,"ytd-macro-markers-list-item-renderer",function(){if(ZZ9!==void 0)return ZZ9;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-item-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[hideModernCarousel(data.carouselType)]]">\n  <div hidden="[[hideThumbnail(data.carouselType)]]" id="thumbnail" class="style-scope ytd-macro-markers-list-item-renderer">\n    <yt-img-shadow hidden="[[!data.thumbnail]]" object-fit="FILL" thumbnail="[[data.thumbnail]]" class="style-scope ytd-macro-markers-list-item-renderer">\n    </yt-img-shadow>\n    <div id="overlay" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n  </div>\n  <div id="details" class="style-scope ytd-macro-markers-list-item-renderer">\n    <h4 hidden="[[hideThumbnail(data.carouselType)]]" class="macro-markers style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <h4 hidden="[[!hideThumbnail(data.carouselType)]]" class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n    <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n  </div>\n</a>\n<div id="details" hidden="[[!hideModernCarousel(data.carouselType)]]" class="style-scope ytd-macro-markers-list-item-renderer">\n  <a id="endpoint" class="yt-simple-endpoint style-scope ytd-macro-markers-list-item-renderer" data="[[data.onTap]]" href$="[[computeHref_(data.onTap)]]" on-click="onEndpointClick" on-mousedown="onEndpointMouseDown" draggable="false" hidden="[[!hideThumbnail(data.carouselType)]]">\n    <h4 class="problem-walkthroughs style-scope ytd-macro-markers-list-item-renderer" title="[[getSimpleString(data.title)]]">[[getSimpleString(data.title)]]</h4>\n  </a>\n  <div id="time" class="style-scope ytd-macro-markers-list-item-renderer">[[getSimpleString(data.timeDescription)]]</div>\n</div>\n<div id="share-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n<div id="repeat-button" class="style-scope ytd-macro-markers-list-item-renderer"></div>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return ZZ9=M},{mode:1});var bZM;var UW2;var qN=function(){return _.Q.apply(this,arguments)||this};
_.l(qN,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],qN.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],qN);
_.z(qN,"ytd-title-and-button-list-header-renderer",function(){if(UW2!==void 0)return UW2;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return UW2=M},{mode:1});var xWx;var zNl=new _.$k("BUTTON_RENDERER_TOKEN");_.GW=_.U(function(M){var q=_.AL().resolve(zNl);return _.W(q,Object.assign({},M,{overrides:M.buttonOverrides}))},"Va");var mWB=_.U(function(M){var q=M.data,G=_.bg(M.useSquareAspectRatio,!1);return _.W("dismissed-mini-game-card-view-model",null,_.W(_.d,{cond:function(){var K,n;return(K=q().responseText)==null?void 0:(n=K.runs)==null?void 0:n.length},
then:function(){var K={};return _.W("div",{class:_.Hb("yt-mini-game-card-view-model__dismissed-card",(K["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!G()},K["yt-mini-game-card-view-model--dismissed-square-card"]=G,K))},_.W("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.W(_.d,{cond:function(){return q().responseText.runs[0].text},
then:function(n){return _.W("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:n},n)}}),_.W(_.yu,{data:function(){return q().buttons}},{buttonRenderer:_.GW,
buttonViewModel:_.Wf})))}}))},"Wa");var fR$=_.U(function(M){M=_.UT(M,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var q=M.data,G=M.useFullWidth,K=M.isDesktopWeb,n=M.addSearchResultTopMargin,E=function(){return q().layout},p=function(){return q().title},y=function(){return q().metadataText?q().metadataText:q().genre},Y=function(){return q().channelName},A=function(){return q().image},v=function(){return q().colorPalette},h=function(){return q().actionButton},t=function(){return q().overflowButton},
O=function(){return q().avatar},a=function(){var Z={};
Z=_.Hb("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(Z["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return K()},Z));
return _.W("div",{class:Z},_.W(SCJ,{imageData:A,colorPalette:v}),_.W(TG2,{onTap:function(){return q().onTap},
imageData:A,accessibilityText:function(){return q().accessibilityText},
overlayBadgeText:function(){return q().overlayBadgeText},
iconName:function(){return q().iconName},
unplayableInlinePlaybackIconName:function(){return q().unplayableInlinePlaybackIconName},
isDesktopWeb:K}),_.W(_.d,{cond:function(){return!K()},
then:function(){return _.W(_.dU,null,_.W(rwI,{layout:E,colorPalette:v,isDesktopWeb:K,overflowButton:t,avatar:O,onTap:function(){return q().onTap},
genre:y,title:p,channelName:Y}),_.W(jNB,{actionButton:h}))}}))},g=function(){var Z={};
Z=_.Hb((Z["yt-mini-game-card-view-model--search-result-desktop"]=function(){return K()},Z["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!K()},Z["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return n()},Z));
return _.W("div",{class:Z},a(),_.W(VkM,{description:function(){return q().description},
isDesktopWeb:K,title:p,genre:y,onTap:function(){return q().onTap},
actionButton:h,overflowButton:t,avatar:O,channelName:Y}))},D=function(){var Z={};
Z=_.Hb("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(Z["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return K()},Z["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return K()&&q().width===135},Z["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return K()},Z["yt-mini-game-card-view-model--big-metadata-font"]=function(){return q().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},Z["yt-mini-game-card-view-model--use-full-width"]=
function(){return G()},Z["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!h()},Z));
return _.W("div",{class:Z},_.W(RNl,{colorPalette:v,isDesktopWeb:K,onTap:function(){return q().onTap},
accessibilityText:function(){return q().accessibilityText},
overlayBadgeText:function(){return q().overlayBadgeText},
iconName:function(){return q().iconName},
unplayableInlinePlaybackIconName:function(){return q().unplayableInlinePlaybackIconName},
actionButton:h,imageData:A}),_.W(rwI,{layout:E,colorPalette:v,isDesktopWeb:K,overflowButton:t,avatar:O,onTap:function(){return q().onTap},
genre:y,title:p,channelName:Y}))},J=function(){var Z={};
Z=_.Hb("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(Z["yt-mini-game-card-view-model--square-card-desktop"]=function(){return K()},Z["yt-mini-game-card-view-model--use-full-width"]=function(){return G()},Z));
return _.W("div",{class:Z},_.W(TG2,{onTap:function(){return q().onTap},
imageData:A,accessibilityText:function(){return q().accessibilityText},
overlayBadgeText:function(){return q().overlayBadgeText},
iconName:function(){return q().iconName},
unplayableInlinePlaybackIconName:function(){return q().unplayableInlinePlaybackIconName},
isDesktopWeb:K}),_.W(rwI,{layout:E,colorPalette:v,isDesktopWeb:K,overflowButton:t,avatar:O,onTap:function(){return q().onTap},
genre:y,title:p,channelName:Y}))};
return _.W("mini-game-card-view-model",{class:M.className},_.W(_.Ub,null,_.W(_.J3,{when:function(){return E()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return D()}),_.W(_.J3,{when:function(){return E()==="MINI_APP_LAYOUT_SQUARE"}},function(){return J()}),_.W(_.J3,{when:function(){return E()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return g()})))},"Xa");
fR$.idomCompat=!0;var jNB=_.U(function(M){var q=_.bg(M.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.W(_.yu,{data:M.actionButton},{buttonViewModel:function(G){return _.W("div",{class:q},_.W(_.Wf,{data:G.data}))}})},"Ya"),TG2=_.U(function(M){var q=M.onTap;
var G=M.imageData;var K=M.accessibilityText;var n=M.overlayBadgeText;var E=M.iconName;var p=M.unplayableInlinePlaybackIconName;M=M.isDesktopWeb;return _.W(_.kv,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:q},_.W(_.Jj,{data:G,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(K==null?void 0:K())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.W(Fnv,{overlayBadgeText:n,iconName:E,unplayableInlinePlaybackIconName:p,isDesktopWeb:M}))},"Za"),Fnv=_.U(function(M){var q=M.overlayBadgeText;
var G=M.iconName;var K=M.unplayableInlinePlaybackIconName;var n=M.isDesktopWeb;return _.W("div",{class:"yt-mini-game-card-view-model__badge-container"},_.W(_.d,{cond:G,then:function(E){return _.W("div",{class:"yt-mini-game-card-view-model__badge"},_.W("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.W(_.np,{icon:E,className:"yt-mini-game-card-view-model__icon",size:12}),_.W("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},q)))}}),_.W(_.d,{cond:function(){return!G()&&
q()},
then:function(){return _.W("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},q)}}),_.W(_.d,{cond:function(){return K()&&n()},
then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.W(_.np,{icon:K,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"$a"),SCJ=_.U(function(M){var q=M.colorPalette;
var G=M.imageData;var K=function(){return q().vibrantColorPalette?q().vibrantColorPalette.section2Color:q().sectionTwoColor};
return _.W(_.dU,null,_.W("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Kp({"background-color":function(){return ar(K(),"1")}})}),_.W("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Kp({"background-image":function(){return"url("+G().sources[0].url+")"}})}),_.W("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Kp({background:function(){return"linear-gradient(180deg,\n    "+ar(K(),".8")+" 0%,\n    "+ar(K(),".4")+" 25%,\n    "+ar(q().vibrantColorPalette?q().vibrantColorPalette.section4Color:q().sectionFourColor,".8")+" 100%)"}})}))},"ab"),rwI=_.U(function(M){var q=M.layout;
var G=M.colorPalette;var K=M.overflowButton;var n=M.avatar;var E=M.onTap;var p=M.title;var y=M.channelName;var Y=M.genre;var A=function(){var v;return q()!=="MINI_APP_LAYOUT_SQUARE"&&((v=G())==null?0:v.textPrimaryColor)?"color: "+ar(G().textPrimaryColor,".7"):""};
return _.W("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.W(_.d,{cond:n,then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__avatar"},_.W(_.yu,{data:n},{avatarViewModel:_.zo}))}}),_.W(_.kv,{command:E,
className:"yt-mini-game-card-view-model__metadata-details"},_.W("h3",{class:"yt-mini-game-card-view-model__title",title:p},p),_.W(_.d,{cond:n,then:function(){return _.W("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.W("span",{class:"yt-mini-game-card-view-model__genre",title:y,style:A},y),_.W("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:A},Y))},
else:function(){return _.W("span",{class:"yt-mini-game-card-view-model__genre",title:Y},Y)}})),_.W("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.W(_.yu,{data:K},{buttonViewModel:function(v){var h=v.data;
return _.W(_.Wf,{data:function(){return Object.assign({},h(),{customFontColor:q()==="MINI_APP_LAYOUT_SINGLETON"?h().customFontColor:void 0})}})}})))},"bb"),RNl=_.U(function(M){var q=M.colorPalette;
var G=M.isDesktopWeb;var K=M.onTap;var n=M.accessibilityText;var E=M.overlayBadgeText;var p=M.iconName;var y=M.unplayableInlinePlaybackIconName;var Y=M.actionButton;M=M.imageData;return _.W("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.W(SCJ,{imageData:M,colorPalette:q}),_.W(TG2,{onTap:K,imageData:M,accessibilityText:n,overlayBadgeText:E,iconName:p,unplayableInlinePlaybackIconName:y,isDesktopWeb:G}),_.W(_.d,{cond:function(){return Y==null?void 0:Y()},
then:function(){return _.W(jNB,{actionButton:Y})}}))},"cb"),VkM=_.U(function(M){var q=M.description;
var G=M.isDesktopWeb;var K=M.title;var n=M.genre;var E=M.onTap;var p=M.actionButton;var y=M.overflowButton;var Y=M.avatar;M=M.channelName;var A={};A=_.Hb("yt-mini-game-card-view-model--search-result-metadata-wrapper",(A["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=G,A["yt-mini-game-card-view-model--show-unplayable-on-hover"]=G,A["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!G()},A));
var v={};v=_.Hb("yt-mini-game-card-view-model__search-result-info-row",(v["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!G()},v));
return _.W("div",{class:A},_.W("div",{class:v},_.W(_.kv,{command:E,className:"yt-mini-game-card-view-model__metadata-details"},_.W("h3",{class:"yt-mini-game-card-view-model__title",title:K},K),_.W("span",{class:"yt-mini-game-card-view-model__genre",title:n},n)),_.W(jNB,{actionButton:p,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.W("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.W(_.yu,{data:y},{buttonViewModel:_.Wf}))),_.W("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.W("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.W("div",{class:"yt-mini-game-card-view-model__avatar"},_.W(_.yu,{data:Y},{avatarViewModel:function(h){var t=h.data;return _.W(_.zo,{data:function(){return Object.assign({},t(),{avatarImageSize:G()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.W(_.kv,{command:E,
className:"yt-mini-game-card-view-model__description"},_.W("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},M)),_.W(_.kv,{command:E,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.W("div",null)))),_.W(_.d,{cond:G,then:function(){return _.W(_.kv,{command:E,className:"yt-mini-game-card-view-model__description"},q)}}))},"db");_.S5(fR$,"mini-game-card-view-model",{props:{data:_.Hz,className:_.Hz,useFullWidth:_.Hz,isDesktopWeb:_.Hz,addSearchResultTopMargin:_.Hz}});_.S5(mWB,"dismissed-mini-game-card-view-model",{props:{data:_.Hz,useSquareAspectRatio:_.Hz}});var K0=function(){var M=_.Q.apply(this,arguments)||this;M.isSearch=!1;M.isRichGrid=!1;return M};
_.l(K0,_.Q);_.N=K0.prototype;_.N.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.N.dismissibleItemOnYtServiceRequestSent=function(M,q){q.actions&&this.dismissibleItemProcessActions(M,q.actions)};
_.N.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.N.dataChanged=function(){this.dismissibleItemReset()};
_.N.dismissibleItemProcessActions=function(M,q){for(var G=0;G<q.length;G++){var K=q[G];_.C(K,_.PA)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.C(K,_.PA)),M.stopPropagation())}};
_.N.dismissibleItemHandleReplaceEnclosingAction=function(M){this.dismissedRenderer=M.item;this.isDismissed=!0};
_.Yd.Object.defineProperties(K0.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var M;return!!this.data&&!((M=this.dismissedRenderer)==null?0:M.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.dismissedRenderer)==null||!M.notificationMultiActionRenderer)}}});
K0.prototype.dataChanged=K0.prototype.dataChanged;K0.prototype.dismissibleItemOnRequestSent=K0.prototype.dismissibleItemOnRequestSent;K0.prototype.dismissibleItemOnYtServiceRequestSent=K0.prototype.dismissibleItemOnYtServiceRequestSent;_.T([_.B(),_.r("design:type",Object)],K0.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],K0.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],K0.prototype,"isDismissed",void 0);
_.T([_.B(),_.r("design:type",Object)],K0.prototype,"dismissedRenderer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],K0.prototype,"isRichGrid",void 0);_.T([_.c("data.layout"),_.r("design:type",Object),_.r("design:paramtypes",[])],K0.prototype,"useSquareAspectRatio",null);_.T([_.c("data","dismissedRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],K0.prototype,"showCard",null);
_.T([_.c("data","dismissedRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],K0.prototype,"showDismissed",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],K0.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.T([_.GQ("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],K0.prototype,"dismissibleItemOnRequestSent",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K0.prototype,"dataChanged",null);_.T([_.aO({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],K0);
_.z(K0,"ytd-mini-game-card-view-model",function(){if(xWx!==void 0)return xWx;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return xWx=M},{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var HZ2;var eNP;var n0=function(){return _.WG.apply(this,arguments)||this};
_.l(n0,_.WG);n0.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
n0.prototype.getContinuationUrl=function(M){var q={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(q.itct=this.data.clickTrackingParams);return _.Nz(M,q)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],n0.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],n0.prototype,"data",void 0);_.T([_.aO({is:"yt-reload-continuation",noInjection:!0})],n0);var $W8;var spJ;var EY=function(){var M=_.Q.apply(this,arguments)||this;M.notificationData={};return M};
_.l(EY,_.Q);_.N=EY.prototype;_.N.isMenuExpanded=function(M){return M&&M.length<=1?"undefined":"false"};
_.N.dataChanged_=function(){this.selected=void 0;var M=this.computeSelectedIndex_(this.data);M>=0&&(this.selected=M);M=this.data&&this.data.length>1;_.HE(this.hostElement,"has-items",M);_.f_(this.hostElement).querySelector("#label").tabIndex=M?0:-1};
_.N.onDropdownOpen=function(){var M=_.Cx();if(this.parentTrackingParams&&this.data){var q=_.yx(this.parentTrackingParams);this.data.forEach(function(G){M&&q&&G.trackingParams&&(G=_.yx(G.trackingParams),_.QQ(M,q,G),_.uO(M,[G]))})}else this.parentTrackingParams||_.j1(new _.bj("No parent tracking params passed in for yt-dropdown-menu."))};
_.N.hasNotification=function(M){var q;if(M.targetId&&((q=this.notificationData)==null?0:q.targetId)){var G;return M.targetId===((G=this.notificationData)==null?void 0:G.targetId)}};
_.N.computeSelectedIndex_=function(M){if(M)for(var q=0,G=M.length;q<G;q++)if(M[q].selected)return q;return-1};
_.N.computeLabel_=function(M){return this.data&&M!=void 0?this.data[M].title:""};
_.N.computeShowIcon_=function(M,q){return!q&&!!M};
_.N.computeVerticalOffset_=function(M){return M?36:0};
_.N.computeEndpoint_=function(M){return M.endpoint||M.navigationEndpoint};
_.N.onLabelClick_=function(M){this.data&&this.data.length<=1?M.stopPropagation():this.menuExpanded="true"};
_.N.onIronActivate_=function(M){M=M.detail.item;var q=_.f_(this.hostElement).querySelector("#repeat").itemForElement(M);if(q&&q.trackingParams){var G=_.Cx(),K=_.yx(q.trackingParams);G&&_.Z_(G,K)}if(q&&q.serviceEndpoint)_.w("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(q.serviceEndpoint):_.fx(this.hostElement,[q.serviceEndpoint]),_.jP(this.hostElement,"yt-playlist-reloading");else a:{if((q=M.querySelector("yt-supported-renderers"))&&
(q=q.rendererElement)&&q.is=="yt-reload-continuation"){q.trigger();break a}(M=M.querySelector("yt-reload-continuation"))&&M.trigger()}};
_.N.onTap_=function(M){M.preventDefault()};
_.N.onItemTap_=function(M){this.ytEndpointBehavior.onEndpointTap_(M)};
_.N.onLinkFocus_=function(M){try{var q=M.target}catch(K){}if(q){var G=q.querySelector("tp-yt-paper-item");G&&_.B4(this,"focus",function(){G.focus()})}};
_.N.onMenuClose_=function(){this.menuExpanded="false"};
_.N.isLabelIconActive_=function(M){return M==="true"};
_.N.computeHasSubtitle_=function(M){return!!M};
_.N.computeHrefForItem_=function(M){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(M))};
_.N.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
_.Yd.Object.defineProperties(EY.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
EY.prototype.onMenuClose_=EY.prototype.onMenuClose_;EY.prototype.onTap_=EY.prototype.onTap_;EY.prototype.onIronActivate_=EY.prototype.onIronActivate_;EY.prototype.onDropdownOpen=EY.prototype.onDropdownOpen;EY.prototype.dataChanged_=EY.prototype.dataChanged_;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],EY.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.OH.YtEndpointBehavior),_.r("design:type",Object)],EY.prototype,"ytEndpointBehavior",void 0);
_.T([_.B(),_.r("design:type",Array)],EY.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],EY.prototype,"parentTrackingParams",void 0);_.T([_.B(),_.r("design:type",Object)],EY.prototype,"selected",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],EY.prototype,"useLabel",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],EY.prototype,"useComputedAriaLabel",void 0);_.T([_.B(),_.r("design:type",String)],EY.prototype,"icon",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],EY.prototype,"iconLabel",void 0);_.T([_.B(),_.r("design:type",String)],EY.prototype,"ariaLabel",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],EY.prototype,"disabled",void 0);_.T([_.B({computed:"isMenuExpanded(data)"}),_.r("design:type",String)],EY.prototype,"menuExpanded",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],EY.prototype,"closeOnActivate",void 0);
_.T([_.B({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.r("design:type",Boolean)],EY.prototype,"modernButtons",void 0);_.T([_.B(),_.r("design:type",Object)],EY.prototype,"notificationData",void 0);_.T([_.c("ariaLabel, selected"),_.B(),_.r("design:type",String),_.r("design:paramtypes",[])],EY.prototype,"computedAriaLabel",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],EY.prototype,"dataChanged_",null);
_.T([_.GQ("paper-dropdown-open"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],EY.prototype,"onDropdownOpen",null);_.T([_.GQ("iron-activate"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],EY.prototype,"onIronActivate_",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],EY.prototype,"onTap_",null);
_.T([_.GQ("iron-overlay-closed"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],EY.prototype,"onMenuClose_",null);_.T([_.aO({is:"yt-dropdown-menu",disableElementRegistration:!0})],EY);
_.z(EY,"yt-dropdown-menu",function(){if(spJ===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;$W8===void 0&&($W8=document.createElement("template"));var K=$W8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);spJ=M}M=spJ;return M},{mode:2});var NN=function(){var M=_.Q.apply(this,arguments)||this;M.hasNotification=!1;return M};
_.l(NN,_.Q);NN.prototype.computeId=function(M){return M};
NN.prototype.computeHorizontalAlign=function(M){return M?"right":"left"};
NN.prototype.computeAccessibilityLabel=function(M){var q,G;return((q=M.accessibility)==null?void 0:(G=q.accessibilityData)==null?void 0:G.label)||null};
NN.prototype.notificationDataChanged=function(){var M;this.hasNotification=!!this.notificationData&&!((M=this.data)==null?0:M.icon)};
NN.prototype.notificationDataChanged=NN.prototype.notificationDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mZ.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],NN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],NN.prototype,"data",void 0);_.T([_.B({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.r("design:type",String)],NN.prototype,"id",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],NN.prototype,"isRightAligned",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],NN.prototype,"disabled",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],NN.prototype,"closeOnActivate",void 0);_.T([_.B(),_.r("design:type",Object)],NN.prototype,"notificationData",void 0);_.T([_.B(),_.r("design:type",Object)],NN.prototype,"hasNotification",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],NN.prototype,"useComputedAriaLabel",void 0);_.T([_.KT("notificationData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],NN.prototype,"notificationDataChanged",null);_.T([_.aO({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],NN);
_.z(NN,"yt-sort-filter-sub-menu-renderer",function(){if(eNP===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;HZ2===void 0&&(HZ2=document.createElement("template"));var K=HZ2;G.call(q,K.content.cloneNode(!0),M.content.firstChild);eNP=M}M=eNP;return M},{mode:2});var MdB=_.U(function(M){var q=M.data;var G=_.sq(function(){var E=q().onTap;(E=_.C(E,_.Cl))&&_.AL().resolve(_.vR).resolveCommand(E);return!1}),K=function(){return{sources:[{url:q().thumbnailUrl,
width:120,height:90}]}},n=function(){return q().rating&&q().ratingA11yLabel&&q().reviewsCount&&q().reviewsCountA11yLabel};
return _.W("place-data-view-model",null,_.W(_.d,{cond:function(){return q().placeName&&q().placeCategory},
then:function(){return _.W("div",{class:"ytSpecPlaceDataViewModelShapeHost","on:click":G},_.W(_.Jj,{data:K,alt:"",targetWidth:120,targetHeight:90,className:"ytSpecPlaceDataViewModelShapeThumbnail"}),_.W(_.kv,{className:"ytSpecPlaceDataViewModelShapePlaceLink",command:function(){return q().onTap}},_.W("h3",{class:"ytSpecPlaceDataViewModelShapeName",
title:function(){return q().placeName}},function(){return q().placeName})),_.W("div",{class:"ytSpecPlaceDataViewModelShapeMetadata"},_.W(_.d,{cond:n,
then:function(){return _.W("div",{class:_.Hb("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")},_.W("span",{class:"score",title:function(){return q().ratingA11yLabel}},function(){return q().rating}),_.W("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowStarIcon"},_.W(_.np,{icon:"STAR",
active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),_.W("span",{class:"ytSpecPlaceDataViewModelShapeMetadataRowReviews",title:function(){return q().reviewsCountA11yLabel}},function(){return q().reviewsCount}))},
else:function(){return _.W("div",{class:_.Hb("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowRatings")})}}),_.W("div",{class:_.Hb("ytSpecPlaceDataViewModelShapeMetadataRow","ytSpecPlaceDataViewModelShapeMetadataRowCategories")},_.W("span",{class:"category",
title:function(){return q().placeCategory}},function(){return q().placeCategory}))))}}))},"eb");
MdB.idomCompat=!0;_.S5(MdB,"place-data-view-model",{props:{data:_.Hz}});var q3v=new _.$k("INLINE_PLAYBACK_HOOK_TOKEN");var Ggf=_.Oq({sharedUi:_.JXp});_.gx=_.wk(Ggf)(Ggf.sharedUi,{animatedThumbnailEnabledSelector:function(M){return M.animatedThumbnailEnabled},
inlinePreviewEnabledSelector:function(M){return M.inlinePreviewEnabled},
currentPageTypeSelector:function(M){return M.currentPageType},
currentPageSubTypeSelector:function(M){return M.currentPageSubType},
persistentPanelVisibleSelector:function(M){return M.persistentPanelVisible}});var Kkd=function(M){this.setActiveSlideIndex=M;this.jobIds=[];this.isSlideshowPlaying=!1},N5I=function(M,q){M.isSlideshowPlaying||(M.isSlideshowPlaying=!0,nRP(M),ERp(M,q,0))},nRP=function(M){_.RM(_.r8,function(){M.setActiveSlideIndex(0)},1)},ERp=function(M,q,G){M.jobIds.push(_.RM(_.r8,function(){var K=G<q-1?G+1:0;
M.setActiveSlideIndex(K);ERp(M,q,K)},1800))};var kgl=new _.$k("CHANNEL_DISCLOSURE_VIEW_MODEL_TOKEN");var puB=new _.$k("IMAGE_ON_LOAD_HANDLER_TOKEN");var yiP=_.U(function(M){return _.W("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.W(_.d,{cond:function(){var q;return(q=M.data())==null?void 0:q.thumbnail},
then:function(q){return _.W(_.Jj,{data:q,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"fb");_.LkI=_.U(function(M){var q=M.data;var G=M.lockupExperiments;M={};return _.W("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.W("div",{class:_.Hb("ytThumbnailOverlayButtonViewModelButton",(M.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var K;return G&&((K=G())==null?void 0:K.useLegacySizedIconButton)},M))},_.W(_.yu,{data:function(){return q().overlayButton}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
buttonOverrides:function(){var n;return G&&((n=G())==null?0:n.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"},ariaHidden:!0,tabIndex:-1}:void 0}})}})))},"gb");
_.LkI.idomCompat=!0;var Y3I=_.U(function(M){return _.W("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.sq(function(q){q.preventDefault();return!1})},_.W(_.yu,{data:function(){return M.data().buttons}},{toggleButtonViewModel:function(q){return _.W("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.W(_.Dj,{data:q.data}))}}))},"hb");
Y3I.idomCompat=!0;var WkP=_.U(function(M){var q=function(){var G;return((G=_.C(M.data().rendererContext,_.NQ))==null?void 0:G.label)||""};
return _.W("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.W(_.d,{cond:function(){return M.data().image},
then:function(){return _.W("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.W(_.Jj,{data:function(){return M.data().image},
alt:q}))}}),_.W(_.d,{cond:function(){return M.data().text},
then:function(){return _.W("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return M.data().text})}}))},"ib");var Ai9;Ai9=_.gx.animatedThumbnailEnabledSelector;_.kl=_.U(function(M){var q=[],G=function(){var t,O;return z$y((t=M.width)==null?void 0:t.call(M),(O=M.height)==null?void 0:O.call(M))},K=_.AL().resolve(_.WR(puB)),n=_.pI("yt-thumbnail-view-model",function(){q.push("elRef.value set");
var t;(t=M.playbackRef)==null||t.call(M,{thumbnailElRef:n,thumbnail:M.data().image,thumbnailOverlays:M.data().overlays,thumbnailSize:G()})});
_.SK(function(){q.push("onInit");_.m_(function(){q.push("onCleanup")})});
var E=_.pp(Ai9),p=function(){var t,O;return(O=(t=M.aspectRatio)==null?void 0:t.call(M))!=null?O:0},y=function(){return(M.data().image?_.EOi(M.data().image):p())<=1&&p()===0},Y=function(){return y()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},A=function(){n.value||_.j1(new _.bj("Thumbnail elRef.value is null",q.join("\n")));
K&&n.value&&K(n.value)},v=function(){var t,O;
return((t=M.hovered)==null?void 0:t.call(M))&&G()!=="large"&&((O=M.data().overlays)==null?void 0:O.some(function(a){return _.C(a,vLp)}))},h={};
return _.W("yt-thumbnail-view-model",{class:_.Hb("ytThumbnailViewModelHost",M.className,function(){return l5w(p())},function(){var t,O;
a:{var a=G(),g=(t=M.disableRounding)==null?void 0:t.call(M);t=(O=M.isClip)==null?void 0:O.call(M);if(!g&&!t)switch(a){case "large":O="ytThumbnailViewModelLarge";break a;case "small":O="ytThumbnailViewModelSmall";break a;default:O="ytThumbnailViewModelMedium";break a}O=void 0}return O},(h.ytThumbnailViewModelCinematic=y,h)),
style:_.Kp({"background-color":function(){var t,O=y()?(t=M.data().backgroundColor)==null?void 0:t.lightTheme:void 0;return O?ar(O,"1"):void 0}}),
el:n},_.W(_.d,{cond:y,then:function(){return _.W("div",{class:"ytThumbnailViewModelBlurredImage"},_.W(_.Jj,{data:function(){return M.data().image},
alt:"",contentMode:Y,targetWidth:M.width,onload:A}))}}),_.W("div",{class:"ytThumbnailViewModelImage"},_.W(_.Jj,{data:function(){return M.data().image},
alt:"",contentMode:Y,targetWidth:M.width,onload:A}),null),_.W(_.yu,{data:function(){return v()?void 0:M.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:tk8,thumbnailOverlayBadgeViewModel:function(t){return _.W(_.OZB,{data:t.data,thumbnailSize:G,isClip:M.isClip})},
thumbnailBottomOverlayViewModel:function(t){return _.W(AwJ,{data:t.data,thumbnailSize:G,isClip:M.isClip})},
thumbnailOverlayFullViewModel:WkP,thumbnailOverlayButtonViewModel:function(t){return _.W(_.LkI,{data:t.data,lockupExperiments:M.lockupExperiments})},
channelDisclosureViewModel:function(t){t=t.data;var O;return _.W("div",null,(O=_.AL().resolve(_.WR(kgl)))==null?void 0:O({data:t}))}}),_.W(_.yu,{data:function(){var t;
return((t=M.hovered)==null?0:t.call(M))?M.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(t){return _.W(xL,{data:t.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Y3I}),_.W(_.yu,{data:function(){var t;return((t=M.hovered)==null?0:t.call(M))&&E()?M.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:yiP}),_.W(_.d,{cond:M.isClip,then:function(){return _.W("div",{class:"ytPinkingNsHost"},_.W("svg",{class:"ytPinkingNsPinkingLeft"},_.W("defs",null,_.W("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.W("polygon",{class:"ytPinkingNsPinking",points:"0,0 4,4 0,8"}))),_.W("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.W("svg",{class:"ytPinkingNsPinkingRight"},_.W("defs",null,_.W("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.W("polygon",{class:"ytPinkingNsPinking",points:"4,0 0,4 4,8"}))),_.W("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"jb");
_.kl.idomCompat={callbacks:{playbackRef:!0}};var d0l=_.U(function(M){var q=_.k(_.lQ(-1,void 0,"RW2Ole")),G=q.next().value,K=q.next().value;_.SK(function(){var n=new Kkd(K);N5I(n,M.data().thumbnails.length);_.m_(function(){if(n.isSlideshowPlaying){n.isSlideshowPlaying=!1;for(var E=n.jobIds,p=0,y=E.length;p<y;p++)_.r8.cancelJob(E[p]);n.jobIds.length=0}})});
return _.W("yt-collection-thumbnail-slideshow",{class:"ytCollectionThumbnailSlideshowHost"},_.W(_.yu,{data:function(){return M.data().thumbnails}},{thumbnailViewModel:function(n,E){return _.W("div",{class:function(){var p=!M.data().primaryThumbnail,y=E(),Y=G(),A=["ytCollectionThumbnailSlideshowSlideshowThumbnail"];
p&&y===0&&A.push("ytCollectionThumbnailSlideshowSlideshowThumbnailFirstSlide");y<=Y&&A.push("ytCollectionThumbnailSlideshowSlideshowThumbnailShowSlide");return A.join(" ")}},_.W(_.kl,{data:n.data,
disableRounding:M.disableRounding}))}}))},"kb");
d0l.idomCompat=!0;var Xi4=new _.$k("DWELL_DETECTOR_REGISTRY_TOKEN");var hOP=_.U(function(M){var q=PYw(M.triggeringElement),G=function(){return!!M.data().primaryThumbnail},K=function(){var E,p=(E=M.data())==null?void 0:E.maxHeight,y;
E=(y=M.maxHeight)==null?void 0:y.call(M);return p!=null&&E!=null?Math.min(p,E):E!=null?E:p},n=function(){var E=K();
if(E){var p;if(G()&&(p=M.includeStackHeight)!=null&&p.call(M)){var y;p=((y=M.doubleStack)==null?0:y.call(M))?8:4}else p=0;E=E-p-1;if(!(E<0)){y=Math;p=y.ceil;var Y,A;var v=xZY((A=(Y=M.aspectRatio)==null?void 0:Y.call(M))!=null?A:0);return p.call(y,E*v)}}};
return _.W("yt-collection-thumbnail-view-model",{class:"ytCollectionThumbnailViewModelHost","aria-hidden":"true",style:_.Kp({height:function(){return K()?K()+"px":void 0},
width:function(){return n()?n()+"px":void 0}})},_.W(vRM,{stackEnabled:G,
thumbnailSize:function(){var E,p;return z$y((E=M.width)==null?void 0:E.call(M),(p=M.height)==null?void 0:p.call(M))},
doubleStack:M.doubleStack,stackColor:function(){return M.data().stackColor},
includeStackHeight:M.includeStackHeight},_.W(_.yu,{data:function(){return M.data().primaryThumbnail}},{thumbnailViewModel:function(E){var p={};
return _.W(_.kl,{data:E.data,width:M.width,height:M.height,aspectRatio:M.aspectRatio,disableRounding:M.disableRounding,className:_.Hb((p.ytCollectionThumbnailViewModelHostHasStacks=G,p)),hovered:M.hovered,playbackRef:M.playbackRef})}}),_.W(_.d,{cond:function(){var E;
return q()&&((E=M.data().thumbnails)==null?void 0:E.length)},
then:function(){return _.W("div",{class:"ytCollectionThumbnailViewModelSlideshow"},_.W(d0l,{data:M.data,disableRounding:function(){return!G()}}))}})))},"lb");
hOP.idomCompat={callbacks:{playbackRef:!0}};
var vRM=_.U(function(M){var q=M.children;var G=M.stackEnabled;var K=M.thumbnailSize;var n=M.doubleStack;var E=M.stackColor;var p=M.includeStackHeight;var y,Y=(y=_.AL().resolve(_.WR(_.Qx)))==null?void 0:y();return _.W(_.d,{cond:G,then:function(){return _.W(TH8,{data:function(){var A,v;return{experimentEnabled:!0,thumbnailSize:K(),doubleStack:n==null?void 0:n(),color:Y?E==null?void 0:(A=E())==null?void 0:A.darkTheme:E==null?void 0:(v=E())==null?void 0:v.lightTheme,enableResponsiveMode:!1,includeStackHeight:p==
null?void 0:p()}}},q)},
else:function(){return q}})},"mb");var tdB=new _.$k("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var yG;_.p0={calledOnce:!0,state:"visible"};yG={calledOnce:!0,state:"hidden"};_.L0=_.U(function(M){var q=M.data;var G=M.customCommandResolver;var K=M.className;var n=M.delayedClassName;var E=M.animationEntityKey;var p=M.isCompactWidth;var y=M.isContentWidth;M=_.k(_.lQ(!1,void 0,"pC3tUb"));var Y=M.next().value,A=M.next().value,v=_.bg(E,""),h=_.No(CD$,v),t=function(){var t4,ay;return(ay=(t4=h())==null?void 0:t4.value)!=null?ay:!1},O=function(){_.Zp(_.LL("booleanEntity",v(),{key:v(),
value:!0}));m=void 0};
E=_.k(_.GM(t));var a=E.next().value,g=E.next().value;E=_.k(_.GM(t));var D=E.next().value,J=E.next().value;E=_.k(_.GM(function(){var t4;return t()?(t4=q().styleTransitionConfig)==null?void 0:t4.destinationStyle:void 0}));
var Z=E.next().value,V=E.next().value,S=function(){var t4=Object.assign({},q(),Z()&&{style:Z()});var ay,bH,iH=t4.label,oI=(ay=t4.interaction)==null?void 0:(bH=ay.accessibility)==null?void 0:bH.label;ay=t4.iconImage?t4.label&&t4.label.content?t4.iconLeading?"leading":"trailing":"icon-only":void 0;t4={formattedButtonText:iH,accessibilityLabel:oI,style:BHi(t4.style),type:Qbe(t4.style),state:"active",size:g3w(t4.size),iconPosition:ay,disabled:!1,aTagConfig:cNF(t4,G)};_.w("enable_desktop_vdcbg_components")&&
(t4.focused=Y());return t4},m;
E=_.d_({visibilityCallback:function(t4){var ay,bH=(ay=q().interaction)==null?void 0:ay.onFirstVisible;t4&&bH&&_.Pb(bH)},
showOption:_.p0});var R=function(){return f7H(S(),!!q().iconImage)};
M={};var se={};K=_.Hb(function(){return"ytwAdButtonViewModelHost"},function(){return q().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var t4=!!q().delayedAppearanceConfig,ay=a();
return t4?ay?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var t4=!!q().delayedAppearanceConfig,ay=D();
return t4?ay?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!q().delayedAppearanceConfig||a()?n==null?void 0:n():""},(M.ytwAdButtonViewModelHostCompactWidth=function(){return p==null?void 0:p()},M),(se.ytwAdButtonViewModelHostContentWidth=function(){return y==null?void 0:y()},se),K!=null?K:"");
var yY=function(){var t4,ay=(t4=q().delayedAppearanceConfig)==null?void 0:t4.delayedInvisibleSeconds;ay&&(m=_.WO(_.r8,function(){g(!0);d$()},ay*1E3))},d$=function(){var t4,ay=(t4=q().delayedAppearanceConfig)==null?void 0:t4.delayedVisibleSeconds;
ay&&(m=_.WO(_.r8,function(){J(!0);cy()},ay*1E3))},cy=function(){var t4,ay=(t4=q().styleTransitionConfig)==null?void 0:t4.styleTransitionSeconds,bH,iH=(bH=q().styleTransitionConfig)==null?void 0:bH.destinationStyle;
ay&&iH?m=_.WO(_.r8,function(){V(iH);O()},ay*1E3):O()};
_.SK(function(){yY()});
_.m_(function(){m&&_.r8.cancelJob(m)});
return _.W("ad-button-view-model",{"on:focusin":_.sq(_.w("enable_desktop_vdcbg_components")?function(){var t4=_.AL().resolve(_.WR(_.Nt));t4&&A(t4.isKeyBoardInUse());return!1}:void 0),
"on:focusout":_.sq(_.w("enable_desktop_vdcbg_components")?function(){A(!1);return!1}:void 0),
class:K,el:_.bm(E),style:_.Kp({"transition-duration":"0.3s"})},_.W(_.d,{cond:S,then:function(){return _.W(_.Yv,{data:S,icon:function(){return _.W(_.d,{cond:function(){return q().iconImage},
then:function(t4){return _.W(_.Jj,{data:t4,alt:"",targetWidth:R,targetHeight:R,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ob");var Ozd=_.U(function(M){var q=M.data;M=function(){return q().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"};
var G=_.d_({visibilityCallback:function(E){var p,y=(p=q().interaction)==null?void 0:p.onFirstVisible;E&&y&&_.Pb(y)},
showOption:_.p0}),K={},n={};return _.W("ad-button-group-view-model",{class:_.Hb("ytwAdButtonGroupViewModelHost",(K.ytwAdButtonGroupViewModelHostCompactWidth=M,K)),el:_.bm(G)},_.W("div",{class:_.Hb("ytwAdButtonGroupViewModelHostSecondaryButton",(n.ytwAdButtonGroupViewModelHostCompactWidthSecondaryButton=M,n))},_.W(_.yu,{data:function(){return q().secondaryAdButton}},{adButtonViewModel:function(E){return _.W(_.L0,{data:E.data})}})),_.W("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.W(_.yu,
{data:function(){return q().primaryAdButton}},{adButtonViewModel:function(E){return _.W(_.L0,{data:E.data})}})))},"pb");var wuS=_.U(function(M){var q=function(){var G;return((G=M.data())==null?void 0:G.answers)||[]};
return _.W("yt-survey-icons",{class:"ytSurveyIconsHost"},_.W("div",{class:"ytSurveyIconsHeader"},_.W("div",{class:"ytSurveyIconsTitle"},function(){var G;return(G=M.data())==null?void 0:G.text}),_.W("div",null,_.W(_.Yv,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var G;(G=M.onDismiss)==null||G.call(M)}}},
iconName:"DISMISSAL"}))),_.W("div",null,_.W("div",{class:"ytSurveyIconsAnswers"},_.W(_.bf,{each:function(){return q()},
keyBy:"INDEX"},function(G,K){return _.W("div",null,_.W(_.Yv,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var n;(n=M.onSelect)==null||n.call(M,G(),K)}}},
icon:function(){return _.W(_.np,{icon:function(){var n,E;return(n=G())==null?void 0:(E=n.icon)==null?void 0:E.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.W("div",{class:"ytSurveyIconsAnswersText"},_.W("div",null,function(){return q().length?q()[0].text:""}),_.W("div",null,function(){return q().length?q()[q().length-1].text:""}))))},"qb");var CwJ=_.U(function(M){var q=_.bm(_.CL(function(){var Y;return(Y=M.data())==null?void 0:Y.rendererContext},void 0,void 0,void 0,!0)),G=_.k(_.lQ(!1,void 0,"GW0yjf")),K=G.next().value,n=G.next().value,E=_.No(oXi,function(){var Y;
return(Y=M.data().keys)==null?void 0:Y.surveyEntityKey}),p=_.No(loY,function(){var Y;
return(Y=M.data().keys)==null?void 0:Y.surveyStateEntityKey});
_.kI("ytd-slimline-survey-show-action",function(){n(!1)});
var y=function(){var Y,A;var v=(Y=p())==null?void 0:(A=Y.questionStack)==null?void 0:A[0];if(v!==void 0){var h,t;return(h=E())==null?void 0:(t=h.questions)==null?void 0:t[v]}};
G={};return _.W("yt-slimline-survey-view-model",{el:q,class:_.Hb("ytSlimlineSurveyViewModelHost",(G.ytSlimlineSurveyViewModelCollapsed=function(){return K()},G))},_.W("div",{class:"ytSlimlineSurveyViewModelContainer"},_.W(_.d,{cond:function(){var Y;
return((Y=y())==null?void 0:Y.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.W(wuS,{data:function(){return y()},
onSelect:function(Y,A){var v,h;return _.L(function(t){n(!0);if(h=(v=M.data())==null?void 0:v.onSelectRating)_.Pb(h),_.Zp(VQv(A));_.gL(t)})},
onDismiss:function(){n(!0);var Y;var A=(Y=E())==null?void 0:Y.dismissalFeedbackToken;Y=A?{feedbackEndpoint:{feedbackToken:A}}:void 0;Y&&_.oM(Y,{form:{element:q.value}})}})}})))},"rb");var aVf=_.U(function(M){return _.W("yt-table-view-model",{class:_.Hb("ytTableViewModelHost",M.className)},_.W(_.bf,{each:function(){return M.data().rows||[]}},function(q){return _.W("div",{class:"ytTableViewModelRow"},_.W(_.bf,{each:function(){return(q==null?void 0:q.cells)||[]}},function(G,K){var n,E={};
return _.W("span",{class:_.Hb((E.ytTableViewModelRowLabel=function(){return K()===0&&M.data().showHorizontalHeaders},E.ytTableViewModelCell=function(){return!M.data().showHorizontalHeaders||K()>0},E))},(n=G.text)==null?void 0:n.content)}))}))},"sb");var oRP=_.U(function(M){return _.W("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.W(_.yu,{data:function(){var q;return(q=M.data())==null?void 0:q.attachments}},{flexibleActionsViewModel:function(q){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(_.Sj,{data:q.data,
layout:function(){var G;return((G=M.lockupStyle())==null?void 0:G.arrangement)===1?0:1},
justifyContentOverride:function(){var G;return((G=M.lockupStyle())==null?void 0:G.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(q){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(CwJ,{data:q.data}))},
expandableMetadataViewModel:function(q){q=q.data;var G;return _.W("div",{class:_.Hb("ytLockupAttachmentsViewModelAttachment","ytLockupAttachmentsViewModelExpandableMetadata")},(G=_.AL().resolve(_.WR(tdB)))==null?void 0:G({data:q}))},
adButtonGroupViewModel:function(q){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(Ozd,{data:q.data}))},
adButtonViewModel:function(q){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(_.L0,{data:q.data,isCompactWidth:!0}))},
tableViewModel:function(q){return _.W("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.W(aVf,{data:q.data}))}}))},"tb");var bty=_.tL("rich_grid_min_item_width",310),JNH=_.tL("rich_grid_max_item_width",500);var lVM=_.U(function(M){var q=M.data;return _.W("br-nz-badge-shape",{class:_.Hb(function(){return jbs(q().brNzRatingBadgeType)}),
role:function(){return q().accessibilityText?"img":void 0},
"aria-label":function(){return q().accessibilityText}},function(){var G;
return(G=q())==null?void 0:G.text})},"ub");_.Yl=_.U(function(M){var q=function(){var G=M.data(),K,n,E;if(G){var p=!((K=M.workaroundShortsIsThumbnailBadge)==null||!K.call(M));K=(n=M.modern)==null?void 0:n.call(M);n=(E=M.numBadgesInRow)==null?void 0:E.call(M);var y;a:switch(G.badgeStyle){case "BADGE_OVERLAY":E=!0;break a;default:E=!1}G={type:p?17:VtD(G.badgeStyle),brNzRatingBadgeType:R5Y(G.badgeStyle),text:G.badgeText,icon:G.iconName,isOverlay:E,modern:K||_.w("web_modern_badge_view_model"),accessibilityText:G.accessibilityLabel||((y=_.C(G.rendererContext,
_.NQ))==null?void 0:y.label),numBadgesInRow:n}}else G=void 0;return G};
return _.W("yt-badge-view-model",{class:_.Hb("ytBadgeViewModelHost",M.class)},_.W(_.Ub,null,_.W(_.J3,{when:function(){var G;return!((G=q())==null||!G.brNzRatingBadgeType)}},function(){return _.W(lVM,{data:function(){return q()}})}),_.W(_.J3,{when:function(){return!!q()&&!q().brNzRatingBadgeType}},function(){return _.W(_.VT,{data:function(){return q()}})})))},"vb");
_.Yl.idomCompat=!0;var FWy,f5H;FWy=16/9;f5H=2/3;_.We=_.U(function(M){var q=M.data;var G=M.className;var K=M.imageSizeConfig;var n=M.notifyOnLoaded;var E=function(){return q().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},p=function(){var t;
return _.wx((t=q())==null?void 0:t.rendererContext)};
M={};M=(M.ytContentPreviewImageViewModelHost=!0,M.ytContentPreviewImageViewModelCircleImage=function(){return E()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},M.ytContentPreviewImageViewModelTappable=function(){return p()},M);
var y=function(){var t,O;return(O=(t=_.C(q().rendererContext,_.NQ))==null?void 0:t.label)!=null?O:""},Y=function(){return e5y(q())},A=function(){var t=Htw(E(),q().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",K==null?void 0:K(),$P$(Y()),q().layoutWidth,q().layoutHeight),O=Object.assign({},t);
t.width&&(O.width=Math.round(t.width));t.height&&(O.height=Math.round(t.height));t.maxWidth&&(O.maxWidth=Math.round(t.maxWidth));t.maxHeight&&(O.maxHeight=Math.round(t.maxHeight));return O},v=_.gY(function(){return A().height},void 0,"CxFlJb"),h=_.gY(function(){return A().width},void 0,"lb8Jhd");
return _.W("yt-content-preview-image-view-model",{el:_.bm(_.CL(function(){var t;return(t=q())==null?void 0:t.rendererContext})),
role:function(){return p()?"link":void 0},
tabindex:function(){return p()?0:void 0},
class:_.Hb(G,M,function(){var t=E();var O=K==null?void 0:K();t=t==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||t==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||t==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||t==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(O==null?void 0:O.size)!=null&&O.size<=16?"ytContentPreviewImageViewModelExtraSmallRoundedImage":(O==null?void 0:O.size)!=null&&O.size<=24?"ytContentPreviewImageViewModelSmallRoundedImage":"ytContentPreviewImageViewModelLargeRoundedImage":
void 0;return t}),
style:function(){var t=A(),O=[];t.width&&O.push("width: "+t.width+"px");t.height&&O.push("height: "+t.height+"px");t.maxWidth&&O.push("max-width: "+t.maxWidth+"px");t.maxHeight&&O.push("max-height: "+t.maxHeight+"px");t.fullWidth&&O.push("width: 100%");return O.join(";")}},_.W(_.d,{cond:Y,
then:function(t){return _.W(_.Jj,{data:t,alt:y,"data-disabled$":function(){return!y()},
notifyOnLoaded:n,targetWidth:h,targetHeight:v,preserveWidth:function(){return!!h()},
preserveHeight:function(){return!!v()}})}}),_.W(_.yu,{data:function(){var t;
return(t=q())==null?void 0:t.overlays}},{thumbnailHoverOverlayViewModel:xL,
thumbnailOverlayButtonViewModel:_.LkI}))},"wb");
_.We.idomCompat=!0;var Ab=_.U(function(M){var q=M.data;var G=M.className;var K=M.useSmallLayout;var n=M.useMediumText;M=M.useHeavyText;var E={};return _.W("yt-attribution-view-model",{el:_.bm(_.CL(function(){var p;return(p=q())==null?void 0:p.rendererContext})),
class:_.Hb(G,(E.ytAttributionViewModelHost=!0,E.ytAttributionViewModelMediumText=n,E.ytAttributionViewModelHeavyText=M,E))},_.W(_.d,{cond:function(){return _.wx(q().rendererContext)},
then:function(){return _.W("button",{class:"ytAttributionViewModelTappable"},_.W(XuB,{data:q,useSmallLayout:K}))},
else:function(){return _.W(XuB,{data:q,useSmallLayout:K})}}))},"xb"),XuB=_.U(function(M){var q=M.data;
var G=M.useSmallLayout;var K=function(){return{size:(G==null?0:G())?16:24}};
return _.W(_.dU,null,_.W(_.yu,{data:function(){return q().contentPreviewImage}},{contentPreviewImageViewModel:function(n){return _.W(_.We,{data:n.data,
className:"ytAttributionViewModelAttributionImage",imageSizeConfig:K})}}),_.W(_.yu,{data:function(){return q().badge}},{badgeViewModel:function(n){return _.W(_.Yl,{data:n.data,
class:"ytAttributionViewModelBadge",modern:!0})}}),_.W(_.d,{cond:function(){return q().text},
then:function(){return _.W(_.Ft,{text:function(){return q().text},
noWrap:!0,linkInheritColor:!0,className:"ytAttributionViewModelAttributionText"})}}),_.W(_.d,{cond:function(){return q().suffix},
then:function(){return _.W(_.Ft,{text:function(){return q().suffix},
linkInheritColor:!0,className:"ytAttributionViewModelSuffix"})}}))},"yb");
Ab.idomCompat=!0;var PwS,izp,ciJ,gRl,B5p;PwS=_.U(function(M){var q=M.delimiter;var G=M.max;var K=M.index;var n=M.isStandalone;return _.W(_.d,{cond:function(){return G()-1>K()},
then:function(){var E={};return _.W("span",{class:_.Hb("yt-content-metadata-view-model__delimiter",(E["yt-content-metadata-view-model__delimiter--standalone"]=n,E)),"aria-hidden":!0},q)}})},"zb");
izp=_.U(function(M){var q=M.metadataPart;var G=M.maxLines;return _.W(_.Ft,{text:function(){return q().text},
linkInheritColor:!0,className:function(){return sNy(G())},
userInput:!0})},"Ab");
ciJ=_.U(function(M){var q=M.metadataPart;var G=M.maxLines;return _.W(_.d,{cond:function(){return q().tooltip},
then:function(K){return _.W("span",{title:K,role:"tooltip"},_.W(izp,{metadataPart:q,maxLines:G}))},
else:function(){return _.W(izp,{metadataPart:q,maxLines:G})}})},"Bb");
gRl=_.U(function(M){var q=M.metadataPart;var G=M.isOverlay;var K=M.useMediumText;var n=M.hideAvatar;var E=function(){return q().maxLines!==void 0?q().maxLines:1};
return _.W(_.dU,null,_.W(_.yu,{data:function(){return q().avatarStack}},{avatarStackViewModel:function(p){return _.W(_.Sf,{data:p.data,
isOverlay:G,useMediumText:K,hideAvatar:n})},
badgeViewModel:_.Yl}),_.W(_.d,{cond:function(){return q().leadingIcon},
then:function(p){return _.W(_.np,{className:"yt-content-metadata-view-model__leading-icon",icon:function(){return p().name},
size:function(){return p().width}})}}),_.W(_.d,{cond:function(){return q().text},
then:function(){return _.W(ciJ,{metadataPart:q,maxLines:E})}}),_.W(_.d,{cond:function(){return q().icon},
then:function(p){return _.W(_.np,{className:"yt-content-metadata-view-model__icon",icon:function(){return p().name},
size:function(){return p().width}})}}))},"Cb");
B5p=_.U(function(M){var q=M.metadataRow;var G=M.isInline;var K=M.delimiter;var n=M.isOverlay;var E=M.useMediumText;var p=M.extensions;var y=function(){var A,v=p==null?void 0:(A=p())==null?void 0:A.lockupMetadata;A=q();var h,t;return!!((v==null?0:(h=v.byline)==null?0:h.hideAvatar)&&((t=_.C(A,ko9))==null?void 0:t.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},Y=function(){return q().metadataParts||[]};
M={};return _.W("div",{class:_.Hb("yt-content-metadata-view-model__metadata-row",(M["yt-content-metadata-view-model__metadata-row--metadata-row-inline"]=G,M["yt-content-metadata-view-model__metadata-row--metadata-row-padding"]=function(){var A,v=p==null?void 0:(A=p())==null?void 0:A.lockupMetadata;A=q();var h,t;return!!((v==null?0:(h=v.byline)==null?0:h.addPadding)&&((t=_.C(A,ko9))==null?void 0:t.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")},M["yt-content-metadata-view-model__metadata-row--metadata-row-wrap"]=
function(){var A;
return!!(p==null?0:(A=p())==null?0:A.lockupMetadata)&&q().badges&&!q().metadataParts},M))},_.W(_.yu,{data:function(){return q().badges}},{badgeViewModel:function(A){return _.W("div",{class:"yt-content-metadata-view-model__badge"},_.W(_.Yl,{data:A.data,
numBadgesInRow:function(){var v,h;return((v=q())==null?void 0:(h=v.badges)==null?void 0:h.length)||0}}))}}),_.W(_.bf,{each:Y},function(A,v){return _.W(_.dU,null,_.W(gRl,{metadataPart:A,
isOverlay:n,useMediumText:E,hideAvatar:y}),_.W(PwS,{delimiter:K,max:function(){return Y().length},
index:v,isStandalone:!1}))}),_.W(_.d,{cond:function(){return q().isSpacerRow&&!G()},
then:function(){return _.W("div",{class:"yt-content-metadata-view-model__spacer"})}}))},"Db");
_.dp=_.U(function(M){M=_.UT(M,{layout:0,isOverlay:!1});var q=M.data,G=M.layout,K=M.isOverlay,n=M.useMediumText,E=M.extensions,p=function(){return G()===0},y=function(){var A;
return((A=q().metadataRows)==null?void 0:A.filter(function(v){var h,t=E==null?void 0:(h=E())==null?void 0:h.lockupMetadata,O,a;h=!!((t==null?0:(O=t.description)==null?0:O.hideDescription)&&((a=_.C(v,ko9))==null?void 0:a.contentType)==="METADATA_ROW_CONTENT_TYPE_DESCRIPTION");var g,D;return!((t==null?0:(g=t.spacer)==null?0:g.hideSpacer)&&((D=_.C(v,ko9))==null?void 0:D.contentType)==="METADATA_ROW_CONTENT_TYPE_SPACER"||h)}))||[]},Y={};
return _.W("yt-content-metadata-view-model",{class:_.Hb(M.className,"yt-content-metadata-view-model",(Y["yt-content-metadata-view-model--inline"]=p,Y["yt-content-metadata-view-model--tappable"]=function(){return _.wx(q().rendererContext)},Y["yt-content-metadata-view-model--medium-text"]=n,Y)),
el:_.bm(_.CL(function(){return q().rendererContext}))},_.W(_.bf,{each:y},function(A,v){return _.W(_.dU,null,_.W(B5p,{metadataRow:A,
isInline:p,delimiter:function(){return q().delimiter},
isOverlay:K,useMediumText:n,extensions:E}),_.W(_.d,{cond:function(){return p()&&!A.isSpacerRow},
then:function(){return _.W(PwS,{delimiter:function(){return q().delimiter},
max:function(){return y().length},
index:v,isStandalone:!0})}}))}))},"Eb");
_.dp.idomCompat=!0;var QpJ=_.U(function(M){var q=_.AL().resolve(_.WR(_.Qx)),G={};return _.W("yt-lockup-metadata-view-model",{class:_.Hb("yt-lockup-metadata-view-model",function(){a:{var K=M.lockupStyle();if(K==null?0:K.isOverlay)K="yt-lockup-metadata-view-model--overlay";else switch(K==null?void 0:K.arrangement){case 1:K="yt-lockup-metadata-view-model--horizontal";break a;default:K="yt-lockup-metadata-view-model--vertical"}}return K},function(){a:{var K=M.lockupStyle();
switch(K==null?void 0:K.titleMaxLines){case 1:K="yt-lockup-metadata-view-model--title-max-lines-1";break a}K=void 0}return K},function(){a:{var K=M.lockupStyle();
if(K==null?0:K.isTiny)K="yt-lockup-metadata-view-model--tiny";else switch(K==null?void 0:K.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":K="yt-lockup-metadata-view-model--compact";break a;default:K="yt-lockup-metadata-view-model--standard"}}return K},(G["yt-lockup-metadata-view-model--overlay"]=function(){var K;
return(K=M.lockupStyle())==null?void 0:K.isOverlay},G["yt-lockup-metadata-view-model--card"]=function(){var K;
return(K=M.lockupStyle())==null?void 0:K.isCard},G["yt-lockup-metadata-view-model--centered"]=function(){var K;
return(K=M.lockupStyle())==null?void 0:K.isCentered},G["yt-lockup-metadata-view-model--typography-bump"]=function(){var K;
return(K=M.lockupStyle())==null?void 0:K.typographyBump},G["yt-lockup-metadata-view-model--legacy-typography"]=function(){var K;
return(K=M.lockupStyle())==null?void 0:K.useLegacyTypography},G["yt-lockup-metadata-view-model--rich-grid-legacy-typography"]=function(){var K;
return(K=M.lockupStyle())==null?void 0:K.useRichGridLegacyTypography},G))},_.W(_.yu,{data:function(){return M.data().image}},{avatarStackViewModel:function(K){return _.W("div",{class:"yt-lockup-metadata-view-model__avatar"},_.W(_.Sf,{data:K.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(K){return _.W("div",{class:"yt-lockup-metadata-view-model__avatar"},_.W(_.zo,{data:K.data}))},
decoratedAvatarViewModel:function(K){return _.W("div",{class:"yt-lockup-metadata-view-model__avatar"},_.W(_.mF,{data:K.data}))}}),_.W("div",{class:"yt-lockup-metadata-view-model__text-container"},_.W("h3",{class:"yt-lockup-metadata-view-model__heading-reset",
title:function(){var K;return(K=M.data().title)==null?void 0:K.content}},_.W(_.d,{cond:function(){return M.data().title},
then:function(K){return _.W(_.kv,{command:M.lockupCommand,className:"yt-lockup-metadata-view-model__title",style:_.Kp({color:function(){var n;a:{var E=M.lockupStyle();var p=(n=M.hovered)==null?void 0:n.call(M);n=!(q==null||!q());var y;if((E==null?0:(y=E.onFocusEffect)==null?0:y.textPrimaryColor)&&p&&(E=n?E.onFocusEffect.textPrimaryColor.darkTheme:E.onFocusEffect.textPrimaryColor.lightTheme)){E=or(E);break a}E=void 0}return E}}),
ariaLabel:M.lockupAccessibilityLabel},_.W(_.Ft,{text:K,userInput:!0}))}})),_.W("div",{class:"yt-lockup-metadata-view-model__metadata",
style:_.Kp({color:function(){var K;a:{var n=M.lockupStyle();var E=(K=M.hovered)==null?void 0:K.call(M);K=!(q==null||!q());var p;if((n==null?0:(p=n.onFocusEffect)==null?0:p.textSecondaryColor)&&E&&(n=K?n.onFocusEffect.textSecondaryColor.darkTheme:n.onFocusEffect.textSecondaryColor.lightTheme)){n=or(n);break a}n=void 0}return n}})},_.W(_.yu,{data:function(){return M.data().metadata}},{contentMetadataViewModel:function(K){return _.W(_.dp,{data:K.data,
layout:1,useMediumText:function(){var n,E;return((n=M.lockupStyle())==null?void 0:n.typographyBump)||((E=M.lockupStyle())==null?void 0:E.useRichGridLegacyTypography)},
extensions:function(){var n,E,p,y;return{lockupMetadata:{byline:{hideAvatar:((n=M.lockupStyle())==null?void 0:n.arrangement)===0,addPadding:((E=M.lockupStyle())==null?void 0:E.arrangement)===1},description:{hideDescription:!((p=M.lockupStyle())==null||!p.compactMetadata)},spacer:{hideSpacer:!((y=M.lockupStyle())==null||!y.compactMetadata)}}}}})}})),_.W(_.yu,{data:function(){return M.data().attribution}},{attributionViewModel:function(K){return _.W("div",{class:"yt-lockup-metadata-view-model__attribution"},
_.W(Ab,{data:K.data,
useSmallLayout:!0}))}})),_.W("div",{class:"yt-lockup-metadata-view-model__menu-button"},_.W(_.yu,{data:function(){return M.data().menuButton}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
buttonOverrides:function(){var n;return((n=M.lockupStyle())==null?0:n.isOverlay)?{style:"overlay"}:void 0}})}})))},"Fb");
QpJ.idomCompat=!0;var IVM=_.U(function(M){var q=_.pI("notification-multi-action-renderer");_.mT(function(){requestAnimationFrame(function(){_.N8(q.value)})});
var G={},K={},n={};return _.W("notification-multi-action-renderer",{class:_.Hb("ytNotificationMultiActionRendererHost",(G.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var E;return(E=M.useLegacyShelfStyle)==null?void 0:E.call(M)},G)),
el:q},_.W("span",{"aria-live":"polite",class:_.Hb("ytNotificationMultiActionRendererTextContainer",(K.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var E;return(E=M.useLegacyShelfStyle)==null?void 0:E.call(M)},K))},_.W(_.Ft,{text:function(){return M.data().responseText}})),_.W("div",{class:_.Hb("ytNotificationMultiActionRendererButtonContainer",(n.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var E;
return(E=M.useLegacyShelfStyle)==null?void 0:E.call(M)},n))},_.W(_.yu,{data:function(){var E;
return(E=M.data().buttons)==null?void 0:E.map(function(p){if(p=p.buttonRenderer){var y,Y=Object,A=Y.assign,v=(y=p.icon)==null?void 0:y.iconType;y=(y=p.command||p.serviceEndpoint||p.navigationEndpoint)?{innertubeCommand:y}:void 0;p={buttonViewModel:A.call(Y,{},{iconName:v,onTap:y,trackingParams:p.trackingParams,titleFormatted:p.text?_.tj(p.text):void 0},qC$(p))}}else p=void 0;return p}).filter(function(p){return!!p})}},{buttonViewModel:function(E,p){return _.W("div",null,_.W(_.Wf,{data:E.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var y;return((y=M.useModernStyles)==null?0:y.call(M))?{type:p()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Hb");var D09=_.U(function(M){var q=_.pI("notification-text-renderer");_.mT(function(){requestAnimationFrame(function(){_.N8(q.value)})});
return _.W("notification-text-renderer",{el:q,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.W(_.Ft,{text:function(){return M.data().successResponseText}}))},"Jb");_.ve=_.U(function(M){var q=_.No(L04,function(){var K;return GrF((K=M.contentId)==null?void 0:K.call(M))}),G=function(){var K;
return _.C((K=q())==null?void 0:K.command,_.PA)};
return _.W(_.d,{cond:function(){var K;if(!(K=G())){var n;K=_.C((n=q())==null?void 0:n.command,CtB)}return K},
then:function(){return _.W(_.d,{cond:G,then:function(){var K={};return _.W("div",{class:_.Hb("ytDismissibleItemReplacedContent",function(){var n;return Knj((n=M.aspectRatio)==null?void 0:n.call(M))})},_.W("div",{class:_.Hb((K.ytDismissibleItemAspectRatioContainer=function(){var n;
return((n=M.aspectRatio)==null?void 0:n.call(M))!==void 0},K))},_.W(_.yu,{data:function(){var n;
return(n=G())==null?void 0:n.item}},{notificationMultiActionRenderer:function(n){return _.W(IVM,{data:n.data,
useModernStyles:M.useModernStyle,useLegacyShelfStyle:M.useLegacyShelfStyle})},
notificationTextRenderer:D09})))}})},
else:M.children})},"Kb");_.u_P=_.U(function(M){var q=M.data;var G=M.customCommandResolver;M=_.bm(_.d_({visibilityCallback:function(E){var p,y=(p=q().interaction)==null?void 0:p.onFirstVisible;E&&y&&_.Pb(y)},
showOption:_.p0}));var K=function(){var E;return((E=q().interaction)==null?0:E.onTap)?function(p){var y;itH(p,(y=q().interaction)==null?void 0:y.onTap,G)}:void 0},n=function(){var E,p=q(),y=K(),Y=(E=_.C(q().rendererContext,_.NQ))==null?void 0:E.label;
a:switch(p.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":E=1;break a;default:E=0}return{size:NGe(p.size),type:E,onTap:y,accessibilityText:Y}};
return _.W("ad-avatar-view-model",{class:function(){var E;return((E=q().interaction)==null?0:E.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:M},_.W(_.d,{cond:function(){return q().image},
then:function(E){return _.W(hNP,{data:n,image:E})}}))},"Lb");_.hb=_.U(function(M){var q=_.UT(M,{hasDot:!1,usedInMasthead:!1}),G=Object.assign({},q),K=q.data,n=q.hasDot;M=q.customCommandResolver;var E=q.usedInMasthead,p=(delete G.data,delete G.hasDot,delete G.customCommandResolver,delete G.usedInMasthead,G);q=function(){return K().style};
q!==void 0&&q!==null||_.Mz(Error("Hh"));M=_.Xm(function(){return K().interaction},M);
return _.W("ad-badge-view-model",{class:_.Hb(function(){var y;return((y=K().interaction)==null?0:y.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var y=p.adRenderingContextType(),Y=E();
K();return y!=="AD_RENDERING_CONTEXT_TYPE_BROWSE"||Y?"ytwAdBadgeViewModelHostStyleStandard":"ytwAdBadgeViewModelHostStyleStandardBrowse"}),
el:_.bm(M)},_.W(_.VT,{data:function(){var y;K();return{type:2,text:(y=K().label)==null?void 0:y.content,adsIncludeDot:n(),isOverlay:K().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Mb");var Jiv;_.tb=_.U(function(M){var q=M.data;var G=M.customCommandResolver;var K=M.adRenderingContextType;return _.W("ad-details-line-view-model",{class:function(){var n;return((n=q().interaction)==null?0:n.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:_.bm(_.d_({visibilityCallback:function(n){var E,p=(E=q().interaction)==null?void 0:E.onFirstVisible;n&&p&&_.Pb(p)},
showOption:_.p0}),_.Xm(function(){return q().interaction},G))},_.W(_.d,{cond:function(){return q().style},
then:function(n){return _.W(_.bf,{each:function(){var E;return((E=q())==null?void 0:E.attributes)||[]},
keyBy:"INDEX"},function(E){return _.W(Jiv,{attribute:E,style:n,adRenderingContextType:function(){return K()}})})}}))},"Nb");
Jiv=_.U(function(M){var q=M.attribute;var G=M.style;var K=M.adRenderingContextType;return _.W(_.d,{cond:function(){return q().text},
then:function(n){return _.W(_.Ft,{text:n,className:function(){var E=K();G();return E==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ob");var Zzx=_.U(function(M){var q=M.data;var G=M.typographyBump;var K=function(){return q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
M={};return _.W(_.dU,null,_.W("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.W(_.Ft,{text:function(){return q().headline},
className:_.Hb("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(M.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return K==null?void 0:K()},M.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(G==null?void 0:G())&&!(K==null?0:K())},M)),
linkInheritColor:!0}),_.W(_.d,{cond:function(){return q().description},
then:function(n){var E={};return _.W(_.Ft,{text:n,className:_.Hb("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(E.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return K==null?void 0:K()},E.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(G==null?void 0:G())&&!(K==null?0:K())},E)),
linkInheritColor:!0})}}),_.W(_.d,{cond:function(){return q().secondaryDescription},
then:function(n){var E={};return _.W(_.Ft,{text:n,className:_.Hb("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(E.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return G==null?void 0:G()},E)),
linkInheritColor:!0})}}),_.W("div",{class:function(){return K()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.W(_.d,{cond:function(){return q().adAvatar},
then:function(){return _.W("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.W(_.yu,{data:function(){return q().adAvatar}},{adAvatarViewModel:_.u_P}))}}),_.W(_.yu,{data:function(){return q().adBadge}},{adBadgeViewModel:function(n){return _.W(_.hb,{data:n.data,
hasDot:function(){return!!q().adDetailsLine},
adRenderingContextType:function(){return q().adRenderingContextType}})}}),_.W(_.yu,{data:function(){return q().adDetailsLine}},{adDetailsLineViewModel:function(n){return _.W(_.tb,{data:n.data,
adRenderingContextType:function(){return q().adRenderingContextType}})}}))),_.W("div",{class:function(){return K()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.W(_.yu,{data:function(){return q().menu}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
buttonOverrides:function(){a:switch(q().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var E="S";break a;default:E="M"}return{size:E}}})}})))},"Pb"),bzP=_.U(function(M){var q=M.data;
var G=M.noBottomMargin;var K=M.useVideoLockupTopPadding;var n=M.typographyBump;M={};M=_.Hb("ytwFeedAdMetadataViewModelHostMetadata",(M.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return G==null?void 0:G()},M.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return K==null?void 0:K()},M));
var E=function(){return q().adBadge};
E!==void 0&&E!==null||_.Mz(Error("Ih"));E={};var p={};return _.W(_.dU,null,_.W(_.d,{cond:function(){return q().adAvatar},
then:function(){return _.W("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.W(_.yu,{data:function(){return q().adAvatar}},{adAvatarViewModel:function(y){return _.W(_.u_P,{data:y.data})}}))}}),_.W("div",{class:M},_.W("div",{class:_.Hb("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(E.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return n==null?void 0:n()},E.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(n==
null?void 0:n())&&_.w("web_enable_typography_bump_v2")},E))},_.W(_.Ft,{text:function(){return q().headline},
linkInheritColor:!0})),_.W(_.d,{cond:function(){return q().description},
then:function(y){return _.W(_.Ft,{text:y,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.W("div",{class:function(){return q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.w("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.W(_.yu,{data:function(){return q().adBadge}},
{adBadgeViewModel:function(y){return _.W(_.hb,{data:y.data,
hasDot:function(){return!!q().adDetailsLine},
adRenderingContextType:function(){return q().adRenderingContextType}})}}),_.W(_.yu,{data:function(){return q().adDetailsLine}},{adDetailsLineViewModel:function(y){return _.W(_.tb,{data:y.data,
adRenderingContextType:function(){return q().adRenderingContextType}})}})),_.W(_.d,{cond:function(){return q().secondaryDescription},
then:function(y){return _.W(_.Ft,{text:y,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.W("div",{class:_.Hb("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(p.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return K==null?void 0:K()},p))},_.W(_.yu,{data:function(){return q().menu}},{buttonViewModel:_.Wf})))},"Qb"),OY=_.U(function(M){var q=M.data;
var G=M.noBottomMargin;var K=M.listenToTapEvent;var n=M.setTouchEndHandler;var E=M.useVideoLockupTopPadding;var p=M.typographyBump;M=_.d_({visibilityCallback:function(h){var t,O=(t=q().interaction)==null?void 0:t.onFirstVisible;h&&O&&_.Pb(O)},
showOption:_.p0});var y=_.Xm(function(){return q().interaction},void 0,function(){return K==null?void 0:K()}),Y=_.k(_.lQ(!1,void 0,"a2FSrb")),A=Y.next().value,v=Y.next().value;
Y=_.sq(function(h){(n==null?0:n())&&!A()&&(h.currentTarget.click(),v(!0),setTimeout(function(){v(!1)},100));
return!1});
return _.W("feed-ad-metadata-view-model",{class:function(){var h;return((h=q().interaction)==null?0:h.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:_.bm(M,y),"on:touchend":Y},_.W(_.Ub,null,_.W(_.J3,{when:function(){return q().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.W(Zzx,{data:q,
typographyBump:p})}),_.W(_.J3,{when:function(){return q().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.W(bzP,{data:q,
noBottomMargin:G,useVideoLockupTopPadding:E,typographyBump:p})})))},"Rb");var U0v,x0I;U0v=_.gx.inlinePreviewEnabledSelector;_.wp=_.U(function(M){return _.W("yt-lockup-view-model",{class:_.Hb(M.className,"yt-lockup-view-model--wrapper")},_.W(_.ve,{contentId:function(){return M.data().contentId},
useModernStyle:!0,aspectRatio:function(){var q,G;return((q=M.containerType)==null?void 0:q.call(M))!==3?THF(M.data().contentType,(G=M.force16By9ThumbnailAspectRatio)==null?void 0:G.call(M)):void 0}},function(){return _.W(x0I,Object.assign({},M))}))},"Sb");
x0I=_.U(function(M){M=_.UT(M,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var q=M.data,G=M.containerLayoutConfig,K=M.containerType,n=M.sizing,E=M.protectBackground,p=M.typographyBump,y=M.force16By9ThumbnailAspectRatio,Y=M.thumbnailFixedWidth,A=M.thumbnailTargetWidth,v=M.lockupExperiments,h=M.elementsPerRow,
t=_.AL().resolve(_.WR(_.Qx));M=_.bm(_.CL(function(){var iH;return(iH=q())==null?void 0:iH.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL","YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0));var O=_.pp(U0v),a=_.AL().resolve(_.WR(q3v)),g=a?{}:void 0,D=function(){var iH,oI,r9;return(r9=(oI=_.C((iH=q())==null?void 0:iH.rendererContext,_.NQ))==null?void 0:oI.label)!=null?r9:void 0},J=function(){var iH;
return(iH=_.C(q().metadata,_.p5M))==null?void 0:iH.endorsement},Z=function(){var iH=G==null?void 0:G(),oI;
if(iH==null?0:iH.containerType){var r9=(oI=q())==null?void 0:oI.contentType;oI=v();var X2=p(),EM=A(),LP=E();iH=Object.assign({},rNH(xPs(iH),ih(iH.responsiveSize),X2,r9,iH.force16By9ThumbnailAspectRatio,EM,LP,oI),{thumbnailFixedWidth:iH.contentPreviewWidth})}else iH=rNH(K(),n(),p(),(r9=q())==null?void 0:r9.contentType,y(),A(),E(),v());return iH};
a&&g&&a({enabled:function(){return O()},
itemPlaybackModel:function(){return q().itemPlayback},
thumbnailElRef:function(){return g.thumbnailElRef},
containerElRef:M,options:function(){var iH=g.thumbnailOverlays||[],oI=J(),r9;!oI||((r9=v())==null?0:r9.onFocusEffect)||iH.push(oI);var X2,EM;return{thumbnail:g.thumbnail,thumbnailOverlays:iH,accessibilityText:D(),thumbnailSize:g.thumbnailSize,enableRounding:Z().isCollection,containPlayerWithinThumbnail:Z().isCollection,mouseleaveCallback:function(){m(!1)},
trackingParams:(X2=_.C(q().rendererContext,_.EE))==null?void 0:(EM=X2.loggingDirectives)==null?void 0:EM.trackingParams}}});
var V=0;a=_.k(_.lQ(!1,void 0,"dCI3sc"));var S=a.next().value,m=a.next().value;a=_.k(_.lQ(!1,void 0,"fnxRwc"));var R=a.next().value,se=a.next().value;a=_.sq(function(){R()?(_.r8.cancelJob(V),V=_.r8.addJob(function(){m(!0)},8,32)):m(!0);
return!0});
var yY=_.sq(function(iH){iH=iH.relatedTarget;var oI=document.querySelector("ytd-video-preview");iH&&oI&&oI.contains(iH)||(V&&(_.r8.cancelJob(V),V=0),m(!1))});
_.m_(function(){V&&(_.r8.cancelJob(V),V=0)});
var d$=EZY(function(){se(!0)}),cy=d$.touchFeedbackEvents,t4=d$.touchFeedbackOnPointerUp,ay=d$.touchFeedbackOnPointerDown;
d$=d$.touchFeedbackOnPointerLeave;var bH={};return _.W(_.dU,null,_.W("div",{el:M,class:_.Hb("yt-lockup-view-model",function(){a:{var iH=Z();if(iH.isOverlay)iH="yt-lockup-view-model--overlay";else switch(iH.arrangement){case 1:iH="yt-lockup-view-model--horizontal";break a;default:iH="yt-lockup-view-model--vertical"}}return iH},function(){a:{var iH=Z();
if(iH.isOverlay)iH="yt-lockup-view-model--overlay";else{switch(iH.collectionStackNumber){case 1:iH="yt-lockup-view-model--collection-stack-1";break a;case 2:iH="yt-lockup-view-model--collection-stack-2";break a}iH=void 0}}return iH},function(){var iH;
return _.Mku((iH=q())==null?void 0:iH.contentId)},(bH["yt-lockup-view-model--card"]=function(){return Z().isCard},bH["yt-lockup-view-model--compact"]=function(){return Z().isTiny||Z().sizing!=="STANDARD"},bH["yt-lockup-view-model--protect-background"]=E,bH["yt-lockup-view-model--add-margins"]=function(){return Z().addMarginForFullbleed},bH["yt-lockup-view-model--centered"]=function(){return Z().isCentered},bH["yt-lockup-view-model--fullbleed"]=function(){return Z().fullbleed},bH["yt-lockup-view-model--single-column-grid"]=
function(){return h()===1&&K()===2},bH["yt-lockup-view-model--rich-grid-legacy-margin"]=function(){var iH;
return(iH=v())==null?void 0:iH.useRichGridLegacyMargin},bH)),
"on:mousedown":ay,"on:mouseleave":yY,"on:mouseup":t4,"on:mouseover":a,"on:touchstart":ay,"on:touchend":t4,"on:pointerleave":d$},_.W(_.p3,{model:function(){var iH,oI,r9=Object,X2=r9.assign,EM=(g==null?void 0:g.thumbnailSize)||"small";a:{var LP=Z();var Pv=!!(J()&&((iH=v())==null?0:iH.onFocusEffect));switch((g==null?void 0:g.thumbnailSize)||"small"){case "small":iH=4;break;case "large":iH=12;break;default:iH=8}if(Pv)LP=iH+24;else{switch(LP.collectionStackNumber){case 1:LP=iH+8;break a;case 2:LP=iH+12;
break a}LP=void 0}}EM={thumbnailSize:EM,triggerEvents:!0,customTopExtend:LP};var g9;LP=(oI=v())==null?void 0:oI.onFocusEffect;Pv=!(t==null||!t());if(LP){var a8,tE;oI=Pv?(a8=LP.onFocusColor)==null?void 0:a8.darkTheme:(tE=LP.onFocusColor)==null?void 0:tE.lightTheme;var ND,Mx;a8=Pv?(ND=LP.keyLightColor)==null?void 0:ND.darkTheme:(Mx=LP.keyLightColor)==null?void 0:Mx.lightTheme;var hd;ND=Pv?(g9=LP.touchResponseColor)==null?void 0:g9.darkTheme:(hd=LP.touchResponseColor)==null?void 0:hd.lightTheme;g9={background:oI!==
void 0?or(oI):void 0,keyLight:a8!==void 0?or(a8):void 0};hd=[];Mx=_.k(LP.lightingTechniques||[]);for(a8=Mx.next();!a8.done;a8=Mx.next())switch(a8.value){case "LIGHTING_TECHNIQUE_KEY_LIGHT":hd.push(2);break;case "LIGHTING_TECHNIQUE_BACK_LIGHT":hd.push(1);break;case "LIGHTING_TECHNIQUE_FILL_LIGHT":hd.push(3)}g9={hoverEffect:{palette:g9,lightingTechniques:hd},touchEffect:{palette:{background:ND!==void 0?or(ND):void 0}}}}else g9={};return X2.call(r9,{},EM,g9)},
hovered:function(){return S()},
pointerDownEvent:cy.pointerDownEvent,pointerUpEvent:cy.pointerUpEvent,pointerLeaveEvent:cy.pointerLeaveEvent}),_.W(_.d,{cond:function(){var iH,oI;return J()&&S()&&((iH=v())==null?void 0:iH.onFocusEffect)&&!((oI=v())==null?0:oI.isFirstRow)},
then:function(){return _.W("div",{class:"yt-lockup-view-model__endorsement"},_.W(_.yu,{data:function(){return J()}},{attributionViewModel:function(iH){return _.W(Ab,{data:iH.data,
useHeavyText:!0})}}))}}),_.W(_.kv,{command:function(){var iH;
return _.O0((iH=q())==null?void 0:iH.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model__content-image",style:function(){return Y()&&Z().arrangement===1?"width: "+Y():""}},_.W(_.yu,{data:function(){var iH;
return(iH=q())==null?void 0:iH.contentImage}},{thumbnailViewModel:function(iH){return _.W(_.kl,{data:iH.data,
aspectRatio:function(){return Z().aspectRatio},
disableRounding:function(){return Z().disableRounding},
width:A,hovered:function(){return S()&&!(O()&&q().itemPlayback)},
isClip:function(){var oI;return((oI=q())==null?void 0:oI.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:o3F(g),lockupExperiments:function(){return v()}})},
collectionThumbnailViewModel:function(iH){return _.W(hOP,{data:iH.data,aspectRatio:function(){return Z().aspectRatio},
disableRounding:function(){return Z().disableRounding},
width:A,doubleStack:function(){return Z().collectionStackNumber===2},
hovered:function(){return S()&&!(O()&&q().itemPlayback)},
playbackRef:o3F(g)})},
decoratedAvatarViewModel:_.mF})),_.W("div",{class:"yt-lockup-view-model__metadata"},_.W(_.yu,{data:function(){var iH;return(iH=q())==null?void 0:iH.metadata}},{lockupMetadataViewModel:function(iH){return _.W(QpJ,{data:iH.data,
hovered:S,lockupStyle:Z,lockupCommand:function(){var oI;return _.O0((oI=q())==null?void 0:oI.rendererContext)},
lockupAccessibilityLabel:function(){return D()}})},
feedAdMetadataViewModel:function(iH){return _.W(OY,{data:iH.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:p})}}),_.W(_.yu,{data:function(){var iH;
return(iH=q())==null?void 0:iH.attachmentSlot}},{lockupAttachmentsViewModel:function(iH){return _.W(oRP,{data:iH.data,
lockupStyle:Z})}}))),_.W(_.yu,{data:function(){var iH;
return(iH=q())==null?void 0:iH.bottomAttachmentSlot}},{lockupAttachmentsViewModel:function(iH){return _.W(oRP,{data:iH.data,
lockupStyle:Z})}}))},"Tb");
_.wp.idomCompat=!0;_.S5(_.wp,"yt-lockup-view-model",{props:{data:_.Hz,containerLayoutConfig:_.Hz,containerType:_.Hz,sizing:_.Hz,protectBackground:_.Hz,typographyBump:_.Hz,thumbnailFixedWidth:_.Hz,thumbnailTargetWidth:_.Hz,force16By9ThumbnailAspectRatio:_.Hz,className:_.Hz,lockupExperiments:_.Hz,elementsPerRow:_.Hz}});var LnD,zOM=_.U(function(M){var q=_.UT(M,{maxLines:2,disableTextMask:!1,textStyle:"default",accessibilityLabel:"",textSize:"small",alwaysTruncateAtMaxLines:!1,expandOnClick:!1}),G=q.text,K=q.alwaysShowTruncationText;M=q.truncationText;var n=q.onTextClick,E=q.maxLines,p=q.disableTextMask,y=q.textStyle,Y=q.accessibilityLabel,A=q.textSize,v=q.alwaysTruncateAtMaxLines,h=q.expandOnClick;q=_.k(_.lQ(!1,void 0,"EzA1q"));var t=q.next().value,O=q.next().value;q=_.sq(function(){h()&&O(!t());n==null||n()});
var a=function(){a:switch(A()){case "medium":var se=2;break a;case "large":se=2.2;break a;default:se=1.8}return se},g=Aww(G,function(){return t()?Infinity:E()},a,p,v,t),D=g.isTruncated;
G=g.displayText;v=g.contentRef;var J=g.hiddenRef,Z=g.placeholderTruncationTextRef,V=g.hiddenTruncationTextRef;g=g.truncationTextRef;var S={},m={},R={};return _.W("truncated-text",{class:_.Hb((S["yt-truncated-text"]=!0,S["yt-truncated-text--overlay"]=function(){return y()==="overlay"},S["yt-truncated-text--medium-text"]=function(){return A()==="medium"},S["yt-truncated-text--large-text"]=function(){return A()==="large"},S["yt-truncated-text--primary-text"]=function(){return y()==="primary-text"},S)),
"on:click":q,style:function(){return"line-height: "+a()+"rem;"}},_.W("truncated-text-content",{class:"yt-truncated-text__truncated-text-content",
el:v,style:function(){return t()?"":"max-height: "+E()*a()+"rem;"}},_.W(_.Ft,{text:G}),_.W("button",{"aria-disabled":!0,
disabled:!0,class:_.Hb((m["yt-truncated-text__inline-button"]=!0,m["yt-truncated-text--hidden"]=function(){return!(!t()&&(K!=null&&K()||D()))},m)),
el:Z,style:function(){return"line-height: "+a()+"rem;"}},_.W(_.Ft,{text:M}))),_.W("truncated-text-content",{class:_.Hb("yt-truncated-text__truncated-text-content","yt-truncated-text__truncated-text-content--hidden-text-content"),
el:J,style:function(){return t()?"":"max-height: "+E()*a()+"rem;"},
"aria-hidden":"true"},_.W(_.Ft,{text:G}),_.W("button",{"aria-disabled":!0,disabled:!0,class:"yt-truncated-text__inline-button",el:V,style:function(){return"line-height: "+a()+"rem;"}},_.W(_.Ft,{text:M}))),_.W("button",{"aria-label":Y,
class:_.Hb((R["yt-truncated-text__absolute-button"]=function(){return!p()},R["yt-truncated-text__bottom-button"]=function(){return p()},R["yt-truncated-text--hidden"]=function(){return!(!t()&&(K!=null&&K()||D()))},R)),
el:g,style:function(){return"line-height: "+a()+"rem;"}},_.W(_.Ft,{text:M})))},"Vb");
zOM.idomCompat={callbacks:{onTextClick:!0}};var T5B=_.U(function(M){var q=M.data;M=M.className;var G=_.gY(function(){return vZu(q())},void 0,"uDhDke"),K=_.W(_.dU,null,_.W(_.d,{cond:function(){return q().heroText||q().image},
then:function(){return _.W(m0f,{data:q})}}),_.W(S38,{data:q,
sizeSmall:function(){return q().imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}}));
return _.W("yt-video-attribute-view-model",{class:M},_.W("div",{class:function(){var n=q();a:switch(n.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var E="yt-video-attribute-view-model--vertical";break a;default:E="yt-video-attribute-view-model--horizontal"}a:switch(n.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var p="yt-video-attribute-view-model--image-small";break a;default:p="yt-video-attribute-view-model--image-large"}a:switch(n.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var y=
"yt-video-attribute-view-model--image-square";break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":y="yt-video-attribute-view-model--image-avatar";break a;default:y=""}a:switch(n.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var Y="yt-video-attribute-view-model--metadata-header";break a;default:Y=""}a:switch(n.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var A="yt-video-attribute-view-model--container-card";break a;default:A=""}return["yt-video-attribute-view-model",E,p,
y,Y,A,vZu(n)?"yt-video-attribute-view-model--clickable":""].join(" ")},
style:_.Kp({"background-color":function(){var n=q();if(n.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var E="";else{E=n.lightColorPalette;n=n.darkColorPalette;var p,y=((p=_.AL().resolve(_.WR(_.Qx)))==null?0:p())&&n?n:E;E=(E=y==null?void 0:y.section2Color)?_.C_(E):""}return E}})},_.W(_.d,{cond:G,
then:function(){return _.W(_.kv,{className:"yt-video-attribute-view-model__content-container",command:G,role:"group",ariaLabel:function(){return q().title}},K)},
else:function(){return _.W("div",{class:"yt-video-attribute-view-model__content-container"},K)}})))},"Wb");
T5B.idomCompat=!0;var m0f=_.U(function(M){var q=M.data;var G,K=(G=_.AL().resolve(_.WR(_.Qx)))==null?void 0:G(),n=function(){return K&&q().darkThemeImage?q().darkThemeImage:q().image},E=_.gY(function(){return hNj(q())},void 0,"UDqj0b");
return _.W("div",{class:"yt-video-attribute-view-model__hero-section"},_.W(_.Ub,null,_.W(_.J3,{when:n},function(){return _.W(_.Jj,{data:function(){return n()},
className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}),_.W(_.J3,{when:function(){return q().heroText}},function(){return _.W("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.W("span",{class:"yt-video-attribute-view-model__hero-text"},function(){return q().heroText}))})),_.W(_.d,{cond:function(){return q().overflowMenuOnTap},
then:function(){return _.W("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.W(_.Yv,{data:E,iconName:"MORE_VERT"}))}}))},"Xb");
m0f.idomCompat=!0;var S38=_.U(function(M){var q=M.data;M=M.sizeSmall;var G=function(){return q().containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD"},K=_.gY(function(){return Xg(_.lm({innertubeCommand:vZu(q())}))?"link":vZu(q())?"button":"group"},void 0,"e2MmYe"),n={};
return _.W("div",{class:_.Hb("yt-video-attribute-view-model__metadata",(n["yt-video-attribute-view-model--small-font"]=M,n)),role:K},_.W("h1",{class:"yt-video-attribute-view-model__title"},function(){return q().title}),_.W(_.d,{cond:function(){return q().subtitle},
then:function(){return _.W("h4",{class:"yt-video-attribute-view-model__subtitle"},_.W(_.d,{cond:G,then:function(){return _.W(zOM,{text:function(){return dWu(q().subtitle)},
truncationText:function(){return dWu(q().subtitleTruncationText)},
maxLines:2})},
else:function(){return _.W("span",null,function(){return q().subtitle})}}))}}),_.W(_.d,{cond:function(){return q().secondarySubtitle},
then:function(E){return _.W("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.W(_.Ft,{text:function(){var p=E();if(p!=null&&p.attachmentRuns){for(var y=[],Y=_.k(p.attachmentRuns),A=Y.next();!A.done;A=Y.next())A=A.value,A.element&&y.push(Object.assign({},A,{element:Object.assign({},A.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));p=Object.assign({},p,{attachmentRuns:y})}return p}}))}}),_.W(_.yu,
{data:function(){return q().buttonViewModel}},{buttonViewModel:function(E){return _.W(_.Wf,{data:E.data,
className:"yt-video-attribute-view-model__button"})}}))},"Yb");
S38.idomCompat=!0;_.S5(T5B,"yt-video-attribute-view-model",{props:{data:_.Hz,className:_.Hz}});var C0=function(){var M=_.Q.apply(this,arguments)||this;M.useHighlightStyling=_.w("web_enable_deeper_metadata_highlight_styling");M.isSearch=!1;M.JSC$15276_lastScrollContainerWidth=NaN;M.pageLoadingFromNavigation=!1;M.currentIndex=0;M.supportComponentResize=!1;return M};
_.l(C0,_.Q);_.N=C0.prototype;
_.N.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}}}}}};
_.N.attached=function(){document.addEventListener("yt-page-type-changed",_.qs(this,this.onPageChange))};
_.N.detached=function(){document.removeEventListener("yt-page-type-changed",_.qs(this,this.onPageChange))};
_.N.getItemsPath=function(){return"data.cards"};
_.N.onIronResize=function(){this.updateListStyles()};
_.N.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var M;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(M=this.data)==null?void 0:M.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.w("problem_walkthrough_sd")&&!!this.centerItems};
_.N.computeCardListStyle=function(M){return M||null};
_.N.computeEmpty=function(M){return!this.get("cards.length",M)};
_.N.computeThumbnailStyle=function(M){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",M)||null};
_.N.computeHasSubtitle=function(M){return!!this.get("header.richListHeaderRenderer.subtitle",M)};
_.N.computeInitialCountNumber=function(M){return this.hasSquareMiniApp&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.N.computeUseFloorScrolling=function(M){return M==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.N.computeHasGameCard=function(M){return(M=this.get("cards",M))?M.some(function(q){return q.gameCardRenderer}):!1};
_.N.computeCenterHeaderTitle=function(M){return!(M==null||!M.centerHeaderTitle)};
_.N.computeHasPortraitMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(q){return q.miniGameCardViewModel&&q.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.N.computeHasSquareMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(q){return q.miniGameCardViewModel&&q.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.N.computeHasSkinnyWidthPortraitMiniApp=function(M){return(M=M==null?void 0:M.cards)?M.some(function(q){return q.miniGameCardViewModel&&q.miniGameCardViewModel.width===135}):!1};
_.N.computeCenterItems=function(M){return!!M};
_.N.computeHasInfoPanel=function(M){var q;return M==null?void 0:(q=M.cards)==null?void 0:q.some(function(G){return G.infoPanelContentRenderer})};
_.N.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.N.getItemByIndex=function(M){var q=this.items.children;return q&&q.length>M?q[M]:void 0};
_.N.onPageChange=function(){var M=this;this.pageLoadingFromNavigation=!0;_.r8.addJob(function(){M.pageLoadingFromNavigation=!1;_.Rf(M.hostElement,"yt-terminate-video-preview-action")},8)};
_.N.updateListStyles=function(){if(_.w("problem_walkthrough_sd")&&this.JSC$15276_scrollContainer!==void 0){var M=this.JSC$15276_scrollContainer.clientWidth;M!==this.JSC$15276_lastScrollContainerWidth&&(this.JSC$15276_lastScrollContainerWidth=M,_.sT(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(M*.8,415)+"px"}),_.jP(this.hostElement,"iron-resize"))}};
_.Yd.Object.defineProperties(C0.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.w("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!!((M=this.data)==null?0:(q=M.cards)==null?0:(G=q[0])==null?0:G.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!!((M=this.data)==null?0:(q=M.cards)==null?0:(G=q[0])==null?0:G.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return _.w("enable_desktop_amsterdam_info_panels")&&!!((M=this.data)==null?0:(q=M.cards)==null?0:(G=q[0])==null?0:G.infoPanelContentRenderer)}}});
C0.prototype.dataChanged=C0.prototype.dataChanged;C0.prototype.onIronResize=C0.prototype.onIronResize;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],C0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],C0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.pi.YtdHorizontalListBehavior),_.r("design:type",Object)],C0.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.P(_.TU),_.r("design:type",Object)],C0.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],C0.prototype,"data",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],C0.prototype,"useCustomColors",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],C0.prototype,"useHighlightStyling",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.r("design:type",Object)],C0.prototype,"cardListStyle",void 0);_.T([_.B({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.r("design:type",Boolean)],C0.prototype,"empty",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.r("design:type",Boolean)],C0.prototype,"hasSubtitle",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.r("design:type",Boolean)],C0.prototype,"thumbnailStyle",void 0);_.T([_.B({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.r("design:type",Boolean)],C0.prototype,"hasGameCard",void 0);_.T([_.B({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.r("design:type",Boolean)],C0.prototype,"centerHeaderTitle",void 0);
_.T([_.B({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.r("design:type",Boolean)],C0.prototype,"hasPortraitMiniApp",void 0);_.T([_.B({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.r("design:type",Boolean)],C0.prototype,"hasSquareMiniApp",void 0);_.T([_.B({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.r("design:type",Boolean)],C0.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.T([_.B({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.r("design:type",Boolean)],C0.prototype,"hasInfoPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],C0.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],C0.prototype,"inlineStructuredDescription",void 0);_.T([_.ET("#scroll-container"),_.r("design:type",HTMLDivElement)],C0.prototype,"JSC$15276_scrollContainer",void 0);
_.T([_.B({computed:"computeInitialCountNumber(data.style.type)"}),_.r("design:type",Number)],C0.prototype,"initialCount",void 0);_.T([_.B({computed:"computeUseFloorScrolling(data.style.type)"}),_.r("design:type",Boolean)],C0.prototype,"useFloorScrolling",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.r("design:type",Boolean)],C0.prototype,"centerItems",void 0);_.T([_.B(),_.r("design:type",Object)],C0.prototype,"pageLoadingFromNavigation",void 0);
_.T([_.B(),_.r("design:type",Object)],C0.prototype,"currentIndex",void 0);_.T([_.B(),_.r("design:type",Number)],C0.prototype,"scrollCount",void 0);_.T([_.B(),_.r("design:type",Object)],C0.prototype,"supportComponentResize",void 0);_.T([_.ET("#items"),_.r("design:type",HTMLDivElement)],C0.prototype,"items",void 0);_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],C0.prototype,"onIronResize",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],C0.prototype,"dataChanged",null);_.T([_.B({reflectToAttribute:!0}),_.c("inlineStructuredDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],C0.prototype,"hideNavigationButton",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],C0.prototype,"modernChapters",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],C0.prototype,"hasVideoAttributeViewModels",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],C0.prototype,"modernInfoPanels",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],C0);
_.z(C0,"ytd-horizontal-card-list-renderer",function(){if(bZM!==void 0)return bZM;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return bZM=M},{mode:_.VO("kevlar_poly_si_batch_j072")?1:2});var ril=_.U(function(M){var q=M.data;var G={};return _.W("video-summary-content-view-model",{class:_.Hb("videoSummaryContentViewModelHost",M.className,(G.videoSummaryContentViewModelHostIsSearch=M.isSearch,G))},_.W(_.bf,{each:function(){var K=[],n=q().paragraphs;if(n==null||!n.length)return[];for(var E=0;E<n.length;E++){var p=_.C(n[E],pz2),y=void 0;E>0&&(y=_.C(n[E-1],pz2));y&&!!y.marker===!!p.marker?K[K.length-1].paragraphs.push(p):K.push({isList:!!p.marker,paragraphs:[p]})}return K},
keyBy:"INDEX"},function(K){return _.W(_.d,{cond:function(){return K().isList},
then:function(){return _.W("ul",{class:"videoSummaryContentViewModelList"},_.W(_.bf,{each:function(){return K().paragraphs},
keyBy:"INDEX"},function(n){return _.W("li",{class:"videoSummaryContentViewModelListItem"},_.W(_.Ft,{text:function(){return n().text}}))}))},
else:function(){return _.W("div",{class:"videoSummaryContentViewModelParagraphContainer"},_.W(_.bf,{each:function(){return K().paragraphs},
keyBy:"INDEX"},function(n){return _.W("p",{class:"videoSummaryContentViewModelParagraph"},_.W(_.Ft,{text:function(){return n().text}}))}))}})}),_.W(_.d,{cond:function(){return!!_.C(q().likeButtonViewModel,_.SN)&&!!_.C(q().dislikeButtonViewModel,_.mz)},
then:function(){return _.W("div",{class:"videoSummaryContentViewModelBottomButtonsContainer"},_.W("div",{class:"videoSummaryContentViewModelLikeButton"},_.W(_.rn,{data:function(){return _.C(q().likeButtonViewModel,_.SN)},
disableIconAnimation:!0})),_.W(_.TR,{data:function(){return _.C(q().dislikeButtonViewModel,_.mz)}}))}}))},"Zb");
ril.idomCompat=!0;_.S5(ril,"video-summary-content-view-model",{props:{data:_.Hz,isSearch:_.Hz,className:_.Hz}});var ax=function(){var M=_.Q.apply(this,arguments)||this;var q,G;M.isExpanded=(G=(q=M.data)==null?void 0:q.isExpanded)!=null?G:!1;M.disableExpand=!1;M.showProminentLabel=!1;M.showRightSideLabel=!0;M.toggleExpandableContent=function(K){M.disableExpand||(K.stopPropagation(),_.zM(_.Zx(K),M.hostElement,["info","expanded-subtitle"])||(M.isExpanded=!M.isExpanded,M.ytRendererBehavior.logExplicitClick(M.data),M.JSC$15287_cardList&&!_.w("expandable_metadata_a11y_fix_ks")&&_.yb(M,function(){_.E4(M.hostElement)})))};
M.useSquareThumbnail=!1;M.startX=0;return M};
_.l(ax,_.Q);_.N=ax.prototype;_.N.computeUseSquareThumbnail=function(){var M;return(M=this.data)==null?void 0:M.useSquareThumbnail};
_.N.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"}}}}};
_.N.dataChanged=function(){if(this.data){var M,q;this.isExpanded=(q=(M=this.data)==null?void 0:M.isExpanded)!=null?q:!1;var G,K,n,E;if(M=this.isDarkTheme()?(G=this.data)==null?void 0:(K=G.colorData)==null?void 0:K.darkColorPalette:(n=this.data)==null?void 0:(E=n.colorData)==null?void 0:E.lightColorPalette){var p,y;if((p=this.data)==null?0:(y=p.colorData)==null?0:y.vibrantColorPalette)M.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.dk(this.hostElement,M)}}};
_.N.isExpandedChanged=function(){this.isExpanded&&this.JSC$15287_cardList&&_.jP(this.JSC$15287_cardList,"iron-resize")};
_.N.computeIsExpanded=function(M){return!!M.isExpanded};
_.N.computeShowProminentLabel=function(M,q){var G;return!!(M==null?0:(G=M.header)==null?0:G.showLeadingCollapsedLabel)&&!q};
_.N.computeShowRightSideLabel=function(M,q){var G;return!(M==null?0:(G=M.header)==null?0:G.showLeadingCollapsedLabel)&&!q};
_.N.captureContentClick=function(M){if(!this.disableExpand)if(_.w("expandable_metadata_fix_killswitch")){var q=M.target;_.gPS(q,"ytd-macro-markers-list-item-renderer")||M.stopPropagation();(q==null?void 0:q.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.zM(_.Zx(M),this.hostElement,["items"])||_.b8(_.Zx(M),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.N.timestampClick=function(M){M.stopPropagation();var q,G;(M=(q=this.data)==null?void 0:(G=q.header)==null?void 0:G.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(M)};
_.N.onDown=function(M){M.stopPropagation();this.startX=M.detail?M.detail.x:0};
_.N.onUp=function(M){this.skipKeyInteraction(M)&&M.stopPropagation()};
_.N.skipKeyInteraction=function(M){var q=M.target;if((q==null?void 0:q.id)==="scroll-container"||(q==null?void 0:q.id)==="items"||M.detail&&M.detail.x!==this.startX)return!0;M=_.Zx(M);M=_.k(M);for(q=M.next();!q.done;q=M.next()){q=q.value;if(q===this.hostElement)break;if(q.hasAttribute&&q.hasAttribute("skip-key-interaction"))return!0}return!1};
_.N.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Yd.Object.defineProperties(ax.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.C((M=this.data)==null?void 0:M.expandedContent,kDx)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.C((M=this.data)==null?void 0:M.expandedContent,_.yR8)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null||!M.useCustomColors)&&!((q=this.data)==null||!q.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var M,q;return!!((M=this.data)==null?0:(q=M.header)==null?0:q.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var M,q;return!!((M=this.data)==null?0:(q=M.header)==null?0:q.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,q;return!!((M=this.data)==null?0:(q=M.header)==null?0:q.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
ax.prototype.onUp=ax.prototype.onUp;ax.prototype.onDown=ax.prototype.onDown;ax.prototype.isExpandedChanged=ax.prototype.isExpandedChanged;ax.prototype.dataChanged=ax.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ax.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ax.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ax.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ax.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ax.prototype,"isExpanded",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ax.prototype,"disableExpand",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],ax.prototype,"isSearch",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],ax.prototype,"isWatch",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.r("design:type",Object)],ax.prototype,"showProminentLabel",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.r("design:type",Object)],ax.prototype,"showRightSideLabel",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ax.prototype,"hasVideoSummary",null);_.T([_.B({value:!1,reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ax.prototype,"hasLockupViewModel",null);_.T([_.B({reflectToAttribute:!0}),_.c("data","isWatch"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ax.prototype,"useCustomColors",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ax.prototype,"showInfoButton",null);_.T([_.c("data","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ax.prototype,"showTimestamp",null);_.T([_.c("data","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ax.prototype,"showExpandedSubtitle",null);
_.T([_.c("data","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ax.prototype,"showThumbnail",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ax.prototype,"useVppShoppingDestinationStyle",null);_.T([_.B(),_.r("design:type",Object)],ax.prototype,"toggleExpandableContent",void 0);_.T([_.ET("ytd-horizontal-card-list-renderer"),_.r("design:type",Object)],ax.prototype,"JSC$15287_cardList",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.r("design:type",Object)],ax.prototype,"useSquareThumbnail",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ax.prototype,"dataChanged",null);_.T([_.KT("isExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ax.prototype,"isExpandedChanged",null);
_.T([_.GQ("down"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ax.prototype,"onDown",null);_.T([_.GQ("up"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ax.prototype,"onUp",null);_.T([_.b({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],ax);
_.z(ax,"ytd-expandable-metadata-renderer",function(){if(jb$!==void 0)return jb$;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" hidden="[[!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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return jb$=M},{mode:1});var jpd,VdP=function(){if(jpd!==void 0)return jpd;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return jpd=M};_.S5(_.Sf,"yt-avatar-stack-view-model",{props:{className:_.Hz,data:_.Hz,overrides:_.Hz,isOverlay:_.Hz,useMediumText:_.Hz,decorations:_.Hz,hideAvatar:_.Hz}});_.hC("itemSectionRenderer","videoRenderer","ytd-video-renderer");var ox=function(){var M=_.Q.apply(this,arguments)||this;M.disableExpand=!1;M.shouldShowChannelInfo=!1;M.hasAttributedBylineText=!1;M.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return M};
_.l(ox,_.Q);_.N=ox.prototype;_.N.computeUseSearchUi=function(){var M,q;return this.isSearch||((M=this.data)==null?void 0:(q=M.style)==null?void 0:q.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.N.computeUseThreeLineTitle=function(){var M;return((M=this.data)==null?void 0:M.maxTitleLines)===3};
_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.w("polymer_video_renderer_defer_menu")&&!g9d?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"}}}};
_.N.attached=function(){_.HE(this.hostElement,"blue-links",_.w("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.el(_.f_(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var M=this.get("data.buttons.buttonRenderer.serviceEndpoint"),q;M&&((q=_.C(M.commandMetadata,_.QL))==null?0:q.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(M);this.updateInlinePreviewHoverListeners()};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15292_inlinePreviewHoverListener=oZ({mediaRenderer:this,lockupElement:this.JSC$15292_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.N.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15292_inlinePreviewHoverListener)==null||JY(M)};
_.N.onTextWrapperClick=function(M){var q,G,K=this.hideTranslation?(q=this.data)==null?void 0:q.untranslatedNavigationEndpoint:(G=this.data)==null?void 0:G.navigationEndpoint;q=_.zM(_.Zx(M),this.hostElement,["expandable-metadata"]);!K||q&&!_.w("expandable_metadata_fix_killswitch")||_.b8(_.Zx(M),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.jP(this.hostElement,"yt-navigate",{endpoint:K})};
_.N.computeThumbnailWidth=function(M,q,G,K,n){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:K?n==="MASSIVE"?600:n==="BIG"?500:n==="MEDIUM"?450:420:G?360:q?128:M?210:246};
_.N.computeUseBiggerThumbs=function(M){return M&&_.w("enable_desktop_search_bigger_thumbs")};
_.N.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.N.computeHasAttributedBylineText=function(){var M;return!((M=this.data)==null||!M.attributedBylineText)};
_.N.computeVideoStyle=function(){if(_.w("enable_video_style")){var M,q;return(M=this.data)==null?void 0:(q=M.style)==null?void 0:q.value}};
_.N.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.N.handleHideItemSectionVideosByIdCommand=function(M){var q;M=(q=_.C(M,BTP))==null?void 0:q.videoId;this.data&&this.data.videoId===M&&(this.isHidden=!0)};
_.N.getMetadataSnippetContainerClass=function(M){return M?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.N.computeTitleText=function(M,q,G){return M?G:q};
_.N.computeDescriptionSnippet=function(M,q,G){return M?G:q};
_.N.computeSnippetText=function(M,q,G){return M?G:q};
_.N.computeNavigationEndpoint=function(M,q){return M?q==null?void 0:q.untranslatedNavigationEndpoint:q==null?void 0:q.navigationEndpoint};
_.N.hideInlineTitleIcon=function(M,q){return M||!q};
_.Yd.Object.defineProperties(ox.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 M;return(M=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?M:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!!(this==null?0:(M=this.data)==null?0:(q=M.channelThumbnailSupportedRenderers)==null?0:(G=q.channelThumbnailWithLinkRenderer)==null?0:G.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.C((M=this.data)==null?void 0:M.avatar,LFx)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$15292_inlinePreviewHoverListener)==null?0:jf(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Yd.Object.defineProperties(ox,{template:{configurable:!0,enumerable:!0,get:function(){return VdP()}}});
ox.prototype.dataChanged=ox.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ox.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ox.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],ox.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.P(_.HJ),_.r("design:type",Object)],ox.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ox.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],ox.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ox.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ox.prototype,"isBackstageVideo",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ox.prototype,"isPostCompactVideo",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ox.prototype,"isHistory",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ox.prototype,"isRichGridVideoPost",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ox.prototype,"isHidden",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ox.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.r("design:type",Boolean)],ox.prototype,"useSearchUi",void 0);_.T([_.B({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.r("design:type",Boolean)],ox.prototype,"useThreeLineTitle",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.r("design:type",Boolean)],ox.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.r("design:type",Object)],ox.prototype,"videoStyle",void 0);_.T([_.B({computed:"computeDisableExpand(videoStyle)"}),_.r("design:type",Object)],ox.prototype,"disableExpand",void 0);
_.T([_.B({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.r("design:type",Object)],ox.prototype,"shouldShowChannelInfo",void 0);_.T([_.B({computed:"computeHasAttributedBylineText(data)"}),_.r("design:type",Object)],ox.prototype,"hasAttributedBylineText",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],ox.prototype,"biggerThumbsStyle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.r("design:type",String)],ox.prototype,"inlineTitleIcon",void 0);_.T([_.B({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.r("design:type",Object)],ox.prototype,"computedNavigationEndpoint",void 0);_.T([_.B({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(M,q){return _.sX(M.entities,"searchVideoResultEntity",q)}}),
_.r("design:type",Object)],ox.prototype,"searchVideoResultEntity",void 0);_.T([_.ET("ytd-thumbnail"),_.r("design:type",HTMLElement)],ox.prototype,"thumbnail",void 0);_.T([_.ET("#dismissible"),_.r("design:type",HTMLElement)],ox.prototype,"JSC$15292_dismissibleMedia",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ox.prototype,"dataChanged",null);
_.T([_.c("searchVideoResultEntity"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ox.prototype,"hideTranslation",null);_.T([_.c("searchVideoResultEntity"),_.r("design:type",Array),_.r("design:paramtypes",[])],ox.prototype,"hiddenBadgeGroups",null);_.T([_.c("data","useAvatar"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ox.prototype,"shouldShowChannelThumbnail",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ox.prototype,"useAvatar",null);
_.T([_.c("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ox.prototype,"isHovered",null);_.T([_.b({is:"ytd-video-renderer",disableElementRegistration:!0})],ox);_.z(ox,"ytd-video-renderer",function(){return VdP()},{mode:_.VO("kevlar_poly_si_batch_j047")?1:2});var lJ=function(){var M=_.Q.apply(this,arguments)||this;M.editDialog=null;M.roundedContainer=!0;M.isLoading=!1;M.isRichGrid=!1;M.isRichGridRepost=!1;M.reduceSidePaddings=_.w("reduce_side_paddings_in_shelf");M.JSC$15299_spinnerEl=null;return M};
_.l(lJ,_.Q);_.N=lJ.prototype;
_.N.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"}}}};
_.N.contentTextChanged=function(){this.expander.reset()};
_.N.dataChanged=function(){var M=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var q=0,G=this.data.actions&&this.data.actions.length;q<G;q++)this.openEditDialog(_.C(this.data.actions[q],AQd));if((q=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(q=this.get("buttonRenderer.hint.hintRenderer.hintId",q))&&q.startsWith("share-post-hint")){var K=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(K){_.O_.getInstance();var n=w1(_.bc(_.Ge("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.r8.addLowPriorityJob(function(){_.FH(M.hostElement,n,K)})}}}};
_.N.updatePoll=function(M){M>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.N.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15299_spinnerEl||(this.JSC$15299_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.f_(this.hostElement).appendChild(this.JSC$15299_spinnerEl));this.JSC$15299_spinnerEl&&(this.JSC$15299_spinnerEl.active=this.isLoading)};
_.N.onYtNavigate=function(M){var q=this.get("updateCommentDialogEndpoint",M.detail.endpoint);q&&(this.openEditDialog(q),M.stopPropagation())};
_.N.onYtCommentboxDismiss=function(){this.editDialog=null};
_.N.onYtCommentPollRevert=function(M,q){q&&this.updatePoll(q.selectedChoiceIndex)};
_.N.onYtServiceRequestSent=function(M,q){var G;q.endpoint&&(_.C(q.endpoint,C39)||_.C(q.endpoint,wJS)&&((G=_.C(q.endpoint,wJS))==null||!G.clientActions))&&(this.isLoading=!0);if(q.actions)for(M=0;M<q.actions.length;M++)G=q.actions[M],_.C(G,gi)&&(G=this.get("updateBackstagePollAction.selectedChoiceIndex",G),G==void 0&&(G=-1),this.updatePoll(G))};
_.N.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.N.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.editDialogEl.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.N.computeIsPostHidden=function(M,q){return!!M||q};
_.N.computeSurfaceType=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.N.computeUsesCompactLockup=function(M){return M==="BACKSTAGE_SURFACE_TYPE_HOME"||M==="BACKSTAGE_SURFACE_TYPE_SEARCH"||M==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||M==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||M==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||M==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.N.computeShowWithoutToolbar=function(M){return!M.actionButtons&&!M.actionMenu};
_.N.computePostAttachment=function(M){if(M.backstageAttachment){if(_.C(M.backstageAttachment,sBS))return"poll";if(_.C(M.backstageAttachment,Utf))return"quiz";if(_.C(M.backstageAttachment,_.HA))return"video";if(_.C(M.backstageAttachment,xtf))return"uploaded-videos";if(_.C(M.backstageAttachment,Uqd))return M.contentText?"image":"image-only";if(_.C(M.backstageAttachment,u$9))return"playlist"}return"none"};
_.N.computePostTabIndex=function(M){return M?0:-1};
_.N.computeButtonTooltipPosition=function(M){return this.computeUsesCompactLockup(M)?"top":"bottom"};
_.N.computeHasText=function(M){return!(M==null||!M.contentText)};
_.N.onTap=function(M){var q,G;if(((q=this.data)==null?0:q.navigationEndpoint)&&((G=this.data)==null?void 0:G.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var K;((K=this.data)==null?0:K.navigationEndpoint)&&!_.b8(_.Zx(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Yd.Object.defineProperties(lJ.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.bc("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,sBS))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,xtf))}}});
lJ.prototype.onYtServiceRequestCompleted=lJ.prototype.onYtServiceRequestCompleted;lJ.prototype.onYtServiceRequestSent=lJ.prototype.onYtServiceRequestSent;lJ.prototype.onYtCommentPollRevert=lJ.prototype.onYtCommentPollRevert;lJ.prototype.onYtCommentboxDismiss=lJ.prototype.onYtCommentboxDismiss;lJ.prototype.onYtNavigate=lJ.prototype.onYtNavigate;lJ.prototype.isLoadingChanged=lJ.prototype.isLoadingChanged;lJ.prototype.dataChanged=lJ.prototype.dataChanged;lJ.prototype.contentTextChanged=lJ.prototype.contentTextChanged;
_.T([_.P(_.TU),_.r("design:type",Object)],lJ.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],lJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],lJ.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],lJ.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],lJ.prototype,"editDialog",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],lJ.prototype,"roundedContainer",void 0);_.T([_.B(),_.r("design:type",Object)],lJ.prototype,"isLoading",void 0);_.T([_.B({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.r("design:type",String)],lJ.prototype,"surface",void 0);
_.T([_.B({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.r("design:type",Boolean)],lJ.prototype,"usesCompactLockup",void 0);_.T([_.B({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],lJ.prototype,"showWithoutToolbar",void 0);_.T([_.B({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.r("design:type",String)],lJ.prototype,"attachment",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],lJ.prototype,"isRichGrid",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],lJ.prototype,"isRichGridRepost",void 0);_.T([_.B({reflectToAttribute:!0,value:_.w("use_better_post_dismissals")}),_.r("design:type",Boolean)],lJ.prototype,"useBetterPostDismissals",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],lJ.prototype,"reduceSidePaddings",void 0);
_.T([_.B({computed:"computeHasText(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],lJ.prototype,"hasText",void 0);_.T([_.ET("#expander"),_.r("design:type",Object)],lJ.prototype,"expander",void 0);_.T([_.ET("#action-buttons"),_.r("design:type",Object)],lJ.prototype,"actionButtons",void 0);_.T([_.ET("#edit-dialog"),_.r("design:type",HTMLElement)],lJ.prototype,"editDialogEl",void 0);
_.T([_.KT("data.contentText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lJ.prototype,"contentTextChanged",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lJ.prototype,"dataChanged",null);_.T([_.KT("isLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lJ.prototype,"isLoadingChanged",null);
_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],lJ.prototype,"onYtNavigate",null);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lJ.prototype,"onYtCommentboxDismiss",null);_.T([_.GQ("yt-comment-poll-revert"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],lJ.prototype,"onYtCommentPollRevert",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],lJ.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],lJ.prototype,"onYtServiceRequestCompleted",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],lJ.prototype,"voteCount",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],lJ.prototype,"commentCount",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],lJ.prototype,"hasPoll",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],lJ.prototype,"hasUploadedVideo",null);_.T([_.b({is:"ytd-post-renderer",disableElementRegistration:!0})],lJ);
_.z(lJ,"ytd-post-renderer",function(){if(WW9!==void 0)return WW9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return WW9=M},{mode:1});var RO8;var fVf;var X0=function(){return _.Q.apply(this,arguments)||this};
_.l(X0,_.Q);X0.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],X0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],X0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.pi.YtdHorizontalListBehavior),_.r("design:type",Object)],X0.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],X0.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],X0.prototype,"data",void 0);
_.T([_.B({value:"$.items.children"}),_.r("design:type",String)],X0.prototype,"itemsPath",void 0);_.T([_.B({value:1}),_.r("design:type",Number)],X0.prototype,"initialCount",void 0);_.T([_.B({reflectToAttribute:!0,value:_.w("enable_community_page_on_desktop")}),_.r("design:type",Boolean)],X0.prototype,"useSmallerPostImageAttachments",void 0);_.T([_.B(),_.r("design:type",String)],X0.prototype,"surface",void 0);_.T([_.b({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],X0);
_.z(X0,"ytd-post-multi-image-renderer",function(){if(fVf!==void 0)return fVf;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return fVf=M},{mode:_.VO("kevlar_poly_si_batch_j079")?1:2});var FkB={"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"}}},
Pe=function(){var M=_.Q.apply(this,arguments)||this;M.hasInlineCommentSection=!1;M.editDialog=null;M.isLoading=!1;M.shouldHideAuthor=!1;M.shouldShowVideoTime=!1;M.isInEngagementPanel=!1;M.hideBorder=!1;M.usesFullLockup=!1;M.shouldShowMenuInCompactView=!1;M.JSC$15314_spinnerEl=null;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.l(Pe,_.Q);_.N=Pe.prototype;_.N.configureRendererStamper=function(){return FkB};
_.N.computeIsPollHeaderEnabled=function(M){return(M==null?void 0:M.pollMetadataIcon)!=null};
_.N.getPublishTimeStampString=function(M,q){q=new Date((Number(q)-60*((new Date).getTimezoneOffset()-(new Date(Number(q)*1E3)).getTimezoneOffset()))*1E3);q=(new ZS(10)).format(q);if(M&&M.runs&&M.runs.length)for(var G=0;G<M.runs.length;G++)M.runs[G].text&&(M.runs[G].text=M.runs[G].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",q));return M};
_.N.created=function(){this.JSC$15314_spinnerEl=null};
_.N.contentTextChanged=function(){this.expander.reset()};
_.N.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var M;if((M=this.data)==null?0:M.actions){M=_.k(this.data.actions);for(var q=M.next();!q.done;q=M.next())this.openEditDialog(_.C(q.value,AQd))}};
_.N.handleSignalActionOpenPostCommentDialogAction=function(){_.f_(this.hostElement).querySelector("#action-buttons").reply()};
_.N.updatePoll=function(M,q){q&&this.set("data.pollMetadataVoteCountText",q);this.hasInlineCommentSection&&(M=M>=0,q=_.f_(this.hostElement).querySelector("#action-buttons"),M?q.reply():q.hideReplyDialog())};
_.N.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$15314_spinnerEl||(this.JSC$15314_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.f_(this.hostElement).appendChild(this.JSC$15314_spinnerEl));this.JSC$15314_spinnerEl&&(this.JSC$15314_spinnerEl.active=this.isLoading)};
_.N.onYtNavigate=function(M){var q=this.get("updateCommentDialogEndpoint",M.detail.endpoint);q&&(this.openEditDialog(q),M.stopPropagation())};
_.N.onYtCommentboxDismiss=function(){this.editDialog=null};
_.N.onYtCommentPollRevert=function(M,q){q&&this.updatePoll(q.selectedChoiceIndex,q.totalVotes)};
_.N.onYtServiceRequestSent=function(M,q){M.stopPropagation();M=_.C(q.endpoint,wJS);if(_.C(q.endpoint,C39)||M&&!M.clientActions)this.isLoading=!0;if(q.actions)for(M=0;M<q.actions.length;M++){var G=q.actions[M],K=_.C(G,gi);K&&(G=this.get("updateBackstagePollAction.selectedChoiceIndex",G),G===void 0&&(G=-1),this.updatePoll(G,K.totalVotes))}};
_.N.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.N.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.editDialogElement.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.N.computeIsBodyHidden=function(M,q){return!!M||q};
_.Yd.Object.defineProperties(Pe.prototype,{authorCommentBadge:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var M=this.data,q=M.showPostAuthorBackgroundHighlight,G=M.postAuthorBadgeType,K=M.authorEndpoint;if(!q&&G!=="POST_AUTHOR_BADGE_TYPE_VERIFIED"&&G!=="POST_AUTHOR_BADGE_TYPE_ARTIST")return null;var n,E,p;M=_.bc(((n=M.authorText)==null?void 0:(E=n.runs)==null?void 0:(p=E[0])==null?void 0:p.text)||"");n=void 0;switch(G){case "POST_AUTHOR_BADGE_TYPE_ARTIST":n={iconType:"AUDIO_BADGE"};
break;case "POST_AUTHOR_BADGE_TYPE_VERIFIED":n={iconType:q?"CHECK_CIRCLE_THICK":"CHECK"}}return{renderer:{authorText:M,authorEndpoint:K,authorCreator:q,icon:n}}}},
postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var M,q;if((M=this.data)==null?0:(q=M.pollMetadataIcon)==null?0:q.iconType)return _.H4(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.bc("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,sBS))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,Utf))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.C(this.data.backstageAttachment,xtf))}}});
Pe.prototype.onYtServiceRequestCompleted=Pe.prototype.onYtServiceRequestCompleted;Pe.prototype.onYtServiceRequestSent=Pe.prototype.onYtServiceRequestSent;Pe.prototype.onYtCommentPollRevert=Pe.prototype.onYtCommentPollRevert;Pe.prototype.onYtCommentboxDismiss=Pe.prototype.onYtCommentboxDismiss;Pe.prototype.onYtNavigate=Pe.prototype.onYtNavigate;Pe.prototype.isLoadingChanged=Pe.prototype.isLoadingChanged;Pe.prototype.dataChanged=Pe.prototype.dataChanged;Pe.prototype.contentTextChanged=Pe.prototype.contentTextChanged;
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Pe.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Pe.prototype,"rendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Pe.prototype,"rendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],Pe.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.ET("#contentTextExpander"),_.r("design:type",Object)],Pe.prototype,"expander",void 0);_.T([_.ET("#edit-dialog"),_.r("design:type",Element)],Pe.prototype,"editDialogElement",void 0);_.T([_.B(),_.r("design:type",Object)],Pe.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Pe.prototype,"hasInlineCommentSection",void 0);_.T([_.B(),_.r("design:type",Object)],Pe.prototype,"editDialog",void 0);_.T([_.B(),_.r("design:type",Object)],Pe.prototype,"isLoading",void 0);
_.T([_.B({computed:"computeIsPollHeaderEnabled(data)"}),_.r("design:type",Boolean)],Pe.prototype,"isPollHeaderEnabled",void 0);_.T([_.B(),_.r("design:type",Object)],Pe.prototype,"shouldHideAuthor",void 0);_.T([_.B(),_.r("design:type",Object)],Pe.prototype,"shouldShowVideoTime",void 0);_.T([_.B(),_.r("design:type",Object)],Pe.prototype,"isInEngagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pe.prototype,"hideBorder",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pe.prototype,"usesFullLockup",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pe.prototype,"shouldShowMenuInCompactView",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Pe.prototype,"authorCommentBadge",null);_.T([_.c("isInEngagementPanel"),_.r("design:type",Number),_.r("design:paramtypes",[])],Pe.prototype,"postTextMaxLines",null);
_.T([_.c("data.icon.iconType"),_.r("design:type",Object),_.r("design:paramtypes",[])],Pe.prototype,"pollIcon",null);_.T([_.KT("data.contentText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pe.prototype,"contentTextChanged",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pe.prototype,"dataChanged",null);
_.T([_.KT("isLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pe.prototype,"isLoadingChanged",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Pe.prototype,"onYtNavigate",null);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pe.prototype,"onYtCommentboxDismiss",null);
_.T([_.GQ("yt-comment-poll-revert"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Pe.prototype,"onYtCommentPollRevert",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],Pe.prototype,"onYtServiceRequestSent",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Pe.prototype,"onYtServiceRequestCompleted",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Pe.prototype,"voteCount",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Pe.prototype,"commentCount",null);
_.T([_.c("data.backstageAttachment"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Pe.prototype,"hasPoll",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Pe.prototype,"hasQuiz",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Pe.prototype,"hasUploadedVideo",null);_.T([_.b({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Pe);
_.z(Pe,"ytd-backstage-post-renderer",function(){if(RO8!==void 0)return RO8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return RO8=M},{mode:1});var Hzd;var iJ=function(){var M=_.Q.apply(this,arguments)||this;M.editDialog=null;M.showExpandButton=!1;M.isRichGrid=!1;M.usesFullLockup=!1;return M};
_.l(iJ,_.Q);_.N=iJ.prototype;_.N.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"}}}};
_.N.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.N.computeShowExpandButton=function(M){return this.usesCompactLockup||M&&M.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.N.computeUsesCompactLockup=function(M){return!!M.condensedContent};
_.N.computeShowFullContentText=function(M){return!M};
_.N.onYtNavigate=function(M){M=this.get("updateCommentDialogEndpoint",M.detail.endpoint);this.openEditDialog(M)};
_.N.onYtCommentboxDismiss=function(){this.editDialog=null};
_.N.openEditDialog=function(M){M&&M.dialog&&(this.editDialog=M.dialog,M=this.repostEditDialogEl.firstElementChild)&&(M.focus(),M.openDialog&&M.openDialog())};
_.N.onTap=function(M){if(this.data){var q=null;this.usesCompactLockup&&!_.b8(_.Zx(M)||[],this.hostElement,["YT-IMG-SHADOW"])?q=this.get("navigationEndpoint",this.data):M.target===this.moreButtonEl&&(q=this.get("navigationEndpoint",M.target.data));q&&_.jP(this.hostElement,"yt-navigate",{endpoint:q})}};
iJ.prototype.onYtCommentboxDismiss=iJ.prototype.onYtCommentboxDismiss;iJ.prototype.onYtNavigate=iJ.prototype.onYtNavigate;iJ.prototype.dataChanged=iJ.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],iJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],iJ.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],iJ.prototype,"editDialog",void 0);_.T([_.B({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],iJ.prototype,"usesCompactLockup",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],iJ.prototype,"showExpandButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],iJ.prototype,"isRichGrid",void 0);
_.T([_.B({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.r("design:type",Boolean)],iJ.prototype,"showFullContentText",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],iJ.prototype,"usesFullLockup",void 0);_.T([_.ET("#more"),_.r("design:type",Object)],iJ.prototype,"moreButtonEl",void 0);_.T([_.ET("#repost-content-text"),_.r("design:type",HTMLElement)],iJ.prototype,"repostContentTextEl",void 0);
_.T([_.ET("#repost-edit-dialog"),_.r("design:type",HTMLElement)],iJ.prototype,"repostEditDialogEl",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iJ.prototype,"dataChanged",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iJ.prototype,"onYtNavigate",null);
_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iJ.prototype,"onYtCommentboxDismiss",null);_.T([_.b({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],iJ);
_.z(iJ,"ytd-shared-post-renderer",function(){if(Hzd!==void 0)return Hzd;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Hzd=M},{mode:1});var eO9;var $0l;var ce=function(){return _.Q.apply(this,arguments)||this};
_.l(ce,_.Q);ce.prototype.attached=function(){var M=this;this.networkStatusManager||(this.networkStatusManager=new _.G6,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){M.onlineHandler()}))};
ce.prototype.detached=function(){var M=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){M.onlineHandler()}),delete this.networkStatusManager)};
ce.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ce.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ce.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],ce);
_.z(ce,"ytd-reload-page-button-renderer",function(){if($0l!==void 0)return $0l;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return $0l=M},{mode:1});var s09={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"},gp=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(gp,_.Q);_.N=gp.prototype;_.N.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.N.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.N.computeHasBodyText=function(M){return!!M.bodyText};
_.N.computeButtons=function(M){var q=[];M.ctaButton&&q.push(M.ctaButton);M.secondaryButton&&q.push(M.secondaryButton);return q};
_.N.computeRendererStyle=function(M){return M.style?M.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():M.icon?"":"no-icon"};
_.N.getIconName=function(M,q){q=q===void 0?!1:q;if(M===void 0)return"";M=this.get("icon.iconType",M);var G;_.w("enable_hlp_client_icon_pick")?G=this.getThemedIcon(M,q):G=M;(q=s09[G])||(q="yt-icons");return[q,G].join(":")};
_.N.getThemedIcon=function(M,q){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(M)?q?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(M)?q?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":M};
_.N.isThumbnail=function(M){return!!M.thumbnail};
_.N.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.N.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],gp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],gp.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],gp.prototype,"data",void 0);
_.T([_.B({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.r("design:type",String)],gp.prototype,"rendererStyle",void 0);_.T([_.B({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.r("design:type",String)],gp.prototype,"iconName",void 0);_.T([_.B({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],gp.prototype,"thumbnail",void 0);_.T([_.B({computed:"computeButtons(data)"}),_.r("design:type",Array)],gp.prototype,"buttons",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],gp.prototype,"isDarkTheme",void 0);_.T([_.B({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],gp.prototype,"hasBodyText",void 0);_.T([_.b({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],gp);
_.z(gp,"ytd-background-promo-renderer",function(){if(eO9!==void 0)return eO9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return eO9=M},{mode:1});var M2p;var Be=function(){return _.Q.apply(this,arguments)||this};
_.l(Be,_.Q);_.Yd.Object.defineProperties(Be.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K,n,E;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(q=M.thumbnail)==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(K=G.thumbnail)==null?void 0:K.vibrantColorPalette,darkColorPalette:(n=this.data)==null?void 0:(E=n.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Be.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Be.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Be.prototype,"collectionStack",null);_.T([_.b({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],Be);
_.z(Be,"ytd-compact-station-renderer",function(){if(M2p!==void 0)return M2p;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return M2p=M},{mode:1});var qR9;var QG=function(){var M=_.Q.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.l(QG,_.Q);QG.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]]"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QG.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],QG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QG.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],QG.prototype,"isRichGrid",void 0);_.T([_.b({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],QG);
_.z(QG,"ytd-grid-channel-renderer",function(){if(qR9!==void 0)return qR9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return qR9=M},{mode:1});var G7J;var Ix=function(){return _.Q.apply(this,arguments)||this};
_.l(Ix,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ix.prototype,"data",void 0);_.T([_.b({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],Ix);
_.z(Ix,"ytd-grid-movie-playlist-renderer",function(){if(G7J!==void 0)return G7J;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return G7J=M},{mode:1});var KD8;var Di=function(){var M=_.Q.apply(this,arguments)||this;M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.modernButtons=_.w("web_modern_buttons");return M};
_.l(Di,_.Q);Di.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Di.prototype.configureRendererStamper=function(){return{"data.menu":P5}};
Di.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Di.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.w("woffle_playlist_renderer_killswitch")){var M,q=plD(this.entityInfo,this.transferState,this.downloadProgress,(M=this.data)==null?void 0:M.playlistId,this.isOnline);M=q.viewPlaylistText;var G=q.badges;q=q.thumbnailOverlays;this.isDownloads=!!M||!!G;this.set("data.viewPlaylistText",M);G&&G.length>0&&this.set("data.badges",G);q&&q.length>0&&this.set("data.thumbnailOverlays",
q)}};
_.Yd.Object.defineProperties(Di.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 M;return!((M=this.data)==null?0:M.menu)}}});
Di.prototype.transferStateChanged=Di.prototype.transferStateChanged;Di.prototype.dataChanged=Di.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Di.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],Di.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Di.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Di.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B({selector:_.SHD,selectorArgs:["data.playlistId"]}),_.r("design:type",Object)],Di.prototype,"downloadProgress",void 0);_.T([_.B({selector:_.Ps,selectorArgs:["data.playlistId"]}),_.r("design:type",Object)],Di.prototype,"transferState",void 0);_.T([_.B({selector:mtH,selectorArgs:["data.playlistId"]}),_.r("design:type",Object)],Di.prototype,"entityInfo",void 0);_.T([_.B({selector:_.lc}),_.r("design:type",Boolean)],Di.prototype,"isOnline",void 0);
_.T([_.B(),_.r("design:type",Object)],Di.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Di.prototype,"downloadRenderData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Di.prototype,"modernButtons",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Di.prototype,"isDownloads",void 0);_.T([_.c("transferState"),_.B({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],Di.prototype,"downloadState",null);
_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Di.prototype,"menuHidden",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Di.prototype,"dataChanged",null);_.T([_.yO("transferState","downloadProgress","isOnline"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Di.prototype,"transferStateChanged",null);
_.T([_.b({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Di);
_.z(Di,"ytd-grid-playlist-renderer",function(){if(KD8!==void 0)return KD8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return KD8=M},{mode:1});var nw9;var uJ=function(){return _.Q.apply(this,arguments)||this};
_.l(uJ,_.Q);uJ.prototype.configureRendererStamper=function(){return{"data.menu":P5,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Yd.Object.defineProperties(uJ.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K,n,E;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(q=M.thumbnail)==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(K=G.thumbnail)==null?void 0:K.vibrantColorPalette,darkColorPalette:(n=this.data)==null?void 0:(E=n.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],uJ.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],uJ.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],uJ.prototype,"data",void 0);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],uJ.prototype,"collectionStack",null);_.T([_.b({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],uJ);
_.z(uJ,"ytd-grid-radio-renderer",function(){if(nw9!==void 0)return nw9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return nw9=M},{mode:1});var Ewl;var Jb=function(){return _.Q.apply(this,arguments)||this};
_.l(Jb,_.Q);Jb.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
Jb.prototype.computeNavigationEndpoint=function(M){return J1y(M==null?void 0:M.navigationEndpoint)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],Jb.prototype,"ytdLockupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Jb.prototype,"data",void 0);_.T([_.B({computed:"computeNavigationEndpoint(data)"}),_.r("design:type",Object)],Jb.prototype,"computedNavigationEndpoint",void 0);
_.T([_.b({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],Jb);
_.z(Jb,"ytd-grid-show-renderer",function(){if(Ewl!==void 0)return Ewl;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Ewl=M},{mode:1});var Ndp;_.Zi=function(M){this.playerClient=M};
_.k79=function(M,q,G){G=G===void 0?{}:G;return M.playerClient.setOption("ad",q,G)};
_.Zi.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.Zi.prototype.executeCommand=function(M,q){this.getOptions().includes("executeCommand")?_.k79(this,"executeCommand",{command:M,layoutId:q}):_.BO("Calling executeCommand when adModule is not loaded")};var bJ=function(){return _.Q.apply(this,arguments)||this};
_.l(bJ,_.Q);bJ.prototype.getLayoutId=function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
bJ.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var M=_.TM(),q=this.getLayoutId(),G=this.data.clickthroughEndpoint;M&&q&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(K){(new _.Zi(K)).executeCommand(G,q)}):_.jP(this.hostElement,"yt-navigate",{endpoint:G})}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bJ.prototype,"data",void 0);_.T([_.b({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],bJ);
_.z(bJ,"ytd-shopping-companion-item-renderer",function(){if(Ndp!==void 0)return Ndp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Ndp=M},{mode:1});var pNP;var UY=function(){var M=_.Q.apply(this,arguments)||this;M.isExpandableContent=!1;return M};
_.l(UY,_.Q);_.Yd.Object.defineProperties(UY.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.data)==null?void 0:M.price)||((q=this.data)==null?void 0:(G=q.dealsData)==null?void 0:G.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var M,q;if((M=this.data)!=null&&M.dealsData&&((q=this.data)==null||!q.priceReplacementText)){M=this.data.dealsData;var G,K,n;return((G=M.salesData)==null?void 0:G.originalPrice)||((K=M.priceDropData)==null?void 0:K.referencePrice)||((n=M.promotionData)==null?void 0:n.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var M,q;return(M=this.data)==null?void 0:(q=M.dealsData)==null?void 0:q.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],UY.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],UY.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],UY.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],UY.prototype,"isExpandableContent",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"showCta",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"ctaText",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"hasPriceTopPosition",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"hasPriceBottomPosition",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"useNewStyle",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"showPriceReplacementText",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"priceValue",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"showDeal",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"showAffiliateDisclaimer",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"useSaleStyle",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"useFromBrandCtaStyle",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"useFromVendorCtaStyle",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],UY.prototype,"useShoppingCollectionCtaStyle",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],UY);
_.z(UY,"ytd-vertical-product-card-renderer",function(){if(pNP!==void 0)return pNP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return pNP=M},{mode:1});var y8M;var xl=function(){return _.Q.apply(this,arguments)||this};
_.l(xl,_.Q);xl.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xl.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xl.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],xl.prototype,"ytdLockupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],xl.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],xl);
_.z(xl,"ytd-grid-movie-renderer",function(){if(y8M!==void 0)return y8M;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return y8M=M},{mode:1});var LDv;var zW=function(){var M=_.Q.apply(this,arguments)||this;M.roundedFix=_.w("web_enable_merch_item_rounding_fix");M.itemStyle="small-item";return M};
_.l(zW,_.Q);zW.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var M,q,G,K,n=(q=_.C((M=this.data)==null?void 0:M.buttonCommand,_.wBS))==null?void 0:(G=q.item)==null?void 0:(K=G.notificationTextRenderer)==null?void 0:K.successResponseText;n&&_.tkF(this.hostElement,n)}};
_.Yd.Object.defineProperties(zW.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:M.isProductPlaceholder)!==void 0&&((q=this.data)==null?void 0:q.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.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}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],zW.prototype,"roundedFix",void 0);_.T([_.B(),_.r("design:type",Object)],zW.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],zW.prototype,"itemStyle",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],zW.prototype,"hasPrice",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],zW.prototype,"hasPriceReplacementText",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],zW.prototype,"hasAdditionalFeesText",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],zW.prototype,"hasAffiliateDisclaimer",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],zW.prototype,"isProductPlaceholder",null);
_.T([_.B(),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],zW.prototype,"hideOpenInNewIcon",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],zW.prototype,"ariaLabel",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],zW);
_.z(zW,"ytd-merch-shelf-item-renderer",function(){if(LDv!==void 0)return LDv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return LDv=M},{mode:1});_.S5(_.U(function(M){return _.W("button-card-view-model",{el:_.bm(_.CL(function(){return M.data().rendererContext})),
class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return M.data().title},
role:"button"},_.W(_.p3,{model:{}}),_.W("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.W("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.W(_.d,{cond:function(){return M.data().image},
then:function(q){return _.W(_.Jj,{data:q,alt:"",className:"ytwButtonCardViewModelHostImage"})}})),_.W("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return M.data().title})))},"$b"),"button-card-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){M=_.UT(M,{className:void 0});var q=M.data;M=M.className;var G=_.gY(function(){return q().onTapCommand},void 0,"SXkP9e");
return _.W("ytd-shopping-item-card",{class:_.Hb("ytdShoppingItemCardHost",M)},_.W(_.kv,{command:G,className:"ytdShoppingItemCardHostLink"},_.W("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.W(_.yu,{data:function(){return q().thumbnailViewModel}},{thumbnailViewModel:function(K){return _.W(_.kl,{data:K.data,
aspectRatio:3})}})),_.W("div",null,_.W("p",{class:"ytdShoppingItemCardHostItemTitle"},_.W(_.Ft,{text:function(){return q().itemTitle}})),_.W("p",{class:"ytdShoppingItemCardHostPrice"},_.W(_.Ft,{text:function(){return q().priceOrStatus}})))))},"ac"),"ytd-shopping-item-card",{props:{data:_.Hz,
className:_.Hz}});var YRM={isAdsVideo:!0},WDI={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},A8J={showPlayerControls:!1,videoPreviewDurationMs:15E3},dkP={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!0};var IZ=null,OZY={};var aRy="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(" "),mU={},oZi=(mU.FEwhat_to_watch="home",mU.FEhashtag="hashtag",mU.FEtrending="trending",mU.FEhistory="history",mU.SPunlimited="premium",mU.FEmemberships_and_purchases="paid_memberships",mU.SPredeem_code="redeem",mU.SPverify_location="locate",mU.SPminor_moment="minor_moment",
mU.FEmini_app_container="mini_app",mU.FEnews_destination="news",mU.SPopen_in_app="open_in_app",mU.FEexplore="explore",mU.FEsubscriptions="subscriptions",mU.FEsfv_audio_pivot="sfv_audio_pivot",mU.FEplaylist_aggregation="playlist_aggregation",mU);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");_.HF("init");var vwf=function(){},wN$=_.U(function(M){var q=M.data;
var G=M.inlineMetadata;var K=M.aspectRatio;var n=M.scrimStyle;var E=M.className;var p=M.useDefaultStyle;var y=M.titleStyle;var Y=new vwf,A=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",v=_.gY(function(){return(p==null?0:p())?A==="SHORTS_LOCKUP_STYLE_SLIM":q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"xq9ok"),h=_.gY(function(){return _.TL(G)||v()||!1},void 0,"neizSe"),t=function(){return(n==null?void 0:n())!==void 0?n==null?void 0:n():1},
O=_.gY(function(){return q().belowThumbnailMetadata||!h()},void 0,"HdmMMe");
M=_.d_({visibilityCallback:function(yY){var d$=q().onFirstVisible;yY&&d$&&_.Pb(d$)},
showOption:{calledOnce:!0,state:"visible"}});var a=_.bm(),g={},D=_.Hb(function(){return v(),"shortsLockupViewModelHostThumbnailContainer"},(g.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.TL(K)===1},g.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.TL(K)===2},g.shortsLockupViewModelHostThumbnailContainerCustomDimensions=function(){return!_.w("web_shorts_2_by_3_lockups_study")&&!_.w("desktop_search_enable_two_by_three_shorts_aspect_ratio")},
g)),J=_.gY(function(){if(_.TL(K)===1)return 1;
_.TL(K);return 2},void 0,"ZRUa3c"),Z,V=function(){if(Y){var yY;
(yY=Z)==null||JY(yY);var d$;if(Y.hostElement&&((d$=Y.data)==null?0:d$.inlinePlayerData)){yY=Object.assign({},dkP);var cy,t4;((cy=Y.data)==null?void 0:(t4=cy.inlinePlayerData)==null?void 0:t4.maxPlaybackLengthSec)!==void 0&&(yY.videoPreviewDurationMs=Y.data.inlinePlayerData.maxPlaybackLengthSec*1E3);Z=oZ({mediaRenderer:Y,lockupElement:Y.hostElement,thumbnailElement:a.value,videoPreviewOpts:yY})}}};
_.zL(function(){Y&&(Y.data=q(),V())},"c4oj4d");
var S=_.gY(function(){return q().thumbnail},void 0,"CJHyHc");
g=_.gY(function(){return q().badge},void 0,"g31PIe");
var m=_.gY(function(){return q().onTap},void 0,"CJCUBc"),R={},se={};
return _.W("ytm-shorts-lockup-view-model",{el:_.bm(function(yY){Y&&(Y.hostElement=yY)},V,M),
class:_.Hb("shortsLockupViewModelHost",E)},_.W(_.dU,null,_.W(_.kv,{command:m,className:_.Hb("shortsLockupViewModelHostEndpoint",(R.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!O()},R),"reel-item-endpoint",""),
ariaHidden:function(){return!h()},
tabIndex:function(){return h()?0:-1}},_.W("div",{el:a,
class:_.Hb("shortsLockupViewModelHostThumbnailParentContainer",(se.shortsLockupViewModelHostThumbnailParentContainerRounded=function(){return!v()},se))},_.W(_.d,{cond:S,
then:function(){return _.W("div",{class:D},_.W(_.Jj,{data:function(){var yY;return(yY=S==null?void 0:S())!=null?yY:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}))}}),_.W(_.yu,{data:function(){return q().thumbnailViewModel}},{thumbnailViewModel:function(yY){return _.W(_.kl,{data:yY.data,
aspectRatio:function(){return J()},
disableRounding:function(){return v()}})}}),null),_.W(_.d,{cond:h,
then:function(){return _.W(hd8,{data:q,scrimStyle:t,useDefaultStyle:p,titleStyle:y})}}),_.W(_.yu,{data:g},{badgeViewModel:function(yY){return _.W(_.Yl,{data:yY.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.W(_.d,{cond:function(){return h()&&q().menuOnTap},
then:function(){return _.W(t22,{data:q,inlineMetadata:!0})}}),_.W(_.d,{cond:O,
then:function(){return _.W(O6S,{data:q,useDefaultStyle:p,inlineMetadata:h})}})))},"cc"),hd8=_.U(function(M){var q=M.data;
var G=M.scrimStyle;var K=M.useDefaultStyle;var n=M.titleStyle;var E=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",p=K&&_.w("web_hide_primary_text_for_pivot_panel"),y=_.gY(function(){return(K==null?0:K())?E==="SHORTS_LOCKUP_STYLE_SLIM":q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"eqtoN");
M={};M=_.Hb("shortsLockupViewModelHostInlineMetadata",(M.shortsLockupViewModelHostMetadataRounded=function(){return!y()},M.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(G==null?void 0:G())===3&&!_.w("enable_shorts_lockup_new_scrim")},M.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(G==null?void 0:G())===3&&_.w("enable_shorts_lockup_new_scrim")},M.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(G==null?void 0:G())===2||(G==null?void 0:
G())===4},M.shortsLockupViewModelHostShowOverPlayer=function(){return!0},M),"image-overlay-text");
var Y={};return _.W("div",{class:M},_.W("h3",{class:_.Hb("shortsLockupViewModelHostMetadataTitle",(Y.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(G==null?void 0:G())===4},Y.shortsLockupViewModelHostMetadataTitleHasBottomMetadata=function(){return q().belowThumbnailMetadata},Y.shortsLockupViewModelHostMetadataTitleMaxLines1=function(){return(n==null?void 0:n())===1},Y.shortsLockupViewModelHostMetadataTitleMaxLines2=function(){return(n==null?void 0:n())===2},Y)),
"aria-label":function(){return q().accessibilityText}},_.W(_.d,{cond:function(){var A;
return!((A=q().overlayMetadata)==null||!A.primaryText)&&!p},
then:function(){return _.W(_.Ft,{text:function(){var A;return(A=q().overlayMetadata)==null?void 0:A.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.W(_.d,{cond:function(){var A;
return(A=q().overlayMetadata)==null?void 0:A.secondaryText},
then:function(){return _.W(CbP,{data:q,scrimStyle:G,className:void 0})}}))},"dc"),O6S=_.U(function(M){var q=M.data;
var G=M.useDefaultStyle;var K=M.inlineMetadata;var n=_.w("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",E=_.gY(function(){return(G==null?0:G())?n==="SHORTS_LOCKUP_STYLE_SLIM":q().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"rFGYIe"),p=_.bm(),y;
M=_.sq(function(O){if(_.t$(_.h$(O),p.value,["AVATAR-VIEW-MODEL"]))return!1;var a;(a=y)==null||a.click();return!1});
var Y=_.gY(function(){return q().belowThumbnailMetadata||q().overlayMetadata},void 0,"yJVuMb"),A=function(){return q().menuOnTap&&!K()},v=function(){var O;
return(O=Y())==null?void 0:O.avatar},h={},t={};
return _.W("div",{class:_.Hb(function(){return E()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},(h.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!v()},h.shortsLockupViewModelHostOutsideMetadataHasMenu=A,h)),
"on:click":M,el:p,role:"presentation"},_.W(_.yu,{data:v},{avatarViewModel:function(O){return _.W("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.W(_.zo,{data:O.data}))}}),_.W("div",null,_.W("h3",{class:_.Hb("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(t.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var O,a;
return!((O=Y())==null?0:(a=O.primaryText)==null?0:a.content)},t.shortsLockupViewModelHostOutsideMetadataTitleHasInlineMetadata=K,t)),
role:"presentation"},_.W(_.kv,{ref:function(O){return void(y=O)},
command:function(){return q().onTap},
className:_.Hb("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var O,a;return(O=Y())==null?void 0:(a=O.primaryText)==null?void 0:a.content},
"aria-label":function(){return q().accessibilityText}},_.W(_.d,{cond:function(){var O;
return(O=Y())==null?void 0:O.primaryText},
then:function(O){return _.W(_.Ft,{text:O,noEndpoints:!0,noStyleRuns:!0})}}))),_.W(_.d,{cond:function(){var O;
return(O=Y())==null?void 0:O.secondaryText},
then:function(O){return _.W("div",{class:_.Hb("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead")},_.W(_.Ft,{text:O,noStyleRuns:!0}))}})),_.W(_.d,{cond:A,
then:function(){return _.W(t22,{data:q,inlineMetadata:!1})}}))},"ec"),CbP=_.U(function(M){var q=M.data;
var G=M.scrimStyle;M=M.className;var K={};return _.W("div",{class:_.Hb((K.shortsLockupViewModelHostMetadataSubhead=function(){return(G==null?void 0:G())!==4},K.shortsLockupViewModelHostMetadataSubheadNew=_.w("enable_shorts_lockup_new_scrim"),K.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(G==null?void 0:G())===4},K),M),
"aria-hidden":"true"},_.W(_.Ft,{text:function(){var n;return(n=q().overlayMetadata)==null?void 0:n.secondaryText},
noStyleRuns:!0}))},"fc"),t22=_.U(function(M){var q=M.data;
var G=M.inlineMetadata;M={};M=_.Hb((M.shortsLockupViewModelHostInlineMetadataMenu=function(){return G()},M.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!G()},M.shortsLockupViewModelHostShowOverPlayer=function(){return!0},M),"image-overlay-text");
return _.W("div",{class:M},_.W(_.Yv,{data:function(){return{style:G()?"overlay":"mono",accessibilityLabel:q().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(K){K.preventDefault();K.stopPropagation();var n=_.lm({elementsCommand:q().menuOnTap,forceNewState:!0});if(n==null?0:n.onclick)n.onclick(K)}}},
iconName:"MORE_VERT"}))},"gc");var aKJ=_.U(function(M){var q=M.data;var G=M.inlineMetadata;var K=M.aspectRatio;var n=M.scrimStyle;var E=M.className;var p=M.useDefaultStyle;M=_.gY(function(){var y=q().entityId;return y?y.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"r2ABGd");
return _.W("ytm-shorts-lockup-view-model-v2",{class:_.Hb("shortsLockupViewModelHost",E)},_.W(_.ve,{contentId:M,aspectRatio:function(){return(K==null?void 0:K())===1?1:(K==null?void 0:K())===2?2:4}},function(){return _.W(wN$,{data:q,
inlineMetadata:G,aspectRatio:K,scrimStyle:n,className:E,useDefaultStyle:p})}))},"hc");_.S5(aKJ,"ytm-shorts-lockup-view-model-v2",{props:{data:_.xj,inlineMetadata:_.xj,aspectRatio:_.xj,scrimStyle:_.xj,className:_.xj,useDefaultStyle:_.xj,titleStyle:_.xj}});var owB=16/9*210,SL=function(){var M=_.Q.apply(this,arguments)||this;M.isExpandableContent=!1;M.hideShelfHeader=!1;M.engagementPanel=!1;M.buttonClasses=["arrow"];M.isSearch=!1;M.disableScrollEventListener=!1;M.containsLockup=!1;M.overrideArrowPositionForProductCard=!1;M.overrideArrowPositionForShoppingItemCard=!1;M.overrideArrowPositionForReelItems=!1;M.overrideArrowPositionForGridMovie=!1;M.overrideArrowPositionToCenter=!1;M.isSearchPostShelf=!1;M.overrideArrowPositionForMixedShelf=!1;M.overrideArrowPositionForMixedShelfShortsOnly=
!1;M.hasBigThumbsReelItems=!1;M.shouldUseMixedListHeight=!1;M.shouldUseShortsListHeight=!1;M.gridVideoWidth=0;M.isSearchVodShelf=!1;M.disableWheelScroll=!1;M.sizing="COMPACT";M.shortsLockupAspectRatio=0;return M};
_.l(SL,_.Q);_.N=SL.prototype;
_.N.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]]"}}}}};
_.N.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.w("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.N.computeInitialCountNumber=function(M){if(!M)return 6;var q=M.items.some(function(E){return!!E.topicRecommendationsChipRenderer}),G=M.items.some(function(E){return!!E.displayAdRenderer}),K=this.computeShouldListItemsHaveEqualHeight(M),n=M.items.some(function(E){return!!E.gridPlaylistRenderer});
M=M.items.some(function(E){return!!E.shoppingItemCardViewModel});
return q?9:G?8:n||K?10:M?7:6};
_.N.computeContainsPost=function(M){return!!M&&!!M.items&&M.items.some(function(q){return!!q.postRenderer})};
_.N.computeContainsLockup=function(){if(_.w("web_horizontal_list_lockup_arrow_killswitch"))return!1;var M,q;return(M=this.data)==null?void 0:(q=M.items)==null?void 0:q.some(function(G){return!!G.lockupViewModel})};
_.N.maybeUpdateLockupAspectRatio=function(){var M,q;if(this.computeContainsLockup()&&((M=this.data)==null?0:(q=M.items)==null?0:q.length)){var G;M=THF((G=this.data.items[0].lockupViewModel)==null?void 0:G.contentType,this.data.force16By9ThumbnailAspectRatio);G=mZF(M);G=this.computeLockupWidth()/G;_.sT(this.hostElement,{"--yt-horizontal-list-content-height":G+"px"})}};
_.N.computeOverrideArrowPositionForProductCard=function(M){if(this.isExpandableContent)return!1;var q;return!!(M==null?0:(q=M.items)==null?0:q.some(function(G){return!!G.verticalProductCardRenderer}))};
_.N.computeOverrideArrowPositionForShoppingItemCard=function(M){var q;return!!(M==null?0:(q=M.items)==null?0:q.some(function(G){return!!G.shoppingItemCardViewModel}))};
_.N.computeOverrideArrowPositionForReelItemRenderer=function(M){return this.containsReelItemRenderer(M)};
_.N.computeHasBigThumbsReelItems=function(M,q){return M&&this.containsReelItemRenderer(q)};
_.N.computeShouldListItemsHaveEqualHeight=function(M){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(M==null?void 0:M.itemSizeConstraint)};
_.N.computeShouldListItemsHaveShortsHeight=function(M){return this.computeShouldListItemsHaveEqualHeight(M)&&!this.containsGridVideoRenderer(M)};
_.N.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.N.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.N.containsReelItemRenderer=function(M){var q;return!!(M==null?0:(q=M.items)==null?0:q.some(function(G){return!(!G.reelItemRenderer&&!G.shortsLockupViewModel)}))};
_.N.containsGridVideoRenderer=function(M){var q;return!!(M==null?0:(q=M.items)==null?0:q.some(function(G){return!!G.gridVideoRenderer||!!G.lockupViewModel}))};
_.N.computeContainsGridMovieRenderer=function(M){var q;return!!(M==null?0:(q=M.items)==null?0:q.some(function(G){return!!G.gridMovieRenderer}))};
_.N.computeOverrideArrowPositionToCenter=function(M){return this.computeIsSearchPostShelf(M)};
_.N.computeIsSearchPostShelf=function(M){var q;return!!(M==null?0:(q=M.items)==null?0:q.some(function(G){var K,n;return((n=(K=G.postRenderer)==null?void 0:K.surface)!=null?n:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.N.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(M){var q;return!!(M==null?0:(q=M.items)==null?0:q.some(function(G){var K,n,E;return((E=(K=G.backgroundPromoRenderer)==null?void 0:(n=K.style)==null?void 0:n.value)!=null?E:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.N.computeIsSearchVodShelf=function(M,q){return M&&this.containsGridVideoRenderer(q)};
_.N.computeDisableWheelScroll=function(M,q){return this.computeIsSearchVodShelf(M,q)};
_.N.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.N.computeShortsLockupAspectRatio=function(){return 1};
_.N.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.sT(this.hostElement,{"--ytd-reel-item-thumbnail-height":owB+"px"})};
SL.prototype.dataChanged=SL.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],SL.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],SL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.pi.YtdHorizontalListBehavior),_.r("design:type",Object)],SL.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],SL.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],SL.prototype,"isExpandableContent",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"hideShelfHeader",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"engagementPanel",void 0);_.T([_.B(),_.r("design:type",Array)],SL.prototype,"buttonClasses",void 0);_.T([_.B(),_.r("design:type",Object)],SL.prototype,"isSearch",void 0);
_.T([_.B(),_.r("design:type",Object)],SL.prototype,"disableScrollEventListener",void 0);_.T([_.B({computed:"computeInitialCountNumber(data)"}),_.r("design:type",Number)],SL.prototype,"initialCount",void 0);_.T([_.B({computed:"computeContainsPost(data)"}),_.r("design:type",Boolean)],SL.prototype,"supportComponentResize",void 0);_.T([_.B({computed:"computeContainsPost(data)"}),_.r("design:type",Boolean)],SL.prototype,"containsPost",void 0);
_.T([_.B({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"containsLockup",void 0);_.T([_.B({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],SL.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.T([_.B({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"overrideArrowPositionForProductCard",void 0);_.T([_.B({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.T([_.B({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"overrideArrowPositionForReelItems",void 0);_.T([_.B({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"overrideArrowPositionForGridMovie",void 0);
_.T([_.B({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"overrideArrowPositionToCenter",void 0);_.T([_.B({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"isSearchPostShelf",void 0);_.T([_.B({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.T([_.B({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.T([_.B({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"hasBigThumbsReelItems",void 0);
_.T([_.B({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"shouldUseMixedListHeight",void 0);_.T([_.B({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"shouldUseShortsListHeight",void 0);_.T([_.B({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"gridVideoWidth",void 0);
_.T([_.B({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"isSearchVodShelf",void 0);_.T([_.B({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.r("design:type",Object)],SL.prototype,"disableWheelScroll",void 0);_.T([_.B({computed:"computeSizing(isSearch)"}),_.r("design:type",Object)],SL.prototype,"sizing",void 0);
_.T([_.B({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.r("design:type",Object)],SL.prototype,"shortsLockupAspectRatio",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SL.prototype,"dataChanged",null);
_.z(SL,"yt-horizontal-list-renderer",function(){if(PXM===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);PXM=M}M=PXM;return M},{mode:1});var lK9=function(){this.subscriptions=new Map([["navigation-start",new Set],["navigation-end",new Set]])};
lK9.prototype.subscribe=function(M,q){var G=this.subscriptions.get(M);if(!G)return function(){};
G.add(q);return function(){G.delete(q)}};
lK9.prototype.unsubscribe=function(M,q){(M=this.subscriptions.get(M))&&M.delete(q)};
lK9.prototype.publish=function(M,q){q=q===void 0?{}:q;(M=this.subscriptions.get(M))&&M.forEach(function(G){G(q)})};var XNd;var PbJ=[10,12,14,16,18,20,24,28,32,36],i62=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],TW=function(){var M=_.Q.apply(this,arguments)||this;M.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";M.hideOverflow=!1;M.useRoboto=!1;M.fontClass="";M.overflown=!1;M.actionMap={"yt-window-resized":"resize"};return M};
_.l(TW,_.Q);_.N=TW.prototype;
_.N.attached=function(){var M=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();_.yb(this,function(){M.resize()});
if(!_.RH){var q,G,K;(q=document)==null||(G=q.fonts)==null||(K=G.ready)==null||K.then(function(){M.resize()})}};
_.N.dataChanged=function(){this.resize()};
_.N.guideIsExpandedChanged=function(){this.resize()};
_.N.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 M=this.getMaxNumLines(),q=this.getMinFont(),G=this.getMaxFont(),K=this.useRoboto?PbJ:i62;for(K=K.filter(function(E){return E<=G&&E>=q});K.length>1;){var n=Math.floor(K.length/2);
this.updateFontSize(K[n]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=M)K=K.slice(n,K.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>M)K=K.slice(0,n);else break}this.updateFontSize(K[K.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(M)}};
_.N.handleOverflow=function(M){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>M&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",M.toString()))};
_.N.updateFontSize=function(M){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+M;this.textNode.classList.add(this.fontClass)};
_.N.getMaxFont=function(){var M=this.useRoboto?PbJ:i62;M=M[M.length-1];return this.maxFontSize&&this.maxFontSize<=M?this.maxFontSize:M};
_.N.getMinFont=function(){var M=(this.useRoboto?PbJ:i62)[0];return this.minFontSize&&this.minFontSize>=M?this.minFontSize:M};
_.N.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.N.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.N.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.UX(this.text).split("\n").length-1:Infinity};
_.N.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("Jh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
TW.prototype.guideIsExpandedChanged=TW.prototype.guideIsExpandedChanged;TW.prototype.dataChanged=TW.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],TW.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],TW.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],TW.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],TW.prototype,"text",void 0);
_.T([_.B(),_.r("design:type",String)],TW.prototype,"fontFamily",void 0);_.T([_.B(),_.r("design:type",Number)],TW.prototype,"maxWidth",void 0);_.T([_.B(),_.r("design:type",Number)],TW.prototype,"maxHeight",void 0);_.T([_.B(),_.r("design:type",Number)],TW.prototype,"maxFontSize",void 0);_.T([_.B(),_.r("design:type",Number)],TW.prototype,"minFontSize",void 0);_.T([_.B(),_.r("design:type",Number)],TW.prototype,"maxLines",void 0);_.T([_.B(),_.r("design:type",Object)],TW.prototype,"hideOverflow",void 0);
_.T([_.B({selector:_.gve}),_.r("design:type",Boolean)],TW.prototype,"guideIsExpanded",void 0);_.T([_.ET("#container"),_.r("design:type",HTMLElement)],TW.prototype,"containerNode",void 0);_.T([_.ET("#text"),_.r("design:type",HTMLElement)],TW.prototype,"textNode",void 0);_.T([_.yO("text"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TW.prototype,"dataChanged",null);
_.T([_.yO("guideIsExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TW.prototype,"guideIsExpandedChanged",null);_.T([_.b({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],TW);
_.z(TW,"yt-dynamic-sizing-formatted-string",function(){if(XNd!==void 0)return XNd;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return XNd=M},{mode:1});var c8p;_.gwJ=function(M){_.qD.call(this,M)};
_.l(_.gwJ,_.qD);var BdP=function(M){_.qD.call(this,M)};
_.l(BdP,_.gwJ);var rp=function(){return _.Q.apply(this,arguments)||this};
_.l(rp,_.Q);rp.prototype.onTapSuspendedChannel=function(){var M;if((M=this.data)!=null&&M.serviceEndpoint){var q,G;(M=(G=_.C((q=this.data)==null?void 0:q.serviceEndpoint,_.q6))==null?void 0:G.url)?_.PE(M,void 0,void 0,window.top):(q=new BdP("Did not handle suspended account tap. No appealUrl."),_.T6(q))}else q=new BdP("Did not handle suspended account tap. No serviceEndpoint."),_.T6(q)};
rp.prototype.onTap=function(){var M=this,q=_.nl(),G,K=(G=_.GE(q,{veType:7116}))!=null?G:void 0;_.Bx(q,{visualElement:K});_.la();this.saveRoleText();var n;if((n=this.data)==null?0:n.youtubeSuspended)this.onTapSuspendedChannel();else{var E=!1,p,y;(q=(y=_.C((p=this.data)==null?void 0:p.serviceEndpoint,_.iC9))==null?void 0:y.supportedTokens)&&q.forEach(function(Y){if(Y.accountSigninToken)if(E=!0,M.onAccountItemTap)M.onAccountItemTap(Y.accountSigninToken.signinUrl);else _.PE(Y.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!E){if(p=this.get("serviceEndpoint",this.data))E=!0,this.ytComponentBehavior.resolveCommand(p);E||_.rM(new BdP("Did not handle account switch tap. No token."))}}};
rp.prototype.saveRoleText=function(){if(this.data){var M=this.data,q=M.channelDelegationRole;if(q){var G,K=(G=_.C(M==null?void 0:M.serviceEndpoint,_.iC9))==null?void 0:G.supportedTokens;if(!K){var n,E,p,y;K=(n=_.C(M==null?void 0:M.serviceEndpoint,_.BA))==null?void 0:(E=n.popup)==null?void 0:(p=E.confirmDialogRenderer)==null?void 0:(y=p.confirmButton)==null?void 0:y.buttonRenderer;var Y;K=(Y=_.C(K==null?void 0:K.command,_.eP))==null?void 0:Y.commands;if(!K)return;var A;K=(A=_.C(K[1],_.iC9))==null?
void 0:A.supportedTokens}if(K){Y=void 0;A=_.k(K);for(K=A.next();!K.done;K=A.next())if(K=K.value,K.datasyncIdToken){Y=K.datasyncIdToken.datasyncIdToken;break}if(Y){var v;a:{if(_.VLu()&&(A=_.mgi(Y+"::pom"))){A=new Pz(A);break a}A=void 0}(v=A)==null||v.set("role_text",q);if((Ehu?Ehu:window.location).href.indexOf("studio")!==-1&&(v=Rgw())){A=v.src?(new URL(v.src)).origin:"*";var h;(h=v.contentWindow)==null||h.postMessage({action:"save_pom_role",datasyncId:Y,roleText:q},A)}}}}}};
_.Yd.Object.defineProperties(rp.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.data)==null?void 0:(q=M.accountPhoto)==null?void 0:q.thumbnails;return G&&G.length>0&&(G[0].height===36||G[0].height===48)?G[0].height:40}}});
rp.prototype.onTap=rp.prototype.onTap;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],rp.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],rp.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!1}),_.r("design:type",Function)],rp.prototype,"onAccountItemTap",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],rp.prototype,"enableRingForActiveAccount",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],rp.prototype,"thumbnailSize",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rp.prototype,"onTap",null);_.T([_.b({is:"ytd-account-item-renderer",disableElementRegistration:!0})],rp);
_.z(rp,"ytd-account-item-renderer",function(){if(c8p!==void 0)return c8p;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return c8p=M},{mode:1});var Q0p;var jL=function(){return _.Q.apply(this,arguments)||this};
_.l(jL,_.Q);jL.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.AL().resolve(_.vR).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jL.prototype,"data",void 0);_.T([_.b({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],jL);
_.z(jL,"ytd-identity-chip-renderer",function(){if(Q0p!==void 0)return Q0p;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Q0p=M},{mode:1});var IK$;var Dkv;var uzS;var J8B;var VG=function(){var M=_.Q.apply(this,arguments)||this;M.richItemMinWidth=_.tL("wn_grid_min_item_width",310);M.isShorts=!1;M.isWatchNext=!1;M.isExploreHub=!1;return M};
_.l(VG,_.Q);_.Yd.Object.defineProperties(VG.prototype,{shimmerAnimation:{configurable:!0,enumerable:!0,get:function(){return this.isExploreHub}},
cardItems:{configurable:!0,enumerable:!0,get:function(){var M=[],q=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.sT(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var G;if(((G=this.data)==null?0:G.rows)&&q)for(q*=this.data.rows,G=0;G<q;G++)M.push({});return M}}});
_.T([_.P(_.mr),_.r("design:type",Object)],VG.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],VG.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],VG.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.CK,value:3}),_.r("design:type",Number)],VG.prototype,"itemsPerRow",void 0);_.T([_.B({selector:_.cvi,value:6}),_.r("design:type",Number)],VG.prototype,"slimItemsPerRow",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Number)],VG.prototype,"richItemMinWidth",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],VG.prototype,"miniMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],VG.prototype,"isShorts",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],VG.prototype,"isWatchNext",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],VG.prototype,"isExploreHub",void 0);
_.T([_.c("isExploreHub"),_.B({reflectToAttribute:!0}),_.r("design:type",Object),_.r("design:paramtypes",[])],VG.prototype,"shimmerAnimation",null);_.T([_.c("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.r("design:type",Array),_.r("design:paramtypes",[])],VG.prototype,"cardItems",null);_.T([_.b({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],VG);
_.Z6B=_.jo()(VG,"ytd-ghost-grid-renderer",function(){if(J8B===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);J8B=M}M=J8B;return M},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.S5(_.U(function(M){var q=_.UT(M,{numberOfComments:3}).numberOfComments,G=_.UT(M,{isInitialLoad:!1}).isInitialLoad,K=_.UT(M,{engagementPanel:!1}).engagementPanel,n=function(){return Math.min(Number(q==null?void 0:q())||20,20)};
return _.W("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.W(_.d,{cond:function(){return!(K==null?0:K())&&(G==null?void 0:G())},
then:function(){return _.W("div",{class:"ytGhostCommentsComments"},_.W("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.W("div",{class:_.Hb("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.W("div",{class:_.Hb("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.W("div",{class:"ytGhostCommentsGhostCard"},_.W("div",{class:"ytGhostCommentsAvatar"},_.W("div",{class:"ytGhostCommentsCircle"})),_.W("div",{class:"ytGhostCommentsComments"},_.W("div",{class:"ytGhostCommentsMeta"},
_.W("div",{class:_.Hb("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.W("div",{class:_.Hb("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.W("div",{class:"ytGhostCommentsComments"},_.W(_.bf,{each:function(){return Array((n==null?void 0:n())||3)}},function(){return _.W("div",{class:"ytGhostCommentsGhostCard"},_.W("div",{class:"ytGhostCommentsAvatar"},_.W("div",{class:"ytGhostCommentsCircle"})),_.W("div",{class:"ytGhostCommentsHost"},_.W("div",{class:"ytGhostCommentsMeta"},
_.W("div",{class:_.Hb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.W("div",{class:_.Hb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:_.Hb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:"ytGhostCommentsGhostLikeDislike"},_.W("div",{class:_.Hb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.W("div",{class:_.Hb("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"ic"),"yt-ghost-comments",{props:{numberOfComments:_.Hz,
isInitialLoad:_.Hz,engagementPanel:_.Hz},unsafeExternallySettableAttributes:new Set(["hidden"])});_.hC("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Rx=function(){var M=_.Q.apply(this,arguments)||this;M.isOverridable=!1;M.spinnerActive=!1;M.showButton=!1;M.isCommentsSection=!1;M.engagementPanel=!0;M.isShortsGrid=!1;M.isShortsPage=!1;M.isWatchPage=!1;M.originalShowButton=!1;M.endOfList=!1;return M};
_.l(Rx,_.Q);_.N=Rx.prototype;_.N.resetIntersectionObserver=function(){var M;(M=this.observer)==null||M.disconnect();this.observer=void 0};
_.N.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var M,q;((M=this.data)==null?void 0:M.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((q=this.data)==null?0:q.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.N.initializeIntersectionObserver=function(){var M=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(q){q=_.k(q);for(var G=q.next();!G.done;G=q.next())G.value.isIntersecting&&(M.triggerContinuation(),M.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.N.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]]"}}}}}};
_.N.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var M;((M=this.data)==null?0:M.continuationEndpoint)&&(M=_.C(this.data.continuationEndpoint,_.XY))&&this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:M}}))};
_.N.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.N.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.N.onServiceRequestCompleted=function(M,q){if(!_.w("kevlar_hide_spinner_on_empty_continuation_killswitch")){var G;(G=q.actions)!=null&&G.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.N.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.N.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.N.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.N.numberOfGhostCommentsChanged=function(){var M=3;if(this.engagementPanel){var q,G,K;M=Math.floor(((((q=this.hostElement)==null?void 0:(G=q.parentElement)==null?void 0:(K=G.parentElement)==null?void 0:K.scrollHeight)||108)-108)/108);M=this.isInitialLoad?Math.max(M,3):3}q=[].concat(_.Ui(this.hostElement.querySelectorAll("yt-ghost-comments")));q=_.k(q);for(G=q.next();!G.done;G=q.next())G=G.value,G.numberOfComments=M,G.isInitialLoad=this.isInitialLoad,G.engagementPanel=this.engagementPanel};
_.N.detached=function(){this.resetIntersectionObserver()};
_.Yd.Object.defineProperties(Rx.prototype,{showGhostCardComments:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton?{ghostCommentsSectionRenderer:!0}:!1}}});
Rx.prototype.numberOfGhostCommentsChanged=Rx.prototype.numberOfGhostCommentsChanged;Rx.prototype.continuationTriggerOffsetChanged=Rx.prototype.continuationTriggerOffsetChanged;Rx.prototype.showButtonChanged=Rx.prototype.showButtonChanged;Rx.prototype.onYtServiceRequestCompletedForButtonRenderer=Rx.prototype.onYtServiceRequestCompletedForButtonRenderer;Rx.prototype.onServiceRequestCompleted=Rx.prototype.onServiceRequestCompleted;Rx.prototype.onYtServiceRequestSentForButtonRenderer=Rx.prototype.onYtServiceRequestSentForButtonRenderer;
Rx.prototype.observeData=Rx.prototype.observeData;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Rx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.jp.YtVisibilityBehavior),_.r("design:type",Object)],Rx.prototype,"ytVisibilityBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Rx.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],Rx.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Rx.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Rx.prototype,"isOverridable",void 0);_.T([_.B(),_.r("design:type",Object)],Rx.prototype,"spinnerActive",void 0);_.T([_.B(),_.r("design:type",Object)],Rx.prototype,"showButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Rx.prototype,"isCommentsSection",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Rx.prototype,"engagementPanel",void 0);_.T([_.B(),_.r("design:type",Object)],Rx.prototype,"isShortsGrid",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.Ij4}),_.r("design:type",Object)],Rx.prototype,"isShortsPage",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.QGy}),_.r("design:type",Object)],Rx.prototype,"isWatchPage",void 0);_.T([_.B(),_.r("design:type",Number)],Rx.prototype,"continuationTriggerOffset",void 0);
_.T([_.B(),_.r("design:type",Object)],Rx.prototype,"endOfList",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Rx.prototype,"isInitialLoad",void 0);_.T([_.ET("ytd-button-renderer"),_.r("design:type",_.kS)],Rx.prototype,"buttonRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],Rx.prototype,"buttonOverrides",void 0);
_.T([_.B(),_.c("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rx.prototype,"showGhostCardComments",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rx.prototype,"observeData",null);
_.T([_.GQ("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rx.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],Rx.prototype,"onServiceRequestCompleted",null);
_.T([_.GQ("yt-service-request-completed-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rx.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.T([_.yO("showButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rx.prototype,"showButtonChanged",null);
_.T([_.yO("continuationTriggerOffset"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rx.prototype,"continuationTriggerOffsetChanged",null);_.T([_.KT("isInitialLoad","engagementPanel"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rx.prototype,"numberOfGhostCommentsChanged",null);_.T([_.b({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Rx);
_.z(Rx,"ytd-continuation-item-renderer",function(){if(uzS!==void 0)return uzS;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return uzS=M},{mode:1});var b6v;var f0=function(){var M=_.Q.apply(this,arguments)||this;M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.downloadState="DOWNLOAD_STATE_UNKNOWN";M.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";M.offlineVideoPolicyExpirationTimestamp=0;M.downloadedVideoPlaybackPosition=0;return M};
_.l(f0,_.Q);f0.prototype.dataChanged=function(){var M;this.videoData=_.C((M=this.data)==null?void 0:M.renderer,nS9);this.transferStateChanged()};
f0.prototype.downloadProgressChanged=function(){if(this.entityInfo){var M=Object.assign({},this.videoData),q=yaY(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),G=q.publishedTimeText,K=q.badges;M.shortViewCountText=q.shortViewCountText;M.publishedTimeText=G;M.badges=K;this.set("videoData",M)}};
f0.prototype.transferStateChanged=function(){if(this.entityInfo){var M=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",q=_.pK(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!kz(this.entityInfo.policyEntity),G=Object.assign({},this.videoData),K=yaY(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),n=K.publishedTimeText,E=K.badges;G.shortViewCountText=
K.shortViewCountText;G.publishedTimeText=n;G.badges=E;G.isDisabled=q;G.isWatched=this.downloadedVideoPlaybackPosition>0;G.navigationEndpoint=q?void 0:D1j(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var p;M&&((p=this.videoData)==null?0:p.videoId)&&!_.w("dl_resume_click_killswitch")&&(G.isDisabled=!1,G.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});G.thumbnailOverlays=kRy(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",G)}};
f0.prototype.transferStateChanged=f0.prototype.transferStateChanged;f0.prototype.downloadProgressChanged=f0.prototype.downloadProgressChanged;f0.prototype.dataChanged=f0.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],f0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],f0.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],f0.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],f0.prototype,"videoData",void 0);_.T([_.B({selector:ic,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],f0.prototype,"downloadProgress",void 0);_.T([_.B(),_.r("design:type",Number)],f0.prototype,"relativeDateReference",void 0);_.T([_.B({selector:_.Xp,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],f0.prototype,"transferState",void 0);
_.T([_.B({selector:$tu,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],f0.prototype,"downloadState",void 0);_.T([_.B({selector:b3u,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],f0.prototype,"offlinePolicyAction",void 0);_.T([_.B({selector:Utu,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],f0.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.T([_.B({selector:cs,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],f0.prototype,"downloadedVideoPlaybackPosition",void 0);_.T([_.B({selector:zCe,selectorArgs:["videoData.videoId"]}),_.r("design:type",Object)],f0.prototype,"entityInfo",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],f0.prototype,"isDownloading",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],f0.prototype,"dataChanged",null);
_.T([_.yO("downloadProgress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],f0.prototype,"downloadProgressChanged",null);_.T([_.yO("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],f0.prototype,"transferStateChanged",null);
_.T([_.b({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],f0);
_.z(f0,"ytd-downloaded-video-grid-video-renderer",function(){if(b6v!==void 0)return b6v;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return b6v=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var Uk9;var F0=function(){};
F0.prototype.resolve=function(M,q){var G=this;return _.L(function(K){return K.yield(G.resolveCommand(M,q),0)})};var xkP,He;xkP=aNy(function(M){return M.targetId},{shouldPersist:!1});
He=xkP.updateData;_.zdJ=xkP.useUpdatableData;var mk2,SRP;mk2=aNy(function(M){return M.targetId});
SRP=mk2.updateData;_.TdB=mk2.useUpdatableData;var r8P=iZH.bind(null,He),j0S=iZH.bind(null,SRP);(function(M,q,G){var K=_.C(G==null?void 0:G.updatedRenderer,_.Jvv);return K?M({targetId:q},function(){return K}):!1}).bind(null,He);var eL=function(){};
_.l(eL,F0);eL.prototype.resolveCommand=function(M){var q;return _.L(function(G){q=_.C(M,_.IY4);if(!q)return G.return();r8P(q.targetId,q);_.gL(G)})};var $l=function(){var M=_.kA.apply(this,arguments)||this;M.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return M};
_.l($l,_.kA);_.N=$l.prototype;_.N.configureContinuationPathMap=function(){return{}};
_.N.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.N.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.N.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.N.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.N.handleAppendContinuationItemsAction=function(M){var q=_.C(M,_.gHP);if(this.data&&this.data.targetId&&q&&this.continuationPathMap&&q.targetId===this.data.targetId){var G=KgH(M),K=G&&this.continuationPathMap[G];if(K&&G)if(M=this.get(K,this.data)){a:{for(G=0;G<M.length;G++){var n=M[G],E=void 0,p=!!_.C((E=_.C(n,vtI))==null?void 0:E.content,_.Mrx);if(_.C(n,_.Z$)||p)break a}G=M.length}K="data."+K;q.continuationItems?G===M.length-1?(this.pop(K),this.push.apply(this,[K].concat(_.Ui(q.continuationItems)))):
G===M.length?this.push.apply(this,[K].concat(_.Ui(q.continuationItems))):this.splice.apply(this,[K,G,1].concat(_.Ui(q.continuationItems))):this.splice(K,G,1);(_.w("web_enable_voting_animation")||_.w("enable_music_web_cairo_voting_animation"))&&_.jP(this.hostElement,"yt-append-continuation-items-action-finished");_.jP(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.j1(new _.bj("append continuation items does not exist",G));else _.j1(new _.bj("append continuation path does not exist",
G))}};
_.N.handleReloadContinuationItemsCommand=function(M){var q=_.C(M,_.IY4);if(this.data&&q){if(_.w("web_client_explore_hub")||_.w("web_explore_hub_on_hover")||_.w("web_client_explore_hub_on_hover"))try{_.AL().resolve(eL).resolveCommand(M)}catch(E){}if(this.data.targetId&&this.continuationPathMap&&q.targetId===this.data.targetId&&(!_.w("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||q.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var G,K=(G=q.slot)==null?void 0:
G.replace("RELOAD_CONTINUATION_SLOT_","");G=(M=KgH(M)+"-"+(K==null?void 0:K.toLowerCase()))&&this.continuationPathMap[M];if(!G||!M||!K)_.j1(new _.bj("reload continuation path does not exist",M));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(q)){if(q.replaceWithFirstItem){var n;this.set("data."+G,((n=q.continuationItems)==null?0:n.length)?q.continuationItems[0]:{})}else this.set("data."+G,q.continuationItems?q.continuationItems:[]);this.continuationIsReloading=
!1;_.jP(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.N.handleShowReloadUiCommand=function(M){M=_.C(M,rQJ);var q;((q=this.data)==null?0:q.targetId)&&(M==null?0:M.targetId)&&M.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
$l.prototype.observeData=$l.prototype.observeData;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],$l.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],$l.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$l.prototype,"data",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],$l.prototype,"continuationIsReloading",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$l.prototype,"observeData",null);_.T([_.pT()],$l);_.sG=[_.Sp.YtComponentBehavior,_.wg.YtActionHandlerBehavior,$l.prototype];_.M4={};_.M4.YtNextContinuationBehavior=[_.qt.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",_.qs(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.qs(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(M,q){M.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,q,{}):(M={locationRetrieved:function(G){this.makeNextContinuationRequest_(G,q,{})}.bind(this)},_.jP(this.hostElement,"yt-retrieve-location",M))},
makeNextContinuationRequest_:function(M,q,G){_.lO("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();M=q(M);var K;this.canUseContextualNetworkManager_()&&(K=this.getNetworkManager());K||(K=_.AL().resolve(_.L_));q=_.QZ.instance;if(_.R9("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&q){K=_.m4([M.startsWith("/")?M.substr(1):M]);var n,E;G=_.e6(q,{},K,G==null?void 0:(n=G.context)==null?void 0:(E=n.clickTracking)==null?void 0:E.clickTrackingParams).then(function(p){return{response:p}})}else G=
this.nextContinuation.usePost?K.postData(M,G):K.fetchData(M);
G.then(this.updateNextContinuationData_.bind(this,M));this.pendingContinuationRequest_=G;this.startListeningForNavigate_()},
updateNextContinuationData_:function(M,q){var G=this;_.lO("ncl");this.pendingContinuationRequest_=void 0;if(q){var K={};this.nextContinuation&&(K=this.nextContinuation);if(q.response&&q.response.continuationContents&&q.response.continuationContents[K.continuationType]){M=q.response.continuationContents[K.continuationType];var n=K.header||"data.header",E=M[K.responseHeaderKey||"header"];E&&this.set(n,E);n=K.contentsArray||"data.contents";E=this.getContents_(M,K.responseContentsKey||"contents")||[];
this.pathExists_(n)?(E.unshift(n),this.push.apply(this,E)):this.set(n,E);E&&(cwy(_.nl(),q.response,this.hostElement,function(p){_.VW(G.hostElement,"yt-store-grafted-ve-action",[p])}),_.jP(this.hostElement,"yt-next-continuation-data-updated",{continuationData:q,
page:this,contentsArray:n}));this.set(K.continuationsArray||"data.continuations",M[K.responseContinuationsKey||"continuations"]||[])}else q.reload?_.j1(new _.bj("Reloading from continuation is unsupported")):q.responseContext&&q.responseContext.errors||(delete q.xsrf_token,delete q.timing,delete q.endpoint,delete q.csn,q.responseContext&&delete q.responseContext.serviceTrackingParams,n={request:_.Ex(M,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(q).sort()},q.response&&(n.responseContentKeys=
Object.keys(q.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(n.continuationType=this.nextContinuation.continuationType.substr(0,256)),q=new _.bj("Malformed continuation",n),M.indexOf("/comment_service_ajax")==0?_.j1(q):_.T6(q)),this.set(K.continuationsArray||"data.continuations",[])}else _.rM(new _.bj("Missing continuation response",M))},
getContents_:function(M,q){q=q.split(".");return _.xP.getValueByKeys(M,q)},
pathExists_:function(M){var q=this;M=M.toString().split(".");for(var G=0;G<M.length;G++)if(q=q[M[G]],q===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var V2S;var Rdl;var q4=function(){var M=_.Q.apply(this,arguments)||this;M.triggered_=!1;return M};
_.l(q4,_.Q);_.N=q4.prototype;_.N.attached=function(){this.maybeTriggerAutoload()};
_.N.detached=function(){this.hasBeenTriggered_=!1};
_.N.onPrescanVisible=function(){this.onShow()};
_.N.onShow=function(){this.showButton||this.trigger()};
_.N.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.jP(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.N.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.N.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.N.computeLabel_=function(M,q){return M===void 0?null:M.label||!q?M.label:this.showMoreText_};
_.N.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.N.getContinuationUrl=function(M){var q={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(q.itct=this.data.clickTrackingParams);return _.Nz(M,q)};
_.N.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
q4.prototype.showButtonChanged_=q4.prototype.showButtonChanged_;q4.prototype.observeData_=q4.prototype.observeData_;_.T([_.P(_.jp.YtVisibilityBehavior),_.r("design:type",Object)],q4.prototype,"ytVisibilityBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],q4.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],q4.prototype,"showButton",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],q4.prototype,"showIcon",void 0);_.T([_.B({computed:"computeLabel_(data, showButton)"}),_.r("design:type",Object)],q4.prototype,"label",void 0);_.T([_.B({value:_.bc(_.Ge("SHOW_MORE",void 0,"Show More"))}),_.r("design:type",Object)],q4.prototype,"showMoreText_",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],q4.prototype,"spinnerActive_",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],q4.prototype,"hasBeenTriggered_",void 0);
_.T([_.B({value:void 0}),_.r("design:type",String)],q4.prototype,"observeVisibleOption",void 0);_.T([_.B({value:void 0}),_.r("design:type",String)],q4.prototype,"observeHiddenOption",void 0);_.T([_.B({value:"observe_once"}),_.r("design:type",Object)],q4.prototype,"observePrescanOption",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],q4.prototype,"observeData_",null);
_.T([_.KT("showButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],q4.prototype,"showButtonChanged_",null);_.T([_.aO({is:"yt-next-continuation",disableElementRegistration:!0})],q4);
_.z(q4,"yt-next-continuation",function(){if(Rdl===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;V2S===void 0&&(V2S=document.createElement("template"));var K=V2S;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Rdl=M}M=Rdl;return M},{mode:2});var fKx;var FDl;var G4=function(){return _.Q.apply(this,arguments)||this};
_.l(G4,_.Q);G4.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],G4.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],G4.prototype,"data",void 0);_.T([_.aO({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],G4);
_.z(G4,"yt-music-pass-small-feature-info-renderer",function(){if(FDl===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;fKx===void 0&&(fKx=document.createElement("template"));var K=fKx;G.call(q,K.content.cloneNode(!0),M.content.firstChild);FDl=M}M=FDl;return M},{mode:2});_.hC("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var KJ=function(){var M=_.Q.apply(this,arguments)||this;M.isCollapsible=!1;M.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return M};
_.l(KJ,_.Q);_.N=KJ.prototype;_.N.computeIsCollapsible=function(M){return!!(((M==null?0:M.showMoreText)||(M==null?0:M.visibleRowCount))&&(M==null?0:M.isCollapsible))};
_.N.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"}}}};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.N.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.N.onIronResize=function(){var M=this;_.B4(this,"updateGridInitItems",function(){M.maybeUpdateInitialItemsDisplayed()})};
_.N.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var M=this.getVisibleWidth();M!==0&&(M=Math.floor(M/214)*(this.data.visibleRowCount||2),M!==this.initialCount&&(this.initialCount=M,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.N.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.N.computeExpandVisible=function(M,q,G,K){return M&&q&&G&&!!K&&!!K.showMoreText};
_.N.computeShowMoreButton=function(M){return{text:M,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.N.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.N.initCollapsed=function(){var M=this;this.ytLazyListBehavior.canShowMore=!1;var q;(this.collapsed=!((q=this.data)==null||!q.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.yb(this,function(){_.Rf(M.hostElement,"yt-refit-popups-action")})};
_.N.fillRestIfNotCollapsible=function(){var M=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!M||this.ytLazyListBehavior.fillRemainingListItems()};
_.N.computeViewAllHidden=function(M,q){return M||!q.viewAllEndpoint};
KJ.prototype.fillRestIfNotCollapsible=KJ.prototype.fillRestIfNotCollapsible;KJ.prototype.initCollapsed=KJ.prototype.initCollapsed;KJ.prototype.onIronResize=KJ.prototype.onIronResize;KJ.prototype.persistentGuideChanged=KJ.prototype.persistentGuideChanged;_.T([_.P(_.uz),_.r("design:type",Object)],KJ.prototype,"ironResizableBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],KJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],KJ.prototype,"ytLazyListBehavior",void 0);_.T([_.P(_.M4.YtNextContinuationBehavior),_.r("design:type",Object)],KJ.prototype,"ytNextContinuationBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],KJ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.P(_.sG),_.r("design:type",Object)],KJ.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],KJ.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],KJ.prototype,"collapsed",void 0);_.T([_.B(),_.r("design:type",Number)],KJ.prototype,"initialCount",void 0);_.T([_.B({computed:"computeShowMoreButton(data.showMoreText)"}),_.r("design:type",Object)],KJ.prototype,"showMoreButton",void 0);
_.T([_.B({computed:"computeIsCollapsible(data)"}),_.r("design:type",Object)],KJ.prototype,"isCollapsible",void 0);_.T([_.ET("#items"),_.r("design:type",HTMLElement)],KJ.prototype,"items",void 0);_.T([_.yO("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KJ.prototype,"persistentGuideChanged",null);_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KJ.prototype,"onIronResize",null);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KJ.prototype,"initCollapsed",null);_.T([_.yO("canShowMore"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],KJ.prototype,"fillRestIfNotCollapsible",null);_.T([_.b({is:"ytd-grid-renderer",disableElementRegistration:!0})],KJ);
_.z(KJ,"ytd-grid-renderer",function(){if(Uk9!==void 0)return Uk9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Uk9=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var nJ=function(){return _.Q.apply(this,arguments)||this};
_.l(nJ,_.Q);
nJ.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"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],nJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],nJ.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],nJ.prototype,"data",void 0);_.T([_.b({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],nJ);
_.z(nJ,"ytd-carousel-ad-renderer",function(){if(Dkv!==void 0)return Dkv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Dkv=M},{mode:1});var H6P;var EG=function(){return _.Q.apply(this,arguments)||this};
_.l(EG,_.Q);_.N=EG.prototype;_.N.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"}}}};
_.N.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,EG.JSC$15495_CLICK_LOCATION_ID_MAP))};
_.N.onSitelinkTap=function(M){M.stopPropagation();var q,G,K=M==null?void 0:(q=M.model)==null?void 0:(G=q.item)==null?void 0:G.onTap;K&&this.ytSparklesClickLocationBehavior.handleClick(K,M,!1)};
_.N.onTap=function(M){var q=this.data&&this.data.content&&this.data.content.navigationEndpoint;q&&this.ytSparklesClickLocationBehavior.handleClick(q,M,!1)};
_.N.sendImpression=function(){if(this.data&&this.data.content)for(var M=_.k(this.data.content.impressionEndpoints||[]),q=M.next();!q.done;q=M.next()){q=_.k(q.value.loggingUrls||[]);for(var G=q.next();!G.done;G=q.next())G=G.value,G.baseUrl&&q8(G.baseUrl,G.attributionSrcMode)}};
EG.prototype.onTap=EG.prototype.onTap;EG.prototype.dataChanged=EG.prototype.dataChanged;EG.JSC$15495_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"]]);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],EG.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],EG.prototype,"data",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],EG.prototype,"dataChanged",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],EG.prototype,"onTap",null);_.T([_.b({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],EG);
_.z(EG,"ytd-promoted-sparkles-text-search-renderer",function(){if(H6P!==void 0)return H6P;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return H6P=M},{mode:1});var edp;var N4=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.l(N4,_.Q);_.N=N4.prototype;_.N.created=function(){this.activeView=new Wl(this.hostElement)};
_.N.configureRendererStamper=function(){return{"data.menu":{id:_.w("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]]"}}}}}};
_.N.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.N.computeHasAdBadge=function(M){return!(M==null||!M.adBadge)};
_.N.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",N4.JSC$15504_DEFAULT_AD_BADGE_RENDERER),_.HE(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&Aa(this.activeView,this.data.activeView),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,N4.JSC$15504_CLICK_LOCATION_ID_MAP))};
_.N.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var M;(((M=this.data)==null?void 0:M.impressionCommands)||[]).forEach(function(q){q=_.k(q.loggingUrls||[]);for(var G=q.next();!G.done;G=q.next())G=G.value,G.baseUrl&&q8(G.baseUrl,G.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.N.onTap=function(M){var q,G=(q=this.data)==null?void 0:q.navigationEndpoint,K;(q=(K=this.data)==null?void 0:K.thumbnailNavigationEndpoint)&&_.zM(_.Zx(M),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(q,M,!1):G&&this.ytSparklesClickLocationBehavior.handleClick(G,M,!1)};
_.N.handleMuteAd=function(){this.collapsed=!0};
_.N.attached=function(){var M=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dn(M.activeView)})};
_.N.detached=function(){_.w("stop_av_measurement_on_detach")&&dn(this.activeView)};
_.Yd.Object.defineProperties(N4.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var M;return!(((M=this.data)==null?void 0:M.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var M;return!(((M=this.data)==null?void 0:M.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.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}}});
N4.prototype.dataChanged=N4.prototype.dataChanged;
N4.JSC$15504_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"]]);
N4.JSC$15504_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Ge("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],N4.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],N4.prototype,"actionHandlerBehavior",void 0);
_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],N4.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],N4.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],N4.prototype,"collapsed",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],N4.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],N4.prototype,"biggerThumbsStyle",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.r("design:type",Boolean)],N4.prototype,"fixAlignmentSmallScreens",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs_square")}}),
_.r("design:type",Boolean)],N4.prototype,"useBiggerThumbsSquare",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.mediaHoverOverlay"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],N4.prototype,"hideHoverOverlay",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.promotedSparklesWebStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],N4.prototype,"webSearchLayout",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],N4.prototype,"webSearchLayoutLandscape",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],N4.prototype,"webSearchLayoutSquare",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data.promotedSparklesWebStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],N4.prototype,"sparklesCtaNoBackground",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.actionButton"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],N4.prototype,"hideActionButton",null);_.T([_.B({computed:"computeButtonOverride(uiUpdate)"}),_.r("design:type",Object)],N4.prototype,"buttonOverride",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.r("design:type",Boolean)],N4.prototype,"hasNewAdBadge",void 0);_.T([_.c("data.promotedSparklesWebStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],N4.prototype,"useRoundedBadge",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],N4.prototype,"dataChanged",null);_.T([_.b({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],N4);
_.z(N4,"ytd-promoted-sparkles-web-renderer",function(){if(edp!==void 0)return edp;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return edp=M},{mode:1});var $kl;var kh=function(){var M=_.Q.apply(this,arguments)||this;M.isInlinePreviewTriggered=!1;M.enableMonoStyle=_.w("enable_default_mono_cta_migration_web_client");return M};
_.l(kh,_.Q);_.N=kh.prototype;_.N.created=function(){this.activeView=new Wl(this.hostElement)};
_.N.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]]"}}}}}};
_.N.computeShowCta=function(M){return!(M==null||!M.ctaRenderer)};
_.N.onCtaClick=function(){var M,q,G,K=(M=this.data)==null?void 0:(q=M.ctaRenderer)==null?void 0:(G=q.buttonRenderer)==null?void 0:G.command;K&&this.ytComponentBehavior.resolveCommand(K)};
_.N.onWatchButtonClick=function(){var M,q,G,K=(M=this.data)==null?void 0:(q=M.watchButtonRenderer)==null?void 0:(G=q.buttonRenderer)==null?void 0:G.command;K&&this.ytComponentBehavior.resolveCommand(K)};
_.N.onTap=function(){};
_.N.dataChanged=function(){if(this.data){var M;_.w("enable_inline_muted_playback_on_web_search")&&((M=this.data)==null?0:M.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();this.data.adBadge||this.set("data.adBadge",kh.JSC$15508_DEFAULT_AD_BADGE_RENDERER);this.data.activeView&&Aa(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",kh.JSC$15508_DEFAULT_CLICK_LOCATION_BEHAVIOR,kh.JSC$15508_CLICK_LOCATION_ID_MAP);this.thumbnail&&
(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"));var q;if(((q=this.data)==null?0:q.forceImpAutoplay)&&_.w("enable_force_imp_autoplay_on_desktop_search")){var G;(G=this.JSC$15509_inlinePreviewHoverListener)==null||Y8s(G)}}};
_.N.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var M=_.k(this.data.impressionUrls),q=M.next();!q.done;q=M.next())q=q.value,ST$(q,r_Y(q));this.data.impressionsFired=!0}};
_.N.maybeComputeHref=function(){return null};
_.N.computeIsShortDR=function(M){return!(M==null||!M.watchButtonRenderer)&&!(M==null||!M.ctaRenderer)&&!!this.enableShortDR};
_.N.computeIsNewUiOrShortDr=function(M){return!!this.enableUiUpdate||this.computeIsShortDR(M)};
_.N.computeIsNewUiAndNotShortDr=function(M){return!!this.enableUiUpdate&&!this.computeIsShortDR(M)};
_.N.computeHideAvatar=function(M){return!((M==null?0:M.channelThumbnail)&&this.computeIsNewUiOrShortDr(M))};
_.N.onClick=function(M){var q,G=(q=this.data)==null?void 0:q.navigationEndpoint;if(this.enableShortDR&&G&&(_.C(G,_.Jl)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(G,M,!!_.C(G,_.Jl)),M.stopPropagation();else if(G&&_.C(G,_.Jl))this.ytSparklesClickLocationBehavior.handleClick(G,M,!0),M.stopPropagation();else if(G){var K,n;((K=this.data)==null?0:K.navigationEndpoint)&&((n=this.data)==null?0:n.adPlaybackContextParams)&&(q=this.data.navigationEndpoint,M=this.data.adPlaybackContextParams,
q.commandMetadata&&_.C(q.commandMetadata,_.Mg)&&_.C(q.commandMetadata,_.Mg).url&&(q=_.nD(_.C(q.commandMetadata,_.Mg).url).adurl)&&_.rls(q)&&_.xD(_.BF(q),{encoded_ad_playback_context:M}));this.ytComponentBehavior.resolveCommand(G)}};
_.N.computeButtonOverride=function(M){if(this.computeIsNewUiOrShortDr(M))return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal",iconPosition:"none"}};
_.N.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.N.onThumbnailContainerClick=function(M){this.onClick(M)};
_.N.computeThumbnailWidth=function(M,q){return M?q==="MASSIVE"?600:q==="BIG"?500:q==="MEDIUM"?450:420:360};
_.N.attached=function(){var M=this,q;_.w("enable_inline_muted_playback_on_web_search")&&((q=this.data)==null?0:q.inlinePlaybackEndpoint)&&this.updateInlinePreviewHoverListeners();_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dn(M.activeView)})};
_.N.detached=function(){var M;_.w("enable_inline_muted_playback_on_web_search")&&((M=this.data)==null?0:M.inlinePlaybackEndpoint)&&this.clearInlinePreviewHoverListeners();_.w("stop_av_measurement_on_detach")&&dn(this.activeView)};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15509_inlinePreviewHoverListener=oZ({mediaRenderer:this,lockupElement:this.mainContainer,thumbnailElement:this.thumbnail,videoPreviewOpts:YRM})};
_.N.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15509_inlinePreviewHoverListener)==null||JY(M)};
kh.prototype.dataChanged=kh.prototype.dataChanged;kh.prototype.onTap=kh.prototype.onTap;kh.JSC$15508_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Ge("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};kh.JSC$15508_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
kh.JSC$15508_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"}];_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],kh.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],kh.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],kh.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.ET("#main-container"),_.r("design:type",HTMLElement)],kh.prototype,"mainContainer",void 0);
_.T([_.B(),_.r("design:type",Object)],kh.prototype,"isInlinePreviewTriggered",void 0);_.T([_.B(),_.r("design:type",Object)],kh.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],kh.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_video_display_compact_button_group_for_desktop_search")}}),
_.r("design:type",Boolean)],kh.prototype,"enableShortDR",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_vac_ui_update_for_desktop_search")}}),
_.r("design:type",Boolean)],kh.prototype,"enableUiUpdate",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],kh.prototype,"biggerThumbsStyle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.r("design:type",Boolean)],kh.prototype,"showCta",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.r("design:type",Boolean)],kh.prototype,"isShortDr",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.r("design:type",Boolean)],kh.prototype,"isShortDrOrNewUi",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.r("design:type",Boolean)],kh.prototype,"isNewUiAndNotShortDr",void 0);_.T([_.B({computed:"computeButtonOverride(data)"}),_.r("design:type",Object)],kh.prototype,"buttonOverride",void 0);_.T([_.B({computed:"computeSecondaryButtonOverride(data)"}),_.r("design:type",Object)],kh.prototype,"secondaryButtonOverride",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],kh.prototype,"enableMonoStyle",void 0);
_.T([_.ET("ytd-thumbnail"),_.r("design:type",HTMLElement)],kh.prototype,"thumbnail",void 0);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kh.prototype,"onTap",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kh.prototype,"dataChanged",null);_.T([_.b({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],kh);
_.z(kh,"ytd-promoted-video-renderer",function(){if($kl!==void 0)return $kl;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return $kl=M},{mode:1});var smS;var pJ=function(){var M=_.Q.apply(this,arguments)||this;M.useRoundedBadge=!0;M.sitelinkIds=[];return M};
_.l(pJ,_.Q);_.N=pJ.prototype;
_.N.configureRendererStamper=function(){return{"data.menu":{id:_.w("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]]"}}}}}};
_.N.dataChanged=function(){var M;(M=this.data)!=null&&M.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,pJ.JSC$15514_CLICK_LOCATION_ID_MAP)};
_.N.onTap=function(M){var q,G=(q=this.data)==null?void 0:q.navigationCommand;G&&!_.zM(_.Zx(M),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(G,M,!1)};
_.N.onSitelinkTap=function(M){var q,G,K=M==null?void 0:(q=M.model)==null?void 0:(G=q.item)==null?void 0:G.onTap;K&&this.ytSparklesClickLocationBehavior.handleClick(K,M,!1)};
_.N.configureSitelinkClickTargets=function(){var M=this,q,G,K=(q=this.data)==null?void 0:(G=q.clickLocationTargets)==null?void 0:G.find(function(n){return n.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
K&&_.f_(this.hostElement).querySelectorAll(".sitelink").forEach(function(n){_.HE(n,"yt-simple-endpoint",!0);M.sitelinkIds.push(n.id);var E,p;(E=M.ytSparklesClickLocationBehavior)==null||(p=E.clickTargetMap)==null||p.set(n.id,K)})};
_.N.sendImpression=function(){var M,q,G=((M=this.data)==null?void 0:(q=M.impressionCommand)==null?void 0:q.loggingUrls)||[];M=_.k(G);for(q=M.next();!q.done;q=M.next())q=q.value,q.baseUrl&&q8(q.baseUrl,q.attributionSrcMode)};
_.N.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Yd.Object.defineProperties(pJ.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
pJ.prototype.onTap=pJ.prototype.onTap;pJ.prototype.dataChanged=pJ.prototype.dataChanged;pJ.JSC$15514_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"]]);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],pJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],pJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],pJ.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],pJ.prototype,"showFavicon",null);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],pJ.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],pJ.prototype,"biggerThumbsStyle",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.r("design:type",Boolean)],pJ.prototype,"enableThumbnailScalingFix",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pJ.prototype,"dataChanged",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],pJ.prototype,"onTap",null);_.T([_.b({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],pJ);
_.z(pJ,"ytd-text-image-no-button-layout-renderer",function(){if(smS!==void 0)return smS;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return smS=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var MFS;var yg=function(){var M=_.Q.apply(this,arguments)||this;M.isInlinePlaybackState=!1;M.uiUpdate=_.w("web_modern_buttons");M.hideCta=_.w("hide_cta_for_home_web_video_ads");M.noBottomMargin=!1;M.animateInTimeStamp=_.tL("hide_cta_for_home_web_video_ads_animate_in_time");M.animateInCta=!1;M.isHovered=!1;M.enableMonoStyle=_.w("enable_default_mono_cta_migration_web_client");M.player=null;M.JSC$15521_playerEvents=new Map;M.JSC$15521_preventProgressSaveTimer=null;M.delayedCtaJobId=null;return M};
_.l(yg,_.Q);_.N=yg.prototype;_.N.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]]"}}}}}};
_.N.attached=function(){this.JSC$15521_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$15521_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.w("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.N.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$15521_playerEvents)};
_.N.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",yg.JSC$15520_DEFAULT_CLICK_LOCATION_BEHAVIOR,yg.JSC$15520_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.N.hoverChanged=function(){var M=this;this.delayedCtaJobId&&(_.r8.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.w("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.WO(_.r8,function(){M.buttonContainer.classList.add("show-delayed-buttons")},_.tL("delayed_cta_on_web_delay_milliseconds")))};
_.N.setPlayer=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return(q=_.Rf(M.hostElement,"yt-get-inline-preview-player-action"))&&q[0]?G.yield(q[0].getPlayerPromise(),3):G.jumpTo(0);M.player=G.yieldResult;M.ytPlayerListenerBehavior.listenToPlayerEvents(M.player,M.JSC$15521_playerEvents);_.gL(G)})};
_.N.onPlaybackStart=function(){var M=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$15521_preventProgressSaveTimer=_.RM(_.r8,function(){M.JSC$15521_preventProgressSaveTimer=null},1E4))};
_.N.onVideoProgress=function(M){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&M>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.N.resetPreventProgressSaveTimer=function(){_.r8.cancelJob(this.JSC$15521_preventProgressSaveTimer);this.JSC$15521_preventProgressSaveTimer=null};
_.N.getSimpleString=function(M){return _.UX(M)};
_.N.onClick=function(M){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var q,G=(q=this.data)==null?void 0:q.navigationEndpoint,K;q=(K=this.data)==null?void 0:K.channelEndpoint;var n,E;((E=_.C((n=this.data)==null?void 0:n.adCtaButton,_.f1))==null?0:E.command)&&_.zM(_.Zx(M),this.hostElement,["call-to-action"])||(q&&_.zM(_.Zx(M),this.hostElement,["channel-thumbnail-container","short-byline-text"])?this.ytSparklesClickLocationBehavior.handleClick(q,M,!1):!_.zM(_.Zx(M),this.hostElement,
["secondary-button"])&&G&&(_.w("enable_short_dr_for_desktop_launchable")?(K=!!_.C(G,_.Jl),this.isInlinePlaybackState&&K&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(G,M,K)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(G,M,!0))))}};
_.N.updateWatchEndpointStartTime=function(){var M,q;this.player&&((M=this.data)==null?0:M.inlinePlaybackEndpoint)&&((q=this.data)==null?0:q.navigationEndpoint)&&!this.JSC$15521_preventProgressSaveTimer&&(M=Math.floor(this.player.getCurrentTime()),_.C(this.data.navigationEndpoint,_.Jl).startTimeSeconds=M,_.C(this.data.inlinePlaybackEndpoint,_.Jl).startTimeSeconds=M)};
_.N.computeButtonOverride=function(){if(this.uiUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"filled":"tonal"}};
_.N.computeSecondaryButtonOverride=function(){return{style:this.enableMonoStyle?"mono":"call-to-action",type:this.enableMonoStyle?"tonal":"outline",iconPosition:"none"}};
_.Yd.Object.defineProperties(yg.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.w("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null||!M.watchButton)&&!((q=this.data)==null||!q.adCtaButton)}}});
yg.prototype.hoverChanged=yg.prototype.hoverChanged;yg.prototype.dataChanged=yg.prototype.dataChanged;
yg.JSC$15520_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"]]);
yg.JSC$15520_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"}];
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],yg.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],yg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],yg.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],yg.prototype,"ytSparklesClickLocationBehavior",void 0);
_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],yg.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yg.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yg.prototype,"isInlinePlaybackState",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],yg.prototype,"miniMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yg.prototype,"uiUpdate",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yg.prototype,"hideCta",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yg.prototype,"noBottomMargin",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yg.prototype,"animateInCta",void 0);_.T([_.B({computed:"computeButtonOverride(uiUpdate)"}),_.r("design:type",Object)],yg.prototype,"buttonOverride",void 0);
_.T([_.B({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.r("design:type",Object)],yg.prototype,"secondaryButtonOverride",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yg.prototype,"isHovered",void 0);_.T([_.ET("#button-container"),_.r("design:type",HTMLElement)],yg.prototype,"buttonContainer",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],yg.prototype,"typographyBump",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("typographyBump"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],yg.prototype,"typographyBumpV2",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yg.prototype,"enableMonoStyle",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yg.prototype,"dataChanged",null);
_.T([_.KT("isHovered"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yg.prototype,"hoverChanged",null);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],yg.prototype,"isButtonGroup",null);_.T([_.b({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],yg);
_.z(yg,"ytd-ad-inline-playback-meta-block",function(){if(MFS!==void 0)return MFS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return MFS=M},{mode:_.VO("kevlar_poly_si_batch_j065")?1:2});var qyB;var LJ=function(){var M=_.Q.apply(this,arguments)||this;M.noBottomMargin=!1;M.isInlinePreviewTriggered=!1;M.JSC$15526_activeViewMeasurementDataResolver=_.u8();return M};
_.l(LJ,_.Q);_.N=LJ.prototype;_.N.created=function(){this.activeView=new Wl(this.hostElement)};
_.N.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.attached=function(){var M=this;this.updateInlinePreviewHoverListeners();this.JSC$15526_activeViewMeasurementDataResolver.promise.then(function(q){Aa(M.activeView,q)});
_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dn(M.activeView)})};
_.N.detached=function(){this.clearInlinePreviewHoverListeners();_.w("stop_av_measurement_on_detach")&&dn(this.activeView)};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15526_inlinePreviewHoverListener=oZ({mediaRenderer:this,lockupElement:this.JSC$15526_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:YRM})};
_.N.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15526_inlinePreviewHoverListener)==null||JY(M)};
_.N.onDataChanged=function(){var M;((M=this.data)==null?0:M.activeView)&&this.JSC$15526_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",LJ.JSC$15525_DEFAULT_CLICK_LOCATION_BEHAVIOR,LJ.JSC$15525_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"));var q;if((q=this.data)==
null?0:q.forceImpAutoplay){var G;(G=this.JSC$15526_inlinePreviewHoverListener)==null||Y8s(G)}};
_.N.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.N.onThumbnailContainerClick=function(M){if(this.data&&this.data.navigationEndpoint){var q,G=(q=this.data)==null?void 0:q.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(G,M,!!_.C(G,_.Jl));M.stopPropagation()}};
_.N.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.N.impressionLog=function(){var M=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var q,G,K=(G=_.C((q=this.data)==null?void 0:q.onImpression,_.eP))==null?void 0:G.commands;K&&(K.forEach(function(n){n.clickTrackingParams&&delete n.clickTrackingParams;M.ytComponentBehavior.resolveCommand(n)}),this.data.impressionsFired=!0)}};
_.Yd.Object.defineProperties(LJ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$15526_inlinePreviewHoverListener)==null?0:jf(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
LJ.prototype.onTypographyBumpChanged=LJ.prototype.onTypographyBumpChanged;LJ.prototype.onDataChanged=LJ.prototype.onDataChanged;LJ.JSC$15525_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);LJ.JSC$15525_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"}];
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],LJ.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],LJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],LJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],LJ.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],LJ.prototype,"ytdLockupBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],LJ.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],LJ.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],LJ.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],LJ.prototype,"noBottomMargin",void 0);_.T([_.B(),_.r("design:type",Object)],LJ.prototype,"isInlinePreviewTriggered",void 0);
_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],LJ.prototype,"miniMode",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],LJ.prototype,"typographyBump",void 0);_.T([_.ET("ytd-thumbnail"),_.r("design:type",HTMLElement)],LJ.prototype,"thumbnail",void 0);_.T([_.ET("#dismissible"),_.r("design:type",HTMLElement)],LJ.prototype,"JSC$15526_dismissibleMedia",void 0);
_.T([_.ET("ytd-ad-inline-playback-meta-block"),_.r("design:type",HTMLElement)],LJ.prototype,"adInlinePlaybackMetaBlock",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LJ.prototype,"onDataChanged",null);_.T([_.yO("typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LJ.prototype,"onTypographyBumpChanged",null);
_.T([_.c("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],LJ.prototype,"isHovered",null);_.T([_.b({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],LJ);
_.z(LJ,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(qyB!==void 0)return qyB;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qyB=M},{mode:1});var GaJ;var Yh=function(){var M=_.Q.apply(this,arguments)||this;M.isInlinePreviewTriggered=!1;M.JSC$15529_activeViewMeasurementDataResolver=_.u8();return M};
_.l(Yh,_.Q);_.N=Yh.prototype;_.N.created=function(){this.activeView=new Wl(this.hostElement)};
_.N.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.attached=function(){var M=this;this.updateInlinePreviewHoverListeners();this.JSC$15529_activeViewMeasurementDataResolver.promise.then(function(q){Aa(M.activeView,q)})};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$15529_inlinePreviewHoverListener=oZ({mediaRenderer:this,lockupElement:this.JSC$15529_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:YRM})};
_.N.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$15529_inlinePreviewHoverListener)==null||JY(M)};
_.N.onDataChanged=function(){var M;((M=this.data)==null?0:M.activeView)&&this.JSC$15529_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",Yh.JSC$15528_DEFAULT_CLICK_LOCATION_BEHAVIOR,Yh.JSC$15528_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"))};
_.N.onThumbnailContainerClick=function(M){if(this.data&&this.data.navigationEndpoint){var q,G=(q=this.data)==null?void 0:q.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(G,M,!0);M.stopPropagation()}};
_.N.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.N.impressionLog=function(){var M=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var q,G,K=(G=_.C((q=this.data)==null?void 0:q.onImpression,_.eP))==null?void 0:G.commands;K&&(K.forEach(function(n){n.clickTrackingParams&&delete n.clickTrackingParams;_.AL().resolve(_.vR).resolveCommand(n,{form:{element:M.hostElement}})}),this.data.impressionsFired=!0)}};
_.Yd.Object.defineProperties(Yh.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$15529_inlinePreviewHoverListener)==null?0:jf(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Yh.prototype.onDataChanged=Yh.prototype.onDataChanged;Yh.JSC$15528_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);Yh.JSC$15528_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"}];_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Yh.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Yh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],Yh.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],Yh.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Yh.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],Yh.prototype,"ytSparklesClickLocationBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Yh.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Yh.prototype,"isInlinePreviewTriggered",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],Yh.prototype,"miniMode",void 0);_.T([_.ET("ytd-thumbnail"),_.r("design:type",HTMLElement)],Yh.prototype,"thumbnail",void 0);_.T([_.ET("#dismissible"),_.r("design:type",HTMLElement)],Yh.prototype,"JSC$15529_dismissibleMedia",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Yh.prototype,"onDataChanged",null);_.T([_.c("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Yh.prototype,"isHovered",null);_.T([_.b({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],Yh);
_.z(Yh,"ytd-video-display-full-buttoned-renderer",function(){if(GaJ!==void 0)return GaJ;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return GaJ=M},{mode:1});var xe=function(M,q,G,K){K=K===void 0?!1:K;_.qD.call(this,M);this.adsClientErrorMessage=G;this.aggressivelySample=K;this.args=[];q&&this.args.push(q)};
_.l(xe,_.qD);var bh=function(M,q,G,K){K=K===void 0?!1:K;_.qD.call(this,M);this.adsClientErrorMessage=G;this.aggressivelySample=K;this.args=[];q&&this.args.push(q)};
_.l(bh,_.qD);var K1J=function(M){_.uI.call(this);var q=this;this.initializationFunction=M;this.instance=null;this.addOnDisposeCallback(function(){_.ka(q.instance);q.instance=null})};
_.l(K1J,_.uI);K1J.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.BO("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var ZZ$=function(){var M=new Map;[].forEach(function(q){M.set(q.JSC$30762_getType(),q)});
this.getters=M};new Promise(function(){});var QNy=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"]]),gZ$=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"}]]),nTM=function(M){this.experimentApiProvider=M;M=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=M<.1};var W9=function(M,q,G,K){_.uI.call(this);this.adsControlFlowEventListeners=q;this.adEventLogger=G;this.experimentApiProvider=K;this.adsControlFlowManagerHelper=M(this,this,this,this,this);_.oE(this,this.adsControlFlowManagerHelper);M=_.k(q);for(q=M.next();!q.done;q=M.next())_.oE(this,q.value)};
_.l(W9,_.uI);var ETB=function(M,q,G,K){AJ(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",q,G,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,K);M=_.k(M.adsControlFlowEventListeners);for(K=M.next();!K.done;K=M.next())ETB(K.value,q,G)};
_.N=W9.prototype;_.N.onOpportunityProcessedExternallyManaged=function(M,q,G,K){AJ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",M,G,q,void 0,void 0,void 0,void 0,void 0,void 0,void 0,K)};
_.N.onSlotReceivedExternallyManaged=function(M,q){dX(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",M,q)};
_.N.onSlotEntered=function(M){if(v9(this.adsControlFlowManagerHelper,M)!=null){dX(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",M);this.adsControlFlowManagerHelper.onSlotEntered(M);for(var q=_.k(this.adsControlFlowEventListeners),G=q.next();!G.done;G=q.next())G.value.onSlotEntered(M);if(v9(this.adsControlFlowManagerHelper,M)!=null&&v9(this.adsControlFlowManagerHelper,M).isOccupyingSlotType()&&hJ(this.adsControlFlowManagerHelper,M)&&!NmP(this.adsControlFlowManagerHelper,M)){var K;tJ(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",M,(K=hJ(this.adsControlFlowManagerHelper,M))!=null?K:void 0);M=v9(this.adsControlFlowManagerHelper,M);M.slotLifecycleStage!=="entered"&&OG(M.slot,M.slotLifecycleStage,"enterLayoutForSlot");M.slotLifecycleStage="rendering";M.registeredLayoutRenderingAdapter.startRendering(M.layout)}}};
_.N.onSlotExited=function(M){if(v9(this.adsControlFlowManagerHelper,M)!=null){dX(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",M);this.adsControlFlowManagerHelper.onSlotExited(M);for(var q=_.k(this.adsControlFlowEventListeners),G=q.next();!G.done;G=q.next())G.value.onSlotExited(M);v9(this.adsControlFlowManagerHelper,M)!=null&&v9(this.adsControlFlowManagerHelper,M).markedForUnscheduleAfterOutboundAdapterRequests&&kad(this,M)}};
_.N.onLayoutReceivedExternallyManaged=function(M,q,G){M.managerLayer!=="core"&&tJ(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",M,q,G)};
var pVf=function(M,q,G){if(v9(M.adsControlFlowManagerHelper,q)!=null){tJ(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",q,G);M=_.k(M.adsControlFlowEventListeners);for(var K=M.next();!K.done;K=M.next())pVf(K.value,q,G)}};
W9.prototype.onLayoutExited=function(M,q,G){if(v9(this.adsControlFlowManagerHelper,M)!=null){tJ(this.adEventLogger,BGu(G),M,q);this.adsControlFlowManagerHelper.onLayoutExited(M,q);for(var K=_.k(this.adsControlFlowEventListeners),n=K.next();!n.done;n=K.next())n.value.onLayoutExited(M,q,G);(G=hJ(this.adsControlFlowManagerHelper,M))&&q.layoutId===G.layoutId&&ymx(this,M)}};
W9.prototype.disposeInternal=function(){var M=L1l(this.adsControlFlowManagerHelper);M=_.k(M);for(var q=M.next();!q.done;q=M.next())kad(this,q.value);_.uI.prototype.disposeInternal.call(this)};
var kad=function(M,q){if(v9(M.adsControlFlowManagerHelper,q)!=null)if(v9(M.adsControlFlowManagerHelper,q).JSC$30792_isSlotExitRequested()||v9(M.adsControlFlowManagerHelper,q).JSC$30792_isLayoutExitRequested())v9(M.adsControlFlowManagerHelper,q).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(v9(M.adsControlFlowManagerHelper,q).isOccupyingSlotType())v9(M.adsControlFlowManagerHelper,q).markedForUnscheduleAfterOutboundAdapterRequests=!0,ymx(M,q);else if(v9(M.adsControlFlowManagerHelper,q).JSC$30792_isSlotFillRequested())v9(M.adsControlFlowManagerHelper,
q).markedForUnscheduleAfterOutboundAdapterRequests=!0,v9(M.adsControlFlowManagerHelper,q)!=null&&(dX(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",q),q=v9(M.adsControlFlowManagerHelper,q),q.fulfillmentLifecycleStage="fill_cancel_requested",q.registeredFulfillmentAdapter.cancelSlotFilling());else{var G=hJ(M.adsControlFlowManagerHelper,q),K;M.experimentApiProvider.get();(K=_.w("h5_enable_layout_unscheduling_events"))&&(G?Yyx(M,q,G):_.BO(Error("Lh"),q,G,void 0,!1));dX(M.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",q);var n=v9(M.adsControlFlowManagerHelper,q),E=q.slotEntryTrigger,p=n.registeredSlotEntryTriggerAdapters.get(E.triggerId);p&&(p.unregisterTrigger(E),n.registeredSlotEntryTriggerAdapters.delete(E.triggerId));E=_.k(q.slotFulfillmentTriggers);for(p=E.next();!p.done;p=E.next()){p=p.value;var y=n.registeredFulfillmentTriggerAdapters.get(p.triggerId);y&&(y.unregisterTrigger(p),n.registeredFulfillmentTriggerAdapters.delete(p.triggerId))}E=_.k(q.slotExpirationTriggers);
for(p=E.next();!p.done;p=E.next())if(p=p.value,y=n.registeredExpirationTriggerAdapters.get(p.triggerId))y.unregisterTrigger(p),n.registeredExpirationTriggerAdapters.delete(p.triggerId);n.hasLayout()&&(E=n.layout,wX(n,E.layoutExitNormalTriggers),wX(n,E.layoutExitSkipTriggers),wX(n,E.layoutExitMuteTriggers),wX(n,E.layoutExitUserInputSubmittedTriggers),wX(n,E.layoutExitUserCancelledTriggers));n.registeredFulfillmentAdapter=void 0;n.registeredSlotAdapter!=null&&(n.registeredSlotAdapter.release(),n.registeredSlotAdapter=
void 0);n.registeredLayoutRenderingAdapter!=null&&(n.registeredLayoutRenderingAdapter.release(),n.registeredLayoutRenderingAdapter=void 0);n=M.adsControlFlowManagerHelper;v9(n,q)&&(n=W1d(n,q.slotType+"_"+q.slotPhysicalPosition))&&n.delete(q.slotId);dX(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",q);M=_.k(M.adsControlFlowEventListeners);for(n=M.next();!n.done;n=M.next())n=n.value,n.onSlotUnscheduled(q),G&&!K&&Yyx(n,q,G)}},Yyx=function(M,q,G){tJ(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
q,G);
tJ(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",q,G);M=_.k(M.adsControlFlowEventListeners);for(var K=M.next();!K.done;K=M.next())K=K.value,G&&Yyx(K,q,G)},ymx=function(M,q){if(v9(M.adsControlFlowManagerHelper,q)!=null&&v9(M.adsControlFlowManagerHelper,q).isOccupyingSlotType()){var G=hJ(M.adsControlFlowManagerHelper,q);
if(G&&NmP(M.adsControlFlowManagerHelper,q)){if(v9(M.adsControlFlowManagerHelper,q)!=null){var K=M.adEventLogger,n;var E=((n=gZ$.get("abandoned"))==null?void 0:n.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";tJ(K,E,q,G);M=v9(M.adsControlFlowManagerHelper,q);M.slotLifecycleStage!=="rendering"&&OG(M.slot,M.slotLifecycleStage,"exitLayout");M.slotLifecycleStage="rendering_stop_requested";M.registeredLayoutRenderingAdapter.stopRendering(G,"abandoned")}}else{dX(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
q);try{K=v9(M.adsControlFlowManagerHelper,q);if(!K)throw new bh("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");K.slotLifecycleStage!=="enter_requested"&&K.slotLifecycleStage!=="entered"&&K.slotLifecycleStage!=="rendering"&&OG(K.slot,K.slotLifecycleStage,"exitSlot");K.slotLifecycleStage="exit_requested";if(K.registeredSlotAdapter===void 0)throw K.slotLifecycleStage="scheduled",new bh("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
K.registeredSlotAdapter.exit()}catch(p){p instanceof bh&&p.adsClientErrorMessage?(AmP(M.adEventLogger,p.adsClientErrorMessage,q),_.BO(p,q,void 0,void 0,p.aggressivelySample)):(AmP(M.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",q),_.BO(p,q))}}}};var CJ=function(M,q,G,K,n,E){_.uI.call(this);this.registry=M;this.experimentApiProvider=E;this.slotMap=new Map};
_.l(CJ,_.uI);var W1d=function(M,q){return(M=M.slotMap.get(q))?M:new Map},v9=function(M,q){return W1d(M,q.slotType+"_"+q.slotPhysicalPosition).get(q.slotId)},L1l=function(M){var q=[];
M.slotMap.forEach(function(G){G=_.k(G.values());for(var K=G.next();!K.done;K=G.next())q.push(K.value.slot)});
return q};
CJ.prototype.onSlotEntered=function(M){M=v9(this,M);M.slotLifecycleStage!=="enter_requested"&&OG(M.slot,M.slotLifecycleStage,"onSlotEntered");M.slotLifecycleStage="entered"};
var NmP=function(M,q){M=v9(M,q);return M.hasLayout()&&M.isRendering()},hJ=function(M,q){(M=v9(M,q))?M.hasLayout()&&!M.layout&&_.BO("Unexpected empty layout",q):_.BO("Unexpected undefined slotState",q);
return(M==null?void 0:M.layout)||null};
CJ.prototype.onSlotExited=function(M){M=v9(this,M);M.slotLifecycleStage!=="exit_requested"&&OG(M.slot,M.slotLifecycleStage,"onSlotExited");M.slotLifecycleStage="scheduled"};
CJ.prototype.onLayoutExited=function(M,q){M=v9(this,M);M.isPrimaryLayout(q)&&(M.slotLifecycleStage!=="rendering_stop_requested"&&OG(M.slot,M.slotLifecycleStage,"onLayoutExited"),M.slotLifecycleStage="entered")};
var wX=function(M,q){q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;var K=M.registeredLayoutExitTriggerAdapters.get(G.triggerId);K&&(K.unregisterTrigger(G),M.registeredLayoutExitTriggerAdapters.delete(G.triggerId))}},OG=function(M,q,G){_.BO("Slot stage was "+q+" when calling method "+G,M)};var vTv=function(M){_.uI.call(this);this.deps=M;this.JSC$15582_adsControlFlowManager=dvx(this)};
_.l(vTv,_.uI);var dvx=function(M){var q=new W9(function(G,K,n,E){return new CJ(M.deps.registry,G,K,n,E,M.deps.experimentApiProvider)},new Set(JwD(M.deps.registry).concat(M.deps.listeners)),M.deps.adEventLogger,M.deps.experimentApiProvider);
_.oE(M,q);return q};var F3F=function(){};var hFB=function(M,q){_.uI.call(this);this.experimentApiProvider=M;this.eventLoggingSettingsProvider=q;this.eventCount=0;this.premiumAdSeenEventLogger=Hx$()()};
_.l(hFB,_.uI);hFB.prototype.logEvent=function(M){AJ(this,M)};
var dX=function(M,q,G,K){AJ(M,q,void 0,void 0,void 0,G,void 0,void 0,void 0,G.adSlotLoggingData,void 0,void 0,K)},tJ=function(M,q,G,K,n){AJ(M,q,void 0,void 0,void 0,G,K?K:void 0,void 0,void 0,G.adSlotLoggingData,K?K.adLayoutLoggingData:void 0,void 0,n);
G=_.AL().resolve(_.WR(Zb))==null?void 0:bN();q=G==null?void 0:G.adsSeenHotConfig;G=G==null?void 0:G.adsHotConfig;(q==null?0:q.logOnAdsSeen)&&(G==null?0:G.webEnablePremiumAdsSeenLogging)&&tFS(M,K?K:void 0,n)},AmP=function(M,q,G){AJ(M,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,G,void 0,void 0,void 0,G.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:q})},AJ=function(M,q,G,K,n,E,p,y,Y,A,v,h,t){t=t===void 0?0:t;
Ow9(M.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+q,"slot:",E,"layout:",p,"ping:",y,"Opportunity:",{opportunityType:G,associatedSlotId:K,slotsFromOpportunity:n,triggerBundle:Y,adSlotLoggingData:A,adLayoutLoggingData:v});try{var O=function(){M.experimentApiProvider.get();if(q!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){q||_.BO("Empty PACF event type",E,p);var a=M.eventLoggingSettingsProvider.get();var g;(g=a.alwaysIncludeDebugData)||(a.experimentApiProvider.get(),g=
!1);a=g;g={eventType:q,eventOrder:++M.eventCount};var D={};E&&(D.slotData=DWF(a,E));if(p){var J={type:p.layoutType,controlFlowManagerLayer:QNy.get(p.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};a&&(J.debugData={layoutId:p.layoutId});D.layoutData=J}y&&(D.pingData={pingDispatchStatus:y.dispatchStatus,serializedAdPingMetadata:y.ping.serializedAdPingMetadata,pingIndex:y.index});Y&&(D.triggerData=IRF(Y.trigger,Y.category));G&&(D.opportunityData=uJ$(a,G,K,n));g.adClientData=D;A&&(g.serializedSlotAdServingData=
A.serializedSlotAdServingDataEntry);v&&(g.serializedAdServingData=v.serializedAdServingDataEntry);h&&(g.errorInfo=h);_.ml("adsClientStateChange",{adsClientEvent:g})}};
t&&t>0?_.Jp(_.AM(),function(){return O()},t):O()}catch(a){Ow9(M.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.Jp(_.AM(),function(){_.BO(a instanceof Error?a:String(a),E,p,{pacf_message:"exception during pacf logging"})})}},tFS=function(M,q,G){if(q){var K=q.adLayoutLoggingData;
_.Jp(_.AM(),function(){M.premiumAdSeenEventLogger!=null&&K&&_.ml("adsSeenClientLogging",{serializedAdServingDataEntry:K.serializedAdServingDataEntry})},G!=null?G:0)}};var wVv=function(M,q){hFB.call(this,M,q)};
_.l(wVv,hFB);var C7f=function(){},Ow9=function(M,q){return _.w(q)};var oTB=function(){var M=new aEM;this.JSC$15607_adsControlFlowManager=(new vTv(M)).JSC$15582_adsControlFlowManager},aEM=function(){_.uI.call(this);
var M=this;this.experimentApiProvider=new K1J(function(){return new C7f});
var q=new K1J(function(){return new nTM(M.experimentApiProvider)});
this.adEventLogger=new wVv(this.experimentApiProvider,q);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.l(aEM,_.uI);var lEl=function(){},XV8,aR=function(){XV8||(XV8=new lEl);
return XV8},oR=function(M){if(!M.JSC$15618_externallyManagedSlotAdapterCallback){var q=(new oTB).JSC$15607_adsControlFlowManager;
M.JSC$15618_externallyManagedSlotAdapterCallback=q}return M.JSC$15618_externallyManagedSlotAdapterCallback},P7M=function(M,q,G){var K=q.opportunityType,n=Error("Mh");
if(K!==void 0){var E=oR(M);ETB(E,K,void 0,G)}else _.BO(n,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});E=[];if(q.adSlotAndLayoutMetadata!==void 0){q=_.k(q.adSlotAndLayoutMetadata);for(var p=q.next();!p.done;p=q.next()){var y=p.value;if(p=y.adSlotMetadata)if(E.push(p),M.onSlotReceivedExternallyManaged(p,G),y.adLayoutMetadata){y=_.k(y.adLayoutMetadata);for(var Y=y.next();!Y.done;Y=y.next())M.onLayoutReceivedExternallyManaged(p,Y.value,G)}else G>0&&_.BO("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
K,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else G>0&&_.BO("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+K,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else G>0&&_.BO("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+K,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(K!==void 0)M.onOpportunityProcessedExternallyManaged(K,E,void 0,G);else _.BO(n,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
lEl.prototype.onSlotReceivedExternallyManaged=function(M,q){M=U0(M);if(M instanceof bh)_.BO(M,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else oR(this).onSlotReceivedExternallyManaged(M,q)};
lEl.prototype.onLayoutReceivedExternallyManaged=function(M,q,G){M=U0(M);q=bZe(q);if(M instanceof bh)_.BO(M,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(q instanceof xe)_.BO(q,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else oR(this).onLayoutReceivedExternallyManaged(M,q,G)};
lEl.prototype.onOpportunityProcessedExternallyManaged=function(M,q,G,K){var n=[];q=_.k(q);for(var E=q.next();!E.done;E=q.next())E=U0(E.value),E instanceof bh?_.BO(E,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):n.push(E);oR(this).onOpportunityProcessedExternallyManaged(M,n,G,K)};
var iwp=function(M,q){q=U0(q);if(q instanceof bh)_.BO(q,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var G=oR(M);dX(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",q);G=_.k(G.adsControlFlowEventListeners);for(var K=G.next();!K.done;K=G.next())K=v9(K.value,q),K.slotLifecycleStage!=="not_scheduled"&&OG(K.slot,K.slotLifecycleStage,"onSlotScheduled"),K.slotLifecycleStage="scheduled";M=oR(M);dX(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",q);M=_.k(M.adsControlFlowEventListeners);
for(G=M.next();!G.done;G=M.next())G.value.onSlotEntered(q)}},cml=function(M,q){q=U0(q);
if(q instanceof bh)_.BO(q,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var G=oR(M);dX(G.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",q);G=_.k(G.adsControlFlowEventListeners);for(var K=G.next();!K.done;K=G.next())K.value.onSlotExited(q);M=oR(M);dX(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",q);M=_.k(M.adsControlFlowEventListeners);for(G=M.next();!G.done;G=M.next())G.value.onSlotUnscheduled(q)}},gTI=function(M,q,G){q=U0(q);
G=bZe(G);if(q instanceof bh)_.BO(q,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(G instanceof xe)_.BO(G,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var K=oR(M);tJ(K.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",q,G);K=_.k(K.adsControlFlowEventListeners);for(var n=K.next();!n.done;n=K.next())n.value.onLayoutScheduled(q,G);M=oR(M);tJ(M.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",q,G);M=_.k(M.adsControlFlowEventListeners);
for(K=M.next();!K.done;K=M.next())pVf(K.value,q,G)}},l9=function(M,q,G){q=U0(q);
G=bZe(G);if(q instanceof bh)_.BO(q,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(G instanceof xe)_.BO(G,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var K=oR(M);tJ(K.adEventLogger,BGu("normal"),q,G);K=_.k(K.adsControlFlowEventListeners);for(var n=K.next();!n.done;n=K.next())n.value.onLayoutExited(q,G,"normal");M=oR(M);M=_.k(M.adsControlFlowEventListeners);for(K=M.next();!K.done;K=M.next())Yyx(K.value,q,G)}};_.XM=_.U(function(M){var q=_.UT(M,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});M=Object.assign({},q);var G=q.data;q=q.customCommandResolver;var K=(delete M.data,delete M.customCommandResolver,M);M=_.d_({visibilityCallback:function(y,Y){var A,v=(A=G().interaction)==null?void 0:A.onFirstVisible;y&&(v&&_.Pb(v),K.setOnErrorHandler()&&UWi(Y))},
showOption:_.p0});q=_.Xm(function(){return G().interaction},q,function(){var y;
return(y=K.listenToTapEvent)==null?void 0:y.call(K)});
var n=_.k(_.lQ(!1,void 0,"wAC0Lc")),E=n.next().value,p=n.next().value;n=_.sq(function(y){var Y;((Y=K.setTouchEndHandler)==null?0:Y.call(K))&&!E()&&(y.currentTarget.click(),p(!0),setTimeout(function(){p(!1)},100));
return!1});
return _.W("ad-image-view-model",{class:function(){var y,Y=[((y=G().interaction)==null?0:y.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],A;((A=K.isGridViewEnabled)==null?0:A.call(K))&&Y.push("ytwAdImageViewModelHostInGridView");return Y.join(" ")},
el:_.bm(M,q),"on:touchend":n},_.W("div",{class:"ytwAdImageViewModelHostImageContainer"},_.W(_.Jj,{data:function(){var y;return{sources:G().imageSources,contentMode:(y=G().imageProperties)==null?void 0:y.contentMode}},
alt:function(){var y,Y;return((y=G().interaction)==null?void 0:(Y=y.accessibility)==null?void 0:Y.label)||""},
targetHeight:K.targetHeight,targetWidth:K.targetWidth,preserveHeight:K.preserveHeight,preserveWidth:K.preserveWidth,useWidth:K.useWidth,style:function(){var y,Y;return"vertical-align: bottom;"+(((y=G().background)==null?0:y.color)?"background-color:"+_.w2((Y=G().background)==null?void 0:Y.color)+";":"")},
className:function(){return K.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var y,Y;return(Y=(y=K.setDraggable)==null?void 0:y.call(K))!=null?Y:void 0}})))},"jc");var BmB=_.U(function(M){var q=M.data,G=M.listenToTapEvent,K=function(){};
return _.W("ad-button-hover-overlay-view-model",{"on:click":_.sq(function(n){if(_.w("enable_web_home_top_landscape_image_layout_legacy_click_command")){var E,p=(E=q().interaction)==null?void 0:E.onTap;p&&_.jP(n.currentTarget,"yt-navigate",{endpoint:_.aM(p)})}}),
class:function(){var n;return((n=q().interaction)==null?0:n.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:_.bm(_.d_({visibilityCallback:function(n){var E,p=(E=q().interaction)==null?void 0:E.onFirstVisible;n&&p&&_.Pb(p)},
showOption:_.p0}),_.Xm(function(){return q().interaction},void 0,function(){return!_.w("enable_web_home_top_landscape_image_layout_legacy_click_command")&&(G==null?void 0:G())}))},function(){return _.w("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.W(_.yu,{data:function(){return q().button}},{adButtonViewModel:function(n){return _.W(_.L0,{data:n.data,
customCommandResolver:K})}}):_.W(_.yu,{data:function(){return q().button}},{adButtonViewModel:_.L0})}())},"kc");var zS;_.S5(_.U(function(M){var q=M.data;M=_.d_({visibilityCallback:function(y,Y){if(y){var A;(y=(A=q().interaction)==null?void 0:A.onFirstVisible)&&_.Pb(y);var v;if(A=(v=q().adLayoutData)==null?void 0:v.activeViewData)mg(Y,A),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ss(Y)})}else _.w("stop_av_measurement_on_detach")&&Ss(Y)},
showOption:_.p0,hideOption:yG});var G=_.Xm(function(){return q().interaction},void 0,function(){return!0}),K=_.k(_.lQ(!1,void 0,"VNDDT")),n=K.next().value,E=K.next().value;
K=_.sq(function(){E(!0)});
var p=_.sq(function(){E(!1)});
return _.W("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:_.bm(M,jNY,G),"on:mouseenter":K,"on:mouseleave":p},_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.Kp({"max-width":function(){return _.w("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.W("div",{class:function(){var y;
a:{var Y;switch((y=_.C(q().thumbnailImage,DqI))==null?void 0:(Y=y.imageProperties)==null?void 0:Y.renderingAspect){case "RENDERING_ASPECT_SQUARE":y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":y="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}y=void 0}return y}},_.W(_.yu,{data:function(){return q().thumbnailImage}},{adImageViewModel:function(y){return _.W(_.XM,
{data:y.data,
listenToTapEvent:!0,setTouchEndHandler:_.w("enable_top_landscape_image_experiment_dom_id_web")})}})),_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.W(_.d,{cond:function(){var y,Y,A;
return(y=_.C(q().thumbnailImage,DqI))==null?void 0:(Y=y.imageProperties)==null?void 0:(A=Y.overlayIcon)==null?void 0:A.iconImage},
then:function(y){return _.W(_.Jj,{data:y,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.W("div",{class:function(){return n()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.W(_.yu,{data:function(){return q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(y){return _.W(BmB,
{data:y.data,
listenToTapEvent:!0})}}))),_.W("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.W(_.yu,{data:function(){return q().feedAdMetadata}},{feedAdMetadataViewModel:function(y){return _.W(OY,{data:y.data,
listenToTapEvent:!0,setTouchEndHandler:_.w("enable_top_landscape_image_experiment_dom_id_web")})}})))},"lc"),"compact-landscape-no-button-layout-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;M=_.d_({visibilityCallback:function(y,Y){if(y){var A;(y=(A=q().interaction)==null?void 0:A.onFirstVisible)&&_.Pb(y);var v;if(A=(v=q().adLayoutData)==null?void 0:v.activeViewData)mg(Y,A),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ss(Y)})}else _.w("stop_av_measurement_on_detach")&&Ss(Y)},
showOption:_.p0,hideOption:yG});var G=_.pp(_.o2),K=_.Xm(function(){return q().interaction}),n={},E={},p={};
return _.W("square-image-layout-view-model",{class:_.Hb("ytwSquareImageLayoutViewModelHost",(n.ytwSquareImageLayoutViewModelHostColumn=G,n)),el:_.bm(M,Vke,K)},_.W("div",{class:_.Hb("ytwSquareImageLayoutViewModelHostImage",(E.ytwSquareImageLayoutViewModelHostColumnImage=G,E))},function(){return _.W(_.yu,{data:function(){return q().adImage}},{adImageViewModel:function(y){return _.W(_.XM,{data:y.data,
isGridViewEnabled:G,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.W("div",{class:_.Hb("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(p.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=G,p))},_.W(_.yu,{data:function(){return q().feedAdMetadata}},{feedAdMetadataViewModel:OY}),function(){return _.W(_.yu,{data:function(){return q().adButton}},{adButtonViewModel:function(y){var Y={};
return _.W(_.L0,{data:y.data,className:_.Hb((Y.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,Y.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=G,Y))})}})}()))},"mc"),"square-image-layout-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=M.noBottomMargin;var K=M.typographyBump;M=_.d_({visibilityCallback:function(h,t){if(h){var O;(h=(O=q().interaction)==null?void 0:O.onFirstVisible)&&_.Pb(h);var a;if(O=(a=q().adLayoutData)==null?void 0:a.activeViewData)mg(t,O),_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&Ss(t)})}else _.w("stop_av_measurement_on_detach")&&Ss(t)},
showOption:_.p0,hideOption:yG});var n=_.Xm(function(){return q().interaction},void 0,function(){return _.w("enable_web_home_top_landscape_image_layout_level_click")}),E=function(){return q().interaction};
E!==void 0&&E!==null||_.Mz(Error("Nh"));var p=function(){var h,t,O;return(h=_.C(q().thumbnailImage,DqI))==null?void 0:(t=h.background)==null?void 0:(O=t.backgroundImageSource)==null?void 0:O.imageSources};
E=_.k(_.lQ(!1,void 0,"NFjwje"));var y=E.next().value,Y=E.next().value;E=_.sq(function(){Y(!0)});
var A=_.sq(function(){Y(!1)}),v=function(){return y()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.W("top-landscape-image-layout-view-model",{class:function(){var h;return((h=q().interaction)==null?0:h.onTap)&&_.w("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:_.bm(M,RNF,n),"on:mouseenter":E,"on:mouseleave":A},_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.W(_.d,{cond:function(){return p()&&p().length>0},
then:function(){return _.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Kp({top:"0","background-image":function(){return"url("+String(p()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.W(_.d,{cond:function(){return!!q().adButtonHoverOverlay},
then:function(){return _.W("div",{class:v},_.W(_.yu,{data:function(){return q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:BmB}))}}),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.W(_.yu,{data:function(){return q().thumbnailImage}},{adImageViewModel:function(h){return _.W(_.XM,{data:h.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.w("enable_web_home_top_landscape_image_layout_level_click")})}})),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.W(_.Jj,{data:{sources:[{clientResource:{imageName:_.w("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.W("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.W(_.yu,{data:function(){return q().feedAdMetadata}},{feedAdMetadataViewModel:function(h){return _.W(OY,{data:h.data,
noBottomMargin:function(){return G==null?void 0:G()},
listenToTapEvent:function(){return _.w("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return K==null?void 0:K()}})}})))},"nc"),"top-landscape-image-layout-view-model",{props:{data:_.Hz,
noBottomMargin:_.Hz,typographyBump:_.Hz}});var Qmf=_.U(function(M){var q=M.data,G=_.d_({visibilityCallback:function(n){var E,p=(E=q().interaction)==null?void 0:E.onFirstVisible;n&&p&&_.Pb(p)},
showOption:_.p0});M=_.Xm(function(){return q().interaction},M.customCommandResolver);
var K={};return _.W("ad-text-image-view-model",{class:_.Hb("ytwAdTextImageViewModelHost",(K.ytwAdTextImageViewModelHostDarkBackground=function(){return q().style==="AD_TEXT_IMAGE_STYLE_DARK_BACKGROUND"},K)),
el:_.bm(G,M),"aria-label":function(){var n,E;return(n=q().interaction)==null?void 0:(E=n.accessibility)==null?void 0:E.label}},_.W("div",{class:"ytwAdTextImageViewModelHostHeadlineContainer"},_.W(_.Ft,{text:function(){return q().headline},
className:"ytwAdTextImageViewModelHostHeadlineContainerHeadline",linkInheritColor:!0,noEndpoints:!0})),_.W(_.d,{cond:function(){return q().overlayIcon},
then:function(n){return _.W("div",{class:"ytwAdTextImageViewModelHostOverlayIconContainer"},_.W(_.Jj,{data:n,alt:"",className:"ytwAdTextImageViewModelHostOverlayIconContainerOverlayIcon"}))}}))},"oc");var IEf=_.U(function(M){var q=M.data;return _.W("feed-ad-sitelink-view-model",{class:function(){var G;return((G=q().interaction)==null?0:G.onTap)?"ytwFeedAdSitelinkViewModelHostIsClickableAdComponent":"ytwFeedAdSitelinkViewModelHost"},
el:_.bm(_.Xm(function(){return q().interaction},M.customCommandResolver,void 0,function(){return!0})),
"aria-label":function(){var G,K;return(G=q().interaction)==null?void 0:(K=G.accessibility)==null?void 0:K.label},
role:"link",tabindex:0},_.W(_.Ft,{text:function(){return q().headline},
className:"ytwFeedAdSitelinkViewModelHeadline",linkInheritColor:!0}))},"pc");var Dvd=_.U(function(M){var q=M.data;M={};return _.W("feed-ad-sitelinks-carousel-view-model",{el:_.bm(_.d_({visibilityCallback:function(G){var K,n=(K=q().interaction)==null?void 0:K.onFirstVisible;G&&n&&_.Pb(n)},
showOption:_.p0})),class:_.Hb("ytwFeedAdSitelinksCarouselViewModelHost",(M.ytwFeedAdSitelinksCarouselViewModelHostDefault=function(){return q().style==="FEED_AD_SITELINKS_STYLE_NONE"},M))},_.W(_.yu,{data:function(){return q().sitelinks}},{feedAdSitelinkViewModel:IEf}))},"qc");_.S5(_.U(function(M){var q=M.data;M=_.d_({visibilityCallback:function(p,y){if(p){var Y;(p=(Y=q().interaction)==null?void 0:Y.onFirstVisible)&&_.Pb(p);var A;(Y=(A=q().adLayoutData)==null?void 0:A.activeViewData)&&mg(y,Y)}},
showOption:_.p0});var G=_.k(_.lQ(!1,void 0,"BzPhl")),K=G.next().value,n=G.next().value;G=_.sq(function(){n(!0)});
var E=_.sq(function(){n(!1)});
return _.W("text-image-no-button-layout-view-model",{class:"ytwTextImageNoButtonLayoutViewModelHost",el:_.bm(M),"on:mouseenter":G,"on:mouseleave":E},_.W("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainer"},_.W("div",{class:"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerImageContainer"},_.W(_.yu,{data:function(){return q().textImage}},{adTextImageViewModel:Qmf})),_.W("div",{class:function(){return K()?"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":
"ytwTextImageNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.W(_.yu,{data:function(){return q().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(p){return _.W(BmB,{data:p.data,
listenToTapEvent:!0})}}))),_.W("div",{class:"ytwTextImageNoButtonLayoutViewModelHostMetadataContainer"},_.W(_.yu,{data:function(){return q().feedAdMetadata}},{feedAdMetadataViewModel:function(p){return _.W(OY,{data:p.data,
listenToTapEvent:!0})}}),_.W(_.yu,{data:function(){return q().feedAdSitelinksCarousel}},{feedAdSitelinksCarouselViewModel:Dvd})))},"rc"),"text-image-no-button-layout-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=M.typographyBump;return _.W("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:_.bm(_.d_({visibilityCallback:function(K,n){if(K){var E;(K=(E=q().interaction)==null?void 0:E.onFirstVisible)&&_.Pb(K);var p;(E=(p=q().adLayoutData)==null?void 0:p.activeViewData)&&mg(n,E)}},
showOption:_.p0,hideOption:yG}))},_.W("div",null,_.W(_.yu,{data:function(){return q().videoLockup}},{lockupViewModel:function(K){return _.W(_.wp,{data:K.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:G})}})))},"sc"),"video-display-button-group-layout-view-model",{props:{data:_.Hz,
noBottomMargin:_.Hz,typographyBump:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=M.className;var K=M.typographyBump;return _.W("video-display-compact-button-group-layout-view-model",{el:_.bm(_.d_({visibilityCallback:function(n,E){if(n){var p;(n=(p=q().interaction)==null?void 0:p.onFirstVisible)&&_.Pb(n);var y;(p=(y=q().adLayoutData)==null?void 0:y.activeViewData)&&mg(E,p)}},
showOption:_.p0})),class:_.Hb("videoDisplayCompactButtonGroupLayoutViewModelHost",G)},_.W(_.yu,{data:function(){return q().videoLockup}},{lockupViewModel:function(n){return _.W(_.wp,{data:n.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:K})}}))},"tc"),"video-display-compact-button-group-layout-view-model",{props:{data:_.Hz,
className:_.Hz,typographyBump:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=M.className;var K=M.typographyBump;return _.W("video-display-compact-buttoned-layout-view-model",{el:_.bm(_.d_({visibilityCallback:function(n,E){if(n){var p;(n=(p=q().interaction)==null?void 0:p.onFirstVisible)&&_.Pb(n);var y;(p=(y=q().adLayoutData)==null?void 0:y.activeViewData)&&mg(E,p)}},
showOption:_.p0})),class:_.Hb("videoDisplayCompactButtonedLayoutViewModelHost",G)},_.W(_.yu,{data:function(){return q().videoLockup}},{lockupViewModel:function(n){return _.W(_.wp,{data:n.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:K})}}))},"uc"),"video-display-compact-buttoned-layout-view-model",{props:{data:_.Hz,
className:_.Hz,typographyBump:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=M.className;var K=M.typographyBump;var n=function(){return q().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"},E=_.pp(_.o2);
M=_.d_({visibilityCallback:function(A,v){if(A){var h=q();A=h.adLayoutData;var t;(h=(t=h.interaction)==null?void 0:t.onFirstVisible)&&_.Pb(h);(t=A==null?void 0:A.activeViewData)&&mg(v,t)}},
showOption:_.p0});var p=_.gY(function(){return{containerType:n()&&E()?"CONTAINER_TYPE_GRID":"CONTAINER_TYPE_VERTICAL_LIST"}},void 0,"SePl2b"),y=_.gY(function(){return n()&&E()?"":n()?"168px":"50%"},void 0,"zi7guf"),Y=_.gY(function(){return n()&&E()?9999:void 0},void 0,"oP9D5");
return _.W("video-display-compact-layout-view-model",{el:_.bm(M),class:_.Hb("videoDisplayCompactLayoutViewModelHost",G)},_.W(_.yu,{data:function(){return q().videoLockup}},{lockupViewModel:function(A){return _.W(_.wp,{data:A.data,
containerLayoutConfig:p,lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:y,thumbnailTargetWidth:Y,typographyBump:K})}}))},"vc"),"video-display-compact-layout-view-model",{props:{data:_.Hz,
className:_.Hz,typographyBump:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=M.typographyBump;return _.W("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:_.bm(_.d_({visibilityCallback:function(K,n){if(K){var E;(K=(E=q().interaction)==null?void 0:E.onFirstVisible)&&_.Pb(K);var p;(E=(p=q().adLayoutData)==null?void 0:p.activeViewData)&&mg(n,E)}},
showOption:_.p0,hideOption:yG}))},_.W("div",null,_.W(_.yu,{data:function(){return q().videoLockup}},{lockupViewModel:function(K){return _.W(_.wp,{data:K.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:G})}})))},"wc"),"video-display-full-layout-view-model",{props:{data:_.Hz,
noBottomMargin:_.Hz,typographyBump:_.Hz}});_.uAP=_.U(function(M){var q=M.data;M=_.pI("ad-card-badge-view-model");return _.W("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:M},_.W(_.d,{cond:function(){return q().imageBadge},
then:function(G){return _.W(_.Jj,{data:G,alt:""})}}))},"xc");var JmS=_.U(function(M){var q=M.data;var G=M.customCommandResolver;return _.W("carousel-ad-card-image-view-model",{class:function(){var K;return((K=q().interaction)==null?0:K.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:_.bm(_.d_({visibilityCallback:function(K){var n,E=(n=q().interaction)==null?void 0:n.onFirstVisible;K&&E&&_.Pb(E)},
showOption:_.p0}),_.Xm(function(){return q().interaction},G)),
"aria-label":function(){var K,n;return(K=q().interaction)==null?void 0:(n=K.accessibility)==null?void 0:n.label}},_.W(_.yu,{data:function(){return q().adImage}},{adImageViewModel:function(K){return _.W(_.XM,{data:K.data,
customCommandResolver:G})}}),_.W("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.W(_.yu,{data:function(){return q().badge}},{adCardBadgeViewModel:_.uAP})),_.W(_.p3,{model:{color:4}}))},"yc");var Zwl=_.U(function(M){var q=_.k(_.lQ(0,void 0,"JJ0QQc")),G=q.next().value;q.next();var K=q.next().value,n=_.k(_.lQ(!1,void 0,"f6YICe"));q=n.next().value;var E=n.next().value,p;_.m_(function(){clearTimeout(p)});
n=_.sq(function(){var A;((A=M.animate)==null?0:A.call(M))?(E(!0),p=setTimeout(function(){E(!1);y()},200)):y();
return!1});
var y=function(){K(function(A){return(A+M.numShownItems())%M.data().length})},Y={};
return _.W("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.W("div",{class:_.Hb("ytwHorizontalCarouselCarouselWrapper")},_.W("div",{class:_.Hb("ytwHorizontalCarouselCarouselInnerWrapper",(Y.ytwHorizontalCarouselAnimating=q,Y))},_.W(_.bf,{each:M.data,keyBy:"INDEX"},function(A,v){return _.W("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Kp({"flex-basis":function(){return"calc((100% - (8px * "+(M.numShownItems()-1)+")) / "+M.numShownItems()+")"},
order:function(){var h=v-G();h<0&&(h+=M.data().length);return h}})},M.children(A,v))}))),_.W("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":n},M.nextButton()))},"zc");var bwI=_.U(function(M){var q=M.data;var G=M.customCommandResolver;var K=M.expansive;return _.W("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:_.bm(_.d_({visibilityCallback:function(n){var E,p=(E=q().interaction)==null?void 0:E.onFirstVisible;n&&p&&_.Pb(p)},
showOption:_.p0}))},_.W(Zwl,{data:function(){var n;return((n=q())==null?void 0:n.carouselAdCards)||[]},
nextButton:function(){return _.W(_.yu,{data:function(){return q().nextButton}},{buttonViewModel:function(n){var E=n.data;
return _.W(_.Wf,{data:function(){return(K==null?0:K())?Object.assign({},E(),{style:"mono"}):E()},
className:_.w("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(n){return _.W(_.yu,{data:n},{carouselAdCardImageViewModel:function(E){return _.W(JmS,{data:E.data,customCommandResolver:G})}})}))},"Ac");var Uv$=_.U(function(M){var q=M.data;var G=M.customCommandResolver;var K=M.className;var n=M.buttonClassName;var E=M.animationEntityKey;var p=M.expansive;return _.W("carousel-button-view-model",{class:_.Hb("ytwCarouselButtonViewModelHost",K)},_.W(_.yu,{data:function(){return q().carousel}},{carouselAdCardCollectionViewModel:function(y){return _.W(bwI,{data:y.data,
customCommandResolver:G,expansive:p})}}),_.W(_.yu,{data:function(){return q().button}},{adButtonViewModel:function(y){var Y=y.data;
return _.W(_.L0,{data:function(){return(p==null?0:p())?Object.assign({},Y(),{style:"AD_BUTTON_STYLE_TONAL"}):Y()},
className:n,customCommandResolver:G,animationEntityKey:E})}}))},"Bc");_.xvJ=_.U(function(M){var q=M.data;M=M.className;var G=_.pI("pivot-button-view-model");_.SK(function(){var K;((K=q())==null?0:K.backgroundColor)&&G.value.setAttribute("data-background-color",String(q().backgroundColor))});
return _.W("pivot-button-view-model",{el:G,class:_.Hb("ytwPivotButtonViewModelHost",M)},_.W(_.kv,{command:function(){var K=q();K=K.onClickCommand?_.aM(K.onClickCommand):K.contentDescription?_.Tw(K.contentDescription):void 0;return K},
ariaLabel:function(){return q().contentDescription}},_.W(_.d,{cond:function(){return q().thumbnail},
then:function(K){return _.W(_.Jj,{data:K,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.W(_.d,{cond:function(){return q().icon},
then:function(K){return _.W(_.np,{icon:function(){return K().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"Cc");_.zFd=_.U(function(M){var q=M.data;var G=M.buttonShapeOverrideables;return _.W("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.W(_.yu,{data:function(){return q().buttonViewModels}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
buttonOverrides:G})},
likeButtonViewModel:function(K){return _.W(_.rn,{data:K.data,buttonShapeOverrideables:G})},
dislikeButtonViewModel:function(K){return _.W(_.TR,{data:K.data,buttonShapeOverrideables:G})},
toggleButtonViewModel:function(K){return _.W(_.Dj,{data:K.data,buttonShapeOverrides:G})}}))},"Dc");var mvB=_.U(function(M){var q=M.avatar;var G=M.headline;var K=M.badge;var n=M.description;var E=M.expansive;M={};return _.W("yt-ad-metadata-shape",{class:_.Hb("ytAdMetadataShapeHost",(M.ytAdMetadataShapeHostLarge=E,M))},_.W("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.W(_.d,{cond:q,then:function(p){return _.W(_.u_P,{data:function(){return(E==null?0:E())?Object.assign({},p(),{size:"AD_AVATAR_SIZE_M"}):p()}})}}),_.W("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.W(_.Ft,{text:G,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.W(_.d,{cond:K,then:function(p){return _.W(_.hb,{data:function(){return(E==null?0:E())?Object.assign({},p(),{style:"AD_BADGE_STYLE_STARK"}):p()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.W("h2",{class:"ytAdMetadataShapeHostDescription"},_.W(_.Ft,{text:n,
linkInheritColor:!0,isHeadline:function(){return E==null?void 0:E()}})))},"Ec");var Sy9=_.U(function(M){var q=M.data;var G=M.onShow;var K=M.expansive;M=_.Xm(function(){return q().interaction});
_.SK(function(){var E,p=(E=q().animatedRenderingConfig)==null?void 0:E.delayedSecondsToVisible;if(p){var y=setTimeout(G,p*1E3);_.m_(function(){clearTimeout(y)})}});
var n={};return _.W("reels-ad-card-buttoned-view-model",{class:_.Hb(function(){var E;return((E=q().interaction)==null?0:E.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(n.ytwReelsAdCardButtonedViewModelHostExpansive=K,n)),
el:_.bm(M)},_.W(mvB,{avatar:function(){return _.C(q().avatar,BNl)},
headline:function(){return q().headline},
badge:function(){return _.C(q().adBadge,QAJ)},
description:function(){return q().description},
expansive:K}),_.W(_.yu,{data:function(){return q().ctaButton}},{adButtonViewModel:function(E){var p=E.data;
return _.W(_.L0,{data:function(){return(K==null?0:K())?Object.assign({},p(),{style:"AD_BUTTON_STYLE_FILLED"}):p()}})}}))},"Fc");var Tm9=_.U(function(M){var q=M.data;M=M.expansive;var G=_.w("web_ad_metadata_clickable")?_.Xm(function(){return q().interaction},void 0,function(){return _.w("web_ad_metadata_clickable")}):void 0,K={};
K=_.vO("ytwReelsAdMetadataViewModelHost",(K.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.w("web_ad_metadata_clickable"),K));return _.W("reels-ad-metadata-view-model",{class:K,el:_.bm(G)},_.W(mvB,{avatar:function(){return _.C(q().avatar,BNl)},
headline:function(){return q().headline},
badge:function(){return _.C(q().adBadge,QAJ)},
description:function(){return q().description},
expansive:M}))},"Gc");var rmf={iconPosition:"icon-with-label",size:"L"},jm2=_.U(function(M){var q=M.data;var G=M.overlayDensity;var K=M.extractOverlay;var n=M.extractActionBar;M=_.pI("reels-player-overlay-layout-view-model");var E=_.bg(G,0),p=function(){var O;return(O=q().reelsAdCardButtonedEntityKey)!=null?O:""},y=function(){return p()+"/ad_button"},Y=_.No(CD$,p),A=function(){var O,a;
return(a=(O=Y())==null?void 0:O.value)!=null?a:!1},v=_.pp(fRs),h=function(){var O;
return Object.assign({},rmf,(v()||!((O=n==null?void 0:n())!=null&&O))&&{style:"overlay-dark"})};
G={};var t={};return _.W("reels-player-overlay-layout-view-model",{class:_.Hb("ytwReelsPlayerOverlayLayoutViewModelHost",(G.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!q().extension},G.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},G.ytwReelsPlayerOverlayLayoutViewModelHostExpansiveOverlay=function(){return E()===1&&!(K==null?0:K())},G.ytwReelsPlayerOverlayLayoutViewModelHostExtractOverlay=function(){var O;
return(O=K==null?void 0:K())!=null?O:!1},G.ytwReelsPlayerOverlayLayoutViewModelHostExtractActionBar=function(){var O;
return(O=n==null?void 0:n())!=null?O:!1},G)),
"overlay-density":function(){return String(E())},
el:M},_.W("div",{class:_.Hb("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(t.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},t))},_.W("div",{"aria-hidden":function(){return A()},
class:_.Hb("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return A()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Kp({"transition-duration":function(){return $WF(q())}})},_.W(_.yu,{data:function(){return q().adMetadata}},{reelsAdMetadataViewModel:function(O){return _.W(Tm9,{data:O.data,
expansive:function(){return E()===1}})}}),_.W(_.d,{cond:function(){return q().extension},
then:function(O){return _.W("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.W(_.yu,{data:O},{adButtonViewModel:function(a){return _.W(_.L0,{data:a.data,animationEntityKey:y,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(a){return _.W(Uv$,{data:a.data,animationEntityKey:y,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return E()===1}})}}))}})),_.W("div",{"aria-hidden":function(){return!A()},
class:_.Hb("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return A()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Kp({"transition-duration":function(){return $WF(q())}})},_.W(_.yu,{data:function(){return q().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(O){return _.W(Sy9,{data:O.data,
onShow:function(){_.Zp(_.LL("booleanEntity",p(),{key:p(),value:!0}))},
expansive:function(){return E()===1}})}}))),_.W("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.W(_.yu,{data:function(){return q().actions}},{reelActionBarViewModel:function(O){return _.W(_.zFd,{data:O.data,
buttonShapeOverrideables:h})}}),_.W(_.yu,{data:function(){return q().menu}},{buttonViewModel:function(O){return _.W(_.Wf,{data:O.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},h(),{type:"tonal"})}})}}),_.W(_.yu,{data:function(){return q().pivotButton}},{pivotButtonViewModel:function(O){return _.W(_.xvJ,{data:O.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"Hc");_.S5(jm2,"reels-player-overlay-layout-view-model",{props:{data:_.Hz,overlayDensity:_.Hz,extractOverlay:_.Hz,extractActionBar:_.Hz}});var P9=function(){var M=_.Q.apply(this,arguments)||this;M.noBottomMargin=!1;M.overlayDensity=0;M.extractOverlay=!1;M.extractActionBar=!1;return M};
_.l(P9,_.Q);_.N=P9.prototype;
_.N.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonGroupLayoutViewModel:{component:"video-display-compact-button-group-layout-view-model",
properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactButtonedLayoutViewModel:{component:"video-display-compact-buttoned-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},videoDisplayCompactLayoutViewModel:{component:"video-display-compact-layout-view-model",properties:{typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",textImageNoButtonLayoutViewModel:"text-image-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.w("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]]"}}}}}};
_.N.ready=function(){var M=this;NOs(function(){M.isAttached&&J$(M.JSC$15663_storedAdSlotMetadata,M.JSC$15663_storedAdLayoutMetadata,M.adSlotMetadata,M.adLayoutMetadata)&&l9(aR(),M.JSC$15663_storedAdSlotMetadata,M.JSC$15663_storedAdLayoutMetadata)})};
_.N.attached=function(){J$(this.JSC$15663_storedAdSlotMetadata,this.JSC$15663_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gTI(aR(),this.JSC$15663_storedAdSlotMetadata,this.JSC$15663_storedAdLayoutMetadata)};
_.N.detached=function(){J$(this.JSC$15663_storedAdSlotMetadata,this.JSC$15663_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&l9(aR(),this.JSC$15663_storedAdSlotMetadata,this.JSC$15663_storedAdLayoutMetadata)};
_.N.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.N.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15663_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15663_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15663_storedAdLayoutMetadata!==void 0&&this.JSC$15663_storedAdSlotMetadata!==void 0&&l9(aR(),this.JSC$15663_storedAdSlotMetadata,this.JSC$15663_storedAdLayoutMetadata),gTI(aR(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15663_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15663_storedAdSlotMetadata=this.adSlotMetadata)};
_.Yd.Object.defineProperties(P9.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.adLayoutMetadata}}});
P9.prototype.onAdMetadataChanged=P9.prototype.onAdMetadataChanged;P9.prototype.onTypographyBumpChanged=P9.prototype.onTypographyBumpChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],P9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],P9.prototype,"rendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],P9.prototype,"ytComponentBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],P9.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],P9.prototype,"noBottomMargin",void 0);_.T([_.B(),_.r("design:type",Object)],P9.prototype,"overlayDensity",void 0);_.T([_.B(),_.r("design:type",Object)],P9.prototype,"extractOverlay",void 0);_.T([_.B(),_.r("design:type",Object)],P9.prototype,"extractActionBar",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],P9.prototype,"typographyBump",void 0);
_.T([_.c("data.adLayoutMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],P9.prototype,"adLayoutMetadata",null);_.T([_.B(),_.r("design:type",Object)],P9.prototype,"adSlotMetadata",void 0);_.T([_.ET("ytd-video-display-full-buttoned-and-button-group-renderer"),_.r("design:type",HTMLElement)],P9.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);
_.T([_.KT("typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],P9.prototype,"onTypographyBumpChanged",null);_.T([_.KT("adLayoutMetadata","adSlotMetadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],P9.prototype,"onAdMetadataChanged",null);_.T([_.b({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],P9);
_.z(P9,"ytd-in-feed-ad-layout-renderer",function(){if(IK$!==void 0)return IK$;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return IK$=M},
{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var VFp;var RFf;_.S5(_.hb,"ad-badge-view-model",{props:{data:_.Hz,hasDot:_.Hz,customCommandResolver:_.xj,adRenderingContextType:_.xj,usedInMasthead:_.xj}});_.S5(_.L0,"ad-button-view-model",{props:{data:_.Hz,customCommandResolver:_.xj,className:_.xj,delayedClassName:_.xj,animationEntityKey:_.xj,isCompactWidth:_.xj,isContentWidth:_.xj}});var IR=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return M};
_.l(IR,_.Q);_.N=IR.prototype;_.N.computeHasLiveDescription=function(M){return!(M==null||!M.liveDescription)};
_.N.computeHasByline=function(M){return!(M==null||!M.byline)};
_.N.computeUsesAdButtonViewModel=function(M){return!!_.C(M==null?void 0:M.cta,ID2)};
_.N.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"}}}}}};
_.N.onYtToggleButton=function(M){var q,G=(q=this.data)==null?void 0:q.videoReminderEntityKey;G&&this.ytdReduxBehavior.dispatch(_.LL("upcomingEventReminderStateEntity",G,{key:G,state:M.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.N.attached=function(){this.updateChannelBanner()};
_.N.dataChanged=function(){this.updateChannelBanner()};
_.N.videoReminderStateChanged=function(){var M;this.videoReminderState&&_.C((M=this.data)==null?void 0:M.cta,_.F7)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.N.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var M=_.TE(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);M&&(M.startsWith("//")&&(M="https:"+M),this.hostElement.classList.add("channel-banner"),_.sT(this.hostElement,{"--ytvmh-channel-banner":"url("+M+")"}))}else _.w("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.N.onPlayerReady=function(){this.onIronResize()};
_.N.maybeFlushDebouncer=function(){_.w("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(M){var q;M=(q=M.getElementsByTagName("yt-attributed-string"))==null?void 0:q[0];XjH(M==null?void 0:M.polymerController)})};
_.N.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var M=_.f_(this.hostElement).querySelector("#live-description"),q;M&&((q=this.data)==null?0:q.shortLiveDescription)&&M.clientWidth<M.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
IR.prototype.onIronResize=IR.prototype.onIronResize;IR.prototype.videoReminderStateChanged=IR.prototype.videoReminderStateChanged;IR.prototype.dataChanged=IR.prototype.dataChanged;IR.prototype.onYtToggleButton=IR.prototype.onYtToggleButton;_.T([_.P(_.uz),_.r("design:type",Object)],IR.prototype,"ironResizableBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],IR.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],IR.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],IR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],IR.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],IR.prototype,"data",void 0);_.T([_.B({selectorArgs:["data.videoReminderEntityKey"],selector:EXi}),_.r("design:type",Object)],IR.prototype,"videoReminderState",void 0);
_.T([_.B({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.r("design:type",Boolean)],IR.prototype,"rounded",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.r("design:type",Boolean)],IR.prototype,"hasLiveDescription",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasByline(data)"}),_.r("design:type",Boolean)],IR.prototype,"hasByline",void 0);
_.T([_.B({value:"AD_RENDERING_CONTEXT_TYPE_BROWSE"}),_.r("design:type",String)],IR.prototype,"adRenderingContextType",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],IR.prototype,"isMasthead",void 0);_.T([_.B({computed:"computeUsesAdButtonViewModel(data)"}),_.r("design:type",Boolean)],IR.prototype,"usesAdButtonViewModel",void 0);
_.T([_.B({reflectToAttribute:!0,value:_.w("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.r("design:type",Boolean)],IR.prototype,"resizableAdBannerSafariFix",void 0);_.T([_.Ns("yt-formatted-string"),_.r("design:type",Array)],IR.prototype,"formattedStrings",void 0);_.T([_.ET("#cta-button"),_.r("design:type",HTMLElement)],IR.prototype,"ctaButton",void 0);
_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],IR.prototype,"onYtToggleButton",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],IR.prototype,"dataChanged",null);_.T([_.KT("videoReminderState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],IR.prototype,"videoReminderStateChanged",null);
_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],IR.prototype,"onIronResize",null);_.T([_.b({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],IR);
_.z(IR,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(RFf!==void 0)return RFf;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return RFf=M},{mode:1});var fEp;var DH=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};M.isLocked=!1;return M};
_.l(DH,_.Q);_.N=DH.prototype;_.N.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.N.onExpandedChanged=function(){this.expanded&&_.Rf(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.N.onMouseOver=function(){this.maybeExpand()};
_.N.onTap=function(){this.maybeExpand()};
_.N.onExpandableTileExpanding=function(M){M!==this&&(this.expanded=!1)};
_.N.onExpandableTileLockAndCollapse=function(M){this.isLocked=!0;M!==this&&(this.expanded=!1)};
_.N.onExpandableTileUnlock=function(){this.isLocked=!1};
DH.prototype.onTap=DH.prototype.onTap;DH.prototype.onMouseOver=DH.prototype.onMouseOver;DH.prototype.onExpandedChanged=DH.prototype.onExpandedChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],DH.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],DH.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],DH.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],DH.prototype,"expanded",void 0);_.T([_.yO("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DH.prototype,"onExpandedChanged",null);_.T([_.GQ("mouseover"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DH.prototype,"onMouseOver",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DH.prototype,"onTap",null);
_.T([_.b({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],DH);
_.z(DH,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(fEp!==void 0)return fEp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return fEp=M},{mode:1});var F1M;var u9=function(){var M=_.Q.apply(this,arguments)||this;M.buttonOverrides={style:"overlay"};M.useYtdPlayer=_.w("use_ytd_player_for_desktop_masthead");M.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};M.playbackFinished=!1;M.JSC$15677_playerManager=null;M.JSC$15677_mastheadCounter=new $z$;return M};
_.l(u9,_.Q);_.N=u9.prototype;_.N.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"}}}};
_.N.created=function(){this.JSC$15677_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$15677_playerManager=new iW)};
_.N.ready=function(){var M=this;this.JSC$15677_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var q=_.f_(this.hostElement).querySelector("#player");this.useYtdPlayer?q.style.display="none":(this.ytdPlayer.style.display="none",S1f(this.JSC$15677_playerManager,q,function(){M.onPlaybackEnded()}),_.f_(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var G;
((G=M.data)==null?0:G.navigationEndpoint)&&_.jP(M.hostElement,"yt-navigate",{endpoint:M.data.navigationEndpoint})}))};
_.N.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$15677_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.N.attached=function(){var M=this;_.g4(function(){M.maybePlayVideo()})};
_.N.maybePlayVideo=function(){var M=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$15677_playerManager.playVideo(),this.getPlayerPromise().then(function(){M.JSC$15677_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.N.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15677_playerManager.stopVideo()};
_.N.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var M,q={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((M=this.data.playbackStartMs)!=null?M:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(q);this.setupYtdPlayer()}else rzM(this.JSC$15677_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(TKM(this.JSC$15677_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.N.getPlayerPromise=function(){return this.JSC$15677_playerManager.getPlayerPromise()};
_.N.onYtToggleButton=function(M){this.useYtdPlayer?this.toggleMute(M.detail.toggled):M.detail.toggled?this.JSC$15677_playerManager.mute():this.JSC$15677_playerManager.unMute()};
_.N.onYtNavigate=function(M){var q=k4s(M.detail.endpoint),G=p9H(this.data.clickthroughReportingData);q&&G&&(M.detail.endpoint.watchEndpoint?M.detail.tempData=G:_.xD(q,G,30))};
_.N.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.N.onExpandedChanged=function(){this.expanded?(_.Rf(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.N.onMouseOver=function(){this.maybeExpand()};
_.N.onTap=function(){this.maybeExpand()};
_.N.onExpandableTileExpanding=function(M){M!==this&&(this.stopVideo(),this.expanded=!1)};
_.N.onExpandableTileLockAndCollapse=function(M){M!==this&&(this.isLocked=!0,this.expanded=!1)};
_.N.onExpandableTileUnlock=function(){this.isLocked=!1};
_.N.lockAndCollapseExpandableTiles=function(){_.VW(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.N.unlockExpandableTiles=function(){_.VW(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.N.setupYtdPlayer=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return G.yield(M.ytdPlayer.getPlayerPromise(),2);q=G.yieldResult;q.addEventListener("onStateChange",function(K){M.onPlayerStateChange(K)});
q.addEventListener("onCueRangeExit",function(K){M.onCueRangeExit(K)});
_.gL(G)})};
_.N.onPlayerStateChange=function(M){if(M===1&&(M=this.ytdPlayer.getPlayer())){var q=M.getCurrentTime(),G,K,n=q+((K=(G=this.data)==null?void 0:G.playbackDurationMs)!=null?K:0)/1E3;M.addCueRange("playback",q,n);this.JSC$15677_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.N.onCueRangeExit=function(M){M==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.N.toggleMute=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(q.ytdPlayer.getPlayerPromise(),2);G=K.yieldResult;M?G.mute():G.unMute();_.gL(K)})};
u9.prototype.onTap=u9.prototype.onTap;u9.prototype.onMouseOver=u9.prototype.onMouseOver;u9.prototype.onExpandedChanged=u9.prototype.onExpandedChanged;u9.prototype.onYtNavigate=u9.prototype.onYtNavigate;u9.prototype.onYtToggleButton=u9.prototype.onYtToggleButton;u9.prototype.dataChanged=u9.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],u9.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],u9.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],u9.prototype,"expanded",void 0);_.T([_.B(),_.r("design:type",Object)],u9.prototype,"buttonOverrides",void 0);
_.T([_.B(),_.r("design:type",Object)],u9.prototype,"useYtdPlayer",void 0);_.T([_.ET("#ytd-player"),_.r("design:type",Object)],u9.prototype,"ytdPlayer",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u9.prototype,"dataChanged",null);_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],u9.prototype,"onYtToggleButton",null);
_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],u9.prototype,"onYtNavigate",null);_.T([_.yO("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u9.prototype,"onExpandedChanged",null);_.T([_.GQ("mouseover"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u9.prototype,"onMouseOver",null);
_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u9.prototype,"onTap",null);_.T([_.b({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],u9);
_.z(u9,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(F1M!==void 0)return F1M;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return F1M=M},{mode:1});var Hwl;var JJ=function(){return _.Q.apply(this,arguments)||this};
_.l(JJ,_.Q);JJ.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
JJ.prototype.onShow=function(){var M=_.f_(this.hostElement).querySelector("#live-description"),q;M&&((q=this.data)==null?0:q.shortLiveDescription)&&M.clientWidth<M.scrollWidth&&this.hostElement.classList.add("short-live-description")};
JJ.prototype.onYtToggleButton=function(M){var q,G=(q=this.data)==null?void 0:q.videoReminderEntityKey;G&&this.ytdReduxBehavior.dispatch(_.LL("upcomingEventReminderStateEntity",G,{key:G,state:M.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
JJ.prototype.videoReminderStateChanged=function(){var M;this.videoReminderState&&_.C((M=this.data)==null?void 0:M.cta,_.F7)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
JJ.prototype.videoReminderStateChanged=JJ.prototype.videoReminderStateChanged;JJ.prototype.onYtToggleButton=JJ.prototype.onYtToggleButton;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JJ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],JJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],JJ.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],JJ.prototype,"data",void 0);
_.T([_.B({selectorArgs:["data.videoReminderEntityKey"],selector:EXi}),_.r("design:type",Object)],JJ.prototype,"videoReminderState",void 0);_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],JJ.prototype,"onYtToggleButton",null);_.T([_.KT("videoReminderState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JJ.prototype,"videoReminderStateChanged",null);
_.T([_.b({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],JJ);
_.z(JJ,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(Hwl!==void 0)return Hwl;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Hwl=M},{mode:_.VO("kevlar_poly_si_batch_j065")?1:2});var eFJ;var ZH=function(){var M=_.Q.apply(this,arguments)||this;M.useYtdPlayer=_.w("use_ytd_player_for_desktop_masthead");M.buttonOverrides={style:"overlay"};M.JSC$15685_playerManager=null;M.JSC$15685_mastheadCounter=new $z$;M.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return M};
_.l(ZH,_.Q);_.N=ZH.prototype;_.N.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"}}}};
_.N.created=function(){this.JSC$15685_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$15685_playerManager=new iW)};
_.N.ready=function(){var M=this;this.JSC$15685_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var q;(q=this.embeddedPlayer)==null||q.remove()}else{var G;(G=this.ytdPlayer)==null||G.remove();S1f(this.JSC$15685_playerManager,this.embeddedPlayer,function(){M.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){M.data&&M.data.navigationEndpoint&&_.jP(M.hostElement,"yt-navigate",{endpoint:M.data.navigationEndpoint})})}};
_.N.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$15685_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.N.dataChanged=function(){var M=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var q=!this.data.disableAutoPlayback,G,K={autoplay:q,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((G=this.data.playbackStartMs)!=null?G:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(q?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(K);this.setupYtdPlayer()}else rzM(this.JSC$15685_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(TKM(this.JSC$15685_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$15685_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.VW(M.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");M.JSC$15685_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.N.getPlayerPromise=function(){return this.JSC$15685_playerManager.getPlayerPromise()};
_.N.onYtToggleButton=function(M){this.useYtdPlayer?this.toggleMute(M.detail.toggled):M.detail.toggled?this.JSC$15685_playerManager.mute():this.JSC$15685_playerManager.unMute()};
_.N.onYtNavigate=function(M){var q=k4s(M.detail.endpoint),G=p9H(this.data.clickthroughReportingData);q&&G&&(M.detail.endpoint.watchEndpoint?M.detail.tempData=G:_.xD(q,G,30))};
_.N.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$15685_playerManager.stopVideo()};
_.N.setupYtdPlayer=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return G.yield(M.ytdPlayer.getPlayerPromise(),2);q=G.yieldResult;q.addEventListener("onStateChange",function(K){M.onPlayerStateChange(K)});
q.addEventListener("onCueRangeExit",function(K){M.onCueRangeExit(K)});
_.gL(G)})};
_.N.onPlayerStateChange=function(M){if(M===1&&(M=this.ytdPlayer.getPlayer())){var q=M.getCurrentTime(),G,K,n=q+((K=(G=this.data)==null?void 0:G.playbackDurationMs)!=null?K:0)/1E3;M.addCueRange("playback",q,n);_.VW(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$15685_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.N.onCueRangeExit=function(M){M==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.N.toggleMute=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(q.ytdPlayer.getPlayerPromise(),2);G=K.yieldResult;M?G.mute():G.unMute();_.gL(K)})};
_.Yd.Object.defineProperties(ZH.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M,q;if(!((M=this.data)==null?0:(q=M.accessibilityData)==null?0:q.label))return"Ad primary link";var G,K;return _.Ge("AD_TITLE",{title:(G=this.data)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label})}}});
ZH.prototype.onYtMastheadHidden=ZH.prototype.onYtMastheadHidden;ZH.prototype.onYtNavigate=ZH.prototype.onYtNavigate;ZH.prototype.onYtToggleButton=ZH.prototype.onYtToggleButton;ZH.prototype.dataChanged=ZH.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ZH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ZH.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ZH.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ZH.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],ZH.prototype,"useYtdPlayer",void 0);_.T([_.ET("ytd-toggle-button-renderer"),_.r("design:type",Object)],ZH.prototype,"muteButton",void 0);_.T([_.B(),_.r("design:type",Object)],ZH.prototype,"buttonOverrides",void 0);
_.T([_.c("data.accessibilityData.label"),_.r("design:type",String),_.r("design:paramtypes",[])],ZH.prototype,"titleAriaLabel",null);_.T([_.ET("#replay-button"),_.r("design:type",Object)],ZH.prototype,"replayButton",void 0);_.T([_.ET("#player-container"),_.r("design:type",Object)],ZH.prototype,"playerContainer",void 0);_.T([_.ET("#player"),_.r("design:type",Object)],ZH.prototype,"embeddedPlayer",void 0);_.T([_.ET("#ytd-player"),_.r("design:type",Object)],ZH.prototype,"ytdPlayer",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZH.prototype,"dataChanged",null);_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ZH.prototype,"onYtToggleButton",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ZH.prototype,"onYtNavigate",null);
_.T([_.GQ("yt-masthead-hidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZH.prototype,"onYtMastheadHidden",null);_.T([_.b({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],ZH);
_.z(ZH,"ytd-video-masthead-ad-primary-video-renderer",function(){if(eFJ!==void 0)return eFJ;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return eFJ=M},{mode:2});var $v8;var b9=function(){var M=_.Q.apply(this,arguments)||this;M.collapsed=!1;M.impressionResolver=_.u8();M.JSC$15689_activeViewMeasurementDataResolver=_.u8();M.actionMap={"yt-mute-ad-action":"handleMuteAd"};return M};
_.l(b9,_.Q);_.N=b9.prototype;_.N.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"}}}};
_.N.created=function(){this.activeView=new Wl(this.hostElement)};
_.N.ready=function(){var M=this;_.f_(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){M.expandAd()});
this.hostElement.addEventListener("yt-action",function(q){if(q.detail.actionName==="yt-service-request"){var G=q.detail.args[1];G.videoMastheadAdMuteCommand&&(M.collapseAd(G.videoMastheadAdMuteCommand.encryptedMastheadId),q.stopPropagation())}})};
_.N.attached=function(){var M=this;_.g4(function(){M.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(q){if(!M.collapsed){q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=G.value,q8(G.baseUrl,G.attributionSrcMode);M.data.impressionCommand=void 0}});
this.JSC$15689_activeViewMeasurementDataResolver.promise.then(function(q){Aa(M.activeView,q)});
_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dn(M.activeView)})};
_.N.dataChanged=function(){var M;((M=this.data.impressionCommand)==null?0:M.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var q;((q=this.data)==null?0:q.activeView)&&this.JSC$15689_activeViewMeasurementDataResolver.resolve(this.data.activeView);(M=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(M.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.N.computeWidescreen=function(M){var q;return!!(M&&((q=_.C(M,XBM))==null?0:q.isWidescreen))};
_.N.computeExpandable=function(M){return!!(M&&M.length>0)};
_.N.onIronResize=function(){if(this.expandable){var M=_.f_(this.hostElement).querySelector("#expandable-tile-container :first-child");M&&!M.expanded&&(M.expanded=!0)}};
_.N.handleMuteAd=function(){this.collapseAd(null)};
_.N.restoreCollapsedState=function(M){this.collapsed=_.El().get("HIDDEN_MASTHEAD_ID")===M};
_.N.collapseAd=function(M){if(M){var q=_.El();q.set("HIDDEN_MASTHEAD_ID",M);q.save()}(M=_.f_(this.hostElement).querySelector("#video"))&&_.jP(M,"yt-masthead-hidden");this.collapsed=!0};
_.N.expandAd=function(){var M=_.El();M.set("HIDDEN_MASTHEAD_ID",!1);M.save();location.reload()};
_.N.detached=function(){_.w("stop_av_measurement_on_detach")&&dn(this.activeView)};
b9.prototype.onIronResize=b9.prototype.onIronResize;b9.prototype.dataChanged=b9.prototype.dataChanged;_.T([_.P(_.uz),_.r("design:type",Object)],b9.prototype,"ironResizableBehavior",void 0);_.T([_.P(_.jr),_.r("design:type",Object)],b9.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],b9.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],b9.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],b9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],b9.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.r("design:type",Boolean)],b9.prototype,"widescreen",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.r("design:type",Boolean)],b9.prototype,"expandable",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],b9.prototype,"collapsed",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b9.prototype,"dataChanged",null);_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b9.prototype,"onIronResize",null);_.T([_.b({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],b9);
_.z(b9,"ytd-video-masthead-ad-v3-renderer",function(){if($v8!==void 0)return $v8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return $v8=M},{mode:2});var UG=function(){return _.Q.apply(this,arguments)||this};
_.l(UG,_.Q);_.N=UG.prototype;_.N.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.N.ready=function(){var M=this;NOs(function(){M.isAttached&&J$(M.JSC$15694_storedAdSlotMetadata,M.JSC$15694_storedAdLayoutMetadata,M.adSlotMetadata,M.adLayoutMetadata)&&l9(aR(),M.JSC$15694_storedAdSlotMetadata,M.JSC$15694_storedAdLayoutMetadata)})};
_.N.attached=function(){J$(this.JSC$15694_storedAdSlotMetadata,this.JSC$15694_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&gTI(aR(),this.JSC$15694_storedAdSlotMetadata,this.JSC$15694_storedAdLayoutMetadata)};
_.N.detached=function(){J$(this.JSC$15694_storedAdSlotMetadata,this.JSC$15694_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&l9(aR(),this.JSC$15694_storedAdSlotMetadata,this.JSC$15694_storedAdLayoutMetadata)};
_.N.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$15694_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$15694_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$15694_storedAdLayoutMetadata!==void 0&&this.JSC$15694_storedAdSlotMetadata!==void 0&&l9(aR(),this.JSC$15694_storedAdSlotMetadata,this.JSC$15694_storedAdLayoutMetadata),gTI(aR(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$15694_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$15694_storedAdSlotMetadata=this.adSlotMetadata)};
_.Yd.Object.defineProperties(UG.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.adLayoutMetadata}}});
UG.prototype.onAdMetadataChanged=UG.prototype.onAdMetadataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],UG.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],UG.prototype,"data",void 0);_.T([_.c("data.adLayoutMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],UG.prototype,"adLayoutMetadata",null);
_.T([_.B(),_.r("design:type",Object)],UG.prototype,"adSlotMetadata",void 0);_.T([_.KT("adLayoutMetadata","adSlotMetadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UG.prototype,"onAdMetadataChanged",null);_.T([_.b({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],UG);
_.z(UG,"ytd-page-top-ad-layout-renderer",function(){if(VFp!==void 0)return VFp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return VFp=
M},{mode:_.VO("kevlar_poly_si_batch_j070")?1:2});var s$$;var xh=function(){var M=_.Q.apply(this,arguments)||this;M.noBottomMargin=!1;M.overlayDensity=0;M.typographyBump=!1;M.extractOverlay=!1;M.extractActionBar=!1;return M};
_.l(xh,_.Q);_.N=xh.prototype;
_.N.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]]"}}}}}};
_.N.ready=function(){var M=this;NOs(function(){M.isAttached&&M.adSlotMetadata&&cml(aR(),M.adSlotMetadata)})};
_.N.attached=function(){if(this.adSlotMetadata){var M;if(this.adSlotMetadata===((M=this.data)==null?void 0:M.adSlotMetadata))iwp(aR(),this.adSlotMetadata);else{var q;_.j1(Error("Oh`"+this.adSlotMetadata+"`"+((q=this.data)==null?void 0:q.adSlotMetadata)))}}};
_.N.detached=function(){this.adSlotMetadata&&cml(aR(),this.adSlotMetadata)};
_.N.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.N.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&cml(aR(),this.adSlotMetadata),iwp(aR(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Yd.Object.defineProperties(xh.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var M,q,G=_.C((M=this.data)==null?void 0:(q=M.fulfillmentContent)==null?void 0:q.fulfilledLayout,_.i$p),K;return(M=(K=_.C(G==null?void 0:G.renderingContent,Ptp))==null?void 0:K.layout)?M.toLowerCase().replace(/_/g,"-"):""}}});
xh.prototype.onAdSlotMetadataChanged=xh.prototype.onAdSlotMetadataChanged;xh.prototype.onTypographyBumpChanged=xh.prototype.onTypographyBumpChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],xh.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xh.prototype,"rendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],xh.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],xh.prototype,"noBottomMargin",void 0);_.T([_.B(),_.r("design:type",Object)],xh.prototype,"overlayDensity",void 0);_.T([_.B(),_.r("design:type",Object)],xh.prototype,"typographyBump",void 0);_.T([_.B(),_.r("design:type",Object)],xh.prototype,"extractOverlay",void 0);_.T([_.B(),_.r("design:type",Object)],xh.prototype,"extractActionBar",void 0);
_.T([_.ET("ytd-in-feed-ad-layout-renderer"),_.r("design:type",HTMLElement)],xh.prototype,"inFeedAdLayoutRenderer",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],xh.prototype,"layout",null);_.T([_.KT("typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xh.prototype,"onTypographyBumpChanged",null);
_.T([_.KT("data.adSlotMetadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xh.prototype,"onAdSlotMetadataChanged",null);_.T([_.b({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],xh);
_.z(xh,"ytd-ad-slot-renderer",function(){if(s$$!==void 0)return s$$;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return s$$=M},{mode:_.VO("kevlar_poly_si_batch_j077")?
1:2});var MIS;var z4=function(){return _.Q.apply(this,arguments)||this};
_.l(z4,_.Q);_.N=z4.prototype;_.N.created=function(){this.activeView=new Wl(this.hostElement)};
_.N.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"}}}};
_.N.maybeComputeHref=function(){return null};
_.N.onTap=function(){};
_.N.onThumbnailContainerClick=function(M){this.onClick(M)};
_.N.onClick=function(M){var q,G=(q=this.data)==null?void 0:q.navigationEndpoint;G&&_.C(G,_.Jl)&&(this.ytSparklesClickLocationBehavior.handleClick(G,M,!1),M.stopPropagation())};
_.N.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var M=_.k(this.data.impressionUrls),q=M.next();!q.done;q=M.next())q=q.value,ST$(q,r_Y(q));this.data.activeView&&Aa(this.activeView,this.data.activeView);this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",z4.JSC$15702_DEFAULT_CLICK_LOCATION_BEHAVIOR,z4.JSC$15702_CLICK_LOCATION_ID_MAP);this.thumbnail&&(M=this.thumbnail.getElementsByTagName("a"),M.length>0&&(M=M.namedItem("thumbnail"))&&M.removeAttribute("href"))}};
_.N.attached=function(){var M=this;_.w("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&dn(M.activeView)})};
_.N.detached=function(){_.w("stop_av_measurement_on_detach")&&dn(this.activeView)};
_.Yd.Object.defineProperties(z4.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
z4.prototype.dataChanged=z4.prototype.dataChanged;z4.prototype.onTap=z4.prototype.onTap;z4.JSC$15702_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
z4.JSC$15702_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"}];_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],z4.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],z4.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],z4.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],z4.prototype,"ytSparklesClickLocationBehavior",void 0);
_.T([_.B({selector:_.o2}),_.r("design:type",Object)],z4.prototype,"isGridViewEnabled",void 0);_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],z4.prototype,"watchFeedBigThumbs",null);_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],z4.prototype,"thumbnailWidth",null);_.T([_.B(),_.r("design:type",Object)],z4.prototype,"data",void 0);
_.T([_.ET("ytd-thumbnail"),_.r("design:type",HTMLElement)],z4.prototype,"thumbnail",void 0);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],z4.prototype,"onTap",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],z4.prototype,"dataChanged",null);_.T([_.b({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],z4);
_.z(z4,"ytd-compact-promoted-video-renderer",function(){if(MIS!==void 0)return MIS;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return MIS=M},{mode:1});var qrM;_.hC("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var mM=function(){return _.Q.apply(this,arguments)||this};
_.l(mM,_.Q);mM.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mM.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],mM.prototype,"data",void 0);_.T([_.b({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],mM);
_.z(mM,"ytd-search-pyv-renderer",function(){if(qrM!==void 0)return qrM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return qrM=M},{mode:1});var G28;_.hC("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var SB=function(){var M=_.Q.apply(this,arguments)||this;M.roundedContainer=!0;M.JSC$15710_handleOpenPostCommentDialogActionAfterStamp=!1;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.l(SB,_.Q);_.N=SB.prototype;
_.N.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}}};
_.N.onStampFinished=function(){this.JSC$15710_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.N.handleSignalActionOpenPostCommentDialogAction=function(){var M=_.f_(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");M?M.openDialog():this.JSC$15710_handleOpenPostCommentDialogActionAfterStamp=!0};
_.N.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.N.computeHideBorder=function(){return this.isInEngagementPanel};
_.N.computeIsCompact=function(){return this.isInEngagementPanel};
_.N.computeUsesCompactLockup=function(M){return M==="BACKSTAGE_SURFACE_TYPE_HOME"||M==="BACKSTAGE_SURFACE_TYPE_SEARCH"||M==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||M==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||M==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||M==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.N.computeUsesFullLockup=function(){var M,q=(M=this.data)==null?void 0:M.post,G;M=(G=_.C(q,xqd))==null?void 0:G.surface;var K;G=(K=_.C(q,S6J))==null?void 0:K.originalPost;var n;if(K=M||((n=_.C(G,xqd))==null?void 0:n.surface))return!this.computeUsesCompactLockup(K)&&this.useUpdatedRepostUi;var E;return((E=_.C(q,S6J))==null?void 0:E.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Yd.Object.defineProperties(SB.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var M,q;return((q=_.C((M=this.data)==null?void 0:M.post,xqd))==null?void 0:q.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.useUpdatedRepostUi}}});
SB.prototype.onYtCommentModerationPanelEmpty=SB.prototype.onYtCommentModerationPanelEmpty;SB.prototype.onStampFinished=SB.prototype.onStampFinished;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],SB.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],SB.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],SB.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],SB.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],SB.prototype,"roundedContainer",void 0);_.T([_.B({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.r("design:type",Boolean)],SB.prototype,"hideBorder",void 0);_.T([_.B({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.r("design:type",Boolean)],SB.prototype,"isCompact",void 0);
_.T([_.B({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.r("design:type",Boolean)],SB.prototype,"usesFullLockup",void 0);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SB.prototype,"onStampFinished",null);
_.T([_.GQ("ytd-comment-moderation-panel-empty"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],SB.prototype,"onYtCommentModerationPanelEmpty",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SB.prototype,"isInEngagementPanel",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SB.prototype,"useUpdatedRepostUi",null);
_.T([_.b({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],SB);
_.z(SB,"ytd-backstage-post-thread-renderer",function(){if(G28!==void 0)return G28;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return G28=M},{mode:1});var Kc2;var T4=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(T4,_.Q);T4.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
T4.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var M=this.data.thumbnail.thumbnails;this.isDarkTheme&&(M=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(M=_.TE(M,24,void 0,"height"))?M:void 0}};
T4.prototype.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
T4.prototype.computeHasText=function(){var M;return!((M=this.data)==null||!M.text)};
_.Yd.Object.defineProperties(T4.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.SM(this.bannerImageUrl))+'");'}}});
T4.prototype.computeHasText=T4.prototype.computeHasText;T4.prototype.computeBannerImageUrl=T4.prototype.computeBannerImageUrl;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],T4.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],T4.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],T4.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],T4.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",String)],T4.prototype,"bannerImageUrl",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.r("design:type",Boolean)],T4.prototype,"hasText",void 0);_.T([_.KT("data","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T4.prototype,"computeBannerImageUrl",null);
_.T([_.KT("data.text"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T4.prototype,"computeHasText",null);_.T([_.c("bannerImageUrl"),_.r("design:type",Object),_.r("design:paramtypes",[])],T4.prototype,"bannerStyle",null);_.T([_.b({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],T4);
_.z(T4,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(Kc2!==void 0)return Kc2;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Kc2=M},{mode:1});var nfS;var rX=function(){return _.Q.apply(this,arguments)||this};
_.l(rX,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],rX.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],rX.prototype,"data",void 0);_.T([_.b({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],rX);
_.z(rX,"ytd-backstage-zero-state-renderer",function(){if(nfS!==void 0)return nfS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return nfS=M},{mode:1});var EfM;var jB=function(){return _.Q.apply(this,arguments)||this};
_.l(jB,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jB.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],jB.prototype,"icon",void 0);_.T([_.b({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],jB);
_.z(jB,"ytd-post-filter-zero-state-renderer",function(){if(EfM!==void 0)return EfM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return EfM=M},{mode:1});var Nv8;var k2M={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Vg=function(){return _.Q.apply(this,arguments)||this};
_.l(Vg,_.Q);Vg.prototype.configureRendererStamper=function(){return k2M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Vg.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Vg.prototype,"rendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Vg.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],Vg.prototype,"icon",void 0);_.T([_.b({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Vg);
_.z(Vg,"ytd-post-scheduling-zero-state-renderer",function(){if(Nv8!==void 0)return Nv8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Nv8=M},{mode:1});var pH9;var RR=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return M};
_.l(RR,_.Q);RR.prototype.onTabsActivate=function(M){this.data&&this.data.tabs&&_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[M.detail.selected].navigationEndpoint})};
RR.prototype.shouldShowTotalCount=function(M){return M&&M.totalCount!==void 0};
RR.prototype.handleUpdatePostsTotalCountAction=function(M){var q=this.get(["data.tabs",1,"totalCount"]),G=this.get("updatePostsTotalCountAction.updateType",M);M=this.get("updatePostsTotalCountAction.number",M);q!==void 0&&G!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&M&&(G==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(q)+M):G==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(q)-M))};
_.Yd.Object.defineProperties(RR.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var M=0,q=this.data.tabs.length;M<q;M++)if(this.data.tabs[M].selected)return M;return 0}}});
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],RR.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],RR.prototype,"rendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],RR.prototype,"data",void 0);_.T([_.c("data.tabs"),_.r("design:type",Number),_.r("design:paramtypes",[])],RR.prototype,"selected",null);_.T([_.b({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],RR);
_.z(RR,"ytd-post-stream-filter-renderer",function(){if(pH9!==void 0)return pH9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return pH9=M},{mode:1});var yk9;var fJ=function(){return _.Q.apply(this,arguments)||this};
_.l(fJ,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],fJ.prototype,"kevlarBehaviors",void 0);_.T([_.B(),_.r("design:type",Object)],fJ.prototype,"data",void 0);_.T([_.b({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],fJ);
_.z(fJ,"ytd-channel-age-gate-renderer",function(){if(yk9!==void 0)return yk9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return yk9=M},{mode:1});var LcP;_.hC("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var FM=function(){var M=_.Q.apply(this,arguments)||this;M.data=null;return M};
_.l(FM,_.Q);FM.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Yd.Object.defineProperties(FM.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.data)==null?0:(q=M.title)==null?0:(G=q.runs)==null?0:G.length)?147:160}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],FM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],FM.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],FM.prototype,"imageSizePx",null);_.T([_.b({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],FM);
_.z(FM,"ytd-channel-owner-empty-state-renderer",function(){if(LcP!==void 0)return LcP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return LcP=M},{mode:1});var Yr9;var Wc9;var H9=function(){var M=_.Q.apply(this,arguments)||this;M.boundSubmitSearch=function(){M.submitSearch()};
M.boundClearSearch=function(){M.clearSearch()};
return M};
_.l(H9,_.Q);_.N=H9.prototype;_.N.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]]"}}}}}};
_.N.toggleClearButton=function(){this.hideClearButton=bj9||!this.input.value};
_.N.submitOnEnterKeyUp=function(M){M.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.N.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.N.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.N.submit=function(){_.jP(this.hostElement,"search-query-changed",this.input.value)};
H9.prototype.toggleClearButton=H9.prototype.toggleClearButton;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],H9.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],H9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],H9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],H9.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],H9.prototype,"hideClearButton",void 0);_.T([_.B(),_.r("design:type",Object)],H9.prototype,"boundSubmitSearch",void 0);_.T([_.B(),_.r("design:type",Object)],H9.prototype,"boundClearSearch",void 0);_.T([_.ET("#input"),_.r("design:type",Object)],H9.prototype,"input",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],H9.prototype,"toggleClearButton",null);
_.T([_.b({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],H9);
_.z(H9,"ytd-channel-switcher-search-box-renderer",function(){if(Wc9!==void 0)return Wc9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Wc9=M},{mode:1});var Akf;var eB=function(){var M=_.Q.apply(this,arguments)||this;M.boundSubmit=function(){M.submit()};
return M};
_.l(eB,_.Q);_.N=eB.prototype;_.N.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"}}}}};
_.N.ready=function(){var M=this;this.form.addEventListener("submit",function(q){return M.onSubmit(q)})};
_.N.onSubmit=function(M){M.preventDefault();return!1};
_.N.toggleClearButton=function(){this.hideClearButton=bj9||!this.input.value};
_.N.submitOnEnterKeyUp=function(M){M.keyCode===13&&this.submit()};
_.N.submit=function(){var M=this.data.endpoint,q=(0,_.xP.unsafeClone)(M);_.C(q,_.n_)?_.C(q,_.n_).query=this.input.value:_.C(q,_.Ep)&&(_.C(q,_.Ep).query=this.input.value);var G=_.C(q.commandMetadata,_.Mg);(G==null?0:G.url)?(G.url=_.F4(G.url,"query",this.input.value),_.jP(this.hostElement,"yt-navigate",{endpoint:q})):_.C(q,O$x)?(_.C(q,O$x).channelSwitcherQuery=this.input.value,_.AL().resolve(_.vR).resolveCommand(q,{form:{element:this.hostElement}})):(M=Error("Ph`"+JSON.stringify(M)),_.T6(M))};
_.N.getUrl=function(M){return this.get("commandMetadata.webCommandMetadata.url",M)};
eB.prototype.toggleClearButton=eB.prototype.toggleClearButton;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],eB.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],eB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],eB.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],eB.prototype,"hideClearButton",void 0);
_.T([_.B(),_.r("design:type",Object)],eB.prototype,"boundSubmit",void 0);_.T([_.ET("#form"),_.r("design:type",HTMLFormElement)],eB.prototype,"form",void 0);_.T([_.ET("#input"),_.r("design:type",Object)],eB.prototype,"input",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eB.prototype,"toggleClearButton",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],eB);
_.z(eB,"ytd-search-box-renderer",function(){if(Akf!==void 0)return Akf;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-search-box-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<form id="form" action="[[getUrl(data.endpoint)]]" class="style-scope ytd-search-box-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[getSimpleString(data.placeholderText)]]" max-length="100" name="query" no-label-float="" use-v2-underline="" value="[[getSimpleString(data.searchText)]]" on-input="toggleClearButton" on-keyup="submitOnEnterKeyUp" class="style-scope ytd-search-box-renderer">\n    <div id="search-button" slot="prefix" prefix="" class="style-scope ytd-search-box-renderer"></div>\n    <div id="clear-button" slot="suffix" suffix="" class="style-scope ytd-search-box-renderer"></div>\n  </tp-yt-paper-input>\n</form>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Akf=M},{mode:2});var $h=function(){var M=_.Q.apply(this,arguments)||this;M.showSearchBox=!0;return M};
_.l($h,_.Q);$h.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$h.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],$h.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$h.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$h.prototype,"showSearchBox",void 0);_.T([_.b({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],$h);
_.z($h,"ytd-channel-switcher-header-renderer",function(){if(Yr9!==void 0)return Yr9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Yr9=M},{mode:1});var dcP;var vfP;var sf=function(){var M=_.Q.apply(this,arguments)||this;M.isDisplayed=!0;return M};
_.l(sf,_.Q);_.N=sf.prototype;_.N.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.dataChanged=function(){this.isDisplayed=!0};
_.N.computeType=function(M){return M||"UNKNOWN"};
_.N.onYtServiceRequestCompleted=function(M){M.stopPropagation();this.isDisplayed=!1};
_.N.onClose=function(){this.isDisplayed=!1};
sf.prototype.onYtServiceRequestCompleted=sf.prototype.onYtServiceRequestCompleted;sf.prototype.dataChanged=sf.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],sf.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],sf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sf.prototype,"data",void 0);
_.T([_.B({computed:"computeType(data.type)",reflectToAttribute:!0}),_.r("design:type",String)],sf.prototype,"type",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],sf.prototype,"isDisplayed",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sf.prototype,"dataChanged",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],sf.prototype,"onYtServiceRequestCompleted",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],sf);
_.z(sf,"ytd-alert-with-button-renderer",function(){if(vfP!==void 0)return vfP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return vfP=M},{mode:1});var Mi=function(){var M=_.Q.apply(this,arguments)||this;M.noResult=!1;M.enableAlertBanner=!1;M.dismissedAlertBanner=!1;M.hideCreateChannelButton=!1;M.boundDismissAlertBanner=function(){M.dismissAlertBanner()};
M.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return M};
_.l(Mi,_.Q);_.N=Mi.prototype;_.N.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.N.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.N.updateChannelSwitcherAction=function(M){var q;M=(q=_.C(M,dSP))==null?void 0:q.page;_.C(M,Atf)!==void 0&&(this.data=_.C(M,Atf))};
_.N.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]]"}}}}}};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.N.searchQueryChanged=function(M,q){if(this.data&&this.data.contents&&this.data.contents.length){M=[];var G=[];this.hideCreateChannelButton=this.noResult=!1;for(var K=document.querySelectorAll("ytd-account-item-renderer"),n=_.k(K),E=n.next();!E.done;E=n.next())E=E.value,G.push(E),E.style.display="block";this.resetRightBorder(G);if(q){this.hideCreateChannelButton=!0;for(G=1;G<this.data.contents.length;G++)if(E=this.data.contents[G],_.C(E,vrp)){var p=void 0,y=void 0;n=(p=_.C(E,vrp))==null?void 0:(y=
p.accountName)==null?void 0:y.simpleText;y=p=void 0;E=(p=_.C(E,vrp))==null?void 0:(y=p.channelHandle)==null?void 0:y.simpleText;(p=K[G-1])&&n&&_.Wy(n,q)?M.push(p):_.w("enable_handle_search_on_channel_switcher")&&p&&E&&_.Wy(E.toString(),q.toString())?M.push(p):p.style.display="none"}M.length===0&&(this.noResult=!0);this.resetRightBorder(M)}}};
_.N.resetRightBorder=function(M){for(var q=0;q<M.length;q++)M[q].style.borderRight=!this.hideCreateChannelButton&&(q+2)%3===0||this.hideCreateChannelButton&&(q+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.N.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.N.setShowSearchBox=function(M){if(M&&M.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var q=0;q<M.contents.length;q++)_.C(M.contents[q],_.Z$)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.N.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Yd.Object.defineProperties(Mi.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.contents)}}});
Mi.prototype.onContinuationItemsUpdated=Mi.prototype.onContinuationItemsUpdated;Mi.prototype.searchQueryChanged=Mi.prototype.searchQueryChanged;Mi.prototype.onDataChanged=Mi.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Mi.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Mi.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Mi.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],Mi.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Mi.prototype,"data",void 0);_.T([_.ET("ytd-channel-switcher-header-renderer"),_.r("design:type",Object)],Mi.prototype,"channelSwitcherHeaderRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],Mi.prototype,"noResult",void 0);
_.T([_.B(),_.r("design:type",Object)],Mi.prototype,"enableAlertBanner",void 0);_.T([_.B(),_.r("design:type",Object)],Mi.prototype,"dismissedAlertBanner",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Mi.prototype,"hideCreateChannelButton",void 0);_.T([_.c("data.contents"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Mi.prototype,"isLoading",null);_.T([_.B(),_.r("design:type",Object)],Mi.prototype,"boundDismissAlertBanner",void 0);
_.T([_.B({computed:"computeButtonOverride()"}),_.r("design:type",Object)],Mi.prototype,"buttonOverride",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Mi.prototype,"onDataChanged",null);_.T([_.GQ("search-query-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,String]),_.r("design:returntype")],Mi.prototype,"searchQueryChanged",null);
_.T([_.GQ("yt-next-continuation-data-updated"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Mi.prototype,"onContinuationItemsUpdated",null);_.T([_.b({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],Mi);
_.z(Mi,"ytd-channel-switcher-page-renderer",function(){if(dcP!==void 0)return dcP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return dcP=M},{mode:1});var hLv;var tIP;var qi=function(){var M=_.Q.apply(this,arguments)||this;M.images=[];M.selectedImageIndex=0;return M};
_.l(qi,_.Q);_.N=qi.prototype;
_.N.ready=function(){_.Yj(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Yj(this.JSC$15755_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Yj(this.JSC$15755_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Yj(this.JSC$15755_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.N.onThumbnailClick=function(M){if(M=M.event_.detail)this.selectedImageIndex=this.images.indexOf(M)};
_.N.updateImageThumbnails=function(M){M=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:M.event_.detail});this.images.splice(this.selectedImageIndex,1,M);this.images=[].concat(_.Ui(this.images))};
_.N.cancelImageRepositions=function(){this.selectedImageIndex=0;_.jP(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.N.saveImageRepositions=function(){this.selectedImageIndex=0;_.jP(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Yd.Object.defineProperties(qi.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var M=this;return(this.images||[]).map(function(q,G){return{image:q,selected:G===M.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],qi.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("ytd-backstage-image-preview-renderer"),_.r("design:type",Object)],qi.prototype,"JSC$15755_imagePreviewContainer",void 0);_.T([_.ET(".thumbnail-images-container"),_.r("design:type",HTMLElement)],qi.prototype,"thumbnailImagesContainer",void 0);_.T([_.B(),_.r("design:type",Array)],qi.prototype,"images",void 0);
_.T([_.B(),_.r("design:type",Object)],qi.prototype,"repositionInstructions",void 0);_.T([_.B(),_.r("design:type",Object)],qi.prototype,"selectedImageIndex",void 0);_.T([_.c("images","selectedImageIndex"),_.r("design:type",Array),_.r("design:paramtypes",[])],qi.prototype,"thumbnailRendererDatas",null);_.T([_.c("images","selectedImageIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],qi.prototype,"selectedImageData",null);
_.T([_.b({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],qi);
_.z(qi,"ytd-backstage-multi-image-reposition-renderer",function(){if(tIP!==void 0)return tIP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return tIP=M},{mode:1});var G5=function(M,q){_.w6.call(this);this.uploadUrl=M;this.channelId=q;this.imagesUploadData=[]};
_.l(G5,_.w6);G5.prototype.getAllUploadStatuses=function(){var M=this,q,G,K;return _.L(function(n){if(n.nextAddress==1)return n.yield(OaP(M),2);q=n.yieldResult;G=q.get("succeed");K=q.get("failed");return n.return(G.concat(K))})};
var CTM=function(M){var q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(OaP(M),2);q=K.yieldResult;G=q.get("failed");G.length>0&&wHI(M,G);return K.return(M.getAllUploadStatuses())})},OaP=function(M){var q,G,K,n,E,p,y;
return _.L(function(Y){if(Y.nextAddress==1)return q=new Map,Y.yield(Promise.allSettled(M.imagesUploadData.map(function(A){return A.uploadPromise})),2);
G=Y.yieldResult;K=[];n=_.k(G);for(E=n.next();!E.done;E=n.next())p=E.value,p.status==="fulfilled"&&K.push(p.value);y=M.imagesUploadData.map(function(A){return A.image}).filter(function(A){return K.every(function(v){return v.id!==A.id})});
q.set("succeed",K);q.set("failed",y);return Y.return(q)})},wHI=function(M,q){q=_.k(q);
for(var G=q.next();!G.done;G=q.next()){var K=M;G=G.value;avv(K,G.id)>=0&&K.cancel(G.id);var n=new ofp(G),E=_.KHp(K.uploadUrl,{"X-YouTube-ChannelId":K.channelId},G.imageBlob);n.transfer=E;n.uploadPromise=lvM(E,G);K.imagesUploadData.push(n);E.run()}};
G5.prototype.cancel=function(M){var q=avv(this,M);q!==-1&&((q=this.imagesUploadData[q].transfer)&&q.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(G){return G.image.id!==M}))};
var avv=function(M,q){return M.imagesUploadData.findIndex(function(G){return G.image.id===q})},lvM=function(M,q){return new Promise(function(G,K){M.listen("l",function(){var n=M.getResponseText();
n?(n=JSON.parse(n).encryptedBlobId,q.encryptedBlobId=n,G(q)):K("upload failed")});
M.listen("n",function(){K("upload failed")})})},ofp=function(M){this.image=M};var spw=function(M,q,G,K,n){this.id=M;this.imageBlob=q;this.localImageSrc=G;this.naturalWidth=K;this.naturalHeight=n;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 XHM=[".jpeg",".jpg",".png"],K4=function(){var M=_.Q.apply(this,arguments)||this;M.showImagesPreview=!1;M.pollOptions=[];M.errorMessage="";M.optionPlaceholderText="";M.optionDefaultText="";M.JSC$15766_imageId=0;M.maxFileSizeMb=0;M.maxAspectRatio=0;M.invalidFileSizeError="";M.invalidAspectRatioError="";M.invalidFileTypeError="";M.imageSelector=new tr(null,"single_file",XHM);return M};
_.l(K4,_.Q);_.N=K4.prototype;_.N.ready=function(){_.Yj(this.imageSelector,"j",this.onImageSelect,!1,this);_.Yj(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Yj(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.N.dataChanged=function(){var M,q,G=_.C((M=this.data)==null?void 0:(q=M.cellTemplate)==null?void 0:q.onEmptyCellTap,fIP);if(G&&G.uploadUrl&&G.channelId){var K;this.maxFileSizeMb=((K=G.imageValidationInfo)==null?void 0:K.maxFileSizeMb)||0;var n;this.maxAspectRatio=((n=G.imageValidationInfo)==null?void 0:n.allowedMaxAspectRatio)||0;var E;this.invalidFileSizeError=this.getSimpleString((E=this.data)==null?void 0:E.invalidFileSizeError);var p;this.invalidAspectRatioError=this.getSimpleString((p=this.data)==
null?void 0:p.invalidAspectRatioError);var y;this.invalidFileTypeError=this.getSimpleString((y=this.data)==null?void 0:y.invalidFileTypeError);this.uploadManager=new G5(G.uploadUrl,G.channelId)}};
_.N.onEditorInfoChange=function(){this.optionPlaceholderText=_.UX(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.UX(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.N.observeAddImageError=function(){this.errorMessage!==""&&_.jP(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.N.onPollOptionsChange=function(){for(var M=!1,q=[],G=0;G<this.pollOptions.length;G++){var K=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(G+1);this.pollOptions[G].placeholderText!==K?(M=!0,q.push(Object.assign({},this.pollOptions[G],{placeholderText:K}))):q.push(this.pollOptions[G])}M&&(this.pollOptions=q);this.isValid()?_.jP(this.hostElement,"yt-commentbox-post-enable"):_.jP(this.hostElement,"yt-commentbox-post-disable")};
_.N.createPollOptions=function(M){var q=[],G;M=(G=M==null?void 0:M.minPollOptions)!=null?G:0;for(G=0;G<M;G++)q.push(this.createPollOption());return q};
_.N.onImageSelect=function(M){var q=this,G,K,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1){if(q.selectedImageIndex===void 0)return Y.jumpTo(0);G=M.files[0];q.errorMessage="";K=q.validateImage(G);if(K!=="")return q.errorMessage=K,Y.return();n=new N1(q.maxAspectRatio,!1,!0);return Y.yield(n.transform(G),3)}if(Y.nextAddress!=4)return E=Y.yieldResult,E.transformedData?E.invalidAspectRatio?(q.errorMessage=q.invalidAspectRatioError,Y.return()):Y.yield(MdY(q.JSC$15766_imageId,M.files[0],E.transformedData),
4):(q.errorMessage=q.invalidFileTypeError,Y.return());p=Y.yieldResult;q.JSC$15766_imageId++;wHI(q.uploadManager,[p]);y=Object.assign({},q.pollOptions[q.selectedImageIndex],{image:p});q.pollOptions.splice(q.selectedImageIndex,1,y);q.refreshPollOptions();_.jP(q.hostElement,"yt-backstage-poll-image-select");_.gL(Y)})};
_.N.validateImage=function(M){return M.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.N.refreshPollOptions=function(){this.pollOptions=[].concat(_.Ui(this.pollOptions))};
_.N.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Ui(this.pollOptions),[this.createPollOption()]))};
_.N.onRemovePollOption=function(M){var q=this.pollOptions[M.model.index];q&&q.image&&this.uploadManager.cancel(q.image.id);this.pollOptions.splice(M.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.jP(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.N.onTextInput=function(){this.refreshPollOptions()};
_.N.onImageButtonClick=function(M){this.selectedImageIndex=M.model.index;this.imageSelector.click()};
_.N.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.N.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.N.saveImageRepositions=function(M){M=M.event_.detail;for(var q=0,G=[],K=_.k(this.pollOptions),n=K.next();!n.done;n=K.next())n=n.value,n.image!==void 0?(n=Object.assign({},n,{image:M[q]}),G.push(n),q++):G.push(n);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Ui(G))};
_.N.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 M=0,q=_.k(this.pollOptions),G=q.next();!G.done;G=q.next())if(G=G.value,G.optionText.trim()!==""||G.image!==void 0){if(!G.image||this.hasCustomOptionText&&G.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;M++}return M>=Number(this.editorInfo.minPollOptions)};
_.N.getAllUploadStatuses=function(){var M=this,q,G,K,n;return _.L(function(E){if(E.nextAddress==1)return E.yield(M.uploadManager.getAllUploadStatuses(),2);q=E.yieldResult;G=_.k(q);for(K=G.next();!K.done;K=G.next())if(n=K.value,n.encryptedBlobId===void 0)return E.return(CTM(M.uploadManager));return E.return(q)})};
_.N.getPostCreateOptions=function(){for(var M=[],q=_.k(this.pollOptions),G=q.next();!G.done;G=q.next())G=G.value,G.image!==void 0&&M.push({text:this.hasCustomOptionText?G.optionText:G.placeholderText,image:G.image});return M};
_.N.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.N.createButtonRenderer=function(M,q){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:M,accessibilityData:{accessibilityData:{label:this.getSimpleString(M)}},isDisabled:q}};
_.N.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.N.computeThumbnailRendererData=function(M){return M?{image:M,selected:!1}:void 0};
_.N.getSimpleString=function(M){return _.UX(M)};
_.N.updateOptionTextFromBinding=function(M){if(M.target){var q=Array.from(_.f_(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(M.target);if(q>=0){var G;this.pollOptions[q].optionText=(G=M.detail.value)!=null?G:""}}};
_.Yd.Object.defineProperties(K4.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var M,q;return this.pollOptions.length<((q=(M=this.editorInfo)==null?void 0:M.maxPollOptions)!=null?q:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(M){return M.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(M){return M.image}).map(function(M){return M.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(M){return M.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var M,q=(M=this.data)==null?void 0:M.addOptionButtonText;return q?this.createButtonRenderer(q,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var M,q=(M=this.data)==null?void 0:M.repositionImagesButtonLabel;return q?this.createButtonRenderer(q,!this.hasImages):void 0}}});
K4.prototype.onPollOptionsChange=K4.prototype.onPollOptionsChange;K4.prototype.observeAddImageError=K4.prototype.observeAddImageError;K4.prototype.onEditorInfoChange=K4.prototype.onEditorInfoChange;K4.prototype.dataChanged=K4.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],K4.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("ytd-backstage-multi-image-reposition-renderer"),_.r("design:type",Object)],K4.prototype,"imageRepositionContainer",void 0);
_.T([_.B(),_.r("design:type",Object)],K4.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],K4.prototype,"editorInfo",void 0);_.T([_.B(),_.r("design:type",G5)],K4.prototype,"uploadManager",void 0);_.T([_.B(),_.r("design:type",Object)],K4.prototype,"showImagesPreview",void 0);_.T([_.B(),_.r("design:type",Array)],K4.prototype,"pollOptions",void 0);_.T([_.B(),_.r("design:type",Object)],K4.prototype,"errorMessage",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K4.prototype,"dataChanged",null);_.T([_.yO("editorInfo"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K4.prototype,"onEditorInfoChange",null);_.T([_.KT("errorMessage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K4.prototype,"observeAddImageError",null);
_.T([_.yO("pollOptions"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K4.prototype,"onPollOptionsChange",null);_.T([_.c("pollOptions","editorInfo"),_.r("design:type",Object),_.r("design:paramtypes",[])],K4.prototype,"isAllowedToAddOption",null);_.T([_.c("pollOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],K4.prototype,"hasImages",null);
_.T([_.c("pollOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],K4.prototype,"imagesToReposition",null);_.T([_.c("pollOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],K4.prototype,"hasCustomOptionText",null);_.T([_.c("data","isAllowedToAddOption"),_.r("design:type",Object),_.r("design:paramtypes",[])],K4.prototype,"addOptionButton",null);_.T([_.c("data","hasImages"),_.r("design:type",Object),_.r("design:paramtypes",[])],K4.prototype,"repositionImagesButton",null);
_.T([_.b({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],K4);
_.z(K4,"ytd-backstage-image-poll-editor-renderer",function(){if(hLv!==void 0)return hLv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return hLv=M},{mode:2});var PTS={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 ia9;var n4=function(){var M=_.Q.apply(this,arguments)||this;M.a11yConfig=PTS;M.imageDisplayOffsetTop=0;M.imageDisplayOffsetLeft=0;M.pickerDisplayOffsetTop=0;M.pickerDisplayOffsetLeft=0;M.showPreviewContainer=!0;M.startPicker=!1;M.repositionOptional=!1;M.editOnlyMode=!1;M.savedImageDisplayOffsetTop=0;M.savedImageDisplayOffsetLeft=0;return M};
_.l(n4,_.Q);_.N=n4.prototype;_.N.created=function(){_.jv.requestAvailability()};
_.N.ready=function(){};
_.N.onArrowKeysDown=function(M){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){M.detail.keyboardEvent.preventDefault();var q=0,G=0,K="";switch(M.detail.keyboardEvent.key){case "ArrowUp":q3y(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?K=this.a11yConfig.reachBottomOfImage:q=this.imageHeight*.05*-1;break;case "ArrowDown":q3y(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?K=this.a11yConfig.reachTopOfImage:
q=this.imageHeight*.05;break;case "ArrowLeft":q3y(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?K=this.a11yConfig.reachRightOfImage:G=this.imageWidth*.05*-1;break;case "ArrowRight":q3y(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?K=this.a11yConfig.reachLeftOfImage:G=this.imageWidth*.05}K&&_.Ge(K)&&_.jP(this.hostElement,"iron-announce",{text:_.Ge(K)});if(G||q)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+q)),M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),M=_.Ge(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+G)),M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),M=_.Ge(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})),M&&_.jP(this.hostElement,"iron-announce",{text:M})}};
_.N.getPreviewPosition=function(M,q,G,K){return Math.round(100*(M+q*.5-G)/K)};
_.N.calculateDisplayPosition=function(){var M=this.imageData.naturalWidth,q=this.imageData.naturalHeight;this.displayScale=Math.max(200/M,200/q);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var G=M*this.displayScale*this.imageData.previewCoordinates.left,K=q*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=q>M?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-G;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=M>q?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-K;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=M*this.displayScale;this.imageHeight=q*this.displayScale};
_.N.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.N.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.N.getSignedPosition=function(M,q,G){return q==="X"&&_.R9("HTML_DIR")==="rtl"?G==="-"?M+"px":M*-1+"px":G==="-"?M*-1+"px":M+"px"};
_.N.pickerMove=function(M){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var q=this.pickerOffsetX-M.clientX,G=this.pickerOffsetY-M.clientY;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
G)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-q))}};
_.N.pickerMoveStart=function(M){this.startPicker=!0;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY};
_.N.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var M=this.generateCropPreview();M&&_.jP(this.hostElement,"ytd-backstage-image-preview-coordinates-update",M)};
_.N.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.jP(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.N.deleteImage=function(){_.jP(this.hostElement,"ytd-backstage-image-preview-delete")};
_.N.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.N.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var M=this.generateCropPreview();M&&_.jP(this.hostElement,"ytd-backstage-image-preview-coordinates-save",M)};
_.N.getPreviewOffset=function(M,q,G){return q&&M?(G==="X"&&_.R9("HTML_DIR")==="rtl"?300/q*M:300/q*M*-1)+"px":"0px"};
_.N.getSimpleText=function(M){return M?_.UX(M):""};
_.N.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}};
_.Yd.Object.defineProperties(n4.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Ge(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.Ge(this.a11yConfig.verticalRepositionInstruction)}M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Ge(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.Ge(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 M,q,G=(M=this.instruction)==null?void 0:(q=M.previewInstruction)==null?void 0:q.editButtonLabel;return G?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K,n=this.editOnlyMode?(M=this.instruction)==null?void 0:(q=M.editInstruction)==null?void 0:q.saveImagesButtonLabel:(G=this.instruction)==null?void 0:(K=G.editInstruction)==null?void 0:K.saveButtonLabel;return n?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:n,accessibilityData:{accessibilityData:{label:this.getSimpleText(n)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.instruction)==null?void 0:(q=M.previewInstruction)==null?void 0:q.deleteButtonLabel;return G?{size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.instruction)==null?void 0:(q=M.editInstruction)==null?void 0:q.cancelButtonLabel;M=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return G?{style:M,size:"SIZE_SMALL",text:G,accessibilityData:{accessibilityData:{label:this.getSimpleText(G)}}}:void 0}},
cropOffsetTop:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetTop===void 0||this.pickerDisplayOffsetTop===void 0?0:this.pickerDisplayOffsetTop-this.imageDisplayOffsetTop}},
cropOffsetLeft:{configurable:!0,enumerable:!0,get:function(){return this.imageDisplayOffsetLeft===void 0||this.pickerDisplayOffsetLeft===void 0?0:this.pickerDisplayOffsetLeft-this.imageDisplayOffsetLeft}},
pickerBackgroundStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.imageDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.imageDisplayOffsetTop,"Y",void 0)+");"}},
pickerDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return"width:"+this.pickerSize+"px;height:"+this.pickerSize+"px;transform:translateX("+this.getSignedPosition(this.pickerDisplayOffsetLeft,"X",void 0)+") translateY("+this.getSignedPosition(this.pickerDisplayOffsetTop,"Y",void 0)+");"}},
imageInPickerStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getSignedPosition(this.cropOffsetLeft,"X","-")+") translateY("+this.getSignedPosition(this.cropOffsetTop,"Y","-")+");"}},
previewClipperStyle:{configurable:!0,enumerable:!0,get:function(){return"transform:translateX("+this.getPreviewOffset(this.cropOffsetLeft,this.pickerSize,"X")+") translateY("+this.getPreviewOffset(this.cropOffsetTop,this.pickerSize,"Y")+");"}},
pickerModeStyle:{configurable:!0,enumerable:!0,get:function(){return this.showPreviewContainer?"preview":"edit"}}});
n4.prototype.onEditOnlyModeUpdate=n4.prototype.onEditOnlyModeUpdate;n4.prototype.onImageChange=n4.prototype.onImageChange;_.T([_.B(),_.r("design:type",spw)],n4.prototype,"imageData",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"instruction",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"a11yConfig",void 0);_.T([_.B(),_.r("design:type",Number)],n4.prototype,"imageWidth",void 0);_.T([_.B(),_.r("design:type",Number)],n4.prototype,"imageHeight",void 0);
_.T([_.B(),_.r("design:type",Number)],n4.prototype,"displayScale",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"imageDisplayOffsetTop",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"imageDisplayOffsetLeft",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"pickerDisplayOffsetTop",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"pickerDisplayOffsetLeft",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"showPreviewContainer",void 0);
_.T([_.B(),_.r("design:type",Object)],n4.prototype,"startPicker",void 0);_.T([_.B(),_.r("design:type",Number)],n4.prototype,"pickerOffsetX",void 0);_.T([_.B(),_.r("design:type",Number)],n4.prototype,"pickerOffsetY",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"repositionOptional",void 0);_.T([_.B(),_.r("design:type",Object)],n4.prototype,"editOnlyMode",void 0);_.T([_.ET("#picker-container"),_.r("design:type",HTMLElement)],n4.prototype,"JSC$15779_pickerContainer",void 0);
_.T([_.ET("#picker"),_.r("design:type",HTMLElement)],n4.prototype,"picker",void 0);_.T([_.ET("#preview-clipper"),_.r("design:type",HTMLElement)],n4.prototype,"previewClipper",void 0);_.T([_.ET("#image-in-picker-background"),_.r("design:type",HTMLImageElement)],n4.prototype,"JSC$15779_imageInBackground",void 0);_.T([_.ET("#image-in-picker"),_.r("design:type",HTMLImageElement)],n4.prototype,"JSC$15779_imageInPicker",void 0);
_.T([_.ET("#image-in-preview-clipper"),_.r("design:type",HTMLImageElement)],n4.prototype,"JSC$15779_imageInPreviewClipper",void 0);_.T([_.c("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],n4.prototype,"altLabelForImage",null);_.T([_.c("imageHeight","imageWidth"),_.r("design:type",Number),_.r("design:paramtypes",[])],n4.prototype,"pickerSize",null);
_.T([_.c("imageHeight","imageWidth"),_.r("design:type",Object),_.r("design:paramtypes",[])],n4.prototype,"imageOrientationStyle",null);_.T([_.c("instruction"),_.r("design:type",Object),_.r("design:paramtypes",[])],n4.prototype,"editButton",null);_.T([_.c("instruction","editOnlyMode"),_.r("design:type",Object),_.r("design:paramtypes",[])],n4.prototype,"saveButton",null);_.T([_.c("instruction"),_.r("design:type",Object),_.r("design:paramtypes",[])],n4.prototype,"deleteButton",null);
_.T([_.c("instruction","editOnlyMode"),_.r("design:type",Object),_.r("design:paramtypes",[])],n4.prototype,"cancelButton",null);_.T([_.c("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.r("design:type",Number),_.r("design:paramtypes",[])],n4.prototype,"cropOffsetTop",null);_.T([_.c("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.r("design:type",Number),_.r("design:paramtypes",[])],n4.prototype,"cropOffsetLeft",null);
_.T([_.c("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],n4.prototype,"pickerBackgroundStyle",null);_.T([_.c("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],n4.prototype,"pickerDisplayStyle",null);_.T([_.c("cropOffsetLeft","cropOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],n4.prototype,"imageInPickerStyle",null);
_.T([_.c("cropOffsetLeft","cropOffsetTop","pickerSize"),_.r("design:type",String),_.r("design:paramtypes",[])],n4.prototype,"previewClipperStyle",null);_.T([_.yO("imageData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],n4.prototype,"onImageChange",null);_.T([_.yO("editOnlyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],n4.prototype,"onEditOnlyModeUpdate",null);
_.T([_.c("showPreviewContainer"),_.r("design:type",String),_.r("design:paramtypes",[])],n4.prototype,"pickerModeStyle",null);_.T([_.b({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],n4);
_.z(n4,"ytd-backstage-image-preview-renderer",function(){if(ia9!==void 0)return ia9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ia9=M},{mode:1});var ckB;var gfv={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 BvP;var Q$$;var Ef=function(){var M=_.Q.apply(this,arguments)||this;M.a11yConfig=gfv;M.imageDisplayOffsetTop=0;M.imageDisplayOffsetLeft=0;M.pickerDisplayOffsetTop=0;M.pickerDisplayOffsetLeft=0;M.cropCoordinatesSaved=!1;M.previewSize=0;M.startPicker=!1;M.repositionOptional=!1;return M};
_.l(Ef,_.Q);_.N=Ef.prototype;_.N.created=function(){_.jv.requestAvailability()};
_.N.ready=function(){};
_.N.onArrowKeysDown=function(M){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){M.detail.keyboardEvent.preventDefault();var q=0,G=0,K="";switch(M.detail.keyboardEvent.key){case "ArrowUp":Ggu(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?K=this.a11yConfig.reachBottomOfImage:q=this.imageHeight*.05*-1;break;case "ArrowDown":Ggu(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?K=this.a11yConfig.reachTopOfImage:
q=this.imageHeight*.05;break;case "ArrowLeft":Ggu(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?K=this.a11yConfig.reachRightOfImage:G=this.imageWidth*.05*-1;break;case "ArrowRight":Ggu(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?K=this.a11yConfig.reachLeftOfImage:G=this.imageWidth*.05}K&&_.Ge(K)&&_.jP(this.hostElement,"iron-announce",{text:_.Ge(K)});if(G||q)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+q)),M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),M=_.Ge(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+G)),M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),M=_.Ge(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})),M&&_.jP(this.hostElement,"iron-announce",{text:M})}};
_.N.getPreviewPosition=function(M,q,G,K){return Math.round(100*(M+q*.5-G)/K)};
_.N.displayImage=function(){var M=this.JSC$15790_pickerContainer.getBoundingClientRect().width,q=this.JSC$15790_pickerContainer.getBoundingClientRect().height,G=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),K=this.JSC$15790_imageInBackground.naturalWidth,n=this.JSC$15790_imageInBackground.naturalHeight;this.displayScale=Math.max(G/K,G/n);this.imageWidth=K*this.displayScale;this.imageHeight=n*this.displayScale;this.pickerDisplayOffsetLeft=(M-G)/2;this.pickerDisplayOffsetTop=
(q-G)/2;this.imageDisplayOffsetLeft=n>K?this.pickerDisplayOffsetLeft:(M-this.imageWidth)/2;this.imageDisplayOffsetTop=K>n?this.pickerDisplayOffsetTop:(q-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.N.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$15790_imageInBackground.src=this.imageData.toString(),this.JSC$15790_imageInPicker.src=this.imageData.toString(),this.JSC$15790_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.N.getSignedPosition=function(M,q,G){return q==="X"&&_.R9("HTML_DIR")==="rtl"?G==="-"?M+"px":M*-1+"px":G==="-"?M*-1+"px":M+"px"};
_.N.pickerMove=function(M){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var q=this.pickerOffsetX-M.clientX,G=this.pickerOffsetY-M.clientY;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
G)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-q))}};
_.N.pickerMoveStart=function(M){this.startPicker=!0;this.pickerOffsetX=M.clientX;this.pickerOffsetY=M.clientY};
_.N.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.N.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.jP(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.N.getPreviewOffset=function(M,q,G,K){return q&&M&&G?(K==="X"&&_.R9("HTML_DIR")==="rtl"?G/q*M:G/q*M*-1)+"px":"0px"};
_.N.getSimpleText=function(M){return M?_.UX(M):""};
_.N.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var M=this.cropOffsetTop/this.imageHeight,q=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,G=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,K=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.f_(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.jP(this.hostElement,"yt-img-crop-coordinates-update",{top:M,right:q,bottom:G,left:K})}};
_.Yd.Object.defineProperties(Ef.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var M=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.Ge(this.a11yConfig.imageVerticalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.Ge(this.a11yConfig.verticalRepositionInstruction)}M=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.Ge(this.a11yConfig.imageHorizontalPosition,{x_percent:""+M,y_percent:""+(100-M)})+"\n"+_.Ge(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 M,q=(M=this.learnMore.runs[0])==null?void 0:M.navigationEndpoint,G;return((G=_.C(q,_.q6))==null?void 0:G.url)||void 0}}}});
Ef.prototype.onImageDataChange=Ef.prototype.onImageDataChange;_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"imageData",void 0);_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"instruction",void 0);_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"a11yConfig",void 0);_.T([_.B(),_.r("design:type",Number)],Ef.prototype,"imageWidth",void 0);_.T([_.B(),_.r("design:type",Number)],Ef.prototype,"imageHeight",void 0);_.T([_.B(),_.r("design:type",Number)],Ef.prototype,"displayScale",void 0);
_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"imageDisplayOffsetTop",void 0);_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"imageDisplayOffsetLeft",void 0);_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"pickerDisplayOffsetTop",void 0);_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"pickerDisplayOffsetLeft",void 0);_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"cropCoordinatesSaved",void 0);_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"previewSize",void 0);
_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"startPicker",void 0);_.T([_.B(),_.r("design:type",Number)],Ef.prototype,"pickerOffsetX",void 0);_.T([_.B(),_.r("design:type",Number)],Ef.prototype,"pickerOffsetY",void 0);_.T([_.B(),_.r("design:type",Object)],Ef.prototype,"repositionOptional",void 0);_.T([_.ET("#picker-container"),_.r("design:type",HTMLElement)],Ef.prototype,"JSC$15790_pickerContainer",void 0);_.T([_.ET("#picker"),_.r("design:type",HTMLElement)],Ef.prototype,"picker",void 0);
_.T([_.ET("#image-in-picker-background"),_.r("design:type",HTMLImageElement)],Ef.prototype,"JSC$15790_imageInBackground",void 0);_.T([_.ET("#image-in-picker"),_.r("design:type",HTMLImageElement)],Ef.prototype,"JSC$15790_imageInPicker",void 0);_.T([_.ET("#image-in-preview-clipper"),_.r("design:type",HTMLImageElement)],Ef.prototype,"JSC$15790_imageInPreviewClipper",void 0);_.T([_.ET("#full-image-as-preview"),_.r("design:type",HTMLImageElement)],Ef.prototype,"imageAsPreview",void 0);
_.T([_.c("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],Ef.prototype,"altLabelForImage",null);_.T([_.c("imageHeight","imageWidth"),_.r("design:type",Number),_.r("design:paramtypes",[])],Ef.prototype,"pickerSize",null);_.T([_.c("imageHeight","imageWidth"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ef.prototype,"imageOrientationStyle",null);
_.T([_.c("instruction.previewInstruction.editButtonLabel"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ef.prototype,"editButton",null);_.T([_.c("instruction.editInstruction.saveButtonLabel"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ef.prototype,"saveButton",null);_.T([_.c("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.r("design:type",Number),_.r("design:paramtypes",[])],Ef.prototype,"cropOffsetTop",null);
_.T([_.c("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.r("design:type",Number),_.r("design:paramtypes",[])],Ef.prototype,"cropOffsetLeft",null);_.T([_.c("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],Ef.prototype,"pickerBackgroundStyle",null);_.T([_.c("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],Ef.prototype,"pickerDisplayStyle",null);
_.T([_.c("cropOffsetLeft","cropOffsetTop"),_.r("design:type",String),_.r("design:paramtypes",[])],Ef.prototype,"imageInPickerStyle",null);_.T([_.c("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.r("design:type",String),_.r("design:paramtypes",[])],Ef.prototype,"previewClipperStyle",null);_.T([_.KT("imageData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ef.prototype,"onImageDataChange",null);
_.T([_.c("cropCoordinatesSaved"),_.r("design:type",String),_.r("design:paramtypes",[])],Ef.prototype,"pickerModeStyle",null);_.T([_.c("instruction.editInstruction.learnMore"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ef.prototype,"learnMore",null);_.T([_.c("learnMore"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ef.prototype,"learnMoreUrl",null);_.T([_.aO({is:"yt-img-crop-picker",disableElementRegistration:!0})],Ef);
_.z(Ef,"yt-img-crop-picker",function(){if(Q$$===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;BvP===void 0&&(BvP=document.createElement("template"));var K=BvP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Q$$=M}M=Q$$;return M},{mode:2});var Ni=function(){var M=_.Q.apply(this,arguments)||this;M.errorMessage="";M.hasPreview=!1;M.isBackstagePost=!1;M.dismissButtonOverrides={size:"XS"};return M};
_.l(Ni,_.Q);_.N=Ni.prototype;_.N.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"}}}};
_.N.detached=function(){this.removeOverlay()};
_.N.setPreview=function(M){_.f_(this.hostElement).querySelector("#preview-picker").imageData=M;this.hasPreview=!0;_.jP(this.hostElement,"yt-backstage-image-select-preview")};
_.N.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var M=_.f_(this.hostElement).querySelector("#dropzone");M.classList.remove("dragover");M.classList.remove("error");_.jP(this.hostElement,"yt-backstage-image-select-cancel")};
_.N.setupOverlay=function(){var M=this.imageUploadEndpoint;this.removeOverlay();if(M&&M.imageValidationInfo){var q=_.f_(this.hostElement).querySelector("#dropzone"),G=_.f_(this.hostElement).querySelector("#select");this.overlay=new pN(M.uploadUrl,M.channelId,M.imageValidationInfo.maxFileSizeMb,M.imageValidationInfo.allowedMaxAspectRatio,q,G,!0);_.Yj(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Yj(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Yj(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Yj(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Yj(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.N.removeOverlay=function(){this.overlay&&(_.OS(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.OS(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.OS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.OS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.OS(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.N.onDragOver=function(M){var q=_.f_(this.hostElement).querySelector("#dropzone");_.HE(q,"dragover",M.value)};
_.N.onPreview=function(M){this.setPreview(M.value)};
_.N.onImageError=function(M){if(M.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var q;M=(q=this.data)==null?void 0:q.fileSizeError}else if(M.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var G;M=(G=this.data)==null?void 0:G.invalidError}else if(M.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var K;M=(K=this.data)==null?void 0:K.invalidAspectRatioError}else return;this.errorMessage=_.UX(M);_.f_(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.N.onImageAlert=function(M){this.onImageError(M)};
_.N.uploadPromise=function(){var M=this,q=this.overlay&&this.overlay.uploadPromise();if(q)return q.catch(function(){throw Error(M.data?_.UX(M.data.uploadFailureError):"");})};
_.Yd.Object.defineProperties(Ni.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var M,q;if((M=this.data)==null?0:(q=M.icon)==null?0:q.iconType)return _.H4(this.data.icon.iconType)}}});
Ni.prototype.setupOverlay=Ni.prototype.setupOverlay;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Ni.prototype,"rendererStamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ni.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ni.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Ni.prototype,"imageUploadEndpoint",void 0);_.T([_.B(),_.r("design:type",Object)],Ni.prototype,"errorMessage",void 0);
_.T([_.B(),_.r("design:type",pN)],Ni.prototype,"overlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Ni.prototype,"hasPreview",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Ni.prototype,"isBackstagePost",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ni.prototype,"selectionCancel",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ni.prototype,"previewCancel",null);
_.T([_.c("data.icon.iconType"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ni.prototype,"icon",null);_.T([_.B(),_.r("design:type",Object)],Ni.prototype,"dismissButtonOverrides",void 0);_.T([_.KT("imageUploadEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ni.prototype,"setupOverlay",null);_.T([_.b({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Ni);
_.z(Ni,"ytd-backstage-image-select-renderer",function(){if(ckB!==void 0)return ckB;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return ckB=M},{mode:1});var Iv2;var Dc8;var kK=function(){var M=_.Q.apply(this,arguments)||this;M.selected=!1;return M};
_.l(kK,_.Q);_.N=kK.prototype;_.N.computeSelected=function(M){return M==null?void 0:M.selected};
_.N.computeTransform=function(M,q,G){var K,n,E=(n=(K=this.imageContainer)==null?void 0:K.getBoundingClientRect())!=null?n:{width:0,height:0};K=Math.max(E.width/q,E.height/G);G=G*K*M.top;return"translateX("+this.getSignedPosition(q*K*M.left,"X","-")+") translateY("+this.getSignedPosition(G,"Y","-")+")"};
_.N.getSignedPosition=function(M,q,G){return q==="X"&&_.R9("HTML_DIR")==="rtl"?G==="-"?M+"px":M*-1+"px":G==="-"?M*-1+"px":M+"px"};
_.N.onClick=function(){var M;_.jP(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(M=this.data)==null?void 0:M.image)};
_.N.onKeyPress=function(M){if(M.keyCode===13)this.onClick()};
_.Yd.Object.defineProperties(kK.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:(q=M.image)==null?void 0:q.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.image){var q;M=(q=this.data)==null?void 0:q.image;return M.previewCoordinates.top!==0||M.previewCoordinates.left!==0?(q=this.computeTransform(M.previewCoordinates,M.naturalWidth,M.naturalHeight),M.naturalHeight>=M.naturalWidth?"width:inherit;transform:"+q+";":"height:inherit;transform:"+q+";"):M.naturalHeight>=M.naturalWidth?"width:inherit;":"height:inherit;"}}}});
kK.prototype.onKeyPress=kK.prototype.onKeyPress;_.T([_.ET(".image-container"),_.r("design:type",HTMLElement)],kK.prototype,"imageContainer",void 0);_.T([_.B(),_.r("design:type",Object)],kK.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.r("design:type",Object)],kK.prototype,"selected",void 0);_.T([_.c("data.image"),_.r("design:type",Object),_.r("design:paramtypes",[])],kK.prototype,"thumbnailUrl",null);
_.T([_.c("data.image","data.image.previewCoordinates"),_.r("design:type",Object),_.r("design:paramtypes",[])],kK.prototype,"thumbnailStyle",null);_.T([_.GQ("keypress"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],kK.prototype,"onKeyPress",null);_.T([_.b({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],kK);
_.z(kK,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(Dc8!==void 0)return Dc8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Dc8=M},{mode:2});var p4=function(M,q,G){G=G===void 0?!1:G;_.w6.call(this);var K=this;this.dropZoneOverlay=new hr(M);this.selectOverlay=G?new tr(q,"multiple_file",["image/*"]):new tr(q,"single_file",["image/*"]);this.handler=new _.OU(this);_.oE(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(q,"click",function(){K.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.l(p4,_.w6);p4.prototype.onChange=function(M){var q;(q=M.files)!=null&&q.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:M.files}))};var y6=function(){var M=_.Q.apply(this,arguments)||this;M.addImageErrorMessage="";M.errorMessage="";M.images=[];M.selectedImageIndex=0;M.modern=_.w("web_modern_buttons");M.maxNumImagesPerPost=_.tL("max_num_images_per_post_web_ui");M.JSC$15805_imageId=0;return M};
_.l(y6,_.Q);_.N=y6.prototype;_.N.created=function(){var M=this;this.JSC$15805_ytReorderableController=new _.sad(100,function(q){M.handleDrop(q)})};
_.N.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.jP(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.N.observeDragToReorder=function(){var M=this;if(this.showImagesPreview){var q,G=E9l(_.O_.getInstance(),(q=this.data)==null?void 0:q.dragToReorderTooltip);_.r8.addLowPriorityJob(function(){_.FH(M.hostElement,G,M.thumbnailDragDropArea)})}};
_.N.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}}};
_.N.computeThumbnail=function(M){return(M==null?void 0:M.localImageSrc)||void 0};
_.N.onRendererstamperFinished=function(){_.MYf(this.JSC$15805_ytReorderableController,_.f_(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.f_(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.N.handleDrop=function(M){var q=M.currDragItem;if(q!=null&&q.data){M=this.images[this.selectedImageIndex];var G=q.data.image,K=this.images.indexOf(G)||0;q=_.xs(q.parentNode.children,q);this.images.splice(K,1);this.images.splice(q,0,G);this.images=[].concat(_.Ui(this.images));this.selectedImageIndex=this.images.indexOf(M)}};
_.N.setUpImagePicker=function(){var M=this.imageUploadEndpoint;M&&M.imageValidationInfo&&(this.uploadManager=new G5(M.uploadUrl,M.channelId),this.initialPicker||(this.initialPicker=new p4(this.dropzone,this.selectLink,!0),_.Yj(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new p4(this.addImageButtonContainer,this.addImageSelectButton),_.Yj(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Yj(this.JSC$15805_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Yj(this.JSC$15805_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Yj(_.f_(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.N.detached=function(){this.initialPicker&&(_.OS(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.OS(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0);_.X5(this.JSC$15805_ytReorderableController)};
_.N.onInitialSelectImages=function(M){var q=this;return _.L(function(G){return G.yield(q.onSelectImages(M,!1),0)})};
_.N.onAddImage=function(M){var q=this;return _.L(function(G){return G.yield(q.onSelectImages(M,!0),0)})};
_.N.onSelectImages=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R;return _.L(function(se){switch(se.nextAddress){case 1:q?G.addImageErrorMessage="":(G.images=[],G.errorMessage="");K=M.detail;n=G.validateImages([].concat(_.Ui(K)));if(n!=="")return q?G.addImageErrorMessage=n:G.errorMessage=n,se.return();E=[].concat(_.Ui(K)).map(function(yY){return(new N1(G.maxAspectRatio,!1,!0)).transform(yY)});
return se.yield(Promise.allSettled(E),2);case 2:p=se.yieldResult,y=_.k(p.entries()),Y=y.next();case 3:if(Y.done){se.jumpTo(5);break}A=Y.value;v=_.k(A);h=v.next().value;t=v.next().value;O=h;a=t;if(a.status!=="fulfilled"){J=D=g=void 0;q?G.addImageErrorMessage=_.UX((g=G.data)==null?void 0:g.invalidError):G.errorMessage=G.errorMessage===""?_.UX((D=G.data)==null?void 0:D.invalidError):_.UX((J=G.data)==null?void 0:J.multiFileError);se.jumpTo(4);break}Z=a.value;Z.cropped&&_.jP(G.hostElement,"yt-backstage-multi-image-cropped");
if(Z.invalidAspectRatio){m=S=V=void 0;q?G.addImageErrorMessage=_.UX((V=G.data)==null?void 0:V.invalidAspectRatioError):G.errorMessage=G.errorMessage===""?_.UX((S=G.data)==null?void 0:S.invalidAspectRatioError):_.UX((m=G.data)==null?void 0:m.multiFileError);se.jumpTo(4);break}return se.yield(MdY(G.JSC$15805_imageId,M.detail[O],Z.transformedData),8);case 8:R=se.yieldResult,G.images.push(R),G.JSC$15805_imageId++;case 4:Y=y.next();se.jumpTo(3);break;case 5:if(G.errorMessage!==""||G.addImageErrorMessage!==
"")return se.return();q?wHI(G.uploadManager,[G.images[G.images.length-1]]):wHI(G.uploadManager,G.images);G.images=[].concat(_.Ui(G.images));G.selectedImageIndex=q?Math.max(G.images.length-1,0):0;_.jP(G.hostElement,"yt-backstage-multi-image-select");_.gL(se)}})};
_.N.onThumbnailClick=function(M){if(M=M.event_.detail)this.selectedImageIndex=this.images.indexOf(M)};
_.N.validateImages=function(M){if(M.length>this.maxNumImagesPerPost){var q;return _.UX((q=this.data)==null?void 0:q.multiImageExceedMaxImageCountError)}var G=1048576*this.maxFileSizeMb;M=M.filter(function(E){return E.size>G}).length;
if(M===0)return"";var K,n;M=M>1?(K=this.data)==null?void 0:K.multiFileError:(n=this.data)==null?void 0:n.fileSizeError;return _.UX(M)};
_.N.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Ui(this.images));this.selectedImageIndex=0};
_.N.repositionImage=function(M){this.images[this.selectedImageIndex].previewCoordinates=M.event_.detail;this.images=[].concat(_.Ui(this.images))};
_.N.getAllUploadStatuses=function(){var M=this,q,G,K,n;return _.L(function(E){if(E.nextAddress==1)return E.yield(M.uploadManager.getAllUploadStatuses(),2);q=E.yieldResult;G=_.k(q);for(K=G.next();!K.done;K=G.next())if(n=K.value,n.encryptedBlobId===void 0)return E.return(CTM(M.uploadManager));return E.return(q)})};
_.N.hasImages=function(){return this.images.length>0};
_.N.cancel=function(){for(var M=this.uploadManager,q=_.k(M.imagesUploadData),G=q.next();!G.done;G=q.next())M.cancel(G.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.jP(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Yd.Object.defineProperties(y6.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.imageUploadEndpoint)==null?void 0:(q=M.imageValidationInfo)==null?void 0:q.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.imageUploadEndpoint)==null?void 0:(q=M.imageValidationInfo)==null?void 0:q.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var M,q;if((M=this.data)==null?0:(q=M.icon)==null?0:q.iconType)return _.H4(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.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 M=this;return(this.images||[]).map(function(q,G){return{renderer:{image:q,selected:G===M.selectedImageIndex}}})}}});
y6.prototype.setUpImagePicker=y6.prototype.setUpImagePicker;y6.prototype.onRendererstamperFinished=y6.prototype.onRendererstamperFinished;y6.prototype.observeDragToReorder=y6.prototype.observeDragToReorder;y6.prototype.observeAddImageError=y6.prototype.observeAddImageError;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],y6.prototype,"rendererStamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],y6.prototype,"ytRendererBehavior",void 0);
_.T([_.ET("#dropzone"),_.r("design:type",HTMLElement)],y6.prototype,"dropzone",void 0);_.T([_.ET("#select-link"),_.r("design:type",HTMLElement)],y6.prototype,"selectLink",void 0);_.T([_.ET("#thumbnail-drag-drop-area"),_.r("design:type",HTMLElement)],y6.prototype,"thumbnailDragDropArea",void 0);_.T([_.ET("#add-image-button-container"),_.r("design:type",HTMLElement)],y6.prototype,"addImageButtonContainer",void 0);
_.T([_.ET("#add-image-button"),_.r("design:type",HTMLElement)],y6.prototype,"addImageSelectButton",void 0);_.T([_.ET("#image-preview-container"),_.r("design:type",Object)],y6.prototype,"JSC$15805_imagePreviewContainer",void 0);_.T([_.B(),_.r("design:type",Object)],y6.prototype,"addImageErrorMessage",void 0);_.T([_.B(),_.r("design:type",Object)],y6.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],y6.prototype,"errorMessage",void 0);
_.T([_.B(),_.r("design:type",Object)],y6.prototype,"imageUploadEndpoint",void 0);_.T([_.B(),_.r("design:type",Array)],y6.prototype,"images",void 0);_.T([_.B(),_.r("design:type",p4)],y6.prototype,"initialPicker",void 0);_.T([_.B(),_.r("design:type",p4)],y6.prototype,"addImagePicker",void 0);_.T([_.B(),_.r("design:type",G5)],y6.prototype,"uploadManager",void 0);_.T([_.B(),_.r("design:type",Object)],y6.prototype,"selectedImageIndex",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],y6.prototype,"modern",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],y6.prototype,"maxNumImagesPerPost",void 0);_.T([_.c("imageUploadEndpoint"),_.r("design:type",Number),_.r("design:paramtypes",[])],y6.prototype,"maxAspectRatio",null);_.T([_.c("imageUploadEndpoint"),_.r("design:type",Number),_.r("design:paramtypes",[])],y6.prototype,"maxFileSizeMb",null);
_.T([_.c("data.icon.iconType"),_.r("design:type",Object),_.r("design:paramtypes",[])],y6.prototype,"dropIcon",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],y6.prototype,"selectionCancel",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],y6.prototype,"previewCancel",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],y6.prototype,"dataForAddImageButton",null);
_.T([_.c("errorMessage"),_.r("design:type",String),_.r("design:paramtypes",[])],y6.prototype,"dropzoneClass",null);_.T([_.c("images"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],y6.prototype,"showImagesPreview",null);_.T([_.c("images"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],y6.prototype,"containMaxImages",null);_.T([_.KT("addImageErrorMessage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y6.prototype,"observeAddImageError",null);
_.T([_.KT("showImagesPreview"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y6.prototype,"observeDragToReorder",null);_.T([_.c("images","selectedImageIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],y6.prototype,"selectedImageData",null);_.T([_.c("images","selectedImageIndex"),_.r("design:type",Array),_.r("design:paramtypes",[])],y6.prototype,"thumbnailRenderers",null);
_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y6.prototype,"onRendererstamperFinished",null);_.T([_.KT("imageUploadEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y6.prototype,"setUpImagePicker",null);_.T([_.b({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],y6);
_.z(y6,"ytd-backstage-multi-image-select-renderer",function(){if(Iv2!==void 0)return Iv2;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Iv2=M},{mode:1});var uxI;var JkI;var Za9;var L4=function(){var M=_.Q.apply(this,arguments)||this;M.boundCaptureFocus=function(q){M.onCaptureFocus(q)};
return M};
_.l(L4,_.Q);_.N=L4.prototype;_.N.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.N.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.N.onCaptureFocus=function(M){_.Zx(M).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.N.getIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.N.onSelect=function(){var M;if((M=this.data)==null?0:M.onSelectCommand)if(_.w("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var q;((q=_.C(this.data.onSelectCommand.commandMetadata,_.Mg))==null?0:q.url)?_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.AL().resolve(_.vR).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Yd.Object.defineProperties(L4.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.UX(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}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],L4.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],L4.prototype,"data",void 0);_.T([_.ET("#item"),_.r("design:type",HTMLElement)],L4.prototype,"item",void 0);_.T([_.c("data.label"),_.r("design:type",String),_.r("design:paramtypes",[])],L4.prototype,"label",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],L4.prototype,"value",null);_.T([_.b({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],L4);
_.z(L4,"ytd-privacy-dropdown-item-renderer",function(){if(Za9!==void 0)return Za9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Za9=M},{mode:1});var YK=function(){var M=_.Q.apply(this,arguments)||this;M.value="";M.label="";M.disabled=!1;return M};
_.l(YK,_.Q);_.N=YK.prototype;_.N.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"}}}};
_.N.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.N.dataChanged=function(){this.reset()};
_.N.valueChanged=function(){var M;if(this.value&&(M=this.data)!=null&&M.entries){M=_.k(this.data.entries);for(var q=M.next();!q.done;q=M.next())if((q=this.getRendererForEntry(q.value))&&this.getItemRendererValue(q)===this.value){this.label=this.ytComponentBehavior.getSimpleString(q.label);break}}};
_.N.setInitialLabel=function(){if(this.data&&this.data.entries)for(var M=_.k(this.data.entries),q=M.next();!q.done;q=M.next())if(q=this.getRendererForEntry(q.value)){if(q.isSelected){this.label=this.ytComponentBehavior.getSimpleString(q.label);break}this.data.label&&(this.label=this.data.label)}};
_.N.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var M=_.k(this.data.entries),q=M.next();!q.done;q=M.next()){q=this.getRendererForEntry(q.value);var G=void 0;if((G=q)==null?0:G.isSelected)return this.getItemRendererValue(q)||-1}return-1};
_.N.getItemRendererValue=function(M){return"stringValue"in M||"int32Value"in M?M.stringValue||M.int32Value||null:null};
_.N.getRendererForEntry=function(M){return M.dropdownItemRenderer||M.privacyDropdownItemRenderer||M.navigationDropdownItemRenderer||null};
_.N.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("value-changed",this.value))};
_.N.updateValueFromBinding=function(M){this.value=M.detail.value};
YK.prototype.valueChangedForBinding=YK.prototype.valueChangedForBinding;YK.prototype.valueChanged=YK.prototype.valueChanged;YK.prototype.dataChanged=YK.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],YK.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],YK.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],YK.prototype,"value",void 0);_.T([_.B(),_.r("design:type",Object)],YK.prototype,"label",void 0);_.T([_.ET("#entries"),_.r("design:type",Object)],YK.prototype,"entries",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],YK.prototype,"disabled",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YK.prototype,"dataChanged",null);
_.T([_.yO("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YK.prototype,"valueChanged",null);_.T([_.KT("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YK.prototype,"valueChangedForBinding",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],YK);
_.z(YK,"ytd-flat-dropdown-renderer",function(){if(JkI!==void 0)return JkI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return JkI=M},{mode:1});var bap;var W_=function(){var M=_.Q.apply(this,arguments)||this;M.quizOptions=[];M.explanationPlaceholderText="";M.optionPlaceholderText="";M.correctAnswerIndex=-1;M.isMarkAnswerTooltipShown=!1;M.timer=0;return M};
_.l(W_,_.Q);_.N=W_.prototype;_.N.dataChanged=function(){this.optionPlaceholderText=_.UX(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.UX(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.N.onMarkCorrectAnswer=function(M){var q,G=((q=this.quizOptions[this.correctAnswerIndex])==null?void 0:q.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[M.model.index]=Object.assign({},this.quizOptions[M.model.index],{explanationText:G,isCorrect:!0});this.correctAnswerIndex=M.model.index;this.quizOptions=[].concat(_.Ui(this.quizOptions))};
_.N.updatePlaceholderTexts=function(){for(var M=!1,q=[],G=0;G<this.quizOptions.length;G++){var K=this.optionPlaceholderText+" "+(G+1),n=void 0;((n=this.quizOptions[G])==null?void 0:n.placeholderText)!==K?(M=!0,q.push(Object.assign({},this.quizOptions[G],{placeholderText:K}))):q.push(this.quizOptions[G])}M&&(this.quizOptions=q);this.isValid()?_.jP(this.hostElement,"yt-commentbox-post-enable"):_.jP(this.hostElement,"yt-commentbox-post-disable")};
_.N.getSimpleString=function(M){return _.UX(M)};
_.N.createQuizOptions=function(M){var q=[],G;M=(G=M==null?void 0:M.minQuizOptions)!=null?G:0;for(G=0;G<M;G++)q.push(this.createQuizOption());return q};
_.N.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Ui(this.quizOptions),[this.createQuizOption()]))};
_.N.onInput=function(){this.quizOptions=[].concat(_.Ui(this.quizOptions))};
_.N.onExplanationInput=function(){_.jP(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.N.onRemoveQuizOption=function(M){this.quizOptions.splice(M.model.index,1);M.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:M.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Ui(this.quizOptions));this.quizOptions.length===0&&_.jP(this.hostElement,"yt-quiz-attachment-dismiss")};
_.N.updateHintRenderer=function(){var M=this;clearTimeout(this.timer);this.timer=setTimeout(function(){M.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.N.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var M=0,q=0,G=_.k(this.quizOptions),K=G.next();!K.done;K=G.next()){K=K.value;var n=void 0;if(((n=K.optionText)==null?void 0:n.trim())!==""||K.isCorrect){K.isCorrect&&q++;n=void 0;if(this.hasCustomOptionText&&((n=K.optionText)==null?void 0:n.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;M++}}return M>=
Number(this.editorInfo.minQuizOptions)&&q===1};
_.N.getPostCreateOptions=function(){for(var M=[],q=_.k(this.quizOptions),G=q.next();!G.done;G=q.next()){G=G.value;var K=void 0;((K=G.optionText)==null?void 0:K.trim())!==""&&M.push({pollOption:{text:G.optionText,explanation:G.explanationText},isCorrect:G.isCorrect})}return M};
_.N.getExplanationText=function(){var M;return((M=this.quizOptions[this.correctAnswerIndex])==null?void 0:M.explanationText)||""};
_.N.maybeDisplayMarkAnswerEduToolTip=function(){var M,q,G,K,n,E,p;this.shouldShowMarkAnswerTooltip()&&((M=this.editorInfo)==null?0:(q=M.markAnswerButton)==null?0:(G=q.buttonRenderer)==null?0:(K=G.hint)==null?0:(n=K.hintRenderer)==null?0:(E=n.content)==null?0:(p=E.bubbleHintRenderer)==null?0:p.text)&&(_.O_.getInstance(),M=w1(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,(M==null?void 0:M.length)>0&&this.optionSelectors&&_.sE(M[0],this.optionSelectors[0]))};
_.N.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var M=0,q=_.k(this.quizOptions),G=q.next();!G.done;G=q.next()){G=G.value;var K=void 0;((K=G.optionText)==null?void 0:K.trim())!==""&&M++;if(G.isCorrect)return!1}return M<2?!1:!0};
_.N.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.N.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.N.updateOptionTextFromBinding=function(M){if(M.target){var q=Array.from(_.f_(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(M.target);if(q>=0){var G;this.quizOptions[q].optionText=(G=M.detail.value)!=null?G:""}}};
_.Yd.Object.defineProperties(W_.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.editorInfo)==null?void 0:(q=M.addOptionButton)==null?void 0:q.buttonRenderer;G&&(G.style="STYLE_SUGGESTIVE",G.size="SIZE_SMALL",G.isDisabled=!this.isAllowedToAddOption);return(G==null?0:G.text)?G:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var M,q;return this.quizOptions.length<((q=(M=this.editorInfo)==null?void 0:M.maxQuizOptions)!=null?q:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(M){var q;return(q=M.optionText)==null?void 0:q.trim()})}}});
W_.prototype.updatePlaceholderTexts=W_.prototype.updatePlaceholderTexts;W_.prototype.dataChanged=W_.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],W_.prototype,"editorInfo",void 0);_.T([_.B(),_.r("design:type",Array)],W_.prototype,"quizOptions",void 0);_.T([_.B(),_.r("design:type",Object)],W_.prototype,"explanationPlaceholderText",void 0);_.T([_.Ns(".option-selector-button"),_.r("design:type",Array)],W_.prototype,"optionSelectors",void 0);
_.T([_.yO("editorInfo"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],W_.prototype,"dataChanged",null);_.T([_.c("editorInfo","isAllowedToAddOption","quizOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],W_.prototype,"addAnswerButton",null);_.T([_.c("editorInfo","quizOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],W_.prototype,"isAllowedToAddOption",null);
_.T([_.yO("quizOptions"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],W_.prototype,"updatePlaceholderTexts",null);_.T([_.c("quizOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],W_.prototype,"hasCustomOptionText",null);_.T([_.b({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],W_);
_.z(W_,"ytd-backstage-quiz-editor-renderer",function(){if(bap!==void 0)return bap;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return bap=M},{mode:2});var Ucd;var xcl=(sz.FIRSTDAYOFWEEK+1)%7;var zLv;var mc9=[],Srp=0,TvS=0;Srp=0;TvS=24;if(.25*(TvS-Srp)<0)zLv=[];else{for(var rkB=Srp;rkB<TvS;rkB+=.25)mc9.push(rkB);zLv=mc9}var j$S=zLv.map(function(M){M=M*60*60;return{secondsSinceMidnight:M,text:(new ZS(7)).format(new Date(0,0,0,0,0,M))}});var VIB;var AZ=function(){var M=_.Q.apply(this,arguments)||this;M.skipNextOpenDialog=!1;M.errorMessage="";M.previousMonthLabel=_.Ge("PREVIOUS_MONTH_LABEL");M.nextMonthLabel=_.Ge("NEXT_MONTH_LABEL");return M};
_.l(AZ,_.Q);_.N=AZ.prototype;_.N.attached=function(){var M=this,q=new MutationObserver(function(){M.JSC$15847_calendarMain.scrollHeight>0&&(q.disconnect(),M.calendarConfig&&M.calendarConfig.selectedDate&&M.scrollToDate())});
q.observe(this.JSC$15847_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){q.disconnect()},1E3)};
_.N.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.N.onDateTextChange=function(){if(this.calendarConfig){var M=this.validateDateText();M.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(M.details)):this.textbox.setAttribute("invalid","")}};
_.N.handleDayClick=function(M){M.model.day.date&&(this.commitDate(M.model.day.date),this.dialog.close())};
_.N.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var M=Y3y(this.calendarConfig.selectedDate,this.renderData);M!==void 0&&this.JSC$15847_calendarMain.scrollToIndex(M)}};
_.N.scrollToNextMonth=function(){this.JSC$15847_calendarMain.scrollToIndex(this.JSC$15847_calendarMain.firstVisibleIndex+1)};
_.N.scrollToPrevMonth=function(){this.JSC$15847_calendarMain.firstVisibleIndex===0&&this.JSC$15847_calendarMain.scrollTo(0,0);this.JSC$15847_calendarMain.scrollToIndex(this.JSC$15847_calendarMain.firstVisibleIndex-1)};
_.N.onFormSubmit=function(M){M.preventDefault();this.calendarConfig&&(M=this.validateDateText(),M.isValid&&(this.commitDate(M.details),this.dialog.close()))};
_.N.onEscOrClickingOutside=function(M){M=M.detail.path&&!!M.detail.path.length&&M.detail.path[0];if(M.classList.contains("ytd-calendar-date-picker")){M===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var q=0;q<this.dropdownButton.children.length;q++)this.dropdownButton.children[q]===M&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}M=this.textbox.value!==this.dateText;q=this.validateDateText();M&&q.isValid&&this.commitDate(q.details);this.dialog.close();this.textbox.value=
this.dateText};
_.N.commitDate=function(M){this.calendarConfig&&(this.set("calendarConfig.selectedDate",M),_.jP(this.hostElement,"ytd-calendar-date-selected",M))};
_.N.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var M=this.textbox.value;var q=new Date;M=(new Qpw(2)).parse(M,q,{validate:!0})===M.length?yij(q):void 0;if(!M)return this.errorMessage=_.Ge("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};q=this.calendarConfig.start;var G=this.calendarConfig.end;if(nRj(M,q))return this.errorMessage=_.Ge("ENTER_DATE_OR_LATER",{allowed_date:puY(q)}),{isValid:!1,details:void 0};if(nRj(G,M))return this.errorMessage=
_.Ge("ENTER_DATE_OR_EARLIER",{allowed_date:puY(G)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:M}};
_.Yd.Object.defineProperties(AZ.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?puY(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var M=this.calendarConfig,q=[],G=0;G<7;G++)q.push(sz.NARROWWEEKDAYS[(G+xcl)%7]);G=[];for(var K=new Date(M.start.year,M.start.month);K.getFullYear()<M.end.year||K.getFullYear()===M.end.year&&K.getMonth()<=M.end.month;){var n=G,E=n.push,p=K.getFullYear(),y=K.getMonth(),Y=M,A=void 0,v=[],h=Object.freeze({extraCssClass:"invisible",debugClass:""}),t=new Date(p,y),O=yij(t);t=t.getDay();for(var a=yij(new Date);O.month===
y;){t!==xcl&&A||(A=Array.from({length:7}).fill(h),v.push(A));var g={date:{year:p,month:y,day:O.day},extraCssClass:"",debugClass:""};Y.selectedDate&&g.date&&Kk4(g.date,Y.selectedDate)&&(g.extraCssClass+=" selected");if(nRj(O,Y.start)||nRj(Y.end,O))g.extraCssClass+=" disabled";Kk4(O,a)&&(g.extraCssClass+=" today");g.extraCssClass=g.extraCssClass.trim();A[(t-xcl+7)%7]=g;O=N5y(O);t=(t+1)%7}E.call(n,{weeks:v,monthLabel:sz.SHORTMONTHS[y]+" "+p,year:p,month:y,monthLabelExtraCssClass:v[0][2]===h?"shift-down-label":
""});K.setMonth(K.getMonth()+1)}return{months:G,daysOfWeekLabel:q}}}}});
AZ.prototype.onEscOrClickingOutside=AZ.prototype.onEscOrClickingOutside;AZ.prototype.scrollToDate=AZ.prototype.scrollToDate;_.T([_.B(),_.r("design:type",Object)],AZ.prototype,"calendarConfig",void 0);_.T([_.B(),_.r("design:type",Object)],AZ.prototype,"skipNextOpenDialog",void 0);_.T([_.B(),_.r("design:type",Object)],AZ.prototype,"errorMessage",void 0);_.T([_.B(),_.r("design:type",Object)],AZ.prototype,"previousMonthLabel",void 0);
_.T([_.B(),_.r("design:type",Object)],AZ.prototype,"nextMonthLabel",void 0);_.T([_.ET("#textbox"),_.r("design:type",HTMLInputElement)],AZ.prototype,"textbox",void 0);_.T([_.ET("#calendar-dialog"),_.r("design:type",Object)],AZ.prototype,"dialog",void 0);_.T([_.ET("#calendar-main"),_.r("design:type",Object)],AZ.prototype,"JSC$15847_calendarMain",void 0);_.T([_.ET("#date-picker"),_.r("design:type",HTMLElement)],AZ.prototype,"dropdownButton",void 0);
_.T([_.c("calendarConfig.selectedDate"),_.r("design:type",String),_.r("design:paramtypes",[])],AZ.prototype,"dateText",null);_.T([_.c("calendarConfig","calendarConfig.selectedDate"),_.r("design:type",Object),_.r("design:paramtypes",[])],AZ.prototype,"renderData",null);_.T([_.KT("renderData","calendarConfig.selectedDate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AZ.prototype,"scrollToDate",null);
_.T([_.GQ("iron-overlay-canceled"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],AZ.prototype,"onEscOrClickingOutside",null);_.T([_.aO({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],AZ);
_.z(AZ,"ytd-calendar-date-picker",function(){if(VIB!==void 0)return VIB;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return VIB=M},{mode:2});var RLP=_.Ge("UTC_OFFSET_FORMAT",{utc_offset:(new ZS("Z")).format(new Date)}),fvd=(new Date).getTimezoneOffset()*-60,Fcl=new Date,HaS,eL2=Jn(Fcl.getTimezoneOffset());HaS=UA2(z4M(eL2,Fcl));var $cS=_.Ge("LOCAL_TIME_GMT_LABEL",{gmt_text:HaS.replace("+0","+").replace("-0","-").replace(":00","")}),dE=function(){var M=_.Q.apply(this,arguments)||this;M.selectedTimeIndex=0;M.selectedTimezoneIndex=0;M.timeOfDayOptions=j$S;return M};
_.l(dE,_.Q);_.N=dE.prototype;_.N.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var M=kgF();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=M,this.selectedTimeIndex=0;else{var q=Lky(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},M,{selectedDate:q.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(G){return G.secondsSinceMidnight===q.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.N.onDatePicked=function(M){this.selectedDate=M.detail};
_.N.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.jP(this.hostElement,"ytd-date-time-selection-cancelled")};
_.N.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var M=this.selectedDate;M=new Date(M.year,M.month,M.day);_.jP(this.hostElement,"ytd-date-time-selection-update",Math.floor(M.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+M.getTimezoneOffset()*60))}};
_.N.getTimezoneFormat=function(M){return M.localizedDisplayText?M.localizedDisplayText:_.Ge("TIMEZONE_FORMAT",{utc_offset_text:""+M.localizedUtcOffset,city_name:""+M.localizedName})};
_.N.updateSelectedTimeIndexFromBinding=function(M){this.selectedTimeIndex=M.detail.value};
_.N.updateSelectedTimezoneIndexFromBinding=function(M){this.selectedTimezoneIndex=M.detail.value};
_.Yd.Object.defineProperties(dE.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var M=this.data.timezoneOptions;var q={name:"Etc/Unknown",localizedName:_.Ge("LOCAL_TIME_LABEL"),localizedUtcOffset:RLP,utcOffsetSec:""+fvd,localizedDisplayText:$cS};M?M.length&&M[0].name!==q.name&&(M[0].localizedDisplayText||(q.localizedDisplayText=""),M.unshift(q)):M=[q];return M}}},
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]}}});
dE.prototype.onDateTimeTimezoneChange=dE.prototype.onDateTimeTimezoneChange;dE.prototype.onDatePicked=dE.prototype.onDatePicked;dE.prototype.updateDefaultSelectedValue=dE.prototype.updateDefaultSelectedValue;_.T([_.B(),_.r("design:type",Object)],dE.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],dE.prototype,"calendarConfig",void 0);_.T([_.B(),_.r("design:type",Object)],dE.prototype,"selectedDate",void 0);_.T([_.B(),_.r("design:type",Object)],dE.prototype,"selectedTimeIndex",void 0);
_.T([_.B(),_.r("design:type",Object)],dE.prototype,"selectedTimezoneIndex",void 0);_.T([_.ET("#time-listbox"),_.r("design:type",Object)],dE.prototype,"timeListBox",void 0);_.T([_.ET("#timezone-listbox"),_.r("design:type",Object)],dE.prototype,"timezoneListBox",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],dE.prototype,"rendererStamperBehavior",void 0);_.T([_.c("data.timezoneOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],dE.prototype,"timeZones",null);
_.T([_.yO("data","timeZones"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dE.prototype,"updateDefaultSelectedValue",null);_.T([_.c("selectedTimezoneIndex","timeZones"),_.r("design:type",Object),_.r("design:paramtypes",[])],dE.prototype,"selectedTimezone",null);_.T([_.c("selectedTimeIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],dE.prototype,"selectedTime",null);
_.T([_.GQ("ytd-calendar-date-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],dE.prototype,"onDatePicked",null);_.T([_.KT("selectedTimezone","selectedTime","selectedDate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dE.prototype,"onDateTimeTimezoneChange",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],dE);
_.z(dE,"ytd-date-time-picker-renderer",function(){if(Ucd!==void 0)return Ucd;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Ucd=M},{mode:1});var sjp;var v_=function(){var M=_.Q.apply(this,arguments)||this;M.boundOnTapDismissButton=function(){M.dismissTapHandler()};
M.dismissButtonOverrides={size:"XS"};return M};
_.l(v_,_.Q);v_.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}}}}}};
v_.prototype.dismissTapHandler=function(){_.jP(this.hostElement,"yt-backstage-attachment-dismissed")};
v_.prototype.computeAttachmentType=function(M){return M?M.backstageImageRenderer?"image":M.videoRenderer?"video":"none":"none"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],v_.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],v_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],v_.prototype,"attachmentPreview",void 0);_.T([_.B(),_.r("design:type",Object)],v_.prototype,"dismissButton",void 0);_.T([_.B(),_.r("design:type",Object)],v_.prototype,"boundOnTapDismissButton",void 0);
_.T([_.B(),_.r("design:type",Object)],v_.prototype,"dismissButtonOverrides",void 0);_.T([_.B({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.r("design:type",String)],v_.prototype,"attachmentType",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],v_);
_.z(v_,"ytd-backstage-dismissable-attachment",function(){if(sjp!==void 0)return sjp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return sjp=M},{mode:1});var Mn2;var hZ=function(){var M=_.Q.apply(this,arguments)||this;M.selectedVideoId=void 0;M.picker=void 0;M.dismissButtonOverrides={size:"XS"};M.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return M};
_.l(hZ,_.Q);_.N=hZ.prototype;_.N.onServiceRequestCompleted=function(M){M.stopPropagation()};
_.N.handleAddVideoPreviewAction=function(M){M=this.get("addVideoPreviewAction",M);this.onGetVideoPreviewSuccess(M)};
_.N.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}}}}}};
_.N.onLaunchVideoPicker=function(M){var q=this,G=_.UX(this.get("addVideoLinkAction.title",M)),K=this.get("addVideoLinkAction.onePickHostId",M);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",M);K&&(this.picker||(G=_.Qkl(_.YY$(K).setTitle(G).addView(iIP()).addView(PRl()),function(n){q.onPickVideo(n)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",M)||G.addView("youtube"),this.picker=G.build()),this.picker.setVisible(!0))};
_.N.onPickVideo=function(M){if(M)if(M.action==="cancel")_.jP(this.hostElement,"yt-video-link-button-cancel");else if(M.action==="picked"){M=M.docs;if(!M||M.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(M=(M==null?0:M.length)?M[0]:void 0)?M.id:void 0;this.setVideoPreview()}};
_.N.setVideoPreview=function(){var M=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){M.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.N.onGetVideoPreviewSuccess=function(M){if(M&&M.videoPreview&&M.cancelButton)this.videoPreview=M.videoPreview,this.cancelButton=M.cancelButton,_.jP(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.N.onGetVideoPreviewError=function(){this.cancel()};
_.N.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.jP(this.hostElement,"yt-video-link-cancel")};
_.N.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
hZ.prototype.onServiceRequestCompleted=hZ.prototype.onServiceRequestCompleted;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],hZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],hZ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hZ.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],hZ.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hZ.prototype,"videoPreview",void 0);_.T([_.B(),_.r("design:type",Object)],hZ.prototype,"cancelButton",void 0);_.T([_.B(),_.r("design:type",Object)],hZ.prototype,"getVideoPreviewCommand",void 0);_.T([_.B(),_.r("design:type",Object)],hZ.prototype,"dismissButtonOverrides",void 0);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],hZ.prototype,"onServiceRequestCompleted",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],hZ);
_.z(hZ,"ytd-backstage-video-link-attachment",function(){if(Mn2!==void 0)return Mn2;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Mn2=M},{mode:1});var q8I;var Gqf;var Ksl;var tZ=function(){return _.Q.apply(this,arguments)||this};
_.l(tZ,_.Q);tZ.prototype.dataChanged=function(){this.active=!1};
tZ.prototype.onTap=function(){_.jP(this.hostElement,"yt-select-emoji-suggestion",this.data)};
tZ.prototype.identity=function(M){return M};
_.Yd.Object.defineProperties(tZ.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K;if((M=this.data)==null?0:(q=M.image)==null?0:(G=q.thumbnails)==null?0:(K=G[0])==null?0:K.url)return M=this.data.image.thumbnails[0].url,M.startsWith("data:image/svg+xml")?J9(M):_.SM(M)}}});
tZ.prototype.dataChanged=tZ.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],tZ.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],tZ.prototype,"active",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tZ.prototype,"dataChanged",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],tZ.prototype,"imageSrc",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],tZ);
_.z(tZ,"ytd-emoji-suggestion",function(){if(Ksl!==void 0)return Ksl;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Ksl=M},{mode:1});var niP=/.*([:@#].*?)$/,Of=function(){var M=_.Q.apply(this,arguments)||this;M.suggestions=[];M.suggestionIndex=-1;M.JSC$15875_lastSuggestionRange=null;return M};
_.l(Of,_.Q);_.N=Of.prototype;_.N.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.N.getSuggestions=function(M){var q=[],G=Irl(this.emojiManager,M.substr(0,3));if(G)for(var K in G)if(K.toLocaleLowerCase().indexOf(M)===0){var n=G[K];if(n&&n.emojiId){n=f3(this.emojiManager,n.emojiId);var E=void 0,p=void 0,y=void 0,Y=void 0,A=((E=n)==null?0:E.isCustomEmoji)?(p=n)==null?void 0:(y=p.shortcuts)==null?void 0:y[0]:(Y=n)==null?void 0:Y.emojiId;E=void 0;q.push({suggestion:{image:(E=n)==null?void 0:E.image,alt:A,text:K}});if(q.length>=64)break}}return q?q.sort(function(v,h){return h.suggestion.text<
v.suggestion.text?-1:h.suggestion.text===v.suggestion.text?0:1}):null};
_.N.insertSuggestion=function(M){_.jP(this.hostElement,"yt-insert-suggestion",{range:this.JSC$15875_lastSuggestionRange,text:M.alt});this.dropdown.opened=!1};
_.N.updateSuggestionsAtCaret=function(M){this.updateSuggestions(M,this.retrieveTextBeforeRange(M))};
_.N.offsetStartOfRangeBy=function(M,q){M.startOffset>=q&&M.setStart(M.startContainer,M.startOffset-q)};
_.N.updateSuggestions=function(M,q){var G=this;this.JSC$15875_lastSuggestionRange&&(this.JSC$15875_lastSuggestionRange.detach(),this.JSC$15875_lastSuggestionRange=null);if((q=niP.exec(q))&&q.length&&(q=q[q.length-1].toLocaleLowerCase(),q.length>2||q===":_")&&(this.offsetStartOfRangeBy(M,q.length),this.JSC$15875_lastSuggestionRange=M,(M=this.getSuggestions(q))&&M.length)){this.suggestions=M;_.yb(this,function(){G.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(M.length-1);return}this.dropdown.opened=!1};
_.N.onKeyDown=function(M){if(this.dropdown.opened)switch(M.key){case "Escape":this.dropdown.opened=!1;M.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);M.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);M.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),M.preventDefault()}};
_.N.onKeyUp=function(M,q){switch(M.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(q);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(q)}};
_.N.onKeyPress=function(M){M.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),M.preventDefault())};
_.N.changeSuggestionIndex=function(M){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(M+this.suggestions.length)%this.suggestions.length,M=this.dropdownContent.children[this.suggestionIndex],M.active=!0,this.dropdownContent.scrollTop=M.offsetTop)};
_.N.retrieveTextBeforeRange=function(M){var q=M.startContainer;return q&&q.nodeType===Node.TEXT_NODE?q.textContent.substr(0,M.startOffset):""};
Of.prototype.onKeyPress=Of.prototype.onKeyPress;Of.prototype.onKeyUp=Of.prototype.onKeyUp;Of.prototype.onKeyDown=Of.prototype.onKeyDown;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Of.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Array)],Of.prototype,"suggestions",void 0);_.T([_.B(),_.r("design:type",_.V$)],Of.prototype,"emojiManager",void 0);_.T([_.B(),_.r("design:type",Number)],Of.prototype,"verticalSuggestionsOffset",void 0);
_.T([_.ET("#dropdown"),_.r("design:type",Object)],Of.prototype,"dropdown",void 0);_.T([_.ET("#dropdown-content"),_.r("design:type",HTMLDivElement)],Of.prototype,"dropdownContent",void 0);_.T([_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],Of.prototype,"onKeyDown",null);_.T([_.GQ("keyup"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent,Range]),_.r("design:returntype")],Of.prototype,"onKeyUp",null);
_.T([_.GQ("keypress"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],Of.prototype,"onKeyPress",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-emoji-input"})],Of);
_.z(Of,"ytd-emoji-input",function(){if(Gqf!==void 0)return Gqf;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Gqf=M},{mode:2});var Eiv;var wE=function(){var M=_.Q.apply(this,arguments)||this;M.hasMaxOptions=!1;return M};
_.l(wE,_.Q);_.N=wE.prototype;_.N.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.N.setPrefilledChoices=function(M){var q=this;this.set("pollOptions",[]);var G;for(G=0;G<Math.min(M.length,this.data.maxPollOptions);G++)this.push("pollOptions",M[G].substring(0,this.data.maxPollOptionChars));for(;G<this.data.minPollOptions;G++)this.push("pollOptions","");this.hasMaxOptions=G>=this.data.maxPollOptions;_.yb(this,function(){for(var K=q.pollOptions,n=_.f_(q.hostElement).querySelectorAll(".poll-option-input"),E=0;E<n.length;E++)n[E].value=K[E]})};
_.N.focusChanged=function(){_.sT(this.hostElement)};
_.N.onInput=function(){var M=this;_.B4(this,"onInput",function(){M.isValid()?_.jP(M.hostElement,"yt-commentbox-post-enable"):_.jP(M.hostElement,"yt-commentbox-post-disable")},300)};
_.N.setPollOptions=function(){var M=[],q,G=((q=this.data)==null?0:q.minPollOptions)?this.data.minPollOptions:0;for(q=0;q<G;q++)M.push("");return M};
_.N.addPollOption=function(){var M=this;_.jP(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.r8.addLowPriorityJob(function(){var q;(q=_.f_(M.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||q.focus()})};
_.N.onRemovePollOption=function(M){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.jP(this.hostElement,"yt-poll-attachment-dismiss")):(M=this.repeat.indexForElement(M.target.parentNode),M!==null&&(this.splice("pollOptions",M,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.jP(this.hostElement,"yt-commentbox-post-enable"))))};
_.N.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.N.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var M=0,q=this.pollOptions.length;M<q;M++)if(this.pollOptions[M].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.N.getPollOptions=function(){return this.pollOptions};
_.N.setPollOptionsFromInputs=function(){for(var M=_.f_(this.hostElement).querySelectorAll(".poll-option-input"),q=0;q<M.length;q++)this.pollOptions[q]=M[q].value.trim()};
_.N.clearPollOptions=function(){var M=_.f_(this.hostElement).querySelectorAll(".poll-option-input");M=_.k(M);for(var q=M.next();!q.done;q=M.next())q.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.N.getSimpleString=function(M){return _.UX(M)};
_.N.updateValueFromBinding=function(M){if(M.target&&this.pollOptions){var q=Array.from(_.f_(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(M.target);if(q>=0){var G;this.pollOptions[q]=(G=M.detail.value)!=null?G:"";this.notifyPath("pollOptions."+q)}}};
wE.prototype.dataChanged=wE.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],wE.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Array)],wE.prototype,"pollOptions",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],wE.prototype,"hasMaxOptions",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],wE.prototype,"enableCreationBox",void 0);
_.T([_.ET("#repeat"),_.r("design:type",t_)],wE.prototype,"repeat",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wE.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-poll-attachment"})],wE);
_.z(wE,"ytd-poll-attachment",function(){if(Eiv!==void 0)return Eiv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Eiv=M},{mode:2});var Ne$;var kqf;var p0l;var yfP;var C4=function(){return _.Q.apply(this,arguments)||this};
_.l(C4,_.Q);_.Yd.Object.defineProperties(C4.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],C4.prototype,"rendererBehaviors",void 0);_.T([_.B(),_.r("design:type",Object)],C4.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],C4.prototype,"focused",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("focused"),_.r("design:type",Object),_.r("design:paramtypes",[])],C4.prototype,"ariaSelected",null);_.T([_.aO({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],C4);
_.z(C4,"yt-user-mention-suggestion-renderer",function(){if(yfP===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;p0l===void 0&&(p0l=document.createElement("template"));var K=p0l;G.call(q,K.content.cloneNode(!0),M.content.firstChild);yfP=M}M=yfP;return M},{mode:2});var Ls2;var Y8$;var a_=function(){var M=_.Q.apply(this,arguments)||this;M.focusedSuggestionIndex=-1;return M};
_.l(a_,_.Q);_.N=a_.prototype;_.N.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.N.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.N.setFocusedSuggestionIndex=function(M){!this.data||!this.data.suggestions||M<0||M>=this.data.suggestions.length||(this.focusedSuggestionIndex=M,M=this.getSuggestionId(M),this._setFocusedSuggestionId(M))};
_.N.advanceSuggestion=function(M){this.focusedSuggestionIndex===-1||M!==-1&&M!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+M),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.N.ensureSuggestionVisible=function(M){M=this.getSuggestionId(M);M=_.f_(this.hostElement).querySelector("[id="+M+"]");M!=null&&(M.offsetTop<this.hostElement.scrollTop?M.scrollIntoView(!0):M.offsetTop+M.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&M.scrollIntoView(!1))};
_.N.getSuggestionId=function(M){return"user-mention-suggestion-"+M};
_.N.onSuggestionTap=function(M){var q=_.C(M.model.item,Tnx);this.ytRendererBehavior.logExplicitClick(q);_.jP(this.hostElement,"yt-user-mention-suggestion-selected",{data:q,index:M.model.index})};
_.N.onSuggestionMouseMove=function(M){M.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(M.model.index)};
_.N.isSuggestionFocused=function(M,q){return M===q};
_.N.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.N.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("focused-suggestion-id-changed",this.focusedSuggestionId))};
a_.prototype.focusedSuggestionIdChangedForBinding=a_.prototype.focusedSuggestionIdChangedForBinding;a_.prototype.onDomChange=a_.prototype.onDomChange;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],a_.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],a_.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],a_.prototype,"focusedSuggestionIndex",void 0);_.T([_.B({readOnly:!0}),_.r("design:type",String)],a_.prototype,"focusedSuggestionId",void 0);
_.T([_.GQ("dom-change"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],a_.prototype,"onDomChange",null);_.T([_.KT("focusedSuggestionId"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],a_.prototype,"focusedSuggestionIdChangedForBinding",null);_.T([_.aO({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],a_);
_.z(a_,"yt-user-mention-suggestions-dropdown",function(){if(Y8$===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;Ls2===void 0&&(Ls2=document.createElement("template"));var K=Ls2;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Y8$=M}M=Y8$;return M},{mode:2});var o_=function(){var M=_.Q.apply(this,arguments)||this;M.suggestionsResponse=null;M.activeMention=null;M.selectionChangeListener=M.onSelectionChange.bind(M);M.handlesEnabled=_.w("enable_handles_in_mention_suggest_posts");M.handlesInMentionSuggestionsEnabled=_.w("handles_in_mention_suggest_posts");M.zeroPrefixMentionSuggestionEnabled=_.w("enable_zero_prefix_mention_suggestion_web");M.pendingQuery=null;M.flowNonce=null;return M};
_.l(o_,_.Q);_.N=o_.prototype;_.N.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.N.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.N.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.N.hasSuggestions=function(M){return!!(M&&M.suggestions&&M.suggestions.length>0)};
_.N.onInput=function(){var M=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var q=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),G=this.activeMention.JSC$11347_getText().slice(-1)===" ",K=this.activeMention.JSC$11347_getText().slice(-2,-1)===" ",n="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$11347_getText().slice(-2,
-1))>=0;n=this.zeroPrefixMentionSuggestionEnabled&&n;if(this.activeMention.isCollapsed()||(q||K||n)&&G)this.cancelActiveMention();else{var E=this.activeMention.JSC$11347_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.B4(this,"requestSuggestions",function(){M.requestSuggestions(E)},100)}}}};
_.N.onServiceRequestSent=function(M){M.stopPropagation()};
_.N.onServiceRequestCompleted=function(M){M.stopPropagation();M=M.detail.data;M.query&&(!this.pendingQuery||this.pendingQuery!==M.query)||!this.zeroPrefixMentionSuggestionEnabled&&M.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=M,this.hasSuggestions(M)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.N.onServiceRequestError=function(M){M.stopPropagation()};
_.N.onUserMentionSuggestionSelected=function(M){this.selectSuggestion(M.detail.data,M.detail.index)};
_.N.onSelectionChange=function(){if(this.activeMention){var M=_.fL(),q=this.activeMention.JSC$11347_containsRange(M);M=M&&this.containsHelper(this.dropdown,M.getContainer());q||M||this.cancelActiveMention()}};
_.N.containsHelper=function(M,q){var G;if(((G=window.ShadyDOM)==null?void 0:G.noPatch)===!0)return M.contains(q);for(;q;){if(q===M)return!0;q=q instanceof ShadowRoot?q.host:q.parentNode}return!1};
_.N.maybeStartSuggest=function(){var M=_.fL();if(M&&M.isCollapsed()){var q=M.JSC$11347_getStartNode(),G=M.JSC$11347_getStartOffset();if(q instanceof Text&&!(G<1)){var K=q.textContent;!(K=K&&K.charAt(G-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(K)<0||(this.activeMention=_.xH(q,G-1,M.JSC$11347_getEndNode(),M.JSC$11347_getEndOffset()),this.flowNonce=hl(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.N.updateActiveMention=function(){if(this.activeMention){var M=_.fL();M&&M.isCollapsed()&&(this.activeMention=_.xH(this.activeMention.JSC$11347_getStartNode(),this.activeMention.JSC$11347_getStartOffset(),M.JSC$11347_getEndNode(),M.JSC$11347_getEndOffset()))}};
_.N.requestSuggestions=function(M){if(this.activeMention){var q={suggestions_query:M};this.pendingQuery=M;_.fx(this.hostElement,[this.suggestionsEndpoint,q])}};
_.N.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()};
_.N.focusPreviousSuggestion=function(M){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),M.preventDefault())};
_.N.focusNextSuggestion=function(M){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),M.preventDefault())};
_.N.selectFocusedSuggestion=function(M){if(this.hasSuggestions(this.suggestionsResponse)){var q=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.C(q,Tnx)&&(this.selectSuggestion(_.C(q,Tnx),this.dropdown.focusedSuggestionIndex),M.preventDefault())}};
_.N.selectSuggestion=function(M,q){if(M){var G=this.activeMention;if(G){var K=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&M.handle?_.QF(K,"\u00a0\u2068@"+M.handle+"\u2069\u00a0"):this.handlesEnabled?_.QF(K,"\u00a0"+M.displayName+"\u00a0"):_.QF(K,"\u00a0@"+M.displayName+"\u00a0");Vk(K,"/channel/"+M.channelId);K.classList.add("yt-formatted-string","yt-simple-endpoint");K.setAttribute("spellcheck","false");G.isCollapsed()||G.JSC$11347_removeContents();G.insertNode(K,!0);M=document.createTextNode(" ");
K.parentNode.insertBefore(M,K.nextSibling);window.getSelection().collapse(M,1);q={suggestionSelected:{suggestionIndex:q}};if(this.zeroPrefixMentionSuggestionEnabled){var n;q.suggestionSelected.isZeroPrefix=((n=this.suggestionsResponse)==null?void 0:n.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",q);this.cancelActiveMention();_.jP(this.hostElement,"yt-mention-inserted")}}};
_.N.getPositionTarget=function(M){return M&&M.getBrowserRangeObject()};
_.N.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.N.onFocusedSuggestionIdChanged=function(M){var q=_.X_y(this.hostElement)[0];q&&(M.detail.value?q.setAttribute("aria-activedescendant",M.detail.value):q.removeAttribute("aria-activedescendant"))};
_.N.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.N.logGELEvent=function(M,q){M={eventType:M,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};q&&(M=Object.assign(M,q));_.ml("userMentionAutoCompleteBoxEvent",M)};
o_.prototype.onDomChange=o_.prototype.onDomChange;o_.prototype.onUserMentionSuggestionSelected=o_.prototype.onUserMentionSuggestionSelected;o_.prototype.onServiceRequestError=o_.prototype.onServiceRequestError;o_.prototype.onServiceRequestCompleted=o_.prototype.onServiceRequestCompleted;o_.prototype.onServiceRequestSent=o_.prototype.onServiceRequestSent;o_.prototype.onInput=o_.prototype.onInput;_.T([_.P(_.X9),_.r("design:type",Object)],o_.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],o_.prototype,"suggestionsEndpoint",void 0);_.T([_.B(),_.r("design:type",Object)],o_.prototype,"suggestionsResponse",void 0);_.T([_.B(),_.r("design:type",Object)],o_.prototype,"activeMention",void 0);_.T([_.ET("#dropdown"),_.r("design:type",Object)],o_.prototype,"dropdown",void 0);_.T([_.ET("#iron-dropdown"),_.r("design:type",Object)],o_.prototype,"ironDropdown",void 0);
_.T([_.GQ("input"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],o_.prototype,"onInput",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o_.prototype,"onServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o_.prototype,"onServiceRequestCompleted",null);
_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o_.prototype,"onServiceRequestError",null);_.T([_.GQ("yt-user-mention-suggestion-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o_.prototype,"onUserMentionSuggestionSelected",null);
_.T([_.GQ("dom-change"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],o_.prototype,"onDomChange",null);_.T([_.aO({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],o_);
_.z(o_,"yt-user-mention-autosuggest-input",function(){if(kqf===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Ne$===void 0&&(Ne$=document.createElement("template"));var K=Ne$;G.call(q,K.content.cloneNode(!0),M.content.firstChild);kqf=M}M=kqf;return M},{mode:2});var lV=null;
_.h_({is:"ytd-commentbox",_template:function(){if(q8I!==void 0)return q8I;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return q8I=M},
behaviors:[_.G1y.YtHostElementBehavior,_.X9,_.wg.YtActionHandlerBehavior,_.Sp.YtComponentBehavior,_.EH.YtRendererstamperBehavior,_.HHl.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(M,q){return _.sX(M.entities,"aadcGuidelinesStateEntityPayload",q)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(M,q){return _.sX(M.entities,"commentboxStateEntity",q)},
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 _.F$}},
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:_.w("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.w("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",_.qs(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(M){this.fire(M?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(M){this.set("submitButtonDisabled",void 0);this.clear();M&&this.computeIsEmojiButtonDisplayed_(M)&&(M=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&M.updateEmojiCategories()},
observePrefilledImage_:function(M,q,G){this.isValidPrefilledImage_(M,q,G)&&(this.prefilledAttachment_="image",this.prefilledImageData_=q,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(M,q){this.isValidPrefilledVideo_(M,q)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(M){M&&M.pollData&&M.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(M.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.dF();this.focus()},
detached:function(){document.removeEventListener("tap",_.qs(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(M){M=M.detail;M=M.isCustomEmoji?M.shortcuts[0]:M.emojiId;var q=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(q,M);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var M=_.fL();if(M){M=M.getBrowserRangeObject();for(var q=M.commonAncestorContainer;q;){if(q===this.getEditableTextArea_())return M;q=q.parentNode}}M=this.getEditableTextArea_();M=_.U5(M,M.childNodes.length);M.select();return M.getBrowserRangeObject()},
insertTextWithEmojis_:function(M,q,G){(q=this.emojiManager.createDocumentFragment(q,!0,!1,G===void 0?!0:G))&&q.childNodes.length!==0&&(M.collapsed||M.deleteContents(),G=q.lastChild,M.insertNode(q),_.EmS(G).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var M=_.fL();if(M){var q=M.JSC$11347_getStartNode(),G=M.JSC$11347_getEndNode();if(Wkj(q)&&Wkj(G)){var K=M.JSC$11347_getStartOffset(),n;if(_.$W&&q.nodeType===Node.ELEMENT_NODE&&(n=_.EPI(q)))_.U5(n,0).select();else{n=js(q)?q:_.jX(q,js);var E=js(G)?G:_.jX(G,js);if(n||E)if(M.isCollapsed()){if(q.nodeType===Node.TEXT_NODE){M=!0;K===q.length&&(M=!1);if(lV==="end"||lV==="right")M=!1;q=q.parentNode;M=[].concat(_.Ui(q.parentNode.childNodes)).indexOf(q)+(M?0:1);_.U5(q.parentNode,
M).select()}}else n?n.previousSibling&&n.previousSibling.length>0?_.xH(G,M.JSC$11347_getEndOffset(),n.previousSibling,n.previousSibling.length-1).select():(q=document.createTextNode("\u200b"),n.parentNode.insertBefore(q,n),_.xH(G,M.JSC$11347_getEndOffset(),q,0).select()):E&&(E.nextSibling&&E.nextSibling.length>0?_.xH(q,M.JSC$11347_getStartOffset(),E.nextSibling,1).select():(G=document.createTextNode("\u200b"),E.parentNode.insertBefore(G,E.nextSibling),_.xH(q,M.JSC$11347_getStartOffset(),G,G.length).select()));
lV=null}}else lV=null}else lV=null},
leftKeyPressed_:function(){lV="left"},
rightKeyPressed_:function(){lV="right"},
endKeyPressed_:function(){lV="end"},
maybeDeleteChip_:function(){var M=Oz4(!0);if(M){var q=_.fL(),G=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();_.Dc(G,q,M,M.childNodes.length).select()}},
maybeBackspaceChip_:function(){var M=Oz4(!1);if(M){var q=_.fL(),G=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();_.Dc(G,q,M,0).select()}},
maybeBackspaceChipWordMode_:function(M){var q=_.fL();if(q.isCollapsed()){var G=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();var K=wuH(G,q,!0);K&&(_.Dc(G,q,K,0).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(M){var q=_.fL();if(q.isCollapsed()){var G=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();var K=wuH(G,q,!1);K&&(_.Dc(G,q,K,K.childNodes.length).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
onTap_:function(M){if(!M.defaultPrevented&&(M.currentTarget.tagName==="YTD-COMMENTBOX"&&js(M.target)&&M.preventDefault(),this.isEmojiPickerDisplayed)){var q=this.$$("#emojis"),G=this.$$("#emoji-button"),K=this.getEditableTextArea_();if((M=M.path?M.path:M.composedPath&&M.composedPath())&&!M.includes(q)&&!M.includes(K)&&!M.includes(G))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(M,q,G){return M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&q!==void 0&&q.encryptedBlobId!==null&&q.sourceExternalVideoId!==null&&G!==void 0&&G.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(M,q){return M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!q&&!!q.videoRenderer&&!!q.videoRenderer.videoId},
isValidPrefilledAttachment_:function(M,q,G){return this.isValidPrefilledImage_(M,q,G)||this.isValidPrefilledVideo_(M,G)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.w("enable_multi_image_post_creation")){var M=this.$$("ytd-backstage-multi-image-select-renderer");M&&M.hasImages()&&M.cancel()}else(M=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&M.cancel();(M=this.$["poll-attachment"])&&this.hasPoll_&&M.clearPollOptions();(M=this.$["image-poll-attachment"])&&this.hasImagePoll_&&M.resetPollOptions();(M=this.$["quiz-attachment"])&&this.hasQuiz_&&M.resetQuizOptions();
(M=this.$["video-link-attachment"])&&this.hasVideo_&&M.cancel();(M=this.$["access-restrictions-selector"].firstElementChild)&&M.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 _.f_(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.f_(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(M,q){M=d0F(M,this.emojiManager,q).cloneNode(!0);for(q=M.firstChild;q;)if(q.nodeType!==1)q=q.nextSibling;else switch(q.tagName){case "BR":var G=_.XZ();_.AgI(G,q);q=G.nextSibling;break;case "DIV":(G=q.lastChild)&&q.nextSibling&&_.gB(_.XZ(),G);q.previousSibling&&(q.previousSibling.nodeType===1||q.previousSibling.nodeType===3&&!q.previousSibling.textContent.endsWith("\n"))&&_.cp(_.XZ(),q);G&&G.nodeName==="BR"&&_.cX(G);G=q;q.hasChildNodes()?(q=q.firstChild,
_.d_f(G)):(q=q.nextSibling,_.cX(G));break;default:q=q.nextSibling}return Cww(M)},
onAddImageError_:function(M){M.stopPropagation();this.errorMessage_=_.bc(M.detail)},
setTextAreaValue_:function(M){M||(M="");var q=this.getEditableFormattedString_();q.text="";this.getEditableTextArea_().innerText="";typeof M==="string"&&(M={runs:[{text:M}]});q.text=M},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();lV=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var M=this.getEditableTextArea_();M&&(_.U5(M,M.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.R9("HTML_DIR")==="rtl"){var M=this.getEditableTextArea_(),q=this.getTextAreaValue()!==""?"auto":"rtl";M.setAttribute("dir",q)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var M;return $Oy((M=this.$["quiz-attachment"])==null?void 0:M.getExplanationText())||$Oy(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var M=null;if(this.isEmojiButtonDisplayed){var q=this.getInputRange_();q&&(M=this.emojiInput.retrieveTextBeforeRange(q))}this.insertText_(M,!0);this.updateCharCount_();this.setSubmitButton_();M=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=M.scrollHeight>M.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var M=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:M})},
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(M){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(M)},
onPasteEmoji_:function(M){M.preventDefault();M.stopImmediatePropagation();M=M.clipboardData.getData("text/plain");this.insertText_(M,!1,!1)},
insertText_:function(M,q,G){q=q===void 0?!1:q;G=G===void 0?!0:G;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&M){var K=this.getInputRange_().cloneRange();this.emojiManager&&K&&(q&&this.emojiInput.offsetStartOfRangeBy(K,M.length),this.insertTextWithEmojis_(K,M,G),Ai$(this.getEditableTextArea_().lastChild)||(K=this.getInputRange_().cloneRange()),K&&(this.emojiInput.updateSuggestions(K,M),this.updateSuggestionOffset_(K)))}},
setSubmitButton_:function(){if(this.data){var M=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",q=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(M||q){var G=this.getTextAreaValue().trim();q=G===this.previousText_;G=!G||this.aboveCharLimit_;M&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(G=this.aboveCharLimit_);this.submitButtonDisabled=
q||G||!this.getTextLength();M&&_.w("enable_post_scheduling")&&(this.submitButtonDisabled=q&&!this.scheduledPublishTimeSec_||G)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.UX,computeCreationBoxClass_:function(M){return M?"focused":"not-focused"},
computeFooterMessageClass_:function(M,q){return q?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(M,q){return q?q:M},
computeFooterMessageHidden_:function(M,q){return!q&&!M},
computePlaceholderText_:function(M,q,G){return(G==="video"||G==="image")&&(M==null?0:M.prefilledPlaceholderText)?M==null?void 0:M.prefilledPlaceholderText:q==="poll"||q==="image-poll"?M==null?void 0:M.pollPostPlaceholderText:q==="quiz"?M==null?void 0:M.quizPostPlaceholderText:q==="image"?M==null?void 0:M.imagePostPlaceholderText:M==null?void 0:M.placeholderText},
computeHideAttachmentButtons_:function(M,q,G,K){return M===void 0?!1:K&&this.getSimpleString(K)===this.getSimpleString(M.rateLimitErrorMessage)?!0:q!=="none"||G!=="none"||!M.videoLinkButton&&!M.pollButton&&!M.imagePollButton&&!M.quizButton&&!M.imageButton},
computeHideDismissableAttachment_:function(M){return M!=="image"&&M!=="video"},
computeHasVideo_:function(M){return M==="video"},
computeHasImage_:function(M){return M==="image"},
computeHasPoll_:function(M){return M==="poll"},
computeHasImagePoll_:function(M){return M==="image-poll"},
computeHasQuiz_:function(M){return M==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(M){return M&&M.backstageAttachment?M.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!M.backstageAttachment.quizRenderer&&!M.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(M){if(this.isValidPrefilledAttachment_(M.purpose,M.prefilledImageData,M.backstageAttachment))return M.backstageAttachment},
computeEditAttachment_:function(M){if(this.computePrefilledContent_(M)===void 0)return M.backstageAttachment},
computeAuthorThumbnailDimension_:function(M,q){return M&&!q?24:40},
computeImageUploadEndpoint_:function(M){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",M)},
computeRateLimitErrorCommands_:function(M){var q,G;return M==null?void 0:(q=M.advancedTierFeatures)==null?void 0:(G=q.rateLimit)==null?void 0:G.rateLimitCommands},
computeIsBackstageComment_:function(M){return!(!M||M!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(M){return this.get("submitButton.buttonRenderer.serviceEndpoint",M)||this.get("replyButton.buttonRenderer.serviceEndpoint",M)||this.get("postButton.buttonRenderer.serviceEndpoint",M)},
computeSubmitButtonOverride:function(){if(_.w("web_modern_buttons")){var M,q;return{segmentedPosition:this.dropdownSchedulePanel_||!((M=this.data)==null?0:(q=M.postOptionsMenu)==null?0:q.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.w("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(M,q){M=this.get("submitButton.buttonRenderer",M)||this.get("replyButton.buttonRenderer",M)||this.get("postButton.buttonRenderer",M);q&&(M=q);M&&(M=Object.assign({},M),M.serviceEndpoint=void 0,M.isDisabled=this.submitButtonDisabled);return M},
computeHasExternalLinksAccess_:function(M){if(_.w("enable_rfa_external_links")){var q,G,K;return(K=M==null?void 0:(q=M.advancedTierFeatures)==null?void 0:(G=q.externalLinks)==null?void 0:G.allowExternalLinks)!=null?K:!0}return!0},
computeIsEmojiButtonDisplayed_:function(M){return M.emojiButton&&M.emojiPicker&&M.emojiPicker.emojiPickerRenderer&&M.emojiPicker.emojiPickerRenderer.categories?M.emojiPicker.emojiPickerRenderer.categories.find(function(q){return q.emojiPickerCategoryRenderer?q.emojiPickerCategoryRenderer.emojiIds&&q.emojiPickerCategoryRenderer.emojiIds.length>0:q.emojiPickerUpsellCategoryRenderer?q.emojiPickerUpsellCategoryRenderer.emojis&&q.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(M){return M.charLimit?M.charLimit:null},
computeDropdownSchedulingPanel_:function(M,q){if(M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&q)return q},
computeInlineSchedulingPanel_:function(M,q){if(M==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&q)return q},
computeHideAuthorThumbnail_:function(M,q){return M||this.computeUseIdentityChip_(q)},
computeHideIdentityChipRenderer_:function(M,q){return M||!this.computeUseIdentityChip_(q)},
computeUseIdentityChip_:function(M){return!!M&&!!M.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(M){var q,G,K,n;(M==null?0:(q=M.detail)==null?0:(G=q.endpoint)==null?0:G.ypcGetOffersEndpoint)||(M==null?0:(K=M.detail)==null?0:(n=K.endpoint)==null?0:n.ypcOffersEndpoint)?(M.stopPropagation(),_.fx(this,[M.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",M)&&(M.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(M){this.addedAttachment="video";this.selectedVideoId_=M.detail.videoId},
commentboxStateEntityChanged_:function(M){var q=this;(M==null?void 0:M.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(M==null?void 0:M.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){q.focus()})},
onYtServiceRequestSent_:function(M,q){if(q.actions)for(M=_.k(q.actions),q=M.next();!q.done;q=M.next())q.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(M){this.isLoading=!1;var q=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",M),G,K,n,E=M==null?void 0:(G=M.detail)==null?void 0:(K=G.data)==null?void 0:(n=K.actionResult)==null?void 0:n.commentboxStateEntityKey;if(q)this.errorMessage_=q;else if(E){var p;this.dismissData_=M==null?void 0:(p=M.detail)==null?void 0:p.data;this.commentboxStateKey_=E}else{this.clear();var y;this.fire("yt-commentbox-dismiss",M==null?void 0:(y=M.detail)==
null?void 0:y.data)}},
onYtServiceRequestError_:function(M){M.stopPropagation();this.isLoading=!1;var q,G;if(((q=this.data)==null?void 0:q.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((G=this.data)==null?void 0:G.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(q=this.get("detail.error.args",M)||[],q.length>1&&q[1].message){this.handlePostsServiceRequestError_(q[1].message);return}(M=this.get("detail.error.message",M))?this.errorMessage_=this.data.errorMessage||_.bc(M):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(M){if(_.w("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var q=_.k(this.rateLimitErrorCommands),G=q.next();!G.done;G=q.next())if(G=G.value,G.errorLabel===M){_.sE(G.command,this.hostElement);return}this.errorMessage_=_.bc(M)},
submitIfNotBackstagePost_:function(M){if(!this.isBackstagePost)this.onSubmit_(M)},
onSubmit_:function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D;return _.L(function(J){switch(J.nextAddress){case 1:M.stopPropagation();if(!q.serviceEndpoint||!q.isValidInput_())return J.return();if(q.shouldShowPostAadcNotice_())return q.showPostAadcNotice_(),J.return();if(q.shouldShowCommentAadcNotice_())return q.showCommentAadcNotice_(),J.return();if(!(q.$$("ytd-backstage-multi-image-select-renderer")&&q.hasImage_&&_.w("enable_multi_image_post_creation"))){J.jumpTo(2);break}G=q.$$("ytd-backstage-multi-image-select-renderer");
return J.yield(G.getAllUploadStatuses(),3);case 3:K=J.yieldResult;if(!K)return J.return();n=_.k(K);for(E=n.next();!E.done;E=n.next())if(p=E.value,p.encryptedBlobId===void 0)return q.isLoading=!1,Y=y=void 0,q.errorMessage_=(Y=(y=q.imageUploadEndpoint_)==null?void 0:y.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?Y:null,J.return();return J.return(q.submitForm_(void 0,void 0,void 0,void 0,G.images,q.taggedVideoId_));case 2:if(!q.hasImagePoll_||!q.$["image-poll-attachment"]){J.jumpTo(4);
break}return J.yield(q.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:A=J.yieldResult;if(!A)return J.return();v=_.k(A);for(h=v.next();!h.done;h=v.next())if(t=h.value,!t.encryptedBlobId)return q.isLoading=!1,O=void 0,q.errorMessage_=(O=q.data.errorMessage)!=null?O:null,J.return();case 4:g=(a=q.$$("ytd-backstage-image-select-renderer"))&&a.uploadPromise(),D=q.getSharedPostId_(),g?g.then(function(){q.submitForm_.apply(q,_.Ui(_.rW.apply(0,arguments)))}).catch(function(Z){q.isLoading=!1;
q.errorMessage_=_.bc(Z.message)}):q.selectedVideoId_?q.submitForm_(void 0,q.selectedVideoId_):q.prefilledAttachment_==="image"?q.submitForm_(q.prefilledImageData_.encryptedBlobId,void 0,void 0,q.prefilledImageData_.sourceExternalVideoId,void 0,q.taggedVideoId_):q.prefilledAttachment_==="video"?q.submitForm_(void 0,q.data.backstageAttachment.videoRenderer.videoId):D?q.submitForm_(void 0,void 0,D):q.taggedVideoId_!==void 0?q.submitForm_(void 0,void 0,void 0,void 0,void 0,q.taggedVideoId_):q.submitForm_(),
_.gL(J)}})},
openSchedulingPanel:function(M){M&&M.scheduleButton&&M.scheduleButton.buttonRenderer&&(this.scheduleButton_=M.scheduleButton.buttonRenderer);M&&M.dateTimePicker&&this.set("data.schedulingDateTimePicker",M.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(M){M.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(M){M.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(M){M.stopPropagation();M.detail.alertMessage&&(this.alertMessage_=M.detail.alertMessage)},
onImageSelected_:function(M){M.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(M){M.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(M){M.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(M.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(M){M.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(M){var q=this.$["video-link-attachment"];q&&q.onLaunchVideoPicker(M)},
onAttachmentDismiss_:function(M){M.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"&&_.w("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.w("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 M;if(this.addedAttachment==="image-poll"&&((M=this.$["image-poll-attachment"])==null||!M.isValid()))return!1;var q;if(this.addedAttachment==="quiz"&&((q=this.$["quiz-attachment"])==null||!q.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;M=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(M=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")M=!0;return M||!!this.getTextAreaValue().trim()},
submitForm_:function(M,q,G,K,n,E){var p=this.getTextAreaValue().trim(),y={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&p===this.previousText_&&(p=void 0);p!==void 0&&(y.comment_text=p);this.isLoading=!0;E!=void 0&&(y.tagged_video_id=E);M?(y.image_blob_id=M,this.imagePreviewCoordinates_&&(y.image_preview_coordinates=this.imagePreviewCoordinates_)):q?y.attached_video_id=q:G?y.shared_post_id=G:n&&n.length>0&&(y.images_data=n.map(function(Y){return{encryptedBlobId:Y.encryptedBlobId,
previewCoordinates:Y.previewCoordinates}}));
K&&(y.source_video_id=K);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(y.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(y.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(y.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.w("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(y.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.w("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(y.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.fx(this,[this.serviceEndpoint,y])},
onIsInputFocusChanged_:function(M,q){M?this.fire("yt-autonav-pause-focus"):q!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(M){var q=this.getEditableTextArea_();[].concat(_.Ui(M.dataTransfer.items)).forEach(function(G){G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(K){q.appendChild(document.createTextNode(K))})});
M.preventDefault()},
preventDefault_:function(M){M.preventDefault()},
onSuggestionInsert_:function(M){this.insertTextWithEmojis_(M.detail.range,M.detail.text)},
onEmojiSuggestionClick_:function(M){this.emojiInput.insertSuggestion(M.detail)},
computeSubmitButtonClass_:function(M,q){return!q||M?"":"with-options"},
updateSuggestionOffset_:function(M){if(this.emojiInput&&_.f_(this.emojiInput).querySelector("#dropdown")){var q=this.getEditableTextArea_().getBoundingClientRect().bottom,G=M.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(q-G)+5;q=this.getEditableTextArea_().getBoundingClientRect().left;M=M.getBoundingClientRect().left-q;_.f_(this.emojiInput).querySelector("#dropdown").style.marginLeft=M+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(M){if(_.w("enable_post_scheduling")&&this.data&&this.data.purpose){M=M.detail;if(Math.floor(Date.now()/1E3)>=M)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var q=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(q)||q!==M?this.scheduledPublishTimeSec_=M:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=M;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var M=["image-button","image-poll-button","poll-button"];_.w("enable_quiz_creation")&&M.push("quiz-button");_.w("auto_convert_posts_video_tag")||M.push("video-link-button");return M},
getButtonRenderer:function(M,q){if(M)switch(q){case "video-link-button":var G;return((G=M.videoLinkButton)==null?void 0:G.buttonRenderer)||void 0;case "image-button":var K;return((K=M.imageButton)==null?void 0:K.buttonRenderer)||void 0;case "poll-button":var n;return((n=M.pollButton)==null?void 0:n.buttonRenderer)||void 0;case "image-poll-button":var E;return((E=M.imagePollButton)==null?void 0:E.buttonRenderer)||void 0;case "quiz-button":var p;return((p=M.quizButton)==null?void 0:p.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var M;return(M=this.data)==null||!M.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var M,q;return!((M=this.data)==null||!M.openAadcDialog)&&!((q=this.aadcGuidelinesState_)==null||!q.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.R9("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var M;((M=this.data)==null?0:M.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.F8("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(M){M.clickTrackingParams&&_.nl().clickCommand(M);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.VW(this,"yt-close-popup-action")},
onHideIdentityChip:function(M){var q;this.set("data.placeholderText",(q=M.hideIdentityChipAction)==null?void 0:q.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var XK=function(){var M=_.Q.apply(this,arguments)||this;M.isOpen=!1;M.modern=_.w("web_modern_buttons");M.roundedContainer=!0;M.dropdownButtonOverride=_.w("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;M.inPopupContainer=!1;M.isCommentboxLoading=!1;var q=["image-button","image-poll-button","poll-button"];_.w("enable_quiz_creation")&&q.push("quiz-button");_.w("auto_convert_posts_video_tag")||q.push("video-link-button");M.attachmentButtonIds=q;M.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 M};
_.l(XK,_.Q);_.N=XK.prototype;_.N.computeButtonOverride=function(){var M;return((M=this.data)==null?0:M.postOptionsMenu)&&_.w("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.N.configureRendererStamper=function(){var M={"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]]"}}}}};_.w("auto_convert_posts_video_tag")||(M["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return M};
_.N.ready=function(){var M=this,q=_.f_(this.hostElement).querySelector("#placeholder-area"),G=function(K){M.onOpen(K)};
q.addEventListener("tap",G);q.addEventListener("keypress",G)};
_.N.showButtonEduTooltip=function(){var M,q,G,K,n,E,p;if(_.w("enable_quiz_creation")&&((M=this.data)==null?0:(q=M.quizButton)==null?0:(G=q.buttonRenderer)==null?0:(K=G.hint)==null?0:(n=K.hintRenderer)==null?0:(E=n.content)==null?0:(p=E.bubbleHintRenderer)==null?0:p.text)&&(_.O_.getInstance(),M=w1(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(M==null?void 0:
M.length)>0)){this.ytComponentBehavior.resolveCommand(M[0],{form:{element:this.quizButton}});return}var y;if((y=this.data)==null?0:y.imagePollButtonTooltip)if(_.O_.getInstance(),y=w1(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(y==null?void 0:y.length)>0){this.ytComponentBehavior.resolveCommand(y[0],{form:{element:this.imagePollButton}});return}var Y;_.w("enable_multi_image_post_creation")&&
((Y=this.data)==null?0:Y.multiImageButtonTooltip)&&(_.O_.getInstance(),Y=w1(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(Y==null?void 0:Y.length)>0&&this.ytComponentBehavior.resolveCommand(Y[0],{form:{element:this.imageButton}}))};
_.N.onCreatePollAction=function(M){_.C(M,Y5v)&&(this.JSC$15930_commentbox.addedAttachment="poll",this.openDialog())};
_.N.onAddVideoLinkAction=function(M){if(_.C(M,kdJ))this.JSC$15930_commentbox.onAddVideoLink(M)};
_.N.onShowSchedulingPanelCommand=function(M){(M=_.C(M,Z$d))&&this.openSchedulingPanel(M)};
_.N.onCreateImagePollCommand=function(M){_.C(M,Z3d)&&(this.JSC$15930_commentbox.openImagePollComponent(),this.openDialog())};
_.N.onCreateQuizCommand=function(M){_.C(M,b3f)&&(this.JSC$15930_commentbox.openQuizComponent(),this.openDialog())};
_.N.openSchedulingPanel=function(M){_.w("enable_post_scheduling")&&(this.openDialog(),this.JSC$15930_commentbox.openSchedulingPanel(M))};
_.N.onCreateCommentAction=function(M){this.get("createCommentAction.contents",M)&&(this.JSC$15930_commentbox.clear(),this.closeDialog())};
_.N.onOpen=function(M){M instanceof KeyboardEvent&&M.type==="keypress"&&M.keyCode!==13&&M.keyCode!==32||(this.data.prepareAccountEndpoint?_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.N.onYtCommentboxDismiss=function(){this.closeDialog()};
_.N.onYtCommentboxLoadingStart=function(M){M.stopPropagation();this.isCommentboxLoading=!0};
_.N.onYtCommentboxLoadingEnd=function(M){M.stopPropagation();this.isCommentboxLoading=!1};
_.N.onYtVideoLinkButtonCancel=function(M){M.stopPropagation();this.onOpen(M)};
_.N.onYtVideoLinkSelected=function(M){M.stopPropagation();this.onOpen(M)};
_.N.onIronSelect=function(M){M.stopPropagation();M.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=M.detail.item.value&&(this.accessRestriction?(this.accessRestriction=M.detail.item.value,this.onOpen(M)):this.accessRestriction=M.detail.item.value)};
_.N.onYtNavigate=function(M){this.get("detail.endpoint.backstageImageUploadEndpoint",M)&&(this.JSC$15930_commentbox.addedAttachment="image",this.JSC$15930_commentbox.submitButtonDisabled=!0,this.onOpen(M))};
_.N.onRequestSent=function(M){if(_.w("web_button_rework"))for(var q=_.k(M.detail),G=q.next();!G.done;G=q.next())_.C(G.value,fIP)&&(this.JSC$15930_commentbox.addedAttachment="image",this.JSC$15930_commentbox.submitButtonDisabled=!0,this.onOpen(M))};
_.N.openDialog=function(){var M;(M=this.data)!=null&&M.isIneligibleForCommunityPagePostCreation||(this.JSC$15930_commentbox.accessRestriction=this.accessRestriction,this.isOpen=!0,this.JSC$15930_commentbox.focus())};
_.N.onPopupClosed=function(){_.O_.getInstance()};
_.N.computeCreationDisabled=function(M){return!!M};
_.N.computeIsCreationDialog=function(M){return!!M&&M==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.N.computeDisabledPostButton=function(M){if(!M)return null;M.isDisabled=!0;return M};
_.N.computeIsCreationDialogWithHeader=function(M){return!this.inPopupContainer&&!!M&&!!M.authorText&&M.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.N.computeIsHeaderHidden=function(M,q){return!M||q};
_.N.computeDropdownRendererClasses=function(M){return M?["text-secondary-style"]:[]};
_.N.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var M=_.f_(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;M&&M.reset()};
XK.prototype.onPopupClosed=XK.prototype.onPopupClosed;XK.prototype.onRequestSent=XK.prototype.onRequestSent;XK.prototype.onYtNavigate=XK.prototype.onYtNavigate;XK.prototype.onIronSelect=XK.prototype.onIronSelect;XK.prototype.onYtVideoLinkSelected=XK.prototype.onYtVideoLinkSelected;XK.prototype.onYtVideoLinkButtonCancel=XK.prototype.onYtVideoLinkButtonCancel;XK.prototype.onYtCommentboxLoadingEnd=XK.prototype.onYtCommentboxLoadingEnd;XK.prototype.onYtCommentboxLoadingStart=XK.prototype.onYtCommentboxLoadingStart;
XK.prototype.onYtCommentboxDismiss=XK.prototype.onYtCommentboxDismiss;XK.prototype.showButtonEduTooltip=XK.prototype.showButtonEduTooltip;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],XK.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],XK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],XK.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],XK.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],XK.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XK.prototype,"isOpen",void 0);_.T([_.B({computed:"computeButtonOverride(data)"}),_.r("design:type",Object)],XK.prototype,"buttonOverride",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XK.prototype,"modern",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XK.prototype,"roundedContainer",void 0);_.T([_.B(),_.r("design:type",Object)],XK.prototype,"dropdownButtonOverride",void 0);_.T([_.B({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.r("design:type",Boolean)],XK.prototype,"creationDisabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],XK.prototype,"enableCreationBox",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.r("design:type",Boolean)],XK.prototype,"isCreationDialog",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XK.prototype,"inPopupContainer",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.r("design:type",Boolean)],XK.prototype,"isCreationDialogWithHeader",void 0);_.T([_.B(),_.r("design:type",Object)],XK.prototype,"accessRestriction",void 0);
_.T([_.B({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.r("design:type",Array)],XK.prototype,"dropdownRendererClasses",void 0);_.T([_.B(),_.r("design:type",Object)],XK.prototype,"isCommentboxLoading",void 0);_.T([_.B(),_.r("design:type",Array)],XK.prototype,"attachmentButtonIds",void 0);_.T([_.ET("#image-button"),_.r("design:type",HTMLElement)],XK.prototype,"imageButton",void 0);
_.T([_.ET("#image-poll-button"),_.r("design:type",HTMLElement)],XK.prototype,"imagePollButton",void 0);_.T([_.ET("#quiz-button"),_.r("design:type",HTMLElement)],XK.prototype,"quizButton",void 0);_.T([_.ET("#commentbox"),_.r("design:type",Object)],XK.prototype,"JSC$15930_commentbox",void 0);_.T([_.KT("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],XK.prototype,"showButtonEduTooltip",null);
_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XK.prototype,"onYtCommentboxDismiss",null);_.T([_.GQ("yt-commentbox-loading-start"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XK.prototype,"onYtCommentboxLoadingStart",null);
_.T([_.GQ("yt-commentbox-loading-end"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XK.prototype,"onYtCommentboxLoadingEnd",null);_.T([_.GQ("yt-video-link-button-cancel"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XK.prototype,"onYtVideoLinkButtonCancel",null);
_.T([_.GQ("yt-video-link-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XK.prototype,"onYtVideoLinkSelected",null);_.T([_.GQ("iron-select"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XK.prototype,"onIronSelect",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XK.prototype,"onYtNavigate",null);
_.T([_.GQ("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],XK.prototype,"onRequestSent",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],XK.prototype,"onPopupClosed",null);_.T([_.b({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],XK);
_.z(XK,"ytd-backstage-post-dialog-renderer",function(){if(uxI!==void 0)return uxI;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return uxI=M},{mode:1});var Wsp;var Afp;var P_=function(){return _.Q.apply(this,arguments)||this};
_.l(P_,_.Q);_.N=P_.prototype;_.N.computeHeartButtonStyle=function(M){return(M==null?0:M.styleType)?M.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.N.onYtButtonTap=function(){if(this.data.isEnabled){var M=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(M=this.getEndpoint(M))&&_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}})}else(M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(M)};
_.N.toggle=function(M){this.set("data.isHearted",M!==void 0?M:!this.data.isHearted)};
_.N.getEndpoint=function(M){var q,G=(q=this.data)==null?void 0:q.heartEndpoint,K;q=(K=this.data)==null?void 0:K.unheartEndpoint;if(G&&q)return M?q:G};
_.N.computeButtonAccessibility=function(M,q){var G,K,n=M==null?void 0:(G=M.heartedAccessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label,E,p;M=M==null?void 0:(E=M.unheartedAccessibility)==null?void 0:(p=E.accessibilityData)==null?void 0:p.label;return q?n:M};
_.Yd.Object.defineProperties(P_.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 M;return _.w("kevlar_system_icons")&&!((M=this.data)==null||!M.isHearted)}}});
P_.prototype.onYtButtonTap=P_.prototype.onYtButtonTap;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],P_.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],P_.prototype,"data",void 0);_.T([_.c("data.isHearted"),_.r("design:type",Object),_.r("design:paramtypes",[])],P_.prototype,"heartTooltip",null);
_.T([_.c("data.isHearted"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],P_.prototype,"iconFilled",null);_.T([_.B({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.r("design:type",String)],P_.prototype,"buttonAccessibility",void 0);_.T([_.B({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.r("design:type",String)],P_.prototype,"heartButtonStyle",void 0);
_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],P_.prototype,"onYtButtonTap",null);_.T([_.b({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],P_);
_.z(P_,"ytd-creator-heart-renderer",function(){if(Afp!==void 0)return Afp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Afp=M},{mode:1});var iV=function(){var M=_.Q.apply(this,arguments)||this;M.hasCreatorReply=!1;M.buttonOverrides={size:"S",iconPosition:"icon-only"};M.replyButtonOverrides={size:"S",type:"text"};M.forceIconButton=!_.w("web_modern_buttons");M.modern=_.w("web_modern_buttons");M.buttonTooltipPosition="bottom";M.systemIcons=_.w("kevlar_system_icons");M.replyDialog=null;return M};
_.l(iV,_.Q);_.N=iV.prototype;
_.N.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]]"}}}}}};
_.N.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.N.dataChange=function(){this.replyDialog&&_.f_(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var M,q,G;this.isLiked=this.systemIcons&&!!((M=this.data)==null?0:(q=M.likeButton)==null?0:(G=q.toggleButtonRenderer)==null?0:G.isToggled)};
_.N.computeShowVoteCountBeginning=function(M,q){return M===void 0||q===void 0?!0:M.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!q&&this.ytRendererBehavior.getSimpleString(q)!=="0"};
_.N.computeShowVoteCountEnd=function(M,q){return M===void 0||q===void 0?!0:M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!q&&this.ytRendererBehavior.getSimpleString(q)!=="0"};
_.N.computeShowCommentCount=function(M,q){return M===void 0||q===void 0?!0:M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!q&&this.ytRendererBehavior.getSimpleString(q)!=="0"};
_.N.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.N.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.N.showReplyDialog=function(M){M&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.f_(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=M,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.N.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.N.onRequestSent=function(M){if(_.w("web_button_rework")){M=_.k(M.detail);for(var q=M.next();!q.done;q=M.next())(q=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",q.value))&&this.showReplyDialog(q)}};
_.N.onYtNavigate=function(M){var q,G;(M=(q=_.C(M.detail.endpoint,_.HVS))==null?void 0:(G=q.dialog)==null?void 0:G.commentReplyDialogRenderer)&&this.showReplyDialog(M)};
_.N.onYtServiceRequestSent=function(M,q){M.stopPropagation();if(q.actions)for(M=0;M<q.actions.length;M++){var G=_.C(q.actions[M],t92);G&&this.handleUpdateCommentVoteAction(G)}};
_.N.handleUpdateCommentVoteAction=function(M){this.voteCount=M.voteCount||_.bc("0");M.voteStatus==="LIKE"?this.JSC$15942_ytdDislikeToggleButtonRenderer.toggle(!1):M.voteStatus==="DISLIKE"?this.JSC$15942_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$15942_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$15942_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.N.computeReplyButtonHidden=function(M){return M};
_.N.computeReplyButtonBeginning=function(M){return(M==null?0:M.replyButton)&&M.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?M.replyButton:void 0};
_.N.computeReplyButtonEnd=function(M){return(M==null?0:M.replyButton)&&M.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?M.replyButton:void 0};
_.N.computeActionButtonStyle=function(M){return(M==null?0:M.style)?M.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.N.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.N.onYtToggleButton=function(M){var q,G;this.isLiked=this.systemIcons&&!!((q=M.detail)==null?0:(G=q.actions)==null?0:G.like)};
iV.prototype.onYtToggleButton=iV.prototype.onYtToggleButton;iV.prototype.onButtonTooltipPositionChanged=iV.prototype.onButtonTooltipPositionChanged;iV.prototype.onYtServiceRequestSent=iV.prototype.onYtServiceRequestSent;iV.prototype.onYtNavigate=iV.prototype.onYtNavigate;iV.prototype.onRequestSent=iV.prototype.onRequestSent;iV.prototype.onYtCommentboxDismiss=iV.prototype.onYtCommentboxDismiss;iV.prototype.dataChange=iV.prototype.dataChange;
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],iV.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],iV.prototype,"voteCount",void 0);_.T([_.B(),_.r("design:type",Object)],iV.prototype,"commentCount",void 0);_.T([_.B(),_.r("design:type",Object)],iV.prototype,"replyThumbnail",void 0);
_.T([_.B(),_.r("design:type",Object)],iV.prototype,"hasCreatorReply",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],iV.prototype,"enableCreationBox",void 0);_.T([_.B({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.r("design:type",String)],iV.prototype,"actionButtonsStyle",void 0);_.T([_.B({computed:"computeReplyButtonBeginning(data)"}),_.r("design:type",Object)],iV.prototype,"replyButtonBeginning",void 0);
_.T([_.B({computed:"computeReplyButtonEnd(data)"}),_.r("design:type",Object)],iV.prototype,"replyButtonEnd",void 0);_.T([_.B(),_.r("design:type",Object)],iV.prototype,"buttonOverrides",void 0);_.T([_.B(),_.r("design:type",Object)],iV.prototype,"replyButtonOverrides",void 0);_.T([_.B(),_.r("design:type",Object)],iV.prototype,"forceIconButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],iV.prototype,"useCommentIcon",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],iV.prototype,"modern",void 0);_.T([_.B(),_.r("design:type",Object)],iV.prototype,"buttonTooltipPosition",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],iV.prototype,"systemIcons",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],iV.prototype,"isLiked",void 0);_.T([_.ET("ytd-button-renderer"),_.r("design:type",Object)],iV.prototype,"ytdReplyButtonRenderer",void 0);
_.T([_.ET("#like-button"),_.r("design:type",Object)],iV.prototype,"JSC$15942_ytdLikeToggleButtonRenderer",void 0);_.T([_.ET("#dislike-button"),_.r("design:type",Object)],iV.prototype,"JSC$15942_ytdDislikeToggleButtonRenderer",void 0);_.T([_.ET("#reply-dialog"),_.r("design:type",HTMLElement)],iV.prototype,"replyDialogElement",void 0);_.T([_.ET("#reply-button"),_.r("design:type",HTMLElement)],iV.prototype,"replyButtonElement",void 0);
_.T([_.ET("#reply-button-end"),_.r("design:type",HTMLElement)],iV.prototype,"replyButtonEndElement",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iV.prototype,"dataChange",null);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iV.prototype,"onYtCommentboxDismiss",null);
_.T([_.GQ("yt-service-request-sent-button-renderer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iV.prototype,"onRequestSent",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iV.prototype,"onYtNavigate",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],iV.prototype,"onYtServiceRequestSent",null);_.T([_.KT("buttonTooltipPosition"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iV.prototype,"onButtonTooltipPositionChanged",null);
_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iV.prototype,"onYtToggleButton",null);_.T([_.b({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],iV);
_.z(iV,"ytd-comment-action-buttons-renderer",function(){if(Wsp!==void 0)return Wsp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Wsp=M},{mode:1});var dHB;var c_=function(){return _.Q.apply(this,arguments)||this};
_.l(c_,_.Q);c_.prototype.focus=function(){_.f_(this.hostElement).querySelector("#commentbox").focus()};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],c_.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],c_.prototype,"zeroStepChannelCreationRenderer",void 0);_.T([_.b({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],c_);
_.z(c_,"ytd-comment-dialog-renderer",function(){if(dHB!==void 0)return dHB;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return dHB=M},{mode:1});var vi9;var gE=function(){var M=_.Q.apply(this,arguments)||this;M.buttonOverrides={size:"S",iconPosition:"icon-only",ignoreIconSizeOverride:_.w("enable_web_delhi_icons")};M.replyButtonOverrides={size:"S",type:"text"};return M};
_.l(gE,_.Q);_.N=gE.prototype;_.N.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.N.detached=function(){this.replyBox&&this.replyBox.remove()};
_.N.showReplyDialog=function(M){if(M){var q=this.replyBox;q||(q=document.createElement("ytd-comment-reply-dialog-renderer"),q.id="replybox",_.f_(this.replyDialogDiv).appendChild(q));q.data=M;this.replyDialogDiv.hidden=!1;q.openDialog()}};
_.N.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.N.handleReplyButtonClick=function(){if(this.isSubsOnlyCommentsEligibleUser){var M,q=_.C((M=this.toolbarSurface)==null?void 0:M.subscribersOnlyDisclaimerSnackbarCommand,_.Cl);q&&_.jP(this.hostElement,"yt-show-subscribers-only-disclaimer",{command:q})}};
_.N.onYtServiceRequestSent=function(M,q){M.stopPropagation();if(q.actions)for(var G=0;G<q.actions.length;G++){var K=_.C(q.actions[G],t92);K?this.handleUpdateCommentVoteAction(K):M.target===this.heartButton&&this.toggleHeartState()}};
_.N.handleUpdateCommentVoteAction=function(M){var q;(q=this.toolbarState)!=null&&q.key&&this.ytdReduxBehavior.dispatch(_.hY("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:M.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":M.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.N.toggleHeartState=function(){var M;(M=this.toolbarState)!=null&&M.key&&this.ytdReduxBehavior.dispatch(_.hY("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Yd.Object.defineProperties(gE.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return(((M=this.toolbarState)==null?void 0:M.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(q=this.toolbarData)==null?void 0:q.likeCountLiked:(G=this.toolbarData)==null?void 0:G.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.commentDisabledActionCommand)!==void 0}},
isSubsOnlyCommentsIneligibleUser:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.subscribersOnlySnackbarCommand)!==void 0}},
isSubsOnlyCommentsEligibleUser:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.subscribersOnlyDisclaimerSnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand)!==void 0&&!_.w("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,q=_.C((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand,_.Cl),G,K,n,E,p,y,Y,A,v;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((G=this.toolbarSharedData)==null||!G.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((K=this.toolbarState)==null?void 0:K.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:q!=null?q:_.C((n=this.toolbarSurface)==null?void 0:n.likeCommand,_.Cl),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:q!=null?q:_.C((E=this.toolbarSurface)==null?void 0:E.unlikeCommand,_.Cl),defaultCommand:this.isVisiblyDisabled?_.C((p=this.toolbarSurface)==null?void 0:p.commentDisabledActionCommand,_.Cl):void 0,defaultTooltip:(y=this.toolbarData)==null?void 0:y.likeInactiveTooltip,toggledTooltip:(Y=this.toolbarData)==null?void 0:Y.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(A=this.toolbarData)==null?void 0:A.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(v=this.toolbarSharedData)==null?void 0:v.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M,q=_.C((M=this.toolbarSurface)==null?void 0:M.prepareAccountCommand,_.Cl),G,K,n,E,p,y,Y,A,v,h;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((G=this.toolbarSharedData)==null||!G.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((K=this.toolbarState)==null?void 0:K.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:q!=null?q:_.C((n=this.toolbarSurface)==null?void 0:n.dislikeCommand,_.Cl),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:q!=null?q:_.C((E=this.toolbarSurface)==null?void 0:E.undislikeCommand,_.Cl),defaultCommand:this.isVisiblyDisabled?_.C((p=this.toolbarSurface)==null?void 0:p.commentDisabledActionCommand,_.Cl):void 0,defaultTooltip:(y=this.toolbarData)==null?void 0:y.dislikeInactiveTooltip,toggledTooltip:(Y=this.toolbarData)==null?void 0:
Y.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(A=this.toolbarSharedData)==null?void 0:A.dislikeReplyButtonA11y:(v=this.toolbarSharedData)==null?void 0:v.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(h=this.toolbarSharedData)==null?void 0:h.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var M,q,G;if(((M=this.toolbarState)==null?void 0:M.heartState)!==void 0&&((q=this.toolbarState)==null?void 0:q.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((G=this.toolbarState)==null?void 0:G.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var K,n,E,p,y,Y,A,v,h,t,O,a,g,D;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(K=this.toolbarData)==null?void 0:K.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((n=this.toolbarState)==null?void 0:n.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((E=this.toolbarState)==null?void 0:E.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((p=this.toolbarState)==null?void 0:p.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((y=this.toolbarState)==null?void 0:y.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.C((Y=this.toolbarSurface)==null?void 0:Y.heartCommand,
_.Cl),unheartEndpoint:this.isVisiblyDisabled?void 0:_.C((A=this.toolbarSurface)==null?void 0:A.unheartCommand,_.Cl),disabledEndpoint:this.isVisiblyDisabled?_.C((v=this.toolbarSurface)==null?void 0:v.commentDisabledActionCommand,_.Cl):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(h=this.toolbarData)==null?void 0:h.heartActiveTooltip,unheartedTooltip:(t=this.toolbarData)==null?void 0:t.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((O=
this.toolbarState)==null?void 0:O.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(a=this.toolbarSharedData)==null?void 0:a.unheartButtonA11y:(g=this.toolbarSharedData)==null?void 0:g.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(D=this.toolbarSharedData)==null?void 0:D.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.toolbarSurface)==null||!M.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.commentStrings)!=null&&M.replyButtonText){var q,G,K,n;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(q=this.commentStrings)==null?void 0:q.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubsOnlyCommentsIneligibleUser?void 0:_.C((G=this.toolbarSurface)==null?void 0:G.replyCommand,_.Cl),command:this.isVisiblyDisabled?
_.C((K=this.toolbarSurface)==null?void 0:K.commentDisabledActionCommand,_.Cl):this.isSubsOnlyCommentsIneligibleUser?_.C((n=this.toolbarSurface)==null?void 0:n.subscribersOnlySnackbarCommand,_.Cl):void 0}}}}});
gE.prototype.onYtServiceRequestSent=gE.prototype.onYtServiceRequestSent;gE.prototype.hideReplyDialogDiv=gE.prototype.hideReplyDialogDiv;_.T([_.B(),_.r("design:type",Object)],gE.prototype,"commentStrings",void 0);_.T([_.B(),_.r("design:type",Boolean)],gE.prototype,"isReply",void 0);_.T([_.B(),_.r("design:type",Object)],gE.prototype,"toolbarData",void 0);_.T([_.B(),_.r("design:type",Object)],gE.prototype,"toolbarSharedData",void 0);
_.T([_.B(),_.r("design:type",String)],gE.prototype,"toolbarStateKey",void 0);_.T([_.B(),_.r("design:type",String)],gE.prototype,"toolbarSurfaceKey",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],gE.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],gE.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],gE.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.EO),_.r("design:type",Object)],gE.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.ET("#reply-dialog"),_.r("design:type",HTMLElement)],gE.prototype,"replyDialogDiv",void 0);_.T([_.ET("#replybox"),_.r("design:type",Object)],gE.prototype,"replyBox",void 0);_.T([_.ET("ytd-creator-heart-renderer"),_.r("design:type",Object)],gE.prototype,"heartButton",void 0);_.T([_.B({selector:function(M,q){return _.sX(M.entities,"engagementToolbarStateEntityPayload",q)},
selectorArgs:["toolbarStateKey"]}),_.r("design:type",Object)],gE.prototype,"toolbarState",void 0);_.T([_.B({selector:kP$,selectorArgs:["toolbarSurfaceKey"]}),_.r("design:type",Object)],gE.prototype,"toolbarSurface",void 0);_.T([_.B(),_.r("design:type",Object)],gE.prototype,"buttonOverrides",void 0);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gE.prototype,"hideReplyDialogDiv",null);
_.T([_.c("toolbarData","toolbarState"),_.r("design:type",String),_.r("design:paramtypes",[])],gE.prototype,"likeCount",null);_.T([_.c("likeCount"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gE.prototype,"showLikeCount",null);_.T([_.c("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gE.prototype,"isVisiblyDisabled",null);_.T([_.c("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gE.prototype,"isSubsOnlyCommentsIneligibleUser",null);
_.T([_.c("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gE.prototype,"isSubsOnlyCommentsEligibleUser",null);_.T([_.c("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gE.prototype,"hasPrepareAccountCommand",null);_.T([_.c("toolbarData","toolbarState","toolbarSurface"),_.r("design:type",Object),_.r("design:paramtypes",[])],gE.prototype,"likeToggleButtonRenderer",null);
_.T([_.c("isReply","toolbarData","toolbarState","toolbarSurface"),_.r("design:type",Object),_.r("design:paramtypes",[])],gE.prototype,"dislikeToggleButtonRenderer",null);_.T([_.c("toolbarData","toolbarState","toolbarSurface"),_.r("design:type",Object),_.r("design:paramtypes",[])],gE.prototype,"creatorHeartSupportedRenderer",null);_.T([_.c("toolbarSurface"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gE.prototype,"hasReplyCommand",null);
_.T([_.c("toolbarSurface","commentStrings","isVisiblyDisabled"),_.r("design:type",Object),_.r("design:paramtypes",[])],gE.prototype,"replyButtonRenderer",null);_.T([_.B(),_.r("design:type",Object)],gE.prototype,"replyButtonOverrides",void 0);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],gE.prototype,"onYtServiceRequestSent",null);_.T([_.b({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],gE);
_.z(gE,"ytd-comment-engagement-bar",function(){if(vi9!==void 0)return vi9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return vi9=M},{mode:1});var hQS;var B_=function(){return _.Q.apply(this,arguments)||this};
_.l(B_,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],B_.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],B_.prototype,"data",void 0);_.T([_.b({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],B_);
_.z(B_,"ytd-comment-inline-thumbnail-renderer",function(){if(hQS!==void 0)return hQS;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return hQS=M},{mode:1});var tn9;var Q6=function(){return _.Q.apply(this,arguments)||this};
_.l(Q6,_.Q);Q6.prototype.onMessageTap=function(){if(this.onTapCommand){var M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.onTapCommand);M&&this.ytdOpenPopupBehavior.openPopup(M)}};
_.Yd.Object.defineProperties(Q6.prototype,{onTapCommand:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return(M=this.data)==null?void 0:(q=M.button)==null?void 0:(G=q.buttonRenderer)==null?void 0:G.command}}});
_.T([_.P(_.EO),_.r("design:type",Object)],Q6.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Q6.prototype,"data",void 0);_.T([_.c("data.button.buttonRenderer.command"),_.r("design:type",Object),_.r("design:paramtypes",[])],Q6.prototype,"onTapCommand",null);_.T([_.b({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],Q6);
_.z(Q6,"ytd-comment-pause-composer-renderer",function(){if(tn9!==void 0)return tn9;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return tn9=M},{mode:1});var Ocl;var w0l;var I_=function(){var M=_.Q.apply(this,arguments)||this;M.isOpen=!1;return M};
_.l(I_,_.Q);_.N=I_.prototype;_.N.dataChanged=function(){this.isOpen=!1};
_.N.onTap=function(){this.data&&(this.data.navigationEndpoint?_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.N.focus=function(){this.JSC$15972_commentbox.focus()};
_.N.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.N.openDialog=function(){this.isOpen=!0;this.JSC$15972_commentbox.focus();this.JSC$15972_commentbox.maybeHeightChanged()};
I_.prototype.onYtCommentboxDismiss=I_.prototype.onYtCommentboxDismiss;I_.prototype.dataChanged=I_.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],I_.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],I_.prototype,"isOpen",void 0);_.T([_.ET("#commentbox"),_.r("design:type",Object)],I_.prototype,"JSC$15972_commentbox",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],I_.prototype,"dataChanged",null);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],I_.prototype,"onYtCommentboxDismiss",null);_.T([_.b({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],I_);
_.z(I_,"ytd-comment-reply-dialog-renderer",function(){if(w0l!==void 0)return w0l;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return w0l=M},{mode:1});var CBp;var DW=function(){return _.Q.apply(this,arguments)||this};
_.l(DW,_.Q);_.Yd.Object.defineProperties(DW.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.data)==null?void 0:(q=M.icon)==null?void 0:q.iconType;return G?"yt-icons:"+G.toLowerCase():null}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],DW.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],DW.prototype,"data",void 0);_.T([_.B(),_.c("data.icon"),_.r("design:type",Object),_.r("design:paramtypes",[])],DW.prototype,"icon",null);_.T([_.b({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],DW);
_.z(DW,"ytd-pinned-comment-badge-renderer",function(){if(CBp!==void 0)return CBp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return CBp=M},{mode:1});var a0M;var oiS={},l02={input:!0,meta:!0,br:!0,link:!0,img:!0},uV=null;oiS.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(){uV==null&&(uV=document.createElement("tp-yt-paper-tooltip"),uV.offset=8,uV.fitToVisibleBounds=!0)},
onMouseOver_:function(M){if(M=_.jX(M.target,function(n){return n==this||n.getAttribute&&n.getAttribute("shared-tooltip-text")}.bind(this),!0)){var q=M.getAttribute("shared-tooltip-text");
if(q){var G=this,K=null;M!=this&&(M.tagName.toLowerCase()in l02?G=M.parentElement:G=M,M.id&&(K=M.id));this.polymerController.createTooltipIfRequired_();if(uV.parentElement!=G||uV.for!=K)(0,_.$U)(uV).textContent=q,_.f_(G).appendChild(uV),uV.for=K,uV.animationDelay=this.polymerController.sharedTooltipAnimationDelay,uV.position=this.polymerController.sharedTooltipPosition}}}};var JZ=function(){return _.Q.apply(this,arguments)||this};
_.l(JZ,_.Q);JZ.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]]"}}}}}};
JZ.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img");var M;((M=this.data)==null?0:M.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
JZ.prototype.colorChanged=function(){var M,q,G,K=(M=this.data)==null?void 0:(q=M.color)==null?void 0:(G=q.basicColorPaletteData)==null?void 0:G.foregroundBodyColor;K&&(this.rgbBadgeColor=_.w2(K));_.f_(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
JZ.prototype.tooltipChanged=function(){var M;((M=this.data)==null?0:M.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
JZ.prototype.tooltipChanged=JZ.prototype.tooltipChanged;JZ.prototype.colorChanged=JZ.prototype.colorChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JZ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],JZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(oiS.YtSharedTooltipBehavior),_.r("design:type",Object)],JZ.prototype,"ytSharedTooltipBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],JZ.prototype,"data",void 0);
_.T([_.B({value:"#4285F4"}),_.r("design:type",String)],JZ.prototype,"rgbBadgeColor",void 0);_.T([_.KT("data.color"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JZ.prototype,"colorChanged",null);_.T([_.KT("data.tooltip"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JZ.prototype,"tooltipChanged",null);_.T([_.b({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],JZ);
_.z(JZ,"ytd-sponsor-comment-badge-renderer",function(){if(a0M!==void 0)return a0M;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return a0M=M},{mode:1});var X0P;var PBp;var ZW=function(){return _.Q.apply(this,arguments)||this};
_.l(ZW,_.Q);ZW.prototype.computeState=function(M){switch(M==null?void 0:M.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"}};
ZW.prototype.updateStateIdentifier=function(M){if(this.viewModel.triStateKey){var q=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.hY("triStateButtonStateEntityPayload",q,{key:q,stateIdentifier:M}))}};
ZW.prototype.onClick=function(){var M=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(){M.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){M.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Yd.Object.defineProperties(ZW.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 M;return((M=this.data)==null?void 0:M.buttonText)||""}}});
_.T([_.B(),_.r("design:type",Object)],ZW.prototype,"viewModel",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ZW.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],ZW.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ZW.prototype,"ytRendererBehavior",void 0);_.T([_.B({selector:p6u,selectorArgs:["viewModel.triStateKey"]}),_.r("design:type",Object)],ZW.prototype,"triStateButtonStateEntity",void 0);
_.T([_.B({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.r("design:type",String)],ZW.prototype,"state",void 0);_.T([_.c("viewModel","state"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZW.prototype,"data",null);_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],ZW.prototype,"buttonText",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],ZW);
_.z(ZW,"ytd-tri-state-button-view-model",function(){if(PBp!==void 0)return PBp;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return PBp=M},{mode:1});var ic9;var cfI;var bV=function(){var M=_.Q.apply(this,arguments)||this;M.defaultIconToFilled=!_.w("kevlar_fill_comment_chip_icon_killswitch");return M};
_.l(bV,_.Q);bV.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
bV.prototype.dataChanged=function(){if(this.data){var M,q;((M=this.data.chipColorPalette)==null?0:M.backgroundColor)&&((q=this.data.chipColorPalette)==null?0:q.foregroundTitleColor)&&_.sT(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.C_(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.C_(this.data.chipColorPalette.foregroundTitleColor)});var G;((G=this.data)==null?0:G.command)?(_.sT(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.sT(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}};
bV.prototype.onTap=function(){var M;if(this.data&&(M=this.data)!=null&&M.command){var q;this.ytComponentBehavior.resolveCommand((q=this.data)==null?void 0:q.command)}};
bV.prototype.getIconSize=function(){return _.w("kevlar_fill_comment_chip_icon_killswitch")?24:12};
bV.prototype.onTap=bV.prototype.onTap;bV.prototype.dataChanged=bV.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],bV.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.X9),_.r("design:type",Object)],bV.prototype,"ironA11yKeysBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bV.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],bV.prototype,"basePriceText",void 0);_.T([_.B(),_.r("design:type",Object)],bV.prototype,"chipIcon",void 0);_.T([_.B(),_.r("design:type",Object)],bV.prototype,"defaultIconToFilled",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bV.prototype,"dataChanged",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bV.prototype,"onTap",null);
_.T([_.aO({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],bV);
_.z(bV,"yt-pdg-comment-chip-renderer",function(){if(cfI===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;ic9===void 0&&(ic9=document.createElement("template"));var K=ic9;G.call(q,K.content.cloneNode(!0),M.content.firstChild);cfI=M}M=cfI;return M},{mode:2});var Uf=function(){var M=_.Q.apply(this,arguments)||this;M.useSmallAvatars=_.w("small_avatars_for_comments");M.commentThreadingEnabled=_.w("web_delhi_comment_threads");M.webWatchCompactComments=_.w("web_watch_compact_comments");M.editDialog=null;return M};
_.l(Uf,_.Q);_.N=Uf.prototype;_.N.onShow=function(){_.lO("cmv",void 0,"wn_comments")};
_.N.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"}}}};
_.N.detached=function(){this.editDialog=null;this.expander.reset()};
_.N.updateBackgroundColor=function(){if(this.backgroundColor){var M={"--ytd-comment-paid-background-color":_.C_(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.sT(this.hostElement,M)}else _.sT(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.N.resetExpander=function(){var M;(M=this.expander)==null||M.reset()};
_.N.openEditDialog=function(M){M.dialog&&(this.editDialog=M.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.N.onYtNavigate=function(M){var q=M.detail.endpoint;if(q=_.C(q,_.eJ2)||_.C(q,_.$59))M.stopPropagation(),this.openEditDialog(q)};
_.N.onYtCommentboxDismiss=function(){this.editDialog=null;_.sT(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.N.onAuthorThumbnailClicked=function(){_.w("enable_profile_cards_on_comments")&&(this==null?0:this.authorThumbnailEndpoint)&&(this==null?0:this.authorThumbnailAnchor)&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{form:{sourceElement:this.authorThumbnailAnchor}})};
_.N.onYtCommentboxResize=function(M){var q;(M==null?0:(q=M.detail)==null?0:q.height)&&_.sT(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":M.detail.height+"px"})};
_.Yd.Object.defineProperties(Uf.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 M,q=(M=this.commentEntity)==null?void 0:M.author;return q&&(q.isCreator||q.isVerified||q.isArtist)?{renderer:{authorEndpoint:q.channelPageEndpoint?_.C(q.channelPageEndpoint,_.Cl):_.C(q.channelCommand,_.Cl),authorText:{runs:[{text:q.displayName}]},color:q.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:q.isArtist?{iconType:"AUDIO_BADGE"}:
q.isVerified?{iconType:q.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:q.isArtist||q.isVerified?q.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var M,q=(M=this.commentEntity)==null?void 0:M.author;return q!=null&&q.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:q.sponsorBadgeUrl}]},tooltip:q.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return _.C((M=this.commentSurfaceEntity)==null?void 0:M.pdgCommentChip,_.i3v)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var M;return this.voiceReplyContainerViewModel&&((M=this.voiceReplyContainerViewModel)==null?void 0:M.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return _.C((M=this.commentSurfaceEntity)==null?void 0:M.voiceReplyContainerViewModel,ikv)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var M;return this.voiceReplyContainerViewModel&&(M=this.voiceReplyContainerViewModel)!=null&&M.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=(M=this.commentSurfaceEntity)==null?void 0:M.commentBackgroundColor)!=null?q:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var M,q;return(((M=this.commentEntity)==null?void 0:(q=M.properties)==null?void 0:q.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var M,q;if(_.w("enable_profile_cards_on_comments")&&((M=this.commentEntity)==null?0:(q=M.author)==null?0:q.profileCardEndpoint)&&this.viewModel.allowProfileCard){var G,K;return _.C((G=this.commentEntity)==null?void 0:(K=G.author)==null?void 0:K.profileCardEndpoint,_.Cl)}var n,E;return _.C((n=this.commentEntity)==null?void 0:(E=n.avatar)==null?void 0:E.endpoint,_.Cl)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var M,q;if(_.w("enable_profile_cards_on_comments")&&((M=this.commentEntity)==null?0:(q=M.author)==null?0:q.channelPageEndpoint)){var G,K;return _.C((G=this.commentEntity)==null?void 0:(K=G.author)==null?void 0:K.channelPageEndpoint,_.Cl)}var n,E;return _.C((n=this.commentEntity)==null?void 0:(E=n.avatar)==null?void 0:E.endpoint,_.Cl)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K,n=(M=this.commentEntity)==null?void 0:(q=M.avatar)==null?void 0:(G=q.image)==null?void 0:(K=G.sources)==null?void 0:K[0];return n?{thumbnails:[{url:n.url,width:n.width,height:n.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.commentEntity)==null?0:(q=M.author)==null?0:q.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.commentEntity)==null?void 0:(q=M.author)==null?void 0:q.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.commentEntity)==null?void 0:(q=M.properties)==null?void 0:q.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var M;return _.C((M=this.commentSurfaceEntity)==null?void 0:M.publishedTimeCommand,_.Cl)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var M,q;if(((M=this.commentEntity)==null?0:M.translatedContent)&&((q=this.translateButtonState)==null?void 0:q.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var G;if((G=this.voiceReplyContainerViewModel)==null?0:G.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var K,n;return((K=this.commentEntity)==null?void 0:(n=K.properties)==null?void 0:n.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.commentSharedEntity)==null?void 0:(q=M.strings)==null?void 0:q.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.commentSharedEntity)==null?void 0:(q=M.strings)==null?void 0:q.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.commentEntity)==null||!M.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var M,q,G=(q=_.C((M=this.viewModel)==null?void 0:M.translateButton,PMB))!=null?q:{},K,n,E,p,y,Y,A,v,h,t,O;return Object.assign({},G,{untoggledStateData:Object.assign({},G.untoggledStateData,{buttonText:(K=this.commentEntity)==null?void 0:(n=K.translateData)==null?void 0:n.text}),togglingStateData:Object.assign({},G.togglingStateData,{buttonText:(E=this.commentSharedEntity)==null?
void 0:(p=E.strings)==null?void 0:p.translatingText}),toggledStateData:Object.assign({},G.toggledStateData,{buttonText:(y=this.commentSharedEntity)==null?void 0:(Y=y.strings)==null?void 0:Y.seeOriginalText}),transitionCommand:((A=this.commentEntity)==null?0:A.translatedContent)?void 0:_.C((v=this.commentEntity)==null?void 0:(h=v.translateData)==null?void 0:h.translateComment,_.Cl),triStateKey:(t=this.commentEntity)==null?void 0:(O=t.properties)==null?void 0:O.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((q=_.C(_.C((M=this.toolbarSurface)==null?void 0:M.menuCommand,_.Cl),sGd))==null?void 0:(G=q.menu)==null?void 0:G.menuRenderer)||null}}});
Uf.prototype.onYtCommentboxResize=Uf.prototype.onYtCommentboxResize;Uf.prototype.onYtCommentboxDismiss=Uf.prototype.onYtCommentboxDismiss;Uf.prototype.onYtNavigate=Uf.prototype.onYtNavigate;Uf.prototype.resetExpander=Uf.prototype.resetExpander;Uf.prototype.updateBackgroundColor=Uf.prototype.updateBackgroundColor;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Uf.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Uf.prototype,"ytdReduxBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Uf.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Uf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("#author-thumbnail > button"),_.r("design:type",HTMLElement)],Uf.prototype,"authorThumbnailAnchor",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("viewModel"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Uf.prototype,"linked",null);
_.T([_.c("viewModel","linked"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"linkedCommentBadge",null);_.T([_.B({reflectToAttribute:!0}),_.c("viewModel"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Uf.prototype,"pinned",null);_.T([_.c("viewModel","pinned"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"pinnedCommentBadge",null);
_.T([_.c("commentEntity","commentSharedEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"authorCommentBadge",null);_.T([_.B({reflectToAttribute:!0}),_.c("authorCommentBadge"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"hasAuthorBadge",null);_.T([_.c("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"sponsorCommentBadge",null);
_.T([_.B({reflectToAttribute:!0}),_.c("sponsorCommentBadge"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"hasSponsorBadge",null);_.T([_.c("commentSurfaceEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"pdgCommentChipRenderer",null);_.T([_.B({reflectToAttribute:!0}),_.c("voiceReplyContainerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"hasVoiceReply",null);
_.T([_.c("commentSurfaceEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"voiceReplyContainerViewModel",null);_.T([_.c("voiceReplyContainerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"voiceReplyUnavailableText",null);_.T([_.B(),_.r("design:type",Object)],Uf.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"viewModel",null);
_.T([_.B({selector:function(M,q){return _.sX(M.entities,"commentSharedEntityPayload",q)},
selectorArgs:["viewModel.sharedKey"]}),_.r("design:type",Object)],Uf.prototype,"commentSharedEntity",void 0);_.T([_.B({selector:NDy,selectorArgs:["viewModel.commentKey"]}),_.r("design:type",Object)],Uf.prototype,"commentEntity",void 0);_.T([_.B({selector:function(M,q){return _.sX(M.entities,"commentSurfaceEntityPayload",q)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.r("design:type",Object)],Uf.prototype,"commentSurfaceEntity",void 0);_.T([_.B({selector:kP$,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.r("design:type",Object)],Uf.prototype,"toolbarSurface",void 0);_.T([_.B({selector:p6u,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.r("design:type",Object)],Uf.prototype,"translateButtonState",void 0);
_.T([_.c("commentSurfaceEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"backgroundColor",null);_.T([_.B({reflectToAttribute:!0}),_.c("viewModel"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Uf.prototype,"optimalReadingWidthComments",null);_.T([_.ET("ytd-expander"),_.r("design:type",Object)],Uf.prototype,"expander",void 0);
_.T([_.KT("backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Uf.prototype,"updateBackgroundColor",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Uf.prototype,"useSmallAvatars",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Uf.prototype,"commentThreadingEnabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Uf.prototype,"webWatchCompactComments",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"isReply",null);_.T([_.c("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"authorThumbnailEndpoint",null);_.T([_.c("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"authorNameEndpoint",null);_.T([_.c("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"authorThumbnail",null);
_.T([_.c("commentEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],Uf.prototype,"authorTextClass",null);_.T([_.c("commentEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],Uf.prototype,"authorChannelName",null);_.T([_.c("commentEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"publishedTime",null);_.T([_.c("commentSurfaceEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"publishedTimeCommand",null);
_.T([_.c("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"contentText",null);_.T([_.KT("contentText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Uf.prototype,"resetExpander",null);_.T([_.c("commentEntity"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Uf.prototype,"shouldShowReadMoreInitially",null);
_.T([_.c("commentSharedEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],Uf.prototype,"expandText",null);_.T([_.c("commentSharedEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],Uf.prototype,"collapseText",null);_.T([_.c("commentEntity"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Uf.prototype,"shouldShowTranslateButton",null);
_.T([_.c("commentEntity","commentSharedEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"translateButton",null);_.T([_.c("toolbarSurface"),_.r("design:type",Object),_.r("design:paramtypes",[])],Uf.prototype,"overflowMenuRenderer",null);_.T([_.B(),_.r("design:type",Object)],Uf.prototype,"editDialog",void 0);_.T([_.ET("ytd-comment-dialog-renderer"),_.r("design:type",Object)],Uf.prototype,"editCommentDialogContainer",void 0);
_.T([_.ET("ytd-comment-reply-dialog-renderer"),_.r("design:type",Object)],Uf.prototype,"editReplyDialogContainer",void 0);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uf.prototype,"onYtNavigate",null);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uf.prototype,"onYtCommentboxDismiss",null);
_.T([_.GQ("yt-commentbox-resize"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uf.prototype,"onYtCommentboxResize",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-comment-view-model"})],Uf);
_.z(Uf,"ytd-comment-view-model",function(){if(X0P!==void 0)return X0P;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model"> </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model">\n          \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model"> [[authorChannelName]] </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" recompute-on-resize="[[webWatchCompactComments]]" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden$="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return X0P=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});_.S5(_.U(function(M){var q={};return _.W("yt-sub-thread",{class:_.Hb("ytSubThreadHost",(q.ytSubThreadHasButton=M.isButton,q.ytSubThreadHovered=M.hovered,q.ytSubThreadTopLevelThread=function(){var G;return((G=M.topLevelThread)==null?void 0:G.call(M))&&!_.w("small_avatars_for_comments")},q))},_.W("div",{class:"ytSubThreadThreadline"},_.W(_.d,{cond:function(){var G;
return!((G=M.isTeaser)==null?0:G.call(M))},
then:function(){return _.W("div",{class:"ytSubThreadConnection"})}}),_.W("div",{class:"ytSubThreadContinuation"}),_.W("div",{class:"ytSubThreadShadow"})),_.W("div",{class:"ytSubThreadSubThreadContent"},M.children))},"Ic"),"yt-sub-thread",{props:{isButton:_.Hz,
isTeaser:_.Hz,hovered:_.Hz,topLevelThread:_.Hz}});var xK=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_modern_buttons");M.commentThreadingEnabled=_.w("web_delhi_comment_threads");M.isWatchGrid=_.w("kevlar_watch_grid");M.buttonOverrides=M.commentThreadingEnabled?{iconPosition:"trailing",type:"text"}:{style:"call-to-action"};M.JSC$16018_spinnerEl=null;return M};
_.l(xK,_.Q);_.N=xK.prototype;_.N.configureContinuationPathMap=function(){return _.w("web_delhi_comment_threads")?{"yt-append-continuation-items-action":"subThreads"}:{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.N.shouldShowLegacyTeasers=function(M,q){return M&&!q};
_.N.shouldShowExpandedThreads=function(M,q){return this.commentThreadingEnabled&&q&&(M==null?void 0:M.length)>0};
_.N.shouldShowCollapsedThreads=function(M,q){return this.commentThreadingEnabled&&!q&&M};
_.N.computeCommentViewModel=function(M){return _.C(M,XWB)};
_.N.computeThreadRenderer=function(M){return _.C(M,OkJ)};
_.N.computeIsContinuationItem=function(M){return!!this.computeContinuationItemRenderer(M)};
_.N.computeButtonRenderer=function(M){return _.C(M,_.f1)};
_.N.computeContinuationItemRenderer=function(M){return _.C(M,_.Z$)};
_.N.computeShowButton=function(M){var q;return!((q=this.computeContinuationItemRenderer(M))==null||!q.button)};
_.N.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]]"}}}}}};
_.N.attached=function(){this.isShowRepliesVisible=!0};
_.N.dataChanged=function(){var M=this.expanderContents;M&&(M.hidden=!0);this.isLoading=!1};
_.N.endsInContinuation=function(M){return!!M&&M.length>0&&!!this.computeContinuationItemRenderer(M[M.length-1])};
_.N.computeShouldShowHideRepliesButton=function(M,q){return!M&&q};
_.N.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.N.isLoadingChanged=function(){this.isLoading&&!this.JSC$16018_spinnerEl&&(this.JSC$16018_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.f_(this.expanderContents).appendChild(this.JSC$16018_spinnerEl));this.JSC$16018_spinnerEl&&(this.JSC$16018_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var M;(M=this.contents)==null||M.classList.remove("reloading")}};
_.N.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.commentThreadingEnabled||this.triggerFirstContinuation();var M=_.C(this.data.viewReplies,_.f1);M&&this.ytRendererBehavior.logExplicitClick(M);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.N.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var M=_.C(this.data.hideReplies,_.f1);M&&this.ytRendererBehavior.logExplicitClick(M);this.commentThreadingEnabled&&this.toggleExpanded&&this.toggleExpanded()};
_.N.isShowMoreChanged=function(){if(!this.commentThreadingEnabled){var M=_.f_(this.hostElement).querySelector("#expander-contents");M&&(M.hidden=this.isShowRepliesVisible)}};
_.N.computeAlign=function(){if(this.modern){var M;return!((M=this.data)==null?0:M.viewRepliesCreatorThumbnail)}};
_.Yd.Object.defineProperties(xK.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var M,q;return this.endsInContinuation((M=this.data)==null?void 0:M.contents)||this.commentThreadingEnabled&&this.endsInContinuation((q=this.data)==null?void 0:q.subThreads)}},
subThreadTeasers:{configurable:!0,enumerable:!0,get:function(){if(!this.commentThreadingEnabled)return[];var M;return(M=this.data)==null?void 0:M.teaserContents}}});
xK.prototype.isShowMoreChanged=xK.prototype.isShowMoreChanged;xK.prototype.isLoadingChanged=xK.prototype.isLoadingChanged;xK.prototype.triggerFirstContinuation=xK.prototype.triggerFirstContinuation;xK.prototype.dataChanged=xK.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.sG),_.r("design:type",Object)],xK.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],xK.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],xK.prototype,"modern",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],xK.prototype,"commentThreadingEnabled",void 0);_.T([_.B(),_.r("design:type",Boolean)],xK.prototype,"expanded",void 0);
_.T([_.B(),_.r("design:type",Function)],xK.prototype,"toggleExpanded",void 0);_.T([_.B(),_.r("design:type",Array)],xK.prototype,"addedReplies",void 0);_.T([_.B(),_.r("design:type",Boolean)],xK.prototype,"hovered",void 0);_.T([_.B(),_.r("design:type",Boolean)],xK.prototype,"topLevelThread",void 0);_.T([_.B(),_.r("design:type",Boolean)],xK.prototype,"isLoading",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],xK.prototype,"isShowRepliesVisible",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],xK.prototype,"useNewFormatting",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],xK.prototype,"isWatchGrid",void 0);_.T([_.B(),_.r("design:type",Object)],xK.prototype,"buttonOverrides",void 0);_.T([_.ET("#expander-contents"),_.r("design:type",HTMLElement)],xK.prototype,"expanderContents",void 0);_.T([_.ET("ytd-continuation-item-renderer"),_.r("design:type",Object)],xK.prototype,"continuationItemRenderer",void 0);
_.T([_.ET("#contents"),_.r("design:type",HTMLElement)],xK.prototype,"contents",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xK.prototype,"dataChanged",null);_.T([_.c("data.contents","data.subThreads.*"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xK.prototype,"hasContinuation",null);_.T([_.c("data.teaserContents"),_.r("design:type",Object),_.r("design:paramtypes",[])],xK.prototype,"subThreadTeasers",null);
_.T([_.GQ("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xK.prototype,"triggerFirstContinuation",null);_.T([_.KT("isLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xK.prototype,"isLoadingChanged",null);_.T([_.KT("isShowRepliesVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xK.prototype,"isShowMoreChanged",null);
_.T([_.b({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],xK);
_.z(xK,"ytd-comment-replies-renderer",function(){if(Ocl!==void 0)return Ocl;var M=document.createElement("template");_.X(M,'\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="expanded-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 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 hovered="[[hovered]]" top-level-thread="[[topLevelThread]]" class="style-scope ytd-comment-replies-renderer">\n      <ytd-comment-thread-renderer data="[[computeThreadRenderer(item)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n      </ytd-comment-thread-renderer>\n    </yt-sub-thread>\n  </template>\n  <yt-sub-thread 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">\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]]" on-click="handleIsShowMoreTap" class="style-scope ytd-comment-replies-renderer">\n      </ytd-button-renderer>\n    </div>\n  </yt-sub-thread>\n</div>\n<div id="collapsed-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 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)]]" is-sub-thread="" class="style-scope ytd-comment-replies-renderer">\n        </ytd-comment-thread-renderer>\n      </template>\n      <template is="dom-if" if="[[computeContinuationItemRenderer(item)]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-continuation-item-renderer button-overrides="[[buttonOverrides]]" data="[[computeContinuationItemRenderer(item)]]" is-comments-section="" show-button="[[computeShowButton(item)]]" class="style-scope ytd-comment-replies-renderer">\n        </ytd-continuation-item-renderer>\n      </template>\n    </yt-sub-thread>\n  </template>\n  <template is="dom-if" if="[[computeShouldShowHideRepliesButton(hasContinuation, data.hideReplies)]]" class="style-scope ytd-comment-replies-renderer">\n    <yt-sub-thread 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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Ocl=M},{mode:1});var giP;var z5=function(){var M=_.Q.apply(this,arguments)||this;M.isOpen=!1;M.commentDialog=null;M.useSmallAvatars=_.w("small_avatars_for_comments");M.useSmallAvatarsEngagementPanelOnly=_.w("small_avatars_for_comments_ep");M.placeholderFocusListener=null;M.hasOpenedDialog=!1;M.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return M};
_.l(z5,_.Q);_.N=z5.prototype;_.N.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]]"}}}}}};
_.N.ready=function(){var M=this,q=_.f_(this.hostElement).querySelector("#placeholder-area"),G=_.f_(this.hostElement).querySelector("#simplebox-placeholder"),K=function(n){n.stopPropagation();n instanceof KeyboardEvent&&n.type==="keypress"&&n.keyCode!==13&&n.keyCode!==32||M.openDialog()};
this.placeholderFocusListener=K;G.addEventListener("focus",this.placeholderFocusListener);q.addEventListener("tap",K);q.addEventListener("keypress",K)};
_.N.maybeRemoveFocusEventListener=function(){var M;(M=this.data)!=null&&M.prepareAccountEndpoint&&!_.w("web_comments_simplebox_modal_focus_on_tap_ks")&&(M=_.f_(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(M.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.N.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.hasOpenedDialog=this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.N.openDialog=function(){if(this.data)if(this.data.prepareAccountEndpoint)_.w("web_comment_simplebox_resolve_polymer_command_ks")?_.$A.instance.resolveCommand(this.data.prepareAccountEndpoint):_.sE(this.data.prepareAccountEndpoint,this.hostElement);else{if(this.data.subscribersOnlySnackbarCommand&&!this.hasOpenedDialog){var M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.subscribersOnlySnackbarCommand);M&&this.ytdOpenPopupBehavior.openPopup(M);this.hasOpenedDialog=!0}this.commentDialog||
(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)});this.isOpen=!0;_.f_(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()}};
_.N.onYtCommentboxDismiss=function(M){M.stopPropagation();this.isOpen=!1};
_.N.onCreateCommentAction=function(M){this.get("createCommentAction.contents",M)&&(this.isOpen=!1)};
_.N.computeCommentDialog=function(M){return{placeholderText:M.placeholderText,authorThumbnail:M.authorThumbnail,submitButton:M.submitButton,imageButton:M.imageButton,cancelButton:M.cancelButton,emojiButton:M.emojiButton,emojis:M.emojis,emojiPicker:M.emojiPicker,aadcGuidelinesStateEntityKey:M.aadcGuidelinesStateEntityKey,openAadcDialog:M.openAadcDialog,unicodeEmojisUrl:M.unicodeEmojisUrl}};
_.N.onHideIdentityChip=function(M){_.C(M,Wt9)&&this.set("data.placeholderText",_.C(M,Wt9).placeholderText)};
z5.prototype.onYtCommentboxDismiss=z5.prototype.onYtCommentboxDismiss;z5.prototype.dataChanged=z5.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],z5.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],z5.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],z5.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],z5.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],z5.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],z5.prototype,"isOpen",void 0);_.T([_.B(),_.r("design:type",Object)],z5.prototype,"commentDialog",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],z5.prototype,"engagementPanel",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],z5.prototype,"useSmallAvatars",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],z5.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],z5.prototype,"enableCreationBox",void 0);_.T([_.B(),_.r("design:type",Boolean)],z5.prototype,"showCreateDialog",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],z5.prototype,"dataChanged",null);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],z5.prototype,"onYtCommentboxDismiss",null);_.T([_.b({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],z5);
_.z(z5,"ytd-comment-simplebox-renderer",function(){if(giP!==void 0)return giP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return giP=M},{mode:1});var Bep;_.hC("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");
var mN=function(){var M=_.Q.apply(this,arguments)||this;M.addHoverEffect=_.w("swatcheroo_comments_hover_effect");M.useSmallAvatars=_.w("small_avatars_for_comments");M.scrollingEnabled=_.w("web_comment_threading_scroll_on_collapse");M.isSubThread=!1;M.threadHovered=!1;M.expanded=!1;M.removed=!1;M.addedReplies=[];M.actionMap=M.configureActionMap();M.toggleExpanded=function(){M.expanded=!M.expanded;!M.expanded&&M.scrollingEnabled&&_.VW(M.hostElement,"yt-scroll-to-comment-element",[M.commentElement])};
return M};
_.l(mN,_.Q);_.N=mN.prototype;_.N.configureActionMap=function(){return _.w("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"}:{}};
_.N.createCommentReplyAction=function(M){M=_.C(M,LtM);if(M!=null&&M.contents){var q=M.replyToCommentId,G=M.parentCommentId,K,n=(K=this.commentViewModel)==null?void 0:K.commentId;(n===q||n===G&&!q)&&this.maybeAttachReply(M.contents)}};
_.N.maybeAttachReply=function(M){var q,G;(((q=this.commentEntity)==null?void 0:(G=q.properties)==null?void 0:G.replyLevel)||0)>=3?_.jP(this.hostElement,"yt-pushed-create-comment-reply",M):this.attachReply(M)};
_.N.onPushedCreateCommentReply=function(M){var q,G;(((q=this.commentEntity)==null?void 0:(G=q.properties)==null?void 0:G.replyLevel)||0)>=3||(this.attachReply(M.detail),M.stopPropagation())};
_.N.attachReply=function(M){var q;((q=this.data)==null?0:q.replies)?(q=this.get("data.replies.commentRepliesRenderer.subThreads").length-1,this.get("data.replies.commentRepliesRenderer.subThreads."+q+".continuationItemRenderer")?q===0?this.push("addedReplies",M):this.splice("data.replies.commentRepliesRenderer.subThreads",q,0,M):this.push("data.replies.commentRepliesRenderer.subThreads",M)):(this.set("data.replies",{commentRepliesRenderer:{subThreads:[M],viewReplies:{buttonRenderer:{text:_.rj(_.Ge("VIEW_REPLIES",
void 0,"View replies")),icon:{iconType:"EXPAND"}}}}}),this.expanded=!0)};
_.N.onAppendContinuationItemsActionFinished=function(){this.addedReplies.length&&(this.splice.apply(this,["data.replies.commentRepliesRenderer.subThreads",0,0].concat(_.Ui(this.addedReplies))),this.set("addedReplies",[]))};
_.N.removeCommentAction=function(M){M=_.C(M,vHl);var q=M==null?void 0:M.commentId,G;q&&((G=this.commentViewModel)==null?void 0:G.commentId)===q&&this.maybeRemoveComment(M.actionResult)};
_.N.banAuthorAction=function(M){M=_.C(M,pWf);var q=M==null?void 0:M.commentId,G;q&&((G=this.commentViewModel)==null?void 0:G.commentId)===q&&this.maybeRemoveComment(M.actionResult)};
_.N.hideReportedCommentAction=function(M){M=_.C(M,Qex);var q=M==null?void 0:M.commentId,G;q&&((G=this.commentViewModel)==null?void 0:G.commentId)===q&&this.maybeRemoveComment(M.actionResult)};
_.N.maybeRemoveComment=function(M){M&&M.status==="STATUS_SUCCEEDED"&&(this.feedbackText=M.feedbackText||_.rj("Reply removed"),this.removed=!0)};
_.N.onTap=function(M){if(this.addHoverEffect&&!this.engagementPanel&&!_.b8(_.Zx(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var q;((q=window.getSelection())==null?0:q.toString().length)||_.sE({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
_.N.attached=function(){var M=this;this.isSubThread&&(this.expanded=!0);var q;(q=this.commentThreadHitbox)==null||q.addEventListener("mouseover",function(){M.threadHovered=!0});
var G;(G=this.commentThreadHitbox)==null||G.addEventListener("mouseout",function(){M.threadHovered=!1});
var K;(K=this.commentThreadHitbox)==null||K.addEventListener("click",function(){M.maybeToggleExpanded()})};
_.N.maybeToggleExpanded=function(){var M,q,G,K=(M=this.data)==null?void 0:(q=M.replies)==null?void 0:(G=q.commentRepliesRenderer)==null?void 0:G.subThreads,n;(K==null?void 0:K.length)===1&&((n=_.C(K[0],_.Z$))==null?0:n.button)&&this.expanded||this.toggleExpanded()};
_.Yd.Object.defineProperties(mN.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return _.C((M=this.data)==null?void 0:M.commentViewModel,XWB)}},
hasSubThreading:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return _.w("web_delhi_comment_threads")&&!!((M=this.data)==null?0:(q=M.replies)==null?0:(G=q.commentRepliesRenderer)==null?0:G.subThreads)}}});
mN.prototype.onTap=mN.prototype.onTap;mN.prototype.onAppendContinuationItemsActionFinished=mN.prototype.onAppendContinuationItemsActionFinished;mN.prototype.onPushedCreateCommentReply=mN.prototype.onPushedCreateCommentReply;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],mN.prototype,"ytdReduxBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],mN.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mN.prototype,"addHoverEffect",void 0);_.T([_.B(),_.r("design:type",Object)],mN.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mN.prototype,"useSmallAvatars",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mN.prototype,"scrollingEnabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mN.prototype,"isSubThread",void 0);_.T([_.ET(".thread-hitbox"),_.r("design:type",HTMLElement)],mN.prototype,"commentThreadHitbox",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mN.prototype,"threadHovered",void 0);_.T([_.ET("#comment"),_.r("design:type",HTMLElement)],mN.prototype,"commentElement",void 0);
_.T([_.B(),_.r("design:type",Object)],mN.prototype,"expanded",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mN.prototype,"removed",void 0);_.T([_.B(),_.r("design:type",Object)],mN.prototype,"feedbackText",void 0);_.T([_.B(),_.r("design:type",Array)],mN.prototype,"addedReplies",void 0);_.T([_.B({selector:NDy,selectorArgs:["commentViewModel.commentKey"]}),_.r("design:type",Object)],mN.prototype,"commentEntity",void 0);
_.T([_.GQ("yt-pushed-create-comment-reply"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],mN.prototype,"onPushedCreateCommentReply",null);_.T([_.GQ("yt-append-continuation-items-action-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mN.prototype,"onAppendContinuationItemsActionFinished",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],mN.prototype,"commentViewModel",null);
_.T([_.c("data.replies"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mN.prototype,"hasSubThreading",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],mN.prototype,"engagementPanel",void 0);_.T([_.GQ("tap"),_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],mN.prototype,"onTap",null);_.T([_.b({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],mN);
_.z(mN,"ytd-comment-thread-renderer",function(){if(Bep!==void 0)return Bep;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="comment-container" class="style-scope ytd-comment-thread-renderer">\n  <div class="threadline style-scope ytd-comment-thread-renderer" hidden="[[!hasSubThreading]]"><div class="continuation style-scope ytd-comment-thread-renderer"></div></div>\n  <div class="removed-placeholder style-scope ytd-comment-thread-renderer" hidden="[[!removed]]">\n    <yt-icon icon="WARNING_FILLED" class="style-scope ytd-comment-thread-renderer"></yt-icon>\n    <yt-formatted-string text="[[feedbackText]]" class="style-scope ytd-comment-thread-renderer"></yt-formatted-string>\n  </div>\n  <ytd-comment-view-model id="comment" data="[[commentViewModel]]" hidden="[[removed]]" class="style-scope ytd-comment-thread-renderer">\n  </ytd-comment-view-model>\n</div>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer">\n  <template is="dom-if" if="[[data.replies]]" class="style-scope ytd-comment-thread-renderer">\n    <ytd-comment-replies-renderer added-replies="[[addedReplies]]" data="[[data.replies.commentRepliesRenderer]]" 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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Bep=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var Qjv;var Se=function(){var M=_.Q.apply(this,arguments)||this;M.compactHeader=_.w("web_watch_compact_comments_header");M.hidePanelButton=!1;M.isPostSchedulingEnabled=_.w("enable_post_scheduling");M.hasFinishedStamping=!1;M.JSC$16041_handleOpenPostCommentDialogActionAfterStamp=!1;M.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return M};
_.l(Se,_.Q);_.N=Se.prototype;
_.N.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"}}}};
_.N.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.N.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$16041_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.N.onYtServiceRequestSent=function(M,q){if(!_.w("kevlar_command_handler")&&q.actions)for(M=0;M<q.actions.length;M++){var G=q.actions[M];_.C(G,Z$d)&&_.f_(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.C(G,Z$d))}};
_.N.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var M;if(this.getPrefilledBackstagePostDialog((M=this.data)==null?void 0:M.actions)){_.f_(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var q=_.f_(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;q&&_.yb(this,function(){q.focus();q.openDialog&&q.openDialog()})}}else this.hasActionsChange=!0};
_.N.computeIsBackstage=function(M){return M};
_.N.onYtCommentboxDismiss=function(){_.f_(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.N.removePrefilledDialog=function(M){if(M==null?0:M.actions){for(var q=M.actions.length-1;q>=0;q--){var G=void 0;((G=_.C(M.actions[q],FZ8))==null?0:G.dialog)&&delete M.actions[q]}this.set("data",void 0);this.set("data",M)}};
_.N.getPrefilledBackstagePostDialog=function(M){if(M)for(var q=0;q<M.length;q++){var G=M[q],K=void 0;if((K=_.C(G,FZ8))==null?0:K.dialog)return _.C(G,FZ8).dialog}return null};
_.N.computeBackstagePostDialog=function(M){return M&&(this.getPrefilledBackstagePostDialog(M.actions)||M.createRenderer)};
_.N.dataChanged=function(){if(this.data){var M=this.data.customEmojis,q=this.data.unicodeEmojisUrl;_.F$.clear();q&&_.im9(_.F$,q);M&&_.F$.load(M)}};
_.N.handleSignalActionOpenPostCommentDialogAction=function(){var M=_.f_(this.hostElement).querySelector("ytd-comment-simplebox-renderer");M?M.openDialog():this.JSC$16041_handleOpenPostCommentDialogActionAfterStamp=!0};
_.N.onPostHeaderTap=function(){var M;((M=this.data)==null?0:M.postHeaderOnTap)&&this.ytComponentBehavior.resolveCommand(this.data.postHeaderOnTap)};
_.Yd.Object.defineProperties(Se.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.w("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K,n,E,p;return!this.hidePanelButton&&_.w("kevlar_watch_comments_panel_button")&&((p=_.C((M=this.data)==null?void 0:(q=M.sortMenu)==null?void 0:(G=q.sortFilterSubMenuRenderer)==null?void 0:(K=G.subMenuItems)==null?void 0:(n=K[0])==null?void 0:(E=n.serviceEndpoint)==null?void 0:E.commandMetadata,_.Mg))==null?void 0:p.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.Ge("MINIPLAYER_EXPAND_LABEL"),text:_.bc(_.Ge("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Se.prototype.dataChanged=Se.prototype.dataChanged;Se.prototype.onYtCommentboxDismiss=Se.prototype.onYtCommentboxDismiss;Se.prototype.observePrefilledBackstagePostDialog=Se.prototype.observePrefilledBackstagePostDialog;Se.prototype.onYtServiceRequestSent=Se.prototype.onYtServiceRequestSent;Se.prototype.onStampFinished=Se.prototype.onStampFinished;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Se.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Se.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Se.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Se.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Se.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Se.prototype,"compactHeader",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Se.prototype,"engagementPanel",void 0);_.T([_.B(),_.r("design:type",Object)],Se.prototype,"hidePanelButton",void 0);_.T([_.B({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Se.prototype,"isBackstage",void 0);_.T([_.B({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.r("design:type",Object)],Se.prototype,"backstagePostDialog",void 0);
_.T([_.B(),_.r("design:type",Object)],Se.prototype,"isPostSchedulingEnabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data","showCommentsPanelButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],Se.prototype,"useSpaceBetween",null);_.T([_.B({reflectToAttribute:!0}),_.c("data","hidePanelButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],Se.prototype,"showCommentsPanelButton",null);
_.T([_.c("data","showCommentsPanelButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],Se.prototype,"commentsPanelButtonData",null);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Se.prototype,"onStampFinished",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],Se.prototype,"onYtServiceRequestSent",null);
_.T([_.KT("data.actions"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Se.prototype,"observePrefilledBackstagePostDialog",null);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Se.prototype,"onYtCommentboxDismiss",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Se.prototype,"dataChanged",null);
_.T([_.b({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Se);
_.z(Se,"ytd-comments-header-renderer",function(){if(Qjv!==void 0)return Qjv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Qjv=M},{mode:1});var I0J;var T5=function(){return _.Q.apply(this,arguments)||this};
_.l(T5,_.Q);_.T([_.B(),_.r("design:type",Object)],T5.prototype,"data",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],T5.prototype,"ytRendererBehavior",void 0);_.T([_.b({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],T5);
_.z(T5,"ytd-destination-button-renderer",function(){if(I0J!==void 0)return I0J;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return I0J=M},{mode:1});var DHP;var rE=function(){var M=_.Q.apply(this,arguments)||this;M.isRichGrid=!1;M.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};return M};
_.l(rE,_.Q);_.N=rE.prototype;_.N.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.N.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.N.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.N.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var M;if((M=this.data)==null||!M.isExpanded){M=this.hostElement.clientWidth;var q;if(M&&(q=this.data)!=null&&q.destinationButtons){q=Math.floor((M+4)/214);M=this.data.destinationButtons.length;var G=Math.ceil(M/q);this.fullyVisibleRows=M%q===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}}}};
_.N.updateRichGridDestinationButtonsVisibility=function(){var M,q;if(this.isRichGrid&&((M=this.data)==null||!M.isExpanded)&&(q=this.data)!=null&&q.destinationButtons){M=this.richGridItemsPerRow+1;q=this.data.destinationButtons.length;var G=Math.ceil(q/M);this.fullyVisibleRows=q%M===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}};
_.N.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
rE.prototype.updateRichGridDestinationButtonsVisibility=rE.prototype.updateRichGridDestinationButtonsVisibility;_.T([_.B(),_.r("design:type",Object)],rE.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Number)],rE.prototype,"fullyVisibleRows",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],rE.prototype,"isShowMoreVisible",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],rE.prototype,"isRichGrid",void 0);
_.T([_.B({selector:_.CK,value:0}),_.r("design:type",Number)],rE.prototype,"richGridItemsPerRow",void 0);_.T([_.B(),_.r("design:type",Object)],rE.prototype,"gridStateActionMap",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],rE.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],rE.prototype,"ytdReduxBehavior",void 0);_.T([_.KT("data","richGridItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rE.prototype,"updateRichGridDestinationButtonsVisibility",null);_.T([_.b({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],rE);
_.z(rE,"ytd-destination-shelf-renderer",function(){if(DHP!==void 0)return DHP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return DHP=M},{mode:1});var ujS;var je=function(){return _.Q.apply(this,arguments)||this};
_.l(je,_.Q);je.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],je.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],je.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],je.prototype,"data",void 0);_.T([_.b({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],je);
_.z(je,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(ujS!==void 0)return ujS;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return ujS=M},{mode:1});var Jfl;var V6=function(){var M=_.Q.apply(this,arguments)||this;M.disableAnimation=!1;M.isSlimlineSurvey=!1;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;return M};
_.l(V6,_.Q);V6.prototype.onTap=function(M){M.preventDefault();this.data&&_.jP(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Yd.Object.defineProperties(V6.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 M,q,G,K,n;return((M=this.data)==null?0:M.checked)?(q=this.data)==null?void 0:(G=q.onStateIcon)==null?void 0:G.iconType:(K=this.data)==null?void 0:(n=K.defaultStateIcon)==null?void 0:n.iconType}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],V6.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],V6.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],V6.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],V6.prototype,"disableAnimation",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],V6.prototype,"isSlimlineSurvey",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],V6.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],V6.prototype,"isShortsStyle",void 0);_.T([_.c("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],V6.prototype,"isAnimatedIcon",null);
_.T([_.c("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.r("design:type",Number),_.r("design:paramtypes",[])],V6.prototype,"iconSize",null);_.T([_.c("isShortsStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],V6.prototype,"isDarkTheme",null);_.T([_.c("data.checked"),_.r("design:type",Object),_.r("design:paramtypes",[])],V6.prototype,"icon",null);_.T([_.b({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],V6);
_.z(V6,"ytd-rating-survey-option-renderer",function(){if(Jfl!==void 0)return Jfl;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Jfl=M},{mode:2});var Zc9;var R_=function(){var M=_.Q.apply(this,arguments)||this;M.firstResponseText=null;M.lastResponseText=null;M.selectedNonStarOption=null;M.hideOptions=!1;M.hideUndoButton=!0;M.disableAnimation=!1;M.showResponseRangeText=!1;M.selectedRatingIndex=-1;M.isSlimlineSurvey=!1;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;M.slimlineSurveyRatingSelectedIndex=-1;return M};
_.l(R_,_.Q);_.N=R_.prototype;_.N.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.N.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.N.onOptionChange=function(M,q){var G=this;M=q.onStateIcon&&q.defaultStateIcon&&q.onStateIcon.iconType===q.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(p,y){p.responseText===q.responseText?G.isSlimlineSurvey?(G.selectedRatingIndex=y,G.ytdReduxBehavior.dispatch(VQv(y))):(G.setSurveyOptionValue(y,!0,"checked"),G.setSurveyOptionValue(y,!0,"selected")):(G.setSurveyOptionValue(y,!1,"checked"),G.setSurveyOptionValue(y,
!1,"selected"))});
else if(M)this.selectedNonStarOption=q,this.hideOptions=!0;else{var K=this.ytRendererBehavior.getSimpleString(q.responseText),n=!0;this.getOptionRenderers().forEach(function(p,y){G.setSurveyOptionValue(y,n,"checked");G.setSurveyOptionValue(y,!1,"selected");G.ytRendererBehavior.getSimpleString(p.responseText)===K&&(n=!1,G.setSurveyOptionValue(y,!0,"selected"))})}M=q.responseEndpoint;
var E;q.followUpCommand&&(E=_.C(q.followUpCommand,SZM));this.isSlimlineSurvey?(this.resetComponent(),_.VW(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.VW(this.hostElement,"ytd-inline-survey-rating-select-action",[M,E])};
_.N.showSelectedOption=function(){var M=this;_.r8.addJob(function(){var q=M.getOptionRenderers()[M.slimlineSurveyRatingSelectedIndex];M.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),q)},8,100)};
_.N.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(M){var q;return(q=_.C(M,rtJ))!=null?q:{}}):[]};
_.N.onUndoClick=function(){this.resetComponent();_.VW(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.N.setSurveyOptionValue=function(M,q,G){this.notifyPath("data.ratings."+M+".ratingSurveyOptionRenderer."+G);this.set("data.ratings."+M+".ratingSurveyOptionRenderer."+G,q)};
_.N.resetComponent=function(){var M=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var q=this.getOptionRenderers(),G,K;this.firstResponseText=(K=(G=q[0])==null?void 0:G.responseText)!=null?K:null;var n,E;this.lastResponseText=(E=(n=q[q.length-1])==null?void 0:n.responseText)!=null?E:null;q.forEach(function(p,y){M.setSurveyOptionValue(y,!1,"checked");M.setSurveyOptionValue(y,!1,"selected")})};
_.Yd.Object.defineProperties(R_.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
R_.prototype.onOptionChange=R_.prototype.onOptionChange;R_.prototype.dataChanged=R_.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],R_.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],R_.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],R_.prototype,"firstResponseText",void 0);_.T([_.B(),_.r("design:type",Object)],R_.prototype,"lastResponseText",void 0);_.T([_.B(),_.r("design:type",Object)],R_.prototype,"selectedNonStarOption",void 0);_.T([_.B(),_.r("design:type",Object)],R_.prototype,"hideOptions",void 0);_.T([_.B(),_.r("design:type",Object)],R_.prototype,"hideUndoButton",void 0);_.T([_.B(),_.r("design:type",Object)],R_.prototype,"disableAnimation",void 0);
_.T([_.B(),_.r("design:type",Object)],R_.prototype,"showResponseRangeText",void 0);_.T([_.B(),_.r("design:type",Object)],R_.prototype,"selectedRatingIndex",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],R_.prototype,"isSlimlineSurvey",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],R_.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],R_.prototype,"isShortsStyle",void 0);_.T([_.B({selector:function(M){return M.ui.slimlineSurveyRatingSelectedIndex}}),
_.r("design:type",Object)],R_.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.T([_.c("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],R_.prototype,"isSingleSelect",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],R_.prototype,"dataChanged",null);
_.T([_.GQ("ytd-rating-survey-option-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],R_.prototype,"onOptionChange",null);_.T([_.b({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],R_);
_.z(R_,"ytd-rating-survey-renderer",function(){if(Zc9!==void 0)return Zc9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Zc9=M},{mode:1});var bcp;var UHf;var xHf;var ciw=(sz.FIRSTDAYOFWEEK+1)%7,zQp=function(M,q,G,K){var n="";if(K.selection&&lVe(K.selection))HO(M,K.selection)&&(n+=" selected");else if(K.selection&&XuY(K.selection)){var E=K.selection.selectionState||"START_DATE";HO(M,K.selection.start)&&(n+=" period-start ",E==="START_DATE"&&(n+="selected"));HO(M,K.selection.end)&&(n+=" period-end ",E==="END_DATE"&&(n+="selected"));es(M,K.selection.start)||es(K.selection.end,M)||(n+=" highlighted")}if(es(q,K.start)||es(K.end,q))n+=" disabled";K.circleToday&&
HO(q,G)&&(n+=" today");return n};var f4=function(){return _.Q.apply(this,arguments)||this};
_.l(f4,_.Q);_.N=f4.prototype;_.N.attached=function(){var M=this;_.yb(this,function(){M.JSC$16075_calendarMain.scrollHeight>0&&(M.calendarConfig.selection?M.scrollToDate(PwH(M.calendarConfig.selection)):M.scrollToDate(M.calendarConfig.end))})};
_.N.updateSelection=function(M){M=gRF(Object.assign({},this.calendarConfig,{selection:M}),zQp);this.splice.apply(this,["renderData.months",0,M.length].concat(_.Ui(M)))};
_.N.scrollToDate=function(M){this.renderData&&(M=B5y(M,this.renderData),M!==void 0&&this.JSC$16075_calendarMain.scrollToIndex(M))};
_.N.scrollToNextMonth=function(){this.JSC$16075_calendarMain.scrollToIndex(this.JSC$16075_calendarMain.firstVisibleIndex+1)};
_.N.scrollToPrevMonth=function(){this.JSC$16075_calendarMain.firstVisibleIndex===0&&this.JSC$16075_calendarMain.scrollTo(0,0);this.JSC$16075_calendarMain.scrollToIndex(this.JSC$16075_calendarMain.firstVisibleIndex-1)};
_.N.handleDayClick=function(M){_.VW(this.hostElement,"ytd-calendar-date-clicked",[M.model.day.date])};
_.N.handleDayMouseDown=function(M){M.preventDefault();_.VW(this.hostElement,"ytd-calendar-date-mousedown",[M.model.day.date])};
_.N.handleDayMouseUp=function(M){_.VW(this.hostElement,"ytd-calendar-date-mouseup",[M.model.day.date])};
_.N.handleDayMouseEnter=function(M){M.preventDefault();_.VW(this.hostElement,"ytd-calendar-date-mouseenter",[M.model.day.date])};
_.N.handleDayMouseLeave=function(M){_.VW(this.hostElement,"ytd-calendar-date-mouseleave",[M.model.day.date])};
_.Yd.Object.defineProperties(f4.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var M=this.calendarConfig,q=zQp;q=q===void 0?zQp:q;for(var G=[],K=0;K<7;K++)G.push(sz.NARROWWEEKDAYS[(K+ciw)%7]);return{months:gRF(M,q),daysOfWeekLabel:G}}}});
_.T([_.B(),_.r("design:type",Object)],f4.prototype,"calendarConfig",void 0);_.T([_.ET("#calendar-main"),_.r("design:type",Object)],f4.prototype,"JSC$16075_calendarMain",void 0);_.T([_.c("calendarConfig"),_.r("design:type",Object),_.r("design:paramtypes",[])],f4.prototype,"renderData",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],f4);
_.z(f4,"ytd-scrollable-calendar",function(){if(xHf!==void 0)return xHf;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return xHf=M},{mode:2});var mH8;var S8x;var FK=function(){var M=_.Q.apply(this,arguments)||this;M.hideCharCounter=!1;M.hideLabel=!1;M.noLabelFloat=!1;M.autoValidate=!0;M.invalid=!1;M.disabled=!1;M.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return M};
_.l(FK,_.Q);_.N=FK.prototype;_.N.reset=function(M){this.value=M&&this.data?this.data.value=M:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.N.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.N.focusTextInput=function(){this.input.focus()};
_.N.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()};
_.N.valueChanged=function(){var M,q;if(((M=this.data)==null?0:M.value)||((q=this.data)==null?void 0:q.value)==="")this.value=this.data.value;else{var G;((G=this.data)==null?void 0:G.value)!==void 0||this.value||(this.value="")}};
_.N.computeLabel=function(M,q){return q?"":_.UX(M)};
_.N.computeAriaLabel=function(M,q){return q?_.UX(M):""};
_.N.computeErrorMessage=function(M,q,G,K){!M&&q?M=G||this.strings.REQUIRED_LABEL:(M=_.UX(K),M=_.Ys(M,"&")?"document"in _.Kj?sSM(M):MmI(M):M);return M};
_.N.computeType=function(M){return M==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.N.onTextValueChanged=function(M){this.value=M.detail.value;var q;(q=this.onValueChanged)==null||q.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.N.handleUpdateTextInputFormFieldRendererCommand=function(M){(M=_.C(M,yt2))&&this.data&&this.data.id===M.id&&(M.invalid!==void 0&&(this.invalid=M.invalid),M.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",M.invalidValueErrorMessage))};
_.N.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("value-changed",this.value))};
_.N.updateInvalidFromBinding=function(M){this.invalid=M.detail.value};
_.Yd.Object.defineProperties(FK.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var M;return!((M=this.data)==null||!M.isMultiline)}}});
FK.prototype.valueChangedForBinding=FK.prototype.valueChangedForBinding;FK.prototype.valueChanged=FK.prototype.valueChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],FK.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],FK.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],FK.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],FK.prototype,"value",void 0);_.T([_.B(),_.r("design:type",String)],FK.prototype,"pattern",void 0);_.T([_.B(),_.r("design:type",String)],FK.prototype,"errorMessage",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],FK.prototype,"componentStyle",void 0);_.T([_.B(),_.r("design:type",Object)],FK.prototype,"hideCharCounter",void 0);
_.T([_.B(),_.r("design:type",Object)],FK.prototype,"hideLabel",void 0);_.T([_.B(),_.r("design:type",Object)],FK.prototype,"noLabelFloat",void 0);_.T([_.B(),_.r("design:type",Function)],FK.prototype,"onValueChanged",void 0);_.T([_.B(),_.r("design:type",Boolean)],FK.prototype,"isMultilineOverride",void 0);_.T([_.B(),_.r("design:type",Object)],FK.prototype,"autoValidate",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],FK.prototype,"invalid",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],FK.prototype,"disabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],FK.prototype,"enableOverlayTheme",void 0);_.T([_.B({value:{REQUIRED_LABEL:_.Ge("REQUIRED_LABEL",void 0,"Required")}}),_.r("design:type",Object)],FK.prototype,"strings",void 0);_.T([_.ET("#input"),_.r("design:type",Object)],FK.prototype,"input",void 0);
_.T([_.c("data","isMultilineOverride"),_.r("design:type",Object),_.r("design:paramtypes",[])],FK.prototype,"isMultiline",null);_.T([_.yO("data.value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FK.prototype,"valueChanged",null);_.T([_.KT("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FK.prototype,"valueChangedForBinding",null);_.T([_.aO({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],FK);
_.z(FK,"yt-text-input-form-field-renderer",function(){if(S8x===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;mH8===void 0&&(mH8=document.createElement("template"));var K=mH8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);S8x=M}M=S8x;return M},{mode:2});var H_=function(){var M=_.Q.apply(this,arguments)||this;M.data=void 0;M.selectionState="START_DATE";M.isStartDateInvalid=!1;M.isEndDateInvalid=!1;M.autoapply=!1;M.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 M};
_.l(H_,_.Q);_.N=H_.prototype;_.N.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"}}}}};
_.N.focus=function(){this.startDateInput.focus()};
_.N.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:$e(this.data.selection.start),end:$e(this.data.selection.end)})};
_.N.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.N.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.F2(this.selectionState)}};
_.N.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.N.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.N.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.N.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var M=this.calendar.calendarConfig,q=M.end;M=IVe({start:M.start,end:this.endDate||q},this.startDateInput.value||"");this.isStartDateInvalid=!M.isValid;M.isValid&&(M=M.value,this.selection=this.endDate?{start:M,end:this.endDate}:M,this.calendar.scrollToDate(M));this.updateInvalidState()}};
_.N.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var M=this.calendar.calendarConfig,q=M.start;M=IVe({start:this.startDate||q,end:M.end},this.endDateInput.value||"");this.isEndDateInvalid=!M.isValid;M.isValid&&(M=M.value,this.selection={start:this.startDate,end:M},this.calendar.scrollToDate(M));this.updateInvalidState()}};
_.N.handleCalendarDateClicked=function(M){var q=this.selection&&PwH(this.selection),G=this.selection&&izy(this.selection);q&&!es(M,q)&&this.selectionState==="END_DATE"?(this.selection={start:q,end:M},this.selectionState="START_DATE"):(G&&!es(G,M)?this.selection={start:M,end:G}:this.selection=M,this.selectionState="END_DATE")};
_.N.handleCalendarDateMouseDown=function(M){this.selection&&!lVe(this.selection)&&(this.dragPivot=HO(M,this.selection.start)?this.selection.end:HO(M,this.selection.end)?this.selection.start:M)};
_.N.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.N.handleCalendarDateMouseEnter=function(M){this.dragPivot&&(this.selection={start:function(q,G){return es(q,G)?q:G}(this.dragPivot,M),
end:function(q,G){return es(q,G)?G:q}(this.dragPivot,M)},this.dragPivot||(this.selectionState="START_DATE"))};
_.N.handleCalendarDateMouseLeave=function(){};
_.N.handleCalendarSubmitDateRange=function(){this.selection&&!lVe(this.selection)&&_.VW(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.N.updateInvalidState=function(){var M=function(q,G){G?q.setAttribute("invalid",""):q.removeAttribute("invalid")};
M(this.startDateInput,this.isStartDateInvalid);M(this.endDateInput,this.isEndDateInvalid)};
_.N.updateDateStrings=function(){this.selection&&(lVe(this.selection)?oRj(this.selection):(oRj(this.selection.start),oRj(this.selection.end)))};
_.N.updateCalendarSelection=function(M){this.calendar.updateSelection(Object.assign({},M,{selectionState:this.selectionState}))};
_.N.updateIsStartDateInvalidFromBinding=function(M){this.isStartDateInvalid=M.detail.value};
_.N.updateIsEndDateInvalidFromBinding=function(M){this.isEndDateInvalid=M.detail.value};
_.N.updateStartDateStringFromBinding=function(){};
_.N.updateEndDateStringFromBinding=function(){};
_.Yd.Object.defineProperties(H_.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:$e(this.data.dateRangeStart),end:$e(this.data.dateRangeEnd),selection:{start:$e(this.data.selection.start),end:$e(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&PwH(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&izy(this.selection)}}});
H_.prototype.resetTextboxes=H_.prototype.resetTextboxes;H_.prototype.observeSelection=H_.prototype.observeSelection;H_.prototype.dataChanged=H_.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],H_.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("#calendar"),_.r("design:type",Object)],H_.prototype,"calendar",void 0);
_.T([_.ET("#start-date"),_.r("design:type",Object)],H_.prototype,"startDateInput",void 0);_.T([_.ET("#end-date"),_.r("design:type",Object)],H_.prototype,"endDateInput",void 0);_.T([_.B(),_.r("design:type",Object)],H_.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],H_.prototype,"selection",void 0);_.T([_.B(),_.r("design:type",String)],H_.prototype,"selectionState",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],H_.prototype,"calendarConfig",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],H_.prototype,"errorMessage",null);_.T([_.c("selection"),_.r("design:type",Object),_.r("design:paramtypes",[])],H_.prototype,"startDate",null);_.T([_.c("selection"),_.r("design:type",Object),_.r("design:paramtypes",[])],H_.prototype,"endDate",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],H_.prototype,"dataChanged",null);
_.T([_.KT("selection","selectionState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],H_.prototype,"observeSelection",null);_.T([_.KT("selectionState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],H_.prototype,"resetTextboxes",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],H_);
_.z(H_,"ytd-date-period-picker-renderer",function(){if(UHf!==void 0)return UHf;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return UHf=M},{mode:1});var ee=function(){var M=_.Q.apply(this,arguments)||this;var q={};M.actionMap=(q["ytd-date-period-picker-apply"]="handleDateRangeUpdated",q);return M};
_.l(ee,_.Q);ee.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
ee.prototype.handleDateRangeUpdated=function(){};
_.T([_.B(),_.r("design:type",Object)],ee.prototype,"data",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ee.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ee.prototype,"rendererstamperBehavior",void 0);_.T([_.b({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],ee);
_.z(ee,"ytd-report-history-section-header-renderer",function(){if(bcp!==void 0)return bcp;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return bcp=M},{mode:1});var Tel;var rfS;var jjS;var $K=function(){return _.Q.apply(this,arguments)||this};
_.l($K,_.Q);_.Yd.Object.defineProperties($K.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?0:(q=M.icon)==null?0:q.iconType)?_.H4(this.data.icon.iconType):""}}});
_.T([_.B(),_.r("design:type",Object)],$K.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],$K.prototype,"icon",null);_.T([_.b({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],$K);
_.z($K,"ytd-report-history-table-text-cell-renderer",function(){if(jjS!==void 0)return jjS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return jjS=M},{mode:1});var sP=function(){return _.Q.apply(this,arguments)||this};
_.l(sP,_.Q);sP.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],sP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sP.prototype,"data",void 0);_.T([_.b({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],sP);
_.z(sP,"ytd-report-history-table-reason-cell-renderer",function(){if(rfS!==void 0)return rfS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return rfS=M},{mode:1});var Mj=function(){return _.Q.apply(this,arguments)||this};
_.l(Mj,_.Q);Mj.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"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Mj.prototype,"rendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Mj.prototype,"data",void 0);_.T([_.b({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],Mj);
_.z(Mj,"ytd-report-history-table-cell-renderer",function(){if(Tel!==void 0)return Tel;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return Tel=M},{mode:1});var Vnx;var qj=function(){var M=_.Q.apply(this,arguments)||this;M.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 M};
_.l(qj,_.Q);qj.prototype.onDataChanged=function(){var M;if((M=this.data)==null?0:M.style)this.componentStyle=this.getStyleName(this.data.style)};
qj.prototype.getCellForColumn=function(M){return this.cells.find(function(q){var G;return((G=_.C(q==null?void 0:q.cell,Rnd)||_.C(q==null?void 0:q.cell,VvP))==null?void 0:G.columnId)===M.type})};
qj.prototype.getClassForColumn=function(M){switch(M){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
qj.prototype.getStyleName=function(M){switch(M){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Yd.Object.defineProperties(qj.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.cells)||[]).map(function(q){return _.C(q,j39)})}}});
qj.prototype.onDataChanged=qj.prototype.onDataChanged;_.T([_.B(),_.r("design:type",Object)],qj.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Array)],qj.prototype,"columnRenderData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],qj.prototype,"componentStyle",void 0);_.T([_.c("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],qj.prototype,"cells",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qj.prototype,"onDataChanged",null);_.T([_.b({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],qj);
_.z(qj,"ytd-report-history-table-row-renderer",function(){if(Vnx!==void 0)return Vnx;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Vnx=M},{mode:1});var RQJ;var f0f;var D0$={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},u_j={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var G1=function(){return _.Q.apply(this,arguments)||this};
_.l(G1,_.Q);G1.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"}}}}}};
G1.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Yd.Object.defineProperties(G1.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.columns)?x0y(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return bzj(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var M=this.tableSpec,q=D0$;q=q===void 0?u_j:q;q=U0y(M.columnDimensions,M.columnsToShow||[],q);M=0;q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=G.value,M+=G.minWidth+G.paddingLeft+G.paddingRight;return M}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.T([_.P(_.sG),_.r("design:type",Object)],G1.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],G1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],G1.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],G1.prototype,"tableSpec",null);_.T([_.c("tableSpec"),_.r("design:type",Array),_.r("design:paramtypes",[])],G1.prototype,"columnRenderData",null);
_.T([_.c("tableSpec"),_.r("design:type",Number),_.r("design:paramtypes",[])],G1.prototype,"totalMinWidth",null);_.T([_.c("totalMinWidth"),_.r("design:type",String),_.r("design:paramtypes",[])],G1.prototype,"tableWidthStyle",null);_.T([_.b({is:"ytd-table-renderer",disableElementRegistration:!0})],G1);
_.z(G1,"ytd-table-renderer",function(){if(f0f!==void 0)return f0f;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return f0f=M},{mode:1});var KM=function(){return _.Q.apply(this,arguments)||this};
_.l(KM,_.Q);KM.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}}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],KM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],KM.prototype,"data",void 0);_.T([_.b({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],KM);
_.z(KM,"ytd-report-reason-history-modal-renderer",function(){if(RQJ!==void 0)return RQJ;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return RQJ=M},{mode:1});var Fs2;var HcP;var eQB;var nM=function(){return _.Q.apply(this,arguments)||this};
_.l(nM,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],nM.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],nM.prototype,"data",void 0);_.T([_.b({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],nM);
_.z(nM,"ytd-profile-column-stats-entry-renderer",function(){if(eQB!==void 0)return eQB;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return eQB=M},{mode:1});var $HP;var EP=function(){return _.Q.apply(this,arguments)||this};
_.l(EP,_.Q);EP.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],EP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],EP.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],EP.prototype,"data",void 0);_.T([_.b({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],EP);
_.z(EP,"ytd-profile-column-stats-renderer",function(){if($HP!==void 0)return $HP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return $HP=M},{mode:1});var sXM;var Nj=function(){return _.Q.apply(this,arguments)||this};
_.l(Nj,_.Q);_.Yd.Object.defineProperties(Nj.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.useThumbnailSize)return 80;var q,G;M=(q=this.data)==null?void 0:(G=q.thumbnail)==null?void 0:G.thumbnails;var K;return M&&((K=M[0])==null?void 0:K.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.useThumbnailSize)return 80;var q,G;M=(q=this.data)==null?void 0:(G=q.thumbnail)==null?void 0:G.thumbnails;var K;return M&&((K=M[0])==null?void 0:K.height)||80}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Nj.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Nj.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Nj.prototype,"componentStyle",void 0);_.T([_.c("data.useThumbnailSize"),_.r("design:type",Object),_.r("design:paramtypes",[])],Nj.prototype,"thumbnailWidth",null);
_.T([_.c("data.useThumbnailSize"),_.r("design:type",Object),_.r("design:paramtypes",[])],Nj.prototype,"thumbnailHeight",null);_.T([_.b({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Nj);
_.z(Nj,"ytd-profile-column-user-info-renderer",function(){if(sXM!==void 0)return sXM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return sXM=M},{mode:1});var k6=function(){return _.Q.apply(this,arguments)||this};
_.l(k6,_.Q);k6.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]]"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],k6.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],k6.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],k6.prototype,"componentStyle",void 0);_.T([_.b({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],k6);
_.z(k6,"ytd-profile-column-renderer",function(){if(HcP!==void 0)return HcP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return HcP=M},{mode:1});var pM=function(){var M=_.Q.apply(this,arguments)||this;M.componentStyle="NON_CENTERED_PROFILE";return M};
_.l(pM,_.Q);pM.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
pM.prototype.getIcon=function(M){return M?"settings:"+M.toLowerCase():null};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pM.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],pM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],pM.prototype,"data",void 0);_.T([_.b({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],pM);
_.z(pM,"ytd-page-introduction-renderer",function(){if(Fs2!==void 0)return Fs2;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Fs2=M},{mode:1});var MHv;var ys=function(){return _.Q.apply(this,arguments)||this};
_.l(ys,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ys.prototype,"data",void 0);_.T([_.b({is:"ytd-report-description-renderer",disableElementRegistration:!0})],ys);
_.z(ys,"ytd-report-description-renderer",function(){if(MHv!==void 0)return MHv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return MHv=M},{mode:1});var qsJ;var GAp;var LM=function(){return _.Q.apply(this,arguments)||this};
_.l(LM,_.Q);LM.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],LM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],LM.prototype,"data",void 0);_.T([_.b({is:"ytd-video-report-renderer",disableElementRegistration:!0})],LM);
_.z(LM,"ytd-video-report-renderer",function(){if(GAp!==void 0)return GAp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return GAp=M},{mode:1});var KeI;_.hC("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.hC("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Y6=function(){return _.Q.apply(this,arguments)||this};
_.l(Y6,_.Q);Y6.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]]"}}}}}};
Y6.prototype.computeMessageStyle=function(M){return M};
Y6.prototype.computeButtonOverride=function(M){var q;if((M==null?0:(q=M.style)==null?0:q.value)&&M.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Y6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Y6.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Y6.prototype,"shelf",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Y6.prototype,"panel",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.r("design:type",Boolean)],Y6.prototype,"componentStyle",void 0);_.T([_.B({computed:"computeButtonOverride(data)"}),_.r("design:type",Object)],Y6.prototype,"buttonOverride",void 0);_.T([_.b({is:"ytd-message-renderer",disableElementRegistration:!0})],Y6);
_.z(Y6,"ytd-message-renderer",function(){if(KeI!==void 0)return KeI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return KeI=M},{mode:1});var WP=function(){return _.Q.apply(this,arguments)||this};
_.l(WP,_.Q);WP.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"}}}};
WP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
WP.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Yd.Object.defineProperties(WP.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var M,q;return!!(((M=this.data)==null?0:M.header)&&((q=this.data)==null?0:q.table))}}});
WP.prototype.onRequestError=WP.prototype.onRequestError;_.T([_.P(_.sG),_.r("design:type",Object)],WP.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],WP.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],WP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],WP.prototype,"data",void 0);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],WP.prototype,"isUnifiedReportHistory",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WP.prototype,"onRequestError",null);_.T([_.b({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],WP);
_.z(WP,"ytd-report-history-section-renderer",function(){if(qsJ!==void 0)return qsJ;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qsJ=M},{mode:1});var nFp;var AX=function(){var M=_.Q.apply(this,arguments)||this;M.answerExpanded=!1;return M};
_.l(AX,_.Q);AX.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],AX.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],AX.prototype,"answerExpanded",void 0);_.T([_.b({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],AX);
_.z(AX,"ytd-handles-claiming-faq-renderer",function(){if(nFp!==void 0)return nFp;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return nFp=M},{mode:1});var EFl;var N3I=function(){return _.Q.apply(this,arguments)||this};
_.l(N3I,_.Q);_.T([_.B(),_.r("design:type",Object)],N3I.prototype,"data",void 0);_.T([_.b({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],N3I);
_.z(N3I,"ytd-handles-claiming-faq-section-renderer",function(){if(EFl!==void 0)return EFl;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return EFl=M},{mode:1});var kA9;var dZ=function(){var M=_.Q.apply(this,arguments)||this;M.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";M.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";M.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";M.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";M.leftSquiggly=M.leftSquigglyLight;M.rightSquiggly=M.rightSquigglyLight;
M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return M};
_.l(dZ,_.Q);_.N=dZ.prototype;_.N.updateLeftSquigglyStyle=function(){_.sT(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.N.updateRightSquigglyStyle=function(){_.sT(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.N.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
_.N.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),M?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
dZ.prototype.updateRightSquigglyStyle=dZ.prototype.updateRightSquigglyStyle;dZ.prototype.updateLeftSquigglyStyle=dZ.prototype.updateLeftSquigglyStyle;_.T([_.B(),_.r("design:type",Object)],dZ.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],dZ.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",String)],dZ.prototype,"leftSquiggly",void 0);_.T([_.B(),_.r("design:type",String)],dZ.prototype,"rightSquiggly",void 0);
_.T([_.KT("leftSquiggly"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dZ.prototype,"updateLeftSquigglyStyle",null);_.T([_.KT("rightSquiggly"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dZ.prototype,"updateRightSquigglyStyle",null);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],dZ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],dZ.prototype,"actionButtonOverride",void 0);_.T([_.b({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],dZ);
_.z(dZ,"ytd-handles-claiming-header-renderer",function(){if(kA9!==void 0)return kA9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return kA9=M},{mode:1});var pk2;var vP=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";M.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";M.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";M.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
M.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";M.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";M.image0SquigglyBackground=M.image0LightSquigglyBackground;M.image1SquigglyBackground=M.image1LightSquigglyBackground;M.image3SquigglyBackground=M.image3LightSquigglyBackground;return M};
_.l(vP,_.Q);_.N=vP.prototype;_.N.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.N.onDataChanged=function(){this.updateTitleAndImages()};
_.N.onThemeChanged=function(){this.updateTitleAndImages()};
_.N.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.N.updateImage0SquigglyBackground=function(){_.sT(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.N.updateImage1SquigglyBackground=function(){_.sT(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.N.updateImage3SquigglyBackground=function(){_.sT(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.N.updateTitleAndImages=function(){var M,q;((M=this.data)==null?void 0:(q=M.titleImages)==null?void 0:q.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))};
vP.prototype.updateImage3SquigglyBackground=vP.prototype.updateImage3SquigglyBackground;vP.prototype.updateImage1SquigglyBackground=vP.prototype.updateImage1SquigglyBackground;vP.prototype.updateImage0SquigglyBackground=vP.prototype.updateImage0SquigglyBackground;vP.prototype.onThemeChanged=vP.prototype.onThemeChanged;vP.prototype.onDataChanged=vP.prototype.onDataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],vP.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],vP.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"title0",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"title1",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"title2",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"title3",void 0);
_.T([_.B(),_.r("design:type",Object)],vP.prototype,"title4",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"image0",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"image1",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"image2",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"image3",void 0);_.T([_.B(),_.r("design:type",Object)],vP.prototype,"image4",void 0);_.T([_.B(),_.r("design:type",String)],vP.prototype,"image0SquigglyBackground",void 0);
_.T([_.B(),_.r("design:type",String)],vP.prototype,"image1SquigglyBackground",void 0);_.T([_.B(),_.r("design:type",String)],vP.prototype,"image3SquigglyBackground",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vP.prototype,"onDataChanged",null);_.T([_.KT("isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vP.prototype,"onThemeChanged",null);
_.T([_.KT("image0SquigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vP.prototype,"updateImage0SquigglyBackground",null);_.T([_.KT("image1SquigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vP.prototype,"updateImage1SquigglyBackground",null);
_.T([_.KT("image3SquigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vP.prototype,"updateImage3SquigglyBackground",null);_.T([_.b({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],vP);
_.z(vP,"ytd-handles-claiming-title-images-section-renderer",function(){if(pk2!==void 0)return pk2;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return pk2=M},{mode:1});var yS2;var hX=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(hX,_.Q);hX.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
hX.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M)};
hX.prototype.onCopyButtonClick=function(){var M=this,q,G,K;return _.L(function(n){return(q=M.data)!=null&&q.primaryChannelUrl?n.yield(navigator.clipboard.writeText(((G=M.data)==null?0:G.encodedChannelUrl)?M.data.encodedChannelUrl:"https://"+_.UX((K=M.data)==null?void 0:K.primaryChannelUrl)),0):n.jumpTo(0)})};
_.T([_.B(),_.r("design:type",Object)],hX.prototype,"data",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],hX.prototype,"ytComponentBehavior",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],hX.prototype,"isDarkTheme",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],hX.prototype,"ytActionHandlerBehavior",void 0);_.T([_.b({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],hX);
_.z(hX,"ytd-handles-claiming-update-social-renderer",function(){if(yS2!==void 0)return yS2;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return yS2=M},{mode:1});var LeJ;var tX=function(){var M=_.Q.apply(this,arguments)||this;M.JSC$16169_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";M.JSC$16169_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};M.squigglyBackground=M.JSC$16169_squigglyBackgroundLight;return M};
_.l(tX,_.Q);tX.prototype.updateSquigglyBackgroundStyle=function(){_.sT(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
tX.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.squigglyBackground=M?this.JSC$16169_squigglyBackgroundDark:this.JSC$16169_squigglyBackgroundLight};
tX.prototype.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),this.squigglyBackground=M?this.JSC$16169_squigglyBackgroundDark:this.JSC$16169_squigglyBackgroundLight)};
tX.prototype.updateSquigglyBackgroundStyle=tX.prototype.updateSquigglyBackgroundStyle;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tX.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],tX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],tX.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tX.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],tX.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",String)],tX.prototype,"squigglyBackground",void 0);_.T([_.KT("squigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tX.prototype,"updateSquigglyBackgroundStyle",null);_.T([_.b({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],tX);
_.z(tX,"ytd-handles-claiming-vanity-info-renderer",function(){if(LeJ!==void 0)return LeJ;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return LeJ=M},{mode:1});var Ysf;var OP=function(){var M=_.Q.apply(this,arguments)||this;M.JSC$16172_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";M.JSC$16172_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";M.squigglyBackground=M.JSC$16172_squigglyBackgroundLight;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(OP,_.Q);_.N=OP.prototype;_.N.ready=function(){var M=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(M)};
_.N.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.set("isDarkTheme",M),this.squigglyBackground=M?this.JSC$16172_squigglyBackgroundDark:this.JSC$16172_squigglyBackgroundLight)};
_.N.updateSquigglyBackgroundStyle=function(){_.sT(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.N.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.N.detached=function(){this.stop()};
_.N.stop=function(){this.playerElement.stop()};
_.N.setupVideoPlayer=function(){var M=this,q,G;return _.L(function(K){q=M.data.videoId;G="http://i1.ytimg.com/vi/"+q+"/maxresdefault.jpg";M.playerElement.loadVideoWithPlayerVars({video_id:q,iurlhq:G});_.gL(K)})};
OP.prototype.onDataChanged=OP.prototype.onDataChanged;OP.prototype.updateSquigglyBackgroundStyle=OP.prototype.updateSquigglyBackgroundStyle;_.T([_.B({value:!1}),_.r("design:type",Boolean)],OP.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",String)],OP.prototype,"squigglyBackground",void 0);_.T([_.ET("#player"),_.r("design:type",Object)],OP.prototype,"playerElement",void 0);_.T([_.B(),_.r("design:type",Object)],OP.prototype,"data",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],OP.prototype,"ytActionHandlerBehavior",void 0);_.T([_.KT("squigglyBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],OP.prototype,"updateSquigglyBackgroundStyle",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],OP.prototype,"onDataChanged",null);
_.T([_.b({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],OP);
_.z(OP,"ytd-handles-claiming-video-item-renderer",function(){if(Ysf!==void 0)return Ysf;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Ysf=M},{mode:1});var We8;var CM=function(){var M=_.kA.apply(this,arguments)||this;M.dragging=!1;M.dragMouseStart=0;M.dragOffsetStart=0;M.containerWidthDiff=0;M.boundPrevClick=function(){M.set("offset",wZ(M,M.offset-(M.scrollDistance||320)))};
M.boundNextClick=function(){M.set("offset",wZ(M,M.offset+(M.scrollDistance||320)))};
M.boundScrollContainerMouseDown=function(q){M.dragMouseStart=q.clientX;M.dragOffsetStart=M.offset;M.dragging=!0};
M.boundScrollContainerDrag=function(q){M.dragging&&M.set("offset",wZ(M,M.dragOffsetStart-(q.clientX-M.dragMouseStart)))};
M.boundMouseUp=function(){M.onMouseUp()};
M.boundWheelScroll=function(q){var G=0;Math.abs(q.deltaX)>=Math.abs(q.deltaY)?G=q.deltaX:q.shiftKey&&(G=q.deltaY);G!==0&&(M.offset+=G,q.stopPropagation(),q.preventDefault())};
M.boundChipCloudChipScrollIntoView=function(q){(q=q.detail)&&M.scrollChipIntoView(q)};
return M};
_.l(CM,_.kA);CM.prototype.attached=function(){var M=_.f_(this.hostElement).querySelector("#scroll-container");M.addEventListener("wheel",this.boundWheelScroll);M.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);M.style.touchAction="pan-y";M.addEventListener("pointerdown",this.boundScrollContainerMouseDown);M.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
CM.prototype.detached=function(){var M=_.f_(this.hostElement).querySelector("#scroll-container");M.removeEventListener("wheel",this.boundWheelScroll);M.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);M.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);M.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
CM.prototype.reset=function(){this.set("offset",0);_.yb(this,this.setContainerWidthDiff);_.yb(this,this.setButtonsState)};
var wZ=function(M,q){return Math.min(Math.max(q,0),M.containerWidthDiff)};
_.N=CM.prototype;_.N.onMouseUp=function(){this.dragging=!1};
_.N.transformContainer=function(){this.offset=wZ(this,this.offset);var M=_.R9("HTML_DIR")==="rtl"?"":"-";_.f_(this.hostElement).querySelector("#chips").style.transform="translateX("+M+this.offset+"px)";_.yb(this,this.setButtonsState)};
_.N.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=wZ(this,this.offset));this.atStart=this.offset<=0};
_.N.setContainerWidthDiff=function(){var M=_.f_(this.hostElement).querySelector("#scroll-container"),q=_.f_(this.hostElement).querySelector("#chips");M&&q&&(this.containerWidthDiff=q.clientWidth-M.clientWidth)};
_.N.scrollChipIntoView=function(M){var q=_.f_(this.hostElement).querySelector("#scroll-container");if(q){var G=this.atStart?0:106,K=this.atEnd?0:106;M.offsetLeft<this.offset+G?this.offset=wZ(this,M.offsetLeft-G):M.offsetLeft+M.clientWidth>this.offset+q.clientWidth-K&&(this.offset=wZ(this,M.offsetLeft+M.clientWidth+K-q.clientWidth))}};
CM.prototype.transformContainer=CM.prototype.transformContainer;_.T([_.B({value:0}),_.r("design:type",Number)],CM.prototype,"offset",void 0);_.T([_.B({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],CM.prototype,"atStart",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],CM.prototype,"atEnd",void 0);_.T([_.B(),_.r("design:type",Number)],CM.prototype,"scrollDistance",void 0);
_.T([_.KT("offset"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CM.prototype,"transformContainer",null);_.T([_.pT()],CM);var ASS;var dVp;var tH2=_.U(function(M){var q=M.data;M=_.k(_.lQ(!1,void 0,"bob3J"));var G=M.next().value,K=M.next().value;M=function(E){if((q==null?void 0:q().state)!==1){var p,y;(y=(p=q()).onTap)==null||y.call(p,E)}};
var n={};return _.W("chip-shape",{class:"ytChipShapeHost","on:focusin":_.sq(function(){var E=_.AL().resolve(_.WR(_.Nt));if(E){K(E.isKeyBoardInUse());var p,y;(y=(p=q()).onFocusIn)==null||y.call(p)}return!1}),
"on:focusout":_.sq(function(){K(!1);return!1})},_.W(vFf,{shouldWrapInButton:function(){return q().type!==2},
selected:function(){return q().state===0},
onClick:M,isDropdown:function(){return q().type===1},
accessibilityLabel:function(){return q().type===1?void 0:q().accessibilityLabel}},_.W("div",{class:_.Hb("ytChipShapeChip",function(){a:switch(q==null?void 0:q().state){case 0:var E="ytChipShapeActive";
break a;case 1:E="ytChipShapeDisabled";break a;default:E="ytChipShapeInactive"}return E},function(){var E=q().type===1||q().type===2,p=q();
return E||p!=null&&p.startIcon?p==null||!p.startIcon||p!=null&&p.text?E?"ytChipShapeEndIconPadding":(p==null?0:p.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},function(){var E=q();
if((E==null?void 0:E.style)===0&&(E==null?void 0:E.state)===0){var p;E=((p=_.AL().resolve(_.WR(_.Qx)))==null?0:p())?"ytChipShapeAICustomizedChipBorderDarkMode":"ytChipShapeAICustomizedChipBackgroundLightMode"}else E="";return E},(n.ytChipShapeFocused=function(){var E;
return G()&&((E=q())==null?void 0:E.state)!==1},n))},_.W(_.d,{cond:function(){return q().startIcon},
then:function(){return _.W(_.np,{icon:function(){var E;return(E=q())==null?void 0:E.startIcon},
className:_.Hb(function(){return q().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"},function(){var E=q(),p,y=(p=_.AL().resolve(_.WR(_.Qx)))==null?void 0:p();
return(E==null?void 0:E.style)===0&&(E==null?void 0:E.state)===0&&y?"ytChipShapeAICustomizedChipIconDarkMode":""})})}}),function(){return q().text},_.W(hAx,{shape:q,
onClick:M}),_.W(_.p3,{model:{borderRadius:"8px"}}))))},"Jc");
tH2.idomCompat=!0;var vFf=_.U(function(M){var q=_.sq(function(G){M.onClick(G);return!1});
return _.W(_.d,{cond:M.shouldWrapInButton,then:function(){return _.W("button",{class:"ytChipShapeButtonReset","on:click":q,role:function(){return M.isDropdown()?"combobox":"tab"},
"aria-label":M.accessibilityLabel,"aria-selected":M.selected},M.children)},
else:function(){return M.children}})},"Kc"),hAx=_.U(function(M){var q=M.shape;
var G=M.onClick;var K=_.sq(function(n){G(n);return!1});
return _.W(_.Ub,null,_.W(_.J3,{when:function(){return q().type===1}},function(){return _.W(_.np,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.W(_.J3,{when:function(){return q().type===2}},function(){return _.W("button",{class:"ytChipShapeButtonReset",
"on:click":K},_.W(_.np,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.W(_.J3,{when:function(){return q().type===0}},function(){return _.W(_.dU,null)}))},"Lc");_.S5(tH2,"chip-shape",{props:{data:_.Hz}});var aK=function(){var M=_.Q.apply(this,arguments)||this;M.disableDeselectEvent=!1;M.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return M};
_.l(aK,_.Q);_.N=aK.prototype;_.N.onSelectChipCommand=function(M){if(!this.selected&&this.data&&(M=_.C(M,s3P),M.targetId&&M.targetId===this.data.targetId))this.onTap()};
_.N.onFilterChipTransformCommand=function(M){if(!this.selected&&this.data){var q;(M=(q=_.C(M,VDf))==null?void 0:q.chipUniqueId)&&M===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.N.dataChanged=function(){var M=this;_.yb(this,function(){M.data&&M.data.isSelected&&!M.selected&&(M.scrollChipIntoView(),M.onTap())})};
_.N.computeChipStyle=function(M){return M!=null?M:"STYLE_DEFAULT"};
_.N.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.VW(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.VW(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.N.onFocus=function(){var M=_.AL().resolve(_.WR(_.Nt));M&&M.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.N.scrollChipIntoView=function(){_.jP(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Yd.Object.defineProperties(aK.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Vdj({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
aK.prototype.onFocus=aK.prototype.onFocus;aK.prototype.onTap=aK.prototype.onTap;aK.prototype.dataChanged=aK.prototype.dataChanged;_.T([_.P(_.cn),_.r("design:type",Object)],aK.prototype,"ironButtonState",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],aK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],aK.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],aK.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.X9),_.r("design:type",Object)],aK.prototype,"ironA11yKeysBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],aK.prototype,"disableDeselectEvent",void 0);_.T([_.B(),_.r("design:type",Object)],aK.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.icon"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aK.prototype,"hasIcon",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data.uniqueId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aK.prototype,"isGnomeChip",null);_.T([_.B({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.r("design:type",String)],aK.prototype,"chipStyle",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],aK.prototype,"selected",void 0);
_.T([_.c("data","selected"),_.r("design:type",Object),_.r("design:paramtypes",[])],aK.prototype,"chipShapeData",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aK.prototype,"dataChanged",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aK.prototype,"onTap",null);
_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aK.prototype,"onFocus",null);_.T([_.aO({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],aK);
_.z(aK,"yt-chip-cloud-chip-renderer",function(){if(dVp===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;ASS===void 0&&(ASS=document.createElement("template"));var K=ASS;G.call(q,K.content.cloneNode(!0),M.content.firstChild);dVp=M}M=dVp;return M},{mode:2});var O2P=_.gx.persistentPanelVisibleSelector,oK=function(){var M=_.Q.apply(this,arguments)||this;M.isDarkTheme=!1;M.notSticky=!1;M.transparentBackground=!1;M.shouldHide=!1;M.disableSticky=!1;M.fluidWidth=!1;M.isClipList=!1;M.defaultChipIndex=0;M.isPlaylist=!1;M.playlistVotingAnimationEnabled=_.w("web_enable_voting_animation");M.toolbarHeight=0;M.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return M};
_.l(oK,_.Q);_.N=oK.prototype;
_.N.configureRendererStamper=function(){return{"data.contents":{id:"chips",mapping:{chipCloudChipRenderer:{component:"yt-chip-cloud-chip-renderer",properties:{disableDeselectEvent:"[[isDisableDeselectEvent]]"}}}},sortFilterHeaderRendererData:{id:"filter",mapping:{sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isClipList:"[[isClipList]]",isPlaylistPageWithFilters:"[[isPlaylistPage]]"}}}},"data.previousButton":{id:"left-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundPrevClick]]"},
params:{iconSize:16}}}},"data.nextButton":{id:"right-arrow-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundNextClick]]"},params:{iconSize:16}}}}}};
_.N.attached=function(){var M=this;document.addEventListener("scroll",_.qs(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var q;this.toolbarHeight=((q=document.querySelector("ytd-masthead"))==null?void 0:q.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(G){M.handleIntersect(G)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){M.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.N.detached=function(){var M;(M=this.intersectionObserver)==null||M.disconnect();var q;(q=this.resizeObserver)==null||q.disconnect();document.removeEventListener("scroll",_.qs(this,this.updateChipBarWidthAndTop))};
_.N.dataChanged=function(){var M=this,q,G,K;((K=_.C((q=this.data)==null?void 0:(G=q.contents)==null?void 0:G[0],GU8))==null?void 0:K.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var n=this.findSelectedChipIndex();this.selectedIndex!==n&&(this.selectedIndex=-1);_.yb(this,function(){M.selectedIndex=n;M.updating=!1;M.ytScrollableChipCloudBehavior.reset()})};
_.N.findSelectedChipIndex=function(){var M;if((M=this.data)==null||!M.contents)return 0;M=this.data.contents;for(var q=0;q<M.length;q++){var G=void 0;if((G=_.C(M[q],GU8))==null?0:G.isSelected)return q}return 0};
_.N.computeStyle=function(M){return M};
_.N.handleChipCloudChipSelectAction=function(M){M=this.JSC$16193_chipsSelector.indexOf(M);M>-1&&this.JSC$16193_chipsSelector.selectIndex(M)};
_.N.handleChipCloudChipDeselectAction=function(){if(_.w("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var M,q,G,K=(G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],GU8))==null?void 0:G.navigationEndpoint;K&&_.VW(this.hostElement,"yt-browse-section-list-reload-endpoint",[K]);this.JSC$16193_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.N.onGuideIsExpandedChanged=function(){this.updateLayout()};
_.N.onPersistentPanelVisibleChanged=function(){this.updateLayout()};
_.N.onResize=function(){this.updateLayout()};
_.N.updateLayout=function(){var M=this.ytScrollableChipCloudBehavior;_.yb(M,M.setContainerWidthDiff);M=this.ytScrollableChipCloudBehavior;_.yb(M,M.setButtonsState)};
_.N.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.N.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.N.handleIntersect=function(M){this.notSticky=this.isChannelPageGrid||this.disableSticky||M[0].intersectionRatio===1};
_.N.updateDimensions=function(){var M=this.ytRendererBehavior.parentComponent;if(M){var q,G=(q=M.headerElement)!=null?q:M;_.sT(this.hostElement,{"--ytd-rich-grid-chips-bar-width":G.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.N.updateSelectedIndexFromBinding=function(M){this.selectedIndex=M.detail.value};
_.N.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var M;(M=this.sortFilterHeaderRendererElement)==null||M.setAttribute("is-playlist-page-with-filters","")}};
_.N.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(FOP(!this.notSticky))};
_.Yd.Object.defineProperties(oK.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 M,q,G=(M=this.data)==null?void 0:(q=M.contents)==null?void 0:q.find(function(K){return _.C(K,kUd)});
return{sortFilterHeaderRenderer:_.C(G,kUd)}}}});
oK.prototype.dispatchChipBarIsSticky=oK.prototype.dispatchChipBarIsSticky;oK.prototype.isPlaylistPageChanged=oK.prototype.isPlaylistPageChanged;oK.prototype.updateChipBarWidthAndTop=oK.prototype.updateChipBarWidthAndTop;oK.prototype.onResize=oK.prototype.onResize;oK.prototype.onPersistentPanelVisibleChanged=oK.prototype.onPersistentPanelVisibleChanged;oK.prototype.onGuideIsExpandedChanged=oK.prototype.onGuideIsExpandedChanged;oK.prototype.dataChanged=oK.prototype.dataChanged;
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],oK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],oK.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.uz),_.r("design:type",Object)],oK.prototype,"ironResizableBehavior",void 0);_.T([_.P(),_.r("design:type",CM)],oK.prototype,"ytScrollableChipCloudBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],oK.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],oK.prototype,"data",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],oK.prototype,"selectedIndex",void 0);_.T([_.B({value:320}),_.r("design:type",Number)],oK.prototype,"scrollDistance",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oK.prototype,"isDarkTheme",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oK.prototype,"notSticky",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oK.prototype,"transparentBackground",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.r("design:type",String)],oK.prototype,"componentStyle",void 0);_.T([_.B({selector:_.gve}),_.r("design:type",Boolean)],oK.prototype,"guideIsExpanded",void 0);
_.T([_.B({selector:O2P}),_.r("design:type",Boolean)],oK.prototype,"persistentPanelVisible",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oK.prototype,"shouldHide",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oK.prototype,"disableSticky",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oK.prototype,"fluidWidth",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oK.prototype,"isClipList",void 0);
_.T([_.B(),_.r("design:type",Object)],oK.prototype,"defaultChipIndex",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oK.prototype,"isPlaylist",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],oK.prototype,"playlistVotingAnimationEnabled",void 0);_.T([_.ET("#chips"),_.r("design:type",Object)],oK.prototype,"JSC$16193_chipsSelector",void 0);
_.T([_.ET("ytd-sort-filter-header-renderer"),_.r("design:type",HTMLElement)],oK.prototype,"sortFilterHeaderRendererElement",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],oK.prototype,"updating",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oK.prototype,"dataChanged",null);
_.T([_.KT("guideIsExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oK.prototype,"onGuideIsExpandedChanged",null);_.T([_.KT("persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oK.prototype,"onPersistentPanelVisibleChanged",null);_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oK.prototype,"onResize",null);
_.T([_.yO("isChannelPageGrid","disableSticky","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oK.prototype,"updateChipBarWidthAndTop",null);_.T([_.c("componentStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],oK.prototype,"isChannelPageGrid",null);_.T([_.c("componentStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],oK.prototype,"isHashtagLandingPage",null);
_.T([_.KT("isPlaylistPage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oK.prototype,"isPlaylistPageChanged",null);_.T([_.c("componentStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],oK.prototype,"isPlaylistPage",null);_.T([_.c("componentStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],oK.prototype,"isDisableDeselectEvent",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],oK.prototype,"sortFilterHeaderRendererData",null);_.T([_.B({reflectToAttribute:!0,selector:_.Z34}),_.r("design:type",String)],oK.prototype,"frostedGlassMode",void 0);_.T([_.KT("notSticky"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oK.prototype,"dispatchChipBarIsSticky",null);_.T([_.b({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],oK);
_.z(oK,"ytd-feed-filter-chip-bar-renderer",function(){if(We8!==void 0)return We8;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-feed-filter-chip-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="chips-wrapper" class="style-scope ytd-feed-filter-chip-bar-renderer">\n  <div id="chips-content" class="style-scope ytd-feed-filter-chip-bar-renderer">\n    <div id="left-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="left-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n    <div id="filter" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    <div id="scroll-container" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <iron-selector id="chips" activate-event="" role="tablist" selected="[[selectedIndex]]" selected-attribute="selected" on-selected-changed="updateSelectedIndexFromBinding" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      </iron-selector>\n    </div>\n    <div id="right-arrow" class="style-scope ytd-feed-filter-chip-bar-renderer">\n      <div id="right-arrow-button" class="style-scope ytd-feed-filter-chip-bar-renderer"></div>\n    </div>\n  </div>\n</div>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return We8=M},{mode:1});var wkP;var C$M=_.U(function(M){var q=M.data;var G=M.buttonIndex;var K=M.selectedIndex;var n=M.onSelect;var E=function(){return G()===K()},p=function(){var y,Y;
return(Y=(y=q().text)==null?void 0:y.content)!=null?Y:""};
M=_.TDF();return _.W("yt-toggleable-image-button-view-model",{class:function(){var y={};y=(y.toggleableImageButtonViewModelHost=!0,y[""]=!0,y.toggleableImageButtonViewModelSemiTransparent=K()!==-1&&!E(),y);return _.vO(y)},
tabindex:0,"aria-label":p,"aria-pressed":E,role:"button","on:keydown":M,"on:click":_.sq(function(){n(q().onSubmitCommand);return!1})},_.W(_.d,{cond:function(){return q().logo},
then:function(y){return _.W(_.Jj,{data:y,className:function(){var Y={};Y=(Y.toggleableImageButtonViewModelImage=!0,Y.toggleableImageButtonViewModelCircularRadius=!(!q().backgroundColor||!q().backgroundColorDarkMode),Y.toggleableImageButtonViewModelGradientRing=!!(E()&&q().backgroundColor&&q().backgroundColorDarkMode),Y);return _.vO(Y)},
alt:p,useWidth:!1,style:function(){if(E()&&q().backgroundColor&&q().backgroundColorDarkMode){var Y=ar(Number(q().backgroundColorDarkMode),"1");var A=ar(Number(q().backgroundColor),"1");Y="background: linear-gradient(180deg,"+Y+","+A+") border-box;"}else Y="";return Y}})}}),_.W(_.p3,{model:{borderRadius:"16px"}}),_.W("p",{class:function(){var y={};
y=(y.toggleableImageButtonViewModelLabel=!0,y.toggleableImageButtonViewModelBoldText=E(),y);return _.vO(y)}},_.W(_.Ft,{text:function(){return q().text}})))},"Mc");
C$M.idomCompat=!0;var oFv=_.U(function(M){var q=M.data;M=_.k(_.lQ({index:-1,command:{}},void 0,"GM3umb"));var G=M.next().value,K=M.next().value;return _.W("yt-nudge-form-view-model",{class:"nudgeFormViewModelHost"},_.W("div",{class:"nudgeFormViewModelFormOptions"},_.W(_.yu,{data:function(){return q().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(n,E){return _.W(C$M,{data:n.data,buttonIndex:E,selectedIndex:function(){return G().index},
onSelect:function(p){K({index:E(),command:p})}})}})),_.W(_.Ft,{text:function(){return q().subtitle},
className:"nudgeFormViewModelSubtitle"}),_.W("div",{class:"nudgeFormViewModelSubmit"},_.W(_.yu,{data:function(){return q().submitButton}},{buttonViewModel:function(n){return _.W(aLp,{data:n.data,
isDisabled:function(){return G().index===-1},
onClick:function(){_.Pb(G().command)}})}})))},"Nc");
oFv.idomCompat=!0;var aLp=_.U(function(M){var q=_.gY(function(){return Object.assign({},M.data(),{state:M.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"wMKC2e");
return _.W(_.Wf,{data:q,onClick:M.onClick})},"Oc");_.S5(oFv,"yt-nudge-form-view-model",{props:{data:_.Hz}});var lx=function(){var M=_.Q.apply(this,arguments)||this;M.roundedContainer=!0;M.buttonUpdate=_.w("web_modern_buttons");M.isDarkMode=!1;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return M};
_.l(lx,_.Q);_.N=lx.prototype;_.N.computeNudgeStyle=function(M){return M?"modernized-nudge":""};
_.N.handleDarkModeToggledAction=function(M){this.isDarkMode=M};
_.N.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.N.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"}}}};
_.N.computeIsHorizontalButtons=function(M){return M?!!M.applyModernizedStyle&&!!M.enableHorizontalButtons&&!!M.secondaryButton:!1};
_.Yd.Object.defineProperties(lx.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=(M=this.data)==null?void 0:M.backgroundStyle)!=null?q:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=(M=this.data)==null?void 0:M.contentsLocation)!=null?q:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.lightIconImage)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],lx.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],lx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],lx.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],lx.prototype,"actionHandlerBehavior",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("isHideEnclosingAction"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],lx.prototype,"isHidden",null);_.T([_.B(),_.r("design:type",Object)],lx.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],lx.prototype,"roundedContainer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],lx.prototype,"buttonUpdate",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.r("design:type",String)],lx.prototype,"nudgeStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.trimStyle"),_.r("design:type",String),_.r("design:paramtypes",[])],lx.prototype,"trimStyle",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.backgroundStyle"),_.r("design:type",String),_.r("design:paramtypes",[])],lx.prototype,"backgroundStyle",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data.contentsLocation"),_.r("design:type",String),_.r("design:paramtypes",[])],lx.prototype,"contentsLocation",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.disableDropShadow"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],lx.prototype,"noShadow",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.lightIconImage"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],lx.prototype,"noIcon",null);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.r("design:type",Boolean)],lx.prototype,"isHorizontalButtons",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Object)],lx.prototype,"isDarkMode",void 0);_.T([_.b({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],lx);
_.z(lx,"ytd-feed-nudge-renderer",function(){if(wkP!==void 0)return wkP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return wkP=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var lL2;var Xkl;var XB=function(){var M=_.Q.apply(this,arguments)||this;M.collapsed=!1;M.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return M};
_.l(XB,_.Q);XB.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"}}}};
XB.prototype.handleRatingSelect=function(){var M;((M=this.data)==null?0:M.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
XB.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],XB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],XB.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],XB.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],XB.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.TU),_.r("design:type",Object)],XB.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],XB.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XB.prototype,"collapsed",void 0);_.T([_.b({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],XB);
_.z(XB,"ytd-slimline-survey-renderer",function(){if(Xkl!==void 0)return Xkl;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Xkl=M},{mode:1});var P$I;var PP=function(){return _.Q.apply(this,arguments)||this};
_.l(PP,_.Q);PP.prototype.maybeGetBackgroundColor=function(M){return this.isDarkMode?M.section2Color:M.section3Color};
PP.prototype.colorPaletteChanged=function(){var M=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;M&&(M==null?0:M.secondaryTitleColor)&&this.maybeGetBackgroundColor(M)?(this.hostElement.style.backgroundColor=_.w2(this.maybeGetBackgroundColor(M)),this.hostElement.style.color=_.w2(M.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
PP.prototype.colorPaletteChanged=PP.prototype.colorPaletteChanged;_.T([_.P(_.mr),_.r("design:type",Object)],PP.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],PP.prototype,"data",void 0);_.T([_.B({selector:function(M){return M.ui.darkModeIsEnabled}}),
_.r("design:type",Boolean)],PP.prototype,"isDarkMode",void 0);_.T([_.B(),_.r("design:type",Object)],PP.prototype,"lightColorPalette",void 0);_.T([_.B(),_.r("design:type",Object)],PP.prototype,"darkColorPalette",void 0);_.T([_.KT("darkColorPalette","lightColorPalette","data","isDarkMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PP.prototype,"colorPaletteChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],PP);
_.z(PP,"ytd-endorsement-header-renderer",function(){if(P$I!==void 0)return P$I;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return P$I=M},{mode:1});_.S5(_.mF,"yt-decorated-avatar-view-model",{props:{data:_.Hz,className:_.Hz}});_.ix=new _.$k("VIEW_TRANSITION_MANAGER_TOKEN");var cP=function(){var M=_.Q.apply(this,arguments)||this;M.fullHeight=_.w("web_rich_grid_media_full_height");M.showChannelAvatar=!0;M.hasPlaylistThumbnail=!1;M.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};M.registerThumbnailForPageTransition=function(){_.w("web_thumbnail_to_watch_transition")&&_.i22(_.AL().resolve(_.ix),M.thumbnail)};
return M};
_.l(cP,_.Q);_.N=cP.prototype;
_.N.configureRendererStamper=function(){return{lazyLoadMenu:P5,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"}}}};
_.N.attached=function(){this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.shouldLazyLoadMenu=function(){var M=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.w("kevlar_modern_downloads_page")||!M};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16218_inlinePreviewHoverListener=oZ({mediaRenderer:this,lockupElement:this.JSC$16218_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.N.getVideoPreviewOpts=function(){var M={},q;if((q=this.data)==null?0:q.multipleInlinePlaybackEndpoint)M=A8J;this.isRadio&&(M=WDI);return M};
_.N.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$16218_inlinePreviewHoverListener)==null||JY(M)};
_.N.getOwner=function(){var M,q,G;return((M=this.data)==null?void 0:(q=M.channelThumbnailSupportedRenderers)==null?void 0:q.channelThumbnailWithLinkRenderer)||_.C((G=this.data)==null?void 0:G.showProviderChannelThumbnail,KtS)};
_.N.updateLockupSize=function(){var M;((M=this.getOwner())==null?0:M.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.N.getFeedbackEndpoint=function(M){if(_.C(M,_.tM))return M;var q,G;M=(G=(q=_.C(M,_.eP))==null?void 0:q.commands)!=null?G:[];q=_.k(M);for(G=q.next();!G.done;G=q.next())if(G=this.getFeedbackEndpoint(G.value))return G;return null};
_.N.computeNavigationEndpoint=function(M){return J1y(M==null?void 0:M.navigationEndpoint)};
_.N.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var M=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(M)!==JSON.stringify(this.data)&&this.set("data",M)}};
_.N.onDataChanged=function(){var M=this,q=this.getOwner();if(q){this.set("data.owner",q);var G,K,n,E,p,y=((G=this.data)==null?void 0:(K=G.shortBylineText)==null?void 0:(n=K.runs)==null?void 0:(E=n[0])==null?void 0:E.text)||((p=q.name)==null?void 0:p.simpleText);this.set("data.owner.title",y)}var Y,A,v,h,t,O;q=((Y=this.data)==null?void 0:(A=Y.thumbnailRenderer)==null?void 0:A.playlistVideoThumbnailRenderer)||((v=this.data)==null?void 0:(h=v.thumbnailRenderer)==null?void 0:h.playlistCustomThumbnailRenderer)||
((t=this.data)==null?void 0:(O=t.thumbnailRenderer)==null?void 0:O.showCustomThumbnailRenderer);var a;((a=this.data)==null?0:a.thumbnail)||!q||this.set("data.thumbnail",q.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){M.updateLockupSize()});
var g;if(Y=((g=this.data)==null?void 0:g.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(Y);var D;((D=this.dismissActionToReplayEntity)==null?0:D.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.N.onHiddenChanged=function(){this.updateLockupSize()};
_.N.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.VW(this.hostElement,"yt-terminate-video-preview-action");else{var M;(M=this.videoTitleLink)==null||M.focus()}};
_.N.metadataColorChanged=function(){var M;if(this.metadataColor&&((M=this.videoTitle)==null?0:M.style))this.videoTitle.style.color=_.w2(this.metadataColor);else{var q,G;!this.metadataColor&&((q=this.videoTitle)==null?0:(G=q.style)==null?0:G.color)&&(this.videoTitle.style.color="")}};
_.N.onDetailsClick=function(M){var q=this.computedNavigationEndpoint;q&&(_.b8(_.Zx(M),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.jP(this.hostElement,"yt-navigate",{endpoint:q}))};
_.N.onRendererTap=function(){this.registerThumbnailForPageTransition();var M,q,G=((M=this.data)==null?void 0:M.serviceEndpoint)||this.getFeedbackEndpoint((q=this.data)==null?void 0:q.navigationEndpoint);G&&_.C(G,_.tM)&&this.ytComponentBehavior.resolveCommand(G)};
_.N.onMouseDown=function(M){var q=M.target,G=this.computedNavigationEndpoint,K;M=q.href||((K=_.C(G==null?void 0:G.commandMetadata,_.Mg))==null?void 0:K.url);K=q.data||G;M&&K&&g4Y(M,K)};
_.N.computeVideoTitleText=function(){var M;if((M=this.data)==null?0:M.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.N.computeHasPlaylistThumbnail=function(M){var q,G,K,n,E;if((((q=M.thumbnailRenderer)==null?0:q.playlistVideoThumbnailRenderer)||((G=M.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer)||((K=M.thumbnailRenderer)==null?0:K.showCustomThumbnailRenderer)||((n=M.thumbnailRenderer)==null?0:n.playlistVideoThumbnailRenderer)||((E=M.thumbnailRenderer)==null?0:E.playlistCustomThumbnailRenderer))&&M.thumbnailOverlays)for(q=0;q<M.thumbnailOverlays.length;q++)if(G=void 0,(G=M.thumbnailOverlays[q])==
null?0:G.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Yd.Object.defineProperties(cP.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.w("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var M;return(M=this.data)==null?void 0:M.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var M;return(M=this.data)==null?void 0:M.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$16218_inlinePreviewHoverListener)==null?0:jf(M))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.El4(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:M.videoId)||((q=this.data)==null?void 0:q.playlistId)||""}}});
cP.prototype.onMouseDown=cP.prototype.onMouseDown;cP.prototype.metadataColorChanged=cP.prototype.metadataColorChanged;cP.prototype.onIsDismissedChanged=cP.prototype.onIsDismissedChanged;cP.prototype.onHiddenChanged=cP.prototype.onHiddenChanged;cP.prototype.onDataChanged=cP.prototype.onDataChanged;cP.prototype.handleReloadDownloadsInfo=cP.prototype.handleReloadDownloadsInfo;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],cP.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],cP.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],cP.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],cP.prototype,"ytdReduxBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],cP.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],cP.prototype,"entitySelectorType",void 0);_.T([_.B(),_.r("design:type",Boolean)],cP.prototype,"noEndpoints",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],cP.prototype,"isRadio",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],cP.prototype,"miniMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cP.prototype,"fullHeight",void 0);
_.T([_.B(),_.r("design:type",Boolean)],cP.prototype,"showDarkVideoMetadata",void 0);_.T([_.B(),_.r("design:type",Boolean)],cP.prototype,"showLightVideoMetadata",void 0);_.T([_.B(),_.r("design:type",Number)],cP.prototype,"metadataColor",void 0);_.T([_.B(),_.r("design:type",Object)],cP.prototype,"showChannelAvatar",void 0);_.T([_.B(),_.r("design:type",Boolean)],cP.prototype,"hidden",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],cP.prototype,"showYtInteraction",void 0);
_.T([_.B(),_.r("design:type",String)],cP.prototype,"dismissedContentId",void 0);_.T([_.B({selectorArgs:["dismissedContentId"],selector:L04}),_.r("design:type",Object)],cP.prototype,"dismissActionToReplayEntity",void 0);
_.T([_.B({selectorArgs:["entitySelectorType","mediaId"],selector:function(M,q,G){if(_.w("kevlar_modern_downloads_page")&&G&&q&&q!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(q){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var K=zCe(M,G);if(K){q=_.Xp(M,G);var n=ic(M,G),E=$tu(M,G);M=cs(M,G);var p=yaY(K,q,n,E);n=p.shortViewCountText;var y=p.publishedTimeText;p=p.badges;var Y=M>0;E=kRy(K,q,E,M);K=_.pK(q)||q==="TRANSFER_STATE_FAILED"||q==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!kz(K.policyEntity)?
void 0:D1j(G,M,K.videoEntity.lengthSeconds);q==="TRANSFER_STATE_PAUSED_BY_USER"&&G&&!_.w("dl_resume_click_killswitch")&&(K={offlineVideoEndpoint:{videoId:G,action:"ACTION_RESUME"}});G={shortViewCountText:n,publishedTimeText:y,badges:p,isWatched:Y,navigationEndpoint:K,thumbnailOverlays:E}}else G=void 0;return G;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(q=mtH(M,G))if(K=_.Ps(M,G),E=_.SHD(M,G),K!=="TRANSFER_STATE_UNKNOWN"){G=plD(q,K,E,G,_.lc(M));break a}G=void 0}return G;default:_.j1(new _.bj("Error: entitySelectorType defined but not matched in selector.",
M,q))}}}),
_.r("design:type",Object)],cP.prototype,"entityDrivenState",void 0);_.T([_.B({computed:"computeVideoTitleText(data)"}),_.r("design:type",Object)],cP.prototype,"videoTitleText",void 0);_.T([_.B({computed:"computeHasPlaylistThumbnail(data)"}),_.r("design:type",Object)],cP.prototype,"hasPlaylistThumbnail",void 0);_.T([_.B({computed:"computeNavigationEndpoint(data)"}),_.r("design:type",Object)],cP.prototype,"computedNavigationEndpoint",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],cP.prototype,"typographyBump",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("typographyBump"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cP.prototype,"typographyBumpV2",null);_.T([_.ET("#video-title"),_.r("design:type",HTMLElement)],cP.prototype,"videoTitle",void 0);_.T([_.ET("#video-title-link"),_.r("design:type",HTMLElement)],cP.prototype,"videoTitleLink",void 0);
_.T([_.ET("#thumbnail"),_.r("design:type",HTMLElement)],cP.prototype,"thumbnail",void 0);_.T([_.ET("#dismissible"),_.r("design:type",HTMLElement)],cP.prototype,"JSC$16218_dismissibleMedia",void 0);_.T([_.c("data.menu"),_.r("design:type",Object),_.r("design:paramtypes",[])],cP.prototype,"lazyLoadMenu",null);_.T([_.c("data.menu"),_.r("design:type",Object),_.r("design:paramtypes",[])],cP.prototype,"immediateLoadMenu",null);
_.T([_.yO("entityDrivenState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cP.prototype,"handleReloadDownloadsInfo",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cP.prototype,"onDataChanged",null);_.T([_.yO("hidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cP.prototype,"onHiddenChanged",null);
_.T([_.KT("isDismissed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cP.prototype,"onIsDismissedChanged",null);_.T([_.KT("metadataColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cP.prototype,"metadataColorChanged",null);_.T([_.GQ("mousedown"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],cP.prototype,"onMouseDown",null);
_.T([_.c("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cP.prototype,"isHovered",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cP.prototype,"useAvatar",null);_.T([_.c("data","entitySelectorType"),_.r("design:type",String),_.r("design:paramtypes",[])],cP.prototype,"mediaId",null);_.T([_.b({is:"ytd-rich-grid-media",disableElementRegistration:!0})],cP);
var cS$=_.jo()(cP,"ytd-rich-grid-media",function(){if(lL2!==void 0)return lL2;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return lL2=M},{mode:_.VO("kevlar_poly_si_batch_j072")?1:2});var gF8;var gZ=function(){var M=_.Q.apply(this,arguments)||this;M.removeMaxWidth=!0;M.insetMetadata=!1;return M};
_.l(gZ,_.Q);_.N=gZ.prototype;_.N.configureRendererStamper=function(){return{innerMenu:P5,outerMenu:Object.assign({},P5,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.onDataChanged=function(){var M,q=((M=this.data)==null?void 0:M.trackingParams)||"";q&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(q));var G;((G=this.dismissActionToReplayEntity)==null?0:G.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.N.attached=function(){this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$16223_inlinePreviewHoverListener=oZ({mediaRenderer:this,lockupElement:this.JSC$16223_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:dkP})};
_.N.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$16223_inlinePreviewHoverListener)==null||JY(M)};
_.N.onRendererTap=function(){var M,q,G=(M=this.data)==null?void 0:(q=M.serviceEndpoints)==null?void 0:q[0];_.C(G,_.tM)&&this.componentBehavior.resolveCommand(G)};
_.N.onDetailsClick=function(M){var q,G=(q=this.data)==null?void 0:q.navigationEndpoint;G&&(_.b8(_.Zx(M),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(G))};
_.N.onShow=function(){var M=this.data;M.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(M.onFirstVisibleCommand),delete M.onFirstVisibleCommand)};
_.Yd.Object.defineProperties(gZ.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var M;return this.insetMetadata?void 0:(M=this.data)==null?void 0:M.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var M;return this.insetMetadata?(M=this.data)==null?void 0:M.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var M=this.data;if(M!=null&&M.badge&&(M=_.C(M.badge,FQl))){var q,G,K;return[{metadataBadgeRenderer:{label:((q=M.label)==null?void 0:(G=q.runs)==null?void 0:G[0].text)||((K=M.label)==null?void 0:K.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var M=this.data;return Object.assign({},M.headline,{accessibility:M.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return this.isSlimShort?(M=this.computedTitle)==null?void 0:(q=M.accessibility)==null?void 0:(G=q.accessibilityData)==null?void 0:G.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.w("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$16223_inlinePreviewHoverListener)==null?0:jf(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
gZ.prototype.onDataChanged=gZ.prototype.onDataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],gZ.prototype,"componentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],gZ.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.TU),_.r("design:type",Object)],gZ.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],gZ.prototype,"ytdReduxBehavior",void 0);_.T([_.ET("ytd-thumbnail"),_.r("design:type",HTMLElement)],gZ.prototype,"thumbnail",void 0);_.T([_.ET("#dismissible"),_.r("design:type",HTMLElement)],gZ.prototype,"JSC$16223_dismissibleMedia",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],gZ.prototype,"removeMaxWidth",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],gZ.prototype,"insetMetadata",void 0);_.T([_.B(),_.r("design:type",String)],gZ.prototype,"dismissedContentId",void 0);_.T([_.B({selectorArgs:["dismissedContentId"],selector:L04}),_.r("design:type",Object)],gZ.prototype,"dismissActionToReplayEntity",void 0);_.T([_.c("insetMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],gZ.prototype,"thumbnailObjectFit",null);
_.T([_.c("data","insetMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],gZ.prototype,"innerMenu",null);_.T([_.c("data","insetMetadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],gZ.prototype,"outerMenu",null);_.T([_.B(),_.r("design:type",Object)],gZ.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],gZ.prototype,"miniMode",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gZ.prototype,"onDataChanged",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],gZ.prototype,"shortsBadges",null);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gZ.prototype,"isShort",null);
_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gZ.prototype,"isSlimShort",null);_.T([_.c("data","isShort"),_.r("design:type",Object),_.r("design:paramtypes",[])],gZ.prototype,"computedTitle",null);_.T([_.c("isSlimShort","computedTitle"),_.r("design:type",Object),_.r("design:paramtypes",[])],gZ.prototype,"computedAccessibilityLabel",null);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gZ.prototype,"shouldForce2By3",null);_.T([_.c("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],gZ.prototype,"isHovered",null);_.T([_.b({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],gZ);
_.z(gZ,"ytd-rich-grid-slim-media",function(){if(gF8!==void 0)return gF8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return gF8=M},{mode:_.VO("kevlar_poly_si_batch_j063")?1:2});var B3S;var QXp;var BP=function(){return _.Q.apply(this,arguments)||this};
_.l(BP,_.Q);BP.prototype.computeIcon=function(M){return M&&M.iconType?"yt-sys-icons:"+M.iconType.toLowerCase():""};
BP.prototype.onMouseEnter=function(){this.isHovered=!0};
BP.prototype.onMouseLeave=function(){this.isHovered=!1};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],BP.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],BP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],BP.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],BP.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],BP.prototype,"isHovered",void 0);
_.T([_.b({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],BP);
_.z(BP,"ytd-expand-on-hover-card-renderer",function(){if(QXp!==void 0)return QXp;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return QXp=M},{mode:1});var ILx,DVx=function(){if(ILx!==void 0)return ILx;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return ILx=M};_.hC("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Qs=function(){var M=_.Q.apply(this,arguments)||this;M.compactStyle=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(Qs,_.Q);_.N=Qs.prototype;_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.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"}}}};
_.N.computeHideDot=function(M){return!(M&&M.subscriberCountText&&M.videoCountText)||this.compactStyle};
_.N.hasDualButtons=function(M){return M&&M.purchaseButton&&M.subscribeButton};
_.N.backgroundColorChanged=function(){if(this.data!==void 0){var M=this.data.backgroundColor;this.isDarkTheme&&(M=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=M!=null?_.w2(M):"transparent"}};
_.N.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.N.onTap=function(M){var q,G,K=((q=this.data)==null?void 0:q.navigationEndpoint)||((G=this.data)==null?void 0:G.serviceEndpoint);_.C(K,_.uh)&&(K&&_.AL().resolve(_.vR).resolveCommand(K,{form:{element:this.hostElement}}),M.preventDefault())};
_.N.computeChannelEndpoint=function(M){return _.C(M,_.uh)?null:M};
_.N.computeHrefEndpoint=function(M){return _.C(M,_.uh)?null:this.componentBehavior.computeHref_(M)};
_.N.computeChannelRendererStyle=function(M){return M};
_.N.computeIconSize=function(M){return M?108:136};
_.Yd.Object.defineProperties(Qs,{template:{configurable:!0,enumerable:!0,get:function(){return DVx()}}});
Qs.prototype.backgroundColorChanged=Qs.prototype.backgroundColorChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Qs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],Qs.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Qs.prototype,"componentBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Qs.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],Qs.prototype,"isDarkTheme",void 0);_.T([_.B({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.r("design:type",String)],Qs.prototype,"channelRendererStyle",void 0);_.T([_.B({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Qs.prototype,"dualButtons",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],Qs.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],Qs.prototype,"biggerThumbStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Qs.prototype,"compactStyle",void 0);_.T([_.KT("data","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Qs.prototype,"backgroundColorChanged",null);_.T([_.b({is:"ytd-channel-renderer",disableElementRegistration:!0})],Qs);_.z(Qs,"ytd-channel-renderer",function(){return DVx()},{mode:1});var uO$;var JS9;_.hC("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var IK=function(){var M=_.Q.apply(this,arguments)||this;M.displayItemCount=2;M.hasPlaylistThumbnail=!1;M.stackThumbnailSize="large";return M};
_.l(IK,_.Q);_.N=IK.prototype;_.N.attached=function(){this.updateInlinePreviewHoverListeners()};
_.N.detached=function(){this.clearInlinePreviewHoverListeners()};
_.N.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.N.computeFirstVideos=function(M,q){return M&&q?M.slice(0,q):[]};
_.N.computeThumbnailWidth=function(M,q){return M?q==="BIG"?500:q==="MASSIVE"?600:q==="MEDIUM"?450:420:360};
_.N.computeThumbnailHeight=function(M,q){return M?q==="BIG"?280:q==="MASSIVE"?337:234:202};
_.N.clearInlinePreviewHoverListeners=function(){var M;(M=this.JSC$16236_inlinePreviewHoverListener)==null||JY(M)};
_.N.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$16236_inlinePreviewHoverListener=oZ({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:A8J,thumbnailElement:this.thumbnail})};
_.N.computeHasPlaylistThumbnail=function(M){var q,G;if((((q=M.thumbnailRenderer)==null?0:q.playlistVideoThumbnailRenderer)||((G=M.thumbnailRenderer)==null?0:G.playlistCustomThumbnailRenderer))&&M.thumbnailOverlays)for(q=0;q<M.thumbnailOverlays.length;q++)if(G=void 0,(G=M.thumbnailOverlays[q])==null?0:G.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Yd.Object.defineProperties(IK.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.JSC$16236_inlinePreviewHoverListener)==null?0:jf(M))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
IK.prototype.dataChanged=IK.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],IK.prototype,"ytdLockupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],IK.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],IK.prototype,"displayItemCount",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],IK.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],IK.prototype,"biggerThumbsStyle",void 0);_.T([_.B({computed:"computeHasPlaylistThumbnail(data)"}),_.r("design:type",Object)],IK.prototype,"hasPlaylistThumbnail",void 0);_.T([_.B(),_.r("design:type",String)],IK.prototype,"stackThumbnailSize",void 0);_.T([_.ET("ytd-thumbnail"),_.r("design:type",HTMLElement)],IK.prototype,"thumbnail",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],IK.prototype,"dataChanged",null);
_.T([_.c("lockupIsHovered"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],IK.prototype,"isHovered",null);_.T([_.b({is:"ytd-radio-renderer",disableElementRegistration:!0})],IK);
_.z(IK,"ytd-radio-renderer",function(){if(JS9!==void 0)return JS9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return JS9=M},{mode:_.VO("kevlar_poly_si_batch_j058")?1:2});var Z2M;_.hC("itemSectionRenderer","showRenderer","ytd-show-renderer");var Ds=function(){return _.Q.apply(this,arguments)||this};
_.l(Ds,_.Q);Ds.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ds.prototype.computeThumbnailWidth=function(M){return M?360:246};
Ds.prototype.computeUseProminentThumbs=function(M){return M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ds.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],Ds.prototype,"isSearch",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.r("design:type",Boolean)],Ds.prototype,"useProminentThumbs",void 0);_.T([_.b({is:"ytd-show-renderer",disableElementRegistration:!0})],Ds);
_.z(Ds,"ytd-show-renderer",function(){if(Z2M!==void 0)return Z2M;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Z2M=M},{mode:1});_.hC("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var ux=function(){var M=_.Q.apply(this,arguments)||this;M.isRichGrid=!1;return M};
_.l(ux,_.Q);ux.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"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ux.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ux.prototype,"isRichGrid",void 0);_.T([_.b({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],ux);
_.z(ux,"ytd-feed-entry-renderer",function(){if(uO$!==void 0)return uO$;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return uO$=M},{mode:1});var b2d;var JX=function(){return _.Q.apply(this,arguments)||this};
_.l(JX,_.Q);JX.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.T([_.P(_.mr),_.r("design:type",Object)],JX.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],JX.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],JX.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.CK,value:3}),_.r("design:type",Number)],JX.prototype,"itemsPerRow",void 0);
_.T([_.b({is:"ytd-link-card-renderer",disableElementRegistration:!0})],JX);
_.z(JX,"ytd-link-card-renderer",function(){if(b2d!==void 0)return b2d;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return b2d=M},{mode:1});var UVI;var Zs=function(){return _.Q.apply(this,arguments)||this};
_.l(Zs,_.Q);_.N=Zs.prototype;_.N.configureRendererStamper=function(){return{"data.menu":P5,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.N.onRendererTap=function(M){if(!this.ytdDismissibleItemBehavior.isDismissed){var q,G=(q=this.data)==null?void 0:q.navigationEndpoint;G&&!_.b8(_.Zx(M),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(G)?_.b8(_.Zx(M),this.hostElement,["A"])||_.jP(this.hostElement,"yt-navigate",{endpoint:G}):this.ytComponentBehavior.resolveCommand(G,{}))}};
_.N.maybeComputeHref=function(M){return this.ytComponentBehavior.computeHref_(M,!0)};
_.N.getNavigationCommand=function(M){return this.isNavigationCommand(M)?M:null};
_.N.isNavigationCommand=function(M){return M?_.C(M,_.n_)||_.C(M,_.Jl)||_.C(M,_.q6)?!0:!1:!1};
Zs.prototype.onRendererTap=Zs.prototype.onRendererTap;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Zs.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],Zs.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Zs.prototype,"ytComponentBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Zs.prototype,"data",void 0);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Zs.prototype,"onRendererTap",null);_.T([_.b({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],Zs);
_.z(Zs,"ytd-lumiere-promo-item-image-renderer",function(){if(UVI!==void 0)return UVI;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return UVI=M},{mode:1});var xVd;var bx=function(){return _.Q.apply(this,arguments)||this};
_.l(bx,_.Q);bx.prototype.computeLandscapeThumbnail=function(){var M;return((M=this.data)==null?void 0:M.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],bx.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bx.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],bx.prototype,"miniMode",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.CK}),_.r("design:type",Number)],bx.prototype,"itemsPerRow",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.r("design:type",Boolean)],bx.prototype,"landscapeThumbnail",void 0);_.T([_.b({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],bx);
_.z(bx,"ytd-lumiere-shelf-details-renderer",function(){if(xVd!==void 0)return xVd;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return xVd=M},{mode:_.VO("kevlar_poly_si_batch_j076")?1:2});var zA$;var UP=function(){return _.Q.apply(this,arguments)||this};
_.l(UP,_.Q);UP.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],UP.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],UP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],UP.prototype,"data",void 0);_.T([_.b({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],UP);
_.z(UP,"ytd-primetime-promo-details-renderer",function(){if(zA$!==void 0)return zA$;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return zA$=M},{mode:1});var mVp;var x6=function(){return _.Q.apply(this,arguments)||this};
_.l(x6,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],x6.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],x6.prototype,"data",void 0);_.T([_.b({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],x6);
_.z(x6,"ytd-panel-show-style-metadata-renderer",function(){if(mVp!==void 0)return mVp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return mVp=M},{mode:1});var Ssv;var z1=function(){return _.Q.apply(this,arguments)||this};
_.l(z1,_.Q);_.N=z1.prototype;_.N.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.N.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.N.computeThumbnail=function(M){if(M)return M.smallFormFactorBackgroundThumbnail||M.largeFormFactorBackgroundThumbnail};
_.N.maybeComputeHref=function(M){return this.ytComponentBehavior.computeHref_(M,!0)};
_.N.isNavigationCommand=function(M){return M?_.C(M,_.n_)||_.C(M,_.Jl)||_.C(M,_.q6)?!0:!1:!1};
_.N.getNavigationCommand=function(M){return this.isNavigationCommand(M)?M:null};
z1.prototype.onPanelTap=z1.prototype.onPanelTap;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],z1.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],z1.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],z1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],z1.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],z1.prototype,"roundedContainer",void 0);_.T([_.B({reflectToAttribute:!0,value:_.w("web_modern_buttons")}),_.r("design:type",Boolean)],z1.prototype,"modernButtons",void 0);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],z1.prototype,"onPanelTap",null);_.T([_.b({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],z1);
_.z(z1,"ytd-primetime-promo-panel-renderer",function(){if(Ssv!==void 0)return Ssv;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Ssv=M},{mode:1});_.S5(_.U(function(M){M=_.UT(M,{data:{},useFullWidth:!1});var q=M.data,G=M.useFullWidth;M={};return _.W("teaser-card-view-model",{class:_.Hb("ytTeaserCardViewModelHost",(M.ytTeaserCardViewModelUseFullWidth=function(){return G()},M))},_.W(_.d,{cond:function(){return q().onTap},
then:function(K){return _.W(_.kv,{className:"ytTeaserCardViewModelLink",command:K},_.W("div",{class:"ytTeaserCardViewModelImageContainer"},_.W(_.d,{cond:function(){return q().image},
then:function(n){return _.W(_.Jj,{data:n,className:"ytTeaserCardViewModelImage",alt:""})}})),_.W("p",{class:"ytTeaserCardViewModelCaption"},function(){return q().caption}))}}))},"Pc"),"teaser-card-view-model",{props:{data:_.Hz,
useFullWidth:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=function(){var K;return _.cO((K=q())==null?void 0:K.iconThemedImage)};
return _.W("yt-edu-card-view-model",null,_.W(_.ve,{contentId:function(){return q().nudgeId}},function(){return _.W("div",{class:_.Hb("ytEduCardViewModelHost",function(){return q().trimStyle==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?null:"ytEduCardViewModelGradientTrim"})},_.W("div",{class:"ytEduCardViewModelTopCornerButton"},_.W(_.yu,{data:function(){return q().dismissButton}},{buttonViewModel:_.Wf})),_.W("div",{class:"ytEduCardViewModelContentWrapper"},_.W("div",{class:"ytEduCardViewModelHeaderImage"},_.W(_.d,
{cond:G,
then:function(K){return _.W(_.Jj,{data:K,alt:"",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.W("div",{class:"ytEduCardViewModelTextContainer"},_.W("div",{class:"ytEduCardViewModelTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",{class:"ytEduCardViewModelSubtitle"},_.W(_.Ft,{text:function(){return q().subtitle}}))),_.W("div",{class:"ytEduCardViewModelContent"},_.W(_.yu,{data:function(){return q().form}},{nudgeFormViewModel:oFv}))),_.W("div",{class:_.Hb("ytEduCardViewModelButtonWrapper",
function(){return q().enableHorizontalButtons?"ytEduCardViewModelHorizontalButtonWrapper":null})},_.W(_.yu,{data:function(){return q().primaryButton}},{buttonViewModel:function(K){return _.W("div",{class:"ytEduCardViewModelPrimaryButton"},_.W(_.Wf,{data:K.data}))}}),_.W(_.yu,{data:function(){return q().secondaryButton}},{buttonViewModel:function(K){return _.W("div",{class:"ytEduCardViewModelSecondaryButton"},_.W(_.Wf,{data:K.data}))}})))}))},"Qc"),"yt-edu-card-view-model",{props:{data:_.Hz}});var T32=new _.$k("RICH_GRID_VIDEO_RENDERER_TOKEN");_.S5(_.U(function(M){var q=M.data;var G=M.showYtInteractionInContent;var K=function(){return!!q().selectableFeedback};
M=_.k(_.lQ(!1,void 0,"qxtgaf"));var n=M.next().value,E=M.next().value;_.SK(function(){var t=_.C(q().primaryButton,_.M1);(t==null?0:t.isToggled)&&E(t.isToggled)});
M=_.sq(function(t){if(!K())return!1;if(n()){var O;var a=(O=q().selectableFeedback)==null?void 0:O.onDeselect}else{var g;a=(g=q().selectableFeedback)==null?void 0:g.onSelect}a&&_.Pb(a,{form:{element:t.target}});E(!n());if(t=_.C(q().primaryButton,_.M1))t.isToggled=n();return!1});
var p=function(){if(!K()){var t,O=(t=q().loggingDirectives)==null?void 0:t.trackingParams;O&&_.Pg(_.AL().resolve(_.Q$),O)}},y=_.ryy(),Y=function(){var t;
return K()?(t=q().selectableFeedback)==null?void 0:t.a11yLabel:void 0},A=function(){return K()?{toggled:n()}:{}},v=_.AL().resolve(_.WR(T32)),h={};
return _.W("yt-feedback-item-renderer",{class:_.Hb("ytFeedbackItemRendererHost",(h.ytFeedbackItemRendererSelectableFeedback=K,h)),"on:click":M,"on:keydown":y,title:Y,"aria-label":Y,"aria-pressed":function(){return K()?n():void 0},
tabindex:function(){return K()?0:void 0},
role:function(){return K()?"button":void 0}},_.W("div",{class:"ytFeedbackItemRendererContentContainer"},_.W(_.yu,{data:function(){return q().content}},{videoRenderer:function(t){return _.W(v,{data:t.data,
showYtInteraction:G})},
lockupViewModel:function(t){return _.W(_.wp,{data:t.data,containerType:2})}})),_.W("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.W(_.yu,{data:function(){return q().primaryButton}},{toggleButtonViewModel:function(t){return _.W(_.Dj,{data:t.data,
buttonShapeOverrides:A,disableExplicitClickLogging:!0,onToggle:p})}})))},"Rc"),"yt-feedback-item-renderer",{props:{data:_.Hz,
showYtInteractionInContent:_.Hz}});var mO=function(){var M=_.Q.apply(this,arguments)||this;M.isShortsGrid=!1;M.isCompactGrid=!1;M.isShortsPanelGrid=!1;M.renderedFromRichGrid=!1;M.isInFirstColumn=!1;M.noGutterMargins=!1;M.noBottomMargin=!1;M.halfBottomMargin=!1;M.isInlineGroupItem=!1;M.insetMetadata=!1;M.noBottomMarginInAds=!0;M.force16By9ThumbnailAspectRatio=!1;M.useCompactList=!1;M.containerType=2;M.thumbnailTargetWidth=9999;M.isResponsiveGrid=!1;M.actionMap={"ytd-rich-item-index-update-action":"onIndexUpdateAction"};M.hoverListener=
M.hover.bind(M);M.leaveListener=M.leave.bind(M);M.highlighted=!1;M.JSC$16272_unsubscribeFromInlinePreviewIsActive=function(){};
return M};
_.l(mO,_.Q);_.N=mO.prototype;_.N.computeContainerType=function(){return this.useCompactList?3:2};
_.N.itemWidthChanged=function(){var M;this.thumbnailTargetWidth=(M=this.itemWidth)!=null?M:9999};
_.N.updateIsInFirstColumn=function(){var M;this.isInFirstColumn=((M=this.data)==null?void 0:M.colIndex)===0};
_.N.observerContainerType=function(){if(this.lockup){var M=this.lockup;M.containerType=this.containerType;M.sizing=this.sizing;M.typographyBump=this.typographyBump;M.itemWidth=this.itemWidth}this.richGridMedia&&_.w("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.w("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.N.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]]"}}}}}};
_.N.leave=function(M){M=M.relatedTarget;var q=document.querySelector("ytd-video-preview");M&&q&&_.Fw(q).contains(M)||this.removeAndCleanupHighlight()};
_.N.hover=function(){var M;!this.highlighted&&(M=this.data)!=null&&M.onFocusEffect&&(this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(M=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:M,boxShadow:"0 0 0 10px "+M})),this.data.onFocusEffect.onFocusStyle==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border"),this.highlighted=!0)};
_.N.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};
_.N.registerHoverHighlightListeners=function(){var M=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$16272_unsubscribeFromInlinePreviewIsActive=_.IQ(_.zw(),_.Dty,function(q){M.highlighted&&!q&&M.removeAndCleanupHighlight()})};
_.N.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$16272_unsubscribeFromInlinePreviewIsActive()};
_.N.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.N.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.N.getBackgroundColor=function(){var M,q,G=(M=this.data)==null?void 0:(q=M.onFocusEffect)==null?void 0:q.onFocusColor;if(G){if(document.documentElement.hasAttribute("dark")&&(G==null?0:G.darkTheme))return or(G==null?void 0:G.darkTheme);if(G==null?0:G.lightTheme)return or(G==null?void 0:G.lightTheme)}};
_.N.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var M=_.Cx(),q,G,K;M&&((q=this.data)==null?0:q.trackingParams)&&((G=this.data)==null?void 0:G.colIndex)!=null&&((K=this.data)==null?void 0:K.rowIndex)!=null&&_.Ul(M,_.yx(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.N.isSlimMediaRenderer=function(M){return!!_.C(M==null?void 0:M.content,_.Xz2)||!!_.C(M==null?void 0:M.content,lIl)||!!_.C(M==null?void 0:M.content,_.VL)||!!_.C(M==null?void 0:M.content,Vul)};
_.N.isPostRenderer=function(){var M,q;return!!_.C((M=this.data)==null?void 0:M.content,mq$)||!!_.C((q=this.data)==null?void 0:q.content,S6J)};
_.N.computeIsGameCardShelf=function(){var M;return!!_.C((M=this.data)==null?void 0:M.content,GXJ)};
_.N.computeIsMiniGameCardShelf=function(){var M,q;return!!_.C((M=this.data)==null?void 0:M.content,hbB)||!!_.C((q=this.data)==null?void 0:q.content,tNB)};
_.N.computeIsTeaserCard=function(){var M;return!!_.C((M=this.data)==null?void 0:M.content,tNB)};
_.N.computeIsSelectableFeedbackItem=function(){var M,q;return!((q=_.C((M=this.data)==null?void 0:M.content,wAx))==null||!q.selectableFeedback)};
_.N.computeContainsLumierePosters=function(){var M,q;return((q=_.C((M=this.data)==null?void 0:M.content,$qJ))==null?void 0:q.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.N.computeIsExpandOnHoverCardShelf=function(){var M;return!!_.C((M=this.data)==null?void 0:M.content,eIP)};
_.N.computeIsLinkCardShelf=function(){var M;return!!_.C((M=this.data)==null?void 0:M.content,kW8)};
_.N.computeIsReelItemStyleAvatarCircle=function(M){var q;return((q=_.C(M==null?void 0:M.content,_.VL))==null?void 0:q.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.N.computeIsLinkCardFullWidth=function(M,q){var G;return((G=_.C(M==null?void 0:M.content,kW8))==null?void 0:G.useFullWidth)||q<=2};
_.Yd.Object.defineProperties(mO.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){var M;return _.w("web_hover_effect_refactor")&&_.C((M=this.data)==null?void 0:M.content,_.yR8)?!1:this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.w("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){var M;if(_.w("web_hover_effect_refactor")&&_.C((M=this.data)==null?void 0:M.content,_.yR8))return!1;var q;return!((q=this.data)==null||!q.onFocusEffect)||_.w("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 M,q;return{useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0,onFocusEffect:_.w("web_hover_effect_refactor")?(M=this.data)==null?void 0:M.onFocusEffect:void 0,isFirstRow:((q=this.data)==null?void 0:q.rowIndex)===0}}}});
mO.prototype.richGridHoverHighlightChanged=mO.prototype.richGridHoverHighlightChanged;mO.prototype.observerContainerType=mO.prototype.observerContainerType;mO.prototype.updateIsInFirstColumn=mO.prototype.updateIsInFirstColumn;mO.prototype.itemWidthChanged=mO.prototype.itemWidthChanged;_.T([_.P(_.mr),_.r("design:type",Object)],mO.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mO.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],mO.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mO.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],mO.prototype,"ytdLockupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],mO.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.r("design:type",Boolean)],mO.prototype,"isPost",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.r("design:type",Boolean)],mO.prototype,"containsLumierePosters",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.r("design:type",Boolean)],mO.prototype,"isSlimMedia",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.r("design:type",Boolean)],mO.prototype,"isGameCardShelf",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.r("design:type",Boolean)],mO.prototype,"isMiniGameCardShelf",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.r("design:type",Boolean)],mO.prototype,"isTeaserCard",void 0);_.T([_.B({computed:"computeIsSelectableFeedbackItem(data)"}),_.r("design:type",Boolean)],mO.prototype,"isSelectableFeedbackItem",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"isShortsGrid",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],mO.prototype,"isSlimGrid",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"isCompactGrid",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"isShortsPanelGrid",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.r("design:type",Boolean)],mO.prototype,"isExpandOnHoverCardShelf",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.r("design:type",Boolean)],mO.prototype,"isLinkCardShelf",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.CK,value:3}),_.r("design:type",Number)],mO.prototype,"itemsPerRow",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"renderedFromRichGrid",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"isInFirstColumn",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"noGutterMargins",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"noBottomMargin",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"halfBottomMargin",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"isInlineGroupItem",void 0);_.T([_.B(),_.r("design:type",Object)],mO.prototype,"insetMetadata",void 0);_.T([_.B(),_.r("design:type",Object)],mO.prototype,"noBottomMarginInAds",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],mO.prototype,"isShelfItem",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.r("design:type",Boolean)],mO.prototype,"isReelItemStyleAvatarCircle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.r("design:type",Boolean)],mO.prototype,"isLinkCardFullWidth",void 0);_.T([_.B(),_.r("design:type",Object)],mO.prototype,"force16By9ThumbnailAspectRatio",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"useCompactList",void 0);_.T([_.B(),_.r("design:type",String)],mO.prototype,"sizing",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],mO.prototype,"typographyBump",void 0);_.T([_.B(),_.r("design:type",Number)],mO.prototype,"itemWidth",void 0);_.T([_.B(),_.r("design:type",Boolean)],mO.prototype,"isHomeShelf",void 0);_.T([_.B(),_.r("design:type",Boolean)],mO.prototype,"isHomeGrid",void 0);
_.T([_.ET("yt-lockup-view-model"),_.r("design:type",HTMLElement)],mO.prototype,"lockup",void 0);_.T([_.ET("ytd-rich-grid-media"),_.r("design:type",HTMLElement)],mO.prototype,"richGridMedia",void 0);_.T([_.ET("ytd-ad-slot-renderer"),_.r("design:type",HTMLElement)],mO.prototype,"adSlotRenderer",void 0);_.T([_.B({computed:"computeContainerType(useCompactList)"}),_.r("design:type",Object)],mO.prototype,"containerType",void 0);_.T([_.B(),_.r("design:type",Object)],mO.prototype,"thumbnailTargetWidth",void 0);
_.T([_.c("showYtInteractionOnRichItem"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mO.prototype,"showYtInteractionOnRichGridMedia",null);_.T([_.c("isSelectableFeedbackItem","richGridHoverHighlight"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mO.prototype,"showYtInteractionOnRichItem",null);_.T([_.c("typographyBump","isHomeGrid"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mO.prototype,"richTypographyBump",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data","isShortsGrid","isCompactGrid"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mO.prototype,"richGridHoverHighlight",null);_.T([_.c("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.r("design:type",Number),_.r("design:paramtypes",[])],mO.prototype,"shortsLockupViewModelAspectRatio",null);_.T([_.c("isInlineGroupItem"),_.r("design:type",Number),_.r("design:paramtypes",[])],mO.prototype,"shortsLockupViewModelScrimStyle",null);
_.T([_.KT("itemWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mO.prototype,"itemWidthChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mO.prototype,"updateIsInFirstColumn",null);_.T([_.KT("containerType","sizing","typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mO.prototype,"observerContainerType",null);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mO.prototype,"isResponsiveGrid",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],mO.prototype,"lockupExperiments",null);_.T([_.KT("richGridHoverHighlight"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mO.prototype,"richGridHoverHighlightChanged",null);_.T([_.b({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],mO);
_.rS2=_.jo()(mO,"ytd-rich-item-renderer",function(){if(B3S===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);B3S=M}M=B3S;return M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var M2y={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var A8w=_.bc(_.Ge("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var G7w={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"},nw$={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_light_phone_600x508.webp"},EwF={url:"https://www.gstatic.com/youtube/img/promos/growth/premium_lp2_small_feature_DownloadMultiple_dark_phone_600x508.webp"};var jXI;var SQ=function(){var M=_.Q.apply(this,arguments)||this;M.useResponsiveGrid=!1;M.hidden=!1;M.isShowMoreHidden=!1;M.isShowLessHidden=!0;M.hasExpansionButton=!1;M.isInnerShelf=!1;M.allVideosCount=0;M.allPlaylistCount=0;M.haveSmartDownloadsCompleted=!1;M.restrictContentsOverflow=!1;M.firstShownIndex=0;M.horizontalOffset=0;M.atEnd=!0;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved","yt-section-reactive-dismissal":"onSectionReactiveDismissal"};
M.nextClick=function(){var q;(q=M.data)!=null&&q.contents&&(M.firstShownIndex+=M.currentElementsPerRow,M.updateHorizontalOffset(),M.updateHorizontalItemVisibility())};
M.previousClick=function(){var q;(q=M.data)!=null&&q.contents&&(M.firstShownIndex-=M.currentElementsPerRow,M.updateHorizontalOffset(),M.updateHorizontalItemVisibility())};
return M};
_.l(SQ,_.Q);_.N=SQ.prototype;
_.N.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:_.R9("HTML_DIR")==="rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.N.attached=function(){this.requestElementsPerRow()};
_.N.refreshGridLayoutNew=function(){var M;if((M=this.data)!=null&&M.contents&&this.containerWidth){var q;((q=this.data.responsiveContainerConfiguration)==null?0:q.responsiveSize)?(M=_.hdF(this.data.responsiveContainerConfiguration,this.containerWidth),M=_.PO(Object.assign({},M,{standardUnitMinWidth:this.standardUnitMinWidth}))):M=_.PO({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=M.typographyBump;if(this.elementsPerRow!==
M.numItems||this.gutter!==M.gutter)this.elementsPerRow=M.numItems,this.gutter=M.gutter,this.itemWidth=M.itemWidth,_.sT(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":M.gutter+"px"})}};
_.N.computeSizing=function(){if(!this.isLumiere){var M=_.UPy(this.data);return M?M:this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.N.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.N.computeButton=function(M){var q=_.C(M,_.f1);M=Object.assign({},_.C(M,_.f1));return q?(M.text||(M.text={simpleText:M.tooltip}),M.style="STYLE_MONO_OUTLINE",M.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",M):q};
_.N.onRowIndexChange=function(){var M=_.Cx(),q,G;((q=this.data)==null?0:q.trackingParams)&&((G=this.data)==null?void 0:G.rowIndex)!=null&&M&&_.Ul(M,_.yx(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.N.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var M,q=((M=this.getRichItemRenderers()[0])==null?void 0:M.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*q;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.N.requestElementsPerRow=function(){_.jP(this.hostElement,"yt-request-elements-per-row")};
_.N.onUpdateElementsPerRowAction=function(M,q,G,K,n,E){if(this.containerWidth!==E&&(this.containerWidth=E,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&M&&q&&G&&K&&n&&(this.elementsPerRow!==M||this.postsPerRow!==q||this.slimItemsPerRow!==G||this.gameCardsPerRow!==K||this.miniGameCardsPerRow!==n)&&(this.elementsPerRow=M,this.postsPerRow=q,this.slimItemsPerRow=G,this.gameCardsPerRow=K,this.miniGameCardsPerRow=n,this.updateItemVisibility())};
_.N.isExpandedChanged=function(){var M=this.getRichItemRenderers(),q=this.isExpanded;M.forEach(function(G){G.halfBottomMargin=q})};
_.N.isCollapsedChanged=function(){var M=this.getRichItemRenderers(),q=this.isCollapsed;M.forEach(function(G){G.noBottomMargin=q})};
_.N.getRichItemRenderers=function(){return _.f_(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.N.updateItemVisibility=function(){var M=this;if(this.data&&this.data.contents){var q=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(K,n){var E;((E=M.data)==null?0:E.isExpanded)?(K.hidden=n>q-1,K.ytRendererBehavior.markDirty()):K.hidden=n>M.currentElementsPerRow-1||n>q-1});
var G=this.data.contents.length<=this.currentElementsPerRow;this.isShowMoreHidden=!this.data.showMoreButton||G||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||G||!this.data.isExpanded||this.isTruncated;this.hasExpansionButton=!this.isShowMoreHidden||!this.isShowLessHidden}this.contents.style.visibility="visible"}};
_.N.setHeightToSingleRow=function(){var M=this.getRichItemRenderers(),q=Number.parseInt(getComputedStyle(M[0]).marginBottom,10)||0;M=M.slice(0,this.currentElementsPerRow).reduce(function(G,K){return Math.max(G,K.getBoundingClientRect().height+q)},0);
this.contents.style.height=M+"px"};
_.N.focusNextExpandedItem=function(){var M;((M=this.data)==null?0:M.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.N.focusItem=function(M,q){var G=this.getRichItemRenderers();if(G[M]&&(M=G[M].querySelector(".focus-on-expand"))){if(q){var K;(K=G[this.currentElementsPerRow])==null||K.scrollIntoView({behavior:"smooth",block:"center"})}M.focus({preventScroll:!0})}};
_.N.onDataChange=function(){var M=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var q;if((q=this.data)==null?0:q.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.yb(this,function(){M.updateItemVisibility()});
var G;if((G=this.data)==null?0:G.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.sT(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),q=0;q<this.data.contents.length;q++)G=_.C(this.data.contents[q],_.ID)||{},G.colIndex=q,G.rowIndex=this.data.rowIndex};
_.N.handleRerenderDownloadsData=function(){_.w("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())};
_.N.blockInlinePreview=function(M){var q=this,G;return _.L(function(K){(G=q.inlinePreviewIsEnabled)&&q.ytdReduxBehavior.dispatch(_.fsM(!1));return K.return(new Promise(function(n){M(function(){G&&q.ytdReduxBehavior.dispatch(_.fsM(!0));n()})}))})};
_.N.expandShelf=function(){var M=this;if(this.data){var q,G=(q=_.C(this.data.showMoreButton,_.f1))==null?void 0:q.trackingParams;G&&_.Pg(_.nl(),G);this.set("data.isExpanded",!0);this.blockInlinePreview(function(K){M.setHeightToSingleRow();M.updateItemVisibility();M.contents.style.height=M.contents.scrollHeight+"px";_.r8.addJob(function(){M.contents.style.height="auto";M.focusNextExpandedItem();K()},2,200)})}};
_.N.collapseShelf=function(){var M=this;return _.L(function(q){if(q.nextAddress==1){if(!M.data)return q.return();M.set("data.isExpanded",!1);return q.yield(M.blockInlinePreview(function(G){M.contents.style.height=M.contents.scrollHeight+"px";M.setHeightToSingleRow();_.r8.addJob(function(){M.updateItemVisibility();M.contents.style.height="auto";G()},2,200)}),2)}_.jP(M.hostElement,"yt-rich-shelf-renderer-collapse",M.data.trackingParams);
M.focusItem(0,!1);_.gL(q)})};
_.N.updateArrowButtonStatus=function(){this.getRichItemRenderers();var M,q;var G=((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q.length)||0;this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=G};
_.N.onChildElementFocus=function(M){this.hasChevronButtons&&(M=M.target.closest("#contents > *"),this.contents.contains(M)&&(M.offsetLeft<this.horizontalOffset?this.previousClick():M.offsetLeft+M.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.N.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.R9("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.N.updateHorizontalOffset=function(){var M=this.getRichItemRenderers(),q,G;var K=((q=this.data)==null?void 0:(G=q.contents)==null?void 0:G.length)||0;var n;M=((n=M[0])==null?void 0:n.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>K?this.firstShownIndex=K-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*M};
_.N.isSlimMediaShelfRenderer=function(){var M,q,G,K=(G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],_.ID))==null?void 0:G.content;return!!(_.C(K,_.Xz2)||_.C(K,lIl)||_.C(K,_.VL)||_.C(K,Vul))};
_.N.isGameCardShelf=function(){var M,q,G,K=(G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],_.ID))==null?void 0:G.content;return!!_.C(K,GXJ)};
_.N.isMiniGameCardShelf=function(){var M,q,G,K=(G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],_.ID))==null?void 0:G.content;return!!_.C(K,hbB)||!!_.C(K,tNB)};
_.N.hasGameBoxArtAvatarStyle=function(){var M;return((M=this.data)==null?void 0:M.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.N.hasRoundedGameBoxArtAvatarStyle=function(){var M;return((M=this.data)==null?void 0:M.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.N.isShortsShelf=function(){var M,q,G,K=(G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],_.ID))==null?void 0:G.content;return!!_.C(K,_.VL)||!!_.C(K,Vul)};
_.N.isPostShelfRenderer=function(){var M,q,G,K=(G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],_.ID))==null?void 0:G.content;return!(!_.C(K,mq$)&&!_.C(K,S6J))};
_.N.isLumiereShelf=function(){var M,q,G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],_.ID);return!!_.C(G==null?void 0:G.content,$qJ)};
_.N.isLumiereShelfWithPosters=function(){var M,q,G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],_.ID),K;return((K=_.C(G==null?void 0:G.content,$qJ))==null?void 0:K.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.N.isExpandOnHoverCardShelf=function(){var M,q,G,K=(G=_.C((M=this.data)==null?void 0:(q=M.contents)==null?void 0:q[0],_.ID))==null?void 0:G.content;return!!_.C(K,eIP)};
_.N.computeHasFeaturedBadge=function(){var M,q,G=_.C((M=this.data)==null?void 0:(q=M.badges)==null?void 0:q[0],_.tvd);return G?G.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.N.computeHasPaygatedFeaturedBadge=function(){var M,q,G=_.C((M=this.data)==null?void 0:(q=M.badges)==null?void 0:q[0],_.tvd);return G?(G==null?void 0:G.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.N.computeHeaderHidden=function(){var M,q,G,K,n,E;return!((M=this.data)==null?0:M.icon)&&!((q=this.data)==null?0:q.title)&&!((G=this.data)==null?0:G.subtitle)&&!((K=this.data)==null?0:K.thumbnail)&&!((n=this.data)==null?0:n.badges)&&!((E=this.data)==null?0:E.menu)};
_.N.showCtaButton=function(){var M;return!((M=this.data)==null||!M.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.N.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.N.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.N.computeForce16By9ThumbnailAspectRatio=function(){var M,q;return((M=this.data)==null?void 0:(q=M.responsiveContainerConfiguration)==null?void 0:q.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.N.onSectionReactiveDismissal=function(M,q,G){var K,n;var E=(K=this.data)==null?void 0:(n=K.targetingContext)==null?void 0:n.targetGroupId;this&&E&&q.targetGroupId&&E.includes(q.targetGroupId)?(K=this.rowIndex,M=K===void 0?!1:!(q.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&K<=M)):M=!1;M&&(this.hidden=G)};
_.Yd.Object.defineProperties(SQ.prototype,{isExpanded:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isExpanded)}},
isCollapsed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.isExpanded)}},
currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var M=this.elementsPerRow;this.isPostShelfRenderer()?M=this.postsPerRow:this.isSlimMediaShelfRenderer()?M=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?M=this.slimItemsPerRow-1:this.isGameCardShelf()?M=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(M=this.miniGameCardsPerRow);return M}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&this.isHomePage}},
showBottomDivider:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null?0:M.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null||!M.previousButton)&&!((q=this.data)==null||!q.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 M;return((M=_.AL().resolve(_.md).getCurrentPage())==null?void 0:M.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K;return!((M=this.data)==null?0:(q=M.thumbnail)==null?0:(G=q.accessibility)==null?0:(K=G.accessibilityData)==null?0:K.label)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
SQ.prototype.onChildElementFocus=SQ.prototype.onChildElementFocus;SQ.prototype.handleRerenderDownloadsData=SQ.prototype.handleRerenderDownloadsData;SQ.prototype.onDataChange=SQ.prototype.onDataChange;SQ.prototype.isCollapsedChanged=SQ.prototype.isCollapsedChanged;SQ.prototype.isExpandedChanged=SQ.prototype.isExpandedChanged;SQ.prototype.onRowIndexChange=SQ.prototype.onRowIndexChange;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],SQ.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],SQ.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],SQ.prototype,"ytdReduxBehavior",void 0);
_.T([_.B({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.r("design:type",Object)],SQ.prototype,"useResponsiveGrid",void 0);_.T([_.B(),_.r("design:type",Object)],SQ.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],SQ.prototype,"standardUnitMinWidth",void 0);_.T([_.B({reflectToAttribute:!0,value:3}),_.r("design:type",Number)],SQ.prototype,"elementsPerRow",void 0);_.T([_.B({value:3}),_.r("design:type",Number)],SQ.prototype,"postsPerRow",void 0);
_.T([_.B({value:6}),_.r("design:type",Number)],SQ.prototype,"slimItemsPerRow",void 0);_.T([_.B({value:6}),_.r("design:type",Number)],SQ.prototype,"gameCardsPerRow",void 0);_.T([_.B({value:6}),_.r("design:type",Number)],SQ.prototype,"miniGameCardsPerRow",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],SQ.prototype,"hidden",void 0);_.T([_.B(),_.r("design:type",Object)],SQ.prototype,"isShowMoreHidden",void 0);
_.T([_.B(),_.r("design:type",Object)],SQ.prototype,"isShowLessHidden",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],SQ.prototype,"hasExpansionButton",void 0);_.T([_.c("data.isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SQ.prototype,"isExpanded",null);_.T([_.c("data.isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SQ.prototype,"isCollapsed",null);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],SQ.prototype,"isInnerShelf",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.r("design:type",Boolean)],SQ.prototype,"isShorts",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.r("design:type",Boolean)],SQ.prototype,"isLumiere",void 0);_.T([_.B({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.r("design:type",Boolean)],SQ.prototype,"hasBoxArtThumbnailStyle",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.r("design:type",Boolean)],SQ.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.r("design:type",Boolean)],SQ.prototype,"hasFeaturedBadge",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.r("design:type",Boolean)],SQ.prototype,"hasPaygatedFeaturedBadge",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.r("design:type",Boolean)],SQ.prototype,"isHeaderHidden",void 0);_.T([_.B({selector:_.xtu}),_.r("design:type",Object)],SQ.prototype,"allVideosCount",void 0);_.T([_.B({selector:vwu}),_.r("design:type",Object)],SQ.prototype,"allPlaylistCount",void 0);_.T([_.B({selector:FQF}),_.r("design:type",Object)],SQ.prototype,"haveSmartDownloadsCompleted",void 0);
_.T([_.B({selectorArgs:["entitySelectorType"],selector:function(M,q){if(_.w("kevlar_modern_downloads_page")&&q&&q!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var G=M.entities;switch(q){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":q=_.hn(G);M=qQ(q);var K=_.y0(q);G=_.OX(G);G=_.rj(k7$(K,G,q.length));return{contents:M,subtitle:G};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return G=_.hn(G),{contents:qQ(G)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return G=
_.tn(G),{contents:qQ(G)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return G=_.vv4(G),{contents:qQ(G)};default:_.j1(new _.bj("Error: entitySelectorType defined but not matched in selector.",M,q))}}}}),
_.r("design:type",Object)],SQ.prototype,"entityDrivenRichShelfData",void 0);_.T([_.B({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.r("design:type",Boolean)],SQ.prototype,"hasTopCtaButton",void 0);_.T([_.B({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.r("design:type",Boolean)],SQ.prototype,"hasBottomCtaButton",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.r("design:type",Boolean)],SQ.prototype,"force16By9ThumbnailAspectRatio",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],SQ.prototype,"restrictContentsOverflow",void 0);_.T([_.B({selector:_.u$$}),_.r("design:type",Boolean)],SQ.prototype,"inlinePreviewIsEnabled",void 0);_.T([_.B({computed:"computeSizing(data)"}),_.r("design:type",String)],SQ.prototype,"sizing",void 0);
_.T([_.B(),_.r("design:type",Boolean)],SQ.prototype,"typographyBump",void 0);_.T([_.B(),_.r("design:type",Number)],SQ.prototype,"itemWidth",void 0);_.T([_.B(),_.r("design:type",Object)],SQ.prototype,"firstShownIndex",void 0);_.T([_.B(),_.r("design:type",Object)],SQ.prototype,"horizontalOffset",void 0);_.T([_.B(),_.r("design:type",Object)],SQ.prototype,"atEnd",void 0);_.T([_.ET("#contents"),_.r("design:type",HTMLElement)],SQ.prototype,"contents",void 0);
_.T([_.KT("data.rowIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SQ.prototype,"onRowIndexChange",null);_.T([_.KT("isExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SQ.prototype,"isExpandedChanged",null);_.T([_.KT("isCollapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SQ.prototype,"isCollapsedChanged",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SQ.prototype,"onDataChange",null);_.T([_.KT("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SQ.prototype,"handleRerenderDownloadsData",null);_.T([_.GQ("focusin"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],SQ.prototype,"onChildElementFocus",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data","isHomePage"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SQ.prototype,"isTruncated",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SQ.prototype,"showBottomDivider",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],SQ.prototype,"hasChevronButtons",null);
_.T([_.c("firstShownIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],SQ.prototype,"previousButtonOverride",null);_.T([_.c("atEnd"),_.r("design:type",Object),_.r("design:paramtypes",[])],SQ.prototype,"nextButtonOverride",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SQ.prototype,"isHomePage",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],SQ.prototype,"thumbnailAriaHidden",null);
_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],SQ.prototype,"entitySelectorType",null);_.T([_.b({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],SQ);
_.VHS=_.jo()(SQ,"ytd-rich-shelf-renderer",function(){if(jXI===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);jXI=M}M=jXI;return M},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var RAp;_.S5(_.Yl,"yt-badge-view-model",{props:{data:_.Hz,class:_.Hz,workaroundShortsIsThumbnailBadge:_.Hz,modern:_.Hz,numBadgesInRow:_.Hz}});_.S5(CwJ,"yt-slimline-survey-view-model",{props:{data:_.Hz}});var T1=function(){var M=_.Q.apply(this,arguments)||this;M.tileLottieAnimationRef={};M.backgroundLottieAnimationRef={};M.isOnHoverBehaviorForLottieEnabled=!0;M.useBiggerShowcaseImage=_.w("enable_desktop_search_bigger_thumbs");M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return M};
_.l(T1,_.Q);_.N=T1.prototype;_.N.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.N.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer",buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},
"data.badge":{id:"badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.additionalBadge":{id:"additional-badge-view-model",mapping:{badgeViewModel:{component:"yt-badge-view-model",params:{modern:!0}}}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}},
"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyViewModel:"yt-slimline-survey-view-model"}}}};
_.N.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var M=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);M!==this.hasTile&&this.set("hasTile",M);M=this.hasLogo(this.data)||!!this.data.badgeText;M!==this.hasMetadata&&this.set("hasMetadata",M);M=this.data.overflowButton?!1:M;M!==this.showLogoImage&&this.set("showLogoImage",M);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.N.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.N.currentColorChanged=function(){this.updateButtonPalette()};
_.N.computeBackgroundStyle=function(M){if(M&&this.data){var q=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var G=_.r7((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);G&&q.push('background-image: url("'+G+'");')}var K;((K=M.basicColorData)==null?void 0:K.backgroundColor)!==void 0&&q.push("background-color: "+_.C_(M.basicColorData.backgroundColor)+";");return q.join("")}};
_.N.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M)};
_.N.getCurrentLogo=function(M,q){if(M)return q?M.darkLogoImage:M.lightLogoImage};
_.N.getCurrentStaticTileImage=function(M,q){if(this.hasStaticTile(M))return M.darkTileImage?q?M.darkTileImage:M.tileImage:M.tileImage};
_.N.computeTitleStyle=function(M){if(this.data&&this.data.title&&M&&M.basicColorData&&M.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.w2(M.basicColorData.foregroundTitleColor)+";"};
_.N.computeSubtitleStyle=function(M){if(this.data&&this.data.subtitle&&M&&M.basicColorData&&M.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.w2(M.basicColorData.foregroundBodyColor)+";"};
_.N.computeSupplementalStyle=function(M){if(this.data&&this.data.supplementalText&&M&&M.supplementalTextColor!==void 0)return M=_.w2(M.supplementalTextColor),"color:"+M+";--yt-endpoint-color:"+M+";--yt-endpoint-hover-color:"+M+";--yt-endpoint-visited-color:"+M+";--yt-formatted-string-bold-font-weight:700;"};
_.N.computeDismissIconStyle=function(M){var q,G;if((M==null?0:(q=M.dismissButtonColorData)==null?0:q.foregroundTitleColor)&&(M==null?0:(G=M.dismissButtonColorData)==null?0:G.backgroundColor))return"--yt-button-color:"+_.C_(M.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.C_(M.dismissButtonColorData.backgroundColor)+";"};
_.N.computeOverflowIconStyle=function(M){var q,G;if((M==null?0:(q=M.dismissButtonColorData)==null?0:q.foregroundTitleColor)&&(M==null?0:(G=M.dismissButtonColorData)==null?0:G.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.C_(M.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.C_(M.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.C_(M.dismissButtonColorData.foregroundTitleColor)+";"};
_.N.computeBannerStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.N.computeLocation=function(M){switch(M==null?void 0:M.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.N.shouldShowTileSection=function(M,q,G){return!this.shouldExpandLogo(M,q,G)&&q};
_.N.shouldShowExpandedLogoSection=function(M,q,G){return this.shouldExpandLogo(M,q,G)&&M!==void 0&&this.hasLogo(M)};
_.N.shouldExpandLogo=function(M,q,G){return M&&q?!1:G>=2};
_.N.hasStaticTile=function(M){return!(M==null||!M.tileImage)};
_.N.hasTileLottie=function(M){var q;return!!(M==null?0:(q=M.tileLottie)==null?0:q.url)};
_.N.hasLogo=function(M){return this.getCurrentLogo(M,this.isDarkTheme)!==void 0};
_.N.getLogoHeight=function(M){return this.logoWithPadding(M)?"26":"20"};
_.N.getExpandedLogoHeight=function(M){return this.logoWithPadding(M)?"31":"24"};
_.N.getLogoImageId=function(M){return this.logoWithPadding(M)?"logo-image-with-padding":"logo-image"};
_.N.getMaxTitleFontSize=function(M){return M.overrideTitleMaxFontSize?String(M.overrideTitleMaxFontSize):"36"};
_.N.hasBackgroundLottie=function(M){var q;return!!(M==null?0:(q=M.backgroundLottie)==null?0:q.url)};
_.N.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var M,q;(M=this.tileLottieAnimationRef)==null||(q=M.lottieEl)==null||q.play();var G,K;(G=this.backgroundLottieAnimationRef)==null||(K=G.lottieEl)==null||K.play()}};
_.N.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var M,q;(M=this.tileLottieAnimationRef)==null||(q=M.lottieEl)==null||q.pause();var G,K;(G=this.backgroundLottieAnimationRef)==null||(K=G.lottieEl)==null||K.pause()}};
_.N.pauseLottie=function(){var M,q;(M=this.tileLottieAnimationRef)==null||(q=M.lottieEl)==null||q.pause();var G,K;(G=this.backgroundLottieAnimationRef)==null||(K=G.lottieEl)==null||K.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.N.performPrimaryButtonAction=function(){var M,q,G;((M=this.data)==null?0:(q=M.primaryButton)==null?0:(G=q.buttonRenderer)==null?0:G.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.N.requestElementsPerRow=function(){_.jP(this.hostElement,"yt-request-elements-per-row")};
_.N.updateButtonPalette=function(){if(this.data&&this.currentColorData){var M;((M=this.data.dismissButton)==null?0:M.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 q;if((q=this.data.primaryButton)==null?0:q.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var G;if((G=this.data.secondaryButton)==
null?0:G.buttonRenderer)this.currentColorData.secondaryButtonColorData?(this.data.secondaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.secondaryButtonColorData},this.data.secondaryButton.buttonRenderer.style=void 0):this.currentColorData.secondaryButtonStyleType&&(this.data.secondaryButton.buttonRenderer.style=this.currentColorData.secondaryButtonStyleType,this.data.secondaryButton.buttonRenderer.colorData=void 0),this.set("secondaryButton",{buttonRenderer:Object.assign({},
this.data.secondaryButton.buttonRenderer)});var K;((K=this.data.primaryButton)==null?0:K.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var n;((n=this.data.secondaryButton)==null?0:n.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)});var E;((E=this.data.primaryButton)==null?0:E.buttonViewModel)&&this.set("primaryButton",{buttonViewModel:Object.assign({},
this.data.primaryButton.buttonViewModel)})}};
_.N.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var M=this.getTileLottieDataBasedOnTheme(),q,G;if(M.url!==((q=this.tileLottiePlayerProps)==null?void 0:(G=q.animationConfig)==null?void 0:G.path)){var K,n;(K=this.tileLottieAnimationRef)==null||(n=K.lottieEl)==null||n.destroy();var E;this.isOnHoverBehaviorForLottieEnabled=!((E=M.settings)==null?0:E.autoplay);var p,y;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(y=(p=M.settings)==null?void 0:p.autoplay)!=null?y:!1,loop:this.getLottieLoopValue(M.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof M.url==="string"?this.tileLottiePlayerProps.animationConfig.path=M.url:this.tileLottiePlayerProps.animationConfig.animationData=M.url}}};
_.N.getOverflowButton=function(M){return _.C(M.overflowButton,eCJ)};
_.N.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var M=this.getBackgroundLottieDataBasedOnTheme(),q,G;if(M.url!==((q=this.backgroundLottiePlayerProps)==null?void 0:(G=q.animationConfig)==null?void 0:G.path)){var K,n;(K=this.backgroundLottieAnimationRef)==null||(n=K.lottieEl)==null||n.destroy();var E;this.isOnHoverBehaviorForLottieEnabled=!((E=M.settings)==null?0:E.autoplay);var p,y;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(y=(p=M.settings)==null?void 0:p.autoplay)!=null?y:!1,loop:this.getLottieLoopValue(M.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof M.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=M.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
M.url}}};
_.N.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var M;((M=this.tileLottieAnimationRef)==null?void 0:M.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var q;((q=this.backgroundLottieAnimationRef)==null?void 0:q.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.N.getTileLottieDataBasedOnTheme=function(){var M;if(this.isDarkTheme&&((M=this.data)==null?0:M.darkThemeTileLottie))return this.data.darkThemeTileLottie;var q;return((q=this.data)==null?0:q.tileLottie)?this.data.tileLottie:{}};
_.N.getBackgroundLottieDataBasedOnTheme=function(){var M;if(this.isDarkTheme&&((M=this.data)==null?0:M.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var q;return((q=this.data)==null?0:q.backgroundLottie)?this.data.backgroundLottie:{}};
_.N.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
_.N.getLottieLoopValue=function(M){return M?M.loop!==void 0?M.loop:M.loopCount?M.loopCount-1:!0:!0};
_.N.logoWithPadding=function(M){var q,G,K;return(M=(q=this.getCurrentLogo(M,this.isDarkTheme))==null?void 0:(G=q.thumbnails)==null?void 0:(K=G[0])==null?void 0:K.height)&&M%31===0?!0:!1};
T1.prototype.currentColorChanged=T1.prototype.currentColorChanged;T1.prototype.themeChanged=T1.prototype.themeChanged;T1.prototype.dataChanged=T1.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],T1.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],T1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],T1.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],T1.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],T1.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],T1.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],T1.prototype,"primaryButton",void 0);_.T([_.B(),_.r("design:type",Object)],T1.prototype,"secondaryButton",void 0);
_.T([_.B({reflectToAttribute:!0,value:3}),_.r("design:type",Number)],T1.prototype,"elementsPerRow",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],T1.prototype,"isDarkTheme",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],T1.prototype,"hasTile",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],T1.prototype,"hasMetadata",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],T1.prototype,"showLogoImage",void 0);_.T([_.B(),_.r("design:type",Object)],T1.prototype,"currentColorData",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.r("design:type",String)],T1.prototype,"bannerStyle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.r("design:type",String)],T1.prototype,"location",void 0);
_.T([_.B(),_.r("design:type",Object)],T1.prototype,"tileLottiePlayerProps",void 0);_.T([_.B(),_.r("design:type",Object)],T1.prototype,"tileLottieAnimationRef",void 0);_.T([_.B(),_.r("design:type",Object)],T1.prototype,"backgroundLottiePlayerProps",void 0);_.T([_.B(),_.r("design:type",Object)],T1.prototype,"backgroundLottieAnimationRef",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],T1.prototype,"useBiggerShowcaseImage",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],T1.prototype,"isHideEnclosingAction",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T1.prototype,"dataChanged",null);_.T([_.yO("isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T1.prototype,"themeChanged",null);
_.T([_.yO("currentColorData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T1.prototype,"currentColorChanged",null);_.T([_.b({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],T1);
_.z(T1,"ytd-statement-banner-renderer",function(){if(RAp!==void 0)return RAp;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-statement-banner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" on-mouseleave="maybePauseLottie" on-mouseover="maybePlayLottie" class="style-scope ytd-statement-banner-renderer">\n  <div id="statement-banner-content" class="style-scope ytd-statement-banner-renderer">\n    <div id="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n      <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n    </ytd-lottie-player></div>\n    <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n        <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n        </ytd-lottie-player></div>\n      </div>\n      <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n        <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n        </div>\n      </div>\n      <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n            <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="[[getMaxTitleFontSize(data)]]" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-dynamic-sizing-formatted-string>\n            <div id="new-badge-container" hidden="[[data.badge]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n              <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n            </div>\n            <div id="badge-view-model-container" class="style-scope ytd-statement-banner-renderer">\n              <div id="additional-badge-view-model" hidden="[[!data.additionalBadge]]" class="style-scope ytd-statement-banner-renderer"></div>\n              <div id="badge-view-model" hidden="[[!data.badge]]" class="style-scope ytd-statement-banner-renderer"></div>\n            </div>\n          </div>\n          <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n          <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n            </yt-formatted-string>\n          </div>\n        </div>\n        <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n          <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n            <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n            <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          </div>\n        </div>\n      </div>\n      <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n      <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    </div>\n  </div>\n  <div id="attached-survey" class="style-scope ytd-statement-banner-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return RAp=M},{mode:1});var fLf;var rZ=function(){var M=_.Q.apply(this,arguments)||this;M.isSearch=!1;M.hideShelfHeader=!1;M.engagementPanel=!1;M.disableMouseScroll=!0;M.useFloorScrolling=!0;return M};
_.l(rZ,_.Q);rZ.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.Ge("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.Ge("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
rZ.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
rZ.prototype.onDataChanged=rZ.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],rZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],rZ.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],rZ.prototype,"hideShelfHeader",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],rZ.prototype,"engagementPanel",void 0);_.T([_.B(),_.r("design:type",Object)],rZ.prototype,"disableMouseScroll",void 0);_.T([_.B(),_.r("design:type",Object)],rZ.prototype,"useFloorScrolling",void 0);_.T([_.B(),_.r("design:type",Object)],rZ.prototype,"data",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rZ.prototype,"onDataChanged",null);
_.T([_.b({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],rZ);
_.z(rZ,"ytd-reel-shelf-renderer",function(){if(fLf!==void 0)return fLf;var M=document.createElement("template");_.X(M,'\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" text="[[data.subtitle]]" class="style-scope ytd-reel-shelf-renderer"> </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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return fLf=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var FeS;var H29;H29=_.DQ(["https://www.google.com/recaptcha/api.js?trustedtypes=true"]);_.eAv=_.Ow(H29);var $Vf=_.U(function(M){var q=M.data;M=M.useSmallFont;var G={},K={};return _.W("yt-channel-external-link-view-model",{class:"ytChannelExternalLinkViewModelHost"},_.W(_.d,{cond:function(){return q().favicon},
then:function(n){return _.W(_.Jj,{data:n,className:"ytChannelExternalLinkViewModelFavicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.W("div",{class:"ytChannelExternalLinkViewModelContainer"},_.W(_.Ft,{text:function(){return q().title},
className:_.Hb("ytChannelExternalLinkViewModelTitle",(G.ytChannelExternalLinkViewModelTitleSmallFont=M,G)),ellipsisTruncate:!0,userInput:!0}),_.W(_.Ft,{text:function(){return q().link},
className:_.Hb("ytChannelExternalLinkViewModelLink",(K.ytChannelExternalLinkViewModelLinkSmallFont=M,K)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Sc");
$Vf.idomCompat=!0;_.S5($Vf,"yt-channel-external-link-view-model",{props:{data:_.Hz,useSmallFont:_.Hz}});_.hC("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var jQ=function(){var M=_.Q.apply(this,arguments)||this;M.revealButtonClass="button";M.businessEmailDisplayState="HIDE_SECTION";return M};
_.l(jQ,_.Q);_.N=jQ.prototype;_.N.refit=function(){var M=this;_.g4(function(){_.Rf(M.hostElement,"yt-refit-popups-action")});
_.yb(this,function(){_.Rf(M.hostElement,"yt-refit-popups-action")})};
_.N.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.cF(_.eAv),this.businessEmailDisplayState="CAPTCHA")};
_.N.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"};
_.N.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.N.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"}}}};
_.N.computeEmailHref=function(M){return"mailto:"+M};
_.N.computeSafeUrl=function(M){if(M)return _.SM(M)};
_.N.linkEndpoint=function(M){return _.C(M.onTap,_.Cl)};
_.N.linkEndpointToHref=function(M){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(M))};
_.N.onYtServiceRequestCompleted=function(M){var q;if((q=M.detail.data)==null?0:q.businessEmail)this.businessEmail=M.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var G;if((G=M.detail.data)==null?0:G.errorMessage)this.businessEmailErrorMessage=M.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.N.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var M=this.JSC$16386_captchaTextarea.value;if(M){M={recaptcha_response_token:M,channel_id:this.metadata.channelId};var q=_.C(this.metadata.onBusinessEmailRevealClickCommand,_.Cl);q&&this.ytComponentBehavior.resolveCommand(q,{form:M})}}};
_.N.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Yd.Object.defineProperties(jQ.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var M;return _.C((M=this.data)==null?void 0:M.metadata,Gdv)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.C(this.metadata.businessEmailRevealButton,_.$N)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var M=new URL(this.metadata.canonicalChannelUrl);return M.host+M.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.C(this.metadata.learnMoreOnTap,_.Cl)}}});
jQ.prototype.onYtServiceRequestCompleted=jQ.prototype.onYtServiceRequestCompleted;jQ.prototype.businessEmailMetadataChanged=jQ.prototype.businessEmailMetadataChanged;jQ.prototype.refit=jQ.prototype.refit;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],jQ.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("#g-recaptcha-response"),_.r("design:type",HTMLTextAreaElement)],jQ.prototype,"JSC$16386_captchaTextarea",void 0);_.T([_.B(),_.r("design:type",Object)],jQ.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],jQ.prototype,"revealButtonClass",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],jQ.prototype,"metadata",null);
_.T([_.c("metadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],jQ.prototype,"revealButton",null);_.T([_.c("metadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],jQ.prototype,"channelDisplayUrl",null);_.T([_.yO("metadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jQ.prototype,"refit",null);_.T([_.c("metadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],jQ.prototype,"formattedDescription",null);
_.T([_.c("metadata","learnMoreCommand"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jQ.prototype,"shouldRendereVerifiedPhoneStatus",null);_.T([_.c("metadata"),_.r("design:type",Object),_.r("design:paramtypes",[])],jQ.prototype,"learnMoreCommand",null);_.T([_.B(),_.r("design:type",String)],jQ.prototype,"businessEmailDisplayState",void 0);_.T([_.B(),_.r("design:type",String)],jQ.prototype,"businessEmail",void 0);
_.T([_.B(),_.r("design:type",String)],jQ.prototype,"businessEmailErrorMessage",void 0);_.T([_.yO("metadata"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jQ.prototype,"businessEmailMetadataChanged",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jQ.prototype,"onYtServiceRequestCompleted",null);_.T([_.b({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],jQ);
_.z(jQ,"ytd-about-channel-renderer",function(){if(FeS!==void 0)return FeS;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-about-channel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="about-container" class="style-scope ytd-about-channel-renderer">\n  <div id="header-row" hidden="[[!metadata.aboutPanelTitle]]" class="style-scope ytd-about-channel-renderer">\n    <h1 class="style-scope ytd-about-channel-renderer">[[metadata.aboutPanelTitle]]</h1>\n    <div id="dismiss-button" class="style-scope ytd-about-channel-renderer"></div>\n  </div>\n\n  <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.descriptionLabel]]" hidden$="[[!formattedDescription]]">\n  </yt-attributed-string>\n  <yt-attributed-string id="description-container" class="about-section style-scope ytd-about-channel-renderer" data="[[formattedDescription]]" hidden$="[[!formattedDescription]]" user-input="true">\n  </yt-attributed-string>\n\n  <div id="bio-container" class="about-section style-scope ytd-about-channel-renderer" hidden="[[!metadata.formattedBio]]">\n    <h2 class="subheadline style-scope ytd-about-channel-renderer">[[metadata.artistBioLabel]]</h2>\n    <yt-attributed-string id="bio-container" class="about-section style-scope ytd-about-channel-renderer" data="[[metadata.artistBio]]" hidden$="[[!metadata.artistBio]]" user-input="true">\n    </yt-attributed-string>\n    <p class="style-scope ytd-about-channel-renderer">[[metadata.artistBio]]</p>\n  </div>\n\n  <div id="links-section" hidden="[[!metadata.links]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <div id="link-list-container" class="style-scope ytd-about-channel-renderer">\n    </div>\n  </div>\n  <div id="custom-links-section" hidden="[[!metadata.customLinks]]" class="style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.customLinksLabel]]">\n    </yt-attributed-string>\n    <table id="links-container" class="about-section style-scope ytd-about-channel-renderer">\n      <template is="dom-repeat" items="[[metadata.customLinks]]" as="link" class="style-scope ytd-about-channel-renderer">\n        <tr hidden="[[!linkEndpointToHref(link)]]" class="style-scope ytd-about-channel-renderer">\n          <td class="image-container style-scope ytd-about-channel-renderer">\n            <yt-image data="[[link.favicon]]" width="32" class="style-scope ytd-about-channel-renderer"></yt-image>\n          </td>\n          <td class="href-container style-scope ytd-about-channel-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[linkEndpointToHref(link)]]" data="[[linkEndpoint(link)]]">[[link.label]]</a>\n          </td>\n        </tr>\n      </template>\n    </table>\n  </div>\n\n  <div id="additional-info-container" class="about-section style-scope ytd-about-channel-renderer">\n    <yt-attributed-string class="subheadline style-scope ytd-about-channel-renderer" data="[[metadata.additionalInfoLabel]]"></yt-attributed-string>\n    <table class="style-scope ytd-about-channel-renderer">\n      <tbody class="style-scope ytd-about-channel-renderer"><tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[equals(businessEmailDisplayState, \'HIDE_SECTION\')]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="mail" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'SIGN_IN_REQUIRED\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.signInForBusinessEmail]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n\n        <td id="view-email-button-container" hidden="[[!equals(businessEmailDisplayState, \'REVEAL_BUTTON\')]]" class="style-scope ytd-about-channel-renderer">\n          <yt-button-view-model classes="[[revealButtonClass]]" data="[[revealButton]]" scoping-class-name="[[is]]" on-click="onBusinessEmailClick" class="style-scope ytd-about-channel-renderer">\n          </yt-button-view-model>\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'CAPTCHA\')]]" class="style-scope ytd-about-channel-renderer">\n          \n          <div id="recaptcha" class="g-recaptcha style-scope ytd-about-channel-renderer" data-sitekey$="[[recaptchaSiteKey()]]"></div>\n          <button id="submit-btn" class="yt-uix-button yt-uix-button-size-default yt-uix-button-primary style-scope ytd-about-channel-renderer" on-click="onBusinessEmailCaptchaSubmit">\n            <span class="yt-uix-button-content style-scope ytd-about-channel-renderer">[[metadata.businessEmailSubmitCaptchaLabel]] </span>\n          </button>\n        </td>\n        <td hidden="[[!equals(businessEmailDisplayState, \'ERROR_MESSAGE\')]]" class="style-scope ytd-about-channel-renderer">\n          [[businessEmailErrorMessage]]\n        </td>\n\n        <td hidden="[[!equals(businessEmailDisplayState, \'BUSINESS_EMAIL\')]]" class="style-scope ytd-about-channel-renderer">\n          <a id="email" class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[computeEmailHref(businessEmail)]]" target="_blank">[[businessEmail]]</a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!shouldRendereVerifiedPhoneStatus]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="phone" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <span class="style-scope ytd-about-channel-renderer">[[metadata.phoneVerifiedLabel]]</span>\n          <a class="yt-simple-endpoint phone-status-info style-scope ytd-about-channel-renderer" href$="[[computeHref_(learnMoreCommand)]]" target="_blank">\n            <yt-icon icon="info" class="style-scope ytd-about-channel-renderer"></yt-icon>\n          </a>\n        </td>\n      </tr>\n\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!channelDisplayUrl]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="language" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-about-channel-renderer" href$="[[metadata.canonicalChannelUrl]]">[[channelDisplayUrl]]</a>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.country]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.country]]" icon="privacy_public" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.country]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.joinedDateText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.joinedDateText]]" icon="info_outline" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-attributed-string data="[[metadata.joinedDateText]]" class="style-scope ytd-about-channel-renderer"></yt-attributed-string>\n        </td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.subscriberCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon icon="person_radar" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.subscriberCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.videoCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.videoCountText]]" icon="my_videos" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.videoCountText]]</td>\n      </tr>\n      <tr class="description-item style-scope ytd-about-channel-renderer" hidden="[[!metadata.viewCountText]]">\n        <td class="style-scope ytd-about-channel-renderer">\n          <yt-icon hidden="[[!metadata.viewCountText]]" icon="trending_up" class="style-scope ytd-about-channel-renderer"></yt-icon>\n        </td>\n        <td class="style-scope ytd-about-channel-renderer">[[metadata.viewCountText]]</td>\n      </tr>\n    </tbody></table>\n  </div>\n\n  <div id="button-container" class="style-scope ytd-about-channel-renderer">\n    <div id="share-channel" class="button style-scope ytd-about-channel-renderer"></div>\n    <div id="flagging-button" class="button style-scope ytd-about-channel-renderer"></div>\n  </div>\n</div>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return FeS=M},{mode:1});var ssI;var Vs=function(){return _.Q.apply(this,arguments)||this};
_.l(Vs,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Vs.prototype,"data",void 0);_.T([_.b({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],Vs);
_.z(Vs,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(ssI!==void 0)return ssI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ssI=M},{mode:1});var Mzd;var RK=function(){return _.Q.apply(this,arguments)||this};
_.l(RK,_.Q);RK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],RK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],RK.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],RK.prototype,"aligment",void 0);_.T([_.b({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],RK);
_.z(RK,"ytd-channel-list-sub-menu-renderer",function(){if(Mzd!==void 0)return Mzd;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Mzd=
M},{mode:1});var qIM;var fM=function(){return _.Q.apply(this,arguments)||this};
_.l(fM,_.Q);fM.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}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],fM.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],fM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fM.prototype,"data",void 0);_.T([_.b({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],fM);
_.z(fM,"ytd-channel-sub-menu-renderer",function(){if(qIM!==void 0)return qIM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qIM=M},{mode:1});var GnM;var KJS;var FB=function(){var M=_.Q.apply(this,arguments)||this;M.isCompact=!1;return M};
_.l(FB,_.Q);_.Yd.Object.defineProperties(FB.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var M,q;return((q=_.C((M=this.data)==null?void 0:M.endpoint,_.q6))==null?void 0:q.target)==="TARGET_NEW_WINDOW"}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],FB.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],FB.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],FB.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],FB.prototype,"isCompact",void 0);_.T([_.c("isCompact"),_.r("design:type",Number),_.r("design:paramtypes",[])],FB.prototype,"thumbnailWidth",null);
_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FB.prototype,"openNewWindow",null);_.T([_.b({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],FB);
_.z(FB,"ytd-media-lockup-renderer",function(){if(KJS!==void 0)return KJS;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return KJS=M},{mode:1});var nQM;var HP=function(){return _.Q.apply(this,arguments)||this};
_.l(HP,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],HP.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],HP.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],HP.prototype,"data",void 0);_.T([_.b({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],HP);
_.z(HP,"ytd-structured-description-channel-lockup-renderer",function(){if(nQM!==void 0)return nQM;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return nQM=M},{mode:1});var EQf;var eQ=function(){var M=_.Q.apply(this,arguments)||this;M.isCompact=!1;M.collectionsStackColor=_.w("modernize_structured_description_playlist_lockups_v2");return M};
_.l(eQ,_.Q);eQ.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:_.w("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Yd.Object.defineProperties(eQ.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K,n,E;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:!0,sampledThumbnailColor:this.collectionsStackColor?(M=this.data)==null?void 0:(q=M.thumbnail)==null?void 0:q.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(G=this.data)==null?void 0:(K=G.thumbnail)==null?void 0:K.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(n=this.data)==null?void 0:(E=n.thumbnail)==null?
void 0:E.vibrantColorPalette:void 0}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],eQ.prototype,"componentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],eQ.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],eQ.prototype,"showSidePanelThumbnailOverlay",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eQ.prototype,"isCompact",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eQ.prototype,"collectionsStackColor",void 0);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],eQ.prototype,"twoLineTitle",null);_.T([_.c("data","collectionsStackColor"),_.r("design:type",Object),_.r("design:paramtypes",[])],eQ.prototype,"collectionStack",null);
_.T([_.b({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],eQ);
_.z(eQ,"ytd-structured-description-playlist-lockup-renderer",function(){if(EQf!==void 0)return EQf;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return EQf=M},{mode:1});var Ny8;var $6=function(){return _.Q.apply(this,arguments)||this};
_.l($6,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],$6.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$6.prototype,"data",void 0);_.T([_.b({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],$6);
_.z($6,"ytd-structured-description-video-lockup-renderer",function(){if(Ny8!==void 0)return Ny8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Ny8=M},{mode:2});var st=function(){return _.Q.apply(this,arguments)||this};
_.l(st,_.Q);
st.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}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],st.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],st.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],st.prototype,"data",void 0);_.T([_.b({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],st);
_.z(st,"ytd-compact-infocard-renderer",function(){if(GnM!==void 0)return GnM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return GnM=M},{mode:1});var kn9;var Mw=function(){return _.Q.apply(this,arguments)||this};
_.l(Mw,_.Q);Mw.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Yd.Object.defineProperties(Mw.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],Mw.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Mw.prototype,"ytdReduxBehavior",void 0);_.T([_.B({selector:_.o2}),_.r("design:type",Object)],Mw.prototype,"isGridViewEnabled",void 0);
_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Mw.prototype,"watchFeedBigThumbs",null);_.T([_.c("isGridViewEnabled","data"),_.B({reflectToAttribute:!0,value:"168"}),_.r("design:type",String),_.r("design:paramtypes",[])],Mw.prototype,"thumbnailWidth",null);_.T([_.c("isGridViewEnabled","data"),_.B({reflectToAttribute:!0,value:"94"}),_.r("design:type",String),_.r("design:paramtypes",[])],Mw.prototype,"customThumbnailSize",null);
_.T([_.B(),_.r("design:type",Object)],Mw.prototype,"data",void 0);_.T([_.b({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],Mw);
_.z(Mw,"ytd-compact-playlist-renderer",function(){if(kn9!==void 0)return kn9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return kn9=M},{mode:1});var pK9;var qw=function(){var M=_.Q.apply(this,arguments)||this;M.roundedContainer=!0;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return M};
_.l(qw,_.Q);_.N=qw.prototype;_.N.attached=function(){this.requestElementsPerRow()};
_.N.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"}}}};
_.N.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.N.computeViewStyle=function(M){return M.style?M.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.N.onUpdateElementsPerRowAction=function(M){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&M===1};
_.N.requestElementsPerRow=function(){_.jP(this.hostElement,"yt-request-elements-per-row")};
qw.prototype.dataChanged=qw.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],qw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],qw.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],qw.prototype,"actionHandlerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],qw.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],qw.prototype,"hideThumbnail",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.r("design:type",String)],qw.prototype,"viewStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],qw.prototype,"roundedContainer",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qw.prototype,"dataChanged",null);_.T([_.b({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],qw);
_.z(qw,"ytd-compact-promoted-item-renderer",function(){if(pK9!==void 0)return pK9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return pK9=M},{mode:1});var yFv;var Gx=function(){return _.Q.apply(this,arguments)||this};
_.l(Gx,_.Q);Gx.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Gx.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Gx.prototype.onYtNavigate=function(M,q){var G=this;if(q.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",q)){var K=this.get("watchEndpoint.videoId",q.endpoint),n=_.Rf(this.hostElement,"yt-get-current-video-id-action")[0];_.w("kevlar_mix_handle_first_endpoint_different")&&K&&n&&K!==n||(M.stopPropagation(),_.rk().getPlayerPromise().then(function(E){if(E.getPlayerState()===0&&G.data.secondaryNavigationEndpoint)var p=G.data.secondaryNavigationEndpoint;else{p=
Object.assign({},q.endpoint);var y=_.C(p.commandMetadata,_.Mg);y&&(E=Math.floor(E.getCurrentTime()),y.url=_.Nz(y.url,{t:E}),!_.w("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(y=_.C(p,_.Jl)))&&(y.startTimeSeconds=E)}_.jP(G.hostElement,"yt-navigate",{endpoint:p})}))}};
_.Yd.Object.defineProperties(Gx.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K,n,E;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(M=this.data)==null?void 0:(q=M.thumbnail)==null?void 0:q.sampledThumbnailColor,vibrantColorPalette:(G=this.data)==null?void 0:(K=G.thumbnail)==null?void 0:K.vibrantColorPalette,darkColorPalette:(n=this.data)==null?void 0:(E=n.thumbnail)==null?void 0:E.darkColorPalette,experimentEnabled:!0}}}});
Gx.prototype.onYtNavigate=Gx.prototype.onYtNavigate;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Gx.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.OH.YtEndpointBehavior),_.r("design:type",Object)],Gx.prototype,"ytEndpointBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Gx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],Gx.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.P(_.HJ),_.r("design:type",Object)],Gx.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Gx.prototype,"ytdReduxBehavior",void 0);_.T([_.B({selector:_.o2}),_.r("design:type",Object)],Gx.prototype,"isGridViewEnabled",void 0);_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Gx.prototype,"watchFeedBigThumbs",null);
_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],Gx.prototype,"thumbnailWidth",null);_.T([_.B(),_.r("design:type",Object)],Gx.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Gx.prototype,"collectionStack",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Gx.prototype,"onYtNavigate",null);
_.T([_.b({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Gx);
_.z(Gx,"ytd-compact-radio-renderer",function(){if(yFv!==void 0)return yFv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return yFv=M},{mode:1});var LJf;var KU=function(){return _.Q.apply(this,arguments)||this};
_.l(KU,_.Q);KU.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
KU.prototype.computeRendererStyle=function(M){return M.style?M.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.T([_.B(),_.r("design:type",Object)],KU.prototype,"data",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],KU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],KU.prototype,"rendererBehavior",void 0);_.T([_.B({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.r("design:type",String)],KU.prototype,"rendererStyle",void 0);_.T([_.b({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],KU);
_.z(KU,"ytd-compact-text-promo-renderer",function(){if(LJf!==void 0)return LJf;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return LJf=M},{mode:1});var YI8;var nU=function(){var M=_.Q.apply(this,arguments)||this;M.isShortsStyle=!1;return M};
_.l(nU,_.Q);_.N=nU.prototype;_.N.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"}}}};
_.N.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.jP(this.hostElement,"yt-disable-lockup-interaction"):_.jP(this.hostElement,"yt-enable-lockup-interaction"))};
_.N.isMetaBlockEmpty=function(M){return!M||!M.longBylineText&&!M.shortBylineText&&!M.shortViewCountText&&!M.viewCountText};
_.N.computeHasOneLineTitle=function(M){return this.forceOneLineTitle||!(M==null||!M.buttons)};
_.N.computeDisableInteraction=function(){var M;return!((M=this.data)==null?0:M.navigationEndpoint)};
_.N.hasSingularTopStandaloneBadge=function(){var M;return!((M=this.data)==null||!M.topStandaloneBadge)};
_.Yd.Object.defineProperties(nU.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("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 M;return this.hasSingularTopStandaloneBadge()?[(M=this.data)==null?void 0:M.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var M;return this.shouldShowTopBadges?((M=this.data)==null?void 0:M.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
nU.prototype.disableInteractionChanged=nU.prototype.disableInteractionChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],nU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],nU.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],nU.prototype,"ytdLockupBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],nU.prototype,"ytdReduxBehavior",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.r("design:type",Boolean)],nU.prototype,"metaBlockEmpty",void 0);_.T([_.B({selector:_.o2}),_.r("design:type",Object)],nU.prototype,"isGridViewEnabled",void 0);_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],nU.prototype,"watchFeedBigThumbs",null);
_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],nU.prototype,"thumbnailWidth",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],nU.prototype,"isShortsStyle",void 0);_.T([_.B(),_.r("design:type",Object)],nU.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.r("design:type",Boolean)],nU.prototype,"hasOneLineTitle",void 0);
_.T([_.B(),_.r("design:type",Boolean)],nU.prototype,"hideThumbnail",void 0);_.T([_.B(),_.r("design:type",Boolean)],nU.prototype,"forceOneLineTitle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.r("design:type",Boolean)],nU.prototype,"disableInteraction",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],nU.prototype,"musicMetadataVideoLockup",void 0);
_.T([_.KT("disableInteraction"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nU.prototype,"disableInteractionChanged",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],nU.prototype,"shouldShowTopBadges",null);_.T([_.c("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],nU.prototype,"topBadges",null);
_.T([_.c("shouldShowTopBadges","data"),_.r("design:type",Array),_.r("design:paramtypes",[])],nU.prototype,"inlineMetadataBadges",null);_.T([_.c("shouldShowTopBadges"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],nU.prototype,"shouldShowBadgesBelowMetadata",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],nU.prototype,"compactTitleClass",null);_.T([_.b({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],nU);
_.z(nU,"ytd-compact-video-renderer",function(){if(YI8!==void 0)return YI8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return YI8=M},{mode:_.VO("kevlar_poly_si_batch_j067")?1:2});var WJp;_.hC("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Et=function(){return _.Q.apply(this,arguments)||this};
_.l(Et,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Et.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Et.prototype,"data",void 0);_.T([_.b({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Et);
_.z(Et,"ytd-counterfactual-renderer",function(){if(WJp!==void 0)return WJp;var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return WJp=M},{mode:1});var AFv;var Nw=function(){var M=_.Q.apply(this,arguments)||this;M.hidden=!1;return M};
_.l(Nw,_.Q);Nw.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.AL().resolve(_.vR).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Nw.prototype.computeHidden=function(M){return!!M};
_.Yd.Object.defineProperties(Nw.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}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Nw.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.r("design:type",Object)],Nw.prototype,"hidden",void 0);_.T([_.c("data.label"),_.r("design:type",String),_.r("design:paramtypes",[])],Nw.prototype,"label",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Nw.prototype,"value",null);
_.T([_.b({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Nw);
_.z(Nw,"ytd-dropdown-item-renderer",function(){if(AFv!==void 0)return AFv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return AFv=M},{mode:1});var dLd;var vQI;var ko=function(){return _.Q.apply(this,arguments)||this};
_.l(ko,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ko.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ko.prototype,"data",void 0);_.T([_.B({computed:"getSimpleString(data.label)"}),_.r("design:type",String)],ko.prototype,"label",void 0);_.T([_.b({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],ko);
_.z(ko,"ytd-navigation-dropdown-item-renderer",function(){if(vQI!==void 0)return vQI;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return vQI=M},{mode:1});var pU=function(){var M=_.Q.apply(this,arguments)||this;M.disabled=!1;M.value="";M.noLabelFloat=!1;M.noUnderline=!1;M.usePrimaryColor=!1;M.hasBackground=!1;M.verticalAlign="top";M.autosize=!1;M.minAutosizeWidth=100;M.autosizeFont="14px Roboto";return M};
_.l(pU,_.Q);_.N=pU.prototype;_.N.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"}}}};
_.N.open=function(){this.inputEl.open()};
_.N.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.N.dataChanged=function(){this.reset()};
_.N.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("value-changed",this.value))};
_.N.stopPropagation=function(M){M.stopPropagation()};
_.N.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var M=this.canvas.getContext("2d");M&&(M.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(M.measureText(this.inputEl.value).width)+24)+"px")}};
_.N.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var M=0,q=this.data.entries.length;M<q;M++){var G=this.data.entries[M],K;for(K in G)if(G.hasOwnProperty(K)){var n=G[K];if("isSelected"in n&&n.isSelected)return"stringValue"in n?n.stringValue||"":"int32Value"in n?n.int32Value||0:0}}return null};
_.N.updateValueFromBinding=function(M){this.value=M.detail.value};
_.Yd.Object.defineProperties(pU.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 M=0,q=this.data.entries.length;M<q;M++){var G=this.data.entries[M],K;for(K in G)if(G.hasOwnProperty(K)){var n=G[K];if("isSelected"in n&&n.isSelected&&"label"in n)return this.ytRendererBehavior.getSimpleString(n.label)}}return null}}});
pU.prototype.autoSizeLabel=pU.prototype.autoSizeLabel;pU.prototype.stopPropagation=pU.prototype.stopPropagation;pU.prototype.valueChangedForBinding=pU.prototype.valueChangedForBinding;pU.prototype.dataChanged=pU.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],pU.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],pU.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],pU.prototype,"disabled",void 0);_.T([_.B(),_.r("design:type",Object)],pU.prototype,"value",void 0);_.T([_.B(),_.r("design:type",Object)],pU.prototype,"noLabelFloat",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],pU.prototype,"noUnderline",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],pU.prototype,"theme",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],pU.prototype,"usePrimaryColor",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],pU.prototype,"hasBackground",void 0);_.T([_.B(),_.r("design:type",Object)],pU.prototype,"verticalAlign",void 0);_.T([_.B(),_.r("design:type",Object)],pU.prototype,"autosize",void 0);_.T([_.B(),_.r("design:type",Object)],pU.prototype,"minAutosizeWidth",void 0);_.T([_.B(),_.r("design:type",Object)],pU.prototype,"autosizeFont",void 0);
_.T([_.ET("#entries"),_.r("design:type",Object)],pU.prototype,"entries",void 0);_.T([_.ET("#input"),_.r("design:type",Object)],pU.prototype,"inputEl",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pU.prototype,"dataChanged",null);_.T([_.yO("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pU.prototype,"valueChangedForBinding",null);
_.T([_.GQ("iron-overlay-opened"),_.GQ("iron-overlay-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],pU.prototype,"stopPropagation",null);_.T([_.GQ("iron-select"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pU.prototype,"autoSizeLabel",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],pU.prototype,"label",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],pU);
_.z(pU,"ytd-dropdown-renderer",function(){if(dLd!==void 0)return dLd;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return dLd=M},{mode:1});var hr$;var yc=function(){var M=_.Q.apply(this,arguments)||this;M.isConstrainedList=!1;return M};
_.l(yc,_.Q);yc.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"}}}};
yc.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
yc.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
yc.prototype.computeViewAllHidden=function(M,q){return M||!q.viewAllEndpoint};
yc.prototype.fillRestIfNoShowMore=yc.prototype.fillRestIfNoShowMore;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],yc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],yc.prototype,"ytLazyListBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yc.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yc.prototype,"isConstrainedList",void 0);_.T([_.yO("data","canShowMore"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yc.prototype,"fillRestIfNoShowMore",null);_.T([_.b({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],yc);
_.z(yc,"ytd-expanded-shelf-contents-renderer",function(){if(hr$!==void 0)return hr$;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return hr$=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var tzP;var LU=function(){return _.Q.apply(this,arguments)||this};
_.l(LU,_.Q);LU.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}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],LU.prototype,"data",void 0);_.T([_.b({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],LU);
_.z(LU,"ytd-feed-channel-filter-header-renderer",function(){if(tzP!==void 0)return tzP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return tzP=M},{mode:1});var O9B;var wKB;var C1v;var Yo=function(){return _.Q.apply(this,arguments)||this};
_.l(Yo,_.Q);_.N=Yo.prototype;_.N.onClick=function(M){var q,G=(q=this.data)==null?void 0:q.sectionEndpoint;!_.b8(_.Zx(M),this.hostElement,["A".toString()])&&G&&_.jP(this.hostElement,"yt-navigate",{endpoint:G})};
_.N.computeHasSectionEndpoint=function(M){return(M==null?void 0:M.sectionEndpoint)!==void 0};
_.N.computeShowHeaderAsLink=function(M){return(M==null?void 0:M.header)!==void 0&&(M==null?void 0:M.sectionEndpoint)!==void 0};
_.N.computeShowSubheaderAsLink=function(M){return(M==null?void 0:M.subheader)!==void 0&&(M==null?void 0:M.sectionEndpoint)!==void 0&&(M==null?void 0:M.header)===void 0};
_.N.getHeaderAsLinkClass=function(M){var q=[],G;(M==null?0:(G=M.headerIcon)==null?0:G.iconType)&&q.push("header-link-active");return q.join(" ")};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Yo.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Yo.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Yo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Yo.prototype,"data",void 0);
_.T([_.B({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Yo.prototype,"hasSectionEndpoint",void 0);_.T([_.B({computed:"computeShowHeaderAsLink(data)"}),_.r("design:type",Boolean)],Yo.prototype,"showHeaderAsLink",void 0);_.T([_.B({computed:"computeShowSubheaderAsLink(data)"}),_.r("design:type",Boolean)],Yo.prototype,"showSubheaderAsLink",void 0);_.T([_.b({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],Yo);
_.z(Yo,"ytd-medical-panel-section-renderer",function(){if(C1v!==void 0)return C1v;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return C1v=M},{mode:1});var Wj=function(){var M=_.Q.apply(this,arguments)||this;M.isExpanded=!1;M.roundedContainer=!0;M.skipRoundingTop=!1;M.toggleExpandableSection=function(){M.isExpanded=!M.isExpanded};
return M};
_.l(Wj,_.Q);
Wj.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]]"}}}}}};
Wj.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Wj.prototype.dataChanged=Wj.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Wj.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Wj.prototype,"isExpanded",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Wj.prototype,"roundedContainer",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Wj.prototype,"skipRoundingTop",void 0);_.T([_.B(),_.r("design:type",Object)],Wj.prototype,"toggleExpandableSection",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wj.prototype,"dataChanged",null);_.T([_.b({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Wj);
_.z(Wj,"ytd-medical-panel-content-renderer",function(){if(wKB!==void 0)return wKB;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return wKB=M},{mode:1});_.hC("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var AU=function(){var M=_.Q.apply(this,arguments)||this;M.roundedContainer=!0;M.extractOverlay=!1;M.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");M.hasTitle=!1;M.linkIcon="OPEN_IN_NEW";M.isDismissed=!1;return M};
_.l(AU,_.Q);AU.prototype.onOverlayConditionsChange=function(){var M=_.f_(this.hostElement).querySelector("ytd-info-panel-content-renderer");M&&(M.set("extractOverlay",this.extractOverlay),M.set("roundedContainer",this.roundedContainer))};
AU.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"}}}};
AU.prototype.computeHasTitle=function(M){return!(M==null||!M.title)};
AU.prototype.onClick=function(M){var q,G=(q=this.data)==null?void 0:q.headerEndpoint;!_.b8(_.Zx(M),this.hostElement,["BUTTON".toString()])&&G&&this.ytComponentBehavior.resolveCommand(G)};
_.Yd.Object.defineProperties(AU.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 M;return((M=this.data)==null?void 0:M.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:M.disableBottomDivider)||!((q=this.data)==null?0:q.title)}}});
AU.prototype.onOverlayConditionsChange=AU.prototype.onOverlayConditionsChange;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],AU.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],AU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],AU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],AU.prototype,"ytdReduxBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],AU.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],AU.prototype,"roundedContainer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],AU.prototype,"extractOverlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],AU.prototype,"amsterdamEnabled",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.r("design:type",Object)],AU.prototype,"hasTitle",void 0);
_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.c("data.background"),_.r("design:type",Object),_.r("design:paramtypes",[])],AU.prototype,"background",null);_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.c("data.titleStyle"),_.r("design:type",Object),_.r("design:paramtypes",[])],AU.prototype,"titleStyle",null);
_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.c("data.titleStyle"),_.r("design:type",Object),_.r("design:paramtypes",[])],AU.prototype,"showLinkIcon",null);_.T([_.B(),_.r("design:type",String)],AU.prototype,"linkIcon",void 0);_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],AU.prototype,"hideDivider",null);
_.T([_.B({selectorArgs:["data.dismissStateEntityKey"],selector:function(M,q){M=_.sX(M.entities,"dismissState",q);return(M==null?void 0:M.isDismissed)||(M==null?void 0:M.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(M==null?void 0:M.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.r("design:type",Object)],AU.prototype,"isDismissed",void 0);_.T([_.KT("roundedContainer","extractOverlay"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AU.prototype,"onOverlayConditionsChange",null);_.T([_.b({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],AU);
_.z(AU,"ytd-info-panel-container-renderer",function(){if(O9B!==void 0)return O9B;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return O9B=M},{mode:1});var aXI;_.hC("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var d0=function(){return _.Q.apply(this,arguments)||this};
_.l(d0,_.Q);d0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
d0.prototype.computeStyle=function(M){return M?M:""};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],d0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],d0.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.r("design:type",String)],d0.prototype,"titleStyle",void 0);
_.T([_.b({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],d0);
_.jo()(d0,"ytd-item-section-header-renderer",function(){if(aXI===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);aXI=M}M=aXI;return M},{allowedProps:["data"],
mode:1});var oQ$;var lX9,XK$=function(){return lX9!==void 0?lX9:lX9=document.createElement("template")};
document.head.appendChild(XK$().content);var P1S;_.vj=new _.$k("VOTING_ANIMATION_CONTROLLER_TOKEN");var cFv=_.U(function(M){var q=M.data;var G=_.pI("div"),K=_.pI("div");M=_.k(_.lQ("VOTE_STATUS_NONE",void 0,"YPH5mf"));var n=M.next().value,E=M.next().value,p=_.No(t2i,function(){var t;return(t=q())==null?void 0:t.entityKey}),y=_.w("web_enable_voting_animation")||_.w("enable_music_web_cairo_voting_animation");
_.SK(function(){var t;((t=q().initialState)==null?0:t.status)&&E(q().initialState.status)});
var Y=function(){var t,O,a=(O=(t=q().initialState)==null?void 0:t.votes)!=null?O:0,g;t=(g=q().initialState)==null?void 0:g.status;return t==="VOTE_STATUS_UPVOTED"?a-1:t==="VOTE_STATUS_DOWNVOTED"?a+1:a},A=function(){return n()==="VOTE_STATUS_UPVOTED"?Y()+1:n()==="VOTE_STATUS_DOWNVOTED"?Y()-1:Y()},v=function(t){var O=t?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
E(O);var a=A(),g=_.AL().resolve(_.WR(_.vj)),D=p();D&&(t&&(D==null?0:D.upvoteDefaultButtonOnTap)?_.Pb(D.upvoteDefaultButtonOnTap,{form:{element:G.value},disableClickTracking:!0}):(D==null?0:D.upvoteToggledButtonOnTap)&&_.Pb(D.upvoteToggledButtonOnTap,{form:{element:G.value},disableClickTracking:!0}));var J;t=(J=D==null?void 0:D.enableOptimisticReordering)!=null?J:q().enableOptimisticReordering;y&&g&&q().itemId&&t&&i9S(g,q().itemId,a,O)},h=function(t){var O=t?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
E(O);var a=A(),g=_.AL().resolve(_.WR(_.vj)),D=p();D&&(t&&(D==null?0:D.downvoteDefaultButtonOnTap)?_.Pb(D.downvoteDefaultButtonOnTap,{form:{element:K.value},disableClickTracking:!0}):(D==null?0:D.downvoteToggledButtonOnTap)&&_.Pb(D.downvoteToggledButtonOnTap,{form:{element:K.value},disableClickTracking:!0}));var J;t=(J=D==null?void 0:D.enableOptimisticReordering)!=null?J:q().enableOptimisticReordering;y&&g&&q().itemId&&t&&i9S(g,q().itemId,a,O)};
M={};M=_.Hb("ytVotingViewModelVoteCount",(M.ytVotingViewModelVoteCountDisabled=function(){return q().isDisabled},M));
return _.W("voting-view-model",{class:"ytVotingViewModelHost"},_.W("div",{el:G},_.W(_.yu,{data:function(){var t=_.C(q().upvoteButton,_.M1);return{toggleButtonViewModel:Object.assign({},t,{isToggled:n()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(t){return _.W(_.Dj,{data:t.data,
onToggle:v})}})),_.W("div",{class:M},function(){var t,O,a;
return n()==="VOTE_STATUS_UPVOTED"?(t=q().initialState)==null?void 0:t.compactVotesUpvoted:n()==="VOTE_STATUS_DOWNVOTED"?(O=q().initialState)==null?void 0:O.compactVotesDownvoted:(a=q().initialState)==null?void 0:a.compactVotes}),_.W("div",{el:K},_.W(_.yu,{data:function(){var t=_.C(q().downvoteButton,_.M1);
return{toggleButtonViewModel:Object.assign({},t,{isToggled:n()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(t){return _.W(_.Dj,{data:t.data,
onToggle:h})}})))},"Tc");_.S5(_.U(function(M){var q=M.data;return _.W("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.W("div",{class:_.Hb("ytEngagementBarViewModelEngagementBarWrapper",M.className)},_.W(_.yu,{data:function(){return q().actions}},{votingViewModel:cFv})))},"Uc"),"engagement-bar-view-model",{props:{data:_.Hz,
className:_.Hz}});var hU=function(){var M=_.Q.apply(this,arguments)||this;M.playlistVotingAnimationEnabled=_.w("web_enable_voting_animation");M.downloadProgress=0;M.transferState="TRANSFER_STATE_UNKNOWN";M.downloadState="DOWNLOAD_STATE_UNKNOWN";M.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";M.offlineVideoPolicyExpirationTimestamp=0;return M};
_.l(hU,_.Q);_.N=hU.prototype;_.N.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"}}}};
_.N.canReorderChanged=function(){this.persistentDragHandle=_.w("kevlar_playlist_drag_handles")&&this.canReorder};
_.N.onDrag=function(){if(this.thumbnail){var M=_.f_(this.thumbnail).querySelector("yt-image");M&&(M.shouldRenderLazy=!1)}};
_.N.onMenuOverlayChanged=function(M,q){this.menuOpened=q};
_.N.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.N.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.N.onContentsTap=function(M){var q,G=(q=this.data)==null?void 0:q.serviceEndpoints;if(G&&G.length===1&&_.C(G[0],lRy)&&!_.b8(_.Zx(M),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(G[0]);else{var K;(q=(K=this.data)==null?void 0:K.navigationEndpoint)&&_.w("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?gQM(_.AL().resolve(_.lq),q):(_.Bg().playlistSuggestionsShelfActivation=
!0,_.Byd(_.AL().resolve(_.lq),q)):q&&!_.b8(_.Zx(M),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.w("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.jP(this.hostElement,"yt-navigate",{endpoint:q}):this.ytComponentBehavior.resolveCommand(q))}};
_.N.computeStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.N.computeThumbnailWidth=function(M){return M==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.N.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=yaY(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))}};
_.N.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.N.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.N.dataChanged=function(){if(this.data){var M,q,G,K=((M=this.downloadRenderData)==null?void 0:M.badges)&&((q=this.downloadRenderData)==null?void 0:q.badges)!==((G=this.data)==null?void 0:G.badges),n,E,p;M=((n=this.downloadRenderData)==null?void 0:n.thumbnailOverlays)&&((E=this.downloadRenderData)==null?void 0:E.thumbnailOverlays)!==((p=this.data)==null?void 0:p.thumbnailOverlays);(!this.downloadRenderData||K||M)&&this.downloadStateChanged()}};
_.N.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var M,q,G=(M=this.data.menu)==null?void 0:(q=M.menuRenderer)==null?void 0:q.items;if(G)for(M=_.k(G),q=M.next();!q.done;q=M.next())if(q=q.value,G=void 0,_.C((G=q.menuServiceItemRenderer)==null?void 0:G.serviceEndpoint,_.ri)){var K=G=void 0,n=void 0;q=(G=q)==null?void 0:(K=G.menuServiceItemRenderer)==null?void 0:(n=K.serviceEndpoint)==null?void 0:n.playlistEditEndpoint;n=K=void 0;if(G=(K=q)==null?void 0:(n=K.actions)==null?void 0:
n[0])K=void 0,G.setVideoId=(K=this.data)==null?void 0:K.setVideoId;n=K=G=void 0;if(q=(G=q)==null?void 0:(K=G.clientActions)==null?void 0:(n=K[0])==null?void 0:n.playlistRemoveVideosAction)G=void 0,q.setVideoIds=[(G=this.data)==null?void 0:G.setVideoId]}}};
_.Yd.Object.defineProperties(hU.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
hU.prototype.setVideoIdChanged=hU.prototype.setVideoIdChanged;hU.prototype.dataChanged=hU.prototype.dataChanged;hU.prototype.downloadStateChanged=hU.prototype.downloadStateChanged;hU.prototype.onMenuOverlayChanged=hU.prototype.onMenuOverlayChanged;hU.prototype.canReorderChanged=hU.prototype.canReorderChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],hU.prototype,"ytdReduxBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],hU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],hU.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],hU.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],hU.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hU.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],hU.prototype,"canReorder",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],hU.prototype,"menuOpened",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],hU.prototype,"handleIsHovered",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],hU.prototype,"persistentDragHandle",void 0);_.T([_.B(),_.r("design:type",Object)],hU.prototype,"downloadRenderData",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],hU.prototype,"styleType",void 0);_.T([_.B({computed:"computeThumbnailWidth(data.style)"}),_.r("design:type",Number)],hU.prototype,"thumbnailWidth",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],hU.prototype,"isDownloads",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],hU.prototype,"playlistVotingAnimationEnabled",void 0);
_.T([_.B({selector:ic,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],hU.prototype,"downloadProgress",void 0);_.T([_.B(),_.r("design:type",Number)],hU.prototype,"relativeDateReference",void 0);_.T([_.B({selector:_.Xp,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],hU.prototype,"transferState",void 0);_.T([_.B({selector:$tu,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],hU.prototype,"downloadState",void 0);
_.T([_.B({selector:b3u,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],hU.prototype,"offlinePolicyAction",void 0);_.T([_.B({selector:Utu,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],hU.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.T([_.B({selector:zCe,selectorArgs:["data.videoId"]}),_.r("design:type",Object)],hU.prototype,"entityInfo",void 0);_.T([_.B({selector:_.at}),_.r("design:type",Boolean)],hU.prototype,"miniplayerIsActive",void 0);
_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],hU.prototype,"playlistVideoId",null);_.T([_.ET("#thumbnail"),_.r("design:type",Object)],hU.prototype,"thumbnail",void 0);_.T([_.yO("canReorder"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hU.prototype,"canReorderChanged",null);
_.T([_.GQ("yt-menu-overlay-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Boolean]),_.r("design:returntype")],hU.prototype,"onMenuOverlayChanged",null);_.T([_.yO("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hU.prototype,"downloadStateChanged",null);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hU.prototype,"dataChanged",null);_.T([_.yO("data.setVideoId"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hU.prototype,"setVideoIdChanged",null);_.T([_.b({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],hU);
_.z(hU,"ytd-playlist-video-renderer",function(){if(P1S!==void 0)return P1S;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);M.content.insertBefore(XK$().content.cloneNode(!0),M.content.firstChild);return P1S=M},{mode:1});var Qsp;var tU=function(){return _.Q.apply(this,arguments)||this};
_.l(tU,_.Q);_.T([_.B(),_.r("design:type",Object)],tU.prototype,"data",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tU.prototype,"rendererBehavior",void 0);_.T([_.b({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],tU);
_.z(tU,"ytd-premium-browse-footer-renderer",function(){if(Qsp!==void 0)return Qsp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Qsp=M},{mode:1});var IX8;var Ot=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return M};
_.l(Ot,_.Q);_.N=Ot.prototype;_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.handleDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.N.computeHeaderLogoThumbnail=function(M,q){if(M)return q?M.darkLogo:M.lightLogo};
_.N.computeHeaderLogoHeight=function(M,q){var G,K,n;return(M=(G=this.computeHeaderLogoThumbnail(M,q))==null?void 0:(K=G.thumbnails)==null?void 0:(n=K[0])==null?void 0:n.height)&&M%31===0?"31":"24"};
_.N.computeHeaderLogoMarginBottom=function(M,q){return this.computeHeaderLogoHeight(M,q)==="24"?"0":"-7"};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Ot.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ot.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],Ot.prototype,"isDarkTheme",void 0);_.T([_.B({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.r("design:type",Object)],Ot.prototype,"themeLogo",void 0);
_.T([_.B({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.r("design:type",String)],Ot.prototype,"logoHeight",void 0);_.T([_.B({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.r("design:type",String)],Ot.prototype,"logoMarginBottom",void 0);_.T([_.b({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],Ot);
_.z(Ot,"ytd-primetime-promo-header-renderer",function(){if(IX8!==void 0)return IX8;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return IX8=M},{mode:1});var DLl;_.w0=_.U(function(M){var q=M.className;var G=M.data;var K=M.isOverlay;var n=M.maxLinesOverride;var E=M.useMediumText;var p=function(){return G().alwaysShowTruncationText},y=function(){return G().truncationText},Y=function(){return E!==void 0&&E()?"medium":"small"},A=function(){return K!==void 0&&K()?"overlay":"default"},v=function(){var a,g;
return(g=(a=_.C(G().rendererContext,_.NQ))==null?void 0:a.label)!=null?g:""};
M=_.k(_.lQ(!1,void 0,"OKr1o"));var h=M.next().value,t=M.next().value;M=_.sq(function(){G().expandOnTap&&t(!h());return!1});
var O={};return _.W("yt-description-preview-view-model",{el:_.bm(_.CL(function(){return G().rendererContext})),
class:_.Hb("ytDescriptionPreviewViewModelHost",q,(O.ytDescriptionPreviewViewModelClickable=function(){var a;return!((a=_.C(G().rendererContext,MtF))==null||!a.onTap)},O.ytDescriptionPreviewViewModelIsOverlay=K,O)),
"on:click":M},_.W(_.d,{cond:function(){return G().description},
then:function(a){return _.W(_.d,{cond:h,then:function(){var g={};return _.W("div",{class:_.Hb("ytDescriptionPreviewViewModelDescription",(g.ytDescriptionPreviewViewModelDescriptionMediumText=E,g))},_.W(_.Ft,{text:a}))},
else:function(){return _.W(zOM,{text:a,alwaysShowTruncationText:p,truncationText:y,maxLines:function(){var g;return(g=n==null?void 0:n())!=null?g:G().maxLines},
textStyle:A,accessibilityLabel:v,textSize:Y})}})}}))},"Vc");
_.w0.idomCompat=!0;var JFv=_.U(function(M){var q=_.sq(function(n){var E;(E=M.onClick)==null||E.call(M,n)}),G={},K={};
return _.W("yt-shelf-header-layout",{class:_.Hb("yt-shelf-header-layout",(G["yt-shelf-header-layout--disable-horizontal-padding"]=M.disableHorizontalPadding,G["yt-shelf-header-layout--disable-vertical-padding"]=M.disableVerticalPadding,G["yt-shelf-header-layout--responsive"]=M.useResponsiveLayout,G["yt-shelf-header-layout--narrow"]=function(){var n,E;return((n=M.useResponsiveLayout)==null?void 0:n.call(M))&&((E=M.forceSmallLayout)==null?void 0:E.call(M))},G["yt-shelf-header-layout--is-overlay"]=M.isOverlay,
G["yt-shelf-header-layout--tappable"]=M.isInteractive,G)),
"on:click":q,tabindex:function(){var n;return((n=M.isInteractive)==null?0:n.call(M))?0:void 0}},_.W("div",{class:"yt-shelf-header-layout__header-row"},_.W(_.d,{cond:M.leadingIcon,
then:function(n){return _.W("div",{class:"yt-shelf-header-layout__leading-icon"},_.W(_.np,{icon:n}))},
else:function(){return _.W(_.d,{cond:M.hasLeadingImage,then:function(){var n,E={};return _.W("div",{class:_.Hb("yt-shelf-header-layout__leading-image",(E["yt-shelf-header-layout__leading-image--circular-image"]=M.circularImage,E))},(n=M.leadingImage)==null?void 0:n.call(M))}})}}),_.W("div",{class:"yt-shelf-header-layout__label-container"},_.W(_.d,{cond:M.hasSuperlabel,
then:function(){var n;return _.W("div",{class:"yt-shelf-header-layout__superlabel"},(n=M.superlabel)==null?void 0:n.call(M))}}),_.W("div",{class:"yt-shelf-header-layout__title-row"},_.W(uL$,{text:M.title,
className:_.Hb("yt-shelf-header-layout__title",(K["yt-shelf-header-layout__title--small-title"]=M.forceSmallLayout,K)),tagLevel:M.tagLevel}),_.W(_.d,{cond:M.hasDetail,then:function(){var n;return _.W("div",{class:"yt-shelf-header-layout__detail"},(n=M.detail)==null?void 0:n.call(M))}})),_.W(_.d,{cond:M.hasSublabel,
then:function(){var n;return _.W("div",{class:"yt-shelf-header-layout__sublabel"},(n=M.sublabel)==null?void 0:n.call(M))}})),_.W(_.d,{cond:M.hasTrailingActions,
then:function(){var n;return _.W("div",{class:"yt-shelf-header-layout__trailing-actions"},(n=M.trailingActions)==null?void 0:n.call(M))}})),_.W(_.d,{cond:M.hasBottomAccessory,
then:function(){var n;return _.W("div",{class:"yt-shelf-header-layout__bottom-accessory"},(n=M.bottomAccessory)==null?void 0:n.call(M))}}))},"Wc");
JFv.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0,bottomAccessory:!0}};
var uL$=_.U(function(M){var q=M.text;var G=M.className;var K=M.tagLevel;return _.W(_.Ub,null,_.W(_.J3,{when:function(){return(K==null?void 0:K())===0}},function(){return _.W("h2",{class:G},q())}),_.W(_.J3,{when:function(){return(K==null?void 0:K())===1}},function(){return _.W("h3",{class:G},q())}),_.W(_.J3,{when:function(){return(K==null?void 0:K())===2}},function(){return _.W("h4",{class:G},q())}),_.W(_.Zk,null,function(){return _.W("h2",{class:G},q())}))},"Xc");var UL$,Z9p,b9$;_.CU=_.U(function(M){var q=M.className;var G=M.data;var K=M.disableHorizontalPadding;var n=M.disableVerticalPadding;var E=M.forceSmallLayout;var p=M.useResponsiveLayout;M=M.isOverlay;return _.W("yt-section-header-view-model",{class:_.Hb("ytSectionHeaderViewModelHost",q),style:_.Kp({"background-color":function(){return Gh(G().backgroundColor)?_.C_(Gh(G().backgroundColor)):void 0}})},_.W(JFv,{hasDetail:!1,
title:function(){return _.W(_.Ft,{text:function(){return G().headline}})},
hasTitle:!0,sublabel:function(){return _.W(Z9p,{data:G})},
hasSublabel:function(){return!!G().sublabel||!!G().bottomBadge},
superlabel:function(){return _.W(b9$,{data:G})},
hasSuperlabel:function(){return!!G().superlabel||!!G().topBadge},
leadingImage:function(){return _.W(UL$,{leadingAccessory:function(){return G().leadingAccessory}})},
hasLeadingImage:function(){return!!G().leadingAccessory},
trailingActions:function(){return _.W(_.yu,{data:function(){return G().trailingActions}},{flexibleActionsViewModel:_.Sj})},
hasTrailingActions:function(){return!!G().trailingActions},
disableHorizontalPadding:K,disableVerticalPadding:n,forceSmallLayout:E,useResponsiveLayout:p,isOverlay:M,isInteractive:function(){return!!_.O0(G().rendererContext)},
onClick:function(y){if(_.wx(G().rendererContext)){var Y=_.O0(G().rendererContext);Y&&_.oM(Y,{form:{element:y.target,event:y}})}},
bottomAccessory:function(){return _.W(_.yu,{data:function(){return G().bottomAccessory}},{descriptionPreviewViewModel:function(y){return _.W(_.w0,{data:y.data,
useMediumText:!0})}})},
hasBottomAccessory:function(){return!!G().bottomAccessory}}))},"Yc");
UL$=_.U(function(M){var q=M.leadingAccessory;return _.W(_.dU,null,_.W(_.d,{cond:function(){var G;return(G=q().image)!=null?G:_.cO(q().themedImage)},
then:function(G){return _.W(_.Jj,{data:G,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.W(_.d,{cond:function(){return _.C(q().avatar,_.aZ)},
then:function(G){return _.W(_.zo,{data:G})}}))},"Zc");
Z9p=_.U(function(M){var q=M.data;return _.W(_.dU,null,_.W(_.d,{cond:function(){return _.C(q().bottomBadge,KF9)},
then:function(G){var K={};return _.W(_.Yl,{data:G,class:_.Hb((K.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!G()&&!!q().sublabel},K))})}}),_.W(_.d,{cond:function(){return q().sublabel},
then:function(G){return _.W(_.Ft,{text:G})}}))},"$c");
b9$=_.U(function(M){var q=M.data;return _.W(_.dU,null,_.W(_.d,{cond:function(){return _.C(q().topBadge,KF9)},
then:function(G){var K={};return _.W(_.Yl,{data:G,class:_.Hb((K.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!G()&&!!q().superlabel},K))})}}),_.W(_.d,{cond:function(){return q().superlabel},
then:function(G){return _.W(_.Ft,{text:G})}}))},"ad");_.S5(_.CU,"yt-section-header-view-model",{props:{data:_.Hz,className:_.Hz,disableHorizontalPadding:_.Hz,disableVerticalPadding:_.Hz,forceSmallLayout:_.Hz,useResponsiveLayout:_.Hz,isOverlay:_.Hz}});_.hC("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var ad=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return M};
_.l(ad,_.Q);_.N=ad.prototype;_.N.attached=function(){this.requestElementsPerRow()};
_.N.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"}}}};
_.N.onDataChange=function(){var M=this;_.yb(this,function(){M.updateItemVisibility()})};
_.N.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M,this.updateItemVisibility())};
_.N.updateItemVisibility=function(){var M=this;this.data&&this.data.panels&&_.f_(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(q,G){q.hidden=G>M.elementsPerRow-1})};
_.N.requestElementsPerRow=function(){_.jP(this.hostElement,"yt-request-elements-per-row")};
ad.prototype.onDataChange=ad.prototype.onDataChange;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],ad.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ad.prototype,"actionHandlerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],ad.prototype,"data",void 0);_.T([_.B({value:3}),_.r("design:type",Number)],ad.prototype,"elementsPerRow",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ad.prototype,"onDataChange",null);_.T([_.b({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],ad);
_.z(ad,"ytd-primetime-promo-renderer",function(){if(DLl!==void 0)return DLl;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return DLl=M},{mode:1});var xLP;var od=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return M};
_.l(od,_.Q);od.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
od.prototype.handleButtonRefreshAction=function(M){if(M=_.C(M,aDJ))this.set("data.button",M.membershipButton),this.notifyPath("data.button")};
_.Yd.Object.defineProperties(od.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:(q=M.avatars)==null?void 0:q.slice(0,8))||[]}}});
_.T([_.B(),_.r("design:type",Object)],od.prototype,"data",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],od.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],od.prototype,"rendererBehavior",void 0);_.T([_.c("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],od.prototype,"avatars",null);
_.T([_.b({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],od);
_.z(od,"ytd-recognition-shelf-renderer",function(){if(xLP!==void 0)return xLP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return xLP=M},{mode:1});var zr2;var mL$;var ll=function(){var M=_.Q.apply(this,arguments)||this;M.modernButtons=_.w("web_modern_buttons");return M};
_.l(ll,_.Q);_.N=ll.prototype;
_.N.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]]"}}}}}};
_.N.dataChanged=function(){this.collapsed=!0};
_.N.computeVisibleItems=function(M,q){return M!==void 0&&M.items?q?M.items.slice(0,this.data.collapsedItemCount):M.items:[]};
_.N.computeHideShowMore=function(M,q,G){return M>=q||!G};
_.N.computeHideShowAll=function(M,q,G){return!(M&&q)||G};
_.N.onMoreClick=function(){this.collapsed=!1};
_.Yd.Object.defineProperties(ll.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.w("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.wP("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.w("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
ll.prototype.dataChanged=ll.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ll.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ll.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ll.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],ll.prototype,"isSearch",void 0);
_.T([_.B({computed:"computeVisibleItems(data,collapsed)"}),_.r("design:type",Array)],ll.prototype,"visibleItems",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],ll.prototype,"collapsed",void 0);_.T([_.B({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.r("design:type",Boolean)],ll.prototype,"hideShowMore",void 0);
_.T([_.B({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.r("design:type",Boolean)],ll.prototype,"hideShowAll",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ll.prototype,"modernButtons",void 0);_.T([_.c("isSearch"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ll.prototype,"typographyBump",null);
_.T([_.c("isSearch"),_.r("design:type",Object),_.r("design:paramtypes",[])],ll.prototype,"lockupExperiments",null);_.T([_.c("isSearch"),_.r("design:type",String),_.r("design:paramtypes",[])],ll.prototype,"thumbnailWidth",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ll.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],ll);
_.z(ll,"ytd-vertical-list-renderer",function(){if(mL$!==void 0)return mL$;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return mL$=M},{mode:1});var SIv=_.DQ(["#"]);_.hC("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Xd=function(){var M=_.Q.apply(this,arguments)||this;M.isConstrainedList=!1;return M};
_.l(Xd,_.Q);_.N=Xd.prototype;
_.N.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"}}}};
_.N.computeThumbnailStyle=function(M){return M||""};
_.N.computePlaceAnnotationUnderTitle=function(){var M;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((M=this.data)==null?void 0:M.thumbnailStyle)||"")};
_.N.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M)||_.NLj(SIv)};
_.N.computeIsPromoShelf=function(M){var q;return(M=M==null?void 0:(q=M[0])==null?void 0:q.metadataBadgeRenderer)?M.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.N.computePlaceBadgeBesideTitle=function(M){var q;return(M==null?0:(q=M[0])==null?0:q.metadataBadgeRenderer)?!this.computeIsPromoShelf(M):!1};
_.N.computeMenuIcon=function(M){return this.computeIsPromoShelf(M)?"yt-icons:more_vert":"yt-icons:more"};
_.N.onDataChange=function(){var M,q;((M=this.data)==null?0:(q=M.content)==null?0:q.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.N.onLockupRequested=function(M){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&M.detail&&M.detail.videoIds){for(var q=this.data.content.gridRenderer.items,G=new Set,K=_.k(M.detail.videoIds),n=K.next();!n.done;n=K.next())G.add(n.value);M.detail.returnValue=q.filter(function(E){return E.gridVideoRenderer&&E.gridVideoRenderer.videoId&&G.has(E.gridVideoRenderer.videoId)}).map(function(E){return E.gridVideoRenderer})}};
_.N.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Xd.prototype.onLockupRequested=Xd.prototype.onLockupRequested;Xd.prototype.onDataChange=Xd.prototype.onDataChange;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Xd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],Xd.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Xd.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Xd.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.uz),_.r("design:type",Object)],Xd.prototype,"ironResizableBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Xd.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],Xd.prototype,"isSearch",void 0);_.T([_.B(),_.r("design:type",Object)],Xd.prototype,"isConstrainedList",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("kevlar_fluid_dismiss")}}),
_.r("design:type",Boolean)],Xd.prototype,"enableFluidDismiss",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.r("design:type",String)],Xd.prototype,"thumbnailStyle",void 0);_.T([_.B({computed:"computeMenuIcon(data.badges)"}),_.r("design:type",String)],Xd.prototype,"menuIcon",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsPromoShelf(data.badges)"}),_.r("design:type",Boolean)],Xd.prototype,"featuredPromo",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xd.prototype,"onDataChange",null);_.T([_.GQ("yt-lockup-requested"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Xd.prototype,"onLockupRequested",null);_.T([_.b({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Xd);
_.z(Xd,"ytd-shelf-renderer",function(){if(zr2!==void 0)return zr2;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return zr2=M},{mode:1});var TyM;var Pj=function(){return _.Q.apply(this,arguments)||this};
_.l(Pj,_.Q);Pj.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Yd.Object.defineProperties(Pj.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Pj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Pj.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Pj.prototype,"data",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Pj.prototype,"isPlaylist",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Pj.prototype,"isClipList",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Pj.prototype,"isPlaylistPageWithFilters",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Pj.prototype,"hasTitle",null);_.T([_.B(),_.c("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.r("design:type",Object),_.r("design:paramtypes",[])],Pj.prototype,"isRightAligned",null);
_.T([_.b({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],Pj);
_.z(Pj,"ytd-sort-filter-header-renderer",function(){if(TyM!==void 0)return TyM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return TyM=M},{mode:1});var rFP;var il=function(){var M=_.Q.apply(this,arguments)||this;M.enableRightArrowHidden=_.w("channel_details_shelf_resize_observer")&&!!window.ResizeObserver;return M};
_.l(il,_.Q);il.prototype.attached=function(){var M=this;this.enableRightArrowHidden&&(this.JSC$16516_throttledOnResize=new _.qA(function(){var q;(q=M.ytdHorizontalListBehavior)==null||q.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var q;
(q=M.JSC$16516_throttledOnResize)==null||q.fire()}),this.resizeObserver.observe(this.hostElement))};
il.prototype.detached=function(){if(this.enableRightArrowHidden){var M;(M=this.resizeObserver)==null||M.disconnect();var q;(q=this.JSC$16516_throttledOnResize)==null||q.dispose()}};
il.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]]"}}}}}};
il.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Yd.Object.defineProperties(il.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.w("enable_creator_details_shelf_m2")){var M=[],q;((q=this.data)==null?0:q.creatorVideosButton)&&M.push(this.data.creatorVideosButton);var G;((G=this.data)==null?0:G.creatorAboutButton)&&M.push(this.data.creatorAboutButton);q=_.k(this.data.creatorCustomUrlButtons||[]);for(G=q.next();!G.done;G=q.next())M.push(G.value);return M}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.w("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],il.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],il.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.pi.YtdHorizontalListBehavior),_.r("design:type",Object)],il.prototype,"ytdHorizontalListBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],il.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],il.prototype,"engagementPanel",void 0);
_.T([_.B(),_.r("design:type",Object)],il.prototype,"enableRightArrowHidden",void 0);_.T([_.c("enableRightArrowHidden","atEnd"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],il.prototype,"hideRightArrow",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],il.prototype,"creatorCustomUrlButtons",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data","creatorCustomUrlButtons"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],il.prototype,"showCreatorCustomUrlButtons",null);_.T([_.c("showCreatorCustomUrlButtons"),_.r("design:type",Number),_.r("design:paramtypes",[])],il.prototype,"channelAvatarSize",null);_.T([_.b({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],il);
_.z(il,"ytd-video-description-infocards-section-renderer",function(){if(rFP!==void 0)return rFP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return rFP=M},{mode:_.VO("kevlar_poly_si_batch_j067")?1:2});var jsv;var cj=function(){return _.Q.apply(this,arguments)||this};
_.l(cj,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],cj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],cj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],cj.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.infoIcon)"}),_.r("design:type",Object)],cj.prototype,"infoIcon",void 0);_.T([_.b({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],cj);
_.z(cj,"ytd-eom-settings-disclaimer-renderer",function(){if(jsv!==void 0)return jsv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return jsv=M},{mode:1});var Vzp;var g0=function(){return _.Q.apply(this,arguments)||this};
_.l(g0,_.Q);_.Yd.Object.defineProperties(g0.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.suppressPaddingDisclaimer)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],g0.prototype,"componentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],g0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],g0.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],g0.prototype,"suppressPaddingDisclaimer",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],g0);
_.z(g0,"ytd-product-list-header-renderer",function(){if(Vzp!==void 0)return Vzp;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Vzp=M},{mode:1});var Rrd;var Bj=function(){return _.Q.apply(this,arguments)||this};
_.l(Bj,_.Q);Bj.prototype.computeThumbnailStyle=function(M){if(M&&(M=_.w2(M)))return"background-color:"+M+";"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Bj.prototype,"rendererBehaviors",void 0);_.T([_.B(),_.r("design:type",Object)],Bj.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],Bj);
_.z(Bj,"ytd-hashtag-tile-renderer",function(){if(Rrd!==void 0)return Rrd;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Rrd=M},{mode:1});var fX$;var Qc=function(){return _.Q.apply(this,arguments)||this};
_.l(Qc,_.Q);Qc.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}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Qc.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Qc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Qc.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],Qc);
_.z(Qc,"ytd-sponsorships-alert-renderer",function(){if(fX$!==void 0)return fX$;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return fX$=M},{mode:1});var FJM;var Id=function(){return _.Q.apply(this,arguments)||this};
_.l(Id,_.Q);Id.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Yd.Object.defineProperties(Id.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.w("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.w("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.T([_.P(_.TU),_.r("design:type",Object)],Id.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],Id.prototype,"ytdLockupBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Id.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Id.prototype,"ytRendererBehavior",void 0);_.T([_.B({selector:_.o2}),_.r("design:type",Object)],Id.prototype,"isGridViewEnabled",void 0);
_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Id.prototype,"watchFeedBigThumbs",null);_.T([_.c("isGridViewEnabled"),_.B({reflectToAttribute:!0}),_.r("design:type",String),_.r("design:paramtypes",[])],Id.prototype,"thumbnailWidth",null);_.T([_.B(),_.r("design:type",Object)],Id.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],Id);
_.z(Id,"ytd-compact-movie-renderer",function(){if(FJM!==void 0)return FJM;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return FJM=M},{mode:1});var H9I;var er8;var $LI=_.R9("HTML_DIR")==="rtl",Dz=function(){var M=_.Q.apply(this,arguments)||this;M.engagementPanel=!1;M.maxLines=2;M.expandButtonOffset=0;M.showExpandButton=!1;M.isTruncated=!1;M.isExpanded=!1;M.currentSnippetType=2;M.alwaysShowExpandButton=!1;M.JSC$16533_lastWidth=NaN;M.observer=null;M.left=0;M.right=0;M.mid=0;M.longestSnippetLength=0;M.isFinalSnippet=!1;M.isFirstMutation=!1;M.isResetMutation=!1;M.OVERFLOW_THRESHOLD=5;return M};
_.l(Dz,_.Q);_.N=Dz.prototype;_.N.onClick=function(M){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.b8(_.Zx(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var q;if((q=window.getSelection())==null||!q.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.N.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.N.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.N.updateTextOnSnippetTypeChange=function(){_.w("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.N.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.N.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.j1(new _.bj("AttributedSnippet is empty when the description is not empty",this.text))};
_.N.mutationCallback=function(){if(this.observer!=null){var M=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var q=Math.floor(M*this.maxLines/8);this.setSnippetText(this.text,q);q!==0||this.attributedTextIsEmpty()||_.j1(new _.bj("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;M=M*this.maxLines/8;this.left=0;var G;this.right=Math.min(M*2,(G=(q=this.simpleText)==null?void 0:q.length)!=null?G:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=
0;this.setSnippetText(this.text,this.mid);this.isFirstMutation=!1}else this.isTruncated=!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset()),this.isFinalSnippet=!0,this.isFirstMutation=!1,this.observer.disconnect(),this.maybeLogWarningForEmptyAttributedSnippet();else{this.isOverflowing()?this.right=this.mid-1:(this.left=this.mid+1,this.longestSnippetLength=this.mid);if(this.left>this.right){if(this.mid===this.longestSnippetLength){this.expandButtonOffset=this.computeExpandButtonOffset();
this.observer.disconnect();this.maybeLogWarningForEmptyAttributedSnippet();return}this.setSnippetText(this.text,this.longestSnippetLength);this.isFinalSnippet=!0}this.mid=Math.floor(this.left+(this.right-this.left)/2);this.setSnippetText(this.text,this.mid)}}};
_.N.mutationObserve=function(M){var q=this;this.observer||(this.observer=new MutationObserver(function(){q.mutationCallback()}));
this.observer.observe(M,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.N.attached=function(){var M=this;_.yb(this,function(){M.resize()})};
_.N.isExpandedChanged=function(){_.jP(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.N.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)};
_.N.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var M="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+(($LI?"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",M);this.snippetContainer.style.setProperty("mask-image",
M)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty($LI?"right":"left",this.expandButtonOffset+"px")};
_.N.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.N.setSnippetText=function(M,q){M||(M={});if(_.IM(M)){var G=Bb(M,q);G.attachmentRuns||G.commandRuns||G.decorationRuns||G.styleRuns||G.alignment||G.lineBreakMode?this.attributedSnippetTextEl?(this.attributedSnippetText={data:Bb(M,q),headerRuns:Zfe(q,this.headerRuns)},this.currentSnippetType=0):_.j1(new _.bj("Tried to set snippet text when HTML element was null",M)):(this.plainSnippetText.textContent=cb(M.content||"",q),this.currentSnippetType=2)}else{a:{G=O6H(M,q);if(G.runs){G=_.k(G.runs);for(var K=
G.next();!K.done;K=G.next())if(K=K.value,K.bold||K.deemphasize||K.italics||K.strikethrough||K.textColor||K.navigationEndpoint||_.C(K,OE)){G=!0;break a}}G=!1}G?this.formattedSnippetText?(this.formattedSnippetText.text=O6H(M,q),this.currentSnippetType=1):_.j1(new _.bj("Tried to set snippet text when HTML element was null",M)):(this.plainSnippetText.textContent=cb(_.UX(M),q),this.currentSnippetType=2)}};
_.N.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.N.attributedTextIsEmpty=function(){var M=this.text;if(!_.IM(M))return!0;var q;return((q=M.content)==null?void 0:q.length)===0?!0:!1};
_.N.resize=function(M){if(this.snippetText){if(M===void 0?0:M)this.JSC$16533_lastWidth=NaN;var q=this.hostElement.offsetWidth;if(q!==this.JSC$16533_lastWidth&&!this.isExpanded)if(this.JSC$16533_lastWidth=q,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;M=0;var G,K;q=Math.min(q*this.maxLines/8*2,(K=(G=this.simpleText)==null?void 0:G.length)!=null?K:0)-1;for(G=0;M<=q;)K=Math.floor(M+(q-M)/2),this.setSnippetText(this.text,K),this.isOverflowing()?q=K-1:(M=K+1,G=K);this.setSnippetText(this.text,G);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.N.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.N.onExpandClick=function(){var M=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.w("inline_expander_reset_focus_killswitch")||_.yb(this,function(){var q;((q=_.AL().resolve(_.WR(_.Nt)))==null?0:q.isKeyBoardInUse())&&_.E4(M.hostElement)});
_.jP(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.N.onCollapseClick=function(){this.collapse();_.jP(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.N.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.N.computeExpandButtonOffset=function(){var M=this.expandSizer;return M?$LI?M.offsetParent?M.offsetParent.offsetWidth-M.offsetWidth-M.offsetLeft:0:M.offsetLeft:0};
_.Yd.Object.defineProperties(Dz.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.IM(this.text)?this.text.content||"":_.UX(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 _.IM(this.text)?!0:this.text&&_.w("web_replace_formatted_with_attributed_string")&&kGi(this.text)?(this.text=_.tj(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}}});
Dz.prototype.onTextChanged=Dz.prototype.onTextChanged;Dz.prototype.updateMaskAndExpandButtonOffset=Dz.prototype.updateMaskAndExpandButtonOffset;Dz.prototype.updateSnippetContainerMaxHeight=Dz.prototype.updateSnippetContainerMaxHeight;Dz.prototype.isExpandedChanged=Dz.prototype.isExpandedChanged;Dz.prototype.updateTextOnSnippetTypeChange=Dz.prototype.updateTextOnSnippetTypeChange;Dz.prototype.updateIsFormattedExpanded=Dz.prototype.updateIsFormattedExpanded;Dz.prototype.updateIsAttributedExpanded=Dz.prototype.updateIsAttributedExpanded;
Dz.prototype.onClick=Dz.prototype.onClick;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Dz.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Dz.prototype,"text",void 0);_.T([_.B(),_.r("design:type",Array)],Dz.prototype,"headerRuns",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Dz.prototype,"engagementPanel",void 0);_.T([_.B(),_.r("design:type",Object)],Dz.prototype,"maxLines",void 0);
_.T([_.B(),_.r("design:type",String)],Dz.prototype,"expandLabel",void 0);_.T([_.B(),_.r("design:type",String)],Dz.prototype,"collapseLabel",void 0);_.T([_.B(),_.r("design:type",Object)],Dz.prototype,"expandCommand",void 0);_.T([_.B(),_.r("design:type",Object)],Dz.prototype,"expandButtonOffset",void 0);_.T([_.c("text"),_.r("design:type",String),_.r("design:paramtypes",[])],Dz.prototype,"simpleText",null);
_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Dz.prototype,"onClick",null);_.T([_.c("text","isExpanded"),_.r("design:type",Object),_.r("design:paramtypes",[])],Dz.prototype,"expandedText",null);_.T([_.c("headerRuns","isExpanded"),_.r("design:type",Object),_.r("design:paramtypes",[])],Dz.prototype,"expandedHeaderRuns",null);
_.T([_.c("text"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Dz.prototype,"hasAttributedStringText",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Dz.prototype,"showExpandButton",void 0);_.T([_.c("collapseLabel","isExpanded"),_.r("design:type",Object),_.r("design:paramtypes",[])],Dz.prototype,"showCollapseButton",null);_.T([_.B(),_.r("design:type",Object)],Dz.prototype,"isTruncated",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Dz.prototype,"isExpanded",void 0);_.T([_.B(),_.r("design:type",Boolean)],Dz.prototype,"isAttributedExpanded",void 0);_.T([_.KT("isExpanded","hasAttributedStringText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Dz.prototype,"updateIsAttributedExpanded",null);_.T([_.B(),_.r("design:type",Boolean)],Dz.prototype,"isFormattedExpanded",void 0);
_.T([_.KT("isExpanded","hasAttributedStringText"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Dz.prototype,"updateIsFormattedExpanded",null);_.T([_.B(),_.r("design:type",Number)],Dz.prototype,"currentSnippetType",void 0);_.T([_.c("currentSnippetType"),_.r("design:type",Object),_.r("design:paramtypes",[])],Dz.prototype,"useAttributedSnippet",null);
_.T([_.c("currentSnippetType"),_.r("design:type",Object),_.r("design:paramtypes",[])],Dz.prototype,"useFormattedSnippet",null);_.T([_.c("currentSnippetType"),_.r("design:type",Object),_.r("design:paramtypes",[])],Dz.prototype,"usePlainSnippet",null);_.T([_.B(),_.r("design:type",Object)],Dz.prototype,"alwaysShowExpandButton",void 0);_.T([_.KT("currentSnippetType"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Dz.prototype,"updateTextOnSnippetTypeChange",null);
_.T([_.B(),_.r("design:type",Object)],Dz.prototype,"attributedSnippetText",void 0);_.T([_.ET("#snippet"),_.r("design:type",HTMLElement)],Dz.prototype,"snippetContainer",void 0);_.T([_.ET("#snippet-text"),_.r("design:type",HTMLElement)],Dz.prototype,"snippetText",void 0);_.T([_.ET("#plain-snippet-text"),_.r("design:type",HTMLElement)],Dz.prototype,"plainSnippetText",void 0);_.T([_.ET("#formatted-snippet-text"),_.r("design:type",Object)],Dz.prototype,"formattedSnippetText",void 0);
_.T([_.ET("#attributed-snippet-text"),_.r("design:type",Object)],Dz.prototype,"attributedSnippetTextEl",void 0);_.T([_.ET("#expand"),_.r("design:type",HTMLElement)],Dz.prototype,"expandButton",void 0);_.T([_.ET("#expand-sizer"),_.r("design:type",HTMLElement)],Dz.prototype,"expandSizer",void 0);_.T([_.yO("isExpanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Dz.prototype,"isExpandedChanged",null);
_.T([_.KT("isExpanded","maxLines"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Dz.prototype,"updateSnippetContainerMaxHeight",null);_.T([_.KT("isTruncated","showExpandButton","expandButtonOffset"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Dz.prototype,"updateMaskAndExpandButtonOffset",null);
_.T([_.yO("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Dz.prototype,"onTextChanged",null);_.T([_.b({is:"ytd-text-inline-expander",disableElementRegistration:!0})],Dz);
_.z(Dz,"ytd-text-inline-expander",function(){if(er8===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);er8=M}M=er8;return M},{mode:2});var ul=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return M};
_.l(ul,_.Q);ul.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
ul.prototype.handleUpdateDescriptionAction=function(M){if(M=_.C(M,_.Q49))if(M.attributedDescription)this.set("data.attributedDescriptionBodyText",M.attributedDescription);else if(M.description){var q;((q=this.data)==null?0:q.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.tj(M.description)):this.set("data.descriptionBodyText",M.description)}};
_.Yd.Object.defineProperties(ul.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null||!M.attributedDescriptionBodyText)||!((q=this.data)==null||!q.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.collapsedLineCount){var q;return(q=this.data)==null?void 0:q.collapsedLineCount}M=_.tL("web_watch_description_collapsed_default_lines",12);if(_.w("ww_desc_line_page_size_ks"))return M;q=Math.round(_.kU().height*_.tL("web_watch_description_screen_height_percentage",.5)/20);return Math.max(q,M)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return(G=(M=this.data)==null?void 0:M.descriptionBodyText)!=null?G:(q=this.data)==null?void 0:q.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.sourceAttributions}}});
ul.prototype.panelContentVisibleChanged=ul.prototype.panelContentVisibleChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ul.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ul.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ul.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ul.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Boolean)],ul.prototype,"panelContentVisible",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ul.prototype,"engagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ul.prototype,"shortsPanel",void 0);_.T([_.ET("#inline-expander"),_.r("design:type",Object)],ul.prototype,"inlineExpander",void 0);
_.T([_.KT("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ul.prototype,"panelContentVisibleChanged",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ul.prototype,"hasDescriptionText",null);_.T([_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],ul.prototype,"collapsedLines",null);
_.T([_.c("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.r("design:type",Object),_.r("design:paramtypes",[])],ul.prototype,"descriptionText",null);_.T([_.c("data","data.headerRuns"),_.r("design:type",Object),_.r("design:paramtypes",[])],ul.prototype,"headerRuns",null);_.T([_.c("data","data.sourceAttributions"),_.r("design:type",Object),_.r("design:paramtypes",[])],ul.prototype,"sourceAttributions",null);
_.T([_.b({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],ul);
_.z(ul,"ytd-expandable-video-description-body-renderer",function(){if(H9I!==void 0)return H9I;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return H9I=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var sFf;var MTS=_.U(function(M){var q=M.data;return _.W("factoid-renderer",{class:"ytwFactoidRendererHost"},_.W("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return q().accessibilityText}},_.W("span",{class:"ytwFactoidRendererValue"},_.W(_.Ft,{text:function(){return q().value}})),_.W("span",{class:"ytwFactoidRendererLabel"},_.W(_.Ft,{text:function(){return q().label}}))))},"bd");_.S5(MTS,"factoid-renderer",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;return _.W("upload-time-factoid-renderer",null,_.W(_.yu,{data:function(){return q().factoid}},{factoidRenderer:MTS}))},"cd"),"upload-time-factoid-renderer",{props:{data:_.xj}});_.S5(_.U(function(M){var q=M.data;return _.W("view-count-factoid-renderer",null,_.W(_.yu,{data:function(){return q().factoid}},{factoidRenderer:MTS}))},"dd"),"view-count-factoid-renderer",{props:{data:_.xj}});var JU=function(){var M=_.Q.apply(this,arguments)||this;M.shortsPanel=!1;M.engagementPanel=!1;M.watchWhileSdp=_.w("shorts_desktop_watch_while_sdp");return M};
_.l(JU,_.Q);JU.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"}}}}};
_.Yd.Object.defineProperties(JU.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var M;return(M=this.data)==null?void 0:M.channel}}});
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],JU.prototype,"componentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],JU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],JU.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],JU.prototype,"shortsPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],JU.prototype,"engagementPanel",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],JU.prototype,"watchWhileSdp",void 0);_.T([_.c("shortsPanel","engagementPanel","data.channel"),_.r("design:type",Object),_.r("design:paramtypes",[])],JU.prototype,"showChannelInfo",null);_.T([_.b({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],JU);
_.z(JU,"ytd-video-description-header-renderer",function(){if(sFf!==void 0)return sFf;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return sFf=M},{mode:1});var qcJ;var Zz=function(){return _.Q.apply(this,arguments)||this};
_.l(Zz,_.Q);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Zz.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Zz.prototype,"ytRendererBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Zz.prototype,"noPadding",void 0);_.T([_.B(),_.r("design:type",Object)],Zz.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],Zz);
_.z(Zz,"ytd-list-item-view-model",function(){if(qcJ!==void 0)return qcJ;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return qcJ=M},{mode:1});var GfJ;var Kjx;var nV9;var EVl;var bl=function(){var M=_.Q.apply(this,arguments)||this;M.adaptiveFullWidth=!1;M.modernButtons=_.w("web_modern_buttons");M.buttonOverrides={style:"call-to-action",type:"filled"};M.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return M};
_.l(bl,_.Q);bl.prototype.handleSetTimestamp_=function(M){this.data&&this.data.shortUrl&&(_.f_(this.hostElement).querySelector("#share-url").value=M.isSet?_.xE(this.data.shortUrl,"t",M.timestamp):this.data.shortUrl)};
bl.prototype.handleSignalActionCopyShareUrl_=function(M,q){(_.w("killswitch_copy_link_target_check")||_.f_(this.hostElement).querySelector("#copy-button")===q)&&this.copyUrlToClipboard()};
bl.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.f_(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
bl.prototype.computeStyle_=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],bl.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bl.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bl.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.r("design:type",String)],bl.prototype,"rendererStyle",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],bl.prototype,"adaptiveFullWidth",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],bl.prototype,"modernButtons",void 0);_.T([_.B(),_.r("design:type",Object)],bl.prototype,"buttonOverrides",void 0);_.T([_.aO({is:"yt-copy-link-renderer",disableElementRegistration:!0})],bl);
_.z(bl,"yt-copy-link-renderer",function(){if(EVl===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;nV9===void 0&&(nV9=document.createElement("template"));var K=nV9;G.call(q,K.content.cloneNode(!0),M.content.firstChild);EVl=M}M=EVl;return M},{mode:2});_.hC("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Ut=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return M};
_.l(Ut,_.Q);_.N=Ut.prototype;_.N.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.N.attached=function(){this.keyboardFocused=!1};
_.N.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var M=_.AL().resolve(_.WR(_.Nt));M&&(this.keyboardFocused=M.isKeyBoardInUse())}};
_.N.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.N.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}};
_.N.onChange_=function(){if(this.data){var M=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;M&&this.ytComponentBehavior.resolveCommand(M);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.N.handleUpdateToggleAction_=function(M){(M=_.C(M,fcP))&&this.data&&M.targetId==this.data.targetId&&this.set("data.toggled",M.toggled)};
_.N.toBoolean_=function(M){return!!M};
_.N.reset=function(){};
_.N.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("data-changed",this.data))};
_.N.updateDataToggledFromBinding=function(M){this.set("data.toggled",M.detail.value)};
Ut.prototype.dataChangedForBinding=Ut.prototype.dataChangedForBinding;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Ut.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Ut.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Ut.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ut.prototype,"ytRendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Ut.prototype,"data",void 0);_.T([_.B({computed:"computeDescription_(data.*)"}),_.r("design:type",Object)],Ut.prototype,"description_",void 0);_.T([_.B({value:function(){return!!_.AL().resolve(_.WR(_.Nt))&&_.w("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.r("design:type",Boolean)],Ut.prototype,"useKeyboardFocused",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Ut.prototype,"keyboardFocused",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ut.prototype,"dataChangedForBinding",null);_.T([_.aO({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Ut);
_.z(Ut,"yt-toggle-form-field-renderer",function(){if(Kjx===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;GfJ===void 0&&(GfJ=document.createElement("template"));var K=GfJ;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Kjx=M}M=Kjx;return M},{mode:2});var NoI;var kfM;var xo=function(){var M=_.Q.apply(this,arguments)||this;M.isDarkTheme=!1;M.isSearch=!1;M.noTopMargin=_.w("kevlar_watch_no_top_margin");M.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 M};
_.l(xo,_.Q);_.N=xo.prototype;_.N.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}}}}}};
_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.N.dataChanged=function(){var M=this.getSelectedIndex();if(M>0)this.selected=M;else{this.selected=0;var q,G;(q=this.ytScrollableChipCloudBehavior)==null||(G=q.reset)==null||G.call(q)}};
_.N.getSelectedIndex=function(){var M;if((M=this.data)==null||!M.chips)return-1;M=-1;for(var q,G=0;G<((q=this.data)==null?void 0:q.chips.length);G++){var K=void 0,n=void 0;if((K=this.data)==null?0:(n=K.chips[G].chipCloudChipRenderer)==null?0:n.isSelected){M=G;break}}return M};
_.N.onResize=function(){var M=this.ytScrollableChipCloudBehavior;_.yb(M,M.setContainerWidthDiff);M=this.ytScrollableChipCloudBehavior;_.yb(M,M.setButtonsState)};
_.N.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.N.handleRelatedChipCommand=function(M,q){M=this.JSC$16560_chipsSelector.indexOf(q);M!==-1&&this.JSC$16560_chipsSelector.selectIndex(M)};
_.N.handleChipCloudChipSelectAction=function(M){M=this.JSC$16560_chipsSelector.indexOf(M);M>-1&&this.JSC$16560_chipsSelector.selectIndex(M)};
_.N.handleChipCloudChipDeselectAction=function(){var M=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$16560_chipsSelector&&((M==null?0:M.continuationCommand)?_.fx(this.hostElement,[M]):(M==null?0:M.searchEndpoint)?this.ytComponentBehavior.resolveCommand(M):M&&_.FH(this.hostElement,[M],this.hostElement),this.JSC$16560_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.N.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
xo.prototype.onResize=xo.prototype.onResize;xo.prototype.dataChanged=xo.prototype.dataChanged;xo.prototype.isSearchChanged=xo.prototype.isSearchChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xo.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],xo.prototype,"actionHandlerBehavior",void 0);
_.T([_.P(_.uz),_.r("design:type",Object)],xo.prototype,"ironResizableBehavior",void 0);_.T([_.P(),_.r("design:type",CM)],xo.prototype,"ytScrollableChipCloudBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],xo.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],xo.prototype,"data",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],xo.prototype,"selected",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],xo.prototype,"isDarkTheme",void 0);_.T([_.B({value:160}),_.r("design:type",Number)],xo.prototype,"scrollDistance",void 0);_.T([_.B(),_.r("design:type",Object)],xo.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],xo.prototype,"noTopMargin",void 0);_.T([_.ET("#chips"),_.r("design:type",Object)],xo.prototype,"JSC$16560_chipsSelector",void 0);
_.T([_.KT("isSearch"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xo.prototype,"isSearchChanged",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xo.prototype,"dataChanged",null);_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xo.prototype,"onResize",null);_.T([_.aO({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],xo);
_.z(xo,"yt-chip-cloud-renderer",function(){if(kfM===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;NoI===void 0&&(NoI=document.createElement("template"));var K=NoI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);kfM=M}M=kfM;return M},{mode:2});var pdM,yA8=function(){return pdM!==void 0?pdM:pdM=document.createElement("template")};
document.head.appendChild(yA8().content);var LjJ;var Yc8=document.head,Wjv=Yc8.appendChild,AAp;if(LjJ===void 0){var d9P=document.createElement("template");_.X(d9P,"");d9P.content.insertBefore(yA8().content.cloneNode(!0),d9P.content.firstChild);LjJ=d9P}AAp=LjJ;Wjv.call(Yc8,AAp.content);var vV$=_.U(function(M){var q=M.data;return _.W("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.W("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.W("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.W(_.d,{cond:function(){return _.cO(q().image)},
then:function(G){return _.W("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.W(_.Jj,{data:G,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.W("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.W(_.Ft,{text:function(){return q().subtitle}})))),_.W(_.d,{cond:function(){var G;
return(G=q())==null?void 0:G.hasBottomDivider},
then:function(){return _.W("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"ed");var hv9=_.U(function(M){var q=M.data;return _.W("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.W(_.yu,{data:function(){var G;return(G=q().offerPlanDetailsItem)!=null?G:[]}},{offerPlanDetailsItemViewModel:function(G){return _.W("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.W(vV$,{data:G.data}))}})),_.W("div",null,_.W(_.d,{cond:function(){return q().hasBottomDivider},
then:function(){return _.W("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.W("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.W("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.W("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"fd");var tTM=_.U(function(M){var q=M.data;M=_.k(_.lQ(!1,void 0,"MrXxy"));var G=M.next().value,K=M.next().value,n=_.sq(function(){K(!G());return!1}),E=function(){var p;
return(p=q().offerPlanDetailsContainer)!=null?p:[]};
return _.W("lp-complex-offer-card-details-view-model",null,_.W("div",null,_.W(_.d,{cond:function(){return G()},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.W("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":n,"aria-expanded":G},_.W(_.Ft,{text:function(){return q().expandedTitle}})),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.W(_.yu,{data:E},{offerPlanDetailsContainerViewModel:function(p){return _.W("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.W(hv9,{data:p.data}))}})),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.W(_.Ft,{text:function(){return q().legalText}})))},
else:function(){return _.W("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":n,"aria-expanded":G},_.W(_.Ft,{text:function(){return q().collapsedTitle}}),_.W("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.W(_.np,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"gd");var Og$=_.U(function(M){var q=M.data;return _.W("lp-complex-offer-card-option-view-model",null,_.W("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.W(_.d,{cond:function(){return q().topDividerText},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.W("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.W(_.Ft,{text:function(){return q().topDividerText}}))))}}),_.W(_.d,{cond:function(){return q().description},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelDescription"},_.W(_.Ft,{text:function(){return q().description}}))}}),_.W(_.d,{cond:function(){return q().planPricingPrimary},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.W(_.Ft,{text:function(){return q().planPricingPrimary}}))}}),_.W(_.d,{cond:function(){return q().planPricingSecondary},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.W(_.Ft,{text:function(){return q().planPricingSecondary}}))}}),_.W(_.d,{cond:function(){return q().primaryButton},
then:function(){return _.W("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.W(_.yu,{data:function(){return q().primaryButton}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"hd");var wd8=_.U(function(M){var q=M.data;var G=function(){var E;return((E=q())==null?void 0:E.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
M={};var K={},n={};return _.W("ytm-lp-complex-offer-card-view-model",null,_.W("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.W("div",{class:_.Hb((M.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=G,M),"ytmLpComplexOfferCardViewModelCardContainer")},_.W(_.d,{cond:function(){var E;return(E=q())==null?void 0:E.bannerText},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.W("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.W(_.Ft,{text:function(){return q().bannerText}})))}}),_.W(_.d,{cond:function(){return _.cO(q().logo)},
then:function(E){var p={};return _.W("div",{class:_.Hb((p.ytmLpComplexOfferCardViewModelLogoAlignLeft=G,p),"ytmLpComplexOfferCardViewModelLogo")},_.W(_.Jj,{data:E,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.W("div",{class:_.Hb((K.ytmLpComplexOfferCardViewModelTitleAlignLeft=G,K),"ytmLpComplexOfferCardViewModelTitle")},_.W(_.Ft,{text:function(){return q().title}})),_.W(_.d,{cond:function(){var E;
return(E=q())==null?void 0:E.subtitle},
then:function(){var E={};return _.W("div",{class:_.Hb((E.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=G,E),"ytmLpComplexOfferCardViewModelSubtitle")},_.W(_.Ft,{text:function(){return q().subtitle}}))}}),_.W(_.d,{cond:function(){return q().planPricingPrimary},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.W(_.Ft,{text:function(){return q().planPricingPrimary}}))}}),_.W(_.d,{cond:function(){return q().planPricingSecondary},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.W(_.Ft,{text:function(){return q().planPricingSecondary}}))}}),_.W(_.d,{cond:function(){return q().purchaseButton},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.W(_.yu,{data:function(){return q().purchaseButton}},{buttonViewModel:function(E){return _.W(_.Wf,{data:E.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.W(_.d,{cond:function(){var E;
return(E=q())==null?void 0:E.offerOptions},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.W(_.yu,{data:function(){return q().offerOptions}},{lpComplexOfferCardOptionViewModel:Og$}))}}),_.W("div",{class:_.Hb((n.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=G,n),"ytmLpComplexOfferCardViewModelLegalText")},_.W(_.Ft,{text:function(){return q().legalText}})),_.W(_.d,{cond:function(){var E;
return(E=q())==null?void 0:E.offerCardDetails},
then:function(){return _.W("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.W(_.yu,{data:function(){return q().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:tTM}))}}))))},"id");var CsI=_.U(function(M){var q=M.data;var G=function(){var p;return((p=q())==null?void 0:p.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
M={};var K={},n={},E={};return _.W("ytm-lp-complex-offer-card-section-view-model",null,_.W("div",{class:_.Hb("ytmLpComplexOfferCardSectionViewModelHost")},_.W("div",{class:_.Hb((M.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=G,M),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.W("div",{class:_.Hb((K.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=G,K),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.W("h2",{class:_.Hb((n.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
G,n),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.W(_.Ft,{text:function(){return q().title}}))),_.W(_.d,{cond:function(){var p;
return(p=q())==null?void 0:p.subtitle},
then:function(){var p={},y={};return _.W("div",{class:_.Hb((p.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=G,p),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.W("div",{class:_.Hb((y.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=G,y),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.W(_.Ft,{text:function(){return q().subtitle}})))}}),_.W("div",{class:_.Hb((E.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=G,E),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.W(_.yu,{data:function(){var p;
return(p=q().offerPlans)!=null?p:[]}},{lpComplexOfferCardViewModel:function(p){return _.W("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.W(wd8,{data:p.data}))}})))))},"jd");var auJ=_.U(function(M){return _.W("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.W("div",{class:"ytLpCouponBannerViewModelIcon"},_.W(_.np,{icon:function(){return"price_tag"}})),_.W("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.W("div",{class:"ytLpCouponBannerViewModelContent"},_.W("div",{class:"ytLpCouponBannerViewModelHeading"},_.W(_.Ft,{text:function(){var q;
return(q=M.data())==null?void 0:q.title}})),_.W("div",{class:"ytLpCouponBannerViewModelBody"},_.W(_.Ft,{text:function(){var q;
return(q=M.data())==null?void 0:q.subtitle}})))))},"kd");
auJ.idomCompat=!0;_.zx=wG8.getInstance();var oV$;oV$=_.U(function(M){return _.W("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsQuestion","aria-hidden":M.shouldAriaHideContent},_.W("h2",{class:"ytLpFaqEntryViewModelLpFaqQuestion",id:M.questionId},_.W(_.Ft,{text:M.question})))},"ld");
_.lu8=_.U(function(M){var q=M.data;var G=M.themeOverride;M=_.k(_.lQ(!1,void 0,"pNli2b"));var K=M.next().value,n=M.next().value;M=_.sq(function(){n(!K());return!1});
var E=function(){return K()?"EXPAND_LESS":"EXPAND_MORE"},p=("faq-container"+_.Qp(_.zx)).toString(),y="faq-question-and-answers-section-question"+_.Qp(_.zx),Y={},A={};
return _.W("faq-entry-view-model",null,_.W("div",{class:_.Hb("ytLpFaqEntryViewModelHost",(Y.ytLpFaqEntryViewModelPremiumForceDarkMode=function(){return G==null?void 0:G().useDarkTheme},Y))},_.W("div",{class:"ytLpFaqEntryViewModelFaqQuestionAndAnswersSection",
"on:click":M,role:"button","aria-expanded":K,"aria-labelledby":y.toString(),"tab-index":"0"},_.W(oV$,{question:function(){return q().question},
questionId:y,shouldAriaHideContent:!0}),_.W(_.d,{cond:function(){return K()!==void 0},
then:function(){return _.W("div",{class:"ytLpFaqEntryViewModelIconContainer"},_.W(_.np,{icon:E,ariaHidden:!0}),_.W("div",{class:"ytLpFaqEntryViewModelIconHoverHighlighting"}))}})),_.W("div",{class:_.Hb("ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswer",(A.ytLpFaqEntryViewModelLpFaqSectionFaqsOuterAnswerCollapsed=function(){return!K()},A))},_.W("div",{id:p},_.W(_.bf,{each:function(){return q().answers||[]}},function(v){return _.W("div",{class:"ytLpFaqEntryViewModelLpFaqSectionFaqsAnswer"},_.W(_.Ft,
{text:v}))})))))},"md");
_.lu8.idomCompat=!0;var Xd$=_.U(function(M){var q=M.data;var G=M.themeOverride;M={};return _.W("lp-faq-section-view-model",null,_.W("div",{class:_.Hb("yt-lp-faq-section-view-model",(M["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},M["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(G==null||!G().useDarkTheme)},M))},_.W("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.W(_.d,{cond:function(){return q().header},
then:function(K){return _.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.W(_.Ft,{text:K}))}}),_.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.W(_.yu,{data:function(){return q().faqs}},{faqEntryViewModel:function(K){return _.W(_.lu8,{data:K.data,
themeOverride:G})}})),_.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.W(_.bf,{each:function(){return q().footers||[]}},function(K){return _.W(_.Ft,{text:K})})),_.W(_.d,{cond:function(){return q().legal},
then:function(K){return _.W("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.W(_.Ft,{text:K}))}}))))},"nd");
Xd$.idomCompat=!0;var Psf=_.U(function(M){var q=M.data;var G=M.themeOverride;_.SK(function(){var p=q().gtmId;p&&_.Bz(p,_.R9("GL",""))});
var K={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var p,y,Y;return(Y=(p=q().logo)==null?void 0:(y=p.accessibilityData)==null?void 0:y.label)!=null?Y:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},n=_.AL().resolve(_.WR(_.Qx)),E=function(){return n&&n()||(G==null?void 0:G().useDarkTheme)};
return _.W("lp-header-section-view-model",null,_.W("div",{class:function(){var p=q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",y=q().marginType==="LP_SECTION_MARGIN_TYPE_TOP",Y=G==null?void 0:G().useDarkTheme,A=["lp-header-section-view-model"];p&&A.push("lp-header-section-view-model--ptc-layout-type");y&&A.push("lp-header-section-view-model__lp-header-section-margin");Y&&A.push("lp-header-section-view-model--premium-force-dark-mode");return A.join(" ")}},_.W(_.d,{cond:function(){return q().logo},
then:function(){return _.W("div",null,_.W(_.d,{cond:E,then:function(){return _.W(_.d,{cond:function(){var p;return(p=q().logo)==null?void 0:p.imageDark},
then:function(p){return _.W(_.Jj,Object.assign({},{data:p},K))}})},
else:function(){return _.W(_.d,{cond:function(){var p;return(p=q().logo)==null?void 0:p.imageLight},
then:function(p){return _.W(_.Jj,Object.assign({},{data:p},K))}})}}))}}),_.W(_.d,{cond:function(){return q().title},
then:function(p){return _.W("div",{class:"lp-header-section-view-model__lp-header-title"},_.W(_.Ft,{text:p}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.W(_.d,{cond:function(){return q().subtitles},
then:function(p){return _.W(_.bf,{each:p},function(y){return _.W("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.W(_.Ft,{text:y}))})}})),_.W(_.d,{cond:function(){return q().additionalInfo},
then:function(p){return _.W("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.W(_.Ft,{text:p}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.W(_.d,{cond:function(){return q().primaryButton},
then:function(p){return _.W("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.W(_.yu,{data:p},{buttonViewModel:_.Wf}))}}),_.W(_.d,{cond:function(){return q().secondaryButton},
then:function(p){return _.W("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.W(_.yu,{data:p},{buttonViewModel:_.Wf}))}})),_.W(_.d,{cond:function(){return q().otherOffersInfo},
then:function(p){return _.W("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.W(_.Ft,{text:p}))}}),_.W("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.W(_.d,{cond:function(){return q().billingInfo},
then:function(p){return _.W(_.bf,{each:p},function(y){return _.W("div",null,_.W(_.Ft,{text:y}))})}}))))},"od");
Psf.idomCompat=!0;var igP=_.U(function(M){return _.W("lp-header-upsell-banner-view-model",{class:_.Hb("lpHeaderUpsellBannerViewModelHost",M.className,{})},_.W("div",{class:"lpHeaderUpsellBannerViewModelIcon"},_.W(_.np,{icon:function(){return"CAMPAIGN"}})),_.W("div",{class:"lpHeaderUpsellBannerViewModelOuterContainer"},_.W("div",{class:"lpHeaderUpsellBannerViewModelContainer"},_.W("div",{class:"lpHeaderUpsellBannerViewModelContent"},_.W("div",{class:"lpHeaderUpsellBannerViewModelDescription"},_.W(_.Ft,{text:function(){var q;
return(q=M.data())==null?void 0:q.description}})))),_.W(_.yu,{data:function(){var q;
return(q=M.data())==null?void 0:q.purchaseButton}},{buttonViewModel:function(q){return _.W(_.Wf,{data:q.data,
className:"lpHeaderUpsellBannerViewModelPurchaseButton"})}})))},"pd");var cAJ=_.U(function(M){var q=M.data;var G=_.bg(M.themeOverride,{useDarkTheme:!1});M={};M=_.Hb("ytmLpHeadlineSectionViewModelHost",(M.ytmLpHeadlineSectionViewModelPremiumForceDarkMode=function(){return G().useDarkTheme},M));
return _.W("lp-headline-section-view-model",null,_.W("div",{class:M},_.W(_.d,{cond:function(){return q().title},
then:function(K){return _.W("div",{class:"ytmLpHeadlineSectionViewModelTitleText"},_.W(_.Ft,{text:K}))}}),_.W(_.d,{cond:function(){return q().subtitle},
then:function(K){return _.W("div",{class:"ytmLpHeadlineSectionViewModelSubtitleText"},_.W(_.Ft,{text:K}))}})))},"qd");var gV2=_.U(function(M){var q=M.data;var G=M.themeOverride;var K=_.AL().resolve(_.WR(_.Qx)),n=function(){return K&&K()||(G==null?void 0:G().useDarkTheme)},E=function(){var A,v;
var h=n()?(A=q().textBackgroundImage)==null?void 0:A.imageDark:(v=q().textBackgroundImage)==null?void 0:v.imageLight;return nOu((h==null?void 0:h.sources)||[])},p=function(){var A,v;
return n()?(A=q().featureImage)==null?void 0:A.imageDark:(v=q().featureImage)==null?void 0:v.imageLight},y=function(){return q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},Y=function(){var A,v;
return n()?(A=q().logo)==null?void 0:A.imageDark:(v=q().logo)==null?void 0:v.imageLight};
return _.W("ytm-lp-large-feature-section-view-model",null,_.W("div",{class:function(){var A=q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",v=q().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",h=(q().index||0)%2===1,t=G==null?void 0:G().useDarkTheme,O=["yt-lp-large-feature-section-view-model"];A?O.push("yt-lp-large-feature-section-view-model--music-feature-type"):v?O.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):h||O.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
t&&O.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return O.join(" ")}},_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.W(_.d,{cond:p,
then:function(){return _.W(_.Jj,{data:function(){return p()},
alt:function(){var A,v,h;return(h=(A=q().featureImage)==null?void 0:(v=A.accessibilityData)==null?void 0:v.label)!=null?h:""},
contentMode:y})}})),_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var A;return((A=E())==null?0:A.url)?"background-image: url("+_.SM(E().url)+");":""}},_.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.W(_.d,{cond:Y,
then:function(){return _.W(_.Jj,{data:function(){return Y()},
alt:function(){var A,v,h;return(h=(A=q().logo)==null?void 0:(v=A.accessibilityData)==null?void 0:v.label)!=null?h:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.W(_.d,{cond:function(){return q().eyebrowText},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.W(_.Ft,{text:function(){return q().eyebrowText}}))}}),_.W(_.d,{cond:function(){return q().title},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.W(_.Ft,{text:function(){return q().title}}))}}),_.W(_.d,{cond:function(){return q().subtitles},
then:function(){return _.W("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.W(_.bf,{each:function(){return q().subtitles||[]}},function(A){return _.W(_.Ft,{text:A})}))}})))))},"rd");
gV2.idomCompat=!0;var BoP=_.U(function(M){return _.W("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.W("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.W(_.np,{icon:function(){var q;return(q=M.data())==null?void 0:q.iconType},
className:function(){var q;switch((q=M.data())==null?void 0:q.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 q;return((q=M.data())==null?void 0:q.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.W("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.W(_.Ft,{text:function(){var q;
return(q=M.data())==null?void 0:q.text},
className:function(){var q;return((q=M.data())==null?void 0:q.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"sd");var QFM=_.U(function(M){M=_.UT(M,{config:void 0,themeOverride:void 0});var q=M.data,G=M.config,K=M.themeOverride;M={};M=_.Hb("ytmLpOfferCardOptionViewModelHost",(M.ytmLpOfferCardOptionViewModelPremiumForceDarkMode=function(){var y;return(y=K())==null?void 0:y.useDarkTheme},M));
var n=_.sq(function(){var y,Y;(y=G())==null||(Y=y.handleRadioButtonClick)==null||Y.call(y,q());return!1}),E=function(){var y;
return(y=G())==null?void 0:y.shouldDisplayRadioButton},p=function(){var y;
return(y=q().featureListItems)!=null?y:[]};
return _.W("ytm-lp-offer-card-option-view-model",null,_.W("div",{class:M,"on:click":_.sq(function(){if(E()){var y,Y;(y=G())==null||(Y=y.handleRadioButtonClick)==null||Y.call(y,q())}return!1})},_.W(_.d,{cond:E,
then:function(){return _.W("div",null,_.W("input",{type:"radio","on:click":n,class:"ytmLpOfferCardOptionViewModelInputEl","prop:checked":function(){var y;return!((y=G())==null||!y.isOptionSelected)}}))}}),_.W("div",null,_.W("div",{class:"ytmLpOfferCardOptionViewModelEyebrowText"},_.W(_.Ft,{text:function(){return q().eyebrowText}})),_.W("div",{class:"ytmLpOfferCardOptionViewModelTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",{class:"ytmLpOfferCardOptionViewModelSubtitle"},_.W(_.Ft,
{text:function(){return q().subtitle}})),_.W(_.d,{cond:function(){return p().length>0},
then:function(){return _.W("div",{class:"ytmLpOfferCardOptionViewModelFeatureListItems"},_.W(_.yu,{data:p},{lpFeatureListItemViewModel:BoP}))}}),_.W("div",{class:"ytmLpOfferCardOptionViewModelDescription"},_.W(_.Ft,{text:function(){return q().description}})))))},"td");
QFM.idomCompat=!0;var IuI=_.U(function(M){var q=M.data;var G=M.themeOverride;M=_.k(_.GM(function(){var E,p=(E=q().offerOptions)==null?void 0:E[0];return _.C(p,mtS)||{}}));
var K=M.next().value,n=M.next().value;M={};return _.W("ytm-lp-offer-card-view-model",null,_.W("div",{class:_.Hb("ytmLpOfferCardViewModelHost",(M.ytmLpOfferCardViewModelPremiumForceDarkMode=function(){return!(G==null||!G().useDarkTheme)},M))},_.W("div",{class:"ytmLpOfferCardViewModelTitleContainer"},_.W(_.d,{cond:function(){return q().titleIconType},
then:function(){return _.W("div",{class:"ytmLpOfferCardViewModelIconContainer"},_.W(_.np,{icon:function(){var E;return((E=q().titleIconType)==null?void 0:E.toString())||""}}))}}),_.W("div",{class:"ytmLpOfferCardViewModelTitleText"},_.W(_.Ft,{text:function(){return q().title}})),_.W(_.yu,{data:function(){return q().titleBadge}},{badgeViewModel:function(E){return _.W("div",{class:"ytmLpOfferCardViewModelTitleBadge"},_.W(_.Yl,{data:E.data}))}})),_.W("div",{class:"ytmLpOfferCardViewModelOfferOptionsContainer"},
_.W(_.yu,{data:function(){return q().offerOptions}},{lpOfferCardOptionViewModel:function(E){var p=E.data;
return _.W(_.dU,null,_.W("div",{class:"ytmLpOfferCardViewModelDivider"}),_.W(QFM,{data:p,config:function(){var y;return{shouldDisplayRadioButton:(q().offerOptions||[]).length>1,isOptionSelected:p().id===((y=K())==null?void 0:y.id),handleRadioButtonClick:function(Y){return void n(Y)}}},
themeOverride:G}))}})),_.W("div",{class:"ytmLpOfferCardViewModelPurchaseButtonContainer"},_.W(_.yu,{data:function(){var E;
return(E=K())==null?void 0:E.purchaseButtonOverride}},{buttonViewModel:_.Wf}))))},"ud");
IuI.idomCompat=!0;var D9M=_.U(function(M){var q=M.data;var G=M.themeOverride;M={};M=_.Hb("ytmLpOfferCardSectionViewModelHost",(M.ytmLpOfferCardSectionViewModelPremiumForceDarkMode=function(){var K;return G==null?void 0:(K=G())==null?void 0:K.useDarkTheme},M));
return _.W("ytm-lp-offer-card-section-view-model",null,_.W("div",{class:M},_.W(_.d,{cond:function(){return q().title!==void 0},
then:function(){return _.W("div",{class:"ytmLpOfferCardSectionViewModelTitleContainer"},_.W("div",{class:"ytmLpOfferCardSectionViewModelTitleText"},_.W(_.Ft,{text:function(){return q().title}})),_.W(_.d,{cond:function(){return q().subtitle},
then:function(){return _.W("div",{class:"ytmLpOfferCardSectionViewModelSubtitleText"},_.W(_.Ft,{text:function(){return q().subtitle}}))}}))}}),_.W("div",{class:"ytmLpOfferCardSectionViewModelOfferCardsContainer"},_.W(_.yu,{data:function(){return q().offerCards}},{lpOfferCardViewModel:function(K){return _.W("div",{class:"ytmLpOfferCardSectionViewModelOfferCardContainer"},_.W(IuI,{data:K.data,
themeOverride:G}))}})),_.W(_.d,{cond:function(){return q().footer},
then:function(){return _.W("div",{class:"ytmLpOfferCardSectionViewModelFooterText"},_.W(_.Ft,{text:function(){return q().footer}}))}})))},"vd");var uP9=_.U(function(M){var q=M.data;return _.W("lp-offer-table-cell-content-view-model",null,_.W("div",{class:"ytLpOfferTableCellContentViewModelHost"},_.W(_.Ub,null,_.W(_.J3,{when:function(){return q().title}},function(){return _.W(_.Ft,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellTitle",
text:function(){return q().title}})}),_.W(_.J3,{when:function(){return q().subTitle}},function(){return _.W(_.Ft,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellSubtitle",
text:function(){return q().subTitle}})}),_.W(_.J3,{when:function(){return q().featureDescription}},function(){return _.W(_.Ft,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDescription",
text:function(){return q().featureDescription}})}),_.W(_.J3,{when:function(){return q().description}},function(){return _.W(_.Ft,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellDescription",
text:function(){return q().description}})}),_.W(_.J3,{when:function(){return q().iconType}},function(){return _.W("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellIcon"},_.W(_.np,{icon:function(){return q().iconType.toString()}}))}),_.W(_.J3,{when:function(){return q().purchaseButton}},function(){return _.W(_.yu,{data:function(){return q().purchaseButton}},{buttonViewModel:function(G){return _.W("div",{class:"ytLpOfferTableCellContentViewModelLpOfferTableCellPurchaseButton"},_.W(_.Wf,
{data:G.data}))}})}),_.W(_.J3,{when:function(){return q().note}},function(){return _.W(_.Ft,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellNote",
text:function(){return q().note}})}),_.W(_.J3,{when:function(){return q().featureDetail}},function(){return _.W(_.Ft,{className:"ytLpOfferTableCellContentViewModelLpOfferTableCellFeatureDetail",
text:function(){return q().featureDetail}})}),_.W(_.J3,{when:function(){return q().badge}},function(){return _.W(_.yu,{data:function(){return q().badge}},{badgeViewModel:_.Yl})}))))},"wd");
uP9.idomCompat=!0;var JAM=_.U(function(M){var q=M.data;return _.W("lp-offer-table-cell-view-model",null,_.W("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(q().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.W(_.yu,{data:function(){return q().contents}},{lpOfferTableCellContentViewModel:uP9})))},
"xd");
JAM.idomCompat=!0;var Zgf=_.U(function(M){var q=M.data;var G=M.lpTableIsFirstRow;var K=M.lpTableIsLastRow;var n=function(){return(G==null?0:G())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowHeaderCell":"ytLpOfferTableRowViewModelLpOfferTableRowHeaderCell"},E=function(){return(G==null?0:G())?"ytLpOfferTableRowViewModelLpOfferTableFirstRowContentCell":(K==null?0:K())?"ytLpOfferTableRowViewModelLpOfferTableLastRowContentCell":"ytLpOfferTableRowViewModelLpOfferTableRowContentCell"};
return _.W("ytm-lp-offer-table-row-view-model",null,_.W("div",{class:"ytLpOfferTableRowViewModelHost"},_.W(_.yu,{data:function(){return q().rowHeaderCell}},{lpOfferTableCellViewModel:function(p){return _.W("div",{class:n},_.W(JAM,{data:p.data}))}}),_.W(_.yu,{data:function(){return q().contentCells}},{lpOfferTableCellViewModel:function(p){return _.W("div",{class:E},_.W(JAM,{data:p.data}))}})))},"yd");
Zgf.idomCompat=!0;var bgx=_.U(function(M){var q=M.data;var G=M.themeOverride;var K=_.AL().resolve(_.WR(_.Qx)),n=function(){return _.C(q().logo,ybM)||{}};
M={};return _.W("ytm-lp-offer-table-section-view-model",null,_.W("div",{class:"ytLpOfferTableViewModelHost"},_.W(_.d,{cond:function(){var E,p;return K&&K()||(G==null?0:G().useDarkTheme)?(E=n())==null?void 0:E.imageDark:(p=n())==null?void 0:p.imageLight},
then:function(E){return _.W(_.Jj,{data:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var p,y,Y;return(Y=(p=n())==null?void 0:(y=p.accessibilityData)==null?void 0:y.label)!=null?Y:""},
targetWidth:140,targetHeight:40,height:40,className:"ytLpOfferTableViewModelLpOfferTableSectionLogo",useWidth:!1})}}),_.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionSubtitle"},_.W(_.Ft,{text:function(){return q().subtitle}})),_.W(_.d,{cond:function(){return q().disclaimers},
then:function(E){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionDisclaimers"},_.W(_.bf,{each:E},function(p){return _.W("div",null,_.W(_.Ft,{text:p}))}))}}),_.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionRows"},_.W(_.yu,{data:function(){return q().rows}},{lpOfferTableRowViewModel:function(E,p){return _.W(Zgf,{data:E.data,
lpTableIsFirstRow:function(){return p()===0},
lpTableIsLastRow:function(){return p()===q().rows.length-1}})}})),_.W("div",{class:_.Hb((M.ytLpOfferTableViewModelLpOfferTableSectionFooterWrapper=function(){return q().hasFooterBackground},M))},_.W(_.d,{cond:function(){return q().footer},
then:function(){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooter"},_.W(_.Ft,{text:function(){return q().footer}}))}}),_.W(_.d,{cond:function(){return q().footerTitle},
then:function(){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterTitle"},_.W(_.Ft,{text:function(){return q().footerTitle}}))}}),_.W(_.d,{cond:function(){return q().footerDescription},
then:function(){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.W(_.Ft,{text:function(){return q().footerDescription}}))}}),_.W(_.d,{cond:function(){return q().footerDescriptions},
then:function(E){return _.W("div",{class:"ytLpOfferTableViewModelLpOfferTableSectionFooterDescription"},_.W(_.bf,{each:E},function(p){return _.W("div",null,_.W(_.Ft,{text:p}))}))}}))))},"zd");
bgx.idomCompat=!0;var U9p=_.U(function(M){var q=M.data;var G=M.themeOverride;var K=_.AL().resolve(_.WR(_.Qx)),n=function(){var y;return G==null?void 0:(y=G())==null?void 0:y.useDarkTheme},E=function(){var y,Y;
return K&&K()||n()?(y=q().image)==null?void 0:y.imageDark:(Y=q().image)==null?void 0:Y.imageLight};
M={};M=_.Hb("ytmLpSmallFeatureSectionViewModelHost",(M.ytmLpSmallFeatureSectionViewModelPremiumForceDarkMode=n,M));var p=function(){var y,Y,A;return(A=(y=q().image)==null?void 0:(Y=y.accessibilityData)==null?void 0:Y.label)!=null?A:""};
return _.W("ytm-lp-small-feature-section-view-model",{class:M},_.W(_.d,{cond:function(){return E()&&!ywy},
then:function(){return _.W("div",{class:"ytmLpSmallFeatureSectionViewModelFeatureImageContainer"},_.W(_.Jj,{data:function(){return E()},
alt:p,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.W("div",{class:"ytmLpSmallFeatureSectionViewModelContentSection"},_.W("div",{class:"ytmLpSmallFeatureSectionViewModelTitleText"},_.W(_.d,{cond:function(){return q().title},
then:function(y){return _.W(_.Ft,{text:y})}})),_.W("div",{class:"ytmLpSmallFeatureSectionViewModelDescriptionText"},_.W(_.Ft,{text:function(){return q().description}}))))},"Ad");
U9p.idomCompat=!0;var x9B=_.U(function(M){var q=M.data;var G=M.themeOverride;M={};return _.W("ytm-lp-small-feature-section-group-view-model",null,_.W("div",{class:_.Hb("ytmLpSmallFeatureSectionGroupViewModelHost",(M.ytmLpSmallFeatureSectionGroupViewModelPremiumForceDarkMode=function(){return!(G==null||!G().useDarkTheme)},M))},_.W("div",{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeaturesContainer"},_.W(_.yu,{data:function(){return q().smallFeatures}},{lpSmallFeatureSectionViewModel:function(K){return _.W("div",
{class:"ytmLpSmallFeatureSectionGroupViewModelSmallFeatureContainer"},_.W(U9p,{data:K.data,
themeOverride:G}))}}))))},"Bd");
x9B.idomCompat=!0;_.S5(_.U(function(M){var q=M.data;var G=function(){return q().forcedTheme==="USER_INTERFACE_THEME_DARK"},K=function(){return q().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},n=function(){var p="",y,Y;
var A=_.AL().resolve(_.WR(_.Qx));A=G()||(A==null?0:A())?(y=q().themedImageViewModel)==null?void 0:y.imageDark:(Y=q().themedImageViewModel)==null?void 0:Y.imageLight;(y=nOu((A==null?void 0:A.sources)||[]))&&y.url&&(p=K()?"background-image: linear-gradient(to bottom, transparent, "+(q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.SM(y.url)+");":"background-image: url("+_.SM(y.url)+");");return p},E=function(){return{useDarkTheme:G()}};
M={};return _.W("yt-section-group-view-model",null,_.W("div",{class:_.Hb("yt-lp-section-group-view-model",(M["yt-lp-section-group-view-model--premium-force-dark-mode"]=G,M["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return q().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},M))},_.W(_.d,{cond:function(){return n().length},
then:function(){var p={};return _.W("div",{class:_.Hb("yt-lp-section-group-view-model__bg-image",(p["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=K,p)),style:n})}}),_.W("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.W(_.yu,{data:function(){return q().sections}},{lpHeaderUpsellBannerViewModel:function(p){return _.W(igP,{data:p.data})},
lpFaqSectionViewModel:function(p){return _.W(Xd$,{data:p.data,themeOverride:E})},
lpHeaderSectionViewModel:function(p){return _.W(Psf,{data:p.data,themeOverride:E})},
lpHeadlineSectionViewModel:function(p){return _.W(cAJ,{data:p.data,themeOverride:E})},
lpLargeFeatureSectionViewModel:function(p){return _.W(gV2,{data:p.data,themeOverride:E})},
lpOfferCardSectionViewModel:function(p){return _.W(D9M,{data:p.data,themeOverride:E})},
lpComplexOfferCardSectionViewModel:function(p){return _.W(CsI,{data:p.data})},
lpOfferTableSectionViewModel:function(p){return _.W(bgx,{data:p.data,themeOverride:E})},
lpSmallFeatureSectionGroupViewModel:function(p){return _.W(x9B,{data:p.data,themeOverride:E})},
lpCouponBannerViewModel:function(p){return _.W(auJ,{data:p.data})}}))))},"Cd"),"yt-section-group-view-model",{props:{data:_.Hz}});var aKw=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.zv$=_.U(function(M){function q(){if(aKw.has(M.data().displayType)){var A=!K(),v;if((v=M.disableDeselection)==null||!v.call(M)||A){M.data().selected=A;v=Object.assign({},p(),{selected:A});y(v);var h;(h=M.callback)==null||h.call(M,v,A)}}}
var G=_.pI("chip-view-model"),K=function(){var A,v;return!!(((A=M.selected)==null?void 0:A.call(M))!==void 0?(v=M.selected)==null?0:v.call(M):p().selected)},n=_.k(_.GM(M.data)),E=n.next().value;
n=n.next().value;var p=E,y=n,Y=_.No(Cbj,function(){return M.data().chipEntityKey||""});
return _.W("chip-view-model",{class:"ytChipViewModelHost",el:G},_.W(tH2,{data:function(){var A,v=Object.assign({},p(),{selected:K()}),h=Y(),t=(A=M.disableDeselection)==null?void 0:A.call(M);a:switch(v.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":A=1;break a;case "CHIP_VIEW_MODEL_DISPLAY_TYPE_STATELESS":A=3;break a;default:A=0}return{text:(h==null?void 0:h.text)||v.text,state:v.disabled?1:v.selected?0:2,type:A,onTap:owY(v,G,q,t),
accessibilityLabel:v.accessibilityLabel||v.text}}}))},"Dd");
_.zv$.idomCompat={callbacks:{callback:!0}};_.m9S=_.U(function(M){var q=_.No(wNs,function(){var p;return(p=M.data())==null?void 0:p.chipBarStateEntityKey}),G=function(){return M.data().disableDeselection},K=_.k(_.GM(function(){var p;
if(((p=q())==null?void 0:p.selectedIndex)!=void 0)return q().selectedIndex;var y,Y;p=_.k(((y=M.data())==null?void 0:(Y=y.chips)==null?void 0:Y.entries())||[]);for(y=p.next();!y.done;y=p.next()){y=_.k(y.value);Y=y.next().value;y=y.next().value;var A=void 0;if((A=_.C(y,_.sj))==null?0:A.selected)return Y}return-1})),n=K.next().value,E=K.next().value;
return _.W("chip-bar-view-model",{class:_.Hb("ytChipBarViewModelHost",M.className),role:"tablist"},_.W(_.yu,{data:function(){return M.data().chips}},{chipViewModel:function(p,y){return _.W("div",{class:"ytChipBarViewModelChipWrapper"},_.W(_.zv$,{data:p.data,
selected:function(){return y()===n()},
callback:function(Y,A){Y=!!A;A=y();E(Y?A:-1);var v,h=(v=M.data())==null?void 0:v.chipBarStateEntityKey;h&&Y&&_.Zp(_.LL("chipBarStateEntity",h,{key:h,selectedIndex:A}))},
disableDeselection:M.disableDeselection||G}))}}))},"Ed");_.S5(_.m9S,"chip-bar-view-model",{props:{data:_.xj,className:_.xj,disableDeselection:_.xj}});_.ScP=_.U(function(M){var q=M.data;M={};return _.W("divider-view-model",{class:_.Hb("dividerViewModelHost",(M.dividerViewModelInsetThinPadding=function(){return q().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},M))},_.W("div",{class:_.Hb("dividerViewModelBaseDivider",function(){return lK$(q().dividerStyle)}),
style:_.Kp({"background-color":function(){return q().backgroundColor?_.w2(q().backgroundColor):void 0}})}))},"Fd");
_.ScP.idomCompat=!0;_.S5(_.ScP,"divider-view-model",{props:{data:_.Hz}});var n5=new Map,K5=new Map,i6i=0,Ez;var uzH=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],b6y={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var Tod,rAl;Tod=function(M){return function(q){return function(){return(q==null?void 0:q())!==void 0?String(q())+M:void 0}}};
_.kn=Tod("px");rAl=Tod("s");var jFf=aNy(function(M){return M.targetGroupId}).useUpdatableData;_.Rvv=_.U(function(M){function q(se){return function(){var yY=g().numItemsPerGridRow,d$=se()*yY;yY=d$+yY;var cy,t4;return(t4=(cy=K().contents)==null?void 0:cy.slice(d$,yY))!=null?t4:[]}}
var G=_.UT(M,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),K=G.data,n=G.layoutContainerWidth,E=G.shouldUseOwnContainerSize,p=G.marginSettings,y=KCF(),Y=_.k(jFf(function(){var se,yY;return{targetGroupId:(se=K().targetingContext)==null?void 0:(yY=se.targetGroupId)==null?void 0:yY[0]}})).next().value;
G=_.k(_.lQ(!0,void 0,"Qe9wde"));var A=G.next().value,v=G.next().value,h=function(){var se,yY=(se=_.C(K().showMoreButton,_.$N))==null?void 0:se.trackingParams;yY&&_.Pg(_.nl(),yY);v(!1)},t=function(){var se,yY=(se=_.C(K().showLessButton,_.$N))==null?void 0:se.trackingParams;
yY&&_.Pg(_.nl(),yY);v(!0)};
G=_.pI("grid-shelf-view-model");var O=_.xkj(G,{canHaveZeroSize:!1}),a=function(){var se;return(se=K().contentAspectRatio)!=null?se:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},g=_.gY(function(){var se=E()&&O.width()>0?O.width()||n():n(),yY,d$=(yY=M.data())==null?void 0:yY.responsiveContainerConfiguration;
se=_.PO({containerWidth:se,sizing:d$?ih(d$==null?void 0:d$.responsiveSize):"EXTRA_COMPACT",marginSettings:p(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:se.maxContainerWidth,numItemsPerGridRow:se.numItems,contentPadding:E()?se.margin:se.contentMargin,itemWidth:se.itemWidth,itemMargin:se.gutter/2}},void 0,"mF84T"),D=function(){if(K().enableVerticalExpansion){if(A())return J();
var se,yY,d$=(yY=(se=K().contents)==null?void 0:se.length)!=null?yY:0;return Math.ceil(d$/g().numItemsPerGridRow)}return g().numItemsPerGridRow<=2?2:1},J=function(){var se;
return Math.ceil(((se=K().minCollapsedItemCount)!=null?se:1)/g().numItemsPerGridRow)},Z=function(){return K().enableVerticalExpansion&&K().showLessButton&&!A()&&D()>J()},V=function(){var se,yY;
return K().enableVerticalExpansion&&K().showMoreButton&&A()&&((yY=(se=K().contents)==null?void 0:se.length)!=null?yY:0)>g().numItemsPerGridRow*J()},S=function(){return!Z()},m=function(){return!V()},R={};
return _.W("grid-shelf-view-model",{class:_.Hb("ytGridShelfViewModelHost",M.className,(R.ytGridShelfViewModelHostHasBottomButton=function(){return Z()||V()},R.ytGridShelfViewModelHostIsDismissed=function(){var se,yY=(se=Y())!=null?se:{};
se=yY.behavior;var d$=yY.isDismissed,cy=yY.stamperContextTargetId;yY=yY.stamperIndex;if(!(_.w("mweb_see_fewer_shorts_group_dismissal")&&d$&&se&&cy))return!1;var t4;d$=y;for(var ay,bH,iH=((ay=d$)==null?0:ay.targetId)?_.TL((bH=d$)==null?void 0:bH.targetId):void 0;((t4=d$)==null?0:t4.parent)&&iH!==cy;)d$=d$.parent,bH=ay=void 0,iH=((ay=d$)==null?0:ay.targetId)?_.TL((bH=d$)==null?void 0:bH.targetId):void 0;t4=iH===cy?d$:void 0;if(!t4)return!1;var oI;cy=t4==null?void 0:(oI=t4.stamperIndex)==null?void 0:
oI.call(t4);return se==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_ALL_ITEMS"||se==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&cy!=null&&yY!=null&&cy>yY},R)),
el:G,style:_.Kp({"margin-left":(0,_.kn)(function(){return g().contentPadding}),
"margin-right":(0,_.kn)(function(){return g().contentPadding})})},_.W(_.d,{cond:function(){return _.C(K().header,tfx)},
then:function(se){return _.W(_.CU,{data:se,disableHorizontalPadding:!0})}}),_.W("div",null,_.W(_.bf,{each:function(){return Array(D())}},function(se,yY){return _.W(VTI,{className:M.className,
items:q(yY),responsiveGridShelfLayout:g,contentAspectRatio:a})})),_.W("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.W(_.yu,{data:function(){return K().showMoreButton}},{buttonViewModel:function(se){return _.W("div",{hidden:m},_.W(_.Wf,{data:se.data,
onClick:h}))}}),_.W(_.yu,{data:function(){return K().showLessButton}},{buttonViewModel:function(se){return _.W("div",{hidden:S},_.W(_.Wf,{data:se.data,
onClick:t}))}})))},"Hd");
_.Rvv.idomCompat=!0;var VTI=_.U(function(M){var q=M.items;var G=M.responsiveGridShelfLayout;var K=M.contentAspectRatio;M=M.className;var n=_.pI("div");Pbw(n,function(){a:{var p=n.value;for(var y=q(),Y=[],A=0;A<y.length;A++){var v=_.C(y[A],Vul);if(!v||v==null||!v.inlinePlayerData){p=null;break a}var h=p.children.item(A);if(!h){p=null;break a}Y.push({thumbnailElement:h,videoData:v})}p={gridVideoPreviewData:{gridItems:Y}}}return p});
var E=(0,_.kn)(function(){return-G().itemMargin});
return _.W("div",{el:n,class:_.Hb("ytGridShelfViewModelGridShelfRow",M),style:_.Kp({"margin-left":E,"margin-right":E})},_.W(_.yu,{data:q,replacementWrapper:function(p){return _.W(fu$,{responsiveGridShelfLayout:G},p)}},{shortsLockupViewModel:function(p){return _.W(fu$,{responsiveGridShelfLayout:G},_.W(aKJ,{data:p.data,
aspectRatio:function(){return K()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,titleStyle:_.w("mweb_enable_one_line_title_on_shorts")?1:_.w("mweb_enable_two_line_title_on_shorts")?2:void 0,className:void 0}))},
lockupViewModel:function(p){return _.W(fu$,{responsiveGridShelfLayout:G},_.W(_.wp,{data:p.data,className:"ytGridShelfViewModelLockupItem"}))}}))},"Id"),fu$=_.U(function(M){return _.W("div",{style:_.Kp({width:(0,_.kn)(function(){return M.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+M.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},M.children)},"Jd");
_.Rvv.idomCompat=!0;_.S5(_.Rvv,"grid-shelf-view-model",{props:{data:_.Hz,layoutContainerWidth:_.Hz,shouldUseOwnContainerSize:_.Hz,marginSettings:_.Hz,className:_.Hz}});_.FjB=_.U(function(M){var q=_.k(_.lQ(!1,void 0,"FVl30c")),G=q.next().value,K=q.next().value;q={};return _.W("yt-alert-banner-view-model",{class:_.Hb("ytAlertBannerViewModelHost",M.className,function(){var n;a:switch((n=M.data())==null?void 0:n.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":n="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":n="ytAlertBannerViewModelWarning";break a;default:n="ytAlertBannerViewModelInformational"}return n},(q.ytAlertBannerViewModelDismissed=
G,q.ytAlertBannerViewModelFullbleed=M.fullbleed,q.ytAlertBannerViewModelNarrow=M.narrow,q.ytAlertBannerViewModelIsInRichGrid=M.isInRichGrid,q))},_.W(_.d,{cond:function(){var n;
return!((n=M.data())==null?0:n.hideIcon)},
then:function(){return _.W("div",{class:"ytAlertBannerViewModelIcon"},_.W(_.np,{icon:function(){return"info_circle"}}))}}),_.W("div",{class:"ytAlertBannerViewModelOuterContainer"},_.W("div",{class:"ytAlertBannerViewModelContainer"},_.W("div",{class:"ytAlertBannerViewModelContent"},_.W("div",{class:"ytAlertBannerViewModelHeading"},_.W(_.Ft,{text:function(){var n;
return(n=M.data())==null?void 0:n.heading}})),_.W("div",{class:"ytAlertBannerViewModelBody"},_.W(_.Ft,{text:function(){var n;
return(n=M.data())==null?void 0:n.body}})))),_.W(_.yu,{data:function(){var n;
return(n=M.data())==null?void 0:n.actionButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.W(_.yu,{data:function(){var n;
return(n=M.data())==null?void 0:n.dismissButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var E;((E=M.data())==null?0:E.disableLocalDismissBehavior)||K(!0)}})}}))},"Kd");_.S5(_.FjB,"yt-alert-banner-view-model",{props:{data:_.Hz,fullbleed:_.Hz,narrow:_.Hz,isInRichGrid:_.Hz,className:_.Hz}});var Hgv;_.evP=_.U(function(M){return _.W("basic-content-view-model",{class:_.Hb("ytBasicContentViewModelHost",_.bg(M.className))},_.W(_.d,{cond:function(){return M.data().headline},
then:function(q){return _.W("div",{class:"ytBasicContentViewModelHeadline"},_.W(_.Ft,{text:q}))}}),_.W(_.bf,{each:function(){return M.data().paragraphs||[]},
keyBy:"INDEX"},function(q){return _.W("div",{class:"ytBasicContentViewModelParagraph"},_.W(_.d,{cond:function(){var G=q();return!!(G.header||G.customHeader||G.headline)},
then:function(){return _.W(Hgv,{paragraph:q})}}),_.W(_.d,{cond:function(){return q().asset||q().text},
then:function(){return _.W("div",{class:"ytBasicContentViewModelParagraphContent"},_.W(_.d,{cond:function(){return q().asset},
then:function(G){return _.W("div",{class:"ytBasicContentViewModelParagraphAsset"},_.W(_.yu,{data:G},{contentPreviewImageViewModel:_.We}))}}),_.W(_.d,{cond:function(){return q().text},
then:function(G){return _.W("div",{class:"ytBasicContentViewModelParagraphText"},_.W(_.Ft,{text:G}))}}))}}))}))},"Ld");
Hgv=_.U(function(M){var q=M.paragraph;return _.W(_.dU,null,_.W(_.d,{cond:function(){return q().headline},
then:function(G){return _.W(_.Ft,{text:G,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.W(_.yu,{data:function(){return q().header||q().customHeader}},{sectionHeaderViewModel:function(G){return _.W(_.CU,{data:G.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Md");var $9B=_.U(function(M){function q(){var O,a;Y((a=(O=n)==null?void 0:O.isKeyBoardInUse())!=null?a:!1)}
function G(){Y(!1)}
function K(){var O;return y()?(O=M.focusedClassName)==null?void 0:O.call(M):""}
var n=_.AL().resolve(_.WR(_.Nt)),E=_.k(_.lQ(!1,void 0,"SgkTXc")),p=E.next().value;E=E.next().value;var y=p,Y=E,A=function(){var O,a;return((O=M.toggleable)==null?0:O.call(M))?(a=M.toggled)==null?void 0:a.call(M):void 0},v=_.sq(function(O){var a,g=(a=M.command)==null?void 0:a.call(M);
g&&_.AL().resolve(_.vR).resolveCommand(g);var D;(D=M.onClick)==null||D.call(M,O)}),h=_.sq(q),t=_.sq(G);
return _.W(_.d,{cond:function(){var O;if(O=M.command){O=M.command();O=vb4(O);var a=O.href;O=!(!O.navigatingCommand||!a)}return O},
then:function(){return _.W(_.kv,Object.assign({},{command:M.command,style:M.style,ariaDescribedby:M.ariaDescribedby,ariaHidden:M.ariaHidden,ariaLabel:M.ariaLabel,ariaLabelledby:M.ariaLabelledby,ariaSelected:M.ariaSelected,disabled:M.disabled,dir:M.dir,tabIndex:M.tabIndex,target:M.target,title:M.title,onClick:M.onClick},{className:_.Hb("ytButtonOrAnchorHost","ytButtonOrAnchorAnchor",M.className,function(){return K()}),
onFocusin:q,onFocusout:G,ariaCurrent:function(){var O,a;return(a=(O=M.ariaCurrent)==null?void 0:O.call(M))!=null?a:A()}}),M.children)},
else:function(){return _.W("button",{"on:click":v,"on:focusin":h,"on:focusout":t,class:_.Hb("ytButtonOrAnchorHost","ytButtonOrAnchorButton",M.className,function(){return K()}),
style:M.style,"aria-describedby":M.ariaDescribedby,"aria-hidden":M.ariaHidden,"aria-label":M.ariaLabel,"aria-labelledby":M.ariaLabelledby,"aria-pressed":A,dir:M.dir,disabled:M.disabled,tabindex:M.tabIndex,title:M.title},M.children)}})},"Nd");var sLl=_.U(function(M){M=_.UT(M,{disabled:!1});var q=M.active,G=M.disabled;M={};M=_.Hb("ytSwitchShapeTrack",(M.ytSwitchShapeTrackActive=function(){return q()},M.ytSwitchShapeTrackDisabled=function(){return G()},M));
var K={};K=_.Hb("ytSwitchShapeKnob",(K.ytSwitchShapeKnobActive=function(){return q()},K));
return _.W("switch-shape",{class:"ytSwitchShapeHost"},_.W("div",{class:M}),_.W("div",{class:K}))},"Od");var MCl=_.U(function(M){var q=_.UT(M,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),G=q.data;M=q.className;var K=q.handleOnTapEventInParent,n=q.parentActive,E=q.onTap;q=_.k(_.GM(function(){var t;return(t=n())!=null?t:G().switchedOnByDefault||!1}));
var p=q.next().value,y=q.next().value,Y=function(){return G().isDisabled},A=_.pI("button");
q=_.sq(function(t){return t.key==="Enter"?(t.preventDefault(),A.value.click(),!1):!0});
var v=_.sq(function(t){if(G().handleOnTapEventInParent||K())return!0;if(Y())return!1;if(E)return E(t),!0;mki(G(),p(),t);y(!p());return!1}),h={};
h=_.Hb("ytSwitchButtonViewModelButton",(h.ytSwitchButtonViewModelTappable=function(){return!Y()},h));
return _.W("switch-button-view-model",{class:_.Hb("ytSwitchButtonViewModelHost",M)},_.W("button",{el:A,class:h,"on:click":v,"on:keydown":q,"aria-label":function(){return p()?G().a11yLabelSwitchedOn:G().a11yLabelSwitchedOff},
"aria-checked":p,"aria-disabled":Y,role:"switch"},_.W(sLl,{active:p,disabled:Y})))},"Pd");var qNv=_.U(function(M){var q=M.data;var G=M.isLeading;var K=M.hideSelectionTextChevron;var n=M.isToggled;var E=function(){return G()?q().leadingImage:q().trailingImage},p=function(){a:switch(q().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var v="expand_more";
break a;default:v="chevron_right"}return v};
M={};var y=_.Hb("yt-list-item-view-model__image-container",(M["yt-list-item-view-model__leading"]=G,M["yt-list-item-view-model__trailing"]=function(){return!G()},M)),Y=_.Hb("yt-list-item-view-model__accessory","yt-list-item-view-model__image");
M={};var A=_.Hb("yt-list-item-view-model__accessory",(M["yt-list-item-view-model__leading"]=G,M["yt-list-item-view-model__trailing"]=function(){return!G()},M));
return _.W(_.d,{cond:function(){var v=q(),h=G();return!!(h&&(v.leadingImage||v.leadingAccessory)||!h&&(v.trailingImage||v.trailingButton||v.trailingButtons||v.selectionText))},
then:function(){return _.W(_.dU,null,_.W(_.d,{cond:E,then:function(v){return _.W("div",{class:y,"aria-hidden":"true"},_.W(_.Jj,{data:v,alt:"",preserveWidth:!0,preserveHeight:!0,className:Y,isToggled:n}))}}),_.W(_.d,{cond:function(){return G()&&q().leadingAccessory},
then:function(){return _.W("div",{class:y},_.W(_.yu,{data:function(){return q().leadingAccessory}},{avatarViewModel:function(v){return _.W(_.zo,{data:v.data,
avatarButtonCustomClassName:Y})},
collectionThumbnailViewModel:function(v){return _.W(hOP,{data:v.data,maxHeight:36,width:56,includeStackHeight:!0})}}))}}),_.W(_.d,{cond:function(){return!G()&&q().trailingButton},
then:function(){return _.W("div",{class:"yt-list-item-view-model__button-container"},_.W(_.yu,{data:function(){return q().trailingButton}},{buttonViewModel:function(v){return _.W(_.Wf,{data:v.data,
className:A})}}))}}),_.W(_.d,{cond:function(){var v;
return!G()&&((v=q().trailingButtons)==null?void 0:v.buttons)},
then:function(){return _.W("div",{class:"yt-list-item-view-model__button-container"},_.W(_.yu,{data:function(){var v;return(v=q().trailingButtons)==null?void 0:v.buttons}},{buttonViewModel:function(v){return _.W(_.Wf,{data:v.data,
className:A})},
accountLinkButtonViewModel:function(v){return _.W(NHI,{data:v.data,className:A})},
switchButtonViewModel:function(v){return _.W(MCl,{data:v.data,className:A})},
subscribeButtonViewModel:function(v){return _.W(_.zR,{data:v.data,isOverlay:!1,animateWidth:!1,className:A})},
toggleButtonViewModel:function(v){return _.W(_.Dj,{data:v.data,className:A})}}))}}),_.W(_.d,{cond:function(){return!G()&&!!q().selectionText},
then:function(){return _.W(_.dU,null,_.W(_.Ft,{text:function(){return q().selectionText},
className:_.Hb("yt-list-item-view-model__selection-text","yt-list-item-view-model__selection-text--trailing-selection-text")}),_.W(_.d,{cond:function(){return!(K==null?0:K())},
then:function(){return _.W(_.np,{icon:p,className:"yt-list-item-view-model__chevron-icon"})}}))}}))}})},"Qd");var GHP=_.U(function(M){var q=M.data;return _.W(_.d,{cond:function(){return q().title||q().subtitle},
then:function(){return _.W("div",{class:"yt-list-item-view-model__text-wrapper"},_.W(_.d,{cond:function(){return q().title},
then:function(G){return _.W("div",{class:"yt-list-item-view-model__title-wrapper"},_.W(_.Ft,{text:G,className:"yt-list-item-view-model__title"}))}}),_.W(_.d,{cond:function(){return q().subtitle},
then:function(G){return _.W(_.Ft,{text:G,className:"yt-list-item-view-model__subtitle"})}}))}})},"Rd");var KS8=_.U(function(M){var q=M.data;var G=M.hideSelectionTextChevron;var K=M.TrailingAccessory;var n=M.isToggled;var E=M.disabled;var p=M.isSelectItem;var y=M.isCompact;var Y=M.inPopup;var A=M.disableHorizontalPadding;var v=M.isTappableWithoutSelect;var h=M.useButtonOrAnchor;var t=M.onTap;var O=function(){return _.W(GHP,{data:q,onTap:t,useButtonOrAnchor:h,isTappableWithoutSelect:v,isToggled:n})};
M={};return _.W("div",{class:_.Hb("yt-list-item-view-model__label",(M["yt-list-item-view-model__container"]=function(){return!(p==null?0:p())},M["yt-list-item-view-model__container--disabled"]=function(){return!!q().isDisabled||!(E==null||!E())},M["yt-list-item-view-model__container--has-subtitle"]=function(){return!!q().subtitle},M["yt-list-item-view-model__container--compact"]=y,M["yt-list-item-view-model__container--tappable"]=v,M["yt-list-item-view-model__container--in-popup"]=Y,M["yt-list-item-view-model__container--disable-horizontal-padding"]=
function(){return(A==null?void 0:A())&&!(p==null?0:p())},M))},_.W(qNv,{data:q,
isLeading:!0,hideSelectionTextChevron:G,isToggled:n}),_.W(_.d,{cond:function(){return(h==null?void 0:h())&&(v==null?void 0:v())},
then:function(){return _.W($9B,{command:function(){return _.O0(q().rendererContext)},
onClick:t,className:"yt-list-item-view-model__button-or-anchor",toggleable:n!==void 0,toggled:n},_.W(O,null))},
else:function(){return _.W(O,null)}}),_.W(_.d,{cond:function(){return!!K},
then:function(){return _.W("div",{class:"yt-list-item-view-model__trailing"},K&&_.W(K,null))},
else:function(){return _.W(qNv,{data:q,isLeading:!1,hideSelectionTextChevron:G,isToggled:n})}}))},"Sd");var EMf=_.U(function(M){var q=_.UT(M,{checked:!1});M=q.name;var G=q.onChange,K=q.onClick,n=q.checked,E=q.labelRenderable,p=q.hasLeadingLabel,y=q.labelClass,Y=q.isCompact,A=q.selectElementClass;q=q.disableHorizontalPadding;var v="checkbox"+_.Qp(_.zx),h=_.sq(function(a){K==null||K(a);return!1}),t=_.sq(function(a){G==null||G(a);
return!1}),O={};
return _.W("checkbox-shape",null,_.W("label",{class:_.Hb("ytCheckboxShapeHost",y,(O.ytCheckboxShapeHostCompact=Y,O.ytCheckboxShapeDisableHorizontalPadding=q,O))},_.W("input",{class:"ytCheckboxShapeInput",id:v,checked:n,name:M,type:"checkbox","prop:checked":n,"on:change":t,"on:click":h}),_.W(_.d,{cond:function(){return!(p==null?0:p())},
then:function(){return _.W(nMM,{isLeading:!0,selectElementClass:A})}}),_.W(_.d,{cond:function(){return!!E},
then:function(){return _.W("div",{class:"ytCheckboxShapeLabel"},E==null?void 0:E())}}),_.W(_.d,{cond:p,
then:function(){return _.W(nMM,{isLeading:!1,selectElementClass:A})}})))},"Td");
EMf.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var nMM=_.U(function(M){var q=M.selectElementClass;M={};return _.W("div",{class:_.Hb("ytCheckboxShapeCheckbox",q,(M.ytCheckboxShapeCheckboxDefaultStyle=function(){return!(q==null?0:q())},M)),
"aria-hidden":"true"},_.W(_.np,{icon:_.w("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.W(_.np,{icon:_.w("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ud");_.mV=_.U(function(M){var q=M.name;var G=M.onChange;var K=M.onClick;var n=M.checked;var E=M.labelRenderable;var p=M.useCheckIcon;var y=M.hasLeadingLabel;var Y=M.labelClass;var A=M.isCompact;var v=M.selectElementClass;var h=M.ariaLabel;M=M.className;var t="radio"+_.Qp(_.zx),O=_.pI("input"),a=_.sq(function(R){O.value.checked=!(n==null||!n());G==null||G(R);return!1}),g=_.sq(function(R){K==null||K(R);
return!1}),D=_.sq(function(R){_.w("enable_ios_webview_radio_button_responsiveness")&&(R.preventDefault(),O.value.click())}),J=_.k(_.lQ(!1,void 0,"TcCZlf")),Z=J.next().value,V=J.next().value;
J=_.sq(function(){var R;((R=_.AL().resolve(_.WR(_.Nt)))==null?0:R.isKeyBoardInUse())&&V(!0)});
var S=_.sq(function(){V(!1)}),m={};
return _.W("radio-shape",{class:_.Hb("yt-radio-shape",M)},_.W("input",{el:O,class:"yt-radio-shape__input",id:t,"prop:checked":n,name:q,type:"radio","on:change":a,"on:click":g,"aria-label":h,"on:focusin":J,"on:focusout":S}),_.W("label",{class:_.Hb("yt-radio-shape__label-container",Y,(m["yt-radio-shape--compact"]=A,m["yt-radio-shape__label-container--keyboard-focused"]=Z,m)),for:t,"on:click":D},_.W(_.d,{cond:function(){return!(y==null?0:y())},
then:function(){return _.W(Nal,{checked:n,useCheckIcon:p,isLeading:!0,selectElementClass:v})}}),_.W(_.d,{cond:function(){return!!E},
then:function(){return _.W("div",{class:"yt-radio-shape__label","aria-hidden":function(){return(h==null?0:h())?"true":"false"}},E==null?void 0:E())}}),_.W(_.d,{cond:y,
then:function(){return _.W(Nal,{checked:n,useCheckIcon:p,isLeading:!1,selectElementClass:v})}})))},"Vd");
_.mV.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Nal=_.U(function(M){var q=M.useCheckIcon;var G=M.selectElementClass;M=function(){return(q==null?0:q())?"CHECK":_.w("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var K={};return _.W("div",{class:_.Hb("yt-radio-shape__radio",G,(K["yt-radio-shape__radio--check-icon"]=q,K["yt-radio-shape__radio--radio-default-style"]=function(){return!(G==null?0:G())},K)),
"aria-hidden":"true"},_.W(_.np,{icon:M}),_.W(_.np,{icon:M,active:function(){return!(q==null?0:q())}}))},"Wd");_.Sy=_.U(function(M){var q=M.data;var G=M.isMenuItem;var K=M.isCompact;var n=M.onTap;var E=M.trailingAccessory;var p=M.hideSelectionTextChevron;var y=M.disabled;var Y=M.inPopup;var A=M.disableHorizontalPadding;var v=M.isOverlay;var h=M.isToggled;var t=M.ariaLabel;M=M.ariaPressed;var O=!_.w("web_enable_killswitch_for_selectable_list_item_on_tap_fix"),a=_.pp(function(iH){return r8j(q(),iH)}),g=function(){return _.w("enable_web_shorts_captions_language_command")||_.w("web_shorts_audio_track_picker")||
q().entitySelectorType==="LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_REMOVE_ADS_AD_STATE"},D=function(){return g()?Object.assign({},q(),a().data):q()},J=_.V2H(function(){return D().rendererContext}),Z=function(){return!(D().isSelected===void 0||!D().selectionStyle||D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},V=function(){return(_.wx(D().rendererContext)||n)&&!Z()},S={},m=_.Hb("yt-list-item-view-model__container",(S["yt-list-item-view-model__container--tappable"]=function(){return _.wx(D().rendererContext)||
Z()},S["yt-list-item-view-model__container--compact"]=K,S["yt-list-item-view-model__container--in-popup"]=Y,S["yt-list-item-view-model__container--disable-horizontal-padding"]=function(){return(A==null?void 0:A())&&Z()},S)),R=function(){return D().leadingImage||D().leadingAccessory},se=_.Hb("yt-list-item-view-model__image-container",function(){return R()?"yt-list-item-view-model__trailing":"yt-list-item-view-model__leading"});
S=_.sq(function(iH){var oI;if(oI=O)oI=D().selectionStyle,oI=oI==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"||oI==="LIST_ITEM_SELECTION_STYLE_RADIO"||oI==="LIST_ITEM_SELECTION_STYLE_DEFAULT";oI||bH||n==null||n(iH)});
var yY=_.TDF(),d$=_.k(_.lQ(!1,void 0,"q9Dj4b")),cy=d$.next().value,t4=d$.next().value,ay=function(){return _.W(KS8,{data:D,hideSelectionTextChevron:p,TrailingAccessory:E,isToggled:h,disabled:y,isSelectItem:Z,isCompact:K,inPopup:Y,disableHorizontalPadding:A,isTappableWithoutSelect:V,useButtonOrAnchor:bH,onTap:n})},bH=_.w("web_button_or_anchor_list_item");
d$={};return _.W("yt-list-item-view-model",{el:_.bm(_.CL(function(){return D().rendererContext},void 0,void 0,bH?["A".toString(),
"BUTTON".toString()]:[]),bH&&n?j0H(n):void 0,KWw(function(){return V==null?void 0:V()},{focusin:function(){var iH;
((iH=_.AL().resolve(_.WR(_.Nt)))==null?0:iH.isKeyBoardInUse())&&t4(!0)},
focusout:function(){t4(!1)}})),
class:_.Hb("yt-list-item-view-model",(d$["yt-list-item-view-model--is-overlay"]=v,d$["yt-list-item-view-model--keyboard-focused"]=cy,d$["yt-list-item-view-model--hidden"]=function(){return g()?a().isHidden:!1},d$)),
role:function(){return(G==null?0:G())?"menuitem":"listitem"},
tabindex:function(){var iH=V();iH=bH?void 0:n||iH?0:void 0;return iH},
"on:keydown":yY,"on:click":S,"aria-label":function(){var iH;return(t==null?void 0:t())||((iH=J())==null?void 0:iH.label)},
"aria-pressed":M},_.W(_.d,{cond:Z,then:function(){return _.W(_.Ub,null,_.W(_.J3,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.W(EMf,{labelRenderable:ay,
isCompact:K,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!R()},
labelClass:m,selectElementClass:se,disableHorizontalPadding:A,onClick:O?n:void 0})}),_.W(_.J3,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.W(_.mV,{labelRenderable:ay,
isCompact:K,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!R()},
labelClass:m,selectElementClass:se,onClick:O?n:void 0})}),_.W(_.J3,{when:function(){return D().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.W(_.mV,{labelRenderable:ay,
isCompact:K,checked:function(){return D().isSelected},
hasLeadingLabel:function(){return!!R()},
labelClass:m,selectElementClass:se,useCheckIcon:!0,onClick:O?n:void 0})}),_.W(_.Zk,null,ay))},
else:ay}))},"Xd");
_.Sy.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var Tx;_.r0=_.U(function(M){var q=function(){var K,n;return((K=M.data().linearLayoutContainerConfiguration)==null?void 0:K.flexDirection)==="FLEX_DIRECTION_ROW"||((n=M.data().linearLayoutContainerConfiguration)==null?void 0:n.flexDirection)==="FLEX_DIRECTION_ROW_REVERSE"},G=function(){return M.data().linearLayoutContainerConfiguration};
return _.W("yt-linear-layout-view-model",{class:_.Hb("ytLinearLayoutViewModelHost",function(){a:switch(M.data().orientation){case "LINEAR_LAYOUT_ORIENTATION_HORIZONTAL":var K="ytLinearLayoutViewModelHorizontal";break a;default:K="ytLinearLayoutViewModelVertical"}return K},function(){var K=M.data().linearLayoutContainerConfiguration;
return K?[FDF(K==null?void 0:K.flexDirection),H6j(K==null?void 0:K.justifyContent),edy(K==null?void 0:K.alignItems)].join(" "):""})},_.W(_.yu,{data:function(){return M.data().items}},{lockupViewModel:function(K){return _.W(Tx,{linearLayoutContainerConfiguration:G,
className:"ytLinearLayoutViewModelLockupItem"},_.W(_.wp,{data:K.data,containerType:function(){return q()?2:3},
sizing:"COMPACT",thumbnailFixedWidth:function(){return q()?void 0:"33%"}}))},
basicContentViewModel:function(K){return _.W(Tx,{linearLayoutContainerConfiguration:G,className:"ytLinearLayoutViewModelBasicContentItem"},_.W(_.evP,{data:K.data}))},
linearLayoutViewModel:function(K){return _.W(Tx,{linearLayoutContainerConfiguration:G},_.W(_.r0,{data:K.data}))},
thumbnailViewModel:function(K){return _.W(Tx,{linearLayoutContainerConfiguration:G,className:"ytLinearLayoutViewModelThumbnailItem"},_.W(_.kl,{data:K.data}))},
descriptionPreviewViewModel:function(K){return _.W(Tx,{linearLayoutContainerConfiguration:G},_.W(_.w0,{data:K.data}))},
listItemViewModel:function(K){return _.W(Tx,{linearLayoutContainerConfiguration:G},_.W(_.Sy,{data:K.data}))}}))},"Yd");
Tx=_.U(function(M){return _.W("div",{style:function(){var q;var G=fKD((q=M.linearLayoutContainerConfiguration)==null?void 0:q.call(M));return _.Kp(G)()},
class:M.className},M.children)},"Zd");_.S5(_.r0,"yt-linear-layout-view-model",{props:{data:_.Hz}});_.jy=_.U(function(M){var q=M.data;var G=M.callback;var K=M.selectionBehavior;var n=M.disableChipsScrollAnimation;var E=_.yw("div");M=_.k(_.lQ(!0,void 0,"aUEsOc"));var p=M.next().value,y=M.next().value;M=_.k(_.lQ(!1,void 0,"V0aKld"));var Y=M.next().value,A=M.next().value,v=!1,h=0;_.mT(function(){y(a());A(g())});
M=_.k(_.GM(function(){var se={};return q().autoselectedChipIndex!=null?(se[q().autoselectedChipIndex]=!0,se):{}}));
var t=M.next().value,O=M.next().value,a=function(){var se=E.value;return se==null||se.scrollLeft-1<=0},g=function(){var se=E.value;
return se==null?!1:se.scrollLeft+1>=(se==null?NaN:se.scrollWidth)-(se==null?NaN:se.clientWidth)},D=function(){return q().isHorizontallyScrollable},J=function(se){E.value!=null&&(_.R9("HTML_DIR")==="rtl"&&(se=-se),E.value.scrollBy({left:se,
behavior:(n==null?0:n())?"instant":"smooth"}))},Z=function(){J(-320)},V=function(){J(320)},S=_.sq(function(se){v=!0;
h=se.clientX}),m=_.sq(function(se){if(v){se=se.clientX;
var yY=se-h;h=se;var d$;(d$=E.value)==null||d$.scrollBy({left:-yY})}}),R=_.sq(function(){var se=a(),yY=g();
se!==p()&&y(se);yY!==Y()&&A(yY)});
_.WU("pointerup",function(){v&&(v=!1)});
return _.W("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},_.W(_.ve,{contentId:function(){return q().contentId},
useModernStyle:!0},function(){var se={},yY={};return _.W("div",null,_.W(_.d,{cond:function(){return q().title},
then:function(){return _.W("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.W("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},function(){return q().title}),_.W(_.yu,{data:function(){return q().overflowButton}},{buttonViewModel:_.Wf}))}}),_.W("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.W(_.d,{cond:function(){return q().previousButton},
then:function(){var d$={};return _.W("div",{class:_.Hb("ytChipsShelfViewModelLeftArrowContainer",(d$.ytChipsShelfViewModelLeftArrowContainerIsHidden=function(){return p()},d$))},_.W(_.yu,{data:function(){return q().previousButton}},{buttonViewModel:function(cy){return _.W(_.Wf,{data:cy.data,
className:"ytChipsShelfViewModelLeftArrow",onClick:Z})}}))}}),_.W("div",{el:E,
"on:pointerdown":S,"on:pointermove":m,"on:scroll":R,class:_.Hb("ytChipsShelfViewModelChipsScrollContainer",(se.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=D,se))},_.W("div",{class:_.Hb("ytChipsShelfViewModelChipsContainer",(yY.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=D,yY.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!1,yY)),role:"tablist"},_.W(_.yu,{data:function(){return q().contents}},{chipViewModel:function(d$,cy){return _.W("div",
{class:"ytChipsShelfViewModelChipWrapper"},_.W(_.zv$,{data:d$.data,
callback:function(t4,ay){var bH=cy(),iH,oI=(iH=K==null?void 0:K())!=null?iH:0;oI===1||oI===2?(iH={},O((iH[bH]=ay,iH))):(iH={},O(Object.assign({},t(),(iH[bH]=ay,iH))));G==null||G(t4,ay,bH)},
disableDeselection:function(){return(K==null?void 0:K())===1},
selected:function(){return!!t()[cy()]}}))}}))),_.W(_.d,{cond:function(){return q().nextButton},
then:function(){var d$={};return _.W("div",{class:_.Hb("ytChipsShelfViewModelRightArrowContainer",(d$.ytChipsShelfViewModelRightArrowContainerIsHidden=Y,d$))},_.W(_.yu,{data:function(){return q().nextButton}},{buttonViewModel:function(cy){return _.W(_.Wf,{data:cy.data,
className:"ytChipsShelfViewModelRightArrow",onClick:V})}}))}})))}))},"ae");
_.jy.idomCompat={callbacks:{callback:!0}};_.S5(_.jy,"chips-shelf-view-model",{props:{data:_.Hz,callback:_.xj,selectionBehavior:_.Hz,disableChipsScrollAnimation:_.Hz}});_.S5(_.U(function(M){return _.W("yt-comment-filter-context-view-model",{class:_.Hb("ytCommentFilterContextHost",M.className)},_.W(_.Ft,{text:function(){return M.data().text}}))},"be"),"yt-comment-filter-context-view-model",{props:{data:_.Hz,
className:_.xj}});_.kH9=_.U(function(M){var q=M.data;var G=M.onTap;var K=M.onSwitch;var n=M.overrideDisabled;M=M.disableHorizontalPadding;var E=_.k(_.GM(function(){var O;return((O=TdY(h()))==null?void 0:O.switchedOnByDefault)||!1})),p=E.next().value,y=E.next().value;
E=_.k(_.lQ(!1,void 0,"ZHBkbb"));var Y=E.next().value,A=E.next().value,v=_.w("web_button_or_anchor_list_item"),h=function(){var O;if(!(O=q().switchButton)){var a=q();O=n==null?void 0:n();a={switchOnCommand:a.switchOnCommand,switchOffCommand:a.switchOffCommand,switchedOnByDefault:a.switchedOnByDefault,isDisabled:a.isDisabled,handleOnTapEventInParent:!v,a11yLabelSwitchedOn:a.a11yLabelSwitchedOn,a11yLabelSwitchedOff:a.a11yLabelSwitchedOff};O!==void 0&&(a.isDisabled=O);O={switchButtonViewModel:a}}return O},
t=function(O){var a=TdY(h());
!a||a.isDisabled||q().ignoreTapUntilCommandCompletes&&Y()||(G==null||G(O),mki(a,p(),O,q().ignoreTapUntilCommandCompletes,A),y(!p()),K==null||K(p()))};
return _.W("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.W(_.Sy,{data:function(){return{title:q().title,subtitle:q().attributedSubtitle,leadingImage:q().leadingImage,leadingAccessory:q().leadingAccessory,isDisabled:q().isDisabled}},
onTap:t,isToggled:v?p:void 0,trailingAccessory:function(){return _.W(_.yu,{data:h},{switchButtonViewModel:function(O){return _.W(MCl,{data:O.data,parentActive:p,handleOnTapEventInParent:!!G&&!v,onTap:v?t:void 0})}})},
disableHorizontalPadding:M}))},"ce");var pSp=_.U(function(M){var q=_.k(_.GM(function(){var n,E;return!!((n=M.data())==null?0:(E=n.initialState)==null?0:E.isToggled)})),G=q.next().value,K=q.next().value;
q=_.sq(function(){K(!G())});
return _.W("toggleable-list-item-view-model",{el:_.bm(_.CL(function(){return M.data().rendererContext})),
class:_.Hb("toggleableListItemViewModelHost",M.className),"on:click":q},_.W(_.d,{cond:function(){if(G()){var n=M.data().toggledListItem;n=_.C(n,_.Ye)}else n=M.data().defaultListItem,n=_.C(n,_.Ye);return n},
then:function(n){return _.W(_.Sy,{data:n,isToggled:G,ariaLabel:function(){var E=G()?M.data().toggledListItem:M.data().defaultListItem,p;E=(p=_.C(E,_.Ye))==null?void 0:p.rendererContext;var y;return(y=_.C(E,_.NQ))==null?void 0:y.label},
ariaPressed:function(){return G()}})}}))},"de");var yH9=_.Ge("DOWNLOAD",{},"Download"),LS8=_.Ge("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),YNv=_.Ge("RETRY",{},"Retry"),WSI=_.Ge("PAUSE_DOWNLOADING",{},"Pause downloading"),AHp=_.Ge("RESUME_DOWNLOAD",{},"Resume download"),$kF={text:yH9,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},p5={text:LS8,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},qyY={text:YNv,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
smH={text:WSI,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},MFH={text:AHp,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var dU9=_.U(function(M){var q=function(){var y=M.data();y=_.O0(y.rendererContext);var Y;return(Y=_.C(y,_.KL))==null?void 0:Y.videoId},G=_.pp(function(y){var Y=q(),A=nTe(M.data());
return Y?_.Xp(y,Y):A?_.Ps(y,A):"TRANSFER_STATE_UNKNOWN"}),K=_.No(_.eCw,q),n=_.pp(function(y){return _.rvi(y,q(),nTe(M.data()))}),E=function(){return K1w(G(),K(),_.O0(M.data().rendererContext),!!nTe(M.data()))},p=function(){return n()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.W("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:p},_.W(_.d,{cond:function(){return!p()},
then:function(){return _.W(_.d,{cond:E,then:function(y){return _.W(_.bf,{each:y},function(Y){return _.W(_.Sy,{data:Y,isCompact:M.isCompact,isMenuItem:M.isMenuItem,inPopup:M.inPopup,disableHorizontalPadding:M.disableHorizontalPadding})})}})}}))},"ee");
dU9.idomCompat=!0;_.vMp=_.U(function(M){var q=M.data;var G=M.isCompact;var K=M.hideSelectionTextChevron;var n=M.inPopup;var E=M.isOverlay;var p=M.disableHorizontalPadding;var y=function(){return ETY(q())&&(n==null?void 0:n())};
M=_.sq(function(A){if(n!=null&&n()&&_.w("web_enable_arrow_key_navigation_in_dropdown")){var v=_.N$e(A.currentTarget),h=v.length;if(h!==0){var t=Array.prototype.indexOf.call(v,document.activeElement);switch(A.key){case "ArrowDown":A.preventDefault();var O;(O=v[(t+1)%h])==null||O.focus();break;case "ArrowUp":A.preventDefault();var a;(a=v[t===-1?h-1:(t-1+h)%h])==null||a.focus()}}}});
var Y={};return _.W("yt-list-view-model",{class:_.Hb("ytListViewModelHost",(Y.ytListViewModelHostKaiosSpatNav=ywy&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",Y.ytListViewModelCollectionThumbnailClass=function(){return pVu(q())},Y)),
role:function(){return y()?"menu":"list"},
style:_.Kp({"max-height":function(){var A,v=(A=q())==null?void 0:A.visibleElementCount;if(v)return pVu(q())?(v+.5)*48+"px":(v+.5)*40+"px"}}),
"on:keydown":M},_.W(_.yu,{data:function(){return q().listItems}},{listItemViewModel:function(A){return _.W(_.Sy,{data:A.data,
isMenuItem:y,isCompact:G,hideSelectionTextChevron:K,inPopup:n,isOverlay:E,disableHorizontalPadding:p})},
toggleableListItemViewModel:function(A){return _.W(pSp,{data:A.data})},
downloadListItemViewModel:function(A){return _.W(dU9,{data:A.data,isMenuItem:y,isCompact:G,inPopup:n,disableHorizontalPadding:p})},
switchListItemViewModel:function(A){return _.W(_.kH9,{data:A.data,disableHorizontalPadding:p})}}))},"fe");
_.vMp.idomCompat=!0;var hMx=_.U(function(M){var q=M.data;var G=M.isOverlay;M={};return _.W("yt-course-perks-view-model",{class:_.Hb("ytwCoursePerksViewModelHost",(M.ytwCoursePerksViewModelHostOverlay=G,M))},_.W("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",null,_.W(_.d,{cond:function(){return q().perks},
then:function(K){return _.W(_.vMp,{data:function(){return{listItems:K()}},
isCompact:!0,isOverlay:G})}})))},"ge");_.S5(hMx,"yt-course-perks-view-model",{props:{data:_.xj,isOverlay:_.xj}});_.S5(_.U(function(M){var q=M.data;return _.W("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.W("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.W(_.Ft,{text:function(){return q().progressSummary}})),_.W("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.W("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Kp({width:function(){return q().progressPercentage*100+"%"}})})))},"he"),"yt-course-progress-view-model",{props:{data:_.Hz}});var tC2=_.U(function(M){var q={};return _.W("yt-progress-view-model",{class:_.Hb("ytwProgressViewModelHost",(q.ytwProgressViewModelHostOverlay=_.bg(M.isOverlay,!1),q))},_.W(_.d,{cond:function(){return M.data().progressSummary},
then:function(G){return _.W("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.W(_.Ft,{text:G}))}}),_.W("div",{class:"ytwProgressViewModelHostProgressContainer"},_.W(_.d,{cond:function(){return M.data().leadingLabel},
then:function(G){return _.W("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.W(_.Ft,{text:G}))}}),_.W("div",{class:"ytwProgressViewModelHostProgressBar"},_.W("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(M.data().progressPercentage||0)*100+"%"}}))))},"ie");var Vc=_.U(function(M){var q=M.starNumber;var G=M.data;var K=function(){var n;return((n=G())==null?void 0:n.rating)||0};
return _.W(_.d,{cond:function(){return q()},
then:function(n){return _.W(_.Ub,null,_.W(_.J3,{when:function(){return K()>=n()-.25}},function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.np,{icon:"STAR_FILLED",
size:function(){return 24}}))}),_.W(_.J3,{when:function(){return K()>=n()-.75}},function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.np,{icon:"STAR_HALF",
size:function(){return 24}}))}),_.W(_.Zk,null,function(){return _.W("div",{class:"ytStarRatingViewModelHostStar"},_.W(_.np,{icon:"STAR_BORDER",
size:function(){return 24}}))}))}})},"je"),OoI=_.U(function(M){M=M.data;
return _.W("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.W(Vc,{starNumber:1,data:M}),_.W(Vc,{starNumber:2,data:M}),_.W(Vc,{starNumber:3,data:M}),_.W(Vc,{starNumber:4,data:M}),_.W(Vc,{starNumber:5,data:M}))},"ke");_.S5(_.U(function(M){var q=_.UT(M,{}).data;return _.W("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.W("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.W(_.Ft,{text:function(){var G;return(G=q())==null?void 0:G.title}})),_.W("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.W(_.d,{cond:function(){return q().starProgressViewModels},
then:function(G){return _.W("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.W(_.yu,{data:G},{progressViewModel:tC2}))}}),_.W("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.W("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.W(_.Ft,{text:function(){var G;
return(G=q())==null?void 0:G.averageRatingLabel}})),_.W(_.d,{cond:function(){return q().zeroStateText},
then:function(G){return _.W("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.W(_.Ft,{text:G}))}}),_.W(_.d,{cond:function(){return q().starRatingViewModel},
then:function(G){return _.W("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.W(_.yu,{data:G},{starRatingViewModel:OoI}))}}),_.W("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.W(_.Ft,{text:function(){var G;
return(G=q())==null?void 0:G.totalRatingsCountLabel}})))))},"le"),"yt-course-ratings-view-model",{props:{data:_.xj}});var wSJ;wSJ={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"}};_.CeJ=_.U(function(M){var q=_.pI("yt-learning-journey-loader-view-model"),G=_.qo();_.mT(function(){requestAnimationFrame(function(){var n;(n=G.lottieEl)==null||n.addEventListener("DOMLoaded",function(){var E;(E=M.onLottieLoaded)==null||E.call(M)})});
var K=M.data().browseEndpoint;K&&_.Pb(K)});
return _.W("yt-learning-journey-loader-view-model",{class:_.Hb("learningJourneyLoaderViewModelHost",M.className),"data-target-id":function(){return M.data().targetId||""},
el:q},_.W(_.C3,{className:_.Hb("learningJourneyLoaderViewModelLoader",M.className),animationName:function(){return wSJ.animationConfig.name},
data:wSJ,animationRef:G}))},"ne");_.S5(_.CeJ,"yt-learning-journey-loader-view-model",{props:{data:_.Hz,className:_.xj,onLottieLoaded:_.xj}});var L1F=new Set,ymD=null;var am9=_.U(function(M){var q=void 0,G=function(){return M.data()},K=function(){return!!Yn(yS(G())).optionColor},n=_.k(_.lQ(-1,void 0,"eTdwcb")),E=n.next().value,p=n.next().value,y=function(t){return E()===t},Y=function(t){return G().correctAnswerIndex===t},A=function(){return E()!==-1};
n=_.k(_.lQ("",void 0,"QwJs6"));var v=n.next().value,h=n.next().value;return _.W("learning-journey-quiz-view-model",{class:_.Hb("learningQuizComponentHost","learningJourneyQuizYoututorHost",M.className),style:_.Kp({background:function(){return Yn(yS(G())).backgroundColor}})},_.W("div",{"aria-live":"polite",
class:"learningJourneyQuizYoututorVisuallyHidden"},v),_.W("div",{class:"learningQuizComponentQuizContainer"},_.W("div",{class:"learningQuizComponentQuiz"},_.W("div",{class:"learningQuizComponentQuizContent"},_.W(_.d,{cond:function(){return!!G().aiGeneratedQuizLabel},
then:function(){return _.W("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.W(_.Ft,{text:function(){return G().aiGeneratedQuizLabel}}))}}),_.W("div",{class:"learningQuizComponentQuizHeader",
style:_.Kp({"align-items":function(){return G().overflowMenu?"start":"center"}})},_.W("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Kp({"min-height":function(){return G().overflowMenu?"48px":"26px"}})},_.W("div",{class:"learningJourneyQuizYoututorText",
style:_.Kp({color:function(){return Yn(yS(G())).primaryTextColor}})},_.W(_.Ft,{text:function(){return G().questionHeaderText}})))),_.W("div",{class:"learningQuizComponentQuizSubheader",
style:_.Kp({color:function(){return Yn(yS(G())).secondaryTextColor}})},_.W(_.Ft,{text:function(){var t=G();
return A()?t.explanationText:t.questionSubheaderText}}))),_.W("div",{role:"group",
class:_.Hb("learningQuizComponentQuizOptionsList","learningJourneyQuizYoututorOptionsListGap")},_.W(_.bf,{each:function(){return G().optionsData||[]}},function(t,O){var a={};
return _.W("button",{class:_.Hb("learningQuizComponentQuizOptions","learningJourneyQuizYoututorOptionsGap","learningJourneyQuizYoututorOptionsBorderSquare",(a.learningQuizComponentQuizHover=function(){return!A()},a.learningQuizComponentQuizOptionWithCustomColor=K,a.learningJourneyQuizYoututorOptionSelectedCorrectOutline=function(){return A()&&Y(O())},a.learningJourneyQuizYoututorOptionSelectedIncorrectOutline=function(){return E()!==G().correctAnswerIndex&&y(O())},a.learningQuizComponentQuizIncorrectShake=
function(){return E()!==G().correctAnswerIndex&&y(O())},a)),
"on:click":_.sq(function(){if(A())return!1;p(O());var g,D;h(Y(O())?((g=G().successTitle)==null?void 0:g.content)||"":((D=G().failureTitle)==null?void 0:D.content)||"");return!1}),
style:_.Kp({background:"transparent"}),"aria-description":function(){var g,D;return A()?Y(O())?(g=G().successTitle)==null?void 0:g.content:(D=G().failureTitle)==null?void 0:D.content:""},
"aria-disabled":A,el:_.bm(function(g){_.W3(271905,g,q,function(D){q=D})}),
"client-ve-type":271905},_.W("div",{class:"learningQuizComponentQuizOptionContainer"},_.W(_.Ft,{text:t.optionText}),_.W(_.d,{cond:function(){var g=O();return A()&&(y(g)||Y(g))},
then:function(){var g={};return _.W(_.np,{className:_.Hb("learningJourneyQuizYoututorOptionIcon",(g.learningQuizComponentQuizPulse=function(){return E()===G().correctAnswerIndex&&Y(O())},g)),
size:24,icon:function(){return Y(O())?"CHECK_CIRCLE_FILLED":"X_CIRCLE"},
active:!0})}})))}),_.W(_.d,{cond:A,
then:function(){return _.W("div",{class:"learningJourneyQuizYoututorExplanationContainer"},_.W("div",{class:"learningJourneyQuizYoututorExplanationText"},_.W(_.Ft,{text:function(){return G().explanationHeaderText}})),_.W(_.Ft,{text:function(){return G().optionsData[E()].explanationText},
className:"learningJourneyQuizYoututorExplanationDescriptionText"}))}})))))},"oe");
am9.idomCompat=!0;var oM2;_.lmJ=_.U(function(M){var q=null,G=null,K=null,n=function(){return M.data()},E=function(){return Yn(yS(n()))},p=function(){return!!E().optionColor},y=_.k(_.lQ(-1,void 0,"gXauJb")),Y=y.next().value,A=y.next().value,v=function(S){return Y()===S},h=function(S){return n().correctAnswerIndex===S},t=function(){return Y()!==-1},O=function(){return Y()===n().correctAnswerIndex},a=function(){var S=n(),m=t(),R=O();
return m?R?S.successTitle:S.failureTitle:S.questionHeaderText},g=function(){var S=t(),m=O();
return S?m?264685:264684:264683},D=function(){var S=n();
return t()?S.explanationText:S.questionSubheaderText},J=function(){return!!n().video},Z=function(S){return O()&&h(S)},V=_.sq(function(){A(-1);
return!1});
return _.W(_.d,{cond:function(){return n().quizType==="LEARNING_JOURNEY_QUIZ_TYPE_YOUTUTOR"},
then:function(){return _.W(am9,{data:function(){return n()}})},
else:function(){return _.W("learning-journey-quiz-view-model",{class:_.Hb("learningQuizComponentHost",M.className),style:_.Kp({background:function(){return E().backgroundColor}})},_.W(_.d,{cond:J,
then:function(){return _.W("div",{class:"learningJourneyQuizViewModelVideoContainer",style:_.Kp({background:function(){return E().videoBackgroundColor}})},_.W(_.yu,{data:function(){return n().video}},{lockupViewModel:function(S){return _.W(_.wp,{data:S.data,
containerType:1,className:"learningJourneyQuizViewModelVideoLockup"})}}))}}),_.W("div",{class:"learningQuizComponentQuizContainer"},_.W("div",{class:"learningQuizComponentQuiz"},_.W("div",{class:"learningQuizComponentQuizContent"},_.W(_.d,{cond:function(){return!!n().aiGeneratedQuizLabel},
then:function(){return _.W("div",{class:"learningQuizComponentQuizAiGeneratedLabel"},_.W(_.Ft,{text:function(){return n().aiGeneratedQuizLabel}}))}}),_.W("div",{class:"learningQuizComponentQuizHeader",
style:_.Kp({"align-items":function(){return n().overflowMenu?"start":"center"}})},_.W("div",{class:"learningQuizComponentQuizHeaderTextContainer",
style:_.Kp({"min-height":function(){return n().overflowMenu?"48px":"26px"}})},_.W("div",{class:"learningJourneyQuizViewModelQuizHeaderText",
el:_.bm(function(S){_.W3(g(),S,q,function(m){q=m})}),
style:_.Kp({color:function(){return E().primaryTextColor}}),
"client-ve-type":g},_.W(_.Ft,{text:a}))),_.W("div",{class:"learningJourneyQuizViewModelQuizHeaderButtons"},_.W(_.d,{cond:t,then:function(){return _.W("div",{id:"resetButton",class:"learningQuizComponentQuizHover",el:_.bm(function(S){_.W3(264687,S,G,function(m){G=m})}),
"on:click":V,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.W("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Kp({fill:function(){return E().primaryTextColor}})},_.W("path",{d:"M440-122q-121-15-200.5-105.5T160-440q0-66 26-126.5T260-672l57 57q-38 34-57.5 79T240-440q0 88 56 155.5T440-202v80zm80 0v-80q87-16 143.5-83T720-440q0-100-70-170t-170-70h-3l44 44-56 56-140-140 140-140 56 56-44 44h3q134 0 227 93t93 227q0 121-79.5 211.5T520-122z"})))}}),
_.W(_.yu,{data:function(){return n().overflowMenu}},{buttonViewModel:function(S){return _.W(_.Wf,{data:S.data})}}))),_.W("div",{class:"learningQuizComponentQuizSubheader",
el:_.bm(function(S){_.W3(264688,S,K,function(m){K=m})}),
style:_.Kp({color:function(){return E().secondaryTextColor}}),
"client-ve-type":264688},_.W(_.Ft,{text:D}))),_.W("div",{role:"group",class:"learningQuizComponentQuizOptionsList"},_.W(_.bf,{each:function(){return n().optionsData||[]}},function(S,m){var R={};
return _.W("button",{class:_.Hb("learningQuizComponentQuizOptions","learningJourneyQuizViewModelQuizOptions","learningJourneyQuizViewModelQuizOptionsBorderRound",(R.learningQuizComponentQuizHover=function(){return!t()},R.learningQuizComponentQuizOptionWithCustomColor=p,R.learningJourneyQuizViewModelQuizOptionSelectedCorrect=function(){return Z(m())},R.learningJourneyQuizViewModelQuizOptionSelectedIncorrect=function(){return!O()&&v(m())},R.learningQuizComponentQuizIncorrectShake=function(){return!O()&&
v(m())},R.learningJourneyQuizViewModelQuizOptionNotSelected=function(){return t()&&!v(m())},R)),
"on:click":_.sq(function(){if(t())return!1;A(m());return!1}),
style:_.Kp({background:function(){var se=m();return t()&&v(se)?"":p()?E().optionColor:"transparent"}}),
"aria-disabled":t,"client-ve-type":264686},_.W("div",{class:"learningQuizComponentQuizOptionContainer"},_.W(_.d,{cond:t,then:function(){return _.W(oM2,{isOptionCorrect:h,optionIndex:m,isOptionSelectedAndCorrect:Z,colors:E})}}),_.W(_.Ft,{text:S.optionText})))})))))}})},"pe");
oM2=_.U(function(M){var q={};return _.W("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var G=M.optionIndex();return M.isOptionCorrect(G)?"0 0 24 24":"0 -960 960 960"},
class:_.Hb("learningJourneyQuizViewModelQuizOptionIconLeading",(q.learningQuizComponentQuizPulse=function(){return M.isOptionSelectedAndCorrect(M.optionIndex())},q)),
style:_.Kp({fill:function(){return M.colors().primaryTextColor}})},_.W("path",{d:function(){var G=M.optionIndex();
return M.isOptionCorrect(G)?"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"}}))},"qe");
_.lmJ.idomCompat=!0;_.S5(_.lmJ,"learning-journey-quiz-view-model",{props:{data:_.Hz,className:_.Hz}});var XS2=_.U(function(M){var q=_.k((0,_.zdJ)(function(){var p;return{targetId:(p=M.data().config)==null?void 0:p.suspenseKey,contents:[M.data()]}})).next().value,G=_.AL().resolve(_.vR),K=function(){var p=q().contents.length>0?q().contents[0]:void 0;
return p==null?void 0:p.config},n=function(){var p;
return(p=K())==null?void 0:p.entityTriggerConfig},E=_.No(pZe,function(){var p,y;
return(y=(p=n())==null?void 0:p.entityKey)!=null?y:""});
_.zL(function(){var p,y,Y,A=(Y=Number((p=n())==null?void 0:(y=p.invalidationTimestamp)==null?void 0:y.seconds))!=null?Y:0,v,h,t;if(((t=Number((v=E())==null?void 0:(h=v.lastUpdated)==null?void 0:h.seconds))!=null?t:0)>A){var O;(p=(O=K())==null?void 0:O.continuationCommand)&&G.resolveCommand(p)}},"tC8nKe");
return _.W("yt-suspense-view-model",{class:_.Hb("ytSuspenseViewModelHost")},_.W(_.yu,{data:function(){var p;return(p=K())==null?void 0:p.contents}},{lockupViewModel:_.wp}))},"se");var Pef=_.U(function(M){var q=_.UT(M,{palette:void 0,isLastItem:!1}),G=q.palette,K=q.isLastItem,n=function(){return M.data().isHighlighted},E=function(){var Y;
return W14((Y=G())==null?void 0:Y.iconDisabledColor)},p=function(){var Y;
return W14((Y=G())==null?void 0:Y.primaryTitleColor)},y=function(){var Y;
return W14((Y=G())==null?void 0:Y.secondaryTitleColor)};
q={};return _.W("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:_.bm(_.CL(function(){return M.data().rendererContext}))},_.W(_.yu,{data:function(){return M.data().thumbnail}},{thumbnailViewModel:_.kl}),_.W("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.W("div",{class:_.Hb("ytMacroMarkerListItemViewModelTimeDescription",(q.ytMacroMarkerListItemViewModelHighlighted=n,q)),
style:_.Kp({"background-color":function(){return n()?p():E()},
color:function(){return n()?"":y()}})},_.W(_.Ft,{text:function(){return M.data().timestamp}})),_.W("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Kp({"background-color":function(){return K()?"transparent":E()}})}),_.W("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(n()?p():y())}},_.W(_.Ft,{text:function(){return M.data().title}}))))},"te");_.Rd=_.U(function(M){function q(ND){Z("transform:translateX("+(_.R9("HTML_DIR")==="rtl"?"":"-")+ND+"px)")}
function G(ND){return Math.min(Math.max(ND,0),J()-se())}
function K(){var ND=m()+t4();return n()?(Math.round(se()/ND)||1)*ND:0}
var n=function(){return M.data().items||[]},E=function(){return M.data().previousButton},p=function(){return M.data().nextButton},y=function(){var ND,Mx;
return(Mx=(ND=M.disableArrows)==null?void 0:ND.call(M))!=null?Mx:!1},Y=function(){var ND;
return!((ND=M.forceNarrowLayout)==null||!ND.call(M))},A=_.gY(function(){var ND;
return!((ND=M.centerAlignItems)==null||!ND.call(M))&&J()<=se()},void 0,"Uto0kc"),v=_.pI("horizontal-shelf-view-model"),h=_.pI("div"),t=_.k(_.lQ(0,void 0,"G0xZB")),O=t.next().value,a=t.next().value;
t=_.k(_.lQ(0,void 0,"kqCYFf"));var g=t.next().value,D=t.next().value,J=g;g=_.k(_.lQ("",void 0,"Hh6Uye"));t=g.next().value;var Z=g.next().value;g=_.k(_.lQ(0,void 0,"yMGBKb"));var V=g.next().value,S=g.next().value,m=V;g=_.k(_.lQ(0,void 0,"VChthd"));V=g.next().value;var R=g.next().value,se=V;g=_.k(_.lQ(!1,void 0,"qJlhhe"));var yY=g.next().value,d$=g.next().value;g=_.k(_.lQ(0,void 0,"x7H94"));V=g.next().value;var cy=g.next().value,t4=V;g=_.k(_.lQ(0,void 0,"ksuUee"));var ay=g.next().value,bH=g.next().value;
g=_.k(_.lQ("50%",void 0,"uxCxde"));var iH=g.next().value,oI=g.next().value,r9=function(){var ND,Mx=(ND=M.data())==null?void 0:ND.responsiveContainerConfiguration,hd,Kn;return Mx?ih(Mx==null?void 0:Mx.responsiveSize):(Kn=(hd=M.sizing)==null?void 0:hd.call(M))!=null?Kn:"STANDARD"};
g=_.gY(function(){return!y()&&O()>0},void 0,"XK60w");
V=_.gY(function(){return!y()&&O()<J()-se()},void 0,"D22LVd");
var X2=function(){a(G(O()-K()));q(O())},EM=function(){a(G(O()+K()));
q(O())},LP=function(){v.value!==null&&g9()},Pv;
_.SK(function(){g9();window.ResizeObserver?(Pv=new ResizeObserver(_.tc(LP,0)),Pv.observe(v.value)):window.addEventListener("resize",LP)});
_.m_(function(){if(window.ResizeObserver){var ND;(ND=Pv)==null||ND.disconnect()}else window.removeEventListener("resize",LP)});
var g9=function(){var ND=v.value.clientWidth,Mx=M.includeMargin!==void 0?M.includeMargin():!1,hd;var Kn=M.hasPeek!==void 0?M.hasPeek():!((hd=M.data())==null||!hd.hasPeek);ND=_.PO({containerWidth:ND,hasPeek:Kn,sizing:r9(),marginSettings:Mx?Y()?4:1:0});cy(ND.gutter);bH(ND.margin);S(ND.itemWidth);d$(ND.maxContainerWidth<528||Y());R(ND.maxContainerWidth);n()&&D((ND.itemWidth+ND.gutter)*n().length-ND.gutter);if(n()){var w9;if(((w9=M.thumbnailAspectRatio)==null?void 0:w9.call(M))!==void 0){var Gs;oI(m()/
xZY((Gs=M.thumbnailAspectRatio)==null?void 0:Gs.call(M))/2+"px")}else oI("50%")}},a8={},tE={};
return _.W("horizontal-shelf-view-model",{class:_.Hb("ytwHorizontalShelfViewModelHost",M.className),el:v},_.W(_.d,{cond:function(){var ND;return M.data().header&&!((ND=M.horizontalShelfExperiments)==null?0:ND.call(M).hideHeader)},
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Kp({width:function(){return se()+"px"},
padding:function(){return"0 "+ay()+"px"}})},_.W(_.yu,{data:function(){return M.data().header}},{sectionHeaderViewModel:function(ND){return _.W(_.CU,{data:ND.data,
disableHorizontalPadding:!0,forceSmallLayout:yY,useResponsiveLayout:!0})}}))}}),_.W("div",{class:_.Hb("ytwHorizontalShelfViewModelOuterContainer",(a8.ytwHorizontalShelfViewModelCenterAlignOuterContainer=function(){return A()},a8)),
style:_.Kp({"margin-top":function(){var ND,Mx=M.data().header&&!((ND=M.horizontalShelfExperiments)==null?0:ND.call(M).hideHeader),hd;return(((hd=M.ensureMarginTop)==null?0:hd.call(M))&&!Mx?12:0)+"px"}})},_.W("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Kp({width:function(){return se()+"px"},
padding:function(){return"0 "+ay()+"px"},
overflow:function(){return y()?"auto":"hidden"}})},_.W("div",{class:_.Hb("ytwHorizontalShelfViewModelItems",(tE.ytwHorizontalShelfViewModelCenterAlignItems=function(){return A()},tE)),
el:h,style:t},_.W(_.yu,{data:n},{macroMarkerListItemViewModel:function(ND,Mx){return _.W("div",{style:_.Kp({width:function(){return m()+"px"},
"margin-right":function(){return(Mx()===n().length-1?0:t4())+"px"}})},_.W(Pef,{data:ND.data,
palette:_.bg(M.palette),isLastItem:function(){return Mx()===n().length-1}}))},
lockupViewModel:function(ND,Mx){var hd=ND.data;return _.W("div",{style:_.Kp({width:function(){return m()+"px"},
"margin-right":function(){return(Mx()===n().length-1?0:t4())+"px"}})},_.W(_.wp,{data:hd,
containerType:4,sizing:r9,protectBackground:M.protectBackground,thumbnailFixedWidth:function(){return Amj(hd())+"px"},
thumbnailTargetWidth:function(){return Amj(hd())}}))},
suspenseViewModel:function(ND,Mx){return _.W("div",{style:_.Kp({width:function(){return m()+"px"},
"margin-right":function(){return(Mx()===n().length-1?0:t4())+"px"}})},_.W(XS2,{data:ND.data}))}}))),_.W(_.d,{cond:g,
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelLeftArrow",style:_.Kp({top:function(){return iH()}})},_.W(_.yu,{data:E},{buttonViewModel:function(ND){return _.W(_.Wf,{data:ND.data,
onClick:X2})}}))}}),_.W(_.d,{cond:V,
then:function(){return _.W("div",{class:"ytwHorizontalShelfViewModelRightArrow",style:_.Kp({top:function(){return iH()}})},_.W(_.yu,{data:p},{buttonViewModel:function(ND){return _.W(_.Wf,{data:ND.data,
onClick:EM})}}))}})))},"ue");
_.Rd.idomCompat=!0;var iof=_.U(function(M){var q=function(){return M.data().targetId||""},G=function(){var g;
return((g=M.data())==null?void 0:g.expansionEntityKey)||""},K=_.No(_.kNY,G),n=!0,E=function(){var g;
return((g=K())==null?void 0:g.value)===q()},p=function(g){_.Zp(_.LL("stringEntity",G(),{key:G(),
value:g?q():""}))};
_.mT(function(){n=!1;M.data().isExpanded&&p(!0)});
var y=function(){if(E()){var g=!0;M.onCollapse!==void 0&&(g=M.onCollapse());g&&p(!1)}else p(!0)},Y=_.sq(y),A=function(){var g;
return(((g=M.accordionStyle)==null?void 0:g.call(M))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},v=_.pI("div"),h=function(){var g,D;
return(D=(g=_.C(M.data().rendererContext,_.NQ))==null?void 0:g.label)!=null?D:""},t=function(){var g,D;
return{disabled:(g=M.hideIfNotExpanded)==null?void 0:g.call(M),ariaHidden:(D=M.hideIfNotExpanded)==null?void 0:D.call(M)}},O={},a={};
return _.W("yt-accordion-item-view-model",{class:_.Hb("ytAccordionItemViewModelHost",M.className,(O.ytAccordionItemViewModelExpanded=function(){return E()},O.ytAccordionItemViewModelHidden=function(){var g;
return(g=M.hideIfNotExpanded)==null?void 0:g.call(M)},O.ytAccordionItemViewModelMini=A,O)),
"data-target-id":q},_.W("div",{class:"ytAccordionItemViewModelContainer"},_.W("div",{class:"ytAccordionItemViewModelLeftSection","on:click":Y,title:h,"aria-hidden":function(){var g;return(g=M.hideIfNotExpanded)==null?void 0:g.call(M)}},_.W(_.Ft,{text:function(){return M.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:h})),_.W("div",{class:"ytAccordionItemViewModelRightSection"},_.W(_.yu,{data:function(){return E()?M.data().expandButton:M.data().collapseButton}},{buttonViewModel:function(g){return _.W(_.Wf,{data:g.data,
className:"ytAccordionItemViewModelToggleButton",onClick:y,buttonOverrides:t})}}))),_.W("div",{class:"ytAccordionItemViewModelContainer"},_.W("div",{class:_.Hb("ytAccordionItemViewModelContent",(a.ytAccordionItemViewModelExpandedSubtitle=function(){return E()},a)),
el:v,style:_.Kp({"max-height":function(){return n?"auto":E()?v.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!E()}},_.W(_.d,{cond:function(){return!A()},
then:function(){return _.W(_.Ft,{text:function(){return M.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.W(_.yu,{data:function(){return M.data().content}},{horizontalShelfViewModel:function(g){return _.W(_.Rd,{data:g.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"we");_.cHB=_.U(function(M){var q=_.k((0,_.zdJ)(M.data)).next().value,G=function(){return M.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},K=function(){return G()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},n=_.k(_.lQ(!0,void 0,"VFpYAb")),E=n.next().value,p=n.next().value,y=function(){return K()&&E()},Y=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){p(!E())}}},A=_.sq(function(){q().onTitleTap&&_.Pb(q().onTitleTap||{})});
n={};return _.W("yt-accordion-view-model",{class:_.Hb("ytAccordionViewModelHost",(n.ytAccordionViewModelMinimized=function(){return y()},n)),
"data-target-id":function(){return M.data().targetId||""}},_.W(_.d,{cond:function(){return K()||!!q().title},
then:function(){return _.W("div",{class:"ytAccordionViewModelHeader"},_.W("div",{class:"ytAccordionViewModelTitleSection"},_.W("div",{class:"ytAccordionViewModelTitleWrapper"},_.W(_.d,{cond:function(){return!!M.data().headerIcon},
then:function(){return _.W(_.np,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var v;return(v=M.data().headerIcon)==null?void 0:v.iconType}})}}),_.W("div",{class:"ytAccordionViewModelTitle",
"on:click":A},_.W(_.Ft,{className:"ytAccordionViewModelTitleText",text:function(){return q().title}})))),_.W("div",{class:"ytAccordionViewModelButtonSection"},_.W(_.d,{cond:K,
then:function(){return _.W(_.Yv,{data:Y,iconName:function(){return y()?"chevron_down":"chevron_collapse"}})}})))}}),_.W("div",{class:"ytAccordionViewModelContent"},_.W(_.yu,{data:function(){return q().contents}},{accordionItemViewModel:function(v){return _.W(iof,{data:v.data,
className:"ytAccordionViewModelRow",accordionStyle:G,hideIfNotExpanded:y,onCollapse:function(){return K()?(p(!0),!1):!0}})}})),_.W("div",null,_.W(_.d,{cond:function(){return!K()&&(!!q().disclaimerFooter||!!q().footer)},
then:function(){return _.W("div",{class:"ytAccordionViewModelFooter"},_.W(_.Ft,{text:function(){return q().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.W(_.yu,{data:function(){return M.data().footer}},{flexibleActionsViewModel:function(v){return _.W(_.Sj,{data:v.data,
layout:0})}}))}})))},"xe");_.S5(_.cHB,"yt-accordion-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=null,G=null,K,n=(K=_.AL().resolve(_.WR(_.Qx)))==null?void 0:K(),E=_.k(_.lQ(!1,void 0,"CmEVtc"));K=E.next().value;var p=E.next().value;E=_.k(_.lQ(!0,void 0,"yo9dR"));var y=E.next().value,Y=E.next().value,A=_.pI("textarea",function(D){_.W3(264503,D,q,function(J){q=J})}),v=function(D){p(!0);
D={learningJourneyFormData:{query:D}};_.Pb(M.data().searchEndpoint||{},{form:{formData:D}});return!1},h=_.sq(function(D){D.target.closest("button-view-model")&&p(!0)});
E=_.sq(function(){Y(A.value.value.length===0)});
var t=_.sq(function(D){if(D.key==="Enter"&&!D.shiftKey&&!y()){var J=D.target;D.preventDefault();v(J.value)}}),O={},a={},g={};
return _.W("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.W("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.W(_.Jj,{data:function(){return M.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.W("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.W("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.W("div",{class:_.Hb("ytLearningJourneyZeroStateSearchBar",(O.ytLearningJourneyZeroStateSearchBarDark=n,O))},_.W("textarea",{class:_.Hb("ytLearningJourneyZeroStateTextInput",(a.ytLearningJourneyZeroStateTextInputDark=n,a)),el:A,"on:keyup":E,"on:keydown":t,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.W("div",{class:_.Hb("ytLearningJourneyZeroStateSearchButtonContainer",(g.ytLearningJourneyZeroStateSearchButtonContainerDark=n,g))},_.W(_.Wf,{data:function(){return _.C(M.data().searchButton,_.$N)},
className:"search-button",onClick:function(){return v(A.value.value)},
buttonOverrides:function(){return{disabled:y(),style:n?"mono-inverse":"mono",size:"XL"}}}))),_.W(_.d,{cond:function(){return!!M.data().errorBanner},
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer",el:_.bm(function(D){_.W3(264617,D,G,function(J){G=J})})},_.W(_.yu,{data:function(){return M.data().errorBanner}},{alertBannerViewModel:function(D){return _.W(_.FjB,{data:D.data,
"client-ve-type":264617})}}))}})),_.W(_.d,{cond:K,
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.W(_.yu,{data:function(){return M.data().loader}},{learningJourneyLoaderViewModel:function(D){return _.W(_.CeJ,{data:D.data})}}))},
else:function(){return _.W("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.W(_.d,{cond:function(){return!!M.data().learningJourneyShelf},
then:function(){return _.W("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.W("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return M.data().learningJourneySectionTitle}),_.W(_.yu,{data:function(){return M.data().learningJourneyShelf}},{horizontalShelfViewModel:function(D){return _.W(_.Rd,{data:D.data,
centerAlignItems:!0})}}))}}),_.W("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.W("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return M.data().suggestedJourneySectionTitle}),_.W("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":h},_.W(_.yu,{data:function(){return M.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(D){return _.W(_.Sj,{data:D.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"ye"),"yt-learning-journey-zero-state",{props:{data:_.Hz}});var gMS=_.U(function(M){var q=M.data;return _.W("ytvl-live-leaderboard-item-action-content-view-model",{class:_.Hb("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.W(_.Ft,{text:function(){var G;return(G=q())==null?void 0:G.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.W(_.yu,{data:function(){return q().actionButton}},{buttonViewModel:function(G){return _.W(_.Wf,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:G.data})}}))},"ze");var Bax=_.U(function(M){var q=M.data;return _.W("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.Hb("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.W(_.Ft,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var G;return(G=q())==null?void 0:G.displayName},
ellipsisTruncate:!0}),_.W(_.yu,{data:function(){return q().badge}},{buttonViewModel:function(G){return _.W(_.Wf,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:G.data})}}))},"Ae");_.S5(_.U(function(M){var q=M.data;return _.W("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.W("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.W(_.Ft,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var G;return(G=q())==null?void 0:G.rank}})),_.W("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.W(_.yu,{data:function(){return q().avatar}},{avatarViewModel:_.zo})),_.W("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.W(_.yu,{data:function(){return q().content}},{liveLeaderboardItemChannelContentViewModel:Bax,
liveLeaderboardItemActionContentViewModel:gMS})),_.W(_.Ft,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var G;return(G=q())==null?void 0:G.points}}))},"Be"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;return _.W("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.W(_.Ft,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var G,K;return(G=q())==null?void 0:(K=G.ranking)==null?void 0:K.rank}}),_.W("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.W(_.yu,{data:function(){return q().avatar}},{avatarViewModel:_.zo})),_.W(_.Ft,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var G,K;return(G=q())==null?void 0:(K=G.channelContent)==null?void 0:K.channelName}}),_.W(_.Ft,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var G;return(G=q())==null?void 0:G.points}}))},"Ce"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.Hz}});var QLd=_.U(function(M){M=_.UT(M,{wrapper:!1}).wrapper;return _.W(_.d,{cond:M,then:function(){return _.W("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.W("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.W("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"De");
QLd.idomCompat=!0;var Imx=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],DUd=_.U(function(M){var q=M.data;var G=_.bm(),K=_.gY(function(){return q().command},void 0,"fyYsT");
_.zL(function(){K()&&_.oM(K(),{form:{element:G.value}})},"B0nxdb");
return _.W("div",{el:G,class:"YtQrCodeRendererHostContainer"},_.W(_.d,{cond:function(){return q().qrCodeImage},
then:function(n){return _.W(_.Jj,{data:n,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.W(_.d,{cond:function(){return q().spinner},
then:function(){return _.W(QLd,null)}})}}),_.W(_.d,{cond:function(){return q().label},
then:function(n){return _.W(_.Ft,{text:n,className:"YtQrCodeRendererHostLabel"})}}),_.W(_.d,{cond:function(){return q().labels},
then:function(n){return _.W("div",{class:"YtQrCodeRendererHostLabels"},_.W(_.bf,{each:n},function(E){return _.W(_.Ft,{text:E})}))}}))},"Ge");_.S5(_.U(function(M){var q=M.data;var G=_.gY(function(){return q().qrEntityKey},void 0,"LmZ2xf"),K=_.gY(function(){return q().deleteEntityOnDismiss},void 0,"my0Tzb"),n=_.gY(function(){return q().command},void 0,"hzECIb"),E=_.No(a7j,G);
M=_.gY(function(){return q().qrCodeImage},void 0,"AnD9rc");
var p=_.gY(function(){return q().style&&Imx.includes(q().style)},void 0,"f5fZv"),y=_.d_({visibilityCallback:function(Y){Y&&n()&&_.oM(n())},
showOption:{calledOnce:!0,state:"visible"}});_.SK(function(){_.m_(function(){K()&&G()&&_.J_().dispatch(_.LL("qrCodeEntity",G()))})});
return _.W("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:_.bm(y)},_.W(_.d,{cond:p,then:function(){return _.W(_.d,{cond:E,then:function(Y){return _.W(DUd,{data:Y})}})}}),_.W(_.d,{cond:M,
then:function(Y){return _.W(_.Jj,{data:Y,alt:""})}}))},"Ee"),"yt-qr-code-renderer",{props:{data:_.Hz}});var JH9=_.U(function(M){var q=function(){return _.C_(1728053247&(M.barColor!==void 0?Gh(M.barColor()):4278190080))};
return _.W("video-overview-ghost-card",{class:"ytVideoOverviewGhostCardHost"},_.W(ubd,{animationDelay:0,percentWidth:100,barColor:function(){return q()}}),_.W("div",{class:"ytVideoOverviewGhostCardMediaWrapper"},_.W("div",{class:"ytVideoOverviewGhostCardMedia",
style:function(){return"background-color:"+q()}})),_.W(ubd,{animationDelay:0,
percentWidth:100,barColor:function(){return q()}}),_.W(ubd,{animationDelay:600,
percentWidth:60,barColor:function(){return q()}}))},"He"),ubd=_.U(function(M){return _.W("div",{class:"ytVideoOverviewGhostCardGhostLine",
style:function(){return"max-width:"+M.percentWidth()+"%"}},_.W("div",{class:"ytVideoOverviewGhostCardSlider",
style:function(){var q=M.animationDelay(),G=M.barColor();return"animation-delay:"+q+"ms;\n      background: linear-gradient(\n      90deg,\n      rgba(0, 0, 0, 0)  20%,\n      "+G+" 50%,\n      rgba(0, 0, 0, 0) 80%\n    );"}}))},"Ie");var Zo2;_.bo2=_.U(function(M){function q(D){p(D)}
var G=M.data;var K=_.pI("yt-video-overview-view-model"),n=_.yw("div");M=_.k(_.lQ(-1,void 0,"qaDSu"));var E=M.next().value,p=M.next().value;M=_.k(_.lQ(0,void 0,"Vz681c"));var y=M.next().value,Y=M.next().value,A={},v=_.No(dvD,function(){return G().asyncDataEntityKey}),h=function(){var D;
if((D=v())==null?0:D.videoOverviewViewModel){var J;return _.C((J=v())==null?void 0:J.videoOverviewViewModel,Wr2)}return G()};
_.SK(function(){Y(Math.min((K.value.clientWidth-24)/4-8,72))});
var t=function(D){p(D);(n==null?0:n.value)&&n.value.children[D]&&n.value.children[D].scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})};
Pbw(K,function(){var D;if((D=h())==null||!D.inlinePlaybackEndpoint)return null;var J;D=A==null?void 0:(J=A.thumbnailElRef)==null?void 0:J.value;if(!D)return null;var Z;J=(Z=h())==null?void 0:Z.inlinePlaybackEndpoint;Z=_.C(J,BQM);return{multipleVideoPreviewData:{data:(Z==null?0:Z.playerDescriptors)&&(Z==null?0:Z.playerDescriptors.length)?Z.playerDescriptors:[],thumbnailElement:D,trackingParams:"test",callbacks:{onPlaybackStarted:t},options:{hideScrubbingControls:!0,hideTimeDisplay:!0}}}});
var O=function(){var D;return((D=h())==null?void 0:D.headerSubtext)!==void 0?!0:!1},a=function(){var D,J=Gh((D=h())==null?void 0:D.titleColor);
return J?"color: "+_.C_(J)+";":void 0},g=function(){var D,J=Gh((D=h())==null?void 0:D.subtextColor);
return J?"color: "+_.C_(J)+";":void 0};
return _.W("yt-video-overview-view-model",{class:"ytGenAiVideoOverviewViewModelHost",el:K,style:function(){var D,J=Gh((D=h())==null?void 0:D.backgroundColor);return J?"background-color: "+_.C_(J)+";":void 0}},_.W(_.d,{cond:function(){var D;
return(D=h())==null?void 0:D.isLoading},
then:function(){return _.W(JH9,{barColor:function(){var D;return(D=h())==null?void 0:D.titleColor}})},
else:function(){return _.W(_.dU,null,_.W("div",{class:"ytGenAiVideoOverviewViewModelHeader"},_.W("div",{class:"ytGenAiVideoOverviewViewModelTitle",style:function(){return a()}},_.W(_.Ft,{text:function(){var D;
return(D=h())==null?void 0:D.headerText}})),_.W(_.d,{cond:O,
then:function(){return _.W("div",{class:"ytGenAiVideoOverviewViewModelSubhead"},_.W("div",{class:"ytGenAiVideoOverviewViewModelSubheadIcon",style:function(){return g()}},_.W(_.np,{icon:"SPARK",
className:"ytGenAiVideoOverviewViewModelSparkIcon"})),_.W("div",{class:"ytGenAiVideoOverviewViewModelSubtext",style:function(){return g()}},_.W(_.Ft,{text:function(){var D;
return(D=h())==null?void 0:D.headerSubtext}})))}})),_.W("div",{class:"ytGenAiVideoOverviewViewModelThumbnail"},_.W(_.yu,{data:function(){var D;
return(D=h())==null?void 0:D.thumbnail}},{thumbnailViewModel:function(D){return _.W(_.kl,{data:D.data,
aspectRatio:0,playbackRef:o3F(A)})}})),_.W(_.d,{cond:function(){var D,J,Z,V;
return((D=h())==null?void 0:(J=D.listItems)==null?void 0:J.length)!==void 0&&((Z=h())==null?void 0:(V=Z.listItems)==null?void 0:V.length)>0?!0:!1},
then:function(){return _.W("div",{class:"ytGenAiVideoOverviewViewModelCarousel",el:n},_.W(_.bf,{each:function(){var D;return(D=h())==null?void 0:D.listItems}},function(D,J){return _.W(Zo2,{image:D.image,
index:J,isSelected:function(){return J()===E()},
onClick:q,itemWidth:y})}))}}),_.W("div",{class:"ytGenAiVideoOverviewViewModelFooter"},_.W("div",{class:"ytGenAiVideoOverviewViewModelFooterTitle",
style:function(){return a()}},_.W(_.Ft,{text:function(){var D,J,Z,V,S,m,R;
return(R=(D=h())==null?void 0:(J=D.listItems)==null?void 0:(Z=J[E()])==null?void 0:Z.headline)!=null?R:(V=h())==null?void 0:(S=V.listItems)==null?void 0:(m=S[0])==null?void 0:m.headline}})),_.W("div",{class:"ytGenAiVideoOverviewViewModelFooterSubtext",
style:function(){return g()}},_.W(_.Ft,{text:function(){var D,J,Z,V,S,m,R;
return(R=(D=h())==null?void 0:(J=D.listItems)==null?void 0:(Z=J[E()])==null?void 0:Z.subtext)!=null?R:(V=h())==null?void 0:(S=V.listItems)==null?void 0:(m=S[0])==null?void 0:m.subtext}}))))}}))},"Je");
Zo2=_.U(function(M){var q=M.image;var G=M.itemWidth;var K=M.index;var n=M.isSelected;var E=M.onClick;M=_.sq(function(){K!==void 0&&E!==void 0&&E(K());return!1});
var p={};return _.W("div",{class:_.Hb("ytGenAiVideoOverviewViewModelCarouselItem",(p.ytGenAiVideoOverviewViewModelCarouselItemSelected=function(){return n==null?void 0:n()},p)),
style:function(){return"width: "+G()+"px;"},
"on:click":M},_.W(_.Jj,{data:q,alt:"",className:"ytGenAiVideoOverviewViewModelCarouselThumbnail"}),_.W(_.d,{cond:function(){return n==null?void 0:n()},
then:function(){return _.W("div",{class:"ytGenAiVideoOverviewViewModelProgressBar"},_.W("div",{class:"ytGenAiVideoOverviewViewModelInnerProgressBar"}))}}))},"Ke");
_.bo2.idomCompat=!0;_.S5(_.bo2,"yt-video-overview-view-model",{props:{data:_.Hz}});_.UUl=_.U(function(M){var q=M.data;var G=M.topbarOffset;var K,n=((K=_.AL().resolve(_.WR(_.Qx)))==null?void 0:K())||!1;return _.W("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var E=q();var p,y,Y=n?(p=E.config)==null?void 0:p.darkThemeBackgroundColor:(y=E.config)==null?void 0:y.lightThemeBackgroundColor;E=Y?_.w2(Y):void 0;E="background-color: "+E+";";G!==void 0&&(E+="top: -"+G()+"px;");return E},
"aria-hidden":!0},_.W(_.d,{cond:function(){var E,p,y;return!!((E=q().backgroundImageConfig)==null?0:(p=E.image)==null?0:(y=p.sources)==null?0:y.length)},
then:function(){return _.W(_.Jj,{data:function(){var E;return(E=q().backgroundImageConfig)==null?void 0:E.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.W("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+vTy(n,q().gradientColorConfig)+";"}}))},"Le");
_.UUl.idomCompat=!0;var xUB=_.U(function(M){var q=M.data;var G=M.isOverlay;return _.W("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.W("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.W(_.yu,{data:function(){return q().header}},{sectionHeaderViewModel:function(K){return _.W(_.CU,{data:K.data,
isOverlay:G})}})),_.W("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.W(_.yu,{data:function(){return q().channelInfoButtons}},{flexibleActionsViewModel:_.Sj})),_.W("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.W(_.yu,{data:function(){return q().description}},{descriptionPreviewViewModel:function(K){return _.W(_.w0,{data:K.data,
isOverlay:G})}})))},"Me");
xUB.idomCompat=!0;var zM$=_.U(function(M){var q=M.data;var G={};return _.W("factoid-view-model",{class:_.Hb("ytwFactoidViewModelHost",(G.ytwFactoidViewModelHostOverlay=M.isOverlay,G))},_.W(_.Ft,{text:function(){return q().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.W(_.Ft,{text:function(){return q().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Ne");
zM$.idomCompat=!0;var mUM=_.U(function(M){var q=M.data;var G=M.isOverlay;return _.W("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.W(_.yu,{data:function(){return q().factoids}},{factoidViewModel:function(K){return _.W(zM$,{data:K.data,
isOverlay:G})}}))},"Oe");
mUM.idomCompat=!0;_.SNS=_.U(function(M){var q=M.data;var G=M.isOverlay;return _.W("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.W(_.yu,{data:function(){return q().items}},{channelInfoViewModel:function(K){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(xUB,{data:K.data,
isOverlay:G}))},
coursePerksViewModel:function(K){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(hMx,{data:K.data,isOverlay:G}))},
descriptionPreviewViewModel:function(K){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(_.w0,{data:K.data,isOverlay:G}))},
factoidsRowViewModel:function(K){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(mUM,{data:K.data,isOverlay:G}))},
progressViewModel:function(K){return _.W("div",{class:"ytwCourseMetadataViewModelHostItem"},_.W(tC2,{data:K.data,isOverlay:G}))}}))},"Pe");var TaS=_.U(function(M){return _.W("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.W(_.yu,{data:function(){return M.data().content}},{courseMetadataViewModel:function(q){return _.W(_.SNS,{data:q.data,
isOverlay:M.isOverlay})},
progressViewModel:function(q){return _.W(tC2,{data:q.data})}}))},"Qe");var rHd=_.U(function(M){var q=M.data;M=M.className;var G=function(){var n;return _.wx((n=q())==null?void 0:n.rendererContext)},K={};
K=(K.dynamicTextViewModelHost=!0,K.dynamicTextViewModelHostTappable=function(){return G()},K);
return _.W("yt-dynamic-text-view-model",{el:_.bm(_.CL(function(){var n;return(n=q())==null?void 0:n.rendererContext})),
role:function(){return G()?"link":void 0},
tabindex:function(){return G()?0:void 0},
class:_.Hb(M,K)},_.W("h1",{class:"dynamicTextViewModelH1","aria-label":function(){var n,E,p;return(p=(E=_.C((n=q())==null?void 0:n.rendererContext,_.NQ))==null?void 0:E.label)!=null?p:""}},_.W(_.Ft,{text:function(){return q().text},
userInput:!0})))},"Re");
rHd.idomCompat=!0;_.fU=_.U(function(M){var q=M.data;var G=M.isPositionRelative;var K=_.tFH("(max-width: 527.9px)"),n=function(){var E,p;return(p=(E=q())==null?void 0:E.style)!=null?p:"IMAGE_BANNER_STYLE_FULL_BLEED"};
M={};return _.W("yt-image-banner-view-model",{el:_.bm(_.CL(function(){var E;return(E=q())==null?void 0:E.rendererContext})),
class:_.Hb((M.ytImageBannerViewModelHost=!0,M.ytImageBannerViewModelInset=function(){return Ow$(n())},M.ytImageBannerViewModelPositionAbsolute=function(){return _.TL(!0)&&!(G==null?0:G())},M.ytImageBannerViewModelSmallInset=function(){return Ow$(n())&&K()},M.ytImageBannerViewModelTappable=function(){var E;
return _.wx((E=q())==null?void 0:E.rendererContext)},M))},_.W(_.d,{cond:function(){var E;
return(E=q())==null?void 0:E.image},
then:function(){return _.W(_.Jj,{data:function(){return q().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.W(_.yu,{data:function(){var E;
return(E=q())==null?void 0:E.overlays}},{thumbnailHoverOverlayViewModel:xL}))},"Se");
_.fU.idomCompat=!0;var jLB;jLB=_.U(function(M){var q=M.condition;var G=M.content;return _.W(_.d,{cond:q,then:function(){return _.W("div",{class:"yt-page-header-view-model__scroll-container"},G())},
else:function(){return G()}})},"Te");
_.VC$=_.U(function(M){var q=M.data;var G=M.noPadding;var K=M.enableBanner;var n=M.cinematicContainerTopbarOffset;var E=M.allowCinematicContainerOverflow;var p=M.displayAsSidebar;var y=M.displayAsPanel;var Y=M.alwaysUseMediumTextDescription;var A=wVy(),v=function(){return!!q().image||!!q().animatedImage},h=function(){return!!q().background},t=function(){return(p==null?0:p())||(y==null?0:y())?1:A()},O=function(){return t()===1},a=function(){return O()||t()===2},g=function(){return t()===4},D=function(){var ay=
q();
var bH=!!q().heroImage;var iH=t(),oI=C7u(q()),r9=p==null?void 0:p(),X2=!ay.metadata,EM;if(EM=bH?_.C(ay.heroImage,nLd):_.C(ay.animatedImage||ay.image,nLd)){ay=EM.style;var LP=EM.layoutMode;if(LP!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(EM=$P$(e5y(EM)),bH)bH=hFY(iH,ay,LP,EM,r9);else b:if(X2)bH=iH===1?{size:48}:{size:72};else switch(iH){case 1:bH={size:72};break b;case 2:bH={size:120};break b;default:bH=oI<4?{size:120}:{size:160}}else bH=void 0}else bH={size:0};return bH};
M={};M=_.Hb((M["yt-page-header-view-model"]=!0,M["yt-page-header-view-model--no-padding"]=function(){return!(G==null||!G())},M["yt-page-header-view-model--small-top-padding"]=function(){return O()&&!q().actions&&!(y==null?0:y())||t()===2&&!(v()||q().heroImage)},M["yt-page-header-view-model--small-bottom-padding"]=function(){return a()&&!q().actions&&!(y==null?0:y())},M["yt-page-header-view-model--cinematic-container-overflow-boundary"]=function(){return!(E==null?0:E())},M["yt-page-header-view-model--display-as-sidebar"]=
p,M));
var J={},Z=_.Hb((J["yt-page-header-view-model__page-header-headline"]=!0,J["yt-page-header-view-model__page-header-headline--page-header-headline-full-width-hero"]=function(){var ay;return(ay=D())==null?void 0:ay.allowFullWidth},J)),V=function(){var ay;
return a()&&!((ay=D())==null?0:ay.allowFullWidth)},S=function(){return O()&&(!!q().heroImage||v())&&C7u(q())>0},m=function(){return S()&&(y==null?void 0:y())};
J={};var R=_.Hb((J["yt-page-header-view-model__page-header-title"]=!0,J["yt-page-header-view-model__page-header-title--page-header-title-large"]=function(){return!S()},J["yt-page-header-view-model__page-header-title--page-header-title-medium"]=function(){return S()&&!m()},J["yt-page-header-view-model__page-header-title--page-header-title-medium-force-small-layout"]=m,J["yt-page-header-view-model__page-header-title--page-header-title-overlay"]=h,J));
J={};var se=_.Hb((J["yt-page-header-view-model__page-header-headline-image"]=!0,J["yt-page-header-view-model__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!q().heroImage&&a()},J));
J={};var yY=_.Hb((J["yt-page-header-view-model__page-header-banner-container"]=K,J["yt-page-header-view-model__page-header-banner-container--full-bleed"]=function(){var ay;return(K==null?void 0:K())&&((ay=_.C(q().banner,_.Nsl))==null?void 0:ay.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},J));
J={};var d$=_.Hb((J["yt-page-header-view-model__page-header-content-metadata"]=!0,J["yt-page-header-view-model__page-header-content-metadata--page-header-content-metadata-overlay"]=h,J));J={};var cy=_.Hb((J["yt-page-header-view-model__page-header-flexible-actions"]=!0,J["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!q().metadata||a()},J["yt-page-header-view-model__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!a()},J));
J={};var t4=_.Hb((J["yt-page-header-view-model__page-header-attribution"]=!0,J["yt-page-header-view-model__page-header-attribution--page-header-attribution-overlay"]=h,J));return _.W("yt-page-header-view-model",{class:M},_.W(_.d,{cond:h,then:function(){return _.W("div",{class:"yt-page-header-view-model__page-header-background"},_.W(_.yu,{data:function(){return q().background}},{cinematicContainerViewModel:function(ay){return _.W(_.UUl,{data:ay.data,
topbarOffset:n})}}))}}),_.W(jLB,{condition:function(){return!(p==null||!p())},
content:function(){return _.W("div",{class:"yt-page-header-view-model__page-header-content"},_.W(_.d,{cond:function(){return(K==null?void 0:K())&&q().banner},
then:function(){return _.W("div",{class:yY},_.W(_.yu,{data:function(){return q().banner}},{imageBannerViewModel:_.fU}))}}),_.W("div",{class:Z},_.W(_.d,{cond:v,
then:function(){return _.W(_.yu,{data:function(){var ay;if(!(ay=q().animatedImage)){ay=q();if(v()){var bH=ay=Object.assign({},ay),iH=t(),oI=C7u(q()),r9=bH.image,X2=_.C(r9,EL2),EM=X2==null?void 0:X2.avatar,LP=_.C(EM,_.aZ);if(r9&&EM&&LP){switch(iH){case 1:LP.avatarImageSize="AVATAR_SIZE_XL";break;case 2:LP.avatarImageSize="AVATAR_SIZE_XXL";break;default:oI<4?LP.avatarImageSize="AVATAR_SIZE_XXL":LP.avatarImageSize="AVATAR_SIZE_XXXL"}_.hj(EM,_.aZ,Object.assign({},LP));X2.avatar=Object.assign({},EM);_.hj(r9,
EL2,Object.assign({},X2));bH.image=Object.assign({},r9)}}ay=ay.image}return ay}},{contentPreviewImageViewModel:function(ay){return _.W(_.We,{data:ay.data,
className:se,imageSizeConfig:D})},
decoratedAvatarViewModel:function(ay){return _.W(_.mF,{data:ay.data,className:se})}})}}),_.W(_.d,{cond:function(){return!!q().heroImage&&!V()},
then:function(){return _.W(_.yu,{data:function(){return q().heroImage}},{contentPreviewImageViewModel:function(ay){return _.W(_.We,{data:ay.data,
className:se,imageSizeConfig:D})}})}}),_.W("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.W(_.d,{cond:function(){return!!q().heroImage&&V()},
then:function(){return _.W("div",{class:"yt-page-header-view-model__page-header-headline-image-hero-container"},_.W(_.yu,{data:function(){return q().heroImage}},{contentPreviewImageViewModel:function(ay){return _.W(_.We,{data:ay.data,
className:se,imageSizeConfig:D})}}))}}),_.W(_.yu,{data:function(){return q().title}},{dynamicTextViewModel:function(ay){return _.W(rHd,{data:ay.data,
className:R})}}),_.W(_.yu,{data:function(){return q().metadata}},{contentMetadataViewModel:function(ay){return _.W(_.dp,{data:ay.data,
layout:function(){return O()?1:0},
className:d$,isOverlay:h,useMediumText:g})}}),_.W(_.d,{cond:function(){return q().description&&!O()},
then:function(){return _.W(_.yu,{data:function(){return q().description}},{descriptionPreviewViewModel:function(ay){return _.W(_.w0,{data:ay.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:h,maxLinesOverride:function(){return O()?void 0:1},
useMediumText:function(){return(Y==null?void 0:Y())||g()}})}})}}),_.W(_.d,{cond:function(){return q().attribution&&!a()},
then:function(){return _.W(_.yu,{data:function(){return q().attribution}},{attributionViewModel:function(ay){return _.W(Ab,{data:ay.data,
className:t4,useMediumText:g})}})}}),_.W(_.d,{cond:function(){return q().actions&&!a()},
then:function(){return _.W(_.yu,{data:function(){return q().actions}},{flexibleActionsViewModel:function(ay){return _.W(_.Sj,{data:ay.data,
layout:function(){return aEe(t())},
className:cy})}})}}))),_.W("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.W(_.d,{cond:function(){return q().description&&O()},
then:function(){return _.W(_.yu,{data:function(){return q().description}},{descriptionPreviewViewModel:function(ay){return _.W(_.w0,{data:ay.data,
className:"yt-page-header-view-model__page-header-description",isOverlay:h,maxLinesOverride:function(){return O()?void 0:1},
useMediumText:function(){return(Y==null?void 0:Y())||g()}})}})}}),_.W(_.d,{cond:function(){return q().attribution&&a()},
then:function(){return _.W(_.yu,{data:function(){return q().attribution}},{attributionViewModel:function(ay){return _.W(Ab,{data:ay.data,
className:t4,useMediumText:g})}})}}),_.W(_.d,{cond:function(){return q().actions&&a()},
then:function(){return _.W(_.yu,{data:function(){return q().actions}},{flexibleActionsViewModel:function(ay){return _.W(_.Sj,{data:ay.data,
layout:function(){return aEe(t())},
className:cy})}})}})),_.W("div",{class:"yt-page-header-view-model__page-header-headline-info"},_.W(_.yu,{data:function(){return q().bottomMetadataFlexibleContainer}},{flexibleContainer:function(ay){return _.W(TaS,{data:ay.data,
isOverlay:h})}})))}}))},"Ue");
_.VC$.idomCompat=!0;_.S5(_.U(function(M){var q=_.k(_.lQ(!1,void 0,"vvzTj")),G=q.next().value,K=q.next().value;return _.W("yt-official-card-view-model",{class:_.Hb("ytOfficialCardViewModelHost",M.className),style:_.Kp({"background-color":function(){var n,E=Gh((n=M.data())==null?void 0:n.backgroundColor);return E?_.C_(E):void 0}})},_.W(_.yu,{data:function(){return M.data().header}},{pageHeaderViewModel:function(n){return _.W(_.VC$,{data:n.data,
noPadding:!0})}}),_.W(_.yu,{data:function(){return M.data().contents}},{horizontalShelfViewModel:function(n){return _.W(_.Rd,{data:n.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0},thumbnailAspectRatio:0})}}),_.W(_.d,{cond:G,
then:function(){return _.W("div",{class:"ytOfficialCardViewModelExpandedContent"},_.W(_.yu,{data:function(){return M.data().expandedContents}},{horizontalShelfViewModel:function(n){return _.W(_.Rd,{data:n.data,
sizing:"MINI"})}}),_.W("div",{class:"ytOfficialCardViewModelCollapseButton"},_.W(_.yu,{data:function(){return M.data().collapseButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
onClick:function(){K(!G())}})}})))},
else:function(){return _.W("div",{class:"ytOfficialCardViewModelExpandButton"},_.W(_.yu,{data:function(){return M.data().expandButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
onClick:function(){K(!G())}})}}))}}))},"Ve"),"yt-official-card-view-model",{props:{data:_.Hz,
className:_.Hz}});var RMl=_.U(function(M){var q,G=(q=_.AL().resolve(_.WR(_.Qx)))==null?void 0:q();return _.W("ytw-search-friction-view-model",{class:_.Hb("ytwSearchFrictionViewModelHost",M.className)},_.W("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.W("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},_.W(_.d,{cond:function(){return G&&M.data().darkThemeImage?M.data().darkThemeImage:M.data().image},
then:function(K){return _.W(_.Jj,{data:K,alt:"",className:"ytwSearchFrictionViewModelHostImage"})}})),_.W(_.yu,{data:function(){return M.data().overflowMenuButton}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
className:"ytwSearchFrictionViewModelHostMenuButton"})}})),_.W(_.Ft,{text:function(){return M.data().title},
className:"ytwSearchFrictionViewModelHostTitle"}),_.W(_.bf,{each:function(){return M.data().bodyText||[]}},function(K){return _.W(_.Ft,{text:K,
className:"ytwSearchFrictionViewModelHostBodyText"})}),_.W(_.yu,{data:function(){return M.data().actions}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
className:"ytwSearchFrictionViewModelHostButton"})}}),_.W(_.Ft,{text:function(){return M.data().disclaimer},
className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.W(_.Ft,{text:function(){return M.data().attribution},
className:"ytwSearchFrictionViewModelHostAttribution"}))},"We");
RMl.idomCompat=!0;_.S5(RMl,"ytw-search-friction-view-model",{props:{data:_.Hz,className:_.Hz}});_.Fd=_.U(function(M){var q=_.pI("markdown-div"),G,K=(G=_.AL().resolve(_.WR(_.Qx)))==null?void 0:G();_.zL(function(){var n=q.value;var E=new Hv8,p=new Map(E.JSC$9302_sanitizerTable.globalAttributePolicies);p.set("style",{policyAction:4});E.JSC$9302_sanitizerTable=new OB(E.JSC$9302_sanitizerTable.allowedElements,E.JSC$9302_sanitizerTable.elementPolicies,E.JSC$9302_sanitizerTable.allowedGlobalAttributes,p,E.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);var y=["data-time"];if(y===void 0)p=
new Set(E.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes),p.add("data-"),E.JSC$9302_sanitizerTable=new OB(E.JSC$9302_sanitizerTable.allowedElements,E.JSC$9302_sanitizerTable.elementPolicies,E.JSC$9302_sanitizerTable.allowedGlobalAttributes,E.JSC$9302_sanitizerTable.globalAttributePolicies,p);else{p=new Set(E.JSC$9302_sanitizerTable.allowedGlobalAttributes);y=_.k(y);for(var Y=y.next();!Y.done;Y=y.next()){Y=Y.value;if(Y.indexOf("data-")!==0)throw Error("ka`"+Y);p.add(Y)}E.JSC$9302_sanitizerTable=
new OB(E.JSC$9302_sanitizerTable.allowedElements,E.JSC$9302_sanitizerTable.elementPolicies,p,E.JSC$9302_sanitizerTable.globalAttributePolicies,E.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes)}p=new Set(E.JSC$9302_sanitizerTable.allowedGlobalAttributes);p.add("class");E.JSC$9302_sanitizerTable=new OB(E.JSC$9302_sanitizerTable.allowedElements,E.JSC$9302_sanitizerTable.elementPolicies,p,E.JSC$9302_sanitizerTable.globalAttributePolicies,E.JSC$9302_sanitizerTable.globallyAllowedAttributePrefixes);
_.NX(n,_.jSv(E.build(),lEF(M.text())));XVF(q.value)},"OZ439c");
G={};return _.W("div",null,_.W("markdown-div",{class:_.Hb("ytwMarkdownDivHost",(G.ytwMarkdownDivDark=K,G.ytwMarkdownDivHostEnableDefaultStylingSmall=function(){var n;return((n=M.isSmallText)==null?void 0:n.call(M))||!1},G.ytwMarkdownDivHostWrapCodeBlocks=function(){var n;
return((n=M.wrapCodeBlocks)==null?void 0:n.call(M))||!1},G.ytwMarkdownDivHostEnableDefaultStyling=function(){var n;
return!((n=M.disableDefaultStyling)==null?0:n.call(M))},G)),
el:q}))},"Ye");
_.Fd.idomCompat=!0;var fmS=_.U(function(M){var q=M.imageData;var G=_.bg(M.isInList,!1),K=function(){return G()?{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:52,targetHeight:52,className:"ytwGenAiRichTextViewModelContentImage"}:{contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",alt:"",targetWidth:80,targetHeight:80,className:"ytwGenAiRichTextViewModelContentImage"}};
return _.W("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.W(_.d,{cond:function(){return q().image},
then:function(n){return _.W(_.Jj,{data:n,alt:function(){return K().alt},
contentMode:function(){return K().contentMode},
targetWidth:function(){return K().targetWidth},
targetHeight:function(){return K().targetHeight},
className:function(){return K().className}})}}),_.W("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.W("div",{class:_.Hb("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.W(_.Ft,{text:function(){return q().title}})),_.W(_.bf,{each:function(){var n;
return(n=q().description)!=null?n:[]}},function(n){return _.W("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.W(Hj,{content:n}))})))},"Ze"),FS$=_.U(function(M){var q=M.list;
var G=function(){var K;return(K=q().items)!=null?K:[]};
return _.W("div",{class:"ytwGenAiRichTextViewModelListContent"},_.W(_.d,{cond:function(){return q().title},
then:function(K){return _.W("div",{class:_.Hb("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.W(_.Ft,{text:K}))}}),_.W(_.d,{cond:function(){return q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.W("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.W(_.bf,{each:G},function(K){return _.W("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.W(Hj,{content:K,isInList:!0}))}))}}),_.W(_.d,{cond:function(){return q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.W("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.W(_.bf,{each:G},function(K){return _.W("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.W(Hj,{content:K,isInList:!0}))}))}}),_.W(_.d,{cond:function(){return q().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.W("div",{class:"ytwGenAiRichTextViewModelImageList"},_.W(_.bf,{each:G},function(K){return _.W("div",{class:"ytwGenAiRichTextViewModelListItem"},_.W(Hj,{content:K,isInList:!0}))}))}}))},"$e"),Hop=_.U(function(M){var q=M.table;
return _.W("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.W("thead",null,_.W("tr",null,_.W(_.bf,{each:function(){var G,K;return(K=(G=q().header)==null?void 0:G.cells)!=null?K:[]}},function(G){return _.W("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.W(_.bf,{each:function(){return G.contents}},function(K){return _.W(Hj,{content:K})}))}))),_.W("tbody",null,_.W(_.bf,{each:function(){var G;
return(G=q().rows)!=null?G:[]}},function(G){return _.W("tr",null,_.W(_.bf,{each:function(){return G.cells}},function(K){return _.W("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.W(_.bf,{each:function(){return K.contents}},function(n){return _.W(Hj,{content:n})}))}))})))},"af"),Hj=_.U(function(M){var q=M.content;
var G=_.bg(M.isInList,!1),K=function(){var n,E;return(E=(n=q().contentBlock)==null?void 0:n.contents)!=null?E:[]};
return _.W("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.W(_.d,{cond:function(){return q().text},
then:function(n){return _.W(_.Ft,{className:"ytwGenAiRichTextViewModelText",text:n})}}),_.W(_.d,{cond:function(){return q().image},
then:function(n){return _.W(fmS,{imageData:n,isInList:G})}}),_.W(_.d,{cond:function(){return q().list},
then:function(n){return _.W(FS$,{list:n})}}),_.W(_.d,{cond:function(){return q().contentBlock},
then:function(){return _.W("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.W(_.bf,{each:K},function(n){return _.W(Hj,{content:n,isInList:!1})}))}}),_.W(_.d,{cond:function(){return q().table},
then:function(n){return _.W(Hop,{table:n})}}))},"bf"),eM9=_.U(function(M){var q={};
q=_.vO("ytwGenAiRichTextViewModelHost",(q.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.wP("search_overview_link_style")),q));return _.W("gen-ai-rich-text-view-model",{class:q},_.W(Hj,{content:function(){return M.data().content}}))},"cf");_.$Uf=_.U(function(M){var q=M.data;var G=function(){var g;return((g=q().loadingUi)!=null?g:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},K=function(){return q().isLoading&&(G()==="UNSPECIFIED"||G()==="GHOST_CARD")},n=function(){return!q().isLoading},E=function(){return!!q().content&&!q().contents},p=function(){return!!q().contents},y=function(){return!!q().nextQueryButtons},Y=function(){return q().isLoading&&G()==="INVISIBLE"},A=function(){var g,D;
return(D=(g=q().headerIcon)==null?void 0:g.iconType)!=null?D:""},v=function(){var g;
return(g=q().content)!=null?g:""},h=function(){return!!q().sourcesSection},t,O=!((t=_.AL().resolve(_.WR(_.Qx)))==null||!t()),a=_.gY(function(){var g=[],D=q().contents;
if(D)for(var J=0;J<D.length;J++){var Z=_.C(D&&D[J],YOS);Z&&g.push(Z)}return g},void 0,"gcCsZb");
_.SK(function(){q().isLoading||_.oJ("so_re",void 0,"search_overview_answer")});
return _.W("ytd-overview-answer-view-model",{class:function(){var g={};g=(g.ytdOverviewAnswerViewModelHost=!0,g.ytdOverviewAnswerViewModelDarkBackground=O&&!Y(),g.ytdOverviewAnswerViewModelLightBackground=!O&&!Y(),g);return _.vO(g)}},_.W(_.d,{cond:function(){return!Y()},
then:function(){return _.W(_.dU,null,_.W("h2",null,_.W("div",{class:"ytdOverviewAnswerViewModelHeader"},_.W(_.d,{cond:A,then:function(g){return _.W("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.W(_.np,{icon:g}))}}),_.W("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.W("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return q().headerText}),_.W("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.W(_.Ft,{text:function(){return q().headerSubtext}}))))),_.W(_.d,{cond:K,
then:function(){return _.W(P7e,null)}}),_.W(_.d,{cond:n,
then:function(){return _.W(_.dU,null,_.W(_.d,{cond:E,then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelText"},_.W(_.Fd,{text:v,isSmallText:!0}))}}),_.W(_.d,{cond:p,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelRichText"},_.W(_.bf,{each:a},function(g){return _.W(eM9,{data:g})}))}}),_.W(_.d,{cond:y,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.W(_.yu,{data:function(){return q().nextQueryButtons}},{buttonViewModel:function(g){return _.W(_.Wf,{data:g.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.Rd}))}}),_.W("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.W("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.W(_.d,{cond:function(){return!!_.C(q().likeButtonViewModel,_.SN)&&!!_.C(q().dislikeButtonViewModel,_.mz)},
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.W(_.rn,{data:function(){return _.C(q().likeButtonViewModel,_.SN)},
disableIconAnimation:!0}),_.W(_.TR,{data:function(){return _.C(q().dislikeButtonViewModel,_.mz)}}))}})),_.W(_.d,{cond:function(){var g;
return(g=q().sourcesSection)==null?void 0:g.headerText},
then:function(g){return _.W("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.W(_.Ft,{text:g}))}})),_.W(_.d,{cond:h,
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelSources"},_.W(_.yu,{data:function(){var g;return(g=q().sourcesSection)==null?void 0:g.sourcesShelf}},{buttonViewModel:_.Wf,
horizontalShelfViewModel:function(g){return _.W(_.Rd,{data:g.data,includeMargin:!0,hasPeek:!0})}}))}}),_.W(_.d,{cond:function(){return q().disclaimerText},
then:function(){return _.W("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.W(_.Ft,{text:function(){return q().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"df");var syw=_.U(function(M){var q=_.UT(M,{}).data;return _.W("yt-shopping-content-line-item-view-model",{class:_.Hb("ytShoppingContentLineItemViewModelHost")},_.W(_.Ft,{text:function(){var G;return(G=q().text)==null?void 0:G.attributedString}}))},"ef");_.ey=_.U(function(M){M=_.UT(M,{});var q=M.data,G={};return _.W("yt-shopping-content-line-view-model",{class:_.Hb("ytShoppingContentLineViewModelHost",M.className,(G.ytShoppingContentLineViewModelTruncateText=function(){return!q().wrapContent},G)),
style:_.Kp({"--shopping-content-line-gap":function(){return q().itemGap?q().itemGap+"px":void 0},
"--shopping-content-line-height":function(){return q().lineHeight?q().lineHeight+"px":void 0}})},_.W(_.bf,{each:function(){return(q().items||[]).map(function(K){return _.C(K,oy2)}).filter(function(K){return!!K})}},function(K){return _.W(syw,{data:K})}))},"ff");var Mwv=_.U(function(M){var q=M.data;var G=function(){var E;return((E=q().image)==null?void 0:E.height)||48},K=function(){var E;
return((E=q().image)==null?void 0:E.width)||48},n=function(){return"width: "+K()+"px; height: "+G()+"px;"};
return _.W("yt-shopping-description-item-view-model",{class:"ytShoppingDescriptionItemViewModelHost",style:function(){var E,p,y,Y=((E=_.AL().resolve(_.WR(_.Qx)))==null?0:E())?(p=q())==null?void 0:p.darkThemeBackgroundColor:(y=q())==null?void 0:y.lightThemeBackgroundColor;return"background-color: "+(Y?_.C_(Y):"")+";"},
el:_.bm(_.CL(function(){var E;return(E=q())==null?void 0:E.rendererContext}))},_.W(_.d,{cond:function(){var E,p;
return(p=(E=q().image)==null?void 0:E.image)!=null?p:q().thumbnail},
then:function(E){return _.W("div",{class:"ytShoppingDescriptionItemViewModelThumbnail",style:function(){var p;return"background-color: "+(((p=q().image)==null?0:p.backgroundColor)?_.C_(q().image.backgroundColor):"")+";"+n()}},_.W(_.Jj,{data:E,
height:G,width:K,style:n,alt:""}))}}),_.W("div",{class:"ytShoppingDescriptionItemViewModelText"},_.W(_.yu,{data:function(){return q().line1}},{shoppingContentLineViewModel:function(E){return _.W(_.ey,{data:E.data})}}),_.W(_.yu,{data:function(){return q().line2}},{shoppingContentLineViewModel:function(E){return _.W(_.ey,{data:E.data})}}),_.W(_.yu,{data:function(){return q().line3}},{shoppingContentLineViewModel:function(E){return _.W(_.ey,{data:E.data})}})))},"gf");var qeM=_.U(function(M){var q=M.data;var G=M.active;var K=_.pI("transcript-segment-view-model");_.zL(function(){var n,E,p,y=((n=_.AL().resolve(_.WR(_.Qx)))==null?0:n())?(E=q())==null?void 0:E.darkThemeColorPalette:(p=q())==null?void 0:p.lightThemeColorPalette;y&&(y.additiveBackground&&K.value.style.setProperty("--timestamp-active-background-color",_.C_(y.additiveBackground)),y.textSecondary&&K.value.style.setProperty("--timestamp-active-color",_.w2(y.textSecondary)))},"TnVCnb");
M={};return _.W("transcript-segment-view-model",{class:_.Hb("ytwTranscriptSegmentViewModelHost",(M.ytwTranscriptSegmentViewModelHostActive=G,M.ytwTranscriptSegmentViewModelHostModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),M)),el:K},_.W(_.d,{cond:function(){var n;return(n=q())==null?void 0:n.timestamp},
then:function(n){var E={};return _.W(_.dU,null,_.W("div",{class:_.Hb("ytwTranscriptSegmentViewModelTimestamp",(E.ytwTranscriptSegmentViewModelTimestampActive=G,E)),"aria-hidden":!0},n),_.W("div",{class:"ytwTranscriptSegmentViewModelTimestampA11yLabel"},function(){var p=n().split(":").map(Number),y=_.k(p.reverse());p=y.next().value;var Y=y.next().value;y=y.next().value;return _.nS$({hours:y,minutes:Y,seconds:p})}))}}),_.W(_.Ft,{text:function(){var n,E,p;
return(p=(n=q())==null?void 0:n.attributedText)!=null?p:{content:(E=q())==null?void 0:E.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"jf");var GF8=_.U(function(M){var q=M.data;return _.W("div",{class:"videoAttributesSectionViewModelHeader"},_.W("div",{class:"videoAttributesSectionViewModelTitleContainer"},_.W("h3",{class:"videoAttributesSectionViewModelTitle"},function(){return q().headerTitle}),_.W(_.d,{cond:function(){return q().headerInfoButton},
then:function(){return _.W(_.yu,{data:function(){return q().headerInfoButton}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
className:"videoAttributesSectionViewModelInfoButton"})}})}})),_.W(_.d,{cond:function(){return q().headerSubtitle},
then:function(){return _.W("span",{class:"videoAttributesSectionViewModelSubtitle"},function(){return q().headerSubtitle})}}))},"kf"),Kyw=_.U(function(M){function q(g){return Math.max(Math.min(g,0),A()-y())}
var G=M.data;var K;M=_.pI("div",function(g){var D=function(){v(g.clientWidth)};
D();window.ResizeObserver&&(K=new ResizeObserver(D),K.observe(g))});
var n=_.pI("div",function(g){Y(g.scrollWidth)}),E=_.k(_.lQ(0,void 0,"C3XQAe")),p=E.next().value;
E=E.next().value;var y=p,Y=E;E=_.k(_.lQ(0,void 0,"db7y3"));p=E.next().value;E=E.next().value;var A=p,v=E;p=_.k(_.lQ(0,void 0,"RchC7"));var h=p.next().value,t=p.next().value;_.m_(function(){var g;(g=K)==null||g.disconnect()});
var O=function(){t(q(h()+A()))},a=function(){t(q(h()-A()))};
return _.W("yt-video-attributes-section-view-model",null,_.W("div",{class:"videoAttributesSectionViewModelHost"},_.W(_.d,{cond:function(){return G().headerTitle},
then:function(){return _.W(GF8,{data:G})}}),_.W("div",{class:_.Hb("videoAttributesSectionViewModelVideoAttributes","videoAttributesSectionViewModelScrollContainer"),
el:M},_.W("div",{class:"videoAttributesSectionViewModelVideoAttributesContainer",style:_.Kp({transform:function(){var g=h();_.R9("HTML_DIR")==="rtl"&&(g*=-1);return"translateX("+g+"px)"}}),
el:n},_.W(_.yu,{data:function(){return G().videoAttributeViewModels}},{videoAttributeViewModel:T5B}))),_.W(_.yu,{data:function(){return G().footerButton}},{buttonViewModel:function(g){return _.W(_.Wf,{data:g.data,
className:"videoAttributesSectionViewModelFooterButton"})}}),_.W(_.d,{cond:function(){return h()<0&&G().previousButton},
then:function(){return _.W("div",{class:"videoAttributesSectionViewModelLeftArrow"},_.W(_.yu,{data:function(){return G().previousButton}},{buttonViewModel:function(g){return _.W(_.Wf,{data:g.data,
onClick:O})}}))}}),_.W(_.d,{cond:function(){return h()>A()-y()&&G().nextButton},
then:function(){return _.W("div",{class:"videoAttributesSectionViewModelRightArrow"},_.W(_.yu,{data:function(){return G().nextButton}},{buttonViewModel:function(g){return _.W(_.Wf,{data:g.data,
onClick:a})}}))}})))},"lf");
Kyw.idomCompat=!0;var nss=_.U(function(M){var q=M.data;var G=M.active;var K={},n={};return _.W("timeline-item-view-model",{class:_.Hb("ytwTimelineItemViewModelHost",(K.ytwTimelineItemViewModelHostChapterChild=M.chapterChild,K.ytwTimelineItemViewModelModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),K))},_.W("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.W("div",{class:_.Hb("ytwTimelineItemViewModelTimestamp",(n.ytwTimelineItemViewModelTimestampActive=
G,n))},function(){return q().timestamp})),_.W("div",{class:"ytwTimelineItemViewModelContentItems"},_.W(_.yu,{data:function(){return q().contentItems}},{transcriptSegmentViewModel:function(E){return _.W(qeM,{data:E.data,
active:G})},
videoAttributesSectionViewModel:Kyw})))},"mf");var EsI=_.U(function(M){var q=M.data;M={};return _.W("timeline-chapter-view-model",{class:_.Hb("ytwTimelineChapterViewModelHost")},_.W("div",{class:_.Hb("ytwTimelineChapterViewModelTitle",(M.ytwTimelineChapterViewModelModern=_.w("enable_timeline_view_modern_transcript")||_.w("enable_timeline_view_modern_transcript_fe"),M))},function(){return q().title}),_.W(_.yu,{data:function(){return q().contents}},{timelineItemViewModel:function(G){return _.W(nss,{data:G.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(G){return _.W(Kyw,{data:G.data})}}))},"nf");var N$L=_.U(function(M){var q=M.data;var G=_.pI("macro-markers-panel-item-view-model"),K=_.No(_.h$y,function(){var E;return(E=q().markersEngagementPanelSyncEntityKey)!=null?E:""}),n=function(){var E;
return((E=K())==null?void 0:E.activeItemIndex)===q().index};
M=_.sq(function(E){var p,y,Y,A,v;return _.L(function(h){if(h.nextAddress==1)return E.stopPropagation(),_.t$(_.h$(E),G.value,["A".toString(),"BUTTON".toString()])?h.return():(p=_.aM(q().onTap))?h.yield(_.s0(),2):h.return();y=h.yieldResult;A=(Y=_.C(p,_.Jl))==null?void 0:Y.startTimeSeconds;A===void 0||(v=y)!=null&&v.seekTo(A,!0);_.gL(h)})});
return _.W("macro-markers-panel-item-view-model",{class:_.Hb("ytwMacroMarkersPanelItemViewModelHost",{"is-active":n}),el:G,"on:click":M,tabindex:0,role:"button"},_.W(_.yu,{data:function(){var E;return(E=q())==null?void 0:E.item}},{timelineChapterViewModel:function(E){return _.W(EsI,{data:E.data,
active:n})},
timelineItemViewModel:function(E){return _.W(nss,{data:E.data,active:n})},
videoAttributeViewModel:T5B,shoppingDescriptionItemViewModel:Mwv}))},"of");
N$L.idomCompat=!0;_.S5(N$L,"macro-markers-panel-item-view-model",{props:{data:_.Hz}});_.S5(Kyw,"yt-video-attributes-section-view-model",{props:{data:_.Hz}});var kFL=_.U(function(M){var q=function(){var G,K,n;return(n=(G=M.data().leadingLogoAccessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label)!=null?n:""};
return _.W("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.W(_.d,{cond:function(){return M.data().leadingLogo},
then:function(G){return _.W(_.Jj,{className:"ytwFantasySectionHeaderViewModelLogo",data:G,alt:q})}}),_.W("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.W(_.Ft,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return M.data().title}}),_.W(_.Ft,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return M.data().subtitle}})),_.W(_.yu,{data:function(){return M.data().trailingButton}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"pf");var pyn=_.U(function(M){var q={};q=_.Hb("ytwFantasyTeamViewModelHost",(q.ytwFantasyTeamViewModelCompact=function(){var n;return!((n=M.compact)==null||!n.call(M))},q.ytwFantasyTeamViewModelUser=function(){return M.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},q.ytwFantasyTeamViewModelOpponent=function(){return M.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},q));
var G=function(){var n,E,p;return(p=(n=M.data().teamLogoAccessibility)==null?void 0:(E=n.accessibilityData)==null?void 0:E.label)!=null?p:""},K=_.No(OBu,function(){return M.data().teamEntityKey});
return _.W("ytw-fantasy-team-view-model",{class:q},_.W(_.d,{cond:function(){return M.data().teamLogo},
then:function(n){return _.W(_.Jj,{className:"ytwFantasyTeamViewModelLogo",data:n,alt:G})}}),_.W("div",{class:"ytwFantasyTeamViewModelMetadata"},_.W("div",{class:"ytwFantasyTeamViewModelHeader"},_.W(_.Ft,{className:"ytwFantasyTeamViewModelScore",
text:function(){var n;return(n=K())==null?void 0:n.score}}),_.W(_.np,{icon:function(){var n;
return(n=K())==null?void 0:n.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.W(_.Ft,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var n;return(n=K())==null?void 0:n.projectedScore}})),_.W(_.Ft,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return M.data().primaryText}}),_.W(_.Ft,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return M.data().secondaryText}}),_.W(_.Ft,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return M.data().tertiaryText}})),_.W(_.Ft,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var n;return(n=K())==null?void 0:n.score}}))},"qf");_.S5(_.U(function(M){return _.W("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.W("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.W(_.yu,{data:function(){return M.data().summaryHeader}},{fantasySectionHeaderViewModel:kFL})),_.W(_.yu,{data:function(){return M.data().userTeam}},{fantasyTeamViewModel:pyn}),_.W(_.yu,{data:function(){return M.data().opponentTeam}},{fantasyTeamViewModel:pyn}))},"rf"),"fantasy-league-summary-view-model",{props:{data:_.Hz}});var y4g=_.U(function(M){var q=_.UT(M,{shape:{},useCustomTabRenderable:!1}),G=q.shape;q=q.useCustomTabRenderable;var K=M.customTabRenderable,n=function(){return G().disabled},E=function(){return G().selected},p=function(){return G().title},y=function(){return G().icon},Y=_.pI("yt-tab-shape");
M=_.sq(function(h){var t;if(!n()&&((t=G().aTagConfig)==null?0:t.onclick))G().aTagConfig.onclick(h);return!1});
var A=_.sq(function(h){if(h.key==="Enter"||h.key==="ArrowUp"||h.key==="ArrowDown")h.preventDefault(),Y.value.click();return!1}),v={};
return _.W("yt-tab-shape",{class:_.Hb("yt-tab-shape",function(){return G().className},(v["yt-tab-shape__tab--last-tab"]=function(){return G().isLastTab},v["yt-tab-shape--host-disabled"]=n,v["yt-tab-shape--host-clickable"]=!K,v)),
role:K?void 0:"tab","aria-selected":E!=null?E:!1,"aria-disabled":n,tabindex:K?void 0:0,"on:click":M,"on:keydown":A,el:Y,"tab-identifier":function(){return G().identifier},
"tab-title":p},_.W(_.d,{cond:q,then:function(){return K()},
else:function(){var h={},t={};return _.W(_.dU,null,_.W("div",{class:_.Hb("yt-tab-shape__tab",(h["yt-tab-shape__tab--tab-selected"]=E,h))},_.W(_.d,{cond:y,then:function(O){return _.W(_.np,{className:"yt-tab-shape__tab-icon",icon:function(){return O().iconType}})}}),p),_.W("div",{class:_.Hb("yt-tab-shape__tab-bar",(t["yt-tab-shape__tab-bar--tab-bar-selected"]=E,t))}))}}))},"sf");
y4g.idomCompat={callbacks:{customTabRenderable:!0}};_.YeE=_.U(function(M){var q=M.shape;M=_.k(_.lQ(48,void 0,"nDAx4"));var G=M.next().value,K=M.next().value;M=_.k(_.lQ(0,void 0,"GCgjqb"));var n=M.next().value,E=M.next().value,p=function(){return q().tabs},y=_.pI("yt-tab-group-shape"),Y=function(){var t,O;
return(O=(t=p())==null?void 0:t.findIndex(function(a){return a.selected}))!=null?O:-1};
M=_.k(_.lQ(!1,void 0,"SU01tf"));var A=M.next().value,v=M.next().value,h=function(){A()||_.r8.addJob(function(){v(!0)},0)};
_.zL(function(){var t=Y(),O=_.r8.addJob(function(){var a,g=((a=y.value)==null?void 0:a.querySelectorAll("yt-tab-shape"))||[],D;K(((D=t>-1?g[t]:void 0)==null?void 0:D.getBoundingClientRect().width)||0);for(D=a=0;D<t;D++)a+=g[D].offsetWidth+24;_.R9("HTML_DIR")==="rtl"&&(a=-a);E(a);h()},8,0);
_.m_(function(){_.r8.cancelJob(O)})},"PMwgb");
M={};return _.W("yt-tab-group-shape",{class:_.Hb("tabGroupShapeHost",(M.tabGroupShapeOverflowHidden=function(){return q().isOverflowHidden},M)),
el:y},_.W(_.d,{cond:p,then:function(t){return _.W(_.dU,null,_.W("div",{class:"tabGroupShapeTabs",role:"tablist"},_.W(_.bf,{each:t},function(O,a){return _.W(y4g,{shape:function(){return Object.assign({},O,{isLastTab:a()===t().length-1})},
customTabRenderable:O.customTabRenderable,useCustomTabRenderable:!!O.customTabRenderable})})),_.W(LyE,{width:G,
sliderOffset:n,enableTransition:A}))}}))},"uf");
_.YeE.idomCompat=!0;var LyE=_.U(function(M){var q=_.bg(M.sliderOffset,0),G=M.width,K=M.enableTransition;M={};return _.W("div",{class:_.Hb("tabGroupShapeSlider",(M.tabGroupShapeSliderTransition=function(){return K()},M)),
style:_.Kp({width:function(){return G()+"px"},
transform:function(){return"translateX("+q()+"px)"}})})},"vf");var WyI=_.U(function(M){var q=function(){var E,p,y;return(y=(E=M.data().playerLogoAccessibility)==null?void 0:(p=E.accessibilityData)==null?void 0:p.label)!=null?y:""},G=_.No(w1y,function(){return M.data().playerEntityKey}),K={};
K=_.Hb("ytwFantasyPlayerViewModelHost",(K.ytwFantasyPlayerViewModelPlaying=function(){var E;return!((E=G())==null||!E.isPlayerPlaying)},K.ytwFantasyPlayerViewModelOnField=function(){var E;
return((E=G())==null?void 0:E.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},K.ytwFantasyPlayerViewModelRedZone=function(){var E;
return((E=G())==null?void 0:E.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},K));
var n=function(){var E,p,y,Y=((E=_.AL().resolve(_.WR(_.Qx)))==null?0:E())?(p=M.data().playerLogoBackgroundColor)==null?void 0:p.darkTheme:(y=M.data().playerLogoBackgroundColor)==null?void 0:y.lightTheme;return Y===void 0?"":_.C_(Y)};
return _.W("ytw-fantasy-player-view-model",{class:K},_.W(_.d,{cond:function(){return M.data().playerLogo},
then:function(E){return _.W("div",{class:"ytwFantasyPlayerViewModelLogo"},_.W("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.W(_.Jj,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Kp({"background-color":n}),data:E,alt:q})),_.W("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.W(_.np,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.W("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.W("div",{class:"ytwFantasyPlayerViewModelHeader"},_.W(_.Ft,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var E;return(E=M.data())==null?void 0:E.playerNameText}}),_.W(_.Ft,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var E;return(E=M.data())==null?void 0:E.playerDescriptionText}})),_.W("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.W(_.Ft,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=G())==null?void 0:E.gamePeriodText}}),_.W(_.Ft,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=M.data())==null?void 0:E.opponentTeamText}}),_.W(_.Ft,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var E;return(E=G())==null?void 0:E.gameStatusText}}),_.W(_.Ft,{className:_.Hb("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var E;return(E=G())==null?void 0:E.playerStatusText}})),_.W("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.W(_.Ft,{text:function(){var E;
return(E=G())==null?void 0:E.playerStatsText}}))),_.W(_.Ft,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var E;return(E=G())==null?void 0:E.fantasyScore}}))},"wf");var A4P=_.U(function(M){return _.W("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.W(_.d,{cond:function(){return M.data().players},
then:function(q){return _.W(_.yu,{data:q},{fantasyPlayerViewModel:WyI})}}))},"xf");var dDs=_.U(function(M){var q=_.k(_.GM(function(){var n;return(n=M.data().selectedTabIdentifierKey)!=null?n:""})),G=q.next().value,K=q.next().value;
_.mT(function(){var n;(n=M.setSelectedTabSignal)==null||n.call(M,G)});
return _.W("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.W("div",{class:"ytTabbedViewModelTabGroup"},_.W(_.YeE,{shape:function(){var n=M.data(),E=[],p={tabs:E};if(!n.tabs)return p;n=_.k(n.tabs);for(var y=n.next(),Y={};!y.done;Y={tabViewModel:void 0},y=n.next())if(Y.tabViewModel=_.C(y.value,cRl),Y.tabViewModel){var A=y=void 0;E.push({aTagConfig:{onclick:function(v){return function(){var h;K((h=v.tabViewModel.tabIdentifier)!=null?h:"")}}(Y)},
identifier:Y.tabViewModel.tabIdentifier,selected:G()===Y.tabViewModel.tabIdentifier,title:(A=(y=Y.tabViewModel.title)==null?void 0:y.content)!=null?A:""})}return p}})),_.W(_.yu,{data:function(){var n,E=_.k((n=M.data().tabs)!=null?n:[]);
for(n=E.next();!n.done;n=E.next())if((n=_.C(n.value,cRl))&&n.tabIdentifier===G())return n.content}},{fantasyRosterViewModel:A4P}))},"zf");_.S5(_.U(function(M){var q=_.k(iwy()),G=q.next().value,K=q.next().value;return _.W("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.W(_.Ft,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return M.data().title}}),_.W(_.d,{cond:function(){return M.data().tabbedViewModel},
then:function(n){return _.W(_.yu,{data:n},{tabbedViewModel:function(E){return _.W(dDs,{data:E.data,setSelectedTabSignal:K})}})}}),_.W(_.d,{cond:function(){var n,E=(n=_.C(M.data().tabbedViewModel,gLv))==null?void 0:n.tabs;
n=_.C(E==null?void 0:E[0],cRl);E=_.C(E==null?void 0:E[1],cRl);var p=n==null?void 0:n.tabIdentifier;if(G()===p){var y,Y;if(!((y=_.C(n==null?void 0:n.content,mSx))==null?0:(Y=y.players)==null?0:Y.length))return M.data().noUserTeamPlayersText}else{var A,v;if(!((A=_.C(E==null?void 0:E.content,mSx))==null?0:(v=A.players)==null?0:v.length))return M.data().noOpponentTeamPlayersText}},
then:function(n){return _.W(_.Ft,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:n})}}))},"Af"),"ytw-fantasy-matchup-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){return _.W("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.W(_.Ft,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return M.data().title}}),_.W(_.d,{cond:function(){return M.data().matchupTeamPairs},
then:function(q){return _.W(_.bf,{each:q,keyBy:"INDEX"},function(G){return _.W("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.W(_.yu,{data:function(){return[G().firstTeam,G().secondTeam]}},{fantasyTeamViewModel:function(K){return _.W(pyn,{data:K.data,
compact:!0})}}))})}}))},"Bf"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=function(){var n,E,p;return(p=(n=M.data().userLogoAccessibility)==null?void 0:(E=n.accessibilityData)==null?void 0:E.label)!=null?p:""},G=function(){var n,E,p;
return(p=(n=M.data().opponentLogoAccessibility)==null?void 0:(E=n.accessibilityData)==null?void 0:E.label)!=null?p:""},K=_.No(tay,function(){return M.data().entityKey});
return _.W("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.W("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.W(_.d,{cond:function(){return M.data().userLogo},
then:function(n){return _.W(_.Jj,{className:"ytwFantasyWinProbabilityViewModelLogo",data:n,alt:q})}}),_.W("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.W(_.Ft,{text:function(){return M.data().title}})),_.W(_.d,{cond:function(){return M.data().opponentLogo},
then:function(n){return _.W(_.Jj,{className:"ytwFantasyWinProbabilityViewModelLogo",data:n,alt:G})}})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.W("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.W(_.Ft,{text:function(){var n;
return(n=K())==null?void 0:n.userWinNumberLabel}})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.W("div",{class:_.Hb("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Kp({flex:function(){var n,E;return(E=(n=K())==null?void 0:n.userWinNumber)!=null?E:50}})}),_.W("div",{class:_.Hb("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Kp({flex:function(){var n,E;return(E=(n=K())==null?void 0:n.opponentWinNumber)!=null?E:50}})})),_.W("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.W(_.Ft,{text:function(){var n;
return(n=K())==null?void 0:n.opponentWinNumberLabel}}))))},"Cf"),"fantasy-win-probability-view-model",{props:{data:_.Hz}});var vsI={sources:[{clientResource:{imageName:"LOCK_FILLED"}}]},huL=_.U(function(M){return _.W(_.yu,{data:M.button},{buttonViewModel:function(q){return _.W(_.Wf,{data:q.data,className:"ytdBackstageLockedPostViewModelBottomButton"})}})},"Df"),tww=_.U(function(M){return _.W("ytd-backstage-locked-post-view-model",{class:_.Hb("ytdBackstageLockedPostViewModelHost",M.className)},_.W("div",{class:"ytdBackstageLockedPostViewModelHeader"},_.W("div",{class:"ytdBackstageLockedPostViewModelAuthorAvatar"},_.W(_.yu,
{data:function(){return M.data().authorAvatar}},{decoratedAvatarViewModel:_.mF})),_.W("div",{class:"ytdBackstageLockedPostViewModelHeaderDetails"},_.W("div",{class:"ytdBackstageLockedPostViewModelAuthorText"},_.W(_.Ft,{text:function(){return M.data().authorText}})),_.W("div",{class:"ytdBackstageLockedPostViewModelPublishedTimeText"},_.W(_.Ft,{text:function(){return M.data().publishedTimeText}}),_.W(_.yu,{data:function(){return M.data().sponsorsOnlyBadge}},{sponsorsOnlyBadgeRenderer:function(q){return _.W(l5J,
{data:q.data,
className:"ytdBackstageLockedPostViewModelMembersOnlyBadge"})}})))),_.W("div",{class:"ytdBackstageLockedPostViewModelPostText"},_.W(_.Ft,{text:function(){return M.data().contentText}})),_.W(_.Ub,null,_.W(_.J3,{when:function(){return M.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_TEXT_ONLY"}},function(){return _.W("div",{class:"ytdBackstageLockedPostViewModelLockedTextDisplay"},_.W(_.Jj,{data:vsI,
alt:"",className:"ytdBackstageLockedPostViewModelLockedTextDisplayIcon"}),_.W(_.Ft,{text:function(){return M.data().lockedText}}))}),_.W(_.J3,{when:function(){return M.data().lockedDisplayType==="BACKSTAGE_LOCKED_POST_LOCKED_DISPLAY_TYPE_GREY_BOX"}},function(){return _.W("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBox"},_.W("div",{class:"ytdBackstageLockedPostViewModelLockedGreyBoxIcon"},_.W(_.Jj,{data:vsI,
alt:""})),_.W(_.Ft,{text:function(){return M.data().lockedText}}))})),_.W("div",{class:"ytdBackstageLockedPostViewModelButtons"},_.W(huL,{button:function(){return M.data().likeButton}}),_.W("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return M.data().voteCountA11y}},_.W(_.Ft,{text:function(){return M.data().voteCount}})),_.W(huL,{button:function(){return M.data().dislikeButton}}),_.W(huL,{button:function(){return M.data().commentButton}}),_.W("span",{class:"ytdBackstageLockedPostViewModelButtonCounts",
"aria-label":function(){return M.data().commentCountA11y}},_.W(_.Ft,{text:function(){return M.data().commentCount}}))))},"Ef");
tww.idomCompat=!0;_.S5(tww,"ytd-backstage-locked-post-view-model",{props:{data:_.Hz,className:_.Hz}});_.hC("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var $o=function(){var M=_.Q.apply(this,arguments)||this;M.darkerPanels=_.w("web_watch_darker_panels");M.commentsHidePanelButton=!1;M.isWatchGrid=!1;M.continuationShowButton=!1;M.isSearch=!1;M.isConstrainedList=!1;M.isWatch=!1;M.eligibleToSwitchToGrid=!1;M.useBigThumbs=!1;M.notSticky=!1;M.epRestyle=!1;M.isCarouselInFeed=!0;M.topSpacingZero=!1;M.continuationIsInitialLoad=!0;M.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");M.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");
M.mastheadHeight=0;M.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};M.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return M};
_.l($o,_.Q);_.N=$o.prototype;_.N.updateLockupContainerTypes=function(M){if(this.eligibleToSwitchToGrid){var q;(q=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||q.forEach(function(G){G.containerType=M})}};
_.N.getItemsPath=function(){return"data.contents"};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.N.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:_.w("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.w("kevlar_low_priority_continuation")}}};
_.N.created=function(){};
_.N.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.N.handleIntersect=function(M){this.notSticky=M[0].intersectionRatio===1};
_.N.attached=function(){var M=this,q=_.w("web_item_section_sticky_header_use_scroll_as_fallback");q||document.addEventListener("scroll",_.qs(this,this.updateHeaderState));var G;this.mastheadHeight=((G=document.querySelector("ytd-masthead"))==null?void 0:G.clientHeight)||0;this.containerWidth=this.hostElement.clientWidth||0;window.IntersectionObserver?(this.intersectionObserver=new IntersectionObserver(function(K){M.handleIntersect(K)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement)):q&&document.addEventListener("scroll",_.qs(this,this.updateHeaderState));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){M.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.N.detached=function(){document.removeEventListener("scroll",_.qs(this,this.updateHeaderState));var M;(M=this.intersectionObserver)==null||M.disconnect();var q;(q=this.resizeObserver)==null||q.disconnect()};
_.N.updated=function(M){M.has("data")&&this.updateHeaderState()};
_.N.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(FOP(!this.notSticky))};
_.N.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var M=_.f_(this.hostElement).querySelector("ytd-comments-header-renderer");M&&(M.hidePanelButton=this.commentsHidePanelButton)}};
_.N.onRetrieveLocation=function(M,q){this.containsComments()&&(this.firstCommentsLoaded=q.hasComments=!0)};
_.N.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.N.onLoadReloadContinuation=function(M,q){var G=this;M.stopPropagation();this.isReloading=!0;_.jP(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(K){var n=_.AL().resolve(_.L_);K=q(K);n.postData(K).then(function(E){G.onReloadContinuationData(E)})}})};
_.N.onReloadContinuationData=function(M){if(M=this.get("response.continuationContents.itemSectionContinuation",M)||this.get("response.contents.itemSectionRenderer",M)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",M)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",M))this.set("data.contents",M.contents||M.results),M.header&&this.set("data.header",M.header),this.set("data.continuations",
M.continuations||[]);this.isReloading=!1};
_.N.computeContentsClass=function(M){return M?"reloading":""};
_.N.computeSectionIdentifier=function(M){return M==null?void 0:M.sectionIdentifier};
_.N.computeFitContainer=function(M){return(M==null?void 0:M.sectionIdentifier)==="youchat-item-section"};
_.N.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.w("kevlar_disable_comments_auto_load")};
_.N.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.N.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.N.computeHasDestinationShelfRenderer=function(M){var q,G;return!!(M==null?0:(q=M.contents)==null?0:(G=q[0])==null?0:G.destinationShelfRenderer)};
_.N.computeHasSectionGroupViewModel=function(M){var q,G;return!!(M==null?0:(q=M.contents)==null?0:(G=q[0])==null?0:G.sectionGroupViewModel)};
_.N.computeHasQrCodeRenderer=function(M){var q,G;return!!(M==null?0:(q=M.contents)==null?0:(G=q[0])==null?0:G.qrCodeRenderer)};
_.N.computeStaticCommentsHeader=function(M){return M&&this.containsComments()};
_.N.computeEpRestyle=function(M){return _.w("web_ep_restyling")&&M&&this.containsComments()};
_.N.computeIsContinuationCommentSection=function(M){return(M==null?void 0:M.targetId)==="shorts-engagement-panel-comments-section"||(M==null?void 0:M.targetId)==="comments-section"||(M==null?void 0:M.targetId)==="engagement-panel-comments-section"};
_.N.computeSuppressPaddingDisclaimer=function(){var M,q,G,K;return!!((M=this.data)==null?0:(q=M.contents)==null?0:(G=q[0])==null?0:(K=G.productListHeaderRenderer)==null?0:K.suppressPaddingDisclaimer)};
_.N.computeHeaderStyle=function(M){switch(M==null?void 0:M.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.N.dataChanged=function(){this.firstCommentsLoaded=!1};
_.N.observeDataContentsLength=function(){var M,q;((M=this.data)==null?0:(q=M.contents)==null?0:q.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.N.onYtDismissibleItemDismissedChange=function(M){this._setItemDismissed(M.type==="yt-dismissible-item-dismissed")};
_.N.triggerContinuations=function(){for(var M=_.f_(this.hostElement).querySelector("#continuations").children,q=0;q<M.length;q++)M[q].trigger()};
_.N.triggerInitialContinuations=function(){for(var M=_.f_(this.hostElement).querySelector("#continuations").children,q=0;q<M.length;q++)M[q].triggerIfNotPreviouslyTriggered()};
_.N.handleYtItemSectionContinuation=function(M,q){var G;q&&((G=this.data)==null?void 0:G.sectionIdentifier)!==q||(this.set("data.continuations",[M]),this.triggerContinuations())};
_.N.handleYtItemSectionReplace=function(M,q){var G;q&&((G=this.data)==null?void 0:G.sectionIdentifier)!==q||(this.set("data.contents",M),this.set("data.continuations",[]))};
_.N.computeUseHeightHack=function(M){return M&&!_.w("kevlar_disable_height_hack")};
_.N.computeTopSpacingZero=function(M){return M};
_.N.continuationShowButtonChanged=function(){var M=_.f_(this.hostElement).querySelector("ytd-continuation-item-renderer");M&&(M.showButton=this.continuationShowButton)};
_.N.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("data-changed",this.data))};
_.Yd.Object.defineProperties($o.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.w("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}},
hasHeader:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.header)}},
expFixPlaylistHeader:{configurable:!0,enumerable:!0,get:function(){return _.w("web_fix_sticky_playlist_header")}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!!((M=this.data)==null?0:(q=M.contents)==null?0:(G=q[0])==null?0:G.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K,n,E,p;return!!((M=this.data)==null?0:(q=M.contents)==null?0:(G=q[0])==null?0:(K=G.shelfRenderer)==null?0:(n=K.content)==null?0:(E=n.gridRenderer)==null?0:(p=E.targetId)==null?0:p.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!!((M=this.data)==null?0:(q=M.contents)==null?0:(G=q[0])==null?0:G.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!!((M=this.data)==null?0:(q=M.contents)==null?0:(G=q[0])==null?0:G.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.wP("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.w("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.w("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){},
set:function(){}}});
$o.prototype.dataChangedForBinding=$o.prototype.dataChangedForBinding;$o.prototype.continuationShowButtonChanged=$o.prototype.continuationShowButtonChanged;$o.prototype.onYtDismissibleItemDismissedChange=$o.prototype.onYtDismissibleItemDismissedChange;$o.prototype.observeDataContentsLength=$o.prototype.observeDataContentsLength;$o.prototype.dataChanged=$o.prototype.dataChanged;$o.prototype.onServiceRequestCompleted=$o.prototype.onServiceRequestCompleted;$o.prototype.onLoadReloadContinuation=$o.prototype.onLoadReloadContinuation;
$o.prototype.onRetrieveLocation=$o.prototype.onRetrieveLocation;$o.prototype.commentsHidePanelButtonChanged=$o.prototype.commentsHidePanelButtonChanged;$o.prototype.dispatchChipBarIsSticky=$o.prototype.dispatchChipBarIsSticky;$o.prototype.updateLockupContainerTypes=$o.prototype.updateLockupContainerTypes;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],$o.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$o.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],$o.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],$o.prototype,"ytLazyListBehavior",void 0);_.T([_.P(_.M4.YtNextContinuationBehavior),_.r("design:type",Object)],$o.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.P(_.sG),_.r("design:type",Object)],$o.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],$o.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],$o.prototype,"ytdReduxBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$o.prototype,"darkerPanels",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Boolean)],$o.prototype,"engagementPanel",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"commentsHidePanelButton",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"isWatchGrid",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"continuationShowButton",void 0);_.T([_.B({computed:"computeIsContinuationCommentSection(data)"}),_.r("design:type",Boolean)],$o.prototype,"continuationIsCommentsSection",void 0);
_.T([_.B({value:!0}),_.r("design:type",Boolean)],$o.prototype,"autoFill",void 0);_.T([_.B(),_.r("design:type",Boolean)],$o.prototype,"continuationDisablePrescanVisibility",void 0);_.T([_.B(),_.r("design:type",Boolean)],$o.prototype,"isReloading",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"isSearch",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"isConstrainedList",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"isWatch",void 0);
_.T([_.B(),_.r("design:type",Object)],$o.prototype,"eligibleToSwitchToGrid",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"useBigThumbs",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$o.prototype,"notSticky",void 0);_.T([_.B({selector:_.o2,reflectToAttribute:!0}),_.r("design:type",Object)],$o.prototype,"isGridViewEnabled",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.r("design:type",Object)],$o.prototype,"epRestyle",void 0);_.T([_.c("isWatch"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$o.prototype,"hideShortsShelfHeader",null);_.T([_.c("isSearch","isWatch"),_.r("design:type",String),_.r("design:paramtypes",[])],$o.prototype,"thumbnailWidth",null);
_.T([_.c("isSearch","containerWidth"),_.r("design:type",Object),_.r("design:paramtypes",[])],$o.prototype,"thumbnailTargetWidth",null);_.T([_.c("isSearch","isWatch","useBigThumbs"),_.r("design:type",String),_.r("design:paramtypes",[])],$o.prototype,"sizing",null);_.T([_.c("isWatch","isGridViewEnabled","useBigThumbs","data"),_.B({reflectToAttribute:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],$o.prototype,"lockupContainerType",null);
_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$o.prototype,"hasHeader",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$o.prototype,"expFixPlaylistHeader",null);_.T([_.KT("lockupContainerType","data"),_.r("design:type",Function),_.r("design:paramtypes",[Number]),_.r("design:returntype")],$o.prototype,"updateLockupContainerTypes",null);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],$o.prototype,"pageSubtype",void 0);_.T([_.B(),_.r("design:type",Number)],$o.prototype,"containerWidth",void 0);_.T([_.B(),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$o.prototype,"isPlaylist",null);_.T([_.B(),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$o.prototype,"isClipList",null);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"isCarouselInFeed",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$o.prototype,"isPlaylistVideoContainer",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$o.prototype,"isSearchFrictionPage",null);_.T([_.B({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.r("design:type",Boolean)],$o.prototype,"useHeightHack",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.r("design:type",Object)],$o.prototype,"topSpacingZero",void 0);_.T([_.B({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.r("design:type",Boolean)],$o.prototype,"showButton",void 0);_.T([_.B(),_.r("design:type",Boolean)],$o.prototype,"firstCommentsLoaded",void 0);_.T([_.B(),_.r("design:type",Object)],$o.prototype,"continuationIsInitialLoad",void 0);
_.T([_.B({reflectToAttribute:!0,readOnly:!0}),_.r("design:type",Boolean)],$o.prototype,"itemDismissed",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.r("design:type",String)],$o.prototype,"sectionIdentifier",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.r("design:type",String)],$o.prototype,"fitContainer",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.r("design:type",Boolean)],$o.prototype,"hasDestinationShelfRenderer",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.r("design:type",Boolean)],$o.prototype,"staticCommentsHeader",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$o.prototype,"enableSqueezebackPanels",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$o.prototype,"enableAnchoredPanel",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.r("design:type",Boolean)],$o.prototype,"hasSectionGroupViewModel",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.r("design:type",Boolean)],$o.prototype,"hasQrCodeRenderer",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.r("design:type",Boolean)],$o.prototype,"suppressDisclaimerSeparator",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.r("design:type",String)],$o.prototype,"headerStyle",void 0);_.T([_.c("isSearch"),_.r("design:type",Object),_.r("design:paramtypes",[])],$o.prototype,"lockupExperiments",null);
_.T([_.c("isSearch"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$o.prototype,"typographyBump",null);_.T([_.ET("#header"),_.r("design:type",HTMLElement)],$o.prototype,"header",void 0);_.T([_.KT("notSticky"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$o.prototype,"dispatchChipBarIsSticky",null);
_.T([_.KT("commentsHidePanelButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$o.prototype,"commentsHidePanelButtonChanged",null);_.T([_.GQ("yt-retrieve-location"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],$o.prototype,"onRetrieveLocation",null);
_.T([_.GQ("yt-load-reload-continuation"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Function]),_.r("design:returntype")],$o.prototype,"onLoadReloadContinuation",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$o.prototype,"onServiceRequestCompleted",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$o.prototype,"dataChanged",null);
_.T([_.yO("data.contents.length"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$o.prototype,"observeDataContentsLength",null);_.T([_.GQ("yt-dismissible-item-dismissed"),_.GQ("yt-dismissible-item-undismissed"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],$o.prototype,"onYtDismissibleItemDismissedChange",null);
_.T([_.KT("continuationShowButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$o.prototype,"continuationShowButtonChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$o.prototype,"dataChangedForBinding",null);_.T([_.b({is:"ytd-item-section-renderer",disableElementRegistration:!0})],$o);
_.z($o,"ytd-item-section-renderer",function(){if(oQ$!==void 0)return oQ$;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return oQ$=M},{mode:1});var OjE;var BmY=_.bc(_.Ge("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var wyv={},gTy=(wyv[0]={title:_.rj(_.Ge("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rj(_.Ge("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:_.SE("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},wyv[1]={title:_.rj(_.Ge("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:_.SE("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},wyv);_.hC("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var s1=function(){var M=_.Q.apply(this,arguments)||this;M.allVideosCount=0;M.allPlaylistCount=0;M.isOnline=!1;M.shouldRenderDownloadsBanner=!1;M.shouldRenderDownloadsBannerUpsell=!1;M.hasOptedIntoSmartDownloads=!1;M.areAllSmartDownloadsDeleted=!1;M.smartDownloadsCompleted=!1;return M};
_.l(s1,_.Q);s1.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
s1.prototype.attached=function(){this.downloadsToRenderChanged()};
s1.prototype.detached=function(){this.set("renderableData",{})};
s1.prototype.downloadsToRenderChanged=function(){var M=_.zw().getState().entities,q=_.hn(M),G=_.w("kevlar_playlist_dl_page_killswitch")?PAu(M):_.tn(M),K=_.O3u(M),n=_.ovj(M),E=_.y0(q);M=_.OX(M);this.set("renderableData",IEu(G,q,K,n,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,this.shouldRenderDownloadsBannerUpsell,this.isOnline,E,M))};
s1.prototype.downloadsToRenderChanged=s1.prototype.downloadsToRenderChanged;_.T([_.P(_.mr),_.r("design:type",Object)],s1.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],s1.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],s1.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],s1.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],s1.prototype,"renderableData",void 0);_.T([_.B({selector:_.xtu}),_.r("design:type",Object)],s1.prototype,"allVideosCount",void 0);_.T([_.B({selector:vwu}),_.r("design:type",Object)],s1.prototype,"allPlaylistCount",void 0);_.T([_.B({selector:_.lc}),_.r("design:type",Object)],s1.prototype,"isOnline",void 0);_.T([_.B({selector:_.VuF}),_.r("design:type",Object)],s1.prototype,"shouldRenderDownloadsBanner",void 0);
_.T([_.B({selector:_.H3y}),_.r("design:type",Object)],s1.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.T([_.B({selector:_.RCw}),_.r("design:type",Object)],s1.prototype,"hasOptedIntoSmartDownloads",void 0);_.T([_.B({selector:_.fji}),_.r("design:type",Object)],s1.prototype,"areAllSmartDownloadsDeleted",void 0);_.T([_.B({selector:FQF}),_.r("design:type",Object)],s1.prototype,"smartDownloadsCompleted",void 0);
_.T([_.yO("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","shouldRenderDownloadsBannerUpsell","isOnline","allPlaylistCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],s1.prototype,"downloadsToRenderChanged",null);_.T([_.b({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],s1);
_.z(s1,"ytd-offline-item-section-renderer",function(){if(OjE!==void 0)return OjE;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return OjE=M},
{mode:1});var CHv;var aFs;var ME=function(){return _.Q.apply(this,arguments)||this};
_.l(ME,_.Q);
ME.prototype.onDataChanged=function(){if(this.JSC$16832_lastData){var M=this.getFilterClass(this.JSC$16832_lastData.status);M&&this.hostElement.classList.remove(M)}var q;(M=this.getFilterClass((q=this.data)==null?void 0:q.status))&&this.hostElement.classList.add(M);M==="selected"?_.f_(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.f_(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");M==="disabled"?_.f_(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.f_(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$16832_lastData=this.data};
ME.prototype.getFilterClass=function(M){switch(M){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
ME.prototype.onDataChanged=ME.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ME.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ME.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ME.prototype,"onDataChanged",null);_.T([_.b({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],ME);
_.z(ME,"ytd-search-filter-renderer",function(){if(aFs!==void 0)return aFs;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return aFs=M},{mode:_.VO("kevlar_poly_si_batch_j075")?1:2});var qE=function(){return _.Q.apply(this,arguments)||this};
_.l(qE,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],qE.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],qE.prototype,"data",void 0);_.T([_.b({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],qE);
_.z(qE,"ytd-search-filter-group-renderer",function(){if(CHv!==void 0)return CHv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return CHv=M},{mode:_.VO("kevlar_poly_si_batch_j075")?1:2});var osE;var GV=function(){return _.Q.apply(this,arguments)||this};
_.l(GV,_.Q);GV.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.dF());this.isCollapsed=!this.isCollapsed};
GV.prototype.navigateToAboutTheseResultsPage=function(){var M=_.z3("https://www.youtube.com/howyoutubeworks/product-features/search/");M?_.si(window,M,"_blank"):_.eK(Error("Uh"))};
GV.prototype.dataChanged=function(){this.isCollapsed=!0};
GV.prototype.computeShowBottomBorder=function(){var M,q,G;return!!((M=this.data)==null?0:(q=M.button)==null?0:q.toggleButtonRenderer)||!((G=this.data)==null||!G.aboutTheseResultsButton)};
GV.prototype.dataChanged=GV.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],GV.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.r("design:type",Boolean)],GV.prototype,"showBottomBorder",void 0);_.T([_.B(),_.r("design:type",Boolean)],GV.prototype,"renderCollapsibleMenu",void 0);
_.T([_.B(),_.r("design:type",Boolean)],GV.prototype,"isCollapsed",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GV.prototype,"dataChanged",null);_.T([_.b({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],GV);
_.z(GV,"ytd-search-sub-menu-renderer",function(){if(osE!==void 0)return osE;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return osE=M},{mode:1});var lFI;var XyR=new _.$k("SECTION_LIST_RENDERER_TOKEN");var PHI;var Kb=function(){return _.Q.apply(this,arguments)||this};
_.l(Kb,_.Q);Kb.prototype.computeStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Kb.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Kb.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],Kb.prototype,"headerStyle",void 0);_.T([_.b({is:"ytd-text-header-renderer",disableElementRegistration:!0})],Kb);
_.z(Kb,"ytd-text-header-renderer",function(){if(PHI!==void 0)return PHI;var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return PHI=M},{mode:1});var ij8;var nb=function(){return _.Q.apply(this,arguments)||this};
_.l(nb,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],nb.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],nb.prototype,"data",void 0);_.T([_.b({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],nb);
_.z(nb,"ytd-minor-moment-header-renderer",function(){if(ij8!==void 0)return ij8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ij8=M},{mode:1});var c4R;var E1=function(){return _.Q.apply(this,arguments)||this};
_.l(E1,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],E1.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],E1.prototype,"data",void 0);_.T([_.b({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],E1);
_.z(E1,"ytd-minor-moment-setting-alert-renderer",function(){if(c4R!==void 0)return c4R;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return c4R=M},{mode:1});var gs5;var B$P;var NE=function(){var M=_.Q.apply(this,arguments)||this;M.booleanSettingById=!1;M.smartDownloadsEnabledVE=_.$m(128287);M.smartDownloadsDisabledVE=_.$m(128286);M.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return M};
_.l(NE,_.Q);_.N=NE.prototype;_.N.attachSmartDownloadsSettingVes=function(){var M;this.activeVeForLogging||((M=this.data)==null?void 0:M.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.oQ(_.nl(),this.smartDownloadsEnabledVE),_.oQ(_.nl(),this.smartDownloadsDisabledVE))};
_.N.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.jP(this.hostElement,"yt-settings-switch-ready")};
_.N.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.N.onSwitchChange=function(M){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(M=_.ba(M).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.w("kevlar_settings_switch_resolve_command_killswitch")?_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(M)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.N.handleUpdateSettingsSwitch=function(M){(M=_.C(M,NQd))&&this.data&&this.data.id===M.id&&this.set("data.enabled",!!M.enabled)};
_.N.onToggleSettingsSwitch=function(M,q){this.data&&this.data.id===M&&this.set("data.enabled",q!=null?q:!this.data.enabled)};
_.N.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.Yx.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.N.maybeLogSmartDownloadsSettingVisibility=function(){var M=_.Cx(),q;M&&((q=this.data)==null?void 0:q.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.uO(M,[this.smartDownloadsEnabledVE]),_.J2(M,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.uO(M,[this.smartDownloadsDisabledVE]),_.J2(M,[this.smartDownloadsEnabledVE])))};
_.N.maybeLogSmartDownloadsSettingClick=function(){var M;((M=this.data)==null?void 0:M.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.X3(_.nl(),this.activeVeForLogging)};
_.N.updateDataEnabledFromBinding=function(M){this.set("data.enabled",M.detail.value)};
_.Yd.Object.defineProperties(NE.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var M=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!M&&(M=this.ytRendererBehavior.getSimpleString(this.data.title));return M}}});
NE.prototype.dataChanged=NE.prototype.dataChanged;_.T([_.P(_.mr),_.r("design:type",Object)],NE.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],NE.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],NE.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],NE.prototype,"ytComponentBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],NE.prototype,"data",void 0);_.T([_.B({selector:function(M,q){if(Object.keys(M==null?void 0:M.entities).length)switch(q){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return i3y(M.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.r("design:type",Object)],NE.prototype,"booleanSettingById",void 0);_.T([_.B(),_.r("design:type",Ou)],NE.prototype,"activeVeForLogging",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],NE.prototype,"toggleAriaLabel",null);_.T([_.yO("data"),_.yO("booleanSettingById"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],NE.prototype,"dataChanged",null);
_.T([_.b({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],NE);
_.z(NE,"ytd-settings-switch-renderer",function(){if(B$P!==void 0)return B$P;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return B$P=M},{mode:1});var k9=function(){return _.Q.apply(this,arguments)||this};
_.l(k9,_.Q);k9.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}}}}};
_.Yd.Object.defineProperties(k9.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var M=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(M+=" remove-left-margin");this.data.extraBottomSpace&&(M+=" extra-bottom-space");return M}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],k9.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],k9.prototype,"contentsClassName",null);_.T([_.b({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],k9);
_.z(k9,"ytd-minor-moment-setting-section-renderer",function(){if(gs5!==void 0)return gs5;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return gs5=M},{mode:1});var QyR;var pb=function(){return _.Q.apply(this,arguments)||this};
_.l(pb,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pb.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],pb.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],pb.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],pb);
_.z(pb,"ytd-empty-product-details-renderer",function(){if(QyR!==void 0)return QyR;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return QyR=M},{mode:1});var IFL;var DDI;var yH=function(){var M=_.Q.apply(this,arguments)||this;M.expanded=!0;return M};
_.l(yH,_.Q);yH.prototype.getBadgeRowClass=function(M,q,G){for(var K=_.k(this.hostElement.querySelectorAll("yt-img-shadow")),n=K.next();!n.done;n=K.next())n.value.onShow();M=M.selected;return G?M!==-1?M===q?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(M!==void 0?M:0)===q?"badge-line":"badge-hidden"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yH.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],yH.prototype,"expanded",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],yH);
_.z(yH,"ytd-sponsorships-loyalty-badges-renderer",function(){if(DDI!==void 0)return DDI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return DDI=M},{mode:1});var uiI;var Lb=function(){var M=_.Q.apply(this,arguments)||this;M.expanded=!0;return M};
_.l(Lb,_.Q);Lb.prototype.getContainerClasses=function(M,q){M=M?"expanded":"collapsed";q&&(M+=" item");return M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Lb.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Lb.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Lb.prototype,"expanded",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],Lb);
_.z(Lb,"ytd-sponsorships-perk-renderer",function(){if(uiI!==void 0)return uiI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return uiI=M},{mode:1});var J4w;var Y9=function(){var M=_.Q.apply(this,arguments)||this;M.expanded=!0;return M};
_.l(Y9,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Y9.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Y9.prototype,"expanded",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],Y9);
_.z(Y9,"ytd-sponsorships-perks-renderer",function(){if(J4w!==void 0)return J4w;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return J4w=M},{mode:1});var WY=function(){var M=_.Q.apply(this,arguments)||this;M.isCollapsed=!1;return M};
_.l(WY,_.Q);WY.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
WY.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
WY.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var M;this.expandCollapseButton=_.C((M=this.data)==null?void 0:M.expandButton,_.f1)}else{var q;this.expandCollapseButton=_.C((q=this.data)==null?void 0:q.collapseButton,_.f1)}};
WY.prototype.updateExpandCollapseButton=WY.prototype.updateExpandCollapseButton;WY.prototype.onDataChanged=WY.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],WY.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],WY.prototype,"isCollapsed",void 0);_.T([_.B(),_.r("design:type",Object)],WY.prototype,"expandCollapseButton",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WY.prototype,"onDataChanged",null);_.T([_.yO("data","isCollapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WY.prototype,"updateExpandCollapseButton",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],WY);
_.z(WY,"ytd-sponsorships-expandable-perks-renderer",function(){if(IFL!==void 0)return IFL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return IFL=M},{mode:1});var Zjv;var Az=function(){return _.Q.apply(this,arguments)||this};
_.l(Az,_.Q);Az.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Az.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Az.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Az.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],Az);
_.z(Az,"ytd-sponsorships-actionable-message-renderer",function(){if(Zjv!==void 0)return Zjv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Zjv=M},{mode:1});var bjw;var dK=function(){return _.Q.apply(this,arguments)||this};
_.l(dK,_.Q);_.N=dK.prototype;_.N.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.N.getExpansionIcon=function(M){return M?"COLLAPSE":"EXPAND"};
_.N.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.N.computeMessageContainerStyle=function(M){var q=M.expandableItems?" style-clickable":"";return M.messageContainerStyle?M.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+q:"style-unspecified"+q};
_.N.isSinglePerk=function(M){return!!M.messageContainerStyle&&(M.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||M.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.N.onExpandedChanged=function(){var M=this;if(this.expanded)for(var q=_.k(this.hostElement.querySelectorAll("yt-img-shadow")),G=q.next();!G.done;G=q.next())G.value.onShow();_.yb(this,function(){_.jP(M.hostElement,"yt-refit")})};
_.N.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
dK.prototype.onDataChanged=dK.prototype.onDataChanged;dK.prototype.onExpandedChanged=dK.prototype.onExpandedChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],dK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],dK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],dK.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],dK.prototype,"expanded",void 0);
_.T([_.KT("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dK.prototype,"onExpandedChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dK.prototype,"onDataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],dK);
_.z(dK,"ytd-sponsorships-expandable-message-renderer",function(){if(bjw!==void 0)return bjw;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return bjw=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var UDg;var vY=function(){return _.Q.apply(this,arguments)||this};
_.l(vY,_.Q);vY.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"}}}}};
vY.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.C(this.data.endButton,_.f1).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
vY.prototype.onDataChanged=vY.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],vY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],vY.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vY.prototype,"onDataChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],vY);
_.z(vY,"ytd-sponsorships-heading-renderer",function(){if(UDg!==void 0)return UDg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return UDg=M},{mode:1});var xDI;var hz=function(){return _.Q.apply(this,arguments)||this};
_.l(hz,_.Q);_.T([_.B(),_.r("design:type",Object)],hz.prototype,"data",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hz.prototype,"ytRendererBehavior",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],hz);
_.z(hz,"ytd-sponsorships-links-renderer",function(){if(xDI!==void 0)return xDI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return xDI=M},{mode:1});var zuP;var tz=function(){return _.Q.apply(this,arguments)||this};
_.l(tz,_.Q);_.N=tz.prototype;_.N.onDataChanged=function(){if(this.data&&this.data.expandableItems){var M;(M=_.f_(this.hostElement).querySelector("tp-yt-paper-button"))==null||M.setAttribute("role","button")}else{var q;(q=_.f_(this.hostElement).querySelector("tp-yt-paper-button"))==null||q.removeAttribute("role")}};
_.N.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.N.getExpansionIcon=function(M){return M?"COLLAPSE":"EXPAND"};
_.N.getTileClasses=function(M){return M?"tile expandable-tile":"tile"};
_.N.getButtonDisabled=function(M){return M?void 0:""};
tz.prototype.onDataChanged=tz.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tz.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tz.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],tz.prototype,"expanded",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tz.prototype,"onDataChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],tz);
_.z(tz,"ytd-sponsorships-list-tile-renderer",function(){if(zuP!==void 0)return zuP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return zuP=M},{mode:1});var mDv;var SeU;var O1=function(){return _.Q.apply(this,arguments)||this};
_.l(O1,_.Q);O1.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],O1.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],O1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],O1.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],O1);
_.z(O1,"ytd-sponsorships-promotion-renderer",function(){if(SeU!==void 0)return SeU;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return SeU=M},{mode:1});var T$s;var wK=function(){return _.Q.apply(this,arguments)||this};
_.l(wK,_.Q);wK.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],wK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],wK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],wK.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],wK);
_.z(wK,"ytd-sponsorships-purchase-option-renderer",function(){if(T$s!==void 0)return T$s;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return T$s=M},{mode:1});var r4g;var jys;var Vww=function(){return _.Q.apply(this,arguments)||this};
_.l(Vww,_.Q);_.T([_.B(),_.r("design:type",Object)],Vww.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],Vww);
_.z(Vww,"ytd-ypc-offer-promo-renderer",function(){if(jys!==void 0)return jys;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return jys=M},{mode:1});var Cb=function(){return _.Q.apply(this,arguments)||this};
_.l(Cb,_.Q);_.N=Cb.prototype;
_.N.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"}}}}};
_.N.expansionCTA=function(M,q){return M&&(q?M.collapseCallToAction:M.expansionCallToAction)};
_.N.getExpansionIcon=function(M){return M?"COLLAPSE":"EXPAND"};
_.N.expansionCallToActionTap=function(){var M=this;this.expanded=!this.expanded;_.yb(this,function(){_.jP(M.hostElement,"yt-refit")})};
_.N.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var M,q=(M=this.data)==null?void 0:M.onVisible;q&&this.ytComponentBehavior.resolveCommand(q)};
_.N.computeDisplayTitle=function(M){return!(!M||this.titledisplaystatus!=="show")};
_.N.computeDisplaySeparator=function(){return!1};
_.N.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
Cb.prototype.onDataChanged=Cb.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Cb.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Cb.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Cb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Cb.prototype,"data",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],Cb.prototype,"expanded",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],Cb.prototype,"purchaseButtonClicked",void 0);_.T([_.B({reflectToAttribute:!0,value:"show"}),_.r("design:type",String)],Cb.prototype,"titledisplaystatus",void 0);_.T([_.B({computed:"computeDisplayTitle(data.title)"}),_.r("design:type",Boolean)],Cb.prototype,"displayTitle",void 0);
_.T([_.B({computed:"computeDisplaySeparator(data)"}),_.r("design:type",Boolean)],Cb.prototype,"displaySeparator",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Cb.prototype,"onDataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],Cb);
_.z(Cb,"ytd-sponsorships-tier-renderer",function(){if(r4g!==void 0)return r4g;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return r4g=M},{mode:2});var az=function(){return _.Q.apply(this,arguments)||this};
_.l(az,_.Q);
az.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"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],az.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],az.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],az.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],az);
_.z(az,"ytd-sponsorships-management-renderer",function(){if(mDv!==void 0)return mDv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return mDv=M},{mode:1});var Run;var oz=function(){return _.Q.apply(this,arguments)||this};
_.l(oz,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],oz.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],oz.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],oz);
_.z(oz,"ytd-open-in-native-app-view-model",function(){if(Run!==void 0)return Run;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Run=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var fFM;var Fyv;var HjE=_.DQ(["top-"]),eug=_.DQ(["bottom-"]),$DU=_.DQ(["left-"]),sIw=_.DQ(["right-"]),MJM={},qMw=function(M,q,G){M.removeAttribute("top-"+G);M.removeAttribute("bottom-"+G);M.removeAttribute("left-"+G);M.removeAttribute("right-"+G);q&&(q.top&&_.kq([_.vc(HjE)],M,"top-"+G,q.top),q.bottom&&_.kq([_.vc(eug)],M,"bottom-"+G,q.bottom),q.left&&_.kq([_.vc($DU)],M,"left-"+G,q.left),q.right&&_.kq([_.vc(sIw)],M,"right-"+G,q.right))};
MJM.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(M){var q,G=_.f_((q=this.hostElement)!=null?q:this),K;q=this.cardItemBoxBehaviorMarginTargetId&&G?G.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(K=this.hostElement)!=null?K:this;qMw(q,M,"margin")},
cardItemContainerPaddingChanged_:function(M){var q,G=_.f_((q=this.hostElement)!=null?q:this),K;q=this.cardItemBoxBehaviorPaddingTargetId&&G?G.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(K=this.hostElement)!=null?K:this;qMw(q,M,"padding")}}];var ln={CARD_ITEM_COLOR_GENERAL_BACKGROUND_A:"var(--yt-spec-general-background-a)",CARD_ITEM_COLOR_GENERAL_BACKGROUND_B:"var(--yt-spec-general-background-b)",CARD_ITEM_COLOR_BRAND_BACKGROUND_SOLID:"var(--yt-spec-brand-background-solid)",CARD_ITEM_COLOR_ERROR_BACKGROUND:"var(--yt-spec-error-background)",CARD_ITEM_COLOR_TEXT_PRIMARY:"var(--yt-spec-text-primary)",CARD_ITEM_COLOR_TEXT_SECONDARY:"var(--yt-spec-text-secondary)",CARD_ITEM_COLOR_TEXT_DISABLED:"var(--yt-spec-text-disabled)",CARD_ITEM_COLOR_CALL_TO_ACTION:"var(--yt-spec-call-to-action)",
CARD_ITEM_COLOR_ICON_INACTIVE:"var(--yt-spec-icon-inactive)",CARD_ITEM_COLOR_ICON_DISABLED:"var(--yt-spec-icon-disabled)",CARD_ITEM_COLOR_BRAND_ICON_ACTIVE:"var(--yt-spec-brand-icon-active)",CARD_ITEM_COLOR_BRAND_ICON_INACTIVE:"var(--yt-spec-brand-icon-inactive)",CARD_ITEM_COLOR_10_PERCENT_LAYER:"var(--yt-spec-10-percent-layer)",CARD_ITEM_COLOR_TEXT_PRIMARY_INVERSE:"var(--yt-spec-text-primary-inverse)",CARD_ITEM_COLOR_ICON_ACTIVE_OTHER:"var(--yt-spec-icon-active-other)",CARD_ITEM_COLOR_THEMED_GREEN:"var(--yt-spec-themed-green)",
CARD_ITEM_COLOR_ERROR_INDICATOR:"var(--yt-spec-error-indicator)"};var Gln;var KpE;var PY=function(){return _.Q.apply(this,arguments)||this};
_.l(PY,_.Q);PY.prototype.textColorChanged_=function(){this.hostElement.style.color=ln[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
PY.prototype.textColorChanged_=PY.prototype.textColorChanged_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.T([_.P(MJM.YtCardItemBoxBehavior),_.r("design:type",Object)],PY.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],PY.prototype,"data",void 0);_.T([_.KT("data.textColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PY.prototype,"textColorChanged_",null);
_.T([_.aO({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],PY);
_.z(PY,"yt-card-item-text-renderer",function(){if(KpE===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Gln===void 0&&(Gln=document.createElement("template"));var K=Gln;G.call(q,K.content.cloneNode(!0),M.content.firstChild);KpE=M}M=KpE;return M},{mode:2});var n$w;var E$w;var cY=function(){return _.Q.apply(this,arguments)||this};
_.l(cY,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],cY.prototype,"data",void 0);_.T([_.aO({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],cY);
_.z(cY,"yt-card-item-badge-renderer",function(){if(E$w===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;n$w===void 0&&(n$w=document.createElement("template"));var K=n$w;G.call(q,K.content.cloneNode(!0),M.content.firstChild);E$w=M}M=E$w;return M},{mode:2});var N98;var kls;var gK=function(){return _.Q.apply(this,arguments)||this};
_.l(gK,_.Q);gK.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],gK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],gK.prototype,"data",void 0);_.T([_.aO({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],gK);
_.z(gK,"yt-card-item-text-collection-renderer",function(){if(kls===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;N98===void 0&&(N98=document.createElement("template"));var K=N98;G.call(q,K.content.cloneNode(!0),M.content.firstChild);kls=M}M=kls;return M},{mode:2});var pvM;var yds;var BY=function(){return _.Q.apply(this,arguments)||this};
_.l(BY,_.Q);BY.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]]"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],BY.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Number)],BY.prototype,"iconSize",void 0);_.T([_.aO({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],BY);
_.z(BY,"yt-card-item-text-with-button-renderer",function(){if(yds===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;pvM===void 0&&(pvM=document.createElement("template"));var K=pvM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);yds=M}M=yds;return M},{mode:2});var QH=function(){return _.Q.apply(this,arguments)||this};
_.l(QH,_.Q);QH.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],QH.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QH.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],QH);
_.z(QH,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Fyv!==void 0)return Fyv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Fyv=M},{mode:1});_.hC("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var Iz=function(){var M=_.Q.apply(this,arguments)||this;M.hidden=!1;return M};
_.l(Iz,_.Q);_.N=Iz.prototype;_.N.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"}}}}};
_.N.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.N.updateSummary=function(){var M=this.commerceCartCheckoutButtonEntity,q;if(((q=this.data)==null?0:q.cartButton)&&M.checkoutSummaryText){var G,K=dI((G=this.data)==null?void 0:G.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+K+".cardItemTextRenderer.text",v3(M.checkoutSummaryText));if(M.checkoutDetailText){var n;G=dI((n=this.data)==null?void 0:n.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+G+".cardItemTextRenderer.text",v3(M.checkoutDetailText))}if(M.checkoutAdditionalMetadataText){var E;
n=dI((E=this.data)==null?void 0:E.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+n+".cardItemTextRenderer.text",v3(M.checkoutAdditionalMetadataText))}}else M.estimatedTotalPrice&&(E=dI((K=this.data)==null?void 0:K.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+E+".cardItemTextRenderer.text",v3(M.estimatedTotalPrice)))};
_.N.updateIsHidden=function(){var M,q=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isHidden;q!==void 0&&(this.hidden=q)};
_.N.updateCheckoutButton=function(){var M,q=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isDisabled;q!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",q);var G;M=(G=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:G.innertubeCommand;M!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",M);var K;G=(K=this.commerceCartCheckoutButtonEntity)==null?void 0:K.checkoutButtonText;G!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:G})};
Iz.prototype.entityChanged=Iz.prototype.entityChanged;_.T([_.P(_.mr),_.r("design:type",Object)],Iz.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Iz.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Iz.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Iz.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Iz.prototype,"fullWidth",void 0);_.T([_.B(),_.r("design:type",Object)],Iz.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Iz.prototype,"compact",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Iz.prototype,"hidden",void 0);
_.T([_.B({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:yyH}),_.r("design:type",Object)],Iz.prototype,"commerceCartCheckoutButtonEntity",void 0);_.T([_.KT("commerceCartCheckoutButtonEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Iz.prototype,"entityChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],Iz);
_.z(Iz,"ytd-commerce-cart-checkout-button-renderer",function(){if(fFM!==void 0)return fFM;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return fFM=M},{mode:2});var LpI;_.YMP={};
_.YMP.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",_.qs(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.qs(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(M){!this.tappableItemBehaviorTapEnabled||M.keyCode!==13&&M.keyCode!==32||M.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var M=this.data.onTap;M.ypcGetCartEndpoint?(_.fx(this.hostElement,[M]),this.tappableItemBehaviorTapEnabled=!1):M.ypcOffersEndpoint?_.fx(this.hostElement,[M]):_.FH(this.hostElement,[M],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(M){this.tappableItemBehaviorTapEnabled=!!M},
tappableItemBehaviorOnTapEnabledChanged_:function(){var M=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(M.setAttribute("tabIndex",0),M.setAttribute("role","button")):(M.removeAttribute("tabIndex"),M.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(M){M.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var WpP;var AdR;var D1=function(){return _.Q.apply(this,arguments)||this};
_.l(D1,_.Q);D1.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.tC("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.tC("sharingToggleButtonAndDefaultButton")}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],D1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],D1.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],D1.prototype,"data",void 0);_.T([_.aO({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],D1);
_.z(D1,"yt-card-item-actions-renderer",function(){if(AdR===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;WpP===void 0&&(WpP=document.createElement("template"));var K=WpP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);AdR=M}M=AdR;return M},{mode:2});var dxM;var v$v;var hf8;var tJ5;var OPg;var wvv;var un=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return M};
_.l(un,_.Q);un.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
un.prototype.handleDarkModeToggledAction_=function(M){this.isDarkTheme_=M};
un.prototype.computeThemeImage_=function(M,q){if(!M||!M.imageLight)return!1;this.isCircular_=M.isCircular;M.imageWidth&&(this.hostElement.style.width=M.imageWidth+"px");M.imageHeight&&(this.hostElement.style.height=M.imageHeight+"px");M.borderWidth&&(this.image.style.borderWidth=M.borderWidth+"px",this.image.style.borderStyle="solid");M.borderColor&&(this.image.style.borderColor=_.C_(M.borderColor));return q&&M.imageDark?M.imageDark:M.imageLight};
un.prototype.computeThemeIcon_=function(M){var q,G;if(!(M==null?0:(q=M.themedIcon)==null?0:(G=q.icon)==null?0:G.iconType))return!1;this.icon.style.color=ln[M.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(M.imageWidth||18)+"px";this.icon.style.height=(M.imageHeight||18)+"px";return _.H4(M.themedIcon.icon.iconType)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],un.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],un.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(MJM.YtCardItemBoxBehavior),_.r("design:type",Object)],un.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],un.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],un.prototype,"data",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],un.prototype,"fit",void 0);_.T([_.B(),_.r("design:type",Boolean)],un.prototype,"isDarkTheme_",void 0);_.T([_.B({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.r("design:type",Object)],un.prototype,"themeImage_",void 0);_.T([_.B({computed:"computeThemeIcon_(data)"}),_.r("design:type",Object)],un.prototype,"themeIcon_",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Object)],un.prototype,"isCircular_",void 0);
_.T([_.ET("#image"),_.r("design:type",Object)],un.prototype,"image",void 0);_.T([_.ET("#icon"),_.r("design:type",Object)],un.prototype,"icon",void 0);_.T([_.aO({is:"yt-themed-image-renderer",disableElementRegistration:!0})],un);
_.z(un,"yt-themed-image-renderer",function(){if(wvv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;OPg===void 0&&(OPg=document.createElement("template"));var K=OPg;G.call(q,K.content.cloneNode(!0),M.content.firstChild);wvv=M}M=wvv;return M},{mode:2});var Jz=function(){return _.Q.apply(this,arguments)||this};
_.l(Jz,_.Q);Jz.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"}}}}};
Jz.prototype.computeImagePlacement_=function(M){return M||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Jz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Jz.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Jz.prototype,"data",void 0);_.T([_.B({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.r("design:type",String)],Jz.prototype,"imagePlacement",void 0);
_.T([_.aO({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],Jz);
_.z(Jz,"yt-card-item-text-with-image-renderer",function(){if(tJ5===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;hf8===void 0&&(hf8=document.createElement("template"));var K=hf8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);tJ5=M}M=tJ5;return M},{mode:2});var Z1=function(){return _.Q.apply(this,arguments)||this};
_.l(Z1,_.Q);Z1.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"}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Z1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Z1.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Z1.prototype,"data",void 0);_.T([_.aO({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],Z1);
_.z(Z1,"yt-card-item-error-renderer",function(){if(v$v===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;dxM===void 0&&(dxM=document.createElement("template"));var K=dxM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);v$v=M}M=v$v;return M},{mode:2});var CSI;var a8g;_.hC("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var bn=function(){return _.Q.apply(this,arguments)||this};
_.l(bn,_.Q);_.N=bn.prototype;
_.N.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"}}}}};
_.N.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.N.backgroundColorChanged_=function(){var M,q=(M=this.data)==null?void 0:M.backgroundColor;M=ln[q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.f_(this.hostElement).querySelector("#main-content").style.backgroundColor=M};
_.N.headerPromoBackgroundColorChanged_=function(){var M,q=(M=this.data)==null?void 0:M.headerPromoBackgroundColor;M=ln[q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.f_(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=M};
_.N.errorRendererVisibilityChanged_=function(){var M=this.isExpanded_,q;this.isErrorRendererVisible_=!((q=this.data)==null||!q.errorRenderer)&&!M};
_.N.onYtToggleButton_=function(M,q){this.isExpanded_=q.toggled};
bn.prototype.onYtToggleButton_=bn.prototype.onYtToggleButton_;bn.prototype.errorRendererVisibilityChanged_=bn.prototype.errorRendererVisibilityChanged_;bn.prototype.headerPromoBackgroundColorChanged_=bn.prototype.headerPromoBackgroundColorChanged_;bn.prototype.backgroundColorChanged_=bn.prototype.backgroundColorChanged_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],bn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(MJM.YtCardItemBoxBehavior),_.r("design:type",Object)],bn.prototype,"ytCardItemBoxBehavior",void 0);_.T([_.P(_.YMP.YtTappableItemBehavior),_.r("design:type",Object)],bn.prototype,"ytTappableItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bn.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],bn.prototype,"isExpanded_",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],bn.prototype,"isErrorRendererVisible_",void 0);_.T([_.KT("data.backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bn.prototype,"backgroundColorChanged_",null);_.T([_.KT("data.headerPromoBackgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bn.prototype,"headerPromoBackgroundColorChanged_",null);
_.T([_.KT("data.errorRenderer","isExpanded_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bn.prototype,"errorRendererVisibilityChanged_",null);_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[Event,Object]),_.r("design:returntype")],bn.prototype,"onYtToggleButton_",null);_.T([_.aO({is:"yt-card-item-renderer",disableElementRegistration:!0})],bn);
_.z(bn,"yt-card-item-renderer",function(){if(a8g===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;CSI===void 0&&(CSI=document.createElement("template"));var K=CSI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);a8g=M}M=a8g;return M},{mode:2});_.hC("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var U1=function(){var M=_.Q.apply(this,arguments)||this;M.hidden=!1;return M};
_.l(U1,_.Q);_.N=U1.prototype;_.N.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.N.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.N.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var M,q=(M=this.commerceCartHeaderEntity)==null?void 0:M.isHidden;q!==void 0&&(this.hidden=q)}};
_.N.updateTitle=function(){var M=this.commerceCartHeaderEntity.isDisabled,q,G,K=(G=_.C((q=this.data)==null?void 0:q.item,nl8))==null?void 0:G.headingRenderer;K&&(q=dI(K,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+q+".0.cardItemTextRenderer.textColor",M?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.N.updateSummaryText=function(){var M=this.commerceCartHeaderEntity;if(this.compact){var q,G,K=(G=_.C((q=this.data)==null?void 0:q.item,nl8))==null?void 0:G.headingRenderer;K&&(q=dI(K,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+q+".1.cardItemTextRenderer.text",M.shortHeaderSummaryText?v3(M.shortHeaderSummaryText):M.headerSummaryText?v3(M.headerSummaryText):""))}else{var n;if(q=(n=_.C((K=this.data)==null?void 0:K.item,nl8))==null?void 0:n.additionalInfoRenderer)q=dI(q,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+q+".text",M.headerSummaryText?v3(M.headerSummaryText):"")}};
_.N.updateCheckoutButton=function(){var M=this.commerceCartHeaderEntity,q,G,K=(G=_.C((q=this.data)==null?void 0:q.item,nl8))==null?void 0:G.additionalInfoRenderer;q=dI(K,"buttonRenderer");var n;G=(n=this.commerceCartHeaderEntity)==null?void 0:n.isButtonDisabled;var E;n=(E=this.commerceCartHeaderEntity)==null?void 0:E.isButtonHidden;G!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+q+".buttonRenderer.isDisabled",G);n!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
n);var p;M=(p=M.checkoutButtonCommand)==null?void 0:p.innertubeCommand;M!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+q+".buttonRenderer.command",M)};
U1.prototype.entityChanged=U1.prototype.entityChanged;_.T([_.P(_.mr),_.r("design:type",Object)],U1.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],U1.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],U1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],U1.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],U1.prototype,"compact",void 0);_.T([_.B({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(M,q){return _.sX(M.entities,"commerceCartHeaderEntity",q)}}),
_.r("design:type",Object)],U1.prototype,"commerceCartHeaderEntity",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],U1.prototype,"hidden",void 0);_.T([_.KT("commerceCartHeaderEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U1.prototype,"entityChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],U1);
_.z(U1,"ytd-commerce-cart-header-renderer",function(){if(LpI!==void 0)return LpI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return LpI=M},{mode:1});var o$R;var l8n=_.tc(function(M,q){var G;return(G=M.onChangeCallback)==null?void 0:G.call(M,q)},1E3),Xvw=_.U(function(M){var q=M.data;
var G=M.iconMinus;M=M.iconPlus;var K=function(){return!!q().disabled},n=_.k(_.lQ(0,void 0,"mKh0af")),E=n.next().value,p=n.next().value;
n=_.sq(function(){if(E()===1){var h,t;(t=(h=q()).onRemoveCommand)==null||t.call(h)}h=E()>q().maxValue?q().maxValue:E()-1;p(h);l8n(q(),h);return!1});
var y=_.sq(function(){if(E()===q().maxValue)return!1;var h=E()+1;p(h);l8n(q(),h);return!1});
_.mT(function(){p(q().value)});
var Y={},A={},v={};return _.W("quantity-incrementer-shape",null,_.W("div",{class:"ytSpecQuantityIncrementerShapeHost"},_.W("button",{class:"ytSpecQuantityIncrementerShapeButton",disabled:function(){return E()===(q().onRemoveCommand?0:1)||K()},
"aria-label":function(){return E()!==1?q().minusLabel:q().minimumReachedLabel},
"on:click":n},_.W(_.p3,{model:{circular:!0}}),_.W("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.W("div",{class:_.Hb("ytSpecQuantityIncrementerShapeIcon",(Y.ytSpecQuantityIncrementerShapeIconDisabled=function(){return K()||E()===(q().onRemoveCommand?0:1)},Y))},G()))),_.W("div",{class:_.Hb("ytSpecQuantityIncrementerShapeText",(A.ytSpecQuantityIncrementerShapeTextInvalid=function(){return E()>q().maxValue},A.ytSpecQuantityIncrementerShapeTextDisabled=K,A))},E),_.W("button",{class:"ytSpecQuantityIncrementerShapeButton",
disabled:function(){return E()>=q().maxValue||K()},
"aria-label":function(){return E()!==q().maxValue?q().plusLabel:q().maximumReachedLabel},
"on:click":y},_.W(_.p3,{model:{circular:!0}}),_.W("div",{class:"ytSpecQuantityIncrementerShapeIconWrapper"},_.W("div",{class:_.Hb("ytSpecQuantityIncrementerShapeIcon",(v.ytSpecQuantityIncrementerShapeIconDisabled=function(){return E()>=q().maxValue||K()},v))},M())))))},"Gf");_.S5(_.U(function(M){function q(){G().onRemoveCommand&&_.Pb(G().onRemoveCommand)}
var G=M.data;var K=_.No(X6u,function(){return G().quantityIncrementerEntityKey});
return _.W("yt-quantity-incrementer-view-model",null,_.W(Xvw,{data:function(){var n=G(),E;var p=K()?!((E=K())==null||!E.disabled):!1;var y;E=K()?(y=K())==null?void 0:y.quantity:G().quantity;return JmH(n,p,q,E)},
iconMinus:function(){return _.W(_.np,{icon:"BAR_HORIZONTAL",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerMinusIcon"})},
iconPlus:function(){return _.W(_.np,{icon:"ADD",className:"ytSpecQuantityIncrementerViewModelQuantityIncrementerPlusIcon"})}}))},"Hf"),"yt-quantity-incrementer-view-model",{props:{data:_.Hz}});var x9=function(){var M=_.Q.apply(this,arguments)||this;M.compact=!1;M.hasQuantityIncrementer=!1;return M};
_.l(x9,_.Q);x9.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"}}}};
x9.prototype.computeHasQuantityIncrementer=function(){var M;return!!_.C((M=this.data)==null?void 0:M.picker,peJ)};
x9.prototype.onLabelClick=function(){var M;(M=this.dropdownEl)==null||M.open()};
_.T([_.ET("ytd-dropdown-renderer"),_.r("design:type",Object)],x9.prototype,"dropdownEl",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],x9.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],x9.prototype,"quantityColor",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],x9.prototype,"compact",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.r("design:type",Object)],x9.prototype,"hasQuantityIncrementer",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],x9);
_.z(x9,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(o$R!==void 0)return o$R;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return o$R=M},{mode:1});var PSg;var iP5;var zV=function(){return _.Q.apply(this,arguments)||this};
_.l(zV,_.Q);zV.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
zV.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
zV.prototype.updateTitle=function(){var M=this.disabledCartItemEntity;M.disableActionName&&this.set("data.title",v3(M.disableActionName))};
zV.prototype.updateButton=function(){var M,q=(M=this.disabledCartItemEntity.undoCommand)==null?void 0:M.innertubeCommand;q!==void 0&&(this.set("data.actionButton.buttonRenderer.command",q),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
zV.prototype.entityChanged=zV.prototype.entityChanged;_.T([_.P(_.mr),_.r("design:type",Object)],zV.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],zV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],zV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(M,q){return _.sX(M.entities,"disabledCartItemEntity",q)}}),
_.r("design:type",Object)],zV.prototype,"disabledCartItemEntity",void 0);_.T([_.B(),_.r("design:type",Object)],zV.prototype,"data",void 0);_.T([_.KT("disabledCartItemEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zV.prototype,"entityChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],zV);
_.z(zV,"ytd-disabled-cart-item-renderer",function(){if(iP5!==void 0)return iP5;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return iP5=M},{mode:1});_.hC("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var mR=function(){var M=_.Q.apply(this,arguments)||this;M.compact=!1;M.hidden=!1;M.errorHidden=!1;M.noOnTap=!1;return M};
_.l(mR,_.Q);_.N=mR.prototype;
_.N.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"}}}};
_.N.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.N.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var M=this.firstButtonElement;M.alignByText=!0;M.iconAlignByText=!0}};
_.N.computeNoOnTap=function(M){return!M};
_.N.updateQuantityColor=function(){if(this.pickerElement){var M,q=(M=this.commerceCartItemEntity)==null?void 0:M.quantityColor;this.pickerElement.quantityColor=q}};
_.N.updateTotalPriceColor=function(){var M,q=(M=this.commerceCartItemEntity)==null?void 0:M.totalPriceColor;if(q){var G;M=_.C((G=this.data)==null?void 0:G.quantityPicker,NpB);if(G=_.C(M==null?void 0:M.price,Eld))G.textColor=q}};
_.N.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var M,q=(M=this.commerceCartItemEntity)==null?void 0:M.isHidden;q!==void 0&&(this.hidden=q)}};
_.N.updateHideErrorMessage=function(){var M,q=(M=this.commerceCartItemEntity)==null?void 0:M.hideErrorMessage;q!==void 0&&(this.errorHidden=q)};
_.N.updateQuantity=function(){var M=this,q,G=(q=this.commerceCartItemEntity)==null?void 0:q.quantity,K;q=(K=this.commerceCartItemEntity)==null?void 0:K.totalPrice;if(G){this.updateTotalPriceColor();this.updateQuantityColor();var n;K=_.C((n=this.data)==null?void 0:n.quantityPicker,NpB);if(n=_.C(K==null?void 0:K.price,Eld))n.text=q?{simpleText:q.content}:void 0;if(q=_.C(K==null?void 0:K.picker,peJ))q.quantity=G;var E;if(n=(E=_.C(K==null?void 0:K.picker,Krl))==null?void 0:E.entries){E=!1;q=void 0;n=
_.k(n);for(K=n.next();!K.done;K=n.next())K=K.value,K.dropdownItemRenderer&&(q||(q=K.dropdownItemRenderer),K.dropdownItemRenderer.isSelected=!1,G===K.dropdownItemRenderer.int32Value&&(E=!0,K.dropdownItemRenderer.isSelected=!0));!E&&q&&(q.isSelected=!0)}_.yb(this,function(){var p;M.set("data.quantityPicker",_.xP.unsafeClone((p=M.data)==null?void 0:p.quantityPicker))})}};
mR.prototype.onYtRendererstamperFinished=mR.prototype.onYtRendererstamperFinished;mR.prototype.entityChanged=mR.prototype.entityChanged;_.T([_.B(),_.r("design:type",Object)],mR.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mR.prototype,"compact",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],mR.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mR.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],mR.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(M,q){return _.sX(M.entities,"commerceCartItemEntity",q)}}),
_.r("design:type",Object)],mR.prototype,"commerceCartItemEntity",void 0);_.T([_.B(),_.r("design:type",Object)],mR.prototype,"quantityPicker",void 0);_.T([_.B(),_.r("design:type",Object)],mR.prototype,"compactQuantityPicker",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mR.prototype,"hidden",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mR.prototype,"errorHidden",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.r("design:type",Object)],mR.prototype,"noOnTap",void 0);_.T([_.ET("ytd-commerce-cart-item-quantity-picker-renderer"),_.r("design:type",Object)],mR.prototype,"pickerElement",void 0);_.T([_.ET("yt-button-renderer"),_.r("design:type",Element)],mR.prototype,"firstButtonElement",void 0);
_.T([_.KT("commerceCartItemEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mR.prototype,"entityChanged",null);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mR.prototype,"onYtRendererstamperFinished",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],mR);
_.z(mR,"ytd-commerce-cart-item-renderer",function(){if(PSg!==void 0)return PSg;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return PSg=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var cdP;var g$5;var SV=function(){return _.Q.apply(this,arguments)||this};
_.l(SV,_.Q);SV.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}}}}}};
SV.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
SV.prototype.updateCheckoutLineItems=function(){var M,q=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.checkoutLineItems;q&&(M=q.map(function(G){a:{var K=G.price,n=G.description;switch(G.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":G={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:v3(n),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:v3(K),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_SECONDARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}};break a;default:G={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:v3(n),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:v3(K),style:"CARD_ITEM_TEXT_STYLE_BODY_2A",textColor:"CARD_ITEM_COLOR_TEXT_PRIMARY",containerMargin:{top:"CARD_ITEM_UX_SPACE_0",right:"CARD_ITEM_UX_SPACE_0",bottom:"CARD_ITEM_UX_SPACE_0",left:"CARD_ITEM_UX_SPACE_0"}}}}}}}return G}),this.set("data.summaryLineItems",M))};
SV.prototype.updateIsHidden=function(){var M,q=(M=this.commerceCartCheckoutButtonEntity)==null?void 0:M.isHidden;q!==void 0&&(this.hostElement.hidden=q)};
SV.prototype.entityChanged=SV.prototype.entityChanged;_.T([_.P(_.mr),_.r("design:type",Object)],SV.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],SV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],SV.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],SV.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],SV.prototype,"data",void 0);_.T([_.B({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:yyH}),_.r("design:type",Object)],SV.prototype,"commerceCartCheckoutButtonEntity",void 0);_.T([_.KT("commerceCartCheckoutButtonEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],SV.prototype,"entityChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],SV);
_.z(SV,"ytd-commerce-cart-summary-renderer",function(){if(g$5!==void 0)return g$5;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return g$5=M},{mode:1});var B9s={};B9s.InjectBehavior=[sK4.InjectBehavior];var QI5;var I8I;var TV=function(){return _.Q.apply(this,arguments)||this};
_.l(TV,_.Q);
TV.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:_.tC("menuRenderer")}}};
TV.prototype.onMenuTap=function(M){M.stopPropagation()};
_.Yd.Object.defineProperties(TV.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 M,q;return!(((M=this.data)==null||!M.sectionHeading)&&((q=this.data)==null?void 0:q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var M,q;return!(((M=this.data)==null||!M.image)&&((q=this.data)==null?void 0:q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var M,q;return!(((M=this.data)==null||!M.menu)&&((q=this.data)==null?void 0:q.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],TV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.YMP.YtTappableItemBehavior),_.r("design:type",Object)],TV.prototype,"ytTappableItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],TV.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data.accessibilityData"),_.r("design:type",String),_.r("design:paramtypes",[])],TV.prototype,"ariaLabel",null);_.T([_.c("data.sectionHeading","data.layout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],TV.prototype,"sectionHeadingVisible",null);_.T([_.c("data.image","data.layout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],TV.prototype,"imageVisible",null);
_.T([_.c("data.menu","data.layout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],TV.prototype,"menuVisible",null);_.T([_.aO({is:"yt-activity-item-renderer",disableElementRegistration:!0})],TV);
_.z(TV,"yt-activity-item-renderer",function(){if(I8I===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;QI5===void 0&&(QI5=document.createElement("template"));var K=QI5;G.call(q,K.content.cloneNode(!0),M.content.firstChild);I8I=M}M=I8I;return M},{mode:2});var Dx5;var u2I;var Jds;var ZPI;var rK=function(){return _.Q.apply(this,arguments)||this};
_.l(rK,_.Q);
rK.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"}}}}};
rK.prototype.backgroundColorChanged_=function(){var M,q=(M=this.data)==null?void 0:M.backgroundColor;this.hostElement.style.backgroundColor=ln[q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
rK.prototype.backgroundColorChanged_=rK.prototype.backgroundColorChanged_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],rK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],rK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],rK.prototype,"data",void 0);
_.T([_.KT("data.backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rK.prototype,"backgroundColorChanged_",null);_.T([_.aO({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],rK);
_.z(rK,"yt-offer-item-upsell-renderer",function(){if(ZPI===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Jds===void 0&&(Jds=document.createElement("template"));var K=Jds;G.call(q,K.content.cloneNode(!0),M.content.firstChild);ZPI=M}M=ZPI;return M},{mode:2});_.hC("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var jV=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};M.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return M};
_.l(jV,_.Q);_.N=jV.prototype;
_.N.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:_.tC("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.N.computeContainerStyle_=function(M){return M};
_.N.computeContainerIsHidden_=function(M){return M&&!!M.isHidden};
_.N.computeShowSpinner_=function(M,q){return M&&q==="in-progress"};
_.N.computeShowMoreContentsButton_=function(M,q,G,K,n){return!(!(K&&K.length||n&&n.length&&G)||!M||q)};
_.N.onToggleButton_=function(M){var q=this;M.stopPropagation();this.isExpanded_=M.detail&&M.detail.toggled;var G,K;this.isExpanded_&&!this.data.continuationSection.length&&((G=this.data)==null?0:(K=G.continuation)==null?0:K.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.jP(this.hostElement,"yt-load-next-continuation",function(n){return q.getContinuationUrl_(q.data.continuation.onClickContinuationData,n)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.fx(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.N.onShowMoreContentsButtonClicked_=function(M){var q=this;M.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.jP(this.hostElement,"yt-load-next-continuation",function(G){return q.getContinuationUrl_(q.data.continuations[0].nextContinuationData,G)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.fx(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.N.getContinuationUrl_=function(M,q){var G=M.continuation;M=M.clickTrackingParams;var K=_.Cx();M&&K&&_.Z_(K,_.yx(M));return _.Nz(q,{continuation:G})};
_.N.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var M=_.f_(this.hostElement).querySelector("#continuation-section");M&&(M=M.querySelectorAll("ytmusic-item-section-renderer"))&&M.forEach(function(q){return q.classList.add("memberships-and-purchases")})};
_.N.dataChanged_=function(){var M;this.isExpanded_=!((M=this.data)==null||!M.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.N.updateCardOnClickCommand_=function(M){M=_.C(M,HR9);var q,G;this.data&&((q=this.data)==null?0:q.targetId)&&M&&M.targetId===((G=this.data)==null?void 0:G.targetId)&&M.onClickCommand&&(this.data.onClickCommand=M.onClickCommand,this.isOnClickCommand_=!0)};
_.N.backgroundColorChanged_=function(){var M,q=(M=this.data)==null?void 0:M.backgroundColor;this.hostElement.style.backgroundColor=ln[q||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
jV.prototype.backgroundColorChanged_=jV.prototype.backgroundColorChanged_;jV.prototype.dataChanged_=jV.prototype.dataChanged_;jV.prototype.nextContinuationDataUpdated_=jV.prototype.nextContinuationDataUpdated_;jV.prototype.onToggleButton_=jV.prototype.onToggleButton_;_.T([_.P(_.sG),_.r("design:type",Object)],jV.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],jV.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],jV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.M4.YtNextContinuationBehavior),_.r("design:type",Object)],jV.prototype,"ytNextContinuationBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jV.prototype,"ytRendererBehavior",void 0);_.T([_.P(B9s.InjectBehavior),_.r("design:type",Object)],jV.prototype,"injectBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jV.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],jV.prototype,"compact",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],jV.prototype,"isExpanded_",void 0);_.T([_.B({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.r("design:type",String)],jV.prototype,"containerStyle_",void 0);_.T([_.B({value:"not-started"}),_.r("design:type",String)],jV.prototype,"continuationStatus_",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.r("design:type",Boolean)],jV.prototype,"showSpinner_",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],jV.prototype,"isOnClickCommand_",void 0);_.T([_.B({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.r("design:type",Boolean)],jV.prototype,"showMoreContentsButton_",void 0);
_.T([_.B({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(M,q){return!q||M.entities?null:_.sX(M.entities,"cardItemContainerEntity",q)}}),
_.r("design:type",Object)],jV.prototype,"cardItemContainerEntity_",void 0);_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jV.prototype,"onToggleButton_",null);_.T([_.GQ("yt-next-continuation-data-updated"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jV.prototype,"nextContinuationDataUpdated_",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jV.prototype,"dataChanged_",null);_.T([_.KT("data.backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jV.prototype,"backgroundColorChanged_",null);_.T([_.aO({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],jV);
_.z(jV,"yt-card-item-container-renderer",function(){if(u2I===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Dx5===void 0&&(Dx5=document.createElement("template"));var K=Dx5;G.call(q,K.content.cloneNode(!0),M.content.firstChild);u2I=M}M=u2I;return M},{mode:2});var VH=function(){return _.Q.apply(this,arguments)||this};
_.l(VH,_.Q);VH.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"}}}};
VH.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
VH.prototype.computeLoadingHidden=function(){var M;return!((M=this.commerceCartPageStateEntity)==null?0:M.cartActionInProgress)};
VH.prototype.updateNotification=function(){var M,q=(M=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:M.summaryText;q&&this.set("data.cartNotification",v3(q))};
VH.prototype.notificationEntityChanged=VH.prototype.notificationEntityChanged;_.T([_.P(_.mr),_.r("design:type",Object)],VH.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],VH.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],VH.prototype,"data",void 0);_.T([_.B({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(M,q){return _.sX(M.entities,"commerceCartExpandableNotificationEntity",q)}}),
_.r("design:type",Object)],VH.prototype,"commerceCartExpandableNotificationEntity",void 0);_.T([_.B({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(M,q){return _.sX(M.entities,"commerceCartPageStateEntity",q)}}),
_.r("design:type",Object)],VH.prototype,"commerceCartPageStateEntity",void 0);_.T([_.ET("#spinner"),_.r("design:type",HTMLElement)],VH.prototype,"spinner",void 0);_.T([_.KT("commerceCartExpandableNotificationEntity","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VH.prototype,"notificationEntityChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],VH);
_.z(VH,"ytd-commerce-cart-renderer",function(){if(cdP!==void 0)return cdP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return cdP=M},{mode:1});var bP5;var Rz=function(){var M=_.Q.apply(this,arguments)||this;M.bigImage=!1;return M};
_.l(Rz,_.Q);_.Yd.Object.defineProperties(Rz.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.placeholderImageUrl}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Rz.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Rz.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Rz.prototype,"bigImage",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rz.prototype,"placeholderImageUrl",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],Rz);
_.z(Rz,"ytd-empty-product-shelf-renderer",function(){if(bP5!==void 0)return bP5;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return bP5=M},{mode:1});var UxI;var fb=function(){var M=_.Q.apply(this,arguments)||this;M.itemStyle="link-item";M.watchMetadataRefresh=!1;M.skinnyMode=!1;M.metaPanel=!1;M.inStructuredDescription=!1;M.detailedDescriptionOverride=!1;M.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};M.updateOnResizeDebouncer=null;return M};
_.l(fb,_.Q);_.N=fb.prototype;_.N.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.N.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"}}}}};
_.N.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.N.attachVEs=function(M){M.trackingParams&&_.nl().graftServerVe(M.trackingParams)};
_.N.handleUpdateMerchShelfAction=function(M){var q=this,G=_.C(M.updateMerchandiseShelfAction.merchandiseShelf,_.aIv);G&&(G.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){q.attachVEs(G);q.data=G},Number(G.renderDelayMs))):(this.attachVEs(G),this.data=G))};
_.N.updateOnResize=function(){if(this.JSC$17000_scrollContainer!==void 0&&this.JSC$17000_scrollContainer.clientWidth!==0&&this.items!==void 0){var M=this.JSC$17000_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-M));this.ytdHorizontalListBehavior.reposition_();var q;switch((q=this.data)==null?void 0:q.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var G,
K;((G=this.data)==null?void 0:(K=G.items)==null?void 0:K.length)===1?this.itemStyle="cta-item":this.itemStyle=M>=740?"large-item":"small-item"}}};
_.N.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.yd(this.updateOnResizeDebouncer,_.eD.after(100),this.updateOnResize)};
fb.prototype.debouncedUpdateOnResize=fb.prototype.debouncedUpdateOnResize;fb.prototype.dataChanged=fb.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],fb.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],fb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.pi.YtdHorizontalListBehavior),_.r("design:type",Object)],fb.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],fb.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],fb.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fb.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fb.prototype,"itemStyle",void 0);_.T([_.B({value:6}),_.r("design:type",Number)],fb.prototype,"initialCount",void 0);
_.T([_.B({value:"data.items"}),_.r("design:type",String)],fb.prototype,"itemsPath",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fb.prototype,"watchMetadataRefresh",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fb.prototype,"skinnyMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fb.prototype,"metaPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fb.prototype,"inStructuredDescription",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fb.prototype,"detailedDescriptionOverride",void 0);_.T([_.ET("#items"),_.r("design:type",HTMLDivElement)],fb.prototype,"items",void 0);_.T([_.ET("#scroll-container"),_.r("design:type",HTMLDivElement)],fb.prototype,"JSC$17000_scrollContainer",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fb.prototype,"dataChanged",null);
_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fb.prototype,"debouncedUpdateOnResize",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],fb);
_.z(fb,"ytd-merch-shelf-renderer",function(){if(UxI!==void 0)return UxI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return UxI=M},{mode:2});var xxI;var FR=function(){var M=_.Q.apply(this,arguments)||this;M.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 M};
_.l(FR,_.Q);_.N=FR.prototype;
_.N.addBackstagePostAction=function(M){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(M=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",M))&&(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:M}):this.set("data.contents",[{backstagePostThreadRenderer:M}]))};
_.N.addBackstageCommentAction=function(M){var q=this.get("addBackstageCommentAction.parentId",M);M=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",M);if(q&&M){q=this.postIdToIndices(q);for(var G=0;G<q.length;G++){var K=q[G];if(K<0)break;K="data.contents."+K+".backstagePostThreadRenderer.comments";this.get(K)&&(this.get(K+".backstageCommentsRenderer.contents")&&this.push(K+".backstageCommentsRenderer.contents",{commentThreadRenderer:M}),this.get(K+".backstageCommentsRenderer.teaserContents")?
this.push(K+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:M}):this.set(K+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:M}]))}}};
_.N.addBackstageReplyAction=function(M){var q=this.get("addBackstageReplyAction.parentId",M);M=this.get("addBackstageReplyAction.renderer.commentRenderer",M);q&&M&&this.setCreatorReply(q,M)};
_.N.banAuthorAction=function(M){var q=this.get("banAuthorAction.commentId",M);q&&(M=this.get("banAuthorAction.parentCommentId",M)||this.getParentPostId(q),this.removeFromStream(q,M))};
_.N.hideReportedCommentAction=function(M){var q=this.get("hideReportedCommentAction.commentId",M);q&&((M=this.get("hideReportedCommentAction.parentCommentId",M))||(M=this.getParentPostId(q)),this.removeFromStream(q,M))};
_.N.replaceBackstageCommentAction=function(M){var q=this.get("replaceBackstageCommentAction.commentId",M),G=this.get("replaceBackstageCommentAction.parentId",M);M=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",M);if(q&&G&&M){G=this.postIdToIndices(G);for(var K=0;K<G.length;K++){var n=G[K];if(n<0)break;var E=this.commentIdToIndex(q,n,!1);if(E>=0){var p=this.get("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+E+".commentThreadRenderer.replies.commentRepliesRenderer");
p&&(M.replies={commentRepliesRenderer:p});this.splice("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",E,1,{commentThreadRenderer:M})}E=this.commentIdToIndex(q,n,!0);if(E>=0){if(p=this.get("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(E+".commentThreadRenderer.replies.commentRepliesRenderer")))M.replies={commentRepliesRenderer:p};this.splice("data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
E,1,{commentThreadRenderer:M})}}}};
_.N.replaceBackstagePostAction=function(M){var q=this.get("replaceBackstagePostAction.itemId",M);if(q){q=this.postIdToIndices(q);for(var G=0;G<q.length;G++){var K=q[G];if(K<0)break;var n=this.getPostRendererType(K),E=this.get("replaceBackstagePostAction.renderer."+n,M);if(!E&&n!=="sharedPostRenderer")break;var p=!1;E||(p=!0,E=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",M));if(!E)break;var y={};p?(_.hj(y,xqd,E),this.set("data.contents."+K+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
y)):(_.hj(y,new _.e0(n),E),this.set("data.contents."+K+".backstagePostThreadRenderer.post",y))}}};
_.N.replaceBackstageReplyAction=function(M){var q=this.get("replaceBackstageReplyAction.replyId",M),G=this.get("replaceBackstageReplyAction.parentId",M);M=this.get("replaceBackstageReplyAction.renderer.commentRenderer",M);q&&M&&G&&this.setCreatorReply(G,M)};
_.N.removeCommentAction=function(M){var q=this.get("removeCommentAction.commentId",M);if(q){var G=this.get("removeCommentAction.parentCommentId",M);G&&this.get("removeCommentAction.isCreatorReply",M)?this.setCreatorReply(G,void 0):(G||(G=this.getParentPostId(q)),this.removeFromStream(q,G))}};
_.N.setCreatorReply=function(M,q){var G=this.getParentPostId(M);if(G){G=this.postIdToIndices(G);for(var K=0;K<G.length;K++){var n=G[K];if(n<0)break;var E=this.commentIdToIndex(M,n,!1);if(E>=0){var p="data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+E;E=p+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";p+=".commentThreadRenderer.replies";q==void 0?(this.set(p,{}),this.set(E,!1)):(this.set(p,{commentRepliesRenderer:{teaserContents:[{commentRenderer:q}]}}),
this.set(p+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(E,!0))}E=this.commentIdToIndex(M,n,!0);E>=0&&(E="data.contents."+n+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+E,n=E+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",E+=".commentThreadRenderer.replies",q==void 0?(this.set(E,{}),this.set(n,!1)):(this.set(E,{commentRepliesRenderer:{teaserContents:[{commentRenderer:q}]}}),this.set(n,!0)))}}};
_.N.removeFromStream=function(M,q){if(q){q=this.postIdToIndices(q);for(var G=0;G<q.length;G++){var K=q[G];if(K<0)break;var n=this.commentIdToIndex(M,K,!1);n>=0&&this.splice("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",n,1);n=this.commentIdToIndex(M,K,!0);n>=0&&this.splice("data.contents."+K+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",n,1);K="data.contents."+K+".backstagePostThreadRenderer.post.backstagePostRenderer";
n=K+".backstageAttachment.pollRenderer.votedCommentId";this.get(n)===M&&(this.set(n,null),this.set(K+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(q=this.postIdToIndices(M).reverse(),G=0;G<q.length;G++){K=q[G];if(K<0)break;n=this.getPostRendererType(K);var E=this.get("backstagePostThreadRenderer.post."+n,this.data.contents[K]);E.postId===M?this.splice("data.contents",K,1):n==="sharedPostRenderer"&&this.set("data.contents."+K+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);E.scheduledPublishTimeSec&&_.VW(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.N.postIdToIndices=function(M){for(var q=[],G=0;G<this.data.contents.length;G++){var K=this.getPostRendererType(G);this.get("backstagePostThreadRenderer.post."+K+".postId",this.data.contents[G])===M&&q.push(G);if(K==="sharedPostRenderer"){var n=this.get("backstagePostThreadRenderer.post."+K+".originalPost.backstagePostRenderer.postId",this.data.contents[G]);K=this.get("backstagePostThreadRenderer.post."+K+".originalPost.postRenderer.postId",this.data.contents[G]);n!==M&&K!==M||q.push(G)}}return q};
_.N.commentIdToIndex=function(M,q,G){if(q<0)return-1;var K,n,E,p,y=_.C((K=this.data)==null?void 0:(n=K.contents)==null?void 0:(E=n[q])==null?void 0:(p=E.backstagePostThreadRenderer)==null?void 0:p.comments,b$I);return(q=G?y==null?void 0:y.teaserContents:y==null?void 0:y.contents)&&q.length?q.findIndex(function(Y){return _.C(Y,OkJ).comment.commentRenderer.commentId===M}):-1};
_.N.getParentPostId=function(M){M=M.split(".");if(M[1])return M[0]};
_.N.getPostRendererType=function(M){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[M])?"sharedPostRenderer":"backstagePostRenderer"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],FR.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],FR.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],FR.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:_.w("enable_community_page_on_desktop")}),_.r("design:type",Boolean)],FR.prototype,"useSmallerPostContainer",void 0);
_.T([_.b({disableElementRegistration:!0,is:"ytd-backstage-items"})],FR);
_.z(FR,"ytd-backstage-items",function(){if(xxI!==void 0)return xxI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return xxI=
M},{mode:1});var zfE;var mxI={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},HY=function(){var M=_.Q.apply(this,arguments)||this;M.disablePrescanVisibility=!0;M.canScheduleJobs=!0;M.engagementPanel=!1;M.hidePanelButton=!1;M.isWatchGrid=
!1;M.hasShownSubscribersOnlyDisclaimer=!1;M.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_"};M.TEST_ONLY=void 0;return M};
_.l(HY,_.Q);_.N=HY.prototype;_.N.created=function(){this.initCommentsCsi_();_.w("web_delhi_comment_threads")||(this.actionMap["yt-create-comment-reply-action"]="createCommentReplyAction_");_.w("web_comment_threading_scroll_on_collapse")&&(this.actionMap["yt-scroll-to-comment-element"]="handleScrollToCommentElement_")};
_.N.contentsChanged_=function(){var M;(M=this.data)!=null&&M.contents&&this.tickForCommentsTimer_("cml")};
_.N.headerChanged_=function(){var M;(M=this.data)!=null&&M.header&&this.tickForCommentsTimer_("cmhl")};
_.N.initCommentsCsi_=function(){_.aJ("wn_comments");var M=_.Cx();M&&_.t2({clientScreenNonce:M},"wn_comments");this.tickForCommentsTimer_("cmi")};
_.N.createCommentAction_=function(M){M=_.xP.unsafeClone(M);var q,G;if(M=(q=_.C(M,yQ8))==null?void 0:(G=q.contents)==null?void 0:G.commentThreadRenderer){var K,n,E,p,y,Y;!this.isBackstage&&((K=this.data)==null?0:(n=K.header)==null?0:(E=n.commentsHeaderRenderer)==null?0:(p=E.createRenderer)==null?0:(y=p.commentSimpleboxRenderer)==null?0:(Y=y.zeroStep)==null?0:Y.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",{});var A,
v,h;this.isBackstage&&_.C((A=this.data)==null?void 0:(v=A.header)==null?void 0:(h=v.commentsHeaderRenderer)==null?void 0:h.zeroStateMessage,zIx)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(M)}};
_.N.doReplyInsert_=function(M,q,G,K){K?this.splice(M,K,0,q):this.push(M,q)};
_.N.getRepliesPath_=function(M){return"data.contents."+M+".commentThreadRenderer.replies"};
_.N.getRepliesContentsPath_=function(M,q){M=this.getRepliesPath_(M);return q?M+".commentRepliesRenderer.teaserContents":M+".commentRepliesRenderer.contents"};
_.N.showSubscribersOnlyDisclaimer_=function(M){(M=M.detail.command)&&!this.hasShownSubscribersOnlyDisclaimer&&(M=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&(_.VW(this.hostElement,"yt-open-popup-action",[M,this]),this.hasShownSubscribersOnlyDisclaimer=!0)};
_.N.createCommentReplyAction_=function(M){M=_.xP.unsafeClone(M);var q=_.C(M,LtM);if(M=q==null?void 0:q.contents){var G=this.commentIdToIndex_(q==null?void 0:q.parentCommentId);if(!(G<0)){var K=this.getRepliesPath_(G);if(this.get(K)){q=q.replyToCommentId;K=this.getRepliesContentsPath_(G,!1);if(this.get(K)){var n=this.get(K).length,E=K+"."+(n-1)+".continuationItemRenderer";this.get(E+".button")?(E=this.replyIdToIndex_(q,G,!1),this.doReplyInsert_(K,M,E,n-1)):this.get(E)||(n=this.replyIdToIndex_(q,G,
!1),this.doReplyInsert_(K,M,n,null))}K=this.getRepliesContentsPath_(G,!0);this.get(K)?(G=this.replyIdToIndex_(q,G,!0),(!q||G>=0)&&this.doReplyInsert_(K,M,G,null)):this.set(K,[M])}else this.set(K,{commentRepliesRenderer:{teaserContents:[M]}})}}};
_.N.hideReportedCommentAction_=function(M){var q=_.C(M,Qex);if(M=q==null?void 0:q.commentId)(q=this.get("parentCommentId",q))||(q=this.getParentCommentId_(M)),this.remove_(M,q)};
_.N.getParentCommentId_=function(M){M=M.split(".");if(M[1])return M[0]};
_.N.removeCommentAction_=function(M){var q=_.C(M,vHl);if(M=q==null?void 0:q.commentId)q=(q==null?void 0:q.parentCommentId)||this.getParentCommentId_(M),this.remove_(M,q)};
_.N.pinCommentAction_=function(M){M=_.xP.unsafeClone(M);var q=_.C(M,dOB);q!=null&&q.commentId&&(M=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",M))&&(this.remove_(q.commentId),this.insert_(M,!0))};
_.N.unpinCommentAction_=function(M){M=_.xP.unsafeClone(M);M=_.C(M,hpp);if(M!=null&&M.commentId){var q,G,K=(q=M.actionResult)==null?void 0:(G=q.update)==null?void 0:G.commentThreadRenderer;K&&(this.remove_(M.commentId),this.insert_(K))}};
_.N.banAuthorAction_=function(M){var q=_.C(M,pWf);q!=null&&q.commentId&&(M=q.commentId,q=q.parentCommentId||this.getParentCommentId_(M),this.remove_(M,q))};
_.N.handleScrollToCommentElement_=function(M){this.hostElement.contains(M)&&(this.nearestScrollParent||(this.nearestScrollParent=ZwF(M)),this.isCommentVisibleInScrollParent(M)||M.scrollIntoView({behavior:"smooth",block:"start"}))};
_.N.isCommentVisibleInScrollParent=function(M){if(!this.nearestScrollParent)return!1;M=M.getBoundingClientRect();var q=this.nearestScrollParent===document.documentElement?{top:68,bottom:window.innerHeight}:this.nearestScrollParent.getBoundingClientRect();return M.top>=q.top&&M.bottom<=q.bottom};
_.N.commentIdToIndex_=function(M){var q;return M&&(q=this.data)!=null&&q.contents?this.data.contents.findIndex(function(G){G=G.commentThreadRenderer;var K;return M===((G==null?void 0:G.commentViewModel)&&((K=_.C(G.commentViewModel,XWB))==null?void 0:K.commentId))}):-1};
_.N.insert_=function(M,q){q=q===void 0?!1:q;var G,K;if((G=this.data)==null?0:(K=G.contents)==null?0:K.some(function(E){return!!E.commentThreadRenderer}))for(G=0,K=this.data.contents.length;G<K;G++){var n=this.data.contents[G].commentThreadRenderer;
if(mxI[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]>=mxI[n.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]){q&&mxI[M.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]===mxI[n.renderingPriority||"RENDERING_PRIORITY_UNKNOWN"]?this.splice("data.contents",G,1,{commentThreadRenderer:M}):this.splice("data.contents",G,0,{commentThreadRenderer:M});break}}else this.set("data.contents",[{commentThreadRenderer:M}])};
_.N.doReplyRemove_=function(M,q,G){M=this.replyIdToIndex_(M,q,G);M<0||(q=this.getRepliesContentsPath_(q,G),this.splice(q,M,1))};
_.N.remove_=function(M,q){q=this.commentIdToIndex_(q);q<0?(q=this.commentIdToIndex_(M),q<0||this.splice("data.contents",q,1)):_.w("web_delhi_comment_threads")||(this.doReplyRemove_(M,q,!1),this.doReplyRemove_(M,q,!0))};
_.N.replyIdToIndex_=function(M,q,G){if(q<0)return-1;q=this.getRepliesContentsPath_(q,G);q=this.get(q);if(!q||!q.length)return-1;G=0;for(var K=q.length;G<K;G++){var n=void 0,E=void 0;if(((n=q[G])==null?void 0:(E=n.commentViewModel)==null?void 0:E.commentId)===M)return G}return-1};
_.N.tickForCommentsTimer_=function(M){_.lO(M,void 0,"wn_comments")};
_.N.reloadComments_=function(M){M=_.C(M,oHv);_.C(M==null?void 0:M.command,_.XY)&&_.fx(this.hostElement,[M==null?void 0:M.command])};
_.Yd.Object.defineProperties(HY.prototype,{isBackstage:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!!((M=this.data)==null?0:(q=M.header)==null?0:(G=q.commentsHeaderRenderer)==null?0:G.isBackstageContent)}}});
_.Yd.Object.defineProperties(HY,{template:{configurable:!0,enumerable:!0,get:function(){if(zfE===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);zfE=M}M=zfE;return M}}});
HY.prototype.showSubscribersOnlyDisclaimer_=HY.prototype.showSubscribersOnlyDisclaimer_;HY.prototype.headerChanged_=HY.prototype.headerChanged_;HY.prototype.contentsChanged_=HY.prototype.contentsChanged_;_.T([_.P(_.EO),_.r("design:type",Object)],HY.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",Function)],HY.prototype,"ytPlayerListenerBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],HY.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],HY.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.header.commentsHeaderRenderer.isBackstageContent"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],HY.prototype,"isBackstage",null);
_.T([_.B(),_.r("design:type",Object)],HY.prototype,"disablePrescanVisibility",void 0);_.T([_.B(),_.r("design:type",Object)],HY.prototype,"canScheduleJobs",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],HY.prototype,"engagementPanel",void 0);_.T([_.B(),_.r("design:type",Object)],HY.prototype,"hidePanelButton",void 0);_.T([_.B(),_.r("design:type",Object)],HY.prototype,"isWatchGrid",void 0);_.T([_.B(),_.r("design:type",Object)],HY.prototype,"hasShownSubscribersOnlyDisclaimer",void 0);
_.T([_.KT("data.contents"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HY.prototype,"contentsChanged_",null);_.T([_.KT("data.header"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HY.prototype,"headerChanged_",null);_.T([_.GQ("yt-show-subscribers-only-disclaimer"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],HY.prototype,"showSubscribersOnlyDisclaimer_",null);
_.T([_.b({is:"ytd-comments"})],HY);var eV=function(){return _.kA.apply(this,arguments)||this};
_.l(eV,_.kA);_.N=eV.prototype;_.N.bindIf=function(M,q,G){return M?q:G};
_.N.bindIfDefined=function(M,q){return M!==void 0?M:q};
_.N.booleanString=function(M){return(!!M).toString()};
_.N.equals=function(){for(var M=_.rW.apply(0,arguments),q=M[0],G=1;G<M.length;G++)if(q!=M[G])return!1;return!0};
_.N.isGreaterThan=function(M,q){return M>q};
_.N.isLessThan=function(M,q){return M<q};
_.N.logicalAND=function(){for(var M=_.rW.apply(0,arguments),q=!!M[0],G=1;G<M.length;G++)q=q&&!!M[G];return q};
_.N.logicalOR=function(){for(var M=_.rW.apply(0,arguments),q=!!M[0],G=1;G<M.length;G++)q=q||!!M[G];return q};
_.N.toBool=function(M){return!!M};
eV.prototype.toBool=eV.prototype.toBool;eV.prototype.logicalOR=eV.prototype.logicalOR;eV.prototype.logicalAND=eV.prototype.logicalAND;eV.prototype.isLessThan=eV.prototype.isLessThan;eV.prototype.isGreaterThan=eV.prototype.isGreaterThan;eV.prototype.equals=eV.prototype.equals;eV.prototype.booleanString=eV.prototype.booleanString;eV.prototype.bindIfDefined=eV.prototype.bindIfDefined;eV.prototype.bindIf=eV.prototype.bindIf;_.T([_.pT()],eV);_.SM5=[eV.prototype];var T9L;var rdw;var $9=function(){return _.Q.apply(this,arguments)||this};
_.l($9,_.Q);$9.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
$9.prototype.onBackIconTap_=function(){window.history.back()};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],$9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$9.prototype,"data",void 0);_.T([_.aO({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],$9);
_.z($9,"yt-header-with-back-renderer",function(){if(rdw===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;T9L===void 0&&(T9L=document.createElement("template"));var K=T9L;G.call(q,K.content.cloneNode(!0),M.content.firstChild);rdw=M}M=rdw;return M},{mode:2});var jII;var VJM;var so=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(so,_.Q);_.N=so.prototype;_.N.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.N.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M,this.setUrl())};
_.N.dataChanged=function(){var M=this;if(this.data){var q=this.setUrl();q&&_.e$({destination:window,iframe:this.iframe,origin:_.sEv(q.toString()),channelName:"yt-iframe",onMessage:function(G){(G=M.getCommunicationCommand(G.data))&&M.ytComponentBehavior.resolveCommand(G)},
onEstablished:function(){}})}};
_.N.setUrl=function(){if(this.data&&this.data.iframeUrl){var M=_.jG(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(M)return _.$C(this.iframe,M),M}};
_.N.getCommunicationCommand=function(M){var q;if((q=this.data)!=null&&q.onCommunicationCommandsMap){q=this.data.onCommunicationCommandsMap.find(function(n){return n.key===M});
if(q==null?0:q.value)return q==null?void 0:q.value;try{var G=mBl(_.ew(M)),K=this.data.onCommunicationCommandsMap.find(function(n){return n.key===(G==null?void 0:G.getMethodName())});
if(K==null?0:K.value)return K==null?void 0:K.value}catch(n){}}};
so.prototype.dataChanged=so.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],so.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],so.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],so.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],so.prototype,"data",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],so.prototype,"isDarkTheme",void 0);_.T([_.ET("#iframe"),_.r("design:type",HTMLIFrameElement)],so.prototype,"iframe",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],so.prototype,"dataChanged",null);_.T([_.aO({is:"yt-iframe-renderer",disableElementRegistration:!0})],so);
_.z(so,"yt-iframe-renderer",function(){if(VJM===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;jII===void 0&&(jII=document.createElement("template"));var K=jII;G.call(q,K.content.cloneNode(!0),M.content.firstChild);VJM=M}M=VJM;return M},{mode:2});_.M7=function(M){_.uI.call(this);this.callback=M;this.bezier=new Fgl(0,0,.4,0,.2,1,1,1);this.delay=new _.dh(this.next,window,this);this.JSC$17041_animating=!1;_.oE(this,this.delay)};
_.l(_.M7,_.uI);_.M7.prototype.isAnimating=function(){return this.JSC$17041_animating};
_.M7.prototype.start=function(M,q,G){this.config={from:M,to:q,duration:G,startTime:(0,_.d8)()};this.JSC$17041_animating=!0;this.next()};
_.M7.prototype.stop=function(){this.delay.stop();this.JSC$17041_animating=!1;this.config=void 0};
_.M7.prototype.next=function(){if(this.config){var M=this.config,q=M.from,G=M.to,K=M.duration;M=M.startTime;var n=(0,_.d8)()-M;M=this.bezier;K=eVJ(M,n/K);if(K==0)M=M.y0;else if(K==1)M=M.y3;else{n=wB(M.y0,M.y1,K);var E=wB(M.y1,M.y2,K);M=wB(M.y2,M.y3,K);n=wB(n,E,K);E=wB(E,M,K);M=wB(n,E,K)}M=_.wr(M,0,1);this.callback(q+(G-q)*M);M<1?this.delay.start():this.JSC$17041_animating=!1}};_.q7=new _.$k("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Rf8={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Fpv=function(M,q,G,K){_.uI.call(this);this.JSC$17052_miniAppId=M;this.localReleaseId=q;this.derivedDeviceInterface=G;this.isForeground=K;this.JSC$17052_playNonceResolver=new _.sp;this.playPingTimerId=NaN;this.playPingIntervalMs=_.tL("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.tL("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.w("enable_displaying_ppn");this.JSC$17052_miniAppClientDataProvider=_.AL().resolve(_.q7);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;f88(this);var n=setTimeout(function(){_.j1(new _.bj("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$17052_playNonceResolver.promise.then(function(){clearTimeout(n)})};
_.l(Fpv,_.uI);var efE=function(M,q){M.JSC$17052_playNonceResolver.resolve(q!=null?q:hl(8));M.enableDisplayingPpn&&HPs(M).then(function(G){M.JSC$17052_miniAppClientDataProvider.clientData.set("post_play_nonce",G)})},HPs=function(M){return _.L(function(q){return q.nextAddress==1?q.yield(M.JSC$17052_playNonceResolver.promise,2):q.return(q.yieldResult)})},f88=function(M){var q,G;
_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$17052_playNonceResolver.promise,2);q=K.yieldResult;G={miniAppInfo:{externalPostId:M.JSC$17052_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:q,derivedDeviceInterface:M.derivedDeviceInterface}};_.t2(G);_.gL(K)})},s8w=function(M){M.state!==0?_.j1(new _.bj("[MiniAppPlayLogger] recordPlayStart failed with state "+Rf8[M.state])):(M.state=1,GJ(M,"ma_cl"),Ky(M,"PLAY_EVENT_TYPE_PLAY_START"),$xv(M))},MRn=function(M){M.isForeground=!1;
Ky(M,"PLAY_EVENT_TYPE_PLAY_PAUSE")},qLL=function(M){M.state!==1&&M.state!==2?_.j1(new _.bj("[MiniAppPlayLogger] recordPlayEnd failed with state "+Rf8[M.state])):(M.state=3,window.clearInterval(M.playPingTimerId),M.playPingTimerId=NaN,VNy(),Ky(M,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},GsR=function(M,q){M.state===2&&M.gameReady&&(M.firstClickRecorded?Date.now()-M.clickRecordedMs<M.playClickIntervalMs||(M.clickRecordedMs=Date.now(),Ky(M,"PLAY_EVENT_TYPE_PLAY_CLICK")):q&&(GJ(M,"ma_fua"),Ky(M,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),M.firstClickRecorded=!0,M.clickRecordedMs=Date.now()))};
Fpv.prototype.logError=function(M){var q=this,G;_.L(function(K){if(K.nextAddress==1)return M.metadata.externalPostId=q.JSC$17052_miniAppId,G=M.metadata,K.yield(Promise.race([q.JSC$17052_playNonceResolver.promise,new Promise(function(n){setTimeout(function(){n("")},3E4)})]),2);
G.postPlayNonce=K.yieldResult;M.metadata.localReleaseId=q.localReleaseId;M.loggingError.level="WARNING";_.T6(M.loggingError,M.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:M.metadata});_.gL(K)})};
var K5R=function(M,q,G,K){var n,E,p,y,Y,A;_.L(function(v){if(v.nextAddress==1)return v.yield(M.JSC$17052_playNonceResolver.promise,2);n=v.yieldResult;E={externalPostId:M.JSC$17052_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:n,sdkVersion:G,api:q};K!==void 0&&(E.networkRequestsMeasurement={networkRequests:_.Au(K,1),cachedRequests:_.Au(K,2),transferredBytes:_.Au(K,3)},(p=K)==null?0:_.Ev(p,GX,6))&&(E.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((y=_.t0(K,
GX,6))==null?void 0:Ov(y,1))||"0",cacheHits:((Y=_.t0(K,GX,6))==null?void 0:Ov(Y,2))||"0",cachedBytes:((A=_.t0(K,GX,6))==null?void 0:Ov(A,3))||"0"});_.ml("miniAppSdkUsage",E);_.gL(v)})},Egs=function(M,q,G){var K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z;
_.L(function(V){if(V.nextAddress==1)return V.yield(M.JSC$17052_playNonceResolver.promise,2);K=V.yieldResult;n={externalPostId:M.JSC$17052_miniAppId,localReleaseId:M.localReleaseId,postPlayNonce:K,sdkVersion:G,measurementWindow:{startTimestampMs:String(dl(q,1)),endTimestampMs:String(dl(q,2))},frameRate:{averageFrameTimeDeltaMs:v7(q,3),averageFrameIdleTimeMs:v7(q,4)}};_.Ev(q,K1,5)&&(n.networkRequests={networkRequests:(E=L1(q))==null?void 0:_.Au(E,1),cachedRequests:(p=L1(q))==null?void 0:_.Au(p,2),transferredBytes:(y=
L1(q))==null?void 0:_.Au(y,3),sameOriginStatusCodeToCounts:ngv((Y=L1(q))==null?void 0:DM$(Y,4)),crossOriginStatusCodeToCounts:ngv((A=L1(q))==null?void 0:DM$(A,5))},(v=L1(q))==null?0:_.Ev(v,GX,6))&&(n.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((h=L1(q))==null?void 0:(t=_.t0(h,GX,6))==null?void 0:Ov(t,1))||"0",cacheHits:((O=L1(q))==null?void 0:(a=_.t0(O,GX,6))==null?void 0:Ov(a,2))||"0",cachedBytes:((g=L1(q))==null?void 0:(D=_.t0(g,GX,6))==null?void 0:Ov(D,3))||"0"});_.Ev(q,
Q1M,7)&&(n.gameCapture={averageFrameTimeDeltaMs:(J=_.t0(q,Q1M,7))==null?void 0:v7(J,1),averageFrameIdleTimeMs:(Z=_.t0(q,Q1M,7))==null?void 0:v7(Z,2)});_.ml("miniAppPerformanceMetrics",n);_.gL(V)})},NwI=function(M,q){var G,K;
return _.L(function(n){if(n.nextAddress==1)return n.yield(M.JSC$17052_playNonceResolver.promise,2);G=n.yieldResult;K={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:M.JSC$17052_miniAppId,postPlayNonce:G,miniAppReleaseId:M.localReleaseId},derivedDeviceInterface:M.derivedDeviceInterface,adTriggerType:q,rejectedReason:"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"};_.ml("miniAppAdEvent",K);_.gL(n)})};
Fpv.prototype.disposeInternal=function(){_.uI.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var Ky=function(M,q,G,K){G=G===void 0?{}:G;K=K===void 0?!1:K;var n,E,p,y;_.L(function(Y){if(Y.nextAddress==1)return n=M.isForeground,E=M.beforeReady,Y.yield(M.JSC$17052_playNonceResolver.promise,2);p=Y.yieldResult;y={externalPostId:M.JSC$17052_miniAppId,localReleaseId:M.localReleaseId,derivedDeviceInterface:M.derivedDeviceInterface,postPlayNonce:p,type:q};G.sequenceGroup=p;y.playState=E?"PLAY_STATE_NOT_READY":n?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.ml("miniAppPlayEvent",y,
G);K&&_.S1();_.gL(Y)})},GJ=function(M,q){var G;
_.L(function(K){if(K.nextAddress==1)return G=(0,_.d8)(),K.yield(M.JSC$17052_playNonceResolver.promise,2);_.oJ(q,G);_.gL(K)})},$xv=function(M){isNaN(M.playPingTimerId)&&(M.playPingTimerId=_.XN(function(){M.state!==1&&M.state!==2?_.j1(new _.bj("[MiniAppPlayLogger] reportPlayPing failed with state "+Rf8[M.state])):Ky(M,"PLAY_EVENT_TYPE_PLAY_PING")},M.playPingIntervalMs))},ngv=function(M){return Array.from(M.entries()).map(function(q){var G=_.k(q);
q=G.next().value;G=G.next().value;return{key:q,value:G}})};var ksM=function(){},pIg=function(M,q){M.showMiniAppAdCommand=q.showMiniAppAdCommand;
M.isEmbeddedInWebview=q.isEmbeddedInWebview;M.playLogger=q.playLogger},L55=function(M,q){var G;
return _.L(function(K){if(K.nextAddress==1){if(!M.showMiniAppAdCommand||!M.isEmbeddedInWebview)return K.return(yEg(M,q));M.adResolver=new _.sp;var n=new Jr;G=_.Oh(n,3,q);wI(M.showMiniAppAdCommand,dCI(G));return K.yield(M.adResolver.promise,2)}return K.return(K.yieldResult)})};
ksM.prototype.onAdFinished=function(M){M=pLB(M);var q;(q=this.adResolver)==null||q.resolve(M)};
var yEg=function(M,q){var G;return _.L(function(K){if(K.nextAddress==1)K=K.yield((G=M.playLogger)==null?void 0:NwI(G,Tm$(q)),2);else{var n=K.return;var E=new kjf;E=_.Oh(E,1,2);K=n.call(K,E)}return K})};var YLI=new _.$k("INNERTUBE_MANAGER_TOKEN");var W5U=function(){this.callbacks={}};
W5U.prototype.initialize=function(M){var q=this;this.callbacks=M;window.youtubewebview?window.youtubewebview.onmessage=function(G){AEM(q,G)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(G){AEM(q,G)})};
var AEM=function(M,q){if(q.data)try{var G=mBl(q.data);if(_.lP(_.nu(G,1))!=null){var K=pAP(_.hD(G,2));switch(G.getMethodName()){case "yt-mini-app-load-audio-state":var n,E;(E=(n=M.callbacks).onAudioStateLoaded)==null||E.call(n,_.AD(K,Q2(K,uU,1)));break;case "yt-mute-mini-app":var p,y;(y=(p=M.callbacks).onMuteMiniApp)==null||y.call(p);break;case "yt-unmute-mini-app":var Y,A;(A=(Y=M.callbacks).onUnmuteMiniApp)==null||A.call(Y);break;case "yt-playable-exit":var v,h;(h=(v=M.callbacks).onExit)==null||h.call(v);
break;case "yt-post-play-nonce":var t,O;(O=(t=M.callbacks).onPostPlayNonceReceived)==null||O.call(t,Cu(K,2,uU));break;case "yt-confirm-exit-mini-app":var a,g;(g=(a=M.callbacks).confirmExitMiniApp)==null||g.call(a);break;case "yt-confirm-exit-mini-app-edu":var D,J;(J=(D=M.callbacks).confirmExitMiniAppEdu)==null||J.call(D);break;case "yt-benchmarking-response":var Z,V;(V=(Z=M.callbacks).onNativeBenchmarkingMessageReceived)==null||V.call(Z,Cu(K,2,uU));break;case "yt-mini-app-load-3p-consent-state":var S,
m;(m=(S=M.callbacks).multiplayer3pAckStateLoaded)==null||m.call(S,_.AD(K,Q2(K,uU,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var R,se;(se=(R=M.callbacks).exitMiniAppSeenStateLoaded)==null||se.call(R,_.AD(K,Q2(K,uU,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var yY,d$;(d$=(yY=M.callbacks).onNavigateToNewMiniApp)==null||d$.call(yY);break;case "yt-game-data-available":var cy,t4;(t4=(cy=M.callbacks).onGameDataAvailable)==null||t4.call(cy,Cu(K,2,uU));break;case "yt-pause-mini-app":var ay,
bH;(bH=(ay=M.callbacks).onPauseMiniApp)==null||bH.call(ay);break;case "yt-resume-mini-app":var iH,oI;(oI=(iH=M.callbacks).onResumeMiniApp)==null||oI.call(iH);break;case "yt-playable-ad-finished":var r9,X2;(X2=(r9=M.callbacks).onAdFinished)==null||X2.call(r9,Cu(K,2,uU))}}else _.j1(Error("Vh"))}catch(EM){_.T6(Error("Wh"))}else _.j1(Error("Xh"))};var jmi=function(M){this.rpcErrorCode=M};var ny=function(M,q,G){this.intervalMs=M;this.apiFunc=q;this.type=G;this.schedulerReady=!0};
ny.prototype.call=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1){if(q.type!==1&&M===q.cachedValue)return K.return();q.pendingApiRequestResolver||(q.pendingApiRequestResolver=new _.sp);G=q.pendingApiRequestResolver.promise;q.cachedValue=M;return K.yield(dMn(q),2)}return K.return(G)})};
ny.prototype.flush=function(M){M=M===void 0?!1:M;var q=this;return _.L(function(G){return q.cachedValue===void 0?G.return():G.yield(q.apiFunc(q.cachedValue,M),0)})};
var dMn=function(M){var q,G,K;return _.L(function(n){switch(n.nextAddress){case 1:if(!M.schedulerReady||!M.pendingApiRequestResolver)return n.return();M.schedulerReady=!1;q=M.pendingApiRequestResolver;M.pendingApiRequestResolver=void 0;_.Cv(n,2);if(M.cachedValue===void 0){n.jumpTo(4);break}return n.yield(M.apiFunc(M.cachedValue),5);case 5:G=n.yieldResult,q.resolve(G);case 4:_.KF(n,3);break;case 2:K=_.i5(n),q.reject(K);case 3:setTimeout(function(){return _.L(function(E){M.schedulerReady=!0;return E.yield(dMn(M),
0)})},M.intervalMs),_.gL(n)}})};var fEy=window.location.origin+"/miniapp_cloudsaves",VFy=[400,401],vgL=_.tL("cloud_save_game_data_rate_limit_ms",3E3),Onn=function(M){var q=this;this.JSC$17096_miniAppId=M;this.loadAttempts=0;this.cloudSaveIntervalMs=vgL;this.initialDownloadDataSucceeded=!1;this.JSC$17096_playNonceResolver=new _.sp;this.scottyUploadRateLimiter=new ny(this.cloudSaveIntervalMs,function(G,K){return hwL(q,G,K)},2);
this.downloadDataPromise=tRs(this);this.downloadDataPromise.then(function(){q.initialDownloadDataSucceeded=!0}).catch(function(){})},wIU=function(M,q){q.then(function(G){return M.JSC$17096_playNonceResolver.resolve(G)})},CPL=function(M){return _.L(function(q){return M.cachedData===void 0?q.return(M.downloadDataPromise):q.return(M.cachedData)})},aUw=function(M,q){return _.L(function(G){M.cachedData=q;
if(!M.initialDownloadDataSucceeded)throw Error("Yh");return G.yield(M.scottyUploadRateLimiter.call(q),0)})},ogg=function(){return new Promise(function(M){setTimeout(M,1E3,"")})},lUw=function(M,q){var G,K;
return _.L(function(n){if(n.nextAddress==1)return G=M.JSC$17096_miniAppId,n.yield(Promise.race([M.JSC$17096_playNonceResolver.promise,ogg()]),2);K={"X-YouTube-MiniAppId":G,"X-YouTube-PostPlayNonce":n.yieldResult};"DELEGATED_SESSION_ID"in _.jK&&p8e(q,K);return n.return(K)})},hwL=function(M,q,G){G=G===void 0?!1:G;
return _.L(function(K){return rmu()?_.w("enable_cloud_save_error_popup_after_retry")?K.return(new Promise(function(n,E){var p,y,Y,A,v;return _.L(function(h){switch(h.nextAddress){case 1:p=0,y=!0,A=Y=null;case 2:if(!(y&&p++<2)){h.jumpTo(4);break}_.Cv(h,5);return h.yield(XII(M,q,G),7);case 7:Y=h.yieldResult;y=Y.ok?!1:!VFy.includes(Y.status);_.KF(h,2);break;case 5:A=v=_.i5(h);y=RFu(A);h.jumpTo(2);break;case 4:Y?Y.ok?(Eo(M,vgL),n()):(Eo(M,M.cloudSaveIntervalMs*2),E(Error("Zh`"+String(Y.status),{cause:{rpcErrorCode:Y.status}}))):
(Eo(M,M.cloudSaveIntervalMs*2),E(A||Error("$h"))),_.gL(h)}})})):K.return(new Promise(function(n,E){var p,y;
return _.L(function(Y){if(Y.nextAddress==1){if(M.JSC$17096_miniAppId==="")return E(Error("ai")),Y.return();_.Cv(Y,2);return Y.yield(XII(M,q,G),4)}if(Y.nextAddress!=2)return p=Y.yieldResult,p.ok?(Eo(M,vgL),n()):(Eo(M,M.cloudSaveIntervalMs*2),E(Error("Zh`"+String(p.status),{cause:{rpcErrorCode:p.status}}))),_.KF(Y,0);y=_.i5(Y);Eo(M,M.cloudSaveIntervalMs*2);E(y);_.gL(Y)})})):K.return()})},XII=function(M,q,G){G=G===void 0?!1:G;
var K,n,E;return _.L(function(p){if(p.nextAddress==1)return K=_.ZU((new TextEncoder).encode(q)),n=F1e(),p.yield(lUw(M,n),2);E=p.yieldResult;return p.return(fetch(n,{method:"POST",body:new Blob([K]),headers:E,keepalive:G}))})},tRs=function(M){var q,G;
return _.L(function(K){if(K.nextAddress==1){if(!rmu())return K.return("");if(M.JSC$17096_miniAppId==="")throw Error("ai");if(M.loadAttempts>2)return K.return(M.downloadDataPromise);_.Cv(K,2);return K.yield(PPU(M),4)}if(K.nextAddress!=2)return q=K.yieldResult,K.return(q);G=_.i5(K);if(RFu(G)&&++M.loadAttempts<2)return K.return(tRs(M));throw G;})},PPU=function(M){var q,G,K,n,E;
return _.L(function(p){switch(p.nextAddress){case 1:return _.Cv(p,2),q=F1e(),p.yield(lUw(M,q),4);case 4:return G=p.yieldResult,p.yield(fetch(q,{method:"GET",headers:G}),5);case 5:return K=p.yieldResult,K.ok?p.yield(K.text(),6):p.return(Promise.reject(Error("bi`"+String(K.status),{cause:new jmi(K.status)})));case 6:return n=p.yieldResult,p.return((new TextDecoder).decode(_.ew(n)));case 2:return E=_.i5(p),p.return(Promise.reject(E))}})},Eo=function(M,q){M.cloudSaveIntervalMs=q;
M.scottyUploadRateLimiter.intervalMs=M.cloudSaveIntervalMs};
Onn.prototype.flush=function(){var M=this;return _.L(function(q){return M.initialDownloadDataSucceeded?q.yield(M.scottyUploadRateLimiter.flush(!0),0):q.return()})};var inL=p1(kN(1),E7(1)),cEw=p1(kN(1),E7(3)),N7=function(M){this.callbacks=M};
_.N=N7.prototype;_.N.onAudioToggled=function(M,q){(q===void 0||q)&&_.AK("yt-mini-app-is-audio-enabled",M,2592E3)};
_.N.onPause=function(){this.onAudioToggled(!1,!1)};
_.N.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.N.returnNativeBenchmarkingMessage=function(){};
_.N.sendGameData=function(){};
_.N.sendStartGameFrameCapture=function(){};
var HwF=function(M,q,G){this.callbacks=M;var K=this;this.sdkVersion=new _.sp;this.channel=new ECS(_.e$({destination:window,iframe:q,origin:(new URL(G.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var n=k0;var E=kN(5);var p=new t0p;p=_.oT(p,1,1E4);E=_.Pt(E,4,Pi8,p);n(K,E);K.onAudioToggled(K.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){K.sdkVersion.resolve("")},1E4)};
_.l(HwF,N7);_.N=HwF.prototype;_.N.onAudioToggled=function(M,q){N7.prototype.onAudioToggled.call(this,M,q===void 0?!0:q);q=k0;var G=kN(2),K=new vkM;M=_.tu(K,1,M);M=_.Pt(G,3,Pi8,M);q(this,M)};
_.N.onPause=function(){N7.prototype.onPause.call(this);k0(this,kN(3))};
_.N.onResume=function(){N7.prototype.onResume.call(this);k0(this,kN(4))};
_.N.returnNativeBenchmarkingMessage=function(M){var q=k0,G=kN(6);var K=E7(_.Ev(M,T$,1)?1:2);M=_.Ev(M,T$,1)?M:null;K=_.Pt(K,5,NC,M);q(this,p1(G,K))};
_.N.sendGameData=function(M){var q=k0,G=kN(7);M=_.Pt(G,5,Pi8,M);q(this,M)};
_.N.sendStartGameFrameCapture=function(){k0(this,kN(9))};
var py=function(M,q,G){var K,n,E;return _.L(function(p){if(p.nextAddress==1)return K=M.callbacks,n=K.onSdkCalled,E=q,p.yield(M.sdkVersion.promise,2);n.call(K,E,p.yieldResult,G);_.gL(p)})};
HwF.prototype.onMessage=function(){var M=this;return pt$(YN,function(q){var G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R,se,yY,d$,cy,t4,ay,bH,iH,oI,r9,X2,EM,LP,Pv,g9,a8,tE,ND,Mx,hd,Kn,w9,Gs,u5,jJ;return _.L(function(Ad){switch(Ad.nextAddress){case 1:if(!Jqv(q.data))return _.j1(Error("ci")),Ad.return();G=_.tD(q.data,1);_.w("enable_iframe_message_get_type_via_fields")&&(K=q.data,G=n=_.tD(K,1));switch(G){case 8:if(q.data.hasMetadata()){var Wv=M.sdkVersion,qM=Wv.resolve;var Ry=q.data.getMetadata();Ry=_.hD(Ry,
1);qM.call(Wv,Ry);clearTimeout(M.sdkVersionTimeoutId)}break;case 6:return Ad.jumpTo(2);case 16:if(!_.Nn(q.data,gkf,14,WA))return Ad.return();E=_.aT(q.data,gkf,14,WA);(y=(p=M.callbacks).onGameFrameReceived)==null||y.call(p,E);return Ad.return();case 17:if(!_.Nn(q.data,cqS,15,WA))return Ad.return();(A=(Y=M.callbacks).onGameAudioReceived)==null||A.call(Y,_.aT(q.data,cqS,15,WA));return Ad.return();case 1:if(Wv=_.aT(q.data,Cil,2,WA))switch(_.tD(Wv,1)){case 1:M.callbacks.onFirstFrameReady();if(_.w("enable_network_request_logging_on_game_events")&&
_.Ev(Wv,K1,4)){py(M,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.t0(Wv,K1,4));break}py(M,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:(Ry=(qM=M.callbacks).onGameReady)==null||Ry.call(qM);if(_.w("enable_network_request_logging_on_game_events")&&_.Ev(Wv,K1,4)){py(M,"MINI_APP_SDK_API_GAME_READY",_.t0(Wv,K1,4));break}py(M,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Nn(Wv,n1,3,aAM))M.callbacks.onResourceLoaded(_.aT(Wv,n1,3,aAM))}return Ad.return();case 3:return Ad.jumpTo(3);case 4:return Ad.jumpTo(4);
case 2:return Ad.jumpTo(5);case 9:return Ad.jumpTo(6);case 10:return M.callbacks.onClick(),Ad.return();case 5:return Ad.jumpTo(7);case 11:if(!_.Nn(q.data,MC,9,WA))return Ad.return();v=_.aT(q.data,MC,9,WA);(t=(h=M.callbacks).onBenchmarkingMessageReceived)==null||t.call(h,v);Wv=q.reply;qM=kN(1);Ry=E7(1);var OM=new MC;var OL=new Uint8Array(Xvf(v,Q2(v,L7d,6))|0);OM=Pr(OM,5,L7d,_.D8(OL,!1));Ry=_.Pt(Ry,5,NC,OM);Wv.call(q,p1(qM,Ry));return Ad.return();case 12:return Ad.jumpTo(8);case 13:return Ad.jumpTo(9);
case 15:if(!_.w("enable_open_yt_content"))return q.reply(cEw),Ad.return();if(!_.Nn(q.data,iO8,12,WA))return q.reply(p1(kN(1),E7(2))),Ad.return();Wv=_.aT(q.data,iO8,12,WA);O=_.hD(Wv,1);M.callbacks.onOpenYTContent(O);q.reply(inL);return Ad.return();case 14:return Ad.jumpTo(10);default:return Ad.return()}Ad.jumpTo(0);break;case 2:if(!_.Nn(q.data,yL,5,WA))return Ad.return();qM=q.data;Wv=Q2(qM,WA,5);qM=qM.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=bns(qM,qM[_.nP]|0,yL,Wv)||yL[xxY]||(yL[xxY]=
zf4(yL));Wv=_.Ya(a,qC,1,_.WX());g=_.k(Wv);D=g.next();case 12:if(D.done){Ad.jumpTo(14);break}J=D.value;Z=new _.bj;Z.level=_.tD(J,2)===1?"WARNING":"ERROR";V=$vF(J.getSource());return Ad.yield(M.sdkVersion.promise,15);case 15:S={source:V,sdkVersion:Ad.yieldResult};_.EL(_.nu(J,6))!=null?(Z.message=J.getMessage(),Z.stack=_.hD(J,5),S.sdkErrorType=s$s(_.tD(J,6)),_.EL(_.nu(J,7))!=null&&(S.sdkApi=MIH(_.tD(J,7)))):Z.stack=void 0;R=m=void 0;(R=(m=M.callbacks).onError)==null||R.call(m,{loggingError:Z,metadata:S});
D=g.next();Ad.jumpTo(12);break;case 14:return Ad.return();case 3:return _.Cv(Ad,16),Wv=Ad.yield,qM=M.callbacks,Ry=qM.onSave,OM=_.aT(q.data,hEp,4,WA),OM=_.hD(OM,1),Wv.call(Ad,Ry.call(qM,OM),18);case 18:q.reply(inL);_.KF(Ad,17);break;case 16:return se=_.i5(Ad),yY=C5,d$=se,cy=M.callbacks,t4="MINI_APP_SDK_API_SAVE_DATA",Ad.yield(M.sdkVersion.promise,19);case 19:yY(d$,cy,t4,Ad.yieldResult),q.reply(cEw);case 17:return Ad.yield(py(M,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return Ad.return();case 4:return _.Cv(Ad,
21),Ad.yield(M.callbacks.onLoad(),23);case 23:ay=Ad.yieldResult;Wv=q.reply;qM=kN(1);Ry=E7(1);OM=new hEp;OM=_.DJ(OM,1,ay);Ry=_.Pt(Ry,3,NC,OM);Wv.call(q,p1(qM,Ry));_.KF(Ad,22);break;case 21:return bH=_.i5(Ad),iH=C5,oI=bH,r9=M.callbacks,X2="MINI_APP_SDK_API_LOAD_DATA",Ad.yield(M.sdkVersion.promise,24);case 24:iH(oI,r9,X2,Ad.yieldResult),q.reply(cEw);case 22:return Ad.yield(py(M,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return Ad.return();case 5:_.Cv(Ad,26);M.callbacks.onSendHighScore(Ti(_.aT(q.data,
Du2,3,WA).getValue()));q.reply(p1(kN(1),E7(1)));_.KF(Ad,27);break;case 26:return EM=_.i5(Ad),LP=C5,Pv=EM,g9=M.callbacks,a8="MINI_APP_SDK_API_SEND_SCORE",Ad.yield(M.sdkVersion.promise,28);case 28:LP(Pv,g9,a8,Ad.yieldResult),q.reply(cEw);case 27:return Ad.yield(py(M,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return Ad.return();case 6:if(!_.Nn(q.data,ucI,8,WA)){Ad.jumpTo(30);break}Wv=Ad.yield;qM=_.aT(q.data,ucI,8,WA);qM=_.tD(qM,1);return Wv.call(Ad,py(M,MIH(qM)),30);case 30:return Ad.return();case 7:return Wv=
q.reply,qM=kN(1),Ry=E7(1),OM=M.callbacks.getLanguage(),Ry=Pr(Ry,4,NC,o8(OM)),Wv.call(q,p1(qM,Ry)),Ad.yield(py(M,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return Ad.return();case 8:if(!_.Nn(q.data,IA2,10,WA))return Ad.return();tE=_.aT(q.data,IA2,10,WA);ND=M.callbacks;Mx=ND.onSdkPerformanceUpdate;return Ad.yield(M.sdkVersion.promise,33);case 33:return Mx.call(ND,tE,Ad.yieldResult),Ad.return();case 9:Wv=q.data;qM=Q2(Wv,WA,11);if(_.lP(_.nu(Wv,qM))==null)return q.reply(p1(kN(1),E7(2))),Ad.return();
hd=Cu(q.data,11,WA);M.callbacks.onShareInviteCode(hd);q.reply(inL);return Ad.yield(py(M,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return Ad.return();case 10:if(_.Nn(q.data,duS,13,WA)){Ad.jumpTo(35);break}return Ad.yield(M.callbacks.onShowMiniAppAd(2),36);case 36:return Kn=Ad.yieldResult,q.reply(p1(kN(1),lAP(Kn))),Ad.yield(py(M,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return Ad.return();case 35:Wv=_.aT(q.data,duS,13,WA);a:switch(_.tD(Wv,1)){case 1:Wv={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:Wv={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Wv={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}w9=Wv;Gs=w9.adType;u5=w9.sdkApi;Wv=Ad.yield;qM=M.callbacks;Ry=qM.onShowMiniAppAd;OM=_.aT(q.data,duS,13,WA);OM=_.hD(OM,2);return Wv.call(Ad,Ry.call(qM,Gs,OM||void 0),38);case 38:return jJ=Ad.yieldResult,q.reply(p1(kN(1),lAP(jJ))),Ad.yield(py(M,u5),39);case 39:return Ad.return()}})})};
var k0=function(M,q){_.L(function(G){M.channel.send(q);_.gL(G)})},aU=function(M,q,G){this.callbacks=M;
var K=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;M=eGH(q,(new URL(G.toString())).origin);this.gameSnacks=new aCB(M);this.gameSnacks.page.onReady(function(){K.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){K.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var n,E;(E=(n=K.callbacks).onGameReady)==null||E.call(n)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(n,E){try{K.callbacks.onSendHighScore(E)}catch(p){C5(p,K.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(n,E){var p;return _.L(function(y){if(y.nextAddress==1)return _.Cv(y,2),y.yield(K.callbacks.onSave(K.decoder.decode(E)),4);if(y.nextAddress!=2)return _.KF(y,0);p=_.i5(y);C5(p,K.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return y.return()})});
this.gameSnacks.storage.onLoad(function(){var n,E;return _.L(function(p){if(p.nextAddress==1)return _.Cv(p,2),p.yield(K.callbacks.onLoad(),4);if(p.nextAddress!=2)return n=p.yieldResult,p.return(K.encoder.encode(n));E=_.i5(p);C5(E,K.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return p.return(K.encoder.encode(""))})});
this.gameSnacks.init()};
_.l(aU,N7);aU.prototype.onAudioToggled=function(M,q){N7.prototype.onAudioToggled.call(this,M,q===void 0?!0:q);var G;(G=this.gameSnacks)==null||G.audio.update(M)};
aU.prototype.onPause=function(){N7.prototype.onPause.call(this);var M;(M=this.gameSnacks)==null||M.game.pause()};
aU.prototype.onResume=function(){N7.prototype.onResume.call(this);var M;(M=this.gameSnacks)==null||M.game.resume()};var ggU=qre,Bw8=_.U(function(M){var q=M.data;var G=M.loadingProgress;var K=M.forPaused;M=_.k(_.lQ("",void 0,"LYYTdd"));var n=M.next().value,E=M.next().value;M=_.k(_.lQ(!1,void 0,"K0waae"));var p=M.next().value,y=M.next().value,Y=[],A=function(){return"transform: scaleX("+(_.TL(G)||0)+")"},v=null,h=function(){return q()&&v!==null&&v!==void 0?v:v=q().showAnniversaryAnimation?6:ggU()};
_.zL(function(){var g;if(q().timeOutMessages&&((g=q().timeOutMessages)==null?0:g.length)){v=null;g=_.k(Y);for(var D=g.next();!D.done;D=g.next())clearTimeout(D.value);Y.length=0;G2F(q().timeOutMessages,Y,E,y)}},"BNu9j");
var t=function(){return!!q().persistentErrorMessageTitle},O=function(){return G!==void 0},a=function(){return q().title};
return _.W("yt-mini-splash-screen-view-model",{class:"miniAppSplashScreenViewModelHost"},_.W("div",{class:"miniAppSplashScreenViewModelLoadingScreen",role:"region",tabindex:0},_.W("div",{class:"miniAppSplashScreenViewModelBackgroundBase"}),_.W("div",{class:"miniAppSplashScreenViewModelBackgroundBlur",style:function(){var g,D=(g=q().backgroundImage)==null?void 0:g.sources,J;return(D==null?0:D.length)?"background-image: url("+((J=D[0])==null?void 0:J.url)+")":""}}),_.W("div",{class:"miniAppSplashScreenViewModelBackgroundScrim"}),
_.W(_.d,{cond:function(){return!t()&&!(K==null?0:K())},
then:function(){var g={};return _.W("div",{class:"miniAppSplashScreenViewModelLoadingScreenContent"},_.W("div",{class:"miniAppSplashScreenViewModelLoadingIcon"},_.W(_.C3,{className:"miniAppSplashScreenViewModelLoadingIconAnimation",animationName:function(){return"loading_animation_"+h()},
data:function(){var D="loading_animation_"+h();return{animationConfig:{name:D,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+D+".json",loop:!0,autoplay:!0}}}})),_.W("div",{class:"miniAppSplashScreenViewModelTimeoutMessageContainer"},_.W(_.d,{cond:a,
then:function(){return _.W("h3",{class:"miniAppSplashScreenViewModelTimeoutHeading"},a)}}),_.W("p",{class:_.Hb("miniAppSplashScreenViewModelTimeoutMessage",(g.miniAppSplashScreenViewModelTimeoutMessageFadeOut=function(){return p()},g)),
"aria-live":"polite"},n),_.W(_.d,{cond:O,then:function(){return _.W("div",{class:"miniAppSplashScreenViewModelLoadingBarTrack"},_.W("div",{class:"miniAppSplashScreenViewModelLoadingBarSegment miniAppSplashScreenViewModelLoadingBarSegmentResourceAnimation",style:A}))}})))}}),_.W(_.d,{cond:t,
then:function(){return _.W("div",{class:"miniAppSplashScreenViewModelPersistentErrorContent"},_.W("h3",{class:"miniAppSplashScreenViewModelPersistentErrorMessageTitle"},function(){return q().persistentErrorMessageTitle}),_.W(_.d,{cond:function(){return!!q().persistentErrorMessageDescription},
then:function(){return _.W("p",{class:"miniAppSplashScreenViewModelPersistentErrorMessageDescription"},function(){return q().persistentErrorMessageDescription})}}))}}),_.W(_.d,{cond:K,
then:function(){return _.W("div",{class:"miniAppSplashScreenViewModelPauseContent"},_.W("img",{class:"miniAppSplashScreenViewModelPauseIcon",src:"https://fonts.gstatic.com/s/i/short-term/release/youtube_fill/svg/tic_tac_toe_cairo_24px.svg"}),_.W("h3",{class:"miniAppSplashScreenViewModelPauseMessage"},a))}})))},"Jf");var Q8P=new _.$k("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var IUL=pX;pX=function(M){function q(G){if(G){var K,n;(K=G.__spec)==null||(n=K.didUnmount)==null||n.call(K);for(K=0;K<G.childNodes.length;K++)q(G.childNodes[K])}}
IUL==null||IUL(M);d7(function(){for(var G=0;G<M.length;G++)q(M[G])})};var DMw=_.U(function(M){var q=M.data;var G=M.score;var K=M.formattedScore;var n=M.onScoreChanged;var E=M.isEmbeddedInWebview;var p=_.yw("yt-mini-app-score-button-view-model"),y=function(){var O;return _.C(q==null?void 0:(O=q())==null?void 0:O.buttonViewModel,_.$N)},Y=function(){var O;
return(G==null?void 0:G())||Number(q==null?void 0:(O=q())==null?void 0:O.lastScore)||0},A=function(){var O;
return(K==null?void 0:K())||((O=y())==null?void 0:O.title)||""},v,h=1;
if(M=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))M=Number(M),h=isNaN(M)?1:M/100;_.zL(function(){n==null||n(Y());var O;var a=_.aM((O=y())==null?void 0:O.onTap);if(a){O=_.C(a,s4P);var g,D,J;O=_.C(O==null?void 0:(g=O.panelLoadingStrategy)==null?void 0:(D=g.inlineContent)==null?void 0:(J=D.dialogViewModel)==null?void 0:J.customContent,vNP)}else O=void 0;if(g=O)g.score=A()},"Aekez");
M=_.sq(function(){var O,a,g=q==null?void 0:(O=q())==null?void 0:(a=O.loggingDirectives)==null?void 0:a.trackingParams;g&&_.Pg(_.AL().resolve(_.Q$),g);return!1});
_.SK(function(){if(p.value){var O=p.value.querySelector("button"),a=y();O&&a&&Kci(O,a);_.WU("yt-share-playable-with-high-score",function(){var g=Y().toString(),D=q==null?void 0:q().onShareHighScoreCommand,J=q==null?void 0:q().highScoreShareClientParamIdentifier,Z=E==null?void 0:E();D&&(Z?(J=new zs8,g=_.DJ(J,2,g),wI(D,g.JSC$12527_serializeBinary())):J&&(_.AL().resolve(Q8P).clientParams.set(J,{miniAppClientParams:{highScore:g}}),xvw(D,!1)))})}});
var t=function(){var O=y();O&&(G==null?0:G())&&O.accessibilityText&&(O.accessibilityText=O.accessibilityText.replace(v,A()));v=A();return{numberValue:Y(),numberText:A(),heightPx:36,fontSizeMultiplier:h,shouldAnimate:!(G==null||!G())&&!0}};
return _.W("yt-mini-app-score-button-view-model",{class:function(){var O={};return _.vO("miniAppScoreButtonViewModelHost",(O.miniAppScoreButtonViewModelIsVisible=Y()!==0,O))},
el:p,"on:click":M},dly(!1,function(){return _.W("span",{style:"display:none;"},Y)}),_.W(_.yu,{data:function(){var O;
return q==null?void 0:(O=q())==null?void 0:O.buttonViewModel}},{buttonViewModel:function(O){return _.W(_.Wf,{data:O.data,
animatedTextProps:t})}}))},"Lf");var UML=_.U(function(M){var q,G=(q=_.d2("yt-mini-app-is-theater-mode-enabled"))!=null?q:!1,K=_.w("enable_playable_container_save_button"),n=_.w("enable_play_next_destination_page_in_toolbar");q={};return _.W("ytm-mini-app-top-bar-view-model",null,_.W("div",{class:_.Hb("yt-mini-app-top-bar-view-model",(q["yt-mini-app-top-bar-view-model--mobile"]=!1,q["yt-mini-app-top-bar-view-model--desktop"]=!0,q))},_.W("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.W(_.d,{cond:function(){var E;return!!M.data().backButtonEdu&&
!((E=M.isExitMiniAppSeen)==null?0:E.call(M))},
then:function(){return _.W(_.yu,{data:function(){return M.data().backButtonEdu}},{buttonViewModel:_.Wf})},
else:function(){return _.W(_.yu,{data:function(){return M.data().backButton}},{buttonViewModel:_.Wf})}}),_.W(_.d,{cond:function(){return M.data().viewAllButton&&!0},
then:function(){return _.W(_.yu,{data:function(){return M.data().viewAllButton}},{buttonViewModel:_.Wf})}}),_.W(_.d,{cond:function(){return M.data().title&&!0},
then:function(){return _.W("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return M.data().title})}})),_.W("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.W(_.d,{cond:function(){var E;
return(E=M.isDesktopPlayPage)==null?void 0:E.call(M)},
then:function(){return _.W(_.dU,null,_.W(uvw,{highScoreButton:function(){return M.data().highScoreButton},
score:M.score,formattedScore:M.formattedScore,onScoreChanged:M.onScoreChanged,isEmbeddedInWebview:M.isEmbeddedInWebview}),_.W(JEs,{enableSaveButton:function(){return _.TL(K)},
saveButton:function(){return M.data().saveButton},
isSaved:M.isSaved,onSaveToggled:function(){return M.onSaveToggled}}),_.W(ZnM,{menuButton:function(){return M.data().menuButton}}))},
else:function(){return _.W(_.d,{cond:function(){return!1},
then:function(){return _.W(_.yu,{data:function(){return M.data().playPageButton}},{buttonViewModel:function(E){return _.W(_.Wf,{data:E.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.W(uvw,{highScoreButton:function(){return M.data().highScoreButton},
score:M.score,formattedScore:M.formattedScore,onScoreChanged:M.onScoreChanged,isEmbeddedInWebview:M.isEmbeddedInWebview})}})}})),_.W("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.W(_.yu,{data:function(){return M.data().muteButton}},{toggleButtonViewModel:function(E){var p=E.data;
return _.W(_.Dj,{data:function(){var y,Y;return Object.assign({},p(),{isToggled:(Y=(y=M.isAudioEnabled)==null?void 0:y.call(M))!=null?Y:!0})},
onToggle:M.onAudioToggled,useOutlinedIcon:!0})}}),_.W(_.yu,{data:function(){return M.data().theatreModeButton}},{toggleButtonViewModel:function(E){var p=E.data;
return _.W("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.W(_.Dj,{data:function(){return Object.assign({},p(),{isToggled:G})},
useOutlinedIcon:!0}))}}),_.W(bng,{fullscreenButton:function(){return M.data().fullscreenButton}}),_.W(_.d,{cond:function(){return _.TL(n)&&M.data().viewAllButton&&!1},
then:function(){return _.W(_.yu,{data:function(){return M.data().viewAllButton}},{buttonViewModel:_.Wf})}}),_.W(_.d,{cond:function(){var E;
return!((E=M.isDesktopPlayPage)==null?0:E.call(M))},
then:function(){return _.W(_.dU,null,_.W(JEs,{enableSaveButton:function(){return _.TL(K)},
saveButton:function(){return M.data().saveButton},
isSaved:M.isSaved,onSaveToggled:function(){return M.onSaveToggled}}),_.W(ZnM,{menuButton:function(){return M.data().menuButton}}))}}))))},"Mf");
UML.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var ZnM=_.U(function(M){return _.W(_.yu,{data:M.menuButton},{buttonViewModel:_.Wf})},"Nf"),JEs=_.U(function(M){var q=M.enableSaveButton;
var G=M.saveButton;var K=M.isSaved;var n=M.onSaveToggled;return _.W(_.d,{cond:function(){return q()&&!(G==null||!G())},
then:function(){return _.W(_.yu,{data:function(){var E=_.C(G==null?void 0:G(),_.M1),p;return{toggleButtonViewModel:Object.assign({},E,{isToggled:(p=K==null?void 0:K())!=null?p:!(E==null||!E.isToggled)})}}},{toggleButtonViewModel:function(E){return _.W(_.Dj,{data:E.data,
onToggle:n})}})}})},"Of"),uvw=_.U(function(M){var q=M.highScoreButton;
var G=M.score;var K=M.formattedScore;var n=M.onScoreChanged;var E=M.isEmbeddedInWebview;return _.W(_.yu,{data:q},{miniAppScoreButtonViewModel:function(p){return _.W(DMw,{data:p.data,score:G,formattedScore:K,onScoreChanged:n,isEmbeddedInWebview:E})}})},"Pf"),bng=_.U(function(M){M=M.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.W(_.dU,null):_.W(_.yu,{data:M},{buttonViewModel:_.Wf})},"Qf");_.xMR=new _.$k("DESKTOP_CURRENT_PAGE");var j8g=_.U(function(M){var q=M.data;var G=_.w("force_active_time_logging_webview"),K=!1,n=new W5U,E=void 0,p=void 0,y=_.AL().resolve(YLI),Y=new ksM,A=void 0,v=void 0,h=[],t=void 0,O=void 0,a=!1,g=!1,D=!1,J=!1,Z=new _.sp,V=_.AL().resolve(Q8P),S=_.AL().resolve(_.q7),m=_.AL().resolve(_.WR(i4)),R,se=(R=_.AL().resolve(_.WR(_.xMR)))==null?void 0:R.getCurrentPage(),yY=!1,d$=0,cy=function(fj){fj.preventDefault();return fj.returnValue=""},t4;
M=_.k(_.lQ(!((t4=_.d2("yt-mini-app-is-audio-enabled"))!=null&&!t4),void 0,"WhYQTd"));var ay=M.next().value,bH=M.next().value,iH;t4=_.k(_.lQ(!((iH=_.d2("exit-mini-app-seen-state"))==null||!iH),void 0,"jxhCJb"));var oI=t4.next().value,r9=t4.next().value;iH=_.k(_.lQ(!1,void 0,"MuvDfe"));var X2=iH.next().value,EM=iH.next().value;iH=_.k(_.lQ(void 0,void 0,"u9DLoc"));var LP=iH.next().value,Pv=iH.next().value;iH=_.k(_.lQ(void 0,void 0,"rykyJb"));var g9=iH.next().value,a8=iH.next().value;iH=_.k(_.lQ(!0,void 0,
"d8FUvf"));var tE=iH.next().value,ND=iH.next().value;iH=_.k(_.lQ(!1,void 0,"x9XwUb"));var Mx=iH.next().value,hd=iH.next().value;iH=_.k(_.lQ(!1,void 0,"bcquyc"));var Kn=iH.next().value,w9=iH.next().value;iH=_.k(_.lQ(void 0,void 0,"FMAC5b"));var Gs=iH.next().value,u5=iH.next().value;iH=_.k(_.lQ(0,void 0,"HUGJEb"));var jJ=iH.next().value,Ad=iH.next().value,Wv=_.pI("mini-app-container-view-model"),qM=function(){return q().isEmbeddedInWebview},Ry=function(){return q().hasPlayNextShelf};
_.WU("yt-page-type-changed",function(fj){if(_.w("enable_is_mini_app_page_active_bugfix"))fj.detail.newPageSubtype==="mini_app"&&fj.detail.newPageType==="ytd-browse"||!tE()||fG();else if(fj=_.X$s()==="mini_app",fj!==tE())if(ND(fj),fj){var PI;fj=(PI=q().playableId)==null?void 0:PI.toString();fj!==void 0&&window.location.href.includes(fj)&&!g&&(J=!0,OM(),OA.value&&gq(OA.value))}else fj||fG()});
_.WU("yt-action",function(fj){fj.detail.actionName==="yt-engagement-panel-visible-changed"&&fj.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&fj.detail.args[2]==="PAmini_app_panel"&&fG();_.w("enable_is_mini_app_page_active_bugfix")?fj.detail.actionName==="yt-history-load"&&!tE()&&(se==null?0:se.active)?(ND(!0),OM(),OA.value&&gq(OA.value)):fj.detail.actionName==="yt-history-load"&&tE()&&!q().isEmbeddedInWebview&&p8():tE()&&fj.detail.actionName==="yt-history-load"&&(J?J=!1:q().isEmbeddedInWebview||
p8())});
_.m_(function(){OL()});
_.zL(function(){OM()},"bLMzme");
var OM=function(){var fj=q().playableId,PI=q().localReleaseId,Ts=q().derivedDeviceInterface;if(g)_.j1(new _.bj("[MiniAppContainerViewModel] onEnter was called more than once"));else{g=!0;E=new Fpv(fj,PI,Ts,document.visibilityState==="visible");s8w(E);p=new Onn(fj);zww(y,fj);pIg(Y,{showMiniAppAdCommand:q().showMiniAppAdCommand,isEmbeddedInWebview:q().isEmbeddedInWebview,playLogger:E});f_H()&&(O=document.body.style.backgroundColor,_.Dl(document.body,"background-color","black"));$c();UL();Z=new _.sp;
if(q().isEmbeddedInWebview){if(fj=(new URLSearchParams(window.location.search)).get("postPlayNonce"))efE(E,fj),yY=!0;n.initialize({onAudioStateLoaded:function(yI){e1(yI)},
onMuteMiniApp:function(){e1(!1)},
onUnmuteMiniApp:function(){e1(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(yI){yY||(efE(E,yI),yY=!0)},
confirmExitMiniApp:function(){var yI,dq,Rg;return _.L(function(Vq){if(Vq.nextAddress==1)return q().confirmExitMiniAppCommand?Vq.yield(Promise.race([Z.promise,Promise.resolve(!1)]),2):Vq.return();(yI=Vq.yieldResult)?!q().confirmExitMiniAppCommandEdu||(Rg=(dq=oI)==null?void 0:dq())!=null&&Rg?y1(q().confirmExitMiniAppCommand):(y1(q().confirmExitMiniAppCommandEdu),_.AK("exit-mini-app-seen-state","true",2592E6)):y1(q().closeMiniAppCommand);_.gL(Vq)})},
onNativeBenchmarkingMessageReceived:function(yI){yI=W7J(_.bay(yI));if(_.Nn(yI,_.tY,3,yq8)){var dq=_.aT(yI,_.tY,3,yq8),Rg=zF4();var Vq=Ti(Rg.getSeconds())-Ti(dq.getSeconds());dq=_.Au(Rg,2)-_.Au(dq,2);Vq<0&&dq>0?(Vq+=1,dq-=1E9):Vq>0&&dq<0&&(--Vq,dq+=1E9);Vq=(new T$).setSeconds(Vq);Vq=_.Ma(Vq,2,_.kg(dq),0);_.Xe(yI,1,Vq)}var Kl;(Kl=v)==null||Kl.returnNativeBenchmarkingMessage(yI)},
multiplayer3pAckStateLoaded:function(yI){p8(yI)},
exitMiniAppSeenStateLoaded:function(yI){q().confirmExitMiniAppCommandEdu&&r9(yI)},
onNavigateToNewMiniApp:function(){y1(q().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(yI){yI=new URLSearchParams(yI);var dq=void 0;yI.has("invite_code")&&(dq=new wLJ,yI=yI.get("invite_code"),dq=_.DJ(dq,1,yI));if(yI=dq){var Rg;(Rg=v)==null||Rg.sendGameData(yI)}},
onPauseMiniApp:function(){K=!0;BI()},
onResumeMiniApp:function(){K=!0;mw()},
onAdFinished:function(yI){Y.onAdFinished(yI)}});
q().showMultiplayer3pConsentDialogCommand||Z.resolve(!0);y1(q().onContainerReadyCommand)}else efE(E),Z.resolve(!0);wIU(p,HPs(E));HPs(E).then(function(yI){yI={miniAppPlayData:{postPlayNonce:yI}};var dq,Rg=(dq=q().loggingDirectives)==null?void 0:dq.trackingParams;Rg&&_.nl().stateChanged(Rg,yI)});
fj=q().showSignInDialogCommand;!rmu()&&fj&&(_.AK("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),y1(fj));q().confirmExitMiniAppCommand&&m&&(fj=bwy(q().confirmExitMiniAppCommand))&&(m.customConfirmationCommand=fj)}},OL=function(){O&&_.Dl(document.body,"background-color",O);
a=!1;t&&t.release();p.flush().catch(function(fj){_.j1(fj)});
y.flush().catch(function(fj){_.j1(fj)});
qLL(E);Uq();v=void 0;mME(V)},fG=function(){ND(!1);
OL();EM(!1);u5(void 0);Pv(void 0);a8(void 0);d$=0;Ad(0);g=!1},BI=function(){var fj;
(fj=v)==null||fj.onPause();t&&t.release();p.flush().catch(function(PI){_.j1(PI)});
y.flush().catch(function(PI){_.j1(PI)});
MRn(E);hd(!0)},mw=function(){var fj;
(fj=v)==null||fj.onResume();UL();fj=E;fj.isForeground=!0;Ky(fj,"PLAY_EVENT_TYPE_PLAY_RESUME");hd(!1)},e1=function(fj){var PI;
(PI=v)==null||PI.onAudioToggled(fj);bH(fj)},p8=function(fj){q().showMultiplayer3pConsentDialogCommand&&(q().isEmbeddedInWebview&&fj!==void 0&&Z.resolve(fj),!fj&&_.X$s()==="mini_app"&&y1(q().showMultiplayer3pConsentDialogCommand))},fP=function(){var fj,PI,Ts,yI;
return _.L(function(dq){if(dq.nextAddress==1){!q().isLivestream||q().disableVideoCapture||(fj=v)!=null&&fj.sendStartGameFrameCapture();PI=(new URL(window.location.href)).searchParams;if(PI.has("invite_code")){var Rg=new wLJ,Vq=PI.get("invite_code");Ts=_.DJ(Rg,1,Vq);(yI=v)==null||yI.sendGameData(Ts)}X2()||(EM(!0),Rg=E,Rg.state!==1?_.j1(new _.bj("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Rf8[Rg.state])):(_.CD("mini_app_ids_without_game_ready").includes(Rg.JSC$17052_miniAppId)&&(Rg.gameReady=
!0),Rg.state=2,Rg.beforeReady=!1,GJ(Rg,"ma_ffr"),Ky(Rg,"PLAY_EVENT_TYPE_PLAY_READY")));return dq.yield(Z.promise,2)}y1(q().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();q().isEmbeddedInWebview||p8();_.gL(dq)})},Xv=function(){var fj=E;
fj.gameReady=!0;GJ(fj,"ma_gr")},NM=function(fj){var PI;
return _.L(function(Ts){if(Ts.nextAddress==1)return _.Cv(Ts,2),Ts.yield(aUw(p,fj),4);if(Ts.nextAddress!=2)return _.KF(Ts,0);PI=_.i5(Ts);y1(q().showSavingErrorPopupCommand);throw PI;})},pS=function(){var fj,PI;
return _.L(function(Ts){if(Ts.nextAddress==1)return _.Cv(Ts,2),Ts.yield(CPL(p),4);if(Ts.nextAddress!=2)return fj=Ts.yieldResult,Ts.return(fj);PI=_.i5(Ts);y1(q().showLoadingErrorDialogCommand);throw PI;})},$q=function(fj){E.logError(fj)},My=function(fj,PI,Ts){K5R(E,fj,PI,Ts)},Ox=function(fj,PI){Egs(E,fj,PI)},PD=function(){!G&&q().isEmbeddedInWebview||_.Wr();
GsR(E,!0);a||(window.addEventListener("beforeunload",cy,{capture:!0}),a=!0)},LK=function(fj){var PI,Ts,yI,dq,Rg,Vq,Kl;
return _.L(function(xm){if(xm.nextAddress==1)return y&&(!A||A<fj)&&fj>0?xm.yield(SLI(y,fj),3):xm.jumpTo(0);PI=xm.yieldResult;Ts=_.k(PI);yI=Ts.next().value;dq=Ts.next().value;Rg=yI;Vq=dq;((Kl=Rg)==null?0:Kl.displayString)&&Vq&&(Pv(Vq),a8(Rg.displayString));_.gL(xm)})},By=function(fj){var PI=q().onBenchmarkingMessageReceivedCommand;
if(PI){var Ts=zF4();_.Pt(fj,3,yq8,Ts);wI(PI,Aq8(fj))}},Ue=function(fj){var PI=q().onGameFrameReceivedCommand;
if(PI){var Ts=new Jr;var yI=new Lzx;var dq=dl(fj,1);yI=_.Db(yI,1,dq);fj=_.hD(fj,2);fj=_.DJ(yI,2,fj);Ts=_.Xe(Ts,2,fj);wI(PI,dCI(Ts))}},jw=function(fj){var PI=q().onGameAudioDataReceivedCommand;
if(PI){var Ts=new Jr;var yI=new Wzl;fj=_.hD(fj,1);yI=_.DJ(yI,1,fj);Ts=_.Xe(Ts,4,yI);wI(PI,dCI(Ts))}},aI=function(){var fj=new URLSearchParams(window.location.search);
if(q().isEmbeddedInWebview&&fj&&fj.get("override_hl")==="true"&&fj.get("hl"))return fj.get("hl");fj=document.documentElement.lang;return fj!==""?fj:Bs},ww=function(fj){var PI=q().onShareInviteCodeCommand;
if(PI)if(q().isEmbeddedInWebview){var Ts=new zs8;fj=_.DJ(Ts,1,fj);wI(PI,SW2(fj))}else Ts=q().inviteCodeShareClientParamIdentifier,V.clientParams.set(Ts,{miniAppClientParams:{inviteCode:fj}}),y1(PI)},Bt=function(fj){var PI,Ts,yI;
return _.L(function(dq){if(dq.nextAddress==1)return PI=q().onMiniAppOpenYtContentRequested,y&&_.w("enable_open_yt_content")&&PI?dq.yield(TwM(y,fj),3):dq.jumpTo(0);Ts=dq.yieldResult;if(Ts==="OK")if(q().isEmbeddedInWebview){var Rg=new Nip;yI=Pr(Rg,2,uU,o8(fj));wI(PI,yr2(yI))}else S.clientData.set("video_id",fj),y1(PI);_.gL(dq)})},QI=function(fj){d$+=_.Au(fj,3);
fj=Math.min(Math.log(1+d$/15E6*9)/Math.log(10),.99);Ad(fj);iS(fj)},iS=_.tc(function(fj){var PI=q().updateLoadingProgressCommand;
if(PI){var Ts=new Nip;fj=Pr(Ts,3,uU,_.Hv(fj));wI(PI,yr2(fj))}},100),lS=function(fj){return L55(Y,fj)},UL=function(){var fj,PI;
((fj=_.C$e())==null?void 0:(PI=fj.wakeLock)==null?void 0:PI.request)!=null&&_.C$e().wakeLock.request("screen").then(function(Ts){t=Ts}).catch(function(){})},OA=_.yw("iframe");
_.zL(function(){q().isSupportedCountry&&(rmu()||_.w("enable_sign_in_promo")||!q().showSignInDialogCommand?OA.value&&gq(OA.value):y1(q().onMiniAppReadyCommand))},"ASuFde");
var td=function(){return _.W("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return X2()?0:-1},
el:OA})},gq=function(fj,PI){PI=PI===void 0?!1:PI;
var Ts=jA();Ts&&(PI||Ts.toString()!==fj.getAttribute("src"))&&(v=eFw(q().source,{isAudioEnabled:ay,onFirstFrameReady:fP,onGameReady:Xv,onSave:NM,onLoad:pS,onError:$q,onSdkCalled:My,onSdkPerformanceUpdate:Ox,onClick:PD,onSendHighScore:LK,onBenchmarkingMessageReceived:By,getLanguage:aI,onShareInviteCode:ww,onResourceLoaded:QI,onOpenYTContent:Bt,onShowMiniAppAd:lS,onGameFrameReceived:Ue,onGameAudioReceived:jw},fj,Ts),kj(fj,"load",function(){GJ(E,"ma_il");kj(fj,"load",function(){gq(fj,!0)})}),_.$C(fj,
Ts))},jA=function(){var fj=q().url;
if(fj&&(fj=_.jG(fj),fj!==null)){if(q().source&&q().source==="MINI_APP_SOURCE_GAMESNACKS")fj=_.wq(fj,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.w("enable_origin_query_parameter_bugfix")){var PI=_.Wh(_.hjj(fj.toString()));PI=new URLSearchParams(PI||"");PI.set("origin",window.location.origin);PI=PI.toString();fj=_.Iv(fj).toString();fj=_.Qk(e7l.exec(fj)[0]+(PI.trim()?"#"+PI:""))}return fj}},UA=function(){var fj={};
fj=_.Hb("yt-mini-app-container-view-model__loading-screen",(fj["yt-mini-app-container-view-model__loading-screen--fade-out"]=X2,fj));var PI=function(){return X2()?1:jJ()};
return _.W("div",{class:fj},_.W(_.yu,{data:function(){return q().splashScreen}},{miniAppSplashScreenViewModel:function(Ts){return _.W(Bw8,{data:Ts.data,
loadingProgress:PI})}}))},FS=function(){var fj={};
return _.W("div",{class:_.Hb("yt-mini-app-container-view-model__pause-interstitial",(fj["yt-mini-app-container-view-model__pause-interstitial--pause-fade-out"]=function(){return!Mx()},fj["yt-mini-app-container-view-model__pause-interstitial--pause-fade-in"]=Mx,fj))},_.W(_.yu,{data:function(){return q().splashScreen}},{miniAppSplashScreenViewModel:function(PI){return _.W(Bw8,{data:PI.data,
forPaused:!0})}}))},$c=function(){h=[];
h.push(_.Yj(window,"visibilitychange",function(){D||K&&qM()||(document.visibilityState==="visible"?mw():BI())}));
h.push(_.Yj(window,"pagehide",function(){OL()}));
h.push(_.Yj(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Wv.value.dispatchEvent(new Event("tap"))},0)}));
h.push(_.Yj(Wv.value,"pointerdown",function(){GsR(E,!1)},!0));
h.push(_.Yj(Wv.value,"pause",function(){D=!0;BI()}));
h.push(_.Yj(Wv.value,"play",function(){D=!1;mw()}));
h.push(_.Yj(Wv.value,"exit",function(){OL()}));
var fj=navigator.keyboard,PI=fj&&fj.lock;h.push(_.Yj(window,pxx,function(){w9(LdS());LdS()?(q().hasPlayNextShelf&&$0("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),wl("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),PI&&fj.lock(["Escape"])):(q().hasPlayNextShelf&&wl("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),$0("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),PI&&fj.unlock())}));
q().showMultiplayer3pConsentDialogCommand&&h.push(_.Yj(window,"yt-playables-ack-3p-data-usage",function(){rE5(y)}));
q().confirmExitMiniAppCommandEdu&&h.push(_.Yj(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.AK("exit-mini-app-seen-state","true",2592E6)}));
q().onGameAudioDataReceivedCommand&&h.push(_.Yj(window,"message",function(Ts){Ts=Ts.event_;var yI,dq=(yI=OA.value)==null?void 0:yI.src;if(dq&&Ts.origin===(new URL(dq)).origin&&Ts.data&&Ts.data.type==="GAME_AUDIO"&&Ts.data.audio&&Ts.data.audio.length>0)if(_.w("enable_sending_unwrapped_game_audio_as_serialized_metadata"))Sy$(q().onGameAudioDataReceivedCommand,Ts.data.audio);else{var Rg=new FileReader;Rg.onload=function(){var Vq=new Jr;var Kl=new Wzl;Kl=_.DJ(Kl,1,Rg.result);Vq=_.Xe(Vq,4,Kl);wI(q().onGameAudioDataReceivedCommand,
dCI(Vq))};
Rg.readAsDataURL(new Blob([Ts.data.audio]))}}))},Uq=function(){h.forEach(function(fj){pl(fj)});
window.removeEventListener("beforeunload",cy,{capture:!0})},y1=function(fj){fj&&xvw(fj,q().isEmbeddedInWebview||!1)},wl=function(fj,PI){fj=_.k(Wv.value.getElementsByClassName(fj));
for(var Ts=fj.next();!Ts.done;Ts=fj.next())Ts.value.classList.add(PI)},$0=function(fj,PI){fj=_.k(Wv.value.getElementsByClassName(fj));
for(var Ts=fj.next();!Ts.done;Ts=fj.next())Ts.value.classList.remove(PI)};
return function(){var fj={};fj=_.Hb("yt-mini-app-container-view-model",(fj["yt-mini-app-container-view-model--desktop"]=!0,fj["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return q().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},fj["yt-mini-app-container-view-model--ios-web-view"]=f_H(),fj["yt-mini-app-container-view-model--no-top-bar"]=function(){return!q().topBar},fj["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return q().hasPlayNextShelf},fj["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return q().hasPlayNextShelf},fj["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Kn()&&q().hasPlayNextShelf},fj));
var PI={};PI=_.Hb("yt-mini-app-container-view-model__content",(PI["yt-mini-app-container-view-model__content--desktop-content"]=!0,PI["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return q().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},PI["yt-mini-app-container-view-model--desktop-play-page"]=function(){return q().hasPlayNextShelf},PI));
return _.W("mini-app-container-view-model",{el:Wv},_.W("div",{class:fj},_.W(_.d,{cond:function(){return q().topBar&&!Kn()},
then:function(){return _.W(_.yu,{data:function(){return q().topBar}},{miniAppTopBarViewModel:function(Ts){return _.W(UML,{data:Ts.data,
isAudioEnabled:ay,onAudioToggled:function(yI){e1(yI)},
score:LP,formattedScore:g9,onScoreChanged:function(yI){A=yI},
isEmbeddedInWebview:qM,isSaved:Gs,onSaveToggled:function(yI){u5(yI)},
isExitMiniAppSeen:oI,isDesktopPlayPage:Ry})}})}}),_.W("div",{class:PI},_.W(_.d,{cond:tE,
then:function(){return td()}}),_.W(_.d,{cond:function(){return q().isLivestream},
then:function(){return FS()}}),_.W(_.d,{cond:function(){return!q().isEmbeddedInWebview},
then:function(){return UA()}}))))}()},"Tf");
j8g.idomCompat=!0;_.S5(j8g,"mini-app-container-view-model",{props:{data:_.Hz}});var VRI=_.U(function(M){var q=M.data;return _.W("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.W("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.sq(function(){var G=q().onTap;G&&_.Pb(G)})},_.W(_.d,{cond:function(){return q().icon},
then:function(G){return _.W(_.np,{icon:function(){return G().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.W("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return q().title})))},"Uf");
VRI.idomCompat=!0;var RwM=_.U(function(M){var q=_.pI("div"),G=_.k(_.lQ(void 0,void 0,"dg3xff")),K=G.next().value,n=G.next().value;G=_.k(_.lQ(void 0,void 0,"AgHNfc"));var E=G.next().value,p=G.next().value;G=_.k(_.lQ(void 0,void 0,"fuTKCc"));var y=G.next().value,Y=G.next().value,A=function(){var J=K();return J!==void 0?Math.abs(J):void 0},v=function(){var J=A();
return J===void 0||J<=3},h=function(){var J=A();
var Z=E(),V=y();J=J!==void 0&&Z!==void 0&&V!==void 0?Z-V-J:void 0;return J===void 0||J<=3},t=function(J){q.value&&q.value.scrollBy({top:0,
left:(_.R9("HTML_DIR")==="rtl"?-1:1)*J*q.value.clientWidth,behavior:"smooth"})},O=function(){var J;
n((J=q.value)==null?void 0:J.scrollLeft);var Z;p((Z=q.value)==null?void 0:Z.scrollWidth);var V;Y((V=q.value)==null?void 0:V.clientWidth)},a=function(){t(-.5)},g=function(){t(.5)};
G=_.sq(function(){O()});
_.mT(function(){O();if(q.value&&window.ResizeObserver){var J=new ResizeObserver(O);J.observe(q.value);_.m_(function(){J.disconnect()})}});
var D={};return _.W("yt-sponsorships-scrollable-shelf",{class:_.Hb("ytdSponsorshipsScrollableShelfHost",M.className)},_.W("div",{class:_.Hb("ytdSponsorshipsScrollableShelfContent",(D.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return M.data().previousButton&&M.data().nextButton&&!v()&&!h()},D.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return M.data().previousButton&&!v()&&h()},D.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return M.data().nextButton&&
v()&&!h()},D)),
el:q,"on:scroll":G},M.children),_.W(_.d,{cond:function(){return!v()},
then:function(){return _.W(_.yu,{data:function(){return M.data().previousButton}},{buttonViewModel:function(J){return _.W(_.Wf,{data:J.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:a})}})}}),_.W(_.d,{cond:function(){return!h()},
then:function(){return _.W(_.yu,{data:function(){return M.data().nextButton}},{buttonViewModel:function(J){return _.W(_.Wf,{data:J.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:g})}})}}))},"Wf");
RwM.idomCompat=!0;var F5E=_.U(function(M){var q=M.data;M={};return _.W("yt-sponsorships-hub",{class:_.Hb("ytdSponsorshipsHubHost",(M.ytdSponsorshipsHubHostIndented=function(){return q().indented},M))},_.W("div",{class:"ytdSponsorshipsHubHeader"},_.W("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.W("div",{class:"ytdSponsorshipsHubAvatar"},_.W(_.yu,{data:function(){return q().avatar}},{avatarViewModel:_.zo})),_.W(_.d,{cond:function(){return q().badgeImage},
then:function(G){return _.W("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.W("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.W("div",{class:"ytdSponsorshipsHubBadge"},_.W(_.Jj,{data:G,targetWidth:24,targetHeight:24,alt:""}))))}})),_.W("div",{class:"ytdSponsorshipsHubDetails"},_.W("div",{class:"ytdSponsorshipsHubTierName"},function(){return q().tierName}),_.W("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return q().membershipType}),_.W("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return q().membershipDurationOrExpiry})),_.W("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.W(_.yu,{data:function(){return q().manageButton}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.W(_.yu,{data:function(){return q().actionMenuButton}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.W("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return q().perksTitle}),_.W(RwM,{data:function(){return{previousButton:q().previousPerkButton,
nextButton:q().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.W("div",{class:"ytdSponsorshipsHubPerkCards"},_.W(_.yu,{data:function(){return q().perkCards}},{sponsorshipsHubPerkCardViewModel:VRI}),_.W(_.d,{cond:function(){return q().viewAllPerksButton},
then:function(G){return _.W(fUs,{data:G})}}))))},"Xf");
F5E.idomCompat=!0;var fUs=_.U(function(M){var q=M.data;return _.W("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.W(_.yu,{data:function(){return q().button}},{buttonViewModel:_.Wf}),_.W("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.W("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return q().title}),_.W("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return q().subtitle})))},"Yf");
fUs.idomCompat=!0;_.S5(F5E,"yt-sponsorships-hub",{props:{data:_.Hz}});_.Hnw=_.U(function(M){var q=M.data;return _.W("yt-dual-avatar-view-model",{class:_.Hb("ytDualAvatarViewModelHost",M.className),style:_.Kp({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var G;return((G=q().badgeCutoutRadius)!=null?G:14)+"px"}})},_.W("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.W(_.yu,{data:function(){return q().startAvatar}},{avatarViewModel:_.zo}),_.W(_.yu,{data:function(){return q().endAvatar}},{avatarViewModel:_.zo})),_.W(_.yu,{data:function(){return q().badge}},
{contentPreviewImageViewModel:function(G){return _.W("div",{class:"ytDualAvatarViewModelBadge"},_.W(_.We,{data:G.data}))}}))},"Zf");
_.Hnw.idomCompat=!0;var $Ms=_.U(function(M){var q=M.data;var G,K=!((G=_.AL().resolve(_.WR(_.Qx)))==null||!G());M=_.gY(function(){var v,h,t=K?(v=q().header)==null?void 0:v.backgroundColorDarkMode:(h=q().header)==null?void 0:h.backgroundColorLightMode;if(t!==void 0)return _.C_(t)},void 0,"TDdh7d");
G=_.gY(function(){var v,h;return K?(v=q().header)==null?void 0:v.backgroundImagePart1Dark:(h=q().header)==null?void 0:h.backgroundImagePart1Light},void 0,"X0peMe");
var n=_.gY(function(){var v,h;return K?(v=q().header)==null?void 0:v.backgroundImagePart2Dark:(h=q().header)==null?void 0:h.backgroundImagePart2Light},void 0,"an0Hzd"),E=_.gY(function(){return _.R9("HTML_DIR")==="rtl"},void 0,"BltEgb"),p=_.pI("yt-sponsorships-perks-list"),y=!1,Y=function(){var v=p.value;
if(v&&!y){var h,t=(h=v.parentElement)==null?void 0:h.parentElement;if(t)for(v=v.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),h=0;h<v.length;++h){var O=v[h];if(O instanceof HTMLElement){t.scrollTo({top:O.offsetTop+O.clientHeight/2-t.clientHeight/2,behavior:"smooth"});y=!0;break}}}};
_.SK(function(){var v=p.value;if(v&&window.ResizeObserver){var h=new ResizeObserver(Y);h.observe(v);_.m_(function(){h.disconnect()})}});
var A={};return _.W("yt-sponsorships-perks-list",{el:p,class:_.Hb("ytdSponsorshipsPerksListHost",(A.ytdSponsorshipsPerksListHorizontalPadding=function(){return q().horizontalPaddingEnabled},A))},_.W("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.W("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Kp({"background-color":M})},_.W("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.W(_.d,{cond:G,then:function(v){var h={};return _.W("div",{class:_.Hb((h.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=K,h.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!K,h.ytdSponsorshipsPerksListFlipped=E,h))},_.W(_.Jj,{data:v,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.W("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.W(_.d,{cond:n,
then:function(v){var h={};return _.W("div",{class:_.Hb((h.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=K,h.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!K,h.ytdSponsorshipsPerksListFlipped=E,h))},_.W(_.Jj,{data:v,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.W("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.W(_.yu,{data:function(){var v;
return(v=q().header)==null?void 0:v.dualAvatar}},{dualAvatarViewModel:_.Hnw})))),_.W("div",{class:"ytdSponsorshipsPerksListBody"},_.W("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return q().title}),_.W(_.d,{cond:function(){return q().perks},
then:function(v){return _.W(_.bf,{each:v},function(h,t){var O={};return _.W("div",{class:_.Hb("ytdSponsorshipsPerksListPerkContainer",(O.ytdSponsorshipsPerksListSelectedPerk=function(){var a=t(),g=q().selectedPerkIndex;return a===g},O))},_.W(_.d,{cond:function(){return t()>0},
then:function(){return _.W("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.W("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.W(_.d,{cond:function(){return h.icon},
then:function(a){return _.W(_.np,{icon:function(){return a().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.W("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.W("div",{class:"ytdSponsorshipsPerksListPerkTitle"},h.title),_.W("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.W(_.Ft,{text:h.description})),_.W(_.d,{cond:function(){return h.instructions},
then:function(){var a,g;return _.W("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.W("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(a=h.instructions)==null?void 0:a.title),_.W("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.W(_.Ft,{text:(g=h.instructions)==null?void 0:g.text})))}}))),_.W(_.d,{cond:function(){return h.emoji},
then:function(a){return _.W("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.W(_.bf,{each:function(){return a()}},function(g){return _.W(_.Jj,{data:g,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.W(ewn,{data:h}))})}})))},"$f");
$Ms.idomCompat=!0;var ewn=_.U(function(M){var q=M.data;var G=function(p,y){return p===y},K=function(){var p=q();
p=_.C(p==null?void 0:p.badgesShelf,VjP);return p!==void 0&&p!==null?p:{previousButton:{},nextButton:{}}},n=_.yw("div"),E=function(){var p=n.value;
if(p){var y=p.parentElement;if(y){p=p.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var Y=0;Y<p.length;++Y){var A=p[Y];if(A instanceof HTMLElement){y.scrollTo({left:A.offsetLeft+A.clientWidth/2-y.clientWidth/2,behavior:"instant"});break}}}}};
_.SK(function(){var p=n.value;if(p){var y=new ResizeObserver(E);y.observe(p);_.m_(function(){y.disconnect()})}});
return _.W("div",null,_.W(_.d,{cond:function(){return q().badges},
then:function(p){return _.W(RwM,{data:K},_.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:n},_.W(_.bf,{each:function(){return p()}},function(y,Y){var A={},v={},h={};
return _.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.W(_.d,{cond:function(){return Y()>0},
then:function(){return _.W("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.W("div",{class:_.Hb("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(A.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return G(Y(),q().currentBadgeIndex)},A.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!G(Y(),q().currentBadgeIndex)},A))},_.W("div",{class:_.Hb("ytdSponsorshipsPerksListLoyaltyBadge",(v.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return G(Y(),
q().currentBadgeIndex)},v.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!G(Y(),q().currentBadgeIndex)},v))},_.W(_.d,{cond:function(){return y.image},
then:function(t){var O={};return _.W("div",{class:_.Hb((O.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return G(Y(),q().currentBadgeIndex)},O.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!G(Y(),q().currentBadgeIndex)},O))},_.W(_.Jj,{data:t,
alt:""}))}})),_.W("div",{class:_.Hb("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(h.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return G(Y(),q().currentBadgeIndex)},h))},y.title)))})))}}))},"ag");
ewn.idomCompat=!0;_.S5($Ms,"yt-sponsorships-perks-list",{props:{data:_.Hz}});_.S5(_.U(function(M){return _.W("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.W(_.d,{cond:function(){return M.data().image},
then:function(q){return _.W(_.Jj,{className:"ytwFantasyEmptyStateViewModelImage",data:q,ariaHidden:!0,alt:""})}}),_.W(_.Ft,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return M.data().title}}),_.W(_.Ft,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return M.data().subtitle}}),_.W(_.yu,{data:function(){return M.data().primaryButton}},{buttonViewModel:function(q){return _.W(_.Wf,{data:q.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"bg"),"ytw-fantasy-empty-state-view-model",{props:{data:_.Hz}});var svg;var MMw=_.U(function(M){var q=M.data;var G=M.uniqueId;var K=M.overrides;M=_.gY(function(){var n,E=((n=q().timedAnimationData)==null?void 0:n.animationTiming)||[];return{uniqueId:G(),timings:E,experimentEnabled:E.length>0,enabled:E.length>0}},void 0,"hiuXI");
return _.W("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.W(mfp,{settings:M},_.W(_.yu,{data:function(){return q().buttonRenderer}},{buttonRenderer:function(n){return _.W(_.GW,{data:n.data,
buttonOverrides:K})}})))},"cg");
MMw.idomCompat=!0;_.S5(MMw,"timed-animation-button-renderer",{props:{data:_.Hz,uniqueId:_.Hz,overrides:_.Hz}});var yV=function(){var M=_.Q.apply(this,arguments)||this;M.hideJoinButtonBeforeSubscribed=_.w("hide_join_button_before_subscribed");M.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return M};
_.l(yV,_.Q);_.N=yV.prototype;_.N.hasShowDialogCommand=function(M){return!!_.C(M,s4P)};
_.N.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"}}}};
_.N.updateJoinButtonOverrides=function(){var M,q;(M=_.f_(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(q=M.polymerController)==null||q.set("overrides",this.joinButtonOverrides);if(M=_.f_(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))M.overrides=this.joinButtonOverrides};
_.N.handleButtonRefreshAction=function(M){if(M=_.C(M,aDJ))this.set("data.membershipButton",M.membershipButton),this.notifyPath("data.membershipButton")};
_.N.onYtServiceRequestError=function(M){_.Qu(this.hostElement,M.detail.error.message)};
_.N.onKeydown=function(M){if(M.key==="Enter"){var q;(q=this.data)!=null&&q.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)}};
_.N.handleUnsubscribeAction=function(){var M,q,G;((M=this.data)==null?void 0:(q=M.membershipButton)==null?void 0:(G=q.buttonRenderer)==null?void 0:G.style)==="STYLE_PRIMARY"&&_.f_(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Yd.Object.defineProperties(yV.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.subscriptionStateEntity)==null||!M.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var M,q=(M=this.data)==null?void 0:M.membershipButton,G;M=(q==null?void 0:q.buttonRenderer)||_.C(q==null?void 0:(G=q.timedAnimationButtonRenderer)==null?void 0:G.buttonRenderer,_.f1);return(M==null?void 0:M.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(M==null?void 0:M.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(M==null?void 0:M.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var M;if(this.hasShowDialogCommand((M=this.data)==null?void 0:M.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var M;if(this.hasShowDialogCommand((M=this.data)==null?void 0:M.navigationEndpoint))return"button"}},
hasAttributedTitle:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.attributedTitle)}}});
yV.prototype.onYtServiceRequestError=yV.prototype.onYtServiceRequestError;yV.prototype.updateJoinButtonOverrides=yV.prototype.updateJoinButtonOverrides;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],yV.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],yV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],yV.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],yV.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],yV.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.Z4),_.r("design:type",Object)],yV.prototype,"ironButtonState",void 0);_.T([_.B(),_.r("design:type",Object)],yV.prototype,"data",void 0);_.T([_.c("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.r("design:type",Object),_.r("design:paramtypes",[])],yV.prototype,"hideJoin",null);
_.T([_.B(),_.r("design:type",String)],yV.prototype,"subscribeKey",void 0);_.T([_.B({selectorArgs:["subscribeKey"],selector:K0$}),_.r("design:type",Object)],yV.prototype,"subscriptionStateEntity",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],yV.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.T([_.c("subscriptionStateEntity"),_.B({reflectToAttribute:!0}),_.r("design:type",Object),_.r("design:paramtypes",[])],yV.prototype,"subscribed",null);
_.T([_.c("subscribed","data.membershipButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],yV.prototype,"joinButtonOverrides",null);_.T([_.c("data.navigationEndpoint"),_.r("design:type",Object),_.r("design:paramtypes",[])],yV.prototype,"channelNameTabIndex",null);_.T([_.c("data.navigationEndpoint"),_.r("design:type",Object),_.r("design:paramtypes",[])],yV.prototype,"channelNameRole",null);
_.T([_.c("data.attributedTitle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],yV.prototype,"hasAttributedTitle",null);_.T([_.KT("joinButtonOverrides"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yV.prototype,"updateJoinButtonOverrides",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],yV.prototype,"onYtServiceRequestError",null);
_.T([_.b({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],yV);
var qAn=_.jo()(yV,"ytd-video-owner-renderer",function(){if(svg===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);svg=M}M=svg;return M},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.S5(_.U(function(M){var q=M.data;var G;M=_.k(_.lQ(!((G=_.d2("yt-mini-app-is-theater-mode-enabled"))==null||!G),void 0,"i2pjVd"));var K=M.next().value,n=M.next().value;G=_.k(_.lQ(!1,void 0,"ga7V5c"));var E=G.next().value,p=G.next().value;_.SK(function(){var A=_.Yj(window,pxx,function(){p(LdS())});
_.m_(function(){pl(A)})});
var y;G=(y=_.AL().resolve(_.WR(XyR)))!=null?y:function(){return _.W("div",null)};
_.kI("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){n(!0);_.AK("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.kI("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){n(!1);_.AK("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
y={};M={};var Y={};return _.W("mini-app-play-page-renderer",{class:_.Hb("miniAppPlayPageRendererHost",(y.miniAppPlayPageRendererHostDetailsView=function(){return!K()},y))},_.W("div",{class:_.Hb("miniAppPlayPageRendererGameContainer",(M.miniAppPlayPageRendererGameContainerDetailsView=function(){return!K()},M))},_.W(_.yu,{data:function(){return q().containerViewModel}},{miniAppContainerViewModel:j8g}),_.W(_.d,{cond:function(){return q().channel&&q().subscribeButton},
then:function(){var A={};return _.W("div",{class:_.Hb("miniAppPlayPageRendererChannelContainer",(A.miniAppPlayPageRendererHideVisibility=function(){return E()},A))},_.W(_.yu,{data:function(){return q().channel}},{videoOwnerRenderer:function(v){return _.W(qAn,{data:v.data})}}),_.W(_.yu,{data:function(){return q().subscribeButton}},{subscribeButtonViewModel:function(v){return _.W(_.zR,{data:v.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.W(_.d,{cond:function(){return!K()&&q().description},
then:function(){var A={};return _.W("div",{class:_.Hb("miniAppPlayPageRendererMiniAppDescriptionWrapper",(A.miniAppPlayPageRendererHideVisibility=function(){return E()},A))},_.W("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return q().description}))}})),_.W("div",{class:_.Hb("miniAppPlayPageRendererPlayNextContainer",(Y.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!K()},Y.miniAppPlayPageRendererHideVisibility=function(){return E()},Y))},_.W(_.yu,{data:function(){return q().sectionList}},
{sectionListRenderer:G})))},"dg"),"mini-app-play-page-renderer",{props:{data:_.Hz}});var Ly=function(){var M=_.Q.apply(this,arguments)||this;M.isSearch=!1;M.isConstrainedList=!1;M.hasChipsBar=!1;M.inReplyPanel=!1;M.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"}};M.monitorScroll=!0;M.SCROLL_ANIMATION_DURATION_MS=300;M.nextContinuation={continuationType:"sectionListContinuation"};return M};
_.l(Ly,_.Q);_.N=Ly.prototype;
_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedChannelFilterHeaderRenderer:{component:"ytd-feed-channel-filter-header-renderer",noInjection:!0},textHeaderRenderer:{component:"ytd-text-header-renderer",noInjection:!0},richListHeaderRenderer:{component:"ytd-rich-list-header-renderer",noInjection:!0},headerWithBackRenderer:{component:"yt-header-with-back-renderer",noInjection:!0},feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",noInjection:!0,
properties:{isClipList:"[[isClipList]]"}},liveChatItemDisplayRenderer:{component:"yt-live-chat-item-display-renderer",noInjection:!0,params:{isHeader:!0}},chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},"data.subMenu":{id:"sub-menu",mapping:{searchSubMenuRenderer:{component:"ytd-search-sub-menu-renderer",noInjection:!0},channelSubMenuRenderer:{component:"ytd-channel-sub-menu-renderer",noInjection:!0},channelListSubMenuRenderer:{component:"ytd-channel-list-sub-menu-renderer",noInjection:!0},
sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",noInjection:!0}}},shownItems:{id:"contents",mapping:{itemSectionRenderer:{matcher:function(M){switch(M.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:_.w("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.w("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",
properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.N.created=function(){var M=this;this.JSC$17191_scrollAnimation=new _.M7(function(q){M.hostElement.scrollTop=q})};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.N.getItemsPath=function(){return"data.contents"};
_.N.replacePrimaryContent=function(M){this.set("data.contents",M)};
_.N.computeHasSortFilter=function(M){return!!M&&!!M.sortFilterSubMenuRenderer};
_.N.computeShouldScrollInPanel=function(M){var q;return!!(M==null?0:(q=M.scrollPaneStyle)==null?0:q.scrollable)};
_.N.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.HE(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.N.scrollToTop=function(){this.hostElement.scrollTop=0};
_.N.scrollToItemSection=function(M){if(M=this.getItemByIdentifier(M))M=this.getScrollPositionForItem(M),this.hostElement.scrollTop!==M&&this.JSC$17191_scrollAnimation.start(this.hostElement.scrollTop,M,this.SCROLL_ANIMATION_DURATION_MS)};
_.N.getItemByIdentifier=function(M){var q=this.contents.querySelectorAll("ytd-item-section-renderer");if(q&&q.length!==0){var G=Array.from(q).findIndex(function(K){return K.sectionIdentifier===M});
return q[G===-1?0:G]}};
_.N.getScrollPositionForItem=function(M){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===M)return 0;M=_.rq(M).y+this.hostElement.scrollTop-_.rq(this.hostElement).y;return Math.min(M,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Yd.Object.defineProperties(Ly.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.targetId)==="browse-feedFEclips"}}});
Ly.prototype.onScroll=Ly.prototype.onScroll;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ly.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Ly.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],Ly.prototype,"ytLazyListBehavior",void 0);_.T([_.P(_.M4.YtNextContinuationBehavior),_.r("design:type",Object)],Ly.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.P(_.SM5),_.r("design:type",Object)],Ly.prototype,"ytBooleanLogicBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],Ly.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ly.prototype,"data",void 0);_.T([_.B({value:2}),_.r("design:type",Number)],Ly.prototype,"initialCount",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],Ly.prototype,"autoFill",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.r("design:type",Boolean)],Ly.prototype,"hasSortFilter",void 0);_.T([_.B({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.r("design:type",Boolean)],Ly.prototype,"hideBottomSeparator",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.r("design:type",Boolean)],Ly.prototype,"shouldScrollInPanel",void 0);
_.T([_.B(),_.r("design:type",Object)],Ly.prototype,"isSearch",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Ly.prototype,"isConstrainedList",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Ly.prototype,"responsiveSizing",void 0);_.T([_.B(),_.r("design:type",Object)],Ly.prototype,"hasChipsBar",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Ly.prototype,"pageSubtype",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ly.prototype,"engagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ly.prototype,"liveChatEngagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Ly.prototype,"inReplyPanel",void 0);_.T([_.ET("#action-button"),_.r("design:type",HTMLElement)],Ly.prototype,"actionButton",void 0);_.T([_.B(),_.r("design:type",Object)],Ly.prototype,"scrollUpButtonData",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ly.prototype,"engagementPanelDropdown",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Ly.prototype,"engagementPanelDialog",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ly.prototype,"isClipList",null);_.T([_.ET("#contents"),_.r("design:type",HTMLElement)],Ly.prototype,"monitorScrollElement",void 0);_.T([_.ET("#contents"),_.r("design:type",HTMLElement)],Ly.prototype,"contents",void 0);
_.T([_.GQ("scroll"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ly.prototype,"onScroll",null);_.T([_.b({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Ly);
var G38=_.jo()(Ly,"ytd-section-list-renderer",function(){if(lFI===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);lFI=M}M=lFI;return M},{mode:1});var KLI;var nCL;var ECP;var NWv;var Y0=function(){return _.Q.apply(this,arguments)||this};
_.l(Y0,_.Q);Y0.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
Y0.prototype.onLikeButtonClick=function(M){M.stopPropagation();M.preventDefault()};
_.Yd.Object.defineProperties(Y0.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)!=null&&M.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)})}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Y0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Y0.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Y0.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Y0.prototype,"ytRendererStamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Y0.prototype,"data",void 0);
_.T([_.B({selectorArgs:["data.likeStatusEntityKey"],selector:l8}),_.r("design:type",Object)],Y0.prototype,"likeStatusEntity",void 0);_.T([_.c("data","likeStatusEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],Y0.prototype,"likeButtonRenderer",null);_.T([_.b({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],Y0);
_.z(Y0,"ytd-slim-metadata-toggle-button-renderer",function(){if(NWv!==void 0)return NWv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return NWv=M},{mode:1});var WC=function(){var M=_.Q.apply(this,arguments)||this;M.minimizePipBreakages=_.w("web_pip_minimize_breakages");M.showEqualizer=_.w("web_enable_playlist_video_lockup_equalizer");M.watchColorUpdate=_.w("kevlar_watch_color_update");M.actionMap={};return M};
_.l(WC,_.Q);_.N=WC.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:"left"}}}},"data.actionButtons":{id:"action-buttons",mapping:{slimMetadataToggleButtonRenderer:"ytd-slim-metadata-toggle-button-renderer"}}}};
_.N.computeEditableClass=function(M){return M&&M.menu?"editable":""};
_.N.computeSelected=function(M){return!(M==null||!M.selected)};
_.N.computeUseColorPalette=function(M){return!!((M==null?0:M.lightColorPalette)&&(M==null?0:M.darkColorPalette))};
_.N.computeLargerPlaylistThumbs=function(M,q){return _.w("web_enable_playlist_bigger_thumbnails")&&!q};
_.N.computeShowPlayIcon=function(M){return!!M&&_.w("web_use_play_icon_for_playlist_panel_video_renderer")};
_.N.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.N.onYtServiceRequestSent=function(M,q){q.endpoint&&this.isHideEnclosingAction(q.endpoint)&&!this.selected&&Pll(_.KV(),this.data.videoId)};
_.N.isHideEnclosingAction=function(M){var q=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",M);M=this.get("likeEndpoint.status",M)==="INDIFFERENT";return q||M};
_.N.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.N.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Yd.Object.defineProperties(WC.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
playIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"play":"play_arrow"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var M;return!!(this.withinMiniplayer&&((M=this.data)==null?0:M.actionButtons))}}});
WC.prototype.onYtServiceRequestSent=WC.prototype.onYtServiceRequestSent;WC.prototype.canReorderChanged=WC.prototype.canReorderChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],WC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],WC.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],WC.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.HJ),_.r("design:type",Object)],WC.prototype,"ytdLockupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],WC.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WC.prototype,"withinMiniplayer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],WC.prototype,"minimizePipBreakages",void 0);_.T([_.B({computed:"computeSelected(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],WC.prototype,"selected",void 0);
_.T([_.B({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],WC.prototype,"useColorPalette",void 0);_.T([_.B({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.r("design:type",Boolean)],WC.prototype,"largerPlaylistThumbs",void 0);_.T([_.B(),_.r("design:type",Object)],WC.prototype,"showEqualizer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WC.prototype,"canReorder",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WC.prototype,"touchPersistentDragHandle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WC.prototype,"handleIsHovered",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],WC.prototype,"watchColorUpdate",void 0);_.T([_.B(),_.r("design:type",String),_.r("design:paramtypes",[])],WC.prototype,"reorderIcon",null);
_.T([_.B({computed:"computeShowPlayIcon(selected)",reflectToAttribute:!0}),_.r("design:type",Boolean)],WC.prototype,"showPlayIcon",void 0);_.T([_.B(),_.r("design:type",String),_.r("design:paramtypes",[])],WC.prototype,"playIcon",null);_.T([_.c("largerPlaylistThumbs"),_.r("design:type",Number),_.r("design:paramtypes",[])],WC.prototype,"thumbnailWidth",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],WC.prototype,"showActionButtons",null);
_.T([_.yO("canReorder"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WC.prototype,"canReorderChanged",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],WC.prototype,"onYtServiceRequestSent",null);_.T([_.b({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],WC);
_.z(WC,"ytd-playlist-panel-video-renderer",function(){if(ECP!==void 0)return ECP;var M=document.createElement("template");_.X(M,'\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="[[showPlayIcon]]" 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="" 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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return ECP=M},{mode:2});var AP=function(){return _.Q.apply(this,arguments)||this};
_.l(AP,_.Q);AP.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],AP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],AP.prototype,"data",void 0);_.T([_.b({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],AP);
_.z(AP,"ytd-playlist-panel-supported-items",function(){if(nCL!==void 0)return nCL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return nCL=
M},{mode:1});Wg$=!0;eWM("\\P{N}");var Efe;var k3w=_.Ge("END_OF_PLAYLIST",void 0,"End of playlist"),ptg=_.Ge("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),du=function(){var M=_.Q.apply(this,arguments)||this;M.minimizePipBreakages=_.w("web_pip_minimize_breakages");M.hideHeaderText=!1;M.useColorPalette=!1;M.collapsed=!1;M.collapsedPreServerOverride="not_tracked";M.isHovered=!1;M.expandLabel=_.Ge("MINIPLAYER_EXPAND_LABEL");M.collapseLabel=_.Ge("MINIPLAYER_COLLAPSE_LABEL");M.isFloating=!1;M.metaPanel=
!1;M.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};M.currentIndex=void 0;return M};
_.l(du,_.Q);_.N=du.prototype;
_.N.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"}}}};
_.N.created=function(){var M=this;this.scrollThrottle=new _.qA(this.onThrottledScroll,1E3,this);this.JSC$17210_ytReorderableController=new _.sad(56,function(q){M.handleDrop(q)})};
_.N.onMouseEnter=function(){this.isHovered=!0};
_.N.onMouseLeave=function(){this.isHovered=!1};
_.N.computeOverflowMenuData=function(M){return M&&M.menu?M.menu:null};
_.N.computeCollapsible=function(M){return!M};
_.N.computeHasPlaylistButtons=function(M){return!(!M||!M.playlistButtons)};
_.N.computeHasSeparateSaveButton=function(M){return!(!M||!M.saveButton)};
_.N.computeHasToolbarButton=function(M,q){return!(!M||!(q||M.saveButton||M.menu))};
_.N.computePlaylistType=function(M){if(M&&M.playlistId)return M.playlistId.substring(0,4)};
_.N.computeCanReorder=function(M){return M?M.playlistId&&M.playlistId.startsWith("TLPQ")?!0:!!M.isEditable&&!M.isInfinite:!1};
_.N.attached=function(){var M=this;try{_.AL().resolve(_.$x).setPlaylistComponent(this.hostElement)}catch(q){if(_.w("kevlar_park_on_playlist_token_killswitch"))throw q;_.M5().parkOrScheduleJob(function(){_.AL().resolve(_.$x).setPlaylistComponent(M.hostElement)},2,"ci")}_.Tt(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.N.detached=function(){_.rt(this.hostElement);_.X5(this.JSC$17210_ytReorderableController)};
_.N.computeTrailingIcon=function(M,q,G){return G?q?"yt-icons:collapse":"yt-icons:close":q?"yt-icons:expand":_.w("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.N.computeIndexMessage=function(M,q){return pH$(M+1)+" / "+pH$(q)};
_.N.onRenderStamperFinished=function(){if(this.scrollForStampDom){var M=!0;this.isHovered&&(M=!1);if(this.collapsed||this.hidden)M=!1;M&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.N.collapseChanged=function(){var M=this;this.collapsed||(_.MK(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.N.hiddenChanged=function(){var M=this;this.hidden||_.MK(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.scrollToCurrentVideo()})};
_.N.setupReordering=function(){var M=_.f_(this.hostElement).querySelector("#items");g9d?_.MYf(this.JSC$17210_ytReorderableController,M,M,"playlist-drag-handle"):_.MYf(this.JSC$17210_ytReorderableController,M,M)};
_.N.scrollToCurrentVideo=function(){var M=this;_.r8.addJob(function(){var q=_.f_(M.hostElement).querySelector("#items");if(q){q.style.setProperty("padding-bottom","");var G=_.f_(M.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(G){q=G.parentElement||_.o5(document);var K=q||_.o5(document);var n=_.rq(G),E=_.rq(K),p=_.zqM(K);if(K==_.o5(document)){var y=n.x-K.scrollLeft;n=n.y-K.scrollTop}else y=n.x-E.x-p.left,n=n.y-E.y-p.top;G=Z88(G);E=K.clientHeight-
G.height;p=K.scrollLeft;var Y=K.scrollTop;p+=y-(K.clientWidth-G.width)/2;K=new _.mK(p,Y+(n-E/2));q.scrollLeft=K.x;q.scrollTop=K.y}}},8)};
_.N.dataChanged=function(){var M=this;_.X5(this.JSC$17210_ytReorderableController);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.yb(this,function(){_.Jp(M.ytTaskEmitterBehavior.getTaskManager(),function(){M.ytRendererBehavior.markDirty();M.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.N.onFullBleedPlayerChanged=function(){_.w("web_watch_imax_theater_mode")&&(this.isFullBleedPlayer?this.setCollapsed(!0):this.setCollapsed(!1))};
_.N.onFullscreenChanged=function(){_.w("web_watch_imax_theater_mode")||_.w("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.N.updateNowPlayingOverlay=function(){_.w("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.N.onPlaylistLockupNowPlaying=function(M,q){q&&(this.activeNowPlayingRenderer=q);this.updateNowPlayingOverlay()};
_.N.onScroll=function(){this.scrollThrottle.fire()};
_.N.onThrottledScroll=function(){var M=this;_.Jp(this.ytTaskEmitterBehavior.getTaskManager(),function(){M.ytRendererBehavior.markDirty()})};
_.N.onToggleExpanded=function(M){!this.collapsible||M&&(_.ba(M).tagName==="A"||_.b8(_.Zx(M),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.N.setCollapsed=function(M){this.collapsible&&(this.collapsed=M,_.Rf(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.N.handleCollapsedFromData=function(M){if(M){var q=M.playlistPanelCollapseState;q==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||q==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),q=q==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==q&&this.setCollapsed(q)):this.currentPlaylistId!==M.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(q=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==q&&this.setCollapsed(q),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=M.playlistId}};
_.N.handleDrop=function(M){var q=M.currDragItem;M=q.data.playlistSetVideoId;var G=_.xs(q.parentNode.childNodes,q),K=void 0;G>0&&(K=q.parentNode.childNodes[G-1].data.playlistSetVideoId);q=_.KV();if(q.responsePlaylistData&&q.responsePlaylistData.contents){var n=$J4(M,q.responsePlaylistData);q.responsePlaylistData=(0,_.xP.unsafeClone)(q.responsePlaylistData);UDs(q.responsePlaylistData.contents,n,G);q.queueProxy?qtl(q.queueProxy,n,G,M,K):q.playlistProxy&&qtl(q.playlistProxy,n,G,M,K);_.nV(q,_.E_(q,q.response?
q.response.autoplayRenderer:void 0))}};
_.N.handleDarkModeChange=function(M){M!==this.isDarkTheme&&(this.isDarkTheme=M)};
_.N.colorPaletteChanged=function(){var M,q=((M=this.data)==null?void 0:M.contents)||[],G;M=_.k(q);for(q=M.next();!q.done;q=M.next()){q=q.value;var K=void 0;if((K=q.playlistPanelVideoRenderer)==null?0:K.selected){M=q.playlistPanelVideoRenderer;K=q=void 0;(G=this.isDarkTheme?(q=M)==null?void 0:q.darkColorPalette:(K=M)==null?void 0:K.lightColorPalette)&&_.dk(this.hostElement,G);break}}this.useColorPalette=!!G};
_.Yd.Object.defineProperties(du.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.moveThreeDotsMenuToMainHeader)&&_.w("course_hide_playlist_panel_shuffle_and_loop_buttons")}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var M=_.AL().resolve(_.WR(_.$x)),q;if(((q=this.data)==null?0:q.contents)&&(M==null?0:M.hasAutoplayData())){var G;if(((G=this.playlistLoopStateEntity)==null?void 0:G.state)==="PLAYLIST_LOOP_STATE_ONE"){if(M=this.data.currentIndex,M!==void 0){var K,n;var E=(K=this.data.contents[M])==null?void 0:(n=K.playlistPanelVideoRenderer)==null?void 0:n.title}}else{var p,y=(p=_.C(M.getAutoplayEndpoint(),_.Jl))==null?void 0:p.videoId,Y,A;E=(Y=this.data.contents.find(function(v){var h;
return((h=v.playlistPanelVideoRenderer)==null?void 0:h.videoId)===y}))==null?void 0:(A=Y.playlistPanelVideoRenderer)==null?void 0:A.title}return E}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)!=null&&M.nextVideoLabel?this.nextVideoTitle?_.UX(this.data.nextVideoLabel)+":":k3w:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?0:M.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN"&&!_.w("web_mix_long_byline_from_data"))return _.bc(ptg);var q;return(q=this.data)==null?void 0:q.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K=(M=this.data)==null?void 0:(q=M.playlistButtons)==null?void 0:(G=q.menuRenderer)==null?void 0:G.topLevelButtons;if(K)for(M=_.k(K),q=M.next();!q.done;q=M.next())if(q=q.value,q.playlistLoopButtonRenderer)return q.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var M;return!!(this.collapsed&&((M=this.data)==null?0:M.nextVideoLabel))}},
isFullBleedPlayer:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_imax_theater_mode")?this.isTheaterMode||this.isFullscreen:!1}}});
du.prototype.colorPaletteChanged=du.prototype.colorPaletteChanged;du.prototype.onPlaylistLockupNowPlaying=du.prototype.onPlaylistLockupNowPlaying;du.prototype.updateNowPlayingOverlay=du.prototype.updateNowPlayingOverlay;du.prototype.onFullscreenChanged=du.prototype.onFullscreenChanged;du.prototype.onFullBleedPlayerChanged=du.prototype.onFullBleedPlayerChanged;du.prototype.dataChanged=du.prototype.dataChanged;du.prototype.hiddenChanged=du.prototype.hiddenChanged;du.prototype.collapseChanged=du.prototype.collapseChanged;
du.prototype.onRenderStamperFinished=du.prototype.onRenderStamperFinished;du.prototype.onMouseLeave=du.prototype.onMouseLeave;du.prototype.onMouseEnter=du.prototype.onMouseEnter;_.T([_.P(_.uz),_.r("design:type",Object)],du.prototype,"ironResizableBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],du.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(Pp8.YtPlaylistPanelBehavior),_.r("design:type",Object)],du.prototype,"ytPlaylistPanelBehavior",void 0);_.T([_.P(_.qt.YtTaskEmitterBehavior),_.r("design:type",Object)],du.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],du.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],du.prototype,"ytdReduxBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],du.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],du.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],du.prototype,"autoplayData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],du.prototype,"withinMiniplayer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],du.prototype,"minimizePipBreakages",void 0);
_.T([_.B({computed:"setMenuData_(data)"}),_.r("design:type",Object)],du.prototype,"menuRendererData",void 0);_.T([_.B({computed:"computeOverflowMenuData(data)"}),_.r("design:type",Object)],du.prototype,"overflowMenuDataTopRow",void 0);_.T([_.B({computed:"computeOverflowMenuData(data)"}),_.r("design:type",Object)],du.prototype,"overflowMenuData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],du.prototype,"hideHeaderText",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],du.prototype,"useColorPalette",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.r("design:type",Boolean)],du.prototype,"collapsible",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],du.prototype,"collapsed",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],du.prototype,"hidden",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.r("design:type",Boolean)],du.prototype,"hasPlaylistButtons",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.r("design:type",Boolean)],du.prototype,"hasSeparateSaveButton",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.r("design:type",Boolean)],du.prototype,"hasToolbar",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.r("design:type",String)],du.prototype,"playlistType",void 0);_.T([_.B(),_.r("design:type",Object)],du.prototype,"isHovered",void 0);_.T([_.B({selectorArgs:["playlistLoopStateEntityKey"],selector:_.IG.playlistLoopStateEntitySelector}),_.r("design:type",Object)],du.prototype,"playlistLoopStateEntity",void 0);_.T([_.B({computed:"computeCanReorder(data)"}),_.r("design:type",Boolean)],du.prototype,"canReorder",void 0);
_.T([_.B(),_.r("design:type",Object)],du.prototype,"expandLabel",void 0);_.T([_.B(),_.r("design:type",Object)],du.prototype,"collapseLabel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],du.prototype,"isFloating",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],du.prototype,"metaPanel",void 0);_.T([_.B({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.r("design:type",String)],du.prototype,"trailingIcon",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],du.prototype,"isDarkTheme",void 0);_.T([_.B({selector:_.at}),_.r("design:type",Boolean)],du.prototype,"miniplayerIsActive",void 0);_.T([_.B({selector:function(M){return M.watch.playerState}}),
_.r("design:type",Number)],du.prototype,"playerState",void 0);_.T([_.B({selector:_.a2}),_.r("design:type",Boolean)],du.prototype,"isFullscreen",void 0);_.T([_.B({selector:_.Cp}),_.r("design:type",Boolean)],du.prototype,"isTheaterMode",void 0);_.T([_.B(),_.r("design:type",Object)],du.prototype,"activeNowPlayingRenderer",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],du.prototype,"moveThreeDotMenuToTopRow",null);
_.T([_.c("data","autoplayData","playlistLoopStateEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],du.prototype,"nextVideoTitle",null);_.T([_.c("data","nextVideoTitle"),_.r("design:type",String),_.r("design:paramtypes",[])],du.prototype,"nextVideoLabel",null);_.T([_.c("collapsed"),_.r("design:type",String),_.r("design:paramtypes",[])],du.prototype,"buttonAriaLabel",null);
_.T([_.c("data","playlistId","longBylineText"),_.r("design:type",Object),_.r("design:paramtypes",[])],du.prototype,"mixLongByLine",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],du.prototype,"playlistLoopStateEntityKey",null);_.T([_.GQ("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"onMouseEnter",null);
_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"onMouseLeave",null);_.T([_.B({reflectToAttribute:!0}),_.c("data","collapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],du.prototype,"showNextVideoHeader",null);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"onRenderStamperFinished",null);
_.T([_.KT("collapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"collapseChanged",null);_.T([_.KT("hidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"hiddenChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"dataChanged",null);
_.T([_.c("isTheaterMode","isFullscreen"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],du.prototype,"isFullBleedPlayer",null);_.T([_.KT("isTheaterMode","isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"onFullBleedPlayerChanged",null);_.T([_.KT("isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"onFullscreenChanged",null);
_.T([_.KT("playerState","miniplayerIsActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"updateNowPlayingOverlay",null);_.T([_.GQ("yt-playlist-lockup-now-playing-active"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],du.prototype,"onPlaylistLockupNowPlaying",null);
_.T([_.KT("data","isDarkTheme"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],du.prototype,"colorPaletteChanged",null);_.T([_.b({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],du);
_.y9n=_.jo()(du,"ytd-playlist-panel-renderer",function(){if(KLI===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);KLI=M}M=KLI;return M},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var LLg;var vC=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_button_rework");return M};
_.l(vC,_.Q);vC.prototype.computeShouldButtonBeVertical=function(M,q){return M||q};
vC.prototype.onYtServiceRequestSent=function(M,q){(M=_.C(q.endpoint,_.oU))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.LL("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:M.status})):this.handleLikeEndpoint(M))};
vC.prototype.computelikeStatusEntityKey=function(M){return M==null?void 0:M.likeStatusEntityKey};
vC.prototype.handleLikeEndpoint=function(M){M.status==="LIKE"?this.JSC$17217_ytdDislikeToggleButtonRenderer.toggle(!1):M.status==="DISLIKE"?this.JSC$17217_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$17217_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$17217_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Yd.Object.defineProperties(vC.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var M;return Yr$(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(M=this.likeStatusEntity)==null?void 0:M.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var M;if(this.data&&((M=this.data)==null||!M.hideDislikeButton)){var q;return Yr$(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(q=this.likeStatusEntity)==null?void 0:q.likeStatus)}}}});
vC.prototype.onYtServiceRequestSent=vC.prototype.onYtServiceRequestSent;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],vC.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],vC.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],vC.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],vC.prototype,"vertical",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],vC.prototype,"textTransform",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],vC.prototype,"useShortsIcon",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],vC.prototype,"underIconLabel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],vC.prototype,"modern",void 0);_.T([_.B({value:"left"}),_.r("design:type",String)],vC.prototype,"buttonTooltipPosition",void 0);
_.T([_.B(),_.r("design:type",Object)],vC.prototype,"overrides",void 0);_.T([_.ET("#like-button"),_.r("design:type",Object)],vC.prototype,"JSC$17217_ytdLikeToggleButtonRenderer",void 0);_.T([_.ET("#dislike-button"),_.r("design:type",Object)],vC.prototype,"JSC$17217_ytdDislikeToggleButtonRenderer",void 0);_.T([_.c("data","likeStatusEntity.likeStatus","useShortsIcon"),_.r("design:type",Object),_.r("design:paramtypes",[])],vC.prototype,"likeButton",null);
_.T([_.c("data","likeStatusEntity.likeStatus","useShortsIcon"),_.r("design:type",Object),_.r("design:paramtypes",[])],vC.prototype,"dislikeButton",null);_.T([_.B({computed:"computelikeStatusEntityKey(data)"}),_.r("design:type",String)],vC.prototype,"likeStatusEntityKey",void 0);_.T([_.B({selectorArgs:["likeStatusEntityKey"],selector:l8}),_.r("design:type",Object)],vC.prototype,"likeStatusEntity",void 0);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],vC.prototype,"onYtServiceRequestSent",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],vC);
var YAU=_.jo()(vC,"ytd-like-button-renderer",function(){if(LLg===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);LLg=M}M=LLg;return M},{mode:1});_.WLw={};
_.WLw.YtConditionalRendererBehavior=[_.F.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(M,q){var G=this,K,n;return _.L(function(E){switch(E.nextAddress){case 1:if(!q)return G.hidden=!0,G.showSpinner=!1,E.return();if((K=M)==null?0:(n=K.visibilityCondition)==null?0:n.mode)switch(M.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return E.jumpTo(5);default:return E.jumpTo(6)}G.showSpinner=
!1;G.hidden=!0;return E.yield(G.shouldShow_(M),4);case 4:G.hidden=!E.yieldResult;E.jumpTo(0);break;case 5:return E.yield(G.shouldShow_(M),8);case 8:G.showSpinner=E.yieldResult;G.hidden=!1;E.jumpTo(0);break;case 6:return G.showSpinner=!1,E.yield(G.shouldShow_(M),9);case 9:G.hidden=!E.yieldResult,_.gL(E)}})},
shouldShow_:function(M){return M&&M.supportedDatas&&M.supportedDatas.rendererVisibilityConditionData&&M.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(M.supportedDatas.rendererVisibilityConditionData.showIf):M&&M.visibilityCondition&&M.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(M.visibilityCondition.showIf):M&&M.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(M.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(M){switch(M){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(M){switch(M){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var M=_.VW(this.hostElement,"yt-get-mdx-status");return M.length==1&&M[0].connected},
isLocationPermissionGranted_:function(){var M;return _.L(function(q){return q.nextAddress==1?navigator.permissions?q.yield(navigator.permissions.query({name:"geolocation"}),3):q.jumpTo(2):q.nextAddress!=2?(M=q.yieldResult,q.return(Promise.resolve(M.state==="granted"))):q.return(Promise.resolve(!1))})}}];var A95=VVi("yt-icon",{callbackProps:["onKeydown"]}),dan=_.w("kevlar_use_wil_icons")?_.U(function(M){var q=M.icon;var G=M.active;var K=M.className;var n=M.style;var E=M.size;var p=M.dataSelected;var y=M.dataDisabled;var Y=M.role;var A=M.themeOverride;var v=M.animateIcon;var h=M.ariaHidden;var t=M.ariaExpanded;var O=M.ariaLabel;var a=M.tabindex;var g=M.id;var D=M.iconFilter;var J=M.gradientColor;var Z=M.onKeydown;var V=function(){var R=q==null?void 0:q(),se=null,yY=void 0;R&&(R=qk9(R),R=wC4(R),R.length&&
(se=R[1],yY=R[0]));return{iconName:se,iconSetName:yY}},S=function(){return G82(V().iconName,G==null?void 0:G(),void 0,E==null?void 0:E(),V().iconSetName,_.AL().resolve(_.eo))},m=function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:D==null?void 0:D(),iconColor:J==null?void 0:J()}};
return _.W(_.d,{cond:v,then:function(){return _.W(A95,{icon:q,active:G,className:K,style:n,dataSelected:p,dataDisabled:y,role:Y,themeOverride:A,ariaHidden:h,ariaExpanded:t,ariaLabel:O,tabindex:a,id:g,iconFilter:D,gradientColor:J,onKeydown:Z})},
else:function(){return _.W(_.d,{cond:S,then:function(R){return _.W("span",{class:_.Hb("ytIconWrapperHost",K),role:Y,"aria-label":O,"aria-hidden":h,tabindex:function(){return isNaN(Number(a==null?void 0:a()))?void 0:Number(a==null?void 0:a())},
id:g,style:n,"on:keydown":_.sq(function(se){return void(Z==null?void 0:Z(se))})},_.W(S$i,{data:R,
options:m}))}})}})},"eg"):A95;var vC5=function(M){var q=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];hxe();_.Y5("ytglobal.ytUtilActivityCallback_",function(){_.Rf(M,"yt-user-activity")});
new Yc(function(){return q.JSC$17233_onMouseMove});
document.addEventListener("scroll",function(){return q.onScroll});
window.addEventListener("resize",function(){return q.onResize})},hGL=function(M,q,G){q in M.eventJobIds||(G=_.AM().addLowPriorityJob(function(){_.Wr();
delete M.eventJobIds[q]},G),M.eventJobIds[q]=G)};
vC5.prototype.onScroll=function(M){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):M.target===document&&hGL(this,"scroll",200)};
vC5.prototype.onResize=function(){hGL(this,"resize",200)};
vC5.prototype.JSC$17233_onMouseMove=function(){hGL(this,"mousemove",100)};
_.EW=function(M){M.scrollEventsToIgnore+=1;M.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){M.scrollEventsToIgnore--},500))};var tMv=function(M){this.element=M;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
tMv.prototype.showFeedbackDialog=function(M,q,G,K){var n=OGP();if(!n)return!1;var E=ofy();E.productId=n;q&&(E.flow="submit",E.report={description:q});G&&(OGP()==="59"?E.callback=_.$2(function(){_.ml("userFeedbackEvent",{});G()}):E.callback=_.$2(G));
E.bucket=K||_.R9("GOOGLE_FEEDBACK_BUCKET","Other");wts(E);M=CyI(this,"GFEEDBACK",M);try{_.ysS(E,M)}catch(p){return _.eK(p),!1}return!0};
tMv.prototype.showHelpDialog=function(M,q,G){var K=this,n=OGP();if(!n)return!1;var E={helpCenterPath:"/youtube",productData:CyI(this,"GUIDED_HELP",G)};wts(E);var p=ofy();p.context=M||E.productData.context||"default";p.defaultHelpArticleId=q;p.enableSendFeedback=!0;(_.sx("gapi.load")||function(y,Y){return Y()})("client",function(){try{var y=dlv(n,E);
if(_.w("web_always_load_chat_support")&&!K.chatSupportLoaded)try{y.JSC$9979_loadChatSupport(p),K.chatSupportLoaded=!0}catch(Y){}y.startHelp(p)}catch(Y){_.eK(Y)}})};
var OGP=function(){var M=_.R9("GOOGLE_FEEDBACK_PRODUCT_ID");M||_.eK(Error("gi"));return M},wts=function(M){M&&(M.locale=_.w("kevlar_help_use_locale")?_.R9("INNERTUBE_CONTEXT_HL","en"):_.R9("HTML_LANG","en"))},CyI=function(M,q,G){var K=M.productData;
delete K.origin;K.device=_.Oe();var n;a:{if(n=document.createElement("canvas")){var E=n.getContext("experimental-webgl",{stencil:!0});if(E){var p=E.getExtension("WEBGL_debug_renderer_info");if(p){n=E.getParameter(p.UNMASKED_RENDERER_WEBGL);break a}}if(E=n.getContext("webgl")){n=E.getParameter(E.RENDERER);break a}}n=null}K.gpu=n;K.isSDC=!!_.R9("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(n=_.R9("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.xP.extend(K,n);_.CTe(q,K);_.avy(K);(M=_.Rf(M.element,"yt-get-autonav-pause-debug-state"))&&
M.length&&(K.autonav_pause_state=M[0]);M=_.Bc();K.browser_resolution=M.width+"\u00d7"+M.height+"@"+(window.devicePixelRatio||1)+"x";G&&_.xP.extend(K,G);return K};
tMv.prototype.resetProductData=function(){this.productData={}};var aCI=function(M){this.feedbackManager=new tMv(M)};
aCI.prototype.showFeedbackDialog=function(M,q,G,K){return this.feedbackManager.showFeedbackDialog(M,q,G,K)};
aCI.prototype.showHelpDialog=function(M,q,G){return this.feedbackManager.showHelpDialog(M,q,G)};var oCg=function(){this.baseUrl="";this.aTag=document.createElement("a")},uV9=function(M,q,G){G=G===void 0?{}:G;
G.pbj||(G.pbj=1);G=_.sZH(q,G);M.baseUrl&&G&&!_.kJ(G)[1]&&!_.pD(G)&&(q=M.baseUrl,ks(q,"/")&&(q=q.slice(0,-1)),_.Ee(G,"/")&&(G=G.slice(1)),G=q+"/"+G);Vk(M.aTag,_.z3(G||""));return M.aTag.href};
oCg.prototype.fetchData=function(M){return _.dcj(M)};
oCg.prototype.postData=function(M,q){var G={method:"POST"};if(q){for(var K=_.k(Object.keys(q)),n=K.next();!n.done;n=K.next()){n=n.value;var E=q[n];_.VY(E)&&(q[n]=JSON.stringify(E))}G.postParams=q}return _.dcj(M,G)};
_.JWx=function(M,q,G,K,n){M=uV9(M,q,G);if(!M)throw K=Error("hi"),Object.assign(K,{params:q}),K;return _.dcj(M,n,K)};
oCg.prototype.requestDataForServiceEndpoint=function(M,q){if(_.C(M,_.XZH))return this.fetchData("/getAccountSwitcherEndpoint");q=q||{};var G=_.C(M,h6S);G?q.se=G.base64EncodedServiceEndpoint:q.sej=JSON.stringify(M);(G=_.Cx())&&_.w("enable_service_ajax_csn")&&(q.csn=G);q.theme=_.cE();_.C(M,o7i)&&_.R9("DELEGATION_CONTEXT")&&(q.delegation_context=JSON.stringify(_.R9("DELEGATION_CONTEXT")));G=null;for(var K in M)if(ks(K,"Endpoint")||ks(K,"Command")){G=K;break}if(!G){var n=Error("ii");Object.assign(n,{params:M});
_.Hp4(n,"WARNING");return new _.X4(function(p,y){y(n)})}K={name:G};
var E;(G=(E=_.C(M,_.sl))==null?void 0:E.signal)&&(K.signal=G);(E=_.nD(window.location.href))&&E.internalcountrycode&&(K.internalcountrycode=E.internalcountrycode);E="/service_ajax";_.w("debug_forward_web_query_parameters")&&(E=_.Wbu(E,window.location.search));E=_.Nz(E,K);M.clickTrackingParams&&_.xD(E,{itct:M.clickTrackingParams});return this.postData(E,q)};_.lCR=new _.$k("GFEEDBACK_TOKEN");var XtR;var Py8;var iGI;var c9w;var hP=function(){var M=_.Q.apply(this,arguments)||this;M.compact=!1;M.dismissButtonDisabled=!1;M.shouldRenderReasonAsFormattedString=!_.w("web_player_error_message_reason_as_formatted_string_killswitch");return M};
_.l(hP,_.Q);hP.prototype.computeHasIcon_=function(M){return!!M};
hP.prototype.isSignInIcon_=function(M){return M=="yt-icons:prompted_sign_in"};
hP.prototype.onDismissButtonClick=function(){var M=this,q=this.data.disableOnClick,G,K=(G=this.data.dismissButton)==null?void 0:G.buttonRenderer;q&&!this.dismissButtonDisabled&&K&&setTimeout(function(){M.dismissButtonDisabled=!0},0)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hP.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.WLw.YtConditionalRendererBehavior),_.r("design:type",Object)],hP.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hP.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.icon)"}),_.r("design:type",Object)],hP.prototype,"icon_",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.r("design:type",Boolean)],hP.prototype,"hasIcon_",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.r("design:type",Boolean)],hP.prototype,"signInIcon_",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],hP.prototype,"compact",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],hP.prototype,"dismissButtonDisabled",void 0);
_.T([_.B({type:Boolean}),_.r("design:type",Object)],hP.prototype,"shouldRenderReasonAsFormattedString",void 0);_.T([_.aO({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],hP);
_.z(hP,"yt-player-error-message-renderer",function(){if(c9w===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;iGI===void 0&&(iGI=document.createElement("template"));var K=iGI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);c9w=M}M=c9w;return M},{mode:2});var gCE;var BWI;var tP=function(){return _.Q.apply(this,arguments)||this};
_.l(tP,_.Q);tP.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
tP.prototype.computeIcon_=function(M){return M?"yt-icons:"+M.iconType.toLowerCase():"error_outline"};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],tP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tP.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tP.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.icon)"}),_.r("design:type",Object)],tP.prototype,"icon_",void 0);_.T([_.aO({is:"yt-player-kav-renderer",disableElementRegistration:!0})],tP);
_.z(tP,"yt-player-kav-renderer",function(){if(BWI===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;gCE===void 0&&(gCE=document.createElement("template"));var K=gCE;G.call(q,K.content.cloneNode(!0),M.content.firstChild);BWI=M}M=BWI;return M},{mode:2});var PTH=_.DQ(["https://www.google.com/recaptcha/api.js?trustedtypes=true&hl=",""]);_.S5(_.U(function(M){var q=_.pI("div"),G=_.k(_.lQ(0,void 0,"jxh75d")),K=G.next().value,n=G.next().value;G=_.k(_.lQ(null,void 0,"F5Zm8"));var E=G.next().value,p=G.next().value;_.SK(function(){ia$(q.value,n,p);q.value.scrollIntoView()});
G=ckY.bind(null,M.data,K);_.WU("resize",function(){var y=E();if(K()===1&&y!==null){var Y;(Y=window.grecaptcha)==null||Y.reset(y)}});
return _.W("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.W("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.W("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var y,Y;return(y=M.data().accessibility)==null?void 0:(Y=y.accessibilityData)==null?void 0:Y.label}),_.W(_.Ft,{text:G,
className:_.Hb("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.W("div",{el:q,class:"ytwPlayerCaptchaViewModelGridItem"})))},"fg"),"yt-player-captcha-view-model",{props:{data:_.xj}});var gfy=!1;_.QvE=_.U(function(M){var q=M.data;return _.W("yt-interstitial-view-model",{class:"interstitialViewModelHost"},_.W(_.d,{cond:function(){return q().icon},
then:function(G){return _.W("div",{class:"interstitialViewModelInterstitialIcon interstitialViewModelFlexItem"},_.W(_.Jj,{data:G,alt:"",className:"interstitialViewModelIconImage",preserveWidth:!0}))}}),_.W(_.d,{cond:function(){return q().title},
then:function(G){return _.W("div",{class:"interstitialViewModelInterstitialTitle interstitialViewModelFlexItem"},_.W(_.Ft,{text:G}))}}),_.W(_.d,{cond:function(){return q().description},
then:function(G){return _.W("div",{class:"interstitialViewModelInterstitialDescription interstitialViewModelFlexItem"},_.W(_.Ft,{text:G}))}}),_.W(_.yu,{data:function(){return q().primaryButton}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
className:"interstitialViewModelFlexItem"})}}),_.W(_.yu,{data:function(){return q().secondaryButton}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
className:"interstitialViewModelFlexItem"})}}))},"gg");
_.QvE.idomCompat=!0;var ICv=_.U(function(M){var q=M.data;_.i_();return _.W("yt-player-interstitial-renderer",{class:"playerInterstitialRendererHost"},_.W("div",{class:"playerInterstitialRendererScrim"},_.W(_.yu,{data:function(){return q().content}},{interstitialViewModel:_.QvE})))},"hg");
ICv.idomCompat=!0;_.S5(ICv,"yt-player-interstitial-renderer",{props:{data:_.Hz}});var Oo=function(){var M=_.Q.apply(this,arguments)||this;M.noBackground=!1;M.compact=!1;M.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return M};
_.l(Oo,_.Q);Oo.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"}}}};
Oo.prototype.onUpdatePlayerErrorMessageCommand_=function(M){if(_.C(M,QGv)){var q;if(M=(q=_.C(M,QGv))==null?void 0:q.newPlayerErrorMessageRenderer)this.data=M}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Oo.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Oo.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Oo.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Oo.prototype,"status",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Oo.prototype,"noBackground",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Oo.prototype,"compact",void 0);_.T([_.aO({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],Oo);
var Daw=_.jo()(Oo,"yt-playability-error-supported-renderers",function(){if(Py8===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;XtR===void 0&&(XtR=document.createElement("template"));var K=XtR;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Py8=M}M=Py8;return M},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var ue8=VVi("ytd-button-renderer");var Bvj=void 0,Ivi=void 0;var Jky=new snI;var Sb=new _.$k("ENTITY_STATE_TOKEN"),wu=new _.$k("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var J9s=function(M){this.store=M;this.k9W=new _.GII},lmw=function(M,q,G){var K,n;
if(!(n=((K=q.playabilityStatus)==null?void 0:K.status)!=="OK")){M=M.store;var E;n=q.offlineState&&((E=q.videoDetails)==null?0:E.videoId)?_.w("enable_pl_r_c_cd")?T1y(M.getState().entities,q.videoDetails.videoId):!!hCH(M.getState().entities,q.videoDetails.videoId):!1}if(n)return!0;n=zLy(q);if(n===1){if(_.w("ab_v_vid_sig")){var p,y=(p=q.videoDetails)==null?void 0:p.videoId;if(!y||!G||y!==G){var Y;q=new _.bj("282054944_vid",{gAN:G,pgI:(Y=q.videoDetails)==null?void 0:Y.videoId});_.T6(q)}}return!0}JRF=
0;var A,v;Y=(y=q.auxiliaryUi)==null?void 0:(A=y.messageRenderers)==null?void 0:(v=A.bkaEnforcementMessageViewModel)==null?void 0:v.displayType;if(n!==3&&(Y==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||Y==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;Y={reason:_.rj(_.Ge("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.w("ks_something_wrong_learn_more")?Hz4("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.rj(_.Ge("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:_.rj("282054944")};ZGI(q,{playerErrorMessageRenderer:Y});return!1},XSi=function(M,q){if($B4(q)){_.Gu(1,!0);
var G=(G=$B4(q))&&_.Q$s()?G:void 0;G?(ZGI(q,{enforcementMessageViewModel:G}),M.k9W.increment("IN_PLAYER"),_.Gu(5)):(M.k9W.increment("SKIP_DISPLAY"),_.Gu(2))}},ZGI=function(M,q){M.playabilityStatus=Object.assign({},M.playabilityStatus,{status:"ERROR",
errorScreen:q});M.videoDetails=void 0};
J9s.prototype.handleResponse=function(M,q){if(M.playabilityStatus){var G,K,n,E=(q==null?void 0:(G=q.innerTubeRequest)==null?void 0:G.videoId)||(q==null?void 0:(K=q.innerTubeRequest)==null?void 0:(n=K.playerRequest)==null?void 0:n.videoId);lmw(this,M,E)&&XSi(this,M)}};
J9s[dP]=[Sb];var am$=new _.$k("ADBLOCK_DETECTION_SERVICE_TOKEN");var QS=function(M){this.loL=M};
QS.prototype.bindInnertubeChallengeFetcher=function(M){this.loL.bicf(M)};
QS.prototype.registerChallengeFetchedCallback=function(M){this.loL.bcr(M)};
QS.prototype.getLatestChallengeResponse=function(){return this.loL.blc()};var bG8;bG8=_.DQ(["https://static.doubleclick.net/instream/ad_status.js"]);_.Uav=_.Ow(bG8);var SAU;_.Cy=function(M,q,G){var K=this;this.network=M;this.options=q;this.networkStatusManager=G;this.uw=null;if(q.useBotguardEverywhere){var n=new _.sp;this.uw=n.promise;_.Kj.ytAtRC&&_.WO(_.r8,function(){var E,p;return _.L(function(y){if(y.nextAddress==1){if(!_.Kj.ytAtRC)return y.return();E=xaE(null);return y.yield(K.z0(E),2)}p=y.yieldResult;_.Kj.ytAtRC&&_.Kj.ytAtRC(JSON.stringify(p));_.gL(y)})});
j$H().then(function(E){var p,y,Y,A;return _.L(function(v){if(v.nextAddress==1)return E.bindInnertubeChallengeFetcher(function(h){return K.z0(xaE(h))}),v.yield(TUw(),2);
p=v.yieldResult;y=E.getLatestChallengeResponse();Y=y.challenge;if(!Y)throw Error("ji");A={challenge:Y,zu:B3(Y),vm:p,bgChallenge:new c3};n.resolve(A);E.registerChallengeFetchedCallback(function(h){h=h.challenge;if(!h)throw Error("ki");h={challenge:h,zu:B3(h),vm:p,bgChallenge:new c3};K.uw=Promise.resolve(h)});
_.gL(v)})})}else q.preload&&zGI(this,new Promise(function(E){_.Jp(_.r8,function(){E(maR(K))},0)}))};
SAU=function(M){var q={preload:!0,useBotguardEverywhere:!0},G=!1;if(typeof q==="boolean")var K={preload:q};else typeof q==="undefined"?K={preload:!0}:(K=q,G=!!q.uvl);q=G?void 0:new _.G6;_.Cy.instance=new _.Cy(M,K,q);return _.Cy.instance};
_.Cy.prototype.ryg=function(){var M=this;return _.L(function(q){return q.nextAddress==1?q.yield(Promise.race([M.uw,null]),2):q.return(!!q.yieldResult)})};
_.Cy.prototype.gcv=function(M,q,G){var K=this,n,E,p;return _.L(function(y){K.uw===null&&zGI(K,maR(K));n=!1;E={};p=function(){var Y,A,v;return _.L(function(h){switch(h.nextAddress){case 1:return h.yield(K.uw,2);case 2:Y=h.yieldResult;E.challenge=Y.challenge;if(!Y.vm){"c1a"in Y.zu&&(E.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");h.jumpTo(3);break}A=Object.assign({},{c:Y.challenge,e:M},q);_.Cv(h,4);n=!0;return h.yield(Y.vm.snapshot({m2:A}),6);case 6:(v=h.yieldResult)?E.webResponse=v:E.error="ATTESTATION_ERROR_VM_NO_RESPONSE";
_.KF(h,3);break;case 4:_.i5(h),E.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(M==="ENGAGEMENT_TYPE_PLAYBACK"){var t=Y.zu,O={};if(t.c6a){var a=Number(_.R9("DCLKSTAT",0));O.reportingStatus=String(Number(t.c)^(isNaN(a)?0:a))}t.c6b&&(O.broadSpectrumDetectionResult=String(Number(t.c)^Number(_.R9("CATSTAT",0))));E.adblockReporting=O}return h.return(E)}})};
return y.return(Promise.race([p(),TWg(G,function(){var Y=Object.assign({},E);n&&(Y.error="ATTESTATION_ERROR_VM_TIMEOUT");return Y})]))})};
var xaE=function(M){var q={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};M&&(q.interpreterHash=M);return q},maR=function(M,q){q=q===void 0?0:q;
var G,K,n,E,p,y,Y,A,v,h,t,O;return _.L(function(a){switch(a.nextAddress){case 1:G=xaE(K8M().gb9);if(_.w("att_fet_ks"))return _.Cv(a,7),a.yield(M.z0(G),9);_.Cv(a,4);return a.yield(r95(M,G),6);case 6:p=a.yieldResult;n=p.nKd;E=p.jGr;K=p;_.KF(a,3);break;case 4:return _.i5(a),_.j1(Error("li`"+q)),jvw(M,864E5),a.return({challenge:"",zu:{},vm:void 0,bgChallenge:void 0});case 9:K=a.yieldResult;if(!K)throw Error("mi");if(!K.challenge)throw Error("ni");n=K.challenge;E=B3(n);if("c1a"in E&&(!K.bgChallenge||!K.bgChallenge.program))throw Error("oi");
_.KF(a,3);break;case 7:y=_.i5(a);_.j1(y);q++;if(q>=5)return _.j1(Error("li`"+q)),jvw(M,864E5),a.return({challenge:"",zu:{},vm:void 0,bgChallenge:void 0});Y=1E3*Math.pow(2,q-1)+Math.random()*1E3;return a.return(new Promise(function(g){_.Jp(_.r8,function(){g(maR(M,q))},Y)}));
case 3:A=rkY(E);jvw(M,A*1E3);v=void 0;if(!("c1a"in E&&K.bgChallenge)){a.jumpTo(10);break}h=TvH(K.bgChallenge);_.Cv(a,11);return a.yield(EJf(K8M(),h),13);case 13:_.KF(a,12);break;case 11:return t=_.i5(a),_.j1(t),a.return({challenge:n,zu:E,vm:v,bgChallenge:h});case 12:return _.Cv(a,14),v=new _.Ii({challenge:h,urL:{cW:"aGIf"}}),a.yield(v.v58,16);case 16:_.KF(a,10);break;case 14:O=_.i5(a),_.j1(O),v=void 0;case 10:return a.return({challenge:n,zu:E,vm:v,bgChallenge:h})}})};
_.Cy.prototype.z0=function(M){var q=this,G;return _.L(function(K){G=q.networkStatusManager;if(!G||G.isNetworkAvailable())return K.return(q.network.z0(M));_.XI("att_pna",void 0,"attestation_challenge_fetch");return K.return(new Promise(function(n){G.listenOnce("publicytnetworkstatus-online",function(){q.network.z0(M).then(n)})}))})};
var VMP=function(M){if(!M)throw Error("mi");if(!M.challenge)throw Error("ni");var q=M.challenge,G=B3(q);if("c1a"in G&&(!M.bgChallenge||!M.bgChallenge.program))throw Error("oi");return Object.assign({},M,{nKd:q,jGr:G})},r95=function(M,q){var G,K,n,E,p;
return _.L(function(y){switch(y.nextAddress){case 1:G=void 0,K=0,n={};case 2:if(!(K<5)){y.jumpTo(4);break}if(!(K>0)){y.jumpTo(5);break}n.apF=1E3*Math.pow(2,K-1)+Math.random()*1E3;return y.yield(new Promise(function(Y){return function(A){_.Jp(_.r8,function(){A(void 0)},Y.apF)}}(n)),5);
case 5:return _.Cv(y,7),y.yield(M.z0(q),9);case 9:return E=y.yieldResult,y.return(VMP(E));case 7:G=p=_.i5(y),p instanceof Error&&_.j1(p);case 8:K++;n={apF:void 0};y.jumpTo(2);break;case 4:throw G;}})},zGI=function(M,q){M.uw=q},RGR=function(M){var q,G,K;
return _.L(function(n){if(n.nextAddress==1)return n.yield(Promise.race([M.uw,null]),2);q=n.yieldResult;var E=maR(M);M.uw=E;(G=q)==null||(K=G.vm)==null||K.dispose();_.gL(n)})},jvw=function(M,q){var G=Date.now()+q,K=function(){var n;
return _.L(function(E){n=G-Date.now();return n<1E3?E.yield(RGR(M),0):(_.Jp(_.r8,K,Math.min(n,6E4)),E.jumpTo(0))})};
K()},TWg=function(M,q){return new Promise(function(G){_.Jp(_.r8,function(){G(q())},M)})};var fCL=function(){};
fCL.prototype.processContext=function(M){var q=_.Cy.instance;if(!q)return _.Ej();var G=eLi(M);return G?new nN(q.gcv(G,fv4(M),500).then(function(K){var n;(M==null?0:(n=M.innerTubeRequest)==null?0:n.context)||(M.innerTubeRequest.context={});n=M.innerTubeRequest.context;n.request||(n.request={});n.request.attestationResponseData=K})):_.Ej()};var FLR=function(M){this.innertubeTransportService=M};
FLR.prototype.z0=function(M){_.XI("att_fsr",void 0,"attestation_challenge_fetch");return _.e6(this.innertubeTransportService,M,_.m4(_.b0S)).then(function(q){_.XI("att_frr",void 0,"attestation_challenge_fetch");return q})};_.HGn=function(M){this.innertubeTransportService=M};var eGP=new _.$k("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var $aw=function(){},Mm8=function(M,q,G,K,n){var E=_.R9("YPC_MB_URL");
_.Zc$(E).then(function(){sSL(E,M,q,G,K,n)})},sSL=function(M,q,G,K,n,E){try{var p=_.b_.payments.business.integration,y=_.b_.payments.business.integration.Style.create().withMaterialDesignStyle(),Y=p.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.w("enable_window_constrained_buy_flow_dialog")&&(Y=Y.usingPopupStyle("windowConstrained"));E&&(Y=Y.usingCloseCallback(E));var A=G?G:_.R9("YPC_GB_LANGUAGE"),v=_.R9("SESSION_INDEX");p.bootstrap.fromPaymentsUrl(M);p.bootstrap.asMashupMode(Y).usingGaiaIndex(v).usingLocale(A).usingStyle(y).usingDefaultActivityStatusChangeHandler().inStandaloneContext(p.standaloneContextAuthId.forGaia()).purchaseManager(q,function(h){K&&K(h)}).load(void 0,n)}catch(h){throw n&&n(h),_.T6(h),h;
}};var qiP=new _.$k("PURCHASE_MANAGER_TOKEN");var Gps=function(){var M=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return M.videos},
getContinuationsPresent:function(){return M.continuationsPresent},
setVideos:function(q){M.videos=q},
getRecommendedVideos:function(){return M.recommendedVideos},
setRecommendedVideos:function(q){M.recommendedVideos=q}}};
Gps.prototype.addVideos=function(M){M&&(this.videos=M.filter(function(q){return!!_.sjy(q)}).map(function(q){var G=_.sjy(q);
a:{var K;if(q.playlistVideoRenderer&&((K=q.playlistVideoRenderer)==null?0:K.voteSortTiebreaker))var n=q.playlistVideoRenderer.voteSortTiebreaker;else{if(_.C(q,D$)){var E;if(K=(n=_.C(q,D$))==null?void 0:(E=n.playlistItemData)==null?void 0:E.voteSortTiebreaker){n=K;break a}}n=""}}return{itemId:G,videoId:_.Gqu(q),voteCount:_.KsF(q),voteSortTiebreaker:n}}),this.continuationsPresent=!!_.C(M[M.length-1],_.Z$))};
var KwL=function(M,q){return M.videos.findIndex(function(G){return G.itemId===q})},nqw=function(M,q){return M.recommendedVideos.findIndex(function(G){return G.itemId===q})},Eqv=function(M){M={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:M}}}}};_.AL().resolve(_.vR).resolveCommand(M)};var NLn=function(){Gps.apply(this,arguments)};
_.l(NLn,Gps);
var i9S=function(M,q,G,K){if(!M.parentElem)throw Error("ti");var n=KwL(M,q);n===-1&&(n=nqw(M,q),n=n!==-1?n+M.videos.length:-1);if(n===-1)throw Error("ui");var E=n>=M.videos.length?M.recommendedVideos[n-M.videos.length]:M.videos[n];E.voteCount=G;E.voteSortTiebreaker=Date.now().toString();n>=M.videos.length?M.recommendedVideos.splice(n-M.videos.length,1):M.videos.splice(n,1);var p=M.videos;for(var y=0,Y=p.length-1;y<=Y;){var A=Math.floor((y+Y)/2);if(p[A].voteCount<E.voteCount)Y=A-1;else if(p[A].voteCount>E.voteCount)y=
A+1;else{a:{var v=E.voteSortTiebreaker;var h=p[A].voteSortTiebreaker;if(v.length!==h.length)v=v.length>h.length;else{for(var t=0;t<v.length;t++){var O=v.charCodeAt(t),a=h.charCodeAt(t);if(O>a){v=!0;break a}if(O<a)break}v=!1}}v?Y=A-1:y=A+1}}p=y;if(p===-1)throw Error("vi");M.videos.splice(p,0,E);n!==p&&kpM(M,n,p,q,G,K)},kpM=function(M,q,G,K,n,E){var p,y=(p=M.parentElem)==null?void 0:p.children,Y=Math.min(q,G),A=Math.max(q,G);
if(y)for(p=Y;p<=A;p++)y[p].style.viewTransitionName="item-"+String(p);document.startViewTransition(function(){if(M.parentElem){var v=M.parentElem.children;if(!(!v||q<0||q>=v.length||G<0||G>=v.length)){var h=v[q];if(h){h.remove();M.showRefreshPill=G>=M.videos.length-1&&M.continuationsPresent;if(!M.showRefreshPill){v=v[G]||null;var t;(t=M.parentElem)==null||t.insertBefore(h,v)}_.jP(M.parentElem,"yt-update-video-data-voting-animation",{toIdx:G,itemId:K,newVoteCount:n,voteStatus:E,hideItem:M.showRefreshPill})}}}}).finished.then(function(){if(y)for(var v=
Y;v<=A;v++)y[v].style.viewTransitionName="";
if(M.showRefreshPill)Eqv(_.Ge("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var h;if(h=v=(h=M.parentElem)==null?void 0:h.children[G])h=v.getBoundingClientRect(),v=h.bottom,h=!(h.top>=0&&v<=M.clientHeight);h&&(h=_.K7(q>G?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(q-G)),Eqv(h))}})};var LwI=function(M,q){var G=this;M?this.innertubeTransportServicePromise=Promise.resolve(M):q&&(this.innertubeTransportServicePromise=q(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new ny(3E3,function(K){return pDI(G,K)},0);
this.validateMiniAppVideoIdRateLimiter=new ny(3E3,function(K){return yxv(G,K)},1)},zww=function(M,q){M.JSC$17345_miniAppId=q;
M.reportMiniAppValueRateLimiter=new ny(3E3,function(G){return pDI(M,G)},0);
M.validateMiniAppVideoIdRateLimiter=new ny(3E3,function(G){return yxv(M,G)},1)},SLI=function(M,q){var G;
return _.L(function(K){if(K.nextAddress==1)return K.yield(M.reportMiniAppValueRateLimiter.call(q),2);G=K.yieldResult;return K.return([G,q])})},pDI=function(M,q){var G,K,n,E,p,y,Y;
return _.L(function(A){switch(A.nextAddress){case 1:return A.yield(M.innertubeTransportServicePromise,2);case 2:return G=A.yieldResult,K=_.m4(TXf),n=Date.now(),E={externalPostId:M.JSC$17345_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(n/1E3),nanos:Math.round(n%1E3*1E6)},intValue:""+q}},_.Cv(A,3),A.yield(_.e6(G,E,K),5);case 5:p=A.yieldResult;_.KF(A,4);break;case 3:throw y=_.i5(A),y;case 4:if(p){if("error"in p&&p.error)throw p.error;if(p.errorMetadata)throw Error("wi`"+
p.errorMetadata.status);if(Y=p.userStatResult)return A.return(Y);throw Error("xi");}throw Error("yi");}})},rE5=function(M){var q,G,K,n,E;
_.L(function(p){switch(p.nextAddress){case 1:return p.yield(M.innertubeTransportServicePromise,2);case 2:return q=p.yieldResult,G=_.m4(TXf),K={externalPostId:M.JSC$17345_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.Cv(p,3),p.yield(_.e6(q,K,G),5);case 5:n=p.yieldResult;_.KF(p,4);break;case 3:throw E=_.i5(p),E;case 4:if(n==null)throw Error("yi");if("error"in n&&n.error)throw n.error;if(n.errorMetadata)throw Error("wi`"+n.errorMetadata.status);_.gL(p)}})};
LwI.prototype.flush=function(){var M=this;return _.L(function(q){return q.nextAddress==1?q.yield(M.reportMiniAppValueRateLimiter.flush(),2):q.yield(M.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var TwM=function(M,q){return _.L(function(G){return G.nextAddress==1?G.yield(M.validateMiniAppVideoIdRateLimiter.call(q),2):G.return(G.yieldResult)})},yxv=function(M,q){var G,K,n,E,p,y;
return _.L(function(Y){switch(Y.nextAddress){case 1:return Y.yield(M.innertubeTransportServicePromise,2);case 2:return G=Y.yieldResult,K=_.m4(JJ8),n={videoId:q},_.Cv(Y,3),Y.yield(_.e6(G,n,K),5);case 5:E=Y.yieldResult;_.KF(Y,4);break;case 3:throw p=_.i5(Y),p;case 4:if(E){if("error"in E&&E.error)throw E.error;if(E.errorMetadata)throw Error("wi`"+E.errorMetadata.status);if(y=E.playabilityStatus)return Y.return(y.status);throw Error("zi");}throw Error("yi");}})};
LwI[dP]=[_.WR(_.YU),_.WR(hi9)];var YiI=function(){this.clientData=new Map};
YiI.prototype.getData=function(M){return this.clientData.get(M)};var WwU=function(M){this.store=M};
WwU.prototype.handleResponse=function(M){(M=_.C(M.frameworkUpdates,JC))&&_.nK(M,this.store)};
WwU[dP]=[_.xy];var AxR=new _.$k("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var dXw,vqn;_.ah=new _.$k("FLOW_STATE_MANAGER_TOKEN");dXw=function(){this.flowStates=new Map};
vqn=function(M,q){M=_.k(M.flowStates.values());for(var G=M.next();!G.done;G=M.next())if(G=G.value,G.flowRenderer.targetId===q)return G};var h7g=function(M,q){this.JSC$17370_reduxStore=M;this.JSC$17370_flowStateManager=q};
_.l(h7g,F0);
h7g.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t,O,a;return _.L(function(g){G=_.C(M,_.Fx8);K=G.stepId;n=G.targetId;E=vqn(q.JSC$17370_flowStateManager,n);y=(p=E)==null?void 0:p.flowRenderer;Y=y.flowStateEntityKey;A=_.u_(q.JSC$17370_reduxStore.getState(),Y);if(!A)return g.return();v=A.currentStepId;O=(t=(h=A)==null?void 0:h.stepIdStack)!=null?t:[];a=v===O[O.length-1]?K:v;q.JSC$17370_reduxStore.dispatch(_.hY("flowStateEntity",Y,{currentStepId:K,stepIdStack:[a]},"REPEATED_FIELDS_MERGE_OPTION_APPEND"));_.gL(g)})};
var tmw=function(){h7g.apply(this,arguments)};
_.l(tmw,h7g);tmw[dP]=[_.xy,_.ah];var OvI=function(M,q,G){this.JSC$17377_reduxStore=M;this.JSC$17377_flowStateManager=q;this.JSC$17377_commandHandler=G};
_.l(OvI,F0);
OvI.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t,O,a,g;return _.L(function(D){K=_.C(M,_.HhM);n=K.targetId;E=vqn(G.JSC$17377_flowStateManager,n);y=(p=E)==null?void 0:p.flowRenderer;Y=y.flowStateEntityKey;A=_.u_(G.JSC$17377_reduxStore.getState(),Y);t=[].concat(_.Ui((h=(v=A)==null?void 0:v.stepIdStack)!=null?h:[]));O=t.pop();((a=A)==null?void 0:a.currentStepId)===O&&(O=t[t.length-1]);if(!O)return(g=K.onFirstStepCommand)&&G.JSC$17377_commandHandler.resolveCommand(g,q),D.return();
G.JSC$17377_reduxStore.dispatch(_.hY("flowStateEntity",Y,{currentStepId:O,stepIdStack:t}));_.gL(D)})};
var wDM=function(){OvI.apply(this,arguments)};
_.l(wDM,OvI);wDM[dP]=[_.xy,_.ah,_.vR];var C5w=function(M,q){this.innertubeTransportService=M;this.JSC$17382_commandHandler=q};
_.l(C5w,F0);C5w.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1){K=_.C(M,end);if(!K)return Y.return();_.Cv(Y,2);return Y.yield(_.Dt(G.innertubeTransportService,M),4)}if(Y.nextAddress!=2){n=Y.yieldResult;if(!n)return Y.return();(E=n.updateFlowCommand)&&G.JSC$17382_commandHandler.resolveCommand(E,q);return _.KF(Y,0)}_.i5(Y);(y=(p=K)==null?void 0:p.onFailureCommand)&&G.JSC$17382_commandHandler.resolveCommand(y,q);_.gL(Y)})};
var a2g=function(){C5w.apply(this,arguments)};
_.l(a2g,C5w);a2g[dP]=[_.YU,_.vR];var oqU=function(M,q){this.JSC$17388_flowStateManager=M;this.JSC$17388_commandHandler=q};
_.l(oqU,F0);
oqU.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p;return _.L(function(y){K=_.C(M,_.sDd);n=K.targetId;E=vqn(G.JSC$17388_flowStateManager,n);if(!E)return y.return(Promise.resolve());var Y=E,A=(p=K.steps)!=null?p:[],v,h=(v=Y.flowRenderer.steps)!=null?v:[];A=[].concat(_.Ui(h),_.Ui(A));Y.flowRenderer.steps=A;K.flowContinuationCommand&&(E.flowRenderer.flowContinuationCommand=K.flowContinuationCommand);K.entityUpdateCommand&&G.JSC$17388_commandHandler.resolveCommand(K.entityUpdateCommand,q);
return y.return(Promise.resolve())})};
var oh=function(){oqU.apply(this,arguments)};
_.l(oh,oqU);oh[dP]=[_.ah,_.vR];var l2I={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_eighty_updated:[[0,1,24]],offline_downloading_forty:[[0,
1,24]],offline_downloading_forty_updated:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_sixty_updated:[[0,1,24]],offline_downloading_spinner:[[0,1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_twenty_updated:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_downloading_zero_updated:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],
play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,2,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,
1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,
1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var XDM=new _.$k("ICON_SET_TOKEN"),P5P=new _.$k("ICON_URL_PROVIDER_TOKEN"),ivU=new _.$k("PREFETCH_ICONS_TOKEN"),cxw=new _.$k("ICON_MAP_FN_TOKEN");var l6={},gqI=(l6.ACCESS_TIME="clock",l6.ACCOUNT_BOX=_.R9("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?"person_box":"person_account",l6.ACCOUNT_BOX_CAIRO="person_account_cairo",l6.ACCOUNT_CIRCLE="person_circle",l6.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",l6.ACCOUNT_LINKED="account_link_success",l6.ACCOUNT_UNLINKED="account_link",l6.ADD_FRIEND="people",l6.ADD_MODERATOR="shield_add",l6.ADD_TO_LIBRARY="bookmark",l6.ADD_TO_PLAYLIST="add",l6.ADD_TO_QUEUE_TAIL="list_queue",l6.ADD_TO_REMOTE_QUEUE="list_music",
l6.ADD_TO_WATCH_LATER="clock",l6.ADD_VIDEO_LINK="film_strip_add",l6.ALERT_WARN_RED="alert_triangle",l6.ARROW_BACK="arrow_left",l6.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",l6.ARROW_DROP_DOWN="chevron_down",l6.ARROW_DROP_UP="chevron_up",l6.ARROW_FORWARD="arrow_right",l6.ARTIST="person_music",l6.AUDIOTRACK="audio",l6.AUTO_AWESOME="sparkle",l6.AVATAR_ANONYMOUS="person_circle",l6.AVATAR_LOGGED_OUT="person_circle",l6.BACK="arrow_left",l6.BAR_CHART="bar_graph",l6.BLOCK="slash_circle_left",
l6.BLOCK_USER="slash_circle_left",l6.BOOKMARK_BORDER="bookmark",l6.BREAKING_NEWS_ALT_1="article_alert",l6.BROADCAST_CAIRO="podcast_cairo",l6.BUG_REPORT="bug",l6.CAMERA_ALT="camera",l6.CAMPAIGN="megaphone",l6.CANCEL="x_circle",l6.CAPTIONS="closed_caption",l6.CAST_OUTLINE="chromecast",l6.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",l6.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",l6.CHAT="message_bubble_left",l6.CHAT_BUBBLE="message_bubble_empty",l6.CHAT_SPARK="spark_message_bubble_left",l6.CHECK_BOX_OUTLINE_BLANK=
"box_empty",l6.CHECK_CIRCLE_OUTLINE="check_circle",l6.CHECK_CIRCLE_THICK="check_circle",l6.CLARIFY="article_clarify",l6.CLOSED_CAPTION_SELECTED="closed_caption",l6.CLOSE="x_mark",l6.CLOUD_UPLOAD="cloud_arrow_up",l6.COLLAPSE="chevron_up",l6.COLLAPSE_CAIRO="chevron_up_cairo",l6.COLLECTION="layers",l6.COLOR_LENS="palette",l6.COMMENT="message_bubble_right",l6.CONSENT_SHIELD="person_shield",l6.CONTENT_CUT="scissors",l6.CONTENT_CUT_CAIRO="scissors_cairo",l6.COURSE=_.w("web_enable_course_icon_update")?"creator_academy":
"lightbulb",l6.COURSE_CAIRO=_.w("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",l6.CREATION_LIVE="radar_live",l6.CREATION_POST="box_pencil",l6.CREATION_UPLOAD="my_videos",l6.CREATION_UPLOAD_RED="upload",l6.CREATOR_METADATA_MONETIZATION="dollar_sign",l6.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",l6.CREATOR_STUDIO="youtube_studio",l6.DASHBOARD="grid_asymmetrical",l6.DELETE="trash_can",l6.DELETE_SWEEP="trash_can",l6.DESKTOP="laptop",l6.DISLIKE="thumb_down",l6.DISLIKE_SELECTED=
"thumb_down",l6.DISMISSAL="x_mark",l6.DISMISS_QUEUE="list_remove",l6.DONE_ALL="check_double",l6.DOWN_ARROW="arrow_down",l6.DO_NOT_DISTURB="slash_circle_left",l6.DRAFT="paper_corner_folded",l6.DRAG_HANDLE="bars_2",l6.EDIT="pencil",l6.EMOJI="face_very_happy",l6.EMOJI_FLAGS="flag",l6.EMOJI_OBJECTS="lightbulb",l6.EMOJI_PEOPLE="face_very_happy",l6.EMOJI_RECENT="clock",l6.EMPTY_HEART="heart",l6.EMPTY_LIKE="thumb_up",l6.ERROR_BLACK="alert_circle",l6.ERROR_OUTLINE="alert_circle",l6.EXIT_APP="arrow_in",l6.EXIT_TO_APP=
"arrow_in",l6.EXPAND="chevron_down",l6.EXPAND_ALL="chevron_expand",l6.EXPAND_CAIRO="chevron_down_cairo",l6.EXPAND_LESS="chevron_up",l6.EXPAND_MORE="chevron_down",l6.EXPLORE="compass",l6.EXPLORE_DESTINATION="compass",l6.EXTERNAL_LINK="open_new",l6.FAB_UPLOAD="upload",l6.FACE_HAPPY_OUTLINE="face_happy",l6.FACT_CHECK="article_check",l6.FASHION_LOGO="fashion",l6.FASHION_LOGO_CAIRO="fashion_cairo",l6.FAVORITE="heart",l6.FEEDBACK="message_bubble_alert",l6.FEEDBACK_CAIRO="message_bubble_alert_cairo",l6.FILL_ARROW_SOLID_DOWN_16=
"arrow_solid_down",l6.FILL_ARROW_SOLID_UP_16="arrow_solid_up",l6.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",l6.FILTER="menu_filter",l6.FIRST_PAGE="chevron_first",l6.FLAG="flag",l6.FULL_HEART="heart",l6.GAME_CONSOLE_DPAD="game_console_dpad",l6.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",l6.GAMING_LOGO="gaming",l6.GAMING_LOGO_CAIRO="gaming_cairo",l6.GO_TO_PAGE="arrow_right",l6.GROUPS="people_group",l6.HAPPY="face_happy",l6.HEALTH_AND_SAFETY="shield_plus",l6.HELP="question_circle",l6.HELP_CAIRO=
"question_circle_cairo",l6.HELP_OUTLINE="question_circle",l6.HIDE="slash_circle_left",l6.IMAGE="image",l6.INFINITY_ICON="infinity",l6.INFO="info_circle",l6.INFO_OUTLINE="info_circle",l6.INSERT_CHART="bar_graph_box_vertical",l6.INSERT_CHART_OUTLINED="bar_graph_box_vertical",l6.INSERT_PHOTO="image",l6.KEEP="pin",l6.KEEP_OFF="pin_off",l6.KEYBOARD="keyboard",l6.KEYBOARD_ARROW_DOWN="chevron_down",l6.KEYBOARD_ARROW_UP="chevron_up",l6.KIDS_BLOCK="slash_circle_left",l6.LANGUAGE="globe",l6.LAST_PAGE="chevron_last",
l6.LAUNCH="open_new",l6.LEARNING="lightbulb",l6.LEARNING_CAIRO="lightbulb_cairo",l6.LIBRARY_ADD=kqu("library_add"),l6.LIBRARY_OUTLINE="library",l6.LIBRARY_REMOVE=kqu(),l6.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",l6.LIKES_PLAYLIST="thumb_up",l6.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",l6.LIKE="thumb_up",l6.LIKE_SELECTED="thumb_up",l6.LIVE="radar_live",l6.LIVE_CAIRO="radar_live_cairo",l6.LIVE_UNLISTED="link",l6.LOCATION_ON="location_point",l6.LOCATION_PIN="location_point",l6.LOOP="arrow_repeat",l6.LOOP_ACTIVE=
"arrow_repeat",l6.LOOP_ONE="arrow_repeat_1",l6.LOOP_ONE_ACTIVE="arrow_repeat_1",l6.MEH="face_meh",l6.MEMBERS_ONLY_MODE_OFF="message_bubble_left",l6.MESSAGE="message_bubble_left",l6.MICROPHONE_ON="mic",l6.MIX="youtube_mix",l6.MONETIZATION_ON="dollar_sign_circle",l6.MONEY_FILL="dollar_sign_container",l6.MONEY_FILL_JPY="yen_sign_container",l6.MONEY_HEART="dollar_sign_heart",l6.MORE_HORIZ="overflow_horizontal",l6.MORE_VERT="overflow_vertical",l6.MUSIC="audio",l6.MUSIC_CAIRO="audio_cairo",l6.MUSIC_NOTE_SYMBOL=
"music",l6.MUSIC_SHUFFLE="arrow_shuffle",l6.MY_CHANNEL="person_circle",l6.MY_LOCATION="location_point",l6.NEWS_STORY="news",l6.NEXT="chevron_right",l6.NOTIFICATIONS="bell",l6.NOTIFICATIONS_ACTIVE="bell_on",l6.NOTIFICATIONS_CAIRO="bell_cairo",l6.NOTIFICATIONS_DONE_CHECKMARK="check",l6.NOTIFICATIONS_INBOX="bell",l6.NOTIFICATIONS_NONE="bell",l6.NOTIFICATIONS_OFF="bell_off",l6.NOT_INTERESTED="slash_circle_left",l6.OFFICIAL_ARTIST_BADGE="audio",l6.OFFLINE_CLOUD="cloud_off",l6.OFFLINE_DOWNLOAD="download",
l6.OFFLINE_DOWNLOAD_CAIRO="download_cairo",l6.OFFLINE_PAUSE="pause",l6.OPEN_IN_NEW="open_new",l6.OUTLINE_ADJUST="adjust",l6.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",l6.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",l6.OUTLINE_BAG="bag",l6.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",l6.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",l6.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",l6.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",l6.PAID="dollar_sign",l6.PAUSE_OUTLINED="pause",l6.PAYMENT=
"credit_card",l6.PERSON_RADAR_FILLED="person_radar",l6.PHONE_DOWNLOAD="mobile_download",l6.PLAYABLES_LOGO="tic_tac_toe",l6.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",l6.PLAYLISTS="list_play_arrow",l6.PLAYLISTS_CAIRO="list_play_arrow_cairo",l6.PLAYLIST_ADD=kqu("list_add"),l6.PLAYLIST_ADD_CHECK=kqu("list_check"),l6.PLAYLIST_PLAY="list_play_arrow",l6.PLAY_ALL="play_arrow",l6.PLAY_CIRCLE="play_arrow_circle",l6.PLAY_OUTLINED="play_arrow_circle",l6.PRIVACY_INFO="shield",l6.PRIVACY_PRIVATE="lock",l6.PRIVACY_PUBLIC=
"earth",l6.PRIVACY_UNLISTED="link",l6.PROMOTE="megaphone",l6.PURCHASES="price_tag",l6.PURCHASE_SUPER_CHAT="super_chat",l6.PURCHASE_SUPER_STICKER="super_sticker",l6.QUESTION_ANSWER="message_bubble_question",l6.QUEUE_PLAY_LAST="list_queue_last",l6.QUEUE_PLAY_NEXT="list_play_arrow",l6.REMIX_FILLED="youtube_shorts_remix",l6.REMOVE="bar_circle",l6.REMOVE_CIRCLE="bar_circle",l6.REMOVE_CIRCLE_OUTLINE="bar_circle",l6.REMOVE_DONE="check_double_off",l6.REMOVE_FROM_HISTORY="bar_circle",l6.REMOVE_FROM_PLAYLIST=
"bar_circle",l6.REMOVE_MODERATOR="shield_off",l6.REPLAY="arrow_circle",l6.REPLAY_10="skip_back_10",l6.REPORT_PROBLEM="alert_triangle",l6.SAD="face_sad",l6.SAVE_PLAYLIST="bookmark",l6.SCHEDULE="clock",l6.SCHOOL="creator_academy",l6.SCREEN_FULLSCREEN="screen_full",l6.SEARCH_HISTORY="arrow_time",l6.SELL="price_tag",l6.SETTINGS="gear",l6.SETTINGS_CAIRO="gear_cairo",l6.SETTINGS_LIGHT="gear",l6.SETTINGS_MATERIAL="gear",l6.SHARE_ARROW="share",l6.SHIELD_WITH_AVATAR="person_shield",l6.SHOPPING_BAG="bag",l6.SHOPPING_BAG_CAIRO=
"bag_cairo",l6.SHOPPING_CART="cart",l6.SHORTS_COMMENT="youtube_shorts_message_bubble_right",l6.SHORTS_DISLIKE="youtube_shorts_thumb_down",l6.SHORTS_LIKE="youtube_shorts_thumb_up",l6.SHORTS_SHARE="youtube_shorts_share",l6.SHUFFLE="arrow_shuffle",l6.SLOW_MODE_OFF="message_bubble_left",l6.SOCIAL="people",l6.SORT="menu_sort",l6.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",l6.SPEED_1X="1x",l6.SPEED_1_POINT_2X="1_point_2x",l6.SPEED_1_POINT_5X="1_point_5x",l6.SPEED_1_POINT_8X="1_point_8x",l6.SPEED_2X="2x",
l6.SPEED_POINT_2X="point_2x",l6.SPEED_POINT_8X="point_8x",l6.SPONSORSHIP_STAR="star_circle",l6.STAFF_PICK="spotlight",l6.START_DVR="add",l6.STAR_BORDER="star",l6.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",l6.STICKER_EMOTICON="face_happy",l6.STOP_DVR="stop",l6.SUBSCRIBE="youtube_logo_icon",l6.SUBSCRIBE_PLUS="add_cairo",l6.SUBSCRIPTION_MANAGER="gear",l6.SUPERVISOR_ACCOUNT="people",l6.SUPER_CHAT_FOR_GOOD="hands_heart",l6.SWAP_HORIZ="arrow_swap_horizontal",l6.SWITCH_ACCOUNTS="person_account",l6.TAB_ACCOUNT=
"person",l6.TAB_ACTIVITY="bell",l6.TAB_BOOKMARK="bookmark",l6.TAB_EXPLORE="compass",l6.TAB_HOME="home",l6.TAB_HOME_CAIRO="home_cairo",l6.TAB_INBOX="mail",l6.TAB_LIKED="thumb_up",l6.TAB_MUSIC_PREMIUM="youtube_music",l6.TAB_SHORTS="youtube_shorts",l6.TAB_SHORTS_CAIRO="youtube_shorts_cairo",l6.TAB_SUBSCRIPTIONS="subscriptions",l6.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",l6.TAB_TRENDING="fire",l6.TIMER="stopwatch",l6.TRAILER="youtube_originals",l6.TRENDING="fire",l6.TRENDING_CAIRO="fire_cairo",l6.TRENDING_DOWN=
"rating_down",l6.TRENDING_UP="rating_up",l6.TROPHY="trophy",l6.TROPHY_CELEBRATIONS="fireworks",l6.TUNE="adjust",l6.UNBLOCK_USER="bar_circle",l6.UNLIMITED="youtube_logo_icon",l6.UNPLUGGED_LIVE_GUIDE="radar_live",l6.UNPLUGGED_SPORTS="eye_off",l6.UPLOADS="library",l6.UP_ARROW="arrow_up",l6.VERTICAL_ALIGN_BOTTOM="download",l6.VERY_HAPPY="face_very_happy",l6.VERY_SAD="face_very_sad",l6.VIDEOGAME_ASSET="gaming",l6.VIDEOS="play_arrow_circle",l6.VIDEO_CALL="video_camera_add",l6.VIDEO_LIBRARY_WHITE="library",
l6.VIDEO_YOUTUBE="youtube_logo_icon",l6.VIEW_LIST="list_view",l6.VIEW_LIST_CAIRO="list_view_cairo",l6.VISIBILITY="eye",l6.VISIBILITY_OFF="eye_off",l6.VOLUME_MUTE="volume_off",l6.VOLUME_UP="volume_on",l6.WALLPAPER="image",l6.WARNING="alert_triangle",l6.WATCH_HISTORY="arrow_time",l6.WATCH_HISTORY_CAIRO="arrow_time_cairo",l6.WATCH_LATER="clock",l6.WATCH_LATER_CAIRO="clock_cairo",l6.WATCH_RELATED_MIX="youtube_mix",l6.WHAT_TO_WATCH="home",l6.YOUTUBE_MUSIC_MONOCHROME="youtube_music",l6.YOUTUBE_MUSIC_MONOCHROME_CAIRO=
"youtube_music_cairo",l6.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",l6.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="youtube_shorts_no_triangle",l6.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",l6.YT_OUTLINE_MUSIC_24="music",l6);var XF={},BLI=(XF.ACCESS_TIME="clock",XF.ACCOUNT_BOX="person_square",XF.ACCOUNT_BOX_CAIRO="person_square",XF.ACCOUNT_CIRCLE="person_circle",XF.ACCOUNT_CIRCLE_CAIRO="person_circle",XF.ACCOUNT_LINKED="account_link",XF.ACCOUNT_UNLINKED="account_link",XF.ADD_CIRCLE="add_circle",XF.ADD_CIRCLE_OUTLINE="add_circle",XF.ADD_FRIEND="person_child",XF.ADD_MODERATOR="shield_add",XF.ADD_TO_LIBRARY="bookmark",XF.ADD_TO_PLAYLIST="add",XF.ADD_TO_QUEUE_TAIL="queue",XF.ADD_TO_REMOTE_QUEUE="playlist_audio",XF.ADD_TO_WATCH_LATER=
"clock",XF.ADD_VIDEO_LINK="film_strip_add",XF.ADMIN_PANEL_SETTINGS="person_gear",XF.ALERT_WARN_RED="alert_triangle",XF.ALIGN_LEFT="text_align_left",XF.ARROWS_ALERT="arrow_split_alert",XF.ARROW_BACK="arrow_left",XF.ARROW_CIRCLE="arrow_counterclockwise",XF.ARROW_CIRCLE_PLAY="replay",XF.ARROW_CIRCLE_RIGHT="arrow_clockwise",XF.ARROW_DIAGONAL="arrow_up_left",XF.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",XF.ARROW_DROP_DOWN="triangle_down",XF.ARROW_DROP_UP="triangle_up",XF.ARROW_FORWARD="arrow_right",XF.ARROW_PAUSE=
"pause_history",XF.ARROW_UNDO="undo",XF.ARTICLE="text_page",XF.ARTICLE_ALERT="text_page_alert",XF.ARTICLE_CHECK="text_page_check",XF.ARTICLE_CLARIFY="text_page_info",XF.ARTIST="person_audio",XF.AUDIOTRACK="audio",XF.AUDIO_BADGE="audio_badge",XF.AUDIO_SURROUND="surround_sound",XF.AUTO_AWESOME="sparkles",XF.AVATAR_ANONYMOUS="person_circle",XF.AVATAR_LOGGED_OUT="person_circle",XF.BACK="arrow_left",XF.BAR_CHART="chart_bar",XF.BAR_CIRCLE="minus_circle",XF.BAR_HORIZONTAL="minus",XF.BLOCK="circle_slash",
XF.BLOCK_USER="circle_slash",XF.BOOKMARK_BORDER="bookmark",XF.BOX_OPEN_CHECK="quiz",XF.BOX_PENCIL="square_pencil",XF.BOX_STACK_3="square3_stack",XF.BREAKING_NEWS_ALT_1="text_page_alert",XF.BROADCAST="podcast",XF.BROADCAST_CAIRO="podcast",XF.BUG_REPORT="bug",XF.CAMERA_ALT="camera",XF.CAMPAIGN="megaphone",XF.CANCEL="x_circle",XF.CAPTIONS="closed_captions",XF.CAST_ICON="chromecast",XF.CAST_OUTLINE="chromecast",XF.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",XF.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",
XF.CHAT="text_bubble",XF.CHAT_BUBBLE="bubble",XF.CHECK_BOX="check_square",XF.CHECK_BOX_OUTLINE_BLANK="square",XF.CHECK_CIRCLE_FILLED="check_circle",XF.CHECK_CIRCLE_OUTLINE="check_circle",XF.CHECK_CIRCLE_THICK="check_circle",XF.CHECK_DOUBLE="check_done",XF.CHECK_DOUBLE_OFF="check_done_slash",XF.CHEVRON_LEFT="chevron_left",XF.CHEVRON_RIGHT="chevron_right",XF.CHEVRON_RIGHT_CAIRO="chevron_right",XF.CIRCLES_OVERLAP="account_link",XF.CLAPPERBOARD_CAIRO="clapperboard",XF.CLARIFY="text_page_info",XF.CLOCK_ARROWS=
"clock_split",XF.CLOCK_ARROWS_ALERT="clock_split_alert",XF.CLOSED_CAPTION="closed_captions",XF.CLOSED_CAPTION_SELECTED="closed_captions",XF.CLOSE="x",XF.CLOUD_UPLOAD="cloud_arrow_up",XF.COLLAPSE="chevron_up",XF.COLLAPSE_CAIRO="chevron_up",XF.COLLECTION="square3d_stack",XF.COLOR_LENS="paint_palette",XF.COMMENT="text_bubble",XF.CONSENT_SHIELD="person_shield",XF.CONTENT_CUT="scissors",XF.CONTENT_CUT_CAIRO="scissors",XF.COURSE="graduation_cap",XF.COURSE_CAIRO="graduation_cap",XF.CREATION_LIVE="live",
XF.CREATION_POST="square_pencil",XF.CREATION_UPLOAD="video",XF.CREATION_UPLOAD_RED="upload",XF.CREATOR_ACADEMY="graduation_cap",XF.CREATOR_METADATA_MONETIZATION="dollar_sign_circle",XF.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_circle_slash",XF.CREATOR_STUDIO="youtube_studio",XF.DARK_THEME="theme",XF.DELETE="trash_can",XF.DELETE_SWEEP="trash_can",XF.DESKTOP="laptop",XF.DISLIKE="thumb_down",XF.DISLIKE_SELECTED="thumb_down",XF.DISMISSAL="x",XF.DISMISS_QUEUE="playlist_x",XF.DOGFOOD="pawprint",XF.DOLLAR_SIGN=
"dollar_sign_circle",XF.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",XF.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",XF.DOWN_ARROW="arrow_down",XF.DO_NOT_DISTURB="circle_slash",XF.DRAFT="document",XF.DRAG_HANDLE="equal",XF.EARTH="globe",XF.EDIT="pencil",XF.EMOJI="face_very_happy",XF.EMOJI_FLAGS="flag",XF.EMOJI_OBJECTS="lightbulb",XF.EMOJI_PEOPLE="face_very_happy",XF.EMOJI_RECENT="clock",XF.EMPTY_HEART="heart",XF.EMPTY_LIKE="thumb_up",XF.ERROR_BLACK="alert_circle",XF.ERROR_OUTLINE="alert_circle",XF.ERROR_WHITE=
"alert_circle",XF.EXIT_APP="arrow_in",XF.EXIT_TO_APP="arrow_in",XF.EXPAND="chevron_down",XF.EXPAND_ALL="chevron_expand",XF.EXPAND_CAIRO="chevron_down",XF.EXPAND_LESS="chevron_up",XF.EXPAND_MORE="chevron_down",XF.EXPLORE="compass",XF.EXPLORE_DESTINATION="compass",XF.EXTERNAL_LINK="arrow_up_right",XF.EYE_OFF="eye_slash",XF.FAB_UPLOAD="upload",XF.FACE_HAPPY_OUTLINE="face_happy",XF.FACE_MEH="face_neutral",XF.FACT_CHECK="text_page_check",XF.FASHION_LOGO="fashion",XF.FASHION_LOGO_CAIRO="fashion",XF.FAVORITE=
"thumb_up",XF.FEEDBACK="alert_bubble",XF.FEEDBACK_CAIRO="alert_bubble",XF.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",XF.FILL_ARROW_SOLID_UP_16="arrow_solid_up",XF.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",XF.FIRST_PAGE="chevron_left_end",XF.FLAG_CAIRO="flag",XF.FLASH_OFF="flash_slash",XF.FLASH_ON="flash",XF.FULL_HEART="heart",XF.GAMING_LOGO="gaming",XF.GAMING_LOGO_CAIRO="gaming",XF.GO_TO_PAGE="arrow_right",XF.GRID_ASYMMETRICAL="dashboard",XF.GROUPS="person3",XF.HAND_SWIPE_LEFT="gesture_swipe_left",
XF.HAND_SWIPE_RIGHT="gesture_swipe_right",XF.HAPPY="face_happy",XF.HEALTH_AND_SAFETY="shield_health",XF.HEART_BOX="heart_cube",XF.HELP="help_circle",XF.HELP_CAIRO="help_circle",XF.HELP_OUTLINE="help_circle",XF.HIDE="circle_slash",XF.INCOGNITO_CAIRO="incognito",XF.INFINITY_ICON="infinity",XF.INFO="info_circle",XF.INFO_OUTLINE="info_circle",XF.INSERT_CHART="chart_bar_square",XF.INSERT_CHART_OUTLINED="chart_bar_square",XF.INSERT_PHOTO="image",XF.KEEP="pin",XF.KEEP_OFF="pin_slash",XF.KEYBOARD="keyboard",
XF.KEYBOARD_ARROW_DOWN="chevron_down",XF.KEYBOARD_ARROW_UP="chevron_up",XF.KIDS_BLOCK="circle_slash",XF.LANGUAGE="globe",XF.LAST_PAGE="chevron_right_end",XF.LAUNCH="arrow_up_right",XF.LEARNING="lightbulb",XF.LEARNING_CAIRO="lightbulb",XF.LIBRARY_ADD="bookmark",XF.LIBRARY_IMAGE="image_stack",XF.LIBRARY_MUSIC="audio_square_stack",XF.LIBRARY_OUTLINE="play_square_stack",XF.LIBRARY_REMOVE="bookmark",XF.LIBRARY_SAVED="check_square_stack",XF.LIKES_PLAYLIST="thumb_up",XF.LIKES_PLAYLIST_CAIRO="thumb_up",XF.LIKE=
"thumb_up",XF.LIKE_SELECTED="thumb_up",XF.LIST_QUEUE="queue",XF.LIVE_CAIRO="live",XF.LIVE_UNLISTED="link",XF.LOCATION_ON="location_pin",XF.LOCATION_PIN="location_pin",XF.LOCATION_POINT="location_pin",XF.LOOP="repeat",XF.LOOP_ACTIVE="repeat",XF.LOOP_ONE="repeat1",XF.LOOP_ONE_ACTIVE="repeat1",XF.MEET="google_meet",XF.MEH="face_neutral",XF.MEMBERSHIPS="memberships",XF.MEMBERS_ONLY_MODE_OFF="text_bubble",XF.MENU_FILTER="filter",XF.MESSAGE="text_bubble",XF.MESSAGE_BUBBLE_GEAR="bubble_gear",XF.MESSAGE_BUBBLE_LEFT=
"text_bubble",XF.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",XF.MESSAGE_BUBBLE_OVERLAP="bubble_stack",XF.MESSAGE_BUBBLE_QUESTION="help_bubble",XF.MICROPHONE_ON="mic",XF.MONETIZATION_ON="dollar_sign_circle",XF.MONEY_FILL="dollar_sign_rectangle",XF.MONEY_FILL_JPY="yen_sign_rectangle",XF.MONEY_HAND="dollar_sign_circle_hand",XF.MONEY_HEART="dollar_sign_heart",XF.MOON_Z="sleep_timer",XF.MORE_HORIZ="overflow_horizontal",XF.MORE_VERT="overflow_vertical",XF.MUSIC="audio",XF.MUSIC_CAIRO="audio",XF.MUSIC_EXPLICIT_BADGE=
"explicit",XF.MUSIC_NEW_RELEASE="audio_badge",XF.MUSIC_NOTE_SYMBOL="audio",XF.MUSIC_SCISSORS="audio_scissors",XF.MUSIC_SHUFFLE="shuffle",XF.MY_CHANNEL="person_circle",XF.MY_LOCATION="location_pin",XF.MY_VIDEOS="video",XF.MY_VIDEOS_CAIRO="video",XF.NEWS_CAIRO="news",XF.NEWS_STORY="news",XF.NEXT="chevron_right",XF.NOTE_ADD="bubble_pencil",XF.NOTIFICATIONS="bell",XF.NOTIFICATIONS_ACTIVE="bell_waves",XF.NOTIFICATIONS_CAIRO="bell",XF.NOTIFICATIONS_DONE_CHECKMARK="check",XF.NOTIFICATIONS_INBOX="bell",XF.NOTIFICATIONS_NONE=
"bell",XF.NOTIFICATIONS_OFF="bell_slash",XF.NOT_INTERESTED="circle_slash",XF.OFFICIAL_ARTIST_BADGE="audio",XF.OFFLINE_CLOUD="cloud_slash",XF.OFFLINE_DOWNLOAD="download",XF.OFFLINE_DOWNLOAD_CAIRO="download",XF.OFFLINE_PAUSE="pause",XF.OPEN_IN_NEW="arrow_up_right",XF.OUTLINE_ADJUST="adjust",XF.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",XF.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",XF.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",XF.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",XF.OUTLINE_BAG="bag",XF.OUTLINE_CLOCK_HALF_CIRCLE=
"clock_half_dashed",XF.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",XF.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",XF.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",XF.PAID="dollar_sign_circle",XF.PAUSE_OUTLINED="pause",XF.PAYMENT="credit_card",XF.PEOPLE="person_child",XF.PEOPLE_2="person2_rectangle",XF.PEOPLE_GROUP="person3",XF.PEOPLE_NOTE="bubble_asterisk",XF.PERSON_2="person2",XF.PERSON_ACCOUNT="person_square_stack",XF.PERSON_MINUS="person_x",XF.PERSON_MUSIC="person_audio",XF.PERSON_RADAR="person_waves",
XF.PERSON_RADAR_FILLED="person_waves",XF.PERSON_SETTING="person_gear",XF.PHONE="phone",XF.PHONE_DOWNLOAD="mobile_arrow_down",XF.PICTURE_IN_PICTURE="picture_in_picture",XF.PLAYABLES_LOGO="playables",XF.PLAYABLES_LOGO_CAIRO="playables",XF.PLAYLISTS="playlist",XF.PLAYLISTS_CAIRO="playlist",XF.PLAYLIST_ADD_CHECK="bookmark",XF.PLAY_ALL="play",XF.PLAY_ARROW="play",XF.PLAY_ARROW_CIRCLE="play_circle",XF.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",XF.PLAY_CIRCLE="play_circle",XF.PLAY_OUTLINED="play_circle",
XF.PODCAST_ADD="podcast_add",XF.PODCAST_CHECK="podcast_check",XF.PRIVACY_INFO="shield_x",XF.PRIVACY_PRIVATE="lock",XF.PRIVACY_PUBLIC="globe",XF.PRIVACY_UNLISTED="link",XF.PROMOTE="megaphone",XF.PURCHASES="price_tag",XF.PURCHASE_SUPER_CHAT="super_chat",XF.PURCHASE_SUPER_STICKER="super_sticker",XF.QUESTION_ANSWER="help_bubble",XF.QUESTION_CIRCLE="help_circle",XF.QUEUE_PLAY_LAST="queue_last",XF.QUEUE_PLAY_NEXT="queue_next",XF.QUOTATION_MARK="quote",XF.RADAR_LIVE="live",XF.REMOVE="minus_circle",XF.REMOVE_CIRCLE=
"minus_circle",XF.REMOVE_CIRCLE_OUTLINE="minus_circle",XF.REMOVE_FROM_HISTORY="minus_circle",XF.REMOVE_FROM_PLAYLIST="minus_circle",XF.REMOVE_MODERATOR="shield_slash",XF.REPLAY="arrow_counterclockwise",XF.REPLAY_10="skip10_back",XF.REPLAY_ARROW="replay",XF.REPORT_PROBLEM="alert_triangle",XF.RSS_OFF="rss_slash",XF.SAD="face_sad",XF.SAVE_PLAYLIST="bookmark",XF.SCHEDULE="clock",XF.SCHOOL="graduation_cap",XF.SCREEN_DEFAULT="player_default",XF.SCREEN_FULLSCREEN="player_full_enter",XF.SCREEN_LIGHT="ambient_mode",
XF.SCREEN_ROTATION="rotate_portrait",XF.SCREEN_SWITCH="player_switch",XF.SCREEN_THEATRE="player_theater",XF.SEARCH_CAIRO="search",XF.SEARCH_HISTORY="history",XF.SELL="price_tag",XF.SETTINGS="gear",XF.SETTINGS_CAIRO="gear",XF.SETTINGS_LIGHT="gear",XF.SETTINGS_MATERIAL="gear",XF.SETTINGS_REMOTE="remote_waves",XF.SHARE="share",XF.SHARE_ARROW="share",XF.SHARE_CAIRO="share",XF.SHIELD="shield_x",XF.SHIELD_OFF="shield_slash",XF.SHIELD_WITH_AVATAR="person_shield",XF.SHOPPING_BAG="bag",XF.SHOPPING_BAG_CAIRO=
"bag",XF.SHOPPING_CART="cart",XF.SHORTS_COMMENT="text_bubble",XF.SHORTS_DISLIKE="thumb_down",XF.SHORTS_LIKE="thumb_up",XF.SHORTS_SHARE="share",XF.SKIP_FORWARD_30="skip30_forward",XF.SLASH_CIRCLE_LEFT="circle_slash",XF.SLASH_CIRCLE_RIGHT="circle_slash",XF.SLOW_MODE="bubble_slow",XF.SLOW_MODE_OFF="text_bubble",XF.SOCIAL="person_child",XF.SPARKLE="sparkles",XF.SPARK_IMAGE="image_spark",XF.SPARK_RADAR="spark_waves",XF.SPARK_VIDEO="video_spark",XF.SPEAKER_GROUP="speaker_stack",XF.SPEAKER_OFF="speaker_slash",
XF.SPEED_1X="n1x",XF.SPEED_1_POINT_2X="n1point2x",XF.SPEED_1_POINT_5X="n1point5x",XF.SPEED_1_POINT_8X="n1point8x",XF.SPEED_2X="n2x",XF.SPONSORSHIP_STAR="star_circle",XF.SPORTS="basketball",XF.SPOTLIGHT="spotlight",XF.STAFF_PICK="spotlight",XF.START_DVR="add",XF.STAR_BORDER="star",XF.STAR_CIRCLE_RIBBON="memberships_gift",XF.STAR_HALF="star_full_half",XF.STAR_SHOOTING="hype",XF.STICKER="sticker",XF.STICKER_EMOTICON="face_happy",XF.STOP_DVR="stop",XF.SUBSCRIBE="youtube",XF.SUBSCRIBE_PLUS="add",XF.SUBSCRIPTION_MANAGER=
"gear",XF.SUPERSTAR="super_star",XF.SUPERVISOR_ACCOUNT="person_child",XF.SUPER_CHAT_FOR_GOOD="hands_heart",XF.SWAP_HORIZ="arrow_swap_horizontal",XF.SWITCH_ACCOUNTS="person_square_stack",XF.TAB_ACCOUNT="person",XF.TAB_ACTIVITY="bell",XF.TAB_BOOKMARK="bookmark",XF.TAB_EXPLORE="compass",XF.TAB_HOME="home",XF.TAB_HOME_CAIRO="home",XF.TAB_INBOX="mail",XF.TAB_LIKED="thumb_up",XF.TAB_MUSIC_PREMIUM="youtube_music",XF.TAB_SHORTS="shorts",XF.TAB_SHORTS_CAIRO="shorts",XF.TAB_SUBSCRIPTIONS="subscriptions",XF.TAB_SUBSCRIPTIONS_CAIRO=
"subscriptions",XF.TAB_TRENDING="trending",XF.TARGET="target",XF.TARGET_ADD="target_add",XF.TEMPLATE_ADD="template_add",XF.TEXT="font",XF.TICKET_STAR="star_ticket",XF.TIMER="stopwatch",XF.TRENDING_CAIRO="trending",XF.TRENDING_DOWN="arrow_trend_down",XF.TRENDING_UP="arrow_trend_up",XF.TROPHY_CAIRO="trophy",XF.TROPHY_CELEBRATIONS="fireworks",XF.TROPHY_STAR="star_trophy",XF.TUNE="adjust",XF.TV_OFF="tv_slash",XF.UNBLOCK_USER="minus_circle",XF.UNFAVORITE="thumb_down",XF.UNLIMITED="youtube",XF.UNPLUGGED_LIVE_GUIDE=
"live",XF.UNPLUGGED_SPORTS="eye_slash",XF.UPLOADS="play_square_stack",XF.UP_ARROW="arrow_up",XF.VERTICAL_ALIGN_BOTTOM="chevron_down_end",XF.VERTICAL_ALIGN_TOP="chevron_up_end",XF.VERY_HAPPY="face_very_happy",XF.VERY_SAD="face_very_sad",XF.VIDEOS="play_circle",XF.VIDEO_CALL="video_camera_add",XF.VIDEO_LIBRARY_WHITE="play_square_stack",XF.VIDEO_QUALITY_4K="n4k",XF.VIDEO_QUALITY_8K="n8k",XF.VIDEO_YOUTUBE="youtube",XF.VIEW_LIST_CAIRO="view_list",XF.VIEW_MODULE="view_column3_row2",XF.VISIBILITY="eye",
XF.VISIBILITY_OFF="eye_slash",XF.VOLUME_DOWN="volume_min",XF.VOLUME_MUTE="volume_mute",XF.VOLUME_OFF="volume_mute",XF.VOLUME_STABLE="stable_volume",XF.VOLUME_UP="volume_max",XF.WALLPAPER="image",XF.WARNING="alert_triangle",XF.WATCH_HISTORY="history",XF.WATCH_HISTORY_CAIRO="history",XF.WATCH_LATER="clock",XF.WATCH_LATER_CAIRO="clock",XF.WATCH_RELATED_MIX="mix",XF.WHAT_TO_WATCH="home",XF.YOUTUBE_LINKED_TV="tv_mobile",XF.YOUTUBE_MUSIC_MONOCHROME="youtube_music",XF.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",
XF.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",XF.YOUTUBE_SHORTS_ARROW_UP="arrow_up",XF.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",XF.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",XF.YOUTUBE_SHORTS_OUTLINE_24="shorts",XF);var QSP={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,7,24],[1,7,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,3,24],[1,3,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,10,24],[1,10,16],[1,10,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,
6,24],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_off:[[1,2,24]],code:[[1,2,24]],compass:[[0,8,24],[1,8,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,3,24]],copyright:[[0,4,24],[1,4,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,4,24]],crop:[[1,3,16],[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,16],[0,5,24],[1,5,12],[1,5,16],[1,5,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,
1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,3,24]],dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,11,16],[0,11,24],[1,11,16],[1,11,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,16],[1,23,24]],dollar_sign_off:[[1,3,24]],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,9,16],[1,9,18],[1,9,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,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_waveform:[[1,2,24]],phone:[[0,3,24],[1,3,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_combine:[[1,
1,24]],pin:[[0,7,12],[0,7,24],[1,7,16],[1,7,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,6,24],[1,6,12],[1,6,16],[1,6,18],[1,6,24]],podcast_add:[[0,2,24],[1,2,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,2,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,9,16],[1,9,24],[1,9,40]],pound:[[1,3,24]],presentation:[[1,
2,24]],presentation_remove:[[1,1,24]],price_tag:[[0,8,12],[0,8,24],[1,8,24]],price_tag_heart:[[1,2,24]],qr_code:[[1,3,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,2,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,2,24]],remix:[[1,2,16],[1,2,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,
1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,2,16],[1,2,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,2,12],[1,2,16],[1,2,18],[1,2,24]],samples:[[0,2,24],[1,2,24]],saturation:[[1,2,24]],scale:[[1,4,24]],scissors:[[0,8,12],[0,8,24],[1,8,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,4,16],[1,4,18],[1,4,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_cairo:[[1,1,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,2,24]],sd:[[0,3,24],[1,3,24]],search:[[0,15,24],[1,15,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
2,24]],shadow_soft:[[0,2,24]],shapes:[[0,3,24],[1,3,24]],share:[[0,12,24,!0],[0,12,32,!0],[1,12,16,!0],[1,12,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,2,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,6,24]],shield_add:[[1,2,24]],shield_check:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,2,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,
1,24]],shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,5,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,
1,24]],skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,7,24]],skip_previous:[[0,6,24]],skip_up:[[0,5,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,3,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,2,24]],spark:[[0,9,12],[0,9,16],[0,9,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,2,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,2,24]],speaker_off:[[1,1,24]],split:[[1,4,24]],sports:[[0,1,24]],spotlight:[[0,3,24],[1,3,24]],star:[[0,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,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,2,24]],stop:[[0,4,24]],stopwatch:[[0,5,16],[0,5,24],[1,5,16],[1,5,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,11,24],[1,11,18],[1,11,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,4,12],[0,4,24],[1,4,24]],super_chat:[[1,8,18],[1,8,24]],super_sticker:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],super_store:[[1,3,24]],superstar:[[1,
1,24]],tablet:[[1,1,24]],target:[[0,2,24],[1,2,16],[1,2,24]],target_add:[[0,2,24],[1,2,16],[1,2,24]],template_add:[[1,3,16],[1,3,24]],template_play:[[0,3,24],[1,3,24]],text:[[0,9,24],[1,9,16],[1,9,18],[1,9,24]],text_bell_cairo:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,
1,24]],thermometer:[[1,2,24]],thumb_down:[[0,24,16],[0,24,24],[0,24,36],[1,24,16],[1,24,24],[1,24,36]],thumb_up:[[0,22,16],[0,22,24],[0,22,36],[1,22,16],[1,22,24],[1,22,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,3,24],[1,3,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],ticket_star:[[1,1,24]],tilt:[[1,4,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,3,24]],toolbox:[[1,4,24]],transcript:[[1,2,16],[1,2,24]],transcript_search:[[1,1,16],[1,1,24]],
transition:[[0,5,24],[1,5,24]],translate:[[1,4,16],[1,4,24]],trash_can:[[1,10,16],[1,10,18],[1,10,24]],triangle_down:[[1,7,24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,3,24],[1,3,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,12],[0,8,16],[0,8,24],[1,8,16],[1,8,24]],tv_arrow_left:[[1,2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,
24]],upload:[[1,5,24]],uploading:[[1,1,24]],variable:[[1,4,24]],verified_circle:[[1,4,24]],video_camera:[[0,9,24],[1,9,24]],video_camera_add:[[1,2,24]],video_camera_off:[[1,1,24]],video_link:[[1,5,16],[1,5,24]],video_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 I2I={accessibility:[[0,4,24],[1,4,24]],account_link:[[0,8,24],[1,8,24]],account_link_error:[[1,6,24]],add:[[1,9,18],[1,9,24]],add_circle:[[0,6,18],[0,6,24],[1,6,24],[1,6,36]],add_square_stack:[[1,1,24]],add_tv:[[1,1,24]],add_tv_chevron_right:[[1,1,24]],adjust:[[0,9,24],[1,9,24]],airplane:[[0,5,24],[0,5,48],[1,5,24]],airplay:[[1,6,24]],airplay_slash:[[1,1,24]],album:[[0,8,24],[1,8,18],[1,8,24],[1,8,48]],alert_bubble:[[1,2,18],[1,2,24]],alert_circle:[[0,10,24],[1,10,24],[1,10,48]],alert_octagon:[[0,
2,24],[1,2,24]],alert_triangle:[[0,10,12],[0,10,24],[0,10,48],[1,10,24]],ambient_mode:[[1,1,24]],ampersand:[[1,1,24]],api:[[0,2,24],[1,2,24]],archive:[[1,1,24]],arrow_arc_forward:[[1,1,24]],arrow_clockwise:[[1,1,24]],arrow_counterclockwise:[[1,2,24],[1,2,48]],arrow_counterclockwise_dashed:[[1,1,24]],arrow_down:[[1,3,24]],arrow_down_circle:[[0,4,24],[1,4,24]],arrow_down_right:[[1,1,24]],arrow_flip:[[1,10,24]],arrow_in:[[1,8,18],[1,8,24]],arrow_left:[[1,8,24,!0],[1,8,36,!0]],arrow_merge:[[1,2,24]],
arrow_out:[[1,2,24]],arrow_right:[[1,3,24,!0]],arrow_right_rectangle:[[0,2,24],[1,2,24]],arrow_solid_down:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_solid_up:[[0,4,18],[0,4,24],[1,4,18],[1,4,24]],arrow_split:[[1,3,24]],arrow_split_alert:[[1,1,24]],arrow_swap_horizontal:[[1,5,24]],arrow_trend_down:[[1,1,24]],arrow_trend_up:[[1,2,12],[1,2,24]],arrow_turn_down_right:[[1,1,24]],arrow_up:[[1,3,24]],arrow_up_circle:[[0,4,24],[1,4,24]],arrow_up_left:[[1,1,24]],arrow_up_rectangle_portrait:[[1,1,24]],arrow_up_right:[[1,
2,18],[1,2,24],[1,2,36]],audio:[[0,14,12],[0,14,18],[0,14,24],[1,14,12],[1,14,18],[1,14,24],[1,14,48]],audio_arrow_flip:[[0,2,24],[1,2,24]],audio_badge:[[0,3,24],[1,3,24]],audio_scissors:[[1,1,24]],audio_slash:[[0,2,24],[1,2,24]],audio_spark:[[1,1,24]],audio_square_stack:[[0,2,24],[1,2,24]],audio_staff:[[0,2,24],[1,2,24]],backspace:[[0,5,24],[1,5,24]],bag:[[0,7,24],[1,7,24]],bag_bookmark:[[1,2,24]],basketball:[[0,2,24],[1,2,24]],beaker:[[1,2,24]],bed:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],bell:[[0,
10,24],[1,10,24]],bell_slash:[[1,1,24]],bell_waves:[[0,2,24],[1,2,24]],blur:[[1,2,24]],book:[[0,3,24],[1,3,24]],book_audio:[[1,1,24]],bookmark:[[0,9,18],[0,9,24],[1,9,18],[1,9,24]],briefcase:[[1,2,24]],briefcase_slash:[[0,3,24],[1,3,24]],brightness:[[0,3,24],[1,3,24]],browser:[[0,2,24],[1,2,24]],browser_slash:[[1,1,24]],bubble:[[1,1,24]],bubble_asterisk:[[0,2,24],[1,2,24]],bubble_ellipsis:[[1,1,24]],bubble_gear:[[1,1,24]],bubble_list:[[1,1,24]],bubble_pencil:[[1,1,24]],bubble_slash:[[0,2,24],[1,2,
24]],bubble_slow:[[0,2,24],[0,2,48],[1,2,24],[1,2,48]],bubble_spark:[[1,1,24]],bubble_sparkles:[[1,1,24]],bubble_stack:[[0,2,24],[1,2,24]],bug:[[0,3,24],[1,3,24]],business:[[0,4,24],[1,4,24]],cable:[[1,2,24]],calculator:[[0,3,24],[1,3,24]],calendar:[[0,4,24],[1,4,24]],calendar_event:[[0,2,24],[1,2,24]],calendar_today:[[1,1,24]],camera:[[0,10,24],[1,10,18],[1,10,24]],camera_audio:[[1,5,24]],camera_flip:[[1,4,24]],camera_hashtag:[[1,5,24]],camera_sparkles:[[1,1,24]],camera_switch:[[0,3,24],[1,3,24]],
card:[[0,3,24]],cart:[[0,4,24],[1,4,24]],cart_add:[[1,1,24]],cat:[[0,3,24],[1,3,24]],celebration:[[1,2,24]],chart_bar:[[1,1,24]],chart_bar_search:[[0,2,24],[1,2,24]],chart_bar_square:[[0,3,24],[1,3,18],[1,3,24]],chart_line:[[1,1,24]],chart_pie:[[0,2,24],[1,2,24]],chart_scatter_plot:[[1,1,24]],check:[[1,13,12],[1,13,18],[1,13,24],[1,13,36]],check_circle:[[0,10,24],[1,10,24]],check_done:[[1,1,24]],check_done_slash:[[1,1,24]],check_shield:[[1,1,24]],check_square:[[0,2,24],[1,2,24]],check_square_stack:[[0,
1,24]],chevron_collapse:[[1,3,24]],chevron_down:[[1,9,18],[1,9,24]],chevron_down_circle:[[0,3,24],[1,3,24]],chevron_down_end:[[1,1,24]],chevron_expand:[[1,5,24]],chevron_left:[[1,9,24,!0]],chevron_left_circle:[[0,3,24],[1,3,24]],chevron_left_end:[[1,1,24]],chevron_left_ios:[[1,2,24]],chevron_right:[[1,7,18,!0],[1,7,24,!0]],chevron_right_circle:[[0,3,24],[1,3,24]],chevron_right_end:[[1,1,24]],chevron_right_square:[[1,1,24]],chevron_up:[[1,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_sparkles:[[0,1,24]],clock:[[0,10,24],[0,10,48],[1,10,24]],clock_arrow_clockwise:[[1,1,24]],clock_half_dashed:[[1,1,24]],clock_split:[[0,2,24],[1,2,24]],clock_split_alert:[[0,
2,24],[1,2,24]],closed_captions:[[0,2,24],[1,2,24]],cloud:[[1,2,24]],cloud_arrow_down:[[1,3,24]],cloud_arrow_up:[[0,6,24],[1,6,18],[1,6,24]],cloud_check:[[0,3,24],[1,3,24]],cloud_ellipsis:[[0,3,24],[1,3,24]],cloud_slash:[[1,2,24],[1,2,48]],cms_allowlist:[[0,2,24],[1,2,24]],code:[[1,2,24]],compare:[[1,1,24]],compass:[[0,8,24],[1,8,24]],copy:[[1,3,24]],copy_to_all:[[1,1,24]],copyright:[[0,4,24],[1,4,24]],copyright_search:[[0,2,24],[1,2,24]],cover_claim:[[1,1,24]],creative_commons:[[0,2,24],[1,2,24]],
credit_card:[[0,4,24],[1,4,24]],crop:[[1,3,24]],crop_rotate:[[1,2,24]],crown:[[0,5,18],[0,5,24],[1,5,24]],csv:[[0,2,24],[1,2,24]],cube:[[0,2,24],[1,2,24]],cursor_click:[[0,2,24],[1,2,24]],curve:[[1,1,24]],cvp:[[0,2,24],[1,2,24]],dashboard:[[0,2,24],[1,2,24]],dashboard_add:[[1,1,24]],die_face3:[[0,2,24],[1,2,24]],directions:[[1,3,24]],display:[[0,2,24],[1,2,24]],display_slash:[[1,1,24]],divide:[[1,1,24]],document:[[0,2,24],[1,2,24]],document_arrow_up_right:[[0,2,24],[1,2,24]],dollar_sign_arrow_flip:[[1,
1,24]],dollar_sign_circle:[[0,11,24],[1,11,18],[1,11,24]],dollar_sign_circle_add:[[1,1,24]],dollar_sign_circle_hand:[[1,1,24]],dollar_sign_circle_pause:[[1,2,24]],dollar_sign_circle_slash:[[1,1,24]],dollar_sign_heart:[[0,23,12],[0,23,24],[1,23,12],[1,23,24]],dollar_sign_rectangle:[[1,1,24]],dollar_sign_tv:[[0,2,24],[1,2,24]],dot:[[0,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_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]],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,2,24]],music_video:[[0,4,24],[1,4,24]],music_video_slash:[[1,1,24]],n15:[[1,1,24]],n1point2x:[[1,1,24]],n1point5x:[[1,1,24]],n1point8x:[[1,1,24]],n1x:[[1,1,24]],n2d:[[1,1,24]],n2point5x:[[1,1,24]],n2x:[[1,1,24]],n3d:[[1,1,24]],n3x:[[1,1,24]],n4d:[[1,1,24]],n4k:[[0,1,24],[1,1,24]],n60:[[1,1,24]],n8k:[[0,1,24],[1,1,24]],new_release:[[1,1,24]],news:[[0,3,24],[1,3,24]],news_alert:[[0,1,24]],node_left:[[1,2,24]],node_right:[[1,2,24]],note:[[0,1,18],[0,1,24],[1,1,18],
[1,1,24]],note_spark:[[0,2,18],[0,2,24],[1,2,18],[1,2,24]],open_in_panel:[[1,1,24]],originals:[[0,1,24],[1,1,24]],overflow_horizontal:[[1,6,24],[1,6,36]],overflow_vertical:[[1,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:[[1,1,24]],pdf:[[1,2,24]],pencil:[[1,9,18],[1,9,24]],pencil_spark:[[1,1,24]],percent:[[1,
1,24]],person:[[0,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_stack:[[0,2,24],[1,2,18],
[1,2,24]],person_viewfinder:[[0,1,24],[1,1,24]],person_waveform:[[1,2,24]],person_waves:[[0,1,24],[1,1,24]],person_x:[[1,1,24]],phone:[[0,3,24],[1,3,12],[1,3,24]],piano:[[1,1,24]],picture_in_picture:[[0,2,24],[1,2,24]],picture_in_picture_stack:[[1,1,24]],pin:[[0,7,24],[1,7,18],[1,7,24]],pin_slash:[[0,2,24],[1,2,18],[1,2,24]],play:[[0,4,18],[0,4,24],[0,4,36],[0,4,48],[1,4,24]],play_circle:[[0,2,24],[0,2,48],[1,2,24]],play_circle_half_dashed:[[1,1,24]],play_slash:[[0,1,24],[1,1,24]],play_square_half_dashed:[[1,
1,24]],play_square_stack:[[0,1,24],[1,1,24]],playables:[[0,2,24],[1,2,18],[1,2,24]],player_default:[[0,1,24],[1,1,24]],player_full_enter:[[1,1,24]],player_full_enter_alt:[[1,1,24]],player_full_enter_portrait:[[1,2,24]],player_full_exit:[[1,1,24]],player_full_exit_alt:[[1,1,24]],player_mini_enter:[[0,1,24],[1,1,24]],player_mini_exit:[[1,1,24]],player_multiview:[[0,1,24],[1,1,24]],player_switch:[[0,1,24],[1,1,24]],player_theater:[[0,1,24],[1,1,24]],playlist:[[1,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,2,24]],price_tag:[[0,8,24],[0,8,
48],[1,8,24]],price_tag_heart:[[1,2,24]],price_tag_rectangle:[[1,1,24]],qr_code:[[1,3,24]],qr_code_viewfinder:[[1,1,24]],question_head:[[1,2,24]],queue:[[1,1,24]],queue_last:[[1,1,24]],queue_next:[[1,1,24]],quiz:[[0,1,24],[1,1,24]],quote:[[0,1,24],[1,1,24]],quote_slash:[[0,1,24],[1,1,24]],record:[[0,2,24]],redo:[[1,1,24]],remix:[[1,2,24]],remote_waves:[[1,1,24]],repeat:[[0,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,1,24]],seek_forward:[[0,1,24]],seek_rewind:[[0,1,24]],send:[[0,4,24,!0],[1,4,24,!0]],shadow:[[1,1,24]],shadow_hard:[[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_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]],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,10,12],[0,10,24],[1,10,24]],spark_bubble_chat:[[1,1,24]],spark_waves:[[0,2,24],[1,2,24]],sparkles:[[0,2,24],[1,2,24]],speaker:[[1,2,24]],speaker_headset:[[1,2,24]],speaker_slash:[[1,1,24]],speaker_stack:[[1,1,24]],speaker_stack_slash:[[1,1,24]],speedometer:[[0,2,24],[1,2,24]],splice:[[1,1,24]],split:[[1,4,24]],spotlight:[[0,3,24],[1,3,24]],spreadsheet:[[1,1,24]],square:[[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,2,24],[1,2,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,4,24],[0,4,36],[1,4,24]],stop_circle:[[0,2,24],[1,2,24]],stopwatch:[[0,
5,24],[1,5,24]],stopwatch10:[[0,1,24]],stopwatch3:[[0,1,24]],storage:[[0,2,24],[1,2,24]],subscriptions:[[0,11,24],[1,11,24],[1,11,48]],subtitles:[[0,4,24],[1,4,24]],subtitles_bubble:[[1,1,24]],sum:[[1,1,24]],super_chat:[[0,8,24],[1,8,24]],super_star:[[1,1,24]],super_sticker:[[0,8,24],[1,8,24]],super_store:[[0,3,24],[1,3,24]],surround_sound:[[0,2,24],[1,2,24]],tablet_landscape:[[1,1,24]],target:[[1,2,24]],target_add:[[1,2,24]],template_add:[[1,3,24]],template_play:[[0,3,24],[1,3,24]],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,3,24]],tilt:[[1,4,24]],timeline:[[1,3,24]],timeline_spark:[[1,1,24]],timestamp_add:[[1,1,24]],toolbox:[[0,4,24],[1,4,24]],transcript:[[1,2,24]],transition:[[0,5,24],[1,5,24]],translate:[[1,4,18],[1,4,24]],trash_can:[[0,10,24],[1,10,18],[1,10,24]],trending:[[0,2,24],[1,2,24]],triangle_down:[[0,7,24],[1,7,24]],triangle_up:[[0,2,24],[1,2,24]],trophy:[[0,3,24],[1,3,24]],truck:[[0,5,24],[1,5,24]],tv:[[0,8,24],[1,8,24],[1,8,48]],tv_arrow_left:[[1,
2,24]],tv_circle:[[0,3,24],[1,3,24]],tv_mobile:[[1,2,24],[1,2,36]],tv_slash:[[1,1,24]],unarchive:[[1,1,24]],undo:[[1,1,24]],upload:[[1,5,24]],variable:[[1,4,24]],video:[[0,2,24],[1,2,24]],video_camera:[[0,9,24],[0,9,48],[1,9,24],[1,9,48]],video_camera_add:[[1,2,24]],video_camera_slash:[[1,1,24]],video_link:[[1,5,18],[1,5,24]],video_spark:[[1,2,24]],video_stitch:[[1,2,24]],video_waveform:[[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 DXg={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"},PC=function(M){this.iconUrlProvider=M};
PC.prototype.resolveIcon=function(M,q){var G=DXg[M.iconName.toUpperCase()];G&&(M.iconName=G);var K=M.iconName;K=K.replace(/-/g,"_");M=Object.assign({},M,{iconName:this.mapIconTypeToStandardName(K,!!G)||K.toLowerCase()});if(_.w("enable_web_delhi_icons")||G){var n;return Eiy(I2I,M,((n=this.iconUrlProvider)==null?void 0:n.getYtStandardUrl)||yfj,q)}var E;return Eiy(QSP,M,((E=this.iconUrlProvider)==null?void 0:E.getYtStandardUrl)||p0F,q)};
PC.prototype.mapIconTypeToStandardName=function(M,q){return _.w("enable_web_delhi_icons")||q?BLI[M.toUpperCase()]:gqI[M.toUpperCase()]};
PC[dP]=[_.WR(P5P)];var urI=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),Jxs=new Set(["offline_downloading_eighty","offline_downloading_forty","offline_downloading_sixty","offline_downloading_twenty","offline_downloading_zero"]),Zvv=function(M){this.urlProvider=this.iconUrlProvider=M};
_.l(Zvv,PC);
Zvv.prototype.resolveIcon=function(M,q){M.iconName==="youtube_logo"&&(M.iconName="yt-logo-updated");if(M.iconName==="youtube_premium_logo"||M.iconName==="youtube_red_logo")M.iconName="yt-logo-red-updated";var G=Object.assign({},M);M.iconName==="menu"&&(_.w("enable_web_delhi_icons")||(G.iconName="bars_3"),G.iconStyle="youtube_outline");M.iconSetName==="socialNetworksRound"&&(M.iconName==="mail"&&(G.iconName="email"),M.iconName==="embed"&&(G.iconSize=60));M.iconName==="more"&&(G.iconName="overflow_horizontal");
M.iconName==="fullscreen"&&(G.iconName="screen_full");M.iconName==="premium_standalone"&&(G.iconName="premium_standalone_cairo");_.w("enable_connect_icon_update_web")&&M.iconName==="account_linked"&&(G.iconName="circles_overlap_check",G.iconStyle="youtube_fill");_.w("enable_connect_icon_update_web")&&M.iconName==="account_unlinked"&&(G.iconName="circles_overlap",G.iconStyle="youtube_outline");urI.has(M.iconName)&&(G.iconStyle="youtube_fill");_.w("enable_web_delhi_icons")&&(M.iconName==="playlist_add"&&
(G.iconName="bookmark"),M.iconName==="offline_pin"&&(G.iconName="arrow_down_circle",G.iconStyle="youtube_fill"),Jxs.has(M.iconName)&&(G.iconName+="_updated"));M=Object.assign({},G,{iconName:(PC.prototype.mapIconTypeToStandardName.call(this,G.iconName)||G.iconName).toLowerCase()});var K;return(M=Eiy(l2I,M,((K=this.urlProvider)==null?void 0:K.getUrl)||Lsi,q))?M:PC.prototype.resolveIcon.call(this,G,q)};
Zvv[dP]=[_.WR(P5P)];_.bvI=1;var i6=function(M,q){this.JSC$17409_commandHandler=M;this.innertubeTransportService=q};
_.l(i6,F0);i6.prototype.resolveCommand=function(M,q){var G=this,K,n,E;return _.L(function(p){return(K=_.C(M,AsJ))?p.return(UXI(G,K,(n=q)==null?void 0:(E=n.form)==null?void 0:E.element)):p.return()})};
var UXI=function(M,q,G){q={profileCardContext:q.profileCardContext,profileOwnerExternalChannelId:q.profileOwnerExternalChannelId};var K=_.m4(OJ$);return _.e6(M.innertubeTransportService,q,K).then(function(n){if(!n)throw new _.bj("GetProfileCard failed");if(n=n.popupCommand){M.JSC$17409_commandHandler.resolveCommand(n,{form:{element:G}});_.aQ(_.nl(),66557);n=n==null?void 0:n.clickTrackingParams;var E=_.wt();n&&E&&_.nl().graftServerVe(n,E)}})};
i6[dP]=[_.vR,_.YU];var cC=function(){};
_.l(cC,F0);cC.prototype.resolveCommand=function(M){var q,G;return _.L(function(K){q=_.C(M,or9);if(!q)return K.return();G=Number(q.enableDelayedPacfLoggingTvMs);if(isNaN(G)){var n=aR();P7M(n,q,0)}else P7M(aR(),q,G);_.gL(K)})};_.gu=function(){};
_.l(_.gu,F0);
_.gu.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A;return _.L(function(v){K=_.C(M,lDS);E=(n=q.form)==null?void 0:n.element;y=(p=E)==null?void 0:p.closest("ytd-enforcement-message-view-model");if(!K||!y)return v.return();G.allowAdsAction||(Y=K.fundingChoiceInstructionPageUrl,G.allowAdsAction=new OAB(window,_.jG(Y)));var h=G.allowAdsAction;h.wallElement=y;h.allowAdsPopup.style.setProperty("display","flex","important");var t=h.scrollManager;t.isScrollingEnabled&&(t.originalBodyOverflow=t.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow,
t.JSC$10004_domHelper.JSC$9330_document_.body.style.overflow="hidden",t.isScrollingEnabled=!1);h.wallElement.style.setProperty("display","none","important");B8x(h.accessibilityManager,h.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((A=G.allowAdsAction.allowAdsPopup)&&A instanceof HTMLElement)for(h=_.k(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),t=h.next();!t.done;t=h.next()){var O=_.k(t.value);t=O.next().value;O=O.next().value;
A.style.setProperty(t,O)}_.gL(v)})};
_.gu.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var BC=function(){};
_.l(BC,F0);BC.prototype.resolveCommand=function(M){var q;return _.L(function(G){q=_.C(M,P38);if(!q)return G.return();XQH(M);_.gL(G)})};var xX8=new _.$k("SESSION_STORAGE");var QV=function(M){this.sessionStorage=M("conversations")};
_.l(QV,F0);QV.prototype.resolveCommand=function(M){var q=this,G;return _.L(function(K){G=_.C(M,JsB);if(!G)return K.return();G.conversationId?q.sessionStorage.set("conversation_id",G.conversationId):q.sessionStorage.remove("conversation_id");_.gL(K)})};
QV[dP]=[xX8];var Ih=function(M){this.JSC$17429_commandHandler=M};
_.l(Ih,F0);
Ih.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A;return _.L(function(v){if(v.nextAddress==1){G=_.C(M,qH8);if((K=G)==null||!K.text||!navigator.clipboard)return v.return();_.Cv(v,2);return v.yield(navigator.clipboard.writeText(G.text),4)}if(v.nextAddress!=2){if(!G.successActions||G.successActions.length===0)return v.return();n=_.k(G.successActions);for(E=n.next();!E.done;E=n.next())p=E.value,q.JSC$17429_commandHandler.resolveCommand(p);return _.KF(v,0)}_.i5(v);if(!G.failureActions||G.failureActions.length===
0)return v.return();y=_.k(G.failureActions);for(Y=y.next();!Y.done;Y=y.next())A=Y.value,q.JSC$17429_commandHandler.resolveCommand(A);_.gL(v)})};
Ih[dP]=[_.vR];var Dq=function(M){this.JSC$17433_commandHandler=M};
_.l(Dq,F0);
Dq.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t;return _.L(function(O){switch(O.nextAddress){case 1:K=_.C(M,DI8);if(!K)return O.return();_.Cv(O,2);if(!K.imageBytes&&!K.imageUrl)throw Error("Ai");if(!K.imageUrl){if(K.imageBytes){E=K.imageBytes;p=E.replace(/-/g,"+").replace(/_/g,"/");var a=Afy(p);n=_.T3(a)}O.jumpTo(4);break}return O.yield(fetch(K.imageUrl),5);case 5:return y=O.yieldResult,O.yield(y.blob(),6);case 6:Y=O.yieldResult,n=_.T3(Y);case 4:h=(A=q)==null?void 0:(v=A.form)==
null?void 0:v.element;t=document.createElement("a");Vk(t,n);h.appendChild(t);t.download="";t.click();h.removeChild(t);URL.revokeObjectURL(_.by(n));K.successCommand&&G.JSC$17433_commandHandler.resolveCommand(K.successCommand);_.KF(O,0);break;case 2:_.i5(O),K.errorCommand&&G.JSC$17433_commandHandler.resolveCommand(K.errorCommand),_.gL(O)}})};
Dq[dP]=[_.vR];var u6=function(M){this.store=M};
_.l(u6,F0);u6.prototype.resolveCommand=function(M){var q=this,G,K,n;return _.L(function(E){K=(G=_.C(M,_.u9J))==null?void 0:G.entityBatchUpdate;if(!K)return E.jumpTo(0);n=Object.assign({},K,{mutations:[].concat(_.Ui(K.mutations||[]))});return E.yield(_.nK(n,q.store),0)})};var z7R=function(M){this.JSC$17440_commandHandler=M;this.feedbackDialogMap=new Map};
z7R.prototype.openDialog=function(M,q){(M=this.feedbackDialogMap.get(M))&&this.JSC$17440_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:M}},q)};
z7R[dP]=[_.vR];var JP=new _.$k("FEEDBACK_CONTROLLER_TOKEN");var Zq=new _.$k("APP_STORE_TOKEN");var b6=function(M,q){this.store=M;this.controller=q};
_.l(b6,F0);b6.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S;return _.L(function(m){if(m.nextAddress==1){K=_.C(M,_.tM);if(E=(n=K)==null?void 0:n.contentId)for(y=_.k(((p=K)==null?void 0:p.actions)||[]),Y=y.next();!Y.done;Y=y.next())A=Y.value,mXs(G,A,E);t=(v=q)==null?void 0:(h=v.form)==null?void 0:h.element;return m.yield(_.fx(t,[M,{impression:(O=q)==null?void 0:O.disableClickTracking}]).catch(function(){}),2)}a=m.yieldResult;
((g=a)==null?0:(D=g.data)==null?0:(J=D.feedbackResponses)==null?0:J.length)&&(V=(Z=a.data.feedbackResponses[0])==null?void 0:Z.followUpDialog)&&E&&(S=G.controller)!=null&&S.feedbackDialogMap.set(E,V);_.gL(m)})};
var mXs=function(M,q,G){var K=_.C(q,_.eP);if(K){K=_.k(K.commands||[]);for(var n=K.next();!n.done;n=K.next())mXs(M,n.value,G)}_.C(q,_.PA)&&M.store.dispatch(_.LL("commandEntity",GrF(G),{key:G,command:q}));_.C(q,CtB)&&M.store.dispatch(_.LL("commandEntity",GrF(G),{key:G,command:q}))};
b6[dP]=[Zq,JP];var Uo=function(M){this.controller=M};
_.l(Uo,F0);Uo.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p;return _.L(function(y){K=_.C(M,_.sQ);E=(n=K)==null?void 0:n.targetId;if(((p=K)==null?void 0:p.signal)!=="TELL_US_WHY"||!E)return y.return();G.controller.openDialog(E,q);_.gL(y)})};
Uo[dP]=[JP];var x0=function(M){this.store=M};
_.l(x0,F0);x0.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A;return _.L(function(v){K=_.C(M,Ljw);E=(n=K)==null?void 0:n.contentId;Y=(p=q)==null?void 0:(y=p.form)==null?void 0:y.element;A=_.fx(Y,[M]);E&&G.undo(E);return v.yield(A,0)})};
x0.prototype.undo=function(M){this.store.dispatch(_.LL("commandEntity",GrF(M),{key:M,command:void 0}))};
x0[dP]=[Zq];var zJ=function(M){this.JSC$17455_commandHandler=M};
_.l(zJ,F0);zJ.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A;return _.L(function(v){G=_.C(M,$SI);K=G.flowStateKey;n=G.validationFailureCommand;E=G.submitValidFormCommand;p=GVD(_.u_,[K||""]);y=_.C(p,q7l);((Y=y)==null?0:Y.isValid)&&E&&q.JSC$17455_commandHandler.resolveCommand(E);((A=y)==null?0:A.isValid)||!n||q.JSC$17455_commandHandler.resolveCommand(n);_.gL(v)})};
zJ[dP]=[_.vR];var mB=function(M){this.innertubeTransportService=M};
_.l(mB,F0);mB.prototype.resolveCommand=function(M,q){var G=this,K;return _.L(function(n){return n.yield(_.Dt(G.innertubeTransportService,M,(K=q)==null?void 0:K.form).then(function(E){var p,y;q==null||(p=q.commandController)==null||(y=p.onSuccess)==null||y.call(p,M,E)},function(E){var p,y;
q==null||(p=q.commandController)==null||(y=p.onServerError)==null||y.call(p,M,E)}),0)})};
mB[dP]=[_.YU];var Sx=function(){};
_.l(Sx,F0);Sx.prototype.resolveCommand=function(M){var q,G,K,n;return _.L(function(E){if(q=_.C(M,_.FFx)){if(G=q.gtmId)K=_.R9("GL",""),_.Bz(G,K);(n=q.gtmData)&&_.Qf(n)}_.gL(E)})};var TJ=function(M,q,G){this.innertubeTransportService=M;this.JSC$17466_actionRouter=q;this.JSC$17466_screenManager=G};
_.l(TJ,F0);TJ.prototype.resolveCommand=function(M){var q=this,G,K;return _.L(function(n){G=_.C(M,RIf);if(!G)return n.return();K=G.command;if(!K)return n.return();q.JSC$17466_actionRouter.triggerAction("yt-insert-rich-section-action",G);return n.yield(_.Dt(q.innertubeTransportService,K,{disableCache:!0}).then(function(E){M.clickTrackingParams&&(E==null?0:E.trackingParams)&&q.JSC$17466_screenManager.graftServerVe(E.trackingParams,_.yx(M.clickTrackingParams))}),0)})};
TJ[dP]=[_.YU,LN,_.Q$];vi$.bind(null,He);var Siv=vi$.bind(null,SRP);tn$.bind(null,He);var TLL=tn$.bind(null,SRP);w0F.bind(null,He);var rxg=w0F.bind(null,SRP);var ru=function(){};
_.l(ru,F0);
ru.prototype.resolveCommand=function(M){var q,G,K,n,E,p,y,Y,A,v;return _.L(function(h){q=_.C(M,Icd);if(!q)return h.return();K=((G=q.operations)==null?void 0:G.operations)||[];n=_.k(K);for(E=n.next();!E.done;E=n.next())if(p=E.value,p.insertItemSectionContent){var t=p.insertItemSectionContent,O=t.contents||[];t.insertByPositionInSection?Siv(t.insertByPositionInSection.sectionTargetId,O,t.insertByPositionInSection.position):t.insertByRelativePositionInSection&&t.insertByRelativePositionInSection.sectionTargetId&&t.insertByRelativePositionInSection.itemTargetId&&
TLL(t.insertByRelativePositionInSection.sectionTargetId,t.insertByRelativePositionInSection.itemTargetId,O,t.insertByRelativePositionInSection.relativePosition)}else p.replaceSection?(t=p.replaceSection,O={},t.replaceByTargetId?O=t.replaceByTargetId:t.replaceByGroupId&&(O={targetId:t.replaceByGroupId.groupId,newContent:t.replaceByGroupId.newContent,undoKey:""}),O.newContent&&j0S(O.targetId,{continuationItems:[O.newContent]})):p.removeItem?(t=p.removeItem,t.removeByTargetId&&t.sectionTargetId&&rxg(t.sectionTargetId,
t.removeByTargetId.targetIds||[])):p.removeSection&&(p.removeSection.removeByTargetId?(y=void 0,jSI(((y=p.removeSection)==null?void 0:y.removeByTargetId.targetIds)||[])):p.removeSection.removeByGroupId&&(Y=void 0,jSI(((Y=p.removeSection)==null?void 0:Y.removeByGroupId.groupIds)||[])));v=((A=q.operations)==null?void 0:A.scrollConfig)||{};Vmn(v);_.gL(h)})};
var jSI=function(M){M=_.k(M);for(var q=M.next();!q.done;q=M.next())j0S(q.value,{continuationItems:[]})},Vmn=function(M){if(M.scrollToItem){var q=M.scrollToItem.item||{},G=q.itemTargetId;
q=q.sectionTargetId;if(G&&q){var K=document.querySelector("[data-target-id="+q+"]"),n=K==null?void 0:K.querySelector("[data-target-id="+G+"]");K&&n&&setTimeout(function(){var E=n.offsetTop-K.offsetTop,p;if(((p=M.scrollToItem)==null?void 0:p.scrollPosition)==="SCROLL_POSITION_CENTER")E-=K.offsetHeight/2,E+=n.offsetHeight/2;else{var y;((y=M.scrollToItem)==null?void 0:y.scrollPosition)==="SCROLL_POSITION_END"&&(E-=K.offsetHeight,E+=n.offsetHeight)}K.scroll({top:E,behavior:"smooth"})},100)}}};var jx=new _.$k("CLIENT_NAME_TOKEN");var R7R=new _.$k("DEFAULT_STORE_EXPIRATION_TOKEN");var oMi=new _.$k("CLIENT_LOCATION_SERVICE_TOKEN");var VV=function(M,q,G){this.clientName=M||_.R9("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=q||_.Qr.getInstance();this.JSC$17494_commandHandler=G||_.$A.instance};
_.l(VV,F0);VV.prototype.resolveCommand=function(M){var q=this,G,K;return _.L(function(n){K=(G=_.C(M,A18))==null?void 0:G.onComplete;q.clientLocationService.clearLocationPlayabilityToken(q.clientName);K&&q.JSC$17494_commandHandler.resolveCommand(K);_.gL(n)})};
VV[dP]=[jx,oMi,_.vR];var Rh=function(M){this.innertubeTransportService=M};
_.l(Rh,F0);Rh.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p;return _.L(function(y){E=(K=q)==null?void 0:(n=K.form)==null?void 0:n.element;return y.yield(_.Dt(G.innertubeTransportService,M,(p=q)==null?void 0:p.form).then(function(Y){wwy(E,new CustomEvent("yt-service-request-completed"),{data:Y},_.R9("openPopupConfig"))}),0)})};
Rh[dP]=[_.YU];var fy=function(){};
_.l(fy,F0);fy.prototype.resolveCommand=function(M){var q,G;return _.L(function(K){q=_.C(M,ENS);G=document.querySelector("mini-app-container-view-model");if(!q||!G)return K.return();q.isPlaying?G.dispatchEvent(new Event("play")):G.dispatchEvent(new Event("pause"));_.gL(K)})};var FF=function(){};
_.l(FF,F0);FF.prototype.resolveCommand=function(M){var q,G,K,n,E,p,y;return _.L(function(Y){q=_.C(M,TsP);if((G=q)==null||!G.paramKeys)return Y.return();K=q.paramKeys;n=_.s9(window.location.href);E=_.k(K);for(p=E.next();!p.done;p=E.next())y=p.value,n.JSC$10036_queryData_.remove(y);window.history.replaceState(window.history.state,document.title,n.toString());_.gL(Y)})};var f2I=function(){this.dropdownMap=new Map};_.FwR=new _.$k("DROPDOWN_CONTROLLER_TOKEN");var HC=function(M){this.controller=M};
_.l(HC,F0);HC.prototype.resolveCommand=function(M){var q=this,G,K,n,E;return _.L(function(p){G=_.C(M,ORJ);if(!G)return p.return();K=G;n=K.dropdownId;E=K.selectedOptionIndex;if(n===void 0||E===void 0)return p.return();var y=q.controller.dropdownMap.get(n);y&&y(E);_.gL(p)})};
HC[dP]=[_.FwR];var ex=function(M){this.controller=M};
_.l(ex,F0);ex.prototype.resolveCommand=function(M){var q=this,G;return _.L(function(K){return(G=_.C(M,c1I))?K.yield(q.controller.closeDialog(),0):K.return()})};
ex[dP]=[_.b4];var sm=function(M){this.controller=M};
_.l(sm,F0);sm.prototype.resolveCommand=function(M){var q=this,G,K;return _.L(function(n){G=_.C(M,LZl);if(!G)return n.return();var E,p=G.panelIdentifier||((E=G.identifier)==null?void 0:E.tag);if(!p)throw Error("Bi");return(K=p)?n.yield(q.controller.hidePanel({identifier:K}),0):n.jumpTo(0)})};
sm[dP]=[_.Ja];var MR=function(M){this.controller=M};
_.l(MR,F0);MR.prototype.resolveCommand=function(M){var q=this,G;return _.L(function(K){return(G=_.C(M,esB))?K.yield(q.controller.closeSheet(),0):K.return()})};
MR[dP]=[_.ZB];var qR=function(M,q){this.innertubeTransportService=M;this.controller=q};
_.l(qR,F0);qR.prototype.resolveCommand=function(M){var q=this,G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return G=_.C(M,Y_9),(K=G)!=null&&K.panelId?p.yield(q.controller.getReloadContinuation(G.panelId),2):p.return();if(p.nextAddress!=3)return(n=p.yieldResult)?p.yield(_.Dt(q.innertubeTransportService,M,{continuation:n}),3):p.return();E=p.yieldResult;return p.yield(q.controller.updatePanel({identifier:G.panelId,panelContents:E.content,shouldFocus:!1}),0)})};
qR[dP]=[_.YU,_.Ja];var GG=function(M,q,G){this.innertubeTransportService=M;this.JSC$17536_screenManager=q;this.JSC$17536_commandHandler=G};
_.l(GG,F0);
GG.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1){G=_.C(M,_.nv$);if(!G)return Y.return();if(G.commands)for(K=_.k(G.commands),n=K.next();!n.done;n=K.next())E=n.value,q.JSC$17536_commandHandler.resolveCommand(E,{disableClickTracking:!0});p=_.yx(M.clickTrackingParams);_.aQ(q.JSC$17536_screenManager,21760,p,{layer:7,parentLayer:0});return Y.yield(_.Dt(q.innertubeTransportService,M),2)}y=Y.yieldResult;if(!y)return Y.return();q.JSC$17536_screenManager.graftServerVe(y.trackingParams,p,
7);_.gL(Y)})};
GG[dP]=[_.YU,_.Q$,_.vR];var Kf=new _.$k("PANEL_LOADING_STRATEGY_TOKEN");var nf=function(M,q){this.controller=M;this.panelLoadingStrategy=q};
_.l(nf,F0);
nf.prototype.resolveCommand=function(M,q){var G=this,K,n,E;return _.L(function(p){K=_.C(M,s4P);if((n=K)==null||!n.panelLoadingStrategy)return p.return();E=function(y){var Y,A,v,h,t,O,a,g,D,J;return _.L(function(Z){A=_.C((Y=y.dialogViewModel)==null?void 0:Y.header,w5p);v={viewModel:y.dialogViewModel};h={};if(a=_.w("web_enable_dialog_header_label")?(t=A)==null?void 0:(O=t.headline)==null?void 0:O.content:void 0)h.ariaLabel=a;K.dismissOnBackgroundTap===!1&&(h.isModal=!0);return y.dialogViewModel?Z.yield(G.controller.openDialog(v,
(J=(g=q)==null?void 0:(D=g.form)==null?void 0:D.element)!=null?J:document.body,h),0):Z.return()})};
return p.yield(G.panelLoadingStrategy.execute({command:M,data:K.panelLoadingStrategy,renderFn:E,createScreenConfig:{layer:4}}),0)})};
nf[dP]=[_.b4,Kf];var Em=function(M,q,G){this.innertubeTransportService=M;this.controller=q;this.JSC$17556_screenManager=G};
_.l(Em,F0);
Em.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J;return _.L(function(Z){switch(Z.nextAddress){case 1:K=_.C(M,_.hM);if(!K)return Z.return();var V,S=K.panelIdentifier||((V=K.identifier)==null?void 0:V.tag);if(!S)throw Error("Bi");n=S;return Z.yield(G.controller.isVisible(n,!0),2);case 2:if((E=Z.yieldResult)&&K.blockIfPanelOpen)return Z.return();Y=(y=(p=G.controller).getPanelContent)==null?void 0:y.call(p,n);if(!(V=Y))if(K){var m;V=((m=K.globalConfiguration)==null?void 0:
m.initialState)||K.engagementPanel;if(m=!V)m=!!(K==null?0:(S=K.engagementPanelPresentationConfigs)==null?0:S.engagementPanelPopupPresentationConfig);m&&(V=_.CBy(K.panelIdentifier,K.identifier))}else V=void 0;A=V;v=K.engagementPanelPresentationConfigs;h=K.engagementPanelExtras;return Z.yield(G.controller.showPanel({identifier:n,panelContents:A,config:v,extras:h,target:(t=q)==null?void 0:(O=t.form)==null?void 0:O.element}),3);case 3:if(!K.globalConfiguration){Z.jumpTo(0);break}if(K.globalConfiguration.reuseModelAndState&&
_.w("enable_ai_companion")&&(D=(g=(a=G.controller).getPanelContent)==null?void 0:g.call(a,n)))return Z.return();_.aQ(G.JSC$17556_screenManager,32633);return Z.yield(_.Dt(G.innertubeTransportService,M),5);case 5:return J=Z.yieldResult,G.JSC$17556_screenManager.graftServerVe(J.trackingParams),Z.yield(G.controller.updatePanel({identifier:n,panelContents:J.content,shouldFocus:!0,extras:h,updatePanelContinuationData:J.updatePanelContinuationData}),0)}})};
Em[dP]=[_.YU,_.Ja,_.Q$];var NR=function(M,q){this.controller=M;this.panelLoadingStrategy=q};
_.l(NR,F0);NR.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v;return _.L(function(h){K=_.C(M,_.Ayy);if((n=K)==null||!n.panelLoadingStrategy)return h.return();y=HvU(G.controller,(E=q)==null?void 0:(p=E.form)==null?void 0:p.element);A=(Y=K.contextualSheetPresentationConfig)==null?void 0:Y.position;v=function(t){return _.L(function(O){return t.sheetViewModel?O.yield(G.controller.openSheet({viewModel:t.sheetViewModel,sheetPosition:A},y),0):O.return()})};
return h.yield(G.panelLoadingStrategy.execute({command:M,data:K.panelLoadingStrategy,renderFn:v,createScreenConfig:{layer:0}}),0)})};
NR[dP]=[_.ZB,Kf];var kb=function(M,q){this.controller=M;this.JSC$17567_commandHandler=q};
_.l(kb,F0);kb.prototype.resolveCommand=function(M,q){var G=this,K,n,E;return _.L(function(p){if(p.nextAddress==1){K=_.C(M,vyf);var y=_.C(K.showCommand,_.hM),Y,A,v=(A=y==null?void 0:y.panelIdentifier)!=null?A:y==null?void 0:(Y=y.identifier)==null?void 0:Y.tag;if(!v)throw Error("Ci");n=v;return p.yield(G.controller.isVisible(n),2)}return(E=p.yieldResult)?p.yield(G.controller.hidePanel({identifier:n}),0):p.yield(G.JSC$17567_commandHandler.resolveCommand(K.showCommand,q),0)})};
kb[dP]=[_.Ja,_.vR];var pf=function(M,q,G){this.innertubeTransportService=M;this.controller=q;this.JSC$17570_screenManager=G};
_.l(pf,F0);
pf.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R,se;return _.L(function(yY){switch(yY.nextAddress){case 1:return K=G=_.C(M,wf$),n=K.targetPanelIdentifier,E=K.contentSourcePanelIdentifier,p=K.globalConfiguration,((y=n)==null?0:y.tag)&&((Y=E)==null?0:Y.tag)?p?yY.yield(q.controller.showPanel({identifier:n.tag,panelContents:_.CBy(n.tag,n)}),5):yY.yield((t=(h=q.controller).getPanel)==null?void 0:t.call(h,E.tag),4):yY.return();case 4:O=yY.yieldResult;A=(a=O)==
null?void 0:(D=(g=a).getPanelContent)==null?void 0:D.call(g);yY.jumpTo(3);break;case 5:return yY.yield(_.Dt(q.innertubeTransportService,M),6);case 6:J=yY.yieldResult,((Z=J)==null?0:Z.trackingParams)&&q.JSC$17570_screenManager.graftServerVe(J.trackingParams),A=(V=J)==null?void 0:V.content,v=(S=J)==null?void 0:S.updatePanelContinuationData;case 3:if(R=(m=A)==null?void 0:m.engagementPanelSectionListRenderer)return yY.yield(q.controller.showPanel({identifier:n.tag,panelUpdatableFields:{content:R.content,
secondaryHeaderContent:(se=R.header)!=null?se:{},targetId:R.targetId},updatePanelContinuationData:v}),0);yY.jumpTo(0)}})};
pf[dP]=[_.YU,_.Ja,_.Q$];var y_=function(){};
_.l(y_,F0);y_.prototype.resolveCommand=function(M){var q,G,K;return _.L(function(n){if(n.nextAddress==1)return(q=_.C(M,lMJ))?n.yield(_.s0(),2):n.return();G=n.yieldResult;if(!G)return n.return();var E=G,p=(K=q)==null?void 0:K.languageCode,y;(E==null?0:(y=E.isReady)==null?0:y.call(E))&&(p=a0e(E,p))&&E.setAudioTrack(p);_.gL(n)})};var Lf=function(){};
_.l(Lf,F0);var e7s=function(M){var q;return _.L(function(G){q=_.R9("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_BACKGROUND_AUDIO_PLAYER;M.JSC$17581_mainAppPlayer=new MJ(q);document.addEventListener("yt-page-data-updated",M.JSC$17581_pauseOnNavigation.bind(M));_.gL(G)})};
Lf.prototype.JSC$17581_pauseOnNavigation=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1)return q=M.JSC$17581_mainAppPlayer,K.yield(q.api,2);G=K.yieldResult;G.pauseVideo();_.gL(K)})};
var $XU=function(M,q,G){var K;return _.L(function(n){K=M.JSC$17581_mainAppPlayer;return n.yield(K.loadVideoWithPlayerVars({videoId:q,audio_only:"1",player_params:G}),0)})};
Lf.prototype.pauseVideo=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1)return q=M.JSC$17581_mainAppPlayer,K.yield(q.api,2);G=K.yieldResult;G.pauseVideo();_.gL(K)})};
Lf.prototype.playVideo=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1)return q=M.JSC$17581_mainAppPlayer,K.yield(q.api,2);G=K.yieldResult;G.playVideo();_.gL(K)})};
var sgL=function(M){var q,G;return _.L(function(K){if(K.nextAddress==1)return q=M.JSC$17581_mainAppPlayer,K.yield(q.api,2);G=K.yieldResult;G.mute();_.gL(K)})},MX5=function(M){var q,G;
return _.L(function(K){if(K.nextAddress==1)return q=M.JSC$17581_mainAppPlayer,K.yield(q.api,2);G=K.yieldResult;G.unMute();_.gL(K)})},qwn=function(M,q){return _.L(function(G){switch(G.nextAddress){case 1:switch(q){case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PLAY":return G.jumpTo(2);
case "BACKGROUND_AUDIO_PLAYBACK_ACTION_PAUSE":return G.jumpTo(3);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_MUTE":return G.jumpTo(4);case "BACKGROUND_AUDIO_PLAYBACK_ACTION_UNMUTE":return G.jumpTo(5)}G.jumpTo(0);break;case 2:return G.yield(M.playVideo(),7);case 7:G.jumpTo(0);break;case 3:return G.yield(M.pauseVideo(),8);case 8:G.jumpTo(0);break;case 4:return G.yield(sgL(M),9);case 9:G.jumpTo(0);break;case 5:return G.yield(MX5(M),10);case 10:G.jumpTo(0)}})};
Lf.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t;return _.L(function(O){return O.nextAddress==1?(G=_.C(M,HkI),((K=G)==null?0:K.newPlaybackParams)||((n=G)==null?0:n.controlAction)?q.JSC$17581_mainAppPlayer?O.jumpTo(2):O.yield(e7s(q),2):O.return()):((E=G)==null?0:E.newPlaybackParams)?(Y=(p=G)==null?void 0:(y=p.newPlaybackParams)==null?void 0:y.externalVideoId,t=(h=(A=G)==null?void 0:(v=A.newPlaybackParams)==null?void 0:v.playerParams)!=null?h:"",Y?O.yield($XU(q,Y,t),0):O.return()):
O.yield(qwn(q,G.controlAction),0)})};var Yb=function(M){this.JSC$17588_commandHandler=M};
_.l(Yb,F0);
Yb.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1)return(G=_.C(M,Xg2))?Y.yield(_.s0(),2):Y.return();K=Y.yieldResult;if(!K)return Y.return();var A=K,v=(n=G)==null?void 0:n.languageCode,h=(E=G)==null?void 0:E.isAutoTranslated;A.getVideoData&&_.l0i(A).length&&((v=PBy(A,v,h))?A.setOption("captions","track",v):(A.setOption("captions","stickyLoading",{}),A.setOption("captions","track",{})));p=K.isSubtitlesOn()?_.Ge("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.Ge("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");y=_.Tw(p,5E3);q.JSC$17588_commandHandler.resolveCommand(y);_.gL(Y)})};
Yb[dP]=[_.vR];var WQ=function(M,q){this.shortsPlayerPromise=M;this.JSC$17592_commandHandler=q};
_.l(WQ,F0);
WQ.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A;return _.L(function(v){if(v.nextAddress==1)return(G=_.C(M,VpI))?v.yield(q.shortsPlayerPromise,2):v.return();K=v.yieldResult;var h=ic$(K);h!=null&&h.length||(K.loadModule("captions"),h=ic$(K));n=h;if((E=n)==null||!E.length)return p=_.Ge("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),y=_.Tw(p),q.JSC$17592_commandHandler.resolveCommand(y),v.return();K.toggleSubtitles();Y=K.isSubtitlesOn()?_.Ge("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.Ge("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");A=_.Tw(Y);q.JSC$17592_commandHandler.resolveCommand(A);_.gL(v)})};
WQ[dP]=[_.mjP,_.vR];var AT=function(M){this.JSC$17595_actionRouter=M;this.dismissPlayerOverlayActions=new Map([["player_overlay_timely_shelf",function(q,G){q.triggerAction("yt-dismiss-shopping-timely-shelf-action",G)}]])};
_.l(AT,F0);AT.prototype.resolveCommand=function(M){var q=this,G,K,n;return _.L(function(E){G=_.C(M,gxP);if((K=G)==null||!K.overlayId)return E.return();n=q.dismissPlayerOverlayActions.get(G.overlayId);if(!n)throw Error("Di`"+G.overlayId);n(q.JSC$17595_actionRouter,G);_.gL(E)})};
AT[dP]=[LN];var dA=function(M){this.JSC$17599_playerPromise=M};
_.l(dA,F0);dA.prototype.resolveCommand=function(M){var q=this,G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return(G=_.C(M,A7S))?p.yield(q.JSC$17599_playerPromise,2):p.return();K=p.yieldResult;n=K.getVideoData().video_id;G.videoId===n&&(E=Number(G.offsetFromVideoStartMilliseconds),E>=0&&K.seekTo(E/1E3));_.gL(p)})};
dA[dP]=[_.fp];var G9L=_.$p("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),vQ=function(M){this.store=M};
_.l(vQ,F0);
var KKn=function(M){var q,G,K,n;return _.L(function(E){if(E.nextAddress==1)return q=_.R9("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,G=_.R9("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,K=q||G,M.JSC$17603_mainAppPlayer=new MJ(K),E.yield(M.JSC$17603_mainAppPlayer.api,2);n=E.yieldResult;n.addEventListener("onStateChange",M.JSC$17603_playerStateChangeListener.bind(M));document.addEventListener("yt-page-data-updated",M.JSC$17603_pauseOnNavigation.bind(M));window.addEventListener("state-navigatestart",
M.JSC$17603_pauseOnNavigation.bind(M));_.gL(E)})};
vQ.prototype.JSC$17603_playerStateChangeListener=function(M){switch(M){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"}nPR(this)};
var nPR=function(M){M.store.dispatch(_.LL("sfvAudioItemCurrentlyPlayingEntity",G9L,{key:G9L,externalVideoId:M.externalVideoId,sfvAudioItemPlaybackState:M.playbackState,nowPlayingEntityValue:M.nowPlayingEntityValue}))};
vQ.prototype.JSC$17603_pauseOnNavigation=function(){var M=this,q,G,K,n;return _.L(function(E){if(E.nextAddress==1){if(!M.JSC$17603_mainAppPlayer){var p=new _.bj("Error: mainAppPlayer is unavailable",M.JSC$17603_mainAppPlayer);_.T6(p);return E.return()}return E.yield(M.JSC$17603_mainAppPlayer.api,2)}q=E.yieldResult;K=(G=q)==null?void 0:G.getPlayerState();K!==1||(n=q)!=null&&n.pauseVideo();_.gL(E)})};
vQ.prototype.playVideo=function(M,q,G){var K=this,n,E;return _.L(function(p){if(p.nextAddress==1)return p.yield((n=K.JSC$17603_mainAppPlayer)==null?void 0:n.api,2);E=p.yieldResult;if(!K.JSC$17603_mainAppPlayer||!E){var y=new _.bj("Error: mainAppPlayer is unavailable",K.JSC$17603_mainAppPlayer);_.T6(y);return p.return()}return p.yield(K.JSC$17603_mainAppPlayer.loadVideoWithPlayerVars({videoId:K.externalVideoId,audio_only:"1",start:M/1E3,end:M/1E3+q,player_params:G}),0)})};
vQ.prototype.pauseVideo=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1){if(!M.JSC$17603_mainAppPlayer){var n=new _.bj("Error: mainAppPlayer is unavailable",M.JSC$17603_mainAppPlayer);_.T6(n);return K.return()}return K.yield(M.JSC$17603_mainAppPlayer.api,2)}q=K.yieldResult;(G=q)==null||G.pauseVideo();_.gL(K)})};
vQ.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S;return _.L(function(m){if(m.nextAddress==1)return G=_.C(M,SHx),n=(K=G)==null?void 0:K.nowPlayingEntityValue,p=(E=G)==null?void 0:E.externalVideoId,h=Number((v=(y=G)==null?void 0:(Y=y.defaultStartPoints)==null?void 0:(A=Y[0])==null?void 0:A.offsetMs)!=null?v:"0"),J=Number((D=(t=G)==null?void 0:(O=t.defaultStartPoints)==null?void 0:(a=O[0])==null?void 0:(g=a.duration)==null?void 0:g.seconds)!=null?D:"15"),S=(V=
(Z=G)==null?void 0:Z.playerParams)!=null?V:"",n&&p?q.JSC$17603_mainAppPlayer?m.jumpTo(2):m.yield(KKn(q),2):m.return();if(m.nextAddress!=6){if(q.nowPlayingEntityValue&&n===q.nowPlayingEntityValue)return q.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?m.yield(q.pauseVideo(),0):m.yield(q.playVideo(h,J,S),0);q.externalVideoId=p;q.nowPlayingEntityValue=n;q.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return m.yield(q.playVideo(h,J,S),6)}nPR(q);return m.jumpTo(0)})};
vQ[dP]=[Sb];var hT=function(M){this.JSC$17621_commandHandler=M};
_.l(hT,F0);hT.prototype.resolveCommand=function(M,q){var G=this,K,n,E;return _.L(function(p){if(p.nextAddress==1)return(K=_.C(M,PuI))?p.yield(_.s0(),2):p.return();n=p.yieldResult;if(!n)return p.return();(E=cfy(n))&&G.JSC$17621_commandHandler.resolveCommand(E,q);_.gL(p)})};
hT[dP]=[_.vR];var tT=function(M){this.JSC$17627_commandHandler=M};
_.l(tT,F0);tT.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1)return(K=_.C(M,iNS))?Y.yield(_.s0(),2):Y.return();n=Y.yieldResult;if(!n)return Y.return();(E=DHj(n))?G.JSC$17627_commandHandler.resolveCommand(E,q):(p=_.Ge("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),y=_.Tw(p),G.JSC$17627_commandHandler.resolveCommand(y));_.gL(Y)})};
tT[dP]=[_.vR];var Om=function(M){this.JSC$17630_playerPromise=M};
_.l(Om,F0);Om.prototype.resolveCommand=function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1)return(G=_.C(M,DBx))?n.yield(q.JSC$17630_playerPromise,2):n.return();K=n.yieldResult;K.isFullscreen()&&K.wakeUpControls();_.gL(n)})};
Om[dP]=[_.fp];var wA=function(M){this.JSC$17633_playerPromise=M};
_.l(wA,F0);wA.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p;return _.L(function(y){if(y.nextAddress==1){G=_.C(M,d5M);if(!G)return y.return();K=G.overlayRenderer;return K?(n=_.C(K,UBl))?y.yield(q.JSC$17633_playerPromise,3):y.jumpTo(0):y.return()}E=y.yieldResult;E.renderChapterSeekingAnimation(1,_.UX(n.text),(p=n.icon)==null?void 0:p.iconType);_.gL(y)})};
wA[dP]=[_.fp];var Cf=function(M){this.store=M};
_.l(Cf,F0);
Cf.prototype.resolveCommand=function(M){var q=this,G,K,n;return _.L(function(E){if(E.nextAddress==1){G=_.C(M,epv);if(!G)return E.return();K="";(n=q.store.getState().collabInviteLink)&&G.id===n.playlistId?K=n.inviteLinkURL:G.shortUrl&&(K=G.shortUrl);return K?E.yield(navigator.clipboard.writeText(K),3):E.jumpTo(0)}var p={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Ge("COPY_LINK_SUCCESS_TOAST")}}}}};_.AL().resolve(_.vR).resolveCommand(p);_.gL(E)})};
Cf[dP]=[Zq];var a6=function(M,q){this.innertubeTransportService=M;this.JSC$17643_commandHandler=q};
_.l(a6,F0);a6.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t;return _.L(function(O){if(O.nextAddress==1)return(K=_.C(M,_.eN))?O.yield(_.Dt(G.innertubeTransportService,M,(n=q)==null?void 0:n.form),2):O.return();(E=O.yieldResult)&&E.errorMetadata&&(p=E,y=_.Tw(p.error.message),G.JSC$17643_commandHandler.resolveCommand(y));Y=E;if((A=Y)==null?0:A.actions)for(v=_.k(Y.actions),h=v.next();!h.done;h=v.next())t=h.value,G.JSC$17643_commandHandler.resolveCommand(t);_.gL(O)})};
a6[dP]=[_.YU,_.vR];var o6=function(){};
_.l(o6,F0);o6.prototype.resolveCommand=function(M){var q;return _.L(function(G){q=_.C(M,mOP);if(!q)return G.return();(new WRS(q)).show();_.gL(G)})};_.lK=new _.$k("PLAYLIST_EDIT_CONTROLLER_TOKEN");var XC=function(M,q,G,K){this.store=M;this.innertubeTransportService=q;this.controller=G;this.JSC$17651_commandHandler=K};
_.l(XC,F0);
XC.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R,se,yY,d$,cy,t4,ay;return _.L(function(bH){if(bH.nextAddress==1){K=_.C(M,_.ri);if(!K)return bH.return();if(K.clientActions){n=_.k(K.clientActions);for(E=n.next();!E.done;E=n.next())p=E.value,G.JSC$17651_commandHandler.resolveCommand(p,q);var iH,oI=q==null?void 0:(iH=q.form)==null?void 0:iH.element;oI&&_.jP(oI,"yt-dismissible-item-action",K.clientActions)}return bH.yield(_.Dt(G.innertubeTransportService,M,(y=
q)==null?void 0:y.form),2)}if(Y=bH.yieldResult)Y.errorMetadata?(A=Y,v=_.Tw(A.error.message),G.JSC$17651_commandHandler.resolveCommand(v),"error"in Y&&((h=q)==null?0:(t=h.commandController)==null?0:t.onServerError)&&((O=q)==null||(a=O.commandController)==null||a.onServerError(M,Y))):(g=q)==null||(D=g.commandController)==null||(Z=(J=D).onSuccess)==null||Z.call(J,M,Y);V=Y;((S=V)==null?0:S.collaborationInviteLink)&&K.playlistId&&(_.w("web_enable_invite_collaborators_link")||_.w("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
G.store.dispatch(_.RJ({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:K.playlistId,inviteLinkUrl:V.collaborationInviteLink}}));((m=V)==null?0:m.redirectEndpoint)&&G.JSC$17651_commandHandler.resolveCommand(V.redirectEndpoint);((R=V)==null?0:(se=R.newHeader)==null?0:se.playlistHeaderRenderer)?EP8(G.controller,V.newHeader.playlistHeaderRenderer):((yY=V)==null?0:(d$=yY.newHeader)==null?0:d$.musicEditablePlaylistDetailHeaderRenderer)&&EP8(G.controller,V.newHeader.musicEditablePlaylistDetailHeaderRenderer);
G.controller.playlistVideoListElement&&((cy=V)==null?0:(t4=cy.playlistEditResults)==null?0:(ay=t4[0])==null?0:ay.playlistEditVideoAddedResultData)&&((oI=G.controller.playlistVideoListElement)==null||oI.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:V.playlistEditResults[0].playlistEditVideoAddedResultData})));_.gL(bH)})};
XC[dP]=[_.xy,_.YU,_.lK,_.vR];var PQ=function(M,q){this.controller=M;this.JSC$17661_commandHandler=q};
_.l(PQ,F0);PQ.prototype.resolveCommand=function(M,q){var G=this,K,n,E;return _.L(function(p){K=_.C(M,$Ov);G.controller.showRefreshPill&&((n=K)==null?0:n.command)&&(G.JSC$17661_commandHandler.resolveCommand((E=K)==null?void 0:E.command,q),G.controller.showRefreshPill=!1);_.gL(p)})};
PQ[dP]=[_.vj,_.vR];var iK=function(M,q){this.store=M;this.JSC$17665_commandHandler=q||_.$A.instance};
_.l(iK,F0);iK.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t;return _.L(function(O){K=_.C(M,Wx2);n=G.store.getState().radioButtonGroup;if((E=K)==null?0:E.command)G.JSC$17665_commandHandler.resolveCommand((p=K)==null?void 0:p.command,q);else if(n&&((y=K)==null?void 0:y.formId)===n.currentFormId)for(Y=Object.values(n.commandsMap),A=_.k(Y),v=A.next();!v.done;v=A.next())h=v.value,(t=_.aM(h))&&G.JSC$17665_commandHandler.resolveCommand(t,q);_.gL(O)})};
iK[dP]=[_.xy];var cQ=new _.$k("USER_PREFS");var gA=function(M){this.JSC$17670_prefCookie=M};
_.l(gA,F0);gA.prototype.resolveCommand=function(M){var q=this,G;return _.L(function(K){(G=_.C(M,DOx))&&typeof G.useListView==="boolean"&&(_.Ng(0,155,G.useListView),q.JSC$17670_prefCookie.save());_.gL(K)})};
gA[dP]=[cQ];var BQ=function(M){this.JSC$17674_prefCookie=M};
_.l(BQ,F0);BQ.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p;return _.L(function(y){G=_.C(M,TF9);if((K=G)==null||!K.gl)return y.return();n=G.gl;E={persist_gl:"1",gl:n};q.JSC$17674_prefCookie.set("gl",n);q.JSC$17674_prefCookie.save();p=Ncf(E);_.PE(p);_.gL(y)})};
BQ[dP]=[cQ];var Q_=function(M){this.JSC$17678_prefCookie=M};
_.l(Q_,F0);Q_.prototype.resolveCommand=function(M){var q=this,G,K;return _.L(function(n){G=_.C(M,Mvp);if(!G)return n.return();K=!1;G.flagNum&&typeof G.value==="boolean"?(_.Ng(0,G.flagNum,G.value),K=!0):G.key&&typeof G.stringValue==="string"&&(q.JSC$17678_prefCookie.set(G.key,G.stringValue),K=!0);K&&q.JSC$17678_prefCookie.save();_.gL(n)})};
Q_[dP]=[cQ];var I6=new _.$k("PREF_STORAGE_PROMISE_TOKEN");var D9=function(M){this.JSC$17682_prefStoragePromise=M};
_.l(D9,F0);D9.prototype.resolveCommand=function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1)return(G=_.C(M,Gbd))?n.yield(q.JSC$17682_prefStoragePromise,2):n.return();K=n.yieldResult;return K===void 0||G.key===void 0||G.value===void 0?n.return():n.yield(K.set(G.key,G.value),0)})};
D9[dP]=[I6];var Nq8=function(M){this.innertubeTransportService=M};
_.l(Nq8,F0);Nq8.prototype.resolveCommand=function(M,q){var G=this,K,n;return _.L(function(E){(K=_.C(M,_.Lr8))&&K&&K.isFirstRequest&&(_.aJ("search_overview_answer"),_.oJ("so_rq",void 0,"search_overview_answer"));return E.yield(_.Dt(G.innertubeTransportService,M,(n=q)==null?void 0:n.form),0)})};
Nq8[dP]=[_.YU];var k9E=function(){};
_.l(k9E,F0);
k9E.prototype.resolveCommand=function(M){var q,G,K,n,E,p,y,Y,A;return _.L(function(v){q=_.C(M,WZf);if((G=q)==null?0:G.sectionIdentifier){if(q.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(n=(K=document.getElementsByTagName(q.sectionIdentifier))==null?void 0:K.item(0))n.scrollIntoView({behavior:"smooth"}),(E=kE4(n))&&E.focus({preventScroll:!0});return v.return()}p=document.querySelector("[section-identifier="+q.sectionIdentifier+"]");y=document.querySelector("[section-identifier="+q.referenceSectionIdentifier+
"]");if(!p)return v.return();Y=q.verticalScrollOffsetDp?q.verticalScrollOffsetDp:0;y&&(Y-=y.offsetTop);window.scrollTo({top:p.offsetTop+Y,behavior:"smooth"});(A=kE4(p))&&A.focus({preventScroll:!0})}_.gL(v)})};var uK=function(M){this.JSC$17694_commandHandler=M};
_.l(uK,F0);
uK.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y;return _.L(function(A){if(A.nextAddress==1){G=_.C(M,uUx);if(!G||!G.imageBytes||!navigator.clipboard)return A.return();if(G.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.T6(Error("Fi")),A.return();_.Cv(A,2);n=(K=G)==null?void 0:K.imageBytes;E=n.replace(/-/g,"+").replace(/_/g,"/");p=Afy(E);y={};Y=[new ClipboardItem((y[p.type]=p,y))];return A.yield(navigator.clipboard.write(Y),4)}if(A.nextAddress!=2)return G.successCommand&&
q.JSC$17694_commandHandler.resolveCommand(G.successCommand),_.KF(A,0);_.i5(A);G.errorCommand&&q.JSC$17694_commandHandler.resolveCommand(G.errorCommand);_.gL(A)})};
uK[dP]=[_.vR];var JT=function(M,q){this.innertubeTransportService=M;this.JSC$17698_commandHandler=q};
_.l(JT,F0);JT.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1)return(K=_.C(M,xJl))?Y.yield(_.Dt(G.innertubeTransportService,M,(n=q)==null?void 0:n.form),2):Y.return();(E=Y.yieldResult)&&E.errorMetadata&&K.onFailureCommand&&G.JSC$17698_commandHandler.resolveCommand(K.onFailureCommand);p=E;((y=p)==null?0:y.shareCommand)&&G.JSC$17698_commandHandler.resolveCommand(p.shareCommand,q);_.gL(Y)})};
JT[dP]=[_.YU,_.vR];var Z9=function(){};
_.l(Z9,F0);Z9.prototype.resolveCommand=function(M){var q,G;return _.L(function(K){q=_.C(M,Ft2);if(!q||!navigator.share)return K.return();G={url:q.url};try{return K.return(navigator.share(G))}catch(n){}_.gL(K)})};var bK=function(){};
_.l(bK,F0);bK.prototype.resolveCommand=function(){return _.L(function(M){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.gL(M)})};var Um=function(M){this.JSC$17708_navigationConfirmationService=M};
_.l(Um,F0);Um.prototype.resolveCommand=function(){var M=this;return _.L(function(q){M.JSC$17708_navigationConfirmationService.cancelPendingNavigation();_.gL(q)})};
Um[dP]=[i4];var xb=function(M){this.JSC$17711_screenManager=M};
_.l(xb,F0);xb.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A;return _.L(function(v){n=(K=q.form)==null?void 0:K.event;p=(E=q.form)==null?void 0:E.element;if(!n)throw new _.bj("Event not passed in when resolving command");y=_.k(n.composedPath());for(Y=y.next();!Y.done;Y=y.next())if(A=Y.value,A.tagName==="YT-COPY-LINK-RENDERER")return A.copyUrlToClipboard(),p&&_.Bx(G.JSC$17711_screenManager,p),v.return();_.gL(v)})};
xb[dP]=[_.Q$];var zG=function(){this.JSC$17715_miniAppClientDataProvider=_.AL().resolve(_.q7)};
_.l(zG,F0);zG.prototype.resolveCommand=function(){var M=this,q,G;return _.L(function(K){if(M.JSC$17715_miniAppClientDataProvider.clientData.has("video_id")){var n=M.JSC$17715_miniAppClientDataProvider,E=n.clientData.get("video_id");E&&n.clientData.delete("video_id");q="https://youtube.com/watch?v="+E;G=_.z3(q);if(G===void 0)throw Error("Gi`"+q);_.si(window,G)}_.gL(K)})};var mI=function(){};
_.l(mI,F0);mI.prototype.resolveCommand=function(){return _.L(function(M){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.gL(M)})};var S3=function(){};
_.l(S3,F0);S3.prototype.resolveCommand=function(){var M;return _.L(function(q){if(q.nextAddress==1)return q.yield(_.en4(window.document.documentElement),2);(M=document.querySelector("mini-app-container-view-model iframe"))&&M.focus();_.gL(q)})};var TG=function(M){this.JSC$17722_navigationConfirmationService=M};
_.l(TG,F0);
TG.prototype.resolveCommand=function(){var M=this;return _.L(function(q){var G=M.JSC$17722_navigationConfirmationService,K=_.AL().resolve(_.oq),n;if(((n=G.navigateParams)==null?void 0:n.data)!==void 0){var E;_.oX2(K,G.navigateParams.endpoint,G.navigateParams.data,(E=G.navigateParams.navigationType)!=null?E:1,G.navigateParams.tempData,G.navigateParams.isMiniplayer,void 0,!0);G.navigateParams=void 0;G.customConfirmationCommand=void 0}else G.navigateParams&&(K.navigate(G.navigateParams.endpoint,G.navigateParams.reload,
G.navigateParams.params,G.navigateParams.tempData,G.navigateParams.requestType,G.navigateParams.createScreenConfig,!0),G.navigateParams=void 0,G.customConfirmationCommand=void 0);_.gL(q)})};
TG[dP]=[i4];var rA=function(){};
_.l(rA,F0);rA.prototype.resolveCommand=function(){return _.L(function(M){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.gL(M)})};var j3=function(M){this.JSC$17727_prefStorage=M};
_.l(j3,F0);j3.prototype.resolveCommand=function(){var M=this,q,G;return _.L(function(K){switch(K.nextAddress){case 1:return K.yield(M.JSC$17727_prefStorage,2);case 2:return(q=K.yieldResult)?K.yield(q.set("sfvle",!1),3):K.return();case 3:return K.yield(q.set("sfvles",!0),4);case 4:G=_.El(),_.Ng(0,203,!1),_.Ng(0,204,!0),G.save(),_.gL(K)}})};
j3[dP]=[I6];var V_=function(M){this.JSC$17730_prefStorage=M};
_.l(V_,F0);V_.prototype.resolveCommand=function(){var M=this,q,G;return _.L(function(K){switch(K.nextAddress){case 1:return K.yield(M.JSC$17730_prefStorage,2);case 2:return(q=K.yieldResult)?K.yield(q.set("sfvle",!0),3):K.return();case 3:return K.yield(q.set("sfvles",!0),4);case 4:G=_.El(),_.Ng(0,203,!0),_.Ng(0,204,!0),G.save(),_.gL(K)}})};
V_[dP]=[I6];_.pcw=new _.$k("SNACKBAR_CONTROLLER_TOKEN");_.ygL=new _.$k("SHOULD_SHOW_PIVOT_BAR_TOKEN");var R6=function(M){this.controller=M};
_.l(R6,F0);R6.prototype.resolveCommand=function(M){var q=this,G;return _.L(function(K){G=_.C(M,$Jd);if(!G)return K.return();var n=q.controller;n.closeSnackbarFn&&n.closeSnackbarFn();_.gL(K)})};
R6[dP]=[_.pcw];var ff=function(M,q){this.controller=M;this.sheetController=q};
_.l(ff,F0);ff.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y;return _.L(function(A){K=_.C(M,Mfx);if(!K)return A.return();p=HvU(G.sheetController,(n=q)==null?void 0:(E=n.form)==null?void 0:E.element);y=_.C(K.content,dB2);if(!y)return A.return();var v=G.controller,h=y,t=(Y=K.animationStyle)!=null?Y:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(v.showSnackbarFn)v.showSnackbarFn({snackbarViewModel:h,animationStyle:t,durationMs:K.durationSeconds*1E3,target:p});else throw Error("yj");_.gL(A)})};
ff[dP]=[_.pcw,_.ZB];var FC=function(){};
_.l(FC,F0);FC.prototype.resolveCommand=function(M){var q;return _.L(function(G){q=_.C(M,qZP);if(!q||typeof q.key!=="string"||typeof q.value!=="string")return G.return();window.localStorage.setItem(q.key,q.value);_.gL(G)})};var HQ=function(M){this.store=M};
_.l(HQ,F0);HQ.prototype.resolveCommand=function(M){var q=this,G;return _.L(function(K){G=_.C(M,yAF);if(!G||!G.stepId||!G.token)return K.return();q.store.dispatch(rXI({stepId:G.stepId,token:G.token,isSelected:!1}));_.gL(K)})};
HQ[dP]=[Zq];var e3=function(M,q,G){this.innertubeTransportService=M;this.store=q;this.JSC$17749_screenManager=G};
_.l(e3,F0);
e3.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R,se,yY,d$;return _.L(function(cy){G=_.C(M,fDM);if(!G||(K=G.stepIds)==null||!K.length)return cy.return();n=q.store.getState().talkToRecs;E=[];p=[];y=_.k(G.stepIds);for(Y=y.next();!Y.done;Y=y.next())for(A=Y.value,v=void 0,(h=(v=n.stepStates[A])==null?void 0:v.userQuery)&&p.push({userQuery:h.userQuery,userQueryToken:h.token}),O=t=void 0,a=(O=(t=n.stepStates[A])==null?void 0:t.selectionStates)!=null?O:{},g=_.k(Object.entries(a)),
D=g.next();!D.done;D=g.next())J=D.value,Z=_.k(J),V=Z.next().value,S=Z.next().value,m=V,R=S,R.isSelected&&E.push(m);se={selectedChipTokens:E,userQueries:p,submittedStepIds:G.stepIds};yY={browseTalk2recsFormData:se};G.browseEndpoint?(d$=M,_.hj(d$,_.n_,G.browseEndpoint)):G.command&&(d$=G.command);return d$?cy.yield(_.Dt(q.innertubeTransportService,d$,{formData:yY,disableCache:!0}).then(function(t4){(t4==null?0:t4.trackingParams)&&q.JSC$17749_screenManager.graftServerVe(t4==null?void 0:t4.trackingParams)}),
0):cy.return()})};
e3[dP]=[_.YU,Zq,_.Q$];var $b=function(M){this.store=M};
_.l($b,F0);$b.prototype.resolveCommand=function(M){var q=this,G;return _.L(function(K){G=_.C(M,pde);if(!G||!G.stepId||!G.token)return K.return();q.store.dispatch(rXI({stepId:G.stepId,token:G.token,isSelected:!0}));_.gL(K)})};
$b[dP]=[Zq];var sn=function(M){this.store=M};
_.l(sn,F0);sn.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y;return _.L(function(Y){K=_.C(M,FHM);if(!K||!K.stepId||!K.userQueryToken)return Y.return();y=(p=(n=q)==null?void 0:(E=n.form)==null?void 0:E.userQuery)!=null?p:"";G.store.dispatch(_.RJ({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:K.stepId,userQueryToken:K.userQueryToken,userQuery:y}}));_.gL(Y)})};
sn[dP]=[Zq];_.LKR=new _.$k("TIMELY_ACTIONS_CONTROLLER_TOKEN");var Md=function(M){this.controller=M};
_.l(Md,F0);Md.prototype.resolveCommand=function(M){var q=this,G,K,n,E;return _.L(function(p){G=_.C(M,y7d);if(!G)return p.return();K=G;n=K.id;E=K.isVisible;if(n===void 0||E===void 0)return p.return();var y;(y=q.controller.timelyActionsMap.get(n))==null||y(n,E);_.gL(p)})};
Md[dP]=[_.LKR];var YwM=function(){this.timelyActionsMap=new Map};var qd=function(M){this.JSC$17775_commandHandler=M};
_.l(qd,F0);qd.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p;return _.L(function(y){G=_.C(M,_.wBS);if(!G)return y.return();E=(K=G.item)==null?void 0:(n=K.notificationTextRenderer)==null?void 0:n.successResponseText;if(!E)return y.return();p=_.Sg(E);q.JSC$17775_commandHandler.resolveCommand(p);_.gL(y)})};
qd[dP]=[_.vR];var GB=function(M,q){this.innertubeTransportService=M;this.JSC$17780_playerApiPromise=q};
_.l(GB,F0);
GB.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v;return _.L(function(h){if(h.nextAddress==1)return h.yield(q.JSC$17780_playerApiPromise,2);G=h.yieldResult;K=G.getOption("captions","track");n=Object.assign({},_.C(M,_.l4B));(p=(E=G.getVideoData())==null?void 0:E.video_id)?n.externalVideoId=p:_.Mz(Error("Hi"));if((y=K)==null?0:y.languageCode)n.languageCode=K.languageCode;if((Y=K)==null?0:Y.kind)n.kind=K.kind;if((A=K)==null?0:A.name)n.name=K.name;v=Object.assign({},M,{getTranscriptEndpoint:n});return h.yield(_.Dt(q.innertubeTransportService,
v),0)})};
GB[dP]=[_.YU,_.fp];var KQ=function(){};
_.l(KQ,F0);KQ.prototype.resolveCommand=function(M){var q,G,K,n,E,p,y,Y;return _.L(function(A){q=_.C(M,YZ8);if((G=q)==null||!G.paramKeyValuePairs)return A.return();K=window.location.href;n=_.k(q.paramKeyValuePairs);for(E=n.next();!E.done;E=n.next())p=E.value,p.key&&p.value&&(y={},K=_.Ex(K,(y[p.key]=p.value,y)));Y=_.AL().resolve(_.oc);_.ac(Y,K);_.gL(A)})};_.nQ=new _.$k("UPDATE_VIDEO_METADATA_CONTROLLER_TOKEN");var En=function(){};
_.l(En,Tz);_.N=En.prototype;_.N.getApiPaths=function(){return WNJ};
_.N.getExtension=function(M){return _.C(M,_.Jl)};
_.N.isNavigationCommand=function(){return!0};
_.N.JSC$14175_getStoreKey=function(M){if((M=this.getExtension(M))&&M.videoId){var q={videoId:M.videoId};M.playlistId&&(q.playlistId=M.playlistId);M.index&&(q.index=M.index);M.params&&(q.params=M.params);return _.uG("next",q)}};
_.N.JSC$14168_getClientScreen=function(M){var q;return((q=M.contentPlaybackContext)==null?void 0:q.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.N.JSC$14168_buildRequest=function(M,q,G){q.videoId&&(M.videoId=q.videoId);q.playlistId&&(M.playlistId=q.playlistId);q.params&&(M.params=q.params);q.index!==void 0&&(M.playlistIndex=q.index);M.racyCheckOk=!(!G.racyCheckOk&&!q.racyCheckOk);M.contentCheckOk=!!q.contentCheckOk;G.contentPlaybackContext&&(M.autonavState=G.contentPlaybackContext.autonavState,M.playbackContext={vis:G.contentPlaybackContext.vis,lactMilliseconds:G.contentPlaybackContext.lactMilliseconds});G.prefetchPlaybackContext&&(M.context.request||
(M.context.request={}),M.context.request.isPrefetch=!0);_.w("captions_hats_killswitch")||(q=_.El().getFlag(65),q=q!=null?!q:!1,G=!!_.d2("yt-player-sticky-caption"),M.captionsRequested=q&&G)};
_.N.getRequestConfig=function(M){M=this.JSC$14175_getStoreKey(M);var q;M&&(q={storeStrategy:{storeKey:M}});_.w("web_log_player_watch_next_ticks")&&(q=q||{},q.requestTick="wn_s",q.responseTick="wn_r");return q};
var Nd=function(){};
_.l(Nd,Tz);Nd.prototype.getApiPaths=function(){return WNJ};
Nd.prototype.getExtension=function(M){return _.C(M,_.XY)};
Nd.prototype.JSC$14168_buildRequest=function(M,q){q.token&&(M.continuation=q.token)};var kO=function(M,q,G,K){this.controller=M;this.JSC$17800_playerApiPromise=q;this.innertubeTransportService=G;this.JSC$17800_commandHandler=K};
_.l(kO,F0);
kO.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V;return _.L(function(S){if(S.nextAddress==1){G=_.C(M,uul);if((K=G)==null||!K.watchEndpoint)return S.return();n=new En;E=n.JSC$14168_getRequest(G.watchEndpoint);if(!E)return S.return();p=G.watchEndpoint.clickTrackingParams;return S.yield(_.e6(q.innertubeTransportService,E.innerTubeRequest,E.input,p,E.config),2)}if(S.nextAddress!=3)return y=S.yieldResult,S.yield(q.JSC$17800_playerApiPromise,3);Y=S.yieldResult;Y.updateVideoData({raw_watch_next_response:y});
if(a=(A=y)==null?void 0:(v=A.contents)==null?void 0:(h=v.twoColumnWatchNextResults)==null?void 0:(t=h.results)==null?void 0:(O=t.results)==null?void 0:O.contents)D=(g=a.find(function(m){return m.videoPrimaryInfoRenderer}))==null?void 0:g.videoPrimaryInfoRenderer,((J=D)==null?0:J.subtitle)&&WKL(q.controller,D.subtitle);
(V=(Z=y)==null?void 0:Z.onUiReady)&&q.JSC$17800_commandHandler.resolveCommand(V);_.gL(S)})};
kO[dP]=[_.nQ,_.fp,_.YU,_.vR];var Ag8=function(){this.subtitleChangeCallbackMap=new Map},WKL=function(M,q){M=_.k(M.subtitleChangeCallbackMap.values());
for(var G=M.next();!G.done;G=M.next())G=G.value,G(q)};var pQ=function(M,q){this.JSC$17810_commandHandler=M;this.innertubeTransportService=q};
_.l(pQ,F0);
pQ.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V;return _.L(function(S){switch(S.nextAddress){case 1:return(E=(K=q)==null?void 0:(n=K.form)==null?void 0:n.element)&&_.XT(E),p=_.El().get("hl"),y="",_.Cv(S,2),S.yield(bcy(p),4);case 4:y=S.yieldResult;_.KF(S,3);break;case 2:return _.i5(S),E&&_.P3(E),_.T6(Error("Ji"),"ERROR"),S.return();case 3:Y=_.C(M,Vfd);if(!Y)return E&&_.P3(E),S.return();(h=(A=Y.commerceActionConfig)==null?void 0:(v=A.commandLifeCycleConfig)==null?
void 0:v.onStartCommand)&&G.JSC$17810_commandHandler.resolveCommand(h);return S.yield(_.Dt(G.innertubeTransportService,M,{client_data:{paymentsClientToken:{token:y}}}),5);case 5:(t=S.yieldResult)?(E&&_.P3(E),((D=t)==null?0:D.command)&&G.JSC$17810_commandHandler.resolveCommand(t.command),(V=(J=Y.commerceActionConfig)==null?void 0:(Z=J.commandLifeCycleConfig)==null?void 0:Z.onSuccessCommand)&&G.JSC$17810_commandHandler.resolveCommand(V)):(E&&_.P3(E),_.T6(Error("Ki")),(g=(O=Y.commerceActionConfig)==
null?void 0:(a=O.commandLifeCycleConfig)==null?void 0:a.onFailureCommand)&&G.JSC$17810_commandHandler.resolveCommand(g)),_.gL(S)}})};
pQ[dP]=[_.vR,_.YU];var yU=function(M,q,G){this.store=M;this.JSC$17826_commandHandler=q;this.innertubeTransportService=G};
_.l(yU,F0);
yU.prototype.resolveCommand=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h;return _.L(function(t){K=_.C(M,RmB);n=K.googlePaymentPayload;K.onStartCommand&&G.JSC$17826_commandHandler.resolveCommand(K.onStartCommand);E=n.encryptedPurchaseParams;p=n.ypcLogWalletAnalyticDataEndpoint;y=K.serializedTransactionFlowLoggingParams;Y=n.serializedPaymentsClientParams;A=K.ypcCujContext;h=zQy(G.innertubeTransportService,(v=q)==null?void 0:v.form,E,p,y,Y,A);return t.return(h.then(function(O){UHu(q==null?void 0:q.form,
!1);var a=G.store,g=G.JSC$17826_commandHandler,D=O.integratorData;D==null||D===""||O.error!=null?(String(O.error)==="-1"&&K.onDismissCommand?g.resolveCommand(K.onDismissCommand):String(O.error)!=="-1"&&K.onFailureCommand&&g.resolveCommand(K.onFailureCommand),String(O.error)!=="-1"&&String(O.error)!=="132"&&_.T6(Error("Li"),"ERROR")):(K.googlePaymentEntityKey&&a.dispatch(_.LL("commerceAcquisitionClientPayloadEntity",K.googlePaymentEntityKey,{key:K.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:D,
fundsGuaranteeCallbackClientData:O.integratorClientCallbackData}}})),K.onSuccessCommand&&g.resolveCommand(K.onSuccessCommand));_.HF()},function(O){UHu(q==null?void 0:q.form,!1);
_.T6(O,"ERROR");K.onFailureCommand&&G.JSC$17826_commandHandler.resolveCommand(K.onFailureCommand)}))})};
yU[dP]=[Sb,_.vR,_.YU];var LQ=function(M,q){this.JSC$17830_commandHandler=M;this.purchaseManager=q};
_.l(LQ,F0);
LQ.prototype.resolveCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v;return _.L(function(h){G=_.C(M,fdl);((K=G)==null?0:(n=K.commandLifeCycleConfig)==null?0:n.onStartCommand)&&q.JSC$17830_commandHandler.resolveCommand(G.commandLifeCycleConfig.onStartCommand);if(!((E=G)==null?0:(p=E.googlePaymentPurchaseManagerPayload)==null?0:p.securePayloadBytes))return _.T6(Error("Mi"),"ERROR"),h.return();y=Jj$(_.ew(G.googlePaymentPurchaseManagerPayload.securePayloadBytes));Y=_.El().get("hl");A=_.u8();Mm8(y.serialize(),
Y,function(t){A.resolve(t)},function(t){A.reject(t)},A.resolve);
v=A.promise;return h.return(v.then(function(t){if(t)if(t==null?0:t.errorCode){_.T6(Error("Ni`"+t.errorCode),"ERROR");var O,a;((O=G)==null?0:(a=O.commandLifeCycleConfig)==null?0:a.onFailureCommand)&&q.JSC$17830_commandHandler.resolveCommand(G.commandLifeCycleConfig.onFailureCommand)}else if(t==null?0:t.isCancelled){var g,D;((g=G)==null?0:(D=g.commandLifeCycleConfig)==null?0:D.onCancelCommand)&&q.JSC$17830_commandHandler.resolveCommand(G.commandLifeCycleConfig.onCancelCommand)}else{var J,Z;((J=G)==
null?0:(Z=J.commandLifeCycleConfig)==null?0:Z.onSuccessCommand)&&q.JSC$17830_commandHandler.resolveCommand(G.commandLifeCycleConfig.onSuccessCommand)}},function(t){_.T6(t,"ERROR");
var O,a;((O=G)==null?0:(a=O.commandLifeCycleConfig)==null?0:a.onFailureCommand)&&q.JSC$17830_commandHandler.resolveCommand(G.commandLifeCycleConfig.onFailureCommand)}))})};
LQ[dP]=[_.vR,qiP];var d_w=function(M,q){this.JSC$17838_commandHandler=M;this.commandAllowlistOverride=q;var G;this.commandAllowlist=(G=this.commandAllowlistOverride)!=null?G:BSF};
d_w.prototype.handleResponse=function(M,q,G){var K,n=q==null?void 0:(K=q.config)==null?void 0:K.command;if(!n||this.commandAllowlist.some(function(E){return!!_.C(n,E)})){q=void 0;
G!==void 0&&(q={form:{element:G}});M.onResponseReceivedCommand&&this.JSC$17838_commandHandler.resolveCommand(M.onResponseReceivedCommand,q);M.onResponseReceivedAction&&this.JSC$17838_commandHandler.resolveCommand(M.onResponseReceivedAction,q);M.onResponseReceivedEndpoint&&this.JSC$17838_commandHandler.resolveCommand(M.onResponseReceivedEndpoint,q);M.command&&this.JSC$17838_commandHandler.resolveCommand(M.command,q);if(M.onResponseReceivedCommands)for(G=_.k(M.onResponseReceivedCommands),K=G.next();!K.done;K=
G.next())this.JSC$17838_commandHandler.resolveCommand(K.value,q);if(M.onResponseReceivedActions)for(G=_.k(M.onResponseReceivedActions),K=G.next();!K.done;K=G.next())this.JSC$17838_commandHandler.resolveCommand(K.value,q);if(M.onResponseReceivedEndpoints)for(G=_.k(M.onResponseReceivedEndpoints),K=G.next();!K.done;K=G.next())this.JSC$17838_commandHandler.resolveCommand(K.value,q);if(M.actions)for(M=_.k(M.actions),G=M.next();!G.done;G=M.next())this.JSC$17838_commandHandler.resolveCommand(G.value,q)}};
d_w[dP]=[_.vR,_.WR(g7H)];var vPI=new _.$k("INNERTUBE_TOKEN_SERVICE");var hqv=new _.$k("SCHEDULER_TOKEN");var tXR=function(M){this.scheduler=M;M={};this.tokenMap=(M.app={},M.user={},M)};
tXR.prototype.handleResponse=function(M,q){if(!q)throw Error("Oi");var G;if(M=(G=M.responseContext)==null?void 0:G.innertubeTokenJar){if(M.appTokens){var K,n,E;G=(K=q.innerTubeRequest.context)==null?void 0:(n=K.request)==null?void 0:(E=n.innertubeTokenJar)==null?void 0:E.appTokens;O8w(this,M.appTokens,this.tokenMap.app,G)}if(M.userTokens){var p,y,Y;q=(p=q.innerTubeRequest.context)==null?void 0:(y=p.request)==null?void 0:(Y=y.innertubeTokenJar)==null?void 0:Y.userTokens;O8w(this,M.userTokens,this.tokenMap.user,
q)}}};
tXR.prototype.processContext=function(M){M.request||(M.request={});var q=Object.keys(this.tokenMap.app).length,G=Object.keys(this.tokenMap.user).length;if(q||G)M.request.innertubeTokenJar={},q&&(M.request.innertubeTokenJar.appTokens=[].concat(_.Ui(Object.values(this.tokenMap.app).flat()))),G&&(M.request.innertubeTokenJar.userTokens=[].concat(_.Ui(Object.values(this.tokenMap.user).flat())))};
var O8w=function(M,q,G,K){q=_.k(q);for(var n=q.next(),E={};!n.done;E={token$jscomp$139:void 0},n=q.next()){E.token$jscomp$139=n.value;if(E.token$jscomp$139.type===void 0)throw new _.bj("InnerTube token has no type",E.token$jscomp$139);if(E.token$jscomp$139.clearTokens)G[E.token$jscomp$139.type]=[];else if(E.token$jscomp$139.value!==void 0){G[E.token$jscomp$139.type]||(G[E.token$jscomp$139.type]=[]);if(K!==void 0&&K.length){n=_.k(K);for(var p=n.next(),y={};!p.done;y={requestToken:void 0},p=n.next())y.requestToken=
p.value,p=G[E.token$jscomp$139.type].findIndex(function(Y){return function(A){return A===Y.requestToken||(0,_.xP.equals)(A,Y.requestToken)}}(y)),p>-1&&G[E.token$jscomp$139.type].splice(p,1)}G[E.token$jscomp$139.type].push(E.token$jscomp$139);
E.token$jscomp$139.maxAgeSeconds&&Number(E.token$jscomp$139.maxAgeSeconds)>0&&M.scheduler.addLowPriorityJob(function(Y){return function(){var A=G[Y.token$jscomp$139.type].indexOf(Y.token$jscomp$139);A>-1&&G[Y.token$jscomp$139.type].splice(A,1)}}(E),Number(E.token$jscomp$139.maxAgeSeconds)*1E3)}else throw new _.bj("InnerTube token has no value",E.token$jscomp$139);
}};
tXR[dP]=[hqv];var wc8=new _.$k("LOCAL_INNERTUBE_ROUTER_TOKEN"),CCw=new _.$k("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var YO=function(M){this.serviceMap=M};
YO.prototype.shouldPreferLocalResponse=function(M,q){return(M=aJL(this,M))?M.shouldPreferLocalResponse(q):!1};
YO.prototype.localInnertubeResponse=function(M,q){var G=this,K;return _.L(function(n){return(K=aJL(G,M))?n.return(K.localInnertubeResponse(q)):n.return(Promise.reject(Error("Pi")))})};
YO.prototype.canProvideFallbackResponse=function(M,q){return(M=aJL(this,M))?M.canProvideFallbackResponse(q):!1};
YO.prototype.localFallbackInnertubeResponse=function(M,q){var G=this,K;return _.L(function(n){return(K=aJL(G,M))?n.return(K.localFallbackInnertubeResponse(q)):n.return(Promise.reject(Error("Pi")))})};
var aJL=function(M,q){q=_.ij(q);return q?(M=M.serviceMap[q])?M:null:null};
YO[dP]=[CCw];var ps=function(){};
ps.prototype.shouldPreferLocalResponse=function(){return!1};
ps.prototype.localInnertubeResponse=function(){return _.L(function(M){return M.return(Promise.reject(Error("Qi")))})};
ps.prototype.canProvideFallbackResponse=function(){return!0};
ps.prototype.localFallbackInnertubeResponse=function(){var M,q,G;return _.L(function(K){M=MQ("CLOSE_POPUP");q={openPopupAction:S8D()};G={actions:[M,q]};return K.return(G)})};var sFu=function(M,q){this.JSC$17887_upliftPromise=M;this.store=q};
_.N=sFu.prototype;_.N.shouldPreferLocalResponse=function(M){var q=M.videoId,G;if(G=q)G=T1y(this.store.getState().entities,M.videoId);return G&&r7i(this.store.getState().entities,q)?rfH(this.store.getState().entities,M.playlistId):!1};
_.N.localInnertubeResponse=function(M){var q=this,G;return _.L(function(K){return(G=q.getPlayerResponse(M))?K.return(Promise.resolve(G)):K.return(Promise.reject(Error("Ri")))})};
_.N.canProvideFallbackResponse=function(M){return!!M.videoId};
_.N.localFallbackInnertubeResponse=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(q.JSC$17887_upliftPromise,2);G=q.getPlayerResponse(M);var n;G?n=K.return(Promise.resolve(G)):n=Ws(q.store.getState().entities,M.videoId)?K.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.rj(_.Ge("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:eO$()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
K.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.rj(_.Ge("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:Hz4()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return n})};
_.N.getPlayerResponse=function(M){return hCH(this.store.getState().entities,M.videoId)};var kW=function(M,q){this.localPlayerService=M;this.localWatchNextService=q};
kW.prototype.shouldPreferLocalResponse=function(M){var q=M.playerRequest;M=M.watchNextRequest;return!!(q&&this.localPlayerService.shouldPreferLocalResponse(q)&&M&&this.localWatchNextService.shouldPreferLocalResponse(M))};
kW.prototype.localInnertubeResponse=function(M){var q=this,G,K,n,E;return _.L(function(p){if(p.nextAddress==1){G=M.playerRequest;K=M.watchNextRequest;if(!G||!K)throw new _.bj("Missing streaming request",M);return p.yield(q.localPlayerService.localInnertubeResponse(G),2)}if(p.nextAddress!=3)return n=p.yieldResult,p.yield(q.localWatchNextService.localInnertubeResponse(K),3);E=p.yieldResult;return p.return({playerResponse:n,watchNextResponse:E})})};
kW.prototype.canProvideFallbackResponse=function(M){var q=M.playerRequest;M=M.watchNextRequest;return!!(q&&this.localPlayerService.canProvideFallbackResponse(q)&&M&&this.localWatchNextService.canProvideFallbackResponse(M))};
kW.prototype.localFallbackInnertubeResponse=function(M){var q=this,G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return G=M.playerRequest,K=M.watchNextRequest,G&&K?p.yield(q.localPlayerService.localFallbackInnertubeResponse(G),2):p.return(Promise.reject(new _.bj("Missing streaming request",M)));if(p.nextAddress!=3)return n=p.yieldResult,p.yield(q.localWatchNextService.localFallbackInnertubeResponse(K),3);E=p.yieldResult;return p.return({playerResponse:n,watchNextResponse:E})})};var ns=function(M){this.JSC$17897_persistentStorePromiseAccessor=M};
ns.prototype.shouldPreferLocalResponse=function(){return!1};
ns.prototype.localInnertubeResponse=function(){return _.L(function(M){return M.return(Promise.reject(Error("Si")))})};
ns.prototype.canProvideFallbackResponse=function(){return!0};
ns.prototype.localFallbackInnertubeResponse=function(){var M=this,q,G;return _.L(function(K){return K.nextAddress==1?K.yield(M.JSC$17897_persistentStorePromiseAccessor(),2):K.nextAddress!=3?(q=K.yieldResult)?K.yield(q.get("service:guide:fallback"),3):K.return(Promise.reject(Error("Ti"))):(G=K.yieldResult)&&_.zh(G)?K.return(jjH(_.zh(G))):K.return(Promise.reject(Error("Ui")))})};var yi=function(){};
yi.prototype.shouldPreferLocalResponse=function(){return!1};
yi.prototype.localInnertubeResponse=function(){return _.L(function(M){return M.return(Promise.reject(Error("Vi")))})};
yi.prototype.canProvideFallbackResponse=function(){return!0};
yi.prototype.localFallbackInnertubeResponse=function(){var M,q,G;return _.L(function(K){M=MQ("CLOSE_POPUP");q={openPopupAction:S8D()};G={actions:[M,q]};return K.return(G)})};var Ks=function(){this.urlMap=oPI;this.fallbackCommand=_.Qa};
Ks.prototype.shouldPreferLocalResponse=function(M){return(M=M.url)?!!lJg(this,M):!1};
Ks.prototype.localInnertubeResponse=function(M){var q=this,G;return _.L(function(K){return(G=M.url)?K.return(Xcw(M,lJg(q,G))):K.return(Promise.reject(Error("Wi")))})};
Ks.prototype.canProvideFallbackResponse=function(){return!0};
Ks.prototype.localFallbackInnertubeResponse=function(M){var q=this,G,K,n,E,p,y,Y;return _.L(function(A){G=M.url;if(!G)return A.return(Xcw(M,q.fallbackCommand));if(K=lJg(q,G))return A.return(Xcw(M,K));n=void 0;E=_.ij(G);E==="/watch"&&(p=_.eA(G,"v"))&&(Y=(y=_.eA(G,"list"))!=null?y:void 0,n=_.Te(p,Y));n||(n=q.fallbackCommand);return A.return(Xcw(M,n))})};
var lJg=function(M,q){if(q)return M.urlMap[_.BF(q)]},Xcw=function(M,q){q&&M.parentTrackingParams&&(q.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:M.parentTrackingParams}},q.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:q})};var EF=function(M,q,G){this.JSC$17908_upliftPromise=M;this.store=q;this.JSC$17908_persistentStorePromiseAccessor=G};
EF.prototype.shouldPreferLocalResponse=function(){return!1};
EF.prototype.localInnertubeResponse=function(){return _.L(function(M){return M.return(Promise.reject(Error("Xi")))})};
EF.prototype.canProvideFallbackResponse=function(){return!0};
EF.prototype.localFallbackInnertubeResponse=function(){var M=this;return _.L(function(q){return q.return(PCg(M))})};
var PCg=function(M){var q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(xn(M.JSC$17908_upliftPromise,M.store),2);q=K.yieldResult;G={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[TeF(q)]}}}};return K.return(i8R(M,G))})},i8R=function(M,q){var G,K;
return _.L(function(n){if(n.nextAddress==1)return n.yield(M.JSC$17908_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return G=n.yieldResult,n.yield(mG(G),3);K=n.yieldResult;return n.return({responseContext:{},contents:q,topbar:K})})};var qK=function(M,q,G){this.JSC$17915_upliftPromise=M;this.store=q;this.JSC$17915_persistentStorePromiseAccessor=G};
qK.prototype.shouldPreferLocalResponse=function(M){var q=M.videoId;return q&&T1y(this.store.getState().entities,q)&&r7i(this.store.getState().entities,q)?rfH(this.store.getState().entities,M.playlistId):!1};
qK.prototype.localInnertubeResponse=function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1)return(G=M.videoId)?n.yield(q.JSC$17915_upliftPromise,2):n.return(Promise.reject(Error("Yi")));if(n.nextAddress!=3)return n.yield(cgv(q,M,G),3);K=n.yieldResult;return n.return(gPP(q,K,G))})};
qK.prototype.canProvideFallbackResponse=function(M){return M.videoId?!0:!1};
qK.prototype.localFallbackInnertubeResponse=function(M){var q=this,G,K,n,E;return _.L(function(p){switch(p.nextAddress){case 1:return(G=M.videoId)?p.yield(q.JSC$17915_upliftPromise,2):p.return(Promise.reject(Error("Yi")));case 2:return p.yield(cgv(q,M,G),3);case 3:K=p.yieldResult;if(Ws(q.store.getState().entities,G)){p.jumpTo(4);break}return p.yield(xn(q.JSC$17915_upliftPromise,q.store),5);case 5:return n=p.yieldResult,p.return(Bqw(K,n));case 4:return T1y(q.store.getState().entities,G)&&r7i(q.store.getState().entities,
G)?p.return(gPP(q,K,G)):(E={title:_.rj(_.Ge("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:eO$()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},p.return(Bqw(K,E)))}})};
var cgv=function(M,q,G){var K,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1)return K=q.playlistId,n=_.Te(G,K),Y.yield(M.JSC$17915_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return E=Y.yieldResult,Y.yield(mG(E),3);p=Y.yieldResult;y={responseContext:{},currentVideoEndpoint:n,topbar:p};return Y.return(y)})},gPP=function(M,q,G){if(M=Ws(M.store.getState().entities,G)){var K;
G=M.videoEntity;var n,E={title:jE(G.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.VQ((K=G.localizedStrings)==null?void 0:K.viewCount),viewCount:_.VQ((n=G.localizedStrings)==null?void 0:n.viewCount)}}};G.publishedTimestampMillis&&(E.dateText=_.VQ(SOs(new Date(Number(G.publishedTimestampMillis)))));K={videoPrimaryInfoRenderer:E};n=M.videoEntity;M=M.channelEntity;M={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:jE(_.Ge("SHOW_MORE",void 0,"Show more")),
showLessText:jE(_.Ge("SHOW_LESS",void 0,"Show less")),description:n.formattedDescription,owner:{videoOwnerRenderer:{title:jE(M.title),thumbnail:M.avatar}}}};q.contents={twoColumnWatchNextResults:{results:{results:{contents:[K,M]}}}}}return q},Bqw=function(M,q){M.contents={singleColumnWatchNextResults:{results:{results:{contents:[TeF(q)]}}}};
return M};var NK=function(M,q,G){this.JSC$17920_upliftPromise=M;this.store=q;this.JSC$17920_persistentStorePromiseAccessor=G};
NK.prototype.shouldPreferLocalResponse=function(){return!1};
NK.prototype.localInnertubeResponse=function(){return _.L(function(M){return M.return(Promise.reject(Error("Zi")))})};
NK.prototype.canProvideFallbackResponse=function(){return!0};
NK.prototype.localFallbackInnertubeResponse=function(){var M=this,q,G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:return E.yield(M.JSC$17920_persistentStorePromiseAccessor(),2);case 2:return q=E.yieldResult,E.yield(mG(q),3);case 3:return G=E.yieldResult,K={responseContext:{},topbar:G},E.yield(M.JSC$17920_upliftPromise,4);case 4:return E.yield(xn(M.JSC$17920_upliftPromise,M.store),5);case 5:return n=E.yieldResult,K.watchStatus={backgroundPromoRenderer:n},E.return(K)}})};var QgM,IJR;_.Wq=new _.$k("ENDPOINT_MAP");QgM=new _.$k("WATCH_ENDPOINT_MAP");IJR=new _.$k("REEL_ENDPOINT_MAP");var eQY=/^[a-zA-Z0-9_\-]{11}$/;var $Hj=_.hc(function(){var M,q;return(q=(M=window).matchMedia)==null?void 0:q.call(M,"(prefers-reduced-motion: reduce)").matches});var D_L=_.hc(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 M=_.sx("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");M||(M=_.iI("VIDEO"),_.Y5("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
M));return!!(M&&M.canPlayType&&M.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var uQv=XMLHttpRequest.prototype.fetch,JgL=uQv&&uQv.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!yn?!0:!1;var AI=function(M){this.JSC$17931_storeWithEntities=M};
_.l(AI,Tz);_.N=AI.prototype;_.N.getApiPaths=function(){return JJ8};
_.N.getExtension=function(M){return _.C(M,_.Jl)||_.C(M,_.p_)||_.C(M,Bg9)};
_.N.isNavigationCommand=function(){return!0};
_.N.JSC$14175_getStoreKey=function(M){if((_.w("kevlar_cache_on_ttl_player")||_.w("mweb_enable_shorts_innertube_player_prefetch")||_.w("mweb_use_new_history_manager")||_.w("web_shorts_prefetch_service_enabled"))&&(M=this.getExtension(M))&&M.videoId){var q={videoId:M.videoId};M.playlistId&&(q.playlistId=M.playlistId);M.playerParams&&(q.params=M.playerParams);return _.uG("player",q)}};
_.N.JSC$14168_getClientScreen=function(M){var q;return((q=M.contentPlaybackContext)==null?void 0:q.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.N.JSC$14168_buildRequest=function(M,q,G){if(_.w("enable_interstitial_entity_check")){var K=this.JSC$17931_storeWithEntities;if(q.videoId)for(var n=_.k(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),E=n.next();!E.done;E=n.next()){E=E.value;var p;var y=void 0,Y=void 0,A=q.videoId,v=E;(p=K)?(A=_.$p(A+v,"interstitialInteractionStateEntity"),p=(y=(Y=_.sX(p.getState().entities,"interstitialInteractionStateEntity",A))==null?void 0:Y.primaryButtonClicked)!=null?y:!1):p=!1;if(p)switch(E){case "CONTENT_CHECK_REQUIRED":q.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":q.racyCheckOk=!0}}}q.videoId&&(M.videoId=q.videoId);q.playlistId&&(M.playlistId=q.playlistId);q.index!==void 0&&(M.playlistIndex=q.index+1);q.playerParams&&(M.params=q.playerParams);"startTimeSeconds"in q&&q.startTimeSeconds&&(_.w("enable_player_request_builder_start_time_floor")?M.startTimeSecs=Math.floor(q.startTimeSeconds):M.startTimeSecs=q.startTimeSeconds);G.contentPlaybackContext&&(M.playbackContext={contentPlaybackContext:G.contentPlaybackContext});G.prefetchPlaybackContext&&
(M.playbackContext=Object.assign({},M.playbackContext,{prefetchPlaybackContext:G.prefetchPlaybackContext}),M.context.request||(M.context.request={}),M.context.request.isPrefetch=!0);M.playbackContext||(M.playbackContext={});K=D_L();M.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!K,supportXhr:JgL};G.overrideMutedAtStart&&(M.overrideMutedAtStart=G.overrideMutedAtStart);M.racyCheckOk=!!q.racyCheckOk;M.contentCheckOk=!!q.contentCheckOk;!_.w("captions_prefs_killswitch")&&(G=(G=_.d2("yt-player-caption-language-preferences"))?
G:[],G==null?0:G.length)&&(M.captionParams={viewerSelectedCaptionLangs:G})};
_.N.getRequestConfig=function(M){M=this.JSC$14175_getStoreKey(M);var q;M&&(q={storeStrategy:{storeKey:M}});_.w("web_log_player_watch_next_ticks")&&(q=q||{},q.requestTick="ps_s",q.responseTick="ps_r");return q};
AI[dP]=[Sb];var dR=function(M,q){this.playerRequestBuilder=M;this.watchNextRequestBuilder=q};
_.l(dR,Tz);dR.prototype.getApiPaths=function(){return lH2};
dR.prototype.getExtension=function(M){return _.C(M,_.Jl)};
dR.prototype.isNavigationCommand=function(){return!0};
dR.prototype.JSC$14168_buildRequest=function(M,q,G){M.playerRequest={};this.playerRequestBuilder.JSC$14168_buildRequest(M.playerRequest,q,G);_.w("web_streaming_watch")&&(M.watchNextRequest={},this.watchNextRequestBuilder.JSC$14168_buildRequest(M.watchNextRequest,q,G))};
dR[dP]=[AI,En];var Z8U;_.vq=new _.$k("SHORTS_CONTROLLER_TOKEN");Z8U=new _.$k("SHORTS_STATE_STORE_TOKEN");var hI=function(M,q){var G=_.rW.apply(2,arguments);M=M===void 0?0:M;_.bj.call(this,q,G);this.errorType=M;Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(hI,_.bj);var b8s,U_P,x_8,qcw,iq,wSw,Swv,m_E,Rqg,jgv,rgR;b8s=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(M){return M+"="}).join("|"));
U_P=RegExp(".*\\?.*playnext=1.*");x_8=function(M,q,G,K,n){this.watchEndpointMap=M;this.reelWatchEndpointMap=q;this.innerTubeTransportService=G;this.fetchPbj=K;this.reloadOnPlayerFailure=n===void 0?!0:n};
_.zqL=function(M,q){var G=_.tL("web_pbj_log_warning_rate",0);G=G>0&&Math.random()<G;var K;if((K=_.C(q.commandMetadata,_.Mg))==null||!K.rootVe)return G&&_.j1(Error("dj")),!1;var n;K=(n=_.C(q.commandMetadata,_.Mg))==null?void 0:n.url;if(!K)return G&&_.j1(Error("ej")),!1;if(U_P.test(K))return!0;if(b8s.test(K))return G&&_.j1(Error("fj`"+K)),!1;if(_.C(q,_.Jl)){if(!(M.watchEndpointMap.watchNext&&M.watchEndpointMap.player||_.w("kevlar_fetch_initial_data_op_watch_client")))return G&&_.j1(Error("$i")),!1;
M=_.tL("web_pbj_log_warning_rate",0);M=M>0&&Math.random()<M;_.C(q,_.Jl)?Fsi(q)?q=!0:(M&&_.j1(Error("aj")),q=!1):(M&&_.j1(Error("$i")),q=!1);return q}if(_.C(q,_.p_))return Hcj(q);if(_.C(q,_.jN))return!0;M=_.I2(M.innerTubeTransportService,q);!M&&G&&_.T6(Error("gj"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(q)});return M};
qcw=function(M,q,G,K,n,E){q={url:q};if(G==null?0:G.itct)q.parentTrackingParams=G.itct;var p=_.m4(rJl);return _.e6(M.innerTubeTransportService,q,p).then(function(y){(y=y.endpoint)||(y=_.Qa);(G==null?0:G.itct)&&y&&!y.trackingParams&&(y.trackingParams=G.itct);var Y=Nr(y);return iq(M,y,G,K,Y,n,E)})};
iq=function(M,q,G,K,n,E,p,y){y=y===void 0?{}:y;if(M.fetchPbj&&!_.zqL(M,q)&&!_.w("force_one_platform")){y=M.fetchPbj(q);var Y=_.HF(y.then(function(S){if(!S)throw Error("hj");p(Y)||E(q,S);return S}));
return Y}var A,v,h={rootVe:(A=_.C(q.commandMetadata,_.Mg))==null?void 0:A.rootVe,url:(v=_.C(q.commandMetadata,_.Mg))==null?void 0:v.url,endpoint:q,page:n};if(_.C(q,_.Jl)){var t,O={contentPlaybackContext:_.VS(G,(t=_.C(q.commandMetadata,_.Mg))==null?void 0:t.url,K)},a=_.u8();_.w("web_streaming_watch")&&window.TextDecoderStream?(y=Om$(M.innerTubeTransportService,q,O,function(S){!h.response&&S.content&&(h.response=S.content);!h.playerResponse&&S.player&&(h.playerResponse=S.player);E(q,h)}),A=mSD(q),A.length&&
(h.preconnect=A,E(q,h)),m_E(y,a,h).catch(function(S){S instanceof hI&&S.errorType===2&&_.w("web_streaming_watch_fallback")&&Swv(M,q,O,h,E,p,a)})):Swv(M,q,O,h,E,p,a);
return a.promise}if(_.C(q,_.p_)){var g;if(((g=_.C(q,_.p_))==null?void 0:g.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var D=_.u8();_.TqI(_.AL().resolve(_.vq),q).then(function(S){rgR(M,G,K,n,E,D,S)});
return D.promise}y=_.HF();var J;A={contentPlaybackContext:_.VS(G,(J=_.C(q.commandMetadata,_.Mg))==null?void 0:J.url,K)};(J=M.reelWatchEndpointMap.player)&&(J=J().JSC$14168_getRequest(q,A))&&(y=_.e6(M.innerTubeTransportService,J.innerTubeRequest,J.input,q.clickTrackingParams,J.config));J=_.HF();(v=M.reelWatchEndpointMap.reelItemWatch)&&(v=v().JSC$14168_getRequest(q))&&(J=_.e6(M.innerTubeTransportService,v.innerTubeRequest,v.input,q.clickTrackingParams,v.config));v=_.HF();_.w("web_enable_delay_shorts_sequence_call_extra")&&
(v=new _.X4(function(S){setTimeout(function(){S(void 0)},200)}));
(!_.w("web_enable_delay_shorts_sequence_call_new")||_.w("web_enable_delay_shorts_sequence_call_forget"))&&(t=M.reelWatchEndpointMap.reelWatchSequence)&&_.C(q,_.p_).sequenceParams&&(A=t().JSC$14168_getRequest(q,A))&&(_.w("web_enable_delay_shorts_sequence_call_forget")?_.e6(M.innerTubeTransportService,A.innerTubeRequest,A.input,q.clickTrackingParams,A.config):v=_.e6(M.innerTubeTransportService,A.innerTubeRequest,A.input,q.clickTrackingParams,A.config));A=_.HF(h);t=_.u8();jgv(q,A,y,J,v,E,p,t);return t.promise}var Z;
if(_.C(q,kWF)&&((Z=_.C(q.commandMetadata,_.Mg))==null?0:Z.url))return y=AJ4(_.s9(SX().location.href),_.s9(_.C(q.commandMetadata,_.Mg).url)).toString(),qcw(M,y,G,K,E,function(){return!1});
if(_.C(q,_.jN))return E(q,h),_.HF(h);if(_.I2(M.innerTubeTransportService,q)){y=Object.assign({},{tempData:G,disableCache:G.disableCache},y);var V=_.Dt(M.innerTubeTransportService,q,y).then(function(S){h.response=S;p(V)||E(q,h);return h});
return V}return _.HF(h)};
_.VXg=function(M,q,G,K){if(_.C(q,_.Jl)||_.C(q,_.p_)&&(_.w("mweb_enable_shorts_innertube_player_prefetch")||_.w("kevlar_enable_shorts_prefetch_in_sequence"))||_.C(q,Bg9)&&_.w("web_enable_prefetching_videos_on_home")){var n,E={contentPlaybackContext:_.VS(G,(n=_.C(q.commandMetadata,_.Mg))==null?void 0:n.url,K),prefetchPlaybackContext:MHy(G)},p,y,Y;if(((p=_.C(q,_.Jl))==null?void 0:(y=p.watchEndpointSupportedPrefetchConfig)==null?void 0:(Y=y.prefetchHintConfig)==null?void 0:Y.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(G=
M.watchEndpointMap.watchNext)if(E=G().JSC$14168_getRequest(q,E))return Promise.resolve(_.e6(M.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(h){return h}))}else if(G=M.watchEndpointMap.player)if(E=G().JSC$14168_getRequest(q,E))return Promise.resolve(_.e6(M.innerTubeTransportService,E.innerTubeRequest,E.input,void 0,E.config).then(function(h){return h}))}else if(_.I2(M.innerTubeTransportService,q)){var A={tempData:G},v=AW2(M.innerTubeTransportService,q);
return v?new Promise(function(h,t){var O,a;return _.L(function(g){if(g.nextAddress==1)return g.yield(v,2);if(g.nextAddress!=4)return O=g.yieldResult,O.JSC$14175_getStoreKey(q,A)?g.yield(_.Dt(M.innerTubeTransportService,q,A),4):(t(new _.bj("Prefetching request builder with no store key.",q)),g.jumpTo(0));a=g.yieldResult;h(a);_.gL(g)})}):Promise.reject(new _.bj("Prefetching unregistered request builder.",q))}return Promise.reject(new _.bj("No request builder available to prefetch endpoint.",q))};
wSw=function(M,q){var G,K,n;if(_.C(q,_.Jl)){var E=M.watchEndpointMap.watchNext;E&&(G=E());(M=M.watchEndpointMap.player)&&(K=M())}else if(_.C(q,_.p_))(E=M.reelWatchEndpointMap.reelItemWatch)&&(G=E()),(E=M.reelWatchEndpointMap.player)&&(K=E()),(M=M.reelWatchEndpointMap.reelWatchSequence)&&(n=M());else{a:{M=YJF(q,M.innerTubeTransportService.endpointMap);if(M!==void 0)if(typeof M.then==="function")_.T6(new _.bj("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",q));else break a;
M=void 0}M&&(G=M)}var p,y,Y;return{content:(p=G)==null?void 0:p.JSC$14175_getStoreKey(q),player:(y=K)==null?void 0:y.JSC$14175_getStoreKey(q),reelSequence:(Y=n)==null?void 0:Y.JSC$14175_getStoreKey(q)}};
Swv=function(M,q,G,K,n,E,p){var y=_.HF(),Y=M.watchEndpointMap.player;_.w("web_streaming_player")&&(Y=i8(dR));Y&&(Y=Y().JSC$14168_getRequest(q,G))&&(y=_.e6(M.innerTubeTransportService,Y.innerTubeRequest,Y.input,q.clickTrackingParams,Y.config));Y=_.HF();var A=M.watchEndpointMap.watchNext;A&&(G=A().JSC$14168_getRequest(q,G))&&(Y=_.e6(M.innerTubeTransportService,G.innerTubeRequest,G.input,q.clickTrackingParams,G.config));K=_.HF(K);Rqg(M,q,K,y,Y,n,E,p)};
m_E=function(M,q,G){return _.L(function(K){if(K.nextAddress==1)return K.yield(M,2);q.resolve(G);_.gL(K)})};
Rqg=function(M,q,G,K,n,E,p,y){var Y,A,v,h,t;_.L(function(O){switch(O.nextAddress){case 1:return O.yield(G,2);case 2:Y=O.yieldResult;if(p(y.promise))return y.resolve(Y),O.return();E(q,Y);A=mSD(q);if(!A.length){O.jumpTo(3);break}return O.yield(G,4);case 4:Y.preconnect=A,E(q,Y);case 3:return _.Cv(O,5),O.yield(K,7);case 7:v=O.yieldResult;_.KF(O,6);break;case 5:return h=_.i5(O),y.reject(h),O.return();case 6:if(v===void 0&&M.reloadOnPlayerFailure)return Y.reload=!0,E(q,Y),y.resolve(Y),O.return();if(p(y.promise))return y.resolve(Y),
O.return();Y.playerResponse=v;E(q,Y);_.Cv(O,8);return O.yield(n,10);case 10:t=O.yieldResult;_.KF(O,9);break;case 8:_.i5(O);case 9:if(t===void 0)return Y.response={responseContext:{}},y.resolve(Y),O.return();if(p(y.promise))return y.resolve(Y),O.return();Y.response=t;E(q,Y);y.resolve(Y);_.gL(O)}})};
jgv=function(M,q,G,K,n,E,p,y){var Y,A,v,h,t,O;_.L(function(a){switch(a.nextAddress){case 1:return a.yield(q,2);case 2:Y=a.yieldResult;if(p(y.promise))return y.resolve(Y),a.return();E(M,Y);A=mSD(M);if(!A.length){a.jumpTo(3);break}return a.yield(q,4);case 4:Y.preconnect=A,E(M,Y);case 3:return _.Cv(a,5),a.yield(G,7);case 7:v=a.yieldResult;_.KF(a,6);break;case 5:return h=_.i5(a),y.reject(h),a.return();case 6:if(v===void 0)return Y.reload=!0,E(M,Y),y.resolve(Y),a.return();if(p(y.promise))return y.resolve(Y),
a.return();Y.playerResponse=v;E(M,Y);_.Cv(a,8);return a.yield(K,10);case 10:t=a.yieldResult;_.KF(a,9);break;case 8:_.i5(a);case 9:if(t===void 0)return Y.response={responseContext:{}},y.resolve(Y),a.return();if(p(y.promise))return y.resolve(Y),a.return();Y.response=t;E(M,Y);_.Cv(a,11);return a.yield(n,13);case 13:O=a.yieldResult;_.KF(a,12);break;case 11:_.i5(a);case 12:if(p(y.promise))return y.resolve(Y),a.return();O&&(Y.reelWatchSequenceResponse=O);E(M,Y);y.resolve(Y);_.gL(a)}})};
rgR=function(M,q,G,K,n,E,p){var y,Y,A,v,h,t;_.L(function(O){if((y=p)==null||!y.replacementEndpoint)return E.reject(),O.return();Y=p.replacementEndpoint;(A=_.C(Y,_.p_))?(p.sequenceContinuation&&(A.sequenceParams=p.sequenceContinuation),v=_.AL().resolve(_.vq),h=A.sequenceParams,fJR(v,Y)&&delete A.sequenceParams,t=iq(M,Y,q,G,K,n,function(){return!1}),t.then(function(a){return _.L(function(g){if(g.nextAddress==1)return FK8(v,{reelWatchEndpoint:{sequenceParams:h}},a),g.yield(0,2);
E.resolve(a);_.gL(g)})})):E.reject();
_.gL(O)})};
x_8[dP]=[QgM,IJR,_.YU,_.WR(yzl)];var H8w=function(){var M=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return M.sequenceMap}}},wwp=function(M,q,G){var K,n=(K=q.config)==null?void 0:K.sequenceStrategy;
if(!n)return G();M.sequenceMap.has(n.sequenceKey)||M.sequenceMap.set(n.sequenceKey,[]);M=M.sequenceMap.get(n.sequenceKey);switch(n.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return eqU(M,q,G);case "REQUEST_SEQUENCE_TYPE_REPLACE":return $_w(M,q,G);default:throw new _.bj("Request could not be sequenced",q);}},eqU=function(M,q,G){var K,n,E;
return _.L(function(p){M.length>0?(n=M[M.length-1],K=n.responsePromise.then(function(){return G()})):K=G();
E={request:q,responsePromise:K};M.push(E);sEI(M,E);return p.return(E.responsePromise)})},$_w=function(M,q,G){G=G();
if(M.length>0)for(var K=_.k(M),n=K.next();!n.done;n=K.next())n.value.responsePromise=G;var E={request:q,responsePromise:G};M.push(E);sEI(M,E);return Promise.resolve().then(function(){return M.indexOf(E)>0?E.responsePromise.then(function(p){return Object.assign({},p,{sequenceMetaData:{skipProcessing:!0}})}):E.responsePromise})},sEI=function(M,q){q.responsePromise.then(function(){var G=M.indexOf(q);
G>-1&&M.splice(G,1)})};var MAw=new _.$k("REQUEST_SEQUENCING");var tI=function(){};
_.l(tI,Tz);tI.prototype.getApiPaths=function(){return[]};
tI.prototype.getExtension=function(M){return _.C(M,Y6$)};
tI.prototype.JSC$14168_buildRequest=function(M,q){M.recaptchaToken=q.recaptchaToken};
tI.prototype.getApiUrl=function(){return"/das_captcha"};var On=function(){};
_.l(On,Tz);On.prototype.getApiPaths=function(){return rbx};
On.prototype.getExtension=function(M){return _.C(M,TNI)};
On.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.createBackstagePostParams&&(M.createBackstagePostParams=q.createBackstagePostParams);G.comment_text&&(M.commentText=G.comment_text);if(G.attached_video_id)M.videoAttachment={videoId:G.attached_video_id};else if(G.image_poll_options)M.pollAttachmentData={options:G.image_poll_options};else if(G.poll_options)M.pollAttachment={choices:G.poll_options};else if(G.quiz_options)M.quizAttachmentData={options:G.quiz_options};else if(G.image_blob_id)M.imageAttachment=
{encryptedBlobId:G.image_blob_id},G.source_video_id&&(M.imageAttachment.sourceExternalVideoId=G.source_video_id),G.image_preview_coordinates&&(M.imageAttachment.previewCoordinates=JSON.parse(G.image_preview_coordinates));else if(G.images_data)M.imagesAttachment={imagesData:G.images_data};else if(G.clip_external_video_id!==void 0||G.clip_offset_ms!==void 0||G.clip_duration_ms!==void 0){var K,n,E,p,y;M.clipAttachment={externalVideoId:(E=G.clip_external_video_id)!=null?E:"",offsetMs:(p=(K=G.clip_offset_ms)==
null?void 0:K.toString())!=null?p:"",durationMs:(y=(n=G.clip_duration_ms)==null?void 0:n.toString())!=null?y:""}}else G.shared_post_id&&(M.sharedPostAttachment={postId:G.shared_post_id});G.tagged_video_id&&(M.postCreationData={taggedVideoId:G.tagged_video_id});G.access_restrictions&&(typeof G.access_restrictions==="number"&&(q=G.access_restrictions,M.accessRestrictions={restriction:q!==1&&q===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof G.access_restrictions==="string"&&
(M.accessRestrictionsParams=G.access_restrictions));G.scheduled_publish_time_sec&&(M.scheduledPublishTimeSec=G.scheduled_publish_time_sec.toString())};var wR=function(){};
_.l(wR,Tz);wR.prototype.getApiPaths=function(){return eg8};
wR.prototype.getExtension=function(M){return _.C(M,zCM)};
wR.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.decorateMessageParams&&(M.params=q.decorateMessageParams);G.text&&(M.text=G.text)};var CQ=function(){};
_.l(CQ,Tz);CQ.prototype.getApiPaths=function(){return tB9};
CQ.prototype.getExtension=function(M){return _.C(M,rsM)};
CQ.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;G.video_id&&(M.videoId=G.video_id)};var a7=function(){};
_.l(a7,Tz);a7.prototype.getApiPaths=function(){return ohl};
a7.prototype.getExtension=function(M){return _.C(M,_.sl)};
a7.prototype.JSC$14168_buildRequest=function(M,q,G){G.suggestions_query&&(M.input=G.suggestions_query)};var o7=function(){};
_.l(o7,Tz);o7.prototype.getApiPaths=function(){return G52};
o7.prototype.getExtension=function(M){return _.C(M,jAp)};
o7.prototype.JSC$14168_buildRequest=function(M,q,G){G.comment_text!==void 0&&(M.commentText=G.comment_text);G.scheduled_publish_time_sec&&(M.scheduledPublishTimeSec=G.scheduled_publish_time_sec.toString());M.updateBackstagePostParams=q.updateBackstagePostParams};var lk=function(){};
_.l(lk,Tz);lk.prototype.getApiPaths=function(){return IU};
lk.prototype.getExtension=function(M){return _.C(M,_.XY)};
lk.prototype.JSC$14168_buildRequest=function(M,q,G){G.formData&&(M.formData=G.formData);q.token?M.continuation=q.token:q.continuationTokenKey&&(G=_.zw().getState(),q=_.sX(G.entities,"continuationTokenEntity",q.continuationTokenKey))&&(M.continuation=String(q.continuationToken))};
var qKL=function(){};
_.l(qKL,Tz);_.N=qKL.prototype;_.N.getApiPaths=function(){return IU};
_.N.getExtension=function(M){return _.C(M,_.n_)};
_.N.isNavigationCommand=function(){return!0};
_.N.JSC$14175_getStoreKey=function(M){if((M=this.getExtension(M))&&M.browseId){var q={browseId:M.browseId};M.browseEndpointContextSupportedConfigs&&(q.browseEndpointContextSupportedConfigs=JSON.stringify(M.browseEndpointContextSupportedConfigs));M.params&&(q.params=M.params);M.query&&(q.query=M.query);return _.uG("browse",q)}};
_.N.JSC$14168_buildRequest=function(M,q,G){q.browseId&&(M.browseId=q.browseId);q.params&&(M.params=q.params);q.query&&(M.query=q.query);G.formData?M.formData=G.formData:q.formData&&(M.formData=q.formData);q.browseId==="FEsubscriptions"&&_.El().getFlag(155)&&(M.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");q.browseId==="SPaccount_playback"&&(G=_.El(),M.formData||(M.formData={}),M.formData.accountSettingsFormData={flagCaptionsDefaultOff:G.getFlag(65),flagAutoCaptionsDefaultOn:G.getFlag(66),
flagDisableInlinePreview:G.getFlag(186),flagAudioDescriptionDefaultOn:G.getFlag(198)});if(q.browseId==="FEwhat_to_watch"){G=_.El();var K=G.getFlag(196);G.getFlag(197)&&(M.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:K}}})}q.browseId==="FEwhat_to_watch"&&(q=_.El().getFlag(186),M.inlineSettingStatus=q?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.N.getRequestConfig=function(M,q){q=q===void 0?{}:q;var G={};if(M=this.JSC$14175_getStoreKey(M,q))G.storeStrategy={storeKey:M,disableCache:q.disableCache};_.w("web_log_browse_ticks_ks")||(G.requestTick="br_s",G.responseTick="br_r");return G};var Xk=function(){};
_.l(Xk,Tz);Xk.prototype.getApiPaths=function(){return UN2};
Xk.prototype.getExtension=function(M){return _.C(M,Czv)};
Xk.prototype.JSC$14168_buildRequest=function(M,q,G){M.legacyYoutubeChannelUsername=G.legacyYouTubeChannelUsername||"";M.legacyYoutubeChannelPassword=G.legacyYouTubeChannelPassword||""};var Pq=function(){};
_.l(Pq,Tz);Pq.prototype.getApiPaths=function(){return jRv};
Pq.prototype.getExtension=function(M){return _.C(M,se8)};
Pq.prototype.JSC$14168_buildRequest=function(M,q,G){G.recaptcha_response_token&&(M.recaptchaResponseToken=G.recaptcha_response_token);G.channel_id&&(M.channelId=G.channel_id)};var ik=function(){};
_.l(ik,Tz);ik.prototype.getApiPaths=function(){return KNP};
ik.prototype.getExtension=function(M){return _.C(M,EH2)};
ik.prototype.JSC$14168_buildRequest=function(M,q,G){q.externalChannelId&&(M.externalChannelId=q.externalChannelId);G.handle&&(M.handleUpdate={handle:G.handle},q.handleEditSource&&(M.handleUpdate.handleEditSource=q.handleEditSource))};var cq=function(){};
_.l(cq,Tz);cq.prototype.getApiPaths=function(){return k5v};
cq.prototype.getExtension=function(M){return _.C(M,cQ2)};
cq.prototype.JSC$14168_buildRequest=function(M,q,G){q.request&&(M.channelId=q.request.channelId);var K;if(G==null?0:(K=G.uploadDefaults)==null?0:K.emojiReactionSet)M.uploadDefaultsRequest||(M.uploadDefaultsRequest={}),M.uploadDefaultsRequest.emojiReactionSet=G.uploadDefaults.emojiReactionSet};var gR=function(){};
_.l(gR,Tz);gR.prototype.getApiPaths=function(){return LNI};
gR.prototype.getExtension=function(M){return _.C(M,M9l)};
gR.prototype.JSC$14168_buildRequest=function(M,q,G){q.externalChannelId&&(M.externalChannelId=q.externalChannelId);q.channelHandleEntityKey&&(M.channelHandleEntityKey=q.channelHandleEntityKey);q.handleEditSource&&(M.handleEditSource=q.handleEditSource);G.handle?M.handle=G.handle:G.name&&(M.name=G.name)};var Bq=function(){};
_.l(Bq,Tz);Bq.prototype.getApiPaths=function(){return mN9};
Bq.prototype.getExtension=function(M){return _.C(M,wJS)};
Bq.prototype.JSC$14168_buildRequest=function(M,q){q.actions?M.actions=q.actions:q.action&&(M.actions=[q.action])};var QU=function(){};
_.l(QU,Tz);QU.prototype.getApiPaths=function(){return SYM};
QU.prototype.getExtension=function(M){return _.C(M,_.XY)};
QU.prototype.JSC$14168_buildRequest=function(M,q){q.token&&(M.continuation=q.token)};var I7=function(){};
_.l(I7,Tz);I7.prototype.getApiPaths=function(){return vhl};
I7.prototype.getExtension=function(M){return _.C(M,_.XY)};
I7.prototype.JSC$14168_buildRequest=function(M,q){M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";q.token&&(M.fetchCommentsParams={continuation:q.token})};var D3=function(){};
_.l(D3,Tz);D3.prototype.getApiPaths=function(){return RgJ};
D3.prototype.getExtension=function(M){return _.C(M,OCf)};
D3.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.createReplyParams&&(M.createReplyParams=q.createReplyParams);q.commentText&&(M.commentText=_.UX(q.commentText));G.comment_text&&(M.commentText=G.comment_text);G.image_blob_id&&(M.imageAttachment={encryptedBlobId:G.image_blob_id});G.botguard_response&&(M.botguardResponse=G.botguard_response)};
_.Yd.Object.defineProperties(D3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var uk=function(){};
_.l(uk,Tz);uk.prototype.getApiPaths=function(){return fiS};
uk.prototype.getExtension=function(M){return _.C(M,_.trI)};
uk.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.createCommentParams&&(M.createCommentParams=q.createCommentParams);q.commentText&&(M.commentText=_.UX(q.commentText));q.videoPositionMention&&(M.videoPositionMention=q.videoPositionMention);q.sources&&(M.sources=q.sources);G.comment_text&&(M.commentText=G.comment_text);G.attached_video_id?M.videoAttachment={videoId:G.attached_video_id}:G.poll_options?M.pollAttachment={choices:G.poll_options}:G.image_blob_id?M.imageAttachment=
{encryptedBlobId:G.image_blob_id}:G.shared_post_id&&(M.sharedPostAttachment={postId:G.shared_post_id});G.access_restrictions&&typeof G.access_restrictions==="number"&&(q=G.access_restrictions,M.accessRestrictions={restriction:q!==1&&q===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});G.botguard_response&&(M.botguardResponse=G.botguard_response)};
_.Yd.Object.defineProperties(uk.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var JI=function(){};
_.l(JI,Tz);JI.prototype.getApiPaths=function(){return nKx};
JI.prototype.getExtension=function(M){return _.C(M,a6M)};
JI.prototype.JSC$14168_buildRequest=function(M,q,G){q.commentText&&(M.replyText=_.UX(q.commentText));G.comment_text&&(M.replyText=G.comment_text);M.updateReplyParams=q.updateReplyParams};
_.Yd.Object.defineProperties(JI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Z3=function(){};
_.l(Z3,Tz);Z3.prototype.getApiPaths=function(){return EKI};
Z3.prototype.getExtension=function(M){return _.C(M,C39)};
Z3.prototype.JSC$14168_buildRequest=function(M,q,G){q.commentText&&(M.commentText=_.UX(q.commentText));G.comment_text&&(M.commentText=G.comment_text);M.updateCommentParams=q.updateCommentParams};
_.Yd.Object.defineProperties(Z3.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var bk=function(){};
_.l(bk,Tz);bk.prototype.getApiPaths=function(){return NE9};
bk.prototype.getExtension=function(M){return _.C(M,lc9)};
bk.prototype.JSC$14168_buildRequest=function(M,q){q.settings&&(M.settings=q.settings)};var Un=function(){};
_.l(Un,Tz);Un.prototype.getApiPaths=function(){return p9S};
Un.prototype.getExtension=function(M){return _.C(M,q58)};
Un.prototype.JSC$14168_buildRequest=function(M,q){q.channelCreationToken&&(M.channelCreationToken=q.channelCreationToken);q.source&&(M.source=q.source)};var xO=function(){};
_.l(xO,Tz);xO.prototype.getApiPaths=function(){return VLf};
xO.prototype.getExtension=function(M){return _.C(M,nHS)};
xO.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;if(G.name&&(G.given_name||G.family_name))M=new _.bj("channel creation cannot set both GAIA and YouTube names",q),_.T6(M);else{if(q.zeroStepChannelCreationParams){if(!G.comment_text){M=new _.bj("zero_step_create_comment_params but no zero_step_texts",q);_.T6(M);return}M.zeroStepChannelCreationParams=q.zeroStepChannelCreationParams;M.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(M.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
G.comment_text,G.botguard_response&&(M.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=G.botguard_response))}M.channelCreationToken=q.channelCreationToken;G.given_name&&(M.givenName=G.given_name);G.family_name&&(M.familyName=G.family_name);q.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(M.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(G.name||G.handle||G.avatar_url||G.encryptedBlobId||G.isNameChanged!==void 0||G.isHandleChanged!==void 0||G.isDefaultProfilePhoto!==
void 0||G.obakeImageSource)M.overrideChannelCreationParams={},G.name&&(M.overrideChannelCreationParams.name=G.name),G.handle&&(M.overrideChannelCreationParams.handle=G.handle),G.avatar_url&&(M.overrideChannelCreationParams.avatarUrl=G.avatar_url),G.encryptedBlobId&&(M.overrideChannelCreationParams.blobEncryptionId=G.encryptedBlobId),G.enableIdentityForAllChannelCreationDialog&&(G.encryptedBlobId?M.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
G.isDefaultProfilePhoto!==void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=G.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),G.isNameChanged!==void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationNameTag=G.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),G.isHandleChanged!==
void 0&&(M.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=G.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),G.obakeImageSource&&(M.overrideChannelCreationParams.obakeImageSourceType=G.obakeImageSource))}};var zB=function(){};
_.l(zB,Tz);zB.prototype.getApiPaths=function(M){return(M=this.getExtension(M))&&M.status==="DISLIKE"?qGJ:M&&M.status==="INDIFFERENT"?zl9:cJv};
zB.prototype.getExtension=function(M){return _.C(M,_.oU)};
zB.prototype.JSC$14168_buildRequest=function(M,q){q.target&&(M.target=q.target);if(q=this.getParams(q))M.params=q};
zB.prototype.getParams=function(M){switch(M==null?void 0:M.status){case "DISLIKE":return M.dislikeParams;case "INDIFFERENT":return M.removeLikeParams;default:return M==null?void 0:M.likeParams}};var mA=function(){};
_.l(mA,Tz);mA.prototype.getApiPaths=function(){return HJv};
mA.prototype.getExtension=function(M){return _.C(M,cV9)};
mA.prototype.JSC$14168_buildRequest=function(M,q){q.settingItemId&&(M.settingItemId=q.settingItemId);q.stringValue!=null&&q.stringValue!==void 0?M.newValue={stringValue:q.stringValue}:q.intValue?M.newValue={intValue:q.intValue}:q.boolValue!==null&&q.boolValue!==void 0?M.newValue={boolValue:q.boolValue}:(M=new _.bj("Unknown value type for SetSettingEndpoint.",q),_.T6(M))};var S7=function(){};
_.l(S7,Tz);S7.prototype.getApiPaths=function(){return s_$};
S7.prototype.getExtension=function(M){return _.C(M,F$S)||void 0};
S7.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.channelIds&&(M.channelIds=q.channelIds);q.siloName&&(M.siloName=q.siloName);q.params&&(M.params=q.params);G.botguardResponse&&(M.botguardResponse=G.botguardResponse);G.feature&&(M.clientFeature=G.feature)};
_.Yd.Object.defineProperties(S7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var TB=function(){};
_.l(TB,Tz);TB.prototype.getApiPaths=function(){return qfp};
TB.prototype.getExtension=function(M){return _.C(M,gSM)||void 0};
TB.prototype.JSC$14168_buildRequest=function(M,q){q.channelIds&&(M.channelIds=q.channelIds);q.siloName&&(M.siloName=q.siloName);q.params&&(M.params=q.params)};
_.Yd.Object.defineProperties(TB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var rR=function(M){this.shareClientParamsProvider=M};
_.l(rR,Tz);rR.prototype.getApiPaths=function(){return FcF};
rR.prototype.getExtension=function(M){return _.C(M,KQ$)||_.C(M,_.nv$)||_.C(M,Gz2)};
rR.prototype.JSC$14168_buildRequest=function(M,q){q.serializedShareEntity&&(M.serializedSharedEntity=q.serializedShareEntity);if(q.clientParamIdentifier){var G;if((G=this.shareClientParamsProvider)==null?0:G.clientParams.has(q.clientParamIdentifier)){G=this.shareClientParamsProvider;q=q.clientParamIdentifier;var K=G.clientParams.get(q);K&&G.clientParams.delete(q);M.clientParams=K}}};
rR[dP]=[Q8P];var j7=function(){};
_.l(j7,Tz);j7.prototype.getApiPaths=function(){return JbS};
j7.prototype.getExtension=function(M){return _.C(M,Q38)};
j7.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var VU=function(){};
_.l(VU,Tz);VU.prototype.getApiPaths=function(){return G4p};
VU.prototype.getExtension=function(M){return _.C(M,ctv)};
VU.prototype.JSC$14168_buildRequest=function(M,q){q.dismissal&&(M.items=[q.dismissal])};
_.Yd.Object.defineProperties(VU.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var R7=function(){};
_.l(R7,Tz);R7.prototype.getApiPaths=function(){return P9J};
R7.prototype.getExtension=function(M){return _.C(M,_.tM)||void 0};
R7.prototype.JSC$14168_buildRequest=function(M,q,G){M.feedbackTokens=[];q.feedbackToken&&M.feedbackTokens.push(q.feedbackToken);if(q=q.cpn||G.cpn)M.feedbackContext={cpn:q};M.isFeedbackTokenUnencrypted=!!G.is_feedback_token_unencrypted;M.shouldMerge=!1;G.extra_feedback_tokens&&(M.shouldMerge=!0,M.feedbackTokens=M.feedbackTokens.concat(G.extra_feedback_tokens))};
_.Yd.Object.defineProperties(R7.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var fQ=function(){};
_.l(fQ,Tz);fQ.prototype.getApiPaths=function(){return P9J};
fQ.prototype.getExtension=function(M){return _.C(M,_.sl)};
fQ.prototype.JSC$14168_buildRequest=function(M,q,G){G.feedback_tokens&&(M.feedbackTokens=G.feedback_tokens,M.shouldMerge=!0)};
_.Yd.Object.defineProperties(fQ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var G8=function(){};
_.l(G8,Tz);G8.prototype.getApiPaths=function(){return P9J};
G8.prototype.getExtension=function(M){return _.C(M,Ljw)};
G8.prototype.JSC$14168_buildRequest=function(M,q){q.undoToken&&(M.feedbackTokens=[q.undoToken]);q.isUndoTokenUnencrypted&&(M.isFeedbackTokenUnencrypted=q.isUndoTokenUnencrypted)};
_.Yd.Object.defineProperties(G8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var KB=function(){};
_.l(KB,Tz);KB.prototype.getApiPaths=function(){return Yfd};
KB.prototype.getExtension=function(M){return _.C(M,XnI)};
KB.prototype.JSC$14168_buildRequest=function(M,q){q.nextEndpoint&&_.C(q.nextEndpoint,_.q6)?M.nextEndpoint={urlEndpoint:_.C(q.nextEndpoint,_.q6)}:q.nextEndpoint&&_.C(q.nextEndpoint,_.Jl)&&(M.nextEndpoint={watchEndpoint:_.C(q.nextEndpoint,_.Jl)});q.setRacy&&(M.setRacy=q.setRacy);q.setControvercy&&(M.setControvercy=q.setControvercy)};var nB=function(M){this.JSC$18132_storeWithEntities=M};
_.l(nB,Tz);nB.prototype.getApiPaths=function(){return nhJ};
nB.prototype.getExtension=function(M){return _.C(M,end)};
nB.prototype.JSC$14168_buildRequest=function(M,q){q.flowId&&(M.flowId=q.flowId);q.targetId&&(M.targetId=q.targetId);q.continuation&&(M.continuation=q.continuation);var G=q.flowStateEntityKey;if(q.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&G&&this.JSC$18132_storeWithEntities){var K;if(q=(K=this.JSC$18132_storeWithEntities.getState())==null?void 0:K.entities)if(K=_.FI(G).entityType,K=_.sX(q,K,G))M.flowState=K,M.flowStateEntityKey=G}};
_.Yd.Object.defineProperties(nB.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
nB[dP]=[Sb];var Giw=function(){};
_.l(Giw,Tz);_.N=Giw.prototype;_.N.getApiPaths=function(){return X9J};
_.N.JSC$14175_getStoreKey=function(){return _.uG("guide")};
_.N.getRequestConfig=function(){var M=this.JSC$14175_getStoreKey(),q;M&&(q={storeStrategy:{storeKey:M}});return q};
_.N.isNavigationCommand=function(){return!0};
_.N.getExtension=function(M){return _.C(M,_.sl)};
_.N.JSC$14168_buildRequest=function(M){M.fetchLiveState=!0};var Ek=function(){};
_.l(Ek,Tz);Ek.prototype.getApiPaths=function(){return xNP};
Ek.prototype.getExtension=function(M){return _.C(M,dIS)};
Ek.prototype.JSC$14168_buildRequest=function(){};var NZ=function(){};
_.l(NZ,Tz);NZ.prototype.getApiPaths=function(){return zg$};
NZ.prototype.getExtension=function(M){return _.C(M,vSP)};
NZ.prototype.JSC$14168_buildRequest=function(){};var kG=function(){};
_.l(kG,Tz);kG.prototype.getApiPaths=function(){return u0P};
kG.prototype.getExtension=function(M){return _.C(M,_.XY)};
kG.prototype.JSC$14168_buildRequest=function(M,q){q.token&&(M.continuation=q.token);var G,K;M==null||(G=M.context)==null||(K=G.user)==null||delete K.onBehalfOfUser};
kG.prototype.getRequestConfig=function(M){var q={},G;if(((G=this.getExtension(M))==null?void 0:G.sessionIndex)!==void 0){var K;q={authStrategy:{sessionIndex:(K=this.getExtension(M))==null?void 0:K.sessionIndex}}}return q};var pB=function(){};
_.l(pB,Tz);pB.prototype.JSC$14168_getRequest=function(M){var q=this.getExtension(M),G=M="";if(q==null?0:q.popup)M="true";if(q==null?0:q.disableSignout)G="true";q={};return{input:"/getAccountSwitcherEndpoint",requestShell:Da("/getAccountSwitcherEndpoint","GET",(q["X-YouTube-Delegation-Context"]=_.R9("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),q["X-YouTube-Account-Switcher-Popup"]=M,q["X-YouTube-Account-Switcher-Disable-Signout"]=G,q)),innerTubeRequest:{}}};
pB.prototype.getApiPaths=function(){return[]};
pB.prototype.getExtension=function(M){return _.C(M,_.XZH)};
pB.prototype.JSC$14168_buildRequest=function(){};var LB=function(){};
_.l(LB,Tz);LB.prototype.JSC$14168_getRequest=function(M){var q="/cross_account_channel_transfer";(M=this.getExtension(M))&&(q=SuH(q,{target_session:M.targetSessionIndex,source_rapt:M.sourceRapt,rapt:M.targetRapt}));return{input:q,requestShell:Da(q,"GET"),innerTubeRequest:{}}};
LB.prototype.getApiPaths=function(){return[]};
LB.prototype.getExtension=function(M){return _.C(M,tDf)};
LB.prototype.JSC$14168_buildRequest=function(){};var YG=function(){};
_.l(YG,Tz);YG.prototype.getApiPaths=function(){return Ehf};
YG.prototype.isNavigationCommand=function(){return!0};
YG.prototype.getExtension=function(M){return _.C(M,_.sl)};
YG.prototype.JSC$14168_buildRequest=function(M){var q=_.El().get("gsml","");q&&(M.safetyModeLockerObfuscatedGaiaId=q);M.userInterfaceTheme=_.cE(!0);_.g2()?M.deviceTheme="DEVICE_THEME_SELECTED":_.LMe()?M.deviceTheme="DEVICE_THEME_SUPPORTED":M.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var W1=function(){};
_.l(W1,Tz);W1.prototype.getApiPaths=function(){return u0P};
W1.prototype.getExtension=function(M){return _.C(M,O$x)};
W1.prototype.JSC$14168_buildRequest=function(M,q){if(q&&q.requestType&&(M.requestType=q.requestType,q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var G=q.nextUrl;G&&(_.rls(G)||LD(G))&&(M.nextNavendpoint={urlEndpoint:{url:G}})}q&&q.channelSwitcherQuery&&(M.channelSwitcherQuery=q.channelSwitcherQuery);q&&q.triggerChannelCreation&&(M.triggerChannelCreation=q.triggerChannelCreation);var K;if(q==null?0:(K=q.contentOwnerConfig)==
null?0:K.externalContentOwnerId)M.contentOwnerConfig=q.contentOwnerConfig;M.callCircumstance=q&&q.requestType&&q.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var n,E;q=M==null?void 0:(n=M.context)==null?void 0:(E=n.user)==null?void 0:E.onBehalfOfUser;if(q!==void 0){M.obfuscatedSelectedGaiaId=q;var p,y;M==null||(p=M.context)==null||(y=p.user)==null||delete y.onBehalfOfUser}var Y,A;if(n=M==null?void 0:(Y=M.context)==null?void 0:(A=Y.user)==null?
void 0:A.serializedDelegationContext)M.selectedSerializedDelegationContext=n};var A6=function(){};
_.l(A6,Tz);A6.prototype.getApiPaths=function(){return Z0M};
A6.prototype.getExtension=function(M){return _.C(M,EvI)};
A6.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var dC=function(){};
_.l(dC,Tz);dC.prototype.getApiPaths=function(){return jxp};
dC.prototype.getExtension=function(M){return _.C(M,_.hJP)};
dC.prototype.JSC$14168_buildRequest=function(M,q){if(q=q.createBroadcastRequest)M.useMasks=q.useMasks,M.broadcastType=q.broadcastType,M.broadcastSource=q.broadcastSource,M.broadcastMetadata=q.broadcastMetadata,M.broadcastMetadataMask=q.broadcastMetadataMask,M.videoMetadata=q.videoMetadata,M.videoMetadataMask=q.videoMetadataMask,M.liveChatSettingsUpdate=q.liveChatSettingsUpdate,M.liveChatSettingsUpdateMask=q.liveChatSettingsUpdateMask,M.cloneVideoId=q.cloneVideoId,M.cloneWithOverrides=q.cloneWithOverrides,
M.targetEntity=q.targetEntity,M.scheduledRedirectMetadata=q.scheduledRedirectMetadata};var v1=function(){};
_.l(v1,Tz);v1.prototype.getApiPaths=function(){return FUB};
v1.prototype.getExtension=function(M){return _.C(M,pgI)};
v1.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.params&&(M.params=q.params);G.questionText&&(M.questionText=G.questionText);G.optionText&&G.optionText.length>0&&(M.optionText=G.optionText)};var h6=function(){};
_.l(h6,Tz);h6.prototype.getApiPaths=function(){return $NB};
h6.prototype.getExtension=function(M){return _.C(M,NTP)};
h6.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var t6=function(){};
_.l(t6,Tz);t6.prototype.getApiPaths=function(){return LMM};
t6.prototype.getExtension=function(M){return _.C(M,Gkx)};
t6.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var Ok=function(){};
_.l(Ok,Tz);Ok.prototype.getApiPaths=function(){return WMv};
Ok.prototype.getExtension=function(M){return _.C(M,Kq9)};
Ok.prototype.JSC$14168_buildRequest=function(M,q,G){q.params&&(M.params=q.params);q.continuation&&(M.continuation=q.continuation);G.currentPlayerState&&G.currentPlayerState.playerOffsetMs&&(M.currentPlayerState={playerOffsetMs:G.currentPlayerState.playerOffsetMs.toString()})};var wC=function(){};
_.l(wC,Tz);wC.prototype.getApiPaths=function(){return AJd};
wC.prototype.getExtension=function(M){return _.C(M,qj2)};
wC.prototype.JSC$14168_buildRequest=function(M,q,G){q.params&&(M.params=q.params);G.continuation&&(M.continuation=G.continuation);"hidden"in G&&(M.webClientInfo={isDocumentHidden:G.hidden});G.isInvalidationTimeoutRequest&&(M.isInvalidationTimeoutRequest=G.isInvalidationTimeoutRequest);G.invalidationPayload&&(q=M6J(_.ew(YJ(G.invalidationPayload))),M.invalidationPayloadLastPublishAtUsec=Ov(q,2));G.reloadActionPanel&&(M.reloadActionPanel=G.reloadActionPanel);G.fullReload&&(M.fullReload=G.fullReload);
G.currentPlayerState&&(M.currentPlayerState=G.currentPlayerState)};var CB=function(){};
_.l(CB,Tz);CB.prototype.getApiPaths=function(){return ghv};
CB.prototype.getExtension=function(M){return _.C(M,kkM)};
CB.prototype.JSC$14168_buildRequest=function(M,q){M.params=q.params};var ao=function(){};
_.l(ao,Tz);ao.prototype.getApiPaths=function(){return YG$};
ao.prototype.getExtension=function(M){return _.C(M,ajf)};
ao.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var oo=function(){};
_.l(oo,Tz);oo.prototype.getApiPaths=function(){return d42};
oo.prototype.getExtension=function(M){return _.C(M,ovP)};
oo.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var lD=function(){};
_.l(lD,Tz);lD.prototype.getApiPaths=function(){return BXP};
lD.prototype.getExtension=function(M){return _.C(M,y12)};
lD.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var Xq=function(){};
_.l(Xq,Tz);Xq.prototype.getApiPaths=function(){return IHd};
Xq.prototype.getExtension=function(M){return _.C(M,LqI)};
Xq.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var P1=function(){};
_.l(P1,Tz);P1.prototype.getApiPaths=function(){return m4v};
P1.prototype.getExtension=function(M){return _.C(M,pfI)};
P1.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var iD=function(){};
_.l(iD,Tz);iD.prototype.getApiPaths=function(){return fHl};
iD.prototype.getExtension=function(M){return _.C(M,_.Yjv)};
iD.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.params&&(M.params=q.params);G.client_message_id&&(M.clientMessageId=G.client_message_id);G.recaptcha_token&&(M.recaptchaToken=G.recaptcha_token);G.rich_message&&G.rich_message.text_segments?(q=G.rich_message.text_segments.map(function(K){var n={};K.text&&(n.text=K.text);K.emoji_id&&(n.emojiId=K.emoji_id);return n}),M.richMessage={textSegments:q}):G.message&&(M.message=G.message);
G.currentPlayerState&&(M.currentPlayerState=G.currentPlayerState)};var c1=function(){};
_.l(c1,Tz);c1.prototype.getApiPaths=function(){return FMM};
c1.prototype.getExtension=function(M){return _.C(M,WqS)};
c1.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var gC=function(){};
_.l(gC,Tz);gC.prototype.getApiPaths=function(){return MeJ};
gC.prototype.getExtension=function(M){return _.C(M,d1$)};
gC.prototype.JSC$14168_buildRequest=function(M,q,G){q.isUserInitiated&&(M.isUserInitiated=q.isUserInitiated);q.initiationSource&&(M.initiationSource=q.initiationSource);G.locationInfo&&(M.context.client.locationInfo=G.locationInfo)};var B1=function(){};
_.l(B1,Tz);B1.prototype.getApiPaths=function(){return QRf};
B1.prototype.getExtension=function(M){return _.C(M,tpl)};
B1.prototype.JSC$14168_buildRequest=function(M,q,G){q.metadataUpdateRequest&&(q=q.metadataUpdateRequest,M.encryptedVideoId=q.encryptedVideoId,q.liveChat&&(q=q.liveChat,M.liveChat||(M.liveChat={}),q.performAsExternalChannelId&&(M.liveChat.performAsExternalChannelId=q.performAsExternalChannelId),q.source&&(M.liveChat.source=q.source)));var K;if(G==null?0:(K=G.liveChat)==null?0:K.liveChatSettings)M.liveChat||(M.liveChat={}),G=G.liveChat.liveChatSettings,M.liveChat.newLiveChatSettings=G,M.liveChat.newLiveChatSettingsMask||
(M.liveChat.newLiveChatSettingsMask={}),G.emojiReactionSet&&(M.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var Qt=function(){};
_.l(Qt,Tz);Qt.prototype.getApiPaths=function(){return yZ2};
Qt.prototype.getExtension=function(M){return _.C(M,_.BJP)};
Qt.prototype.JSC$14168_buildRequest=function(M,q,G){G.continuation?M.continuation=G.continuation:q.videoId&&(M.videoId=q.videoId);G.clientParams&&(M.clientParams=G.clientParams)};var Io=function(){};
_.l(Io,Tz);Io.prototype.getApiPaths=function(){return vhl};
Io.prototype.getExtension=function(M){return _.C(M,_.TX)};
Io.prototype.JSC$14168_buildRequest=function(M,q){M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";M.fetchCommentsParams={};q.videoId&&(M.fetchCommentsParams.encryptedVideoId=q.videoId);q.postId&&(M.fetchCommentsParams.postId=q.postId);q.externalChannelId&&(M.fetchCommentsParams.externalChannelId=q.externalChannelId);q.linkedCommentId&&(M.fetchCommentsParams.linkedCommentId=q.linkedCommentId);(0,_.xP.isEmpty)(M.fetchCommentsParams)&&delete M.fetchCommentsParams};var D7=function(){};
_.l(D7,Tz);D7.prototype.getApiPaths=function(){return IU};
D7.prototype.JSC$14168_buildRequest=function(M){M.browseId="FEnotifications_inbox"};
D7.prototype.getExtension=function(M){return _.C(M,_.sl)};var uD=function(){};
_.l(uD,Tz);uD.prototype.getApiPaths=function(){return vhl};
uD.prototype.JSC$14168_buildRequest=function(M,q){q.signal==="GET_NOTIFICATIONS_MENU"&&(M.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");q.ctoken&&(M.ctoken=q.ctoken)};
var KvP=function(){};
_.l(KvP,uD);KvP.prototype.getExtension=function(M){return _.C(M,_.sl)};
var naI=function(){};
_.l(naI,uD);naI.prototype.getExtension=function(M){return _.C(M,a4B)};var J6=function(){};
_.l(J6,Tz);J6.prototype.getApiPaths=function(){return aHJ};
J6.prototype.getExtension=function(M){return _.C(M,_.sl)};
J6.prototype.JSC$14168_buildRequest=function(){};var Z7=function(){};
_.l(Z7,Tz);Z7.prototype.getApiPaths=function(){return D4d};
Z7.prototype.getExtension=function(M){return _.C(M,XJd)||void 0};
Z7.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params);q.secondaryParams&&(M.secondaryParams=q.secondaryParams)};var bD=function(){};
_.l(bD,Tz);bD.prototype.getApiPaths=function(){return uMv};
bD.prototype.getExtension=function(M){return _.C(M,NgM)};
bD.prototype.JSC$14168_buildRequest=function(M,q){q.undo&&(M.undo=q.undo);q.serializedOptOut&&(M.serializedOptOut=q.serializedOptOut);q.serializedRecordInteractionsRequest&&(M.serializedRecordInteractionsRequest=q.serializedRecordInteractionsRequest)};var Uk=function(){};
_.l(Uk,Tz);Uk.prototype.getApiPaths=function(){return bJB};
Uk.prototype.getExtension=function(M){return _.C(M,kzd)};
Uk.prototype.JSC$14168_buildRequest=function(M,q){q.serializedInteractionsRequest&&(M.serializedRecordNotificationInteractionsRequest=q.serializedInteractionsRequest)};var xG=function(){};
_.l(xG,Tz);xG.prototype.getApiPaths=function(){return HaH};
xG.prototype.getExtension=function(M){return _.C(M,uyD)};
xG.prototype.JSC$14168_buildRequest=function(M,q,G){q=q===void 0?{}:q;G=G===void 0?{}:G;q.videoId?M.videoId=q.videoId:q.playlistId&&(M.playlistId=q.playlistId);var K,n=(K=q.offlineWebClientEligibility)!=null?K:G.offlineWebClientEligibility;n&&(M.offlineWebClientEligibility=n);var E;if(K=(E=q.preferredFormatType)!=null?E:G.preferredFormatType)M.preferredFormatType=K;var p;if(E=(p=q.lastOfflineQualitySettingsSavedMs)!=null?p:G.lastOfflineQualitySettingsSavedMs)M.lastOfflineQualitySettingsSavedMs=E;
q.params&&(M.params=q.params)};var z8=function(){};
_.l(z8,Tz);z8.prototype.getApiPaths=function(){return ya};
z8.prototype.getExtension=function(M){return _.C(M,_.XY)};
z8.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.token&&(M.continuation=q.token);G.formData&&(M.formData=G.formData)};var mf=function(){};
_.l(mf,Tz);mf.prototype.getApiPaths=function(){return ya};
mf.prototype.getExtension=function(M){return _.C(M,Y_9)};
mf.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;M.continuation=G.continuation};var Sa=function(){};
_.l(Sa,Tz);Sa.prototype.getApiPaths=function(){return ya};
Sa.prototype.getExtension=function(M){return _.C(M,_.hM)};
Sa.prototype.JSC$14168_buildRequest=function(M,q){var G,K=q.panelIdentifier||((G=q.identifier)==null?void 0:G.tag);K&&(M.panelId=K);var n;if((n=q.globalConfiguration)==null?0:n.params){var E;M.params=(E=q.globalConfiguration)==null?void 0:E.params}if(_.w("enable_ai_companion")){var p;q=q.engagementPanelExtras;if(q==null?0:(p=q.aiCompanionPanelExtras)==null?0:p.includeClientConversationId){var y,Y;p=(Y=(y=_.AL().resolve(_.WR(xX8)))==null?void 0:y("conversations"))==null?void 0:Y.get("conversation_id")}else p=
void 0;if(y=p)M.formData=Object.assign({},M.formData,{inputComposerFormData:{conversationId:y}})}};
_.Yd.Object.defineProperties(Sa.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var T8=function(){};
_.l(T8,Tz);T8.prototype.getApiPaths=function(){return ya};
T8.prototype.getExtension=function(M){return _.C(M,s4P)};
T8.prototype.JSC$14168_buildRequest=function(M,q){q.panelLoadingStrategy&&qsw(M,q.panelLoadingStrategy)};var rC=function(){};
_.l(rC,Tz);rC.prototype.getApiPaths=function(){return ya};
rC.prototype.getExtension=function(M){return _.C(M,O3f)};
rC.prototype.JSC$14168_buildRequest=function(M,q){q.loadingStrategy&&qsw(M,q.loadingStrategy)};var ja=function(){};
_.l(ja,Tz);ja.prototype.getApiPaths=function(){return ya};
ja.prototype.getExtension=function(M){return _.C(M,_.Ayy)};
ja.prototype.JSC$14168_buildRequest=function(M,q){q.panelLoadingStrategy&&qsw(M,q.panelLoadingStrategy)};var Vt=function(){};
_.l(Vt,Tz);Vt.prototype.getApiPaths=function(){return ya};
Vt.prototype.getExtension=function(M){return _.C(M,wf$)};
Vt.prototype.JSC$14168_buildRequest=function(M,q){var G,K=(G=q.contentSourcePanelIdentifier)==null?void 0:G.tag;K&&(M.panelId=K);var n;if((n=q.globalConfiguration)==null?0:n.params){var E;M.params=(E=q.globalConfiguration)==null?void 0:E.params}};var Ro=function(){};
_.l(Ro,Tz);Ro.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
Ro.prototype.getExtension=function(M){return _.C(M,CAl)};
Ro.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var fB=function(){};
_.l(fB,Tz);fB.prototype.getApiPaths=function(){return p_9};
fB.prototype.getExtension=function(M){return _.C(M,lj2)};
fB.prototype.JSC$14168_buildRequest=function(M,q){q.externalChannelId&&(M.externalChannelId=q.externalChannelId);q.superChatAction&&(M.superChatAction=q.superChatAction);q.superStickersAction&&(M.superStickersAction=q.superStickersAction)};var Fq=function(){};
_.l(Fq,Tz);Fq.prototype.getApiPaths=function(){return NX2};
Fq.prototype.getExtension=function(M){return _.C(M,AVl)||_.C(M,Zry)};
Fq.prototype.JSC$14168_buildRequest=function(M,q){q.videoIds?M.videoIds=q.videoIds:q.videoId&&(M.videoIds=[q.videoId]);q.playlistId&&(M.playlistId=q.playlistId);q.params&&(M.params=q.params);M.excludeWatchLater=!1};var H1=function(){};
_.l(H1,Tz);H1.prototype.getApiPaths=function(){return H0d};
H1.prototype.getExtension=function(M){return _.C(M,_.eN)};
H1.prototype.JSC$14168_buildRequest=function(M,q,G){G.create_playlist_title?M.title=G.create_playlist_title:q.title&&(M.title=q.title);if(G.create_playlist_privacy_status&&typeof G.create_playlist_privacy_status==="number"){a:{var K=G.create_playlist_privacy_status;if(K!==0){if(K===1){K="PUBLIC";break a}if(K===2){K="UNLISTED";break a}}K="PRIVATE"}M.privacyStatus=K}else q.privacyStatus&&(M.privacyStatus=q.privacyStatus);G.create_playlist_description&&(M.description=G.create_playlist_description);q.videoIds&&
(M.videoIds=q.videoIds);q.params&&(M.params=q.params);q.sourcePlaylistId&&(M.sourcePlaylistId=q.sourcePlaylistId)};var ea=function(){};
_.l(ea,Tz);ea.prototype.getApiPaths=function(){return sRJ};
ea.prototype.getExtension=function(M){return _.C(M,oS2)};
ea.prototype.JSC$14168_buildRequest=function(M,q){M.playlistId=q.playlistId};var $G=function(){};
_.l($G,Tz);$G.prototype.getApiPaths=function(){return hld};
$G.prototype.getExtension=function(M){return _.C(M,MuI)};
$G.prototype.JSC$14168_buildRequest=function(M,q){q.playlistId&&(M.playlistId=q.playlistId);q.params&&(M.params=q.params)};var s$=function(){};
_.l(s$,Tz);s$.prototype.getApiPaths=function(){return ZJx};
s$.prototype.getExtension=function(M){return _.C(M,_.ri)||void 0};
s$.prototype.JSC$14168_buildRequest=function(M,q){q.actions&&(M.actions=q.actions);q.params&&(M.params=q.params);q.playlistId&&(M.playlistId=q.playlistId)};var MF=function(){};
_.l(MF,Tz);_.N=MF.prototype;_.N.getApiPaths=function(){return U4S};
_.N.getExtension=function(M){return _.C(M,_.p_)};
_.N.JSC$14168_buildRequest=function(M,q){q.videoId&&(M.playerRequest={videoId:q.videoId},q.playerParams&&(M.playerRequest.params=q.playerParams),q.racyCheckOk&&(M.playerRequest.racyCheckOk=!!q.racyCheckOk),q.contentCheckOk&&(M.playerRequest.contentCheckOk=!!q.contentCheckOk));q.params&&(M.params=q.params);q.inputType&&(M.inputType=q.inputType);M.disablePlayerResponse=!0};
_.N.getRequestConfig=function(M){var q;(M=this.JSC$14175_getStoreKey(M))&&(q={storeStrategy:{storeKey:M}});_.w("web_log_reels_ticks")&&(q=q||{},q.requestTick="r_wrs",q.responseTick="r_wrr");return q};
_.N.JSC$14175_getStoreKey=function(M){M=this.getExtension(M);if(M!=null&&M.videoId){var q={videoId:M.videoId};M.params&&(q.params=M.params);return _.uG("reel_item_watch",q)}};var qF=function(){};
_.l(qF,Tz);_.N=qF.prototype;_.N.getApiPaths=function(){return x4B};
_.N.getExtension=function(M){return _.C(M,_.p_)};
_.N.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;M.sequenceParams=q.sequenceParams;var K;((K=G)==null?0:K.contentPlaybackContext)&&_.w("web_shorts_prefetch_service_enabled")&&(M.playbackContext={contentPlaybackContext:G.contentPlaybackContext})};
_.N.JSC$14175_getStoreKey=function(M){if(_.w("web_enable_delay_shorts_sequence_call")||_.w("shorts_controller_retrieve_seedless_sequence_v2"))if(M=this.getExtension(M),M==null?0:M.sequenceParams)return _.uG("reel_watch_sequence",{sequenceParams:M.sequenceParams})};
_.N.getRequestConfig=function(M){M=this.JSC$14175_getStoreKey(M);var q;M&&(q={storeStrategy:{storeKey:M}});q=q||{};q.requestTick="r_wsrs";q.responseTick="r_wsrr";q.processorTick="r_wsrp";return q};
var Gv=function(){};
_.l(Gv,Tz);Gv.prototype.getApiPaths=function(){return x4B};
Gv.prototype.getExtension=function(M){return _.C(M,_.XY)};
Gv.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.token&&(M.continuation=q.token);var K;((K=G)==null?0:K.contentPlaybackContext)&&_.w("web_shorts_prefetch_service_enabled")&&(M.playbackContext={contentPlaybackContext:G.contentPlaybackContext})};
Gv.prototype.getRequestConfig=function(M){M=this.JSC$14175_getStoreKey(M);var q;M&&(q={storeStrategy:{storeKey:M}});q=q||{};q.requestTick="r_wsrs";q.responseTick="r_wsrr";q.processorTick="r_wsrp";return q};var Km=function(){};
_.l(Km,Tz);Km.prototype.getApiPaths=function(){return KMM};
Km.prototype.getExtension=function(M){return _.C(M,_.f4$)};
Km.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.flagAction&&(M.action=q.flagAction);q.flagRequestType&&(M.flagRequestType=q.flagRequestType);q.additionalDetailCheckboxChecked&&(M.additionalDetailCheckboxChecked=q.additionalDetailCheckboxChecked);q.legalCheckboxChecked&&(M.legalCheckboxChecked=q.legalCheckboxChecked);q={};G.flag_issue_type!==void 0&&(q.issue=G.flag_issue_type);G.flag_affiliation!==void 0&&(q.affiliation=G.flag_affiliation);G.flag_full_name&&(q.fullName=G.flag_full_name);
Object.keys(q).length&&(M.legalReportDetails=q);if(G.flag_description||G.text)M.userComments=G.flag_description||G.text;q={};G.minutes!==void 0&&G.seconds!==void 0&&(q.minutes=G.minutes,q.seconds=G.seconds);G.vss_id&&(q.vssId=G.vss_id);Object.keys(q).length&&(M.videoReportDetails=q);q={};G.video_ids&&(q.videoIds=G.video_ids);G.impersonated_channel_url&&(q.impersonatedChannelUrl=G.impersonated_channel_url);Object.keys(q).length&&(M.channelAbuseReportDetails=q)};
_.Yd.Object.defineProperties(Km.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var nm=function(){};
_.l(nm,Tz);nm.prototype.getApiPaths=function(){return yJp};
nm.prototype.getExtension=function(M){return _.C(M,oNx)};
nm.prototype.JSC$14168_buildRequest=function(M,q){q.blockedForKidsContent&&(M.blockedForKidsContent=q.blockedForKidsContent)};var E$=function(){};
_.l(E$,Tz);E$.prototype.getApiPaths=function(){return SG8};
E$.prototype.getExtension=function(M){return _.C(M,JBj)};
E$.prototype.JSC$14168_buildRequest=function(M,q,G){M.params=q.params;G.impersonated_channel_url&&(M.impersonatedChannelUrl=G.impersonated_channel_url)};var NF=function(){};
_.l(NF,Tz);NF.prototype.getApiPaths=function(){return iJI};
NF.prototype.getExtension=function(M){return _.C(M,_.lwv)};
NF.prototype.JSC$14168_buildRequest=function(M,q){q.items&&(M.items=q.items);q.kidGaiaId&&(M.kidGaiaId=q.kidGaiaId)};var k4=function(){};
_.l(k4,Tz);k4.prototype.getApiPaths=function(){return k4$};
k4.prototype.getExtension=function(M){return _.C(M,_.Lr8)};
k4.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params);q.targetId&&(M.targetId=q.targetId)};var pm=function(){};
_.l(pm,Tz);pm.prototype.getApiPaths=function(){return VBB};
pm.prototype.getExtension=function(M){return _.C(M,otP)};
pm.prototype.JSC$14168_buildRequest=function(M,q){q.externalVideoId&&(M.externalVideoId=q.externalVideoId);q.query&&(M.query=q.query);q.sourceTimelines&&(M.sourceTimelines=q.sourceTimelines)};var y4=function(){};
_.l(y4,Tz);y4.prototype.getApiPaths=function(){return Rld};
y4.prototype.getExtension=function(M){return _.C(M,_.XY)||void 0};
y4.prototype.JSC$14168_buildRequest=function(M,q){q.token&&(M.continuation=q.token)};
_.Ean=function(){};
_.l(_.Ean,Tz);_.N=_.Ean.prototype;_.N.getApiPaths=function(){return Rld};
_.N.getExtension=function(M){return _.C(M,_.Ep)||void 0};
_.N.isNavigationCommand=function(){return!0};
_.N.JSC$14175_getStoreKey=function(M,q){q=q===void 0?{}:q;if(!q.disableCache&&(M=this.getExtension(M))&&M.query)return q={query:M.query},M.params&&(q.params=M.params),_.uG("search",q)};
_.N.JSC$14168_buildRequest=function(M,q,G){q.query&&(M.query=q.query);q.params&&(M.params=q.params);if(!_.w("web_forward_suggest_stats_killswitch")){var K=_.C(q,RJI);K&&(M.suggestStats=K)}var n;!_.w("kevlar_searchbox_stats_killswitch")&&((n=G.tempData)==null?0:n.gs_l)&&!_.C(q,RJI)&&(M.webSearchboxStatsUrl="/search?oq="+(G.tempData.oq||"")+"&gs_l="+G.tempData.gs_l);var E;if((E=G.tempData)==null?0:E.entityMid)q=M.suggestionSearchParams||{},q.entityMid=G.tempData.entityMid,M.suggestionSearchParams=q;
if(_.w("enable_desktop_vdcbg_components")||_.w("enable_inline_muted_playback_on_web_search"))q=_.El().getFlag(186),M.inlineSettingStatus=q?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON";var p;((p=G.tempData)==null?0:p.isFromShorts)&&_.w("web_pass_shorts_context_to_search")&&(M.shortsContext={isShortsContext:!0,shouldSelectShortsChip:!1})};
_.N.getRequestConfig=function(M,q){q=q===void 0?{}:q;M=this.JSC$14175_getStoreKey(M,q);var G;M&&(G={storeStrategy:{storeKey:M}});_.w("web_log_search_ticks_ks")||(G=G||{},G.requestTick="sr_s",G.responseTick="sr_r");return G};var Lm=function(){};
_.l(Lm,Tz);Lm.prototype.getApiPaths=function(){return w9B};
Lm.prototype.getExtension=function(M){return _.C(M,xJl)};
Lm.prototype.JSC$14168_buildRequest=function(M,q){q.serializedGetSharingProviderDataParams&&(M.serializedGetSharingProviderDataParams=q.serializedGetSharingProviderDataParams)};var Y4=function(){};
_.l(Y4,Tz);Y4.prototype.getApiPaths=function(){return C9S};
Y4.prototype.getExtension=function(M){return _.C(M,TQf)};
Y4.prototype.JSC$14168_buildRequest=function(M,q){q.endpoint&&(M.endpoint=q.endpoint);q.action&&(M.action=q.action)};var Ww=function(){};
_.l(Ww,Tz);Ww.prototype.getApiPaths=function(){return MBM};
Ww.prototype.getExtension=function(M){return _.C(M,l6I)};
Ww.prototype.JSC$14168_buildRequest=function(M,q){M.videoId=q.videoId;q.scheduledRedirectMetadataSourceVideoId&&(M.scheduledRedirectMetadata={sourceVideoId:q.scheduledRedirectMetadataSourceVideoId})};var AW=function(){};
_.l(AW,Tz);AW.prototype.getApiPaths=function(){return elB};
AW.prototype.getExtension=function(M){return _.C(M,_.P0P)};
AW.prototype.JSC$14168_buildRequest=function(M,q){M.params=q.params;M.correctionText=q.correctionText};var df=function(){};
_.l(df,Tz);df.prototype.getApiPaths=function(){return RLj};
df.prototype.getExtension=function(M){return _.C(M,_.l4B)};
df.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params);M.searchQuery=q.searchQuery;M.languageCode=q.languageCode;M.kind=q.kind;M.name=q.name;M.externalVideoId=q.externalVideoId};var vw=function(){};
_.l(vw,Tz);vw.prototype.getApiPaths=function(){return AZv};
vw.prototype.getExtension=function(M){return _.C(M,S2l)};
vw.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.params=q.params)};var hW=function(M){this.JSC$18407_storeWithEntities=M};
_.l(hW,Tz);hW.prototype.getApiPaths=function(){return Tpl};
hW.prototype.getExtension=function(M){return _.C(M,rRd)||_.C(M,Vfd)};
hW.prototype.JSC$14168_buildRequest=function(M,q,G){G.client_data&&(M.clientData=G.client_data);if(q.commerceActionConfig){var K=q.commerceActionConfig;q=K.actionId;K=K.commerceActionParams;q&&(M.actionId=q);K&&(M.commerceActionParams=K)}else{var n=q.actionId,E=q.commerceActionParams;G=q.entityKeys;n&&(M.actionId=n);E&&(M.commerceActionParams=E);var p;q=(K=this.JSC$18407_storeWithEntities)==null?void 0:(p=K.getState())==null?void 0:p.entities;if(G&&q){K=[];p=_.k(G);for(G=p.next();!G.done;G=p.next())if(n=
G.value,G=_.FI(n).entityType,n=_.sX(q,G,n))E={},K.push((E[G]=n,E));M.entityMutationPayloads=K}}};
hW.prototype.getRequestConfig=function(M){var q,G=(q=_.C(M,rRd))==null?void 0:q.requestSequenceType;if(G&&M.clickTrackingParams&&G!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:M.clickTrackingParams,sequenceType:G}}};
hW[dP]=[Sb];var tW=function(){};
_.l(tW,Tz);tW.prototype.getApiPaths=function(){return diJ};
tW.prototype.getExtension=function(M){return _.C(M,_.LU9)};
tW.prototype.JSC$14168_buildRequest=function(M,q){q.feedbackData&&(M.feedbackData=q.feedbackData);q.params&&(M.itemParams=q.params)};
_.Yd.Object.defineProperties(tW.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var O$=function(){};
_.l(O$,Tz);O$.prototype.getApiPaths=function(){return vKl};
O$.prototype.getExtension=function(M){return _.C(M,YY9)};
O$.prototype.JSC$14168_buildRequest=function(M,q,G){G.payments_payload&&(M.paymentsPayload=G.payments_payload);G.offer_params&&(M.offerParams=G.offer_params);q.transactionParams&&(M.transactionParams=q.transactionParams)};var wf=function(){};
_.l(wf,Tz);wf.prototype.getApiPaths=function(){return hPB};
wf.prototype.getExtension=function(M){return _.C(M,_.WUv)};
wf.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.buybucketParams&&(M.buybucketData={params:q.buybucketParams},q.stickerParams?M.buybucketData.stickerParams=q.stickerParams:(G.rich_chat_message?M.buybucketData.richChatMessage=G.rich_chat_message:G.chat_message_text&&(M.buybucketData.chatMessageText=G.chat_message_text),G.purchase_price_micros&&(M.buybucketData.purchasePriceMicros=G.purchase_price_micros.toString())));q.donationAmountMicros&&(M.tipAmountMicros=q.donationAmountMicros,
q.tipParams&&(M.tipParams=q.tipParams));q.offerParams&&(M.offerParams=q.offerParams);q.productData&&(M.productData=q.productData);q.transactionParams&&(M.transactionParams=q.transactionParams)};var Cm=function(){};
_.l(Cm,Tz);Cm.prototype.getApiPaths=function(){return tev};
Cm.prototype.getExtension=function(M){return _.C(M,vl9)};
Cm.prototype.JSC$14168_buildRequest=function(M,q){q.updateFopParams&&(M.updateFopParams=q.updateFopParams)};var aW=function(){};
_.l(aW,Tz);aW.prototype.getApiPaths=function(){return O4I};
aW.prototype.getExtension=function(M){return _.C(M,_.uh)};
aW.prototype.JSC$14168_buildRequest=function(M,q){q.couponCode&&(M.couponCode=q.couponCode);q.params&&(M.itemParams=q.params)};var oW=function(){};
_.l(oW,Tz);oW.prototype.getApiPaths=function(){return w_f};
oW.prototype.getExtension=function(M){return _.C(M,_.j4v)};
oW.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;q.params&&(M.params=q.params);G.ctk&&(M.clientToken=G.ctk)};var lr=function(M){this.JSC$18442_storeWithEntities=M};
_.l(lr,Tz);lr.prototype.getApiPaths=function(){return CVv};
lr.prototype.getExtension=function(M){return _.C(M,_.q1)};
lr.prototype.JSC$14168_buildRequest=function(M,q,G){G.purchase_price_micros&&(M.productData={pdgData:{purchasePriceMicros:G.purchase_price_micros.toString()}},G.rich_chat_message&&(M.productData.pdgData.richChatMessage=G.rich_chat_message),G.currency_code&&(M.productData.pdgData.currencyCode=G.currency_code));q.transactionParams&&(M.transactionParams=q.transactionParams);q.clientLocationContext&&(M.clientLocationContext=q.clientLocationContext);G.payments_payload&&(M.paymentsPayload=G.payments_payload);
G.funds_guarantee_callback_client_data&&(M.fundsGuaranteeCallbackClientData=G.funds_guarantee_callback_client_data);var K,n;G=(K=this.JSC$18442_storeWithEntities)==null?void 0:(n=K.getState())==null?void 0:n.entities;if(q.entityKeys&&G){K=[];q=_.k(q.entityKeys);for(n=q.next();!n.done;n=q.next()){var E=n.value;n=_.FI(E).entityType;if(E=_.sX(G,n,E)){var p={};K.push((p[n]=E,p))}}M.entityMutationPayloads=K}};
lr[dP]=[Sb];var XV=function(){};
_.l(XV,Tz);XV.prototype.getApiPaths=function(){return aW9};
XV.prototype.getExtension=function(M){return _.C(M,Abp)};
XV.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;G.backend_analytics&&(M.serializedBackendAnalyticsEvent=G.backend_analytics);q.offerParams&&(M.offerParams=q.offerParams)};var Pw=function(){};
_.l(Pw,Tz);Pw.prototype.getApiPaths=function(){return O4I};
Pw.prototype.getExtension=function(M){return _.C(M,lRy)};
Pw.prototype.JSC$14168_buildRequest=function(M,q){q.params&&(M.itemParams=q.params)};var ir=function(){};
_.l(ir,Tz);ir.prototype.getApiPaths=function(){return oKx};
ir.prototype.getExtension=function(M){return _.C(M,_.emp)};
ir.prototype.JSC$14168_buildRequest=function(M,q,G){G.resume_time_ms&&(M.resumeTimeMs=G.resume_time_ms);q.pauseParams&&(M.pauseParams=q.pauseParams)};var cw=function(){};
_.l(cw,Tz);cw.prototype.getApiPaths=function(){return lWP};
cw.prototype.getExtension=function(M){return _.C(M,_.dN2)};
cw.prototype.JSC$14168_buildRequest=function(M,q,G){G=G===void 0?{}:G;G.c&&(M.redeemCode=G.c);G.rd&&(M.riskData=G.rd);G.ctk&&(M.clientToken=G.ctk)};var gf=function(){};
_.l(gf,Tz);gf.prototype.getApiPaths=function(){return X_p};
gf.prototype.getExtension=function(M){return _.C(M,_.$Bd)};
gf.prototype.JSC$14168_buildRequest=function(M,q){q.resumeParams&&(M.resumeParams=q.resumeParams)};var Bw=function(M,q){this.clientName=M;this.defaultExpirationDelayMs=q};
Bw.prototype.put=function(M,q){var G=this,K;return _.L(function(n){K=Object.assign({},q.data);K.key=M;K.clientName=G.clientName;K.expireTimestampMs===void 0&&(K.expireTimestampMs=(Math.round((0,_.d8)())+G.defaultExpirationDelayMs).toString());return n.return(G.putInternal(M,K))})};
Bw[dP]=[jx,R7R];var Ncw=function(){Bw.apply(this,arguments);this.JSC$18472_responseStore=new Map};
_.l(Ncw,Bw);_.N=Ncw.prototype;_.N.get=function(M){var q=this;return _.L(function(G){return G.return(wn(q,M))})};
_.N.putInternal=function(M,q){var G=this,K,n,E;return _.L(function(p){K=G.defaultExpirationDelayMs;q.expireTimestampMs&&(K=Number(q.expireTimestampMs)-Math.round((0,_.d8)()),n=_.tL("mweb_override_response_store_expiration_ms"),n>0&&n<K&&(K=n));E=setTimeout(function(){G.remove(M)},K);
G.JSC$18472_responseStore.set(M,{entryData:q,timer:E});_.gL(p)})};
_.N.remove=function(M){var q=this;return _.L(function(G){kiL(q,M);_.gL(G)})};
_.N.removeAll=function(){var M=this;return _.L(function(q){M.JSC$18472_responseStore.forEach(function(G){clearTimeout(G.timer)});
M.JSC$18472_responseStore.clear();_.gL(q)})};
_.N.has=function(M){return!!this.JSC$18472_responseStore.get(M)};
_.N.getKeys=function(){return this.JSC$18472_responseStore.keys()};
var wn=function(M,q){if(M=M.JSC$18472_responseStore.get(q))return new _.OW(M.entryData)},kiL=function(M,q){var G=M.JSC$18472_responseStore.get(q);
G&&(clearTimeout(G.timer),M.JSC$18472_responseStore.delete(q))};var GAy;var EFF=function(M,q,G){Bw.call(this,M,q);this.token=G};
_.l(EFF,Bw);_.N=EFF.prototype;_.N.get=function(M){var q=this,G,K;return _.L(function(n){return n.nextAddress==1?n.yield(nFy(q.token),2):n.nextAddress!=3?(G=n.yieldResult,n.yield(G.get("ResponseStore",[M,q.clientName]),3)):(K=n.yieldResult)?n.return(new _.OW(K)):n.return(void 0)})};
_.N.putInternal=function(M,q){var G=this,K;return _.L(function(n){if(n.nextAddress==1)return n.yield(nFy(G.token),2);K=n.yieldResult;return n.yield(K.put("ResponseStore",q),0)})};
_.N.remove=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(nFy(q.token),2);G=K.yieldResult;return K.return(G.delete("ResponseStore",[M,q.clientName]))})};
_.N.removeAll=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return G.yield(nFy(M.token),2);q=G.yieldResult;return G.yield(DgI(q,IDBKeyRange.only(M.clientName)),0)})};
_.N.has=function(){throw Error("ij");};_.Q4=new _.$k("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var pXw=function(M){var q;this.stateTagsData=(q=M.responseContext)==null?void 0:q.stateTags},yuE=function(M){var q;
return((q=M.stateTagsData)==null?void 0:q.stateTagsModified)||[]};var Lvw;Lvw=function(M){this.JSC$18485_responseStore=M};
_.ch=function(M,q,G){if(!_.w("state_tags_killswitch")){var K=new pXw(q);if(yuE(K).length>0){var n=M.JSC$18485_responseStore.getKeys();n=_.k(n);for(var E=n.next();!E.done;E=n.next()){E=E.value;var p=wn(M.JSC$18485_responseStore,E);if(p){var y=_.zh(p);a:{var Y=void 0;p=yuE(K);y=((Y=(new pXw(y)).stateTagsData)==null?void 0:Y.relevantStateTags)||[];Y=_.k(y);for(y=Y.next();!y.done;y=Y.next())if(y=y.value,y.stateTag!=null&&p.includes(y.stateTag)&&y.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){p=
!0;break a}p=!1}p&&kiL(M.JSC$18485_responseStore,E)}}}}var A;K=(A=q.responseContext)==null?void 0:A.maxAgeSeconds;G&&K&&Number(K)>0&&(q=Hx(q,K),M.JSC$18485_responseStore.put(G,new _.OW(q)))};
Lvw.prototype.handleResponse=function(M,q){if(!q)throw Error("jj");var G,K;q=(G=q.config)==null?void 0:(K=G.storeStrategy)==null?void 0:K.storeKey;_.ch(this,M,q)};
Lvw[dP]=[_.ta];_.Ooy=new _.$k("STORE_RESPONSE_PROCESSOR_TOKEN");var YKI=function(M){this.JSC$18488_responseStore=M};
YKI.prototype.handleResponse=function(M,q){if(q.input.match(_.m4(x4B))){var G;if(M==null?0:(G=M.entries)==null?0:G.length)for(M=_.k(M.entries),q=M.next();!q.done;q=M.next()){G=q.value.command;var K=void 0;q=(K=_.C(G,_.p_))==null?void 0:K.unserializedPrefetchData;if(!G||!q)break;K=(new MF).JSC$14175_getStoreKey(G);var n=_.C(q,fj2),E=void 0,p=void 0,y=void 0,Y=void 0,A=void 0,v=void 0,h=((E=n)==null?0:(p=E.responseContext)==null?0:p.maxAgeSeconds)&&Number((y=n)==null?void 0:(Y=y.responseContext)==null?
void 0:Y.maxAgeSeconds)>0?Number((A=n)==null?void 0:(v=A.responseContext)==null?void 0:v.maxAgeSeconds):600;K&&h>0&&(n=Hx(n,h),this.JSC$18488_responseStore.put(K,new _.OW(n)));G=(new AI).JSC$14175_getStoreKey(G);q=_.C(q,DtI);Y=y=p=E=n=K=void 0;A=((K=q)==null?0:(n=K.responseContext)==null?0:n.maxAgeSeconds)&&Number((E=q)==null?void 0:(p=E.responseContext)==null?void 0:p.maxAgeSeconds)>0?Number((y=q)==null?void 0:(Y=y.responseContext)==null?void 0:Y.maxAgeSeconds):600;G&&A>0&&(q=Hx(q,A),this.JSC$18488_responseStore.put(G,
new _.OW(q)))}}};
YKI[dP]=[_.ta];var Wvw=function(M,q){this.innertubeTransportService=M;this.JSC$18491_commandHandler=q};
Wvw.prototype.submitForm=function(M,q,G,K,n){var E=this,p,y,Y,A,v,h;return _.L(function(t){if(t.nextAddress==1)return p={submitId:M,formData:q,submitBehavior:G,params:K},y=_.m4($4x),t.yield(_.e6(E.innertubeTransportService,p,y,n),2);Y=t.yieldResult;if(!Y)return t.return(Promise.reject(new _.bj("Submit API returned an undefined response. Submit ID: "+M)));A=Y;(h=(v=A)==null?void 0:v.onResponseReceived)&&E.JSC$18491_commandHandler.resolveCommand(h);return t.return(A)})};
Wvw[dP]=[_.YU,_.vR];var IW=function(){this.scheduler=_.AM()},Au5;
IW.prototype.pause=function(){throw Error("kj");};
IW.prototype.resume=function(){throw Error("kj");};
IW.prototype.queue=function(M){var q=this,G=_.u8(),K=_.Jp(this.scheduler,function(){try{var n;if(_.$A.instance)var E=_.$A.instance;else{var p=new _.bj("Error: Unexpected uninitialized CommandHandler.");_.T6(p);E=void 0}(n=E)==null||n.resolveCommand(M.command);G.resolve()}catch(y){G.reject(y)}});
G.promise.thenCatch(function(n){n instanceof _.l_&&q.scheduler.cancelJob(K)});
return G.promise};
IW.prototype.queueAll=function(M){var q=new Map;M=_.k(M);for(var G=M.next();!G.done;G=M.next())G=G.value,q.set(G.id,this.queue(G));return q};var vag=function(M,q){var G=this;this.taskModel=M;this.onTaskCancelledCallback=q;this.resolver=_.u8();M=M.proto.prefetchConfig;if(!M)throw Error("lj");if(!M.prefetchAction)throw Error("mj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(K){K instanceof _.l_&&(dyM(G,G.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),G.onTaskCancelledCallback(G.taskModel.id,G.jobId),G.tick("pcc"));
throw K;});
this.timerName=this.taskModel.id;_.aJ(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)};
vag.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 dyM=function(M,q){_.t2({prefetchInfo:{cancellationReason:q}},M.timerName)};
vag.prototype.tick=function(M){_.oJ(M,void 0,this.timerName)};var ur=function(){var M=this;this.scheduler=_.AM();this.maxInflightTasks=_.tL("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.tL("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new Yzx;this.onTaskCancelled=function(q,G){G&&M.scheduler.cancelJob(G);hkg(M,q);Dr(M,3)}},tA8=function(){ur.instance||(ur.instance=new ur);
return ur.instance};
ur.prototype.pause=function(){this.prefetchCoordinatorState=0};
ur.prototype.resume=function(){Dr(this,0)};
ur.prototype.queue=function(M){M=OSL(this,M);Dr(this,1);return M};
ur.prototype.queueAll=function(M){var q=new Map;M=_.k(M);for(var G=M.next();!G.done;G=M.next())G=G.value,q.set(G.id,OSL(this,G));Dr(this,1);return q};
var OSL=function(M,q){var G=M.allPrefetchTasks.get(q.id);if(G)return G.cancellablePromise;try{var K=new vag(q,M.onTaskCancelled)}catch(E){return _.Aj(E)}G=K;G.tick("pcq");var n={prefetchInfo:{taskId:G.taskModel.id,isPrefetch:!0,fetchAction:G.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:G.taskModel.command.clickTrackingParams}};G.taskModel.csn&&(n.clientScreenNonce=G.taskModel.csn);_.t2(n,G.timerName);M.allPrefetchTasks.set(q.id,K);M.drainingHeap.insert(-K.getPriority(),K);return K.cancellablePromise},
Dr=function(M,q){M.prefetchCoordinatorState===q&&(M.prefetchCoordinatorState=2,wXw(M))},wXw=function(M){for(var q={};M.prefetchCoordinatorState!==0;q={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(M.inflightPrefetchTasks.size>=M.maxInflightTasks){M.prefetchCoordinatorState=3;break}q.prefetchTask$jscomp$1=M.drainingHeap.remove();if(!q.prefetchTask$jscomp$1){M.prefetchCoordinatorState=1;break}q.taskId$jscomp$3=q.prefetchTask$jscomp$1.taskModel.id;if(M.allPrefetchTasks.has(q.taskId$jscomp$3)){var G=-1;M.coordinatorTimeoutMs>0&&(G=_.Jp(M.scheduler,function(K){return function(){JW(M,K.taskId$jscomp$3,Error("nj"))}}(q),M.coordinatorTimeoutMs));
M.inflightPrefetchTasks.set(q.taskId$jscomp$3,G);if(!M.JSC$18508_commandHandler){if(!_.$A.instance){JW(M,q.taskId$jscomp$3,Error("oj"));continue}M.JSC$18508_commandHandler=_.$A.instance}a:switch(q.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":G=1;break a;default:G=0}q.prefetchTask$jscomp$1.jobId=M.scheduler.addJob(function(K){return function(){K.prefetchTask$jscomp$1.tick("pcr");try{M.JSC$18508_commandHandler.resolveCommand(K.prefetchTask$jscomp$1.taskModel.command)||
JW(M,K.taskId$jscomp$3,Error("pj"))}catch(n){JW(M,K.taskId$jscomp$3,n)}}}(q),G,0)}}},CII=function(M,q){(q=hkg(M,q))!=null&&(q.resolver.resolve(),q.tick("pce"));
Dr(M,3)},JW=function(M,q,G){(q=hkg(M,q,G))!=null&&(q.resolver.reject(G),q.tick("pcc"),dyM(q,"CANCELLATION_REASON_ERROR"),Math.random()<=_.tL("prefetch_coordinator_error_logging_sampling_rate")&&(G=new _.bj("Prefetch Command failed.",q.taskModel.id,G.message),_.T6(G)));
Dr(M,3)},hkg=function(M,q,G){var K=M.allPrefetchTasks.get(q);
K?((G=M.inflightPrefetchTasks.get(q))&&G!==-1&&M.scheduler.cancelJob(G),M.inflightPrefetchTasks.delete(q),M.allPrefetchTasks.delete(q)):_.j1(new _.bj("Unexpected missing prefetch task when deleting task.",q,G==null?void 0:G.message));return K};var aGU=function(M,q,G,K,n){this.id=M;this.triggerOn=q;this.cancelOn=G;this.command=K;this.proto=n};
_.Yd.Object.defineProperties(aGU.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var oan=function(){this.JSC$18513_prefetchCoordinator=tA8();Au5||(Au5=new IW);this.defaultCoordinator=Au5},lGL;
oan.getInstance=function(){lGL||(lGL=new oan);return lGL};
oan.prototype.get=function(M){switch(M){case 0:return this.JSC$18513_prefetchCoordinator;default:return this.defaultCoordinator}};var Zr=function(){this.coordinatorSupplier=oan.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},iSE=function(M){var q=_.Cx()||void 0,G=Object.keys(XXv)[0];
if(G){var K=M.taskIdByTriggerId.get(G);if(K!=null){M.taskIdByTriggerId.delete(G);G=[];K=_.k(K);for(var n=K.next();!n.done;n=K.next())if(n=M.tasks.get(n.value))q!=="UNDEFINED_CSN"&&(n.csn=q),G.push(n);G=pki(G);q=[];G=_.k(G);for(K=G.next();!K.done;K=G.next()){n=_.k(K.value);K=n.next().value;n=n.next().value;K=M.coordinatorSupplier.get(K).queueAll(n);K=_.k(K);var E=K.next();for(n={};!E.done;n={taskId$jscomp$9:void 0},E=K.next()){var p=_.k(E.value);E=p.next().value;p=p.next().value;n.taskId$jscomp$9=
E;E=p;q.push(n.taskId$jscomp$9);M.queuedPromisesByTask.set(n.taskId$jscomp$9,_.l2(E,function(y){return function(){PI8(M,y.taskId$jscomp$9)}}(n)))}}}}else _.j1(new _.bj("Unexpected malformed TriggerEvent."))};
Zr.prototype.trigger=function(M,q){var G=this,K=this.tasks.get(M);if(!K||this.queuedPromisesByTask.has(M))return!1;cuP(this,M,K.triggerOn);q!=="UNDEFINED_CSN"&&(K.csn=q);q=this.coordinatorSupplier.get(K.taskType).queue(K);this.queuedPromisesByTask.set(M,_.l2(q,function(){PI8(G,M)}));
return!0};
Zr.prototype.cancel=function(M){var q=this.queuedPromisesByTask.get(M);if(q)q.cancel();else return PI8(this,M)};
var PI8=function(M,q){M.queuedPromisesByTask.delete(q);var G=M.tasks.get(q);if(!G)return!1;M.tasks.delete(q);cuP(M,q,G.triggerOn);(G=kA$(G.cancelOn))&&(M=M.taskIdByCancelId.get(G))&&M.delete(q);return!0},cuP=function(M,q,G){(G=Object.keys(G)[0])&&(M=M.taskIdByTriggerId.get(G))&&M.delete(q)};var XXv={taskRegistered:{}},br=function(){Zr.instance||(Zr.instance=new Zr);this.JSC$18522_taskManager=Zr.instance};
_.l(br,F0);
br.prototype.resolveCommand=function(M){var q=this,G,K;return _.L(function(n){G=_.C(M,HiM);if((K=G)==null||!K.tasks){var E=new _.bj("RegisterTasksCommand is missing tasks.");_.T6(E);return n.return()}E=q.JSC$18522_taskManager;for(var p=_.k(G.tasks),y=p.next();!y.done;y=p.next())if(y=y.value,y=y.id&&y.triggerOn&&y.cancelOn&&y.command?new aGU(y.id,y.triggerOn,y.cancelOn,y.command,y):void 0,y){var Y=Object.keys(y.triggerOn)[0];if(Y){var A=kA$(y.cancelOn);A?(E.tasks.set(y.id,y),E.taskIdByTriggerId.has(Y)||E.taskIdByTriggerId.set(Y,
new Set),E.taskIdByTriggerId.get(Y).add(y.id),E.taskIdByCancelId.has(A)||E.taskIdByCancelId.set(A,new Set),E.taskIdByCancelId.get(A).add(y.id)):_.j1(new _.bj("Unexpected malformed cancelOn field."))}else _.j1(new _.bj("Unexpected malformed triggerOn field."))}else _.j1(new _.bj("Unexpected malformed Task proto."));iSE(q.JSC$18522_taskManager);_.gL(n)})};var gag={},BcU=(gag.rendered={priority:_.w("web_adaptive_early_init")?8:0,callback:function(){var M={};M.numCpu=navigator.hardwareConcurrency;var q={};q.ramGb=_.Kj.navigator.deviceMemory;var G={staticContext:{}};q.ramGb&&way(q.ramGb)&&(G.staticContext.memoryTotalKbytes=(q.ramGb*1048576).toString());M.numCpu&&way(M.numCpu)&&(G.staticContext.cpuCores=M.numCpu);if(_.w("web_enable_adaptive_appl_signal")){M={};q=tNY();q=q.length>0?q[0]:void 0;var K,n=(K=_.P8("rses_dpj"))!=null?K:q==null?void 0:q.tick.rses_dpj,
E;K=(E=_.P8("rsef_dpj"))!=null?E:q==null?void 0:q.tick.rsef_dpj;n&&Number(n)>0&&K&&Number(K)>0&&(E=Math.ceil(Number(K)-Number(n)),E>0&&(M.loadLatency=E));M.loadLatency&&way(M.loadLatency)&&(G.appL=M.loadLatency.toString())}_.ml("applicationStarted",G);CLD=G;_.w("web_adaptive_repeat_ase")&&window.addEventListener("state-navigateend",anD)}},gag);var QEL=new _.$k("WINDOW_ON_ERROR"),IGL=new _.$k("ERROR_WEIGHT_MAPS"),DyE=new _.$k("INIT_ERROR");var uDP={},JuP=(uDP.initialized={priority:10,callback:function(M){M.injector.resolve(DyE)()}},uDP);var ZSs=function(){},bS5=function(){var M=_.sx("meta_logger_impl");
M||(M=new ZSs,_.Y5("meta_logger_impl",M));return M},Uys=function(){bS5().csiSubscriptionKey=Ure("meta_logging_csi_event",function(M){var q=M.timerName;
if(M=M.timelineData){_.aJ(q,{startTime:M.startTime},q);M.infos&&_.t2(M.infos,q);for(var G=_.k(Object.keys(M.ticks)),K=G.next();!K.done;K=G.next())K=K.value,_.oJ(K,M.ticks[K],q)}})};
ZSs.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&mrY(this.csiSubscriptionKey)};var xy8={},zkR=(xy8.initialized={priority:10,callback:function(){Uys()}},xy8);var myw=function(M,q){this.innertubeClientName=M;this.JSC$18533_prefCookie=q};
myw.prototype.record=function(){if(_.w("web_li_record_binary_eval_tick")){var M=_.P8("rsef_dpj");var q=_.P8("rses_dpj");M=M!==void 0&&q!==void 0?Math.round(M-q):void 0;if(M!==void 0&&M>0){q=_.d2(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var G=this.poolSize;if(!(q.valuesSeen>=1E9)){if(q.valuesSample.length<G)q.valuesSample.push(M);else{var K=Math.floor(Math.random()*(q.valuesSeen+1));K<G&&(q.valuesSample[K]=M)}q.valuesSeen+=1}_.AK(this.storagePrefix+"-"+this.innertubeClientName,
q,2592E3);M=q.valuesSample;q=ySi(M);M=M.length<this.poolSize?void 0:q<400?1:q<1700?2:3;M!==void 0&&(this.JSC$18533_prefCookie.set(this.cookiePrefix+this.innertubeClientName,M),this.JSC$18533_prefCookie.save())}}else _.vE(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$18533_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$18533_prefCookie.save()};
myw[dP]=[jx,cQ];var SK8=function(){myw.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.l(SK8,myw);var TcE=new _.$k("PAGE_LOAD_TIME_TOKEN");var ruM=function(M){this.signal=M;this.disableLoggingAndSendPayload=this.disableLoggingAndSendPayloadUnbound.bind(this);this.loggingEnabled=!0;this.ids=new Set;M.addEventListener("abort",this.disableLoggingAndSendPayload);this.jobId=_.Jp(_.r8,this.disableLoggingAndSendPayload,1E4)};
ruM.prototype.disableLoggingAndSendPayloadUnbound=function(){this.loggingEnabled&&(this.loggingEnabled=!1,_.r8.cancelJob(this.jobId),this.signal.removeEventListener("abort",this.disableLoggingAndSendPayload),jEn(this))};
var jEn=function(M){var q=_.wt();if(q){var G={webClientComponentsData:{components:Array.from(M.ids,function(K){return{id:K}})}};
M.ids.clear();_.nl().visualElementStateChanged(q,G)}};var VA5=_.Oq({a11y:_.Dj$});_.RkI=_.wk(VA5)(VA5.a11y,{ephemeralActionSelector:function(M){return M.ephemeralAction||null}});var fG5=_.Oq({continuation:_.ZMB});var FvP=_.wk(fG5)(fG5.continuation,{continuationCommandSelector:function(M){return M.continuationCommand}});var HS8=new _.$k("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var U$=function(M,q){this.JSC$18562_storeWithEntities=M;this.JSC$18562_commandHandler=q;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
U$.prototype.start=function(){this.JSC$18562_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
U$.prototype.observeDownloadingEntities=function(){var M=_.U5y(this.JSC$18562_storeWithEntities.getState().entities).map(function(K){return x5$(K)});
if(M.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var q={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:$0F()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.rj(_.Ge("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$18562_commandHandler.resolveCommand(q)}this.downloadingEntities=M}else if(this.downloadingEntities.length){var G=bVD(this.JSC$18562_storeWithEntities.getState().entities).map(function(K){return x5$(K)});
this.downloadingEntities.filter(function(K){return G.includes(K)}).length&&(M={openPopupAction:mHF()},this.JSC$18562_commandHandler.resolveCommand(M));
this.downloadingEntities=[]}};
U$[dP]=[Sb,_.vR];var ekn;_.x4=function(M,q,G,K,n,E,p,y){this.JSC$18565_playerApiPromise=M;this.JSC$18565_commandHandler=q;this.JSC$18565_screenManager=G;this.offlineWebClientEligibility=K;this.JSC$18565_prefStorage=n;this.JSC$18565_actionRouter=E;this.entityTypeMap=p;this.JSC$18565_persistentStorePromiseAccessor=y;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
ekn=function(){var M=_.AL().resolve(_.x4),q;_.L(function(G){if(G.nextAddress==1)return M.downloadFailureListenerBound?G.return():G.yield(M.JSC$18565_playerApiPromise,2);q=G.yieldResult;q.addEventListener("onOfflineOperationFailure",function(K){if(K.failureReason&&K.entityKey&&K.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(K.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var n=_.FI(K.entityKey).entityId;n&&M.JSC$18565_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
n)}else if(_.w("kevlar_woffle")){n=M.JSC$18565_commandHandler;var E=n.resolveCommand;K=K.failureReason;var p=_.Ge("TRANSFER_FAILED",void 0,"Download failed");K==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(p=_.Ge("STORAGE_FULL",void 0,"Storage full"));E.call(n,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.rj(p),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
M.downloadFailureListenerBound=!0;_.gL(G)})};
_.x4.prototype.deleteVideo=function(M,q){var G=this,K,n,E;return _.L(function(p){if(p.nextAddress==1)return p.yield(G.JSC$18565_playerApiPromise,2);K=p.yieldResult;E={offlineLoggingData:{offlineDeleteReason:(n=q)!=null?n:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return p.yield(K.queueOfflineAction(M,G.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",E),0)})};
_.x4.prototype.pauseVideoDownload=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(q.JSC$18565_playerApiPromise,2);G=K.yieldResult;G.pauseVideoDownload(M);_.gL(K)})};
_.x4.prototype.resumeVideoDownload=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(q.JSC$18565_playerApiPromise,2);G=K.yieldResult;return K.yield(G.resumeVideoDownload(M),0)})};
_.x4[dP]=[_.fp,_.vR,_.Q$,HS8,I6,LN,BZ2,wu];var $y5=new _.$k("DOWNLOAD_STATE_STORE_TOKEN");var sYR=function(M,q){this.JSC$18585_persistentStorePromiseAccessor=M;this.store=q;this.upliftCompletionResolver=new _.sp},GLn=function(){var M=_.AL().resolve(M_L),q;
_.L(function(G){switch(G.nextAddress){case 1:if(M.upliftImplPromise)return G.return(M.upliftImplPromise);_.Cv(G,2);M.upliftImplPromise=q9U(M);return G.yield(M.upliftImplPromise,4);case 4:M.upliftCompletionResolver.resolve();_.KF(G,3);break;case 2:throw q=_.i5(G),M.upliftCompletionResolver.reject(q),q;case 3:return G.return(M.upliftImplPromise)}})},q9U=function(M){var q,G,K;
return _.L(function(n){switch(n.nextAddress){case 1:return _.fX("LOGGED_IN")?n.yield(M.JSC$18585_persistentStorePromiseAccessor(),2):n.return();case 2:q=n.yieldResult;if(!q)return _.oJ("vdeur"),n.return();_.oJ("vdeus");_.Cv(n,3);return n.yield(K_g(q),5);case 5:G=n.yieldResult;M.store.dispatch(oyi(G));q.observe(function(E){lIF(M.store,E)});
_.KF(n,4);break;case 3:throw K=_.i5(n),_.oJ("vdeur"),K;case 4:_.oJ("vdeuc"),_.gL(n)}})},K_g=function(M){var q;
return _.L(function(G){if(G.nextAddress==1)return G.yield(vFu(M),2);q=G.yieldResult;return G.return(q.reduce(function(K,n){if(!n.data||!n.key||!n.entityType)return K;K[n.entityType]||(K[n.entityType]={});K[n.entityType][n.key]=n.data;return K},{}))})};
sYR[dP]=[wu,_.xy];var M_L;M_L=new _.$k("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.zv=new _.$k("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var mC=function(M,q){this.JSC$18588_persistentStorePromiseAccessor=M;this.transportService=q};
mC.prototype.refresh=function(){var M=this,q,G,K,n;return _.L(function(E){if(E.nextAddress==1)return _.fX("LOGGED_IN")?E.yield(M.JSC$18588_persistentStorePromiseAccessor(),2):E.return();if(E.nextAddress!=3)return(q=E.yieldResult)?E.yield(RQw(q),3):E.return();if((G=E.yieldResult)&&!(Number(G.data.refreshTimestampMs||0)<(0,_.d8)()))return E.return();K={browseId:"SPaccount_downloads"};n=_.m4(IU);_.e6(M.transportService,K,n).then(function(p){var y;if(q&&(p==null?void 0:(y=p.responseContext)==null?void 0:
y.maxAgeSeconds)!==0){var Y;y=(p==null?void 0:(Y=p.responseContext)==null?void 0:Y.maxAgeSeconds)||604800;Y=String(Math.floor((0,_.d8)())+y*1E3);q.put("service:downloads_settings:fallback",new _.OW({innertubeResponse:p,refreshTimestampMs:Y}))}});
_.gL(E)})};
mC[dP]=[_.Q4,_.YU];var SZ=function(M,q){this.JSC$18592_playerPromise=M;this.store=q;this.started=!1};
SZ.prototype.start=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return M.started?G.return():G.yield(M.JSC$18592_playerPromise,2);q=G.yieldResult;q.addEventListener("onOrchestrationBecameLeader",M.updateIsLeader.bind(M,!0));q.addEventListener("onOrchestrationLostLeader",M.updateIsLeader.bind(M,!1));if(q.isOrchestrationLeader)M.updateIsLeader(q.isOrchestrationLeader());else{var K=new _.bj("Function isOrchestrationLeader is undefined",{"player.isReady":q.isReady(),"player.playVideo":q.playVideo?
"defined":"undefined"});_.T6(K);M.updateIsLeader(!1)}M.started=!0;_.gL(G)})};
SZ.prototype.updateIsLeader=function(M){this.store.dispatch(_.RJ({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:M}}))};
SZ[dP]=[_.fp,_.xy];var n_I=function(M,q){this.networkStatusManager=M;this.JSC$18595_prefStoragePromise=q;this.redirectsToPreload=["https://youtube.com"]},E_R=function(){var M=_.AL().resolve(n_I),q,G,K,n,E,p;
_.L(function(y){switch(y.nextAddress){case 1:return y.yield(M.JSC$18595_prefStoragePromise,2);case 2:q=y.yieldResult;if(!(G=q)){y.jumpTo(3);break}return y.yield(q.get("yt-redirect-prefetch-id"),4);case 4:G=y.yieldResult;case 3:if(G||!M.networkStatusManager.isNetworkAvailable())return y.return();K={cache:"reload",redirect:"manual"};n=_.k(M.redirectsToPreload);E=n.next();case 5:if(E.done){if(!q){y.jumpTo(0);break}return y.yield(q.set("yt-redirect-prefetch-id",!0,86400),0)}p=E.value;_.Cv(y,8);return y.yield(_.Kj.fetch(p,
K),10);case 10:_.KF(y,6);break;case 8:_.i5(y);case 6:E=n.next(),y.jumpTo(5)}})};var NYg=function(M){this.JSC$18601_pageManager=M};
NYg[dP]=[_.md];var kL8=new _.$k("PAGE_CONTENT_EXTRACTOR_TOKEN");var Tv=function(M){M?(this.container=M,this.containerWasInjected=!0):this.containerWasInjected=!1};
Tv.prototype.openDialog=function(M,q,G){var K=this,n;return _.L(function(E){(n=K.container)==null||n.openDialog(M,q,G);_.gL(E)})};
Tv.prototype.closeDialog=function(){var M=this,q;return _.L(function(G){(q=M.container)==null||q.closeDialog();_.gL(G)})};
Tv.prototype.isDialogOpen=function(){var M=this,q,G;return _.L(function(K){return K.return((G=(q=M.container)==null?void 0:q.isDialogOpen())!=null?G:!1)})};
Tv[dP]=[_.WR(VYS)];_.pmv=new _.$k("POPUP_CONTROLLER_TOKEN");var yeE=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
yeE.prototype.registerPanel=function(M,q){if(M){this.panelMap.set(M,q);var G=this.pendingPanelResolvers.get(M);G&&(G.resolve(q),this.pendingPanelResolvers.delete(M))}};
yeE.prototype.getPanel=function(M){var q=this,G;return _.L(function(K){return(G=q.panelMap.get(M))?K.return(G):K.return(L_M(q,M))})};
var L_M=function(M,q){var G,K;return _.L(function(n){if(G=M.pendingPanelResolvers.get(q))return n.return(G.promise);K=new _.sp;M.pendingPanelResolvers.set(q,K);return n.return(K.promise)})},Y95=function(M,q){yeE.call(this);
var G=this;this.popupController=M;this.persistentPanelController=q;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return G.panelMap.size}}};
_.l(Y95,yeE);_.N=Y95.prototype;_.N.getReloadContinuation=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(q.getPanel(M),2);G=K.yieldResult;return K.return(G.getReloadContinuation())})};
_.N.showPanel=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t,O;return _.L(function(a){if(a.nextAddress==1){G=M;K=G.identifier;n=G.panelContents;E=G.config;p=G.extras;y=G.panelUpdatableFields;Y=G.updatePanelContinuationData;A=M.target;Y&&q.updatePanelContinuationDatas.set(K,Y);if((v=E)==null?0:(h=v.engagementPanelPopupPresentationConfig)==null?0:h.popupType)if(t=E.engagementPanelPopupPresentationConfig.popupType,A===void 0&&(A=document.body),t==="PANEL_POPUP_TYPE_PERSISTENT_SIDE_PANEL"){if(!q.persistentPanelController)return _.j1(new _.bj("Persistent panel controller is not available.")),
a.return();var g=q.persistentPanelController;g.persistentPanelIdentifiers.has(K)||(g.persistentPanelWrapper.appendChild(g.engagementPanelElement({panelIdentifier:K},{isPersistentPanel:!0,hideDelayMs:500})),g.persistentPanelIdentifiers.add(K));a:switch(_.gx.currentPageSubTypeSelector(g.store.getState())){case "watch":var D="WATCH";break a;default:D="APP"}_.W_8(g,D);g.store.dispatch(uBd(!0))}else{if(t==="PANEL_POPUP_TYPE_DIALOG"||t==="PANEL_POPUP_TYPE_DROPDOWN"){g=a.return;D=q.popupController;var J=
D.openPopup;a:switch(t){case "PANEL_POPUP_TYPE_DIALOG":var Z="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":Z="DROPDOWN";break a;default:throw Error("rj`"+t);}return g.call(a,J.call(D,K,n,Z,A))}_.j1(new _.bj("Popup type "+t+" not supported in PanelController."))}return a.yield(q.getPanel(K),2)}O=a.yieldResult;(n||y)&&O.updatePanel(n,!1,p,y);O.showPanel(p);_.gL(a)})};
_.N.hidePanel=function(M){var q=this,G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return G=M,K=G.identifier,p.yield(q.getPanel(K),2);n=p.yieldResult;n.hidePanel();q.popupController.closePopup(K);(E=q.persistentPanelController)!=null&&E.persistentPanelIdentifiers.has(K)&&E.store.dispatch(uBd(!1));_.gL(p)})};
_.N.isVisible=function(M,q){var G=this,K;return _.L(function(n){if(n.nextAddress==1)return q&&!G.panelMap.has(M)?n.return(!1):n.yield(G.getPanel(M),2);K=n.yieldResult;return n.return(K.isVisible())})};
_.N.updatePanel=function(M){var q=this,G,K,n,E,p,y,Y,A;return _.L(function(v){if(v.nextAddress==1){G=M;K=G.identifier;n=G.panelContents;E=G.shouldFocus===void 0?!1:G.shouldFocus;p=G.extras;y=G.panelUpdatableFields;Y=G.updatePanelContinuationData;if(!n&&!y)return v.return();Y&&q.updatePanelContinuationDatas.set(K,Y);_.w("enable_ai_companion")&&K==="PAai_companion"&&_.pL.remove("youchat_messages_section");return v.yield(q.getPanel(K),2)}A=v.yieldResult;A.updatePanel(n,E,p,y);n&&_.w("enable_ai_companion")&&
q.registerPanelContent(K,n);_.gL(v)})};
_.N.registerPanelContent=function(M,q){M&&this.panelContentMap.set(M,q)};
_.N.unregisterPanelContent=function(M){this.panelContentMap.delete(M)};
_.N.getPanelContent=function(M){return this.panelContentMap.get(M)};
_.N.getUpdatePanelContinuationData=function(M){return this.updatePanelContinuationDatas.get(M)};
Y95[dP]=[_.pmv,_.WR(_.UW)];var rf=function(M,q){this.innertubeTransportService=M;this.JSC$18620_screenManager=q},Aen=function(M){var q;
return!((q=M.panelLoadingStrategy)==null||!q.requestTemplate)};
rf.prototype.makeRequest=function(M){var q=this,G,K;return _.L(function(n){switch(n.nextAddress){case 1:if(!Aen(q)){n.jumpTo(2);break}_.Cv(n,3);return n.yield(_.Dt(q.innertubeTransportService,M),5);case 5:return G=n.yieldResult,G?n.return(G.content):(_.T6(Error("sj")),n.return(void 0));case 3:K=_.i5(n),_.T6(K);case 2:return n.return(void 0)}})};
rf.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
rf.prototype.execute=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h;return _.L(function(t){if(t.nextAddress==1){G=M;K=G.data;n=G.fallbackVe;E=G.parentVe;p=G.createScreenConfig;y=G.renderFn;Y=G.command;q.panelLoadingStrategy=K;var O,a,g=((O=q.panelLoadingStrategy)==null?0:O.screenVe)?(a=q.panelLoadingStrategy)==null?void 0:a.screenVe:n;g&&_.aQ(q.JSC$18620_screenManager,g,E,p);return(A=q.getContent())?t.yield(y(A),2):t.jumpTo(2)}return t.nextAddress!=4?Aen(q)?t.yield(q.makeRequest(Y),4):t.return():(h=v=
t.yieldResult)?t.yield(y(h),0):t.return()})};
rf[dP]=[_.YU,_.Q$];var dTP;dTP=function(M,q){this.engagementPanelElement=M;this.store=q;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%"};
_.W_8=function(M,q){var G=M.persistentPanelContainerMap.get(q);G?G.contains(M.persistentPanelWrapper)||(M=M.persistentPanelWrapper,_.zE=!0,_.mY.set(M,!0),G.insertBefore(M,null),_.mY.delete(M),_.zE=!1):_.j1(new _.bj("Persistent panel container not found for surface "+q+"."))};
dTP[dP]=[Rcd,_.xy];var jZ=function(){};
jZ.prototype.getContainer=function(){return _.m3()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
jZ.prototype.openSheet=function(M,q){var G=this,K,n,E,p,y,Y;return _.L(function(A){switch(A.nextAddress){case 1:return K={stack:[],error:void 0,hasError:!1},_.Cv(A,2,3),n=NT,A.yield(G.isSheetOpen(),5);case 5:E=A.yieldResult;y4$(K,CFy(n));if(E){if(_.w("web_close_sheet_if_same_target_killswitch")&&q&&G.currentTarget===q)return(p=G.getContainer())==null||p.closeSheet(),A.return();G.pendingData={data:M,target:HvU(G,q)};return A.return()}M.viewModel&&(M={viewModel:M.viewModel,sheetPosition:M.sheetPosition});
(y=G.getContainer())==null||y.openSheet(M,q);G.currentTarget=q;case 3:_.oS(A);Lyd(K);_.Xr(A,0);break;case 2:Y=_.i5(A),K.error=Y,K.hasError=!0,A.jumpTo(3)}})};
jZ.prototype.closeSheet=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return G.yield((q=M.getContainer())==null?void 0:q.closeSheet(),2);if(G.nextAddress!=4)return M.currentTarget=void 0,M.pendingData?G.yield(M.openSheet(M.pendingData.data,M.pendingData.target),4):G.jumpTo(0);M.pendingData=void 0;_.gL(G)})};
jZ.prototype.isSheetOpen=function(){var M=this,q,G;return _.L(function(K){return K.return((G=(q=M.getContainer())==null?void 0:q.isSheetOpen())!=null?G:!1)})};
var HvU=function(M,q){if(!_.w("web_parent_target_for_sheets"))return q;var G,K;return(K=(G=M.getContainer())==null?void 0:G.getParentTarget(q))!=null?K:q};var RU=window.documentPictureInPicture;var cSs=_.DQ(["dark"]),gFF=_.DQ(["system-icons"]),B3H=_.DQ(["typography"]),QXy=_.DQ(["lang"]),ILD=_.DQ(["style"]),lLi=_.DQ(["dir"]),XkF=_.DQ(["rounded-container"]),P$y=_.DQ(["style"]),uOs=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],V4=function(M){this.JSC$18637_clientRoot=M;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
V4.prototype.openWindow=function(M){var q=this,G,K;return _.L(function(n){switch(n.nextAddress){case 1:if(!window.documentPictureInPicture||!_.g$()||q.currentPipWindow)return n.return(!1);_.Cv(n,2);return n.yield((K=RU?RU:null)==null?void 0:K.requestWindow(M),4);case 4:G=n.yieldResult;_.KF(n,3);break;case 2:return _.i5(n),n.return(!1);case 3:if(!G)return n.return(!1);G.addEventListener("pagehide",function(){v_U(q)});
G.addEventListener("resize",q.handlePipWindowResize);DVD(G);Z2e(G);dYu(G);return n.yield(oFy(G),5);case 5:if(!wkj())return n.return(!1);q.currentPipWindow=G;q.JSC$18637_eventForwarder=JS$(G,q.JSC$18637_clientRoot);q.pipWindowResizeDelay=new _.dh(function(){q.currentPipWindow&&_.VW(q.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.cc(q.currentPipWindow.innerWidth,q.currentPipWindow.innerHeight)])},G);
q.pipWindowResizeDelay.start();return n.return(!0)}})};
V4.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var v_U=function(M){if(M.currentPipWindow){var q,G;(q=RU?RU:null)==null||(G=q.window)==null||G.close();M.currentPipWindow.removeEventListener("resize",M.handlePipWindowResize);var K;(K=M.pipWindowResizeDelay)==null||K.dispose();M.pipWindowResizeDelay=void 0;var n;(n=M.JSC$18637_eventForwarder)==null||n.stop();M.JSC$18637_eventForwarder=void 0;q=_.k(M.onCloseCallbacks);for(G=q.next();!G.done;G=q.next())G=G.value,G();M.onCloseCallbacks=[];M.currentPipWindow=null}};
V4.prototype.getWindow=function(){return this.currentPipWindow};
var hB5=function(M,q){var G;(G=M.onCloseCallbacks)==null||G.push(q)};
V4.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.g$()};
_.Yd.Object.defineProperties(V4.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
V4[dP]=[yyS];var t_v=new _.$k("PICTURE_IN_PICTURE_CONTROLLER");var b24=function(M,q){this.lengthY=this.lengthX=0;this.lengthX=q.x-M.x;this.lengthY=q.y-M.y};var OWn=function(){},EP8=function(M,q){var G;
(G=M.headerElement)==null||G.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:q}))};var wmw=function(){};
wmw.prototype.openPopup=function(M,q,G,K){var n=this,E;return _.L(function(p){if(!n.container)return p.return();E={openPopupAction:{popup:q,popupType:G,uniqueId:M}};return p.return(n.container.handleOpenPopupAction(E,K))})};
wmw.prototype.closePopup=function(M){this.container&&this.container.closePopup(M)};var CQ8=function(){this.openTunnels=new Map},PL$=function(M,q,G){if(T3i(G)){var K=_.eA(G,"gclid");
G={handleEvent:function(y){q&&!q.closed&&typeof q.postMessage==="function"&&y&&y.origin&&y.source===q&&y.data&&y.data.action==="gcl_setup"&&q.postMessage(Object.assign({},{action:"gcl_transfer"},K&&{gclid:K},{gadSource:2}),y.origin)}};
for(var n=_.k(M.openTunnels),E=n.next();!E.done;E=n.next()){var p=_.k(E.value);E=p.next().value;p=p.next().value;if(E.closed)try{window.removeEventListener("message",p),M.openTunnels.delete(E)}catch(y){_.T6(y)}}q&&M.openTunnels.size<15&&(M.openTunnels.set(q,G),window.addEventListener("message",G))}};var aPE=function(){this.clientParams=new Map},mME=function(M){for(var q=_.k(M.clientParams.keys()),G=q.next();!G.done;G=q.next())G=G.value,G.startsWith("yt-mini-app-share")&&M.clientParams.delete(G)};var o_v=function(M,q){_.uI.call(this);var G=this;this.shortsController=M;this.storeWithShorts=q;M=_.IQ(this.storeWithShorts,_.HZi,function(K){if(K){var n,E=(n=G.shortsController.getRoot())==null?void 0:n.getPlayer(),p;(n=(p=G.shortsController.alternativePlayerContainerElement)==null?void 0:p.getPlayerContainer())&&(E==null||E.appendTo(n))}else{var y;p=(y=G.shortsController.alternativePlayerContainerElement)==null?void 0:y.getPlayerContainer().querySelector("#player");n=G.shortsController.activeIndex;
(y=(E=G.shortsController.getRoot())==null?void 0:E.querySelector('ytd-reel-video-renderer[id="'+n+'"] #player-container'))&&(p==null||p.appendTo(y,void 0,!0))}});
this.addOnDisposeCallback(M)};
_.l(o_v,_.uI);var RW=function(M,q,G,K){var n=this;this.storeWithShorts=M;this.ephemeralResponseStore=q;this.innertubeTransportService=G;this.innertubeTransportLoader=K;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.pp(_.TS);this.isShortsPipActive=_.pp(_.rx);this.nextReelVe=_.$m(56921);this.prevReelVe=_.$m(56922);this.backButtonVe=_.$m(22156);this.TEST_ONLY={getActiveModules:function(){return n.activeModules}}},lP8=function(M){M.unsubscribeFromStore=
_.IQ(M.storeWithShorts,_.Fny,function(q){M.initOrDisposeActiveModules(q);
!q&&M.storeWithShorts.getState().shorts.isFullscreen&&(_.SP(document.documentElement),M.storeWithShorts.dispatch(_.bM9(!1)))});
M.initOrDisposeActiveModules(_.Fny(M.storeWithShorts.getState()))},fJR,FK8,Xmn;
RW.prototype.initOrDisposeActiveModules=function(M){M?this.activeModules.push(new o_v(this,this.storeWithShorts)):(_.yq(this.activeModules),this.activeModules.length=0)};
RW.prototype.registerRootElement=function(M){this.rootElement=M;lP8(this)};
RW.prototype.getRoot=function(){return this.rootElement};
RW.prototype.setActiveIndex=function(M){this.activeIndex=M};
_.TqI=function(M,q){var G,K,n,E,p,y,Y;return _.L(function(A){switch(A.nextAddress){case 1:return G=new MF,(K=G.JSC$14175_getStoreKey(q))&&M.ephemeralResponseStore.has(K)?A.yield(M.ephemeralResponseStore.get(K),7):A.yield(Xmn(M,q),4);case 4:n=A.yieldResult;if(!K){A.jumpTo(3);break}E=Hx(n,3600);return A.yield(M.ephemeralResponseStore.put(K,new _.OW(E)),3);case 7:n=(p=A.yieldResult)==null?void 0:_.zh(p);case 3:return((y=n)==null?0:y.replacementEndpoint)&&(Y=_.C(n.replacementEndpoint,_.p_))&&n.sequenceContinuation&&
(Y.sequenceParams=n.sequenceContinuation),A.return(n)}})};
fJR=function(M,q){q=(new qF).JSC$14175_getStoreKey(q);return!!q&&M.ephemeralResponseStore.has(q)};
FK8=function(M,q,G){var K,n,E,p,y;_.L(function(Y){if(Y.nextAddress==1){K=new qF;n=K.JSC$14175_getStoreKey(q);if(!n)return Y.return();if(G.reelWatchSequenceResponse)return E=Hx(G.reelWatchSequenceResponse,3600),M.ephemeralResponseStore.put(n,new _.OW(E)),Y.jumpTo(0);if(!M.ephemeralResponseStore.has(n))return Y.jumpTo(0);y=G;return Y.yield(M.ephemeralResponseStore.get(n),4)}y.reelWatchSequenceResponse=(p=Y.yieldResult)==null?void 0:_.zh(p);_.gL(Y)})};
Xmn=function(M,q){var G=G===void 0?{}:G;var K,n,E;return _.L(function(p){switch(p.nextAddress){case 1:if(M.innertubeTransportService){K=M.innertubeTransportService;p.jumpTo(2);break}if(!M.innertubeTransportLoader){_.eK(Error("uj"));p.jumpTo(2);break}return p.yield(M.innertubeTransportLoader(),4);case 4:K=p.yieldResult;case 2:return p.yield((n=K)==null?void 0:_.Dt(n,q,G),5);case 5:return E=p.yieldResult,p.return(E)}})};
_.Yd.Object.defineProperties(RW.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
RW[dP]=[Z8U,_.ta,_.WR(_.YU),_.WR(hi9)];_.PQw=new _.$k("STORAGE_MANAGER_TOKEN");var nQe=["touchmove","scroll"];var iW5=!1;var FeH=!1;var KJH={onSpanEnd:function(M){M.parentId==null&&(iW5||(RAy(),setInterval(RAy,6E5),iW5=!0),H2$(M,"web_tracing_action"))}};var EQu=URL.createObjectURL;var NyF=console.log,Gne=_.w("web_shorts_enable_tracing");var ces=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},g_v;
ces.prototype.enqueue=function(M,q){q===1?this.currentPersistentToast=M:this.queue.push(M);this.openToast()};
ces.prototype.openToast=function(){var M;(M=this.currentToast)!=null&&M.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.fm=new _.$k("TOAST_MANAGER_TOKEN");var BYM=new _.$k("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");var QYw=new _.$k("VIEW_TRANSITION_COORDINATOR_TOKEN");var IPg=function(M){this.config=M;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;M=_.k(M.transitionConfigs);for(var q=M.next();!q.done;q=M.next())q=_.k(q.value).next().value,this.transitionTasksMap.set(q,[])};
IPg.prototype.registerElement=function(M,q,G){G=G===void 0?!1:G;for(var K=_.k(Object.keys(q)),n=K.next(),E={};!n.done;E={viewTransitionName:void 0},n=K.next()){n=n.value;E.viewTransitionName=q[n];var p=this.elementTasksMap.get(M),y=void 0;if((y=p)==null?0:y.has(n)){_.rM(new _.bj("Element already registered for transition",M.tagName,n));break}p=p||new Map;p.set(n,{beforeTransition:function(Y){return function(){M.style.viewTransitionName=Y.viewTransitionName}}(E),
afterTransition:function(){M.style.viewTransitionName&&(M.style.viewTransitionName="")},
runOnce:G});this.elementTasksMap.set(M,p)}};
_.lh=function(M,q){var G=M.elementTasksMap.get(q);G&&(G.clear(),G.size===0&&M.elementTasksMap.delete(q))};
IPg[dP]=[BYM];var uSn=_.U(function(M){var q=_.pI("yt-expandable-metadata-header-view-model"),G=_.sq(function(K){if(!_.t$(_.h$(K),q.value,["A".toString(),"BUTTON".toString()])){var n;(n=M.expandedCallback)==null||n.call(M,!1)}});
return _.W("yt-expandable-metadata-header-view-model",{el:q,class:"ytExpandableMetadataHeaderViewModelHost"},_.W(_.d,{cond:function(){return M.expanded()},
then:function(){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":G},_.W("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.W(_.d,{cond:function(){return M.data().expandedTitleImage},
then:function(K){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.W(_.Jj,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:K}))}}),_.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.W("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.W(_.Ft,{text:function(){return M.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.W(_.Ft,{text:function(){return M.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.W(_.Ft,{text:function(){return M.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.W("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.W(_.yu,{data:function(){return M.data().infoButton}},{buttonViewModel:_.Wf}),_.W(_.yu,{data:function(){return M.data().collapseButton}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
onClick:function(){var n;(n=M.expandedCallback)==null||n.call(M,!1)}})}})))},
else:function(){return _.W(DTg,Object.assign({},M))}}))},"jg"),JeU=_.U(function(M){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.W(_.d,{cond:function(){return M.data().collapsedLabelImage},
then:function(q){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.W(_.Jj,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:q,alt:""}))}}),_.W(_.Ft,{text:function(){return M.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"kg"),DTg=_.U(function(M){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.sq(function(){var q;return void((q=M.expandedCallback)==null?void 0:q.call(M,!0))})},_.W("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.W(_.d,{cond:function(){return M.data().collapsedImage},
then:function(q){return _.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.W(_.Jj,{height:20,preserveHeight:!0,preserveWidth:!0,data:q,alt:""}))}}),_.W(_.d,{cond:function(){return M.data().showLeadingCollapsedLabel},
then:function(){return _.W(JeU,Object.assign({},M))}}),_.W("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.W(_.Ft,{text:function(){return M.data().collapsedTitle}}))),_.W("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.W(_.d,{cond:function(){return!M.data().showLeadingCollapsedLabel},
then:function(){return _.W(JeU,Object.assign({},M))}}),_.W(_.yu,{data:function(){return M.data().infoButton}},{buttonViewModel:_.Wf}),_.W(_.yu,{data:function(){return M.data().expandButton}},{buttonViewModel:function(q){return _.W(_.Wf,{data:q.data,
onClick:function(){var G;(G=M.expandedCallback)==null||G.call(M,!0)}})}})))},"lg");_.ZW5=_.U(function(M){var q=_.k(_.GM(function(){return M.data().initiallyExpanded})),G=q.next().value,K=q.next().value,n,E=(n=_.AL().resolve(_.WR(_.Qx)))==null?void 0:n(),p=function(){var y=M.data().colorData;
if(y)return E?y==null?void 0:y.darkColorPalette:y==null?void 0:y.lightColorPalette};
return _.W("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Kp({"background-color":function(){var y=p();return(y==null?0:y.section2Color)?_.C_(y.section2Color):""}})},_.W(_.yu,{data:function(){return M.data().header}},{expandableMetadataHeaderViewModel:function(y){return _.W(uSn,{data:y.data,
expanded:function(){return!!G()},
expandedCallback:function(Y){K(Y)}})}}),_.W(_.d,{cond:function(){return G()},
then:function(){return _.W("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.W(_.yu,{data:function(){return M.data().expandedContent}},{horizontalShelfViewModel:function(y){return _.W(_.Rd,{data:y.data,
includeMargin:!0,forceNarrowLayout:!0,palette:p})},
videoSummaryContentViewModel:function(y){return _.W(ril,{data:y.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(y){return _.W(_.wp,{data:y.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(y){return _.W(_.evP,{data:y.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.W(_.yu,{data:function(){return M.data().expandedBottomButtons}},{buttonViewModel:function(y){return _.W("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.W(_.Wf,{data:y.data}))}}))}}))},"mg");var bWI=_.U(function(M){var q=M.text;var G=M.marqueeSpacing;var K=M.scrollDelay;var n=M.scrollDuration;var E=M.enableMarqueeScroll;M=M.large;var p=_.k(_.lQ(!1,void 0,"WyNYFf")),y=p.next().value,Y=p.next().value,A=_.k(_.lQ(0,void 0,"OoTdhe"));p=A.next().value;var v=A.next().value,h=_.pI("marquee-scroll");A=_.pI("div");var t=_.pI("span"),O=_.AL().resolve(_.Dg);_.zL(function(){if(E()){var D=t.value.getBoundingClientRect().width,J=h.value.getBoundingClientRect().width;if(D>J){var Z=(O==="ltr"?-1:1)*(D+
(G?G():16));Promise.resolve().then(function(){Y(!0);v(Z)})}}},"dv0Anf");
var a={},g={};return _.W("marquee-scroll",{class:_.Hb("ytMarqueeScrollHost",(a.ytMarqueeScrollHostLarge=M,a)),el:h},_.W("div",{id:"marquee-scroll-inner-container",class:_.Hb("ytMarqueeScrollInnerContainer",(g.ytMarqueeScrollAnimationEnabled=function(){return y()},g)),
el:A,style:_.Kp({gap:G?(0,_.kn)(G):"16px","animation-duration":n?rAl(n):"16s","animation-delay":K?rAl(K):"3s","--marquee-translate":(0,_.kn)(p)})},_.W("span",{el:t,dir:"auto"},_.W(_.Ft,{text:q,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.W(_.d,{cond:y,then:function(){return _.W("span",{"aria-hidden":"true",dir:"auto"},_.W(_.Ft,{text:q,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"og");_.UTL=_.U(function(M){var q=M.data;var G=M.overlayDensity;M=_.sq(function(){q().onTapCommand&&_.Pb(q().onTapCommand);return!1});
var K=_.TDF(),n=function(){return(G==null?void 0:G())===1?22:16},E={};
return _.W("reel-sound-metadata-view-model",{class:_.Hb("ytReelSoundMetadataViewModelHost",(E.ytReelSoundMetadataViewModelHostLarge=function(){return(G==null?void 0:G())===1},E)),
"on:click":M,tabindex:0,role:"button","on:keydown":K},_.W("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.W(_.d,{cond:function(){return q().musicIcon},
then:function(p){return _.W(_.Jj,{data:p,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:n})}}),_.W("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.W(bWI,{text:function(){return q().soundMetadata},
enableMarqueeScroll:function(){return!!q().enableMarqueeScroll},
large:function(){return(G==null?void 0:G())===1}}))))},"pg");var xTw,zBn,FV,re5,V_g,TYE,F_R,fPw;xTw=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];zBn=_.tL("wil_icon_max_concurrent_fetches",Infinity);
FV=function(M,q,G){var K=this;this.iconSet=M;this.appDirection=q;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.Kj.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.w("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.w("wil_icon_network_first");this.renderWhenIdle=_.w("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.w("wil_icon_load_immediately");this.isPurging=!1;M=function(){K.cacheStorageAvailable&&(K.cacheStorageAsync=_.Kj.caches.open("yt-icons").then(function(E){return K.cacheStorageSync=E}).catch(function(){K.cacheStorageAvailable=!1}))};
G=(G==null?void 0:G())||{};G=_.k(Object.entries(G));for(q=G.next();!q.done;q=G.next()){var n=_.k(q.value);q=n.next().value;n=n.next().value;n=gU(n);mT8(n);this.iconCache[q]=n.cloneNode(!0)}this.isPurging=S9s(this);this.isPurging instanceof Promise?this.isPurging.then(M):M()};
_.zh4=function(M,q){var G=M.resolveIcon(q);return G?M.renderingMode===1?TYE(M,G,M.renderingMode):(q=M.iconCache[G.url])?(q=q.cloneNode(!0),re5(M,q),TYE(M,G,M.renderingMode,q)):_.jYU(M,G).then(function(K){var n=K?0:1;re5(M,K);return TYE(M,G,n,K)}):(_.rM(new _.bj("Icon not found",{iconShape:q})),function(){})};
re5=function(M,q){if(q){M.counter+=1;M="_yt"+M.counter;q=[q].concat(_.Ui(q.getElementsByTagName("*")));q=_.k(q);for(var G=q.next();!G.done;G=q.next())if(G=G.value,G.tagName==="style"&&G.textContent)G.textContent=V_g(G.textContent,M,!0);else for(var K=_.k(G.attributes),n=K.next();!n.done;n=K.next()){n=n.value;n.name==="id"&&(n.value+=M);["mask","fill","clip-path"].includes(n.name)&&(n.value=V_g(n.value,M));if(n.name==="style"){var E=G.style;try{E.cssText=V_g(E.cssText,M,!0)}catch(v){var p=void 0,y=
void 0,Y=void 0,A=void 0;Hw({error:((p=v)==null?void 0:(Y=(y=p).toString)==null?void 0:Y.call(y))||"",el:G.outerHTML,style:!!E,cssText:(A=E)==null?void 0:A.cssText})}}n.name==="xlink:href"&&(n.value=n.value.replace(/#(.*)/,"#$1"+M))}}};
V_g=function(M,q,G){var K=/url\(["']?#(.*?)["']?\)/;(G===void 0?0:G)&&(K=/url\(["']?#(.*?)["']?\)/g);return M.replace(K,"url(#$1"+q+")")};
TYE=function(M,q,G,K){return function(n,E){var p;var y=Object.assign({},{iconWidth:q.size+"px",iconHeight:q.size+"px",iconDisplay:"block"},E,{iconColor:(p=E==null?void 0:E.iconColor)!=null?p:"currentcolor"});p=_.iI("DIV");E=y.iconColor;var Y=y.iconFilter;y="width: "+y.iconWidth+"; height: "+y.iconHeight+"; display: "+y.iconDisplay+";";Y&&(y+=" filter: "+Y+";");G===0&&(y+=" fill: "+E+";");G===1&&(Y=q.url,y+=" -webkit-mask: url("+Y+") no-repeat center / cover; mask: url("+(Y+") no-repeat center / cover; background-color: ")+
E);q.allowMirroring&&M.appDirection==="rtl"&&(y+=" transform: scale(-1, 1); transform-origin: center center;");p.setAttribute("style",y);G===0&&K&&p.appendChild(K);n.appendChild(p)}};
_.jYU=function(M,q){var G,K,n;return _.L(function(E){G=function(p){return Ht(p)};
K=q.url;if(!RBs(K))throw Error("wj");n=fPw(M,K);return E.return(n.then(function(p){return p.clone().text()}).then(function(p){var y=G(p);
p=q.size;var Y=_.iI("DIV");_.NX(Y,y);y=_.cX(Y.firstElementChild!==void 0?Y.firstElementChild:_.vPB(Y.firstChild,!0));p=mT8(y,p);M.iconCache[K]=p.cloneNode(!0);delete M.responsePromises[K];return p}).catch(function(){}))})};
F_R=function(M){var q,G=(q=M.requestAninmationFrameResolver)==null?void 0:q.promise;G||(M.requestAninmationFrameResolver=new _.sp,G=M.requestAninmationFrameResolver.promise,_.Kj.requestAnimationFrame(function(){var K;(K=M.requestAninmationFrameResolver)==null||K.resolve();M.requestAninmationFrameResolver=null}));
return G};
fPw=function(M,q){var G,K;return _.L(function(n){if(n.nextAddress==1)return M.waitForAnimationFrame?n.yield(F_R(M),2):n.jumpTo(2);G=M.responsePromises[q];G||(K=function(){var E,p,y;return _.L(function(Y){switch(Y.nextAddress){case 1:if(!M.cacheStorageAvailable){E=void 0;Y.jumpTo(2);break}if(p=M.cacheStorageSync){Y.jumpTo(3);break}return Y.yield(M.cacheStorageAsync,4);case 4:p=Y.yieldResult;case 3:E=p;case 2:return y=E,M.isNetworkFirstStrategy?Y.return(M.fetchAndUpdateCache(q,y).catch(M.getCacheStorageResponse.bind(M,
q,y))):Y.return(M.getCacheStorageResponse(q,y).catch(M.fetchAndUpdateCache.bind(M,q,y)))}})},G=M.renderWhenIdle?new Promise(function(E,p){_.Jp(_.r8,function(){K().then(E).catch(p)},10)}):K(),M.responsePromises[q]=G);
return n.return(G.catch(function(E){delete M.responsePromises[q];Hw({error:(E==null?0:E.toString)?E.toString():"",url:q});throw E;}))})};
FV.prototype.fetchAndUpdateCache=function(M,q){var G=this;return _.L(function(K){return K.return(HWn(G,M).then(function(n){eBn(G,M,n,q);return n}))})};
var HWn=function(M,q){var G;return _.L(function(K){if(M.numFetches<zBn)return M.numFetches+=1,K.return($Ts(M,q).finally(function(){--M.numFetches;if(Object.keys(M.queuedResponseResolvers).length){var n=Object.keys(M.queuedResponseResolvers)[0],E=M.queuedResponseResolvers[n];delete M.queuedResponseResolvers[n];E.resolve(HWn(M,n))}}));
G=new _.sp;M.queuedResponseResolvers[q]=G;return K.return(G.promise)})},$Ts=function(M,q,G){G=G===void 0?2:G;
var K;return _.L(function(n){K={credentials:"same-origin",priority:"low"};return n.return(_.Kj.fetch(q,K).then(function(E){return E.ok?E:Promise.reject(Error("xj`"+E.status+"`"+E.statusText))}).catch(function(E){if(G>0)return $Ts(M,q,G-1);
throw E;}))})},eBn=function(M,q,G,K){_.L(function(n){return K?n.return(new Promise(function(E){_.Jp(_.r8,function(){var p,y;
return _.L(function(Y){switch(Y.nextAddress){case 1:if(!M.isNetworkFirstStrategy){p=void 0;Y.jumpTo(2);break}return Y.yield(K.match(q).catch(function(){}),3);
case 3:p=Y.yieldResult;case 2:if(y=p){Y.jumpTo(4);break}return Y.yield(K.put(q,G.clone()).catch(function(A){Hw({error:(A==null?0:A.toString)?A.toString():"",url:q})}),4);
case 4:E(),_.gL(Y)}})},50)})):n.return()})};
FV.prototype.getCacheStorageResponse=function(M,q){return _.L(function(G){return q?G.return(q.match(M).then(function(K){return K&&K.ok?K:Promise.reject()})):G.return(Promise.reject())})};
var mT8=function(M,q){q===void 0||M.getAttribute("viewBox")||M.setAttribute("viewBox","0 0 "+q+" "+q);M.setAttribute("focusable","false");M.setAttribute("aria-hidden","true");try{M.style.pointerEvents="none",M.style.display="inherit",M.style.width="100%",M.style.height="100%"}catch(n){var G;Hw({error:((G=n)==null?0:G.toString)?n.toString():""});try{M.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(E){var K;Hw({error:((K=E)==null?0:K.toString)?E.toString():
""})}}return M},RBs=function(M){for(var q=_.k(xTw),G=q.next();!G.done;G=q.next())if(M.startsWith(G.value)&&M.endsWith(".svg"))return!0;
return!1};
FV.prototype.resolveIcon=function(M){return this.iconSet.resolveIcon(M)};
var Hw=function(M){_.j1(new _.bj("Error in IconManager",M))},S9s=function(M){if(_.w("wil_icons_cache_purge_killswitch"))return!1;
try{var q=_.Kj.localStorage}catch(E){return!1}if(!q||!M.cacheStorageAvailable)return!1;var G=function(E){try{var p;(p=q)==null||p.setItem("yt-icons-last-purged",E.toString())}catch(Y){var y;Hw({error:((y=Y)==null?0:y.toString)?Y.toString():""})}},K=Number(q.getItem("yt-icons-last-purged"));
if(!K)return K=new Date,K=K.setDate(K.getDate()-Math.floor(Math.random()*90+1)),G(K),!1;if(function(E,p){E=new Date(E);p=new Date(p);return p.getMonth()-E.getMonth()+12*(p.getFullYear()-E.getFullYear())}(K,Date.now())<3)return!1;
try{return _.Kj.caches.delete("yt-icons").then(function(E){E&&G(Date.now());return E}).catch(function(){return!1}).finally(function(){M.isPurging=!1})}catch(E){var n;
Hw({error:((n=E)==null?0:n.toString)?E.toString():""});return!1}};
FV[dP]=[XDM,_.Dg,_.WR(cxw)];_.eZ=function(M,q){this.iconManager=M;this.iconsToFetch=q};
_.eZ[dP]=[_.eo,_.WR(ivU)];var s98=function(){};var MKI=function(M,q,G){this.requestKey=M;this.sU5=q;this.fy9=G;this.oZn=function(){return new XMLHttpRequest};
this.lP4=void 0;this.lxK=[]};
MKI.prototype.getLatestChallengeResponse=function(){return this.fy9};
var ODS=function(M,q,G){var K,n,E,p;return _.L(function(y){if(y.nextAddress==1){_.aJ("attestation_challenge_fetch");_.oJ("att_fs",void 0,"attestation_challenge_fetch");if(!M.lP4)throw new _.PT(9,"Missing fetcher");return y.yield(M.lP4(q,G),2)}K=y.yieldResult;E=(n=K)==null?void 0:n.bgChallenge;if(!E)throw new _.PT(15,"Missing field");M.fy9=K;M.lxK.forEach(function(Y){Y(K)});
p=TvH(E);_.oJ("att_fc",void 0,"attestation_challenge_fetch");Ol("attestation_challenge_fetch");return y.return(p)})},mzl=function(M,q){var G,K,n,E,p;
return _.L(function(y){switch(y.nextAddress){case 1:G=new OK(100,3E5,.25,2),K=void 0;case 2:if(!(G.currBackoffCount_<10)){y.jumpTo(4);break}_.Cv(y,5);if(!(G.currBackoffCount_>0)){y.jumpTo(7);break}return y.yield(pK$(G.getValue()),7);case 7:return y.yield(qb8(M,q),9);case 9:return n=y.yieldResult,y.return(n);case 5:E=_.i5(y);E instanceof _.PT?K=E:(p=E instanceof Error?E.message:"Unknown",K=new _.PT(9,p));g_2(G);y.jumpTo(2);break;case 4:if(K)throw K;throw new _.PT(9,"Unknown error");}})},qb8=function(M,
q){q=kc2(pRP(new NP$,q),M.requestKey);
var G=new _.sp,K=M.oZn();K.open("POST",M.sU5);K.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");K.setRequestHeader("Content-Type","application/json+protobuf");K.onload=function(){if(_.nps(K)){var n=hol(K.responseText);G.resolve(n)}else G.reject(new _.PT(_.yLF(_.au(K)),K.statusText))};
K.onerror=function(){G.reject(new _.PT(_.yLF(_.au(K)),K.statusText))};
K.send(q.serialize());return G.promise};var KTM=function(M){this.networkStatusManager=M;this.isDownloaded=f0u===void 0?function(){return!1}:f0u;
this.isReady=!1;this.x0I=G_w(this)},G_w=function(M){var q;
return _.L(function(G){if(G.nextAddress==1)return G.yield(TUw(),2);if(G.nextAddress!=3)return q=G.yieldResult,G.yield(IGM(q),3);M.cq=G.yieldResult;LJu(M.cq).then(function(){M.isReady=!0});
return G.return(M.cq)})},n2L=function(M,q,G){M.cq?(M=M.cq.h5L({m2:G,
tvW:!0,bpy:!0}),q.serviceIntegrityDimensions={poToken:M}):_.T6(Error("zj"))};
KTM.prototype.processContext=function(M){var q=this;if(!M.input.match(_.m4(JJ8)))return _.Ej();var G=M.innerTubeRequest,K=G.videoId;return!K||this.isDownloaded(G)||this.networkStatusManager&&!this.cq&&!this.networkStatusManager.isNetworkAvailable()?_.Ej():this.cq?this.isReady?(n2L(this,G,K),_.Ej()):new nN(LJu(this.cq).then(function(){n2L(q,G,K)})):new nN(this.x0I.then(function(n){return _.L(function(E){if(E.nextAddress==1)return E.yield(LJu(n),2);
n2L(q,G,K);_.gL(E)})}))};var E2R=new _.$k("WEB_PO_CONTEXT_PROCESSOR");var NUR=function(M,q){var G=this;this.puy=0;var K;this.qZv=(K=q==null?void 0:q.qZv)!=null?K:window;this.networkStatusManagerPromise=q==null?void 0:q.networkStatusManagerPromise;var n;this.requestKey=(n=q==null?void 0:q.requestKey)!=null?n:_.wP("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var E;this.r3X=(E=q==null?void 0:q.r3X)!=null?E:function(Y){return new DO(Y)};
var p;K=(p=q==null?void 0:q.muI)!=null?p:function(Y,A,v){return new MKI(Y,A,v)};
this.bgChallenge=TvH(M.bgChallenge);this.ttlSeconds=rkY(B3(M.challenge||""));this.cb=K(this.requestKey,_.w("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.Kj.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",M);this.iw5=q==null?void 0:q.iw5;yFy(this.cb);var y;this.bVA=(y=q==null?void 0:q.bVA)!=null?y:function(Y){_.Yj(G.qZv.document,"visibilitychange",
function(){G.qZv.document.visibilityState==="visible"&&Y()})}},pMP=function(M){if(!M.vm){var q={maxAttempts:5,
rBg:M.ttlSeconds*1E3};YIF(M.qZv);M.vm=M.r3X({cb:M.cb,urL:{disable:_.w("html5_web_po_disable_remote_logging"),cW:"aGIf",zkN:sJi("html5_web_po_experiment_ids"),oJA:_.w("wpo_dis_lfdms")?0:1E3,uZD:function(K){var n=bUJ.get(K);n||(n=new ZU9(K),n=new lI(n),bUJ.set(K,n));return n}},
lkH:q,vF5:M.bgChallenge,tsl:WJy});M.puy=Date.now();ALI(M.vm,function(){M.puy=Date.now()});
Ry4(M.vm,function(){return _.L(function(K){return K.return(k_E(M))})});
var G=M.dcG.bind(M);M.networkStatusManagerPromise&&M.ttlSeconds>0&&M.networkStatusManagerPromise.then(function(K){K.listen("publicytnetworkstatus-online",G)});
M.bVA(G)}};
NUR.prototype.dcG=function(){if(Date.now()>this.puy+this.ttlSeconds*1E3){var M;(M=this.vm)==null||W89(M)}};
var k_E=function(M){if(M.wL9)return M.wL9;if(!M.vm)throw Error("Aj");M.wL9=new b2({vm:M.vm,cb:M.cb,r8P:!0,onError:WJy,lkH:M.iw5});return M.wL9},dL4=function(M,q){M=new NUR(M,q);
pMP(M);(q==null?0:q.cgn)||k_E(M)};var y3w=_.RkI.ephemeralActionSelector,$4=function(M,q){this.store=M;this.queue=[];q==null||q.addEventListener("yt-navigate-start",this.reset.bind(this))};
$4.prototype.enqueue=function(M){var q=M.command,G=M.durationMs,K=M.elementToFocus;var n=M.label;var E=M.elementToFocus;M.command?n=_.Ge("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:n,shortcut:_.Ge("SHIFT_PLUS_ENTER")}):E&&(M=n+". "+_.Ge("SHIFT_PLUS_ENTER")+" for more information.",n=_.Ge("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:n,shortcut:_.Ge("SHIFT_PLUS_ENTER")},M));G={announcement:n,durationMs:G!=null?G:8E3};q?G.command=q:K&&(K.classList.add("ephemeral-action-focusable-element"),G.selector=K.tagName+
".ephemeral-action-focusable-element");this.queue.push(G);LTs(this)};
$4.prototype.activate=function(M){var q=y3w(this.store.getState());if(q){if(q==null?0:q.command)_.oM(q.command),this.store.dispatch(Is9(null));if(q==null?0:q.selector)q=document.querySelector(q.selector),_.juy(q);M.preventDefault()}};
var LTs=function(M){if(!y3w(M.store.getState())&&M.queue.length){var q=M.queue.shift();q&&(M.previousAnnouncement===q.announcement&&(q.announcement+="\u00a0"),M.store.dispatch(Is9(q)),M.previousAnnouncement=q.announcement,M.timeoutId=setTimeout(function(){if(q.selector){var G;(G=document.querySelector(q.selector))==null||G.classList.remove("ephemeral-action-focusable-element")}M.store.dispatch(Is9(null));LTs(M)},q.durationMs))}};
$4.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(Is9(null));this.queue.length=0;this.timeoutId=void 0};
$4[dP]=[_.xy,_.WR(_.oq)];_.sJ=new _.$k("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var Ybg=new _.$k("AUTH_SERVICE_TOKEN");var tzj=_.DQ(["about:blank"]),hrs;var WTv=new _.$k("API_IFRAME_TOKEN"),A3I=new _.$k("FETCH_FN_TOKEN"),d$5=new _.$k("WINDOW_REQUEST_TOKEN"),v28=new _.$k("TEXT_DECODER_TOKEN");var w2$;w2$=new _.$k("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.hyE=new _.$k("MISC_UI_SHARED_FLAGS_TOKEN");var tKw=function(){};
tKw.prototype.getFlag=function(M){if(M.configType!==2)throw Error("Bj");return OXg(M)};
var OXg=function(M){switch(M.flagType){case "bool":return _.w(M.flagName);case "int":return _.bS(_.tL(M.flagName));case "double":return _.tL(M.flagName);case "string":return _.wP(M.flagName);case "int32_list":return sJi(M.flagName);case "int64_list":return sJi(M.flagName).map(function(q){return _.bS(q)});
case "string_list":return _.CD(M.flagName);default:throw Error("Cj");}};var M2=function(M,q,G){q=q===void 0?{}:q;DD.call(this,G===void 0?"uninitialized":G);this.env=M;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}];q.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=q.shouldWaitOnAsyncImmediate)};
_.l(M2,DD);M2.prototype.init=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return q.processPluginOptions.shouldWaitOnAsyncImmediate?K.yield(M(q.env),2):(M(q.env),K.jumpTo(2));if(K.nextAddress!=4)return q.jobSet?K.yield(q.jobSet.completedResolver.promise,4):K.jumpTo(4);G=_.M5();G.parkOrScheduleJob(function(){q.transition("rendering")},10,"ci");
_.gL(K)})};
M2.prototype.initialRender=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return q.processPluginOptions.shouldWaitOnAsyncImmediate?K.yield(M(q.env),2):(M(q.env),K.jumpTo(2));if(K.nextAddress!=4)return q.jobSet?K.yield(q.jobSet.completedResolver.promise,4):K.jumpTo(4);G=_.M5();G.parkOrScheduleJob(function(){q.transition("rendered")},10,"cr");
_.gL(K)})};
M2.prototype.afterRenderImmediate=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return q.processPluginOptions.shouldWaitOnAsyncImmediate?K.yield(M(q.env),2):(M(q.env),K.jumpTo(2));if(K.nextAddress!=4)return q.jobSet?K.yield(q.jobSet.completedResolver.promise,4):K.jumpTo(4);G=_.M5();G.parkOrScheduleJob(function(){q.transition("after-render-deferred")},10,"carml");
_.gL(K)})};
M2.prototype.afterRenderDeferred=function(M){var q=this;return _.L(function(G){M(q.env);_.gL(G)})};_.Vz("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var wM5={},CfU=(wM5.rendered={priority:0,callback:function(M){stS(M.injector.resolve(Zb))}},wM5);var dU$=new _.$k("SERVICE_PARAMS_RESPONSE_PROCESSOR_TOKEN"),akw=new _.$k("SERVICE_PARAMS_CONFIG_CALLBACK_TOKEN");var o2I=function(M){this.callbackFnMap=M;this.configMap={}};
o2I.prototype.handleResponse=function(M){var q;if(M=(q=M.responseContext)==null?void 0:q.serviceTrackingParams)for(q=_.k(M),M=q.next();!M.done;M=q.next()){M=M.value;var G=M.params,K=M.service;if(G&&K){this.configMap[K]||(this.configMap[K]=new E4l);M=this.configMap[K];var n=void 0,E=(n=this.callbackFnMap)==null?void 0:n[K];G=_.k(G);for(K=G.next();!K.done;K=G.next())n=K.value,K=n.key,n=n.value,K&&n&&(M.set(K,n),E&&E(K,n))}}};
o2I.prototype.getConfig=function(M){return this.configMap[M]||void 0};
o2I[dP]=[_.WR(akw)];var lkg=!1,gQe=0,XKs=null,cFy=null;var XME=new _.$k("NETWORK_SLI_TOKEN");var Pfg=function(M){this.networkSli=M};
Pfg.prototype.fetch=function(M,q,G){var K=this,n;return _.L(function(E){n=iX5(K,M,q);return E.return(fetch(n).then(function(p){return K.handleResponse(p,G)}).catch(function(p){_.j1(p);
if((G==null?0:G.expectJsonStrict)&&p instanceof hI&&p.errorType===1)return Promise.reject(p)}))})};
var tZf=function(M,q,G,K){var n,E,p,y,Y,A,v;return _.L(function(h){switch(h.nextAddress){case 1:return n=iX5(M,q,G),_.Cv(h,2),h.yield(fetch(n),4);case 4:E=h.yieldResult;_.KF(h,3);break;case 2:throw _.i5(h),new hI(2,"Failed to parse streaming response",n.url);case 3:if(!E.redirected&&!E.ok)throw(p=M.networkSli)==null||p.failure(),new _.bj("Streaming fetch request not ok",n.url);if(!E.body)throw new _.bj("No response body in streaming response",n.url);y={};if(_.w("web_streaming_fast"))return Y=E.body.getReader(),
h.return(c3v(M,Y,y,K));A=E.body.pipeThrough(new TextDecoderStream).getReader();v=new _.ph;return h.return(g2I(M,A,v,ABF,y,K))}})},iX5=function(M,q,G){if(M.networkSli){var K=_.ij(_.zt(q,"key"))||"/UNKNOWN_PATH";
M.networkSli.start(K)}M=G;_.w("wug_networking_gzip_request")&&(M=YTw(G));return new window.Request(q,M)},c3v=function(M,q,G,K){var n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m,R,se,yY,d$,cy,t4,ay,bH,iH,oI,r9,X2,EM;
return _.L(function(LP){switch(LP.nextAddress){case 1:n=new TextDecoder("utf-8"),E=[],y=p=0,_.Cv(LP,2,3);case 5:return LP.yield(q.read(),8);case 8:Y=LP.yieldResult;A=Y.value;if(v=Y.done){h=0;if(E.length>p)for(h=E[p].length-y,t=p+1;t<E.length;t++)h+=E[t].length;h>0&&(O=By4(E,h,p,y),a=O.indexOf(123),g=O.lastIndexOf(125),a!==-1&&g!==-1&&g>a&&(D=O.subarray(a,g+1),J=JSON.parse(n.decode(D)),ABF(G,J),Z=void 0,(Z=K)==null||Z(G,J)));V=void 0;(V=M.networkSli)==null||V.success();return LP.return(G)}E.push(A);
S=p;for(m=y;S<E.length;)if(R=E[S],se=R.indexOf(10,m),se===-1){if(S===E.length-1)break;S++;m=0}else{yY=S;d$=se+1;cy=0;if(p===yY)cy=d$-y;else{cy=E[p].length-y;for(t4=p+1;t4<yY;t4++)cy+=E[t4].length;cy+=d$}ay=By4(E,cy,p,y,yY,d$);bH=ay.indexOf(123);iH=ay.lastIndexOf(125);if(bH!==-1&&iH!==-1&&iH>bH){oI=ay.subarray(bH,iH+1);try{r9=JSON.parse(n.decode(oI)),ABF(G,r9),X2=void 0,(X2=K)==null||X2(G,r9)}catch(Pv){throw new hI(1,"Failed to parse streaming response object",n.decode(oI));}}p=S;m=y=se+1;y===R.length&&
(p++,y=0,S=p,m=0)}LP.jumpTo(5);break;case 3:_.oS(LP);q.releaseLock();_.Xr(LP,0);break;case 2:EM=_.i5(LP);if(EM instanceof hI)throw EM;throw new hI(1,"Failed to process streaming response");}})},g2I=function(M,q,G,K,n,E){var p,y,Y,A,v,h,t,O,a;
return _.L(function(g){if(g.nextAddress==1)return g.yield(q.read(),2);p=g.yieldResult;y=p.value;if(Y=p.done)return(A=M.networkSli)==null||A.success(),g.return(n);try{v=G.parse(y)}catch(D){throw new hI(1,"Failed to parse streaming response",y);}if(v!=null)for(h=_.k(v),t=h.next();!t.done;t=h.next())O=t.value,K(n,O),a=void 0,(a=E)==null||a(n,O);return g.return(g2I(M,q,G,K,n,E))})};
Pfg.prototype.handleResponse=function(M,q){var G=M.text().then(function(K){if((q==null?0:q.jspbResponseCtor)&&M.ok)return RGw(q.jspbResponseCtor,K);K=K.replace(")]}'","");if((q==null?0:q.expectJsonStrict)&&K)try{var n=JSON.parse(K)}catch(p){throw new hI(1,"JSON parsing failed after fetch");}var E;return(E=n)!=null?E:JSON.parse(K)});
M.redirected||M.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),G=G.then(function(K){_.j1(new _.bj("Error: API fetch failed",M.status,M.url,K));return Object.assign({},K,{errorMetadata:{status:M.status}})}));
return G};
Pfg[dP]=[_.WR(XME)];var BUw=new _.$k("NETWORK_MANAGER_TOKEN");var Q9s=[1,2,4,8,16,30],D$w=function(M){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=M.maxTimeMs;this.maxFrameCount=M.maxFrameCount===void 0?Math.ceil(60*M.maxTimeMs/1E3):M.maxFrameCount;M=_.k(Q9s);for(var q=M.next();!q.done;q=M.next())this.brokenFrameSummarizers.push(new Ikg(q.value/60*1E3))},u1w=function(M){var q=M.frameCountInternal>=M.maxFrameCount;
return M.elapsedTimeMs>=M.maxTimeMs||q};
D$w.prototype.summarize=function(){for(var M=[],q=_.k(this.brokenFrameSummarizers),G=q.next();!G.done;G=q.next())G=G.value,G=G.brokenFrameCount!==0?{severityMs:Math.round(G.targetFrameTimeMs),eventCount:G.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(G.averageDurationBetweenEventsMs)}:void 0,G&&M.push(G);return{summaries:M,monitoringDurationMs:Math.round(this.elapsedTimeMs)}};
_.Yd.Object.defineProperties(D$w.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 Ikg=function(M){this.targetFrameTimeMs=M;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Yd.Object.defineProperties(Ikg.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var J3E=function(){};
J3E.prototype.start=function(M,q){var G=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var K=new D$w({maxTimeMs:M});this.monitor=K;this.lastSummaryInternal=void 0;this.metadataToLog=q;return new Promise(function(n){var E=function(p){if(p===void 0)G.stop(),n(void 0);else if(G.monitor!==K)p=Object.assign({},K.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),n(p);else{var y=G.monitor;if(!u1w(y)){y.frameCountInternal++;if(y.prevTime===
void 0)y.startTime=p;else for(var Y=p-y.prevTime,A=_.k(y.brokenFrameSummarizers),v=A.next();!v.done;v=A.next()){v=v.value;var h=v.currTimeMs;v.currTimeMs+=Y;Y>v.targetFrameTimeMs+2&&(v.brokenFrameCount++,v.timeOfFirstBrokenFrameMs===void 0&&(v.timeOfFirstBrokenFrameMs=h),v.timeOfLastBrokenFrameMs=h)}y.prevTime=p}u1w(G.monitor)?n(G.stop()):_.r8.addJob(E,5,0)}};
_.r8.addJob(E,5,0)})};
J3E.prototype.stop=function(M){if(!this.monitor)return this.lastSummaryInternal;var q=Object.assign({},this.monitor.summarize(),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(q.monitoringDurationMs){M=M!=null?M:this.metadataToLog;var G={droppedFramesSummary:q,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};M&&(G[M.type]=M.data);_.ml("manualSmoothnessMeasurement",G)}this.monitor=void 0;this.lastSummaryInternal=q;this.metadataToLog=void 0;return q};_.ZXv=new _.$k("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var bXn;bXn=function(M){this.JSC$18790_expiringStorage=new xJ(M)};
_.U$R=function(M){if(_.Qsy()&&(M=_.Slu(_.JL()+"::"+M)))return new bXn(M)};
bXn.prototype.set=function(M,q,G){G=G!==void 0?Date.now()+G:void 0;this.JSC$18790_expiringStorage.set(M,q,G)};
bXn.prototype.get=function(M){return this.JSC$18790_expiringStorage.get(M)};
bXn.prototype.remove=function(M){this.JSC$18790_expiringStorage.remove(M)};_.q2=function(){};
_.q2.getInstance=function(){var M=_.sx("ytglobal.storage_");M||(M=new _.q2,_.Y5("ytglobal.storage_",M));return M};
_.q2.prototype.estimate=function(){var M,q,G;return _.L(function(K){M=navigator;return((q=M.storage)==null?0:q.estimate)?K.return(M.storage.estimate()):((G=M.webkitTemporaryStorage)==null?0:G.queryUsageAndQuota)?K.return(IXF()):K.return()})};
_.Y5("ytglobal.storageClass_",_.q2);var xLj=0;var Vzy=!1;var x$I=_.DQ(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),zyU=_.DQ(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var oPI={"/":_.Qa,"/?feature=ytca":_.Qa,"/feed/downloads":_.fVu};var m$5=FvP.continuationCommandSelector,GO=function(M,q,G){this.JSC$18806_upliftPromise=M;this.store=q;this.JSC$18806_persistentStorePromiseAccessor=G};
GO.prototype.shouldPreferLocalResponse=function(M){return M.browseId==="FEdownloads"||M.browseId==="FEsmart_downloads"&&_.w("kevlar_modern_downloads_page")?!0:!1};
GO.prototype.localInnertubeResponse=function(M){var q=this;return _.L(function(G){return M.browseId==="FEdownloads"?_.w("kevlar_modern_downloads_page")?G.return(SbU(q)):G.return(TUR(q)):M.browseId==="FEsmart_downloads"&&_.w("kevlar_modern_downloads_page")?G.return(r3I(q)):G.return(Promise.reject(Error("Ej")))})};
GO.prototype.canProvideFallbackResponse=function(){return!0};
GO.prototype.localFallbackInnertubeResponse=function(M){var q=this,G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:return E.yield(q.JSC$18806_persistentStorePromiseAccessor(),2);case 2:G=E.yieldResult;if(M.browseId!=="SPaccount_downloads"||!G){E.jumpTo(3);break}return E.yield(RQw(G),4);case 4:if(K=E.yieldResult)return E.return(_.zh(K));case 3:return M.browseId==="FEwhat_to_watch"?E.return(j98(q)):(n=_.w("web_offline_continuation_automatic_retry")||_.w("web_offline_continuation_retry_button"))&&
M.continuation?E.return(VKw(q)):E.return(RyE(q))}})};
var j98=function(M){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(M.JSC$18806_upliftPromise,2);q=_.vv4(M.store.getState().entities);return q.length?G.return(fkL(M,q)):G.return(RyE(M))})},TUR=function(M){var q,G;
return _.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$18806_upliftPromise,2);if(K.nextAddress!=3)return q=FTn([{offlineItemSectionRenderer:{}}]),K.yield(HXg(M,q),3);G=K.yieldResult;G.onResponseReceivedActions=[MQ("REFRESH_DOWNLOADS")];return K.return(G)})},SbU=function(M){var q,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D;
return _.L(function(J){if(J.nextAddress==1)return J.yield(M.JSC$18806_upliftPromise,2);if(J.nextAddress!=3)return q=M.store.getState(),G=q.entities,K=_.hn(G),n=_.tn(G),E=_.RCw(q),p=_.VuF(q),y=_.fji(q),Y=_.O3u(G),A=_.y0(K),v=_.OX(G),h=_.ovj(G),t=_.H3y(q),O=_.lc(q),a={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.y8e(K,n,Y,h,E,p,A,v,y,t,O),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},g="",_.w("kevlar_modern_downloads_skip_downloads_title")||
(g=_.Ge("DOWNLOADS",void 0,"Downloads")),J.yield(eyI(M,a,g),3);D=J.yieldResult;D.onResponseReceivedActions=[MQ("REFRESH_DOWNLOADS")];return J.return(D)})},r3I=function(M){var q,G,K,n,E,p,y,Y,A;
return _.L(function(v){if(v.nextAddress==1)return v.yield(M.JSC$18806_upliftPromise,2);if(v.nextAddress!=3)return q=M.store.getState(),G=q.entities,K=_.hn(G),n=_.y0(K),E=_.OX(G),p={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.YRe(K),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},y=_.Ge("SMART_DOWNLOADS",void 0,"Smart downloads"),Y=k7$(n,E),v.yield(eyI(M,p,y,Y),3);A=v.yieldResult;A.onResponseReceivedActions=
[MQ("REFRESH_DOWNLOADS")];return v.return(A)})},RyE=function(M){var q,G;
return _.L(function(K){if(K.nextAddress==1)return K.yield(xn(M.JSC$18806_upliftPromise,M.store),2);q=K.yieldResult;G=FTn([TeF(q)]);return K.return(HXg(M,G))})},VKw=function(M){var q,G,K,n;
return _.L(function(E){if(E.nextAddress==1)return q={},G=m$5(M.store.getState()),_.hj(q,_.XY,G),E.yield(xn(M.JSC$18806_upliftPromise,M.store,q,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);K=E.yieldResult;n={};_.hj(n,_.gHP,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:K}}}],targetId:"browse-feedFEwhat_to_watch"});return E.return({responseContext:{},onResponseReceivedActions:[n]})})},FTn=function(M){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:M}}}}]}}},fkL=function(M,q){var G,K;
return _.L(function(n){var E={contents:qQ(q)};G=E&&E.contents?E:{};_.w("kevlar_modern_downloads_page")&&(G=Object.assign({},_.WDy(q),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));K={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:G}}}]}};return n.return(HXg(M,K))})},HXg=function(M,q){var G,K;
return _.L(function(n){if(n.nextAddress==1)return n.yield(M.JSC$18806_persistentStorePromiseAccessor(),2);if(n.nextAddress!=3)return G=n.yieldResult,n.yield(mG(G),3);K=n.yieldResult;return n.return({responseContext:{},contents:q,topbar:K})})},eyI=function(M,q,G,K){var n,E;
return _.L(function(p){if(p.nextAddress==1)return p.yield(M.JSC$18806_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3)return n=p.yieldResult,p.yield(mG(n),3);E=p.yieldResult;var y=p.return;var Y=G;var A=K;Y=Y===void 0?"":Y;A=A===void 0?"":A;Y={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:Y}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.Ge("SETTINGS",void 0,"Settings"),accessibilityText:_.Ge("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:_.SE("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:A}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:Y};
return y.call(p,{responseContext:{},contents:q,topbar:E,header:{pageHeaderRenderer:Y}})})};var $$g=function(){this.moduleRegistry={};this.fetchCount=0};
$$g.prototype.isFetching=function(){return this.fetchCount>0};
var Xa=function(M,q){M.moduleRegistry[q.toString()]={asyncId:q,isFetching:!1};return M};
$$g.prototype.JSC$18817_loadModules=function(){for(var M=this,q=new Map,G=[],K=_.k(_.rW.apply(0,arguments)),n=K.next();!n.done;n=K.next()){n=n.value;var E=this.moduleRegistry[n];E?E.resolver?q.set(n,E.resolver):(E.resolver=new _.sp,q.set(n,E.resolver),G.push(E.asyncId),E.isFetching=!0):(E=new _.sp,q.set(n,E),E.resolve(void 0))}G.length&&(this.fetchCount+=1,_.l2(_.Su.getMultipleAsync.apply(_.Su,_.Ui(G)).then(function(p){for(var y=0;y<G.length;y++){var Y=p[y],A=M.moduleRegistry[G[y].toString()];A.isFetching=
!1;A.resolver.resolve(Y)}}).catch(function(p){for(var y=_.k(G),Y=y.next();!Y.done;Y=y.next()){Y=Y.value;
var A=M.moduleRegistry[Y.toString()];A.resolver=void 0;A.isFetching=!1;q.get(Y.toString()).reject(p)}}),function(){--M.fetchCount}));
return Promise.all([].concat(_.Ui(q.values())).map(function(p){return p.promise}))};_.Ph=new _.$k("MODULE_REGISTRY_TOKEN");var su8={},MSw=(su8.rendered={priority:0,callback:function(M){a:{var q=void 0;try{var G;b:{if(_.VLu()){var K=_.mgi(_.JL()+"::pom");if(K){var n=new Pz(K);break b}}n=void 0}var E=(G=n)==null?void 0:G.get("role_text");if(!E)break a;q={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:E}]}}}}}}catch(Y){}q&&M.injector.resolve(_.vR).resolveCommand(q)}try{var p=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(p){var y=JSON.parse(p);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
y&&M.injector.resolve(_.vR).resolveCommand(y)}}catch(Y){}}},su8);var qxv,Gc8={},K8L=(Gc8.initialized={priority:10,callback:function(){qxv=YW()}},Gc8.rendering={callback:function(M){var q;
return _.L(function(G){if(G.nextAddress==1)return G.yield(qxv,2);q=G.yieldResult;if(!q.endpoint)throw Error("Gj`"+_.Kj.location.href);vh(M,q);_.gL(G)})}},Gc8);var nJE={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(_.Ui(_.w("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,
weight:500},{messageRegExp:/MutationObserver is not defined/,weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,
weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,
weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,
weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,
weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},
{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,
weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,
weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,
weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,
weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(M){var q=M.stack;if(q.includes("chrome://")||q.includes("chrome-extension://")||M.message.includes("chrome-extension://")||q.includes("moz-extension://")||q.includes("local.adguard.org")||q.includes("auctioneer3.50million.club")||q.includes("youtubedownloader")||
q.includes("youtube_home_page")||q.includes("is_youtube_video_no_longer_available")||q.includes("switchScreenSizeHack")||q.includes("yt_main_big_banner.js")||q.includes("YouTubeCenter.js")||q.includes("/mytube.js")||q.includes("JSON.parseWrapper")||q.includes("/inj_js/common.js")||q.includes("firebug-lite")||q.includes(".repl.co/")||q.includes("linkfix")||q.includes("playAfterAd")||M.message.includes("Access is denied for this document")&&q.includes("<anonymous>")||M.fileName==="user-script"||M.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
q.includes("<anonymous>"))return!0;if(q.includes("https://www.youtube.com"))return!1;M=q.split("\n");if(!M.length)return!1;if(M.length<=3&&q.includes("s.onloadeddata"))return!0;q=0;for(var G=_.k(M),K=G.next();!K.done;K=G.next())K=K.value,(K.includes("https://")||K.includes("http://"))&&q++;return q/M.length>.95},
weight:0},{callback:function(M){return M.message==="Unknown Error"&&M.name.indexOf("NS_")===0},
weight:100},{callback:function(M){if(!_.RH)return!1;var q=M.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||M.message.includes("available to complete this operation"),G=M.stack.includes("webcomponents")&&M.message==="Object doesn't support this action";M=M.message.includes("object that does not implement interface Element");return q||G||M},
weight:0},{callback:function(M){return M.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(M){return M.message==="Operation is not supported"&&(M.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(M){return M.stack.includes("eval code (eval (code:1:1)")||M.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(M){return M.message.includes("Permission denied")&&M.stack.includes("this.domHandler")?!0:M.name.includes("TypeError")&&M.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(M){if(!M.stack)return!1;var q=M.stack.trim().split("\n");q.length&&q[0].endsWith("Error: "+M.message)&&q.shift();q.length&&q[q.length-1].includes("at window.onerror (")&&q.pop();if(!q.length)return!0;if(M.message==="Script error.")return q[0].includes("www.youtube.com")||q.length>=2&&q[0].startsWith("at new")&&q[1].startsWith("at window.onerror");if(M.message==="Unexpected token")return!0;M=_.k(q);for(q=M.next();!q.done;q=M.next())if(q=q.value,!(q.includes("<anonymous>")||
q.startsWith("load@")||q.startsWith("global code@")||q.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(M){return M.message==="Cannot read property 'experiments'"&&M.stack.includes("/s/player/")},
weight:500},{callback:function(M){return M.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(M){return M.stack.includes("/embed.js")?(M.params&&M.params&&(M.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.w("use_error_suppression"))var M=_.R9("SUPPRESS_CLIENT_ERRORS",!1);else{if(M=_.sv)M=/Chrome\/(\d+)/.exec(_.Oe()),M=(M?parseFloat(M[1]):NaN)>=66;M=!(M||_.$W&&_.eh(65)||_.HR&&_.eh(12.1)||yn&&_.eh(79))}return M},
weight:500}]};var EJw={},NPg=(EJw.initialized={priority:10,callback:function(M){M.injector.addProvider({provide:yyS,useValue:M.root});M.injector.addProvider({provide:QEL,useValue:bpu});M.injector.addProvider({provide:IGL,useValue:nJE});var q={};M.injector.addProvider((q.provide=DyE,q.useFactory=function(G,K){return function(){WeF(G,K)}},q[dP]=[QEL,
IGL],q));M.injector.addProvider({provide:l4,useClass:l4})}},EJw);var kcv={},pRn=(kcv.initialized={priority:3,callback:function(){var M;if(M=uIi()){M=M.replace("/",".");var q=_.El();q.set("tz",M);q.save();M=!0}else M=!1;M||(M=_.El(),M.set("utco",-Math.floor((new Date).getTimezoneOffset())),M.save())}},kcv);var yLU={},L8g=(yLU.initialized={priority:10,callback:function(M){M.injector.resolve(l4).start();M=_.Ir();var q=_.fX("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.fX("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.fX("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.fX("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.eb(_.l4Y(),{mainAppWeb:Object.assign({},M,{pageType:q})});_.eb(Pzy(),{mainAppWeb:Object.assign({},M,{pageType:q})});
_.eb(ihy(),{mainAppWeb:M});_.eb(cty(),{mainAppWeb:M});YlM(function(){_.$n(ihy(),"FAILURE");_.$n(cty(),"FAILURE")});
Noy();kfe();Z0e()}},yLU);var Yxw={},W8w=(Yxw.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.oJ("dl"),_.M5().processSignal("pcl");else{var M=function(){_.oJ("dl");_.M5().processSignal("pcl");window.removeEventListener("load",M)};
window.addEventListener("load",M)}}},Yxw);var AL8={},dzE=(AL8.rendering={priority:0,callback:function(){var M=_.M5();M.parkOrScheduleJob(function(){M.processSignal("eocs")},10,"eor",5E3)}},AL8);var vJ8=function(){};
_.l(vJ8,F0);
vJ8.prototype.resolveCommand=function(M,q){var G,K,n,E,p,y,Y,A;return _.L(function(v){n=(G=_.C(M,_.HVS))==null?void 0:(K=G.dialog)==null?void 0:K.commentReplyDialogRenderer;if(!n)throw new _.bj("No dialog in createCommentReplyDialogEndpoint");p=(E=q.form)==null?void 0:E.event;if(!p)throw new _.bj("Event not passed in when resolving command");y=_.k(p.composedPath());for(Y=y.next();!Y.done;Y=y.next())if(A=Y.value,A.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||A.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return A.showReplyDialog(n),v.return();
_.gL(v)})};var GN=function(){};
_.l(GN,F0);GN.prototype.resolveCommand=function(M){var q,G,K;return _.L(function(n){if(n.nextAddress==1)return q=_.C(M,pnS),(G=q)!=null&&G.externalChannelId?n.yield((0,_.qzi)("NSzT5"),2):n.return();K=_.h9g;return n.yield(K(q.externalChannelId),0)})};var Kr=function(M){this.JSC$18835_pageRequestService=M;this.JSC$18835_prefetchCoordinator=tA8()};
_.l(Kr,F0);Kr.prototype.resolveCommand=function(M){var q=this,G,K,n,E;return _.L(function(p){if(p.nextAddress==1){G=_.C(M,Bg9);if((K=G)==null||!K.taskId)throw Error("Hj");n=G.taskId;_.Cv(p,2);return p.yield(_.VXg(q.JSC$18835_pageRequestService,M,{},"").then(function(y){if(!y)throw Error("Ij");},function(y){throw Error("Jj`"+y);
}),4)}if(p.nextAddress!=2)return CII(q.JSC$18835_prefetchCoordinator,n),_.KF(p,0);
E=_.i5(p);JW(q.JSC$18835_prefetchCoordinator,n,E);_.gL(p)})};
Kr[dP]=[_.Ls];var nr=function(M,q){this.innertubeTransportService=M;this.JSC$18839_commandHandler=q};
_.l(nr,F0);nr.prototype.resolveCommand=function(M){var q=this,G,K,n;return _.L(function(E){if(E.nextAddress==1){G=_.C(M,cV9);if(G.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||G.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")K=G.boolValue?2:1,_.Yx.getInstance().setState(K,!0,!0);return E.yield(_.Dt(q.innertubeTransportService,M),2)}n=E.yieldResult;tSg(q,n);_.gL(E)})};
var tSg=function(M,q){q.actions&&q.actions.forEach(function(G){M.JSC$18839_commandHandler.resolveCommand(G)})};
nr[dP]=[_.YU,_.vR];var EJ={},N2=(EJ.addToPlaylistEndpoint=mb(Rh),EJ.addToToastAction=mb(qd),EJ.adsControlFlowOpportunityReceivedCommand=mb(cC),EJ.audioTrackSelectActionCommand=mb(y_),EJ.backgroundAudioPlaybackCommand=mb(Lf),EJ.captionLanguageSelectActionCommand=mb(Yb),EJ.captionPickerEndpoint=mb(WQ),EJ.changeMiniAppPlayStateCommand=mb(fy),EJ.changeTimelyActionVisibilityCommand=mb(Md),EJ.channelCreationFormEndpoint=mb(mB),EJ.clearLocationCommand=mb(VV),EJ.clearUrlParamCommand=mb(FF),EJ.copyLinkCommand=mb(Cf),EJ.copyTextEndpoint=
mb(Ih),EJ.createCommentReplyDialogEndpoint=QQ4(vJ8),EJ.createPlaylistServiceEndpoint=mb(a6),EJ.dismissDialogEndpoint=mb(ex),EJ.dismissPlayerOverlayCommand=mb(AT),EJ.entityUpdateCommand=mb(u6),EJ.feedbackEndpoint=mb(b6),EJ.getAnswerCommand=mb(Nq8),EJ.getPaymentsClientTokenCommand=mb(pQ),EJ.getTranscriptEndpoint=mb(GB),EJ.googlePaymentBillingCommand=mb(yU),EJ.googlePaymentPurchaseManagerCommand=mb(LQ),EJ.hideEngagementPanelEndpoint=mb(sm),EJ.hideSheetCommand=mb(MR),EJ.hideSnackbarCommand=mb(R6),EJ.insertRichSectionCommand=
mb(TJ),EJ.listMutationCommand=mb(ru),EJ.logGtmCommand=mb(Sx),EJ.notifyDropdownOptionSelectedCommand=mb(HC),EJ.openAdAllowlistInstructionCommand=mb(_.gu),EJ.openOnePickAddVideoModalCommand=mb(o6),EJ.persistSubscriptionsDisplayPreferencesCommand=mb(gA),EJ.pingingEndpoint=mb(BC),EJ.playlistEditEndpoint=mb(XC),EJ.playlistVotingRefreshPopupCommand=mb(PQ),EJ.profileCardCommand=mb(i6),EJ.refreshPanelEndpoint=mb(qR),EJ.saveImageToDeviceEndpoint=mb(Dq),EJ.scrollToSectionEndpoint=QQ4(k9E),EJ.seekToVideoTimestampCommand=
mb(dA),EJ.selectCountryCommand=mb(BQ),EJ.setCookieCommand=mb(Q_),EJ.setLocalStorageCommand=mb(FC),EJ.setPrefStorageEntryCommand=mb(D9),EJ.setSettingEndpoint=mb(nr),EJ.sfvAudioItemPlaybackCommand=mb(vQ),EJ.shareImageCommand=mb(uK),EJ.sharingProviderDataCommand=mb(JT),EJ.showAudioTrackPickerActionCommand=mb(hT),EJ.showCaptionLanguageSelectActionCommand=mb(tT),EJ.showCreatorChatbotEngagementPanelCommand=mb(GN),EJ.showDialogCommand=mb(nf),EJ.showEngagementPanelEndpoint=mb(Em),EJ.showFullscreenPlayerControlsCommand=
mb(Om),EJ.showSheetCommand=mb(NR),EJ.showSnackbarCommand=mb(ff),EJ.showTransientPlayerScrimOverlayCommand=mb(wA),EJ.submitFormWithValidationFlowCommand=mb(zJ),EJ.talkToRecsDeselectCommand=mb(HQ),EJ.talkToRecsNextCommand=mb(e3),EJ.talkToRecsSelectCommand=mb($b),EJ.talkToRecsUpdateTextCommand=mb(sn),EJ.toggleEngagementPanelCommand=mb(kb),EJ.undoFeedbackEndpoint=mb(x0),EJ.updateEngagementPanelContentCommand=mb(pf),EJ.updateUrlParamCommand=mb(KQ),EJ.updateVideoMetadataCommand=mb(kO),EJ.verifyCommand=
mb(mB),EJ.webNativeShareCommand=mb(Z9),EJ.webSubmitFormCommand=mb(iK),EJ.ACK_PLAYABLES_3P_DATA_CONSENT=mb(bK),EJ.CANCEL_NAVIGATION=mb(Um),EJ.COPY_SHARE_URL=mb(xb),EJ.MINI_APP_EXIT_DIALOG_SEEN=mb(mI),EJ.MINI_APP_OPEN_URL=mb(zG),EJ.REQUEST_MINI_APP_FULLSCREEN=mb(S3),EJ.RESUME_NAVIGATION=mb(TG),EJ.SHARE_PLAYABLE_WITH_HIGH_SCORE=mb(rA),EJ.TELL_US_WHY=mb(Uo),EJ);_.w("web_enable_prefetching_videos_on_home")&&(N2.prefetchWatchCommand=mb(Kr),N2.registerTasksCommand=mb(br));
_.w("enable_share_panel_navigation_logging_fix_on_web")&&(N2.shareEntityServiceEndpoint=mb(GG));_.w("web_use_flow_state_manager")&&(N2.flowNextStepCommand=mb(tmw),N2.flowPrevStepCommand=mb(wDM),N2.getFlowCommand=mb(a2g),N2.updateFlowCommand=mb(oh));_.w("enable_ai_companion")&&(N2.updateConversationIdCommand=mb(QV));var SfB=Object.assign({},N2);var ODP={},wRw=(ODP.initialized={priority:10,callback:Wjy},ODP);var Cjg={},afn=(Cjg.initialized={callback:function(M){var q={},G={};EBy().install((q.document_disposed={callback:function(){_.w("finalize_all_timelines")?VNy():h2();P1H("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.oB$();var K=M.injector.resolve(l4);K.intervalId!==void 0&&(K.intervalId&&_.r8.cancelJob(K.intervalId),K.intervalId=void 0,--K.currentPartitionIndex,K=Fuf(K),K>0&&PJf({mainAppWeb:_.Ir(),survivalSli:{partitionMinute:K,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));tLS(Gk);KN!=null&&
KN.flush();fK&&fK.snapshotAndFlush();K=_.k(bUJ.values());for(var n=K.next();!n.done;n=K.next())n.value.snapshotAndFlush()}},q),(G.flush_logs={callback:function(){_.S1()}},G))}},Cjg);var oJR={},lfg=(oJR.rendered={priority:0,callback:function(){var M=new e9P;M.increment("STARTED");if(_.R9("LOGGED_IN")&&!_.R9("IS_DBSC",!1)&&_.R9("SERVER_VERSION")!=="test"&&_.R9("SERVER_VERSION")!=="dev"&&!Jxl()&&!urB()){M.increment("EXECUTING");var q=document.createElement("iframe");q.style.display="none";_.WwF(q,2,_.SM("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.R9("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(q);M.increment("DONE")}}},
oJR);var XR5={},PjR=(XR5.rendered={callback:function(){tA8().resume()}},XR5);var iD5={acknowledgeChannelTouStrikeCommand:Px(j7),addToPlaylistServiceEndpoint:Px(Fq),addToPlaylistEndpoint:Px(Fq),addUpcomingEventReminderEndpoint:Px(A6),browseEndpoint:Px(qKL),channelCreationFormEndpoint:Px(Un),channelCreationServiceEndpoint:Px(xO),claimLegacyYoutubeChannelEndpoint:Px(Xk),clearSearchHistoryEndpoint:Px(Ek),clearWatchHistoryEndpoint:Px(NZ),commerceActionCommand:i8(hW),createBackstagePostEndpoint:Px(On),createBroadcastCommand:Px(dC),createCommentEndpoint:Px(uk),createCommentReplyEndpoint:Px(D3),
createLiveChatPollEndpoint:Px(v1),createPlaylistServiceEndpoint:Px(H1),crossAccountChannelTransferEndpoint:Px(LB),deleteLiveChatMessageCommand:Px(h6),deletePlaylistEndpoint:Px(ea),deleteVideoEndpoint:Px(Ww),dismissalEndpoint:Px(VU),feedbackEndpoint:Px(R7),flagEndpoint:Px(Km),getAccountSwitcherEndpoint:Px(pB),verifyCommand:Px(tI),getAccountsListInnertubeEndpoint:Px(W1),getCommentsFromInboxCommand:Px(Io),getDownloadActionCommand:Px(xG),getFlowCommand:i8(nB),getKidsBlocklistPickerCommand:Px(nm),getNotificationMenuEndpoint:Px(naI),
getPaymentInstrumentsParamsCommand:Px(oW),getPaymentsClientTokenCommand:i8(hW),getPdgBuyFlowCommand:Px(Ro),getReportFormEndpoint:Px(E$),getSearchInVideoCommand:Px(pm),getAnswerCommand:Px(k4),getSurveyCommand:Px(Y4),getTranscriptEndpoint:Px(df),getPostVideoPreviewEndpoint:Px(CQ),decorateMessageEndpoint:Px(wR),likeEndpoint:Px(zB),liveChatActionEndpoint:Px(CB),liveChatEndpoint:Px(wC),liveChatItemContextMenuEndpoint:Px(t6),liveChatPurchaseMessageEndpoint:Px(ao),liveChatReplayEndpoint:Px(Ok),manageLiveChatUserEndpoint:Px(lD),
metadataUpdateCommand:Px(B1),moderateLiveChatEndpoint:Px(Xq),modifyChannelNotificationPreferenceEndpoint:Px(Z7),notificationOptOutEndpoint:Px(bD),openSuperStickerBuyFlowCommand:Px(oo),performCommentActionEndpoint:Px(Bq),playlistEditEndpoint:Px(s$),playlistEditorEndpoint:Px($G),recordNotificationInteractionsEndpoint:Px(Uk),reelWatchEndpoint:Px(MF),refreshPanelEndpoint:Px(mf),removeUpcomingEventReminderEndpoint:Px(P1),resolveLocationCommand:Px(gC),revealBusinessEmailCommand:Px(Pq),searchEndpoint:Px(_.Ean),
sendLiveChatMessageEndpoint:Px(iD),sendLiveChatVoteEndpoint:Px(c1),setSettingEndpoint:Px(mA),shareEntityServiceEndpoint:i8(rR),sharingProviderDataCommand:Px(Lm),showEngagementPanelEndpoint:Px(Sa),showMoreDrawerCommand:Px(rC),showSheetCommand:Px(ja),showDialogCommand:Px(T8),subscribeEndpoint:Px(S7),transcriptSubmitCaptionCorrectionCommand:Px(AW),undoFeedbackEndpoint:Px(G8),unsubscribeEndpoint:Px(TB),updateBackstagePostEndpoint:Px(o7),updateCommentEndpoint:Px(Z3),updateCommentReplyEndpoint:Px(JI),updateCommentsSettingsEndpoint:Px(bk),
updateCreatorChannelInnertubeCommand:Px(cq),updateKidsBlacklistEndpoint:Px(NF),updateEngagementPanelContentCommand:Px(Vt),updatePdgFeatureEnablementCommand:Px(fB),updatedMetadataEndpoint:Px(Qt),validateChannelHandleCommand:Px(gR),updateChannelPageSettingsEndpoint:Px(ik),verifyAgeEndpoint:Px(KB),watchEndpoint:i8(AI),whitelistEditEndpoint:Px(vw),ypcCancelRecurrenceEndpoint:Px(tW),ypcCompleteTransactionEndpoint:Px(O$),ypcFixInstrumentEndpoint:Px(Cm),ypcGetCartEndpoint:Px(wf),ypcGetOffersEndpoint:Px(aW),
ypcHandleTransactionEndpoint:i8(lr),ypcLogWalletAnalyticDataEndpoint:Px(XV),ypcOffersEndpoint:Px(Pw),ypcPauseSubscriptionCommand:Px(ir),ypcRedeemCodeEndpoint:Px(cw),ypcResumeSubscriptionCommand:Px(gf),ypcUpdateFopEndpoint:Px(Cm)},k7={},cLM=(k7.GET_ACCOUNT_MENU=Px(YG),k7.GET_NOTIFICATIONS_MENU=Px(KvP),k7.GET_NOTIFICATIONS_INBOX=Px(D7),k7.GET_UNSEEN_NOTIFICATION_COUNT=Px(J6),k7.GET_USER_MENTION_SUGGESTIONS=Px(a7),k7.LOAD_GUIDE=Px(Giw),k7.SUBMIT_FEEDBACK=Px(fQ),k7),pr={},gJU=(pr.CONTINUATION_REQUEST_TYPE_BROWSE=
Px(lk),pr.CONTINUATION_REQUEST_TYPE_SEARCH=Px(y4),pr.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Px(Nd),pr.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Px(kG),pr.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Px(I7),pr.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Px(QU),pr.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Px(Gv),pr.CONTINUATION_REQUEST_TYPE_GET_PANEL=Px(z8),pr),BP5={player:i8(AI),watchNext:Px(En)},QuI={player:i8(AI),reelItemWatch:Px(MF),reelWatchSequence:Px(qF)},IfR={watchEndpoint:i8(dR)},DzU=
{commandEndpointMap:iD5,signalEndpointMap:cLM,continuationEndpointMap:gJU,watchEndpointMap:BP5,reelWatchEndpointMap:QuI,streamingEndpointMap:IfR};var uNs,JLL,ZDw;_.bD8=((JLL=(uNs=window).matchMedia)==null?void 0:(ZDw=JLL.call(uNs,"(prefers-reduced-motion: reduce)"))==null?void 0:ZDw.matches)||!document.startViewTransition;var UzP={},xzw={disableAllTransitions:_.bD8,ignoredErrors:(UzP.DOCUMENT_HIDDEN=!0,UzP.WINDOW_SIZE_CHANGED=!0,UzP.SAFARI_ABORTED_BY_NEW_TRANSITION=!0,UzP),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 z9v=_.DQ("\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(",")),SxM=function(M){var q=this;this.viewTransitionCoordinator=
M;this.disableTransitionsForUltraHigh=_.w("disable_transitions_for_ultra_high");this.isUltraHighBucketDevice=mzs();this.disableTransitions=this.disableTransitionsForUltraHigh&&this.isUltraHighBucketDevice;this.isBrowseTransitionEnabled=_.wP("web_page_transition_type")==="slide"&&!this.disableTransitions;this.isLockupToWatchTransitionEnabled=_.w("web_thumbnail_to_watch_transition")&&!this.disableTransitions;this.isLockupThumbnailRegistrationEnabled=_.w("web_thumbnail_to_watch_transition_register_thumbnail");
this.isLearningJourneyTransitionEnabled=_.w("enable_plj_landing_page")&&!this.disableTransitions;this.lockupToWatchPlayerTransitionType=_.wP("web_thumbnail_to_watch_player_transition_type");this.enableFasterTransitions=_.w("web_enable_faster_page_transitions");this.isAnyTransitionEnabled=this.isBrowseTransitionEnabled||this.isLockupToWatchTransitionEnabled||this.isLearningJourneyTransitionEnabled;this.lockupThumbnailRegisteredFromWatchEndpoint=!1;_.r8.addJob(function(){q.registerRootElement();if(q.isAnyTransitionEnabled){var G=
_.tL("web_page_transition_exit_ms"),K=_.tL("web_page_transition_wait_ms"),n=_.tL("web_page_transition_enter_fast_ms"),E=_.tL("web_page_transition_watch_exit_ms"),p=_.tL("web_page_transition_watch_wait_ms"),y=_.tL("web_page_transition_watch_enter_ms"),Y=_.tL("web_page_transition_watch_next_exit_ms"),A=_.tL("web_page_transition_watch_next_wait_ms"),v=_.tL("web_page_transition_watch_next_enter_fast_ms"),h=_.tL("web_page_transition_enter_ms"),t=_.tL("web_page_transition_watch_next_enter_ms");q.enableFasterTransitions&&
q.isUltraHighBucketDevice&&(h=n,t=v);isNaN(G)&&isNaN(K)&&isNaN(h)&&isNaN(E)&&isNaN(p)&&isNaN(y)&&isNaN(Y)&&isNaN(A)&&isNaN(t)||!(G=b8F(z9v,G,K,h,E,p,y,Y,A,t))||(K=document.createElement("style"),K.textContent=h7s(G),document.head.appendChild(K))}},8)},mzs=function(){var M=_.Kj.navigator.deviceMemory;
return M>=8||M===void 0?!0:!1};
SxM.prototype.registerRootElement=function(){if(this.isAnyTransitionEnabled){var M={};this.viewTransitionCoordinator.registerElement(document.documentElement,(M.slide="root-slide",M["lockup-to-watch"]="root-lockup-to-watch",M["learning-journey"]="root-learning-journey",M))}};
_.i22=function(M,q){M.isLockupToWatchTransitionEnabled&&M.isLockupThumbnailRegistrationEnabled&&(M.registeredLockupThumbnail?M.lockupThumbnailRegisteredFromWatchEndpoint?_.j1(new _.bj("Lockup thumbnail registration order is incorrect.")):_.j1(new _.bj("Lockup thumbnail already registered.")):(M.registeredLockupThumbnail=q,_.TPR(M,q)))};
_.TPR=function(M,q){var G={};M.viewTransitionCoordinator.registerElement(q,(G["lockup-to-watch"]="lockup-thumbnail-lockup-to-watch",G),!0)};
SxM[dP]=[QYw];var AAy={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1,playerVe:void 0,expandVe:void 0,closeVe:void 0,readyToResumeVe:void 0,readyToResumeCloseVe:void 0,repositionVe:void 0,resizeVe:void 0};var vVs=["videoPrimaryInfoRenderer","title"],hv$=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var rLL;rLL=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.ju5=_.U(function(M){M=_.UT(M,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var q=M.data,G=M.playlistData,K=M.expanded,n=M.onExpandClick,E=M.isReadyToResume,p=function(){var v;return!((v=G())==null||!v.contents)},y=function(){var v=G();
return v&&v.totalVideos&&v.currentIndex!==void 0?v.currentIndex+1+" / "+v.totalVideos:""};
M=_.sq(function(){_.yy(_.AL().resolve(_.lq));return!1});
var Y=_.sq(function(){p()&&n&&n()}),A={};
return _.W("ytd-miniplayer-info-bar",{class:_.Hb("ytdMiniplayerInfoBarHost",(A.ytdMiniplayerInfoBarHasPlaylistData=p,A)),"on:click":Y},_.W("div",{class:"ytdMiniplayerInfoBarContent"},_.W("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":M},_.W(_.Ft,{text:function(){var v=q();var h=G();if(h==null?0:h.contents){var t;v=(t=_.q2y(h))==null?void 0:t.title}else v=v==null?void 0:v.miniplayerTitle;return tTe(v)},
noEndpoints:!0,ellipsisTruncate:!0})),_.W("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.W(_.d,{cond:E,then:function(){return _.W(YVp,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:rLL})}}),_.W("h1",null,_.W(_.Ft,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var v=q();var h=G();v=E()?{simpleText:_.Ge("CONTINUE_WATCHING",void 0,"Continue watching")}:(h==null?0:h.contents)?h.titleText:v==null?void 0:v.miniplayerSubtitle;return tTe(v)},
noEndpoints:!0,ellipsisTruncate:!0})),_.W(_.d,{cond:function(){return!!y()&&!E()},
then:function(){return _.W("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.W("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.W("span",null,y))}}))),_.W(_.d,{cond:p,
then:function(){return _.W("div",{class:"ytdMiniplayerInfoBarExpand"},_.W(_.Yv,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(v){n&&(n(),v.stopPropagation())}}},
iconName:function(){return K()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"rg");var VSv;VSv=_.U(function(M){return _.W("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.W(_.Yv,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:M.onTap}},
iconName:"yt-icons:close"}))},"sg");
_.R9n=_.U(function(M){M=_.UT(M,{playabilityStatus:void 0,isDisabled:!1});var q=M.size,G=M.playabilityStatus,K=M.isDisabled,n=_.pI("div");M=_.k(_.lQ(void 0,void 0,"y6THVb"));var E=M.next().value,p=M.next().value;M=_.pp(_.rx);var y=!1,Y=function(){return q().height<=0};
_.zL(function(){var t=q(),O=Y(),a=E();a&&!O&&a.setInternalSize(t.width,t.height)},"qu2eI");
_.mT(function(){var t,O,a;return _.L(function(g){if(g.nextAddress==1){t=_.AL().resolve(_.lq);O=t.getPlayerElement();if(!t.isMiniplayerActive()||!O||!n.value)return g.return();O.appendTo(n.value);return g.yield(O.getPlayerPromise(),2)}a=g.yieldResult;a.setSizeStyle(!1,!0);p(a);_.gL(g)})});
_.m_(function(){A()});
_.zL(function(){var t=E();if(t)if(K()){var O=t.getPlayerState();(y=O===-1||O===1||O===3)&&t.pauseVideo()}else A()},"mCtQKc");
var A=function(){if(y){y=!1;var t;(t=E())==null||t.playVideo()}},v=_.sq(function(){_.yy(_.AL().resolve(_.lq))}),h={};
return _.W("ytd-miniplayer-player-container",{class:_.Hb("ytdMiniplayerPlayerContainerHost",(h.ytdMiniplayerPlayerContainerHidden=Y,h.ytdMiniplayerPlayerContainerHostShortsPip=M,h)),style:_.Kp({width:function(){return q().width+"px"},
height:function(){return q().height+"px"}})},_.W("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:n}),_.W(_.d,{cond:function(){return!!G()&&!_.zAs(G())},
then:function(){return _.W(Daw,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var t;return((t=G())==null?void 0:t.errorScreen)||null},
status:function(){var t;return((t=G())==null?void 0:t.status)||null}})}}),_.W(_.d,{cond:K,
then:function(){return _.W("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":v},_.W(VSv,{onTap:function(){_.AL().resolve(_.lq).close()}}))}}))},"wg");_.ffR=_.U(function(M){var q=M.toastData;var G=_.pI("ytd-miniplayer-toast");M=_.k(_.GM(function(){return!!q()}));
var K=M.next().value,n=M.next().value;M=_.k(_.lQ(!1,void 0,"BvfNQe"));var E=M.next().value,p=M.next().value,y=function(){var v;return _.UX((v=q())==null?void 0:v.data.title)};
_.SK(function(){_.jv.requestAvailability();q()&&n(!1)});
var Y,A;_.zL(function(){K()&&(_.jP(G.value,"iron-announce",{text:q().label+" "+y()}),Y&&_.r8.cancelJob(Y),Y=_.r8.addLowPriorityJob(function(){p(!0)},2500))},"no1dZb");
_.zL(function(){E()&&(A&&_.r8.cancelJob(A),A=_.r8.addLowPriorityJob(function(){n(!1);p(!1)},300))},"G3yPNe");
M={};return _.W("ytd-miniplayer-toast",{el:G,class:_.Hb("ytdMiniplayerToastHost",(M.ytdMiniplayerToastOpening=function(){return K()},M.ytdMiniplayerToastClosing=function(){return E()},M))},_.W(_.d,{cond:function(){var v;
return(v=q())==null?void 0:v.data},
then:function(v){return _.W(CEf,{className:"ytdMiniplayerToastThumbnail",data:v,width:78})}}),_.W("div",{class:"ytdMiniplayerToastInfo"},_.W("div",{class:"ytdMiniplayerToastLabel"},function(){var v;
return(v=q())==null?void 0:v.label}),_.W("div",{class:"ytdMiniplayerToastTitle"},y)))},"zg");var cAw;var QFe=null;var HDv=_.U(function(M){var q=M.progressState;var G=M.multiMarkersPlayerBarRenderer;var K=M.progressBarWidth;var n=function(){return JAe(G())},E=function(){return U9y(q())},p=function(){return K()*(q().playedTime/q().videoDuration)};
return _.W("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.W(_.bf,{each:n},function(y,Y){return _.W(F8R,{modifiedProps:E,chapters:n,index:Y,playedProgressWidth:p,backgroundGradientPosition:function(){var A=E(),v=n(),h=Y(),t=p();return(A.playedTime-aH(_.C(v[h],Cs)))/A.playedTime*t}})}))},"Ag"),F8R=_.U(function(M){var q=M.modifiedProps;
var G=M.chapters;var K=M.index;var n=M.playedProgressWidth;var E=M.backgroundGradientPosition;M={};M=_.Hb("ytChapteredProgressBarChapteredPlayerBarChapter",(M.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return p().isScrubbing},M.ytChapteredProgressBarHoveredMacroMarker=function(){return p().scrubberHovering},M.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return p().videoPosition==="seen"},M));
var p=function(){return x9Y(q(),G(),K())},y=function(){var Y=q();
var A=G(),v=K();if(x9Y(Y,A,v).videoPosition!=="active")Y=0;else{var h=aH(_.C(A[v],Cs));Y=(Y.playedTime-h)/((aH(_.C(A[v+1],Cs))||Y.videoDuration)-h)}return Y};
return _.W("div",{class:M,style:_.Kp({width:function(){var Y=q(),A=G(),v=K(),h=_.C(A[v],Cs);A=_.C(A[v+1],Cs);return(A?aH(A)-aH(h):Y.videoDuration-aH(h))/Y.videoDuration*100+"%"},
"background-color":function(){a:{var Y=p();switch(Y.videoPosition){case "pending":Y=Y.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":Y=Y.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:Y=""}}return Y},
"background-size":function(){return(zvs(p())?n():"")+"px"},
"background-position-x":function(){return(zvs(p())?E():"")+"px"}})},_.W("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var Y=q(),A=G(),v=K();if(x9Y(Y,A,v).videoPosition==="seen")var h=0;else h=aH(_.C(A[v],Cs)),A=aH(_.C(A[v+1],Cs))||Y.videoDuration,Y=Y.videoDuration*Y.percentLoaded,h=A<=Y?1:h>=Y?0:(Y-h)/(A-h);return"width: "+h*100+"%"}}),_.W("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Kp({width:function(){return y()*100+"%"},
"background-size":function(){return(zvs(p(),y())?n():"")+"px"},
"background-position-x":function(){return(zvs(p(),y())?E():"")+"px"}})}))},"Bg");var e9n=function(M,q){q=q===void 0?Br2:q;var G,K=[],n,E=!1;return function(){var p=_.rW.apply(0,arguments);if(E&&G===this&&q(p,K))return n;n=M.apply(this,p);E=!0;G=this;K=p;return n}}(function(M){var q=M.heatMarkers,G=M.minHeightDp===void 0?0:M.minHeightDp,K=M.maxHeightDp===void 0?60:M.maxHeightDp;
var n=n===void 0?!1:n;var E=1E3/q.length;M=[];M.push({x:0,y:100});for(var p=0;p<q.length;p++){var y=void 0,Y=((y=_.C(q[p],bRM))==null?void 0:y.heatMarkerIntensityScoreNormalized)||0;y=(p+.5)*E;Y=100-_.wr(Y*100,G/321*100,K/321*100);p!==0||n||M.push({x:0,y:Y});M.push({x:y,y:Y});p===q.length-1&&M.push({x:1E3,y:Y})}M.push({x:1E3,y:100});q="";for(G=0;G<M.length;G++)n=M[G],G===0?n="M "+n.x.toFixed(1)+","+n.y.toFixed(1):(K=UVy(M[G-1],M[G-2],n),E=UVy(n,M[G-1],M[G+1],!0),n=" C "+(K.x.toFixed(1)+","+K.y.toFixed(1)+
" "+E.x.toFixed(1)+","+E.y.toFixed(1)+" "+n.x.toFixed(1)+","+n.y.toFixed(1))),q+=n;return q});var $zg=_.U(function(M){var q=M.progressBarProps;var G=M.config;var K={};M=_.Hb("ytHeatSeekerHost",(K.ytHeatSeekerHighContrast=M.highContrast,K));var n=function(){return oVs(G().chapterData)};
return _.W("yt-progress-bar-heatseeker",{class:M,style:function(){var E;return"height: 320px; display: "+(q().isDragging&&((E=n())==null?0:E.heatMarkers)?"block":"none")}},_.W(_.d,{cond:n,
then:function(E){return _.W(_.d,{cond:function(){return E().heatMarkers},
then:function(){return _.W("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.W("path",{d:function(){return e9n(E())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Cg");var sn8=_.U(function(M){var q=M.progressBarProps;var G=M.config;M={};M=_.Hb("ytProgressBarLineProgressBarLine",(M.ytProgressBarLineProgressBarLineRounded=function(){return G().rounded},M.ytProgressBarLineProgressBarLineBottomInset=function(){return G().position===2},M));
return _.W("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.W("div",{class:M},_.W("div",{class:"ytProgressBarLineProgressBarBackground"}),_.W("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+q().percentLoaded*100+"%"}}),_.W("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var K=q();return"width: "+(K.videoDuration?_.wr(K.hoveredTime/K.videoDuration,0,1):0)*100+"%"}}),_.W("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+wdF(q())*100+"%"}})))},"Dg");
sn8.idomCompat=!0;var MG5=_.U(function(M){var q=M.progressBarProps;var G=M.playheadData;var K=M.interpolateDotPosition;var n=M.hidePlayhead;M={};var E=_.Hb("ytProgressBarPlayheadProgressBarPlayheadDot",(M.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return q().isDragging},M.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!q().isDragging&&n()},M));
return _.W("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Kp({"margin-left":function(){return Csy(q())*100+"%"},
transform:function(){return"translateX(-"+(K()?Csy(q())*12:6)+"px)"}})},_.W(_.d,{cond:function(){var p;
return(p=_.bg(G)())==null?void 0:p.playheadImage},
then:function(p){var y={};return _.W("div",{class:_.Hb("ytProgressBarPlayheadProgressBarPlayheadCustom",(y.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return q().isDragging},y.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!q().isDragging&&n()},y)),
style:_.Kp({"transform-origin":function(){return(K()?Csy(q())*20:10)+"px center"}})},_.W(_.Jj,{data:p,
alt:"","aria-hidden":"true"}))},
else:function(){return _.W("div",{class:E,style:_.Kp({"transform-origin":function(){return(K()?Csy(q())*12:6)+"px center"}})})}}))},"Eg");
MG5.idomCompat=!0;var Lr=function(M,q,G,K,n,E){this.getProgressBarRect=M;this.updateProgressBarRect=q;this.getFilmstripYPosition=G;this.setFineScrubbingDraggedTime=K;this.updateFilmStripDraggedYDistance=n;this.resetFilmStripYOffset=E;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.qA(this.onThrottledSeek,100,this)},qh5=function(M,q,G){return function(K){M.handleClick(K,q(),G())}},n5I=function(M,q){return function(G){GI8(M,
G,KmU(G),q())}},E5R=function(M,q){return function(G){GI8(M,G,{x:G.clientX,
y:G.clientY},q())}},kIn=function(M,q,G){return function(K){var n=q(),E=G();
N8I(M,K,KmU(K),n,E,!0);if(E.onTouchMove)E.onTouchMove(n)}},y0v=function(M,q,G){return function(K){p2I(M,K,q(),G())}},Lmw=function(M,q){return function(){M.handleMouseLeave(q())}},YhM=function(M,q,G){return function(){var K=q(),n=G();
Y7(M,K,n);if(n.onTouchEnd)n.onTouchEnd(K)}},Wm5=function(M,q,G){return function(){var K=q(),n=G();
Y7(M,K,n);if(n.onTouchEnd)n.onTouchEnd(K)}},A0I=function(M,q,G){return function(){Y7(M,q(),G())}},dlI=function(M){return function(q){if(q.keyCode===39||q.keyCode===38){var G,K;
(G=M())==null||(K=G.playerApi)==null||K.seekBy(5,void 0,void 0,72)}else if(q.keyCode===37||q.keyCode===40){var n,E;(n=M())==null||(E=n.playerApi)==null||E.seekBy(-5,void 0,void 0,71)}}},v5M=function(M,q,G){return function(K){!G().disableScrubbing&&M.startPosition&&p2I(M,K,q(),G())}},hos=function(M,q,G){return function(){if(!G().disableScrubbing)if(M.startPosition){var K=q(),n=G();
Y7(M,q(),G());if(n.onTouchEnd)n.onTouchEnd(K)}else q().setState({isDragging:!1})}},KmU=function(M){M=M.touches[0];
return{x:M.clientX,y:M.clientY}},p2I=function(M,q,G,K){if(q.buttons!==1){if(q.movementX||q.movementY)q.preventDefault(),q.stopPropagation(),M=tGn(M,G,q.clientX),G.setState({isHovering:!0,
hoveredTime:M*G.videoDuration})}else OF8(G),N8I(M,q,{x:q.clientX,y:q.clientY},G,K,!1)};
Lr.prototype.handleMouseLeave=function(M){OF8(M)};
var OF8=function(M){M.isHovering&&M.setState({isHovering:!1,hoveredTime:0})},GI8=function(M,q,G,K){M.startPosition||(M.startPosition=G,M.updateProgressBarRect(),M.controlsWereVisibleBeforeDragging=K.controlsVisible,q.stopPropagation(),_.w("medium_progress_bar_modification")||q.preventDefault())},N8I=function(M,q,G,K,n,E){if(M.startPosition)if(E&&n.isInlinePlayback&&M.startPosition&&!M.hasDraggedTheMinimumDistance&&Math.abs(G.y-M.startPosition.y)>Math.abs(G.x-M.startPosition.x))Y7(M,K,n);
else if(q.preventDefault(),q.stopPropagation(),K.videoDuration&&(M.startPosition&&!M.hasDraggedTheMinimumDistance&&(M.hasDraggedTheMinimumDistance=Math.abs(G.x-M.startPosition.x)>=1),n.enableFineScrubbing&&(M.startPosition&&(M.isDraggedForFineScrubbing=-(G.y-M.startPosition.y)>=60),!M.startPosition||G.y>=M.startPosition.y||(K.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:m9H(K.draggedTime,K,n.chapterData)}),M.setFineScrubbingDraggedTime(K.draggedTime),M.updateFilmStripDraggedYDistance(M.startPosition.y,
G.y,K))),M.hasDraggedTheMinimumDistance)){q=tGn(M,K,G.x);if(M.isDraggedForFineScrubbing){var p;(p=K.playerApi)==null||p.pauseVideo();K.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:K.draggedTime,filmStripXDistance:m9H(q*K.videoDuration,K,n.chapterData)})}n.enableFineScrubbing&&(!n.enableFineScrubbing||M.getFilmstripYPosition(K)<68)||K.setState({draggedTime:q*K.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:M.controlsWereVisibleBeforeDragging});var y;(y=
n.cancelAutohideControlsFn)==null||y.call(n)}},Y7=function(M,q,G){var K=G.enableFineScrubbing&&q.fineScrubbingActiveState!=="off";
if(q.isDragging||K){K={isDragging:!1,playedTime:q.draggedTime,controlsVisible:M.controlsWereVisibleBeforeDragging};G.enableFineScrubbing&&q.fineScrubbingActiveState!=="on"&&(M.resetFilmStripYOffset(),K.fineScrubbingActiveState="off");var n=n===void 0?QFe:n;var E=_.Cx(0);if(E&&n){var p=Math.round(q.playedTime*1E3),y=Math.round(q.draggedTime*1E3);p>2147483647||y>2147483647||_.bO(E,n,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:String(p),endMediaTimeMs:String(y),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}})}q.setState(K);
M.seekThrottle.fire(q.draggedTime,q,7);_.w("mweb_new_progress_bar_play_on_seek")&&M.resumeVideo(q);G.unmuteOnSeek&&(G=q.playerApi,q.volumeMuted&&(G==null||G.unMute()))}else q.setState({controlsVisible:!q.controlsVisible}),(E=G.triggerAutohideControlsAfterDelayFn)==null||E.call(G);M.startPosition=null;M.hasDraggedTheMinimumDistance=!1;M.isDraggedForFineScrubbing=!1;M.controlsWereVisibleBeforeDragging=!1};
Lr.prototype.handleClick=function(M,q,G){this.updateProgressBarRect();M.stopPropagation();M=tGn(this,q,M.clientX)*q.videoDuration;q.setState({playedTime:M});if(q.playerState!==2){var K;(K=G.triggerAutohideControlsAfterDelayFn)==null||K.call(G)}this.seekThrottle.fire(M,q,7)};
var tGn=function(M,q,G){M=M.getProgressBarRect(q);return _.wr(0,(G-M.left)/M.width,1)};
Lr.prototype.resumeVideo=function(M){if(M.draggedTime<M.videoDuration){var q;(q=M.playerApi)==null||q.playVideo()}};
Lr.prototype.onThrottledSeek=function(M,q,G){if(q=q.playerApi){var K;if((K=q.getVideoData())==null?0:K.isLive)K=this.getProgressState(q),M+=(K==null?void 0:K.seekableStart)||0;q.seekTo(M,void 0,void 0,void 0,G)}};
Lr.prototype.getProgressState=function(M){var q=M==null?void 0:M.getPresentingPlayerType();return M==null?void 0:M.getProgressState(q)};var aZP,CFI,o5L,X2w,w2g,PFv,iFR,c0s,g5v;aZP=_.U(function(M){var q=M.progressBarProps;var G=M.config;var K=M.progressBarWidthPx;var n=M.chapterData;var E=VTy(q,function(){return G().isShortsPage}),p=function(){return!q().isHovering&&!G().isShortsPage};
M={};var y=_.Hb("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(M.ytPlayerStoryboardHostMwebShorts=function(){return G().isShortsPage&&!1},M));
return _.W("yt-player-storyboard",null,_.W(_.d,{cond:function(){return q().isDragging||q().isHovering},
then:function(){return _.W(_.d,{cond:E,then:function(Y){return _.W(_.d,{cond:p,then:function(){return _.W("div",{class:y,"aria-hidden":"true"},_.W(w2g,{props:q,config:G,isBigboard:!0,chapterData:n}))},
else:function(){return _.W(CFI,{props:q,frame:Y,config:G,progressBarWidthPx:K,chapterData:n})}})}})}}))},"Fg");
_.lZE=_.U(function(M){var q=M.progressBarProps;var G=VTy(q,M.isShortsPage);return _.W("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.W(_.d,{cond:function(){return q().isDragging||q().isHovering},
then:function(){return _.W(_.d,{cond:G,then:function(K){return _.W(o5L,{frame:K,props:q,isBigboard:!0})}})}}))},"Gg");
CFI=_.U(function(M){var q=M.props;var G=M.frame;var K=M.config;var n=M.progressBarWidthPx;M=M.chapterData;var E={};E=_.Hb("ytPlayerStoryboardHost",(E.ytPlayerStoryboardHostMwebShorts=function(){return K().isShortsPage&&!1},E.ytPlayerStoryboardHostInlinePlayer=function(){return K().isInlinePlayer},E.ytPlayerStoryboardHostFadeIn=function(){return K().useFadeInAnimation},E));
return _.W("div",{class:E,"aria-hidden":"true",style:function(){var p=q(),y=Scj(G()),Y=n();p=To4(p)/p.videoDuration;var A=Y*p,v=y/2+6;y=Y-(y/2+6);return"left: "+(A<=v?v/Y*100:A>=y?y/Y*100:p*100)+"%"}},_.W(_.d,{cond:function(){var p=q();
return!(K().isShortsPage&&p.videoDuration<15)},
then:function(){return _.W(o5L,{frame:G,props:q,isBigboard:!1})}}),_.W(w2g,{props:q,
config:K,isBigboard:!1,chapterData:M}))},"Hg");
o5L=_.U(function(M){var q=M.frame;var G=M.props;var K=M.isBigboard;var n=function(){var y,Y;return(Y=(y=G().playerApi)==null?void 0:y.getVideoContentRect())!=null?Y:{width:0,height:0}},E=function(){return Scj(q())},p=function(){var y=q();
return y?y.height/y.rows:0};
M={};M=_.Hb((M.ytPlayerStoryboardBigboardImageWrapper=K,M.ytPlayerStoryboardStoryboardImageWrapper=function(){return!K()},M));
return _.W("div",{class:M,style:function(){return"width: "+(K()?n().width:E())+"px; height: "+(K()?n().height:p())+"px;"}},_.W(X2w,{frame:q,
storyboardWidth:E,storyboardHeight:p,storyboardScale:function(){return(K()?n().width:E())/E()}}))},"Ig");
X2w=_.U(function(M){var q=M.frame;var G=M.storyboardWidth;var K=M.storyboardHeight;var n=M.storyboardScale;var E=function(){var p=q().row,y=q().column,Y=G(),A=K(),v=n();return{left:-y*Y*v,top:-p*A*v}};
return _.W("img",{src:function(){return q().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+E().left+"px; top: "+E().top+"px; width: "+q().width*n()+"px; height: "+q().height*n()+"px;"}})},"Jg");
w2g=_.U(function(M){var q=M.props;var G=M.config;var K=M.isBigboard;var n=M.chapterData;M={};M=_.Hb("ytPlayerStoryboardMetadata",(M.ytPlayerStoryboardMetadataBigboard=K,M));return _.W("div",{class:M},_.W(_.d,{cond:K,then:function(){return _.W(_.dU,null,_.W(PFv,{props:q,config:G}),_.W(_.d,{cond:function(){a:{var E=q();var p=G(),y=n(),Y;if((p==null?0:p.activeChapter)&&((Y=_.C(p==null?void 0:p.activeChapter,Cs))==null?0:Y.title))E=!0;else{p=_.k(luF(y));for(p=p.next();!p.done;p=p.next()){E=(p=_.C(p.value,
xB2))&&rAF(E,p);break a}E=!1}}return E},
then:function(){return _.W(iFR,{props:q,config:G,isBigboard:!0,chapterData:n})}}))},
else:function(){return _.W(_.dU,null,_.W(iFR,{props:q,config:G,isBigboard:!0,chapterData:n}),_.W(PFv,{props:q,config:G}))}}))},"Kg");
PFv=_.U(function(M){var q=M.props;var G=M.config;M={};M=_.Hb("ytPlayerStoryboardTimestamp",(M.ytPlayerStoryboardTimestampShorts=function(){return G().isShortsPage},M.ytPlayerStoryboardTimestampIsHovering=function(){return q().isHovering||G().isShortsPage&&!0},M));
return _.W("div",{class:M},_.W(_.dU,null,function(){return _.jFu(To4(q()))}))},"Lg");
iFR=_.U(function(M){var q=M.props;var G=M.config;var K=M.isBigboard;var n=M.chapterData;M={};K=_.Hb("ytPlayerStoryboardTitle",(M.ytPlayerStoryboardTitleBigboard=K,M));return _.W("div",{class:K},_.W(_.d,{cond:function(){return!G().isShortsPage},
then:function(){return _.W(c0s,{props:q,activeChapter:function(){return G().activeChapter},
chapterData:n})}}))},"Mg");
c0s=_.U(function(M){var q=M.props;var G=M.activeChapter;var K=M.chapterData;return _.W(_.dU,null,_.W(_.bf,{each:function(){return luF(K())},
keyBy:"INDEX"},function(n){return _.W(_.dU,null,_.W(_.d,{cond:function(){return _.C(n(),xB2)&&rAF(q(),_.C(n(),xB2))},
then:function(){return _.W(g5v,{timedMarker:function(){return _.C(n(),xB2)}})}}))}),_.W(_.d,{cond:function(){var n;
return G()&&((n=_.C(G(),Cs))==null?void 0:n.title)},
then:function(n){return _.W(_.Ft,{text:n,noPreWrap:!0})}}))},"Ng");
g5v=_.U(function(M){var q=M.timedMarker;return _.W(_.dU,null,_.W("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.W(_.np,{icon:function(){return q().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.W(_.Ft,{text:function(){return q().label},
noPreWrap:!0}))},"Og");_.B8M=_.U(function(M){var q=M.progressBarProps;var G=M.playheadData;var K=M.config;M=_.pI("yt-progress-bar");var n=_.pI("div"),E=_.pI("div"),p=_.k(_.lQ({width:0,left:0},void 0,"WloVn")),y=p.next().value,Y=p.next().value,A=function(){E.value&&Y(E.value.getBoundingClientRect())},v=function(){y().width<=0&&A();
return y()};
_.WU("resize",A);var h=new Lr(v,function(){},function(){return 0},function(){},function(){},function(){}),t=function(){return q()};
p=_.k(_.lQ(!1,void 0,"u8BZZb"));var O=p.next().value,a=p.next().value;p=_.sq(function(){a(!0);K().position===2?setTimeout(function(){A()},100):A()});
var g=_.sq(function(){a(!1);Lmw(h,t)()}),D=_.sq(function(iH){K().doSeekOnClick&&qh5(h,t,K)(iH);
return!1}),J=_.sq(function(iH){n5I(h,t)(iH);
return!1}),Z=_.sq(function(iH){E5R(h,t)(iH);
return!1}),V=_.sq(function(iH){kIn(h,t,K)(iH);
return!1}),S=_.sq(function(iH){y0v(h,t,K)(iH);
return!1}),m=_.sq(function(){YhM(h,t,K)();
return!1}),R=_.sq(function(){Wm5(h,t,K)();
return!1}),se=_.sq(function(){A0I(h,t,K)();
return!1}),yY=_.sq(function(iH){dlI(t)(iH);
return!1});
_.WU("mousemove",v5M(h,t,K));_.WU("mouseup",hos(h,t,K));_.SK(function(){Iuy(n.value);a(!1);A();hos(h,t,K)()});
var d$={};d$=_.Hb("ytPlayerProgressBarHost",function(){return K().className},(d$.ytPlayerProgressBarHostReadOnly=function(){return K().disableScrubbing},d$.ytPlayerProgressBarHostHidden=function(){return K().hideProgressBar&&!O()},d$.ytPlayerProgressBarHostLowerPlayer=function(){return K().position===0},d$.ytPlayerProgressBarHostBottomEdge=function(){return K().position===1},d$.ytPlayerProgressBarHostBottomInset=function(){return K().position===2},d$.ytPlayerProgressBarHostCustom=function(){return K().position===
3},d$));
var cy={},t4=_.Hb("ytPlayerProgressBarBackground",(cy.ytPlayerProgressBarBackgroundHide=function(){return K().position===2&&!O()&&!q().isDragging},cy));
cy={};cy=_.Hb("ytPlayerProgressBarDragContainer",(cy.ytPlayerProgressBarDragContainerBottomEdge=function(){return K().position===1},cy));
var ay={};ay=_.Hb("ytPlayerProgressBarProgressBar",(ay.ytPlayerProgressBarProgressBarInset=function(){return K().position===2},ay.ytPlayerProgressBarProgressBarInsetMinimized=function(){return K().position===2&&!O()&&!q().isDragging},ay));
var bH=function(){return Math.floor(wdF(q())*100)};
return _.W("yt-progress-bar",{el:M,class:d$},_.W(_.d,{cond:function(){return K().position===2},
then:function(){return _.W("div",{class:t4})}}),_.W("div",{el:n,
"on:click":D,"on:touchstart":J,"on:touchmove":V,"on:mouseenter":p,"on:mousedown":Z,"on:mouseleave":g,"on:mousemove":S,"on:mouseup":R,"on:touchend":m,"on:touchcancel":se,"on:keydown":yY,class:cy,role:"slider","aria-valuenow":bH,"aria-valuetext":function(){return bH()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return q().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.Ge("SEEK_SLIDER")},_.W("div",{el:E,class:ay},_.W($zg,{progressBarProps:q,config:K,highContrast:function(){return!!K().isInlinePlayback}}),_.W(_.d,{cond:function(){return K().chapterData&&Xds(K().chapterData)},
then:function(){return _.W(HDv,{progressState:q,multiMarkersPlayerBarRenderer:function(){return K().chapterData},
progressBarWidth:function(){return y().width}})},
else:function(){return _.W(sn8,{progressBarProps:q,config:K})}}),_.W(MG5,{progressBarProps:q,
playheadData:G,interpolateDotPosition:function(){return K().position!==2},
hidePlayhead:function(){return K().playheadDotBehavior===1&&!O()}}))),_.W(aZP,{progressBarProps:q,
config:function(){return{activeChapter:bgD(q(),K().chapterData),getProgressBarWidthPx:function(){return v().width},
isShortsPage:!!K().isShortsPage,isInlinePlayer:!!K().isInlinePlayback,useFadeInAnimation:!!K().isInlinePlayback}},
progressBarWidthPx:function(){return y().width},
chapterData:function(){return K().chapterData}}))},"Pg");
_.B8M.idomCompat=!0;Object.assign({},_.Psu(),{setState:function(){},
domMeasurements:{},appApi:_.Ogs(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var Qnv;
_.IZs=_.U(function(){var M,q=(M=_.oH(Rvy().playerApi))!=null?M:void 0;M=_.k(_.lQ(!1,void 0,"Z9NQ1b"));var G=M.next().value,K=M.next().value;M=_.k(_.lQ(!1,void 0,"HoVJXe"));var n=M.next().value,E=M.next().value;M=_.k(_.lQ(!1,void 0,"DWCY3"));var p=M.next().value,y=M.next().value;M=_.k(_.lQ(!1,void 0,"g4C2Zd"));var Y=M.next().value,A=M.next().value;M=_.k(_.lQ(0,void 0,"lmVfFb"));var v=M.next().value,h=M.next().value;M=_.k(_.lQ(0,void 0,"mFLbzb"));var t=M.next().value,O=M.next().value;M=_.k(_.lQ(!1,void 0,
"hQN4Wb"));var a=M.next().value,g=M.next().value;M=_.k(_.lQ(0,void 0,"WWU0fb"));var D=M.next().value,J=M.next().value;M=_.k(_.lQ(0,void 0,"MJ7LMd"));var Z=M.next().value,V=M.next().value;M=_.k(_.lQ("",void 0,"hnomOe"));var S=M.next().value,m=M.next().value;M=_.k(_.lQ(-1,void 0,"ARe3pf"));var R=M.next().value,se=M.next().value,yY=_.gY(function(){var d$={controlsVisible:G(),isOverlayHidden:n(),shouldWaitToHideControls:p(),isDragging:Y(),isHovering:a(),videoDuration:D(),playedTime:Z(),videoId:S(),draggedTime:t(),
hoveredTime:v(),playerState:R()};return Object.assign({},_.Psu(),d$,{domMeasurements:{},setState:function(cy){cy.controlsVisible!==void 0&&K(cy.controlsVisible);cy.isOverlayHidden!==void 0&&E(cy.isOverlayHidden);cy.shouldWaitToHideControls!==void 0&&y(cy.shouldWaitToHideControls);cy.isDragging!==void 0&&A(cy.isDragging);cy.isHovering!==void 0&&g(cy.isHovering);cy.draggedTime!==void 0&&O(cy.draggedTime);cy.hoveredTime!==void 0&&h(cy.hoveredTime);cy.videoDuration!==void 0&&J(cy.videoDuration);cy.playedTime!==
void 0&&V(cy.playedTime);cy.videoId!==void 0&&m(cy.videoId);cy.playerState!==void 0&&se(cy.playerState)},
appApi:_.Ogs(),playerApi:q})},void 0,"Au4PIf");
_.mT(function(){q==null||q.addEventListener("onVideoProgress",Boj(yY));q==null||q.addEventListener("onVideoDataChange",gVi(yY));q==null||q.addEventListener("onStateChange",igj(yY))});
_.m_(function(){if(q==null?0:q.isReady())q==null||q.removeEventListener("onVideoProgress",Boj(yY)),q==null||q.removeEventListener("onVideoDataChange",gVi(yY)),q==null||q.removeEventListener("onStateChange",igj(yY))});
return _.W("desktop-shorts-player-controls",null,_.W(Qnv,{playerControlsProps:yY}))},"Rg");
Qnv=_.U(function(M){var q=M.playerControlsProps;return _.W("div",{class:"desktopShortsPlayerControlsHost"},_.W(_.B8M,{progressBarProps:q,config:function(){return{isShortsPage:!0,hideProgressBar:q().videoDuration<30&&q().playerState!==2&&!q().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Sg");_.DlR=_.U(function(M){function q(d$){d$!==0||h()?d$>50&&(h()||!O())?(t(!1),a(!0)):d$<=50&&(h()||O())&&(t(!1),a(!1)):t(!0)}
function G(d$,cy){var t4;return _.L(function(ay){if(ay.nextAddress==1)return ay.yield(_.s0(),2);t4=ay.yieldResult;cy&&t4?(t4.unMute(!0),d$&&(FjY(d$,t4.getVolume()),D(t4.getVolume()))):t4&&(t4.mute(!0),d$&&FjY(d$,0));_.gL(ay)})}
function K(d$){var cy,t4;return _.L(function(ay){if(ay.nextAddress==1)return ay.yield(_.s0(),2);cy=ay.yieldResult;t4=50;cy&&(t4=cy.getVolume(),cy.isMuted()?FjY(d$,0):FjY(d$,t4));D(t4);_.gL(ay)})}
var n=M.orientation;M=_.pI("desktop-shorts-volume-controls");var E=_.pI("button"),p=_.yw("input"),y=_.k(_.lQ(!1,void 0,"MvN0Tc")),Y=y.next().value,A=y.next().value,v=_.k(_.lQ(!1,void 0,"aSjsEb"));y=v.next().value;v=v.next().value;var h=y,t=v;v=_.k(_.lQ(!0,void 0,"FUh46d"));y=v.next().value;v=v.next().value;var O=y,a=v;y=_.k(_.lQ(50,void 0,"yPke4d"));var g=y.next().value,D=y.next().value;y=_.gY(function(){var d$=h();return _.w("web_shorts_keyboard_enable_mute_shortcut")?d$?_.Ge("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.Ge("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):d$?_.Ge("UNMUTE_VOLUME",void 0,"Unmute"):_.Ge("MUTE_VOLUME",void 0,"Mute")},void 0,"SHO4Df");
v=_.gY(function(){var d$=h(),cy=O();return{sources:[{clientResource:{imageName:d$?_.w("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":cy?_.w("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.w("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"lfsRWd");
var J=_.gY(function(){var d$=g();return h()?d$+"% volume muted":d$+"% volume"},void 0,"xZsRmc"),Z=_.gY(function(){return n()==="vertical_down"},void 0,"FVqYmb");
_.SK(function(){function d$(){A(!0)}
function cy(){A(!1)}
p&&p.value&&(p.value.addEventListener("focus",d$),p.value.addEventListener("focusout",cy),K(p.value).then(function(){q(Number(Hgy(p.value)))}));
E&&E.value&&(E.value.addEventListener("focus",d$),E.value.addEventListener("focusout",cy));_.m_(function(){var t4;p==null||(t4=p.value)==null||t4.removeEventListener("focus",d$);var ay;p==null||(ay=p.value)==null||ay.removeEventListener("focusout",cy);var bH;E==null||(bH=E.value)==null||bH.removeEventListener("focus",d$);var iH;E==null||(iH=E.value)==null||iH.removeEventListener("focusout",cy)})});
var V=_.sq(function(){if(p&&p.value){var d$=Number(Hgy(p.value));fus(d$);D(d$);p.value.style.setProperty("--gradient-percent",d$+"%");q(d$)}return!1}),S=_.sq(function(){p&&p.value&&(G(p.value,h()),t(!h()));
return!1}),m={},R={},se={},yY={};
return _.W("desktop-shorts-volume-controls",{"on:pointerleave":_.sq(function(){A(!1)}),
"on:pointerenter":_.sq(function(){A(!0)}),
class:_.Hb("ytdDesktopShortsVolumeControlsHost",(m.ytdDesktopShortsVolumeControlsHostVertical=Z,m.ytdDesktopShortsVolumeControlsHostModern=_.w("web_shorts_modern_controls"),m.ytdDesktopShortsVolumeControlsHostModernExpanded=function(){return _.w("web_shorts_modern_controls")&&Y()},m)),
el:M},_.W(_.d,{cond:function(){return!Z()},
then:function(){var d$={};return _.W("div",{class:_.Hb("ytdDesktopShortsVolumeControlsBackgroundScrim",(d$.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=Y,d$.ytdDesktopShortsVolumeControlsBackgroundScrimExpandedModern=function(){return _.w("web_shorts_modern_controls")&&Y()},d$))})}}),_.W("div",{class:_.Hb((R.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=Z,R))},_.W("button",{"aria-label":y,
title:y,el:E,"on:click":S,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},v?_.W(_.Jj,{data:v,alt:y,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.W("div",{class:_.Hb("ytdDesktopShortsVolumeControlsSliderContainer",(se.ytdDesktopShortsVolumeControlsSliderContainerExpanded=Y,se.ytdDesktopShortsVolumeControlsSliderContainerVertical=Z,se.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=Z,se.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=function(){return Y()&&
Z()},se))},_.W("input",{"aria-label":_.Ge("VOLUME"),
title:_.Ge("VOLUME"),el:p,"on:input":V,type:"range",class:_.Hb("ytdDesktopShortsVolumeControlsNativeSlider",(yY.ytdDesktopShortsVolumeControlsNativeSliderModern=_.w("web_shorts_modern_controls"),yY)),id:"volume-input",role:"slider","aria-valuenow":g,"aria-valuetext":J,"aria-valuemin":0,"aria-valuemax":100})))},"Tg");_.u8s=_.U(function(M){var q=M.data;var G=M.extractOverlay;M={};return _.W("player-disclosure-view-model",{class:_.Hb("ytwPlayerDisclosureViewModelHost",(M.ytwPlayerDisclosureViewModelExtractOverlay=function(){return G==null?void 0:G()},M))},_.W(_.kv,{command:function(){return q().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.W(_.d,{cond:function(){return q().iconName},
then:function(K){return _.W(_.np,{icon:K})}}),_.W("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return q().text}),_.W(_.d,{cond:function(){return q().showEndChevron},
then:function(){return _.W(_.np,{icon:"CHEVRON_RIGHT"})}})))},"Ug");var J08=_.U(function(M){var q=M.data;var G=M.overlayDensity;M={};return _.W("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.W(_.yu,{data:function(){return q().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(K){var n=K.data;
return _.W(_.mF,{data:function(){return(G==null?void 0:G())===1?Object.assign({},n(),{avatar:{avatarViewModel:Object.assign({},_.C(n().avatar,_.aZ),{avatarImageSize:"AVATAR_SIZE_M"})}}):n()}})}}),_.W(_.yu,{data:function(){return q().avatarStackViewModel}},{avatarStackViewModel:function(K){return _.W(_.Sf,{data:K.data})}}),_.W(_.Ft,{className:_.Hb("ytReelChannelBarViewModelChannelName",(M.ytReelChannelBarViewModelChannelNameLarge=function(){return(G==null?void 0:G())===1},M)),
text:function(){return q().channelName},
linkInheritColor:!0,userInput:!0}),_.W("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.W(_.yu,{data:function(){return q().subscribeButtonViewModel}},{subscribeButtonViewModel:function(K){var n=K.data;
return _.W(_.zR,{data:function(){return(G==null?void 0:G())===1?Object.assign({},n(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},n().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):n()},
isOverlay:!1})},
buttonViewModel:_.Wf})),_.W("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.W(_.yu,{data:function(){var K,n;return(n=_.C((K=q())==null?void 0:K.sponsorButtonViewModel,RCJ))==null?void 0:n.sponsorButton}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Vg");var ZFn=_.U(function(M){var q=function(){var n;return((n=M.overlayDensity)==null?void 0:n.call(M))===1},G=function(){return q()?22:16},K={};
return _.W("yt-reel-multi-format-link-view-model",{class:_.Hb("ytReelMultiFormatLinkViewModelHost",(K.ytReelMultiFormatLinkViewModelHostTall=!0,K.ytReelMultiFormatLinkViewModelHostLarge=function(){return q()},K))},_.W(_.kv,{ariaLabel:function(){return M.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return M.data().command}},_.W("h3",{class:function(){return q()?"ytReelMultiFormatLinkViewModelLargeLink":"ytReelMultiFormatLinkViewModelLink"}},_.W(_.d,{cond:function(){return M.data().icon},
then:function(n){return _.W(_.Jj,{data:n,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:G})}}),_.W(_.Ft,{text:function(){return M.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Wg");
ZFn.idomCompat=!0;var bFI=_.U(function(M){var q=M.data;var G=M.overlayDensity;var K=M.extractOverlay;var n=_.pI("yt-shorts-suggested-action-view-model");M=_.k(_.lQ(!1,void 0,"S60Hzc"));var E=M.next().value,p=M.next().value;M=_.k(_.lQ(!1,void 0,"O76chf"));var y=M.next().value,Y=M.next().value,A=function(){return q().isMultiLineSa},v=_.No(CD$,function(){var m,R;
return(R=(m=q().toggleableContent)==null?void 0:m.entityKey)!=null?R:""}),h=function(){var m,R,se;
return(se=q().toggleableContent)!=null&&se.entityKey?(R=(m=v())==null?void 0:m.value)!=null?R:!1:!1},t=function(){var m,R,se,yY,d$,cy,t4,ay,bH,iH,oI;
return q().toggleableContent?h()?(m=q().toggleableContent)==null?void 0:m.toggledData:(R=q().toggleableContent)==null?void 0:R.untoggledData:{primaryText:(ay=(se=q().defaultContent)==null?void 0:se.primaryText)!=null?ay:q().text,secondaryText:(yY=q().defaultContent)==null?void 0:yY.secondaryText,onTapCommand:(bH=(d$=q().defaultContent)==null?void 0:d$.onTapCommand)!=null?bH:q().onTapCommand,icon:(iH=(cy=q().defaultContent)==null?void 0:cy.icon)!=null?iH:q().icon,image:(oI=(t4=q().defaultContent)==
null?void 0:t4.image)!=null?oI:q().image}},O=function(){return A()?q().trailingTapTarget:void 0},a=function(m,R){return function(){return E()?R:m}},g=function(){return{leadingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),
secondaryText:(G==null?void 0:G())===1?a("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelExpansiveContainerExpandedSecondary"):a("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),trailingSectionExtractOverlay:a("ytShortsSuggestedActionViewModelExtractOverlayCollapsedTrailingSection",
"ytShortsSuggestedActionViewModelExtractOverlayExpandedTrailingSection"),leadingIcon:a("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")}};
M={};M=_.Hb((M.ytShortsSuggestedActionViewModelStaticHost=function(){return!A()},M.ytShortsSuggestedActionViewModelDynamicHost=A,M.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return A()&&y()},M.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return A()&&!y()},M.ytShortsSuggestedActionViewModelExtractOverlay=function(){return K==null?void 0:K()},M));
_.SK(function(){if(A()){var m=0,R;if((R=q().animationParams)==null?0:R.shouldExpand){var se,yY;m=((yY=(se=q().animationParams)==null?void 0:se.expansionDelaySecs)!=null?yY:0)*1E3}var d$,cy=((d$=q().animationParams)==null?0:d$.shouldExpand)?setTimeout(function(){p(!0)},m):void 0,t4,ay;
m=((t4=q().animationParams)==null?0:t4.visibilityDelaySecs)?((ay=q().animationParams)==null?NaN:ay.visibilityDelaySecs)*1E3:0;var bH=setTimeout(function(){Y(!0)},m);
_.m_(function(){cy&&clearTimeout(cy);clearTimeout(bH)})}});
var D=function(m){_.Pb(m,Object.assign({},{form:{element:n.value}}))},J=_.sq(function(){var m,R=(m=t())==null?void 0:m.onTapCommand;
R&&D(R)}),Z=_.sq(function(){var m,R;
if(m=(R=O())==null?void 0:R.onTapCommand)return D(m),!1}),V=_.Kp({"vertical-align":"bottom",
"border-radius":function(){var m;return A()?((m=q().defaultContent)==null?0:m.isCircleImage)?"50%":"4px":"0px"},
width:function(){var m,R,se;return A()&&((m=q().defaultContent)==null?0:m.imageSize)?((se=(R=q().defaultContent)==null?void 0:R.imageSize)!=null?se:24)+"px":null},
height:function(){var m,R,se;return A()&&((m=q().defaultContent)==null?0:m.imageSize)?((se=(R=q().defaultContent)==null?void 0:R.imageSize)!=null?se:24)+"px":null}}),S={};
return _.W("yt-shorts-suggested-action-view-model",{class:M,el:n},_.W("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.W("button",{class:_.Hb(function(){return A()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var m;
return(m=q().useFullRoundedBorder)!=null&&m?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!O()&&A()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":A()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var m;
return(m=q().disableFixedHeight)!=null&&m?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(S.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(G==null?void 0:G())===1},S.ytShortsSuggestedActionViewModelExtractOverlayContainer=function(){return K==null?void 0:K()},S)),
"on:click":J},_.W(_.p3,{model:{color:4}}),_.W("div",{class:_.Hb(function(){return A()?g().leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.W(_.d,{cond:function(){var m;
return(m=t())==null?void 0:m.image},
then:function(m){return _.W(_.Jj,{data:m,alt:"",className:function(){return A()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:V})}}),_.W(_.d,{cond:function(){var m,R;
return(m=t())==null?void 0:(R=m.icon)==null?void 0:R.iconType},
then:function(m){return _.W(_.np,{icon:m,active:h,className:function(){return A()?E()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.W("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.W(_.d,{cond:function(){var m;
return(m=t())==null?void 0:m.primaryText},
then:function(m){var R={};return _.W("div",{class:_.Hb("ytShortsSuggestedActionViewModelStaticHostPrimaryText",(R.ytShortsSuggestedActionViewModelExpansiveContainerPrimaryText=function(){return(G==null?void 0:G())===1},R))},_.W(_.Ft,{text:m}))}}),_.W(_.d,{cond:function(){var m;
return(m=t())==null?void 0:m.secondaryText},
then:function(m){return _.W("div",{class:function(){return g().secondaryText()}},_.W(_.Ft,{text:m}))}}))),_.W(_.d,{cond:O,
then:function(m){return _.W("div",{class:_.Hb(function(){return g().trailingSection()},function(){var R,se;
return(K==null?void 0:K())&&((se=(R=g()).trailingSectionExtractOverlay)==null?void 0:se.call(R))||""}),
"aria-label":function(){var R;return(R=m().a11yLabel)!=null?R:""},
"on:click":Z,role:"button",tabindex:0},_.W(_.p3,{model:{color:4}}),_.W(_.np,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Xg");var Ul8=_.U(function(M){var q=M.data;var G=M.overlayDensity;var K=_.pI("yt-shorts-video-title-view-model");M=_.sq(function(p){if(_.t$(_.h$(p),K.value,["A".toString()]))return!1;(p=q().truncatedTextOnTapCommand)&&_.Pb(p);return!1});
var n={},E={};return _.W("yt-shorts-video-title-view-model",{el:K,class:_.Hb("ytShortsVideoTitleViewModelHost",(n.ytShortsVideoTitleViewModelHostClickable=function(){return!!q().truncatedTextOnTapCommand},n)),
"on:click":M},_.W("h2",{class:_.Hb("ytShortsVideoTitleViewModelShortsVideoTitle",(E.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(G==null?void 0:G())===1},E))},_.W(_.Ft,{text:function(){return q().text},
linkInheritColor:!0,noEndpoints:!1,userInput:!0,isHeadline:function(){return(G==null?void 0:G())===1}})))},"Yg");_.xlw=_.U(function(M){var q=M.data;var G=M.overlayDensity;var K=M.extractOverlay;var n=function(){return(G==null?void 0:G())===1};
return _.W("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.W(_.yu,{data:function(){return q().metadataItems}},{badgeViewModel:function(E){E=E.data;
return _.W("div",{class:_.Hb(function(){return n()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.W(_.Yl,{data:E}))},
playerDisclosureViewModel:function(E){E=E.data;return _.W("div",{class:_.Hb(function(){return n()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.W(_.u8s,{data:E,
extractOverlay:K}))},
shortsSuggestedActionViewModel:function(E){E=E.data;return _.W("div",{class:_.Hb(function(){return n()?"ytReelMetapanelViewModelExpansiveBlock":"ytReelMetapanelViewModelMetapanelItem"})},_.W(bFI,{data:E,
overlayDensity:G,extractOverlay:K}))},
reelChannelBarViewModel:function(E){E=E.data;var p={};return _.W("div",{class:_.Hb("ytReelMetapanelViewModelMetapanelItem",(p.ytReelMetapanelViewModelExpansive=function(){return n()},p))},_.W(J08,{data:E,
overlayDensity:G}))},
reelMultiFormatLinkViewModel:function(E){E=E.data;var p={};return _.W("div",{class:_.Hb("ytReelMetapanelViewModelMetapanelItem",(p.ytReelMetapanelViewModelExpansive=function(){return n()},p))},_.W(ZFn,{data:E,
overlayDensity:G}))},
shortsVideoTitleViewModel:function(E){E=E.data;var p={};return _.W("div",{class:_.Hb("ytReelMetapanelViewModelMetapanelItem",(p.ytReelMetapanelViewModelExpansive=function(){return n()},p))},_.W(Ul8,{data:E,
overlayDensity:G}))},
reelSoundMetadataViewModel:function(E){E=E.data;var p={};return _.W("div",{class:_.Hb("ytReelMetapanelViewModelMetapanelItem",(p.ytReelMetapanelViewModelExpansive=function(){return n()},p))},_.W(_.UTL,{data:E,
overlayDensity:G}))},
toggleButtonViewModel:function(E){E=E.data;var p={};return _.W("div",{class:_.Hb("ytReelMetapanelViewModelMetapanelItem",(p.ytReelMetapanelViewModelExpansive=function(){return n()},p))},_.W(_.Dj,{data:E}))}}))},"Zg");var zoR=_.U(function(M){var q=_.UT(M,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),G=q.size,K=q.onTap,n=q.disabled,E=q.tooltipText;return _.W("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.W(_.Yv,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:G(),disabled:n(),tooltipText:E(),onTap:K}},
iconName:M.iconType}))},"$g"),mlM=_.U(function(M){function q(v){v.stopPropagation();
v.code==="ArrowUp"?(v.preventDefault(),sLF(y.value)):v.code==="ArrowDown"?(v.preventDefault(),MCF(y.value)):v.code==="KeyM"?evj():(v.code==="KeyK"||v.code==="Space")&&$9Y(Y())}
var G=_.UT(M,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});M=G.previousButtonDisabled;var K=G.nextButtonDisabled,n=G.data,E=G.playabilityStatus,p=G.previewThumbnail,y=_.pI("ytd-shorts-miniplayer-overlay"),Y=_.pp(_.Jvy),A;_.mT(function(){(A=_.T9(y.value))&&A.addEventListener("keydown",q)});
_.m_(function(){var v;(v=A)==null||v.removeEventListener("keydown",q)});
G=function(){var v,h,t;return(v=n())==null?void 0:(h=v.reelPlayerOverlayRenderer)==null?void 0:(t=h.likeButton)==null?void 0:t.likeButtonRenderer};
return _.W("ytd-shorts-miniplayer-overlay",{el:y,class:"ytdShortsMiniplayerOverlayHost"},_.W("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Kp({"background-image":function(){var v=p();return v?'url("'+_.r7(v.thumbnails)+'")':""}})}),_.W("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.W("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.W(zoR,{iconType:function(){var v=Y();
return v===2||v===-1||v===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){$9Y(Y())},
tooltipText:function(){var v=Y();return v===1||v===3?_.Ge("PLAYER_LABEL_PAUSE"):_.Ge("PLAYER_LABEL_PLAY")}}),_.W(_.DlR,{orientation:"horizontal_right"})),_.W("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.W(zoR,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:M,onTap:function(){sLF(y.value)},
tooltipText:_.Ge("PREVIOUS_VIDEO_LABEL")}),_.W(zoR,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:K,onTap:function(){MCF(y.value)},
tooltipText:_.Ge("NEXT_VIDEO_LABEL")}),_.w("web_shorts_pip_like_button")?_.W("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.W(YAU,{buttonTooltipPosition:"left",data:G,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.W("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.W(_.d,{cond:function(){var v,h;return _.C((v=n())==null?void 0:(h=v.reelPlayerOverlayRenderer)==null?void 0:h.metapanel,
rv2)},
then:function(v){return _.W("div",{class:_.Hb("ytdShortsMiniplayerOverlayInteractive")},_.W(_.xlw,{data:v}))}})),_.W("div",{class:_.Hb("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var v;return!((v=n())==null||!v.adsOverlay)||E()&&!xV4(E())}},_.W("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.W(_.IZs,null)))),_.W(_.d,{cond:function(){var v=n(),h,t;
v=_.C(v==null?void 0:(h=v.adsOverlay)==null?void 0:(t=h.fulfillmentContent)==null?void 0:t.fulfilledLayout,cs9);return _.C(v==null?void 0:v.renderingContent,u6p)},
then:function(v){return _.W("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.W(jm2,{data:v}))}}))},"bh");var qNy=_.U(function(){var M=_.k(_.lQ(new _.cc(NaN,NaN),void 0,"hq9Bjf")),q=M.next().value,G=M.next().value;M=_.k(_.lQ(!1,void 0,"Mu3aZc"));var K=M.next().value,n=M.next().value,E=_.k(_.lQ(!1,void 0,"LGtoFb"));M=E.next().value;var p=E.next().value,y=_.AL().resolve(_.lq).miniplayerPropSignalMap[0],Y=y.data,A=y.shortsData,v=y.nextButtonDisabled,h=y.shortsPreviewThumbnail,t=y.previousButtonDisabled,O=y.externalPlaylistData;E=y.toastData;var a=y.playabilityStatus,g=y.isDisabled,D=y.playerVe,J=y.closeVe;
y=_.pp(_.rx);_.kI("yt-pip-window-resized",function(m){G(m)});
_.kI("yt-activate-pip-miniplayer",function(){return _.L(function(m){p(!0);_.gL(m)})});
var Z=function(){var m;return!((m=O())==null||!m.contents)&&K()},V=function(){var m=q(),R=!!Y(),se=Z();
m=m.clone();R&&(m.height-=76);se&&(m.height-=285);return m},S=function(){n(!K())};
_.zL(function(){var m=D(),R=_.Cx(11),se=_.wt(11);R&&se&&m&&(_.QQ(R,se,m),se=J())&&(_.IJ(R,m,[se]),_.uO(R,[se]))},"fHkmfb");
return _.W("ytd-pip-container",{class:"ytdPipContainerHost"},_.W(_.d,{cond:M,then:function(){return _.W(_.R9n,{isDisabled:g,playabilityStatus:a,size:V})}}),_.W(_.d,{cond:Y,
then:function(){return _.W(_.ju5,{data:Y,expanded:K,onExpandClick:S,playlistData:O})}}),_.W(_.d,{cond:Z,
then:function(){return _.W("div",{class:"ytdPipContainerPlaylistPanel"},_.W(_.y9n,{data:O,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.W(_.d,{cond:y,
then:function(){return _.W(mlM,{data:A,nextButtonDisabled:v,previousButtonDisabled:t,playabilityStatus:a,previewThumbnail:h})}}),_.W("div",{class:"ytdPipContainerToast"},_.W(_.ffR,{toastData:E})))},"dh");var WZ=function(M,q,G){var K=this;this.pipController=M;this.JSC$18973_clientRoot=q;this.JSC$18973_pageRequestService=G;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=d9j();this.watchPipEnabled=_.w("web_watch_pip");this.shortsPipEnabled=_.w("web_shorts_pip");this.JSC$18973_watchWhileEnabled=_.w("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;_.IQ(_.zw(),Bg$,function(n){K.isSingleOptionSurveyActive=n});
this.JSC$18973_onPlayerPlayVideo=this.JSC$18973_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);_.KI(_.GC.getInstance(),this.miniplayerServiceActionMap,this.JSC$18973_clientRoot);M.pictureInPictureSupported()&&_.ml("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},df$,eoU,Ro5,$lI,swM,gQM;
WZ.prototype.handleMediaSessionPipActivation=function(){var M=this,q;return _.L(function(G){_.Bg().mediaSessionPipActivation=!0;q=_.AL().resolve(_.md);return q.isOnWatch()&&M.watchPipEnabled?(_.Bg().watchPipActivation=!0,_.ShR(M,q.data),G.jumpTo(0)):q.isOnShorts()&&M.shortsPipEnabled?(_.Bg().shortsPipActivation=!0,_.T8v(M),G.jumpTo(0)):M.isMiniplayerActive()&&M.watchPipEnabled&&!M.watchWhileMode?G.yield(r0g(M),0):G.jumpTo(0)})};
var r0g=function(M){var q,G,K,n;return _.L(function(E){if(E.nextAddress==1)return q=!M.miniplayerToPipMode,G=M.playerElement,K=M.miniplayerData,n=M.watchResponse,E.yield(M.deactivate(),2);if(E.nextAddress!=3)return q?(_.Bg().mediaSessionPipActivation=!0,_.Bg().watchPipActivation=!0):_.Bg().miniplayerButtonActivation=!0,E.yield(M.activate(G,K,n),3);M.miniplayerToPipMode=q;_.gL(E)})};
WZ.prototype.onDownloadedVideoDeleted=function(M){var q,G=_.C((q=this.miniplayerData)==null?void 0:q.watchEndpoint,_.Jl),K,n;G&&((K=this.watchResponse)==null?void 0:(n=K.playerResponse)==null?void 0:n.offlineState)!==void 0&&(q=G.videoId)&&M&&q===M&&this.close()};
WZ.prototype.onShowMiniplayerCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t;return _.L(function(O){switch(O.nextAddress){case 1:return G=_.C(M,QQd),n=(K=G)==null?void 0:K.miniplayerCommand,E=_.C(n,_.Jl),n&&E&&!q.active?O.yield(_.xx.getInstance(),2):O.return();case 2:return p=O.yieldResult,O.yield((y=p)==null?void 0:y.get("yt-miniplayer-shown-video-id"),3);case 3:Y=O.yieldResult;A=E.videoId;if(!A||Y===A)return O.return();v=_.AL().resolve(_.md);if(v.isOnWatch())return _.j1(Error("Sj")),O.return();
h={channelItem:{externalId:btoa(A)}};q.readyToResumeVe=_.$m(121253,void 0,void 0,h);_.Bg().showMiniplayerCommandActivation=!0;return O.yield(_.Byd(q,n,!0),4);case 4:return q.active&&(_.AB(q,{readyToResumeVe:q.readyToResumeVe,isReadyToResume:!0}),q.isReadyToResume=!0),O.yield((t=p)==null?void 0:t.set("yt-miniplayer-shown-video-id",E.videoId),5);case 5:q.readyToResumeVe=void 0,_.gL(O)}})};
WZ.prototype.init=function(M){this.miniplayerEl?_.j1(new _.bj("MiniplayerService already initialized.")):this.miniplayerEl=M};
WZ.prototype.isInitialized=function(){var M=!!this.miniplayerEl;M||_.j1(new _.bj("MiniplayerService used before initialized."));return M};
_.ShR=function(M,q){if(M.isInitialized()){var G=_.OF(q.response,!1,q.playerResponse),K=_.AL().resolve(_.md).getPlayerFromWatch();_.Bg().currentEndpoint=G.watchEndpoint||null;M.activate(K,G,q)}};
_.T8v=function(M){if(M.isInitialized()){var q=_.AL().resolve(_.md).getPlayerFromShorts();M.activate(q)}};
df$=function(M,q){var G;(G=!M.isInitialized())||(G=_.AL().resolve(_.md).isOnWatch()&&M.watchPipMode,G=!(M.isMiniplayerActive()&&(_.Bg().userActivation||_.Bg().lockupActivation||G)));if(G)return!1;jnw(M,q)?_.yy(M):gQM(M,q);return M.watchPipMode?!_.AL().resolve(_.md).isOnWatch():!0};
WZ.prototype.isMiniplayerActive=function(){return this.active};
var jnw=function(M,q){var G;q=(G=_.C(q,_.Jl))==null?void 0:G.videoId;var K,n;M=(n=_.C((K=M.miniplayerData)==null?void 0:K.watchEndpoint,_.Jl))==null?void 0:n.videoId;return q!=null&&q===M};
WZ.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.jP(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.VW(this.miniplayerEl,"yt-navigate-home-action"))};
_.Byd=function(M,q,G,K){G=G===void 0?!1:G;var n,E,p;return _.L(function(y){switch(y.nextAddress){case 1:if(M.active){y.jumpTo(2);break}n=_.AL().resolve(_.md);if(p=(E=M.playerElement)!=null?E:n.getPlayerFromWatch()){y.jumpTo(3);break}return y.yield(_.AL().resolve(_.fp),4);case 4:p=n.getPlayerFromWatch();case 3:if(!p){_.j1(Error("Uj"));y.jumpTo(2);break}return y.yield(M.activate(p,K),2);case 2:return M.active?y.yield(gQM(M,q,G),0):y.return()}})};
WZ.prototype.activate=function(M,q,G){var K=this,n,E,p,y,Y,A,v,h,t;return _.L(function(O){switch(O.nextAddress){case 1:if(!K.isInitialized())return O.return();if(!M)return _.j1(Error("Uj")),O.return();if(_.$iS()||K.isMiniplayerActive())var a=!0;else a=_.Bg().watchPipActivation||_.Bg().watchWhileActivation,_.AL().resolve(_.md).isOnWatch()&&!a?(_.j1(new _.bj("miniplayer activated on watch page")),a=!0):a=_.Bg().watchWhileActivation?K.userDeactivatedWatchWhile||!!document.pictureInPictureElement||wkj():
!1;if(a)return ePx(),O.return();n=_.Bg().mediaSessionPipActivation;E=_.Bg().shortsPipActivation;p=_.Bg().watchPipActivation;Y=(y=_.Bg().watchWhileActivation)||p;A=p||E;if(!K.pictureInPictureEnabled()||!A){O.jumpTo(2);break}return O.yield(VGv(K,n),3);case 3:if(!O.yieldResult)return _.j1(Error("Tj")),ePx(),O.return();case 2:return K.setActive(!0),K.watchResponse=G,K.playerElement=M,K.updateMiniplayerData(q),O.yield(Ro5(K,M),4);case 4:if(!K.active)return _.j1(new _.bj("miniplayer deactivated during activation")),
K.removePlayerListeners(),O.return();a=_.AL().resolve(_.$x);a.addEventListener("yt-navigate",_.qs(K,K.onPlaylistNavigate));a.addEventListener("yt-playlist-data-updated",_.qs(K,K.JSC$18973_onPlaylistDataUpdated));K.JSC$18973_onPlaylistDataUpdated();ePx();K.JSC$18973_watchWhileEnabled&&_.fZs(K,y);K.pictureInPictureEnabled()&&K.shortsPipEnabled&&(K.shortsPipMode=E,_.zw().dispatch(UjM(K.shortsPipMode)));K.pictureInPictureEnabled()&&K.watchPipEnabled&&(K.watchPipMode=p,_.aLy(K.handleMediaSessionPipActivation));
K.player&&(v=K.player.getPlayerState(),h=v===1,_.zw().dispatch(R8I(v)),_.Rf(K.miniplayerEl,"yt-miniplayer-play-state-changed",[h]),_.Bg().isVideoPlaying=h);_.Rf(K.miniplayerEl,"yt-miniplayer-endpoint-changed");Fm5(K);_.HFI(K);if(K.shortsPipMode||K.watchPipMode)O=O.yield(_.VW(K.miniplayerEl,"yt-activate-pip-miniplayer")[0],6);else{a=O.yield;var g=_.VW(K.miniplayerEl,"yt-activate-miniplayer",[Y])[0];O=a.call(O,g,6)}return O;case 6:if(K.watchResponse){a=K.getScreenLayer();g=_.Cx(0);var D=yti(0);g&&D&&
(_.of(g,D,a),a===0&&kbj(void 0,0))}eoU(K);$lI(K,!0);(t=K.getPlayerElement())==null||t.focusOnPlayer();_.gL(O)}})};
WZ.prototype.updateMiniplayerData=function(M){this.miniplayerData=M;_.AB(this,{data:M})};
_.HFI=function(M){var q,G,K=((q=M.miniplayerData)==null?void 0:(G=q.miniplayerRenderer)==null?void 0:G.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";q=M.watchWhileMode||M.watchPipMode?K&&!_.AL().resolve(_.md).isOnWatch():K;_.AB(M,{isDisabled:q});var n,E;G=_.C((n=M.miniplayerData)==null?void 0:(E=n.miniplayerRenderer)==null?void 0:E.minimizedEndpoint,_.BA);q&&G&&_.AL().resolve(_.ZB).openSheet({openPopupActionCommand:{openPopupAction:G}},M.miniplayerEl)};
eoU=function(M){if(M.watchResponse&&!swM(M)){var q,G=(q=M.watchResponse.playerResponse)==null?void 0:q.trackingParams;G&&(_.AB(M,{expandVe:_.$m(35989),closeVe:_.$m(34699),readyToResumeCloseVe:_.$m(131070),repositionVe:_.$m(226204),resizeVe:_.$m(226205)}),_.AB(M,{playerVe:_.yx(G)}))}};
Ro5=function(M,q){return _.L(function(G){if(G.nextAddress==1)return q.preparePlayer(),G.yield(q.getPlayerPromise(),2);M.player=G.yieldResult;M.player&&(M.player.addEventListener("onPlayVideo",M.JSC$18973_onPlayerPlayVideo),M.player.addEventListener("onCloseMiniplayer",M.onPlayerCloseMiniplayer),M.player.addEventListener("onExpandMiniplayer",M.onPlayerExpandMiniplayer),M.player.addEventListener("onStateChange",M.onPlayerStateChange));_.gL(G)})};
_.N=WZ.prototype;_.N.JSC$18973_onPlayerPlayVideo=function(M){var q=M.sessionData&&"autonav"in M.sessionData,G;M.sessionData&&M.sessionData.itct&&(G=M.sessionData.itct);var K=M.watchEndpoint;q=K&&q?_.TSe(K,G):_.Te(M.videoId,M.listId||void 0,G);M.sessionData&&_.xD(_.C(q.commandMetadata,_.Mg).url,M.sessionData);gQM(this,q)};
_.N.onPlayerExpandMiniplayer=function(){_.yy(this)};
_.N.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.N.onPlayerStateChange=function(){if(this.player){var M=this.player.getPlayerState(),q=M===1;_.zw().dispatch(R8I(M));_.zw().dispatch(_.HMP(M));_.Rf(this.miniplayerEl,"yt-miniplayer-play-state-changed",[q]);_.Bg().isVideoPlaying=q;if(M===0){q=!_.Yx.getInstance().isAutoplaySetExplicitly();var G,K,n,E,p,y,Y=(G=this.watchResponse.response)==null?void 0:(K=G.contents)==null?void 0:(n=K.twoColumnWatchNextResults)==null?void 0:(E=n.autoplay)==null?void 0:(p=E.autoplay)==null?void 0:(y=p.autoplayExplicitChoiceDialogRenderer)==
null?void 0:y.confirmDialogRenderer;q&&Y&&this.player.setAutonavState(1)}M===0&&this.watchWhileMode&&this.deactivate()}};
_.N.onPlaylistNavigate=function(M,q){var G=this,K,n,E,p,y,Y,A;return _.L(function(v){if(v.nextAddress==1){if(!_.C(q.endpoint,_.Jl))return v.return();_.Bg().currentEndpoint=q.endpoint;_.Rf(G.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.AL().resolve(_.md).isOnWatch()&&(G.watchWhileMode||G.watchPipMode))return v.return();M.stopPropagation();(E=(n=_.C((K=q.endpoint)==null?void 0:K.commandMetadata,_.Mg))==null?void 0:n.url)&&q.tempData&&!_.xP.isEmpty(q.tempData)&&_.xD(E,q.tempData);p={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};y=new HUd(function(){return G.getPlayerElement()},p,{layer:G.getScreenLayer()});
Y=function(h){y.processChunk({endpoint:q.endpoint,data:h})};
M1s(G);G.miniplayerFetchRequest=q4w(G,q.endpoint,Y);_.Cv(v,2);return v.yield(G.miniplayerFetchRequest,4)}if(v.nextAddress!=2)return A=v.yieldResult,G6g(G,A),_.KF(v,0);_.i5(v);_.gL(v)})};
_.N.JSC$18973_onPlaylistDataUpdated=function(){var M=_.AL().resolve(_.$x).getPlaylistData();this.hasPlaylistData=!!M;_.AB(this,{externalPlaylistData:M||{}})};
_.N.close=function(M){if(this.isInitialized())if(M){if(!((this.watchWhileMode||this.watchPipMode)&&_.AL().resolve(_.md).isOnWatch()||this.shortsPipMode)){var q;(q=this.getPlayerElement())==null||q.stop()}this.deactivate()}else _.KV().closeMiniplayer(this.miniplayerEl)};
_.N.deactivate=function(M){var q=this,G,K,n,E;return _.L(function(p){if(p.nextAddress==1){if(!q.isInitialized()||!q.active)return p.return();q.setActive(!1);M1s(q);(G=!!M&&jnw(q,M))&&q.isSingleOptionSurveyActive&&_.VW(q.miniplayerEl,"yt-show-watch-page-survey",[q.isSingleOptionSurveyActive]);return p.yield(KlE(q),2)}if(p.nextAddress!=3){$lI(q,!1);q.isReadyToResume=!1;q.watchResponse=void 0;q.updateMiniplayerData(void 0);q.shortsPipMode&&(q.shortsPipMode=!1,_.zw().dispatch(UjM(q.shortsPipMode)),v_U(q.pipController),
(K=q.player)==null||K.setInternalSize(NaN,NaN));q.watchPipMode&&(q.watchPipMode=!1,v_U(q.pipController));(n=q.watchWhileMode)&&_.fZs(q,!1);q.removePlayerListeners();var y=_.AL().resolve(_.$x);y.removeEventListener("yt-navigate",_.qs(q,q.onPlaylistNavigate));y.removeEventListener("yt-playlist-data-updated",_.qs(q,q.JSC$18973_onPlaylistDataUpdated));_.Bg().currentEndpoint=null;_.Rf(q.miniplayerEl,"yt-miniplayer-endpoint-changed");q.playerElement=null;ePx();if(q.shortsPipMode||q.watchPipMode)p=p.jumpTo(3);
else{y=p.yield;var Y=_.VW(q.miniplayerEl,"yt-deactivate-miniplayer",[G,n])[0];p=y.call(p,Y,3)}return p}(E=q.player)==null||E.setInternalSize(NaN,NaN);q.player=null;_.gL(p)})};
var KlE=function(M){var q;return _.L(function(G){q=_.AL().resolve(_.md);return M.shortsPipMode?G.yield(q.movePlayerToShorts(M.playerElement),0):G.yield(q.movePlayerToWatch(M.playerElement),0)})};
WZ.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$18973_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
WZ.prototype.setActive=function(M){this.active=M;this.isSingleOptionSurveyActive?_.VW(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.VW(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.zw().dispatch(_.RJ({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.fZs=function(M,q){M.watchWhileMode=q;_.AB(M,{watchWhile:q})};
$lI=function(M,q){if(!swM(M))if(M.shortsPipMode||M.watchPipMode){var G;(G=M.player)==null||G.setDocumentPictureInPicture(q)}else{var K;(K=M.player)==null||K.setMinimized(q)}};
swM=function(M){return M.watchWhileMode&&_.w("kevlar_watch_while_counterfactual")};
_.yy=function(M){var q;return _.L(function(G){switch(G.nextAddress){case 1:if(!M.isInitialized())return G.return();_.Cv(G,2);return G.yield(M.miniplayerFetchRequest,4);case 4:_.KF(G,3);break;case 2:_.i5(G);case 3:M.watchResponse&&M.miniplayerData&&M.miniplayerData.watchEndpoint?(q={url:M.watchResponse.url,endpoint:M.miniplayerData.watchEndpoint,data:M.watchResponse,miniplayer:!0},_.jP(M.miniplayerEl,"yt-navigate-cache",q)):M.miniplayerData&&M.miniplayerData.watchEndpoint&&_.jP(M.miniplayerEl,"yt-navigate",
{endpoint:M.miniplayerData.watchEndpoint}),_.gL(G)}})};
gQM=function(M,q,G){var K,n,E,p;return _.L(function(y){if(y.nextAddress==1){if(jnw(M,q))return y.return();_.Bg().currentEndpoint=q;_.Rf(M.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Rf(M.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.Bg().isVideoPlaying=!1;K={clientParams:{miniplayer:!0,autoSaveToQueue:!G}};n=new HUd(function(){return M.getPlayerElement()},K,{layer:M.getScreenLayer(),
parentLayer:0},void 0,M.readyToResumeVe);E=function(Y){var A,v,h=Object.assign({},(A=Y.playerResponse)==null?void 0:(v=A.playerConfig)==null?void 0:v.playbackStartConfig,{startPaused:!0}),t;G&&((t=Y.playerResponse)==null?0:t.playerConfig)&&(Y.playerResponse.playerConfig.playbackStartConfig=h);n.processChunk({endpoint:q,data:Y})};
M1s(M);M.miniplayerFetchRequest=q4w(M,q,E);_.Cv(y,2);return y.yield(M.miniplayerFetchRequest,4)}if(y.nextAddress!=2)return p=y.yieldResult,G6g(M,p),_.KF(y,0);_.i5(y);_.gL(y)})};
WZ.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var M1s=function(M){M.miniplayerFetchRequest&&(M.miniplayerFetchRequest.cancel&&M.miniplayerFetchRequest.cancel("Active request obsolete"),M.miniplayerFetchRequest=null)},q4w=function(M,q,G){var K,n=(K=_.C(q.commandMetadata,_.Mg))==null?void 0:K.url,E;
K=!n||_.w("disable_miniplayer_tempdata")?{}:(E=FxF(n))!=null?E:{};return iq(M.JSC$18973_pageRequestService,q,K,window.location.href,"watch",function(p,y){G(y)},function(p){return p!==M.miniplayerFetchRequest})},G6g=function(M,q){var G;
_.L(function(K){if(!q)return K.return();M.watchResponse=q;eoU(M);Fm5(M);G=_.OF(q.response,!1,q.playerResponse);if(M.isMiniplayerActive()){q.response&&(M.playerElement.watchNextData=q.response);var n=_.xP.getValueByKeys.apply(_.xP,[q].concat(_.Ui(N0p)));_.xP.getValueByKeys.apply(_.xP,[q].concat(_.Ui(Yt9)))&&n&&_.AL().resolve(_.$x).setAutoplayRenderer(n);if(n)if(_.w("kevlar_is_pupi_enabled")){var E,p,y,Y,A,v=((E=q.response)==null?0:(p=E.playerOverlays)==null?0:(y=p.playerOverlayRenderer)==null?0:(Y=
y.autonavToggle)==null?0:(A=Y.autoplaySwitchButtonRenderer)==null?0:A.enabled)?2:1;_.Yx.getInstance().setState(v,!1,!1)}else E=pAj()?2:1,(v=M.player)==null||v.setAutonavState(E);M.updateMiniplayerData(G);_.HFI(M)}_.gL(K)})},Fm5=function(M){var q,G,K=(q=M.watchResponse)==null?void 0:(G=q.playerResponse)==null?void 0:G.playabilityStatus,n;
q=K==null?void 0:(n=K.miniplayer)==null?void 0:n.miniplayerRenderer;(q==null?void 0:q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&q.minimizedEndpoint&&_.fx(M.miniplayerEl,[q.minimizedEndpoint]);_.AB(M,{playabilityStatus:K})};
WZ.prototype.openToast=function(M,q){_.AB(this,{toastData:{data:M,label:q}})};
_.AB=function(M,q){(0,M.miniplayerPropSignalMap[1])(q)};
WZ.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var M;return this.playerElement?this.playerElement:(M=_.f_(this.miniplayerEl).querySelector("#player-container"))==null?void 0:M.firstElementChild};
WZ.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var VGv=function(M,q){q=q===void 0?!1:q;var G,K,n,E,p,y,Y;return _.L(function(A){if(A.nextAddress==1){G=navigator.userActivation.isActive||q;if(!G||!M.pictureInPictureSupported())return A.return(!1);K=ncI(M);n=K.width;E=K.height;return A.yield(M.pipController.openWindow({width:n,height:E}),2)}p=A.yieldResult;y=M.pipController.getWindow();if(!y||!p)return A.return(!1);y.document.body.style.overflow="hidden";Y=GHj(y);hB5(M.pipController,function(){Ecw(M);Y()});
return A.return(!0)})},ncI=function(M){var q=_.Bg().shortsPipActivation,G,K;
M=q?.5625:(K=(G=M.player)==null?void 0:G.getVideoAspectRatio())!=null?K:16/9;G=Math.min(window.innerWidth,window.innerHeight)/2;q=q?0:76;return M>1?new _.cc(G,q+G/M):new _.cc(G*M,q+G)},Ecw=function(M){var q;
_.L(function(G){q=_.AL().resolve(_.md);return q.isOnWatch()&&M.watchPipMode||q.isOnShorts()&&M.shortsPipMode?G.yield(M.deactivate(),0):M.miniplayerToPipMode?G.yield(r0g(M),0):M.watchPipMode?G.yield(_.yy(M),0):G.jumpTo(0)})};
WZ.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Yd.Object.defineProperties(WZ.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
WZ[dP]=[t_v,yyS,_.Ls];var NMR="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(" "),
k6L="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(" "),prR="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
yps="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var Llg=function(M,q,G){_.uI.call(this);this.store=M;this.panelController=q;this.pageContentExtractor=G;this.isInitialized=!1;this.environment=void 0};
_.l(Llg,_.uI);Llg.prototype.init=function(M){var q=this;this.isInitialized||(this.isInitialized=!0,this.environment=M!=null?M:"CHAT_ENVIRONMENT_ENUM_YOUCHAT",M=_.IQ(this.store,_.gx.currentPageSubTypeSelector,function(G){a:if(_.Y48(q))switch(G){case "shorts":case "learning":case "learning_journey_watch":case "learning_journey_browse":G=!0;break a;default:G=!1}else G=!1;G&&q.panelController.hidePanel({identifier:"PAai_companion"})}),this.addOnDisposeCallback(M))};
_.Y48=function(M){return M.environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"};
Llg[dP]=[_.xy,_.Ja,kL8];_.Wln=new _.$k("AI_CHAT_CONTROLLER_TOKEN");_.ApI=_.U(function(M){return _.W("yt-channel-attribution-view-model",{class:_.Hb("ytChannelAttributionViewModelHost",M.className)},_.W("div",{class:"ytChannelAttributionViewModelUpper"},_.W(_.yu,{data:function(){return M.data().avatar}},{decoratedAvatarViewModel:_.mF}),_.W("div",{class:"ytChannelAttributionViewModelChannelTitle"},_.W(_.Ft,{text:function(){return M.data().title}}))),_.W("div",{class:"ytChannelAttributionViewModelBottom"},_.W(_.Ft,{text:function(){return M.data().subtitle}})))},"fh");var d8E=_.U(function(M){var q=_.k(_.lQ(!1,void 0,"MFRKRb")),G=q.next().value,K=q.next().value,n=function(){return M.data().activeRenderer},E=function(){return M.data().inactiveRenderer};
return _.W("yt-channel-disclosure-view-model",{"on:mouseleave":_.sq(function(){K(!1)}),
"on:mouseover":_.sq(function(){K(!0)}),
class:_.Hb("ytChannelDisclosureViewModelHost",M.className)},_.W(_.d,{cond:function(){return G()},
then:function(){return _.W(_.yu,{data:n},{channelAttributionViewModel:_.ApI})},
else:function(){return _.W(_.yu,{data:E},{decoratedAvatarViewModel:_.mF})}}))},"gh");var vc5=null;var hDU={},t1R=(hDU.initialized={priority:10,callback:function(M){var q=_.AL();q.addProvider({provide:w2$,useClass:tKw});q.addProvider({provide:_.hyE,useFactory:function(){return new CFv}});
q.addProvider({provide:jx,useValue:_.R9("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});q.addProvider({provide:R7R,useValue:5184E6});q.addProvider({provide:hqv,useValue:_.AM()});q.addProvider({provide:TcE,useClass:yI9});q.addProvider({provide:eL,useClass:eL});q.addProvider({provide:_.fp,useFactory:function(){return xjB.promise}});
q.addProvider({provide:_.mjP,useFactory:function(){return _.z8$.promise}});
q.addProvider({provide:UGy,useValue:function(){var Y;return((Y=_.TM())==null?void 0:Y.getPlayer())||null}});
var G={};q.addProvider((G.provide=_.Q4,G.useFactory=function(Y,A){return function(){return N3y(Y,A)}},G[dP]=[jx,
R7R],G));G={};q.addProvider((G.provide=_.ta,G.useClass=Ncw,G[dP]=[jx,R7R],G));G={};q.addProvider((G.provide=_.Ooy,G.useClass=Lvw,G[dP]=[_.ta],G));q.addProvider({provide:Zq,useFactory:_.zw});q.addProvider({provide:Sb,useFactory:_.zw});q.addProvider({provide:$y5,useFactory:_.zw});q.addProvider({provide:Z8U,useFactory:_.zw});q.addProvider({provide:_.xy,useFactory:_.zw});q.addProvider({provide:wu,useValue:_.Gw});q.addProvider({provide:Ybg,useClass:jtD});q.addProvider({provide:AxR,useClass:WwU});q.addProvider({provide:hW,
useClass:hW});q.addProvider({provide:AI,useClass:AI});q.addProvider({provide:En,useClass:En});q.addProvider({provide:dR,useClass:dR});q.addProvider({provide:lr,useClass:lr});q.addProvider({provide:nB,useClass:nB});q.addProvider({provide:rR,useClass:rR});q.addProvider({provide:_.Wq,useValue:DzU});G={};q.addProvider((G.provide=QgM,G.useFactory=function(Y){return Y.watchEndpointMap||{}},G[dP]=[_.Wq],G));
G={};q.addProvider((G.provide=IJR,G.useFactory=function(Y){return Y.reelWatchEndpointMap||{}},G[dP]=[_.Wq],G));
q.addProvider({provide:_.Q$,useFactory:_.nl});q.addProvider({provide:cQ,useFactory:_.El});G={};q.addProvider((G.provide=KjD,G.useFactory=function(Y){return function(A){var v=v===void 0?{}:v;var h,t,O=(t=_.C((h=A.endpoint)==null?void 0:h.commandMetadata,_.Mg))==null?void 0:t.rootVe;if(O){var a,g;if(h=A.previousCsn||((g=_.C((a=A.endpoint)==null?void 0:a.commandMetadata,pJl))==null?void 0:g.parentCsn)){var D=D===void 0?{}:D;if(h!==_.Cx(D.layer)||O!==yti(D.layer))dSj(h,D.cttAuthInfo,D.layer||0),kbj(h,
D.layer||0),a=D.layer||0,_.Vz(pnH(a===void 0?0:a),O);v.parentCsn=h}A.endpoint&&h?DiS(Y,A.endpoint,v):_.aQ(Y,O,void 0,v);var J;((J=A.response)==null?0:J.trackingParams)&&Y.graftServerVe(A.response.trackingParams);var Z;((Z=A.playerResponse)==null?0:Z.trackingParams)&&Y.graftServerVe(A.playerResponse.trackingParams);var V;((V=A.reelWatchSequenceResponse)==null?0:V.trackingParams)&&Y.graftServerVe(A.reelWatchSequenceResponse.trackingParams)}}},G[dP]=[_.Q$],G));
G={};q.addProvider((G.provide=M_L,G.useClass=sYR,G[dP]=[wu,_.xy],G));G={};q.addProvider((G.provide=SZ,G.useClass=SZ,G[dP]=[_.fp,_.xy],G));G={};q.addProvider((G.provide=U$,G.useClass=U$,G[dP]=[Sb,_.vR],G));q.addProvider({provide:_.pmv,useClass:wmw});G={};q.addProvider((G.provide=_.Ja,G.useClass=Y95,G[dP]=[_.pmv,_.WR(_.UW)],G));q.addProvider({provide:_.nQ,useClass:Ag8});G={};q.addProvider((G.provide=kO,G.useClass=kO,G[dP]=[_.nQ,_.fp,_.YU,_.vR],G));q.addProvider({provide:_.ZB,useClass:jZ});q.addProvider({provide:_.pcw,
useClass:s98});q.addProvider({provide:_.b4,useClass:Tv});_.w("enable_ai_companion")&&(q.addProvider({provide:_.UW,useClass:dTP}),q.addProvider({provide:_.kP9,useClass:lK9}),q.addProvider({provide:kL8,useClass:NYg}),q.addProvider({provide:QV,useClass:QV}),q.addProvider({provide:kgl,useValue:d8E}));_.w("enable_ai_chat_controller")&&q.addProvider({provide:_.Wln,useClass:Llg});G={};q.addProvider((G.provide=_.lK,G.useClass=OWn,G[dP]=[_.lK],G));q.addProvider({provide:_.vj,useClass:NLn});q.addProvider({provide:mB,
useClass:mB});q.addProvider({provide:Lf,useClass:Lf});q.addProvider({provide:Rh,useClass:Rh});G={};q.addProvider((G.provide=i6,G.useClass=i6,G[dP]=[_.vR,_.YU],G));q.addProvider({provide:Kf,useClass:rf});G={};q.addProvider((G.provide=NR,G.useClass=NR,G[dP]=[_.ZB,Kf],G));G={};q.addProvider((G.provide=MR,G.useClass=MR,G[dP]=[_.ZB],G));_.w("web_enable_feedback_endpoint_resolver")&&(G={},q.addProvider((G.provide=b6,G.useClass=b6,G[dP]=[Zq,JP],G)),q.addProvider({provide:JP,useClass:z7R}));_.w("web_enable_feedback_endpoint_resolver_batch_2")&&
(G={},q.addProvider((G.provide=x0,G.useClass=x0,G[dP]=[Zq],G)),G={},q.addProvider((G.provide=Uo,G.useClass=Uo,G[dP]=[JP],G)));G={};q.addProvider((G.provide=nf,G.useClass=nf,G[dP]=[_.b4,Kf],G));G={};q.addProvider((G.provide=ex,G.useClass=ex,G[dP]=[_.b4],G));G={};q.addProvider((G.provide=Em,G.useClass=Em,G[dP]=[_.YU,_.Ja],G));G={};q.addProvider((G.provide=GG,G.useClass=GG,G[dP]=[_.YU,_.Q$],G));q.addProvider({provide:uK,useClass:uK});G={};q.addProvider((G.provide=iK,G.useClass=iK,G[dP]=[Zq],G));q.addProvider({provide:ff,
useClass:ff});q.addProvider({provide:R6,useClass:R6});G={};q.addProvider((G.provide=HQ,G.useClass=HQ,G[dP]=[Zq],G));G={};q.addProvider((G.provide=e3,G.useClass=e3,G[dP]=[_.YU,Zq],G));G={};q.addProvider((G.provide=$b,G.useClass=$b,G[dP]=[Zq],G));G={};q.addProvider((G.provide=sn,G.useClass=sn,G[dP]=[Zq],G));G={};q.addProvider((G.provide=sm,G.useClass=sm,G[dP]=[_.Ja],G));G={};q.addProvider((G.provide=xb,G.useClass=xb,G[dP]=[_.Q$],G));G={};q.addProvider((G.provide=j3,G.useClass=j3,G[dP]=[I6],G));G={};
q.addProvider((G.provide=V_,G.useClass=V_,G[dP]=[I6],G));q.addProvider({provide:S3,useClass:S3});q.addProvider({provide:TG,useClass:TG});q.addProvider({provide:Um,useClass:Um});G={};q.addProvider((G.provide=kb,G.useClass=kb,G[dP]=[_.Ja,_.vR],G));q.addProvider({provide:ru,useClass:ru});G={};q.addProvider((G.provide=qR,G.useClass=qR,G[dP]=[_.YU,_.Ja],G));q.addProvider({provide:fy,useClass:fy});G={};q.addProvider((G.provide=XC,G.useClass=XC,G[dP]=[Zq,_.YU,_.lK],G));G={};q.addProvider((G.provide=a6,G.useClass=
a6,G[dP]=[_.YU,_.vR],G));q.addProvider({provide:q3v,useValue:Wsy});q.addProvider({provide:puB,useValue:$ds});q.addProvider({provide:o6,useClass:o6});G={};q.addProvider((G.provide=Cf,G.useClass=Cf,G[dP]=[Zq],G));G={};q.addProvider((G.provide=PQ,G.useClass=PQ,G[dP]=[_.vj,_.vR],G));G={};q.addProvider((G.provide=zJ,G.useClass=zJ,G[dP]=[_.vR],G));q.addProvider({provide:u6,useFactory:function(){return new u6(_.zw())}});
q.addProvider({provide:oMi,useFactory:_.Qr.getInstance});G={};q.addProvider((G.provide=VV,G.useClass=VV,G[dP]=[jx,oMi,_.vR],G));q.addProvider({provide:Sx,useClass:Sx});q.addProvider({provide:cC,useClass:cC});q.addProvider({provide:BC,useClass:BC});q.addProvider({provide:_.gu,useClass:_.gu});q.addProvider({provide:GB,useClass:GB});G={};q.addProvider((G.provide=vQ,G.useClass=vQ,G[dP]=[Sb],G));G={};q.addProvider((G.provide=y_,G.useClass=y_,G[dP]=[_.vR],G));G={};q.addProvider((G.provide=hT,G.useClass=
hT,G[dP]=[_.vR],G));G={};q.addProvider((G.provide=tT,G.useClass=tT,G[dP]=[_.vR],G));_.w("web_enable_prefetching_videos_on_home")&&(q.addProvider({provide:br,useClass:br}),q.addProvider({provide:Kr,useClass:Kr}));G={};q.addProvider((G.provide=qd,G.useClass=qd,G[dP]=[_.vR],G));q.addProvider({provide:Ih,useClass:Ih});G={};q.addProvider((G.provide=JT,G.useClass=JT,G[dP]=[_.YU,_.vR],G));G={};q.addProvider((G.provide=Dq,G.useClass=Dq,G[dP]=[_.vR],G));G={};q.addProvider((G.provide=nr,G.useClass=nr,G[dP]=
[_.YU,_.vR],G));q.addProvider({provide:GN,useClass:GN});q.addProvider({provide:WQ,useClass:WQ});G={};q.addProvider((G.provide=Yb,G.useClass=Yb,G[dP]=[Sb,_.vR],G));q.addProvider({provide:AT,useClass:AT});G={};q.addProvider((G.provide=yU,G.useClass=yU,G[dP]=[Sb,_.vR,_.YU],G));G={};q.addProvider((G.provide=LQ,G.useClass=LQ,G[dP]=[_.vR],G));G={};q.addProvider((G.provide=pQ,G.useClass=pQ,G[dP]=[_.vR,_.YU],G));G={};q.addProvider((G.provide=wA,G.useClass=wA,G[dP]=[_.fp],G));G={};q.addProvider((G.provide=
Om,G.useClass=Om,G[dP]=[_.fp],G));G={};q.addProvider((G.provide=dA,G.useClass=dA,G[dP]=[_.fp],G));q.addProvider({provide:Q_,useClass:Q_});q.addProvider({provide:D9,useClass:D9});q.addProvider({provide:FC,useClass:FC});q.addProvider({provide:Z9,useClass:Z9});q.addProvider({provide:BQ,useClass:BQ});q.addProvider({provide:FF,useClass:FF});q.addProvider({provide:gA,useClass:gA});_.w("kevlar_enable_mss_lazy_load")&&q.addProvider({provide:_.Ph,useClass:$$g});q.addProvider({provide:_.vq,useClass:RW});q.addProvider({provide:LN,
useFactory:function(){return _.GC.getInstance()}});
q.addProvider({provide:HS8,useFactory:O2j});q.addProvider({provide:I6,useFactory:function(){return _.xx.getInstance()}});
q.addProvider({provide:BZ2,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});G={};q.addProvider((G.provide=_.x4,G.useClass=_.x4,G[dP]=[_.fp,_.vR,_.Q$,HS8,I6,LN,BZ2,wu],G));q.addProvider({provide:_.oc,useClass:jPI});q.addProvider({provide:_.FwR,useClass:f2I});G={};q.addProvider((G.provide=HC,G.useClass=HC,G[dP]=[_.FwR],G));G={};q.addProvider((G.provide=_.zv,G.useFactory=function(Y){return Y.upliftCompletionResolver.promise},G[dP]=[M_L],G));
G=_.fX("IS_SHELL_LOAD")?"aa":"eocs";var K=_.fX("IS_SHELL_LOAD")?3:2;_.M5().parkOrScheduleJob(function(){GLn()},K,G);
_.M5().parkOrScheduleJob(function(){_.AL().resolve(SZ).start()},2,"eocs");
_.M5().parkOrScheduleJob(function(){ekn()},2,"eocs");
_.M5().parkOrScheduleJob(function(){_.AL().resolve(U$).start()},2,"eocs");
_.w("kevlar_debug_data_app_registration_ks")||YDy();q.addProvider({provide:_.Lp,useValue:new vC5(M.root)});q.addProvider({provide:M6,useValue:new pOD});q.addProvider({provide:_.lCR,useValue:new aCI(M.root)});q.addProvider({provide:_.L_,useValue:new oCg});q.addProvider({provide:_.oq,useClass:cl});q.addProvider({provide:t_v,useClass:V4});_.w("kevlar_network_sli_killswitch")||q.addProvider({provide:XME,useValue:FRx});q.addProvider({provide:WTv,useFactory:O9Y});_.w("web_bind_fetch")&&(G={},q.addProvider((G.provide=
A3I,G.useFactory=wKY,G[dP]=[_.WR(WTv)],G)));_.w("web_bind_window_request")&&(G={},q.addProvider((G.provide=d$5,G.useFactory=C1y,G[dP]=[_.WR(WTv)],G)));_.w("web_bind_text_decoder")&&(G={},q.addProvider((G.provide=v28,G.useFactory=aXy,G[dP]=[_.WR(WTv)],G)));G={};q.addProvider((G.provide=CCw,G.useFactory=MTH,G[dP]=[_.zv,Zq,_.Q4],G));G={};q.addProvider((G.provide=wc8,G.useClass=YO,G[dP]=[CCw],G));q.addProvider({provide:MAw,useClass:H8w});q.addProvider({provide:vPI,useClass:tXR});G=[].concat(_.Ui(BSF));
_.w("web_continuation_response_processing")&&G.push(_.XY);G.push(rRd);_.w("enable_share_panel_navigation_logging_fix_on_web")&&G.push(_.nv$);q.addProvider({provide:g7H,useValue:G});q.addProvider({provide:Peu,useClass:d_w});q.addProvider({provide:BUw,useClass:Pfg});G={};q.addProvider((G.provide=am$,G.useClass=J9s,G[dP]=[Sb],G));_.r8.addLowPriorityJob(function(){uxy()});
G={};q.addProvider((G.provide=yzl,G.useFactory=function(Y){return function(A){var v,h=(v=_.C(A.commandMetadata,_.Mg))==null?void 0:v.url;if(!h)throw new _.bj("No URL for PBJ Command",A);h=SuH(h,{pbj:"1"});v=p8e(h,{})||{};v=Object.assign({},v,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.R9("STS").toString()});A=_.gP({command:JSON.stringify(A),session_token:_.R9("XSRF_TOKEN")});return Y.fetch(h,{method:"POST",headers:v,body:A})}},G[dP]=[BUw],G));
q.addProvider({provide:akw,useFactory:function(){var Y={};return Y.CSI=lX$(),Y.ECATCHER=oQs(),Y}});
q.addProvider({provide:dU$,useClass:o2I});G=[];G.push(q.resolve(vPI));K={};K=(K.client_location=_.Qr.getInstance(),K.consistency=_.d4i(),K.entities=q.resolve(AxR),K.response_received_commands=q.resolve(Peu),K.store=q.resolve(_.Ooy),K.tokens=q.resolve(vPI),K.service_params=q.resolve(dU$),K);if(_.w("web_shorts_prefetch_service_enabled")){var n=new YKI(q.resolve(_.ta));K.shorts_prefetch=n}K.adblock_detection=q.resolve(am$);q.addProvider({provide:_.G6,useClass:_.G6});n=q.resolve(_.Wq);var E=[];_.w("PremiumClientSharedConfig__enable_att_context_processor")&&
(q.addProvider({provide:eGP,useClass:fCL}),E.push(q.resolve(eGP)));if(_.w("owl_pl_await")){var p={};q.addProvider((p.provide=E2R,p.useFactory=function(Y){return new KTM(Y)},p[dP]=[_.G6],p));
E.push(q.resolve(E2R))}WC8(n,q.resolve(BUw),q.resolve(Ybg),K,q.resolve(_.ta),G,E,q.resolve(wc8),q.resolve(MAw));q.addProvider({provide:_.YU,useValue:_.QZ.instance});_.w("start_client_gcf")&&q.addProvider({provide:Zb,useValue:H7B()});q.addProvider({provide:n_I,useFactory:function(){return new n_I(_.AL().resolve(_.G6),_.xx.getInstance())}});
_.M5().parkOrScheduleJob(function(){E_R()},1,"eocs");
G={};q.addProvider((G.provide=mC,G.useClass=mC,G[dP]=[_.Q4,_.YU],G));q.addProvider({provide:_.PQw,useFactory:_.q2.getInstance});_.M5().parkOrScheduleJob(function(){_.AL().resolve(mC).refresh()},0,"eocs");
q.addProvider({provide:_.Ls,useClass:x_8});_.w("kevlar_signal_collection_killswitch")||(G={},q.addProvider((G.provide=SK8,G.useClass=SK8,G[dP]=[jx,cQ],G)),_.M5().parkOrScheduleJob(function(){_.AL().resolve(SK8).record()},1,"eocs"));
_.w("web_debug_handler_registration_killswitch")||_.M5().parkOrScheduleJob(function(){yGy("DOWNLOAD_PES",tHi);_.w("offline_client_state_export_ks")||yGy("OFFLINE_CLIENT_STATE",dVy)},0,"eocs");
_.w("kevlar_prevent_polymer_dynamic_font_load")&&_.M5().parkOrScheduleJob(function(){var Y=[_.Ow(x$I),_.Ow(zyU)];Y=_.k(Y);for(var A=Y.next();!A.done;A=Y.next()){A=A.value;var v=document.createElement("link");_.pv(v,A,"stylesheet");document.head.appendChild(v)}},1,"eocs");
G=M.injector.resolve(_.YU);_.HGn.instance=new _.HGn(G);VIY(SAU(new FLR(G)));G={};M.injector.addProvider((G.provide=A5,G.useFactory=function(Y){(Y=Y==null?void 0:Y.getCurrentPage())?Y=Y.visibilityObserver:(vc5||(vc5=vl$()),Y=vc5);return Y},G[dP]=[_.WR(_.md)],G.skipCache=!0,G));
q.addProvider({provide:_.lq,useClass:WZ});q.addProvider({provide:i4,useClass:qdI});M.injector.addProvider({provide:FI8,useValue:dan});q.addProvider({provide:zNl,useValue:ue8});q.addProvider({provide:Rcd,useValue:nfH});q.addProvider({provide:_.Qx,useValue:wHy});M=q.addProvider;g_v||(g_v=new ces);M.call(q,{provide:_.fm,useValue:g_v});q.addProvider({provide:_.Dg,useValue:_.R9("HTML_DIR")==="rtl"?"rtl":"ltr"});q.addProvider({provide:XDM,useClass:Zvv});q.addProvider({provide:_.eo,useClass:FV});_.AL().addProvider({provide:ivU,
useValue:_.w("enable_web_delhi_icons")?k6L.concat(yps):NMR.concat(prR)});q.addProvider({provide:_.eZ,useClass:_.eZ});q.addProvider({provide:_.ZXv,useValue:new J3E});q.addProvider({provide:YLI,useClass:LwI});q.addProvider({provide:bK,useClass:bK});q.addProvider({provide:zG,useClass:zG});M={};q.addProvider((M.provide=pf,M.useClass=pf,M[dP]=[_.YU,_.Ja],M));q.addProvider({provide:KQ,useClass:KQ});q.addProvider({provide:Q8P,useClass:aPE});q.addProvider({provide:rA,useClass:rA});q.addProvider({provide:T32,
useValue:cS$});q.addProvider({provide:_.q7,useClass:YiI});_.w("enable_payments_purchase_manager")&&q.addProvider({provide:qiP,useClass:$aw});q.addProvider({provide:xX8,useFactory:function(){return function(Y){return _.U$R(Y)}}});
q.addProvider({provide:_.LKR,useClass:YwM});M={};q.addProvider((M.provide=Md,M.useClass=Md,M[dP]=[_.LKR],M));q.addProvider({provide:mI,useClass:mI});q.addProvider({provide:XyR,useValue:G38});q.addProvider({provide:tdB,useValue:_.ZW5});q.addProvider({provide:iH4,useClass:CQ8});q.addProvider({provide:BYM,useValue:xzw});M={};q.addProvider((M.provide=QYw,M.useClass=IPg,M[dP]=[BYM],M));M={};q.addProvider((M.provide=_.ix,M.useClass=SxM,M[dP]=[QYw],M));M={};q.addProvider((M.provide=_.sJ,M.useClass=$4,M[dP]=
[_.xy,_.oq],M));if(_.w("web_explore_hub_on_hover")||_.w("web_client_explore_hub_on_hover"))M={},q.addProvider((M.provide=TJ,M.useClass=TJ,M[dP]=[_.YU,LN],M));if(_.w("web_enable_renderer_logger")){var y=new S0e;MND(function(){y.abort()});
q.addProvider({provide:Zd$,useValue:new ruM(y.signal)})}q.addProvider({provide:eaJ,useValue:IrF});q.addProvider({provide:tiy,useClass:Wvw});_.w("web_use_flow_state_manager")&&(q.addProvider({provide:_.ah,useClass:dXw}),M={},q.addProvider((M.provide=oh,M.useClass=oh,M[dP]=[_.ah,_.vR],M)))}},hDU);var OAI={},wr5=(OAI.initialized={priority:10,callback:function(){if(!lkg){hxe();P1H("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.XN(_.n7(P1H,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.w("log_heartbeat_with_lifecycles")){var M={};Ki.instance||(Ki.instance=new Ki);Ki.instance.install((M.document_visible={callback:i9H,priority:10},M.document_hidden={callback:i9H,priority:10},M))}else _.LA(document,"visibilitychange",i9H);lkg=!0}(M=_.Cx())&&M!=="UNDEFINED_CSN"&&EtY(M)}},OAI);var CNP={},ab5=(CNP.initialized={callback:function(M){var q=_.$m(232091),G=M.injector.resolve(_.Q$);_.oQ(G,q);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?KSF()&&_.X3(G,q):(M=M.injector.resolve(xX8)("refresh_detector"))&&(M.get("first_tab_load")?_.X3(G,q):M.set("first_tab_load","1"))}},CNP);var ocR={},lb5=(ocR.initialized={priority:10,callback:YNy},ocR);var Xr8={},PNR=(Xr8.initialized={priority:0,callback:function(){var M=new HD2,q="other";_.sv?q="chrome":_.$W?q="firefox":_.HR?q="safari":yn&&(q="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(G){M.increment(_.uj(),G,q)}).catch(function(){M.increment(_.uj(),!1,q)}):M.increment(_.uj(),!1,q)}},Xr8);var iAL={},cpn=(iAL.rendering={priority:8,callback:WSy},iAL);var gcn={},BMI=(gcn.rendering={priority:10,callback:cHY},gcn.rendered={callback:iou},gcn),QwM={},Ibn=(QwM.rendering={callback:cHY},QwM.rendered={callback:iou},QwM);var D8g=!1,u4s={},JpR=(u4s.initialized={priority:10,callback:function(){D8g||(SUy({didPatch:function(M){M.el&&ULs(M.el,M.props)},
didUnmount:function(M){Z9y(M.el)}}),D8g=!0)}},u4s);var ZAv=/^\/shorts\/?$/;_.Vz("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:{}}}}}}});_.w("kevlar_use_common_module_manager_ks")?(_.ffw(new gMH),GhD()):BaD();
(function(){var M=document.querySelector("ytd-app");if(!M)throw Error("Wj");M=new M2({root:M,injector:_.AL()});M.install(wr5);var q={};M.install((q.initialized={priority:10,callback:NXi},q));_.w("wp_lat_b")&&(q={},M.install((q.initialized={priority:10,callback:function(){vQy()}},q)));
q={};M.install((q.rendered={priority:0,callback:KMe},q));q={};M.install((q.rendered={priority:0,callback:function(){_.r8.addLowPriorityJob(function(){_.bvI>1&&(H04(),qGw())},4E4)}},q));
M.install(W8w);M.install(ab5);M.install(JpR);FJe();M.install(afn);M.install(NPg);M.install(L8g);M.install(JuP);M.install(zkR);M.install(wRw);M.install(t1R);_.w("kevlar_enable_mss_lazy_load")&&M.install(lb5);M.install(pRn);M.install(PNR);if(!_.fX("IS_SHELL_LOAD")||_.w("kevlar_fetch_initial_data_promise_client")||_.w("sw_nav_preload_pbj")){var G=_.ij(window.location.href);q=G&&G==="/watch";G=G&&G.match(ZAv);q?M.install(Ibn):G?M.install(cpn):M.install(BMI)}else M.install(K8L);M.install(dzE);_.w("web_enable_prefetching_videos_on_home")&&
M.install(PjR);_.w("start_client_gcf")&&M.install(CfU);M.install(BcU);(new e9P).increment("INSTALLED");M.install(lfg);M.install(MSw);M.transition("initialized");kn$()})();
_.$z=[[["bG50OWttMnc3aDN5a2luZCM=","eW9rdXl5NWhiYW1ndmFsdWUj"],"eGM0c2s1MmNuOThyQURfUExBQ0VNRU5UX0tJTkRfU1RBUlQj"]];_.eg=["NWNweXB3YmZxZWQ5Z2xvYmFsQ2FsbGJhY2tzIw==","MzNlaXUxd2c5NjF0b25BYm5vcm1hbGl0eURldGVjdGVkIw==","anJrdWRtNnViOXk0b25BZFNraXAj","ZW1xaDY1MjFjb3BvcmF3X3BsYXllcl9yZXNwb25zZSM=","cmx2d3M0ajh4N2pkYWRTbG90cyM="];_.N5="NWNweXB3YmZxZWQ5Z2xvYmFsQ2FsbGJhY2tzIw== MzNlaXUxd2c5NjF0b25BYm5vcm1hbGl0eURldGVjdGVkIw== anJrdWRtNnViOXk0b25BZFNraXAj ZW1xaDY1MjFjb3BvcmF3X3BsYXllcl9yZXNwb25zZSM= aGsweHBlbGVyZXpzd2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tzIw== bWFibnk3ZWh1MGlvYWJfc2FfZWYj cmx2d3M0ajh4N2pkYWRTbG90cyM=".split(" ");
_._ModuleManager_initialize=function(M,q){if(!_.UK){if(!_.xa)return;_.ffw(_.xa())}_.UK.setAllModuleInfoString(M,q)};
_._ModuleManager_initialize('kevlar_base_module/sy3/sy4/sy1:1,2/sy2/sy5:1,2/sy6/sy7/sy8/sy9/NSzT5/syb/syc/kevlar_main_module:3,4,5,6,7,8,9/sye:1/syd:3,b,e/syf:f/syg/syh:6/syi/h8y2qb:5,g,h,i,j/syj/JzFVk:e,i,j,l/syk:8/xwEKAe:2,9,h,j,n/syl:4,c,f,h,l,n/sym:p/nmfa2d:j,q/syn:7,p/syo:i,j,q,s/CF909:t/Tm0L3c:t/L3n37:g,i,j,s/iuT5Oc',['sy3','sy4','sy8','sye','syb','sy1','syk','syj','syg','syd','syc','sy2','syl','sy7','sy6','syn','sym','syi','syh','syf','syo','sy9','sy5','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module','NSzT5']);
}catch(e){_._DumpException(e)}
try{
_.dS=function(M,q,G,K,n){var E={};q&&(E[q]=G);K?E.errorType=K:n&&(E.errorReason=n);_.ml(M,E);_.S1()};
_.vZ=function(M){var q=_.M5();return _.OU2(q,M,1)};
_.h_({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 M=this.query;M&&(this.full||M[0]==="("||(M="("+M+")"),this._mq=window.matchMedia(M),this._add(),this.queryHandler(this._mq))},
queryHandler:function(M){this._setQueryMatches(M.matches)}});var TM8;var rpn;var jwI=function(){};
_.N=jwI.prototype;_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._tapHandler=function(){};
_.N._focusChanged=function(){};
_.N._detectKeyboardFocus=function(){};
_.N._userActivate=function(){};
_.N._upHandler=function(){};
_.N._spaceKeyDownHandler=function(){};
_.N._spaceKeyUpHandler=function(){};
_.N._asyncClick=function(){};
_.N._pressedChanged=function(){};
_.N._ariaActiveAttributeChanged=function(){};
_.N._activeChanged=function(){};
_.N._controlStateChanged=function(){};
_.N._changedButtonState=function(){};
_.N._focusBlurHandler=function(){};
_.N._disabledChanged=function(){};
_.N._changedControlState=function(){};
_.N._downHandler=function(){};
_.N.ensureRipple=function(){};
_.N.getRipple=function(){};
_.N.hasRipple=function(){};
_.N._noinkChanged=function(){};
_.N._focusedChanged=function(){};
_.N._createRipple=function(){};
_.N.registered=function(){};
_.N._invalidChanged=function(){};
_.N.hasValidator=function(){};
_.N.validate=function(){};
_.N._getValidity=function(){};
_.N._requiredChanged=function(){};
_.N._valueChanged=function(){};
_.N._checkedChanged=function(){};
_.N._buttonStateChanged=function(){};
_.N._setPressed=function(){};
_.N._setPointerDown=function(){};
_.N._setReceivedFocusFromKeyboard=function(){};
_.N._setFocused=function(){};
jwI=_.h_({is:"tp-yt-paper-radio-button",_template:function(){if(rpn!==void 0)return rpn;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;TM8===void 0&&(TM8=document.createElement("template"));var K=TM8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return rpn=M},
behaviors:[_.eKf],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(){_.yb(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var M=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),q=Math.floor(3*M);q%2!==M%2&&q++;this.updateStyles({"--paper-radio-button-ink-size":q+"px"})}})}});var V1R;var RDI;_.h_({_template:function(){if(RDI!==void 0)return RDI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;V1R===void 0&&(V1R=document.createElement("template"));var K=V1R;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return RDI=M},
is:"tp-yt-paper-radio-group",behaviors:[_.rM8],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(M){var q=this._valueToItem(M);if(!q||!q.hasAttribute("disabled")){if(this.selected){q=this._valueToItem(this.selected);if(this.selected==M)if(this.allowEmptySelection)M="";else{q&&(q.checked=!0);return}q&&
(q.checked=!1)}_.IO.select.apply(this,[M]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(M){this._focusPrevious();M.preventDefault();this._activateFocusedItem()},
_onDownKey:function(M){this._focusNext();M.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(M){_.TrM._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(M){_.TrM._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.IO._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.D4._resetTabindices.apply(this,arguments);this.items.forEach(function(M){M.removeAttribute("aria-selected")},this)}});var fbL;_.hC("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var hB=function(){return _.Q.apply(this,arguments)||this};
_.l(hB,_.Q);_.N=hB.prototype;_.N.computeHasPrimaryIcon=function(M){return!(!M.icon&&!M.thumbnail)};
_.N.computeHasSecondary=function(M){return!(!M.secondaryIcon&&!M.secondaryNotificationText)};
_.N.computeHideSecondaryString=function(M){return!_.w("disable_hide_empty_secondary_string")&&!M.secondaryNotificationText};
_.N.computeCompactLinkStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.N.computeHasFitHeight=function(M){return M==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.N.isActiveEndpoint=function(M){return(M=this.get("commandMetadata.webCommandMetadata.url",M))?_.ij(window.location.href)!=="/account_transfer_channel"&&_.ij(window.location.href)!=="/gaia_link"&&_.ij(window.location.href)!=="/channel_switcher"||M!=="/account"?_.ij(window.location.href)===M:!0:!1};
_.N.onTap=function(){var M;((M=this.data)==null?0:M.serviceEndpoint)&&_.fx(this.hostElement,[this.data.serviceEndpoint])};
hB.prototype.onTap=hB.prototype.onTap;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hB.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.r("design:type",Boolean)],hB.prototype,"active",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.r("design:type",String)],hB.prototype,"compactLinkStyle",void 0);
_.T([_.B({computed:"computeIcon_(data.icon)"}),_.r("design:type",Object)],hB.prototype,"icon",void 0);_.T([_.B({computed:"computeIcon_(data.secondaryIcon)"}),_.r("design:type",Object)],hB.prototype,"secondaryIcon",void 0);_.T([_.B({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],hB.prototype,"hasSecondary",void 0);_.T([_.B({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],hB.prototype,"hideSecondaryString",void 0);
_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hB.prototype,"onTap",null);_.T([_.b({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],hB);
_.z(hB,"ytd-compact-link-renderer",function(){if(fbL!==void 0)return fbL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return fbL=M},{mode:1});var FlP;_.hC("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var tB=function(){var M=_.Q.apply(this,arguments)||this;M.role="link";M.tabindex="0";M.actionMap=_.w("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 M};
_.l(tB,_.Q);_.N=tB.prototype;_.N.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.cE()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.N.getCurrentTheme=function(){return _.g2()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.cE()};
_.N.onThemeSelected=function(M,q){var G=M||q?M:_.ia(),K=(G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!G&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.YGs(_.ij(window.location.href));_.Ng(0,165,M);_.Ng(0,174,q);this.prefs.save();K&&_.VW(this.hostElement,"yt-dark-mode-toggled-action",[G]);_.VW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.N.onTap=function(){this.data.serviceEndpoint&&_.fx(this.hostElement,[this.data.serviceEndpoint])};
_.N.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.N.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.N.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
tB.prototype.onTap=tB.prototype.onTap;tB.prototype.dataChanged=tB.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],tB.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tB.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.s7),_.r("design:type",Object)],tB.prototype,"paperItemBehaviors",void 0);_.T([_.B(),_.r("design:type",Object)],tB.prototype,"data",void 0);_.T([_.B({value:function(){return _.El()}}),
_.r("design:type",_.Mq)],tB.prototype,"prefs",void 0);_.T([_.B(),_.r("design:type",Object)],tB.prototype,"label",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tB.prototype,"role",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tB.prototype,"tabindex",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tB.prototype,"dataChanged",null);
_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tB.prototype,"onTap",null);_.T([_.b({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],tB);
_.jo()(tB,"ytd-toggle-theme-compact-link-renderer",function(){if(FlP===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);FlP=M}M=FlP;return M},{allowedProps:["data"],
mode:1});
}catch(e){_._DumpException(e)}
try{
var eDs,$8P;_.OJ=function(M){return!!M.getOptions("captions")};
_.HAn=function(M){return(M=M.getOption("captions","track"))?!!M.displayName:!1};
_.wS=function(M,q){_.W3(q,M,function(){return eDs[q]},function(G){eDs[q]=G;
if(!_.w("mweb_player_ve_show_ks")){var K=_.Cx(0);K&&G&&_.D_(K,G)}})};
_.Cr=function(M){(M=eDs[M])&&_.X3(_.nl(),M)};
eDs={};var skL;/*

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
*/
_.h_({_template:function(){if(skL!==void 0)return skL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;$8P===void 0&&($8P=document.createElement("template"));var K=$8P;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return skL=M},
is:"tp-yt-paper-checkbox",behaviors:[_.eKf],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.yb(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var M=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),q="px",G=M.match(/[A-Za-z]+$/);G!==null&&(q=G[0]);M=parseFloat(M);G=8/3*M;q==="px"&&(G=Math.floor(G),G%2!==M%2&&G++);this.updateStyles({"--paper-checkbox-ink-size":G+
q})}})},
_computeCheckboxClass:function(M,q){var G="";M&&(G+="checked ");q&&(G+="invalid");return G},
_computeCheckmarkClass:function(M){return M?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.FEv._createRipple.call(this)}});var MUM=new _.e0("radioButtonSurveyOptionRenderer"),qQI=new _.e0("checkboxSurveyOptionRenderer");var GCg;var Khg;var nIR=0,aC=function(){var M=_.Q.call(this)||this;M.selected=!1;M.isOverlay=!1;M.inputId="toggle-option-"+nIR;nIR++;return M};
_.l(aC,_.Q);aC.prototype.onTap=function(){_.jP(this.hostElement,"ytd-toggle-option-clicked")};
_.T([_.B(),_.r("design:type",String)],aC.prototype,"label",void 0);_.T([_.B(),_.r("design:type",String)],aC.prototype,"inputId",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],aC.prototype,"selected",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],aC.prototype,"isOverlay",void 0);_.T([_.b({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.r("design:paramtypes",[])],aC);
_.z(aC,"ytd-toggle-option-renderer",function(){if(Khg!==void 0)return Khg;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Khg=M},{mode:1});var oC=function(){var M=_.Q.apply(this,arguments)||this;M.isToggleOption=!1;M.isOverlay=!1;return M};
_.l(oC,_.Q);oC.prototype.onTap=function(M){M.preventDefault();this.data&&(M=!this.data.checked,this.set("data.checked",M),_.jP(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:M,value:this.data.value}))};
_.Yd.Object.defineProperties(oC.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
oC.prototype.onTap=oC.prototype.onTap;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],oC.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],oC.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],oC.prototype,"isToggleOption",void 0);_.T([_.B(),_.r("design:type",Object)],oC.prototype,"isOverlay",void 0);_.T([_.c("data.responseText"),_.r("design:type",String),_.r("design:paramtypes",[])],oC.prototype,"label",null);
_.T([_.GQ("ytd-toggle-option-clicked"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],oC.prototype,"onTap",null);_.T([_.b({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],oC);
_.z(oC,"ytd-checkbox-survey-option-renderer",function(){if(GCg!==void 0)return GCg;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return GCg=M},{mode:1});var EIL;var N_v;var lv=function(){var M=_.Q.apply(this,arguments)||this;M.checked=!1;M.isToggleOption=!1;return M};
_.l(lv,_.Q);lv.prototype.onTap=function(){this.data&&(this.checked?_.VW(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.VW(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
lv.prototype.onTap=lv.prototype.onTap;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],lv.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],lv.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],lv.prototype,"checked",void 0);_.T([_.B(),_.r("design:type",Object)],lv.prototype,"isToggleOption",void 0);_.T([_.GQ("ytd-toggle-option-clicked"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],lv.prototype,"onTap",null);
_.T([_.b({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],lv);
_.z(lv,"ytd-radio-button-survey-option-renderer",function(){if(N_v!==void 0)return N_v;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return N_v=M},{mode:1});var Xy=function(){var M=_.Q.apply(this,arguments)||this;M.disableAnimation=!1;M.isToggleOption=!0;M.followUpSurveyCommand=null;M.selectedRatingEndpoint=null;M.isSlimlineSurveyFollowUp=!1;M.isShortsStyle=!1;M.styleOverrideAttribute=!0;M.isDarkMode=!1;M.isSubmitted=!1;M.roundedContainer=!0;M.improveShortsResponseRate=_.w("web_improve_shorts_response_rate");M.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 M};
_.l(Xy,_.Q);_.N=Xy.prototype;
_.N.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"}}}}};
_.N.attached=function(){var M=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(G){var K;if((K=G[0])!=null&&K.isIntersecting){_.qY().reportShown(M.hostElement);var n;(n=M.intersectionObserver)==null||n.unobserve(M.hostElement)}},{rootMargin:"0px",
threshold:.6});var q;(q=this.intersectionObserver)==null||q.observe(this.hostElement)};
_.N.onDarkModeToggledAction=function(M){this.isDarkMode=M};
_.N.dataChanged=function(){var M;if(((M=this.data)==null?void 0:M.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var q;((q=this.data)==null?void 0:q.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var G,K,n,E;this.darkColorPalette=(G=this.data)==null?void 0:(K=G.inlineContent)==null?void 0:(n=K.compactVideoRenderer)==null?void 0:(E=n.thumbnail)==null?
void 0:E.darkColorPalette;var p,y,Y,A;this.lightColorPalette=(p=this.data)==null?void 0:(y=p.inlineContent)==null?void 0:(Y=y.compactVideoRenderer)==null?void 0:(A=Y.thumbnail)==null?void 0:A.lightColorPalette;var v,h;if(((v=this.data)==null?0:(h=v.inlineContent)==null?0:h.compactVideoRenderer)&&this.isShortsStyle){var t,O,a,g;M=_.r7((t=this.data)==null?void 0:(O=t.inlineContent)==null?void 0:(a=O.compactVideoRenderer)==null?void 0:(g=a.thumbnail)==null?void 0:g.thumbnails);_.sT(this.hostElement,
{"--yt-background-url":"url("+M+")"})}};
_.N.handleRequestCompletion=function(){this.hostElement.hidden&&_.jP(this.hostElement,"yt-dismissible-item-dismissed")};
_.N.onPopupClosed=function(M){var q;((q=M.detail)==null?void 0:q.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.VW(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.N.handleInlineSurveyRatingSelect=function(M,q){var G=this;this.selectedRatingEndpoint=M;this.followUpSurveyCommand=q;this.expanded=!!M;this.getOptionRenderers().forEach(function(K,n){G.notifyPath("followUpSurveyCommand.followUpOptions."+n+".checkboxSurveyOptionRenderer.checked");G.set("followUpSurveyCommand.followUpOptions."+n+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),M=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.VW(this.hostElement,"yt-reel-non-video-content-dismissal-command",[M]))};
_.N.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.VW(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var M,q=(M=this.data)==null?void 0:M.dismissalEndpoint;q&&this.ytComponentBehavior.resolveCommand(q)}};
_.N.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.VW(this.hostElement,"yt-close-popup-action"))};
_.N.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var M=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{M=this.getOptionRenderers().filter(function(K){return K.checked});
if(M.length===0)return;M=M.map(function(K){return K.responseEndpoint})}var q=[];
M.forEach(function(K,n){n!==0&&(K=_.C(K,_.tM))&&K.feedbackToken&&q.push(K.feedbackToken)});
if(M=M[0]){var G={};q.length>0&&(G.extra_feedback_tokens=q);this.ytComponentBehavior.resolveCommand(M,{form:G})}}};
_.N.getOptionRenderers=function(){var M=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(q){M.isSingleSelect=!!_.C(q,MUM);return M.isSingleSelect?_.C(q,MUM):_.C(q,qQI)}):[]};
_.N.handleInlineSurveyOptionSelect=function(M){M=this.optionSelector.indexOf(M);M!==-1&&this.optionSelector.selectIndex(M)};
_.N.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.N.maybeGetBackgroundColor=function(M){return this.isDarkMode?M.section2Color:M.section3Color};
_.N.colorPaletteChanged=function(){var M=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;M=M&&this.maybeGetBackgroundColor(M);this.dismissibleEl.style.backgroundColor=!M||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.w2(M)};
_.Yd.Object.defineProperties(Xy.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
Xy.prototype.colorPaletteChanged=Xy.prototype.colorPaletteChanged;Xy.prototype.onPopupClosed=Xy.prototype.onPopupClosed;Xy.prototype.handleRequestCompletion=Xy.prototype.handleRequestCompletion;Xy.prototype.dataChanged=Xy.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Xy.prototype,"actionHandlerBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Xy.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],Xy.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.ET("#follow-up-survey-options"),_.r("design:type",Object)],Xy.prototype,"optionSelector",void 0);_.T([_.B(),_.r("design:type",Object)],Xy.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],Xy.prototype,"disableAnimation",void 0);_.T([_.B(),_.r("design:type",Object)],Xy.prototype,"isToggleOption",void 0);_.T([_.B(),_.r("design:type",Object)],Xy.prototype,"followUpSurveyCommand",void 0);_.T([_.B(),_.r("design:type",Object)],Xy.prototype,"selectedRatingEndpoint",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Xy.prototype,"expanded",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"isSlimlineSurveyFollowUp",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"isShortsStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"styleOverrideAttribute",void 0);_.T([_.B(),_.r("design:type",Boolean)],Xy.prototype,"isSingleSelect",void 0);_.T([_.B(),_.r("design:type",Object)],Xy.prototype,"isDarkMode",void 0);
_.T([_.B(),_.r("design:type",Object)],Xy.prototype,"lightColorPalette",void 0);_.T([_.B(),_.r("design:type",Object)],Xy.prototype,"darkColorPalette",void 0);_.T([_.c("selectedRatingEndpoint","isShortsStyle"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xy.prototype,"isOptionSelected",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"roundedContainer",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Xy.prototype,"improveShortsResponseRate",void 0);_.T([_.ET("#dismissible"),_.r("design:type",HTMLElement)],Xy.prototype,"dismissibleEl",void 0);_.T([_.ET("#dismiss-button yt-icon-button"),_.r("design:type",HTMLElement)],Xy.prototype,"dismissButtonEl",void 0);_.T([_.ET("#inline-survey-header yt-icon-button"),_.r("design:type",HTMLElement)],Xy.prototype,"inlineHeaderDismissButtonEl",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"dataChanged",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"handleRequestCompletion",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Xy.prototype,"onPopupClosed",null);
_.T([_.KT("darkColorPalette","lightColorPalette","isDarkMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xy.prototype,"colorPaletteChanged",null);_.T([_.b({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],Xy);
_.z(Xy,"ytd-inline-survey-renderer",function(){if(EIL!==void 0)return EIL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return EIL=M},{mode:1});var kCP=["en-CA","en","es-MX","fr-CA"];_.pUI=_.U(function(M){var q=_.UT(M,{isOverlay:!1,isModern:!1}),G=q.captionIconType,K=q.onClick;M=q.ariaLabel;var n=q.ariaPressed,E=q.isOverlay,p=q.isModern;q=_.pI("button",function(A){_.wS(A,127299)});
var y=_.sq(function(A){_.Cr(127299);K==null||K(A);return!1}),Y={};
return _.W("ytm-closed-captioning-button",{class:_.Hb("ytmClosedCaptioningButtonHost",(Y.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return G()===-1&&E()},Y.ytmClosedCaptioningButtonIconDisabled=function(){return G()===-1&&!E()},Y))},_.W("button",{el:q,
class:"ytmClosedCaptioningButtonButton",title:M,"aria-label":M,"aria-pressed":n,"on:click":y},_.W(_.np,{icon:function(){var A="",v=p();var h=v?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";v=v?"SUBTITLES_DELHI_PLAYER":"SUBTITLES";var t=_.El().get("hl");h=!t||kCP.includes(t)?h:v;v=G();switch(v){case -1:case 0:A=h;break;case 1:A=h+"_FILLED";break;default:_.F2(v)}return A}})))},"hh");
_.pUI.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.xB=function(M){return function(q,G){var K=M||G.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(q,G,{get:function(){var n;return this.$?this.$[K]:(n=_.nT(this))==null?void 0:n.querySelector("#"+K)},
enumerable:!0,configurable:!0})}};_.z0=function(M){M=M===void 0?!1:M;_.uI.call(this);this.pubSub_=new _.BR(M);_.oE(this,this.pubSub_)};
_.TO(_.z0,_.uI);_.z0.prototype.subscribe=function(M,q,G){return this.isDisposed()?0:this.pubSub_.subscribe(M,q,G)};
_.z0.prototype.unsubscribe=function(M,q,G){return this.isDisposed()?!1:this.pubSub_.unsubscribe(M,q,G)};
_.z0.prototype.unsubscribeByKey=function(M){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(M)};
_.z0.prototype.publish=function(M,q){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var gsL=function(){_.dS("ypcRedeemFlowStarted")},B$y=function(M){_.dS("ypcRedeemFlowFailed",void 0,void 0,void 0,M)},QyM=function(M,q,G){q&&G&&(M.videos.forEach(function(K){K.videoId===q&&(K.itemId=G)}),M.recommendedVideos.forEach(function(K){K.videoId===q&&(K.itemId=G)}))};var IFA;var DDt;/*

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
*/
_.h_({_template:function(){if(DDt!==void 0)return DDt;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;IFA===void 0&&(IFA=document.createElement("template"));var K=IFA;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return DDt=M},
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(M,q){var G=this._resolveSrc(M);G!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",M===""||q?this._setLoading(!1):(this._resolvedSrc=G,this.$.img.src=this._resolvedSrc,this.$.sizedImgDiv.style.backgroundImage='url("'+this._resolvedSrc+'")',this._setLoading(!0)),this._setLoaded(!1),this._setError(!1))},
_placeholderChanged:function(){this.$.placeholder.style.backgroundImage=this.placeholder?'url("'+this.placeholder+'")':""},
_transformChanged:function(){var M=this.$.sizedImgDiv.style,q=this.$.placeholder.style;M.backgroundSize=q.backgroundSize=this.sizing;M.backgroundPosition=q.backgroundPosition=this.sizing?this.position:"";M.backgroundRepeat=q.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(M){M=_.w_(M,this.$.baseURIAnchor.href);M.length>=2&&M[0]==="/"&&M[1]!=="/"&&(M=(location.origin||location.protocol+"//"+location.host)+M);return M}});var uik;var J4W;_.h_({_template:function(){if(J4W!==void 0)return J4W;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;uik===void 0&&(uik=document.createElement("template"));var K=uik;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return J4W=M},
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(M){return M?"false":"true"},
_headingChanged:function(M){var q=this.getAttribute("heading"),G=this.getAttribute("aria-label");typeof G==="string"&&G!==q||this.setAttribute("aria-label",M)},
_computeHeadingClass:function(M){return M?" over-image":""},
_computeAnimated:function(M){return M}});var Zje=new _.e0("addRendererToItemSectionAction");var bjW;var uT=function(){return _.Q.apply(this,arguments)||this};
_.l(uT,_.Q);uT.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],uT.prototype,"rendererBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],uT.prototype,"dismissibleItemBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],uT.prototype,"rendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],uT.prototype,"data",void 0);_.T([_.b({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],uT);
_.z(uT,"ytd-comment-history-entry-renderer",function(){if(bjW!==void 0)return bjW;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return bjW=M},{mode:1});var UDC;_.hC("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.hC("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var Jk=function(){return _.Q.apply(this,arguments)||this};
_.l(Jk,_.Q);_.N=Jk.prototype;_.N.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.onKeyUp=function(M){if(M.keyCode===13)this.onTap()};
_.N.onTap=function(){this.data.recordClickEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var M=this.data.navigationEndpoint;M&&_.C(M,_.TX)&&_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}})};
_.N.readChanged=function(){var M;_.HE(this.hostElement,"unread",!((M=this.data)==null?0:M.read))};
_.N.dataChanged=function(){this.data&&_.HE(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.N.computeThumbnailSize=function(){var M;return((M=this.data)==null?0:M.highPriorityNotification)?32:48};
_.N.getEndpointURL=function(M){return M&&!_.C(M,_.TX)?this.componentBehavior.computeHref_(M):null};
_.N.getEndpointData=function(M){return M&&!_.C(M,_.TX)?M:null};
Jk.prototype.computeThumbnailSize=Jk.prototype.computeThumbnailSize;Jk.prototype.dataChanged=Jk.prototype.dataChanged;Jk.prototype.readChanged=Jk.prototype.readChanged;Jk.prototype.onKeyUp=Jk.prototype.onKeyUp;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Jk.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Jk.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Jk.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Jk.prototype,"data",void 0);_.T([_.B({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.r("design:type",Number)],Jk.prototype,"thumbnailSize",void 0);_.T([_.GQ("keyup"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],Jk.prototype,"onKeyUp",null);
_.T([_.KT("data.read"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jk.prototype,"readChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jk.prototype,"dataChanged",null);_.T([_.KT("data.highPriorityNotification"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Jk.prototype,"computeThumbnailSize",null);
_.T([_.b({is:"ytd-notification-renderer",disableElementRegistration:!0})],Jk);
_.z(Jk,"ytd-notification-renderer",function(){if(UDC!==void 0)return UDC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return UDC=M},{mode:1});var xDt;var Fx=function(){return _.Q.apply(this,arguments)||this};
_.l(Fx,_.Q);Fx.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"}}}};
Fx.prototype.computeActionButtonClass=function(M){return!M.actionButtons||M.actionButtons.length<=1?"single-button":M.description?"vertical-buttons":"horizontal-buttons"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Fx.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Fx.prototype,"data",void 0);_.T([_.b({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],Fx);
_.z(Fx,"ytd-playlist-show-metadata-renderer",function(){if(xDt!==void 0)return xDt;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return xDt=M},{mode:1});var zuy;_.hC("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var HH=function(){return _.Q.apply(this,arguments)||this};
_.l(HH,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],HH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],HH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],HH.prototype,"data",void 0);_.T([_.b({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],HH);
_.z(HH,"ytd-purchase-item-renderer",function(){if(zuy!==void 0)return zuy;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return zuy=M},{mode:1});var mDe;var SeC={};SeC.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(M){if(M)return M.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(M){if(M==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.hC("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var eI=function(){return _.Q.apply(this,arguments)||this};
_.l(eI,_.Q);eI.prototype.onYtNavigate=function(M){var q=this.openPopupBehavior.getNavigationEndpointPopupAction(M.detail.endpoint);q&&(M.stopPropagation(),this.openPopupBehavior.openPopup(q))};
eI.prototype.onYtNavigate=eI.prototype.onYtNavigate;_.T([_.P(SeC.YtSimpleTextSectionBehavior),_.r("design:type",Object)],eI.prototype,"ytSimpleTextSectionBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],eI.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],eI.prototype,"openPopupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],eI.prototype,"data",void 0);
_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],eI.prototype,"onYtNavigate",null);_.T([_.b({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],eI);
_.z(eI,"ytd-simple-text-section-renderer",function(){if(mDe!==void 0)return mDe;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return mDe=M},{mode:1});var T$3;_.hC("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var r4C=function(){return _.Q.apply(this,arguments)||this};
_.l(r4C,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],r4C.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],r4C.prototype,"data",void 0);_.T([_.b({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],r4C);
_.z(r4C,"ytd-unlimited-page-feature-info-renderer",function(){if(T$3!==void 0)return T$3;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return T$3=M},{mode:1});var jy3;var VwG;var $f=function(){return _.Q.apply(this,arguments)||this};
_.l($f,_.Q);$f.prototype.dataChanged=function(){if(this.data){var M=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);M&&(M=_.TE(M,screen.width),this.hostElement.style.backgroundImage="url("+M+")")}};
$f.prototype.dataChanged=$f.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$f.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$f.prototype,"dataChanged",null);_.T([_.b({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],$f);
_.z($f,"ytd-post-redemption-section-renderer",function(){if(VwG!==void 0)return VwG;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return VwG=M},{mode:1});var RuG;var s8=function(){return _.Q.apply(this,arguments)||this};
_.l(s8,_.Q);s8.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],s8.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],s8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],s8.prototype,"data",void 0);_.T([_.b({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],s8);
_.z(s8,"ytd-ypc-post-redemption-renderer",function(){if(RuG!==void 0)return RuG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return RuG=M},{mode:1});_.hC("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var MH=function(){var M=_.Q.apply(this,arguments)||this;M.MIN_CODE_LENGTH=12;M.MAX_CODE_LENGTH=24;return M};
_.l(MH,_.Q);_.N=MH.prototype;_.N.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.N.created=function(){this.riskService=new _.ujH;this.loadPaymentThenable=_.Zc$(_.R9("YPC_MB_URL"))};
_.N.ready=function(){var M=this;this.code.addEventListener("keypress",function(q){M.onCodeInputKeypress(q)})};
_.N.dataChanged=function(){var M=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(q){q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=G.value,G.type==="attributes"&&G.attributeName==="dark"&&M.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.N.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var M=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+M+")")}};
_.N.computeRedeemButton=function(M){(M=this.get("redeemButton.buttonRenderer",M))&&(M=Object.assign({},M,{serviceEndpoint:void 0}));return M};
_.N.onRedeemButtonTap=function(M){M.stopPropagation();gsL();this.redeemCode()};
_.N.redeemCode=function(){var M=this;this.isLoading=!0;var q=this.riskService.init();_.oi([q,this.loadPaymentThenable]).then(function(){var G=M.data.redeemButton.buttonRenderer.serviceEndpoint,K=_.JfF(),n=_.b_.payments.business.integration.ClientTokenFactory.createClientToken(_.C(G,_.dN2).countryCode,K);K={c:M.code.value.trim(),rd:window.btoa(K),ctk:n};G&&_.AL().resolve(_.vR).resolveCommand(G,{form:Object.assign({},K,{element:M.hostElement})})},function(){M.showGenericError();
B$y("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.eK(Error("Jo"))})};
_.N.onYtServiceRequestCompleted=function(M){M.stopPropagation();this.isLoading=!1;var q,G;this.errorMessage=(q=M.detail)==null?void 0:(G=q.data)==null?void 0:G.errorMessage;var K,n;this.postRedemptionRenderer=(K=M.detail)==null?void 0:(n=K.data)==null?void 0:n.renderer;var E,p;if(M=(E=M.detail)==null?void 0:(p=E.data)==null?void 0:p.redirectEndpoint)this.isLoading=!0,_.jP(this.hostElement,"yt-navigate",{endpoint:M});this.errorMessage?B$y("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
M)&&_.dS("ypcRedeemFlowSucceeded")};
_.N.onYtServiceRequestError=function(M){M.stopPropagation();this.isLoading=!1;if(M=this.get("detail.error.message",M))this.errorMessage=_.bc(M);B$y("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.N.onInvokeInstrumentManagerActionCompleted=function(M){M.stopPropagation();this.redeemCode()};
_.N.onInvokeInstrumentManagerActionError=function(M){M.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",M)){case "instrumentManagerLoadError":this.showGenericError();B$y("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();B$y("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.dS("ypcRedeemFlowCancelled")}};
_.N.onInput=function(){var M=this;_.B4(this,"onInput",function(){var q=M.code.value.trim();M.redeemButtonDisabled=q.length<M.MIN_CODE_LENGTH||q.length>M.MAX_CODE_LENGTH},200)};
_.N.onCodeInputKeypress=function(M){M.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(gsL(),this.redeemCode())};
_.N.computeImageUrl=function(M){return M?_.TE(M.thumbnails,600):null};
_.N.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
MH.prototype.onInvokeInstrumentManagerActionError=MH.prototype.onInvokeInstrumentManagerActionError;MH.prototype.onInvokeInstrumentManagerActionCompleted=MH.prototype.onInvokeInstrumentManagerActionCompleted;MH.prototype.onYtServiceRequestError=MH.prototype.onYtServiceRequestError;MH.prototype.onYtServiceRequestCompleted=MH.prototype.onYtServiceRequestCompleted;MH.prototype.dataChanged=MH.prototype.dataChanged;
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],MH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],MH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],MH.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],MH.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Boolean)],MH.prototype,"redeemButtonDisabled",void 0);
_.T([_.B(),_.r("design:type",Object)],MH.prototype,"errorMessage",void 0);_.T([_.B(),_.r("design:type",Object)],MH.prototype,"postRedemptionRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],MH.prototype,"observer",void 0);_.T([_.ET("#code"),_.r("design:type",HTMLInputElement)],MH.prototype,"code",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MH.prototype,"dataChanged",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],MH.prototype,"onYtServiceRequestCompleted",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],MH.prototype,"onYtServiceRequestError",null);
_.T([_.GQ("yt-invoke-instrument-manager-action-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],MH.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.T([_.GQ("yt-invoke-instrument-manager-action-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],MH.prototype,"onInvokeInstrumentManagerActionError",null);_.T([_.b({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],MH);
_.z(MH,"ytd-redeem-code-renderer",function(){if(jy3!==void 0)return jy3;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return jy3=M},{mode:1});var fFa;_.hC("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var qH=function(){var M=_.Q.apply(this,arguments)||this;M.businessEmailDisplayState="HIDE_SECTION";return M};
_.l(qH,_.Q);_.N=qH.prototype;_.N.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}}}}}};
_.N.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"};
_.N.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.N.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.cF(_.eAv),this.businessEmailDisplayState="CAPTCHA"))};
_.N.onYtServiceRequestCompleted=function(M){var q;if((q=M.detail.data)==null?0:q.businessEmail)this.businessEmail=M.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var G;if((G=M.detail.data)==null?0:G.errorMessage)this.businessEmailErrorMessage=M.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.N.computeEmailHref=function(M){return"mailto:"+M};
_.N.computeSafeUrl=function(M){if(M)return _.SM(M)};
_.N.onBusinessEmailCaptchaSubmit=function(){var M;(M=this.data)!=null&&M.onBusinessEmailRevealClickCommand&&(M=this.JSC$21999_captchaTextarea.value)&&(M={recaptcha_response_token:M,channel_id:this.data.channelId},_.AL().resolve(_.vR).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},M,{element:this.hostElement})}))};
_.N.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Yd.Object.defineProperties(qH.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 M,q;return!((M=this.data)==null||!M.primaryLinks)&&!((q=this.data)==null?0:q.links)&&this.data.primaryLinks.every(function(G){return G.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null||!M.primaryLinks)&&!((q=this.data)==null?0:q.links)&&!this.shouldShowNewLinks}}});
qH.prototype.onYtServiceRequestCompleted=qH.prototype.onYtServiceRequestCompleted;qH.prototype.dataChanged=qH.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],qH.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],qH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],qH.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.ET("#g-recaptcha-response"),_.r("design:type",HTMLTextAreaElement)],qH.prototype,"JSC$21999_captchaTextarea",void 0);_.T([_.B(),_.r("design:type",Object)],qH.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],qH.prototype,"businessEmailDisplayState",void 0);_.T([_.B(),_.r("design:type",String)],qH.prototype,"businessEmail",void 0);_.T([_.B(),_.r("design:type",String)],qH.prototype,"businessEmailErrorMessage",void 0);
_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qH.prototype,"hideDetailsSection",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qH.prototype,"dataChanged",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qH.prototype,"shouldShowNewLinks",null);_.T([_.c("data","shouldShowLinks"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qH.prototype,"shouldShowLegacyLinks",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],qH.prototype,"onYtServiceRequestCompleted",null);_.T([_.b({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],qH);
_.z(qH,"ytd-channel-about-metadata-renderer",function(){if(fFa!==void 0)return fFa;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return fFa=M},{mode:1});var Fye;_.hC("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var Gq=function(){return _.Q.apply(this,arguments)||this};
_.l(Gq,_.Q);Gq.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]]"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Gq.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Gq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Gq.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],Gq.prototype,"lockupContainerType",void 0);_.T([_.B(),_.r("design:type",String)],Gq.prototype,"thumbnailFixedWidth",void 0);
_.T([_.b({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],Gq);
_.z(Gq,"ytd-channel-featured-content-renderer",function(){if(Fye!==void 0)return Fye;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Fye=M},{mode:1});var Hj9;_.hC("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var Kc=function(){var M=_.Q.apply(this,arguments)||this;M.roundContainer=!0;M.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return M};
_.l(Kc,_.Q);_.N=Kc.prototype;_.N.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N.dataChanged=function(){this.imageWidth=this.imageHeight=24;var M=this.data;M.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!M.style&&M.image&&M.image.thumbnails.length&&(M=M.image.thumbnails[0],this.imageWidth=M.width||0,this.imageHeight=M.height||0)};
_.N.computeSource=function(M){return M.secondarySource?_.UX(M.secondarySource):_.UX(M.source)};
_.N.computeClarifyStyle=function(M){return M?M.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.N.isLargeStyle=function(M){return M==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.N.computeBackgroundStyle=function(M){return M?M.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.N.computeHasActionButton=function(M){return!!M.actionButton};
_.N.computeHasBottomSection=function(M){return!!M.ctaHasBottomSection};
_.N.computeIsSourceMissing=function(M){return M.ctaHasBottomSection===!1?!0:M&&this.computeSource(M)?!1:!0};
_.N.computeSecondaryEndpoint=function(M){return M.secondaryEndpoint||M.endpoint};
Kc.prototype.dataChanged=Kc.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Kc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Kc.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],Kc.prototype,"imageWidth",void 0);_.T([_.B(),_.r("design:type",Number)],Kc.prototype,"imageHeight",void 0);
_.T([_.B({computed:"computeSecondaryEndpoint(data)"}),_.r("design:type",Object)],Kc.prototype,"secondaryEndpoint",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.r("design:type",Boolean)],Kc.prototype,"hasActionButton",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.r("design:type",Boolean)],Kc.prototype,"hasBottomSection",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.r("design:type",Boolean)],Kc.prototype,"missingSource",void 0);_.T([_.B({computed:"computeIcon_(data.icon)"}),_.r("design:type",String)],Kc.prototype,"icon",void 0);_.T([_.B({computed:"computeIcon_(data.secondaryIcon)"}),_.r("design:type",String)],Kc.prototype,"secondaryIcon",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.r("design:type",String)],Kc.prototype,"clarifyStyle",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.r("design:type",String)],Kc.prototype,"backgroundStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Kc.prototype,"roundContainer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Kc.prototype,"amsterdamEnabled",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Kc.prototype,"dataChanged",null);
_.T([_.b({is:"ytd-clarification-renderer",disableElementRegistration:!0})],Kc);
_.z(Kc,"ytd-clarification-renderer",function(){if(Hj9!==void 0)return Hj9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Hj9=M},{mode:1});var euC;var $DC;var nc=function(){var M=_.Q.apply(this,arguments)||this;M.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return M};
_.l(nc,_.Q);_.N=nc.prototype;_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.N.computeIcon=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.N.computeUseContacts=function(M){return!!M.contacts&&M.contacts.length>0};
_.N.computePhoneContact=function(M){var q,G;return(q=M.contacts)==null?void 0:(G=q.find(function(K){var n;return(K==null?void 0:(n=K.icon)==null?void 0:n.iconType)==="PHONE"}))==null?void 0:G.actionText};
_.N.computeSmsContact=function(M){var q,G;return(q=M.contacts)==null?void 0:(G=q.find(function(K){var n;return(K==null?void 0:(n=K.icon)==null?void 0:n.iconType)==="SMS"}))==null?void 0:G.actionText};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],nc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],nc.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],nc.prototype,"amsterdamEnabled",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.r("design:type",Boolean)],nc.prototype,"useContacts",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.r("design:type",String)],nc.prototype,"phoneContact",void 0);_.T([_.b({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],nc);
_.z(nc,"ytd-single-action-emergency-support-renderer",function(){if($DC!==void 0)return $DC;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return $DC=M},{mode:1});_.hC("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var E8=function(){var M=_.Q.apply(this,arguments)||this;M.roundedContainer=!0;M.amsterdamEnabled=_.w("enable_desktop_amsterdam_info_panels");return M};
_.l(E8,_.Q);E8.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"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],E8.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],E8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],E8.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],E8.prototype,"roundedContainer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],E8.prototype,"amsterdamEnabled",void 0);
_.T([_.b({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],E8);
_.z(E8,"ytd-emergency-onebox-renderer",function(){if(euC!==void 0)return euC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return euC=M},{mode:1});var sIG;_.hC("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var NH=function(){return _.Q.apply(this,arguments)||this};
_.l(NH,_.Q);NH.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],NH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],NH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],NH.prototype,"data",void 0);_.T([_.b({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],NH);
_.z(NH,"ytd-exploratory-results-renderer",function(){if(sIG!==void 0)return sIG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return sIG=M},{mode:1});var MJa;_.hC("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var ki=function(){var M=_.Q.apply(this,arguments)||this;M.messageData=null;return M};
_.l(ki,_.Q);_.N=ki.prototype;_.N.onServiceRequestCompleted=function(M,q){M=q.actions||[];q=0;for(var G=M.length;q<G;q++){var K=M[q],n=void 0,E=void 0;if((n=_.C(K,_.PA))==null?0:(E=n.item)==null?0:E.messageRenderer)this.messageData=_.C(K,_.PA).item.messageRenderer}};
_.N.dataChanged=function(){var M=this.data;this.hostElement.hidden=!1;_.HE(this.hostElement,"is-channel",M&&!M.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.N.computeThumbnailWidth=function(M){return M?126:56};
_.N.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.N.onSubmitTap=function(){var M=this.data,q=this.selectedResponseIndex;M!==void 0&&q!==void 0&&(M=M.responses[q],M.responseData&&_.AL().resolve(_.vR).resolveCommand(M.responseData,{form:{element:this.hostElement}}))};
_.N.onDismissTap=function(){this.hostElement.hidden=!0;var M=this.data;M!==void 0&&M.dismissalEndpoint&&_.AL().resolve(_.vR).resolveCommand(M.dismissalEndpoint,{form:{element:this.hostElement}})};
_.N.updateSelectedResponseIndexFromBinding=function(M){this.selectedResponseIndex=M.detail.value};
ki.prototype.onSelectedResponseIndexChange=ki.prototype.onSelectedResponseIndexChange;ki.prototype.dataChanged=ki.prototype.dataChanged;ki.prototype.onServiceRequestCompleted=ki.prototype.onServiceRequestCompleted;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ki.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],ki.prototype,"messageData",void 0);
_.T([_.B(),_.r("design:type",Number)],ki.prototype,"selectedResponseIndex",void 0);_.T([_.ET("#submit-button"),_.r("design:type",HTMLButtonElement)],ki.prototype,"submitButton",void 0);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],ki.prototype,"onServiceRequestCompleted",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ki.prototype,"dataChanged",null);
_.T([_.KT("selectedResponseIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ki.prototype,"onSelectedResponseIndexChange",null);_.T([_.b({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],ki);
_.z(ki,"ytd-feedback-elicitation-single-question-renderer",function(){if(MJa!==void 0)return MJa;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return MJa=M},{mode:1});var qMG;var pc=function(){return _.Q.apply(this,arguments)||this};
_.l(pc,_.Q);pc.prototype.computeThumbnailWidth=function(M){return M?602:428};
pc.prototype.updateWideFromBinding=function(M){this.wide=M.detail.value};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pc.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],pc.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],pc.prototype,"wide",void 0);_.T([_.b({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],pc);
_.z(pc,"ytd-newspaper-hero-video-renderer",function(){if(qMG!==void 0)return qMG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qMG=M},{mode:1});var GlG;var Kp9=function(){return _.Q.apply(this,arguments)||this};
_.l(Kp9,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Kp9.prototype,"rendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Kp9.prototype,"data",void 0);_.T([_.b({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],Kp9);
_.z(Kp9,"ytd-newspaper-mini-video-renderer",function(){if(GlG!==void 0)return GlG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return GlG=M},{mode:1});var n$G;_.hC("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var yD=function(){return _.Q.apply(this,arguments)||this};
_.l(yD,_.Q);yD.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"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yD.prototype,"data",void 0);_.T([_.b({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],yD);
_.z(yD,"ytd-newspaper-renderer",function(){if(n$G!==void 0)return n$G;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return n$G=M},{mode:1});var E$G;_.hC("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Lc=function(){var M=_.Q.apply(this,arguments)||this;M.isSegment=!1;M.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};M.nextContinuation={continuationType:"playlistVideoListContinuation"};return M};
_.l(Lc,_.Q);_.N=Lc.prototype;_.N.created=function(){var M=this;this.JSC$22032_ytReorderableController=new _.sad(101,function(q){M.handleDrop(q)})};
_.N.attached=function(){_.AL();var M;(M=_.AL().resolve(_.WR(_.lK)))!=null&&(M.playlistVideoListElement=this.hostElement)};
_.N.detached=function(){var M;(M=_.AL().resolve(_.WR(_.lK)))!=null&&(M.playlistVideoListElement=void 0);M=_.AL().resolve(_.WR(_.vj));_.w("web_enable_voting_animation")&&M&&(M.parentElem=void 0,M.videos=[],M.continuationsPresent=!1,M.showRefreshPill=!1);_.X5(this.JSC$22032_ytReorderableController)};
_.N.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"}}}}}};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.N.dataChanged=function(){var M=_.AL().resolve(_.WR(_.vj));if(_.w("web_enable_voting_animation")&&this.data&&M){var q=_.f_(this.hostElement).querySelector("#contents");q&&(M.parentElem=q);M.addVideos(this.data.contents)}_.X5(this.JSC$22032_ytReorderableController)};
_.N.onRendererstamperFinished=function(){this.canReorder&&_.MYf(this.JSC$22032_ytReorderableController,_.f_(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.N.onPlaylistReloading=function(){this.isReloading=!0};
_.N.onUpdateSetVideoId=function(M){if(M.detail&&this.data&&this.data.contents){var q=M.detail;M=this.data.contents.findIndex(function(n){var E;return((E=n.playlistVideoRenderer)==null?void 0:E.videoId)===q.videoId});
if(!(M<0)&&q.setVideoId&&(this.set("data.contents."+M+".playlistVideoRenderer.setVideoId",q.setVideoId),_.w("web_enable_voting_animation"))){var G;if(M=_.C((G=this.data.contents[M].playlistVideoRenderer)==null?void 0:G.engagementBar,_.Mni)){var K;(K=M.actions)==null||K.forEach(function(n){if(n=_.C(n,_.q8y))n.itemId=q.setVideoId})}(G=_.AL().resolve(_.WR(_.vj)))&&QyM(G,q.videoId,q.setVideoId)}}};
_.N.computeContentsClass=function(M){return M?"reloading":""};
_.N.computeIsSortable=function(M,q){return M&&q>0&&!this.isSegment&&!_.w("shorts_in_playlists_web")};
_.N.computeIsEditable=function(M){return M};
_.N.computeCanReorder=function(M){return M};
_.N.handlePlaylistRemoveVideosAction=function(M){if(this.get("playlistRemoveVideosAction.setVideoIds",M)&&this.data&&this.data.contents){M=_.C(M,_.uXl).setVideoIds;for(var q=this.data.contents.length-1;q>=0;){var G=this.data.contents[q].playlistVideoRenderer;G&&G.setVideoId&&M.includes(G.setVideoId)&&this.splice("data.contents",q,1);q--}_.VW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.N.updateIndices=function(){if(this.data&&this.data.contents)for(var M=0;M<this.data.contents.length;M++)this.set("data.contents."+M+".playlistVideoRenderer.index",_.bc(String(M+1)))};
_.N.handleDrop=function(M){M=M.currDragItem;var q=_.xs(M.parentNode.childNodes,M),G=this.data.contents.splice(Number(_.UX(M.data.index))-1,1)[0];this.data.contents.splice(q,0,G);q=q?this.get("contents."+(q-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();M=this.buildReorderServiceEndpoint(M.data.setVideoId,q);this.ytComponentBehavior.resolveCommand(M)};
_.N.buildReorderServiceEndpoint=function(M,q){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",M),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",q),this.data.onReorderEndpoint):null};
_.N.handleUpdatePlaylistAction=function(M){var q;(M=_.C((q=_.C(M,_.JQ8))==null?void 0:q.updatedRenderer,_.Jvv))&&this.canReorder!==M.canReorder&&this.set("data.canReorder",M.canReorder);M&&M.contents&&(this.set("data.contents",M.contents),this.isReloading=!1);M&&M.continuations&&this.set("data.continuations",M.continuations)};
_.N.handleAddRendererToItemSectionAction=function(M){var q,G=(q=_.C(M,Zje))==null?void 0:q.renderer,K;G&&((K=_.C(M,Zje))==null?void 0:K.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,G),M=_.AL().resolve(_.WR(_.vj)),_.w("web_enable_voting_animation")&&M&&(G&&(q=_.sjy(G))&&M.recommendedVideos.push({itemId:q,videoId:_.Gqu(G),voteCount:_.KsF(G),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.N.isVotingEnabledOnPlaylist=function(M){if(!M)return!1;M=_.k(M);for(M=M.next();!M.done;M=M.next()){var q=void 0;return!!_.C((q=M.value.playlistVideoRenderer)==null?void 0:q.engagementBar,_.Mni)}return!1};
_.N.onAppendContinuationItemsActionFinished=function(){var M;this.isVotingEnabledOnPlaylist((M=this.data)==null?void 0:M.contents)&&(this.updateIndices(),M=_.AL().resolve(_.WR(_.vj)),_.w("web_enable_voting_animation")&&M&&this.data&&M.addVideos(this.data.contents))};
_.N.updateVideoData=function(M){if(M.detail&&this.data&&this.data.contents){var q=M.detail;M=q.toIdx;var G=q.itemId,K=q.newVoteCount,n=q.voteStatus;q=q.hideItem;var E,p,y=(E=this.data)==null?void 0:(p=E.contents)==null?void 0:p.findIndex(function(h){return _.sjy(h)===G});
if(!(y<0)){E=this.data.contents[y];var Y;if((Y=E.playlistVideoRenderer)==null?0:Y.voteCount)E.playlistVideoRenderer.voteCount=K;var A;if(Y=_.C((A=E.playlistVideoRenderer)==null?void 0:A.engagementBar,_.Mni)){var v;(v=Y.actions)==null||v.forEach(function(h){(h=_.C(h,_.q8y))&&h.initialState&&(h.initialState.votes=K,h.initialState.status=n)})}this.data.contents.splice(y,1);
q||this.data.contents.splice(M,0,E);this.updateIndices()}}};
Lc.prototype.updateVideoData=Lc.prototype.updateVideoData;Lc.prototype.onAppendContinuationItemsActionFinished=Lc.prototype.onAppendContinuationItemsActionFinished;Lc.prototype.onUpdateSetVideoId=Lc.prototype.onUpdateSetVideoId;Lc.prototype.onPlaylistReloading=Lc.prototype.onPlaylistReloading;Lc.prototype.onRendererstamperFinished=Lc.prototype.onRendererstamperFinished;Lc.prototype.dataChanged=Lc.prototype.dataChanged;
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Lc.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Lc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Lc.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.M4.YtNextContinuationBehavior),_.r("design:type",Object)],Lc.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.P(_.sG),_.r("design:type",Object)],Lc.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Lc.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Lc.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],Lc.prototype,"isReloading",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Lc.prototype,"isSegment",void 0);
_.T([_.B({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.r("design:type",Boolean)],Lc.prototype,"isSortable",void 0);_.T([_.B({computed:"computeIsEditable(data.isEditable)"}),_.r("design:type",Boolean)],Lc.prototype,"isEditable",void 0);_.T([_.B({computed:"computeCanReorder(data.canReorder)"}),_.r("design:type",Boolean)],Lc.prototype,"canReorder",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"dataChanged",null);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"onRendererstamperFinished",null);_.T([_.GQ("yt-playlist-reloading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"onPlaylistReloading",null);
_.T([_.GQ("yt-update-set-video-id"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Lc.prototype,"onUpdateSetVideoId",null);_.T([_.GQ("yt-append-continuation-items-action-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lc.prototype,"onAppendContinuationItemsActionFinished",null);
_.T([_.GQ("yt-update-video-data-voting-animation"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Lc.prototype,"updateVideoData",null);_.T([_.b({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Lc);
_.z(Lc,"ytd-playlist-video-list-renderer",function(){if(E$G!==void 0)return E$G;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return E$G=M},{mode:_.VO("kevlar_poly_si_batch_j047")?1:2});var N9v;var Yi=function(){return _.Q.apply(this,arguments)||this};
_.l(Yi,_.Q);Yi.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"}}}}};
Yi.prototype.onTextWrapperTap=function(M){var q=this.data&&this.data.navigationEndpoint;q&&!_.b8(_.Zx(M),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.jP(this.hostElement,"yt-navigate",{endpoint:q})};
Yi.prototype.dataChanged=function(){var M=this.get("data.offerButton.buttonRenderer.serviceEndpoint");M&&M.commandMetadata&&_.C(M.commandMetadata,_.QL)&&_.C(M.commandMetadata,_.QL).fireAutomatically&&_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}})};
Yi.prototype.dataChanged=Yi.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.HJ),_.r("design:type",Object)],Yi.prototype,"ytdLockupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Yi.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],Yi.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],Yi.prototype,"biggerThumbsStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Yi.prototype,"leftAligned",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Yi.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-movie-renderer"})],Yi);
_.z(Yi,"ytd-movie-renderer",function(){if(N9v!==void 0)return N9v;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return N9v=M},{mode:1});var kl3;var W0=function(){var M=_.Q.apply(this,arguments)||this;M.rounded=!0;M.pageAttachedTo=void 0;M.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return M};
_.l(W0,_.Q);W0.prototype.attached=function(){this.pageAttachedTo=_.AL().resolve(_.md).getCurrentPage();_.jP(this.hostElement,"yt-player-attached",this.player)};
W0.prototype.detached=function(){var M;if((M=this.pageAttachedTo)==null?0:M.hostElement)_.jP(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
W0.prototype.dataChanged=function(){var M;if((M=this.data)==null?0:M.videoId)M={video_id:this.data.videoId,autoplay:!0},!_.w("miniplayer_stop_channel_video_autoplay_killswitch")&&_.AL().resolve(_.lq).isMiniplayerActive()&&(M.pause_at_start=!0,M.autoplay=!1),this.player.loadVideoWithPlayerVars(M)};
W0.prototype.handleSignalActionPausePlayer=function(){_.rk().pause()};
W0.prototype.dataChanged=W0.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],W0.prototype,"data",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],W0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],W0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],W0.prototype,"rounded",void 0);_.T([_.ET("#player"),_.r("design:type",Object)],W0.prototype,"player",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],W0.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],W0);
_.z(W0,"ytd-channel-video-player-renderer",function(){if(kl3!==void 0)return kl3;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return kl3=M},{mode:1});var pva;var yd3;var Lpk;var Af=function(){var M=_.Q.apply(this,arguments)||this;M.playing=!1;M.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Fi(M);M.active=!1;return M};
_.l(Af,_.Q);_.N=Af.prototype;_.N.detached=function(){this.stop()};
_.N.play=function(){var M=this,q,G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return M.active=!0,q=M.get("data.inlinePlaybackEndpoint.watchEndpoint"),G=q.videoId||M.data.videoId,K=q.startTimeSeconds||0,n=q.playerParams||null,_.w("kevlar_player_update_killswitch")?p.yield(M.playerEl.update({args:{video_id:G,startSeconds:K,player_params:n}}),2):(M.playerEl.loadVideoWithPlayerVars({video_id:G,startSeconds:K,player_params:n,autoplay:!0}),p.jumpTo(2));if(p.nextAddress!=4)return p.yield(M.playerEl.getPlayerPromise(),
4);E=p.yieldResult;E.unloadModule("annotations_module");E.addEventListener("onStateChange",function(y){M.onPlayerStateChange(y)});
_.gL(p)})};
_.N.onPlayerStateChange=function(M){if(this.active)switch(this.playing=M===1,M){case 1:_.jP(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.jP(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.N.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.N.resize=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return G.yield(M.playerEl.getPlayerPromise(),2);q=G.yieldResult;q.setSize(NaN,NaN);_.gL(G)})};
_.T([_.B(),_.r("design:type",Object)],Af.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Af.prototype,"playing",void 0);_.T([_.B(),_.r("design:type",Object)],Af.prototype,"playerId",void 0);_.T([_.ET("#player"),_.r("design:type",Object)],Af.prototype,"playerEl",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Af);
_.z(Af,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(Lpk!==void 0)return Lpk;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Lpk=M},{mode:1});var YMy;var Wpy;var de=function(){var M=_.Q.apply(this,arguments)||this;M.width=0;return M};
_.l(de,_.Q);_.N=de.prototype;_.N.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.qs(this,this.onEnded));this.mp4El.addEventListener("error",_.qs(this,this.onError))};
_.N.detached=function(){this.videoEl.removeEventListener("ended",_.qs(this,this.onEnded));this.mp4El.removeEventListener("error",_.qs(this,this.onError))};
_.N.play=function(){var M=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var q=this.videoEl.play();q?q.then(function(){M.handleVideoStartPlaying()}).catch(function(){_.jP(M.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.jP(this.hostElement,"yt-video-thumbnail-not-playing")};
_.N.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.N.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.N.dataChanged=function(){var M;if((M=this.data)==null?0:M.thumbnailPlaceholder)M=_.TE(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+M+")";this.stop();this.autoplay&&this.play()};
_.N.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.N.onEnded=function(){this.stop();_.jP(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.N.onError=function(){_.jP(this.hostElement,"yt-video-thumbnail-error")};
_.N.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.N.getVideoThumbnail=function(M){if(M&&M.length)return M[0]};
de.prototype.dataChanged=de.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],de.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],de.prototype,"animatePlaceholderOnEntrance",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],de.prototype,"autoplay",void 0);_.T([_.B({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.r("design:type",Object)],de.prototype,"videoThumbnail",void 0);
_.T([_.B(),_.r("design:type",Boolean)],de.prototype,"loop",void 0);_.T([_.B(),_.r("design:type",Boolean)],de.prototype,"isVideoPlaying",void 0);_.T([_.B(),_.r("design:type",Object)],de.prototype,"width",void 0);_.T([_.ET("#mp4"),_.r("design:type",HTMLElement)],de.prototype,"mp4El",void 0);_.T([_.ET("#placeholder"),_.r("design:type",HTMLElement)],de.prototype,"placeholderEl",void 0);_.T([_.ET("#video"),_.r("design:type",HTMLVideoElement)],de.prototype,"videoEl",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],de.prototype,"dataChanged",null);_.T([_.aO({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],de);
_.z(de,"yt-video-as-thumbnail-details",function(){if(Wpy===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;YMy===void 0&&(YMy=document.createElement("template"));var K=YMy;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Wpy=M}M=Wpy;return M},{mode:2});var v0=function(){var M=_.Q.apply(this,arguments)||this;M.disableGridStateAware=!1;M.animationEnabled=_.w("enable_web_ketchup_hero_animation");M.transitioningOut=!1;M.narrow=!1;M.narrower=!1;M.isCarouselInFeed=!1;M.videoTimeoutJobId=0;M.panelTimeoutJobId=0;M.panelTimeoutJobStartMs=0;M.actionMap={"yt-window-resized":"onWindowResized"};return M};
_.l(v0,_.Q);_.N=v0.prototype;_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.N.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var M;this.player&&((M=this.data)==null?0:M.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.N.attached=function(){this.onWindowResized()};
_.N.detached=function(){this.clearTimeouts()};
_.N.onWindowResized=function(){this.updateSize()};
_.N.computePanelLayout=function(M){return M&&M.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.N.playVideo=function(){var M;this.video&&((M=this.data)==null?0:M.videoThumbnail)&&this.video.play();var q;this.player&&((q=this.data)==null?0:q.inlinePlaybackRenderer)&&this.player.play()};
_.N.stopVideo=function(){var M;this.video&&((M=this.data)==null?0:M.videoThumbnail)&&this.video.stop();var q;this.player&&((q=this.data)==null?0:q.inlinePlaybackRenderer)&&this.player.stop()};
_.N.transitionOut=function(){var M=this;this.transitioningOut=!0;return new Promise(function(q){var G=function(){_.f_(M.hostElement).querySelector("#action-button").removeEventListener("animationend",G);_.r8.cancelJob(K);q();M.transitioningOut=!1};
var K=_.Jp(_.r8,G,1E3);_.f_(M.hostElement).querySelector("#action-button").addEventListener("animationend",G);M.player&&(M.player.playing=!1)})};
_.N.computeMetadataOrder=function(M){return M&&M.metadataOrder&&M.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?M.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.N.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.N.computeAvatarSize=function(M){return M&&M.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.N.onContentClick=function(M){if(!_.b8(_.Zx(M),this.hostElement,["A".toString(),"BUTTON".toString()])){var q;if((q=this.data)==null?0:q.navigationEndpoint){var G;this.componentBehavior.resolveCommand((G=this.data)==null?void 0:G.navigationEndpoint)}}};
_.N.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.N.setBackgroundImage=function(M){if(M=this.getBackgroundImageUrl(M))_.f_(this.hostElement).querySelector("#hero").style.backgroundImage="url("+M+")"};
_.N.setScrimLayer=function(M){var q=this.getScrimLayerColorStops(M);M=((M==null?void 0:M.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(M=180);_.R9("HTML_DIR")==="rtl"&&(M=-M);q&&(_.f_(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+M+"deg, "+q+")")};
_.N.isNarrower=function(){return this.hostElement.clientWidth<v0.NARROW_VERSION_SIZE};
_.N.getScrimLayerColorStops=function(){var M,q=(M=this.data)==null?void 0:M.scrimColorValues;if(!q)return null;if(q.length===1)return M=_.C_(q[0]),M+" 0%, "+M+" 100%";if(q.length===3){var G=[0,72,98];return q.map(function(K,n){return _.C_(K)+" "+G[n]+"%"}).join(",")}return null};
_.N.getBackgroundImageUrl=function(M){return M&&M.largeFormFactorBackgroundThumbnail?_.TE((M.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||M.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.N.onPlaying=function(){this.startVideoTimeout()};
_.N.onEnded=function(){this.rotate()};
_.N.startPanelTimeout=function(){var M=this;if(!this.panelTimeoutJobId){var q=this.get("data.minPanelDisplayDurationMs");q&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.Jp(_.r8,function(){M.rotate()},q))}};
_.N.startVideoTimeout=function(){var M=this;if(!this.videoTimeoutJobId){_.r8.cancelJob(this.panelTimeoutJobId);var q=Date.now()-this.panelTimeoutJobStartMs;q=Math.max(0,this.get("data.minPanelDisplayDurationMs")-q);q=Math.max(this.get("data.minVideoPlayDurationMs")||0,q);this.videoTimeoutJobId=_.Jp(_.r8,function(){M.rotate()},q)}};
_.N.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.r8.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.r8.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.N.rotate=function(){this.clearTimeouts();_.jP(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Yd.Object.defineProperties(v0.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.f_(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.f_(this.hostElement).querySelector("#video")}}});
_.Yd.Object.defineProperties(v0,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
v0.prototype.onEnded=v0.prototype.onEnded;v0.prototype.onPlaying=v0.prototype.onPlaying;v0.prototype.dataChanged=v0.prototype.dataChanged;_.T([_.P(_.jr),_.r("design:type",Object)],v0.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],v0.prototype,"componentBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],v0.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.P(_.SM5),_.r("design:type",Object)],v0.prototype,"ytBooleanLogicBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],v0.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],v0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],v0.prototype,"ytRendererBehavior",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],v0.prototype,"disableGridStateAware",void 0);_.T([_.B(),_.r("design:type",Object)],v0.prototype,"data",void 0);_.T([_.B({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.r("design:type",String)],v0.prototype,"panelLayout",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],v0.prototype,"animationEnabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],v0.prototype,"transitioningOut",void 0);
_.T([_.B({computed:"computeMetadataOrder(data)"}),_.r("design:type",Boolean)],v0.prototype,"metadataOrder",void 0);_.T([_.B({computed:"computeByline(data)"}),_.r("design:type",Object)],v0.prototype,"byline",void 0);_.T([_.B({computed:"computeAvatarSize(data)"}),_.r("design:type",Number)],v0.prototype,"avatarSize",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],v0.prototype,"narrow",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],v0.prototype,"narrower",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],v0.prototype,"layoutStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],v0.prototype,"isCarouselInFeed",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],v0.prototype,"dataChanged",null);_.T([_.GQ("yt-default-promo-panel-renderer-playing"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],v0.prototype,"onPlaying",null);
_.T([_.GQ("yt-default-promo-panel-renderer-ended"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],v0.prototype,"onEnded",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],v0);
_.z(v0,"ytd-default-promo-panel-renderer",function(){if(yd3!==void 0)return yd3;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return yd3=M},{mode:1});_.hC("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var hf=function(){var M=_.Q.apply(this,arguments)||this;M.narrower=!1;M.dotMenuVisible=!1;M.paginationThumbnailsVisible=!1;M.active=!0;M.disableGridStateAware=!1;M.actionMap={"yt-window-resized":"onWindowResized"};return M};
_.l(hf,_.Q);_.N=hf.prototype;_.N.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]]"}}}}}};
_.N.attached=function(){document.addEventListener("yt-page-type-changed",_.qs(this,this.onPageTypeChange));this.currentPageSubtype=_.El4(location.pathname);this.onWindowResized()};
_.N.detached=function(){this.jobId&&_.r8.cancelJob(this.jobId);this.updateSizeJobId&&_.r8.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.qs(this,this.onPageTypeChange))};
_.N.onPageTypeChange=function(M){this.active=M.detail.newPageSubtype===this.currentPageSubtype};
_.N.onWindowResized=function(){this.updateSize()};
_.N.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.N.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.N.setCarouselItem=function(M){M>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.r8.cancelJob(this.jobId);var q=this.getCurrentPanelElement();q&&q.stopVideo();this.currentItemIndex=M%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(q||(q=this.getCurrentPanelElement()),q.playVideo()):this.startRotationJob()};
_.N.scrollThumbnails=function(M){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var q=this.getCurrentPaginationElement();if(q){var G=_.f_(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?G.style.transform="translateX(0)":(q=q.offsetWidth+8,G.style.transform="translateX(-"+q*(M-Math.ceil(Math.floor(this.overlay.offsetWidth/q)/2)+1)+"px)")}}};
_.N.onDataChanged=function(){var M=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.MK(_.r8,function(){var q;(q=M.getCurrentPanelElement())==null||q.updateSize();M.updateSize()}))};
_.N.getCurrentPanelElement=function(){return _.f_(_.f_(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.N.getCurrentPaginationElement=function(){return _.f_(_.f_(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.N.getNavigationClass=function(M,q){return M===q?"selected":""};
_.N.getNavigationDurationStyle=function(M){return"animation-duration:"+(this.get("data.carouselItems."+M+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.N.onNavigationTap=function(M){var q=this,G=M.model.index;G!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){q.setCarouselItem(G)}),this.autorotateActive=!1)};
_.N.onVideoThumbnailEnded=function(){var M=this;if(this.shouldRotate()){var q=this.getCurrentPaginationElement();q&&(q.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){q.classList.remove("finished");M.setNextCarouselItem()}))}};
_.N.onVideoThumbnailError=function(){this.startRotationJob()};
_.N.onVideoNotPlaying=function(){this.startRotationJob()};
_.N.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.N.startRotationJob=function(){var M=this;_.r8.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.r8.addLowPriorityJob(function(){M.getCurrentPanelElement().transitionOut().then(function(){M.setNextCarouselItem()})},this.rotationTimeout))};
_.N.computeDotMenuVisible=function(M,q){return!!M&&!!M.carouselItems&&M.carouselItems.length>1&&!M.paginationThumbnails||!!q};
_.N.computePaginationThumbnailsVisible=function(M,q){var G,K;return((K=M==null?void 0:(G=M.paginationThumbnails)==null?void 0:G.length)!=null?K:0)>1&&!q};
_.N.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.N.computePaginatorAlignment=function(M){return(M==null?void 0:M.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.N.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.N.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.N.isNarrower=function(M){return(M!=null?M:0)<v0.NARROW_VERSION_SIZE};
hf.prototype.activeChanged=hf.prototype.activeChanged;hf.prototype.onVideoNotPlaying=hf.prototype.onVideoNotPlaying;hf.prototype.onVideoThumbnailError=hf.prototype.onVideoThumbnailError;hf.prototype.onVideoThumbnailEnded=hf.prototype.onVideoThumbnailEnded;hf.prototype.onDataChanged=hf.prototype.onDataChanged;_.T([_.P(_.jr),_.r("design:type",Object)],hf.prototype,"ytdGridStateAwareBehavior",void 0);
_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],hf.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],hf.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hf.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hf.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],hf.prototype,"currentItem",void 0);
_.T([_.B(),_.r("design:type",Number)],hf.prototype,"currentItemIndex",void 0);_.T([_.B(),_.r("design:type",Number)],hf.prototype,"rotationTimeout",void 0);_.T([_.B(),_.r("design:type",Number)],hf.prototype,"loopCount",void 0);_.T([_.B({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.r("design:type",String)],hf.prototype,"paginatorAlignment",void 0);_.T([_.B(),_.r("design:type",Number)],hf.prototype,"jobId",void 0);
_.T([_.B(),_.r("design:type",Number)],hf.prototype,"updateSizeJobId",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],hf.prototype,"isCarouselInFeed",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],hf.prototype,"narrower",void 0);_.T([_.B({computed:"computeDotMenuVisible(data, narrower)"}),_.r("design:type",Object)],hf.prototype,"dotMenuVisible",void 0);
_.T([_.B({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.r("design:type",Object)],hf.prototype,"paginationThumbnailsVisible",void 0);_.T([_.B({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.r("design:type",String)],hf.prototype,"layoutType",void 0);_.T([_.B({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],hf.prototype,"autorotateActive",void 0);_.T([_.B(),_.r("design:type",Object)],hf.prototype,"active",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],hf.prototype,"disableGridStateAware",void 0);_.T([_.ET("#overlay"),_.r("design:type",HTMLElement)],hf.prototype,"overlay",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hf.prototype,"onDataChanged",null);
_.T([_.GQ("yt-video-thumbnail-ended"),_.GQ("yt-default-promo-panel-renderer-rotate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hf.prototype,"onVideoThumbnailEnded",null);_.T([_.GQ("yt-video-thumbnail-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hf.prototype,"onVideoThumbnailError",null);
_.T([_.GQ("yt-video-thumbnail-not-playing"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hf.prototype,"onVideoNotPlaying",null);_.T([_.yO("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hf.prototype,"activeChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],hf);
_.z(hf,"ytd-carousel-item-renderer",function(){if(pva!==void 0)return pva;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return pva=M},{mode:2});var AdM;var dxa;var v$e;var hfv;var tf=function(){var M=_.Q.apply(this,arguments)||this;M.originalQuery=null;M.originalEndpoint=null;return M};
_.l(tf,_.Q);tf.prototype.computeShowOriginalQueryWithoutEndpoint_=function(M,q){return!(!M||q)};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],tf.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tf.prototype,"correctedText",void 0);_.T([_.B(),_.r("design:type",Object)],tf.prototype,"correctedQuery",void 0);_.T([_.B(),_.r("design:type",Object)],tf.prototype,"correctedEndpoint",void 0);_.T([_.B(),_.r("design:type",Object)],tf.prototype,"originalText",void 0);_.T([_.B(),_.r("design:type",Object)],tf.prototype,"originalQuery",void 0);
_.T([_.B(),_.r("design:type",Object)],tf.prototype,"originalEndpoint",void 0);_.T([_.B({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.r("design:type",Boolean)],tf.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.T([_.aO({is:"yt-search-query-correction",disableElementRegistration:!0})],tf);
_.z(tf,"yt-search-query-correction",function(){if(hfv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;v$e===void 0&&(v$e=document.createElement("template"));var K=v$e;G.call(q,K.content.cloneNode(!0),M.content.firstChild);hfv=M}M=hfv;return M},{mode:2});_.hC("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var tJL=function(){return _.Q.apply(this,arguments)||this};
_.l(tJL,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tJL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tJL.prototype,"data",void 0);_.T([_.aO({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],tJL);
_.z(tJL,"yt-did-you-mean-renderer",function(){if(dxa===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;AdM===void 0&&(AdM=document.createElement("template"));var K=AdM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);dxa=M}M=dxa;return M},{mode:2});var OPC;var wve;_.hC("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var CSk=function(){return _.Q.apply(this,arguments)||this};
_.l(CSk,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],CSk.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],CSk.prototype,"data",void 0);_.T([_.aO({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],CSk);
_.z(CSk,"yt-including-results-for-renderer",function(){if(wve===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;OPC===void 0&&(OPC=document.createElement("template"));var K=OPC;G.call(q,K.content.cloneNode(!0),M.content.firstChild);wve=M}M=wve;return M},{mode:2});var a8C;var o$M;_.hC("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var O8=function(){return _.Q.apply(this,arguments)||this};
_.l(O8,_.Q);O8.prototype.computeExtraClasses_=function(M,q){var G="";M&&(G+=" "+M.toLowerCase().replace(/_/g,"-"));q&&(G+=" "+q.toLowerCase().replace(/_/g,"-"));return G};
O8.prototype.computeUrlImg_=function(){var M=this.data;M.image&&(_.f_(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.TE(M.image.thumbnails,Number.MAX_VALUE)+")")};
O8.prototype.computeUrlImg_=O8.prototype.computeUrlImg_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],O8.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],O8.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],O8.prototype,"computeUrlImg_",null);_.T([_.aO({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],O8);
_.z(O8,"yt-music-pass-feature-info-renderer",function(){if(o$M===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;a8C===void 0&&(a8C=document.createElement("template"));var K=a8C;G.call(q,K.content.cloneNode(!0),M.content.firstChild);o$M=M}M=o$M;return M},{mode:2});var l8G;var XvG;_.hC("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var PSC=function(){return _.Q.apply(this,arguments)||this};
_.l(PSC,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],PSC.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],PSC.prototype,"data",void 0);_.T([_.aO({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],PSC);
_.z(PSC,"yt-no-results-found-showing-results-for-renderer",function(){if(XvG===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;l8G===void 0&&(l8G=document.createElement("template"));var K=l8G;G.call(q,K.content.cloneNode(!0),M.content.firstChild);XvG=M}M=XvG;return M},{mode:2});var iPL;var cdy;_.hC("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var g$L=function(){return _.Q.apply(this,arguments)||this};
_.l(g$L,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],g$L.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],g$L.prototype,"data",void 0);_.T([_.aO({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],g$L);
_.z(g$L,"yt-results-without-quotes-renderer",function(){if(cdy===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;iPL===void 0&&(iPL=document.createElement("template"));var K=iPL;G.call(q,K.content.cloneNode(!0),M.content.firstChild);cdy=M}M=cdy;return M},{mode:2});var B93;var QIL;_.hC("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var I8k=function(){return _.Q.apply(this,arguments)||this};
_.l(I8k,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],I8k.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],I8k.prototype,"data",void 0);_.T([_.aO({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],I8k);
_.z(I8k,"yt-search-no-results-renderer",function(){if(QIL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;B93===void 0&&(B93=document.createElement("template"));var K=B93;G.call(q,K.content.cloneNode(!0),M.content.firstChild);QIL=M}M=QIL;return M},{mode:2});var DxL;var u2t;_.hC("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var Jd3=function(){return _.Q.apply(this,arguments)||this};
_.l(Jd3,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Jd3.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Jd3.prototype,"data",void 0);_.T([_.aO({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],Jd3);
_.z(Jd3,"yt-showing-results-for-renderer",function(){if(u2t===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;DxL===void 0&&(DxL=document.createElement("template"));var K=DxL;G.call(q,K.content.cloneNode(!0),M.content.firstChild);u2t=M}M=u2t;return M},{mode:2});var ZPk;var bPL;var Uxk;var xxk;var we=function(){var M=_.Q.apply(this,arguments)||this;M.answerExpanded=!1;return M};
_.l(we,_.Q);we.prototype.toggleAnswer_=function(M){var q=_.ba(M);q&&q.classList.contains("yt-simple-endpoint")||(M.preventDefault(),M.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
we.prototype.toggleAnswer_=we.prototype.toggleAnswer_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],we.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],we.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],we.prototype,"answerExpanded",void 0);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],we.prototype,"toggleAnswer_",null);
_.T([_.aO({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],we);
_.z(we,"yt-generic-faq-question-renderer",function(){if(xxk===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Uxk===void 0&&(Uxk=document.createElement("template"));var K=Uxk;G.call(q,K.content.cloneNode(!0),M.content.firstChild);xxk=M}M=xxk;return M},{mode:2});_.hC("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var Cc=function(){return _.Q.apply(this,arguments)||this};
_.l(Cc,_.Q);Cc.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Cc.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Cc.prototype,"data",void 0);_.T([_.aO({is:"yt-faq-section-renderer",disableElementRegistration:!0})],Cc);
_.z(Cc,"yt-faq-section-renderer",function(){if(bPL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;ZPk===void 0&&(ZPk=document.createElement("template"));var K=ZPk;G.call(q,K.content.cloneNode(!0),M.content.firstChild);bPL=M}M=bPL;return M},{mode:2});var zf9;var mxk;_.hC("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var aj=function(){return _.Q.apply(this,arguments)||this};
_.l(aj,_.Q);
aj.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"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],aj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],aj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],aj.prototype,"data",void 0);_.T([_.aO({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],aj);
_.z(aj,"yt-offer-item-expanded-renderer",function(){if(mxk===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;zf9===void 0&&(zf9=document.createElement("template"));var K=zf9;G.call(q,K.content.cloneNode(!0),M.content.firstChild);mxk=M}M=mxk;return M},{mode:2});var SML;var T9A;_.hC("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var oj=function(){return _.Q.apply(this,arguments)||this};
_.l(oj,_.Q);
oj.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"}}}}};
oj.prototype.computeFullWidthMode=function(M){return!(!M||!M.fullWidthMode)};
oj.prototype.computeBorderlessMode=function(M){return!(!M||!M.borderlessMode)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],oj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],oj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],oj.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.r("design:type",Boolean)],oj.prototype,"fullWidthMode",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.r("design:type",Boolean)],oj.prototype,"borderlessMode",void 0);_.T([_.aO({is:"yt-offer-item-renderer",disableElementRegistration:!0})],oj);
_.z(oj,"yt-offer-item-renderer",function(){if(T9A===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;SML===void 0&&(SML=document.createElement("template"));var K=SML;G.call(q,K.content.cloneNode(!0),M.content.firstChild);T9A=M}M=T9A;return M},{mode:2});var rdW;var jIk;_.hC("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var lB=function(){return _.Q.apply(this,arguments)||this};
_.l(lB,_.Q);lB.prototype.computeAriaLevel_=function(M){return this.getLevelID_(M)};
lB.prototype.getLevelID_=function(M){return(M=M.match(/[0-9]+$/))&&M.length==1?M[0]:"1"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],lB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],lB.prototype,"data",void 0);_.T([_.B({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.r("design:type",String)],lB.prototype,"ariaLevel",void 0);_.T([_.B({value:"heading",reflectToAttribute:!0}),_.r("design:type",String)],lB.prototype,"role",void 0);
_.T([_.B({value:-1,reflectToAttribute:!0}),_.r("design:type",Number)],lB.prototype,"tabindex",void 0);_.T([_.aO({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],lB);
_.z(lB,"yt-subscription-product-header-renderer",function(){if(jIk===void 0){var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;rdW===void 0&&(rdW=document.createElement("template"));var K=rdW;G.call(q,K.content.cloneNode(!0),M.content.firstChild);jIk=M}M=jIk;return M},{mode:2});var VJa;var Rfv;_.hC("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var Xj=function(){return _.Q.apply(this,arguments)||this};
_.l(Xj,_.Q);Xj.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:_.tC("menuRenderer"),events:!0}}};
Xj.prototype.onStampFinished_=function(){_.f_(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
Xj.prototype.onStampFinished_=Xj.prototype.onStampFinished_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Xj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Xj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Xj.prototype,"data",void 0);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xj.prototype,"onStampFinished_",null);
_.T([_.aO({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],Xj);
_.z(Xj,"yt-subscription-product-renderer",function(){if(Rfv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;VJa===void 0&&(VJa=document.createElement("template"));var K=VJa;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Rfv=M}M=Rfv;return M},{mode:2});var f8v;var Fpe;_.hC("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var P0=function(){return _.Q.apply(this,arguments)||this};
_.l(P0,_.Q);P0.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
P0.prototype.imageScrimColorValuesChanged_=function(){var M,q=(M=this.data)==null?void 0:M.imageScrimColorValues;_.f_(this.hostElement).querySelector("#scrim").style.backgroundColor=q?_.C_(q[0]):"transparent"};
P0.prototype.imageScrimColorValuesChanged_=P0.prototype.imageScrimColorValuesChanged_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],P0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],P0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],P0.prototype,"data",void 0);
_.T([_.KT("data.imageScrimColorValues"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],P0.prototype,"imageScrimColorValuesChanged_",null);_.T([_.aO({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],P0);
_.z(P0,"yt-subscription-product-upsell-offer-renderer",function(){if(Fpe===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;f8v===void 0&&(f8v=document.createElement("template"));var K=f8v;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Fpe=M}M=Fpe;return M},{mode:2});var HP3;var ef9;var $xe;var s8W;var MRG;var qLA;var iB=function(){return _.Q.apply(this,arguments)||this};
_.l(iB,_.Q);iB.prototype.onYtServiceRequestError_=function(M){_.Qu(this.hostElement,M.detail.error.message)};
iB.prototype.onYtServiceRequestError_=iB.prototype.onYtServiceRequestError_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],iB.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],iB.prototype,"data",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],iB.prototype,"collapsible",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],iB.prototype,"isManageRed",void 0);
_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iB.prototype,"onYtServiceRequestError_",null);_.T([_.aO({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],iB);
_.z(iB,"yt-single-ypc-offer-renderer",function(){if(qLA===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;MRG===void 0&&(MRG=document.createElement("template"));var K=MRG;G.call(q,K.content.cloneNode(!0),M.content.firstChild);qLA=M}M=qLA;return M},{mode:2});var c0=function(){return _.Q.apply(this,arguments)||this};
_.l(c0,_.Q);c0.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],c0.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],c0.prototype,"isManageRed",void 0);_.T([_.aO({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],c0);
_.z(c0,"yt-single-ypc-offer-list-renderer",function(){if(s8W===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;$xe===void 0&&($xe=document.createElement("template"));var K=$xe;G.call(q,K.content.cloneNode(!0),M.content.firstChild);s8W=M}M=s8W;return M},{mode:2});var GsM;var K5M;_.hC("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var ge=function(){return _.Q.apply(this,arguments)||this};
_.l(ge,_.Q);ge.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ge.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ge.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ge.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],ge.prototype,"isManageRed",void 0);_.T([_.aO({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],ge);
_.z(ge,"yt-ypc-offers-list-renderer",function(){if(K5M===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;GsM===void 0&&(GsM=document.createElement("template"));var K=GsM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);K5M=M}M=K5M;return M},{mode:2});_.hC("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var B0=function(){return _.Q.apply(this,arguments)||this};
_.l(B0,_.Q);
B0.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}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],B0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],B0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],B0.prototype,"data",void 0);_.T([_.aO({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],B0);
_.z(B0,"yt-unlimited-manage-subscription-page-renderer",function(){if(ef9===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;HP3===void 0&&(HP3=document.createElement("template"));var K=HP3;G.call(q,K.content.cloneNode(!0),M.content.firstChild);ef9=M}M=ef9;return M},{mode:2});var nge;var Eg3;var QD=function(){return _.Q.apply(this,arguments)||this};
_.l(QD,_.Q);_.N=QD.prototype;_.N.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.N.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.onKeypress_=function(M){M.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.N.handleHeaderTap_=function(M){M.preventDefault();M.stopPropagation();this.expandOffers_()};
_.N.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.N.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
QD.prototype.dataChanged_=QD.prototype.dataChanged_;_.T([_.P(_.X9),_.r("design:type",Object)],QD.prototype,"ironA11yKeysBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],QD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QD.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QD.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],QD.prototype,"offersVisible_",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QD.prototype,"dataChanged_",null);_.T([_.aO({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],QD);
_.z(QD,"yt-collapsible-ypc-offer-renderer",function(){if(Eg3===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;nge===void 0&&(nge=document.createElement("template"));var K=nge;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Eg3=M}M=Eg3;return M},{mode:2});var Nwk;var ksa;_.hC("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Ij=function(){return _.Q.apply(this,arguments)||this};
_.l(Ij,_.Q);_.N=Ij.prototype;_.N.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.N.dataChanged_=function(){if(this.data.backgroundImage){var M=_.TE(this.data.backgroundImage.thumbnails,screen.width),q=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=q?"linear-gradient(180deg, "+q+"), url("+M+")":"url("+M+")";this.data.gtmId&&_.Bz(this.data.gtmId,_.R9("GL",""))}};
_.N.onYtServiceRequestError_=function(M){_.Qu(this.hostElement,M.detail.error.message)};
_.N.getScrimLayerColorStops_=function(){var M,q,G=(M=this.data.unlimitedHeaderV2Data)==null?void 0:(q=M.unlimitedHeaderV2Data)==null?void 0:q.scrimLayerColors;if(!G)return null;var K=100/G.length;return G.map(function(n,E){E*=K;return _.C_(n)+" "+E+"%"}).join(",")};
_.N.computeLogoWithPadding=function(M){var q,G,K;return(M=(q=M.unlimitedLogoImage)==null?void 0:(G=q.thumbnails)==null?void 0:(K=G[0])==null?void 0:K.height)&&M%31===0?!0:!1};
Ij.prototype.onYtServiceRequestError_=Ij.prototype.onYtServiceRequestError_;Ij.prototype.dataChanged_=Ij.prototype.dataChanged_;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Ij.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ij.prototype,"ytRendererBehavior",void 0);_.T([_.B({computed:"computeLogoWithPadding(data)"}),_.r("design:type",Boolean)],Ij.prototype,"logoWithPadding",void 0);
_.T([_.B(),_.r("design:type",Object)],Ij.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ij.prototype,"dataChanged_",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Ij.prototype,"onYtServiceRequestError_",null);_.T([_.aO({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Ij);
_.z(Ij,"yt-unlimited-page-header-renderer",function(){if(ksa===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;Nwk===void 0&&(Nwk=document.createElement("template"));var K=Nwk;G.call(q,K.content.cloneNode(!0),M.content.firstChild);ksa=M}M=ksa;return M},{mode:2});var pIC;var yEC;_.hC("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var D0=function(){return _.Q.apply(this,arguments)||this};
_.l(D0,_.Q);D0.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],D0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],D0.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],D0.prototype,"data",void 0);_.T([_.aO({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],D0);
_.z(D0,"yt-unlimited-user-notification-renderer",function(){if(yEC===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;pIC===void 0&&(pIC=document.createElement("template"));var K=pIC;G.call(q,K.content.cloneNode(!0),M.content.firstChild);yEC=M}M=yEC;return M},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.lpg=_.U(function(M){var q=_.UT(M,{numberOfChips:5}).numberOfChips;return _.W("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.W(_.bf,{each:function(){return Array(q==null?void 0:q())}},function(){return _.W("div",{class:"ytGhostChipShelfChip"})}))},"Vi");_.X4I=_.U(function(M){var q=function(){var p;return((p=M.data)==null?void 0:p.call(M).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"},G=_.qo(),K=_.AL().resolve(_.Dg);
_.mT(function(){requestAnimationFrame(function(){var p;(p=G.lottieEl)==null||p.addEventListener("DOMLoaded",function(){var y;(y=M.onLottieLoaded)==null||y.call(M)})})});
var n=function(){var p;return(p=M.data)==null?void 0:p.call(M).loadingAnimationA11yLabel},E={};
return _.W("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var p;return((p=M.data)==null?void 0:p.call(M).targetId)||""},
"aria-label":function(){return n()||""},
role:function(){return n()?"progressbar":void 0}},_.W(_.C3,{"aria-hidden":"true",
className:_.Hb((E.ytChatLoadingViewModelRtl=K==="rtl",E)),animationName:"YOUCHAT_LOADER",data:function(){return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:q()==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||q()==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"?"ytChatLoadingViewModelVerticalLoadingSvg":"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:q()}}},
animationRef:G}))},"Xi");
}catch(e){_._DumpException(e)}
try{
var y5n,Lhn,YQI,A5P,d6w,vIs,h0I,tUv,OII,wUw,iIn,cZ,PRs,ayI,XU5,lyg,oIP,CRE,c5I,gIg,B_8,Qks,gS,IyL,D6P,ZII,Qy,unR,uv,BZ,IC,J5s,DY,bIR,U68,x6L,z0M,m6L,SQw,T_8,jkv,VU5,R0M,fyR,FhM,HI5,e08,$6v,slg,M45,Gyn,KoR,ndw,NhU,pGU,Lo5,YUI,Wov,AhI,vds,hSU,t4w,OYI,wGU,CdI,aev,le5,chE,iYI,XGR,gdn,PdI,Bhv,uGs,D3U,QlL,IeL,ZY,Jhw,bYw,U3n,x3s,jln,V4M,RS8,fes,FoP,HYP,eSI,$3P,sfg,MPL,GtM,K3R,nDI,EDI,Ntw,ktR,pFE,ylE,W3I,AlI,SU8;
_.PZ=function(M){var q=new _.bj("Error accessing DB");return _.CJ4().then(function(G){return new Promise(function(K,n){try{var E=G.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(M);E.onsuccess=function(){var p=E.result;K(p?p.value:null)};
E.onerror=function(){q.params={key:M,source:"onerror"};n(q)}}catch(p){q.params={key:M,
thrownError:String(p)},n(q)}})},function(){return null})};
y5n=function(M,q){return _.sX(M.entities,"inlineExpansionEntity",q)};
Lhn=function(M,q){return _.sX(M.entities,"flowStateEntity",q)};
YQI=function(M,q){if(M&&q){var G=_.ke();G().set(M,q);_.hRY(G())}};
_.WhI=function(M,q){if(M&&q){var G=_.ke();G().set(M,q);_.hRY(G())}};
A5P=function(M,q){return _.sX(M.entities,"contextNoteUserRatingEntityPayload",q)};
d6w=function(M){return _.J4(M,function(q){return q.languageCode==="en"})};
vIs=function(M){var q=iv;if(_.HAn(M))M.setOption("captions","stickyLoading",{}),M.setOption("captions","track",{});else{var G=_.J4(_.l0i(M),function(K){return K.displayName===q});
M.setOption("captions","track",G)}};
h0I=function(M){if(!M)return 0;var q=M.getPresentingPlayerType(),G=M.getVideoData();return G&&G.isLive?(M=M.getProgressState(q),M.seekableEnd-M.seekableStart):M.getDuration(q)};
tUv=function(M,q){for(var G=_.k(Object.keys(M)),K=G.next();!K.done;K=G.next())if(K=K.value,M[K]!==q[K])return!1;return!0};
OII=function(){return document.getElementById("player-control-overlay")};
wUw=function(M){M!==-1&&!_.w("player_controls_log_creation_killswitch")&&OII()&&(_.oJ("pcu_cs",M),_.oJ("pcu_ce"))};
iIn=function(M,q){var G=_.bg(M,{}),K=CRE("top",q),n=CRE("bottom",q),E=CRE("left",q),p=CRE("right",q);return _.Kp({top:function(){return cZ(G().position,K)},
bottom:function(){return cZ(G().position,n)},
left:function(){return cZ(G().position,E)},
right:function(){return cZ(G().position,p)},
position:function(){return cZ(G().positionType,ayI)},
height:function(){return cZ(G().height,gS)},
width:function(){return cZ(G().width,gS)},
"min-width":function(){return cZ(G().minWidth,gS)},
"min-height":function(){return cZ(G().minHeight,gS)},
"max-width":function(){return cZ(G().maxWidth,gS)},
"max-height":function(){return cZ(G().maxHeight,gS)},
"aspect-ratio":function(){return cZ(G().aspectRatio,String)},
"margin-top":function(){return cZ(G().margin,K)},
"margin-bottom":function(){return cZ(G().margin,n)},
"margin-left":function(){return cZ(G().margin,E)},
"margin-right":function(){return cZ(G().margin,p)},
"padding-top":function(){return cZ(G().padding,K)},
"padding-bottom":function(){return cZ(G().padding,n)},
"padding-left":function(){return cZ(G().padding,E)},
"padding-right":function(){return cZ(G().padding,p)},
"flex-direction":function(){return cZ(G().flexDirection,oIP)},
"justify-content":function(){return cZ(G().justifyContent,lyg)},
"align-items":function(){return cZ(G().alignItems,XU5)},
"flex-grow":function(){return cZ(G().flexGrow,String)},
"flex-shrink":function(){return cZ(G().flexShrink,String)},
"flex-basis":function(){return cZ(G().flexBasis,gS)},
"align-self":function(){return cZ(G().alignSelf,XU5)},
"flex-wrap":function(){return cZ(G().flexWrap,PRs)},
"align-content":function(){return cZ(G().alignContent,XU5)}})};
cZ=function(M,q){return M!==void 0?q(M):void 0};
PRs=function(M){switch(M){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
ayI=function(M){switch(M){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
XU5=function(M){switch(M){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"}};
lyg=function(M){switch(M){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"}};
oIP=function(M){switch(M){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"}};
CRE=function(M,q){var G=q==="rtl";switch(M){case "top":var K=c5I;break;case "bottom":K=gIg;break;case "left":K=B_8;break;default:K=Qks}return function(n){return cZ(K(n,G),gS)}};
c5I=function(M){var q=M.top;var G=M.vertical;M=M.all;var K;return(K=q!=null?q:G)!=null?K:M};
gIg=function(M){var q=M.bottom;var G=M.vertical;M=M.all;var K;return(K=q!=null?q:G)!=null?K:M};
B_8=function(M,q){var G=M.left;var K=M.end;var n=M.start;var E=M.horizontal;M=M.all;var p,y;return(y=(p=G!=null?G:q?K:n)!=null?p:E)!=null?y:M};
Qks=function(M,q){var G=M.right;var K=M.end;var n=M.start;var E=M.horizontal;M=M.all;var p,y;return(y=(p=G!=null?G:q?n:K)!=null?p:E)!=null?y:M};
gS=function(M){var q=M.value;switch(M.unit){case "YPC_DIMENSION_UNIT_POINT":return q+"px";case "YPC_DIMENSION_UNIT_FRACTION":return q+"%";default:return""+q}};
IyL=function(M){switch(M){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"}};
D6P=function(M){var q=M!=null?M:{};M=q.fontRole;var G=q.fontSize;q=q.fontWeight;if(M!==null&&G!==null)switch(M){case "YPC_FONT_ROLE_DISPLAY":switch(G){case "YPC_FONT_SIZE_L":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(G){case "YPC_FONT_SIZE_L":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return q===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(G){case "YPC_FONT_SIZE_XL":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return q==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
ZII=function(M,q,G){function K(h){return Object.values(h).map(function(t){var O=t.productId;t=t.pricingOptionIndex;return BZ(n(O).pricingOptions,t).pricingOptionId})}
function n(h){return Y().get(h)}
function E(h){h=K(h);G(h)}
function p(h,t){return Array.from(Qy(h.pricingOptions)).filter(function(O){O=_.k(O);O.next();O=O.next().value;return IC(O.pricingGroupAttributes,t)}).map(function(O){return _.k(O).next().value})}
var y=DY([M,q],function(h,t){var O=h==null?void 0:h.selectedPricingOptions;h={};var a=!0;if(O&&t.length)for(var g=_.k(t),D=g.next();!D.done;D=g.next()){D=D.value;var J=unR(D.pricingOptions,function(S){a:{S=S.pricingOptionId;for(var m=_.k(O),R=m.next();!R.done;R=m.next())if(R.value===S){S=!0;break a}S=!1}return S});
if(J>=0){a=!1;var Z=BZ(D.pricingOptions,J),V=void 0;h[D.groupId]={productId:D.productId,pricingOptionIndex:J,pricingGroupAttributes:(V=Z)==null?void 0:V.pricingGroupAttributes}}}a&&t.length&&(a=BZ(t[0].pricingOptions,0),h[t[0].groupId]={productId:t[0].productId,pricingOptionIndex:0,pricingGroupAttributes:a==null?void 0:a.pricingGroupAttributes});return h}),Y=DY([q],function(h){return new Map(h.map(function(t){return[t.productId,
t]}))}),A=DY([q],function(h){var t=new Map;
h=_.k(h);for(var O=h.next();!O.done;O=h.next()){var a=O.value;O=a.groupId;var g=a.productId;a=_.k(Qy(a.pricingOptions));for(var D=a.next();!D.done;D=a.next()){var J=_.k(D.value);D=J.next().value;J=J.next().value;t.set(J.pricingOptionId,{groupId:O,productId:g,index:D,pricingOption:J,pricingGroupAttributes:J.pricingGroupAttributes})}}return t}),v=DY([q],function(h){var t=new Map;
h=_.k(h);for(var O=h.next();!O.done;O=h.next()){var a=O.value;O=a.groupId;var g=a.productId,D=void 0;a=_.k(Qy((D=a.pricingGroups)!=null?D:[]));for(D=a.next();!D.done;D=a.next()){var J=_.k(D.value);D=J.next().value;J=J.next().value;t.set(J.pricingGroupId,{groupId:O,productId:g,index:D,pricingGroup:J,pricingGroupAttributes:J.pricingGroupAttributes})}}return t});
return{getProductById:n,isProductSelected:function(h){var t=n(h);if(!t)return!1;var O;return((O=y()[t.groupId])==null?void 0:O.productId)===h},
getSelectedPricingOptions:function(){return Object.values(y()).map(function(h){var t=h.productId;h=h.pricingOptionIndex;return BZ(n(t).pricingOptions,h)})},
getSelectedPricingGroupAttributesByGroupId:function(h){var t;return(h=(t=y()[h])==null?void 0:t.pricingGroupAttributes)?Array.from(h):void 0},
getSelectedProductByGroupId:function(h){var t;return(h=(t=y()[h])==null?void 0:t.productId)?n(h):void 0},
onProductSelected:function(h){var t=n(h);if(t){var O=y(),a;if(((a=O[t.groupId])==null?void 0:a.productId)!==h){var g=(a=(g=O[t.groupId])==null?void 0:g.productId)?n(a):void 0;var D;a=(D=O[t.groupId])==null?void 0:D.pricingGroupAttributes;var J;D=(J=O[t.groupId])==null?void 0:J.pricingOptionIndex;if(g&&D!==void 0)if(a){J=p(g,a).indexOf(D);if(J===-1)throw Error("Xj`"+D+"`"+g.productId);D=p(t,a);J=J<D.length?D[J]:D.length>0?D[0]:0}else J=D<uv(t.pricingOptions)?D:0;else J=0;uv(t.pricingOptions)<=J&&(J=
0);D=BZ(t.pricingOptions,J);var Z;g={};E(Object.assign({},O,(g[t.groupId]={productId:h,pricingOptionIndex:J,pricingGroupAttributes:(Z=D==null?void 0:D.pricingGroupAttributes)!=null?Z:[]},g)))}}},
onPricingOptionSelected:function(h){var t=A().get(h);if(t){h=t.groupId;var O=t.productId;t=t.index;var a=y(),g,D;if(((g=a[h])==null?void 0:g.productId)!==O||((D=a[h])==null?void 0:D.pricingOptionIndex)!==t){var J,Z;g={};E(Object.assign({},a,(g[h]={productId:O,pricingOptionIndex:t,pricingGroupAttributes:(Z=(J=a[h])==null?void 0:J.pricingGroupAttributes)!=null?Z:[]},g)))}}},
onPricingGroupSelected:function(h){var t=v().get(h);if(t){h=t.groupId;var O=t.productId,a=t.pricingGroup.pricingGroupAttributes,g=n(O);if(g){t=y();var D=t[h].pricingGroupAttributes,J;if(((J=t[h])==null?void 0:J.productId)!==O||!IC(J5s(D,uv(a)),a)){J=Array.from(a);for(a=uv(a);a<uv(D);a++){var Z="",V=!1,S=Array.from(J);S.push(BZ(D,a));for(var m=_.k(g.pricingGroups),R=m.next();!R.done;R=m.next())if(R=R.value,IC(R.pricingGroupAttributes,S)){J.push(BZ(D,a));V=!0;break}else Z===""&&uv(R.pricingGroupAttributes)===
S.length&&IC(J5s(R.pricingGroupAttributes,J.length),J)&&(Z=BZ(R.pricingGroupAttributes,a));V||J.push(Z)}Z=t[h].pricingOptionIndex;a=[];V=new Map;S=0;g=_.k(Qy(g.pricingOptions));for(m=g.next();!m.done;m=g.next())R=_.k(m.value),m=R.next().value,R=R.next().value,IC(R.pricingGroupAttributes,J)&&a.push(m),IC(R.pricingGroupAttributes,D)&&V.set(m,S++);a.length===0?D=0:(D=V.get(Z),D=D!==void 0&&D<a.length?a[D]:a[0]);g={};E(Object.assign({},t,(g[h]={productId:O,pricingOptionIndex:D,pricingGroupAttributes:J},
g)))}}}},
onClearGroupSelected:function(h){var t=y();t[h]&&(t=Object.fromEntries(Object.entries(t).filter(function(O){return _.k(O).next().value!==h})),E(t))}}};
Qy=function(M){return function G(){var K,n,E,p,y;return _.FT(G,function(Y){switch(Y.nextAddress){case 1:_.l5(Y,2),K=0,n=_.k(M),E=n.next();case 4:if(E.done){Y.jumpTo(2);break}p=E.value;y=_.H3;return Y.yield([K++,p],7);case 7:y(Y.yieldResult);E=n.next();Y.jumpTo(4);break;case 2:_.oS(Y),_.Xr(Y,0)}})}()};
unR=function(M,q){M=_.k(Qy(M));for(var G=M.next();!G.done;G=M.next()){var K=_.k(G.value);G=K.next().value;K=K.next().value;if(q(K))return G}return-1};
uv=function(M){var q=0;for(M=M[Symbol.iterator]();!M.next().done;)++q;return q};
BZ=function(M,q){M=_.k(Qy(M));for(var G=M.next();!G.done;G=M.next()){var K=_.k(G.value);G=K.next().value;K=K.next().value;if(G===q)return K}};
IC=function(M,q){if(!M&&!q)return!0;if(!M||!q)return!1;M=Array.from(M);q=Array.from(q);if(M.length!==q.length)return!1;for(var G=0;G<M.length;G++)if(M[G]!==q[G])return!1;return!0};
J5s=function(M,q){q=q===void 0?Infinity:q;var G=[];M=_.k(Qy(M));for(var K=M.next();!K.done;K=M.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;if(K>=q)break;K>=0&&G.push(n)}return G};
DY=function(M,q){var G,K;return function(){for(var n=M.map(function(p){return p()}),E=0;E<n.length;E++)if(!G||n[E]!==G[E]){G=n;
K=q.apply(null,_.Ui(n));break}return K}};
bIR=function(M,q,G){var K=[];M=_.k(M);for(var n=M.next();!n.done;n=M.next()){n=n.value;var E=void 0;((E=q)==null?0:E.length)&&!IC(n.pricingGroupAttributes,q)||K.push({pricingOption:n,isSelected:G.includes(n.pricingOptionId)})}return K};
U68=function(M,q){return _.sX(M.entities,"pdpStateEntity",q)};
x6L=function(M){var q,G;return!!(M.productId&&M.groupId&&((q=M.pricingOptions)==null?0:q.length)&&M.pricingOptions.every(function(K){return K.pricingOptionId})&&((G=M.pricingGroups)==null||!G.length||Array.isArray(M.pricingGroups)&&M.pricingGroups.every(function(K){return K.pricingGroupId&&K.pricingGroupAttributes&&K.pricingGroupAttributes.length>0})))};
z0M=function(M,q,G){return ZII(M,DY([q],function(K){return K.filter(x6L)}),G)};
m6L=function(M){var q=void 0,G;for(G in M)if(M.hasOwnProperty(G)){q=G;break}return q};
SQw=function(M,q){return q.length===0?[M]:[M.slice(0,q[0]),M.slice(q[0])].filter(function(G){return G.length>0})};
T_8=function(M){switch(M){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""}};
jkv=function(M,q,G,K){K=Object.assign({},K);_.hj(K,r5P,{selectedOptionId:M,primaryButtonOverride:G});_.J_().dispatch(_.LL("flowStateEntity",q,K))};
VU5=function(M,q,G){!_.C(G,r5P)&&M.noPreselect&&q!==""&&M.defaultButtonOverride&&jkv("default",q,M.defaultButtonOverride,G)};
R0M=function(M){switch(M){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"}};
fyR=function(M){switch(M){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"}};
FhM=function(M,q){if(q)return"ytCardViewModelCardSelected";switch(M){case "CARD_STYLE_OUTLINE":return"ytCardViewModelOutline";case "CARD_STYLE_TONAL":return"ytCardViewModelTonal";case "CARD_STYLE_INVERSE":return"ytCardViewModelInverted";default:return"ytCardViewModelRaised"}};
HI5=function(M,q){q.includes(M)?q=q.filter(function(G){return G!==M}):q.push(M);
return[].concat(_.Ui(q))};
e08=function(M,q){return _.sX(M.entities,"contextNoteFeedEntityPayload",q)};
$6v=function(M,q){switch(M){case "NOTE_HELPFULNESS_VALUE_HELPFUL":return q==null?void 0:q.ratingHelpfulText;case "NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL":return q==null?void 0:q.ratingSomewhatHelpfulText;case "NOTE_HELPFULNESS_VALUE_NOT_HELPFUL":return q==null?void 0:q.ratingNotHelpfulText}};
slg=function(M,q){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:M.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:M.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:M.deleteDialogTitle}]},dialogMessages:[{runs:[{text:M.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:M.deleteActionText}]},command:{performCommentActionEndpoint:{action:q}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:M.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}};
M45=function(M,q,G){var K;if(M&&((K=q())==null?0:K.includes(M))){var n;G((n=q())==null?void 0:n.filter(function(E){return E!==M}))}else G([].concat(_.Ui(q()||[]),[M]))};
Gyn=function(M,q){if(M){var G=[];q=_.k((q==null?void 0:q.checkboxes)||[]);for(var K=q.next();!K.done;K=q.next()){K=_.C(K.value,qUP);var n=void 0;((n=K)==null?0:n.value)&&M.includes(K.key||"")&&G.push(K.value)}return G}};
KoR=function(M){M.style.height="auto";M.style.height=M.scrollHeight+"px"};
ndw=function(M){return[M.syncStep,M.asyncStep].filter(function(q){return q!==void 0})};
NhU=function(M){var q,G,K;if(M=(q=M.structuredContextNoteFormSchema)==null?void 0:(G=q.fieldSchemas)==null?void 0:(K=G.noteBody)==null?void 0:K.validationSchema)for(q=_.k(ndw(M)),G=q.next();!G.done;G=q.next()){G=G.value.rules;if(!G)break;G=_.k(G);for(G=G.next();!G.done;G=G.next())return _.C(G.value,_.EdE)}};
pGU=function(M){if(M){M=_.k(ndw(M));for(var q=M.next();!q.done;q=M.next()){q=q.value.rules;if(!q)break;q=_.k(q);for(q=q.next();!q.done;q=q.next())return _.C(q.value,kyR)}}};
Lo5=function(M){if(M){M=_.k(ndw(M));for(var q=M.next();!q.done;q=M.next()){q=q.value.rules;if(!q)break;q=_.k(q);for(q=q.next();!q.done;q=q.next())return _.C(q.value,yhE)}}};
YUI=function(M){M=/^https?:\/\//.test(M)?M:"http://"+M;try{var q=_.s9(M)}catch(G){return!1}if(q.toString()!==M)return!1;M=q.JSC$10036_domain_.split(".");return M.length>1&&M.every(function(G){return!!G})};
Wov=function(M,q,G,K){var n;K=(n=K.structuredContextNoteData)==null?void 0:n.createCommentEndpoint;if(n=_.C(K,_.trI))return n.commentText=_.bc(M),n.videoPositionMention=q,n.sources=G,K};
AhI=function(M){return M==null?void 0:M.stringValue};
vds=function(M,q,G){M=M.map(function(K,n){return{listItemViewModel:{title:K.title,subtitle:K.subtitle,leadingImage:K.leadingImage,trailingImage:n===q?d3I:void 0,rendererContext:{commandContext:{onTap:K.onTap}}}}});
return Object.assign({},G&&{header:{panelHeaderViewModel:{title:G}}},{content:{listViewModel:{listItems:M}}})};
hSU=function(M,q){if(M&&q)switch(q){case "SELECTION_TYPE_BOOL":return M.boolValue;case "SELECTION_TYPE_INT":return M.intValue;case "SELECTION_TYPE_STRING":return M.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return M.privacyStatusValue}};
t4w=function(M){var q;M=(q=M.options)==null?void 0:q.findIndex(function(G){return G.isSelected});
return M===void 0?-1:M};
OYI=function(M,q,G){var K=function(){return M().label},n={},E=_.Hb("ytDropdownViewModelLabel",(n.ytDropdownViewModelLabelError=q,n));
return _.W(_.d,{cond:function(){return M().label&&!(G()===-1&&M().label&&!M().placeholderText)},
then:function(){return _.W("div",{class:E},_.W(_.Ft,{text:K}))}})};
wGU=function(M,q){var G={};G=_.Hb("ytDropdownViewModelTitle",(G.ytDropdownViewModelTitlePlaceholder=function(){return q()===-1},G));
return _.W("div",{class:G},_.W(_.Ft,{text:function(){var K=M();var n=q();if(n===-1)K=K.placeholderText?K.placeholderText:K.label;else{var E,p;K=(E=K.options)==null?void 0:(p=E[n])==null?void 0:p.title}return K}}))};
CdI=function(M,q){var G=function(){return M().hint};
return _.W(_.dU,null,_.W(_.d,{cond:function(){return G()&&!q()},
then:function(){return _.W("div",{class:_.Hb("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.W(_.Ft,{text:G,className:"ytDropdownViewModelSupportText"}))}}),_.W(_.d,{cond:q,
then:function(){return _.W("div",{id:"dropdown-view-model-error",role:"alert",class:_.Hb("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.W(_.np,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.W(_.Ft,{text:q,className:"ytDropdownViewModelSupportText"}))}}))};
aev=function(M,q){var G=_.AL().resolve(_.FwR);_.SK(function(){var K=M().id;K&&G!=null&&G.dropdownMap.set(K,q)})};
le5=function(M){M=_.C(M.scheduleButton,odI);M=_.C(M==null?void 0:M.primaryButton,_.$N);M=_.C(M==null?void 0:M.onTap,_.Cl);var q,G,K=((G=_.C(M,_.eP))==null?void 0:G.commands)||[M];G=_.k(K);for(M=G.next();!M.done&&!(q=_.C(M.value,_.hJP));M=G.next());var n;q=(n=q)==null?void 0:n.createBroadcastRequest;if(!q)throw Error("dk");return q};
chE=function(M,q,G){G=G===void 0?{}:G;var K,n;return _.L(function(E){if(K=XGR(q))return E.return(K);(n=PdI(M,q,G))&&iYI(q,n);return E.return(n)})};
iYI=function(M,q){var G=gdn(M);G&&q.then(function(K){_.AL().resolve(_.ta).put(G,new _.OW({innertubeResponse:K}))})};
XGR=function(M){if(M=gdn(M)){var q=_.AL().resolve(_.ta);if(q.has(M))return q.get(M).then(function(G){return G==null?void 0:_.zh(G)})}return null};
gdn=function(M){var q=_.C(M.endpoint,_.Jl);if(q!=null&&q.videoId)return q={videoId:q.videoId},_.w("web_imp_player_mute_params")&&(q.mutedAtStart=M.startPlaybackInMutedState),_.uG("inline_playback",q)};
PdI=function(M,q,G){M=_.Dt(M,q.endpoint,Bhv(q,G)).then(function(K){return K});
return Promise.resolve(M)};
Bhv=function(M,q){q=_.w("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!M.startPlaybackInMutedState},q):Object.assign({},{vis:5,autonav:"1"},q);var G;q={contentPlaybackContext:_.VS(q,(G=_.C(M.endpoint.commandMetadata,_.Mg))==null?void 0:G.url,window.location.href)};_.w("web_imp_player_mute_params")&&(q.overrideMutedAtStart=!M.startPlaybackInMutedState);return q};
uGs=function(M,q){var G=window.MutationObserver;G&&(JB=new G(function(K,n){K=_.k(K);for(var E=K.next();!E.done;E=K.next()){E=E.value;var p;if(p=E.type==="childList"&&E.target)a:{p=M;E=QlL(E.target);p=QlL(p);for(var y=null,Y=0;Y<E.length;Y++)if(p.includes(E[Y])){if(Y===0){p=!1;break a}y=E[Y];break}y?(E=IeL(E,y),p=IeL(p,y),p=E<p):p=!1}if(p){q();n.disconnect();break}}}),(G=D3U())&&JB.observe(G,{childList:!0,
subtree:!0}))};
D3U=function(){var M=document.getElementsByTagName("ytd-rich-grid-renderer");if(M.length>0)return M[0];M=document.getElementsByTagName("ytd-section-list-renderer");return M.length>0?M[0]:null};
QlL=function(M){for(var q=[];M;)q.push(M),M=M.parentElement;return q};
IeL=function(M,q){var G=Array.from(q.children);q=M.indexOf(q);return q>0?G.indexOf(M[q-1]):-1};
ZY=function(M,q,G){G=G===void 0?{}:G;return _.Ge(M,G,q)};
Jhw=function(M){switch(M){case "MUSIC":return!0;default:return!1}};
bYw=function(M){if(M=M==null?void 0:M.find(function(K){var n,E;return((n=_.C(K,ZY8))==null?void 0:(E=n.inlinePlaybackBadgeData)==null?void 0:E.replicateAsTimestamp)===!0}))if(M=_.C(M,ZY8),M==null?0:M.icon){var q,G;
if((M=(q=_.NRF(M.icon))==null?void 0:(G=q.clientResource)==null?void 0:G.imageName)&&Jhw(M))return M}};
U3n=function(M){return M==null?void 0:M.filter(function(q){return q.premiereTrailerBadgeRenderer})};
x3s=function(M){var q,G=M==null?void 0:(q=M.find(function(Y){return Y.thumbnailOverlayTimeStatusRenderer}))==null?void 0:q.thumbnailOverlayTimeStatusRenderer,K,n;
if((G==null?0:(K=G.icon)==null?0:K.iconType)&&Jhw(G==null?void 0:(n=G.icon)==null?void 0:n.iconType)){var E;return{icon:G==null?void 0:(E=G.icon)==null?void 0:E.iconType}}var p;if(q=M==null?void 0:(p=M.find(function(Y){return Y.thumbnailOverlayBadgeViewModel}))==null?void 0:p.thumbnailOverlayBadgeViewModel)if(p=bYw(q.thumbnailBadges))return{icon:p};
var y;if(M=M==null?void 0:(y=M.find(function(Y){return Y.thumbnailBottomOverlayViewModel}))==null?void 0:y.thumbnailBottomOverlayViewModel)if(y=bYw(M.badges))return{icon:y};
return{}};
jln=function(M,q){var G=zSg,K=_.k(_.lQ(m3L(new SU8(function(){},G,q)),void 0,"PAnyd")),n=K.next().value,E=K.next().value,p=new SU8(function(y){E(y)},G,q);
_.zL(function(){Promise.resolve().then(function(){var y,Y=(y=M())!=null?y:{};p.playerControlsData=Y;_.w("player_controls_skip_double_signal_old")&&(p.lastSeenPlayerApi=_.oH(Y.playerApi));_.w("player_controls_skip_double_signal_old")||(p.lastSeenPlayerApi=_.oH(Y.playerApi));ThE(p)});
_.m_(function(){rhw(p)})},"HikUP");
_.m_(function(){rhw(p)});
return function(){return n()}};
V4M=function(M){return function(q){var G=M(),K={playerState:q};if(q===1){var n;(n=G.playerApi)==null||n.loadModule("captions")}if(q===0){var E;(E=G.playerApi)==null||E.unloadModule("captions")}q!==-1&&G.setState(K)}};
RS8=function(M){return function(q){M().setState({playbackRate:q})}};
fes=function(M){return function(q){var G=M(),K=G.playerApi,n=K==null?void 0:K.getVideoData(),E=(n==null?void 0:n.isLive)||!1;n=n==null?void 0:n.video_id;E={videoDuration:h0I(K||void 0),isLive:E,videoId:n};E.videoId!==G.videoId&&(E=Object.assign({},_.Psu(K),E));if(q==null?0:q.playertype)E.playerType=q.playertype;if(K){E.captionsAvailable=_.OJ(K);q=E;var p;n=(p=K.getStoryboardLevel(K.getNumberOfStoryboardLevels()-1))==null?void 0:p.intervalMs;q.storyboardInterval=n?n/1E3:void 0;E.captionsAvailable&&
(E.captionsEnabled=_.HAn(K))}E.volumeMuted=!(K==null||!K.isMuted());G.setState(E)}};
FoP=function(M){return function(q){var G=M(),K=G.playerApi;if(K){var n=K.getPresentingPlayerType();q={playedTime:q||0,percentLoaded:K.getVideoLoadedFraction(),playerType:n};G.playerState===0&&(q.playedTime=G.videoDuration);G.isLive&&(n=K.getProgressState(n),q.playedTime-=n.seekableStart,q.videoDuration=h0I(K));if(G.playerType===1)K=!1;else{var E;if((E=G.uxConfig)==null?0:E.showCuedOverlay){var p;K=!((p=G.playerApi)==null?0:p.getPlayerStateObject(G.playerType).isDomPaused)}else K=!0}K&&delete q.playedTime;
G.setState(q)}}};
HYP=function(M){return function(){var q=M(),G,K,n,E={volume:(n=(G=q.playerApi)==null?void 0:G.getVolume())!=null?n:0,volumeMuted:!((K=q.playerApi)==null||!K.isMuted())};q.setState(E)}};
eSI=function(M){return function(){var q=M(),G=q.playerApi;if(G){var K={captionsAvailable:_.OJ(G)};K.captionsAvailable&&(K.captionsEnabled=_.HAn(G));q.setState(K)}}};
$3P=function(M){return function(){var q=M();if(q.playerApi&&!(q.volumeMuted||q.controlsVisible&&q.isProbablyAScreenreaderUser)){q.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var G;(G=document.querySelector(".player-control-play-pause-icon"))==null||G.focus()}}};
sfg=function(M){return{appApi:Object.assign({},_.Ogs(),{showCaptionsToggleToast:function(q){var G,K;(K=(G=M()).showCaptionsToggleToast)==null||K.call(G,q)},
openInMiniplayer:function(){var q,G;(G=(q=M()).openInMiniplayer)==null||G.call(q)}})}};
MPL=function(M,q){var G,K,n;return!!(M==null?0:(G=M.playerResponse)==null?0:(K=G.playerConfig)==null?0:(n=K.inlinePlaybackConfig)==null?0:n.showScrubbingControls)&&!(q==null?0:q.hideScrubbingControls)};
_.quI=function(M){var q=!M.miniplayerIsActive;return[5,2,0].includes(M.miniplayerPlaybackState)||q};
GtM={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};K3R=function(M){this.onStepChangeCallback=function(){};
this.flowRenderer=M};
K3R.prototype.getCurrentStep=function(){var M=this,q;return((q=this.flowRenderer.steps)!=null?q:[]).map(function(G){return _.C(G,_.Dw)}).find(function(G){return G&&G.stepId===M.currentStepId})};
nDI=function(M,q){var G=q.flowStateEntityKey,K=M.flowStates.get(G);if(K)return K;q=new K3R(q);M.flowStates.set(G,q);return q};
EDI=function(M,q){for(var G=_.k(M.flowStates.entries()),K=G.next();!K.done;K=G.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;if(n.flowRenderer.targetId===q){M.flowStates.delete(K);break}}};
Ntw=function(M,q){M.onStepChangeCallback=q;M.onStepChangeCallback(M.getCurrentStep())};
ktR=function(M,q){var G=M.getCurrentStep();if(!G||G.stepId!==q){var K;((K=M.flowRenderer.steps)!=null?K:[]).map(function(n){return _.C(n,_.Dw)}).find(function(n){return n&&n.stepId===q})&&(M.currentStepId=q,M.onStepChangeCallback(M.getCurrentStep()))}};
pFE=function(M,q){var G,K,n,E,p;_.L(function(y){if(!q.length)return y.return([]);G=[];K=_.k(q);for(n=K.next();!n.done;n=K.next())E=n.value,(p=M.resolveIcon(E))&&!M.iconCache[p.url]&&G.push(_.jYU(M,p).then(function(){}).catch(function(){}));
return y.return(Promise.all(G))})};
ylE=function(M,q){var G=[];q=(new Set(q)).values();q=_.k(q);for(var K=q.next();!K.done;K=q.next()){K=K.value;for(var n=_.k(Object.values(GtM)),E=n.next();!E.done;E=n.next())G.push({iconName:K,iconStyle:E.value})}pFE(M.iconManager,G)};
_.L3P=function(M,q,G){var K=G!=null?G:M.iconsToFetch;K!=null&&K.length?q!==void 0&&q>=0?_.Jp(_.r8,function(){ylE(M,K)},q):ylE(M,K):Promise.resolve()};
_.Yuv=_.yk(function(M,q,G){if(M.nextWireType_!==5)return!1;_.YC(q,G,_.c7(M.decoder_));return!0},function(M,q,G){q=_.CSY(q);
q!=null&&(_.Wt(M,G,5),_.A9(M.encoder_,q))},_.efd);
W3I=[0,_.Dh,_.Yuv,-1];AlI={sharedUi:_.JXp,a11y:_.Dj$,entities:{}};_.dhI=function(){return _.RJ({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})};
SU8=function(M,q,G){var K=this;this.renderFn=M;this.listeners=q;this.context=G;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var n;this.lastSeenPlayerApi=_.oH((n=this.playerControlsData)==null?void 0:n.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.Psu(),void 0);_.w("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){m3L(K).setState({playerState:-1});K.resetRecentlyNavigatedJobId&&_.r8.cancelJob(K.resetRecentlyNavigatedJobId);
K.recentlyNavigated=!0;K.resetRecentlyNavigatedJobId=_.r8.addJob(function(){K.recentlyNavigated=!1},8,1E4)})};
SU8.prototype.setState=function(M){if(!_.w("mweb_player_skip_no_op_state_changes")||!tUv(M,this.state))if(this.state=Object.assign({},this.state,M),!_.w("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)M=-1,_.w("player_controls_log_creation_killswitch")||OII()||(M=(0,_.d8)()),_.oJ("pcu_s"),_.oJ("pcu_se"),_.oJ("pcu_rs"),this.renderFn(m3L(this)),_.oJ("pcu_re"),wUw(M),_.r8.addJob(function(){_.oJ("pcu_ap")},8)};
var m3L=function(M){var q;var G=_.oH((q=M.playerControlsData)==null?void 0:q.playerApi);return Object.assign({},M.state,{setState:M.boundSetState,domMeasurements:{progressBarLineRect:M.progressBarLineRect},playerApi:G,appApi:M.context.appApi,playerContainer:M.context.playerContainer,playerControlContainer:M.context.playerControlContainer,uxConfig:M.context.uxConfig})},ThE=function(M){M.listeners.forEach(function(q){M.eventListenerCleanupFunctions.push(q.register(function(){return m3L(M)},function(){return M.getData()}))})},
rhw=function(M){M.eventListenerCleanupFunctions.forEach(function(q){q()});
M.eventListenerCleanupFunctions.length=0};
SU8.prototype.getData=function(){return this.playerControlsData};var vDU=[0,_.RT,_.Zh,_.RT,-1,_.Zh,[0,_.bZ,_.x1,-1],_.RT,-1];var hzI=[0,[1,2,3],_.S$,-2];var tPR=[0,_.RT];var Oxs=new _.e0("crowdsourcedContextUserRatingFormFlowState");var wFI=new _.e0("noteViewModel");var bv=new _.e0("abuseReportFlowState");var CGs=new _.e0("feedbackFormFlowState");var aaP=new _.e0("inputBoxViewModel");_.EdE=new _.e0("lengthValidationRule");var kyR=new _.e0("regexValidationRule");var yhE=new _.e0("selectedValidationRule");var oDs=[0,_.x1,_.RT,_.eW];var la5=[0,_.Zh,-2,W3I];var XFn=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(XFn,_.kC);XFn.prototype.getFeature=function(){return _.hD(this,6)};
XFn.prototype.hasFeature=function(){return _.lP(_.nu(this,6))!=null};var PGP=[0,_.x1];var ixw=_.t9(XFn,[0,_.Zh,-2,W3I,_.Zh,_.x1,-1,_.JD,-1,_.x1,-3,_.hwM,_.bZ,la5,_.x1,-1,vDU,_.JD,_.x1,oDs,[0,[0,_.x1,-2,2,_.x1,-1,[0,_.x1],[0,_.RT,_.x1],[0,_.RT],[0,_.x1],2,[0,_.RT,2,[0,_.RT,-1],[0,_.Tm,hzI],1,[0,tPR],1,[0,_.x1]],[0,_.bZ],[0,[1,2],_.rl,[0,_.x1],_.rl,[0,_.x1,_.Vj,-1]],[0,_.RT],[0,_.x1,[0,[1,2,3,4],_.rl,[0,[0,_.x1],PGP],_.rl,[0,[0,_.x1],PGP],_.rl,[0,PGP],_.rl,[0,[0,_.x1],PGP]]],[0,_.x1],1,[0,_.x1,_.RT],1,[0,_.x1],[0,_.bZ],[0,_.x1,_.RT,-1,[0,_.x1,-4]],[0,_.x1],[0,_.x1,-2],1,[0,_.x1],[0,
_.bZ],[0,_.bZ],1,[0,_.bZ],[0]],_.x1,_.RT,_.Dh,1,_.j$,_.x1,_.RT],_.Zh,_.j$,_.RT,-1,_.Zh]);var clI=new _.e0("talkToRecsViewModel");var gDP=new _.e0("creatorGoalSetUpFlowDropdownItemViewModel");var BtM=new _.e0("creatorGoalSetUpFlowDropdownViewModel");var ZY8=new _.e0("thumbnailBadgeViewModel");var QfU=new _.e0("checkboxGroupViewModel");var qUP=new _.e0("checkboxItemViewModel");_.UJ=new _.e0("radioButtonGroupViewModel");var Iag=new _.e0("radioButtonItemViewModel");var odI=new _.e0("panelFooterViewModel");var DhP=new _.e0("ypcCancelRecurrenceCommand");var uHw=new _.e0("cancellationFlowState");var r5P=new _.e0("premiumPurchaseFlowState");var Jl8=new _.e0("surveyAnswerCardRenderer");var ZxI=new _.e0("showMoreButtonRenderer");var bx5;var UhI,xhs=function(){if(UhI!==void 0)return UhI;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-creator-goal-set-up-flow-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.pdg.yt_creator_goal_set_up_flow_view_model.yt.creator.goal.set.up.flow.view.model.css.js--\x3e<div id="container" class="style-scope yt-creator-goal-set-up-flow-view-model">\n  <div id="header" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="title" data="[[data.title]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    <yt-image id="image" data="[[data.image]]" height="100" preserve-height="" width="100" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-image>\n  </div>\n  <div id="subheader" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-attributed-string id="description" data="[[data.pageDescription]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n  </div>\n  <div id="goal-content" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <div id="number-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.purchaseTargetDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="goal-dropdown" no-label-float="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="goal-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[goal]]" on-selected-changed="updateGoalValue">\n        <template is="dom-repeat" items="[[getGoalDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="tier-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="tier-goal-label" data="[[data.colorDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="tier-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="tier-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[tier]]" on-selected-changed="updateTierValue">\n        <template is="dom-repeat" items="[[getColorDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n      <yt-attributed-string id="tier-disclosure" data="[[data.colorDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n    <div id="duration-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="duration-goal-label" data="[[data.timerDropdown.creatorGoalSetUpFlowDropdownViewModel.dropdownTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-dropdown-menu-light id="timer-dropdown" no-label-float="" no-underline="" class="style-scope yt-creator-goal-set-up-flow-view-model">\n        <tp-yt-paper-listbox id="timer-entries" class="dropdown-content style-scope yt-creator-goal-set-up-flow-view-model" slot="dropdown-content" attr-for-selected="value" selected="[[timer]]" on-selected-changed="updateTimerValue">\n        <template is="dom-repeat" items="[[getTimerDropdownItems()]]" as="item" class="style-scope yt-creator-goal-set-up-flow-view-model">\n          <tp-yt-paper-item value="[[getDropdownItemValue(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n            <yt-attributed-string data="[[getDropdownItemText(item)]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n          </tp-yt-paper-item>\n        </template>\n        </tp-yt-paper-listbox>\n      </tp-yt-paper-dropdown-menu-light>\n    </div>\n    <div id="description-goal" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      <yt-attributed-string id="number-goal-label" data="[[data.descriptionInputTitle]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n      <tp-yt-paper-textarea id="goal-description-input" maxlength="220" no-label-float="" placeholder="[[data.userGoalPlaceholderText.content]]" on-value-changed="onTextValueChanged" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </tp-yt-paper-textarea>\n      <yt-button-view-model id="[[exampleButtonId]]" data="[[data.exampleButton.buttonViewModel]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n      </yt-button-view-model>\n      <yt-attributed-string id="description-disclosure" data="[[data.descriptionDisclosureText]]" class="style-scope yt-creator-goal-set-up-flow-view-model"></yt-attributed-string>\n    </div>\n  </div>\n  <div id="footer" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    <yt-button-view-model id="[[startButtonId]]" data="[[getButtonViewModel(goalDescription)]]" scoping-class-name="[[is]]" class="style-scope yt-creator-goal-set-up-flow-view-model">\n    </yt-button-view-model>\n  </div>\n</div>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;bx5===void 0&&(bx5=document.createElement("template"));var K=bx5;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return UhI=M};var x7=function(){var M=_.Q.apply(this,arguments)||this;M.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";M.goalDescription="";M.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";M.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";M.startButtonId="start-button";M.exampleButtonId="example-button";return M};
_.l(x7,_.Q);_.N=x7.prototype;_.N.getGoalDropdownItems=function(){var M,q;return(q=_.C((M=this.data)==null?void 0:M.purchaseTargetDropdown,BtM))==null?void 0:q.dropdownItems};
_.N.getTimerDropdownItems=function(){var M,q;return(q=_.C((M=this.data)==null?void 0:M.timerDropdown,BtM))==null?void 0:q.dropdownItems};
_.N.getColorDropdownItems=function(){var M,q;return(q=_.C((M=this.data)==null?void 0:M.colorDropdown,BtM))==null?void 0:q.dropdownItems};
_.N.getDropdownItemText=function(M){var q;return(q=_.C(M,gDP))==null?void 0:q.itemLabel};
_.N.getDropdownItemValue=function(M){M=_.C(M,gDP);return(M==null?void 0:M.timeLimit)||(M==null?void 0:M.purchaseTarget)||(M==null?void 0:M.eligiblePurchaseType)};
_.N.updateFlowState=function(M){_.VW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:M}])};
_.N.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.N.updateGoalValue=function(M){this.goal=M.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.N.onTextValueChanged=function(M){this.goalDescription=M.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.N.updateTimerValue=function(M){this.timer=M.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.N.updateTierValue=function(M){this.tier=M.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.N.getButtonViewModel=function(M){M=(M==null?void 0:M.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var q,G=_.C((q=this.data)==null?void 0:q.startGoalButton,_.$N);return Object.assign({},G,{state:M})};
_.Yd.Object.defineProperties(x7,{template:{configurable:!0,enumerable:!0,get:function(){return xhs()}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],x7.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],x7.prototype,"goal",void 0);_.T([_.B(),_.r("design:type",Object)],x7.prototype,"goalDescription",void 0);_.T([_.B(),_.r("design:type",Object)],x7.prototype,"timer",void 0);_.T([_.B(),_.r("design:type",Object)],x7.prototype,"tier",void 0);
_.T([_.B(),_.r("design:type",Object)],x7.prototype,"startButtonId",void 0);_.T([_.B(),_.r("design:type",Object)],x7.prototype,"exampleButtonId",void 0);_.T([_.aO({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],x7);_.z(x7,"yt-creator-goal-set-up-flow-view-model",function(){return xhs()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var zzE;zzE=Object.assign({},{continuation:_.ZMB,download:_.QKS,canvas:_.dJw,reportChannelAbuse:_.SPf,ui:_.hse,share:_.TZB,talkToRecs:_.jK8,watch:_.Va,ypc:_.e8M,radioButtonGroup:_.W$Y,collabInviteLink:_.L$s},AlI,{voiceSearch:_.wlu,shorts:_.j6});_.zN=_.Oq(zzE);_.mhL=_.wk(_.zN);var SuP;var TtE;var rlg;var jfL=function(){return _.Q.apply(this,arguments)||this};
_.l(jfL,_.Q);_.T([_.B(),_.r("design:type",Object)],jfL.prototype,"data",void 0);_.T([_.aO({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],jfL);
_.z(jfL,"yt-survey-answer-card-renderer",function(){if(rlg===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;TtE===void 0&&(TtE=document.createElement("template"));var K=TtE;G.call(q,K.content.cloneNode(!0),M.content.firstChild);rlg=M}M=rlg;return M},{mode:2});var VPR;var RzL;var m2=function(){return _.Q.apply(this,arguments)||this};
_.l(m2,_.Q);_.N=m2.prototype;_.N.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.N.selectedItemChanged=function(M){_.VW(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[M.feedbackToken||""]}])};
_.N.surveyAnswerCardRendererClicked=function(M){if(M.target&&_.C(M.model.item,Jl8)){var q=M.target;M=_.C(M.model.item,Jl8);M.onTapCommand?_.FH(q,[M.onTapCommand],q):this.data.onTapCommand&&_.FH(q,[this.data.onTapCommand],q);this.selectedItemChanged(M)}};
_.N.checkIsCancellationStyle=function(M){return M==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.N.updateSelectedItemFromBinding=function(M){this.selectedItem=M.detail.value};
m2.prototype.onSelectedItemChanged=m2.prototype.onSelectedItemChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],m2.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],m2.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],m2.prototype,"selectedItem",void 0);_.T([_.B({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.r("design:type",Boolean)],m2.prototype,"isCancellationStyle",void 0);
_.T([_.KT("selectedItem"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],m2.prototype,"onSelectedItemChanged",null);_.T([_.aO({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],m2);
_.z(m2,"yt-survey-flow-step-renderer",function(){if(RzL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;VPR===void 0&&(VPR=document.createElement("template"));var K=VPR;G.call(q,K.content.cloneNode(!0),M.content.firstChild);RzL=M}M=RzL;return M},{mode:2});var SO=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return M};
_.l(SO,_.Q);SO.prototype.handleSurveyFlowStepOptionChanged=function(M){this.ytdReduxBehavior.dispatch(_.RJ({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:M}));_.VW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:M}}])};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],SO.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],SO.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],SO.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],SO);
_.z(SO,"ytd-survey-flow-step-renderer",function(){if(SuP!==void 0)return SuP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return SuP=M},{mode:1});_.ezL=_.U(function(M){var q=M.data;var G=M.hideDivider;var K=M.isChannelInfoCard;M={};return _.W("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model"},_.W("div",{class:_.Hb("yt-profile-identity-info-view-model__frame",(M["yt-profile-identity-info-view-model--frame-with-no-channel-banner"]=function(){return!q().channelBanner},M))},_.W(faE,{profileIdentityInfoData:q}),_.W("div",{class:"yt-profile-identity-info-view-model__channel-info-section"},_.W("div",{class:"yt-profile-identity-info-view-model__avatar"},
_.W(_.yu,{data:function(){return q().avatar}},{avatarViewModel:_.zo})),_.W(F3s,{profileIdentityInfoData:q})),_.W(_.d,{cond:function(){return q().channelDescription},
then:function(n){var E={};return _.W("div",{class:_.Hb((E["yt-profile-identity-info-view-model__channel-description-alternate"]=function(){return!(K==null||!K())},E["yt-profile-identity-info-view-model__channel-description"]=function(){return!(K==null?0:K())},E))},n)}}),_.W(Hxw,{profileIdentityInfoData:q}),_.W(_.d,{cond:function(){return!(G==null?0:G())},
then:function(){return _.W("div",{class:"yt-profile-identity-info-view-model__divider"})}})))},"ih");
_.ezL.idomCompat=!0;var Hxw=_.U(function(M){var q=M.profileIdentityInfoData;return _.W("div",{class:"yt-profile-identity-info-view-model__buttons"},_.W(_.bf,{each:function(){return q().subscribeButton?[q().subscribeButton,q().channelAccess]:[q().channelAccess]}},function(G){return _.W("div",{class:"yt-profile-identity-info-view-model__wrap-button"},_.W("div",{class:"yt-profile-identity-info-view-model--button"},_.W(_.yu,{data:function(){return G}},{buttonViewModel:_.Wf,
subscribeButtonViewModel:_.zR})))}))},"jh"),F3s=_.U(function(M){var q=M.profileIdentityInfoData;
return _.W("div",{class:"yt-profile-identity-info-view-model__trio"},_.W("div",{class:"yt-profile-identity-info-view-model__channel-name-frame"},_.W($hv,{profileIdentityInfoData:q}),_.W(_.yu,{data:function(){return q().threeDotMenu}},{buttonViewModel:_.Wf})),_.W(sJv,{profileIdentityInfoData:q}))},"kh"),$hv=_.U(function(M){var q=M.profileIdentityInfoData;
return _.W("div",{class:"yt-profile-identity-info-view-model__channel-name-header"},_.W("div",{class:"yt-profile-identity-info-view-model__channel-name"},function(){return q().channelDisplayName}),_.W(_.d,{cond:function(){return q().verifiedOrOacBadge},
then:function(G){return _.W("div",{class:"yt-profile-identity-info-view-model__badge"},_.W(_.Jj,{data:function(){return{thumbnails:[{url:G().badgeUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0}))}}))},"lh"),faE=_.U(function(M){var q=M.profileIdentityInfoData;
return _.W("div",{class:"yt-profile-identity-info-view-model__channel-banner-container"},_.W(_.yu,{data:function(){var G=q().channelBanner;if(G)return{imageBannerViewModel:{image:G.image,style:"IMAGE_BANNER_STYLE_INSET"}}}},{imageBannerViewModel:function(G){return _.W("div",{class:"yt-profile-identity-info-view-model__channel-banner"},_.W(_.fU,{data:G.data,
isPositionRelative:!0}))}}))},"mh"),sJv=_.U(function(M){var q=M.profileIdentityInfoData;
return _.W("div",{class:"yt-profile-identity-info-view-model__metadata"},_.W("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.W("div",{dir:"auto",class:"yt-profile-identity-info-view-model__metadata-handle-with-bold-font"},function(){return q().channelHandle}),_.W(_.d,{cond:function(){return q().channelPronouns&&q().channelHandle},
then:function(){return _.W("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.W("div",{dir:"auto",
class:"yt-profile-identity-info-view-model__metadata-pronouns"},function(){return q().channelPronouns})),_.W("div",{class:"yt-profile-identity-info-view-model__metadata-content-set"},_.W("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return q().leftOfBulletInfo}),_.W(_.d,{cond:function(){return q().leftOfBulletInfo&&q().rightOfBulletInfo},
then:function(){return _.W("span",{class:"yt-profile-identity-info-view-model__metadata-delimiter"},"\u2022")}}),_.W("div",{class:"yt-profile-identity-info-view-model__metadata-content"},function(){return q().rightOfBulletInfo})))},"nh");var MEL;var TN=function(){return _.Q.apply(this,arguments)||this};
_.l(TN,_.Q);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],TN.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],TN.prototype,"data",void 0);_.T([_.b({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],TN);
_.z(TN,"ytd-channel-history-renderer",function(){if(MEL!==void 0)return MEL;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return MEL=M},{mode:1});var qlv;var Geg=function(){return _.Q.apply(this,arguments)||this};
_.l(Geg,_.Q);_.T([_.B(),_.r("design:type",Object)],Geg.prototype,"data",void 0);_.T([_.b({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],Geg);
_.z(Geg,"ytd-feature-enablement-info-renderer",function(){if(qlv!==void 0)return qlv;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qlv=M},{mode:1});var KbL;var npg;var rS=function(){var M=_.Q.apply(this,arguments)||this;M.textBoxMaxLength=_.w("enable_tvod_campaign_code_integration")?15:12;return M};
_.l(rS,_.Q);_.N=rS.prototype;_.N.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.N.onSubmit=function(){var M=this.data.serviceEndpoint,q=_.C(M,_.uh);q&&M&&(q.couponCode=this.userInput,_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}}))};
_.N.validate=function(){var M=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=M&&!this.data.errorMessage;this.showErrorMessage=M&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.w("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.N.computeStyle=function(M){return M};
_.N.computeShowValidationBelowInput=function(M){return M!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.N.updateUserInputFromBinding=function(M){this.userInput=M.currentTarget.value};
_.N.updateShowErrorMessageFromBinding=function(M){this.showErrorMessage=M.detail.value};
_.Yd.Object.defineProperties(rS.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
rS.prototype.dataChanged=rS.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],rS.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],rS.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],rS.prototype,"userInput",void 0);_.T([_.B(),_.r("design:type",Boolean)],rS.prototype,"disableApplyButton",void 0);_.T([_.B(),_.r("design:type",Boolean)],rS.prototype,"hideApplyButton",void 0);
_.T([_.B(),_.r("design:type",Boolean)],rS.prototype,"hideErrorMessage",void 0);_.T([_.B(),_.r("design:type",Boolean)],rS.prototype,"showTick",void 0);_.T([_.B(),_.r("design:type",Boolean)],rS.prototype,"showErrorMessage",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],rS.prototype,"couponStyle",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.r("design:type",Boolean)],rS.prototype,"showValidationBelowInput",void 0);_.T([_.B(),_.r("design:type",Object)],rS.prototype,"textBoxMaxLength",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rS.prototype,"dataChanged",null);
_.T([_.c("showTick","showErrorMessage","userInput"),_.r("design:type",String),_.r("design:paramtypes",[])],rS.prototype,"validationState",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],rS);
_.z(rS,"ytd-ypc-coupon-renderer",function(){if(npg!==void 0)return npg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return npg=M},{mode:1});var jO=function(){return _.Q.apply(this,arguments)||this};
_.l(jO,_.Q);jO.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"}}}};
jO.prototype.computeStyle=function(M){return M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],jO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jO.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],jO.prototype,"buttonStyle",void 0);_.T([_.b({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],jO);
_.z(jO,"ytd-flow-bottom-bar-renderer",function(){if(KbL!==void 0)return KbL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return KbL=M},{mode:1});var Epw;var Njn;var keP;var Vy=function(){return _.Q.apply(this,arguments)||this};
_.l(Vy,_.Q);Vy.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Vy.prototype.focus=function(M){this.title&&_.E4(this.title,M)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Vy.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Vy.prototype,"data",void 0);_.T([_.ET("#title"),_.r("design:type",HTMLElement)],Vy.prototype,"title",void 0);_.T([_.b({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],Vy);
_.z(Vy,"ytd-flow-top-bar-renderer",function(){if(keP!==void 0)return keP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return keP=M},{mode:1});var p8L;var y2s;var LbL;var RC=function(){return _.Q.apply(this,arguments)||this};
_.l(RC,_.Q);RC.prototype.freeTextValueChanged=function(){_.VW(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
RC.prototype.updateFreeTextValueFromBinding=function(M){this.freeTextValue=M.detail.value};
_.Yd.Object.defineProperties(RC.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(q=(M=this.data)==null?void 0:M.responseMaxLength)!=null?q:500,K;return((K=this.freeTextValue)!=null?K:"").length>=G?"maxed-out":""}}});
RC.prototype.freeTextValueChanged=RC.prototype.freeTextValueChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],RC.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],RC.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],RC.prototype,"freeTextValue",void 0);_.T([_.ET("#user-input"),_.r("design:type",HTMLTextAreaElement)],RC.prototype,"input",void 0);
_.T([_.c("freeTextValue"),_.r("design:type",Object),_.r("design:paramtypes",[])],RC.prototype,"characterLimitClass",null);_.T([_.KT("freeTextValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],RC.prototype,"freeTextValueChanged",null);_.T([_.aO({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],RC);
_.z(RC,"yt-free-text-input-flow-step-renderer",function(){if(LbL===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;y2s===void 0&&(y2s=document.createElement("template"));var K=y2s;G.call(q,K.content.cloneNode(!0),M.content.firstChild);LbL=M}M=LbL;return M},{mode:2});var fr=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return M};
_.l(fr,_.Q);fr.prototype.handleFreeTextFlowStepInputChanged=function(M){_.VW(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:M}}])};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],fr.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],fr.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fr.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],fr);
_.z(fr,"ytd-free-text-input-flow-step-renderer",function(){if(p8L!==void 0)return p8L;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return p8L=M},{mode:1});var YlL;var Wbw;var A2w=function(){return _.Q.apply(this,arguments)||this};
_.l(A2w,_.Q);_.T([_.B(),_.r("design:type",Object)],A2w.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],A2w);
_.z(A2w,"ytd-metadata-line-renderer",function(){if(Wbw!==void 0)return Wbw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Wbw=M},{mode:1});var Fy=function(){return _.Q.apply(this,arguments)||this};
_.l(Fy,_.Q);Fy.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Fy.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Fy.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Fy.prototype,"isMasthead",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],Fy);
_.z(Fy,"ytd-media-product-renderer",function(){if(YlL!==void 0)return YlL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return YlL=M},{mode:1});var dgL;var HZ=function(){return _.Q.apply(this,arguments)||this};
_.l(HZ,_.Q);HZ.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
HZ.prototype.onBillboardImageLoaded=function(){_.jP(this.hostElement,"yt-refit")};
HZ.prototype.onBillboardImageLoaded=HZ.prototype.onBillboardImageLoaded;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],HZ.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],HZ.prototype,"data",void 0);_.T([_.ET("#billboardImage"),_.r("design:type",Object)],HZ.prototype,"billboardImage",void 0);_.T([_.GQ("yt-img-shadow-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HZ.prototype,"onBillboardImageLoaded",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],HZ);
_.z(HZ,"ytd-billboard-masthead-renderer",function(){if(dgL!==void 0)return dgL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return dgL=M},{mode:1});var vpI;var eO=function(){var M=_.Q.apply(this,arguments)||this;M.smallSize=!1;return M};
_.l(eO,_.Q);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],eO.prototype,"ytComponentBehaviorType",void 0);_.T([_.B(),_.r("design:type",Object)],eO.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eO.prototype,"smallSize",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],eO);
_.z(eO,"ytd-bullet-formatted-string",function(){if(vpI!==void 0)return vpI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return vpI=M},{mode:1});var he8;var $7=function(){return _.Q.apply(this,arguments)||this};
_.l($7,_.Q);$7.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$7.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],$7);
_.z($7,"ytd-offer-detail-renderer",function(){if(he8!==void 0)return he8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return he8=M},{mode:1});var tEP;var sD=function(){return _.Q.apply(this,arguments)||this};
_.l(sD,_.Q);sD.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],sD.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],sD.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sD.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],sD);
_.z(sD,"ytd-offer-detail-step-renderer",function(){if(tEP!==void 0)return tEP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return tEP=M},{mode:1});var O7U;var MG=function(){var M=_.Q.apply(this,arguments)||this;M.isInOfferModule=!1;return M};
_.l(MG,_.Q);_.N=MG.prototype;_.N.computeHasEndpoint=function(){var M;return!((M=this.data)==null||!M.onClickCommand)};
_.N.dataChanged=function(){var M;if((M=this.data)==null?0:M.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")};
_.N.detached=function(){var M;if((M=this.data)==null?0:M.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.N.handleClickEvent=function(){var M;if((M=this.data)==null?0:M.onClickCommand){var q;this.componentBehavior.resolveCommand((q=this.data)==null?void 0:q.onClickCommand)}};
_.N.onContentKeyDown=function(M){M.key==="Enter"?this.handleClickEvent(M):M.key===" "&&M.preventDefault()};
_.N.onContentKeyUp=function(M){M.key===" "&&this.handleClickEvent(M)};
MG.prototype.dataChanged=MG.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],MG.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],MG.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],MG.prototype,"data",void 0);_.T([_.B({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],MG.prototype,"hasEndpoint",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],MG.prototype,"isInOfferModule",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],MG.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],MG);
_.z(MG,"ytd-channel-masthead-renderer",function(){if(O7U!==void 0)return O7U;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return O7U=M},{mode:1});var w88;var qG=function(){var M=_.Q.apply(this,arguments)||this;M.thumbnailObjectFit="CONTAIN";M.thumbnailObjectPosition="LEFT";M.isExpanded=!1;return M};
_.l(qG,_.Q);_.N=qG.prototype;_.N.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.N.dataChanged=function(){this.resetStates()};
_.N.computeisTapOnOfferInfoContainerEnabled=function(){var M;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.N.onExpandBtnClick=function(){var M,q=_.C((M=this.data)==null?void 0:M.showMoreButtonRenderer,ZxI);q&&_.Pg(_.nl(),q.trackingParams);this.isExpanded=!this.isExpanded};
_.N.onOfferInfoClick=function(M){this.isTapOnOfferInfoContainerEnabled&&(_.b8(_.Zx(M)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.zM(_.Zx(M)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.N.onBottomBarClick=function(){this.executeTapCommand()};
_.N.executeTapCommand=function(){var M,q=(M=this.data)==null?void 0:M.tapCommand;q&&this.ytComponentBehavior.resolveCommand(q)};
_.N.resetStates=function(){this.isExpanded=!1};
_.Yd.Object.defineProperties(qG.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var M=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),q,G,K;return((q=this.data)==null?void 0:q.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&M&&!!((G=this.data)==null?0:(K=G.benefits)==null?0:K.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((q=_.C((M=this.data)==null?void 0:M.showMoreButtonRenderer,ZxI))==null?void 0:q.showMoreButtonTitle)||((G=this.data)==null?void 0:G.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((q=_.C((M=this.data)==null?void 0:M.showMoreButtonRenderer,ZxI))==null?void 0:q.showLessButtonTitle)||((G=this.data)==null?void 0:G.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var M;return(M=this.showLessButtonTitle)!=null?M:""}var q;return(q=this.showMoreButtonTitle)!=null?q:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.data)==null?void 0:M.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((q=this.data)==null?0:q.footerTitle)||((G=this.data)==null?0:G.footerSubtitle))}}});
qG.prototype.dataChanged=qG.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],qG.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",String)],qG.prototype,"thumbnailObjectFit",void 0);
_.T([_.B(),_.r("design:type",String)],qG.prototype,"thumbnailObjectPosition",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.r("design:type",Boolean)],qG.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.T([_.B(),_.r("design:type",Object)],qG.prototype,"isExpanded",void 0);_.T([_.B(),_.r("design:type",Object)],qG.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.footerIcon)"}),_.r("design:type",String)],qG.prototype,"icon",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qG.prototype,"dataChanged",null);_.T([_.c("data.thumbnail"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qG.prototype,"hasThumbnail",null);_.T([_.c("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qG.prototype,"enableExpandButton",null);
_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qG.prototype,"enableOfferContentIcon",null);_.T([_.c("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.r("design:type",Object),_.r("design:paramtypes",[])],qG.prototype,"showMoreButtonTitle",null);_.T([_.c("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.r("design:type",Object),_.r("design:paramtypes",[])],qG.prototype,"showLessButtonTitle",null);
_.T([_.c("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.r("design:type",String),_.r("design:paramtypes",[])],qG.prototype,"expandedBtnText",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qG.prototype,"enableBottomBar",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],qG);
_.z(qG,"ytd-offer-card-renderer",function(){if(w88!==void 0)return w88;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return w88=M},{mode:1});var COI;var G0=function(){return _.Q.apply(this,arguments)||this};
_.l(G0,_.Q);G0.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"}}}};
G0.prototype.onClick=function(M){if(!_.b8(M.composedPath()||[],this.hostElement,["A".toString()])){var q,G;if((M=(G=_.C((q=this.data)==null?void 0:q.actionButton,_.f1))==null?void 0:G.command)&&!this.ytComponentBehavior.resolveCommand(M)){var K;(K=_.nl())==null||K.clickCommand(M);_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}})}}};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],G0.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],G0.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],G0);
_.z(G0,"ytd-offer-content-renderer",function(){if(COI!==void 0)return COI;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return COI=M},{mode:1});var a_I;var KH=function(){return _.Q.apply(this,arguments)||this};
_.l(KH,_.Q);KH.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Yd.Object.defineProperties(KH.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null||!M.title)||!((q=this.data)==null||!q.description)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],KH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],KH.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],KH.prototype,"hasHeaderData",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],KH);
_.z(KH,"ytd-offer-section-renderer",function(){if(a_I!==void 0)return a_I;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return a_I=M},{mode:1});var opR;var nH=function(){return _.Q.apply(this,arguments)||this};
_.l(nH,_.Q);
nH.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"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],nH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],nH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],nH.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],nH);
_.z(nH,"ytd-offer-selection-step-renderer",function(){if(opR!==void 0)return opR;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return opR=M},{mode:1});var l_I;var ED=function(){return _.Q.apply(this,arguments)||this};
_.l(ED,_.Q);ED.prototype.computeStyle=function(M){return M};
ED.prototype.computeImageWidth=function(M){return M==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.T([_.B({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.r("design:type",String)],ED.prototype,"containerStyle",void 0);_.T([_.B({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.r("design:type",String)],ED.prototype,"imageWidth",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ED.prototype,"data",void 0);
_.T([_.b({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],ED);
_.z(ED,"ytd-confirmation-masthead-renderer",function(){if(l_I!==void 0)return l_I;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return l_I=M},{mode:1});var X8g;var NG=function(){return _.Q.apply(this,arguments)||this};
_.l(NG,_.Q);NG.prototype.computeStyle=function(M){return M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],NG.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.r("design:type",String)],NG.prototype,"containerStyle",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],NG);
_.z(NG,"ytd-purchase-complete-detail-renderer",function(){if(X8g!==void 0)return X8g;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return X8g=M},{mode:1});var POn;var kB=function(){var M=_.Q.apply(this,arguments)||this;M.scriptsAppended=!1;return M};
_.l(kB,_.Q);kB.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"}}}};
kB.prototype.onDataChanged=function(){var M=this.get("data.gtmId");M&&(_.Bz(M,_.R9("GL","")),this.setupConversionTracking())};
kB.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var M=document.createElement("noscript");M.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(M);this.scriptsAppended=!0}};
kB.prototype.onDataChanged=kB.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],kB.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],kB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],kB.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],kB.prototype,"scriptsAppended",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kB.prototype,"onDataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],kB);
_.z(kB,"ytd-purchase-complete-step-renderer",function(){if(POn!==void 0)return POn;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return POn=M},{mode:1});var i78;var pH=function(){return _.Q.apply(this,arguments)||this};
_.l(pH,_.Q);pH.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],pH.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],pH);
_.z(pH,"ytd-ypc-transaction-error-message-renderer",function(){if(i78!==void 0)return i78;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return i78=M},{mode:1});var c2R;var gpL;var yo=function(){var M=_.Q.apply(this,arguments)||this;M.handlePhoneVerificationSuccess=function(q){if(M.isValidPhoneVerificationCompletionMessageEvent(q)){var G;((G=M.data)==null?0:G.nextStepCommand)&&M.ytComponentBehavior.resolveCommand(M.data.nextStepCommand)}};
return M};
_.l(yo,_.Q);yo.prototype.isValidPhoneVerificationCompletionMessageEvent=function(M){if(M.data!=="yt-phone-verification-complete")return!1;M=_.pD(M.origin);return M!==null&&M.includes("youtube.com")};
yo.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
yo.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],yo.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yo.prototype,"data",void 0);_.T([_.aO({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],yo);
_.z(yo,"yt-feature-enablement-soft-entry-renderer",function(){if(gpL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;c2R===void 0&&(c2R=document.createElement("template"));var K=c2R;G.call(q,K.content.cloneNode(!0),M.content.firstChild);gpL=M}M=gpL;return M},{mode:1});var BjR;var QJL;var I_L;var Dg8;var uIv=function(){return _.Q.apply(this,arguments)||this};
_.l(uIv,_.Q);_.T([_.B(),_.r("design:type",Object)],uIv.prototype,"data",void 0);_.T([_.aO({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],uIv);
_.z(uIv,"yt-benefits-item-renderer",function(){if(Dg8===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;I_L===void 0&&(I_L=document.createElement("template"));var K=I_L;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Dg8=M}M=Dg8;return M},{mode:2});var J2L;var Z7R;var LH=function(){return _.Q.apply(this,arguments)||this};
_.l(LH,_.Q);LH.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
LH.prototype.computeisWithoutPadding=function(){var M;return((M=this.data)==null?void 0:M.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],LH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],LH.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.r("design:type",Boolean)],LH.prototype,"isWithoutPadding",void 0);_.T([_.aO({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],LH);
_.z(LH,"yt-benefits-section-renderer",function(){if(Z7R===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;J2L===void 0&&(J2L=document.createElement("template"));var K=J2L;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Z7R=M}M=Z7R;return M},{mode:2});var YB=function(){return _.Q.apply(this,arguments)||this};
_.l(YB,_.Q);YB.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
YB.prototype.computeisUsingLargeWidth=function(){var M;return((M=this.data)==null?void 0:M.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],YB.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],YB.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.r("design:type",Boolean)],YB.prototype,"isUsingLargeWidth",void 0);_.T([_.aO({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],YB);
_.z(YB,"yt-benefits-flow-step-renderer",function(){if(QJL===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;BjR===void 0&&(BjR=document.createElement("template"));var K=BjR;G.call(q,K.content.cloneNode(!0),M.content.firstChild);QJL=M}M=QJL;return M},{mode:2});var b7M;var Ugg;var Wa=function(){return _.Q.apply(this,arguments)||this};
_.l(Wa,_.Q);Wa.prototype.checkIsUsingLargeWidth=function(){var M;return((M=this.data)==null?void 0:M.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.T([_.B(),_.r("design:type",Object)],Wa.prototype,"data",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Wa.prototype,"ytRendererBehavior",void 0);_.T([_.B({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.r("design:type",Boolean)],Wa.prototype,"isUsingLargeWidth",void 0);_.T([_.aO({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Wa);
_.z(Wa,"yt-confirmation-flow-step-renderer",function(){if(Ugg===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;b7M===void 0&&(b7M=document.createElement("template"));var K=b7M;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Ugg=M}M=Ugg;return M},{mode:2});var xgI;var zeP;var mgv=function(){return _.Q.apply(this,arguments)||this};
_.l(mgv,_.Q);_.T([_.B(),_.r("design:type",Object)],mgv.prototype,"data",void 0);_.T([_.aO({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],mgv);
_.z(mgv,"yt-info-flow-step-renderer",function(){if(zeP===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;xgI===void 0&&(xgI=document.createElement("template"));var K=xgI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);zeP=M}M=zeP;return M},{mode:2});var Slw;var Tj8;var r2P=function(){return _.Q.apply(this,arguments)||this};
_.l(r2P,_.Q);_.T([_.B(),_.r("design:type",Object)],r2P.prototype,"data",void 0);_.T([_.aO({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],r2P);
_.z(r2P,"yt-info-list-flow-step-renderer",function(){if(Tj8===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Slw===void 0&&(Slw=document.createElement("template"));var K=Slw;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Tj8=M}M=Tj8;return M},{mode:2});var jJI=_.U(function(M){var q=M.data;return _.W("styled-text-view-model",{class:_.Hb("ytStyledTextViewModelHost",function(){return D6P(q().fontAttributes)},function(){return IyL(q().color)})},_.W(_.Ft,{text:function(){return q().text},
ariaLabel:function(){var G,K,n;return(n=(G=q().accessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label)!=null?n:""}}))},"oh");
jJI.idomCompat=!0;var VEg=_.U(function(M){var q=function(){var n,E,p,y;return(y=(p=(n=M.alt)==null?void 0:n.call(M))!=null?p:(E=M.data().accessibilityData)==null?void 0:E.label)!=null?y:""},G=function(){return M.data().imageWidth},K=function(){return M.data().imageHeight};
return _.W("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.W(_.d,{cond:function(){var n=M.data();if(n){var E,p,y;var Y=((E=_.AL().resolve(_.WR(_.Qx)))==null?0:E())?(p=n.imageDark)!=null?p:n.imageLight:(y=n.imageLight)!=null?y:n.imageDark}else Y=void 0;return Y},
then:function(n){return _.W(_.Jj,Object.assign({},M,{data:n,alt:q,targetWidth:G,targetHeight:K,preserveHeight:!0,preserveWidth:!0}))}}))},"ph");
VEg.idomCompat=!0;var AG=_.U(function(M){var q=M.data;M=_.bg(function(){return q().slots},[]);
var G=_.bg(function(){return q().layoutProperties},{}),K=_.AL().resolve(_.Dg);
return _.W("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:iIn(G,K)},_.W(_.bf,{each:M,keyBy:"INDEX"},function(n){return _.W("div",{class:"ytContainerLayoutViewModelSlot",style:iIn(function(){return n().layoutProperties},K)},_.W(_.yu,{data:function(){return n().contents}},{containerLayoutViewModel:AG,
badgeViewModel:_.Yl,buttonViewModel:_.Wf,styledTextViewModel:jJI,contentPreviewImageViewModel:function(E){return _.W(_.We,{data:E.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(E){return _.W(VEg,{data:E.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"qh");
AG.idomCompat=!0;var Rev=_.U(function(M){var q=M.data;var G=M.stateFns;var K=function(){var A=q(),v=A.productId;return!(!A.clearGroupId&&!v)},n=function(){var A=q(),v=A.clearGroupId;
return(A=A.productId)?G().isProductSelected(A):v?G().getSelectedProductByGroupId(v)==null:!1},E=function(A){var v=q(),h=v.clearGroupId;
if(v=v.productId)G().onProductSelected(v),A==null||A.forEach(function(t){_.Pb(t)});
else if(h)G().onClearGroupSelected(h)},p=function(){var A=q(),v=A.clearGroupId;
if(A=A.productId){var h;return"group:"+(((h=G().getProductById(A))==null?void 0:h.groupId)||"")}return v?"group:"+v:""},y=_.bg(function(){return q().header},[]),Y=_.bg(function(){return q().body},[]);
return _.W("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.W(_.d,{cond:function(){return y().length>0||K()},
then:function(){return _.W("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.W("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.W(_.yu,{data:y},{containerLayoutViewModel:function(A){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(AG,{data:A.data}))},
styledTextViewModel:function(A){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(jJI,{data:A.data}))}})),_.W(_.d,{cond:K,
then:function(){return _.W("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.W(_.mV,{checked:n,name:p,onChange:function(){E(q().onSelect)}}))}}))}}),_.W(_.d,{cond:function(){return Y().length>0},
then:function(){return _.W("div",null,_.W(_.yu,{data:Y},{containerLayoutViewModel:function(A){return _.W("div",{class:"ytPdpCardSectionViewModelContentItem"},_.W(AG,{data:A.data}))}}))}}))},"rh");
Rev.idomCompat=!0;var f_P=_.U(function(M){var q=M.data;var G=M.stateFns;return _.W("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.W(_.d,{cond:function(){return q().banner},
then:function(K){return _.W("div",{class:"ytPdpCardViewModelBanner"},_.W(_.Ft,{text:K}))}}),_.W(_.yu,{data:function(){return q().sections}},{pdpCardSectionViewModel:function(K){K=K.data;
var n={};return _.W("div",{class:_.Hb("ytPdpCardViewModelSectionContainer",(n.ytPdpCardViewModelShowDividers=function(){return q().showDividers},n))},_.W(Rev,{data:K,
stateFns:G}))}}))},"sh");
f_P.idomCompat=!0;var Fbs=_.U(function(M){var q=M.data;var G=M.isOverlay;M={};return _.W("pdp-masthead-view-model",{class:_.Hb("ytPdpMastheadViewModelHost",(M.ytPdpMastheadViewModelIsOverlay=G,M))},_.W(_.yu,{data:function(){return q().image}},{contentPreviewImageViewModel:_.We,
themedImageViewModel:function(K){return _.W(VEg,{data:K.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.W(_.d,{cond:function(){return q().title},
then:function(K){return _.W("h1",{class:"ytPdpMastheadViewModelHeading"},_.W(_.Ft,{text:K,isOverlay:G}))}}),_.W(_.bf,{each:function(){var K;
return(K=q().finePrint)!=null?K:[]}},function(K){return _.W("div",{class:"ytPdpMastheadViewModelFinePrint"},_.W(_.Ft,{text:K,
isOverlay:G}))}))},"th");
Fbs.idomCompat=!0;var H7I=_.U(function(M){var q=M.data;var G=M.stateFns;var K=function(){return"pdp-pricing-group-selector-"+q().pricingGroupAttributeIds},n=_.bg(function(){return q().pricingGroupSelectorSectionHeader});
return _.W("pdp-pricing-group-selector-view-model",null,_.W(_.d,{cond:function(){return!!n()},
then:function(){return _.W(_.yu,{data:n},{sectionHeaderViewModel:function(E){E=E.data;var p={};return _.W("div",{class:_.Hb("ytPdpPricingGroupSelectorViewModelSectionHeader",(p.ytPdpPricingGroupSelectorViewModelFullBleed=!0,p.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,p))},_.W(_.CU,{data:E}))}})}}),_.W("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.W(_.bf,{each:function(){var E=G().getSelectedProductByGroupId(q().groupId);
if(!E)return _.rM(Error("Yj`"+q().groupId)),[];var p,y=(p=q().pricingGroupAttributeIds)!=null?p:[],Y;if((Y=E.pricingGroups)==null||!Y.length||!y.length)return[];p=E.pricingGroups.filter(function(t){return y.length?t.pricingGroupAttributes.every(function(O){return y.includes(O)}):!1});
E=[];if(y.length>0){p=[].concat(_.Ui(p));Y=_.k(y);for(var A=Y.next(),v={};!A.done;v={targetAttrId:void 0},A=Y.next())v.targetAttrId=A.value,A=p.findIndex(function(t){return function(O){return O.pricingGroupAttributes.includes(t.targetAttrId)}}(v)),A!==-1&&(E.push(p[A]),p.splice(A,1))}var h=G().getSelectedPricingGroupAttributesByGroupId(q().groupId);
return E.map(function(t){var O=!1;h&&t.pricingGroupAttributes&&(O=IC(t.pricingGroupAttributes,h));return{pricingGroup:t,isSelected:O}})},
keyBy:function(E){return E.pricingGroup.pricingGroupId}},function(E){return _.W("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.W("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.W(_.yu,{data:function(){return E().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:AG})),_.W("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.W(_.mV,{checked:function(){return E().isSelected},
name:K,onClick:function(){var p=E().pricingGroup;G().onPricingGroupSelected(p.pricingGroupId);if(p=_.aM(p.onSelectPricingGroup)){var y;(y=_.AL().resolve(_.vR))==null||y.resolveCommand(p)}}})))})))},"uh");
H7I.idomCompat=!0;var ee8=_.U(function(M){var q=M.data;var G=M.stateFns;var K=function(){var p=G().getSelectedPricingOptions().map(function(A){return A.pricingOptionId}),y=G().getSelectedProductByGroupId(q().groupId);
if(!y)return _.rM(Error("Zj`"+q().groupId)),[];var Y=G().getSelectedPricingGroupAttributesByGroupId(q().groupId);return bIR(y.pricingOptions,Y,p)},n=_.bg(function(){return q().pricingOptionSelectorSectionHeader}),E=function(){return K().length>1};
return _.W("pdp-pricing-option-selector-view-model",null,_.W(_.d,{cond:function(){return!!n()&&E()},
then:function(){return _.W(_.yu,{data:n},{sectionHeaderViewModel:function(p){p=p.data;var y={};return _.W("div",{class:_.Hb("ytPdpPricingOptionSelectorViewModelSectionHeader",(y.ytPdpPricingOptionSelectorViewModelFullBleed=!0,y.ytPdpPricingOptionSelectorViewModelNoVerticalPadding=!0,y))},_.W(_.CU,{data:p}))}})}}),_.W(_.d,{cond:E,
then:function(){return _.W("div",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.W(_.bf,{each:K,keyBy:"INDEX"},function(p){return _.W("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.W("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.W(_.yu,{data:function(){return p().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:AG})),_.W("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.W(_.mV,{checked:function(){return p().isSelected},
onClick:function(){G().onPricingOptionSelected(p().pricingOption.pricingOptionId);var y=p().pricingOption.onSelectPricingOption;if(y=_.aM(y)){var Y;(Y=_.AL().resolve(_.vR))==null||Y.resolveCommand(y)}}})))}))}}))},"vh");
ee8.idomCompat=!0;var $g8=_.U(function(M){var q=M.data;var G=M.stateFns;return _.W("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.W(_.yu,{data:function(){var K,n;return(n=(K=G().getSelectedPricingOptions()[0])==null?void 0:K.primaryButton)!=null?n:q().emptyStateButton}},{buttonViewModel:_.Wf}))},"wh");
$g8.idomCompat=!0;var stP=_.U(function(M){var q=M.stateFns;return _.W("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.W(_.yu,{data:function(){return q().getSelectedPricingOptions().flatMap(function(G){return G.summaryLines}).filter(function(G){return!!G})}},{containerLayoutViewModel:function(G){return _.W("div",{class:"ytPdpSummaryViewModelLineItem"},_.W(AG,{data:G.data}))}}))},"xh");
stP.idomCompat=!0;var Mgw=_.U(function(M){function q(D){var J=p();_.Zp(_.hY("pdpStateEntity",J,{key:J,selectedPricingOptions:D}))}
var G=M.data;var K=M.internalScrolling;var n=M.stateFnsForTesting;var E=_.bg(function(){return G().allProducts},[]),p=_.bg(function(){return G().pdpStateEntityKey},""),y=_.No(U68,p),Y=_.gY(function(){_.TL(!0);
var D;return(D=n==null?void 0:n())!=null?D:z0M(y,E,q)},void 0,"ryrrHe"),A=_.bg(function(){return G().body},[]),v=_.bg(function(){return G().columnBreakHints},[]),h=function(){return G().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},t=function(){return h()||G().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},O=_.gY(function(){var D=_.cO(G().background),J;
if(D==null?0:(J=D.sources)==null?0:J.length){var Z=Z===void 0?!0:Z;D=_.yI$(void 0,D.sources,void 0,Z,Z?1E3:void 0,Z?void 0:1E3)}else D=null;return D},void 0,"UVFJic");
M=_.Kp({"--pdp-view-model-background":function(){return O()?"url("+O()+")":void 0}});
var a={};K=_.Hb("ytPdpViewModelHost",(a.ytPdpViewModelHasBackground=function(){return t()||!!O()},a.ytPdpViewModelHasDarkBackground=t,a.ytPdpViewModelHasScrim=h,a.ytPdpViewModelInternalScrolling=_.bg(K,!1),a));
var g=function(D){var J={};return _.Hb("ytPdpViewModelItem",(J.ytPdpViewModelFullBleed=function(){return m6L(D())==="dividerViewModel"||m6L(D())==="sectionHeaderViewModel"},J.ytPdpViewModelNoVerticalPadding=function(){return m6L(D())==="sectionHeaderViewModel"},J))};
_.SK(function(){var D=G().onStartCommand;if(D&&(D=_.aM(D))){var J;(J=_.AL().resolve(_.vR))==null||J.resolveCommand(D)}});
return _.W("pdp-view-model",{class:K,style:M},_.W("div",{class:"ytPdpViewModelColumnContainer"},_.W(_.bf,{each:function(){return SQw(A(),v())},
keyBy:"INDEX"},function(D){return _.W("div",{class:"ytPdpViewModelColumn"},_.W(_.yu,{data:D},{containerLayoutViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W(AG,{data:J}))},
dividerViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W(_.ScP,{data:J}))},
pdpCardViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W(f_P,{data:J,
stateFns:Y}))},
pdpMastheadViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W(Fbs,{data:J,
isOverlay:t}))},
pdpPricingGroupSelectorViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W(H7I,{data:J,
stateFns:Y}))},
pdpPricingOptionSelectorViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W(ee8,{data:J,
stateFns:Y}))},
pdpPrimaryButtonViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W($g8,{data:J,
stateFns:Y}))},
pdpSummaryViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W(stP,{data:J,
stateFns:Y}))},
sectionHeaderViewModel:function(J,Z){J=J.data;return _.W("div",{class:g(function(){return D()[Z()]})},_.W(_.CU,{data:J}))}}))})))},"yh");
Mgw.idomCompat=!0;_.S5(Mgw,"pdp-view-model",{props:{data:_.Hz,stateFnsForTesting:_.xj,internalScrolling:_.xj}});var qX5=_.U(function(M){var q=M.data;var G=M.className;var K=_.No(_.u_,function(){return q().flowStateEntityKey});
return _.W("ytm-premium-purchase-button-renderer",{class:_.Hb("ytPremiumPurchaseButtonRendererHost",G)},_.W(_.yu,{data:function(){var n;return(n=_.C(K(),r5P))==null?void 0:n.primaryButtonOverride}},{buttonRenderer:function(n){return _.W(_.GW,{data:n.data,
className:G})},
buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,className:G})}}))},"zh");
qX5.idomCompat=!0;var GwR=_.U(function(M){var q=M.data;M=M.className;var G=function(){return T_8(q().style)},K=_.Hb("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",G),n=_.Hb("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",G);
return _.W("yt-flow-bottom-bar-renderer",{class:_.Hb("yt-flow-bottom-bar-renderer",M,G)},_.W(_.yu,{data:function(){return q().secondaryButton}},{buttonRenderer:function(E){return _.W(_.GW,{data:E.data,
className:n})},
buttonViewModel:function(E){return _.W(_.Wf,{data:E.data,className:n})},
premiumPurchaseButtonRenderer:function(E){return _.W(qX5,{data:E.data,className:n})}}),_.W(_.yu,{data:function(){return q().primaryButton}},{buttonRenderer:function(E){return _.W(_.GW,{data:E.data,
className:K})},
buttonViewModel:function(E){return _.W(_.Wf,{data:E.data,className:K})},
premiumPurchaseButtonRenderer:function(E){return _.W(qX5,{data:E.data,className:K})}}))},"Ah");
GwR.idomCompat=!0;_.S5(GwR,"yt-flow-bottom-bar-renderer",{props:{data:_.Hz,className:_.Hz}});var K4E=_.U(function(M){var q=_.Hb(M.className,"ytOfferSummaryRendererHost");return _.W("yt-offer-summary-renderer",{class:q},_.W("div",{class:"ytOfferSummaryRendererTextContainer"},_.W("div",{class:"ytOfferSummaryRendererEyebrowText"},_.W(_.Ft,{text:function(){return M.data().eyebrowText}})),_.W("div",{class:"ytOfferSummaryRendererTitle"},_.W(_.Ft,{text:function(){return M.data().title}})),_.W("div",{class:"ytOfferSummaryRendererSubtitle"},_.W(_.Ft,{text:function(){return M.data().subtitle}})),_.W("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.W(_.bf,{each:function(){var G;
return(G=M.data().featureListData)!=null?G:[]}},function(G){var K;
return _.W("div",{class:"ytOfferSummaryRendererFeatureList"},_.W(_.np,{icon:(K=G.icon)==null?void 0:K.iconType,active:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(G.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.W("div",{class:"ytOfferSummaryRendererFeatureListText"},_.W(_.Ft,{text:G.text,
className:function(){return G.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.W("div",{class:"ytOfferSummaryRendererDescription"},_.W(_.Ft,{text:function(){return M.data().description}}))))},"Bh");_.S5(_.U(function(M){var q={};q=_.Hb("ytOfferSummaryFlowStepRendererHost",(q.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=M.shouldDisableHeaderTopMargin,q));return _.W("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:q},_.W("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.W("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.W(_.Ft,{text:function(){return M.data().header}})),_.W("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.W(_.Ft,{text:function(){return M.data().subtitle}}))),_.W("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.W(_.yu,{data:function(){return M.data().offerSummary}},{offerSummaryRenderer:function(G){return _.W(K4E,{data:G.data,
className:M.flowClassName})}})))},"Ch"),"yt-offer-summary-flow-step-renderer",{props:{data:_.xj,
flowClassName:_.xj,flowStateEntityKey:_.xj,shouldDisableHeaderTopMargin:_.xj}});var nzs=_.U(function(M){var q=M.data;var G=M.className;var K=M.flowStateEntityKey;var n=M.selectionStepStyle;M=_.sq(function(Y){var A=q(),v=K==null?void 0:K();Y.target&&(Y.stopPropagation(),Y=v||"",v=_.u_(_.J_().getState(),Y),A=Object.assign({},v,{premiumPurchaseFlowState:{selectedOptionId:A.optionId,primaryButtonOverride:A.primaryButtonOverride}}),_.J_().dispatch(_.LL("flowStateEntity",Y,A)));return!1});
var E=function(){return(K==null?void 0:K())||""},p=_.No(_.u_,E);
_.SK(function(){var Y=q(),A=E(),v=p();Y.defaultSelected&&A!==""&&Y.primaryButtonOverride&&jkv(Y.optionId||"",A,Y.primaryButtonOverride,v)});
var y={};return _.W("ytm-option-item-renderer",{"on:click":M,class:_.Hb(G,"ytm-option-item-renderer",(y["ytm-option-item-renderer--lp2-style"]=function(){return(n==null?void 0:n())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},y))},_.W("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.W("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var Y=q(),A=E(),v=p();v=_.C(v,r5P);return(v?(v==null?void 0:v.selectedOptionId)||"":Y.defaultSelected&&A!==""?(Y==null?void 0:Y.optionId)||"":"")===q().optionId},
name:("input"+_.Qp(_.zx)).toString()})),_.W("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.W(_.yu,{data:function(){return q().titleBadge}},{badgeViewModel:function(Y){return _.W(_.Yl,{data:Y.data,
class:"ytm-option-item-renderer__option-item-title-badge"})}}),_.W(_.d,{cond:function(){return q().eyebrowText},
then:function(){return _.W("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.W(_.Ft,{text:function(){return q().eyebrowText}}))}}),_.W("div",{class:"ytm-option-item-renderer__option-item-title"},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.W(_.Ft,{text:function(){return q().subtitle}})),_.W(_.d,{cond:function(){return q().featureListData},
then:function(){return _.W("div",{class:"ytm-option-item-renderer__feature-list-data"},_.W(_.bf,{each:function(){return q().featureListData||[]}},function(Y){var A,v=(A=Y.icon)==null?void 0:A.iconType;
a:switch(Y.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":A="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":A="ytm-option-item-renderer__feature-list-icon-small";break a;default:A="ytm-option-item-renderer__feature-list-icon-default"}return _.W("div",{class:"ytm-option-item-renderer__feature-list"},_.W(_.np,{icon:v,className:A,active:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.W("div",{class:"ytm-option-item-renderer__feature-list-text"},_.W(_.Ft,{text:Y.text,
className:function(){return Y.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.W("div",{class:"ytm-option-item-renderer__option-item-description"},_.W(_.Ft,{text:function(){return q().description}}))))},"Dh");var EzE=_.U(function(M){var q=M.data;var G=M.flowClassName;var K=M.flowStateEntityKey;var n=M.selectionStepStyle;return _.W("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"ytOptionSectionRendererHost"},_.W("div",{class:"ytOptionSectionRendererOptionSectionHeaderSection"},_.W("div",{class:"ytOptionSectionRendererOptionSectionHeader"},_.W(_.Ft,{text:function(){return q().title}}),_.W(_.yu,{data:function(){return q().titleBadge}},{badgeViewModel:function(E){return _.W(_.Yl,{data:E.data,
class:"ytOptionSectionRendererOptionSectionTitleBadge"})}})),_.W(_.d,{cond:function(){return q().subtitle},
then:function(){return _.W("div",{class:"ytOptionSectionRendererOptionSectionSubtitle"},_.W(_.Ft,{text:function(){return q().subtitle}}))}}),_.W(_.d,{cond:function(){return q().featureListData},
then:function(E){return _.W("div",{class:"ytOptionSectionRendererOptionSectionFeatureList"},_.W(_.bf,{each:E},function(p){var y;return _.W("div",{class:"ytOptionSectionRendererOptionSectionFeatureItem"},_.W(_.np,{icon:(y=p.icon)==null?void 0:y.iconType,active:function(){return p.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(p.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"}}}),_.W("div",{class:"ytOptionSectionRendererOptionSectionFeatureItemText"},_.W(_.Ft,{text:p.text,
className:function(){return p.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOptionSectionRendererOptionSectionFeatureItemTextSecondary":""}})))}))}}),_.W(_.d,{cond:function(){return q().secondaryTitle},
then:function(){return _.W("div",{class:"ytOptionSectionRendererOptionSectionSecondaryTitle"},_.W(_.Ft,{text:function(){return q().secondaryTitle}}))}}),_.W(_.bf,{each:function(){return q().sectionDisclaimers||[]}},function(E){return _.W("div",{class:"ytOptionSectionRendererOptionSectionDisclaimer"},_.W(_.Ft,{text:E}))})),_.W(_.yu,{data:function(){return q().optionItems}},{optionItemRenderer:function(E){return _.W("div",{class:"ytOptionSectionRendererOptionItem"},_.W(nzs,{data:E.data,
className:G,flowStateEntityKey:K,selectionStepStyle:n}))}}),_.W(_.d,{cond:function(){return q().offerText},
then:function(){return _.W("div",{class:"ytOptionSectionRendererOptionSectionOfferText"},_.W(_.Ft,{text:function(){return q().offerText}}))}}))},"Eh");
EzE.idomCompat=!0;var Nzw=_.U(function(M){var q=M.data;var G=M.flowClassName;var K=M.flowStateEntityKey;M=M.isDesktop;var n=_.pI("div"),E=function(){var v;return(v=q().flowStateEntityKey)!=null?v:K==null?void 0:K()},p=function(){return(E==null?void 0:E())||""},y=function(){return q().style},Y=_.No(_.u_,p);
_.SK(function(){VU5(q(),p(),Y());setTimeout(function(){var v;(v=n.value)==null||v.focus()})});
var A={};return _.W("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.Hb("ytm-option-selection-flow-step-renderer",(A["ytm-option-selection-flow-step-renderer--desktop"]=M,A["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return q().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},A))},_.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header-container ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.W("div",{el:n,
tabindex:-1,role:"heading","aria-level":1,class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.W(_.Ft,{text:function(){return q().header}})),_.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.W(_.Ft,{text:function(){return q().subtitle}}))),_.W(_.yu,{data:function(){return q().optionItems||[]}},{optionItemRenderer:function(v){return _.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},
_.W(nzs,{data:v.data,
className:G,flowStateEntityKey:E,selectionStepStyle:y}))},
optionSectionRenderer:function(v){return _.W("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.W(EzE,{data:v.data,flowClassName:G,flowStateEntityKey:E,selectionStepStyle:y}))}}))},"Fh");
Nzw.idomCompat=!0;_.S5(Nzw,"yt-option-selection-flow-step-renderer",{props:{data:_.Hz,flowClassName:_.Hz,flowStateEntityKey:_.Hz,isDesktop:_.Hz}});_.dO=_.U(function(M){var q=_.UT(M,{type:1,disablePadding:!1,disablePrimaryButton:!1}),G=q.data,K=q.type;M=q.disablePadding;var n=q.disablePrimaryButton,E=q.onClickPrimaryButton,p=function(){return G().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},y=function(){return{disabled:n(),
state:n()?"disabled":"active"}},Y=function(){return G().leadingLabel||G().trailingLabel};
q={};return _.W("yt-panel-footer-view-model",{class:_.Hb("yt-panel-footer-view-model",(q["yt-panel-footer-view-model--hide-divider"]=function(){return G().shouldHideDivider},q["yt-panel-footer-view-model--disable-padding"]=M,q))},_.W(_.d,{cond:Y,
then:function(){var A={},v={};return _.W("div",{class:_.Hb("yt-panel-footer-view-model__text-row",(A["yt-panel-footer-view-model--row-bottom-padding"]=function(){var h=G();return!(!h.leadingLabel&&!h.trailingLabel||!h.primaryButton&&!h.secondaryButton)},A))},_.W(_.Ft,{text:function(){return G().leadingLabel},
className:_.Hb((v["yt-panel-footer-view-model--text-padding"]=Y,v))}),_.W(_.Ft,{text:function(){return G().trailingLabel}}))}}),_.W(_.d,{cond:p,
then:function(){var A={};return _.W("div",{class:"yt-panel-footer-view-model__button-stack"},_.W("div",{class:_.Hb("yt-panel-footer-view-model__primary-button",(A["yt-panel-footer-view-model__button-stack--top-button"]=function(){return G().secondaryButton},A))},_.W(_.yu,{data:function(){return G().primaryButton}},{buttonViewModel:function(v){return _.W(_.Wf,{data:v.data,
buttonOverrides:y,onClick:E})}})),_.W(_.yu,{data:function(){return G().secondaryButton}},{buttonViewModel:_.Wf}))}}),_.W(_.d,{cond:function(){return!p()},
then:function(){var A={},v={},h={};return _.W("div",{class:_.Hb("yt-panel-footer-view-model__button-row",(A["yt-panel-footer-view-model__button-row--trailing"]=function(){return 3===K()},A))},_.W("div",{class:_.Hb("yt-panel-footer-view-model__button-row--left-button",(v["yt-panel-footer-view-model__button-row--full-width"]=function(){return 1===K()},v["yt-panel-footer-view-model__button-row--hidden"]=function(){return!G().secondaryButton||0===K()},v["yt-panel-footer-view-model__button-row--shrink"]=
function(){return 2===K()},v))},_.W(_.yu,{data:function(){return G().secondaryButton}},{buttonViewModel:_.Wf})),_.W("div",{class:_.Hb("yt-panel-footer-view-model__primary-button",(h["yt-panel-footer-view-model__button-row--full-width"]=function(){return 0===K()||1===K()},h["yt-panel-footer-view-model__button-row--expand"]=function(){return 2===K()},h))},_.W(_.yu,{data:function(){return G().primaryButton}},{buttonViewModel:function(t){return _.W(_.Wf,{data:t.data,
buttonOverrides:y,onClick:E})}})))}}))},"Gh");
_.dO.idomCompat=!0;_.kwL=_.U(function(M){M=_.UT(M,{disablePadding:!1});var q=M.data,G=M.disablePadding;M=_.AOu(function(){return q().formId});
var K=M.submitForm,n=M.isValid,E=M.isSubmitting;return _.W("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.W(_.yu,{data:function(){return q().panelFooter}},{panelFooterViewModel:function(p){return _.W(_.dO,{data:p.data,
onClickPrimaryButton:function(){K()},
disablePrimaryButton:function(){return!n()||E()},
disablePadding:G})}}))},"Hh");_.S5(_.kwL,"yt-form-footer-view-model",{props:{data:_.Hz,disablePadding:_.Hz}});var psw=_.U(function(M){var q=_.w("enable_user_rating_web");return _.W("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.W(_.d,{cond:function(){var G;return(G=M.data())==null?void 0:G.image},
then:function(G){return _.W(_.Jj,{data:G,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.W(_.Ft,{text:function(){var G;
return(G=M.data())==null?void 0:G.title}})),_.W("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.W(_.Ft,{text:function(){var G;
return(G=M.data())==null?void 0:G.subtitle}})),_.W(_.d,{cond:function(){return!q},
then:function(){return _.W(_.yu,{data:function(){var G;return(G=M.data())==null?void 0:G.viewTipsButton}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
className:"ytContributorZeroStateViewModelCenterAlignedContentButton"})}})}})))},"Ih");_.S5(psw,"yt-contributor-zero-state-view-model",{props:{data:_.Hz}});var ynw=_.U(function(M){var q=function(){var G;return(G=M.data())==null?void 0:G.image};
return _.W("yt-featured-content-item-view-model",{class:_.Hb("ytFeaturedContentItemViewModelHost")},_.W("div",{class:_.Hb(function(){return q()?"ytFeaturedContentItemViewModelItemWithImageContainer":"ytFeaturedContentItemViewModelItemWithIconContainer"})},_.W("div",{class:function(){return q()?"ytFeaturedContentItemViewModelItemWithImage":"ytFeaturedContentItemViewModelItemWithIcon"}},_.W(_.d,{cond:q,
then:function(){return _.W("div",{class:"ytFeaturedContentItemViewModelImage"},_.W(_.yu,{data:function(){return M.data().image}},{themedImageViewModel:function(G){return _.W(VEg,{data:G.data,
className:"ytFeaturedContentItemViewModelThemedImage"})}}))}}),_.W(_.d,{cond:function(){var G;
return!q()&&((G=M.data())==null?void 0:G.iconName)},
then:function(){return _.W("div",{class:"ytFeaturedContentItemViewModelIcon"},_.W(_.np,{icon:function(){return M.data().iconName}}))}}),_.W("div",{class:"ytFeaturedContentItemViewModelContent"},_.W(_.d,{cond:function(){var G;
return(G=M.data())==null?void 0:G.title},
then:function(){return _.W("div",{class:"ytFeaturedContentItemViewModelContentTitle"},_.W(_.Ft,{text:function(){return M.data().title}}))}}),_.W(_.d,{cond:function(){var G;
return(G=M.data())==null?void 0:G.body},
then:function(){return _.W("div",{class:"ytFeaturedContentItemViewModelContentBody"},_.W(_.Ft,{text:function(){return M.data().body}}))}})))))},"Jh");var L4I=_.U(function(M){var q=function(){var n;return R0M((n=M.data())==null?void 0:n.titleFontSize)},G=function(){var n;
return fyR((n=M.data())==null?void 0:n.descriptionFontSize)},K=function(){var n;
return((n=M.data())==null?void 0:n.titleFontSize)==="LANDING_PAGE_YOUTUBE_FONT_SIZE_M"};
return _.W("yt-landing-page-view-model",{class:_.Hb("ytLandingPageViewModelHost",M.className)},_.W("div",{class:"ytLandingPageViewModelHeader"},_.W(_.d,{cond:function(){var n;return(n=M.data())==null?void 0:n.bannerImage},
then:function(n){return _.W("div",{class:"ytLandingPageViewModelHeaderImage"},_.W(_.yu,{data:function(){return n()}},{imageBannerViewModel:function(E){return _.W(_.fU,{data:E.data,
isPositionRelative:!0})}}))}}),_.W(_.d,{cond:function(){var n;
return(n=M.data())==null?void 0:n.bannerAnimation},
then:function(n){return _.W(_.C3,{data:function(){var E=n();if(E==null?0:E.url){var p;E={path:(p=E==null?void 0:E.url)!=null?p:"",autoplay:!0,loop:!0,renderer:"svg"}}else if(E==null?0:E.payload){var y;E={animationData:JSON.parse((y=E==null?void 0:E.payload)!=null?y:""),autoplay:!0,loop:!0,renderer:"svg"}}else E=void 0;return{animationConfig:E}},
animationName:"landing_page_banner_animation",className:"ytLandingPageViewModelHeaderBannerAnimation"})}}),_.W("div",{class:"ytLandingPageViewModelHeaderTitle"},_.W(_.d,{cond:function(){var n;
return(n=M.data())==null?void 0:n.title},
then:function(n){return _.W("div",{class:_.Hb("ytLandingPageViewModelHeaderTitleContent",q)},_.W(_.Ft,{text:function(){return n()}}))}}),_.W(_.d,{cond:function(){var n;
return(n=M.data())==null?void 0:n.description},
then:function(n){var E={};return _.W(_.Ft,{className:_.Hb("ytLandingPageViewModelHeaderTitleDescription",G,(E.ytLandingPageViewModelHeaderTitleDescriptionMargin=K,E)),text:function(){return n()}})}}))),_.W(_.d,{cond:function(){var n,E;
return(n=M.data())==null?void 0:(E=n.featuredContentList)==null?void 0:E.length},
then:function(){return _.W("div",{class:"ytLandingPageViewModelFeaturedContentSection"},_.W(_.yu,{data:function(){return M.data().featuredContentList}},{featuredContentItemViewModel:function(n){return _.W(ynw,{data:n.data})}}))}}),_.W(_.d,{cond:function(){var n,E;
return(n=M.data())==null?void 0:(E=n.expandableContentList)==null?void 0:E.length},
then:function(){return _.W("div",{class:"ytLandingPageViewModelFaqSection"},_.W(_.yu,{data:function(){return M.data().expandableContentList}},{faqEntryViewModel:function(n){return _.W("div",{class:"ytLandingPageViewModelFaqSectionEntry"},_.W(_.lu8,{data:n.data}))}}))}}),_.W("div",{class:"ytLandingPageViewModelFooter"},_.W(_.d,{cond:function(){var n;
return(n=M.data())==null?void 0:n.legalCopy},
then:function(n){return _.W("div",{class:"ytLandingPageViewModelFooterLegalCopy"},_.W(_.Ft,{text:function(){return n()}}))}}),_.W(_.d,{cond:function(){var n;
return(n=M.data())==null?void 0:n.actions},
then:function(n){return _.W("div",null,_.W(_.yu,{data:function(){return n()}},{flexibleActionsViewModel:function(E){return _.W(_.Sj,{data:E.data,
layout:1,className:"ytLandingPageViewModelFooterActions"})}}))}})))},"Kh");_.S5(_.U(function(M){return _.W("yt-lp-section-group-view-model",{class:"ytLpSectionGroupViewModelHost"},_.W("div",{class:"ytLpSectionGroupViewModelContainer"},_.W(_.yu,{data:function(){return M.data().sections}},{landingPageViewModel:function(q){return _.W(L4I,{data:q.data,
className:"ytLpSectionGroupViewModelSection"})}})))},"Lh"),"yt-lp-section-group-view-model",{props:{data:_.Hz}});var YXw=_.U(function(M){var q=M.data;var G=M.selectedKey;var K=M.onSelected;var n=M.groupName;var E=function(){return q().text},p=function(){return q().attributedText},y=function(){return q().subtext},Y=function(){return q().attributedSubtext},A=_.W("div",{class:"ytRadioButtonItemViewModelLabel"},_.W(_.d,{cond:E,
then:function(){return _.W("div",null,E)}}),_.W(_.d,{cond:p,
then:function(){return _.W(_.Ft,{text:p})}}),_.W(_.d,{cond:y,
then:function(){return _.W("div",{class:"ytRadioButtonItemViewModelSubText"},y)}}),_.W(_.d,{cond:Y,
then:function(){return _.W("div",{class:"ytRadioButtonItemViewModelSubText"},_.W(_.Ft,{text:Y}))}})),v=function(){if(p()){var t;
return(t=p())==null?void 0:t.content}return E()},h=function(){if(Y()){var t;
return(t=Y())==null?void 0:t.content}return y()};
M={};return _.W("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.W(_.mV,{name:n,checked:function(){return!(G==null||!G()||q().key!==(G==null?void 0:G()))},
onChange:function(t){K==null||K(t.target,q(),n==null?void 0:n())},
labelRenderable:function(){return A},
ariaLabel:function(){return h()?v()+", "+h():v()},
className:_.Hb((M.ytRadioButtonItemViewModelSubTitle=function(){return!!q().subtext},M))}))},"Mh");_.W4R=_.U(function(M){var q=M.data;var G=function(){var K;return _.wx((K=q())==null?void 0:K.rendererContext)};
M={};return _.W("content-list-item-view-model",{el:_.bm(_.CL(function(){return q().rendererContext})),
class:_.Hb("ytContentListItemViewModelHost",(M.ytContentListItemViewModelTappable=G,M)),role:function(){return G()?"listitem":void 0},
tabindex:function(){return G()?0:void 0}},_.W("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.W("div",{class:"ytContentListItemViewModelImageContainer"},_.W(_.d,{cond:function(){return q().image},
then:function(K){return _.W(_.Jj,{data:K,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.W(_.yu,{data:function(){var K;
return(K=q())==null?void 0:K.avatar}},{avatarViewModel:_.zo})),_.W("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.W("div",{class:_.Hb("ytContentListItemViewModelTitle",function(){a:{switch(q().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var K="ytContentListItemViewModelProminentTitle";
break a}K=void 0}return K})},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",{class:"ytContentListItemViewModelMetadata"},_.W(_.yu,{data:function(){return q().metadata}},{contentMetadataViewModel:function(K){return _.W(_.dp,{data:K.data,
layout:1})}})))),_.W("div",{class:"ytContentListItemViewModelActionButton"},_.W(_.yu,{data:function(){var K;
return(K=q())==null?void 0:K.actionButton}},{buttonViewModel:_.Wf,
toggleButtonViewModel:_.Dj})))},"Nh");var AnI=_.U(function(M){var q=M.data,G=function(){var n;return(n=q())==null?void 0:n.description},K=function(){var n;
return(n=q())==null?void 0:n.title};
return _.W("ytfc-youth-basic-section-header-view-model",{class:_.Hb("ytfcYouthBasicSectionHeaderViewModelHost",M.className)},_.W("div",{class:"ytfcYouthBasicSectionHeaderViewModelLeading"},_.W(_.yu,{data:function(){var n;return(n=q())==null?void 0:n.avatar}},{avatarViewModel:_.zo}),_.W(_.d,{cond:function(){var n;
return _.cO((n=q())==null?void 0:n.themedImage)},
then:function(n){return _.W(_.Jj,{data:n,alt:function(){var E,p;return(p=(E=K())==null?void 0:E.content)!=null?p:""},
className:"ytfcYouthBasicSectionHeaderViewModelImage"})}})),_.W("div",{class:"ytfcYouthBasicSectionHeaderViewModelDetails"},_.W(_.d,{cond:K,
then:function(){return _.W(_.Ft,{text:K,className:"ytfcYouthBasicSectionHeaderViewModelTitle"})}}),_.W("div",{class:"ytfcYouthBasicSectionHeaderViewModelMetadata"},_.W(_.yu,{data:function(){var n;
return(n=q())==null?void 0:n.bottomBadge}},{badgeViewModel:function(n){return _.W("div",{class:"ytfcYouthBasicSectionHeaderViewModelBadge"},_.W(_.Yl,{data:n.data}))}}),_.W(_.d,{cond:G,
then:function(){return _.W(_.Ft,{text:G,className:"ytfcYouthBasicSectionHeaderViewModelDescription"})}}))))},"Oh");var db5=_.U(function(M){var q=M.data;return _.W("ytfc-youth-section-body-view-model",{class:_.Hb("ytfcYouthSectionBodyViewModelHost",M.className)},_.W(_.yu,{data:function(){var G;return(G=q())==null?void 0:G.topContent}},{avatarStackViewModel:function(G){return _.W(_.Sf,{data:G.data,
className:"ytfcYouthSectionBodyViewModelAvatarStack"})}}),_.W(_.Ft,{text:function(){var G;
return(G=q())==null?void 0:G.description},
className:"ytfcYouthSectionBodyViewModelDescription"}))},"Ph");var vzP=_.U(function(M){var q=_.k(_.lQ(!1,void 0,"i2FDU")),G=q.next().value,K=q.next().value,n=function(){return M.data().inlineExpansionEntityKey},E=_.No(y5n,n),p=function(){if(M.isSelected!==void 0)return M.isSelected();
if(n()){var Y;return(Y=E())==null?void 0:Y.expanded}return G()};
q={};var y={};return _.W("yt-inline-expander-view-model",{class:"ytInlineExpanderViewModelHost","on:click":_.sq(function(){M.isSelected!==void 0||n()||K(!G())})},_.W("div",{class:"ytInlineExpanderViewModelHeader"},_.W(_.yu,{data:function(){return M.data().headerContent}},{youthBasicSectionHeaderViewModel:AnI}),_.W("div",{class:_.Hb("ytInlineExpanderViewModelButton",(q.ytInlineExpanderViewModelButtonExpanded=p,q))},_.W(_.Yv,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",toggleable:!0,toggled:p(),accessibilityLabel:p()?_.Ge("SHOW_LESS",void 0,"Show Less"):_.Ge("SHOW_MORE",void 0,"Show More")}},
iconName:"chevron_down"}))),_.W("div",{class:_.Hb("ytInlineExpanderViewModelBody",(y.ytInlineExpanderViewModelBodyExpanded=p,y)),"aria-hidden":function(){return!p()}},_.W("div",{class:"ytInlineExpanderViewModelBodyContent"},_.W(_.yu,{data:function(){return M.data().bodyContent}},{youthSectionBodyViewModel:db5}))))},"Qh");var hH5=new _.$k("CONTENT_SECTION_VIEW_MODEL_TOKEN");_.tgv=_.U(function(M){var q=function(){return M.data().background},G=function(){return M.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_OVERLAY"},K=function(){return M.data().trailingActionLayout==="CARD_TRAILING_ACTION_LAYOUT_INLINE_CENTER"},n=_.AL().resolve(_.WR(hH5));
return _.W("yt-card-view-model",{el:_.bm(_.CL(function(){return M.data().rendererContext})),
class:_.Hb("ytCardViewModelHost",M.className)},_.W(_.ve,{contentId:function(){return M.data().contentId}},function(){var E={};
return _.W("div",{class:_.Hb("ytCardViewModelCardViewModelInner",function(){var p;return FhM(M.data().cardStyle,(p=M.isSelected)==null?void 0:p.call(M))},function(){if(M.isSelected===void 0){var p;
a:{switch((p=M.data().cardState)==null?void 0:p.selectionState){case "CARD_SELECTION_STATE_SELECTED":p="ytCardViewModelSelected";break a}p=void 0}return p}})},_.W(_.yu,{data:q},{cinematicContainerViewModel:function(p){return _.W(_.UUl,{data:p.data})}}),_.W("div",{class:"ytCardViewModelContentWrapper"},_.W(_.d,{cond:function(){return!G()},
then:function(){var p={},y={};return _.W("div",{class:"ytCardViewModelTopContentContainer"},_.W("div",{class:_.Hb("ytCardViewModelTopContent",(p.ytCardViewModelInnerPadding=function(){return!M.data().disableTopContentPadding&&M.data().topContent},p))},_.W(_.yu,{data:function(){return M.data().topContent}},{contentListItemViewModel:function(Y){return _.W(_.W4R,{data:Y.data})},
linearLayoutViewModel:_.r0})),_.W("div",{class:_.Hb("ytCardViewModelInlineTrailingAction",(y.ytCardViewModelInlineCenterTrailingAction=K,y.ytCardViewModelInlineTrailingActionMargin=function(){return M.data().trailingAction},y))},_.W(_.yu,{data:function(){return M.data().trailingAction}},{buttonViewModel:function(Y){return _.W(_.Wf,{data:Y.data})}})))}}),_.W("div",{class:_.Hb((E.ytCardViewModelInnerPadding=function(){return!M.data().disableBodyContentPadding&&M.data().bodyContent},E))},_.W(_.yu,{data:function(){return M.data().bodyContent}},
Object.assign({},{channelAttributionViewModel:_.ApI,
contentListItemViewModel:_.W4R,descriptionPreviewViewModel:_.w0,inlineExpanderViewModel:function(p){return _.W(vzP,{data:p.data,isSelected:M.isSelected})},
linearLayoutViewModel:_.r0,listItemViewModel:_.Sy},n&&{contentSectionViewModel:n})))),_.W(_.d,{cond:function(){return G()},
then:function(){return _.W("div",{class:"ytCardViewModelOverlayTrailingAction"},_.W(_.yu,{data:function(){return M.data().trailingAction}},{buttonViewModel:function(p){return _.W(_.Wf,{data:p.data})}}))}}))}))},"Rh");var OKn=_.U(function(M){var q=M.data,G=M.onSelected,K=M.selectedKey,n=M.groupName;M=M.className;var E=_.k(_.lQ(!1,void 0,"mDtSad")),p=E.next().value,y=E.next().value,Y=function(){if(K!==void 0){var A=K();return!(!A||q().key!==A)}return p()};
E=_.sq(function(A){G?G(A.currentTarget,q(),n==null?void 0:n()):y(!p())});
return _.W("yt-selectable-item-view-model",{class:_.Hb("ytSelectableItemViewModelHost",M,"ytSelectableItemViewModelContainer"),"on:click":E,"prop:checked":Y},_.W(_.yu,{data:function(){return q().content}},{cardViewModel:function(A){return _.W(_.tgv,{data:A.data,
isSelected:Y})}}))},"Sh");_.wsE=_.U(function(M){var q=M.data;var G=M.onSelected;var K=M.selectedKey;var n=M.groupName;var E=function(){return(n==null?void 0:n())||q().key};
return _.W("yt-radio-button-group-view-model",{class:_.Hb("ytRadioButtonGroupViewModelHost",M.className)},_.W("fieldset",{class:"ytRadioButtonGroupViewModelFieldset"},_.W(_.yu,{data:function(){return q().radioButtons}},{radioButtonItemViewModel:function(p){return _.W(YXw,{data:p.data,
onSelected:G,selectedKey:K,groupName:E})},
selectableItemViewModel:function(p){return _.W(OKn,{data:p.data,onSelected:G,selectedKey:K,groupName:E})}})))},"Th");var Ccv=_.U(function(M){_.SK(function(){if(M.controlledMode()&&M.data().defaultSelected)_.T6(Error("$j"));else{var E;!M.controlledMode()&&((E=M.selected)==null?0:E.call(M))&&_.T6(Error("ak"))}});
var q=_.k(_.GM(function(){if(!M.controlledMode())return M.data().defaultSelected})),G=q.next().value,K=q.next().value,n=function(){if(!M.controlledMode())return G();
var E;return(E=M.selected)==null?void 0:E.call(M)};
return _.W("yt-checkbox-item-view-model",{class:_.Hb("ytCheckboxItemViewModelHost",M.className)},_.W(_.Sy,{data:function(){var E=M.data(),p=n();return{title:E.text,subtitle:E.subtext,superlabel:E.superlabel,isSelected:!!p,isDisabled:E.isDisabled,selectionStyle:"LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},
onTap:function(){!M.controlledMode()&&K(!G());var E,p;(p=M.onTap)==null||p.call(M,!!n(),M.data(),(E=M.groupName)==null?void 0:E.call(M))},
isCompact:M.isCompact}))},"Uh");var aSw=_.U(function(M){var q=M.data;var G=M.controlledMode;var K=M.selectedKeys;var n=M.onItemTap;var E=M.groupName;var p=function(){return(E==null?void 0:E())||q().key};
_.SK(function(){G()&&q().defaultSelectedKeys?_.T6(Error("bk")):!G()&&(K==null?0:K())&&_.T6(Error("ck"))});
M=_.k(_.GM(function(){if(!G())return q().defaultSelectedKeys}));
var y=M.next().value,Y=M.next().value,A=function(v,h,t){v=[];!G()&&h.key&&(v=HI5(h.key,y()||[]),Y(v));n==null||n(h,v,t)};
return _.W("yt-checkbox-group-view-model",{class:_.Hb("ytCheckboxGroupViewModelHost")},_.W("fieldset",{class:_.Hb("ytCheckboxGroupViewModelFieldset")},_.W(_.yu,{data:function(){return q().checkboxes}},{checkboxItemViewModel:function(v){var h=v.data;
return _.W(Ccv,{data:h,controlledMode:!0,selected:function(){var t=G()?(K==null?void 0:K())||[]:y()||[],O=h().key;return O?t.includes(O):!1},
onTap:A,groupName:p})}})))},"Vh");var va=_.U(function(M){var q=_.No(e08,_.bg(function(){var y;return(y=M.data())==null?void 0:y.noteFeedEntityKey},"")),G=_.No(A5P,_.bg(function(){var y;
return(y=M.data())==null?void 0:y.userRatingEntityKey},"")),K=_.w("enable_user_rating_web"),n=function(){var y,Y,A;
return((y=q())==null?0:y.contributorNote)?(Y=q())==null?void 0:Y.contributorNote:(A=M.data())==null?void 0:A.existingNote},E=function(){var y,Y;
return!!G()&&!!$6v((y=G())==null?void 0:y.helpfulnessValue,(Y=M.data())==null?void 0:Y.noteData)};
if(K){var p={};return _.W("yt-note-view-model",{class:_.Hb("ytNoteViewModelHostUserRating",(p.ytNoteViewModelHostUserRatingPublishedNote=function(){var y,Y,A,v;return((y=M.data())==null?void 0:(Y=y.noteData)==null?void 0:Y.isPublished)&&!((A=M.data())==null?0:(v=A.noteData)==null?0:v.isUserRatingForm)},p))},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.W(_.d,{cond:function(){var y,Y;
return(y=M.data())==null?void 0:(Y=y.noteData)==null?void 0:Y.isPinned},
then:function(){return _.W(_.np,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.W(_.d,{cond:function(){var y,Y;return(y=M.data())==null?void 0:(Y=y.noteData)==null?void 0:Y.isPublished},
then:function(){return _.W(_.np,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.W(_.yu,{data:function(){var y;
return(y=M.data())==null?void 0:y.metadata}},{contentMetadataViewModel:_.dp}),_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},function(){var y,Y;
return(Y=_.C((y=M.data())==null?void 0:y.metadata,_.Y2p))==null?void 0:Y.delimiter}),_.W(_.Ft,{text:function(){var y;
return(y=n())==null?void 0:y.publishedTimeText},
className:"ytNoteViewModelMetadataAndOverflowButtonMetadataPublishedTimeText"})),_.W(_.d,{cond:function(){var y,Y;return!((y=M.data())==null?0:(Y=y.noteData)==null?0:Y.isUserRatingForm)},
then:function(){return _.W(_.yu,{data:function(){var y,Y,A,v,h,t,O,a=!!((y=M.data())==null?0:(Y=y.noteData)==null?0:Y.isPinned);y=E();Y=(A=M.data())==null?void 0:A.noteData;A=(v=q())==null?void 0:(h=v.contributorNote)==null?void 0:h.deleteAction;v=(t=M.data())==null?void 0:t.overflowButtonNoteWithRatingOnTapOverride;t=(O=M.data())==null?void 0:O.overflowButton;return a?slg(Y,A):y?{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:v}}:t}},{buttonViewModel:function(y){return _.W(_.Wf,{data:y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})}})),_.W("div",{class:"ytNoteViewModelNoteContent"},_.W(_.Ft,{text:function(){var y;
return(y=n())==null?void 0:y.text}})),_.W(_.d,{cond:function(){var y,Y,A,v;
return!((y=M.data())==null?0:(Y=y.noteData)==null?0:Y.isPinned)&&!((A=M.data())==null?0:(v=A.noteData)==null?0:v.isUserRatingForm)},
then:function(){return _.W(_.d,{cond:E,then:function(){return _.W("div",{class:"ytNoteViewModelUserRatingContainer"},_.W(_.Ft,{text:function(){var y,Y;return $6v((y=G())==null?void 0:y.helpfulnessValue,(Y=M.data())==null?void 0:Y.noteData)},
className:"ytNoteViewModelUserRatingContainerText"}))},
else:function(){return _.W(_.yu,{data:function(){var y;return(y=M.data())==null?void 0:y.userRatingButton}},{buttonViewModel:function(y){return _.W(_.Wf,{data:y.data,
className:"ytNoteViewModelRateThisNoteButton"})}})}})}}),_.W(_.d,{cond:function(){var y,Y,A,v;
return!((y=M.data())==null?0:(Y=y.noteData)==null?0:Y.ignoreDivider)&&!((A=M.data())==null?0:(v=A.noteData)==null?0:v.isUserRatingForm)},
then:function(){return _.W("div",{class:"ytNoteViewModelDivider"},_.W(_.yu,{data:function(){return{dividerViewModel:{dividerStyle:"DIVIDER_STYLE_FULL_BLEED_THIN"}}}},{dividerViewModel:function(y){return _.W(_.ScP,{data:y.data})}}))}}))}return _.W("yt-note-view-model",{class:"ytNoteViewModelHost",
style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.W(_.d,{cond:function(){var y,Y;return(y=M.data())==null?void 0:(Y=y.noteData)==null?void 0:Y.isPinned},
then:function(){return _.W(_.np,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})},
else:function(){return _.W(_.d,{cond:function(){var y,Y;return(y=M.data())==null?void 0:(Y=y.noteData)==null?void 0:Y.isPublished},
then:function(){return _.W(_.np,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingIcon"})}})}}),_.W(_.d,{cond:function(){return K},
then:function(){return _.W(_.yu,{data:function(){var y;return(y=M.data())==null?void 0:y.metadata}},{contentMetadataViewModel:function(y){return _.W(_.dp,{data:y.data})}})}}),_.W(_.Ft,{text:function(){var y,Y;
return(y=M.data())==null?void 0:(Y=y.noteData)==null?void 0:Y.headerText}}),_.W("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataNonUserRatingDelimiter"},_.W(_.Ft,{text:function(){var y,Y;
return(y=M.data())==null?void 0:(Y=y.noteData)==null?void 0:Y.delimiter}})),_.W(_.Ft,{text:function(){var y,Y;
return(y=q())==null?void 0:(Y=y.contributorNote)==null?void 0:Y.publishedTimeText}})),_.W(_.yu,{data:function(){var y,Y,A;
return slg((y=M.data())==null?void 0:y.noteData,(Y=q())==null?void 0:(A=Y.contributorNote)==null?void 0:A.deleteAction)}},{buttonViewModel:function(y){return _.W(_.Wf,{data:y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.W("div",{class:"ytNoteViewModelNoteContent"},_.W(_.Ft,{text:function(){var y,Y;
return(y=q())==null?void 0:(Y=y.contributorNote)==null?void 0:Y.text}})))},"Wh");
va.idomCompat=!0;_.S5(_.U(function(M){var q=_.bg(function(){var Z;return(Z=M.data())==null?void 0:Z.flowStateEntityKey},""),G=_.No(_.u_,q),K=_.No(e08,_.bg(function(){var Z;
return(Z=M.data())==null?void 0:Z.noteFeedEntityKey},"")),n=_.k(_.GM(function(){var Z;
return(Z=_.C(M.data().helpfulnessValue,_.UJ))==null?void 0:Z.defaultSelectedKey})),E=n.next().value,p=n.next().value;
n=_.k(_.GM(function(){var Z,V,S;return(S=_.C((Z=_.C(M.data().helpfulnessValue,_.UJ))==null?void 0:(V=Z.radioButtons)==null?void 0:V.find(function(m){var R;return((R=_.C(m,Iag))==null?void 0:R.key)===E()}),Iag))==null?void 0:S.value}));
var y=n.next().value,Y=n.next().value;n=_.k(_.GM(function(){var Z;return(Z=_.C(M.data().helpfulReasons,QfU))==null?void 0:Z.defaultSelectedKeys}));
var A=n.next().value,v=n.next().value;n=_.k(_.GM(function(){var Z;return(Z=_.C(M.data().notHelpfulReasons,QfU))==null?void 0:Z.defaultSelectedKeys}));
var h=n.next().value,t=n.next().value,O=function(Z,V){p(V.key);Y(V.value);v([]);t([])},a=function(){var Z,V;
return((Z=y())==null?void 0:Z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_HELPFUL"||((V=y())==null?void 0:V.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"},g=function(){var Z,V;
return((Z=y())==null?void 0:Z.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_SOMEWHAT_HELPFUL"||((V=y())==null?void 0:V.noteHelpfulnessValue)==="NOTE_HELPFULNESS_VALUE_NOT_HELPFUL"},D=function(Z){M45(Z.key,A,v)},J=function(Z){M45(Z.key,h,t)};
_.SK(function(){var Z,V,S;YQI((Z=M.data())==null?void 0:(V=Z.userRatingFormSchema)==null?void 0:V.id,{isValid:function(){return!!E()},
formData:function(){var m=y(),R=Gyn(A(),_.C(M.data().helpfulReasons,QfU)),se=Gyn(h(),_.C(M.data().notHelpfulReasons,QfU));m={helpfulnessValue:m==null?void 0:m.noteHelpfulnessValue};if(R){m.helpfulReasons=[];R=_.k(R);for(var yY=R.next();!yY.done;yY=R.next()){yY=yY.value;var d$=void 0;if((d$=yY)==null?0:d$.noteHelpfulReason)d$=void 0,m.helpfulReasons.push((d$=yY)==null?void 0:d$.noteHelpfulReason)}}if(se)for(m.notHelpfulReasons=[],se=_.k(se),R=se.next();!R.done;R=se.next())if(R=R.value,yY=void 0,(yY=
R)==null?0:yY.noteNotHelpfulReason)yY=void 0,m.notHelpfulReasons.push((yY=R)==null?void 0:yY.noteNotHelpfulReason);return{userRatingFormData:m}},
submitConfig:{submitId:"SUBMIT_ID_CROWDSOURCED_CONTEXT_USER_RATING_FORM",params:(S=_.C(G(),Oxs))==null?void 0:S.submitFormParams},onSubmitResult:function(){var m,R=(m=_.C(G(),Oxs))==null?void 0:m.userRatingEntityKey,se;m={key:R,helpfulnessValue:(se=y())==null?void 0:se.noteHelpfulnessValue};R&&_.Zp(_.LL("contextNoteUserRatingEntityPayload",R,m));var yY;R=(yY=M.data())==null?void 0:yY.viewNoteFlowStepId;var d$;if((d$=K())==null||!d$.contributorNote){var cy;R=(cy=M.data())==null?void 0:cy.zeroStateFlowStepId}(yY=
Object.assign({},G()))&&R&&(yY.currentStepId=R,yY.stepIdStack=[R],_.Zp(_.LL("flowStateEntity",q(),yY)));var t4;(yY=(t4=M.data())==null?void 0:t4.ratingSubmittedSnackbarCommand)&&_.Pb(yY)},
disableDuringSubmission:!0})});
return _.W("yt-note-user-rating-view-model",{class:"ytNoteUserRatingViewModelHost"},_.W(_.yu,{data:function(){var Z=_.C(G(),Oxs);if(Z){var V;var S={noteViewModel:{metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:Z==null?void 0:(V=Z.note)==null?void 0:V.headerText}]}],delimiter:"\u2022"}},existingNote:Z.note,noteData:{isUserRatingForm:!0},noteFeedEntityKey:"",userRatingEntityKey:""}}}else S=void 0;return S}},{noteViewModel:function(Z){return _.W("div",{class:"ytNoteUserRatingViewModelNoteContainer"},
_.W(va,{data:Z.data}))}}),_.W(_.yu,{data:function(){var Z;
return(Z=M.data())==null?void 0:Z.helpfulnessValue}},{radioButtonGroupViewModel:function(Z){return _.W("div",{class:"ytNoteUserRatingViewModelHelpfulnessValue"},_.W(_.wsE,{data:Z.data,
onSelected:O,selectedKey:E}))}}),_.W(_.d,{cond:a,
then:function(){return _.W("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.W("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.W(_.Ft,{text:function(){var Z;return(Z=M.data())==null?void 0:Z.helpfulReasonQuestion}})),_.W(_.yu,{data:function(){var Z;
return(Z=M.data())==null?void 0:Z.helpfulReasons}},{checkboxGroupViewModel:function(Z){return _.W(aSw,{data:Z.data,
onItemTap:D,selectedKeys:A,controlledMode:!0})}}))}}),_.W(_.d,{cond:g,
then:function(){return _.W("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainer"},_.W("div",{class:"ytNoteUserRatingViewModelHelpfulReasonContainerTitle"},_.W(_.Ft,{text:function(){var Z;return(Z=M.data())==null?void 0:Z.notHelpfulReasonQuestion}})),_.W(_.yu,{data:function(){var Z;
return(Z=M.data())==null?void 0:Z.notHelpfulReasons}},{checkboxGroupViewModel:function(Z){return _.W(aSw,{data:Z.data,
onItemTap:J,selectedKeys:h,controlledMode:!0})}}))}}),_.W(_.d,{cond:function(){return!a()&&!g()},
then:function(){return _.W(_.yu,{data:function(){var Z;return(Z=M.data())==null?void 0:Z.helpfulNoteFeatures}},{alertBannerViewModel:function(Z){return _.W("div",{class:"ytNoteUserRatingViewModelAlertBanner"},_.W(_.FjB,{data:Z.data}))}})}}))},"Xh"),"yt-note-user-rating-view-model",{props:{data:_.Hz}});_.S5(va,"yt-note-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=_.No(e08,_.bg(function(){var G;return(G=M.data())==null?void 0:G.noteFeedEntityKey},""));
return _.W("yt-notes-wrapper-view-model",{class:_.Hb("ytNotesWrapperViewModelHost")},_.W(_.d,{cond:function(){var G,K,n;return!((G=M.data())==null||!G.existingNotes)||!((K=M.data())==null||!K.currentNote)&&!((n=q())==null||!n.contributorNote)},
then:function(){return _.W(_.dU,null,_.W(_.yu,{data:function(){var G,K,n,E;return((K=_.C((G=M.data())==null?void 0:G.currentNote,wFI))==null?0:(n=K.noteData)==null?0:n.isPublished)?(E=M.data())==null?void 0:E.currentNote:void 0}},{noteViewModel:function(G){return _.W(va,{data:G.data})}}),_.W(_.yu,{data:function(){var G;
return(G=M.data())==null?void 0:G.existingNotes}},{noteViewModel:function(G){var K=G.data;
return _.W(_.d,{cond:function(){var n,E;return(n=K())==null?void 0:(E=n.noteData)==null?void 0:E.isPublished},
then:function(){return _.W(va,{data:K})}})}}),_.W(_.yu,{data:function(){var G,K,n,E,p;
return((K=_.C((G=M.data())==null?void 0:G.currentNote,wFI))==null?0:(n=K.noteData)==null?0:n.isPublished)||(E=q())==null||!E.contributorNote?void 0:(p=M.data())==null?void 0:p.currentNote}},{noteViewModel:function(G){return _.W(va,{data:G.data})}}),_.W(_.yu,{data:function(){var G;
return(G=M.data())==null?void 0:G.existingNotes}},{noteViewModel:function(G){var K=G.data;
return _.W(_.d,{cond:function(){var n,E;return!((n=K())==null?0:(E=n.noteData)==null?0:E.isPublished)},
then:function(){return _.W(va,{data:K})}})}}))},
else:function(){return _.W(_.yu,{data:function(){var G;return(G=M.data())==null?void 0:G.zeroStateData}},{contributorZeroStateViewModel:psw})}}))},"Yh"),"yt-notes-wrapper-view-model",{props:{data:_.Hz}});var hG=_.U(function(M){var q=_.UT(M,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),G=q.label,K=q.text,n=q.placeholder,E=q.hint;M=q.rows;var p=q.overflowStyle,y=q.outline,Y=q.disabled,A=q.disableNewLines,v=q.characterLimit,h=q.validation,t=q.onInput,O=_.pI("textarea");q=_.k(_.GM(function(){return K()}));
var a=q.next().value,g=q.next().value;q=_.k(_.lQ(!1,void 0,"u9PDq"));var D=q.next().value,J=q.next().value,Z=function(){J(!0)},V=function(){J(!1)};
_.SK(function(){var bH=O.value,iH=p(),oI=a();iH==="expand-vertically"&&oI&&KoR(bH);O.value.addEventListener("focusin",Z);O.value.addEventListener("focusout",V)});
_.m_(function(){O.value.removeEventListener("focusin",Z);O.value.removeEventListener("focusout",V)});
var S=function(){var bH;return(bH=h())==null?void 0:bH.validate(a())},m=function(){return v()&&!S()&&a().length>v().maxChars},R=function(){return!!S()||m()};
q=_.sq(function(bH){if(!bH.currentTarget)return!1;bH=bH.currentTarget;g(bH.value);p()==="expand-vertically"&&KoR(bH);t==null||t(bH.value);return!0});
var se=_.sq(function(bH){A()&&bH.key==="Enter"&&bH.preventDefault();return!1}),yY=_.sq(function(){O.value.focus()}),d$=function(){return n()||G()},cy={},t4={},ay={};
return _.W("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.W("div",{class:_.Hb("ytStandardsTextareaShapeTextareaContainer",(cy.ytStandardsTextareaShapeTextareaContainerOutline=y,cy.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=Y,cy.ytStandardsTextareaShapeTextareaContainerOutlineError=R,cy)),"on:click":yY},_.W("label",{class:_.Hb("ytStandardsTextareaShapeLabel",(t4.ytStandardsTextareaShapeLabelFocused=D,t4.ytStandardsTextareaShapeLabelDisabled=Y,t4.ytStandardsTextareaShapeLabelError=
function(){return R()&&!Y()},t4.ytStandardsTextareaShapeLabelHidden=function(){return!D()&&!a()&&!!d$()},t4))},G),_.W("div",{class:_.Hb("ytStandardsTextareaShapePlaceholder",(ay.ytStandardsTextareaShapePlaceholderVisible=function(){return!D()&&!a()},ay)),
"aria-hidden":"true"},d$),_.W("textarea",{el:O,class:"ytStandardsTextareaShapeTextarea",rows:M,disabled:Y,placeholder:d$,"on:input":q,"on:keydown":se},a)),_.W(_.d,{cond:function(){return E()&&!R()},
then:function(){var bH={};return _.W("div",{class:_.Hb("ytStandardsTextareaShapeHint",(bH.ytStandardsTextareaShapeHintDisabled=Y,bH))},_.W("div",{class:"ytStandardsTextareaShapeHintHintMessage"},E))}}),_.W(_.d,{cond:S,
then:function(){return _.W(ozw,{disabled:Y},_.W("div",{class:"ytStandardsTextareaShapeErrorMessage"},S))}}),_.W(_.d,{cond:v,
then:function(bH){return _.W(_.d,{cond:m,then:function(){return _.W(ozw,{disabled:Y},_.W("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return bH().errorMessage}),_.W("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return a().length+"/"+bH().maxChars}))}})}}))},"Zh");
hG.idomCompat={callbacks:{onInput:!0}};var ozw=_.U(function(M){var q={};return _.W("div",{class:_.Hb("ytStandardsTextareaShapeError",(q.ytStandardsTextareaShapeErrorDisabled=M.disabled,q)),role:"alert"},_.W(_.np,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),M.children)},"$h");_.lSE=_.U(function(M){var q=M.data;return _.W("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.W(hG,{text:M.text,label:function(){var G;return(G=q().contentProperties)==null?void 0:G.labelText},
placeholder:function(){var G;return(G=q().contentProperties)==null?void 0:G.placeholderText},
hint:function(){var G;return(G=q().contentProperties)==null?void 0:G.hintText},
outline:function(){var G;return!((G=q().displayProperties)==null?0:G.hideBorder)},
overflowStyle:function(){var G;return((G=q().displayProperties)==null?0:G.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:M.disabled,disableNewLines:function(){var G;return(G=q().displayProperties)==null?void 0:G.disableNewLines},
onInput:M.onInput,characterLimit:M.characterLimit,validation:M.validation,rows:function(){var G;return(G=q().displayProperties)==null?void 0:G.rows}}))},"ai");_.XsM=_.U(function(M){var q=M.data;return _.W("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.W(hG,{text:M.text,label:function(){var G;return(G=q().contentProperties)==null?void 0:G.labelText},
placeholder:function(){var G;return(G=q().contentProperties)==null?void 0:G.placeholderText},
hint:function(){var G;return(G=q().contentProperties)==null?void 0:G.hintText},
outline:function(){var G;return!((G=q().displayProperties)==null?0:G.hideBorder)},
overflowStyle:function(){var G;return((G=q().displayProperties)==null?0:G.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var G;return(G=q().displayProperties)==null?void 0:G.disableNewLines},
onInput:M.onInput,characterLimit:M.characterLimit,validation:M.validation,rows:function(){var G;return(G=q().displayProperties)==null?void 0:G.rows}}))},"bi");var Pcw=_.U(function(M){var q=_.k(_.GM(function(){var d$,cy;return((d$=M.data().structuredContextNoteFormSchema)==null?0:(cy=d$.initialValues)==null?0:cy.noteBody)?M.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),G=q.next().value,K=q.next().value;
q=_.k(_.GM(function(){M.data();return!1}));
var n=q.next().value,E=q.next().value;q=_.k(_.GM(function(){M.data();return!1}));
var p=q.next().value,y=q.next().value;q=_.k(_.GM(function(){var d$,cy;return((d$=M.data().structuredContextNoteFormSchema)==null?0:(cy=d$.initialValues)==null?0:cy.timestamp)?M.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var Y=q.next().value,A=q.next().value;q=_.k(_.GM(function(){M.data();return!1}));
var v=q.next().value,h=q.next().value;q=_.k(_.GM(function(){var d$,cy;return((d$=M.data().structuredContextNoteFormSchema)==null?0:(cy=d$.initialValues)==null?0:cy.sources)?[M.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var t=q.next().value,O=q.next().value;q=_.k(_.GM(function(){M.data();return!1}));
var a=q.next().value,g=q.next().value;q=_.k(_.GM(function(){return!1}));
var D=q.next().value,J=q.next().value;_.SK(function(){var d$;_.WhI((d$=M.data().structuredContextNoteFormSchema)==null?void 0:d$.id,{isSubmitting:D,onSubmit:function(){J(!0);var cy=Wov(G(),Y(),t(),M.data()),t4=_.AL().resolve(_.vR);cy&&t4&&t4.resolveCommand(cy,{commandController:{onSuccess:function(){J(!1)}}})},
isValid:function(){return n()&&!p()&&!v()&&!a()}})});
var Z=function(d$){if(d$!==void 0&&(K(d$),!n()&&d$.length>0&&E(!0),n())){var cy=NhU(M.data());if(cy){var t4=cy.minLength;cy=cy.maxLength;t4&&d$.length<t4?y(!0):cy&&d$.length>cy?y(!0):y(!1)}}},V=function(d$){if(d$!==void 0){A(d$);
if(d$.length>0){var cy,t4,ay,bH,iH=pGU((cy=M.data())==null?void 0:(t4=cy.structuredContextNoteFormSchema)==null?void 0:(ay=t4.fieldSchemas)==null?void 0:(bH=ay.timestamp)==null?void 0:bH.validationSchema);if(iH&&(cy=iH.regex)&&!(new RegExp(cy)).test(d$)){h(!0);return}}h(!1)}},S=function(d$){if(d$!==void 0){var cy=d$.split(/[ \n]/).map(function(t4){return t4.trim()});
O(cy);if(d$.length>0)for(d$=_.k(cy),cy=d$.next();!cy.done;cy=d$.next())if(!YUI(cy.value)){g(!0);return}g(!1)}},m=function(){return{validate:function(d$){if(n()){var cy=NhU(M.data());
if(cy){var t4=cy.minLength;cy=cy.translations;if(t4&&d$.length<t4)return cy==null?void 0:cy.minLengthErrorMessage}}}}},R=function(){var d$=NhU(M.data()),cy=d$==null?void 0:d$.maxLength,t4;
d$=d$==null?void 0:(t4=d$.translations)==null?void 0:t4.maxLengthErrorMessage;if(cy&&d$)return{maxChars:cy,errorMessage:d$}},se=function(){return{validate:function(d$){if(d$){var cy,t4,ay,bH,iH=pGU((cy=M.data())==null?void 0:(t4=cy.structuredContextNoteFormSchema)==null?void 0:(ay=t4.fieldSchemas)==null?void 0:(bH=ay.timestamp)==null?void 0:bH.validationSchema);
if(iH&&(cy=iH.regex,iH=iH.translations,cy&&!(new RegExp(cy)).test(d$)))return iH==null?void 0:iH.regexErrorMessage}}}},yY=function(){return{validate:function(d$){if(d$){var cy,t4,ay,bH,iH=Lo5((cy=M.data())==null?void 0:(t4=cy.structuredContextNoteFormSchema)==null?void 0:(ay=t4.fieldSchemas)==null?void 0:(bH=ay.sources)==null?void 0:bH.validationSchema);
if(iH&&(cy=iH.translations,cy==null?0:cy.selectedErrorMessage))for(d$=d$.split(/[ \n]/).map(function(oI){return oI.trim()}),d$=_.k(d$),t4=d$.next();!t4.done;t4=d$.next())if(!YUI(t4.value))return d$=void 0,(d$=cy)==null?void 0:d$.selectedErrorMessage}}}};
return _.W("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.yu,{data:function(){var d$;return(d$=M.data())==null?void 0:d$.noteContents}},{textFormFieldViewModel:function(d$){return _.W(_.XsM,{data:d$.data,
onInput:Z,validation:m,characterLimit:R})},
textFieldViewModel:function(d$){return _.W(_.lSE,{data:d$.data,onInput:Z,validation:m,characterLimit:R})}})),_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.yu,{data:function(){var d$;
return(d$=M.data())==null?void 0:d$.noteTimestamp}},{textFormFieldViewModel:function(d$){return _.W(_.XsM,{data:d$.data,
onInput:V,validation:se})},
textFieldViewModel:function(d$){return _.W(_.lSE,{data:d$.data,onInput:V,validation:se})}})),_.W("div",{class:"ytStructuredContextNoteViewModelTextField"},_.W(_.yu,{data:function(){var d$;
return(d$=M.data())==null?void 0:d$.noteSources}},{textFormFieldViewModel:function(d$){return _.W(_.XsM,{data:d$.data,
onInput:S,validation:yY})},
textFieldViewModel:function(d$){return _.W(_.lSE,{data:d$.data,onInput:S,validation:yY})}})))},"ci");
Pcw.idomCompat=!0;_.S5(Pcw,"yt-structured-context-note-view-model",{props:{data:_.Hz}});var iKR=_.U(function(M){var q=_.k(_.GM(function(){var E;if((E=M.controlled)==null?0:E.call(M))return[];var p;return(((p=M.data())==null?void 0:p.chips)||[]).map(function(y){y=_.C(y,_.sj);if(y==null?0:y.selected)return AhI(y.chipValue)}).filter(function(y){return y!==void 0})})),G=q.next().value,K=q.next().value,n=function(E){var p=AhI(E.chipValue);
if(p!==void 0){var y;if((y=M.controlled)==null?0:y.call(M))return void M.controlled().onTap(p);E=G().includes(p)?[].concat(_.Ui(G().filter(function(A){return A!==p}))):[].concat(_.Ui(G()),[p]);
K(E);var Y;if((Y=M.uncontrolled)==null?0:Y.call(M))M.uncontrolled().onUpdate(E)}};
return _.W("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.W(_.bf,{each:function(){return M.data().chips||[]}},function(E){return _.W("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.W(_.zv$,{data:function(){return _.C(E,_.sj)},
selected:function(){var p;if(p=_.C(E,_.sj)){var y=AhI(p.chipValue);if(y!==void 0){var Y;p=((Y=M.controlled)==null?0:Y.call(M))?M.controlled().selectedValues.includes(y):G().includes(y)}else p=void 0}else p=!1;return p},
callback:n}))}))},"di");var cng=_.U(function(M){var q=M.data;var G=function(){var y;return((y=q())==null?void 0:y.flowStateKey)||""},K=_.No(_.u_,G),n=function(){var y;
return(y=_.C(K(),CGs))==null?void 0:y.chips},E=function(y){if(y!==void 0){var Y=n()||[];
Y=Y.find(function(A){return A===y})?Y.filter(function(A){return A!==y}):[].concat(_.Ui(Y),[y]);
Y=Object.assign({},K(),{feedbackFormFlowState:Object.assign({},_.C(K(),CGs),{chips:Y})});_.Zp(_.LL("flowStateEntity",G(),Y))}},p=function(){var y;
return _.C((y=q())==null?void 0:y.inputBox,aaP)};
M=_.tc(function(y){var Y=p();Y=!(Y==null?0:Y.maxChars)||y.length<=Y.maxChars;y=Object.assign({},K(),{feedbackFormFlowState:Object.assign({},_.C(K(),CGs),{detail:y}),abuseReportFlowState:Object.assign({},_.C(K(),bv),{navigationEnabled:Y})});_.Zp(_.LL("flowStateEntity",G(),y))},150);
return _.W("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.W("div",{class:"ytFeedbackFormViewModelChips"},_.W(_.yu,{data:function(){var y;return(y=q())==null?void 0:y.chipSelection}},{chipSelectionFormFieldViewModel:function(y){return _.W(iKR,{data:y.data,
controlled:function(){return{selectedValues:n()||[],onTap:E}}})}})),_.W("div",{class:"ytFeedbackFormViewModelInputBox"},_.W(hG,{text:function(){var y;
return(y=_.C(K(),CGs))==null?void 0:y.detail},
placeholder:function(){var y;return((y=p())==null?void 0:y.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var y=p();if(y&&y.maxChars)return{maxChars:y.maxChars,errorMessage:y.maxCharsExceededErrorMessage||""}},
onInput:M})),_.W("div",{class:"ytFeedbackFormViewModelFooterText"},_.W(_.Ft,{text:function(){return q().footerText}})))},"ei");
cng.idomCompat=!0;_.S5(cng,"yt-feedback-form-view-model",{props:{data:_.Hz}});var gzw=_.U(function(M){var q=M.data;var G=_.No(Lhn,function(){return q().flowStateKey||""}),K=function(){var n;
_.Pb((n=_.C(G(),bv))==null?void 0:n.navigationCommand)};
return _.W("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.W("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.W(_.yu,{data:function(){return q().cancelButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:K})}}),_.W(_.yu,{data:function(){var n;
if(q().navButton){var E=Object;var p=E.assign,y=_.C(q().navButton,_.$N),Y=((n=_.C(G(),bv))==null?0:n.navigationEnabled)?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",A,v;n=_.C((A=_.C(G(),bv))==null?void 0:A.navigationCommand,_.Cl);A=(v=_.C(n,_.q6))==null?void 0:v.url;E={buttonViewModel:p.call(E,{},y,{state:Y,iconName:A?"OPEN_IN_NEW":""})}}else E=void 0;return E}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:K})}})))},"fi");
gzw.idomCompat=!0;_.S5(gzw,"yt-report-form-bottom-bar-view-model",{props:{data:_.Hz}});var BzE=_.U(function(M){var q=M.nextStep;return _.W("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.W("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.W(_.np,{icon:function(){return q().iconName||""}})),_.W("div",null,_.W(_.Ft,{text:function(){return q().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"gi"),Qts=_.U(function(M){var q=M.data;
var G,K=(G=_.AL().resolve(_.WR(_.Qx)))==null?void 0:G(),n=_.No(_.u_,function(){return q().flowStateKey||""});
return _.W("yt-report-form-confirmation-page-view-model",{class:function(){var E;return((E=_.C(n(),bv))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.W("div",{class:function(){var E;
return((E=_.C(n(),bv))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.W(_.Jj,{data:function(){return K&&q().imageDark?q().imageDark:q().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.W("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return q().confirmationHeader}),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.W(_.Ft,{text:function(){return q().confirmationText}})),_.W("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.W(_.Ft,{text:function(){return q().lawEnforcementText}})),
_.W("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return q().whatToExpectHeader}),_.W(_.d,{cond:function(){return q().nextSteps},
then:function(E){return _.W("div",null,_.W(_.bf,{each:E},function(p){return _.W(BzE,{nextStep:p})}))}}),_.W(_.d,{cond:function(){return q().legalReportText},
then:function(E){return _.W("div",null,_.W(_.Ft,{text:E,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"hi");
Qts.idomCompat=!0;_.S5(Qts,"yt-report-form-confirmation-page-view-model",{props:{data:_.Hz}});var ISg=_.U(function(M){var q=M.data;var G=function(){var E;return((E=_.C(q().inputBox,aaP))==null?void 0:E.maxChars)||500},K=function(){return q().flowStateKey||""},n=_.No(_.u_,K);
M=_.tc(function(E){E=Object.assign({},n(),{flowFormState:{isValid:E.length<=G()},abuseReportFlowState:{userComments:E,navigationEnabled:!(E.length>G()),isReportFormDirty:!0}});_.J_().dispatch(_.hY("flowStateEntity",K(),E))},150);
_.SK(function(){var E=Object.assign({},n(),{flowFormState:{isValid:!0}});_.J_().dispatch(_.hY("flowStateEntity",K(),E))});
return _.W("yt-report-form-details-page-view-model",{class:function(){var E;return((E=_.C(n(),bv))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.W("h1",{class:function(){var E;
return((E=_.C(n(),bv))==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return q().detailsPageHeader}),_.W("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.W(_.Ft,{text:function(){return q().bodyText}})),_.W("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.W(hG,{label:function(){var E;
return((E=_.C(q().inputBox,aaP))==null?void 0:E.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var E;return{errorMessage:((E=_.C(q().inputBox,aaP))==null?void 0:E.maxCharsExceededErrorMessage)||"",maxChars:G()}},
onInput:M})))},"ii");
ISg.idomCompat=!0;_.S5(ISg,"yt-report-form-details-page-view-model",{props:{data:_.Hz}});var DbI=_.U(function(M){var q=M.data;var G=function(){return q().flowStateKey||""},K=_.No(_.u_,G),n=function(){return _.C(K(),bv)};
return _.W("yt-report-form-reason-select-page-view-model",{class:function(){var E;return((E=n())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.W("h1",{class:function(){var E;
return((E=n())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return q().pageHeader}),_.W("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.W(_.Ft,{text:function(){return q().bodyText}})),_.W("div",{class:function(){var E;
return((E=n())==null?void 0:E.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.W(_.wsE,{data:function(){return _.C(q().radioButtonGroup,_.UJ)},
onSelected:function(E,p){E=Object.assign({},K(),{abuseReportFlowState:Object.assign({},n(),{reasonKey:p.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:p.command})});_.Zp(_.LL("flowStateEntity",G(),E))},
selectedKey:function(){var E;return(E=n())==null?void 0:E.reasonKey},
groupName:"report-form-reason-select-page"})))},"ji");
DbI.idomCompat=!0;_.S5(DbI,"yt-report-form-reason-select-page-view-model",{props:{data:_.Hz}});var upg=_.U(function(M){var q=M.data;var G,K=(G=_.AL().resolve(_.WR(_.Qx)))==null?void 0:G();return _.W("yt-report-form-sign-in-page-view-model",{class:"ytReportFormSignInPageViewModelHost"},_.W("div",{class:"ytReportFormSignInPageViewModelSignInPromptImage"},_.W(_.Jj,{data:function(){return K&&q().imageDark?q().imageDark:q().image},
alt:""})),_.W("div",{class:"ytReportFormSignInPageViewModelSignInTextContent"},_.W("h1",{class:"ytReportFormSignInPageViewModelSignInPromptHeader"},function(){return q().header}),_.W(_.Ft,{text:function(){return q().text},
className:"ytReportFormSignInPageViewModelSignInPromptBody"})))},"ki");
upg.idomCompat=!0;_.S5(upg,"yt-report-form-sign-in-page-view-model",{props:{data:_.Hz}});_.Jn5=(0,_.mhL)(_.zN.talkToRecs,{talkToRecsStateSelector:function(M){return M}});_.S5(_.U(function(M){var q=M.data;var G=_.pp(_.Jn5.talkToRecsStateSelector),K=function(){return q().titleSuperscript},n=function(){return q().answersShelf},E=function(){return q().videoShelf},p=function(){var yY;
return(yY=q().textInputPlaceholder)==null?void 0:yY.content},y=function(){return q().showOpenTextInput},Y=function(){var yY;
return(yY=q().textInputValue)==null?void 0:yY.content},A=function(){return q().isMultiTurnFlow?q().resetButtonViewModel:void 0},v="",h=function(){return q().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_ALLOW_DESELECTION"?2:1};
M=_.k(_.lQ("",void 0,"EFTZDb"));var t=M.next().value,O=M.next().value;M=_.k(_.lQ(!1,void 0,"OgB5Cc"));var a=M.next().value,g=M.next().value,D=function(){return{state:a()||t()?"active":"disabled",disabled:!(a()||t())}};
_.mT(function(){if(y()){Y()&&O(Y());var yY;if(!A()&&((yY=G())==null?0:yY.stepStates)){var d$;yY=Object.keys((d$=G())==null?void 0:d$.stepStates);d$=yY[yY.length-1];var cy,t4;(d$=(cy=G().stepStates[d$])==null?void 0:(t4=cy.userQuery)==null?void 0:t4.userQuery)&&O(d$);_.Zp(_.dhI())}}});
var J=function(yY){var d$=q().onUpdateText;d$&&_.Pb(d$,{form:{userQuery:yY}});O(yY)},Z=_.tc(function(yY){J(yY.target.value.trim())},150),V=_.sq(function(yY){var d$;
v=(d$=yY.target.value)==null?void 0:d$.trim();Z(yY);return!1}),S=_.sq(function(yY){yY.key==="Enter"&&(a()||t())&&(J(yY.target.value.trim()),R());
return!1}),m=function(yY,d$){g(d$);
if(d$){if(q().isMultiTurnFlow&&!v){var cy;J((cy=yY==null?void 0:yY.text)!=null?cy:"")}q().chipSelectionMode==="TALK_TO_RECS_CHIP_SELECTION_MODE_CLICK_TO_SUBMIT"&&R()}else O(v)},R=function(){var yY=void 0,d$=_.C(q().nextButtonViewModel,_.$N),cy,t4;
if(d$==null?0:(cy=d$.loggingDirectives)==null?0:(t4=cy.clientVeSpec)==null?0:t4.uiType){var ay,bH;yY=_.$m((ay=d$.loggingDirectives)==null?void 0:(bH=ay.clientVeSpec)==null?void 0:bH.uiType)}(d$=q().onNextStepCommand)&&_.Pb(d$,{clickedVisualElement:yY})};
M=_.pI("yt-talk-to-recs-view-model");var se={};return _.W("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:M},_.W("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.W(_.yu,{data:function(){return q().topCornerButton}},{buttonViewModel:_.Wf})),_.W("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.W("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.W(_.Ft,{text:function(){return q().title}}),_.W(_.d,{cond:K,
then:function(){return _.W("sup",{class:"ytwTalkToRecsSuperScript"},_.W(_.Ft,{text:K}))}})),_.W("div",{class:"ytwTalkToRecsSubtitle"},_.W(_.Ft,{text:function(){return q().subtitle}})),_.W("div",{class:"ytwTalkToRecsResultsShelf"},_.W(_.d,{cond:n,
then:function(){return _.W(_.yu,{data:n},{chipsShelfViewModel:function(yY){return _.W("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.W(_.jy,{data:yY.data,callback:m,selectionBehavior:h}))}})}}),_.W(_.d,{cond:E,
then:function(){return _.W(_.yu,{data:E},{horizontalShelfViewModel:function(yY){return _.W("div",{class:"ytwTalkToRecsHorizontalShelfViewModel"},_.W(_.Rd,{data:yY.data,thumbnailAspectRatio:0}))}})}})),_.W("div",{class:_.Hb("ytwTalkToRecsRefinementContainer",(se.ytwTalkToRecsBottomMargin=function(){return q().isMultiTurnFlow},se))},_.W(_.d,{cond:y,
then:function(){return _.W("div",{class:"ytwTalkToRecsUserInputBox"},_.W("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:p,value:t,"on:input":V,"on:keyup":S,maxlength:200}))}}),_.W(_.yu,{data:function(){return q().isMultiTurnFlow?q().nextButtonViewModel:void 0}},{buttonViewModel:function(yY){return _.W("div",{class:"ytwTalkToRecsFlowControlButtons"},_.W(_.Wf,{data:yY.data,
buttonOverrides:D}))}}),_.W(_.yu,{data:A},{buttonViewModel:function(yY){return _.W("div",{class:"ytwTalkToRecsFlowControlButtons"},_.W(_.Wf,{data:yY.data,
onClick:function(){var d$=_.C(q().resetButtonViewModel,_.$N);J(t());(d$=d$==null?void 0:d$.onTap)&&_.Pb(d$)}}))}}))))},"mi"),"yt-talk-to-recs-view-model",{props:{data:_.Hz}});var d3I={sources:[{clientResource:{imageName:"CHECK"}}]};_.ZKI=_.U(function(M){var q=_.pI("div");M=_.UT(M,{error:void 0});var G=M.data,K=M.error,n=M.onSelected;M=_.k(_.GM(function(){return t4w(G())}));
var E=M.next().value,p=M.next().value;aev(G,function(t){p(t);var O,a,g=hSU((O=G().options)==null?void 0:(a=O[t])==null?void 0:a.value,G().type);n==null||n(g);q.value.focus()});
M=_.sq(function(){if(!G().disabled){var t=G(),O=E(),a=q.value;t.options&&(t=vds(t.options,O,t.label),_.AL().resolve(_.ZB).openSheet({viewModel:t},a))}});
var y=_.ryy(),Y=function(){return!!K()},A=function(){return!!G().disabled},v={},h={};
return _.W("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.W("div",{class:_.Hb("ytDropdownViewModelDropdownContainer",(v.ytDropdownViewModelDropdownContainerErrorBorder=Y,v.ytDropdownViewModelDropdownContainerDisabled=A,v)),"on:click":M,el:q,role:"combobox",tabindex:0,"on:keydown":y,"aria-invalid":Y,"aria-disabled":A,"aria-describedby":function(){return Y()?"dropdown-view-model-error":void 0}},_.W("div",{class:"ytDropdownViewModelText"},OYI(G,Y,E),wGU(G,E)),_.W("div",{class:_.Hb("ytDropdownViewModelChevronDown",
(h.ytDropdownViewModelChevronDownDisabled=A,h))},_.W(_.np,{icon:"CHEVRON_DOWN"}))),CdI(G,K))},"ni");_.S5(_.U(function(M){var q=M.data;var G=function(n){var E=le5(q());E.videoMetadata||(E.videoMetadata={});E.videoMetadata.sponsorshipsMetadata||(E.videoMetadata.sponsorshipsMetadata={});E.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(n)},K=function(n){var E=le5(q());
E.scheduledRedirectMetadata||(E.scheduledRedirectMetadata={});E.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(n)};
return _.W("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.W("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.W("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.W(_.Ft,{text:function(){return q().title}}),_.W(_.np,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.W(_.Ft,{text:function(){return q().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.W(_.yu,{data:function(){return q().tierChoices}},{dropdownViewModel:function(n){return _.W("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.W(_.ZKI,{data:n.data,
onSelected:G}))}}),_.W(_.yu,{data:function(){return q().startTimeChoices}},{dropdownViewModel:function(n){return _.W("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.W(_.ZKI,{data:n.data,
onSelected:K}))}}),_.W(_.Ft,{text:function(){return q().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.W("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.W(_.yu,{data:function(){return q().scheduleButton}},{panelFooterViewModel:_.dO})))},"oi"),"ytfz-schedule-fanzone-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;M=M.className===void 0?"":M.className;var G=_.No(Lhn,function(){return q().flowStateEntityKey||""}),K={};
K=_.Hb("ytFlowBottomBarViewModelFlowBottomBarButtons",(K.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},K));
var n={},E=_.Hb("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",K,(n.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},n.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},n));
n={};var p=_.Hb("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",K,(n.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},n.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},n));
K={};K=_.Hb("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(K.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},K.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},K.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return q().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
K));
M=_.Hb("ytFlowBottomBarViewModelHost",M);return _.W("yt-flow-bottom-bar-view-model",{class:M},_.W(_.d,{cond:function(){var y;return(y=q())==null?void 0:y.textSection},
then:function(y){return _.W("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.W(_.Ft,{text:y}))}}),_.W("div",{class:K},_.W(_.yu,{data:function(){return q().secondaryButton}},{buttonViewModel:function(y){return _.W(_.Wf,{data:y.data,
className:p})}}),_.W(_.yu,{data:function(){return q().primaryButton}},{buttonViewModel:function(y){return _.W(_.Wf,{data:y.data,
className:E,buttonOverrides:function(){var Y;return{disabled:!((Y=G())==null||!Y.primaryButtonDisabled)}}})}})))},"pi"),"yt-flow-bottom-bar-view-model",{props:{data:_.Hz,
className:_.xj}});var bKI="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),tG=function(){var M=_.Q.apply(this,arguments)||this;M.enableScrollingFix=!0;M.bottomBar=!1;M.fitContent=!1;return M};
_.l(tG,_.Q);_.N=tG.prototype;_.N.ready=function(){_.w("enable_pdp_icon_prefetch")&&_.L3P(_.AL().resolve(_.eZ),0,bKI)};
_.N.focus=function(M){this.topBar?_.E4(this.topBar,M):this.paperDialog.focus(M)};
_.N.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$19323_scroller&&(this.JSC$19323_scroller.dialogElement=this.paperDialog,this.JSC$19323_scroller.attached&&typeof this.JSC$19323_scroller.attached==="function"&&this.JSC$19323_scroller.attached())};
_.N.onDataChanged=function(){var M;this.fitContent=!((M=this.data)==null||!M.fitContent);var q;this.bottomBar=!((q=this.data)==null||!q.bottomBar)};
_.N.onProgressChanged=function(){var M,q,G=((q=(M=this.data)==null?void 0:M.progress)!=null?q:0)*100;this.progressElement.style.width=G+"%"};
_.N.isProgressHidden=function(){var M;return!((M=this.data)==null?0:M.progress)};
_.N.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(M){return M&&!M.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
tG.prototype.onProgressChanged=tG.prototype.onProgressChanged;tG.prototype.onDataChanged=tG.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tG.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],tG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tG.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tG.prototype,"enableScrollingFix",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tG.prototype,"bottomBar",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tG.prototype,"fitContent",void 0);_.T([_.ET("#progress"),_.r("design:type",HTMLElement)],tG.prototype,"progressElement",void 0);_.T([_.ET("#scroller"),_.r("design:type",Object)],tG.prototype,"JSC$19323_scroller",void 0);_.T([_.ET("ytd-flow-top-bar-renderer"),_.r("design:type",HTMLElement)],tG.prototype,"topBar",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tG.prototype,"onDataChanged",null);_.T([_.KT("data.progress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tG.prototype,"onProgressChanged",null);_.T([_.b({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],tG);
_.z(tG,"ytd-flow-step-renderer",function(){if(Njn!==void 0)return Njn;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Njn=M},{mode:1});var OD=function(M){this.resolveCommand=M;this.steps={}},Ub5=function(M,q){q=_.k(q||[]);
for(var G=q.next();!G.done;G=q.next()){G=G.value;var K=Object.values(G)[0],n=void 0;if((n=K)==null?0:n.stepId)M.steps[K.stepId]=G}},zHE=function(M,q){var G,K,n,E,p;
return _.L(function(y){if((G=M.state)==null||!G.currentStepId)return y.return(void 0);K=M.getCurrentStep();if(!K)return y.return(xbI(M));if(n=_.C(K,_.Dw))M.logVEScreen(n),((E=n)==null?0:E.onStepStartCommand)&&M.resolveCommand((p=n)==null?void 0:p.onStepStartCommand,{});n&&q&&(M.logFlowEvent(n,q),q.steps&&!q.steps.includes(K)&&q.steps.push(K));return y.return(K)})};
OD.prototype.back=function(){var M;(M=this.state)!=null&&M.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
OD.prototype.handleUpdateFlowCommand=function(M){M.steps&&Ub5(this,M.steps);M.entityUpdateCommand&&this.resolveCommand(M.entityUpdateCommand,{});M.flowContinuationCommand&&(M=M.flowContinuationCommand)&&(this.getFlowContinuationCommand=M);this.awaitFlowContinuation&&(M=this.getCurrentStep(),this.awaitFlowContinuation(M),this.awaitFlowContinuation=void 0)};
OD.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var xbI=function(M){return _.L(function(q){return M.getFlowContinuationCommand?q.return(new Promise(function(G){M.awaitFlowContinuation=G;M.getFlowContinuationCommand&&M.resolveCommand(M.getFlowContinuationCommand,{flow_state:M.state})})):q.return(Promise.resolve(void 0))})};
OD.prototype.getCurrentStep=function(){var M;if((M=this.state)!=null&&M.currentStepId)return this.steps[this.state.currentStepId]};
OD.prototype.logVEScreen=function(M){var q;((q=M.screenLoggingData)==null?0:q.screenVeType)&&_.aQ(_.nl(),M.screenLoggingData.screenVeType)};
OD.prototype.logFlowEvent=function(M,q){var G,K,n,E;((G=q.flowLoggingData)==null?0:G.eventNamespace)&&((K=M.flowEventData)==null?0:K.eventType)&&((n=M.flowEventData)==null?0:n.eventMetadata)&&((E=q.flowLoggingData)==null?0:E.flowType)&&(M=_.Mr(q.flowLoggingData.eventNamespace,M.flowEventData.eventType,M.flowEventData.eventMetadata),_.qr().logFlowEvent(M,q.flowLoggingData.flowType))};
_.Yd.Object.defineProperties(OD.prototype,{currentStepId:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.state)==null?void 0:M.currentStepId}},
nextStepIdOverride:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.state)!=null&&M.nextStepIdOverride)return this.state.nextStepIdOverride.reduce(function(q,G){G.key&&G.value&&(q[G.key]=G.value);return q},{})}}});var wO=function(){var M=_.Q.apply(this,arguments)||this;M.flowState=_.w("web_use_flow_state_manager")?void 0:new OD(function(q,G){G=G===void 0?{}:G;_.$A.instance.resolveCommand(q,{form:{form:G,element:M.hostElement}})});
M.JSC$19334_flowStateManager=_.w("web_use_flow_state_manager")?_.AL().resolve(_.ah):void 0;M.currentTargetId="";M.initialState=!0;M.isLoading=!1;M.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"};M.containsTalkToRecs=!1;return M};
_.l(wO,_.Q);_.N=wO.prototype;_.N.onPopupClosed=function(M){if(!M||this.hostElement===M.detail.popupRenderer){if(this.JSC$19334_flowStateManager){var q;((q=this.data)==null?0:q.flowStateEntityKey)&&this.JSC$19334_flowStateManager.flowStates.delete(this.data.flowStateEntityKey);this.currentTargetId=""}else this.flowState&&this.flowState.reset();this.currentFlowStep=this.data=void 0;this.initialState=!0}};
_.N.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"}}}};
_.N.focus=function(M){var q=this;_.g4(function(){var G=_.f_(q.hostElement).querySelector("ytd-flow-step-renderer");(G==null?0:G.topBar)?G.focus(M):q.topBar&&_.E4(q.topBar,M)},1)};
_.N.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.N.computeTopBarHidden=function(M){var q;return!((q=_.C(M,_.Dw))==null||!q.topBarOverride)};
_.N.onCurrentFlowChange=function(){if(this.JSC$19334_flowStateManager&&this.data&&this.flow){var M=nDI(this.JSC$19334_flowStateManager,this.data),q;M&&((q=this.flow)==null?0:q.currentStepId)&&(ktR(M,this.flow.currentStepId),this.initialState=!1,this.isLoading=!this.currentFlowStep)}};
_.N.observeData=function(){var M=this;if(this.JSC$19334_flowStateManager){var q=this.currentTargetId,G,K,n=(K=(G=this.data)==null?void 0:G.targetId)!=null?K:"";q!==n&&q&&EDI(this.JSC$19334_flowStateManager,q);this.currentTargetId=n;this.data&&Ntw(nDI(this.JSC$19334_flowStateManager,this.data),function(E){E&&(M.initialState=!1,M.currentFlowStep={flowStepRenderer:E},M.isLoading=!M.currentFlowStep,M.autofocusAndRefit(),M.updateContainsTalkToRecs(),M.logVEScreen(),M.logFlowEvent())})}};
_.N.dataChanged=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1){if(!M.flowState)return K.return();((q=M.data)==null?0:q.steps)&&Ub5(M.flowState,M.data.steps);if((G=M.data)==null?0:G.flowContinuationCommand){var n=M.flowState,E=M.data.flowContinuationCommand;E&&(n.getFlowContinuationCommand=E)}return K.yield(zHE(M.flowState,M.data),2)}M.currentFlowStep=K.yieldResult;_.gL(K)})};
_.N.flowChanged=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1){if(!M.flowState||!M.flow)return G.return();M.flowState.state=M.flow;M.isLoading=!0;return G.yield(zHE(M.flowState,M.data),2)}q=G.yieldResult;if(!q||M.flow.isLoading)return G.return();M.currentFlowStep=q;M.initialState=!1;M.isLoading=!1;M.autofocusAndRefit();M.updateContainsTalkToRecs();_.gL(G)})};
_.N.logVEScreen=function(){var M,q,G=(M=_.C(this.currentFlowStep,_.Dw))==null?void 0:(q=M.screenLoggingData)==null?void 0:q.screenVeType;G&&_.aQ(_.AL().resolve(_.Q$),G)};
_.N.logFlowEvent=function(){var M=_.C(this.currentFlowStep,_.Dw),q,G,K,n,E,p;(this==null?0:(q=this.data)==null?0:(G=q.flowLoggingData)==null?0:G.eventNamespace)&&(this==null?0:(K=this.data)==null?0:(n=K.flowLoggingData)==null?0:n.flowType)&&(M==null?0:(E=M.flowEventData)==null?0:E.eventType)&&(M==null?0:(p=M.flowEventData)==null?0:p.eventMetadata)&&(M=_.Mr(this.data.flowLoggingData.eventNamespace,M.flowEventData.eventType,M.flowEventData.eventMetadata),_.qr().logFlowEvent(M,this.data.flowLoggingData.flowType))};
_.N.updateContainsTalkToRecs=function(){var M,q=(M=_.C(this.currentFlowStep,_.Dw))==null?void 0:M.content;this.containsTalkToRecs=!!q&&!!_.C(q,clI)};
_.N.autofocusAndRefit=function(){var M=this,q=_.AL().resolve(_.WR(_.Nt)),G=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),K=document.querySelector("yt-report-form-confirmation-page-view-model"),n=document.querySelector("yt-report-form-details-page-view-model"),E=document.querySelector("yt-report-form-reason-select-page-view-model"),p=document.querySelector("yt-contributor-zero-state-view-model"),
y=document.querySelector("yt-structured-context-note-view-model"),Y=document.querySelector("yt-note-view-model");(!G&&q&&q.isKeyBoardInUse()||K||!G&&n||!G&&E||!G&&(p||y||Y))&&_.N8(this.hostElement);_.yb(this,function(){_.jP(M.hostElement,"yt-refit")})};
_.N.handleUpdateFlowCommand=function(M){this.flowState?this.data&&(M=_.C(M,_.sDd),M.targetId===this.data.targetId&&(M.flowContinuationCommand&&(this.data.flowContinuationCommand=M.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(M),this.autofocusAndRefit())):this.ytComponentBehavior.resolveCommand(M)};
_.N.handleFlowNextStepCommand=function(M){this.JSC$19334_flowStateManager?this.ytComponentBehavior.resolveCommand(M):this.data&&this.flow&&this.flow.key&&(M=_.C(M,_.Fx8),M.targetId===this.data.targetId&&(M=M.stepId||"",this.ytdReduxBehavior.dispatch(_.hY("flowStateEntity",this.flow.key,{currentStepId:M,stepIdStack:(this.flow.stepIdStack||[]).concat(M)}))))};
_.N.handleFlowPrevStepCommand=function(M){if(this.JSC$19334_flowStateManager)this.ytComponentBehavior.resolveCommand(M);else if(this.data&&this.flow&&this.flow.key&&(M=_.C(M,_.HhM),M.targetId===this.data.targetId)){var q=[].concat(_.Ui(this.flow.stepIdStack||[]));q.length>1?(q.pop(),this.ytdReduxBehavior.dispatch(_.hY("flowStateEntity",this.flow.key,{currentStepId:q[q.length-1],stepIdStack:q}))):M.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(M.onFirstStepCommand)}};
_.N.handleYpcCancelRecurrenceCommand=function(M){if(this.data&&this.flow&&this.flow.key&&(M=_.C(M,DhP),M.targetId===this.data.targetId&&M.endpointCommand)){var q=_.C(this.flow,uHw);q&&_.C(M.endpointCommand,_.LU9)&&(_.C(M.endpointCommand,_.LU9).feedbackData=q.surveyFeedback);this.ytComponentBehavior.resolveCommand(M.endpointCommand)}};
_.N.handlePartialUpdateFlowStateEntity=function(M){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.hY("flowStateEntity",this.flow.key,M,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
wO.prototype.flowChanged=wO.prototype.flowChanged;wO.prototype.dataChanged=wO.prototype.dataChanged;wO.prototype.observeData=wO.prototype.observeData;wO.prototype.onCurrentFlowChange=wO.prototype.onCurrentFlowChange;wO.prototype.onPopupClosed=wO.prototype.onPopupClosed;_.T([_.P(_.mr),_.r("design:type",Object)],wO.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],wO.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],wO.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],wO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],wO.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],wO.prototype,"initialState",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],wO.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Object)],wO.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],wO.prototype,"currentFlowStep",void 0);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],wO.prototype,"onPopupClosed",null);
_.T([_.B({selectorArgs:["data.flowStateEntityKey"],selector:Lhn}),_.r("design:type",Object)],wO.prototype,"flow",void 0);_.T([_.ET("ytd-flow-top-bar-renderer"),_.r("design:type",HTMLElement)],wO.prototype,"topBar",void 0);_.T([_.KT("data","flow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wO.prototype,"onCurrentFlowChange",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wO.prototype,"observeData",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],wO.prototype,"dataChanged",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],wO.prototype,"containsTalkToRecs",void 0);_.T([_.yO("flow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],wO.prototype,"flowChanged",null);_.T([_.b({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],wO);
_.mbw=_.jo()(wO,"ytd-flow-root-renderer",function(){if(Epw!==void 0)return Epw;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Epw=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var SXL;var JB=null;_.S5(_.U(function(M){return _.W("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.W("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.W(_.Ft,{text:function(){return M.data().text}}),_.W("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"qi"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.Hz}});var Tzw=_.U(function(M){var q=M.playerControlsProps;var G=M.isShortsPage;return _.W("yt-bigboard",null,_.W(_.d,{cond:function(){return q().isDragging},
then:function(){return _.W("div",{class:"ytBigboardStoryboardHost"},_.W(_.lZE,{progressBarProps:q,isShortsPage:G}))}}))},"ri");
Tzw.idomCompat=!0;_.CH={ACCOUNT_LABEL:ZY("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:ZY("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:ZY("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:ZY("AD_BADGE_HINT"),AD_BADGE_TEXT:ZY("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:ZY("ALL_CHANNELS_LABEL"),AMBIENT_MODE:ZY("AMBIENT_MODE"),AMBIENT_MODE_OFF:ZY("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:ZY("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:ZY("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:ZY("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:ZY("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:ZY("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:ZY("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:ZY("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:ZY("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:ZY("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:ZY("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:ZY("AUTO_ZOOM","Auto zoom"),BACK:ZY("BACK"),CANCEL:ZY("CANCEL"),CHANNEL_SWITCHER_LABEL:ZY("CHANNEL_SWITCHER_LABEL"),CLOSE:ZY("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:ZY("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:ZY("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:ZY("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:ZY("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:ZY("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:ZY("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:ZY("COMMENT_MODAL_CONTENT"),CONFIRM_OK:ZY("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:ZY("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:ZY("COPIED_TO_CLIPBOARD"),COPY:ZY("COPY"),COPY_DEBUG_INFO:ZY("COPY_DEBUG_INFO"),COPY_EMBED_CODE:ZY("COPY_EMBED_CODE"),
COPY_LINK_LABEL:ZY("COPY_LINK_LABEL"),COPY_VIDEO_URL:ZY("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:ZY("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:ZY("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:ZY("DELETE_FROM_DOWNLOADS"),DIALOG:ZY("DIALOG"),DONE:ZY("DONE"),DOWNLOAD:ZY("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:ZY("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:ZY("FLAG_CONFIRM"),FLAG_CONTENT:ZY("FLAG_CONTENT"),FLAG_LABEL:ZY("FLAG_LABEL"),FLAG_TITLE:ZY("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:ZY("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:ZY("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:ZY("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:ZY("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:ZY("HIDE_SEARCH_FILTERS_LABEL"),HOME:ZY("HOME","Home"),INVALID_RESPONSE_RECEIVED:ZY("INVALID_RESPONSE_RECEIVED"),LIBRARY:ZY("LIBRARY","Library"),LISTENING:ZY("LISTENING"),LOADING:ZY("LOADING"),LONG_PRESS_MIC_TO_SPEAK:ZY("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:ZY("LOOP"),MENU_DESKTOP:ZY("MENU_DESKTOP"),
MENU_EXIT:ZY("MENU_EXIT"),MENU_FEEDBACK:ZY("MENU_FEEDBACK"),MENU_HELP:ZY("MENU_HELP"),MENU_IMPRESSUM:ZY("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:ZY("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:ZY("MENU_SETTINGS"),MENU_SIGN_IN:ZY("MENU_SIGN_IN"),MENU_TITLE:ZY("MENU_TITLE"),MENU_YOUR_DATA:ZY("MENU_YOUR_DATA"),MORE_INFO:ZY("MORE_INFO"),MORE_OPTIONS:ZY("MORE_OPTIONS"),MUTE_VOLUME:ZY("MUTE_VOLUME"),NEW_PLAYLIST:ZY("NEW_PLAYLIST"),NEXT_VIDEO:ZY("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:ZY("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:ZY("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:ZY("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:ZY("NOT_FOUND_TITLE"),NO_DOWNLOADS:ZY("NO_DOWNLOADS"),NO_MIC_INPUT:ZY("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:ZY("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:ZY("OOPS_MESSAGE"),OPEN_APP:ZY("OPEN_APP"),OPEN_YOUTUBE:ZY("OPEN_YOUTUBE"),PAUSE:ZY("PAUSE"),PLAY:ZY("PLAY"),PLAYER_CAPTION:ZY("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:ZY("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:ZY("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:ZY("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:ZY("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:ZY("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:ZY("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:ZY("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:ZY("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:ZY("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:ZY("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:ZY("PLAYER_MINIMIZE"),PLAYER_NEXT:ZY("PLAYER_NEXT"),PLAYER_PAUSE:ZY("PLAYER_PAUSE"),PLAYER_PLAY:ZY("PLAYER_PLAY"),
PLAYER_PREVIOUS:ZY("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:ZY("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:ZY("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:ZY("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:ZY("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:ZY("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:ZY("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:ZY("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:ZY("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:ZY("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:ZY("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:ZY("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:ZY("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:ZY("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:ZY("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:ZY("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:ZY("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:ZY("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:ZY("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:ZY("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:ZY("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:ZY("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:ZY("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:ZY("PLAY_ALL"),PLEASE_FIX_ERRORS:ZY("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:ZY("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:ZY("PREVIOUS_VIDEO"),PRIVACY_POLICY:ZY("PRIVACY_POLICY"),RELOAD:ZY("RELOAD"),REQUIRED_LABEL:ZY("REQUIRED_LABEL"),SAVE_PLAYLIST:ZY("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:ZY("SCRUB_SLIDE_USER_EDU"),SEARCH:ZY("SEARCH","Search"),
SEARCH_APPEND_LABEL:ZY("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:ZY("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:ZY("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:ZY("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:ZY("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:ZY("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:ZY("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:ZY("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:ZY("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:ZY("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:ZY("SEEK_SLIDER"),SETTINGS_LABEL:ZY("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:ZY("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:ZY("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:ZY("SHOW_LESS"),SHOW_MORE:ZY("SHOW_MORE"),SHOW_PLAYER_CONTROLS:ZY("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:ZY("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:ZY("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:ZY("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:ZY("SIGN_IN_ON_WEB"),STABLE_VOLUME:ZY("STABLE_VOLUME"),STABLE_VOLUME_OFF:ZY("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:ZY("STABLE_VOLUME_ON"),STATS_FOR_NERDS:ZY("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:ZY("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:ZY("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:ZY("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:ZY("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:ZY("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:ZY("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:ZY("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:ZY("TIMESTAMP_SECONDS"),TOGGLE_OFF:ZY("TOGGLE_OFF"),TOGGLE_ON:ZY("TOGGLE_ON"),TRENDING:ZY("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:ZY("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:ZY("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:ZY("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:ZY("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:ZY("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:ZY("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:ZY("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:ZY("VIDEO_LINK_LABEL")};var rnL=_.U(function(M){var q=M.playerApi;M=_.pI("button",function(K){_.wS(K,36843)});
var G=ZY("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.W("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.W("button",{el:M,class:"ytPlayerControlsJumpForwardButtonButton",title:G,"aria-label":G,"on:click":_.sq(function(){_.Cr(36843);q&&q().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.W("span",null,_.W(_.np,{icon:"FAST_FORWARD"}))))},"si");var jtM=_.U(function(M){var q=M.appApi;M=_.pI("button",function(K){_.wS(K,62946)});
var G=ZY("OPEN_IN_MINIPLAYER");return _.W("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.W("button",{el:M,class:"ytMiniplayerButtonButton",title:G,"aria-label":G,"on:click":_.sq(function(){_.Cr(62946);var K,n;(n=(K=q()).openInMiniplayer)==null||n.call(K);return!1})},_.W(_.np,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"ti");var VgM=_.U(function(M){var q=M.playerApi;M=_.pI("button",function(E){_.wS(E,142812)});
var G=_.k(_.lQ(!1,void 0,"eOMRAb")),K=G.next().value,n=G.next().value;G=function(){return ZY("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(K()?1:2)})};
return _.W("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.W("button",{el:M,class:"ytPlaybackSpeedButtonButton",title:G,"aria-label":G,"on:click":_.sq(function(){_.Cr(142812);if(q){var E=q(),p=K();E.setPlaybackRate(p?1:2);n(!K())}return!1})},_.W("span",null,_.W(_.np,{icon:function(){return K()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"ui");var RHE=_.U(function(M){var q=M.title;var G=M.ariaLabel;var K=M.icon;var n=M.command;var E=M.visualElementId;M=_.pI("button",function(p){E&&_.wS(p,E())});
return _.W("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.W("button",{el:M,class:"ytdThumbnailOverlayButtonButton",title:q,"aria-label":G,"on:click":_.sq(function(){E&&_.Cr(E());n&&_.AL().resolve(_.vR).resolveCommand(n())})},_.W(_.np,{icon:K})))},"vi");var iv="";var fSU=_.U(function(M){var q=M.playerControlsProps,G=M.onClickFn;M=_.gY(function(){var E=q(),p=-1;E.captionsAvailable&&(p=E.captionsEnabled?1:0);return p},void 0,"MZ0Wqe");
var K=_.gY(function(){var E=q();return E.captionsAvailable?_.Ge(E.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.Ge("CLOSED_CAPTIONS_DISABLED")},void 0,"ymFqJe"),n=_.gY(function(){var E=q();
E=E.captionsAvailable?E.captionsEnabled:void 0;return E},void 0,"fhuQRe");
return _.W("yt-closed-captions-toggle-button",null,_.W(_.pUI,{captionIconType:M,ariaLabel:K,ariaPressed:n,onClick:function(E){var p=q();if(p.captionsAvailable){var y=p.playerApi;if(y){var Y=p.playerApi;if(Y){var A=iv;if(A){Y=Y.getOption("captions","track");var v;iv=(v=Y?Y.displayName:null)!=null?v:A}else _.OJ(Y)?(A=_.l0i(Y),iv=A.length?(v=d6w(A))?v.displayName:A[0].displayName:""):iv=""}vIs(y);_.w("mweb_disable_set_state_captions_killswitch")&&p.setState({captionsEnabled:!p.captionsEnabled})}}var h,
t;(t=(h=p.appApi).showCaptionsToggleToast)==null||t.call(h,p);G==null||G(E)},
isOverlay:!0}))},"wi");var F4s=_.U(function(M){var q=M.data;return _.W("yt-premiere-trailer-badge",{class:"premiereTrailerBadgeHost"},_.W(_.VT,{data:function(){return{type:17,text:_.zOe(q().label)}}}))},"xi");var HKE=_.U(function(M){var q=_.Hb("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return M.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return M.size()==="small"?M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
M.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.W("animated-seek-arrows",{class:_.Hb("ytPlayerControlsAnimatedSeekArrowsHost")},_.W("span",{class:q}),_.W("span",{class:q}),_.W("span",{class:q}))},"yi");
HKE.idomCompat=!0;var eHv=_.U(function(){var M=_.Ge("PLAYER_SECONDS",{seconds_placeholder:"30"}),q=_.k(_.lQ(!1,void 0,"iRJu8c")),G=q.next().value,K=q.next().value,n=_.k(_.lQ(!1,void 0,"MPnizf"));q=n.next().value;var E=n.next().value;n={};var p=_.Hb("jumpForwardOverlayOverlay",(n.jumpForwardOverlayOverlayHidden=q,n));_.SK(function(){var y=null,Y=null,A=function(){y!==null&&_.AM().cancelJob(y);Y!==null&&_.AM().cancelJob(Y);E(!0);K(!0);_.RM(_.AM(),function(){E(!1)});
y=_.RM(_.AM(),function(){E(!0);Y=_.RM(_.AM(),function(){K(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",A);_.m_(function(){window.removeEventListener("jump-forward-clicked",A)})});
return _.W("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.W(_.d,{cond:G,then:function(){return _.W("div",{class:p},_.W(HKE,{direction:1,size:"large"}),_.W("div",null,M))}}))},"zi");var $bI=_.CH.MUTE_VOLUME,srg=_.CH.UNMUTE_VOLUME,Mlv=_.U(function(M){var q=M.muteIconType;var G=M.onClick;var K=M.useOutlineIcon;var n=M.useDelhiIcons;M=_.pI("button",function(y){_.wS(y,28662)});
var E=function(){var y=q(),Y=K==null?void 0:K(),A=n==null?void 0:n(),v="",h="";switch(y){case -1:case 0:v=Y?"VOLUME_OFF":A?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";h=srg;break;case 1:v=Y?"VOLUME_UP_OUTLINE":A?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";h=$bI;break;case 2:v=Y?"VOLUME_DOWN_OUTLINE":A?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";h=$bI;break;default:_.F2(y)}return{iconName:v,ariaLabel:h}},p=function(){return E().ariaLabel};
return _.W("ytm-mute-button",{class:"ytmMuteButtonHost"},_.W("button",{el:M,class:"ytmMuteButtonButton",title:p,"aria-label":p,"on:click":_.sq(function(y){_.Cr(28662);G==null||G(y);return!1})},_.W("span",null,_.W(_.np,{icon:function(){return E().iconName}}))))},"Ai");var qp8=_.U(function(M){var q=M.volumeProps;var G=M.onClickFn;var K=M.useOutlineIcon;var n=M.useDelhiIcons;return _.W("yt-mute-toggle-button",null,_.W(Mlv,{muteIconType:function(){var E=q();return E.volumeMuted||E.volume===0?0:E.volume>50?1:2},
onClick:function(E){var p=q().playerApi;p&&(p.isMuted()?p.unMute():p.mute(!1));G==null||G(E)},
useOutlineIcon:function(){return!(K==null||!K())},
useDelhiIcons:function(){return!(n==null||!n())}}))},"Bi");
qp8.idomCompat=!0;var GuI=_.U(function(M){var q=M.data;var G=_.pI("ytm-paid-content-overlay-renderer");return _.W("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:G,"on:animationend":_.sq(function(){G.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.W(_.kv,{command:function(){return q().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.W(_.d,{cond:function(){var K;return(K=q().icon)==null?void 0:K.iconType},
then:function(){return _.W("span",null,_.W(_.np,{icon:function(){var K;return(K=q().icon)==null?void 0:K.iconType}}))}}),_.W("div",{class:"ytmPaidContentOverlayText"},_.W(_.Ft,{text:function(){return q().text}})),_.W(_.d,{cond:function(){return q().navigationEndpoint},
then:function(){return _.W(_.np,{icon:"CHEVRON_RIGHT"})}})))},"Ci");
GuI.idomCompat=!0;var zSg=[].concat(_.Ui([{register:function(M){var q=HYP(M),G;(G=M().playerApi)==null||G.addEventListener("onVolumeChange",q);return function(){}}},
{register:function(M){var q=eSI(M);M=M().playerApi;M==null||M.addEventListener("captionschanged",q);M==null||M.addEventListener("captionssettingschanged",q);M==null||M.addEventListener("onCaptionsTrackListChanged",q);return function(){}}},
{register:function(M){if(!_.w("mweb_screenreader_accessible_player"))return function(){};
var q=$3P(M),G=document.querySelector("video");G==null||G.addEventListener("touchend",q);return function(){G==null||G.removeEventListener("touchend",q)}}},
{register:function(M){if(!_.w("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var q=$3P(M),G=document.querySelector("video");G==null||G.addEventListener("focus",q);return function(){G==null||G.removeEventListener("focus",q)}}}]),[{register:function(M){var q=V4M(M),G;
(G=M().playerApi)==null||G.addEventListener("onStateChange",q);return function(){}}},
{register:function(M){var q=RS8(M),G;(G=M().playerApi)==null||G.addEventListener("onPlaybackRateChange",q);return function(){}}},
{register:function(M){var q=fes(M),G;(G=M().playerApi)==null||G.addEventListener("onVideoDataChange",q);return function(){}}},
{register:function(M){var q=FoP(M),G,K;(G=M())==null||(K=G.playerApi)==null||K.addEventListener("onVideoProgress",q);return function(){}}}]);var Kag=_.U(function(M){var q=M.data;var G=function(){return _.Ge("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+q().playbackRate})};
return _.W(_.d,{cond:function(){return q().playbackRate&&q().playbackRate!==1},
then:function(){return _.W("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.W("div",{class:"ytPlaybackRateOverlayOverlay"},_.W(HKE,{direction:1,size:"small"}),_.W("div",{class:"ytPlaybackRateOverlayLabel"},G)))}})},"Ei");var nUL=_.U(function(M){var q=M.data;return _.W("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.W(_.d,{cond:function(){var G,K=(G=q())==null?void 0:G.playerResponse,n;return K==null?void 0:(n=K.paidContentOverlay)==null?void 0:n.paidContentOverlayRenderer},
then:function(G){return _.W(GuI,{data:G})}}))},"Gi"),EU5=_.U(function(M){var q=M.props;
var G=M.data;var K=M.options;var n=function(){var A,v,h,t;return(A=G())==null?void 0:(v=A.playerResponse)==null?void 0:(h=v.playerConfig)==null?void 0:(t=h.inlinePlaybackConfig)==null?void 0:t.showAudioControls},E=function(){var A,v;
if(n()&&((A=K())==null?void 0:(v=A.additionalButton)==null?void 0:v.button)!==void 0){var h,t,O;A=(h=G())==null?void 0:(t=h.playerApi)==null?void 0:(O=t.getSize())==null?void 0:O.height;if(!(A===void 0||A<180)){var a,g;return(a=K())==null?void 0:(g=a.additionalButton)==null?void 0:g.button}}},p=function(){var A,v;
return(A=K())==null?void 0:(v=A.additionalButton)==null?void 0:v.thumbnailOverlayButtonRenderers},y=function(){var A,v;
return(A=K())==null?void 0:(v=A.additionalButton)==null?void 0:v.thumbnailOverlayButtonViewModels},Y=function(){var A=[_.W(qp8,{volumeProps:q}),
_.W(fSU,{playerControlsProps:q})];E()===1&&A.push(_.W(rnL,{playerApi:function(){return q().playerApi}}));
E()===2&&A.push(_.W(jtM,{appApi:function(){return q().appApi}}));
E()===3&&A.push(_.W(VgM,{playerApi:function(){return q().playerApi}}));
var v=p();if(E()===4&&v){v=_.k(v);for(var h=v.next(),t={};!h.done;t={tooltip$jscomp$2:void 0,ariaLabel$jscomp$19:void 0,icon$jscomp$50:void 0,command$jscomp$596:void 0},h=v.next()){h=h.value;t.tooltip$jscomp$2=h.tooltip;var O=void 0,a=void 0;t.ariaLabel$jscomp$19=((O=h.accessibility)==null?void 0:(a=O.accessibilityData)==null?void 0:a.label)||t.tooltip$jscomp$2;O=void 0;t.icon$jscomp$50=(O=h.icon)==null?void 0:O.iconType;t.command$jscomp$596=h.command;t.tooltip$jscomp$2&&t.ariaLabel$jscomp$19&&t.icon$jscomp$50&&
A.push(_.W(RHE,{title:function(g){return function(){return g.tooltip$jscomp$2}}(t),
ariaLabel:function(g){return function(){return g.ariaLabel$jscomp$19}}(t),
icon:function(g){return function(){return g.icon$jscomp$50}}(t),
command:function(g){return function(){return g.command$jscomp$596}}(t)}))}}v=y();
if(E()===4&&v)for(v=_.k(v),h=v.next(),t={};!h.done;t={tooltip$jscomp$3:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$51:void 0,command$jscomp$597:void 0,trackingParamsVeType:void 0},h=v.next())h=h.value,t.tooltip$jscomp$3=h.title,t.ariaLabel$jscomp$20=h.accessibilityText||t.tooltip$jscomp$3,t.icon$jscomp$51=h.iconName,t.command$jscomp$597=_.aM(h.onTap),a=O=void 0,t.trackingParamsVeType=((O=h.loggingDirectives)==null?0:O.trackingParams)?(a=ixw(_.ew(h.loggingDirectives.trackingParams)))==null?void 0:
_.Au(a,2):void 0,t.tooltip$jscomp$3&&t.ariaLabel$jscomp$20&&t.icon$jscomp$51&&A.push(_.W(RHE,{title:function(g){return function(){return g.tooltip$jscomp$3}}(t),
ariaLabel:function(g){return function(){return g.ariaLabel$jscomp$20}}(t),
icon:function(g){return function(){return g.icon$jscomp$51}}(t),
command:function(g){return function(){return g.command$jscomp$597}}(t),
visualElementId:function(g){return function(){return g.trackingParamsVeType}}(t)}));
return A};
return _.W(_.d,{cond:n,then:function(){return _.W("div",{class:"ytInlinePlayerControlsTopRightControls"},_.W(_.bf,{each:Y},function(A){return _.W("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.W("div",{class:"ytInlinePlayerControlsButtonIcon"},A))}))}})},"Hi"),pE8=_.U(function(M){var q=M.props;
var G=M.data;var K=M.options;M={};M=_.Hb("ytInlinePlayerControlsBottomRightControls",(M.ytInlinePlayerControlsBottomRightControlsHidden=function(){var n;return MPL(G(),K())&&((n=K())==null?void 0:n.insetProgressBar)&&(q().isHovering||q().isDragging)},M));
return _.W("div",{class:M},_.W(N25,{data:G}),_.W(_.d,{cond:function(){var n;return!((n=K())==null?0:n.hideTimeDisplay)},
then:function(){return _.W(kuP,{props:q,data:G})}}))},"Ii"),N25=_.U(function(M){var q=M.data;
return _.W(_.yu,{data:function(){var G;return U3n((G=q())==null?void 0:G.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:F4s})},"Ji"),kuP=_.U(function(M){var q=M.props;
var G=M.data;return _.W(_.d,{cond:function(){return q().isLive},
then:function(){return _.W(yK8,{props:q,data:G})},
else:function(){return _.W(LaP,{props:q,data:G})}})},"Ki"),LaP=_.U(function(M){var q=M.props;
var G=M.data;var K=_.gY(function(){var n;return x3s((n=G())==null?void 0:n.thumbnailOverlays)},void 0,"cxM54");
return _.W("div",{class:_.Hb("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.CH.PLAYER_TIME_ELAPSED+" "+_.jFu(q().playedTime)}},_.W(_.VT,{data:function(){var n=_.jFu(q().videoDuration-q().playedTime);
return Object.assign({},{type:17,text:n},K())}}))},"Li"),YpL=_.U(function(M){M=M.badgeShapeData;
return _.W("div",{class:_.Hb("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.W(_.VT,{data:M}))},"Mi"),yK8=_.U(function(M){var q=M.data;
M=_.gY(function(){if(_.w("use_thumbnail_overlay_time_status_renderer_for_live_badge")){var G,K;return(G=q())==null?void 0:(K=G.thumbnailOverlays)==null?void 0:K.find(function(n){return n.thumbnailOverlayTimeStatusRenderer||n.thumbnailOverlayBadgeViewModel})}},void 0,"MJfDhd");
return _.W(_.d,{cond:M,then:function(G){return _.W(_.yu,{data:G},{thumbnailOverlayTimeStatusRenderer:function(K){var n=K.data;K=_.gY(function(){return _.QaH(n(),0)},void 0,"qFhnic");
return _.W(YpL,{badgeShapeData:K})},
thumbnailOverlayBadgeViewModel:function(K){return _.W(_.OZB,{data:K.data})}})},
else:function(){var G={type:18,text:_.CH.PLAYER_LIVE_LABEL,icon:"LIVE"};return _.W(YpL,{badgeShapeData:function(){return G}})}})},"Ni"),WaL=_.U(function(M){var q=M.props;
var G=M.data;var K=M.options;return _.W(_.B8M,{progressBarProps:q,config:function(){var n,E=_.C((n=G())==null?void 0:n.multiMarkersPlayerBar,_.ZRS),p;n=((p=K())==null?0:p.insetProgressBar)?2:1;var y;p=(y=K())==null?void 0:y.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:n,chapterData:E,isInlinePlayback:!0,doSeekOnClick:p,playheadDotBehavior:p?1:0}}})},"Oi");_.S5(_.U(function(M){var q=M.data;var G=M.appApi;var K=M.options;var n=jln(q,sfg(G));M={};G={};return _.W("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.W("div",{class:_.Hb("ytInlinePlayerControlsDarkenedOverlay",(M.ytInlinePlayerControlsDarkenedOverlayShow=function(){return n().isHovering},M))}),_.W(eHv,null),_.W(Kag,{data:n}),_.W(nUL,{data:q}),_.W(Tzw,{playerControlsProps:n,
isShortsPage:!1}),_.W("div",{class:_.Hb((G.ytInlinePlayerControlsControlsHidden=function(){return n().isDragging},G))},_.W(EU5,{props:n,
data:q,options:K}),_.W(pE8,{props:n,data:q,options:K})),_.W(_.d,{cond:function(){return MPL(q(),K())},
then:function(){return _.W(WaL,{props:n,data:q,options:K})}}))},"Fi"),"yt-inline-player-controls",{props:{data:_.Hz,
appApi:_.xj,options:_.Hz}});var aV=function(){var M=_.Q.apply(this,arguments)||this;M.opts=null;M.playerControlsData=null;M.playerControlsAppApi={openInMiniplayer:function(){M.openInMiniplayer()}};
M.playerControlsOptions={};M.noAnimation=!1;M.playbackIntentTriggered=!1;M.positionData=null;M.hidden=!0;M.active=!1;M.playing=!1;M.videoPreviewDataIndex=0;M.JSC$19378_playerPromise=null;M.player=null;M.enableAudioControls=!1;M.hasBeenUnmuted=!1;M.captionsHaveBeenTurnedOff=!1;M.JSC$19378_playerEvents=new Map;M.videoPreviewFetchRequest=null;M.scheduledPreviewEndJobId=null;M.JSC$19378_preventProgressSaveTimer=null;M.watchEndpointStartTimeUpdaterInterval=null;M.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};M.windowOnBlurFn=function(){M.deactivate()};
return M};
_.l(aV,_.Q);_.N=aV.prototype;
_.N.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"}}}};
_.N.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$19378_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19378_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$19378_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$19378_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.qs(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.qs(this,this.onScroll))};
_.N.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.qs(this,this.onScroll))};
_.N.onPageTypeChange=function(){this.deactivate()};
_.N.onWindowResized=function(){this.deactivate()};
_.N.onCaptionsChanged=function(M){M=!!M.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!M);this.setCaptionSize()};
_.N.setCaptionSize=function(){var M;if(this.active&&!this.captionsHaveBeenTurnedOff&&((M=this.player)==null?0:M.getCaptionWindowContainerId())){var q;(q=this.player)==null||q.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.N.currentPageAllowed=function(){return!this.isWatchPage};
_.N.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData||!_.w("web_imp_horizontal_oob_fix_killswitch")&&this.isOutOfBounds(this.positionData))return!1;var M=this.positionData,q=M.initialTopPosition,G=M.initialHorizontalPosition;_.sT(this.hostElement,{"--ytd-video-preview-translate-left":M.finalHorizontalPosition-G+"px","--ytd-video-preview-translate-top":M.finalTopPosition-q+"px","--ytd-video-preview-original-top-position":q+
"px","--ytd-video-preview-original-horizontal-position":G+"px","--ytd-video-preview-initial-scale":"scale("+M.initialScale+")","--ytd-video-preview-width":M.videoPreviewWidth+"px","--ytd-video-preview-height":M.videoPreviewHeight+"px"});return!0};
_.N.isOutOfBounds=function(M){var q=M.initialHorizontalPosition+12;M=q+M.videoPreviewWidth>window.innerWidth;return q<0||this.ytdGuideStateAwareBehavior.guidePersistentAndVisible&&q<260||this.ytdGuideStateAwareBehavior.miniGuideVisible&&q<72||M};
_.N.handleOpenVideoPreviewAction=function(M){var q=this,G;return _.L(function(K){if(!q.currentPageAllowed())return K.return(0);q.opts=M;return(G=q.alignVideoPreviewForAnimation(M.thumbnail))?K.return(q.activate()):K.return(0)})};
_.N.onMouseLeave=function(M){var q,G;(q=this.opts)==null||(G=q.mouseleaveCallback)==null||G.call(q);this.shouldDeactivateOnMouseLeave(M)&&this.deactivate()};
_.N.onScroll=function(){var M,q;((M=this.opts)==null?0:M.isAutoplay)&&((q=this.opts)==null?0:q.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.N.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.r8.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.N.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.N.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",aV.JSC$19377_DEFAULT_CLICK_LOCATION_BEHAVIOR,aV.JSC$19377_CLICK_LOCATION_ID_MAP)};
_.N.shouldDeactivateOnMouseLeave=function(M){M=M.relatedTarget;if(!M)return!0;var q;return(q=this.opts)!=null&&q.mediaRenderer?!_.Fw(this.opts.mediaRenderer).contains(M):!0};
_.N.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.N.onPlaybackStart=function(){var M=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$19378_preventProgressSaveTimer=
_.RM(_.r8,function(){M.resetPreventProgressSaveTimer()},1E4);
var q;if((q=this.opts)==null?0:q.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.RM(_.r8,function(){M.hasMultipleVideoPreviews()?M.startPlaybackForNextVideo():M.deactivate()},this.opts.videoPreviewDurationMs);
var G;this.player.setGlobalCrop(((G=this.opts)==null?0:G.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.N.getRoundedCornersSize=function(){var M;if((M=this.opts)==null?0:M.roundedCornersSize){var q;return(q=this.opts)==null?void 0:q.roundedCornersSize}var G;if((G=this.opts)==null?0:G.enableRounding){var K;if(((K=this.opts)==null?void 0:K.thumbnailSize)==="small")return 1;var n;if(((n=this.opts)==null?void 0:n.thumbnailSize)==="medium")return 2;var E;if(((E=this.opts)==null?void 0:E.thumbnailSize)==="large")return 3}return _.w("web_imp_inset_progress_bar")?3:0};
_.N.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.N.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.N.onMediaContainerClick=function(M){this.isShortcutClick(M)||(this.navigateToWatch(M),M.preventDefault(),M.stopPropagation())};
_.N.activate=function(){var M=this,q,G,K,n,E,p,y,Y,A;return _.L(function(v){switch(v.nextAddress){case 1:if(!M.currentPageAllowed())return v.return(0);G=(q=M.videoPreviewData)==null?void 0:q.inlinePlaybackEndpoint;K=_.QZ.instance;if(!G||!K)return v.return(0);M.playbackIntentTriggered=!0;((n=M.opts)==null?0:n.mediaRenderer)&&((E=M.opts)==null||!E.isAutoplay)&&uGs(M.opts.mediaRenderer,function(){M.deactivate()});
_.yb(M,function(){M.revealPreviewUi()});
p={};_.w("enable_unknown_lact_fix_on_html5")&&(_.AL().resolve(_.Lp),p.lact=_.Ap());M.videoPreviewFetchRequest=chE(K,M.getInlinePlaybackRequestData(M.videoPreviewData),p);_.Cv(v,2);return v.yield(M.videoPreviewFetchRequest,4);case 4:y=v.yieldResult;if(((Y=y)==null?void 0:(A=Y.playabilityStatus)==null?void 0:A.status)==="OK")return v.return(M.handlePlayerResponse(y));throw Error("ek");case 2:_.i5(v),M.deactivate();case 3:return v.return(1)}})};
_.N.getInlinePlaybackRequestData=function(M){var q,G=_.w("web_imp_player_mute_params")?((q=this.opts)==null?void 0:q.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:M.inlinePlaybackEndpoint,startPlaybackInMutedState:G}};
_.N.handlePlayerResponse=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h,t,O;return _.L(function(a){if(a.nextAddress==1){G=q.getInlinePlaybackVideoId();if(!(((K=M)==null?0:(n=K.videoDetails)==null?0:n.videoId)&&q.currentPageAllowed()&&q.playbackIntentTriggered&&q.opts&&G))return q.deactivate(),a.return(0);if(M.videoDetails.videoId!==G)return a.return(0);q.enableAudioControls=!!((E=M.playerConfig)==null?0:(p=E.inlinePlaybackConfig)==null?0:p.showAudioControls);M.trackingParams=q.getInlinePlaybackTrackingParams();
if(!q.inlinePlayer)return a.return(0);y={};if(A=_.C((Y=q.videoPreviewData)==null?void 0:Y.inlinePlaybackEndpoint,_.Jl))y.watch_endpoint=A;if(q.videoPreviewData){var g,D=(g=_.C(q.videoPreviewData.inlinePlaybackEndpoint,_.Jl))==null?void 0:g.startTimeSeconds;D!==void 0&&(M.playerConfig||(M.playerConfig={}),M.playerConfig.playbackStartConfig||(M.playerConfig.playbackStartConfig={}),M.playerConfig.playbackStartConfig.startPosition||(M.playerConfig.playbackStartConfig.startPosition={}),M.playerConfig.playbackStartConfig.startSeconds=
D,M.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(D*1E3))}q.inlinePlayer.loadVideoWithPlayerResponse(M,y);if(q.JSC$19378_playerPromise)return a.jumpTo(2);q.JSC$19378_playerPromise=q.inlinePlayer.getPlayerPromise();return a.yield(q.JSC$19378_playerPromise,3)}a.nextAddress!=2&&(v=a.yieldResult,v.setInlinePreview(!0),h=!_.w("web_imp_theater_bugfix"),v.setSizeStyle(!1,h),q.ytPlayerListenerBehavior.listenToPlayerEvents(v,q.JSC$19378_playerEvents),q.player=v,_.jP(q.hostElement,
"player-api-ready"));((t=q.opts)==null?0:t.showPlayerControls)&&q.videoPreviewData&&q.player&&(q.playerControlsData={playerResponse:M,isInlinePlayback:!0,thumbnailOverlays:q.videoPreviewData.thumbnailOverlays,playerApi:q.player},q.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!q.unroundCornersForPlayback,additionalButton:q.getAdditionalButtonType(q.videoPreviewData.thumbnailOverlays),hideTimeDisplay:(O=q.opts)==null?void 0:O.hideTimeDisplay});return a.return(2)})};
_.N.revealPreviewUi=function(){var M=this;this.playbackIntentTriggered&&_.dny(this,function(){M.hasThumbnailPositionChangedSinceTriggered()||(M.updateActiveState(!0),M.noAnimation=!1)})};
_.N.hasThumbnailPositionChangedSinceTriggered=function(){var M=this.positionData,q=this.getThumbnailPositionData();return(M==null?void 0:M.initialTopPosition)!==(q==null?void 0:q.initialTopPosition)||(M==null?void 0:M.initialHorizontalPosition)!==(q==null?void 0:q.initialHorizontalPosition)};
_.N.getThumbnailPositionData=function(){var M,q;if((q=this.opts)==null||!q.thumbnail)return null;q=this.opts.thumbnail;var G=((M=this.opts)==null?0:M.cropPlayerToFillThumbnailHorizontally)?!1:!0;var K=q.getBoundingClientRect();M=K.width;q=K.height;var n=K.top+window.scrollY;K=K.left+window.scrollX;var E=G?Math.ceil(M):M;G=G?Math.ceil(q):q;var p=M/E;M={initialScale:p,initialTopPosition:n-12*p,finalTopPosition:n-12-(G-q)/2,initialHorizontalPosition:K-(12+(E-M)/2),finalHorizontalPosition:K-12-(E-M)/
2,videoPreviewWidth:E,videoPreviewHeight:G};return M};
_.N.updateActiveState=function(M){this.active=M;this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:M}))};
_.N.stopPlayer=function(M){M=M.resetWatchEndpointStartTime===void 0?!1:M.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(M)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.r8.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.N.deactivate=function(M){M=M===void 0?{}:M;M=M.resetWatchEndpointStartTime===void 0?!1:M.resetWatchEndpointStartTime;JB&&(JB.disconnect(),JB=null);this.stopPlayer({resetWatchEndpointStartTime:M});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.N.isValidThumbnailOverlayButton=function(M,q){M=M.thumbnailOverlayButtonRenderer;var G;return!!M&&!!M.tooltip&&!((G=M.icon)==null||!G.iconType)&&q.includes(M.icon.iconType)};
_.N.isValidThumbnailOverlayButtonViewModel=function(M,q){var G;M=_.C((G=M.thumbnailOverlayButtonViewModel)==null?void 0:G.overlayButton,_.$N);return!!M&&!!M.title&&!!M.iconName&&q.includes(M.iconName)};
_.N.getAdditionalButtonType=function(M){var q=this;if(_.w("web_imp_fastforward_button"))return{button:1};if(_.w("web_imp_miniplayer_button"))return{button:2};if(_.w("web_imp_playback_speed_button"))return{button:3};var G=["BOX_STACK_3"],K=(M||[]).filter(function(E){return q.isValidThumbnailOverlayButton(E,G)}).map(function(E){return E.thumbnailOverlayButtonRenderer});
if(K.length)return{button:4,thumbnailOverlayButtonRenderers:K};var n=["BOX_STACK_3"];M=(M||[]).filter(function(E){return q.isValidThumbnailOverlayButtonViewModel(E,n)}).map(function(E){return _.C(E.thumbnailOverlayButtonViewModel.overlayButton,_.$N)});
if(M.length)return{button:4,thumbnailOverlayButtonViewModels:M}};
_.N.allowCaptions=function(){var M;return!((M=this.opts)==null?0:M.forceCaptionsOff)};
_.N.allowUnmuting=function(){var M;return this.enableAudioControls&&!((M=this.opts)==null?0:M.forceMutedVolume)};
_.N.beginStartTimeUpdater=function(){var M=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.XN(function(){M.updateWatchEndpointStartTime()},1E3)};
_.N.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.N.resetPreventProgressSaveTimer=function(){this.JSC$19378_preventProgressSaveTimer!==null&&(_.r8.cancelJob(this.JSC$19378_preventProgressSaveTimer),this.JSC$19378_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.N.updateWatchEndpointStartTime=function(M){var q=this.videoPreviewData;if(this.player&&q!=null&&q.inlinePlaybackEndpoint&&!this.JSC$19378_preventProgressSaveTimer){M=M?0:Math.floor(this.player.getCurrentTime());var G=_.C(q.navigationEndpoint,_.Jl);G&&(G.startTimeSeconds=M);if(q=_.C(q.inlinePlaybackEndpoint,_.Jl))q.startTimeSeconds=M}};
_.N.isShortcutClick=function(M){return!!M&&(M.ctrlKey||M.shiftKey||M.metaKey)};
_.N.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.N.openInMiniplayer=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1){G=(q=M.videoPreviewData)==null?void 0:q.navigationEndpoint;if(!G)return K.return();_.Bg().lockupActivation=!0;return K.yield(_.Byd(_.AL().resolve(_.lq),G),2)}_.Bg().userActivation=!0;_.gL(K)})};
_.N.navigateToWatch=function(M){var q,G=(q=this.videoPreviewData)==null?void 0:q.navigationEndpoint;if(G){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(G,M,!0);else{var K;_.w("web_thumbnail_to_watch_transition")&&((K=this.opts)==null?0:K.thumbnail)&&_.i22(_.AL().resolve(_.ix),this.opts.thumbnail);_.jP(this.hostElement,"yt-navigate",{endpoint:G})}this.deactivate()}};
_.N.getInlinePlaybackVideoId=function(){var M,q;return(q=_.C((M=this.videoPreviewData)==null?void 0:M.inlinePlaybackEndpoint,_.Jl))==null?void 0:q.videoId};
_.N.getInlinePlaybackTrackingParams=function(){var M,q;return(M=this.videoPreviewData)==null?void 0:(q=M.inlinePlaybackEndpoint)==null?void 0:q.clickTrackingParams};
_.N.hasMultipleVideoPreviews=function(){var M;return!!(((M=this.opts)==null?0:M.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.N.startPlaybackForNextVideo=function(){var M;(M=this.opts)!=null&&M.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())};
_.Yd.Object.defineProperties(aV.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.opts)==null?0:M.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.opts)==null||!M.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 M;if(Array.isArray((M=this.opts)==null?void 0:M.videoPreviewData)){var q;return(q=this.opts)==null?void 0:q.videoPreviewData[this.videoPreviewDataIndex]}var G;return(G=this.opts)==null?void 0:G.videoPreviewData}}});
aV.prototype.onIsAdsVideoChange=aV.prototype.onIsAdsVideoChange;aV.prototype.onInlinePreviewIsEnabledChange=aV.prototype.onInlinePreviewIsEnabledChange;aV.prototype.optsChanged=aV.prototype.optsChanged;aV.prototype.onMouseLeave=aV.prototype.onMouseLeave;aV.JSC$19377_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);aV.JSC$19377_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"}];
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],aV.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],aV.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],aV.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],aV.prototype,"componentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],aV.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.NJ.YtSparklesClickLocationBehavior),_.r("design:type",Object)],aV.prototype,"ytSparklesClickLocationBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],aV.prototype,"opts",void 0);
_.T([_.B(),_.r("design:type",Object)],aV.prototype,"playerControlsData",void 0);_.T([_.B(),_.r("design:type",Object)],aV.prototype,"playerControlsAppApi",void 0);_.T([_.B(),_.r("design:type",Object)],aV.prototype,"playerControlsOptions",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],aV.prototype,"noAnimation",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],aV.prototype,"hidden",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],aV.prototype,"active",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],aV.prototype,"playing",void 0);_.T([_.B({selector:_.u$$}),_.r("design:type",Boolean)],aV.prototype,"inlinePreviewIsEnabled",void 0);_.T([_.B(),_.r("design:type",String)],aV.prototype,"pagePath",void 0);_.T([_.B({selector:_.QGy}),_.r("design:type",Boolean)],aV.prototype,"isWatchPage",void 0);
_.T([_.c("videoPreviewData"),_.r("design:type",Object),_.r("design:paramtypes",[])],aV.prototype,"thumbnailData",null);_.T([_.c("opts","active"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aV.prototype,"hidePlayerControls",null);_.T([_.c("opts"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aV.prototype,"isAdsVideo",null);
_.T([_.c("opts"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aV.prototype,"roundedCornersSmall",null);_.T([_.c("opts"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aV.prototype,"roundedCornersMedium",null);_.T([_.c("opts"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aV.prototype,"roundedCornersLarge",null);
_.T([_.c("opts"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aV.prototype,"unroundCornersForPlayback",null);_.T([_.c("opts","videoPreviewDataIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],aV.prototype,"videoPreviewData",null);_.T([_.B(),_.r("design:type",Object)],aV.prototype,"videoPreviewDataIndex",void 0);_.T([_.ET("#inline-player"),_.r("design:type",Object)],aV.prototype,"inlinePlayer",void 0);
_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[MouseEvent]),_.r("design:returntype")],aV.prototype,"onMouseLeave",null);_.T([_.yO("opts"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aV.prototype,"optsChanged",null);_.T([_.yO("inlinePreviewIsEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aV.prototype,"onInlinePreviewIsEnabledChange",null);
_.T([_.KT("isAdsVideo"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aV.prototype,"onIsAdsVideoChange",null);_.T([_.b({is:"ytd-video-preview",disableElementRegistration:!0})],aV);
_.z(aV,"ytd-video-preview",function(){if(SXL!==void 0)return SXL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return SXL=M},{mode:2});
}catch(e){_._DumpException(e)}
try{
var NcG,kiA,pXW;NcG=function(M){return _.w("kevlar_watch_cinematics_invisible")||M.fullscreen&&_.w("kevlar_watch_cinematics_invisible_in_fullscreen")||M.theater&&!M.fullscreen&&_.w("kevlar_watch_cinematics_invisible_in_theater")};
kiA=function(){var M=document.createElement("canvas"),q=M.getContext("2d");if(!q)throw Error("No");_.Dl(M,{position:"absolute",width:"100%",height:"100%"});return{element:M,context:q}};
pXW=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.w("kevlar_watch_cinematics_css_blur")};
_.yu9=function(M,q,G){return Math.abs(M-q)<=(G||1E-6)};
_.LvG=function(M,q){return M==q?!0:M&&q?M.width==q.width&&M.height==q.height:!1};_.YKk=new _.e0("notificationActionRenderer");var WvW=function(M){var q=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.sp;this.element.addEventListener("load",function(){q.loaded=!0;q.resolver.resolve(q.element)});
this.element.addEventListener("error",function(){q.failed=!0});
this.element.src=M};var AuL=function(M,q){this.image=M;this.frame=q};
AuL.prototype.drawToCanvas=function(M,q){var G=this.frame.width/this.frame.columns,K=this.frame.height/this.frame.rows,n=q.offsetX,E=q.offsetY;NcG(q)?(M.fillStyle=q.fullscreen?"#000":"#0f0f0f",M.fillRect(n,E,(q==null?void 0:q.width)||G,(q==null?void 0:q.height)||K)):M.drawImage(this.image,this.frame.column*G,this.frame.row*K,G,K,n,E,(q==null?void 0:q.width)||G,(q==null?void 0:q.height)||K)};
var dya=function(M){this.color=M};
dya.prototype.drawToCanvas=function(M,q){var G=q.offsetX,K=q.offsetY,n=q.width,E=q.height;M.fillStyle=NcG(q)?q.fullscreen?"#000":"#0f0f0f":this.color;M.fillRect(G,K,n,E)};var AF=function(M,q){_.z0.call(this);this.playerApi=q;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.cc(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();vaC(this,M);hkC(this);this.update()};
_.l(AF,_.z0);AF.prototype.addEventListeners=function(){var M=this,q=function(){M.update()},G=function(n){M.paused||(n.type==="newdata"&&(M.mosaics.clear(),tAv(M),dy(M)),hkC(M),M.update())},K=function(){M.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",q);this.playerApi.addEventListener("onVideoDataChange",G);this.playerApi.addEventListener("onStateChange",K);this.addOnDisposeCallback(function(){M.playerApi.removeEventListener("onVideoProgress",q);M.playerApi.removeEventListener("onVideoDataChange",G);M.playerApi.removeEventListener("onStateChange",K)})};
var vaC=function(M,q){M.cinematicContainerRenderer!==q&&(M.cinematicContainerRenderer=q,tAv(M),dy(M),M.colorStoreUpdateJobId=_.r8.addLowPriorityJob(function(){var G;if((G=M.cinematicContainerRenderer.colorStore)!=null&&G.sampledColors){G=Infinity;for(var K=_.k(M.cinematicContainerRenderer.colorStore.sampledColors),n=K.next();!n.done;n=K.next()){n=n.value;var E=Number(n.key);E!==0&&E<G&&(G=E);E=_.C_(n.value);M.colorStore.set(n.key,E)}M.colorStoreTimeInterval=G}}))},tAv=function(M){M.colorStoreUpdateJobId&&
(_.r8.cancelJob(M.colorStoreUpdateJobId),M.colorStoreUpdateJobId=void 0);
M.colorStore.clear();M.currentStoryboardColor=void 0},OSA=function(M,q){var G;
return(G=M.getStoryboardFrame(q))==null?void 0:G.url};
AF.prototype.onPlayerStateChange=function(){this.update()};
AF.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var hkC=function(M){var q=M.getStoryboardFrame(0);q&&(q=new _.cc(q.width/q.columns,q.height/q.rows),_.LvG(M.currentStoryboardSize,q)||(M.currentStoryboardSize=q,M.publish("STORYBOARD_SIZE_CHANGED",M.currentStoryboardSize)))},wXG=function(M,q){M.currentStoryboardIndex=q;
M.pendingStoryboardIndex=NaN;q=M.getStoryboardFrame(M.currentStoryboardIndex);M.currentStoryboard=new AuL(M.mosaics.get(q.url).element,q);M.publish("STORYBOARD_CHANGED",M.currentStoryboard);M.lastUpdateTime=(0,_.d8)()};
AF.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var dy=function(M){M.currentStoryboardIndex=NaN;M.pendingStoryboardIndex=NaN;M.currentStoryboard&&(M.currentStoryboard=void 0,M.publish("STORYBOARD_CHANGED",void 0));M.lastUpdateTime=NaN};
AF.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)dy(this);else{var M=this.playerApi.getPlayerState(1);if(M===-1||M===5||M===0)dy(this);else if(isNaN(this.lastUpdateTime)||!((0,_.d8)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(M=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){M=""+Math.round(M*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var q=this.colorStore.get(M);q?q!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=q,this.currentStoryboard=new dya(q),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.d8)()):(_.j1(new _.bj("Could not find color for timestamp: "+M,this.cinematicContainerRenderer)),dy(this))}else dy(this);else CIt(this,M)}};
var CIt=function(M,q){var G=M.getStoryboardFrameIndex(q);if(G!==M.currentStoryboardIndex&&G!==M.pendingStoryboardIndex){q=OSA(M,G);var K=M.mosaics.get(q);K?K.loaded&&wXG(M,G):(M.pendingStoryboardIndex=G,G=new WvW(q),M.mosaics.set(q,G),G.resolver.promise.then(function(){if(!M.isDisposed()&&!M.paused&&!isNaN(M.pendingStoryboardIndex)){var n=OSA(M,M.pendingStoryboardIndex);if(n){var E;(E=M.mosaics.get(n))!=null&&E.loaded&&wXG(M,M.pendingStoryboardIndex)}else dy(M)}}))}};
AF.prototype.getStoryboardFrameIndex=function(M){var q=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(M,q)};
AF.prototype.getStoryboardFrame=function(M){var q=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,G,K;return((K=(G=this.playerApi).getStoryboardFrame)==null?void 0:K.call(G,M,q))||null};
AF.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var hF=function(M,q,G,K){K=K===void 0?!1:K;_.uI.call(this);this.cinematicContainerRenderer=q;this.playerApi=G;this.theater=this.fullscreen=!1;var n;this.ambientLightThemeEnabled=!K&&!!(q==null?0:(n=q.config)==null?0:n.enableInLightTheme);this.ambientFullscreenEnabled=K&&_.w("web_cinematic_fullscreen");this.ambientTheaterModeEnabled=K&&_.w("web_cinematic_theater_mode");this.container=document.createElement("div");M.appendChild(this.container);var E;if(_.w("web_cinematic_theater_mode")||_.w("web_cinematic_fullscreen")||
(q==null?0:(E=q.config)==null?0:E.enableInLightTheme))this.ambientV2Container=document.createElement("div"),this.container.appendChild(this.ambientV2Container);aGC(this);M=this.ambientV2Container||this.container;this.backCanvas=kiA();this.frontCanvas=kiA();M.appendChild(this.backCanvas.element);M.appendChild(this.frontCanvas.element);this.storyboardManager=new AF(q,this.playerApi);_.oE(this,this.storyboardManager);this.addEventListeners();oaG(this)?lGA(this,100+vK(this)*3*2,100+vK(this)*3*2):XXe(this);
PIv(this,this.storyboardManager.currentStoryboard)};
_.l(hF,_.uI);var aGC=function(M){M.ambientV2Container?iS9(M):(_.Dl(M.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+cuy(M)+", "+gaC(M)+")"}),pXW()&&_.Dl(M.container,"filter","blur("+_.tL("cinematic_watch_css_filter_blur_strength",40)+"px)"))},iS9=function(M){if(M.ambientV2Container){var q=M.playerApi.getVideoAspectRatio();
_.Dl(M.container,{"aspect-ratio":""+q,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.Dl(M.ambientV2Container,{"aspect-ratio":""+q,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+cuy(M)+", "+gaC(M)+")"});pXW()&&_.Dl(M.ambientV2Container,"filter","blur("+_.tL("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
hF.prototype.setFullscreen=function(M,q){this.fullscreen=M;this.theater=!!q;aGC(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled||this.ambientTheaterModeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),M=this.storyboardManager.currentStoryboard,BcC(this),M&&QEA(this,M)};
hF.prototype.addEventListeners=function(){var M=this,q=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(n){PIv(M,n)}),G=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){XXe(M)});
this.addOnDisposeCallback(function(){M.storyboardManager.unsubscribeByKey(q);M.storyboardManager.unsubscribeByKey(G)});
if(this.ambientV2Container){var K=function(){iS9(M)};
this.playerApi.addEventListener("onVideoDataChange",K);this.addOnDisposeCallback(function(){M.playerApi.removeEventListener("onVideoDataChange",K)})}};
var XXe=function(M){if(!oaG(M)){var q=M.storyboardManager.currentStoryboardSize;isNaN(q.width)||isNaN(q.height)||lGA(M,Number(q.width)+vK(M)*3*2,Number(q.height)+vK(M)*3*2)}},lGA=function(M,q,G){M.backCanvas.element.width=q;
M.backCanvas.element.height=G;M.frontCanvas.element.width=q;M.frontCanvas.element.height=G},oaG=function(M){return M.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},PIv=function(M,q,G){G=G===void 0?!1:G;
var K=M.frontCanvas.element.getAnimations()[0];K?(K.pause(),M.backCanvas.context.globalAlpha=Number(getComputedStyle(M.frontCanvas.element).opacity),M.frontCanvas.element.style.opacity="0",K.finish()):M.backCanvas.context.globalAlpha=1;M.backCanvas.context.drawImage(M.frontCanvas.element,0,0,M.backCanvas.element.width,M.backCanvas.element.height);BcC(M);q&&QEA(M,q);q=q?M.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.tL("cinematic_watch_fade_out_duration",500);K=_.tL("cinematic_watch_transition_frame_rate")/
1E3;var n={};K&&(n={easing:"steps("+Math.round(q*K)+")"});(G===void 0?0:G)||M.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:q,iterations:1},n));M.frontCanvas.element.style.opacity="1"},BcC=function(M){var q=M.ambientLightThemeEnabled||M.ambientTheaterModeEnabled,G=M.ambientLightThemeEnabled||M.ambientFullscreenEnabled;
M.frontCanvas.context.fillStyle=M.theater&&q||M.fullscreen&&G?"#000":"#0f0f0f";pXW()||(M.frontCanvas.context.filter="blur(0)");M.frontCanvas.context.fillRect(0,0,M.frontCanvas.element.width,M.frontCanvas.element.height)},QEA=function(M,q){pXW()||(M.frontCanvas.context.filter="blur("+vK(M)+"px)");
M.frontCanvas.context.globalAlpha=M.fullscreen&&M.ambientFullscreenEnabled||M.theater&&M.ambientTheaterModeEnabled?_.tL("cinematic_watch_effect_letterbox_opacity",.4):_.tL("cinematic_watch_effect_opacity",.4);var G={offsetX:vK(M)*3,offsetY:vK(M)*3,theater:M.theater,fullscreen:M.fullscreen};oaG(M)&&(G.width=100,G.height=100);q.drawToCanvas(M.frontCanvas.context,G);M.frontCanvas.context.globalAlpha=1},vK=function(M){var q;
return(q=M.cinematicContainerRenderer.config.blurStrength)!=null?q:5},cuy=function(M){var q,G;
if((M.fullscreen||M.theater)&&((q=M.cinematicContainerRenderer.config)==null?0:(G=q.watchFullscreenConfig)==null?0:G.colorSourceWidthMultiplier))return M.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var K;return(K=M.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?K:M.cinematicContainerRenderer.config.colorSourceSizeMultiplier},gaC=function(M){var q,G;
if((M.fullscreen||M.theater)&&((q=M.cinematicContainerRenderer.config)==null?0:(G=q.watchFullscreenConfig)==null?0:G.colorSourceHeightMultiplier))return M.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var K;return(K=M.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?K:M.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
hF.prototype.disposeInternal=function(){_.uI.prototype.disposeInternal.call(this);this.container.remove()};
hF.prototype.clear=function(){PIv(this,void 0,!0)};
hF.prototype.pause=function(){this.storyboardManager.pause()};var IGA;IGA=_.hc(function(){var M,q,G=!((q=(M=document.createElement("canvas")).getContext)==null||!q.call(M,"2d")),K;M=!((K=CSS)==null||!K.supports("filter: blur(0)"));K=!!Element.prototype.animate&&!!Element.prototype.getAnimations;var n;return G&&M&&K&&!((n=CSS)==null||!n.supports("aspect-ratio: 1 / 1"))});
_.tF=function(M,q){_.z0.call(this);this.container=M;this.playerApi=q;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=Dy9(this);this.update()};
_.l(_.tF,_.z0);_.uDy=function(M){var q=document.documentElement.hasAttribute("dark");M.isDarkModeEnabled=q;M.update()};
_.Juy=function(M,q){M.settingEnabled=q;M.update()};
_.tF.prototype.setFullscreen=function(M,q){this.fullscreen=M;this.theater=!!q;this.update()};
_.ZS3=function(M,q){M.cinematicContainerRenderer=q;M.cinematicContainerRenderer&&(M.cinematicsVe=_.$m(M.isShorts()?227858:159022),_.oQ(_.nl(),M.cinematicsVe),M.loggingClientData={watchCinematicContainerData:{presentationStyle:M.cinematicContainerRenderer.presentationStyle}});M.update()};
_.tF.prototype.isShorts=function(){var M,q;return((M=this.cinematicContainerRenderer)==null?void 0:(q=M.config)==null?void 0:q.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.tF.prototype.isAllowed=function(){var M;if(M=IGA()){var q,G,K;M=((G=this.cinematicContainerRenderer)==null?void 0:G.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((K=this.cinematicContainerRenderer)==null||!K.colorStore)||((q=this.cinematicContainerRenderer)==null?void 0:q.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(M)if(_.w("web_cinematics_pausing")){var n,E;M=this.isDarkModeEnabled||!!((n=this.cinematicContainerRenderer)==
null?0:(E=n.config)==null?0:E.enableInLightTheme)}else{var p,y;n=!!((p=this.cinematicContainerRenderer)==null?0:(y=p.config)==null?0:y.enableInLightTheme)&&(_.R9("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);M=this.isDarkModeEnabled||n}if(p=M){var Y,A;p=!((A=(Y=this.prefersReducedMotionQuery)==null?void 0:Y.matches)!=null&&A)}return p};
_.bSL=function(M){(M=M.currentCinematicEffect)!=null&&(M=M.storyboardManager,M.paused=!1,hkC(M),M.update())};
_.tF.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var Dy9=function(M){if(!_.w("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var q=window.matchMedia("(prefers-reduced-motion: reduce)"),G=function(){M.update()};
q.addListener(G);M.addOnDisposeCallback(function(){q.removeListener(G)});
return q}};
_.tF.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var M=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new hF(this.container,M,this.playerApi,this.isDarkModeEnabled),_.oE(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var q=this.currentCinematicEffect;q.cinematicContainerRenderer!==
M&&(q.cinematicContainerRenderer=M,vaC(q.storyboardManager,M),aGC(q));M=_.El();_.Ng(0,194,!0);M.save();M=_.Cx();this.cinematicsVe&&M&&_.uO(M,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(M=_.Cx(),this.cinematicsVe&&M&&_.J2(M,[this.cinematicsVe],!1,this.loggingClientData),_.ka(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Yd.Object.defineProperties(_.tF.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var D_A;var uQe;_.h_({_template:function(){if(uQe!==void 0)return uQe;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=
M.content,G=q.insertBefore;D_A===void 0&&(D_A=document.createElement("template"));var K=D_A;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return uQe=M},
is:"tp-yt-iron-pages",behaviors:[_.uz,_.IO],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var Qv9;_.ICe=function(){if(_.w("kevlar_home_skeleton")&&!Qv9){var M=document.querySelector("#home-page-skeleton");M&&(_.oJ("hgcr"),_.cX(M),Qv9=!0)}};
Qv9=!1;_.$i=new _.e0("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var L5L,W5C,dMG,vgA,hwA,tR3,OnG,wIC,CPA,ogC,PPC,cEW,Bwv,inA,lUW,XIt,DMW,uvG,JE3;L5L=function(M,q,G,K){var n=!1,E={contentId:void 0,contentType:"video"};q=_.k(Object.entries(q));for(var p=q.next();!p.done;p=q.next()){var y=_.k(p.value);p=y.next().value;y=y.next().value;M.includes(p)&&!G.has(y)?(E.contentId=y,G.add(y),n=!0):p==="contentType"?y==="LOCKUP_CONTENT_TYPE_PLAYLIST"&&(E.contentType="playlist"):typeof y==="object"&&y!==null&&L5L(M,y,G,K)}n&&K.push(E)};
_.YLk=function(M,q,G){q=q===void 0?5:q;if(q!==0){var K=typeof M==="function"?M():document.querySelector(M);K?(G==null?0:G.enableSmartFocus)?_.juy(K):K.focus():setTimeout(function(){_.YLk(M,q-1,G)},500)}};
W5C=function(M){return String.raw.apply(String,[{raw:M}].concat(_.Ui(_.rW.apply(1,arguments).map(function(q){return q instanceof Array?q.join(""):q}))))};
dMG=function(M){var q=_.rW.apply(1,arguments),G=q.length;if(!Array.isArray(M)||!Array.isArray(M.raw)||M.length!==M.raw.length||!_.ZGv&&M===M.raw||!(_.ZGv&&!_.bGI||_.DC(M))||G+1!==M.length)throw new TypeError("$");return new AEa(Object.freeze({strings:Object.freeze(M),args:Object.freeze(q)}))};
vgA=function(M){return _.jxy(_.rbD(M&16777215))<.5};
hwA=function(M,q,G){var K=G.minimumRowsOfVideosBetweenSections===void 0?1:G.minimumRowsOfVideosBetweenSections;return M<(G.minimumRowsOfVideosAtStart===void 0?2:G.minimumRowsOfVideosAtStart)||q!==null&&M-q<=K?!1:!0};
tR3=function(M,q){var G=0,K=0;M=_.k(M);for(var n=M.next();!n.done;n=M.next()){var E=n.value;if(E.richItemRenderer)E.richItemRenderer.rowIndex=K,E.richItemRenderer.colIndex=G++,G===q&&(G=0,K++);else if(E.richGroupRenderer&&E.richGroupRenderer.numColumns!==void 0)E.richGroupRenderer.rowIndex=K,E.richGroupRenderer.colIndex=G,G+=E.richGroupRenderer.numColumns,G===q&&(G=0,K++);else if(E.richSectionRenderer){var p=n=void 0;if(E=_.C((n=E)==null?void 0:(p=n.richSectionRenderer)==null?void 0:p.content,_.hnJ))E.rowIndex=
K++}}};
OnG=function(M,q){var G=q.contentElement;q=q.rendererToTagNameMap;if(G&&q&&q.size!==0){for(var K=new Map,n=_.k(G.children),E=n.next();!E.done;E=n.next()){E=E.value;var p=E.tagName.toLowerCase(),y=K.get(p);y||(y=[],K.set(p,y));y.push(E)}if(K.size!==0)for(n=Math.min(M.length,G.children.length),E=new Map,p=0;p<n;p++){y=Object.keys(M[p])[0];y=q.get(y);if(!y)break;var Y=E.get(y);Y===void 0&&(Y=0,E.set(y,Y));var A=K.get(y);if(!A||Y>=A.length)break;E.set(y,Y+1);y=A[Y];Y=G.children[p];Y!==y&&(_.zE=!0,_.mY.set(y,
!0),G.insertBefore(y,Y),_.mY.delete(y),_.zE=!1)}}};
wIC=function(M,q,G,K,n,E,p){K=K===void 0?{}:K;if(!M||!M.length)return{orderedContent:[]};M=M.slice();var y=[],Y=[];n=null;for(var A=0,v=function(V){Y.sort(function(R,se){return se.skippedOnRow-R.skippedOnRow});
for(var S,m=(S=Y.shift())==null?void 0:S.content;m;)!m.richSectionRenderer&&V||y.push(m),S=void 0,m=(S=Y.shift())==null?void 0:S.content},h=void 0,t=void 0,O=new Set;M.length>0||Y.length>0;){for(var a=[],g=q;g>0;){var D=void 0,J=void 0,Z=(J=Y[0]&&Y[0].skippedOnRow<A?(D=Y.shift())==null?void 0:D.content:void 0)!=null?J:M.shift();
if(!Z)break;if(Z.richItemRenderer)D=Z.richItemRenderer.targetId,J=void 0,D&&((J=p)==null?0:J.has(D))&&(J=p.get(D),!h||J&&J.timestamp>h.timestamp)&&(h=J,t&&O.add(t),t=D),a.push(Z),g--;else if(Z.richGroupRenderer&&Z.richGroupRenderer.numColumns!==void 0)Z.richGroupRenderer.numColumns<=g?(a.push(Z),g-=Z.richGroupRenderer.numColumns):g===q&&Z.richGroupRenderer.numColumns>q?(a.push({richGroupRenderer:Object.assign({},Z.richGroupRenderer,{numColumns:q})}),g=0):Y.push({content:Z,skippedOnRow:A});else if(Z.richSectionRenderer)if(hwA(A,
n,K)&&g===q){y.push(Z);n=A;A++;continue}else Y.push({content:Z,skippedOnRow:A});else if(Z.continuationItemRenderer){v(!0);y.push(Z);g=0;break}if(g===0)y.push.apply(y,_.Ui(a));else if(!G&&M.length===0){v(!1);y.push.apply(y,_.Ui(a));g=0;break}}A++;h&&(y.push(h.content),A++);t=h=void 0}tR3(y,q);E&&OnG(y,E);return{orderedContent:y,pinnedContentNotShownTargetIds:O}};
CPA=function(){return _.rW.apply(0,arguments).flat().filter(function(M){return M}).join(";")};
ogC=function(){return dMG(aUG,CPA.apply(null,_.Ui(_.rW.apply(0,arguments))))};
PPC=function(M,q){if(q){var G=_.zw().getState().entities.flowStateEntity,K=lUW(M),n=[q];K&&K!==q&&n.push(K);var E=!0,p;if(G&&M.flowStateEntityKey&&((p=G[M.flowStateEntityKey])==null?void 0:p.primaryButtonDisabled)!==void 0){var y;E=!((y=G[M.flowStateEntityKey])==null||!y.primaryButtonDisabled)}XIt(M,K!=null?K:q,n,E)}};
cEW=function(M){return _.IQ(_.zw(),function(q){return q.entities.flowStateEntity},function(q,G){if(M.flowStateEntityKey){var K,n=q==null?void 0:(K=q[M.flowStateEntityKey])==null?void 0:K.currentStepId,E;
G=G==null?void 0:(E=G[M.flowStateEntityKey])==null?void 0:E.currentStepId;E=_.zw().getState().talkToRecs;if(n&&n!==G){var p;q=(q==null?void 0:(p=q[M.flowStateEntityKey])==null?void 0:p.stepIdStack)||Object.keys(E.stepStates);p=!inA(E==null?void 0:E.stepStates[n]);XIt(M,n,q,p)}}})};
Bwv=function(M){return _.IQ(_.zw(),ggC,function(q){var G=lUW(M);if(G){var K=Object.keys(q.stepStates);q=!inA(q==null?void 0:q.stepStates[G]);XIt(M,G,K,q)}})};
inA=function(M){var q=Object.keys((M==null?void 0:M.selectionStates)||{}).reduce(function(E,p){return E||(M==null?void 0:M.selectionStates[p].isSelected)},!1),G,K,n=!!(M==null?0:(G=M.userQuery)==null?0:(K=G.userQuery)==null?0:K.trim());
return q||n};
lUW=function(M){if(M.flowStateEntityKey){var q,G,K=(q=_.zw().getState().entities.flowStateEntity)==null?void 0:(G=q[M.flowStateEntityKey])==null?void 0:G.currentStepId;if(K)return K}};
XIt=function(M,q,G,K){_.zw().dispatch(_.LL("flowStateEntity",M.flowStateEntityKey,{currentStepId:q,stepIdStack:G,key:M.flowStateEntityKey,primaryButtonDisabled:K}))};
_.Q8y=function(M,q){return _.sX(M.entities,"youchatPendingResponseEntity",q)};
_.IUA=function(M){return function(q){_.Zp(_.LL("youchatPendingResponseEntity",M,{entityKey:M,isPendingResponse:q}))}};
DMW=function(M){M==null||M.addEventListener("DOMLoaded",function(){M.goToAndPlay(M.totalFrames-48,!0)})};
uvG=function(M){var q=[];L5L(["videoId","contentId"],M.JSC$18601_pageManager.data,new Set,q);return q};
JE3=function(M){return uvG(M).filter(function(q){return q.contentType==="video"}).map(function(q){return q.contentId}).filter(function(q){return q!==void 0})};
_.Zna=function(M,q){if(_.Y48(M))switch(q){case "watch":var G,K;return{pageSurface:"PAGE_SURFACE_WATCH",entityId:(G=_.Mo())==null?void 0:(K=G.getVideoData())==null?void 0:K.video_id};case "search":var n,E,p;return{pageSurface:"PAGE_SURFACE_SEARCH",videoIds:(E=(n=M.pageContentExtractor)==null?void 0:JE3(n))!=null?E:[],entityId:(p=(new URLSearchParams(window.location.search)).get("search_query"))!=null?p:void 0};case "companion-canvas":var y,Y;return{pageSurface:"PAGE_SURFACE_CANVAS",videoIds:(Y=(y=
M.pageContentExtractor)==null?void 0:JE3(y))!=null?Y:[]}}};
_.Y2=function(M){this.__isSoyCss=!0;this.css=W5C.apply(null,[M.strings].concat(_.Ui(M.args)))};
_.Y2.prototype.toString=function(){return this.css};
var AEa=function(){_.Y2.apply(this,arguments)};
_.l(AEa,_.Y2);var aUG=_.DQ(["",""]);var bnC;var UMA;_.h_({_template:function(){if(UMA!==void 0)return UMA;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
var q=M.content,G=q.insertBefore;bnC===void 0&&(bnC=document.createElement("template"));var K=bnC;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return UMA=M},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var xMM=new _.e0("flowRootRenderer");var zwG=new _.e0("chipsShelfViewModel");var mM9=new _.e0("responsiveContainerConfiguration");_.SLk=new _.e0("engagementPanelSectionListRenderer");var Twa=function(){this.horizontal=!1},rEL=function(M,q){M.horizontal=q};
Twa.prototype.position=function(M,q,G,K){K=K===void 0?1:K;M=this.delta(M)*K+q;K=Math.max(q,G);return M>=Math.min(q,G)&&M<=K?M:G};
Twa.prototype.axis=function(M){M=this.direction(M);return M==="up"||M==="down"?"Y":"X"};var uB=function(M,q,G){q=q===void 0?_.Xt():q;this.target=M;this.manager=q;this.touchAction=G;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
uB.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(_.Ui(this.events)));for(var M=_.k(this.events),q=M.next();!q.done;q=M.next())this.listen(q.value)}};
uB.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Ui(this.events)));for(var M=_.k(this.events),q=M.next();!q.done;q=M.next())this.unlisten(q.value)}};
uB.prototype.listen=function(M){this.eventMap[M]&&this.target.addEventListener(M,this.eventMap[M])};
uB.prototype.unlisten=function(M){this.eventMap[M]&&this.target.removeEventListener(M,this.eventMap[M])};var Jf=function(){Twa.apply(this,arguments)};
_.l(Jf,Twa);Jf.prototype.direction=function(M){var q=M.detail;M=q.deltaY;q=q.deltaX;return M&&!this.horizontal?M>0?"down":"up":q&&this.horizontal?q>0?"right":"left":"none"};
Jf.prototype.distance=function(M){return Math.abs(this.delta(M))};
Jf.prototype.delta=function(M){var q=this.direction(M),G=M.detail;M=G.deltaX;G=G.deltaY;return q==="up"||q==="down"?G||0:M||0};
Jf.prototype.velocity=function(M){var q=this.direction(M),G=M.detail;M=G.velocityX;G=G.velocityY;return Math.abs(q==="up"||q==="down"?G||0:M||0)};_.Z0=function(M,q,G,K,n,E){n=n===void 0?new Jf:n;E=E===void 0?_.Xt():E;uB.call(this,q,E,K);var p=this;this.element=M;this.target=q;this.config=G;this.input=n;this.manager=E;this.events=["panstart","panmove","panend"];this.onPanStart=function(){p.config.draggingClass&&p.element.classList.add(p.config.draggingClass);p.config.startAction&&p.config.startAction()};
this.onPanMove=function(y){var Y=j8C(p,y);if(Y){p.move(y,Y);Y.fade&&p.fade(y,Y);var A=p.input.direction(y);Y.moveAction&&Y.moveAction(VRk(p,y,Y),A)}};
this.onPanEnd=function(y){var Y,A,v,h,t,O;return _.L(function(a){if(a.nextAddress==1){p.animationRequestId&&cancelAnimationFrame(p.animationRequestId);p.animationRequestId=void 0;Y=j8C(p,y);if(!Y)return a.return();A=Y;v=A.triggerAction;h=A.fade;t=A.disableFinish;O=A.translateBack;var g=p.input.velocity(y),D=p.input.distance(y),J=p.threshold(Y);return g>.3&&D>10||D>J?t?a.jumpTo(6):h?a.yield(Rwa(p,y),6):a.yield(fU3(p,y,Y),6):O?a.yield(p.translateBack(y),3):a.jumpTo(3)}a.nextAddress!=3&&v&&v();p.config.draggingClass&&
p.element.classList.remove(p.config.draggingClass);p.reset();_.gL(a)})};
M=Object.keys(G.triggers);this.directions=new Set(M);rEL(this.input,this.directions.has("right")||this.directions.has("left"))};
_.l(_.Z0,uB);_.Z0.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var j8C=function(M,q){q=M.input.direction(q);return M.config.triggers[q]};
_.Z0.prototype.move=function(M,q){var G=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var K=G.input.axis(M),n=G.input.position(M,G.config.startPosition,q.endPosition,q.moveRatio||1);G.element.style.transform="translate"+K+"("+n+"px)";G.animationRequestId=void 0}))};
var VRk=function(M,q,G){var K=G.moveRatio||1;G=Math.abs(M.config.startPosition-G.endPosition);return Math.min(M.input.distance(q)*K,G)/G};
_.Z0.prototype.fade=function(M,q){var G=q.endOpacity;M=VRk(this,M,q);M>0&&(this.element.style.opacity=""+(((G||0)-1)*M+1))};
_.Z0.prototype.threshold=function(M){return M.threshold?M.threshold:Math.abs(M.endPosition-this.config.startPosition)/3};
var fU3=function(M,q,G){var K,n,E,p,y,Y,A;return _.L(function(v){if(v.nextAddress==1)return K=M.input.delta(q)+M.config.startPosition,n=M.input.axis(q),E=G,p=E.endPosition,y=E.transitionEndPosition,A=(Y=y)!=null?Y:p,v.yield(M.element.animate([{transform:"translate"+n+"("+K+"px)"},{transform:"translate"+n+"("+A+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.element.style.transform="translate"+n+"("+A+"px)";_.gL(v)})};
_.Z0.prototype.translateBack=function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1){if(!q.element.style.transform)return n.return();G=q.input.axis(M);K=q.config.startPosition;return n.yield(q.element.animate([{transform:q.element.style.transform},{transform:"translate"+G+"("+K+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}q.element.style.transform="translate"+G+"("+K+"px)";_.gL(n)})};
var Rwa=function(M,q){var G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return G=M.input.delta(q)+M.config.startPosition,K=M.input.axis(q),n=G+70,E=M.element.style.opacity===""?1:M.element.style.opacity,p.yield(M.element.animate([{transform:"translate"+K+"("+G+"px)",opacity:E},{transform:"translate"+K+"("+n+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.element.style.transform="translate"+K+"("+n+"px)";M.element.style.opacity="0";_.gL(p)})};var bB=function(){var M=_.kA.apply(this,arguments)||this;M._noAccessors=!0;M.scrollRate=3;M.autoScrollAnimationStart=0;M.autoScrollPaused=!1;M.autoScrollRafId=0;return M};
_.l(bB,_.kA);_.N=bB.prototype;_.N.created=function(){var M=this;this.boundAutoScrollHandler=function(q){M.autoScroll(q)}};
_.N.detached=function(){this.hostElement.removeEventListener("mouseout",_.qs(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.qs(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.qs(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.N.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.qs(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.qs(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.qs(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.qs(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.qs(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.qs(this,this.endAutoScroll)),this.endAutoScroll())};
_.N.autoScroll=function(M){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=M);var q;if(q=!this.autoScrollPaused&&this.scrollTarget)q=this.scrollTarget,q=q.scrollHeight-q.scrollTop!==q.clientHeight;q&&(q=1E3/this.scrollRate,M-=this.autoScrollAnimationStart,M>q&&(this.scrollTarget.scrollTop+=Math.ceil(M/q),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.N.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.N.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
bB.prototype.autoScrollEnabledChanged=bB.prototype.autoScrollEnabledChanged;_.T([_.B(),_.r("design:type",Object)],bB.prototype,"scrollRate",void 0);_.T([_.B(),_.r("design:type",Object)],bB.prototype,"scrollTarget",void 0);_.T([_.B(),_.r("design:type",Boolean)],bB.prototype,"autoScrollEnabled",void 0);_.T([_.KT("autoScrollEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bB.prototype,"autoScrollEnabledChanged",null);_.T([_.pT()],bB);_.F59=[bB.prototype];var HnW;var U8=function(){var M=_.Q.apply(this,arguments)||this;M.buttonUpdate=_.w("web_button_rework");M.dismissButtonOverrides=_.w("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;M.forceDarkTheme=!1;M.forceLightTheme=!1;M.dynamicTextHeight=94;M.hasOverflowButton=!1;M.isInfeedModernization=!1;return M};
_.l(U8,_.Q);_.N=U8.prototype;_.N.computeUrlImg=function(M){if(M)return _.r7(M.thumbnails)};
_.N.getLogoHeight=function(M){return this.logoWithPadding(M)?"31":"24"};
_.N.getLogoClassName=function(M){return this.logoWithPadding(M)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.N.logoWithPadding=function(M){var q,G;return(M=(q=M.thumbnails)==null?void 0:(G=q[0])==null?void 0:G.height)&&M%31===0?!0:!1};
_.N.sendImpressionEndpoints=function(M){M.impressionEndpoints&&_.fx(this.hostElement,M.impressionEndpoints)};
_.N.observeBasicPalette=function(){var M,q,G=(M=this.data)==null?void 0:(q=M.colorData)==null?void 0:q.basicColorPaletteData;G?_.dk(this.hostElement,G):_.dk(this.hostElement,{})};
_.N.observeDataChanged=function(){var M;this.dynamicTextHeight=((M=this.data)==null?0:M.supplementalText)?74:94;var q;this.hasSupplementalText=!((q=this.data)==null||!q.supplementalText);if(_.w("web_button_rework")){var G,K,n,E;M=(G=this.data)==null?void 0:(K=G.actionButton)==null?void 0:(n=K.buttonRenderer)==null?void 0:(E=n.colorData)==null?void 0:E.basicColorPaletteData;var p,y,Y;if(!((p=this.data)==null?0:(y=p.actionButton)==null?0:(Y=y.buttonRenderer)==null?0:Y.style)&&M){this.computeIsInfeedModernization(this.data)||
(M.borderColor=M.foregroundTitleColor);var A,v;this.set("data.actionButton.buttonRenderer",_.xP.unsafeClone((A=this.data)==null?void 0:(v=A.actionButton)==null?void 0:v.buttonRenderer))}}};
_.N.observeDataForCounterfactual=function(){if(_.w("kevlar_banner_cf_extra_logging")){var M;((M=this.data)==null?0:M.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.N.computeSupplementalStyle=function(){var M;if((M=this.data)!=null&&M.supplementalText){var q,G,K;if((q=this.data)==null?0:(G=q.colorData)==null?0:(K=G.basicColorPaletteData)==null?0:K.foregroundActivatedColor)return M=_.w2(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+M+"; --yt-endpoint-hover-color:"+M+"; --yt-endpoint-visited-color:"+M+"; --yt-formatted-string-bold-font-weight:700;"}};
_.N.computeForcedDarkTheme=function(){var M,q,G,K=(M=this.data)==null?void 0:(q=M.actionButton)==null?void 0:(G=q.buttonRenderer)==null?void 0:G.style,n,E,p;M=vgA(((n=this.data)==null?void 0:(E=n.colorData)==null?void 0:(p=E.basicColorPaletteData)==null?void 0:p.backgroundColor)||0);return K&&M};
_.N.computeForcedLightTheme=function(){var M,q,G,K=(M=this.data)==null?void 0:(q=M.actionButton)==null?void 0:(G=q.buttonRenderer)==null?void 0:G.style,n,E,p;M=!vgA(((n=this.data)==null?void 0:(E=n.colorData)==null?void 0:(p=E.basicColorPaletteData)==null?void 0:p.backgroundColor)||0);return K&&M};
_.N.computeHasOverflowButton=function(M){return!!M.overflowButton};
_.N.computeHasTitle=function(M){return!!M.title};
_.N.computeTitleMaxFontSize=function(M){return this.computeHasOverflowButton(M)?28:64};
_.N.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.N.computeIsInfeedModernization=function(){var M,q,G,K,n=(M=this.data)==null?void 0:(q=M.actionButton)==null?void 0:(G=q.buttonRenderer)==null?void 0:(K=G.colorData)==null?void 0:K.basicColorPaletteData;return(n==null?void 0:n.backgroundColor)===452984831||(n==null?void 0:n.backgroundColor)===218103808};
U8.prototype.observeDataForCounterfactual=U8.prototype.observeDataForCounterfactual;U8.prototype.observeDataChanged=U8.prototype.observeDataChanged;U8.prototype.observeBasicPalette=U8.prototype.observeBasicPalette;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],U8.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],U8.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],U8.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],U8.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],U8.prototype,"buttonUpdate",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],U8.prototype,"hasSupplementalText",void 0);_.T([_.B(),_.r("design:type",Object)],U8.prototype,"dismissButtonOverrides",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.r("design:type",Boolean)],U8.prototype,"hasTitle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.r("design:type",Object)],U8.prototype,"forceDarkTheme",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.r("design:type",Object)],U8.prototype,"forceLightTheme",void 0);_.T([_.B(),_.r("design:type",Object)],U8.prototype,"dynamicTextHeight",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.r("design:type",Object)],U8.prototype,"hasOverflowButton",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.r("design:type",Object)],U8.prototype,"isInfeedModernization",void 0);_.T([_.KT("data.colorData.basicColorPaletteData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U8.prototype,"observeBasicPalette",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U8.prototype,"observeDataChanged",null);_.T([_.KT("data.isVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U8.prototype,"observeDataForCounterfactual",null);_.T([_.b({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],U8);
_.z(U8,"ytd-banner-promo-renderer",function(){if(HnW!==void 0)return HnW;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return HnW=M},{mode:1});var ewG;var $M3;var svC;var MMW=function(){return _.Q.apply(this,arguments)||this};
_.l(MMW,_.Q);_.T([_.B(),_.r("design:type",Object)],MMW.prototype,"data",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],MMW.prototype,"ytRendererBehavior",void 0);_.T([_.b({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],MMW);
_.z(MMW,"ytd-hashtag-grid-tile-renderer",function(){if(svC!==void 0)return svC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return svC=M},{mode:1});var xi=function(){return _.Q.apply(this,arguments)||this};
_.l(xi,_.Q);xi.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
xi.prototype.updateRichGridTrendingHashtagsVisibility=function(){var M,q;if(((M=this.data)==null||!M.isExpanded)&&(q=this.data)!=null&&q.tiles){M=this.data.tiles.length;q=M>this.richGridItemsPerRow?this.richGridItemsPerRow+1:M;var G=Math.ceil(M/q);this.fullyVisibleRows=M%q===1&&G===2?1:Math.min(G,2);this.isShowMoreVisible=this.fullyVisibleRows<G}};
xi.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
xi.prototype.updateRichGridTrendingHashtagsVisibility=xi.prototype.updateRichGridTrendingHashtagsVisibility;_.T([_.B(),_.r("design:type",Object)],xi.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Number)],xi.prototype,"fullyVisibleRows",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],xi.prototype,"isShowMoreVisible",void 0);_.T([_.B({selector:_.CK,value:0}),_.r("design:type",Number)],xi.prototype,"richGridItemsPerRow",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xi.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xi.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],xi.prototype,"ytdReduxBehavior",void 0);_.T([_.KT("data","richGridItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xi.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.T([_.b({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],xi);
_.z(xi,"ytd-hashtag-grid-shelf-renderer",function(){if($M3!==void 0)return $M3;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return $M3=M},{mode:1});var qAG;var G3v;var zq=function(){var M=_.Q.apply(this,arguments)||this;M.visibleVideos=[];M.hiddenVideos=[];M.modern=_.w("web_modern_buttons");M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(zq,_.Q);_.N=zq.prototype;_.N.attached=function(){var M=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.onDarkModeToggledAction(M)};
_.N.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"}}}};
_.N.dataChanged=function(){var M=this;this.requestElementsPerRow();var q,G;this.currentColorPalette=this.isDarkTheme?(q=this.data)==null?void 0:q.darkColorData:(G=this.data)==null?void 0:G.lightColorData;var K;if((K=this.currentColorPalette)==null?0:K.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.yb(this,function(){M.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.N.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.N.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.N.computeIsFirstFeedItem=function(M){return M};
_.N.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M);this.data&&(this.currentColorPalette=M?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.N.getCurrentLogo=function(M,q){if(M)return q?M.darkLogoImage:M.lightLogoImage};
_.N.computeTitleStyle=function(M){var q;if((q=this.data)!=null&&q.title&&M&&M.textPrimary!==void 0)return"color:"+_.w2(M.textPrimary)+";"};
_.N.computeSubtitleStyle=function(M){var q;if((q=this.data)!=null&&q.subtitle&&M&&M.textSecondary!==void 0)return"color:"+_.w2(M.textSecondary)+";"};
_.N.computeDismissIconStyle=function(M){if(this.data&&this.data.dismissButton&&M&&M.textPrimary!==void 0)return"--yt-button-color:"+_.w2(M.textPrimary)+";"};
_.N.computeOverflowButtonStyle=function(M){if(this.data&&this.data.overflowButton&&M&&M.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.w2(M.textPrimary)+";--yt-spec-icon-active-other:"+_.w2(M.textPrimary)+";"};
_.N.computeBackgroundStyle=function(M){if(M&&this.data){var q="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var G=_.r7((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);G&&(q+='background-image:url("'+G+'");')}M.backgroundColor!==void 0&&(q+="background-color:"+_.C_(M.backgroundColor)+";");return q}};
_.N.computeButton=function(){var M,q=Object.assign({},_.C((M=this.data)==null?void 0:M.showMoreButton,_.f1));if(this.modern&&q){q.style="STYLE_MONO_OUTLINE";var G;if(M=(G=this.currentColorPalette)==null?void 0:G.textPrimary)q.colorData={basicColorPaletteData:{foregroundTitleColor:M,borderColor:M}}}return q};
_.N.shouldShowBottomButton=function(M,q){return!(M==null?0:M.header)&&!(M==null||!M.primaryButton)&&q<3};
_.N.checkExpanded=function(M){this.isExpanded=M&&M.content?this.hiddenVideos.length===0:!0};
_.N.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.N.getLogoHeight=function(M){return this.logoWithPadding(M)?"26":"20"};
_.N.getLogoImageId=function(M){return this.logoWithPadding(M)?"logo-image-with-padding":"logo-image"};
_.N.computeHasSectionHeader=function(M){return!!M.header};
_.N.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var M;if((M=this.data.primaryButton)==null?0:M.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 q;((q=this.data.dismissButton)==null?0:q.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var G,K;((G=this.data)==null?0:(K=G.primaryButton)==null?0:K.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.N.setVisibleVideos=function(M){if(this.data&&this.data.content)if(this.data.content.length){var q=this.data.content.length;this.data.header?M?(this.visibleVideos=this.data.content.slice(0,Math.min(q,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(q,this.slimItemsPerRow),q)):(this.visibleVideos=this.data.content.slice(0,Math.min(q,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(q,this.elementsPerRow),q)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(q,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(q,this.elementsPerRow),q)):(this.visibleVideos=this.data.content.slice(0,Math.min(q,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(q,this.elementsPerRow-1),q))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.N.setHasMovieRenderer=function(){var M;if((M=this.data)!=null&&M.content){var q;this.hasMovieRenderer=!!_.C((q=this.data)==null?void 0:q.content[0],_.Xz2)}else this.hasMovieRenderer=!1};
_.N.requestElementsPerRow=function(){_.jP(this.hostElement,"yt-request-elements-per-row")};
_.N.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var M=_.k(this.hiddenMediaRenderers),q=M.next();!q.done;q=M.next())q.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(M=_.f_(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&M.focus()}};
_.N.updateTitleSpec=function(){var M;(M=this.data)!=null&&M.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.N.logoWithPadding=function(M){var q,G,K;return(M=(q=this.getCurrentLogo(M,this.isDarkTheme))==null?void 0:(G=q.thumbnails)==null?void 0:(K=G[0])==null?void 0:K.height)&&M%31===0?!0:!1};
_.N.onUpdateElementsPerRowAction=function(M,q,G){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M);G&&this.slimItemsPerRow!==G&&(this.slimItemsPerRow=G)};
zq.prototype.slimItemsPerRowChanged=zq.prototype.slimItemsPerRowChanged;zq.prototype.elementsPerRowChanged=zq.prototype.elementsPerRowChanged;zq.prototype.dataChanged=zq.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],zq.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],zq.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],zq.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],zq.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],zq.prototype,"currentColorPalette",void 0);_.T([_.B(),_.r("design:type",Array)],zq.prototype,"visibleVideos",void 0);_.T([_.B(),_.r("design:type",Array)],zq.prototype,"hiddenVideos",void 0);
_.T([_.B(),_.r("design:type",Object)],zq.prototype,"primaryButton",void 0);_.T([_.B({reflectToAttribute:!0,value:3}),_.r("design:type",Number)],zq.prototype,"elementsPerRow",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],zq.prototype,"isDarkTheme",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],zq.prototype,"isExpanded",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],zq.prototype,"largeTitle",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],zq.prototype,"hasMovieRenderer",void 0);_.T([_.B(),_.r("design:type",Number)],zq.prototype,"slimItemsPerRow",void 0);_.T([_.B(),_.r("design:type",Boolean)],zq.prototype,"showLightVideoMetadata",void 0);_.T([_.B(),_.r("design:type",Boolean)],zq.prototype,"showDarkVideoMetadata",void 0);_.T([_.B(),_.r("design:type",Number)],zq.prototype,"videoMetadataColor",void 0);
_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],zq.prototype,"miniMode",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.r("design:type",Boolean)],zq.prototype,"isFirstFeedItem",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.r("design:type",Boolean)],zq.prototype,"hasSectionHeader",void 0);
_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],zq.prototype,"roundedContainer",void 0);_.T([_.Ns("#visible-video-container ytd-rich-grid-media"),_.r("design:type",Array)],zq.prototype,"visibleMediaRenderers",void 0);_.T([_.Ns("#hidden-video-container ytd-rich-grid-media"),_.r("design:type",Array)],zq.prototype,"hiddenMediaRenderers",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],zq.prototype,"modern",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zq.prototype,"dataChanged",null);_.T([_.KT("elementsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zq.prototype,"elementsPerRowChanged",null);_.T([_.KT("slimItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zq.prototype,"slimItemsPerRowChanged",null);
_.T([_.b({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],zq);
_.z(zq,"ytd-brand-video-shelf-renderer",function(){if(G3v!==void 0)return G3v;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return G3v=M},{mode:1});var KLt;var ms=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(ms,_.Q);_.N=ms.prototype;_.N.attached=function(){var M=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",M);this.onDarkModeToggledAction(M)};
_.N.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"}}}};
_.N.dataChanged=function(){this.requestElementsPerRow();var M,q;this.currentColorPalette=this.isDarkTheme?(M=this.data)==null?void 0:M.darkColorData:(q=this.data)==null?void 0:q.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.N.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.N.computeIsFirstFeedItem=function(M){return M};
_.N.onDarkModeToggledAction=function(M){M!==this.isDarkTheme&&this.set("isDarkTheme",M);this.data&&(this.currentColorPalette=M?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(M),this.updateButtonPalette())};
_.N.shouldShowThumbnailInMetadata=function(M){return M<=1};
_.N.computeVideoMetadataColor=function(){if(this.data){var M;if((M=this.currentColorPalette)==null?0:M.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.N.computeTitleStyle=function(M){var q;if((q=this.data)!=null&&q.title&&M&&M.textPrimary!==void 0)return"color:"+_.w2(M.textPrimary)+";"};
_.N.computeSubtitleStyle=function(M){var q;if((q=this.data)!=null&&q.subtitle&&M&&M.textSecondary!==void 0)return"color:"+_.w2(M.textSecondary)+";"};
_.N.computeOverflowButtonStyle=function(M){if(this.data&&this.data.overflowButton&&M.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.w2(M.textPrimary)+";--yt-spec-icon-active-other:"+_.w2(M.textPrimary)+";"};
_.N.computeBackgroundStyle=function(M){if(M&&this.data){var q="";M.backgroundColor!==void 0&&(q+="background-color:"+_.C_(M.backgroundColor)+";");return q}};
_.N.computeHasOverflowButton=function(M){return!!M.overflowButton};
_.N.updateButtonPalette=function(){if(this.data){var M;if((M=this.data.primaryButton)==null?0:M.buttonRenderer){var q;if((q=this.currentColorPalette)==null?0:q.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var G;((G=this.currentColorPalette)==null?0:G.primaryButtonStyleType)?(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0):this.data.primaryButton.buttonRenderer.style="STYLE_MONO_TONAL"}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}}};
_.N.requestElementsPerRow=function(){_.jP(this.hostElement,"yt-request-elements-per-row")};
_.N.updateTitleSpec=function(){var M;(M=this.data)!=null&&M.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")};
_.N.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
ms.prototype.elementsPerRowChanged=ms.prototype.elementsPerRowChanged;ms.prototype.dataChanged=ms.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ms.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ms.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],ms.prototype,"ytdDismissibleItemBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ms.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],ms.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ms.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],ms.prototype,"currentColorPalette",void 0);_.T([_.B(),_.r("design:type",Object)],ms.prototype,"primaryButton",void 0);
_.T([_.B({reflectToAttribute:!0,value:3}),_.r("design:type",Number)],ms.prototype,"elementsPerRow",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ms.prototype,"isDarkTheme",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],ms.prototype,"titleSize",void 0);_.T([_.B(),_.r("design:type",Number)],ms.prototype,"videoMetadataColor",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],ms.prototype,"miniMode",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.r("design:type",Boolean)],ms.prototype,"isFirstFeedItem",void 0);_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],ms.prototype,"roundedContainer",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.r("design:type",Boolean)],ms.prototype,"hasOverflowButton",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ms.prototype,"dataChanged",null);_.T([_.KT("elementsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ms.prototype,"elementsPerRowChanged",null);_.T([_.b({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],ms);
_.z(ms,"ytd-brand-video-singleton-renderer",function(){if(KLt!==void 0)return KLt;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return KLt=M},{mode:_.VO("kevlar_poly_si_batch_j070")?1:2});var nCA;var ECy=_.U(function(M){var q=M.data;return _.W(_.Jj,{data:function(){return q().thumbnail},
alt:"",className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnailImage",targetHeight:function(){a:switch(q().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var G=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":G=88;break a;default:G=88}return G},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return q().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ym"),k3W=_.U(function(M){var q=M.metadataRow;
var G=M.delimiter;return _.W(_.bf,{each:function(){return q().textParts||[]},
keyBy:"INDEX"},function(K,n){return _.W(_.dU,null,_.W(_.Ft,{text:K,noWrap:!0,userInput:!0}),_.W(NWe,{delimiter:G,max:function(){return q().textParts.length},
index:n}))})},"zm"),NWe=_.U(function(M){var q=M.delimiter;
var G=M.max;var K=M.index;return _.W(_.d,{cond:function(){return(q==null?void 0:q())&&G()-1>K()},
then:function(){return _.W("span",null,q)}})},"Am"),ptC=_.U(function(M){var q=M.data;
M={};return _.W("yt-profile-page-header-information-view-model",{class:_.Hb("profilePageHeaderInformationViewModelHost",(M.profilePageHeaderInformationViewModelMobile=!1,M))},_.W(_.d,{cond:function(){return q().onTap},
then:function(){return _.W(_.kv,{className:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail",command:function(){return _.aM(q().onTap)}},_.W(_.yu,{data:function(){return q().thumbnail}},{profilePageHeaderThumbnailViewModel:ECy}))},
else:function(){return _.W("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderThumbnail"},_.W(_.yu,{data:function(){return q().thumbnail}},{profilePageHeaderThumbnailViewModel:ECy}))}}),_.W("div",{class:"profilePageHeaderInformationViewModelFlexContainer"},_.W(_.d,{cond:function(){return q().onTap},
then:function(){return _.W(_.yu,{data:function(){return q().title}},{profilePageHeaderTitleViewModel:function(G){var K=G.data;
return _.W(_.kv,{className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle",command:function(){return _.aM(K().onTap)}},_.W(_.Ft,{text:function(){return K().title}}))}})},
else:function(){return _.W(_.yu,{data:function(){return q().title}},{profilePageHeaderTitleViewModel:function(G){var K=G.data;
return _.W(_.Ft,{text:function(){return K().title},
className:"profilePageHeaderInformationViewModelProfilePageHeaderTitle"})}})}}),_.W(_.yu,{data:function(){return q().metadata}},{profilePageHeaderMetadataViewModel:function(G){var K=G.data;
return _.W(_.d,{cond:function(){return K().metadataRows},
then:function(n){return _.W("div",{class:"profilePageHeaderInformationViewModelProfilePageHeaderMetadata"},_.W(_.bf,{each:n,keyBy:"INDEX"},function(E,p){return _.W(_.dU,null,_.W(k3W,{metadataRow:E,delimiter:" \u2022 "}),_.W(NWe,{delimiter:" \u2022 ",max:function(){return n().length},
index:p}))}))}})}})))},"Bm");
ptC.idomCompat=!0;_.S5(ptC,"yt-profile-page-header-information-view-model",{props:{data:_.Hz}});var Sn=function(){return _.Q.apply(this,arguments)||this};
_.l(Sn,_.Q);Sn.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Sn.prototype,"data",void 0);_.T([_.b({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],Sn);
_.z(Sn,"ytd-effect-pivot-header-view-model",function(){if(nCA!==void 0)return nCA;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return nCA=
M},{mode:1});var y9G;var Tq=function(){return _.Q.apply(this,arguments)||this};
_.l(Tq,_.Q);Tq.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Tq.prototype,"data",void 0);_.T([_.b({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],Tq);
_.z(Tq,"ytd-source-pivot-header-renderer",function(){if(y9G!==void 0)return y9G;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return y9G=M},{mode:1});_.S5(_.tgv,"yt-card-view-model",{props:{data:_.Hz,className:_.Hz,isSelected:_.Hz}});var ggC=_.Jn5.talkToRecsStateSelector;_.S5(_.U(function(M){var q=function(){return _.C(M.data().flowRoot,xMM)};
_.SK(function(){var G=q(),K=function(){},n=function(){};
if(G){var E,p,y,Y=((y=_.C((E=q())==null?void 0:(p=E.steps)==null?void 0:p[0],_.Dw))==null?void 0:y.stepId)||"";PPC(G,Y);K=cEW(G);n=Bwv(G)}_.m_(function(){var A=q();A&&_.zw().dispatch(_.LL("flowStateEntity",A.flowStateEntityKey));K();K=function(){};
n();n=function(){};
_.Zp(_.dhI())})});
return _.W("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.W(_.ve,{contentId:function(){return M.data().contentId}},function(){return _.W("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.W(_.d,{cond:q,
then:function(G){return _.W(_.mbw,{data:G})}}))}))},"Cm"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.Hz}});_.S5(_.U(function(){return _.W("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.W("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.W("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.W(_.lpg,null)),_.W(_.Z6B,{data:{rows:1},isExploreHub:!0}))},"Dm"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.S5(_.U(function(M){var q=M.data;var G=M.standardUnitMinWidth;M=_.k((0,_.zdJ)(q));var K=M.next().value,n=M.next().value,E=function(){var y,Y=(y=K())==null?void 0:y.contents;return Y==null||Y.length===0},p=function(){n(Object.assign({},K(),{contents:[]}))};
return _.W("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:_.bm(_.d_({showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var y=_.C(q().chipsShelf,zwG);if(y!=null&&y!=null&&y.autoselectChipOnVisible){var Y,A,v=_.C(y==null?void 0:(Y=y.contents)==null?void 0:Y[(A=y.autoselectedChipIndex)!=null?A:0],_.sj);v&&v.tapCommand&&_.Pb(v.tapCommand)}}}))},_.W(_.ve,{contentId:function(){return q().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.W("div",null,_.W("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.W(_.yu,{data:function(){return q().header}},{sectionHeaderViewModel:function(y){return _.W(_.CU,{data:y.data,
disableHorizontalPadding:!0})}})),_.W("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.W(_.yu,{data:function(){return q().chipsShelf}},{chipsShelfViewModel:function(y){return _.W(_.jy,{data:y.data,
callback:p,selectionBehavior:1})}})),_.W("div",null,_.W(_.d,{cond:E,
then:function(){return _.W("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.W(_.Z6B,{data:{rows:1},isExploreHub:!0}))}}),_.W(_.yu,{data:function(){var y;
return(y=K())==null?void 0:y.contents}},{richShelfRenderer:function(y){return _.W(_.VHS,{data:y.data,
isInnerShelf:!0,standardUnitMinWidth:G})}})))}))},"Em"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.Hz,
standardUnitMinWidth:_.Hz}});var re=function(){return _.Q.apply(this,arguments)||this};
_.l(re,_.Q);
re.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}}};
re.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.T([_.P(_.mr),_.r("design:type",Object)],re.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],re.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],re.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],re.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],re.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Number)],re.prototype,"standardUnitMinWidth",void 0);_.T([_.b({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],re);
_.z(re,"ytd-rich-section-renderer",function(){if(qAG!==void 0)return qAG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return qAG=M},{mode:_.VO("kevlar_poly_si_batch_j029")?
1:2});_.S5(_.ezL,"yt-profile-identity-info-view-model",{props:{data:_.Hz,hideDivider:_.Hz,isChannelInfoCard:_.Hz}});_.S5(_.VC$,"yt-page-header-view-model",{props:{data:_.Hz,noPadding:_.Hz,enableBanner:_.Hz,cinematicContainerTopbarOffset:_.Hz,allowCinematicContainerOverflow:_.Hz,displayAsSidebar:_.Hz,displayAsPanel:_.Hz,alwaysUseMediumTextDescription:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=function(){var n;return(n=q().numColumns)!=null?n:2},K=function(){return G()>1?3:2};
M={};return _.W("ytd-rich-grid-group",{class:_.Hb("ytdRichGridGroupHost",(M.ytdRichGridGroupHostFirstColumn=function(){return q().colIndex===0},M)),
style:_.Kp({"--ytd-rich-grid-group-num-columns":G,"--ytd-rich-grid-items-per-group":K})},_.W("div",{class:"ytdRichGridGroupContents"},_.W(_.yu,{data:function(){var n;return(n=q().contents)==null?void 0:n.slice(0,K())}},{richItemRenderer:function(n){return _.W(_.rS2,{data:n.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Fm"),"ytd-rich-grid-group",{props:{data:_.Hz}});var jn=function(){var M=_.Q.apply(this,arguments)||this;M.resizeOnObserverInit=!1;M.isInlinePreviewDisabled=_.w("web_disable_inline_preview");M.disableStickyFilterBar=!1;M.transparentBackgroundChipsBar=!1;M.hideChipsBar=!1;M.isWatchDefaultLayout=!0;M.continuationShowButton=!1;M.rowReducedHorizontalMargin=!1;M.useCompactList=!1;M.manualDownloadsPresent=!1;M.smartDownloadsPresent=!1;M.isOnline=!1;M.shouldRenderDownloadsBanner=!1;M.shouldRenderDownloadsBannerUpsell=!1;M.hasOptedIntoSmartDownloads=!1;
M.elementsPerRow=4;M.typographyBump=!1;M.slimItemsPerRow=1;M.pageLoadingFromNavigation=!1;M.resizeObserver=null;M.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"};M.rendererToTagNameMap=new Map(Object.entries(M.contentMapping()).map(function(q){var G=
_.k(q);q=G.next().value;G=G.next().value;return[q,G.component]}));
M.insertedContent=new Map;return M};
_.l(jn,_.Q);_.N=jn.prototype;_.N.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var M=_.k(_.f_(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),q=M.next();!q.done;q=M.next())q.value.useCompactList=this.useCompactList};
_.N.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var M=_.k(_.f_(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),q=M.next();!q.done;q=M.next())q=q.value,q.sizing=this.sizing,q.typographyBump=this.typographyBump};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.N.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]]"}}}};
_.N.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{feedFilterChipBarRenderer:{component:"ytd-feed-filter-chip-bar-renderer",properties:{fluidWidth:"[[isDefaultGrid]]",disableSticky:"[[disableStickyFilterBar]]",transparentBackground:"[[transparentBackgroundChipsBar]]"}},chipBarViewModel:{component:"chip-bar-view-model",params:{className:"ytd-rich-grid-renderer chip-bar"}},pageHeaderViewModel:{component:"yt-page-header-view-model",params:{displayAsPanel:!0}},profileIdentityInfoViewModel:{component:"yt-profile-identity-info-view-model"}}},
bigYoodleData:{id:"big-yoodle",mapping:{brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",statementBannerRenderer:"ytd-statement-banner-renderer"},reuseComponents:!1},mastheadData:{id:"masthead-ad",mapping:{bannerPromoRenderer:"ytd-banner-promo-renderer",adSlotRenderer:"ytd-ad-slot-renderer"},reuseComponents:!1},shownItems:{id:"contents",mapping:this.contentMapping(),reuseComponents:!1}}};
_.N.attached=function(){document.addEventListener("yt-page-type-changed",_.qs(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$22189_throttledOnResize=new _.qA(this.resizeObserved,_.tL("rich_grid_resize_delay_ms",50),this)};
_.N.detached=function(){var M;(M=this.resizeObserver)==null||M.disconnect();document.removeEventListener("yt-page-type-changed",_.qs(this,this.onPageChange))};
_.N.insertRichSection=function(M){var q=M.richItemTargetId;M=M.richSectionRendererToInsert;q&&M&&(this.insertedContent.set(q,{content:M,timestamp:Date.now()}),this.reflowContent())};
_.N.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.N.computeIsInlinePreviewEnabled=function(M,q,G){return _.w("web_disable_inline_preview")?!1:!G&&_.quI({miniplayerIsActive:M,miniplayerPlaybackState:q})};
_.N.computeSizing=function(){var M=_.UPy(this.data);if(M||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return M?this.useCompactList?"COMPACT":M:this.miniMode?"COMPACT":"STANDARD"};
_.N.updateItemMinAndMaxWidth=function(){var M=_.tL("rich_grid_max_item_width",500);M>0&&_.sT(this.hostElement,{"--ytd-rich-grid-item-max-width":M+"px"});var q;M=this.getRichItemMinWidth((q=this.hostElement)==null?void 0:q.clientWidth);M>0&&_.sT(this.hostElement,{"--ytd-rich-grid-item-min-width":M+"px"})};
_.N.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.N.resizeObserved=function(){_.Rf(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.N.onPageChange=function(){var M=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.Rf(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.r8.addJob(function(){M.pageLoadingFromNavigation=!1;M.setMasthead();M.maybeSetBigYoodle();M.forceRefreshAndLog();M.terminateVideoPreview()},8)):this.mastheadData&&(this.mastheadData=void 0)};
_.N.dataChanged=function(){var M=this;_.Rf(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.yb(this,function(){M.updateRichItemGridPositions();M.contentsElement&&_.sT(M.hostElement,{"--ytd-rich-grid-content-offset-top":M.contentsElement.offsetTop+"px"})}),this.initResizeObserver())};
_.N.initResizeObserver=function(){var M=this;if(window.ResizeObserver){var q;(q=this.resizeObserver)==null||q.disconnect();var G=!1;this.resizeObserver=new ResizeObserver(function(){if(G){var K;(K=M.resizeObserver)==null||K.disconnect();var n;(n=M.JSC$22189_throttledOnResize)==null||n.fire();requestAnimationFrame(function(){var p;(p=M.JSC$22189_throttledOnResize)==null||p.fire();M.initResizeObserver()})}else if(G=!0,M.resizeOnObserverInit){var E;
(E=M.JSC$22189_throttledOnResize)==null||E.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.N.contentLengthChanged=function(){if(this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Rf(this.hostElement,"ytd-rich-item-index-update-action")};
_.N.updateElementsPerRow=function(){_.Rf(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.N.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.N.onRichShelfRendererCollapse=function(M){if(this.shownItems){var q=M.detail;M=this.shownItems.findIndex(function(K){var n,E;return((E=_.C(K==null?void 0:(n=K.richSectionRenderer)==null?void 0:n.content,_.hnJ))==null?void 0:E.trackingParams)===q});
var G=M+1;M<0||G>=this.contentsElement.children.length||!this.shownItems[G].richItemRenderer||this.contentsElement.children[G].scrollIntoView({behavior:"smooth",block:"start"})}};
_.N.onSoftReloadPage=function(){this.scrollUpToTop()};
_.N.handleRerenderDownloadsData=function(){_.w("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.N.handlePlaylistRemoveVideosAction=function(M){var q;if(((q=_.C(M,_.uXl))==null?0:q.setVideoIds)&&this.data&&this.data.contents){M=_.C(M,_.uXl).setVideoIds;for(q=this.data.contents.length-1;q>=0;){var G=_.C(this.data.contents[q],_.ID);(G=G&&_.C(G.content,_.VL))&&G.setVideoId&&M.includes(G.setVideoId)&&this.splice("data.contents",q,1);q--}this.updateIndices()}};
_.N.updateIndices=function(){if(this.data&&this.data.contents)for(var M=0;M<this.data.contents.length;M++)this.set("data.contents."+M+".richItemRenderer.index",_.bc(String(M+1)))};
_.N.hasTopRowInlinePlayableVideoWithEndorsement=function(M){var q;return!((q=M.slice(0,this.getItemsPerRow()))==null||!q.some(function(G){var K;G=_.C(G==null?void 0:(K=G.richItemRenderer)==null?void 0:K.content,_.HA);var n;return(G==null?void 0:G.inlinePlaybackEndpoint)&&(G==null?void 0:(n=G.thumbnailOverlays)==null?void 0:n.some(function(E){return E.thumbnailOverlayEndorsementRenderer}))}))};
_.N.refreshGridLayoutNew=function(M,q,G,K){var n=K.postsPerRow;var E=K.slimItemsPerRow;var p=K.gameCardsPerRow;K=K.miniGameCardsPerRow;var y;if((y=this.data)==null||!y.contents||!this.containerWidth)return!1;var Y;if((Y=this.data.responsiveContainerConfiguration)==null?0:Y.responsiveSize){var A=_.hdF(this.data.responsiveContainerConfiguration,this.containerWidth),v;y=_.PO(Object.assign({},A,{standardUnitMinWidth:(v=this.data)==null?void 0:v.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&A.isCompactList)}else y=_.PO({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(A=this.data)==null?void 0:A.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=y.typographyBump;v=!1;if(M||this.elementsPerRow!==y.numItems||this.postsPerRow!==n||this.slimItemsPerRow!==E||this.gameCardsPerRow!==
p||this.miniGameCardsPerRow!==K||this.gutter!==y.gutter)v=this.elementsPerRow!==y.numItems,this.elementsPerRow=y.numItems,this.postsPerRow=n,this.slimItemsPerRow=E,this.gameCardsPerRow=p,this.miniGameCardsPerRow=K,this.gutter=y.gutter,this.itemWidth=y.itemWidth,this.reflowContent(q),_.sT(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":y.gutter+"px","--ytd-rich-grid-posts-per-row":""+this.postsPerRow,"--ytd-rich-grid-slim-items-per-row":""+this.slimItemsPerRow,
"--ytd-rich-grid-game-cards-per-row":""+this.gameCardsPerRow,"--ytd-rich-grid-mini-game-cards-per-row":""+this.miniGameCardsPerRow}),this.updateElementsPerRow(),this.updateMiniMode(G);this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:y.maxContainerWidth}));return v};
_.N.refreshGridLayout=function(M,q){var G,K=(G=this.hostElement)==null?void 0:G.clientWidth;this.containerWidth=this.adjustRichGridWidth(K,!0);var n;if((n=this.data)==null||!n.contents||!this.containerWidth)return M&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&(M=!0,this.pendingForceReflow=!1);G=this.getRichItemMinWidth(K);var E=this.isShortsPanel?146:194,p=this.getMiniGameCardMinWidth(),y=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:_.tL("rich_grid_default_max_items_per_row",
6);K=G=this.calcElementsPerRow(G,y);(n=G<=3&&this.miniModeAllowed())&&(G=this.calcElementsPerRow(240,4));var Y=this.calcMaxSlimElementsPerRow(G,y,this.isDefaultGrid);y=this.calcElementsPerRow(E,Y);var A=this.calcElementsPerRow(this.isCompactGrid?E:154,Y);E=this.calcElementsPerRow(this.isCompactGrid?E:p,Y);p=!1;if(this.sizing)return this.refreshGridLayoutNew(M,q,n,{postsPerRow:K,slimItemsPerRow:y,gameCardsPerRow:A,miniGameCardsPerRow:E});if(M||this.elementsPerRow!==G||this.postsPerRow!==K||this.slimItemsPerRow!==
y||this.gameCardsPerRow!==A||this.miniGameCardsPerRow!==E)p=this.elementsPerRow!==G,this.elementsPerRow=G,this.postsPerRow=K,this.slimItemsPerRow=y,this.gameCardsPerRow=A,this.miniGameCardsPerRow=E,this.reflowContent(q),this.updateElementsPerRow(),_.sT(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)&&_.sT(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(n);_.Rf(this.hostElement,"yt-rich-grid-layout-refreshed");return p};
_.N.getRichItemMinWidth=function(M){var q=_.tL("rich_grid_min_item_width",310);if(!_.w("kevlar_disable_min_width_override")){var G,K;q=(K=(G=this.data)==null?void 0:G.minItemWidth)!=null?K:q}return q+_.I5s(M)};
_.N.calcMaxSlimElementsPerRow=function(M,q,G){return(G===void 0?0:G)?M===1?2:M%2===0?M/2*3:M+2:q*2};
_.N.adjustRichGridWidth=function(M,q){var G=_.w("disable_rich_grid_guide_compensation");if(!this.isWatch&&!G){G=_.AL().resolve(_.WR(_.V3));var K=G==null?void 0:G.guideElement;if(!(!G||G.getData()||K!=null&&K.opened||G.getMiniGuideVisible()))if(G.canFitPersistentGuide(M)&&G.getGuideExpandsAutomatically()){var n,E,p=Number((n=window.getComputedStyle(this.hostElement))==null?void 0:(E=n.getPropertyValue("--app-drawer-width"))==null?void 0:E.replace("px",""));M-=p||0}else if(G.canFitMiniGuide(M)){var y;
n=Number((p=window.getComputedStyle(this.hostElement))==null?void 0:(y=p.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:y.replace("px",""));M-=n||0}}M>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(M-=q?32:48));return M};
_.N.calcElementsPerRow=function(M,q){var G=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),K=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((G+K)/(M+K))||1,q)};
_.N.reflowContent=function(M){var q=this;if(!this.isReflowing){this.isReflowing=!0;var G,K,n=!!((G=this.data)==null?0:(K=G.contents)==null?0:K.some(function(y){return _.C(y,_.Z$)}));
G=this.getItemsPerRow();var E;K=(E=this.data)==null?void 0:E.reflowOptions;M&&(_.oJ("rgr_s"),_.yb(this,function(){_.oJ("rgr_nrf")}));
M={};(E=_.f_(this.hostElement).querySelector("#contents"))&&(M={contentElement:E,rendererToTagNameMap:this.rendererToTagNameMap});E=(E=this.data.contents)?E.slice():[];n=wIC(E,G,n,K,this.getRichGridStyle(),M,this.insertedContent);var p=n.orderedContent;if(n=n.pinnedContentNotShownTargetIds)for(n=_.k(n),G=n.next();!G.done;G=n.next())this.insertedContent.delete(G.value);n=function(){q.shownItems=p;q.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(p),_.yb(this,n)):n()}};
_.N.getFirstRowItems=function(M){for(var q=[],G=0;G<M.length;G++){var K=void 0,n=void 0,E=void 0,p=void 0,y=void 0,Y=void 0;if(((K=M[G])==null?void 0:(n=K.richItemRenderer)==null?void 0:n.rowIndex)===0||((E=M[G])==null?void 0:(p=E.richGroupRenderer)==null?void 0:p.rowIndex)===0||((y=M[G])==null?void 0:(Y=y.richSectionRenderer)==null?void 0:Y.rowIndex)===0)q.push(M[G]);else break}return q};
_.N.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.N.resetInsertedContentIfNeeded=function(){(_.w("web_explore_hub_on_hover")||_.w("web_client_explore_hub_on_hover"))&&this.insertedContent.size>0&&(this.insertedContent.clear(),this.reflowContent())};
_.N.handleChipCloudChipSelectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents||this.setCacheAndIsFilteredFeed()};
_.N.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()};
_.N.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();this.resetInsertedContentIfNeeded();this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.N.terminateVideoPreview=function(){_.Rf(this.hostElement,"yt-terminate-video-preview-action")};
_.N.updateRichItemGridPositions=function(){var M={gridData:{gridColumnCount:this.elementsPerRow}},q;((q=this.data)==null?0:q.trackingParams)&&(q=_.Cx())&&_.Ul(q,_.yx(this.data.trackingParams),M);_.Rf(this.hostElement,"ytd-rich-item-index-update-action")};
_.N.miniModeAllowed=function(){return this.isChannelPage};
_.N.getMiniGameCardMinWidth=function(){return 154};
_.N.updateMiniMode=function(M){this.miniMode=this.miniModeAllowed()&&M;this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_RICH_GRID_MINI_MODE",payload:M}))};
_.N.isCurrentPage=function(){return location.pathname===this.pagePath};
_.N.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var M=_.AL().resolve(_.md).getCurrentPage();M&&M.setScrollTop(0)}};
_.N.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.N.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.N.maybeSetBigYoodle=function(){var M,q=(M=this.data)==null?void 0:M.bigYoodle;this.bigYoodleData!==q&&(this.bigYoodleData=q)};
_.N.setMasthead=function(){var M;((M=this.data)==null?0:M.masthead)?this.mastheadData=this.data.masthead:this.mastheadData=void 0};
_.N.getRichGridStyle=function(){var M,q;return(q=(M=this.data)==null?void 0:M.style)!=null?q:"RICH_GRID_STYLE_UNKNOWN"};
_.N.onIsShortsGridChange=function(){var M=this.ytdReduxBehavior,q=M.dispatch,G=this.getRichGridStyle();q.call(M,_.RJ({type:"SET_RICH_GRID_STYLE",payload:G}))};
_.Yd.Object.defineProperties(jn.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var M=_.AL().resolve(_.md).getCurrentPage(),q,G,K;return(((q=this.data)==null?void 0:q.targetId)==="browse-feedFEsfv_audio_pivot"||_.w("web_enable_channel_pivot_panel")&&((G=this.data)==null?void 0:G.targetId)==="browse-feedFEsfv_channel_pivot"||_.w("web_enable_effect_pivot_panel")&&((K=this.data)==null?void 0:K.targetId)==="browse-feedFEsfv_effect_pivot")&&(M==null?void 0:M.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.w("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 M;return!((M=this.data)==null?0:M.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.AL().resolve(_.md).getCurrentPage())==null?void 0:M.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var M;return((M=_.AL().resolve(_.md).getCurrentPage())==null?void 0:M.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 M;return(((M=this.data)==null?void 0:M.targetId)||"")==="watch-next-feed"}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.data)==null?0:M.enableContentSpecificAspectRatio)||((q=this.data)==null?0:(G=q.responsiveContainerConfiguration)==null?0:G.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.tL("web_continuation_handler_margin",0):0}}});
jn.prototype.onIsShortsGridChange=jn.prototype.onIsShortsGridChange;jn.prototype.onReloadContinuationFinish=jn.prototype.onReloadContinuationFinish;jn.prototype.reflowContent=jn.prototype.reflowContent;jn.prototype.handleRerenderDownloadsData=jn.prototype.handleRerenderDownloadsData;jn.prototype.onRichShelfRendererCollapse=jn.prototype.onRichShelfRendererCollapse;jn.prototype.onRequestElementsPerRow=jn.prototype.onRequestElementsPerRow;jn.prototype.contentLengthChanged=jn.prototype.contentLengthChanged;
jn.prototype.dataChanged=jn.prototype.dataChanged;jn.prototype.onSizingChange=jn.prototype.onSizingChange;jn.prototype.onUseCompactListChange=jn.prototype.onUseCompactListChange;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],jn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jn.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.uz),_.r("design:type",Object)],jn.prototype,"ironResizableBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],jn.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],jn.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],jn.prototype,"componentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],jn.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jn.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],jn.prototype,"miniMode",void 0);_.T([_.B({value:[]}),_.r("design:type",Array)],jn.prototype,"shownItems",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],jn.prototype,"isReflowing",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],jn.prototype,"isFilteredFeed",void 0);_.T([_.B({selector:_.gve}),_.r("design:type",Boolean)],jn.prototype,"guideIsExpanded",void 0);
_.T([_.B({selectorArgs:["entitySelectorType"],selector:function(M,q){if(_.w("kevlar_modern_downloads_page")&&q&&q!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(q){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":q=M.entities;var G=_.hn(q),K=_.tn(q),n=_.RCw(M),E=_.VuF(M),p=_.fji(M),y=_.O3u(q),Y=_.y0(G),A=_.OX(q);return _.y8e(G,K,y,_.ovj(q),n,E,Y,A,p,_.H3y(M),_.lc(M));case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return M=_.hn(M.entities),_.YRe(M);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return M=
_.vv4(M.entities),_.WDy(M);default:_.j1(new _.bj("Error: entitySelectorType defined but not matched in selector.",M,q))}}}),
_.r("design:type",Object)],jn.prototype,"entityDrivenRichGridData",void 0);_.T([_.B(),_.r("design:type",Object)],jn.prototype,"resizeOnObserverInit",void 0);_.T([_.B(),_.r("design:type",Object)],jn.prototype,"bigYoodleData",void 0);_.T([_.B(),_.r("design:type",Object)],jn.prototype,"mastheadData",void 0);_.T([_.B(),_.r("design:type",Boolean)],jn.prototype,"isInlinePreviewDisabled",void 0);_.T([_.B(),_.r("design:type",Object)],jn.prototype,"disableStickyFilterBar",void 0);
_.T([_.B(),_.r("design:type",Object)],jn.prototype,"transparentBackgroundChipsBar",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jn.prototype,"hideChipsBar",void 0);_.T([_.B(),_.r("design:type",Object)],jn.prototype,"isWatchDefaultLayout",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jn.prototype,"continuationShowButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jn.prototype,"rowReducedHorizontalMargin",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jn.prototype,"useCompactList",void 0);_.T([_.B({selector:function(M){return _.tn(M.entities).length>0}}),
_.r("design:type",Object)],jn.prototype,"manualDownloadsPresent",void 0);_.T([_.B({selector:function(M){return _.hn(M.entities).length>0}}),
_.r("design:type",Object)],jn.prototype,"smartDownloadsPresent",void 0);_.T([_.B({selector:_.lc}),_.r("design:type",Object)],jn.prototype,"isOnline",void 0);_.T([_.B({selector:_.VuF}),_.r("design:type",Object)],jn.prototype,"shouldRenderDownloadsBanner",void 0);_.T([_.B({selector:_.H3y}),_.r("design:type",Object)],jn.prototype,"shouldRenderDownloadsBannerUpsell",void 0);_.T([_.B({selector:_.RCw}),_.r("design:type",Object)],jn.prototype,"hasOptedIntoSmartDownloads",void 0);
_.T([_.KT("useCompactList"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jn.prototype,"onUseCompactListChange",null);_.T([_.KT("sizing","typographyBump"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jn.prototype,"onSizingChange",null);_.T([_.B({selector:_.Jvy}),_.r("design:type",Number)],jn.prototype,"miniplayerPlaybackState",void 0);_.T([_.B({selector:_.at}),_.r("design:type",Boolean)],jn.prototype,"miniplayerIsActive",void 0);
_.T([_.B({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.r("design:type",Boolean)],jn.prototype,"isInlinePreviewEnabled",void 0);_.T([_.B({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.r("design:type",String)],jn.prototype,"sizing",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jn.prototype,"elementsPerRow",void 0);
_.T([_.B(),_.r("design:type",Object)],jn.prototype,"typographyBump",void 0);_.T([_.B(),_.r("design:type",Number)],jn.prototype,"itemWidth",void 0);_.T([_.ET("#header"),_.r("design:type",HTMLElement)],jn.prototype,"headerElement",void 0);_.T([_.ET("#contents"),_.r("design:type",HTMLElement)],jn.prototype,"contentsElement",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jn.prototype,"dataChanged",null);
_.T([_.yO("data.contents.length"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jn.prototype,"contentLengthChanged",null);_.T([_.GQ("yt-request-elements-per-row"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jn.prototype,"onRequestElementsPerRow",null);
_.T([_.GQ("yt-rich-shelf-renderer-collapse"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jn.prototype,"onRichShelfRendererCollapse",null);_.T([_.yO("shouldRenderDownloadsBanner","shouldRenderDownloadsBannerUpsell","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent","isOnline"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jn.prototype,"handleRerenderDownloadsData",null);
_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],jn.prototype,"entitySelectorType",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.targetId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"isSub",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.targetId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"isWatch",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data.targetId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"isShortsPanel",null);_.T([_.B({reflectToAttribute:!0}),_.c("isWatch"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"reducedTopMargin",null);_.T([_.B({reflectToAttribute:!0}),_.c("data","isWatch","isWatchDefaultLayout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"noTopMargin",null);
_.T([_.B({reflectToAttribute:!0}),_.c("isInlinePreviewEnabled","shownItems"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"topRowEndorsement",null);_.T([_.c("data.header"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"hideHeader",null);_.T([_.GQ("yt-rich-grid-reflow"),_.r("design:type",Function),_.r("design:paramtypes",[Boolean]),_.r("design:returntype")],jn.prototype,"reflowContent",null);
_.T([_.GQ("yt-reload-continuation-finish"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jn.prototype,"onReloadContinuationFinish",null);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"isSlimGrid",null);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"isShortsGrid",null);
_.T([_.c("data","isSlimGrid","isShortsGrid"),_.B(),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"noRichItemGutterMargins",null);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"isShortsGridSlim",null);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"isCompactGrid",null);
_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"isDefaultGrid",null);_.T([_.c("data.targetId"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"hideChipsBarOnWatch",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jn.prototype,"onIsShortsGridChange",null);
_.T([_.c("data.enableContentSpecificAspectRatio"),_.B(),_.r("design:type",Boolean),_.r("design:paramtypes",[])],jn.prototype,"force16By9ThumbnailAspectRatio",null);_.T([_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],jn.prototype,"continuationTriggerOffset",null);_.T([_.b({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],jn);
_.z(jn,"ytd-rich-grid-renderer",function(){if(ewG!==void 0)return ewG;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" hidden="[[hideHeader]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="big-yoodle" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="masthead-ad" hidden="[[isFilteredFeed]]" class="style-scope ytd-rich-grid-renderer"></div>\n<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-rich-grid-renderer">\n  <div id="title" class="style-scope ytd-rich-grid-renderer">[[getSimpleString(data.title)]]</div>\n</div>\n<div id="spinner-container" class="style-scope ytd-rich-grid-renderer">\n  <tp-yt-paper-spinner-lite active="[[computeIsReloading()]]" class="style-scope ytd-rich-grid-renderer">\n  </tp-yt-paper-spinner-lite>\n</div>\n<div id="contents" class="style-scope ytd-rich-grid-renderer"></div>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ewG=M},{mode:2});var LLC=_.U(function(M){return _.W("yt-feedback-prompt-view-model",{class:_.Hb("ytFeedbackPromptViewModelHost",M.className)},_.W(_.d,{cond:function(){return M.data().text},
then:function(q){return _.W(_.Ft,{text:q})}}),_.W("div",{class:"ytFeedbackPromptViewModelButtons"},_.W(_.yu,{data:function(){return M.data().likeButton}},{likeButtonViewModel:_.rn}),_.W(_.yu,{data:function(){return M.data().dislikeButton}},{dislikeButtonViewModel:_.TR})))},"Gm");var YAC=_.U(function(M){var q=M.thumbsUp,G=M.thumbsDown,K=M.rightAlignThumbs;M=_.k(_.lQ(!1,void 0,"OxPsH"));var n=M.next().value,E=M.next().value;M=_.k(_.lQ(!1,void 0,"V5vWne"));var p=M.next().value,y=M.next().value;M={};return _.W("div",{class:_.Hb("ytwThumbsUpDownThumbs",(M.ytwThumbsUpDownRightAlign=function(){return K==null?void 0:K()},M))},_.W(_.Dj,{data:q,
onToggle:function(Y){E(Y);p()&&y(!1)},
buttonShapeOverrides:function(){return{toggled:n()}}}),_.W(_.Dj,{data:G,
onToggle:function(Y){y(Y);n()&&E(!1)},
buttonShapeOverrides:function(){return{toggled:p()}}}))},"Hm");
YAC.idomCompat=!0;var A9L=_.U(function(M){var q=function(){return M.data().pendingStateEntityKey||""},G=_.No(_.Q8y,q),K=function(){var y;
if(!(y=M.disabled())){var Y;y=!((Y=G())==null||!Y.isPendingResponse)}return y},n=_.k(_.lQ(ogC(""),void 0,"hpYQRd")),E=n.next().value,p=n.next().value;
_.mT(function(){requestAnimationFrame(function(){var y=M.data().onShowAnimationMs||0;y=y>0?ogC("--chip-animation-duration: "+y+"ms;"):ogC("");p(y)})});
return _.W("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:E},_.W(_.bf,{each:function(){return M.data().chipData||[]},
keyBy:"REFERENCE"},function(y){return _.W(WLW,{data:y,disabled:K,pendingStateKey:q,onError:M.onError})}))},"Jm"),WLW=_.U(function(M){var q=_.yw("button"),G=_.k(_.lQ(!0,void 0,"rCUa8b")),K=G.next().value,n=G.next().value,E=function(){return M.data().text.content},p=function(){return M.data().transparentWhenLoading},y=_.pp(_.gx.currentPageSubTypeSelector),Y=function(){var v;
return(v=_.AL().resolve(_.WR(_.Wln)))==null?void 0:_.Zna(v,y())},A=_.sq(function(v){var h,t,O,a,g,D,J,Z;
return _.L(function(V){switch(V.nextAddress){case 1:v.stopPropagation();if(M.disabled())return V.return();t=String(Math.floor(((h=_.Mo())==null?void 0:h.getCurrentTime())||0)*1E3);O="youchat-"+Date.now();a=function(){_.oM(M.data().onClick||{});var S={continuationCommand:{token:M.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},m={inputComposerFormData:{clientMessageId:O,playerOffsetMs:t,pageContext:Y()}};return new Promise(function(R,se){_.oM(S,{form:{formData:m},commandController:{onSuccess:function(yY,
d$){R(d$)},
onServerError:function(yY,d$){se(d$.error)}}})})};
g=_.IUA(M.pendingStateKey());g(!0);_.YLk("#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");n(!1);_.Cv(V,2);return V.yield(a(),4);case 4:_.KF(V,3);break;case 2:D=_.i5(V),(Z=(J=M).onError)==null||Z.call(J,D);case 3:g(!1),_.gL(V)}})});
return _.W(_.d,{cond:K,then:function(){return _.W("div",{class:"ytwYouChatChipsDataChipWrapper"},_.W("button",{el:q,class:"ytwYouChatChipsDataChip","data-disabled":M.disabled,"data-transparent-loading":p,"on:click":A,tabindex:0},E))}})},"Km");var daG=_.U(function(M){var q=M.data;var G=M.initiallyExpanded;var K=function(){var A;return(A=q().conversationResourceData)==null?void 0:A.learningGuideData};
M=_.k(_.GM(function(){var A;return(A=G==null?void 0:G())!=null?A:!1}));
var n=M.next().value,E=M.next().value,p=function(){E(!0)},y=_.gY(function(){var A,v;
return(v=(A=K())==null?void 0:A.sections)!=null?v:[]},void 0,"QxyRyf"),Y=_.gY(function(){return y().length>4},void 0,"MEbwoe");
M=_.gY(function(){var A;return!n()&&Y()&&(A=K())!=null&&A.expandButton?y().slice(0,4):y()},void 0,"hIE70b");
return _.W("yt-conversation-resource-view-model",{class:_.Hb("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.W(_.yu,{data:M},{expandableMetadataViewModel:_.ZW5}),_.W(_.d,{cond:function(){return Y()&&!n()},
then:function(){return _.W("div",{id:"showMoreButton"},_.W(_.yu,{data:function(){var A;return(A=K())==null?void 0:A.expandButton}},{buttonViewModel:function(A){return _.W(_.Wf,{data:A.data,
onClick:p})}}))}}))},"Lm");var vCL=_.U(function(M){var q=function(){var Z;return(Z=M.data().text)==null?void 0:Z.content},G=function(){var Z,V;
return(Z=M.data().webData)==null?void 0:(V=Z.textResult)==null?void 0:V.content},K=_.AL().resolve(_.Dg),n=_.qo(),E=function(){return M.data().chatResponseStyle},p=function(){return!M.data().transparentBackground},y=function(){return M.data().rightAlignThumbs},Y=function(){return M.data().animationUrl==="https://www.gstatic.com/youtube/img/lottie/youchat_animations/gemini_twirl_v2.json"||M.data().animationUrl==="/google3/video/youtube/web/shared/testdata/animation/gemini_twirl_v2.json"},A=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:Y()?"0 0 1400 1400":"12 0 48 48"},name:"YOUCHAT_ICON",path:M.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},v=function(){var Z;
return M.data().webData||((Z=M.data().text)==null?void 0:Z.content)||M.data().videoResultsData||M.data().conversationResourceViewModel||M.data().quiz||M.data().richContent},h=function(){return!!M.data().sectionHeader||v()},t=function(){var Z;
return(Z=M.data().videoResultsData)==null?void 0:Z.videoShelf},O=function(){var Z;
return(Z=M.data().webData)==null?void 0:Z.sourcesShelf},a=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:M.data().thumbsDownViewModel&&M.data().thumbsUpViewModel},g=function(){return _.C(M.data().thumbsUpViewModel,_.M1)},D=function(){return _.C(M.data().thumbsDownViewModel,_.M1)};
_.mT(function(){requestAnimationFrame(function(){var Z;(Z=M.shouldAnimateIcon)!=null&&Z.call(M)&&DMW(n.lottieEl)})});
var J={};return _.W("you-chat-item-view-model",{class:_.Hb("ytwYouChatItemViewModelYouChatItemViewModel",(J.ytwYouChatItemViewModelColumnLayout=function(){return Y()},J)),
"data-target-id":function(){return M.data().id||""}},_.W(_.d,{cond:function(){return M.data().removeIcon?!1:h()},
then:function(){var Z={};return _.W("div",{"aria-hidden":"true"},_.W(_.C3,{className:_.Hb("ytwYouChatItemViewModelIcon",(Z.ytwYouChatItemViewModelRtl=K==="rtl",Z.ytwYouChatItemViewModelHidden=function(){return!(M.data().hideIcon||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||E()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:h())},Z)),
animationName:"YOUCHAT_ICON",data:A,animationRef:n}))}}),_.W(_.d,{cond:h,
then:function(){var Z={};return _.W("div",{class:_.Hb("ytwYouChatItemViewModelHost",(Z.ytwYouChatItemViewModelHostNoPadding=function(){return!!M.data().sectionHeader&&!v()},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},Z.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return E()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},
Z.ytwYouChatItemViewModelGradientBackground=p,Z)),
role:"alert"},_.W(_.d,{cond:q,then:function(V){return _.W(_.Fd,{text:V,wrapCodeBlocks:!0})}}),_.W(_.yu,{data:function(){return M.data().sectionHeader}},{sectionHeaderViewModel:function(V){var S={};
return _.W(_.CU,{data:V.data,className:_.Hb("ytwYouChatItemViewModelSectionHeader",(S.ytwYouChatItemViewModelSectionHeaderNoPadding=function(){return!!M.data().sectionHeader&&!v()},S)),
forceSmallLayout:!0})}}),_.W(_.d,{cond:G,
then:function(V){return _.W(_.Fd,{text:V,wrapCodeBlocks:!0})}}),_.W(_.d,{cond:t,
then:function(){return _.W("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.W(_.yu,{data:function(){var V;return(V=M.data().videoResultsData)==null?void 0:V.videoShelf}},{horizontalShelfViewModel:function(V){return _.W(_.Rd,{data:V.data,
hasPeek:!0,disableArrows:!1,protectBackground:!0})}}))}}),_.W(_.d,{cond:O,
then:function(){return _.W("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.W(_.yu,{data:function(){var V;return(V=M.data().webData)==null?void 0:V.sourcesShelf}},{horizontalShelfViewModel:function(V){return _.W(_.Rd,{data:V.data,
hasPeek:!0,disableArrows:!1})}}))}}),_.W(_.yu,{data:function(){return M.data().conversationResourceViewModel}},{conversationResourceViewModel:daG}),_.W(_.yu,{data:function(){return M.data().quiz}},{learningJourneyQuizViewModel:_.lmJ}),_.W(_.yu,{data:function(){return M.data().richContent}},{cardViewModel:_.tgv,
linearLayoutViewModel:_.r0}),_.W(_.d,{cond:a,then:function(){return _.W(YAC,{thumbsUp:g,thumbsDown:D,rightAlignThumbs:y})}}))}}),_.W(_.d,{cond:function(){return M.data().chipsData},
then:function(Z){return _.W(A9L,{data:Z,disabled:M.pending,onError:M.onError})}}))},"Nm");
vCL.idomCompat={callbacks:{onError:!0,onSend:!0}};var hGA=_.U(function(M){var q=function(){return M.data().choiceSelectedText},G=function(){return M.data().hasGradientBackground},K={};
return _.W("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.W(_.d,{cond:q,then:function(){return _.W("div",{class:"ytYouChatUserTurnChoiceSelected"},_.W(_.Ft,{text:q}))}}),_.W("div",{class:_.Hb("ytYouChatUserTurnUserMessage",(K.ytYouChatUserTurnGradientContainer=G,K.ytYouChatUserTurnDefaultContainer=function(){return!G()},K))},function(){return M.data().text}))},"Om");var tMe=_.U(function(M){var q=_.k((0,_.TdB)(M.data)).next().value;return _.W("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return M.data().targetId||""},
"aria-busy":function(){var G,K;return(K=(G=q().contents)==null?void 0:G.some(function(n){return!!n.chatLoadingViewModel}))!=null?K:!1}},_.W(_.yu,{data:function(){return M.data().header}},{chipBarViewModel:_.m9S,
sectionHeaderViewModel:_.CU}),_.W(_.yu,{data:function(){return q().contents}},{accordionViewModel:_.cHB,
alertBannerViewModel:_.FjB,chatLoadingViewModel:_.X4I,chatUserTurnViewModel:hGA,feedbackPromptViewModel:LLC,gridShelfViewModel:function(G){return _.W(_.Rvv,{data:G.data,shouldUseOwnContainerSize:!0,marginSettings:M.marginSettings})},
learningJourneyLoaderViewModel:_.CeJ,linearLayoutViewModel:_.r0,lockupViewModel:function(G){return _.W(_.wp,{data:G.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:M.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
sectionHeaderViewModel:_.CU,videoOverviewViewModel:_.bo2,youChatItemViewModel:function(G){return _.W(vCL,{data:G.data,pending:!1})}}))},"Pm");_.S5(_.U(function(M){var q=_.k((0,_.TdB)(M.data)).next().value,G=_.pI("yt-section-list-renderer"),K=_.k(_.lQ(void 0,void 0,"L1yEd")),n=K.next().value,E=K.next().value,p=function(){var y;return _.C((y=M.data().sectionListLayoutConfiguration)==null?void 0:y.layoutConfiguration,mM9)};
_.SK(function(){var y,Y=(y=G.value)==null?void 0:y.clientWidth;if(p()){y=p();var A=y.responsiveSize;Y=Y<528?"CONTAINER_SIZE_NARROW":Y<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var v=_.k(y.responsiveMap||[]);for(var h=v.next();!h.done;h=v.next())if(h=h.value,h.containerSize===Y){v=h.containerType;break b}v=void 0}if(v&&A){b:{if(v==="CONTAINER_TYPE_VERTICAL_LIST")if(A==="RESPONSIVE_SIZE_STANDARD"){if(Y!=="CONTAINER_SIZE_NARROW"){h="50%";break b}}else{h=Y==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}h=void 0}y={responsiveSize:A,containerSize:Y,containerType:v,force16By9ThumbnailAspectRatio:!y.enableContentSpecificAspectRatio,contentPreviewWidth:h,fullbleed:(v==="CONTAINER_TYPE_VERTICAL_LIST"||v==="CONTAINER_TYPE_GRID")&&Y==="CONTAINER_SIZE_NARROW"&&!1}}else y=void 0}else y=void 0;E(y)});
return _.W("yt-section-list-renderer",{class:_.Hb("ytSectionListRendererHost",M.className),el:G,"data-target-id":function(){return M.data().targetId||""}},_.W(_.yu,{data:function(){return q().contents}},{itemSectionRenderer:function(y){return _.W(tMe,{data:y.data,
containerLayoutConfig:n,marginSettings:M.marginSettings})}}))},"Qm"),"yt-section-list-renderer",{props:{data:_.Hz,
className:_.xj,marginSettings:_.Hz}});var OGy;var wt3;var Cyt=function(){return _.Q.apply(this,arguments)||this};
_.l(Cyt,_.Q);_.T([_.B(),_.r("design:type",Object)],Cyt.prototype,"data",void 0);_.T([_.aO({is:"yt-alert-renderer",disableElementRegistration:!0})],Cyt);
_.z(Cyt,"yt-alert-renderer",function(){if(wt3===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;OGy===void 0&&(OGy=document.createElement("template"));var K=OGy;G.call(q,K.content.cloneNode(!0),M.content.firstChild);wt3=M}M=wt3;return M},{mode:2});
}catch(e){_._DumpException(e)}
try{
var AKw;AKw=function(M,q,G,K){G||(M?K&&(K.DOCUMENT_HIDDEN&&document.visibilityState==="hidden"||K.WINDOW_SIZE_CHANGED&&(q.width!==window.innerWidth||q.height!==window.innerHeight)||K.SAFARI_ABORTED_BY_NEW_TRANSITION&&M instanceof DOMException&&M.name==="AbortError"&&M.message.includes("Old view transition aborted by new view transition"))||_.T6(M):_.T6(Error("vj")))};
_.drw=function(M,q){q=q===void 0?{}:q;var G,K,n,E,p,y,Y,A,v,h,t,O,a;return _.L(function(g){switch(g.nextAddress){case 1:G=q;K=G.shouldWrap===void 0?!0:G.shouldWrap;n=G.skipTransitionTimeoutMs===void 0?300:G.skipTransitionTimeoutMs;E=G.beforeTransition;p=G.afterTransition;if(!K||!document.startViewTransition||document.visibilityState==="hidden")return g.return(M());y={width:window.innerWidth,height:window.innerHeight};Y=!1;(A=E)==null||A();_.Cv(g,2);v=document.startViewTransition(M);h=setTimeout(function(){v.skipTransition();
Y=!0},n);
return g.yield(v.ready,4);case 4:return clearTimeout(h),g.yield(v.finished,5);case 5:clearTimeout(h);(t=p)==null||t();_.KF(g,0);break;case 2:O=_.i5(g),(a=p)==null||a(),AKw(O,y,Y,q.ignoredErrors),_.gL(g)}})};
_.vUU=function(M,q){var G=_.pDY(q);G!=="javascript:"&&G!=="data:"&&M.setAttribute("href",q)};
_.oV=function(){for(var M=Array(36),q=0,G,K=0;K<36;K++)K==8||K==13||K==18||K==23?M[K]="-":K==14?M[K]="4":(q<=2&&(q=33554432+Math.random()*16777216|0),G=q&15,q>>=4,M[K]=_.SBs[K==19?G&3|8:G]);return M.join("")};
_.h3I=function(M,q,G){M.persistentPanelContainerMap.set(G,q)};/*

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 tlU=_.DQ(['<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>']),
O_w=_.DsB(tlU);O_w.setAttribute("style","display: none;");document.head.appendChild(O_w.content);_.lL=_.A0Y(function(M){var q=_.iI("DIV");M&&(q.className=M);q.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";M=_.iI("DIV");_.D_M(M,"200px","200px");q.appendChild(M);document.body.appendChild(q);M=q.offsetWidth-q.clientWidth;_.cX(q);return M});var wEw;var CaR;var XE=function(){var M=_.Q.apply(this,arguments)||this;M.icon=null;return M};
_.l(XE,_.Q);XE.prototype.dismiss=function(){_.jP(this.hostElement,"yt-live-chat-error-message-dismiss")};
XE.prototype.computeIcon=function(M){return M&&M.iconType?"yt-icons:"+M.iconType.toLowerCase():"yt-icons:close"};
_.T([_.B(),_.r("design:type",Object)],XE.prototype,"data",void 0);_.T([_.B({computed:"computeIcon(data.icon)"}),_.r("design:type",Object)],XE.prototype,"icon",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],XE);
_.z(XE,"yt-live-chat-error-message-renderer",function(){if(CaR===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;wEw===void 0&&(wEw=document.createElement("template"));var K=wEw;G.call(q,K.content.cloneNode(!0),M.content.firstChild);CaR=M}M=CaR;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var bWt,UTA,xTW,zBG,reL,RB3,fPG,F_M,HWG,eBG,$T3,BK,s9v,MKk,qbv,G_W,KTa,n2A,E2M,NUM,k_9,pMy,y3W,LT3,YbC,WTe,A3k,d$L,v2v,hy9,tKG,OXC,wML,CfC,akW,o2k,lkC,iXL,g2k,Q93,IkC,D$W,u1W,XM9,PfC,bXG,U$M,x$t,zyC,m$L,J39;bWt=function(M,q){return _.sX(M.entities,"timedMarkersListSyncEntity",q)};
UTA=function(M,q){return _.sX(M.entities,"liveReactionsDataEntity",q)};
xTW=function(M,q){M=_.sX(M.entities,"booleanEntity",q);return!(!M||!M.value)};
zBG=function(M,q){var G=_.Cx();G&&M&&_.QQ(G,_.yx(M),q)};
_.mTv=function(M){return M.watch.isWatchActive};
_.S93=function(M){return _.Cp(M)||_.a2(M)||_.n7y(M)};
_.TY9=function(M){return!_.S93(M)};
_.gy=function(M){return M.watch.watchScrollTop};
reL=function(M){return M.watch.isLiveChatCollapsed};
_.jYC=function(){_.w("web_watch_log_theater_mode")&&_.BDY("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.V_C=function(M,q,G){if(!M.includes("START_TIME_PLACEHOLDER")||!M.includes("END_TIME_PLACEHOLDER"))return M;var K=new Date(0),n=new Date(0);K.setUTCMilliseconds(q);n.setUTCMilliseconds(G);return M.replace("START_TIME_PLACEHOLDER",_.uc(K,7)).replace("END_TIME_PLACEHOLDER",_.uc(n,7))};
RB3=function(M,q){return _.sX(M.entities,"booleanEntity",q)};
fPG=function(){return function(M){_.Zp(_.LL("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:M}))}};
F_M=function(M){switch(M){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}};
HWG=function(M,q,G){var K=_.aM(G);M&&q&&K&&M.getPlayerPromise().then(function(n){_.uEe(K)&&_.S1();(new _.Zi(n)).executeCommand(K,q);_.w("continue_playback_on_desktop_companion_click")||n.pauseVideo()})};
eBG=function(M){var q=_.TM(),G;if(G=_.sx("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var K;G=(K=G())==null?void 0:K.layoutId}else G=null;HWG(q,G,M)};
$T3=function(M){var q=_.TM(),G;if(G=_.sx("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var K;G=(K=G())==null?void 0:K.layoutId}else G=null;HWG(q,G,M)};
BK=function(M,q){var G=M<0?"-":"";M=Math.abs(M);var K=Math.floor(M/3600),n=Math.floor(M)%3600,E=Math.floor(n/60);n=Math.floor(n)%60;var p="";(q===void 0?0:q)&&(p="."+Math.round((M-Math.floor(M))*10));return K>0?G+K+":"+(E<10?"0"+E:""+E)+":"+(n<10?"0"+n:""+n)+p:G+E+":"+(n<10?"0"+n:""+n)+p};
s9v=function(M){var q=M.match(/[^0-9:\.]/g);if(q&&q.length>0)return null;M=M.split(":");if(M.length===0||M.length>3)return null;q=1;for(var G=0;M.length>0;){var K=M.pop();if(K===void 0)break;var n=Number(K);if(K===""||isNaN(n))return null;G+=n*q;q*=60}return G};
MKk=function(M,q,G,K){M=Math.max(G,M);q=Math.min(q,K-G);M+q>K?(G=K,M=G-q):G=M+q;return{start:M,end:G}};
qbv=function(M,q,G,K,n,E){M<G?M=G:M+n>K&&(M=K-n);q>K&&(q=K);q=Math.min(M+E,Math.max(M+n,q));return{start:M,end:q}};
G_W=function(M,q,G,K,n,E){q>K?q=K:q-n<G&&(q=G+n);M<G&&(M=G);M=Math.min(q-n,Math.max(q-E,M));return{start:M,end:q}};
KTa=function(M){return _.w("web_transcript_cue_id_killswitch")?String(M):"ytd-transcript-renderer_"+M};
n2A=function(M){return _.w("web_transcript_cue_id_killswitch")?!0:M.startsWith("ytd-transcript-renderer")};
E2M=function(M){var q=_.TM(),G;if(G=_.sx("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var K;G=(K=G())==null?void 0:K.layoutId}else G=null;HWG(q,G,M)};
NUM=function(M){return{listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:M}}]}}}};
k_9=function(M,q,G){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:q,hasGradientBackground:G}}],insertByPositionInSection:{sectionTargetId:M,position:"INSERTION_POSITION_LAST"}}}]}}}};
pMy=function(M){M.style.height="auto";M.style.height=Math.min(M.scrollHeight||20,80)+"px"};
y3W=function(){var M;return String(Math.floor(((M=_.Mo())==null?void 0:M.getCurrentTime())||0)*1E3)};
LT3=function(M){var q=_.TM(),G;G=(G=_.sx("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.layoutId:null;HWG(q,G,M)};
YbC=function(M){var q=_.TM(),G;G=(G=_.sx("yt.www.ads.eventcache.getLastCompanionData"))?(G=G())&&G.layoutId:null;HWG(q,G,M)};
WTe=function(M){if(M.simpleText)return[{text:M.simpleText}];var q;return(q=M.runs)!=null?q:[]};
A3k=function(M){var q=M.startEndTimeTemplate,G=M.startTimeUtcMillis;M=M.endTimeUtcMillis;if(q&&G&&M)return _.bc(_.V_C(_.UX(q),Number(G),Number(M)))};
d$L=function(M,q){var G,K,n=M==null?void 0:(G=M.viewCount)==null?void 0:(K=G.videoViewCountRenderer)==null?void 0:K.shortViewCount;if(!q&&n)return n;var E,p;return M==null?void 0:(E=M.viewCount)==null?void 0:(p=E.videoViewCountRenderer)==null?void 0:p.viewCount};
v2v=function(M,q){var G=M==null?void 0:M.relativeDateText;return!q&&G?[G,!0]:[M==null?void 0:M.dateText,!1]};
hy9=function(M,q,G,K,n){K=K===void 0?"":K;n=n===void 0?!1:n;var E=d$L(M,q),p=_.k(v2v(M,q)),y=p.next().value;p=p.next().value;q=q?M==null?void 0:M.sponsorsOnlyFirstTimeLongText:M==null?void 0:M.sponsorsOnlyFirstTimeShortText;var Y=[];G&&E&&Y.push(E);!G&&p||!y||Y.push(y);M=[n?M==null?void 0:M.subtitle:void 0].concat(_.Ui(Y),[q,M==null?void 0:M.stationName,M==null?void 0:M.rating,M?A3k(M):void 0,M==null?void 0:M.upNextProgramText,M==null?void 0:M.superTitleLink]).filter(function(A){return!!A});
G={runs:[]};for(n=0;n<M.length;n++)G.runs.push.apply(G.runs,_.Ui(WTe(M[n]))),n<M.length-1&&G.runs.push({text:" "+K+" "});return G};
tKG=function(M){return M.filter(function(q){return!_.C(q,_.mz)})};
OXC=function(M){var q,G,K,n;if(M=M==null?void 0:(q=M.contents)==null?void 0:(G=q.twoColumnWatchNextResults)==null?void 0:(K=G.results)==null?void 0:(n=K.results)==null?void 0:n.contents){var E,p;return(p=(E=M.find(function(y){return!!y.videoPrimaryInfoRenderer}))==null?void 0:E.videoPrimaryInfoRenderer)==null?void 0:p.updatedMetadataEndpoint}};
wML=function(M,q){var G;return(G=M.sourceConfigs)==null?void 0:G.find(function(K){return K.videoId===q})};
CfC=function(M){return M==="End of video"||M==="End of playlist"};
akW=function(M){var q,G,K,n;return(q=M.getWatchNextResponse())==null?void 0:(G=q.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(n=K.playlist)==null?void 0:n.playlist};
o2k=function(M){var q,G,K,n,E,p;return(q=akW(M))==null?void 0:(G=q.playlistButtons)==null?void 0:(K=G.menuRenderer)==null?void 0:(n=K.topLevelButtons)==null?void 0:(E=n[0])==null?void 0:(p=E.playlistLoopButtonRenderer)==null?void 0:p.playlistLoopStateEntityKey};
lkC=function(M){var q=_.AL().resolve(_.$x),G;return(q=(G=_.C(q.getAutoplayEndpoint(),_.Jl))==null?void 0:G.playlistId)&&q===M};
iXL=function(M,q,G,K,n){function E(){_.r8.cancelJob(QP);var p=XM9(q,G/M.getPlaybackRate()),y=p.hours,Y=p.minutes;p=(p.seconds*1E3||6E4)/M.getPlaybackRate();M.setVideoTimeLeft(PfC(y,Y));K&&M.getPlayerState()!==0&&M.setSleepTimerTimeLeft(PfC(y,Y,!0));(y>0||Y>0)&&!n&&(QP=_.WO(_.r8,E,p))}
_.r8.cancelJob(QP);QP=_.WO(_.r8,E)};
g2k=function(M,q,G){function K(){_.r8.cancelJob(c3e);var n=XM9(q,G),E=n.hours;n=n.minutes;var p=6E4/M.getPlaybackRate();if(E>0||n>0)M.setSleepTimerTimeLeft(PfC(E,n,!0)),c3e=_.WO(_.r8,K,p)}
_.r8.cancelJob(c3e);c3e=_.WO(_.r8,K)};
Q93=function(M,q){var G=M.getVolume()/(q/500),K=function(n){_.r8.cancelJob(BUW);var E=Math.floor(n-G);M.setVolume(E,!1);E>0&&(BUW=_.WO(_.r8,function(){K(E)},500))};
_.r8.cancelJob(BUW);BUW=_.WO(_.r8,function(){K(M.getVolume())})};
IkC=function(M,q){_.r8.cancelJob(BUW);q&&M.syncVolume()};
D$W=function(){var M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.Ge("SLEEP_TIMER_DISRUPTED")}}}}};_.AL().resolve(_.vR).resolveCommand(M)};
u1W=function(M){return(M.getDuration()-M.getProgressState().current)*1E3};
XM9=function(M,q){M=M+q-(0,_.d8)();if(M<=0)return{hours:0,minutes:0,seconds:0};var G=new J39(0,0,0,0,0,0,M);M=G.getHours();q=G.getMinutes();G=G.getSeconds();G!==0&&q++;q!==0&&q%60===0&&(M++,q=0);return{hours:M,minutes:q,seconds:G}};
PfC=function(M,q,G){return M>0&&q>0?G?_.Ge("TIME_LEFT_HOURS_MINUTES",{hours:M.toString(),minutes:q.toString()}):_.Ge("TIME_HOURS_MINUTES",{hours:M.toString(),minutes:q.toString()}):M>0?G?_.K7("TIME_LEFT_HOURS",M):_.K7("TIME_HOURS",M):G?_.Ge("TIME_LEFT_MINUTES",{minutes:q.toString()}):_.Ge("TIME_MINUTES",{minutes:q.toString()})};
bXG=function(M,q){if(M.timelyActions)return M.timelyActions.find(function(G){var K;return((K=_.C(G,ZXe))==null?void 0:K.cueRangeId)===q})};
U$M=function(M){var q=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.kk(M);M.keyMap_.forEach(function(G,K){_.zF(q,K)||this.remove(K)},M)};
x$t=function(M,q){M.reloadContinuationItemsCommandMatcher=q};
_.Is=function(M,q){M.insertBefore(q,M.childNodes[0]||null)};
zyC=function(M){if(M>=48&&M<=57||M>=96&&M<=106||M>=65&&M<=90||_.Hh&&M==0)return!0;switch(M){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 _.Fa;default:return!1}};
m$L=function(M){if(M.altKey&&!M.ctrlKey||M.metaKey||M.keyCode>=112&&M.keyCode<=123)return!1;if(zyC(M.keyCode))return!0;switch(M.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!_.Fa;default:return M.keyCode<166||M.keyCode>183}};
J39=function(M,q,G,K,n,E,p){this.date=typeof M==="number"?new Date(M,q||0,G||1,K||0,n||0,E||0,p||0):new Date(M&&M.getTime?M.getTime():_.Sh())};
_.TO(J39,_.PW);_.N=J39.prototype;_.N.getHours=function(){return this.date.getHours()};
_.N.getMinutes=function(){return this.date.getMinutes()};
_.N.getSeconds=function(){return this.date.getSeconds()};
_.N.getMilliseconds=function(){return this.date.getMilliseconds()};
_.N.getUTCDay=function(){return this.date.getUTCDay()};
_.N.getUTCHours=function(){return this.date.getUTCHours()};
_.N.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.N.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.N.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.N.setHours=function(M){this.date.setHours(M)};
_.N.setMinutes=function(M){this.date.setMinutes(M)};
_.N.setSeconds=function(M){this.date.setSeconds(M)};
_.N.setMilliseconds=function(M){this.date.setMilliseconds(M)};
_.N.setUTCHours=function(M){this.date.setUTCHours(M)};
_.N.setUTCMinutes=function(M){this.date.setUTCMinutes(M)};
_.N.setUTCSeconds=function(M){this.date.setUTCSeconds(M)};
_.N.setUTCMilliseconds=function(M){this.date.setUTCMilliseconds(M)};
_.N.add=function(M){_.PW.prototype.add.call(this,M);M.hours&&this.setUTCHours(this.date.getUTCHours()+M.hours);M.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+M.minutes);M.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+M.seconds)};
_.N.JSC$11330_toIsoString=function(M){var q=_.PW.prototype.JSC$11330_toIsoString.call(this,M);return M?q+"T"+_.Me(this.getHours(),2)+":"+_.Me(this.getMinutes(),2)+":"+_.Me(this.getSeconds(),2):q+"T"+_.Me(this.getHours(),2)+_.Me(this.getMinutes(),2)+_.Me(this.getSeconds(),2)};
_.N.equals=function(M){return this.getTime()==M.getTime()};
_.N.toString=function(){return this.JSC$11330_toIsoString()};
_.N.clone=function(){var M=new J39(this.date);M.firstDayOfWeek_=this.firstDayOfWeek_;M.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return M};
_.SbC=function(M){return _.RJ({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:M}})};var TUM=new _.e0("imageTileRenderer");var r3t=new _.e0("promotedSparklesWebRenderer");var j9v=new _.e0("adGridCardCollectionViewModel");var VKW=new _.e0("carouselTitleViewModel");var Ry9=new _.e0("ctaCarouselItemViewModel");var fkA=new _.e0("textFieldViewModel");_.FTG=new _.e0("engagementPanelHeaderShowNavigationButtonCommand");var HXC=new _.e0("hideEngagementPanelScrimAction");var eyk=new _.e0("setActivePanelItemAction");var $$C=new _.e0("showEngagementPanelScrimAction");var suv=new _.e0("updateEngagementPanelAction");var MSG=new _.e0("updateSearchInVideoResultsAction");var qxe=new _.e0("transcriptCueGroupRenderer");var Gcv=new _.e0("transcriptCueRenderer");var K8A=new _.e0("transcriptFooterRenderer");var nJ9=new _.e0("engagementPanelAdSubtitleRenderer");var EJG=new _.e0("videoDescriptionFantasySectionViewModel");var NPC=new _.e0("deleteClipEngagementPanelCommand");var kce=new _.e0("loopCommand");var pRG=new _.e0("changeCreatorEndscreenVisibilityCommand");var yLC=new _.e0("liveChatCallForQuestionsRenderer");var L8C=new _.e0("updateTimedMarkersSyncObserverCommand");var ZXe=new _.e0("timelyActionViewModel");var YxW=new _.e0("timelyActionsOverlayViewModel");var W8W=new _.e0("repeatChapterCommand");var ALv=new _.e0("watchPlayerOverflowMenuCommand");var dz9=new _.e0("compositeVideoOverlayRenderer");var vJv=new _.e0("sortFilterSubMenuRenderer");var h9C=new _.e0("switchListItemViewModel");var tSC=new _.e0("inputComposerViewModel");var ODy=new _.e0("transcriptEditSegmentCommand");var wRG=new _.e0("transcriptUpdateSegmentTextCommand");var CjC=new _.e0("transcriptSearchBoxRenderer");var afG=new _.e0("transcriptSegmentListRenderer");var oJM=new _.e0("transcriptSegmentRenderer");_.lfC=new _.e0("updateDateTextAction");var XRL=new _.e0("updateTitleAction");var PjM=new _.e0("updateViewershipAction");var iDL=new _.e0("relatedChipCommand");var cLa=new _.e0("carouselLockupRenderer");var DX=new _.e0("expandableVideoDescriptionBodyRenderer");var gJC=new _.e0("videoDescriptionHeaderRenderer");var BPL=new _.e0("videoDescriptionYouchatSectionViewModel");_.u1=_.tL("kevlar_watch_page_horizontal_margin",24);_.Quk=_.tL("kevlar_watch_page_columns_top_padding",24);_.IfM=426+_.u1*2;_.JF=_.tL("kevlar_watch_two_column_width_threshold",1E3);_.DzC=_.u1*2;_.uN3=_.tL("kevlar_watch_secondary_width",402);_.JLA=_.tL("kevlar_watch_max_player_width",1280);_.ZDG=_.tL("kevlar_watch_flexy_metadata_height",136);_.bDv=_.DzC+310+_.u1;_.Uzy=_.DzC+360+_.u1;var xzW={PAUSE_CHAT:18};var z9e;var mz3;var ZX=function(){return _.Q.apply(this,arguments)||this};
_.l(ZX,_.Q);ZX.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
ZX.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var M=_.C(this.data.button,_.$N);M&&(M.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Yd.Object.defineProperties(ZX,{template:{configurable:!0,enumerable:!0,get:function(){if(mz3===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;z9e===void 0&&(z9e=document.createElement("template"));var K=z9e;G.call(q,K.content.cloneNode(!0),M.content.firstChild);mz3=M}M=mz3;return M}}});
_.T([_.P(_.zD),_.r("design:type",Object)],ZX.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ZX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B({selectorArgs:["data.enabledEntityKey"],selector:xTW,observer:"onEnabledChange"}),_.r("design:type",Boolean)],ZX.prototype,"enabled",void 0);_.T([_.B(),_.r("design:type",Object)],ZX.prototype,"data",void 0);_.T([_.aO({is:"yt-disableable-button-view-model",noInjection:!0})],ZX);var Sxa;var TPM;var rLA=["transVert01","transVert02","transVert03"],juL="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),b1=function(){var M=_.Q.apply(this,arguments)||this;M.emojiManager=_.F$;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};M.reactionBuckets=[];M.noEmojiIdentifier="NO_EMOJI";return M};
_.l(b1,_.Q);_.N=b1.prototype;_.N.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.N.desktopFountainEmojiSizePxChanged=function(){_.sT(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.N.createUserReactionAnimation=function(M){this.createEmojiAnimation(M,!0)};
_.N.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var M;((M=this.data)==null?0:M.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.LL("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Ui(this.emojiContainer.children)).forEach(function(q){q.remove()})};
_.N.detached=function(){this.cleanupFountain()};
_.N.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var M;this.reactionBuckets=_.xP.unsafeClone((M=this.emojiFountainData)==null?void 0:M.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.N.processEmojiBucket=function(M){var q=this;if(this.reactionBuckets&&!(M>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var G=this.reactionBuckets[M];this.generateEmojiAnimations(G);if(M<this.reactionBuckets.length-1){var K;if(G==null?0:(K=G.duration)==null?0:K.seconds)this.emojiBucketTimerId=setTimeout(function(){q.processEmojiBucket(M+1)},Number(G.duration.seconds)*1E3)}}};
_.N.generateEmojiAnimations=function(M){var q=this,G=this.getRandomEmojiIdFromBucketWithOverride(M);if(G&&G!==this.noEmojiIdentifier){var K=0;M.targetEps?(K=this.linearInterpolateBounded(1,20,100,12,M.emojiSizeIndex||0),this.createEmojiAnimation(G,!1,M.emojiAnimationMs,K),K=this.getEmojiDelayMsFromTargetEps(M.targetEps)):(this.createEmojiAnimation(G),K=this.getEmojiDelayMsFromDistribution(M.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){q.generateEmojiAnimations(M)},K)}};
_.N.getRandomEmojiIdFromBucketWithOverride=function(M){if(!(M&&M.reactionsData&&M.reactionsData.length&&M.totalReactions))return this.noEmojiIdentifier;for(var q=M.totalReactions,G=1,K=_.k(M.reactionsData),n=K.next();!n.done;n=K.next())n=n.value,(n.reactionWeightOverride||n.reactionWeightOverride===0)&&n.reactionCount&&(q-=n.reactionCount,G-=n.reactionWeightOverride);K=!0;G<0&&(K=!1,q=M.totalReactions,G=1);if(K&&G>0&&q===0)if(G===1){n=0;for(var E=_.k(M.reactionsData),p=E.next();!p.done;p=E.next())p=
p.value,p.reactionCount&&p.reactionCount>0&&n++;n=1/n;E=_.k(M.reactionsData);for(p=E.next();!p.done;p=E.next())p.value.reactionWeightOverride=n}else for(n=1/(1-G),E=_.k(M.reactionsData),p=E.next();!p.done;p=E.next())p=p.value,p.reactionWeightOverride&&(p.reactionWeightOverride*=n);n=Math.random();E=0;p=_.k(M.reactionsData);for(var y=p.next();!y.done;y=p.next())if(y=y.value,y.reactionCount&&(E=(y.reactionWeightOverride||y.reactionWeightOverride===0)&&K?E+y.reactionWeightOverride:E+G*y.reactionCount/
q,E>n&&(y.reactionCount--,M.totalReactions--,y=this.reactionItemToEmojiString(y),y!==this.noEmojiIdentifier)))return y;return this.noEmojiIdentifier};
_.N.reactionItemToEmojiString=function(M){if(M.unicodeEmojiId)return M.unicodeEmojiId;if(M.emoteId)return M.emoteId;if(M.videoReactionType)switch(M.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.N.createEmojiAnimation=function(M,q,G,K){q=q===void 0?!1:q;this.lastEmojiRequestedForTesting=M;var n=M.startsWith("yt-icons:"),E=_.RG(this.emojiManager,M);if(E||n){var p=document.createElement("emoji");p.classList.add("yt-emoji-fountain-view-model");p.classList.add(rLA[Math.floor(Math.random()*rLA.length)]);var y=document.createElement("div");y.classList.add("yt-emoji-fountain-view-model");y.classList.add("horizontal-container");y.classList.add(juL[Math.floor(Math.random()*juL.length)]);q?(G=document.createElement("div"),
G.classList.add("user-reaction-bubble"),G.classList.add("yt-emoji-fountain-view-model"),y.appendChild(G)):(G&&(p.style.animationDuration=G+"ms",y.style.animationDuration=G+"ms"),K&&(p.style.width=K+"px",p.style.height=K+"px"));n?(n=document.createElement("yt-icon"),n.polymerController.icon=M,K&&(n.style.width=K+"px",n.style.height=K+"px"),M=n):M=this.emojiManager.createEmoji(E,!1);M.classList.add("yt-emoji-fountain-view-model");y.appendChild(M);p.appendChild(y);this.emojiContainer.appendChild(p);
p.addEventListener("animationend",function(){p.remove()});
var Y,A;if((Y=this.data)==null?0:(A=Y.loggingDirectives)==null?0:A.trackingParams)q=q?_.$m(183501):_.$m(183500),zBG(this.data.loggingDirectives.trackingParams,q),_.v4H(q);setTimeout(function(){p&&p.remove()},2E3)}};
_.N.getEmojiDelayMsFromDistribution=function(M){return Math.random()*(M||1)*1E3};
_.N.getEmojiDelayMsFromTargetEps=function(M){return Math.random()*2*(1/M)*1E3};
_.N.linearInterpolateBounded=function(M,q,G,K,n){n=Math.min(Math.max(n,M),G);return(q*(G-n)+K*(n-M))/(G-M)};
b1.prototype.onEmojiFountainDataEntityUpdate=b1.prototype.onEmojiFountainDataEntityUpdate;b1.prototype.desktopFountainEmojiSizePxChanged=b1.prototype.desktopFountainEmojiSizePxChanged;b1.prototype.isActiveChanged=b1.prototype.isActiveChanged;_.T([_.B(),_.r("design:type",_.V$)],b1.prototype,"emojiManager",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],b1.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],b1.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],b1.prototype,"data",void 0);_.T([_.B({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(M,q){return _.sX(M.entities,"emojiFountainDataEntity",q)}}),
_.r("design:type",Object)],b1.prototype,"emojiFountainData",void 0);_.T([_.B(),_.r("design:type",Boolean)],b1.prototype,"isActive",void 0);_.T([_.KT("isActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b1.prototype,"isActiveChanged",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],b1.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",String)],b1.prototype,"lastEmojiRequestedForTesting",void 0);
_.T([_.B({value:function(){return _.tL("desktop_fountain_emoji_size_px",20)}}),
_.r("design:type",Number)],b1.prototype,"desktopFountainEmojiSizePx",void 0);_.T([_.KT("desktopFountainEmojiSizePx"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b1.prototype,"desktopFountainEmojiSizePxChanged",null);_.T([_.ET("#emoji-container"),_.r("design:type",HTMLElement)],b1.prototype,"emojiContainer",void 0);
_.T([_.KT("emojiFountainData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b1.prototype,"onEmojiFountainDataEntityUpdate",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],b1);
_.z(b1,"yt-emoji-fountain-view-model",function(){if(TPM===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Sxa===void 0&&(Sxa=document.createElement("template"));var K=Sxa;G.call(q,K.content.cloneNode(!0),M.content.firstChild);TPM=M}M=TPM;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var VSe;var R9G;var UI=function(){return _.Q.apply(this,arguments)||this};
_.l(UI,_.Q);UI.prototype.onChoiceChanged=function(){this.data&&_.sT(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
UI.prototype.onChoiceChanged=UI.prototype.onChoiceChanged;_.T([_.B(),_.r("design:type",Object)],UI.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UI.prototype,"onChoiceChanged",null);_.T([_.b({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],UI);
_.z(UI,"yt-live-chat-banner-poll-choice",function(){if(R9G===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;VSe===void 0&&(VSe=document.createElement("template"));var K=VSe;G.call(q,K.content.cloneNode(!0),M.content.firstChild);R9G=M}M=R9G;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ffM;var F8M;var xQ=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_button_rework_with_live");M.small=!1;return M};
_.l(xQ,_.Q);xQ.prototype.computeIsSmall=function(){var M;return((M=this.buttonOverrides)==null?void 0:M.size)==="S"};
xQ.prototype.computeId=function(){return this.data&&this.data.targetId};
_.T([_.P(_.mZ.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],xQ.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.B({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.r("design:type",String)],xQ.prototype,"id",void 0);_.T([_.B(),_.r("design:type",Object)],xQ.prototype,"buttonOverrides",void 0);_.T([_.B(),_.r("design:type",Object)],xQ.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],xQ.prototype,"modern",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.r("design:type",Object)],xQ.prototype,"small",void 0);_.T([_.b({disableElementRegistration:!0,is:"yt-live-chat-button"})],xQ);
_.z(xQ,"yt-live-chat-button",function(){if(F8M===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;ffM===void 0&&(ffM=document.createElement("template"));var K=ffM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);F8M=M}M=F8M;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var HDe;var e9G;var zn=function(){var M=_.Q.apply(this,arguments)||this;M.inCollapsedBanner=!1;M.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};M.questionButtonOverrides={style:"mono",type:"filled"};return M};
_.l(zn,_.Q);_.N=zn.prototype;_.N.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]]"}}}}}};
_.N.onContextMenuButtonClick=function(M){this.ytLiveChatItemBehavior.showContextMenu(M)};
_.N.onYtRendererstamperFinished=function(){this.menuButton=_.f_(this.hostElement).querySelector("#menu-button")};
_.N.dataChanged=function(){var M,q;if((q=_.C((M=this.data)==null?void 0:M.overflowMenuButton,_.f1))==null?0:q.command)this.data.contextMenuEndpoint=_.C(this.data.overflowMenuButton,_.f1).command};
_.N.onButtonClick=function(){var M,q=_.C((M=this.data)==null?void 0:M.askQuestionButton,_.f1);if(q){if(q.trackingParams&&(M=_.yx(q.trackingParams))){var G=_.Cx();G&&_.Z_(G,M)}_.jP(this.hostElement,"innertube-command",q.command)}};
zn.prototype.onYtRendererstamperFinished=zn.prototype.onYtRendererstamperFinished;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],zn.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],zn.prototype,"ytLiveChatItemBehavior",void 0);_.T([_.B({observer:"dataChanged"}),_.r("design:type",Object)],zn.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],zn.prototype,"inCollapsedBanner",void 0);_.T([_.B(),_.r("design:type",Object)],zn.prototype,"buttonOverrides",void 0);_.T([_.B(),_.r("design:type",Object)],zn.prototype,"questionButtonOverrides",void 0);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zn.prototype,"onYtRendererstamperFinished",null);
_.T([_.b({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],zn);
_.z(zn,"yt-live-chat-call-for-questions-renderer",function(){if(e9G===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;HDe===void 0&&(HDe=document.createElement("template"));var K=HDe;G.call(q,K.content.cloneNode(!0),M.content.firstChild);e9G=M}M=e9G;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var $zC={};$zC.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 M=this;window.requestAnimationFrame(function(){M.restoreFocusNode_||(M.restoreFocusNode_=document.activeElement);var q=_.BBP(M.hostElement);q.length&&q[q.length-1].focus()})},
isAttachedChanged_:function(M,q){M?this.focusChild_():q&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(M){this.hidden||_.Zx(M).indexOf(this.hostElement)!==-1||(M.stopPropagation(),this.focusChild_())}};var snv;var MGL;var mJ=function(){return _.Q.apply(this,arguments)||this};
_.l(mJ,_.Q);mJ.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
mJ.prototype.onClick=function(M){M.target!==this.confirmButton&&M.target!==this.cancelButton&&(this.hidden=!0)};
_.T([_.ET("#confirm_button"),_.r("design:type",Object)],mJ.prototype,"confirmButton",void 0);_.T([_.ET("#cancel_button"),_.r("design:type",Object)],mJ.prototype,"cancelButton",void 0);_.T([_.B(),_.r("design:type",qhL)],mJ.prototype,"data",void 0);_.T([_.B({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],mJ.prototype,"hidden",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mJ.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P($zC.YtLiveChatDialogBehavior),_.r("design:type",Object)],mJ.prototype,"ytLiveChatDialogBehavior",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],mJ);
var qhL=_.z(mJ,"yt-live-chat-dialog-renderer",function(){if(MGL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;snv===void 0&&(snv=document.createElement("template"));var K=snv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);MGL=M}M=MGL;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var GIv;var KmC,n5k=function(){if(KmC!==void 0)return KmC;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;GIv===void 0&&(GIv=document.createElement("template"));var K=GIv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return KmC=M};var E5M;var N8t;var Sz=function(){var M=_.Q.apply(this,arguments)||this;M.tooltip=null;M.data=null;M.id="";M.active=!1;M.icon="";M.disabled=!1;M.showTooltip=!1;M.useToggledActiveState=!0;M.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return M};
_.l(Sz,_.Q);_.N=Sz.prototype;
_.N.dataChanged=function(){var M;((M=this.data)==null?0:M.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,_.$U)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var q;if((q=this.data)==null?0:q.disabled)this.disabled=!0};
_.N.computeId=function(M){return M};
_.N.computeIcon=function(M,q){if(!M)return"";if(this.useToggledActiveState)return"yt-icons:"+M.toLowerCase();var G,K;return q&&((G=this.data)==null?0:(K=G.toggledIcon)==null?0:K.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+M.toLowerCase()};
_.N.logPDGEntryPoint=function(){_.qYy(_.Mr("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")};
_.N.immediatelyShowTooltip=function(){var M=_.f_(this.hostElement).querySelector("#tooltip");M.animationDelay=0;M.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};M.show()};
_.N.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.N.onClick=function(M){var q;((q=this.data)==null?0:q.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(),M.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.jP(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.N.computeShowTooltip=function(M,q){return!!(M&&M.tooltip&&q)};
_.N.maybeUpdateTooltipText=function(){var M=this,q;if((q=this.data)==null?0:q.tooltip){var G=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.$U)(M.tooltip).textContent=G},250)}};
_.N.handleLiveChatActions=function(M){var q=this;M.length&&(this.id!=="creator"&&this.id!=="product-picker"||M.forEach(function(G){(G=q.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",G))&&G.durationSec===G.fullDurationSec&&q.startBubble(q.colorFromDecimal(G.startBackgroundColor))}))};
_.N.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.N.startBubble=function(M){_.sT(this.hostElement,{"--yt-live-chat-monetization-button-glow":M});this.hostElement.setAttribute("bubble","")};
_.N.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.N.colorFromDecimal=function(M){typeof M==="string"&&(M=Number(M));return"rgba("+[M>>16&255,M>>8&255,M&255,(M>>24&255)/255].join()+")"};
Sz.prototype.onAnimationEnd=Sz.prototype.onAnimationEnd;Sz.prototype.disabledChanged=Sz.prototype.disabledChanged;Sz.prototype.dataChanged=Sz.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Sz.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Sz.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.mZ.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],Sz.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Sz.prototype,"data",void 0);_.T([_.B({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.r("design:type",Object)],Sz.prototype,"id",void 0);_.T([_.B({notify:!0,reflectToAttribute:!0}),_.r("design:type",Object)],Sz.prototype,"active",void 0);
_.T([_.B({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.r("design:type",Object)],Sz.prototype,"icon",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Sz.prototype,"disabled",void 0);_.T([_.B({computed:"computeShowTooltip(data, disabled)"}),_.r("design:type",Object)],Sz.prototype,"showTooltip",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Sz.prototype,"useToggledActiveState",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sz.prototype,"dataChanged",null);_.T([_.KT("disabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sz.prototype,"disabledChanged",null);_.T([_.GQ("animationend"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Sz.prototype,"onAnimationEnd",null);
_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],Sz);
_.z(Sz,"yt-live-chat-icon-toggle-button-renderer",function(){if(N8t===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;E5M===void 0&&(E5M=document.createElement("template"));var K=E5M;G.call(q,K.content.cloneNode(!0),M.content.firstChild);N8t=M}M=N8t;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var kIG;var p2k;var Tn=function(){return _.Q.apply(this,arguments)||this};
_.l(Tn,_.Q);Tn.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.T([_.B(),_.r("design:type",Object)],Tn.prototype,"data",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.b({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],Tn);
_.z(Tn,"yt-live-chat-message-input-prompt-header-renderer",function(){if(p2k===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;kIG===void 0&&(kIG=document.createElement("template"));var K=kIG;G.call(q,K.content.cloneNode(!0),M.content.firstChild);p2k=M}M=p2k;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var y0e;var LmG;var Yha;var WmL;var A0k;var dlt;var v5a=function(){return _.Q.apply(this,arguments)||this};
_.l(v5a,_.Q);_.T([_.B(),_.r("design:type",Object)],v5a.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],v5a);
_.z(v5a,"yt-live-chat-message-subtext-renderer",function(){if(dlt===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;A0k===void 0&&(A0k=document.createElement("template"));var K=A0k;G.call(q,K.content.cloneNode(!0),M.content.firstChild);dlt=M}M=dlt;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ry=function(){var M=_.Q.apply(this,arguments)||this;M.subtextOnBottom=!1;M.buttonOverrides={style:"mono",type:"tonal"};return M};
_.l(ry,_.Q);ry.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ry.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ry.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ry.prototype,"subtextOnBottom",void 0);_.T([_.B(),_.r("design:type",Object)],ry.prototype,"buttonOverrides",void 0);
_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],ry);
_.z(ry,"yt-live-chat-message-renderer",function(){if(WmL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Yha===void 0&&(Yha=document.createElement("template"));var K=Yha;G.call(q,K.content.cloneNode(!0),M.content.firstChild);WmL=M}M=WmL;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ho3;var tGG;var jz=function(){var M=_.Q.apply(this,arguments)||this;M.isRemovable=!1;M.hasPrefilledText=!1;M.isInputDirty=!1;M.overCharacterLimit=!1;M.underCharacterLimit=!1;M.showErrorMessage=!1;return M};
_.l(jz,_.Q);_.N=jz.prototype;_.N.computeId=function(){return this.data.id};
_.N.computeInputData=function(){return this.data.inputData};
_.N.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.N.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.N.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.N.getLiveChatRichMessageInput=function(){return _.f_(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.N.clearInput=function(){_.f_(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.N.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.N.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.N.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.N.handleTextInputCharCountChanged=function(M){M=M.detail&&M.detail.characterCount;M!==void 0&&(this.characterCount=M,M!==0&&(this.isInputDirty=!0))};
_.N.onInputFocusOut=function(){this.isInputDirty=!0};
_.N.onClickCloseButton=function(){_.jP(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
jz.prototype.handleTextInputCharCountChanged=jz.prototype.handleTextInputCharCountChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jz.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jz.prototype,"data",void 0);_.T([_.B({computed:"computeId(data.id)"}),_.r("design:type",String)],jz.prototype,"id",void 0);_.T([_.B({computed:"computeInputData(data.inputData)"}),_.r("design:type",Object)],jz.prototype,"inputData",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.r("design:type",Object)],jz.prototype,"isRemovable",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.r("design:type",Object)],jz.prototype,"hasPrefilledText",void 0);_.T([_.B({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.r("design:type",Number)],jz.prototype,"charactersRemaining",void 0);
_.T([_.B(),_.r("design:type",Number)],jz.prototype,"characterCount",void 0);_.T([_.B(),_.r("design:type",Object)],jz.prototype,"isInputDirty",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.r("design:type",Object)],jz.prototype,"overCharacterLimit",void 0);_.T([_.B({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.r("design:type",Object)],jz.prototype,"underCharacterLimit",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.r("design:type",Object)],jz.prototype,"showErrorMessage",void 0);_.T([_.GQ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jz.prototype,"handleTextInputCharCountChanged",null);
_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],jz);
_.z(jz,"yt-live-chat-poll-editor-input",function(){if(tGG===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;ho3===void 0&&(ho3=document.createElement("template"));var K=ho3;G.call(q,K.content.cloneNode(!0),M.content.firstChild);tGG=M}M=tGG;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var OFv;var w2C;var CFt={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},VP=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_button_rework_with_live");M.closeButtonOverrides={iconPosition:"icon-only"};M.startButtonOverrides={style:"mono",type:"filled"};M.addOptionButtonOverrides={style:"mono",type:"text"};return M};
_.l(VP,_.Q);_.N=VP.prototype;
_.N.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"}}}}};
_.N.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var M;_.C((M=this.data)==null?void 0:M.startButton,_.f1)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.N.computeId=function(){return this.data&&this.data.id||""};
_.N.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.N.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.N.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.N.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.N.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var M=0;M<this.pollEditorInfoWithDefaults.minPollOptions;M++)this.addPollOptionData()};
_.N.getIsValidPoll=function(){var M=this;if(!this.pollEditorInfoWithDefaults)return!1;var q=this.pollEditorInfoWithDefaults,G=q.minPollOptionChars,K=q.maxPollOptionChars,n=q.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>q.maxPollQuestionChars)return!1;q=_.f_(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(q).every(function(E,p){E=E.characterCount;!E&&n[p]&&(E=M.ytRendererBehavior.getSimpleString(n[p]).length);return E!==void 0&&E>=G&&E<=K})};
_.N.isValidPollChanged=function(){var M;_.C((M=this.data)==null?void 0:M.startButton,_.f1)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.N.addPollOptionData=function(){var M=this.pollEditorInfoWithDefaults,q=M.maxPollOptionChars,G=M.optionPlaceholderText,K=M.customOptionPlaceholderText,n=M.pollOptionData;this.currentNumPollOptions>=M.maxPollOptions||(M={liveChatPollOptionInput:{inputData:{placeholder:K[this.currentNumPollOptions]||G,maxCharacterLimit:q},maxCharacterLimit:q,minCharacterLimit:M.minPollOptionChars,hasPrefilledText:!!K[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=M.minPollOptions}},n.charCountErrorText&&
(M.liveChatPollOptionInput.charCountErrorText=n.charCountErrorText),n.charsRemainingAltLabel&&(M.liveChatPollOptionInput.charsRemainingAltLabel=n.charsRemainingAltLabel),n.removeOptionAltText&&(M.liveChatPollOptionInput.removeOptionAltText=n.removeOptionAltText),this.push("pollOptionsData",M),n=Array.from(_.f_(_.f_(this.hostElement).querySelector("#poll-options")).children),n.forEach(function(E,p){E.polymerController.set("data.id",p)}),_.f_(n[n.length-1]).querySelector("#input").focus())};
_.N.getPollOptionInputValues=function(){var M=this,q=[],G=_.f_(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),K=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(G).forEach(function(n,E){var p=null;n=n.getLiveChatRichMessageInput();var y;(n==null?0:(y=n.textSegments)==null?0:y.length)?p=_.cx(n):K[E]&&(p=M.formattedStringToLiveChatRichMessageInput(K[E]));q.push(p)});
return q};
_.N.requestCreateAndStartPoll=function(M){var q=this.getPollOptionInputValues();if(!q.some(function(K){return!K})){q={optionText:q};
var G=_.f_(_.f_(this.hostElement).querySelector("#poll-question")).firstChild;G&&G.liveChatRichMessageInput&&(q.questionText=_.cx(G.liveChatRichMessageInput));_.fx(this.hostElement,[M,q])}};
_.N.selectedChanged=function(){if(this.selected){var M=_.f_(_.f_(this.hostElement).querySelector("#start-button")).firstElementChild;if(M){var q;(q=_.f_(M).querySelector("#button")||_.Fw(M).querySelector("button"))==null||q.focus()}}};
_.N.handleTextInputChanged=function(M){var q;((q=M.target)==null?void 0:q.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=M.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.N.handleStartButtonAction=function(M){M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),(M=M.detail.args[1])&&this.requestCreateAndStartPoll(M))};
_.N.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.N.handleServiceRequestCompleted=function(M){this.createPollRequestInFlight=!1;(M=M.detail&&M.detail.data)&&M.success&&(_.jP(this.hostElement,"picker-cancelled"),_.VW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.N.onCloseClick=function(){_.jP(this.hostElement,"picker-cancelled");_.VW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.N.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.N.handlePollEditorInputClosed=function(M){var q=this.pollOptionsData.findIndex(function(G){return G.liveChatPollOptionInput.id===M.detail.id});
this.splice("pollOptionsData",q,1);this.isValidPoll=this.getIsValidPoll()};
_.N.onPickerCancelled=function(){this.reset()};
_.N.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var M=_.f_(_.f_(this.hostElement).querySelector("#poll-question")).firstChild;M&&M.setLiveChatRichMessageInput(null);if(M=_.f_(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){M=_.k(Array.from(M));for(var q=M.next();!q.done;q=M.next())q.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.N.formattedStringToLiveChatRichMessageInput=function(M){return M.simpleText?{text_segments:[M.simpleText]}:{text_segments:M.runs}};
_.Yd.Object.defineProperties(VP.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(CFt,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
VP.prototype.onPickerCancelled=VP.prototype.onPickerCancelled;VP.prototype.handlePollEditorInputClosed=VP.prototype.handlePollEditorInputClosed;VP.prototype.handleServiceRequestCompleted=VP.prototype.handleServiceRequestCompleted;VP.prototype.handleServiceRequestSent=VP.prototype.handleServiceRequestSent;VP.prototype.handleTextInputChanged=VP.prototype.handleTextInputChanged;VP.prototype.selectedChanged=VP.prototype.selectedChanged;VP.prototype.isValidPollChanged=VP.prototype.isValidPollChanged;
VP.prototype.shouldInitializePollChanged=VP.prototype.shouldInitializePollChanged;VP.prototype.dataChanged=VP.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],VP.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],VP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],VP.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],VP.prototype,"modern",void 0);
_.T([_.B(),_.r("design:type",Object)],VP.prototype,"closeButtonOverrides",void 0);_.T([_.B(),_.r("design:type",Object)],VP.prototype,"startButtonOverrides",void 0);_.T([_.B(),_.r("design:type",Object)],VP.prototype,"addOptionButtonOverrides",void 0);_.T([_.B({computed:"computeId(data.id)",reflectToAttribute:!0}),_.r("design:type",String)],VP.prototype,"id",void 0);_.T([_.B({value:function(){return[]}}),
_.r("design:type",Array)],VP.prototype,"pollOptionsData",void 0);_.T([_.c("pollEditorInfoWithDefaults"),_.r("design:type",Object),_.r("design:paramtypes",[])],VP.prototype,"pollQuestionData",null);_.T([_.B({value:0}),_.r("design:type",Number)],VP.prototype,"pollQuestionCharacterCount",void 0);_.T([_.c("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.r("design:type",Object),_.r("design:paramtypes",[])],VP.prototype,"pollQuestionCharactersRemaining",null);
_.T([_.B({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.r("design:type",Boolean)],VP.prototype,"overQuestionCharacterLimit",void 0);_.T([_.c("data.pollEditorInfo"),_.r("design:type",Object),_.r("design:paramtypes",[])],VP.prototype,"pollEditorInfoWithDefaults",null);_.T([_.B({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.r("design:type",Number)],VP.prototype,"currentNumPollOptions",void 0);
_.T([_.B({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.r("design:type",Boolean)],VP.prototype,"hasMaxNumPollOptions",void 0);_.T([_.c("pollEditorInfoWithDefaults","pollOptionsData"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],VP.prototype,"shouldInitializePoll",null);_.T([_.B(),_.r("design:type",Object)],VP.prototype,"isValidPoll",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],VP.prototype,"createPollRequestInFlight",void 0);_.T([_.B(),_.r("design:type",Object)],VP.prototype,"selected",void 0);_.T([_.B({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.r("design:type",Boolean)],VP.prototype,"showQuestionErrorMessage",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VP.prototype,"dataChanged",null);_.T([_.KT("shouldInitializePoll"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VP.prototype,"shouldInitializePollChanged",null);_.T([_.KT("isValidPoll"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VP.prototype,"isValidPollChanged",null);
_.T([_.KT("selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VP.prototype,"selectedChanged",null);_.T([_.GQ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],VP.prototype,"handleTextInputChanged",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VP.prototype,"handleServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],VP.prototype,"handleServiceRequestCompleted",null);
_.T([_.GQ("yt-live-chat-poll-editor-input-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],VP.prototype,"handlePollEditorInputClosed",null);_.T([_.GQ("picker-cancelled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VP.prototype,"onPickerCancelled",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],VP);
_.z(VP,"yt-live-chat-poll-editor-panel-renderer",function(){if(w2C===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;OFv===void 0&&(OFv=document.createElement("template"));var K=OFv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);w2C=M}M=w2C;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var aZy;var o5A;var Rs=function(){return _.Q.apply(this,arguments)||this};
_.l(Rs,_.Q);Rs.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Rs.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Yd.Object.defineProperties(Rs.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var M,q;return(M=this.data)==null?void 0:(q=M.title)==null?void 0:q.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var M;return _.aM((M=this.data)==null?void 0:M.onTapCommand)}}});
_.T([_.P(_.OH.YtEndpointBehavior),_.r("design:type",Object)],Rs.prototype,"ytEndpointBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Rs.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Rs.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rs.prototype,"itemId",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Rs.prototype,"hasPromotion",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Rs.prototype,"innertubeCommand",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Rs);
_.z(Rs,"yt-live-chat-product-picker-panel-item-view-model",function(){if(o5A===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;aZy===void 0&&(aZy=document.createElement("template"));var K=aZy;G.call(q,K.content.cloneNode(!0),M.content.firstChild);o5A=M}M=o5A;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var lZ9;var X2W;var f9=function(){var M=_.Q.apply(this,arguments)||this;M.id="product-picker";M.selected=!1;M.closeButtonId="close-button";M.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return M};
_.l(f9,_.Q);_.N=f9.prototype;_.N.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.N.observeSelected=function(){this.selected&&this.hostElement.focus();var M=_.f_(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");M.length&&M[0].focus()};
_.N.onCloseBuyFlow=function(){_.jP(this.hostElement,"picker-cancelled")};
_.N.onCloseClick=function(){_.jP(this.hostElement,"picker-cancelled");var M;((M=this.data)==null?0:M.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.C(this.data.closeButton,_.$N))};
_.N.onCloseEngageWithAudienceEditorPanels=function(){_.jP(this.hostElement,"picker-cancelled")};
f9.prototype.observeSelected=f9.prototype.observeSelected;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],f9.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],f9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],f9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],f9.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],f9.prototype,"id",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],f9.prototype,"selected",void 0);_.T([_.B(),_.r("design:type",Object)],f9.prototype,"closeButtonId",void 0);_.T([_.KT("selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],f9.prototype,"observeSelected",null);
_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],f9);
_.z(f9,"yt-live-chat-product-picker-panel-view-model",function(){if(X2W===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;lZ9===void 0&&(lZ9=document.createElement("template"));var K=lZ9;G.call(q,K.content.cloneNode(!0),M.content.firstChild);X2W=M}M=X2W;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var PFe;var iFM;var FL=function(){var M=_.Q.apply(this,arguments)||this;M.iconId="";M.icon="";M.disabled=!1;M.systemIcons=_.w("kevlar_system_icons");return M};
_.l(FL,_.Q);_.N=FL.prototype;_.N.computeIconId=function(M){return M&&M.icon&&M.icon.iconType?M.icon.iconType.toLowerCase():""};
_.N.computeIcon=function(M){return M&&M.icon&&M.icon.iconType?(M=M.icon.iconType.toLowerCase(),(M.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+M):""};
_.N.computeDisabled=function(M){return!!M};
_.N.computeCommand=function(M,q){return q?void 0:M};
_.N.computeTooltip=function(M,q){return q&&M?M:""};
_.N.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Yd.Object.defineProperties(FL.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var M="",q,G,K;if((q=this.data)==null?0:(G=q.text)==null?0:(K=G.runs)==null?0:K.length)M=this.data.text.runs[0].text||"";else{var n,E;if((n=this.data)==null?0:(E=n.text)==null?0:E.simpleText)M=this.data.text.simpleText}var p,y,Y;if((p=this.data)==null?0:(y=p.subtext)==null?0:(Y=y.runs)==null?0:Y.length)M&&(M+=". "),M+=this.data.subtext.runs[0].text||"";else{var A,v;if((A=this.data)==null?0:(v=A.subtext)==
null?0:v.simpleText)M&&(M+=". "),M+=this.data.subtext.simpleText}return M}}});
_.T([_.P(_.OH.YtEndpointBehavior),_.r("design:type",Object)],FL.prototype,"ytEndpointBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],FL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],FL.prototype,"data",void 0);_.T([_.B({computed:"computeIconId(data)",reflectToAttribute:!0}),_.r("design:type",Object)],FL.prototype,"iconId",void 0);
_.T([_.B({computed:"computeIcon(data)",reflectToAttribute:!0}),_.r("design:type",Object)],FL.prototype,"icon",void 0);_.T([_.B({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.r("design:type",Object)],FL.prototype,"disabled",void 0);_.T([_.B({computed:"computeCommand(data.command, disabled)"}),_.r("design:type",Object)],FL.prototype,"command",void 0);_.T([_.B({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.r("design:type",String)],FL.prototype,"tooltip",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],FL.prototype,"systemIcons",void 0);_.T([_.c("data.text","data.subtext"),_.B(),_.r("design:type",String),_.r("design:paramtypes",[])],FL.prototype,"ariaLabel",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],FL);
_.z(FL,"yt-live-chat-product-button-renderer",function(){if(iFM===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;PFe===void 0&&(PFe=document.createElement("template"));var K=PFe;G.call(q,K.content.cloneNode(!0),M.content.firstChild);iFM=M}M=iFM;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var c03;var g5e;var HK=function(){var M=_.Q.apply(this,arguments)||this;M.selected=!1;M.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 M};
_.l(HK,_.Q);_.N=HK.prototype;_.N.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"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.computeId=function(M){return M.id||""};
_.N.onCloseClick=function(){_.jP(this.hostElement,"picker-cancelled")};
_.N.observeSelected=function(){this.selected&&this.hostElement.focus();var M=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");M.length&&M[0].focus()};
_.N.onCloseBuyFlow=function(){_.jP(this.hostElement,"picker-cancelled")};
_.N.onCloseEngageWithAudienceEditorPanels=function(){_.jP(this.hostElement,"picker-cancelled")};
HK.prototype.observeSelected=HK.prototype.observeSelected;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],HK.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],HK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],HK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],HK.prototype,"data",void 0);
_.T([_.B({computed:"computeId(data)",reflectToAttribute:!0}),_.r("design:type",String)],HK.prototype,"id",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],HK.prototype,"selected",void 0);_.T([_.KT("selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HK.prototype,"observeSelected",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],HK);
_.z(HK,"yt-live-chat-product-picker-renderer",function(){if(g5e===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;c03===void 0&&(c03=document.createElement("template"));var K=c03;G.call(q,K.content.cloneNode(!0),M.content.firstChild);g5e=M}M=g5e;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var B8a;var Qne;var IZ3;var DlM;var ez=function(){return _.Q.apply(this,arguments)||this};
_.l(ez,_.Q);ez.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()};
ez.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
ez.prototype.created=function(){this.ids={background:_.oV(),maskOne:_.oV(),maskTwo:_.oV(),gradient:_.oV(),largeBackground:_.oV(),largeGradientOne:_.oV(),largeGradientTwo:_.oV(),largeGradientPath:_.oV()}};
ez.prototype.maybeLoadAnimationBackground=ez.prototype.maybeLoadAnimationBackground;_.T([_.B({value:!1}),_.r("design:type",Boolean)],ez.prototype,"useLargeBackground",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],ez.prototype,"useAnimationBackground",void 0);_.T([_.B({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.r("design:type",Boolean)],ez.prototype,"useRegularBackground",void 0);
_.T([_.B(),_.r("design:type",Object)],ez.prototype,"ids",void 0);_.T([_.B(),_.r("design:type",Object)],ez.prototype,"lottieAnimation",void 0);_.T([_.ET("#animation-background"),_.r("design:type",HTMLDivElement)],ez.prototype,"animationBackground",void 0);_.T([_.KT("useAnimationBackground"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ez.prototype,"maybeLoadAnimationBackground",null);
_.T([_.aO({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],ez);
_.z(ez,"yt-live-interactivity-component-background",function(){if(DlM===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;IZ3===void 0&&(IZ3=document.createElement("template"));var K=IZ3;G.call(q,K.content.cloneNode(!0),M.content.firstChild);DlM=M}M=DlM;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var $Q=function(){var M=_.Q.apply(this,arguments)||this;M.characterCount=0;M.showInputErrorMessage=!1;M.startQnaRequestInFlight=!1;M.modern=_.w("web_button_rework_with_live");M.buttonOverrides={style:"mono",type:"filled"};M.closeButtonOverrides={iconPosition:"icon-only"};M.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return M};
_.l($Q,_.Q);_.N=$Q.prototype;
_.N.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]]"}}}}}};
_.N.onCharacterCountChanged=function(M){var q,G,K,n,E=(G=_.C(this==null?void 0:(q=this.data)==null?void 0:q.creatorCallForQuestions,yLC))==null?void 0:(K=G.inputField)==null?void 0:(n=K.liveChatTextInputFieldRenderer)==null?void 0:n.maxCharacterLimit,p,y;E!=null&&(M==null?void 0:(p=M.detail)==null?void 0:p.characterCount)!=null&&_.C(this==null?void 0:(y=this.data)==null?void 0:y.startButton,_.f1)&&(q=M.detail.characterCount>E,this.set("data.startButton.buttonRenderer.isDisabled",M.detail.characterCount===
0||q),this.showInputErrorMessage=q)};
_.N.onCloseClick=function(){_.jP(this.hostElement,"picker-cancelled");_.VW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.N.onPickerCancelled=function(){var M=_.f_(this.hostElement).querySelector("#qna-creator-text-input-field");M&&M.setLiveChatRichMessageInput(null)};
_.N.handleOpenQnaStartPanel=function(){var M=_.f_(this.hostElement).querySelector("#qna-creator-text-input-field");M&&M.focus()};
_.N.handleStartButtonAction=function(M){var q=this;if(M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),M=M.detail.args[1])){var G=_.f_(this.hostElement).querySelector("#qna-creator-text-input-field"),K;(G==null?0:(K=G.liveChatRichMessageInput)==null?0:K.textSegments)&&G.liveChatRichMessageInput.textSegments.length!==0&&(K={rich_message:_.cx(G.liveChatRichMessageInput)},_.fx(this.hostElement,[M,K]).then(function(){_.jP(q.hostElement,"picker-cancelled")}))}};
_.N.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.N.handleServiceRequestCompleted=function(M){var q;M=M==null?void 0:(q=M.detail)==null?void 0:q.data;(M==null?0:M.actions)&&M.actions.length>0?this.startQnaRequestInFlight=!1:_.VW(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.N.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
$Q.prototype.handleServiceRequestError=$Q.prototype.handleServiceRequestError;$Q.prototype.handleServiceRequestCompleted=$Q.prototype.handleServiceRequestCompleted;$Q.prototype.handleServiceRequestSent=$Q.prototype.handleServiceRequestSent;$Q.prototype.onPickerCancelled=$Q.prototype.onPickerCancelled;$Q.prototype.onCharacterCountChanged=$Q.prototype.onCharacterCountChanged;_.T([_.B(),_.r("design:type",Object)],$Q.prototype,"characterCount",void 0);
_.T([_.B(),_.r("design:type",Object)],$Q.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$Q.prototype,"showInputErrorMessage",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$Q.prototype,"startQnaRequestInFlight",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$Q.prototype,"modern",void 0);_.T([_.B(),_.r("design:type",Object)],$Q.prototype,"buttonOverrides",void 0);
_.T([_.B(),_.r("design:type",Object)],$Q.prototype,"closeButtonOverrides",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],$Q.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],$Q.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.P(_.Hf.YtLiveChatItemBehavior),_.r("design:type",_.eu)],$Q.prototype,"ytLiveChatItemBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],$Q.prototype,"ytActionHandlerBehavior",void 0);_.T([_.GQ("yt-live-chat-text-input-field-renderer-character-count-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],$Q.prototype,"onCharacterCountChanged",null);_.T([_.GQ("picker-cancelled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$Q.prototype,"onPickerCancelled",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$Q.prototype,"handleServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],$Q.prototype,"handleServiceRequestCompleted",null);
_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],$Q.prototype,"handleServiceRequestError",null);_.T([_.b({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],$Q);
_.z($Q,"yt-live-chat-qna-start-panel-renderer",function(){if(Qne===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;B8a===void 0&&(B8a=document.createElement("template"));var K=B8a;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Qne=M}M=Qne;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var u83;var J0v;var sc=function(){return _.Q.apply(this,arguments)||this};
_.l(sc,_.Q);sc.prototype.dismiss=function(){_.jP(this.hostElement,"yt-live-chat-error-message-dismiss")};
sc.prototype.edit=function(){_.jP(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.T([_.B(),_.r("design:type",Object)],sc.prototype,"data",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],sc);
_.z(sc,"yt-live-chat-text-actions-error-message-renderer",function(){if(J0v===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;u83===void 0&&(u83=document.createElement("template"));var K=u83;G.call(q,K.content.cloneNode(!0),M.content.firstChild);J0v=M}M=J0v;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var ZFG;var bFk;var Ulv;var xlG;var M9=function(){var M=_.Q.apply(this,arguments)||this;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.newnessDotEligible=!1;return M};
_.l(M9,_.Q);M9.prototype.sendReaction=function(){var M,q,G=((M=this.data)==null?void 0:M.emojiId)||((q=this.data)==null?void 0:q.emoteId),K;G&&((K=this.data)==null?0:K.shouldTriggerAnimation)&&_.VW(this.hostElement,"yt-create-user-reaction-animation",[G]);var n;(M=_.aM((n=this.data)==null?void 0:n.onTap))&&_.sE(M,this.hostElement);this.showNewnessDot&&_.VW(this.hostElement,"yt-hide-newness-dot")};
M9.prototype.onClick=function(M){(!M||M.clientX||M.clientY)&&this.sendReaction()};
M9.prototype.onKeyDown=function(M){M.key!=="Enter"&&M.key!==" "||M.repeat||this.sendReaction()};
_.Yd.Object.defineProperties(M9.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var M,q;return!!(((M=this.data)==null?0:M.emojiId)||((q=this.data)==null?0:q.emoteId))}}});
_.T([_.B(),_.r("design:type",Object)],M9.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],M9.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",Object)],M9.prototype,"newnessDotEligible",void 0);_.T([_.c("data.maybeShowNewnessDot"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],M9.prototype,"showNewnessDot",null);_.T([_.c("data.emojiId","data.emoteId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],M9.prototype,"useYtImage",null);
_.T([_.aO({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],M9);
_.z(M9,"yt-reaction-control-panel-button-view-model",function(){if(xlG===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Ulv===void 0&&(Ulv=document.createElement("template"));var K=Ulv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);xlG=M}M=xlG;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var zoM;var mla;var q9=function(){var M=_.Q.apply(this,arguments)||this;M.reactionControlPanelExpanded=!1;M.isDarkTheme=document.documentElement.hasAttribute("dark");M.newnessDotEligible=!1;return M};
_.l(q9,_.Q);_.N=q9.prototype;_.N.expandedButtonsChanged=function(){var M,q;_.sT(this.hostElement,{"--expanded-buttons-height":((q=(M=this.expandedButtonsData)==null?void 0:M.length)!=null?q:0)*36+"px"})};
_.N.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}}};
_.N.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.N.onMouseLeave=function(){var M=this;this.collapseTimer=setTimeout(function(){M.reactionControlPanelExpanded=!1},500)};
_.N.onFocusIn=function(){this.onMouseEnter()};
_.N.onFocusOut=function(){this.onMouseLeave()};
_.N.onCollapsedButtonFocusIn=function(){var M=this;setTimeout(function(){var q;(q=M.expandedButtons.querySelector("button"))==null||q.focus()},100)};
_.N.onCollapsedButtonFocusOut=function(M){M.stopPropagation()};
_.Yd.Object.defineProperties(q9.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var M,q;return _.xP.unsafeClone((M=this.liveReactionsData)==null?void 0:M.emojiButtonData)||((q=this.data)==null?void 0:q.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var M;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((M=this.data)==null||!M.maybeShowNewnessDot)}}});
q9.prototype.expandedButtonsChanged=q9.prototype.expandedButtonsChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],q9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],q9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],q9.prototype,"ytLiveChatReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],q9.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],q9.prototype,"reactionControlPanelExpanded",void 0);_.T([_.B({selectorArgs:["data.liveReactionsDataEntityKey"],selector:UTA}),_.r("design:type",Object)],q9.prototype,"liveReactionsData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],q9.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",Object)],q9.prototype,"newnessDotEligible",void 0);
_.T([_.c("liveReactionsData","data.expandedButtons"),_.r("design:type",Object),_.r("design:paramtypes",[])],q9.prototype,"expandedButtonsData",null);_.T([_.c("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.B({reflectToAttribute:!0}),_.r("design:type",Object),_.r("design:paramtypes",[])],q9.prototype,"showNewnessDot",null);_.T([_.ET("#expanded-buttons"),_.r("design:type",HTMLElement)],q9.prototype,"expandedButtons",void 0);
_.T([_.KT("expandedButtonsData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],q9.prototype,"expandedButtonsChanged",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],q9);
_.z(q9,"yt-reaction-control-panel-view-model",function(){if(mla===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;zoM===void 0&&(zoM=document.createElement("template"));var K=zoM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);mla=M}M=mla;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var Gf=new _.F8("yt-live-chat"),ShM=Date.parse("2024-7-24"),Kg=function(){var M=_.Q.apply(this,arguments)||this;M.emojiManager=_.F$;M.newnessDotEligible=!1;M.newnessDotImpressionCounted=!1;M.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return M};
_.l(Kg,_.Q);_.N=Kg.prototype;_.N.emojiCustomizationEnabledChanged=function(){var M;((M=this.data)==null?0:M.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((M=Gf.getCreationTime("emoji-customization-count"))&&M<ShM&&Gf.set("emoji-customization-count","0"),M=Number(Gf.get("emoji-customization-count"))||0,M<3&&(this.newnessDotEligible=!0,Gf.set("emoji-customization-count",(M+1).toString())),this.newnessDotImpressionCounted=!0)};
_.N.hideNewnessDot=function(){this.newnessDotEligible=!1;Gf.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.N.handleReactionsMute=function(M){var q=_.Cx(),G=_.$m(206221),K={checkboxData:{state:M?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};q&&_.Z_(q,G,K);this.reactionsMuted=M};
_.N.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.N.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}}};
_.Yd.Object.defineProperties(Kg.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var M;return(!((M=this.liveReactionsData)==null||!M.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
Kg.prototype.liveReactionsSettingChanged=Kg.prototype.liveReactionsSettingChanged;Kg.prototype.emojiCustomizationEnabledChanged=Kg.prototype.emojiCustomizationEnabledChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Kg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.zD),_.r("design:type",Object)],Kg.prototype,"ytLiveChatReduxBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Kg.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Kg.prototype,"data",void 0);_.T([_.B(),_.r("design:type",_.V$)],Kg.prototype,"emojiManager",void 0);_.T([_.B(),_.r("design:type",Object)],Kg.prototype,"newnessDotEligible",void 0);_.T([_.B(),_.r("design:type",Object)],Kg.prototype,"newnessDotImpressionCounted",void 0);
_.T([_.B({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:xTW}),_.r("design:type",Boolean)],Kg.prototype,"liveReactionsSetting",void 0);_.T([_.B({selectorArgs:["data.liveReactionsDataEntityKey"],selector:UTA}),_.r("design:type",Object)],Kg.prototype,"liveReactionsData",void 0);_.T([_.B({value:function(){var M=_.w("enable_lwe_web_mute"),q=Gf.get("allow-reactions");return q===void 0?!1:!q&&M}}),
_.r("design:type",Boolean)],Kg.prototype,"reactionsMuted",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Kg.prototype,"liveReactionsEnabled",null);_.T([_.KT("data.emojiCustomizationEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Kg.prototype,"emojiCustomizationEnabledChanged",null);
_.T([_.KT("liveReactionsEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Kg.prototype,"liveReactionsSettingChanged",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],Kg);
_.z(Kg,"yt-reaction-control-panel-overlay-view-model",function(){if(bFk===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;ZFG===void 0&&(ZFG=document.createElement("template"));var K=ZFG;G.call(q,K.content.cloneNode(!0),M.content.firstChild);bFk=M}M=bFk;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var T8e={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(M){var q=this.$.pickers.selected;if(q){_.f_(this.hostElement).removeAttribute(q+"-open");var G="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(G="#picker-buttons",q==="emoji"&&_.f_(this.hostElement).querySelector("#emoji-picker-button")&&(G="#emoji-picker-button"));if(G=_.f_(this.hostElement).querySelector(G).querySelector("#"+q))G.active=!1}G=M;q==M&&(G=null);q!=
M&&_.f_(this.hostElement).setAttribute(M+"-open","");this.$.pickers.selected=G;_.VW(this.hostElement,"yt-live-chat-picker-changed",[G])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var ng=function(){var M=_.Q.apply(this,arguments)||this;M.numSentMessages=0;M.timeoutDurationMs=0;M.timeoutMs=0;M.lastTimeoutTimeMs=0;M.pendingMessageId="";M.hasFiredInitialFocusActions=!1;M.isBeforeFocusEnabled=!0;M.id="";M.characterCount=0;M.maxCharacterLimit=0;M.remainingCharacterCount=0;M.inputExpanded=!1;M.buttonOverrides={iconPosition:"icon-only"};M.inReplyPanel=!1;M.countdownRatio=0;M.isTooltipVisible=!1;M.tooltipTimeout=1E4;M.systemIcons=_.w("kevlar_system_icons");M.tallerEmojiPicker=_.w("live_chat_taller_emoji_picker");
M.sendReplyMessageInFlight=!1;M.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"};M.onResize=function(){M.maybeToggleCharacterCount()};
return M};
_.l(ng,_.Q);_.N=ng.prototype;
_.N.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"}}}};
_.N.attached=function(){window.addEventListener("resize",this.onResize)};
_.N.detached=function(){window.removeEventListener("resize",this.onResize)};
_.N.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.N.sendMessage=function(){var M=this,q,G,K,n;return _.L(function(E){if(M.sendDisabled)return E.return();M.isTooltipVisible&&_.VW(M.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(M.data.sendButton&&M.data.sendButton.buttonRenderer){M.input.completeEmojis();q=M.data.sendButton.buttonRenderer.serviceEndpoint;if(!q)return E.return();K=((G=_.C(q,_.Yjv))==null?void 0:G.clientIdPrefix)||"";n={client_message_id:K+String(M.numSentMessages++),rich_message:_.cx(M.input.liveChatRichMessageInput)};
M.pendingMessageId=n.client_message_id;M.inReplyPanel&&(M.sendReplyMessageInFlight=!0);_.fx(M.hostElement,[q,n]);M.input.setLiveChatRichMessageInput(null)}_.gL(E)})};
_.N.handleSendButtonAction=function(M){M.detail.actionName==="yt-service-request"&&(M.stopPropagation(),this.sendMessage())};
_.N.onSendCompleted=function(M,q){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(M=this.get("timeoutDurationUsec",q.data))&&this.handleTimeout(Number(M)/1E3);this.errorMessage=this.get("errorMessage",q.data);this.pendingMessageId=""};
_.N.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.VW(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.N.handlePickerButtonToggle=function(M){M=M.detail.targetId;this.ytPickerBehavior.togglePicker_(M);if(M==="emoji")this.input.focus();else if(M==="qna-start-panel"){var q,G;(q=_.f_(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(G=q.querySelector("#qna-creator-text-input-field"))==null||G.focus()}};
_.N.onComponentReplaced=function(M){var q,G;M.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((q=M.replacement.liveChatMessageInputRenderer)==null?0:(G=q.headerRenderer)==null?0:G.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.N.onEmojiSelect=function(M){this.input.focus();this.input.insertEmoji(M.detail)};
_.N.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.N.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.VW(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.VW(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.N.onOpenPopupAction=function(M,q){var G=this;q===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.VW(G.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.N.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.N.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.N.focusChanged=function(){this.maybeToggleCharacterCount()};
_.N.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var M=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",M>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.N.computeId=function(){return this.data&&this.data.targetId||""};
_.N.computeSendDisabled=function(M,q,G,K){M=!!(!M||q&&M>q||K);(q=_.f_(this.hostElement).querySelector("#send-button"))&&q.children.length&&(q.children[0].disabled=M);return M};
_.N.handleTimeout=function(M){this.timeoutDurationMs=this.timeoutMs=M;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.N.updateTimeout=function(M){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(M-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=M,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.N.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.N.onErrorMessageEdit=function(M){this.input.setLiveChatRichMessageInput(M.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.N.errorMessageChanged=function(){var M=this;_.g4(function(){_.VW(M.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.N.computeAuthorNameColor=function(M){var q;if(_.w("live_chat_author_name_color_usernames")&&(M==null?0:(q=M.authorName)==null?0:q.simpleText))return _.txY(_.Oyy(M.authorName.simpleText));if(_.w("live_chat_seed_color_usernames")&&(M==null?0:M.authorSeedColorArgb))return _.txY(_.fT(M.authorSeedColorArgb));if(_.w("live_chat_colored_usernames"))return"#cc0000";var G;return _.w("live_chat_simple_color_usernames")&&(M==null?0:(G=M.authorName)==null?0:G.simpleText)&&(M==null?0:M.authorUsernameColorLight)&&
(M==null?0:M.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.fT(M.authorUsernameColorDark):_.fT(M.authorUsernameColorLight):""};
_.N.onIsTooltipVisibleChanged=function(){var M=_.f_(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){M.hidden=!1;M.setAttribute("role","alert")},0):(M.hidden=!0,M.removeAttribute("role"))};
_.N.onFocusedChanged=function(M){this.inputFocused=M.detail.value};
_.Yd.Object.defineProperties(ng.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 M;return!((M=this.data)==null||!M.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:(q=M.pickers)==null?void 0:q.find(function(G){return G.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return M?this.ytRendererBehavior.getSimpleString(M):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
ng.prototype.onIsTooltipVisibleChanged=ng.prototype.onIsTooltipVisibleChanged;ng.prototype.errorMessageChanged=ng.prototype.errorMessageChanged;ng.prototype.onErrorMessageEdit=ng.prototype.onErrorMessageEdit;ng.prototype.onErrorMessageDismiss=ng.prototype.onErrorMessageDismiss;ng.prototype.focusChanged=ng.prototype.focusChanged;ng.prototype.characterCountChanged=ng.prototype.characterCountChanged;ng.prototype.onEmojiSelect=ng.prototype.onEmojiSelect;ng.prototype.handlePickerButtonToggle=ng.prototype.handlePickerButtonToggle;
ng.prototype.onSendError=ng.prototype.onSendError;ng.prototype.onSendCompleted=ng.prototype.onSendCompleted;ng.prototype.sendMessage=ng.prototype.sendMessage;ng.prototype.dataChanged=ng.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ng.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ng.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(T8e.YtPickerBehavior),_.r("design:type",Object)],ng.prototype,"ytPickerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ng.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mZ.YtLiveChatTooltipTargetingBehavior),_.r("design:type",Object)],ng.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"hasFiredInitialFocusActions",void 0);
_.T([_.B(),_.r("design:type",Object)],ng.prototype,"isBeforeFocusEnabled",void 0);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"data",void 0);_.T([_.B({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.r("design:type",Object)],ng.prototype,"id",void 0);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"characterCount",void 0);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"maxCharacterLimit",void 0);
_.T([_.B(),_.r("design:type",Object)],ng.prototype,"remainingCharacterCount",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ng.prototype,"inputExpanded",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ng.prototype,"inputFocused",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],ng.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.T([_.B(),_.r("design:type",_.MI)],ng.prototype,"participantsManager",void 0);
_.T([_.B(),_.r("design:type",Object)],ng.prototype,"buttonOverrides",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ng.prototype,"inReplyPanel",void 0);_.T([_.c("characterCount, maxCharacterLimit, countdownActive"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ng.prototype,"sendDisabled",null);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"countdownRatio",void 0);
_.T([_.c("countdownRatio"),_.r("design:type",Number),_.r("design:paramtypes",[])],ng.prototype,"countdownStrokeDashOffset",null);_.T([_.c("countdownRatio"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ng.prototype,"countdownActive",null);_.T([_.c("data.interactionMessage"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ng.prototype,"hasInteractionMessage",null);
_.T([_.c("data.emojiPickerButton"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ng.prototype,"hasEmojiPickerButton",null);_.T([_.c("data, characterCount"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ng.prototype,"showAvatar",null);_.T([_.c("data.pickers"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ng.prototype,"hasProductPickerPanelViewModel",null);
_.T([_.B(),_.r("design:type",Object)],ng.prototype,"errorMessage",void 0);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"genericErrorMessage",void 0);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"isTooltipVisible",void 0);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"tooltipTimeout",void 0);_.T([_.c("data.onInitialFocusCommand"),_.r("design:type",String),_.r("design:paramtypes",[])],ng.prototype,"tooltipMessage",null);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ng.prototype,"systemIcons",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ng.prototype,"tallerEmojiPicker",void 0);_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],ng.prototype,"authorNameColor",null);_.T([_.B(),_.r("design:type",Object)],ng.prototype,"sendReplyMessageInFlight",void 0);_.T([_.ET("#input"),_.r("design:type",_.rWp)],ng.prototype,"input",void 0);
_.T([_.ET("#count"),_.r("design:type",HTMLElement)],ng.prototype,"count",void 0);_.T([_.ET("#input-container"),_.r("design:type",HTMLElement)],ng.prototype,"inputContainer",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ng.prototype,"dataChanged",null);_.T([_.GQ("yt-live-chat-send-message"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],ng.prototype,"sendMessage",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[Event,_.Zt]),_.r("design:returntype")],ng.prototype,"onSendCompleted",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ng.prototype,"onSendError",null);
_.T([_.GQ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ng.prototype,"handlePickerButtonToggle",null);_.T([_.GQ("yt-emoji-select"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ng.prototype,"onEmojiSelect",null);
_.T([_.KT("characterCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ng.prototype,"characterCountChanged",null);_.T([_.KT("inputFocused"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ng.prototype,"focusChanged",null);_.T([_.GQ("yt-live-chat-error-message-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ng.prototype,"onErrorMessageDismiss",null);
_.T([_.GQ("yt-live-chat-error-message-edit"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ng.prototype,"onErrorMessageEdit",null);_.T([_.KT("errorMessage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ng.prototype,"errorMessageChanged",null);_.T([_.KT("isTooltipVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ng.prototype,"onIsTooltipVisibleChanged",null);
_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],ng);
_.z(ng,"yt-live-chat-message-input-renderer",function(){if(LmG===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;y0e===void 0&&(y0e=document.createElement("template"));var K=y0e;G.call(q,K.content.cloneNode(!0),M.content.firstChild);LmG=M}M=LmG;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var r0C;var jnW;var Ec=function(){var M=_.Q.apply(this,arguments)||this;M.systemIcons=_.w("kevlar_system_icons");M.firedOnClickCommand=!1;M.inReplyPanel=!1;return M};
_.l(Ec,_.Q);
Ec.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"}}}};
Ec.prototype.onButtonToggle=function(M){M.target.disabled||this.ytPickerBehavior.togglePicker_(M.detail.targetId)};
Ec.prototype.onClick=function(){var M=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.VW(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return M.firedOnClickCommand=!1},5E3))};
_.Yd.Object.defineProperties(Ec.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:(q=M.panels)==null?void 0:q.find(function(G){return G.liveChatProductPickerPanelViewModel}))!==void 0}}});
Ec.prototype.onButtonToggle=Ec.prototype.onButtonToggle;_.T([_.P(T8e.YtPickerBehavior),_.r("design:type",Object)],Ec.prototype,"ytPickerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ec.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Ec.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ec.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Ec.prototype,"systemIcons",void 0);_.T([_.B({reflectToAttribute:!1}),_.r("design:type",Object)],Ec.prototype,"firedOnClickCommand",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Ec.prototype,"inReplyPanel",void 0);_.T([_.c("data.pickers"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ec.prototype,"hasProductPickerPanelViewModel",null);
_.T([_.GQ("yt-live-chat-icon-toggle-button-renderer-toggle"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Ec.prototype,"onButtonToggle",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Ec);
_.z(Ec,"yt-live-chat-restricted-participation-renderer",function(){if(jnW===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;r0C===void 0&&(r0C=document.createElement("template"));var K=r0C;G.call(q,K.content.cloneNode(!0),M.content.firstChild);jnW=M}M=jnW;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var N9=function(){var M=_.Q.apply(this,arguments)||this;M.genericErrorMessage=_.bc("Error, try again.");M.inReplyPanel=!1;M.hideBorder=!1;return M};
_.l(N9,_.Q);N9.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}}}}}};
_.Yd.Object.defineProperties(N9,{template:{configurable:!0,enumerable:!0,get:function(){return n5k()}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],N9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],N9.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],N9.prototype,"genericErrorMessage",void 0);_.T([_.B(),_.r("design:type",Object)],N9.prototype,"inReplyPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],N9.prototype,"hideBorder",void 0);
_.T([_.aO({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],N9);_.z(N9,"yt-live-chat-engagement-panel-input-renderer",function(){return n5k()},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var VGe,RoL;VGe=_.$m(115994);RoL=_.$m(115993);_.kV=function(M,q,G){var K=this;var n=G.dragDownAction;this.layer=0;this.JSC$22801_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return K.dragDownAction()}}}};
this.JSC$22801_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return K.dragDownAction()}}}};
this.fullscreen=!1;var E=_.nl();_.lu(E,VGe,this.layer);_.lu(E,RoL,this.layer);this.dragDownAction=function(){n();_.Bx(E,{visualElement:K.fullscreen?VGe:RoL})};
this.gesture=new _.Z0(M,q,this.getConfig(!1),"pandown");this.attach()};
_.kV.prototype.attach=function(){this.gesture.attach()};
_.kV.prototype.detach=function(){this.gesture.detach()};
_.kV.prototype.update=function(M){this.fullscreen=M;var q=this.gesture;M=this.getConfig(M);q.config=M};
_.kV.prototype.getConfig=function(M){return M?this.JSC$22801_watchFullScreenConfig:this.JSC$22801_watchConfig};var fZ3={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(M){if(M&&M.length==1&&Array.isArray(M[0].loggingUrls)){M=_.xP.unsafeClone(M[0]);var q=this.macros||{},G=this.getAdModuleClient_();if(!G)return _.HF();M.loggingUrls.forEach(function(K){if(K.baseUrl){var n=K.baseUrl;var E=q;E=E===void 0?{}:E;n=G.getOptions().includes("replaceUrlMacros")?_.k79(G,"replaceUrlMacros",{url:n,additionalMapping:E}):n;K.baseUrl=n}},this);
M=[M]}return _.fx(this.hostElement,M)},
getAdModuleClient_:function(){var M=_.TM(this);return M?(M=M.getPlayer())?new _.Zi(M):null:null}}]};var FmL;var HFt;var pg=function(){return _.Q.apply(this,arguments)||this};
_.l(pg,_.Q);pg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],pg.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],pg);
_.z(pg,"ytd-compact-tvfilm-entry-point-renderer",function(){if(HFt!==void 0)return HFt;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return HFt=M},{mode:1});var eoC;var $lk;var swa;var yX=function(){return _.Q.apply(this,arguments)||this};
_.l(yX,_.Q);yX.prototype.ready=function(){this.initializeDefs()};
yX.prototype.initializeDefs=function(){var M=this.meta.byKey("yt-icons"),q=_.f_(M).querySelector("#star"),G=_.f_(M).querySelector("#star_half");M=_.f_(M).querySelector("#star_border");q&&this.defs.appendChild(q.cloneNode(!0));G&&this.defs.appendChild(G.cloneNode(!0));M&&this.defs.appendChild(M.cloneNode(!0))};
yX.prototype.percentChanged=function(){for(var M=this.rating;M.firstChild;)M.removeChild(M.firstChild);var q=Math.round(this.percent/10);M=Math.floor(q/2);q%=2;var G=5-M-q;this.appendStars("star",M,0);this.appendStars("star_half",q,M);this.appendStars("star_border",G,M+q)};
yX.prototype.appendStars=function(M,q,G){for(var K=0;K<q;K++){var n=(18+this.spacing)*(K+G),E=document.createElementNS("http://www.w3.org/2000/svg","use");_.vUU(E,"#"+M);E.setAttribute("x",""+n);E.setAttribute("y","0");this.rating.appendChild(E)}};
yX.prototype.percentChanged=yX.prototype.percentChanged;_.T([_.ET("#defs"),_.r("design:type",HTMLElement)],yX.prototype,"defs",void 0);_.T([_.ET("#rating"),_.r("design:type",HTMLElement)],yX.prototype,"rating",void 0);_.T([_.B(),_.r("design:type",Number)],yX.prototype,"percent",void 0);_.T([_.B({value:6}),_.r("design:type",Number)],yX.prototype,"spacing",void 0);_.T([_.B({value:_.XX.create("iron-meta",{type:"iconset"})}),_.r("design:type",_.Bn)],yX.prototype,"meta",void 0);
_.T([_.KT("percent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yX.prototype,"percentChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-ratings"})],yX);
_.z(yX,"ytd-ratings",function(){if(swa!==void 0)return swa;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return swa=M},{mode:1});var M13=function(){return _.Q.apply(this,arguments)||this};
_.l(M13,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],M13.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],M13.prototype,"data",void 0);_.T([_.b({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],M13);
_.z(M13,"ytd-offer-review-renderer",function(){if($lk!==void 0)return $lk;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return $lk=M},{mode:1});var Lg=function(){var M=_.Q.apply(this,arguments)||this;M.badges=[{textBadge:{label:_.bc("CC")}}];return M};
_.l(Lg,_.Q);_.N=Lg.prototype;_.N.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.N.dataChanged=function(){var M=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(M&&M.commandMetadata&&_.C(M.commandMetadata,_.QL)&&_.C(M.commandMetadata,_.QL).fireAutomatically)_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}});else{var q;M&&((q=_.C(M,_.QL))==null?0:q.fireAutomatically)&&_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}})}};
_.N.isEmptyContent=function(M){return this.isStorefrontEntryPointEmpty(M)&&this.shouldHideOfferModule(M)};
_.N.isStorefrontEntryPointEmpty=function(M){return!M||!M.storefrontEntryPoint};
_.N.shouldHideOfferModule=function(M){return!!M.hideVideoDetails};
_.N.isOfferModuleNavigationInactive=function(M){return!M.navigationEndpoint&&!M.serviceEndpoint};
_.N.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Lg.prototype.dataChanged=Lg.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Lg.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.r("design:type",Boolean)],Lg.prototype,"hidden",void 0);
_.T([_.B(),_.r("design:type",Object)],Lg.prototype,"badges",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lg.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Lg);
_.z(Lg,"ytd-movie-offer-module-renderer",function(){if(eoC!==void 0)return eoC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return eoC=M},{mode:1});var q4W;var G6C=function(){return _.Q.apply(this,arguments)||this};
_.l(G6C,_.Q);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],G6C.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],G6C.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],G6C);
_.z(G6C,"ytd-media-masthead-renderer",function(){if(q4W!==void 0)return q4W;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return q4W=M},{mode:1});var Kl9;_.S5(_.SNS,"course-metadata-view-model",{props:{data:_.xj,isOverlay:_.xj}});var YV=function(){var M=_.Q.apply(this,arguments)||this;M.isMetadataVisible=!1;M.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return M};
_.l(YV,_.Q);_.N=YV.prototype;
_.N.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"}}}}};
_.N.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.N.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.N.expanderChanged=function(){var M;if((M=this.data)==null?0:M.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.N.isExpandButtonToggled=function(){var M,q;return(q=_.C((M=this.data)==null?void 0:M.expandMetadataButton,_.M1))==null?void 0:q.isToggled};
_.N.onVisibilityButtonClick=function(){var M;if((M=this.data)==null?0:M.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.N.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
YV.prototype.expanderChanged=YV.prototype.expanderChanged;YV.prototype.dataChanged=YV.prototype.dataChanged;YV.prototype.descriptionChanged=YV.prototype.descriptionChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],YV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],YV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P([_.wg.YtActionHandlerBehavior]),_.r("design:type",Object)],YV.prototype,"actionHandlerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],YV.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],YV.prototype,"isMetadataVisible",void 0);_.T([_.ET("#expander"),_.r("design:type",Object)],YV.prototype,"expander",void 0);_.T([_.KT("data.description"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YV.prototype,"descriptionChanged",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YV.prototype,"dataChanged",null);_.T([_.KT("isMetadataVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YV.prototype,"expanderChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],YV);
_.z(YV,"ytd-tvfilm-offer-module-renderer",function(){if(Kl9!==void 0)return Kl9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Kl9=M},{mode:2});var nck;var Wd=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return M};
_.l(Wd,_.Q);Wd.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Wd.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Wd.prototype.onThumbnailTap=function(M){this.data&&this.data.serviceEndpoint&&(_.AL().resolve(_.vR).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),M.stopPropagation())};
Wd.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Wd.prototype.dataChanged=Wd.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Wd.prototype,"rendererBehaviors",void 0);_.T([_.P([_.wg.YtActionHandlerBehavior]),_.r("design:type",Object)],Wd.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Wd.prototype,"data",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wd.prototype,"dataChanged",null);_.T([_.b({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Wd);
_.z(Wd,"ytd-unlimited-offer-module-renderer",function(){if(nck!==void 0)return nck;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return nck=M},{mode:1});var EcG;var NMM;var AA=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return M};
_.l(AA,_.Q);AA.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
AA.prototype.handleRelatedChipCommand=function(M){M=_.C(M,iDL);var q=M.contents;q?_.Rf(this.hostElement,"yt-item-section-replace-action",[q,M.targetSectionIdentifier]):_.Rf(this.hostElement,"yt-item-section-continuation-action",[M.continuationData,M.targetSectionIdentifier])};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],AA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],AA.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],AA.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],AA.prototype,"data",void 0);_.T([_.aO({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],AA);
_.z(AA,"yt-related-chip-cloud-renderer",function(){if(NMM===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;EcG===void 0&&(EcG=document.createElement("template"));var K=EcG;G.call(q,K.content.cloneNode(!0),M.content.firstChild);NMM=M}M=NMM;return M},{mode:2});var vd=function(){var M=_.Q.apply(this,arguments)||this;M.isTwoColumns=!0;M.watchFeedBigThumbs=_.w("kevlar_watch_feed_big_thumbs");M.watchFeedBigThumbsOnLockup=_.w("web_watch_next_big_thumbs");M.watchNextGridHideChips=_.w("kevlar_watch_grid_hide_chips");M.eligibleToSwitchToGrid=!0;M.disableShortsShelfHeightOverride=_.w("web_shorts_wn_shelf_ratio_tuning");M.isWatchNextGrid=!1;M.reuseComponents=!_.w("kevlar_watch_grid");M.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return M};
_.l(vd,_.Q);_.N=vd.prototype;
_.N.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:!_.w("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}}};
_.N.getItemsPath=function(){return"data.results"};
_.N.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.N.created=function(){this.ytLazyListBehavior.initialCount=1};
_.N.ready=function(){_.sT(this.hostElement,{"--yt-img-shadow-placeholder-color":"var(--yt-spec-10-percent-layer)","--yt-img-shadow-min-height":"100%","--yt-img-shadow-min-width":"100%"})};
_.N.resultsChanged=function(){if(this.data&&this.data.results){for(var M=this.data.results,q=null,G=null,K=0;K<M.length;K++)M[K].relatedChipCloudRenderer?q=M[K].relatedChipCloudRenderer:M[K].itemSectionRenderer&&(G=M[K].itemSectionRenderer);if(q&&G)for(this.set("data.continuations",[]),M=_.C(q.content,_.qOx).chips,q=0;q<M.length;q++)if(K=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",M[q]),K.loadCached||!K.contents){K.contents=G.contents;break}}};
_.N.dataChanged=function(){var M=this,q;if((q=this.data)!=null&&q.results&&this.hasAllowedInstreamAd(this.playerData)){if(q=this.data.results.filter(function(y){return!!y.promotedSparklesWebRenderer})){for(var G=0;G<q.length;G++){var K=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",q[G]);
if(K)for(var n=0;n<K.length;n++)K[n]&&K[n].baseUrl&&_.M8(K[n].baseUrl)}this.set("data.results",this.data.results.filter(function(y){return!y.promotedSparklesWebRenderer}))}if(q=this.data.results.filter(function(y){return!!M.getSparklesAd(y)})){q=_.k(q);
for(n=q.next();!n.done;n=q.next())if(K=G=void 0,n=(G=this.getSparklesAd(n.value))==null?void 0:(K=G.errorCommand)==null?void 0:K.loggingUrls)for(G=_.k(n),K=G.next();!K.done;K=G.next())(K=K.value)&&K.baseUrl&&_.M8(K.baseUrl);var E,p;this.set("data.results",(E=this.data)==null?void 0:(p=E.results)==null?void 0:p.filter(function(y){return!y.adSlotRenderer}))}}};
_.N.getSparklesAd=function(M){var q,G;M=_.C((q=M.adSlotRenderer)==null?void 0:(G=q.fulfillmentContent)==null?void 0:G.fulfilledLayout,_.i$p);return _.C(M==null?void 0:M.renderingContent,r3t)};
_.N.hasAllowedInstreamAd=function(M){M=this.get("adPlacements",M)||[];for(var q=0;q<M.length;q++){var G=this.get("adPlacementRenderer.config.adPlacementConfig",M[q]);if(G&&G.suppressDisplayAd)return!0}return!1};
_.N.computeHideUnlimitedOfferModule=function(M,q){return M&&M.offerModule&&q&&M.offerModule.unlimitedOfferModuleRenderer&&M.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(q)?!0:!1};
_.N.hideUnlimitedOfferModuleChanged=function(){var M=_.f_(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");M&&(M.hidden=this.hideUnlimitedOfferModule)};
_.N.updateLockupContainerTypes=function(M){if(this.eligibleToSwitchToGrid){var q;(q=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||q.forEach(function(G){G.containerType=M})}};
_.N.computeHideTvfilmOfferModule=function(M,q){var G,K;return!!((M==null?0:(G=M.offerModule)==null?0:(K=G.tvfilmOfferModuleRenderer)==null?0:K.clientShouldSuppressIfCompanionAdDisplayed)&&q&&this.hasCompanionAds(q))};
_.N.hideTvfilmOfferModuleChanged=function(){var M=_.f_(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");M&&(M.hidden=this.hideTvfilmOfferModule)};
_.N.hasCompanionAds=function(M){M=this.get("adPlacements",M)||[];for(var q=0;q<M.length;q++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",M[q]))return!0;var G=void 0,K=void 0,n=void 0;if(!_.w("web_watch_top_banner_companion_check_killswitch")&&((G=M[q])==null?0:(K=G.adPlacementRenderer)==null?0:(n=K.renderer)==null?0:n.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.N.hasSuppressedResults=function(M){return M==null?!0:M.filter(function(q){return!q.continuationItemRenderer&&!q.compactPromotedVideoRenderer&&!q.promotedSparklesWebRenderer}).length===0};
_.N.computeShowButton=function(M,q){return this.isWatchNextGrid?M:M||this.hasSuppressedResults(q)};
_.N.showButtonChanged=function(){if(this.isWatchNextGrid){var M=_.f_(this.hostElement).querySelector("ytd-rich-grid-renderer");M&&this.showButton!==null&&(M.continuationShowButton=this.showButton)}else{M=_.f_(this.hostElement).querySelector("yt-next-continuation");var q=_.f_(this.hostElement).querySelector("ytd-continuation-item-renderer"),G=_.f_(this.hostElement).querySelector("ytd-item-section-renderer");M&&(M.showButton=this.showButton);q&&(q.showButton=this.showButton);G&&(G.continuationShowButton=
this.showButton)}};
_.N.continuationTap=function(M){var q;if(((q=this.data)==null?void 0:q.continuations)!=null&&M.target.tagName==="TP-YT-PAPER-BUTTON")for(M=this.data.continuations,q=0;q<M.length;q++)M[q].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(M[q].nextContinuationData||{})};
_.N.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("shown-items-changed",this.shownItems))};
_.Yd.Object.defineProperties(vd.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 M;return!((M=this.shownItems)==null||!M.some(function(q){return!!q.lockupViewModel||q.compactVideoRenderer}))}}});
vd.prototype.shownItemsChangedForBinding=vd.prototype.shownItemsChangedForBinding;vd.prototype.showButtonChanged=vd.prototype.showButtonChanged;vd.prototype.hideTvfilmOfferModuleChanged=vd.prototype.hideTvfilmOfferModuleChanged;vd.prototype.updateLockupContainerTypes=vd.prototype.updateLockupContainerTypes;vd.prototype.hideUnlimitedOfferModuleChanged=vd.prototype.hideUnlimitedOfferModuleChanged;vd.prototype.dataChanged=vd.prototype.dataChanged;vd.prototype.resultsChanged=vd.prototype.resultsChanged;
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],vd.prototype,"ytLazyListBehavior",void 0);_.T([_.P(_.M4.YtNextContinuationBehavior),_.r("design:type",Object)],vd.prototype,"ytNextContinuationBehavior",void 0);
_.T([_.P(_.sG),_.r("design:type",Object)],vd.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],vd.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],vd.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],vd.prototype,"playerData",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],vd.prototype,"autoFill",void 0);_.T([_.B({value:60}),_.r("design:type",Number)],vd.prototype,"targetFramerate",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],vd.prototype,"isTwoColumns",void 0);_.T([_.B(),_.r("design:type",Object)],vd.prototype,"shownItems",void 0);_.T([_.B({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.r("design:type",Boolean)],vd.prototype,"hideUnlimitedOfferModule",void 0);_.T([_.B({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.r("design:type",Boolean)],vd.prototype,"hideTvfilmOfferModule",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],vd.prototype,"watchFeedBigThumbs",void 0);_.T([_.B(),_.r("design:type",Object)],vd.prototype,"watchFeedBigThumbsOnLockup",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],vd.prototype,"watchNextGridHideChips",void 0);_.T([_.B(),_.r("design:type",Object)],vd.prototype,"eligibleToSwitchToGrid",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],vd.prototype,"disableShortsShelfHeightOverride",void 0);
_.T([_.B({selector:_.o2,reflectToAttribute:!0}),_.r("design:type",Object)],vd.prototype,"isGridViewEnabled",void 0);_.T([_.B({selector:_.K2w,reflectToAttribute:!0}),_.r("design:type",Object)],vd.prototype,"isSwatcherooActive",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],vd.prototype,"showMoreButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],vd.prototype,"isWatchNextGrid",void 0);
_.T([_.B({computed:"computeShowButton(showMoreButton, data.results)"}),_.r("design:type",Boolean)],vd.prototype,"showButton",void 0);_.T([_.yO("data.results.*"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vd.prototype,"resultsChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vd.prototype,"dataChanged",null);
_.T([_.KT("hideUnlimitedOfferModule"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vd.prototype,"hideUnlimitedOfferModuleChanged",null);_.T([_.c("isGridViewEnabled","containsLockups","data"),_.B({reflectToAttribute:!0}),_.r("design:type",Number),_.r("design:paramtypes",[])],vd.prototype,"lockupContainerType",null);
_.T([_.KT("lockupContainerType","data"),_.r("design:type",Function),_.r("design:paramtypes",[Number]),_.r("design:returntype")],vd.prototype,"updateLockupContainerTypes",null);_.T([_.KT("hideTvfilmOfferModule"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vd.prototype,"hideTvfilmOfferModuleChanged",null);_.T([_.KT("showButton"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vd.prototype,"showButtonChanged",null);
_.T([_.KT("shownItems"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vd.prototype,"shownItemsChangedForBinding",null);_.T([_.c("shownItems"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],vd.prototype,"containsLockups",null);
_.z(vd,"ytd-watch-next-secondary-results-renderer",function(){if(FmL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);FmL=M}M=FmL;return M},{mode:1});var k6A;var hA=function(){var M=_.Q.apply(this,arguments)||this;M.isCollapsed=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return M};
_.l(hA,_.Q);_.N=hA.prototype;_.N.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.onDonateTap=function(){var M=this.get("data.donateButton.buttonRenderer.command");if(M){var q=_.Cx(),G=this.get("data.donateButton.buttonRenderer.trackingParams");q&&G&&_.Z_(q,_.yx(G));this.ytOpenPopupBehavior.openPopup(M)}};
_.N.onShowMore=function(){this.isCollapsed=!1;var M=_.Cx(),q=this.get("data.expandButton.buttonRenderer.trackingParams");M&&q&&_.Z_(M,_.yx(q))};
_.N.onShowLess=function(){this.isCollapsed=!0};
_.N.dataChanged=function(){_.sT(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.N.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.N.handleUpdate=function(M){if(M=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",M))this.set("data.startLabel",M.startLabel),this.set("data.endLabel",M.endLabel),this.set("data.progress",M.progress),this.set("data.amountRaisedLabel",M.amountRaisedLabel),this.dataChanged()};
_.N.handleOpenPopupAction=function(M){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",M)&&_.VW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.N.computeHeaderBackgroundUrl=function(M,q){if(M)return q?M.headerBackgroundDarkUrl:M.headerBackgroundUrl};
_.N.isProgressBarVisible=function(M){return!(!M||M.progress===void 0)};
_.N.headerBackgroundClass=function(){return _.R9("HTML_DIR")==="rtl"?"flip":""};
hA.prototype.dataChanged=hA.prototype.dataChanged;_.T([_.P(_.vf.YtOpenPopupBehavior),_.r("design:type",Object)],hA.prototype,"ytOpenPopupBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],hA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],hA.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],hA.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],hA.prototype,"isCollapsed",void 0);_.T([_.B({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.r("design:type",String)],hA.prototype,"headerBackgroundUrl",void 0);_.T([_.B(),_.r("design:type",Boolean)],hA.prototype,"isDarkTheme",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hA.prototype,"dataChanged",null);
_.T([_.b({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],hA);
_.z(hA,"ytd-donation-shelf-renderer",function(){if(k6A!==void 0)return k6A;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return k6A=M},{mode:1});var prM;var yp3=function(){return _.Q.apply(this,arguments)||this};
_.l(yp3,_.Q);_.T([_.B(),_.r("design:type",Object)],yp3.prototype,"data",void 0);_.T([_.b({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],yp3);
_.z(yp3,"ytd-donation-unavailable-renderer",function(){if(prM!==void 0)return prM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return prM=M},{mode:1});var LlC;var tA=function(){return _.Q.apply(this,arguments)||this};
_.l(tA,_.Q);tA.prototype.computeIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tA.prototype,"data",void 0);_.T([_.b({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],tA);
_.z(tA,"ytd-limited-state-message-renderer",function(){if(LlC!==void 0)return LlC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return LlC=M},{mode:1});var Y4v;var Oc=function(){return _.Q.apply(this,arguments)||this};
_.l(Oc,_.Q);Oc.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
Oc.prototype.onTap=function(M){var q=this.data&&this.data.endpoint;q&&!_.b8(_.Zx(M),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.jP(this.hostElement,"yt-navigate",{endpoint:q})};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Oc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Oc.prototype,"data",void 0);_.T([_.b({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],Oc);
_.z(Oc,"ytd-autotagging-metadata-renderer",function(){if(Y4v!==void 0)return Y4v;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Y4v=M},{mode:1});var WlG;var wo=function(){return _.Q.apply(this,arguments)||this};
_.l(wo,_.Q);wo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],wo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],wo.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],wo.prototype,"data",void 0);_.T([_.b({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],wo);
_.z(wo,"ytd-autotagging-metadata-row-renderer",function(){if(WlG!==void 0)return WlG;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return WlG=M},{mode:1});var Apk;var d89;var Cg=function(){var M=_.Q.apply(this,arguments)||this;M.engagementPanelContent=!1;return M};
_.l(Cg,_.Q);Cg.prototype.computeHasDividerLine=function(M,q){return M&&!q};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Cg.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.r("design:type",Boolean)],Cg.prototype,"hasDividerLine",void 0);_.T([_.B(),_.r("design:type",Object)],Cg.prototype,"engagementPanelContent",void 0);
_.T([_.b({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Cg);
_.z(Cg,"ytd-metadata-row-header-renderer",function(){if(d89!==void 0)return d89;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return d89=M},{mode:1});var vcL;var aF=function(){return _.Q.apply(this,arguments)||this};
_.l(aF,_.Q);aF.prototype.computeHasDividerLine=function(M){return M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],aF.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],aF.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.r("design:type",Boolean)],aF.prototype,"hasDividerLine",void 0);_.T([_.b({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],aF);
_.z(aF,"ytd-metadata-row-renderer",function(){if(vcL!==void 0)return vcL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return vcL=M},{mode:1});var hDC;var t1M=function(){return _.Q.apply(this,arguments)||this};
_.l(t1M,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],t1M.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],t1M.prototype,"data",void 0);_.T([_.b({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],t1M);
_.z(t1M,"ytd-metadata-with-image-row-renderer",function(){if(hDC!==void 0)return hDC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return hDC=M},{mode:1});var OAk;var oF=function(){var M=_.Q.apply(this,arguments)||this;M.rounded=!0;M.fixie=!1;M.fullWidth=!1;return M};
_.l(oF,_.Q);_.N=oF.prototype;_.N.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.N.onDataChanged=function(){var M=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(q){M.onEndpointLinkKeyPress(q)}))};
_.N.onEndpointLinkKeyPress=function(M){M.target===this.endpointLink&&M.keyCode===13&&_.jP(this.hostElement,"click")};
_.N.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var M;if((M=this.data)==null?0:M.endpoint)_.FH(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.N.onYtNavigate=function(M){this.endpointHref||(M.stopPropagation(),M.preventDefault())};
_.N.onInformationButtonContainerClick=function(M){M.target.id!=="information-button-container"&&(M.stopPropagation(),M.preventDefault())};
_.N.computeStyle=function(M){return M};
_.N.computeIsThumbnailStyle=function(M){return M==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.N.computeThumbnailWidth=function(M){switch(M){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}};
_.N.computeThumbnailObjectFit=function(M){switch(M){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Yd.Object.defineProperties(oF.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?0:M.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
oF.prototype.onYtNavigate=oF.prototype.onYtNavigate;oF.prototype.onClick=oF.prototype.onClick;oF.prototype.onDataChanged=oF.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],oF.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],oF.prototype,"componentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],oF.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],oF.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],oF.prototype,"componentStyle",void 0);_.T([_.B({computed:"computeIsThumbnailStyle(data.style)"}),_.r("design:type",Boolean)],oF.prototype,"isThumbnailStyle",void 0);_.T([_.B({computed:"computeThumbnailObjectFit(data.style)"}),_.r("design:type",String)],oF.prototype,"thumbnailObjectFit",void 0);
_.T([_.B({computed:"computeThumbnailWidth(data.style)"}),_.r("design:type",Number)],oF.prototype,"thumbnailWidth",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oF.prototype,"rounded",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oF.prototype,"fixie",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oF.prototype,"fullWidth",void 0);_.T([_.ET("#endpoint-link"),_.r("design:type",HTMLAnchorElement)],oF.prototype,"endpointLink",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oF.prototype,"onDataChanged",null);_.T([_.c("data.endpoint"),_.r("design:type",Object),_.r("design:paramtypes",[])],oF.prototype,"endpointHref",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],oF.prototype,"onClick",null);
_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],oF.prototype,"onYtNavigate",null);_.T([_.b({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],oF);
_.z(oF,"ytd-rich-metadata-renderer",function(){if(OAk!==void 0)return OAk;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return OAk=M},{mode:_.VO("kevlar_poly_si_batch_j075")?1:2});var wrL;var ls=function(){var M=_.Q.apply(this,arguments)||this;M.fixie=!1;M.fullWidth=!1;return M};
_.l(ls,_.Q);ls.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
ls.prototype.computeHasDividerLine=function(M){return M};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ls.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ls.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.r("design:type",Boolean)],ls.prototype,"hasDividerLine",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ls.prototype,"fixie",void 0);_.T([_.B(),_.r("design:type",Object)],ls.prototype,"fullWidth",void 0);
_.T([_.b({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],ls);
_.z(ls,"ytd-rich-metadata-row-renderer",function(){if(wrL!==void 0)return wrL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return wrL=M},{mode:1});var XP=function(){var M=_.Q.apply(this,arguments)||this;M.engagementPanelContent=!1;M.fixie=!1;M.fullWidth=!1;return M};
_.l(XP,_.Q);
XP.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"}}}};
XP.prototype.computeCollapsibleItems=function(M,q,G){return M===void 0||q===void 0||G===void 0||G?[]:M.slice(q)};
XP.prototype.computeAlwaysShownItems=function(M,q){return M&&M.length?M.slice(0,q):[]};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],XP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],XP.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],XP.prototype,"collapsed",void 0);
_.T([_.B({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.r("design:type",Array)],XP.prototype,"alwaysShownItems",void 0);_.T([_.B({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.r("design:type",Array)],XP.prototype,"collapsibleItems",void 0);_.T([_.B(),_.r("design:type",Object)],XP.prototype,"engagementPanelContent",void 0);_.T([_.B(),_.r("design:type",Object)],XP.prototype,"fixie",void 0);
_.T([_.B(),_.r("design:type",Object)],XP.prototype,"fullWidth",void 0);_.T([_.b({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],XP);
_.z(XP,"ytd-metadata-row-container-renderer",function(){if(Apk!==void 0)return Apk;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Apk=M},{mode:1});var CNy;var Pd=function(){var M=_.Q.apply(this,arguments)||this;M.currentPageUrl="";M.baseUrl="";M.isHiddenByUser=null;M.hidden=!1;M.showAboveScrim=!1;M.watchNextGrid=_.w("kevlar_watch_grid");M.modernButtons=_.w("web_modern_buttons");M.roundedContainer=!0;M.noBorder=!1;M.roundBackground=!_.w("live_chat_round_background_killswitch");M.overflowHideChat=_.w("live_chat_overflow_hide_chat");M.forceDarkTheme=!1;M.theaterWatchWhile=!1;M.isListeningForPlayerProgress=!1;M.JSC$22872_playerEvents=new Map;M.isFrameReady=
!1;M.player=null;M.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 M};
_.l(Pd,_.Q);_.N=Pd.prototype;_.N.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Rf(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.N.created=function(){var M=this;this.handleIframeEventListener=function(q){M.handleIframeEvent(q)};
this.handleKeyboardEventListener=function(q){M.handleKeyboardEvent(q)};
this.JSC$22872_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$22872_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22872_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$22872_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$22872_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.N.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()};
_.N.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};
_.N.computeBaseUrl=function(M){var q="/live_chat";this.isChatReplay()&&(q="/live_chat_replay");return _.Gj(_.qu(_.Mu(_.s9(M),q),null),"").toString()};
_.N.dataChanged=function(){_.w("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.N.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var M=this.url;if(this.isChatReplay()&&this.player){var q=Math.floor(this.player.getProgressState().current*1E3);M=_.qT(_.s9(M),"playerOffsetMs",q.toString()).toString()}q=this.chatframe;try{var G=M==="about:blank"?_.Ua2:_.SM(M),K=q.contentDocument.location,n=_.jM(G);n!==void 0&&K.replace(n)}catch(E){q.src=M}}};
_.N.collapsedChanged=function(){_.jP(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.N.handleIframeEvent=function(M){if(M&&this.baseUrl.startsWith(M.origin)&&M.source===this.chatframe.contentWindow&&_.VY(M.data))if(M.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(M);else if(M.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(M.data["yt-show-feedback-dialog"]){var q=_.AL().resolve(_.WR(_.lCR));if(q){var G=M.ports,K;G&&G.length&&(K=function(){G[0].postMessage({})});
M=M.data["yt-show-feedback-dialog"];q.showFeedbackDialog(M.customProductData,M.feedbackContent,K,M.bucket)}}else if(M.data["yt-show-survey"])_.jP(this.hostElement,"yt-show-survey",M.data["yt-show-survey"]);else if(M.data["yt-purchase-membership"])_.AL().resolve(_.vR).resolveCommand(M.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(M.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(M.data["yt-tunnel-out-live-service-request"]);else if(M.data["yt-user-activity"])_.Wr();
else if(M.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(M.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(M.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(M.data["yt-open-popup"]);else if(M.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(M.data["yt-log-flow-logging-event-command"]);else if(M.data["yt-hide-live-chat"])this.onShowHideChat();else M.data["yt-report-moderation-state-log"]&&
this.player&&(q={cpn:this.player.getVideoData().cpn},_.ml("liveChatBeingModerated",q))};
_.N.attachLiveChatResponseVeTrackingParams=function(M){M=_.yx(M);var q=_.Cx(),G=_.sx("liveChatRenderer.trackingParams",this.data);q&&G&&_.QQ(q,_.yx(G),M)};
_.N.handleBuyflowMessages=function(M){var q=M.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,G=M.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,K=M.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.xHu(_.Uz(_.JK),q.replace(/-/g,"+").replace(/_/g,"/"),function(n){M.ports[0].postMessage({success:!0,buyFlowResponse:n})},void 0,function(n){M.ports[0].postMessage({success:!1,
error:n&&n.message||"Buyflow rejected without error."})},_.El().get("hl"),void 0,function(){M.ports[0].postMessage({closed:!0})},G,K)};
_.N.setupPlayerProgressRelay=function(){var M=this;if(!this.isListeningForPlayerProgress){var q=_.rk();q!=null&&q.getPlayerPromise&&(q.getPlayerPromise().then(function(G){M.playerApiReady(G)}),this.isListeningForPlayerProgress=!0)}};
_.N.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.N.playerApiReady=function(M){this.setPlayer(M)};
_.N.playerProgressHandler=function(){if(this.player){var M=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":M.current})}};
_.N.playerAdStartHandler=function(M){this.postToContentWindow({"yt-player-ad-start":M})};
_.N.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.N.playerStateChangeHandler=function(M){this.postToContentWindow({"yt-player-state-change":M})};
_.N.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22872_playerEvents);M&&(this.player=M,this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22872_playerEvents),_.jP(this.hostElement,"player-api-ready"))};
_.N.liveChatPageUrl=function(M,q,G,K){return!G||q?"about:blank":G.liveChatRenderer?(q=_.s9(this.currentPageUrl).JSC$10036_queryData_,U$M(q),M=_.s9(M),q.add("continuation",G.liveChatRenderer.continuations[0].reloadContinuationData.continuation),G=_.cE()==="USER_INTERFACE_THEME_DARK",(K||G)&&q.add("dark_theme","true"),_.qu(M,q),K=_.s9(M.toString()),G=K.JSC$10036_queryData_,"SESSION_INDEX"in _.jK&&(G.add("authuser",_.R9("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.jK&&G.add("pageId",_.R9("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.jK&&G.add("sdc",_.R9("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),K.toString()):""};
_.N.isCollapsed=function(M,q){return q!==null?q:this.isChatReplay()||M&&M.conversationBarRenderer&&M.conversationBarRenderer.availabilityMessage?!0:M?M.liveChatRenderer?M.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.w("live_chat_hide_premiere_replay_message")||M.conversationBarRenderer&&M.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.N.isHidden=function(M,q,G){var K=q&&q.conversationBarRenderer&&q.conversationBarRenderer.availabilityMessage,n=q&&q.liveChatRenderer&&q.liveChatRenderer.showHideButton,E=q&&q.liveChatRenderer&&q.liveChatRenderer.showButton;return G&&M&&!K&&!E||!G&&M&&!K&&!n?!0:q&&q.liveChatRenderer&&q.liveChatRenderer.initialDisplayState?q.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.N.computeButtonOverride=function(M,q){if(M&&q)return{type:"outline"}};
_.N.setCollapsedState=function(M){_.C(M,_.cr2)&&((this.isHiddenByUser=!!_.C(M,_.cr2).collapsed)||_.VW(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.N.forwardReduxActionToIframe=function(M){this.postToContentWindow({"yt-live-chat-forward-redux-action":M})};
_.N.onLoopRangeChange=function(M){this.showAboveScrim=!(M==null||!M.postId)};
_.N.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.N.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.N.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.N.sendDarkThemePostMessage=function(M){this.postToContentWindow({"yt-live-chat-set-dark-theme":M})};
_.N.onLiveChatBuyFlowCallback=function(M){this.postToContentWindow({"yt-live-chat-buy-flow-callback":M})};
_.N.handleKeyboardEvent=function(M){(0,_.xP.containsValue)(xzW,M.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:M.type,keyCode:M.keyCode}})};
_.N.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.N.postToContentWindow=function(M){if(this.isFrameReady)try{var q=window.location.protocol+"//"+window.location.host,G;(G=this.chatframe)!=null&&G.contentWindow?this.chatframe.contentWindow.postMessage(M,q):_.j1(new _.bj("Tried posting a message to an iframe with no content window",M))}catch(K){_.T6(K)}};
_.N.shouldHideChatFrame=function(M){return M&&_.w("hide_live_chat_button_when_collapsed")};
_.Yd.Object.defineProperties(Pd.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.w("live_chat_overflow_hide_chat")||_.w("web_watch_chat_hide_button_killswitch"))return _.w("live_chat_overflow_hide_chat");var M,q,G,K;return!!((M=this.data)==null?0:(q=M.liveChatRenderer)==null?0:(G=q.header)==null?0:(K=G.liveChatHeaderRenderer)==null?0:K.collapseButton)}}});
Pd.prototype.collapsedChanged=Pd.prototype.collapsedChanged;Pd.prototype.urlChanged=Pd.prototype.urlChanged;Pd.prototype.dataChanged=Pd.prototype.dataChanged;Pd.prototype.onShowHideChat=Pd.prototype.onShowHideChat;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Pd.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Pd.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Pd.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],Pd.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.P(_.vf.YtOpenPopupBehavior),_.r("design:type",Object)],Pd.prototype,"ytOpenPopupBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Pd.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Pd.prototype,"currentPageUrl",void 0);
_.T([_.B({computed:"computeBaseUrl(currentPageUrl,data)"}),_.r("design:type",Object)],Pd.prototype,"baseUrl",void 0);_.T([_.B({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.r("design:type",String)],Pd.prototype,"url",void 0);_.T([_.B(),_.r("design:type",Object)],Pd.prototype,"isHiddenByUser",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.r("design:type",Object)],Pd.prototype,"hidden",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.r("design:type",Boolean)],Pd.prototype,"collapsed",void 0);_.T([_.B({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.r("design:type",Boolean)],Pd.prototype,"hideChatFrame",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pd.prototype,"showAboveScrim",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pd.prototype,"watchNextGrid",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pd.prototype,"modernButtons",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pd.prototype,"roundedContainer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pd.prototype,"noBorder",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pd.prototype,"roundBackground",void 0);
_.T([_.B({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.r("design:type",Object)],Pd.prototype,"toggleButtonOverride",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pd.prototype,"overflowHideChat",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pd.prototype,"forceDarkTheme",void 0);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Pd.prototype,"enableShowWithoutHideChatButton",null);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Pd.prototype,"theaterWatchWhile",void 0);_.T([_.ET("#chatframe"),_.r("design:type",HTMLIFrameElement)],Pd.prototype,"chatframe",void 0);_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pd.prototype,"onShowHideChat",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pd.prototype,"dataChanged",null);
_.T([_.KT("url"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pd.prototype,"urlChanged",null);_.T([_.KT("collapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pd.prototype,"collapsedChanged",null);_.T([_.b({is:"ytd-live-chat-frame",disableElementRegistration:!0})],Pd);
_.z(Pd,"ytd-live-chat-frame",function(){if(CNy!==void 0)return CNy;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return CNy=M},{mode:1});var abL;var is=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_modern_buttons");M.buttonOverrides={style:"call-to-action",type:"filled"};return M};
_.l(is,_.Q);is.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=_.w2(this.data.backgroundColor)))};
is.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var M=this.getFormattedStringLoggingDirectives(this.data.headline);M&&this.rendererBehavior.logExplicitClick(M)}};
is.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var M=this.getFormattedStringLoggingDirectives(this.data.description);M&&this.rendererBehavior.logExplicitClick(M)}};
is.prototype.getFormattedStringLoggingDirectives=function(M){return M&&M.runs&&M.runs.length>0&&M.runs[0]&&M.runs[0].loggingDirectives?M.runs[0].loggingDirectives:null};
is.prototype.dataChanged=is.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],is.prototype,"rendererBehavior",void 0);_.T([_.P(fZ3.YtMacroReplacementBehavior),_.r("design:type",Object)],is.prototype,"macroReplacementBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],is.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],is.prototype,"navigationEndpoint",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],is.prototype,"enableColors",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],is.prototype,"modern",void 0);_.T([_.B(),_.r("design:type",Object)],is.prototype,"buttonOverrides",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],is.prototype,"dataChanged",null);_.T([_.b({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],is);
_.z(is,"ytd-action-basic-immersive-content-renderer",function(){if(abL!==void 0)return abL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return abL=M},{mode:1});var ocM;var lbL;var cd=function(){return _.Q.apply(this,arguments)||this};
_.l(cd,_.Q);cd.prototype.dataChanged=function(){var M;((M=this.data)==null?void 0:M.backgroundColor)!==void 0&&_.sT(this.hostElement,{"--bgu-color":_.w2(this.data.backgroundColor)})};
cd.prototype.onImageTileClick=function(){var M;((M=this.data)==null?0:M.navigationEndpoint)&&_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var q;((q=this.data)==null?0:q.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Yd.Object.defineProperties(cd.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?void 0:M.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 M;return((M=this.data)==null?void 0:M.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var M,q,G;if(((M=this.data)==null?void 0:(q=M.detailsLine)==null?void 0:q.texts)!=null&&((G=this.data)==null?void 0:G.detailsLine.texts.length)>0){var K;return(K=this.data)==null?void 0:K.detailsLine.texts.map(function(n){return n.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var M,q,G;if(((M=this.data)==null?void 0:(q=M.optionalDetailsLine)==null?void 0:q.texts)!=null&&((G=this.data)==null?void 0:G.optionalDetailsLine.texts.length)>0){var K;return(K=this.data)==null?void 0:K.optionalDetailsLine.texts.map(function(n){return n.text}).join("")}return null}}});
cd.prototype.dataChanged=cd.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],cd.prototype,"rendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],cd.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],cd.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.backgroundColor"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cd.prototype,"hasBackgroundColor",null);
_.T([_.c("data.objectFit"),_.r("design:type",Object),_.r("design:paramtypes",[])],cd.prototype,"getObjectFit",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.tileRenderingStyle"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cd.prototype,"hasTileMetadata",null);_.T([_.c("data.detailsLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],cd.prototype,"getSecondaryDetails",null);
_.T([_.c("data.optionalDetailsLine"),_.r("design:type",Object),_.r("design:paramtypes",[])],cd.prototype,"getOptionalDetails",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cd.prototype,"dataChanged",null);_.T([_.b({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],cd);
_.z(cd,"ytd-image-tile-renderer",function(){if(lbL!==void 0)return lbL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return lbL=M},{mode:1});var Xrv;var go=function(){return _.Q.apply(this,arguments)||this};
_.l(go,_.Q);go.prototype.getOpenLinkIcon=function(){return _.w("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
go.prototype.onSitelinkTap=function(){_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.w("kevlar_command_handler_migration_killswitch"))_.FH(this.hostElement,this.data.clickCommands,this.hostElement);else for(var M=_.k(this.data.clickCommands),q=M.next();!q.done;q=M.next())this.ytComponentBehavior.resolveCommand(q.value)};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],go.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],go.prototype,"rendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],go.prototype,"data",void 0);_.T([_.b({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],go);
_.z(go,"ytd-sitelink-renderer",function(){if(Xrv!==void 0)return Xrv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Xrv=M},{mode:1});var Bd=function(){var M=_.Q.apply(this,arguments)||this;M.paddingFix=_.w("enable_ads_web_ep_buenos_aires_and_padding_fix");return M};
_.l(Bd,_.Q);Bd.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"}}}};
Bd.prototype.dataChanged=function(){var M=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(q){q.clickTrackingParams&&delete q.clickTrackingParams;M.ytMacroReplacementBehavior.sendServiceRequestAction([q])})};
Bd.prototype.shouldHideFooter=function(M){return!(M&&_.w("use_ads_engagement_panel_desktop_footer_cta"))};
_.Yd.Object.defineProperties(Bd.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:M.imageTileRenderers)===void 0||((q=this.data)==null?void 0:q.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(G){var K;return(K=_.C(G,TUM))==null?void 0:K.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:M.imageTileRenderers)===void 0||((q=this.data)==null?void 0:q.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(G){var K;return((K=_.C(G,TUM))==null?void 0:K.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Bd.prototype.dataChanged=Bd.prototype.dataChanged;_.T([_.P(fZ3.YtMacroReplacementBehavior),_.r("design:type",Object)],Bd.prototype,"ytMacroReplacementBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Bd.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Bd.prototype,"paddingFix",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.imageTileRenderers"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Bd.prototype,"removeBorderFromImageTiles",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.imageTileRenderers"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Bd.prototype,"useFooteredMetadataRenderingStyle",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Bd.prototype,"dataChanged",null);_.T([_.b({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Bd);
_.z(Bd,"ytd-action-engagement-panel-content-renderer",function(){if(ocM!==void 0)return ocM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ocM=M},{mode:1});var PNM;var iAA=_.U(function(M){var q=M.data;var G=M.customCommandResolver;return _.W("ad-grid-card-image-full-metadata-view-model",{class:function(){var K;return((K=q().interaction)==null?0:K.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:_.bm(_.d_({visibilityCallback:function(K){var n,E=(n=q().interaction)==null?void 0:n.onFirstVisible;K&&E&&_.Pb(E)},
showOption:_.p0}),_.Xm(function(){return q().interaction},G)),
"aria-label":function(){var K,n;return(K=q().interaction)==null?void 0:(n=K.accessibility)==null?void 0:n.label}},_.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.W(_.yu,{data:function(){return q().adImage}},{adImageViewModel:function(K){return _.W(_.XM,{data:K.data,
customCommandResolver:G})}})),_.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.W(_.d,{cond:function(){return q().headline},
then:function(K){return _.W(_.Ft,{text:K,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.W(_.d,{cond:function(){return q().detailsLine},
then:function(K){return _.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.W(_.yu,{data:K},{adDetailsLineViewModel:function(n){return _.W(_.tb,{data:n.data,customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.W(_.d,{cond:function(){return q().secondaryDetailsLine},
then:function(K){return _.W("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.W(_.yu,{data:K},{adDetailsLineViewModel:function(n){return _.W(_.tb,{data:n.data,customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"gn");var cpG=_.U(function(M){var q=M.data;var G=M.customCommandResolver;return _.W("ad-grid-card-image-view-model",{class:function(){var K;return((K=q().interaction)==null?0:K.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:_.bm(_.d_({visibilityCallback:function(K){var n,E=(n=q().interaction)==null?void 0:n.onFirstVisible;K&&E&&_.Pb(E)},
showOption:_.p0}),_.Xm(function(){return q().interaction},G)),
"aria-label":function(){var K,n;return(K=q().interaction)==null?void 0:(n=K.accessibility)==null?void 0:n.label}},_.W(_.yu,{data:function(){return q().adImage}},{adImageViewModel:function(K){return _.W(_.XM,{data:K.data,
customCommandResolver:G})}}),_.W("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.W(_.yu,{data:function(){return q().adCardBadge}},{adCardBadgeViewModel:_.uAP})))},"hn");var gcG=_.U(function(M){var q=M.data;var G=M.customCommandResolver;return _.W("ad-grid-card-text-view-model",{class:function(){var K;return((K=q().interaction)==null?0:K.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:_.bm(_.d_({visibilityCallback:function(K){var n,E=(n=q().interaction)==null?void 0:n.onFirstVisible;K&&E&&_.Pb(E)},
showOption:_.p0}),_.Xm(function(){return q().interaction},G)),
"aria-label":function(){var K,n;return(K=q().interaction)==null?void 0:(n=K.accessibility)==null?void 0:n.label}},_.W("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.W(_.d,{cond:function(){return q().title},
then:function(K){return _.W(_.Ft,{text:K,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.W("div",{class:"ytwAdGridCardTextViewModelHostMetadataDescriptionInline"},_.W(_.bf,{each:function(){var K;
return((K=q())==null?void 0:K.descriptions)||[]},
keyBy:"INDEX"},function(K){return _.W(_.Ft,{text:K,className:"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline"})}))),_.W("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.W(_.yu,{data:function(){return q().moreInfoButton}},{adButtonViewModel:function(K){return _.W(_.L0,{data:K.data,
customCommandResolver:G})}})))},"jn");var BMt=_.U(function(M){var q=M.data;var G=M.customCommandResolver;var K=M.adGridCardCollectionStyle;return _.W("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:_.bm(_.d_({visibilityCallback:function(n){var E,p=(E=q().interaction)==null?void 0:E.onFirstVisible;n&&p&&_.Pb(p)},
showOption:_.p0})),style:function(){return"grid-template-columns: repeat("+F_M(K?K():q().style)+", minmax(0, 1fr));"}},_.W(_.yu,{data:function(){var n;
return(n=q())==null?void 0:n.gridCards}},{adGridCardImageViewModel:function(n){return _.W(cpG,{data:n.data,
customCommandResolver:G})},
adGridCardImageFullMetadataViewModel:function(n){return _.W(iAA,{data:n.data,customCommandResolver:G})},
adGridCardTextViewModel:function(n){return _.W(gcG,{data:n.data,customCommandResolver:G})}}))},"kn");_.S5(_.U(function(M){var q=M.data;return _.W("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:_.bm(_.d_({visibilityCallback:function(G){var K,n=(K=q().interaction)==null?void 0:K.onFirstVisible;G&&n&&_.Pb(n)},
showOption:_.p0}),_.Xm(function(){return q().interaction},eBG))},_.W("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.W(_.d,{cond:_.tFH("(min-width: "+((0,_.lL)()+_.JF)+"px)"),
then:function(){return _.W(_.yu,{data:function(){return q().adGridCardCollection}},{adGridCardCollectionViewModel:function(G){return _.W(BMt,{data:G.data,
customCommandResolver:eBG})}})},
else:function(){return _.W(_.yu,{data:function(){return q().adGridCardCollection}},{adGridCardCollectionViewModel:function(G){return _.W(BMt,{data:G.data,
customCommandResolver:eBG,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.W("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.W(_.yu,{data:function(){return q().adButton}},{adButtonViewModel:function(G){return _.W(_.L0,{data:G.data,
customCommandResolver:eBG})}})))},"ln"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;return _.W("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:_.bm(_.d_({visibilityCallback:function(G){var K,n=(K=q().interaction)==null?void 0:K.onFirstVisible;G&&n&&_.Pb(n)},
showOption:_.p0}),_.Xm(function(){return q().interaction},$T3))},_.W("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.W(_.yu,{data:function(){if(_.tFH("(min-width: "+((0,_.lL)()+_.JF)+"px)")())var G=q().adGridCardCollection;
else{G=Object.assign({},_.C(q().adGridCardCollection,j9v));var K;G.gridCards!==void 0&&((K=G.gridCards)==null?void 0:K.length)>1?G.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":G.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";G={adGridCardCollectionViewModel:G}}return G}},{adGridCardCollectionViewModel:function(G){return _.W(BMt,{data:G.data,
customCommandResolver:$T3})}})),_.W("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.W(_.yu,{data:function(){return q().adButton}},{adButtonViewModel:function(G){return _.W(_.L0,{data:G.data,
customCommandResolver:$T3})}})))},"mn"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.Hz}});var QX=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return M};
_.l(QX,_.Q);_.N=QX.prototype;_.N.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"}}}};
_.N.attached=function(){this.getDataFromPlayerAndRender()};
_.N.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.N.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.N.getDataFromPlayerAndRender=function(){var M=this,q=_.TM(this.hostElement);q&&q.getPlayerPromise().then(function(G){M.getCachedDataAndListen(G)})};
_.N.getCachedDataAndListen=function(M){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=M)};
_.N.resolveCachedActions=function(){var M=_.sx("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(M=M&&M())&&!_.xP.isEmpty(M)&&this.sendUpdateEngagementPanelAction(M);(M=(M=_.sx("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&M())&&!_.xP.isEmpty(M)&&this.sendChangeEngagementPanelVisibilityAction(M);(M=(M=_.sx("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&M())&&!_.xP.isEmpty(M)&&this.sendScrollToEngagementPanelCommand(M)};
_.N.sendUpdateEngagementPanelAction=function(M){var q;_.VW(this.hostElement,"yt-update-engagement-panel-action",[(q=_.xP.get(M,"action"))!=null?q:M])};
_.N.sendChangeEngagementPanelVisibilityAction=function(M){_.VW(this.hostElement,"yt-change-engagement-panel-visibility-action",[M])};
_.N.sendScrollToEngagementPanelCommand=function(M){_.VW(this.hostElement,"yt-scroll-to-engagement-panel-command",[M])};
_.N.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.w("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.j1(Error("Xo"))};
QX.prototype.dataChanged=QX.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],QX.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],QX.prototype,"componentBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],QX.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QX.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],QX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QX.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],QX.prototype,"player",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QX.prototype,"dataChanged",null);_.T([_.b({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],QX);
_.z(QX,"ytd-ads-engagement-panel-content-renderer",function(){if(PNM!==void 0)return PNM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return PNM=M},{mode:1});var Qwa;var IF=function(){var M=_.Q.apply(this,arguments)||this;M.player=null;M.JSC$22909_playerEvents=new Map;M.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return M};
_.l(IF,_.Q);_.N=IF.prototype;_.N.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]]"}}}}}};
_.N.created=function(){this.player=null;this.JSC$22909_playerEvents=new Map;this.JSC$22909_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$22909_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22909_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22909_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.N.attached=function(){var M=this,q=_.TM();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));q&&q.getPlayerPromise().then(function(G){M.setPlayer(G);M.set("isPageLoad",!1)})};
_.N.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22909_playerEvents);this.set("player",M);M&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22909_playerEvents),M.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.N.onLoopRangeChange=function(M){var q=_.AL().resolve(_.WR(_.md));if((!q||q.isOnWatch())&&this.hostElement.clientHeight){var G;!M&&((G=this.data)==null?0:G.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.N.onVideoProgress=function(M){var q,G,K=((q=this.player)==null?void 0:(G=q.getPresentingPlayerType)==null?void 0:G.call(q))===2;this.isAdPlaying!==K&&this.set("isAdPlaying",K);var n;if(!K&&(n=this.player)!=null&&n.getLoopRange()){G=this.player.getLoopRange();q=G.startTimeMs;G=G.endTimeMs;K=this.player.getProgressState(1).seekableStart;var E;q<K*1E3&&((E=this.data)==null?0:E.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
M=G<M*1E3;var p;((p=this.player)==null?0:p.getLoopRange())&&M&&this.player.seekTo(q/1E3)}};
_.N.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.N.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.N.onYtDeleteClipEngagementPanelCommand=function(M){_.C(M,NPC).command&&this.ytComponentBehavior.resolveCommand(_.C(M,NPC).command)};
_.Yd.Object.defineProperties(IF.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.voteCount)||_.bc("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],IF.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],IF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],IF.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],IF.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],IF.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],IF.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],IF.prototype,"isAdPlaying",void 0);_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],IF.prototype,"isPageLoad",void 0);_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],IF.prototype,"isDarkTheme",void 0);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],IF.prototype,"voteCount",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],IF.prototype,"channelEndpoint",null);_.T([_.c("channelEndpoint"),_.r("design:type",Object),_.r("design:paramtypes",[])],IF.prototype,"channelHref",null);_.T([_.b({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],IF);
_.z(IF,"ytd-clip-attribution-renderer",function(){if(Qwa!==void 0)return Qwa;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Qwa=M},{mode:1});var IbG;var Du=function(){var M=_.Q.apply(this,arguments)||this;M.player=null;M.JSC$22914_playerEvents=new Map;return M};
_.l(Du,_.Q);_.N=Du.prototype;_.N.created=function(){this.player=null;this.JSC$22914_playerEvents=new Map;this.JSC$22914_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$22914_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$22914_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.N.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.N.attached=function(){var M=this,q=_.TM();q&&q.getPlayerPromise().then(function(G){M.setPlayer(G);M.set("isPageLoad",!1)})};
_.N.setPlayer=function(M){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22914_playerEvents);this.set("player",M);if(M){this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22914_playerEvents);var q;(M==null?void 0:(q=M.getPresentingPlayerType)==null?void 0:q.call(M))===2&&this.playerAdStartHandler()}};
_.N.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.N.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.N.onVideoProgress=function(){var M,q,G=((M=this.player)==null?void 0:(q=M.getPresentingPlayerType)==null?void 0:q.call(M))===2;this.isAdPlaying!==G&&this.set("isAdPlaying",G)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Du.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Du.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],Du.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Du.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Du.prototype,"isAdPlaying",void 0);
_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],Du.prototype,"isPageLoad",void 0);_.T([_.b({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Du);
_.z(Du,"ytd-clip-section-footer-renderer",function(){if(IbG!==void 0)return IbG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return IbG=M},{mode:1});var D8C;var u43;var JpM=function(){return _.Q.apply(this,arguments)||this};
_.l(JpM,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JpM.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],JpM.prototype,"data",void 0);_.T([_.b({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],JpM);
_.z(JpM,"ytd-clip-ad-state-renderer",function(){if(u43!==void 0)return u43;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return u43=M},{mode:1});var ZAe;var us=function(){var M=_.Q.apply(this,arguments)||this;M.value="";M.valid=!1;M.userChangedValue=!1;M.disabled=!1;M.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return M};
_.l(us,_.Q);_.N=us.prototype;_.N.detached=function(){this.userChangedValue=!1};
_.N.handleKeyDown=function(M){if(_.Fa)var q=13;else _.xDv&&_.Hh?q=13:q=13;M.keyCode===q&&M.preventDefault()};
_.N.handleInput=function(){var M=_.f_(this.hostElement).querySelector("#title");if(M){var q=(M.value||"").replace(/\r|\n/g," ");this.set("value",q);M.value=q;this.valid=M.validate();this.userChangedValue=!0}};
_.N.handleBlur=function(){this.valid=_.f_(this.hostElement).querySelector("#title").validate()};
_.N.onValueChanged=function(){_.jP(this.hostElement,"title-changed",{title:this.value})};
_.N.onValidChanged=function(){_.jP(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.N.setInput=function(M,q){var G=_.f_(this.hostElement).querySelector("#title");G&&(G.value=M,this.handleInput(),q&&(G.invalid=!1,this.valid=!0))};
_.N.onClipCreationDisable=function(){this.set("disabled",!0)};
_.N.onClipCreationEnable=function(){this.set("disabled",!1)};
_.N.onClipCreationVisibilityChange=function(M){var q=this;M.visible?requestAnimationFrame(function(){var G;((G=_.f_(q.hostElement).querySelector("#title"))==null?void 0:G.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
us.prototype.onValidChanged=us.prototype.onValidChanged;us.prototype.onValueChanged=us.prototype.onValueChanged;us.prototype.handleBlur=us.prototype.handleBlur;us.prototype.handleInput=us.prototype.handleInput;us.prototype.handleKeyDown=us.prototype.handleKeyDown;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],us.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],us.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],us.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],us.prototype,"value",void 0);_.T([_.B(),_.r("design:type",Object)],us.prototype,"valid",void 0);_.T([_.B(),_.r("design:type",Object)],us.prototype,"userChangedValue",void 0);_.T([_.B(),_.r("design:type",Object)],us.prototype,"disabled",void 0);_.T([_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],us.prototype,"handleKeyDown",null);
_.T([_.GQ("input"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],us.prototype,"handleInput",null);_.T([_.GQ("blur"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],us.prototype,"handleBlur",null);_.T([_.KT("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],us.prototype,"onValueChanged",null);
_.T([_.KT("valid"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],us.prototype,"onValidChanged",null);_.T([_.b({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],us);
_.z(us,"ytd-clip-creation-text-input-renderer",function(){if(ZAe!==void 0)return ZAe;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ZAe=M},{mode:1});var bAv;var U8t;var x8k;var zDt;var m8G;var JA=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};M.pendingStoryboardImages_={};M.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];M.tickLabelInterval=30;M.mediumTickInterval=5;M.largeTickInterval=15;M.aboveRulerHeight=32;M.rulerHeight=50;M.smallTickHeight=4;M.mediumTickHeight=8;M.largeTickHeight=16;M.mediaListeners_=
{};return M};
_.l(JA,_.Q);_.N=JA.prototype;_.N.attached=function(){var M=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(q){q=_.k(["screen and (min-resolution: "+q+")","screen and (max-resolution: "+q+")"]);for(var G=q.next();!G.done;G=q.next()){G=G.value;var K=window.matchMedia(G);K&&(M.mediaListeners_[G]=M.updatePixelRatio_.bind(M),K.addEventListener?K.addEventListener("change",M.mediaListeners_[G]):K.addListener?K.addListener(M.mediaListeners_[G]):delete M.mediaListeners_[G])}})};
_.N.detached=function(){this.setPlayer(null);for(var M=_.k(Object.keys(this.mediaListeners_)),q=M.next();!q.done;q=M.next()){var G=q.value;q=this.mediaListeners_[G];(G=window.matchMedia(G))&&(G.removeEventListener?G.removeEventListener("change",q):G.removeListener&&G.removeListener(q))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.N.onVisibilityChangedAction_=function(M){var q=this;M.visible&&!this.player_&&(M=_.TM())&&M.getPlayerPromise().then(function(G){q.setPlayer(G)})};
_.N.setPlayer=function(M){M&&this.set("player_",M)};
_.N.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.N.setUpCanvas_=function(){var M=this.rulerWidth,q=this.devicePixelRatio_,G=this.visible;this.set("canvasReady_",!1);if(G&&q!==0){G=this.aboveRulerHeight+this.rulerHeight;var K=_.f_(this.hostElement).querySelector("#ticks");K.width=M*q;K.height=G*q;K.style.width=M+"px";K.style.height=G+"px";K.getContext("2d").scale(q,q);this.set("canvasReady_",!0)}};
_.N.drawRuler_=function(M,q,G,K,n,E,p,y,Y,A,v,h){M&&G&&q&&(M=_.f_(this.hostElement).querySelector("#ticks"),q=M.getContext("2d"),q.clearRect(0,0,M.width,M.height),q.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),q.lineWidth=2,q.beginPath(),q.moveTo(0,this.aboveRulerHeight),q.lineTo(M.width,this.aboveRulerHeight),q.moveTo(0,M.height),q.lineTo(M.width,M.height),q.stroke(),this.drawRulerTicks_(M,E,n,K),this.drawStoryboardImages_(M,G,E,n,K),q.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
q.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(p-E,K,!1),this.rulerHeight),G=this.timeToPixels_(y-E,K,!1),q.fillRect(G,this.aboveRulerHeight,M.width-G,this.rulerHeight),this.drawSpeedLines_(M,E,h))};
_.N.drawRulerTicks_=function(M,q,G,K){var n=M.getContext("2d");n.save();n.lineWidth=1;for(var E=Math.floor(Math.max(0,q-this.tickLabelInterval));E<q+G;E++){n.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var p=(E-q)*K;n.beginPath();n.moveTo(p,M.height);var y=this.smallTickHeight;E%this.largeTickInterval===0?y=this.largeTickHeight:E%this.mediumTickInterval===0&&(y=this.mediumTickHeight);n.lineTo(p,M.height-y);n.stroke();E%this.tickLabelInterval===0&&(n.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),n.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),n.fillText(BK(E),p+4,12),n.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),n.moveTo(p,0),n.lineTo(p,this.aboveRulerHeight),n.stroke())}n.restore()};
_.N.percentToHex_=function(M){M=Math.round(M*255).toString(16);M.length<2&&(M="0"+M);return M};
_.N.drawSpeedLines_=function(M,q,G){var K=M.getContext("2d");K.save();var n=Math.min(25,Math.abs(G)-15)/25,E=M.width*.3*n,p=M.width*-.3,y=M.width*1.3,Y=this.aboveRulerHeight;M=M.height;var A=Math.round(4*n),v=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");v.length<7&&(v="#"+v.substring(1,4).repeat(2));var h=this.percentToHex_(.5+n/2);h=v+h;v+="00";if(n>0)for(n=0;n<A;n++){var t=p+Math.random()*(y-p),O=Y+Math.random()*(M-Y),a=E+q%E,g=K.createLinearGradient(t,O,t+a,O);
G<0?(g.addColorStop(0,h),g.addColorStop(.4,h),g.addColorStop(.9,v)):(g.addColorStop(.1,v),g.addColorStop(.6,h),g.addColorStop(1,h));K.strokeStyle=g;K.lineWidth=1;K.beginPath();K.moveTo(t,O);K.lineTo(t+a,O);K.stroke()}K.restore()};
_.N.getStoryboardForTime_=function(M,q,G){G===void 0&&(G=q.getNumberOfStoryboardLevels()-1);M=q.getStoryboardFrameIndex(M,G);return q.getStoryboardFrame(M,G)};
_.N.drawStoryboardImages_=function(M,q,G,K,n){if(!this.disabled){M=M.getContext("2d");var E=this.getStoryboardForTime_(0,q);if(E){var p=E.width/E.columns;E=E.height/E.rows;var y=p/E,Y=this.rulerHeight*y;Y=this.tickLabelInterval*(y<this.tickLabelInterval*n/this.rulerHeight?1/Math.floor(this.tickLabelInterval*n/Y):Math.round(Y/(this.tickLabelInterval*n)));var A=Y*n,v=this.rulerHeight,h=A/this.rulerHeight,t=Math.floor(Math.max(0,G-Y));for(t-=t%Y;t<G+K;t+=Y){var O=this.getStoryboardForTime_(t,q),a=this.getPreloadedStoryboard_(O.url);
if(a){var g=(t-G)*n,D=this.aboveRulerHeight,J=O.column*p,Z=O.row*E;if(y<h){var V=v/(A/y);O=p;V*=E;Z+=(E-V)/2}else O=A/(v*y)*p,V=E,J+=(p-O)/2;M.drawImage(a,J,Z,O,V,g,D,A,v)}else this.fetchStoryboardImage_(O)}}}};
_.N.getPreloadedStoryboard_=function(M){return this.storyboardImages_.find(function(q){if(q.src==M)return!0;var G=q.src.indexOf(M);return G!=-1&&G==q.src.length-M.length})};
_.N.fetchStoryboardImage_=function(M){var q=this,G=this.getPreloadedStoryboard_(M.url),K=this.pendingStoryboardImages_[M.url];G||K!==void 0||(G=new Promise(function(n){var E=new Image(M.width,M.height);E.src=M.url;E.onload=function(){n(E)};
E.onerror=function(){n(null)}}),this.pendingStoryboardImages_[M.url]=G,G.then(function(n){n&&q.push("storyboardImages_",n);
return n}).finally(function(){delete q.pendingStoryboardImages_[M.url]}))};
_.N.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.N.timeToPixels_=function(M,q,G){M*=q;return G===void 0||G?M+"px":M};
_.N.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
JA.prototype.drawRuler_=JA.prototype.drawRuler_;JA.prototype.setUpCanvas_=JA.prototype.setUpCanvas_;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],JA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],JA.prototype,"start",void 0);_.T([_.B({value:30}),_.r("design:type",Number)],JA.prototype,"end",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],JA.prototype,"visible",void 0);_.T([_.B(),_.r("design:type",Object)],JA.prototype,"player_",void 0);_.T([_.B(),_.r("design:type",Number)],JA.prototype,"tickSpacing",void 0);_.T([_.B(),_.r("design:type",Number)],JA.prototype,"windowSizeSec",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],JA.prototype,"rulerWidth",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],JA.prototype,"rulerShift",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],JA.prototype,"canvasReady_",void 0);_.T([_.B({value:function(){return[]}}),
_.r("design:type",Array)],JA.prototype,"storyboardImages_",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],JA.prototype,"disabled",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],JA.prototype,"forceRender_",void 0);_.T([_.B({value:1}),_.r("design:type",Number)],JA.prototype,"devicePixelRatio_",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],JA.prototype,"windowSpeed",void 0);
_.T([_.KT("visible","devicePixelRatio_","rulerWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],JA.prototype,"setUpCanvas_",null);
_.T([_.KT("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.r("design:type",Function),_.r("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.r("design:returntype")],JA.prototype,"drawRuler_",null);_.T([_.aO({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],JA);
_.z(JA,"yt-clip-creation-scrubber-canvas",function(){if(m8G===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);m8G=M}M=m8G;return M},
{mode:2});var S4v;var TMv;var Zu=function(){var M=_.Q.apply(this,arguments)||this;M.start=0;M.end=30;M.visible=!1;M.draggingLeft_=!1;M.draggingRight_=!1;M.draggingRuler_=!1;M.draggingWindow_=!1;M.seekableStart=0;M.seekableEnd=0;M.rulerWidth_=0;M.rulerShift_=0;M.windowSlideSpeed=0;M.disabled=!1;M.initialized=!1;M.durationAccessibilityLabel="";M.activeLoopRange_=!1;M.rulerDragMouseStart_=0;M.rulerDragRulerStart_=0;M.rulerDragStartTime_=0;M.rulerDragEndTime_=0;M.dragMouseLastX_=0;M.scrollInterval_=null;M.scrubberVe_=null;M.boundHandlers_=
{};M.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return M};
_.l(Zu,_.Q);_.N=Zu.prototype;
_.N.created=function(){var M=this;this.JSC$22927_playerEvents=new Map;this.JSC$22927_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$22927_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$22927_playerEvents.set("onStateChange",this.onStateChange_);var q={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(q).forEach(function(G){M.boundHandlers_[G]=q[G].bind(M)})};
_.N.attached=function(){this.activeLoopRange_=!1;_.f_(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.f_(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.$m(156731)};
_.N.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.f_(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.f_(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.N.onVisibilityChangedAction_=function(M){var q=this;M.visible&&!this.player_&&(M=_.TM())&&M.getPlayerPromise().then(function(G){q.setPlayer(G)})};
_.N.setPlayer=function(M){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22927_playerEvents);M&&(this.set("player_",M),this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22927_playerEvents))};
_.N.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.N.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.N.beginHandleDrag_=function(M){this.disabled||(M.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=M.clientX,M.target===_.f_(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():M.target===_.f_(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.N.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.N.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.N.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.N.beginRulerDrag_=function(M){this.disabled||(M.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=M.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.N.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.N.beginWindowScroll_=function(){var M=this;this.scrollInterval_=setInterval(function(){var q=M.windowSlideSpeed;if(q=_.yu9(M.start,M.boundedRulerStartLimit_())?q-.1:_.yu9(M.end,M.boundedRulerEndLimit_())?q+.1:0){var G=M.capRulerOffset_(M.rulerShift_+q);G==M.rulerShift_?q=0:(M.set("rulerShift_",G),_.jP(M.hostElement,"set-fixed-length-range",{start:M.start+q,duration:M.end-M.start}))}M.set("windowSlideSpeed",q)},33)};
_.N.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.N.endDrag_=function(){this.logClick();var M=void 0;this.draggingRight_?M=this.end-1:this.draggingLeft_&&(M=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,M);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))};
_.N.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.N.updateRulerSize_=function(){this.set("rulerWidth_",_.f_(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.N.handleMouseDrag_=function(M){M.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(M):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(M):this.draggingWindow_&&this.handleWindowDrag_(M))};
_.N.handleRulerDrag_=function(M){M=this.pixelsToTime_(M.clientX-this.rulerDragMouseStart_);M=this.capRulerOffset_(this.rulerDragRulerStart_-M);this.set("rulerShift_",M);var q=this.rulerDragStartTime_-(this.rulerDragRulerStart_-M);_.jP(this.hostElement,"set-fixed-length-range",{start:q,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-M)-q})};
_.N.handleWindowDrag_=function(M){var q=M.clientX-this.dragMouseLastX_;this.dragMouseLastX_=M.clientX;M=this.pixelsToTime_(q);_.jP(this.hostElement,"set-fixed-length-range",{start:this.start+M,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.N.capRulerOffset_=function(M){var q=this.seekableStart-this.pixelsToTime_(16),G=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(q,M),G)};
_.N.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.N.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.N.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.N.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.N.handleWindowHandleDrag_=function(M){var q=M.clientX-this.dragMouseLastX_;this.dragMouseLastX_=M.clientX;M=this.pixelsToTime_(q);if(this.draggingLeft_){var G=this.start+M;var K=this.end}else this.draggingRight_&&(G=this.start,K=this.end+M);_.jP(this.hostElement,"set-range",{start:G,end:K,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.N.onVideoProgress_=function(M){this.disabled||(M=this.timeToPixels_(M-this.rulerShift_,this.tickSpacing_),_.f_(this.hostElement).querySelector("#playhead").style.transform="translateX("+M+")")};
_.N.onClipCreationDisable_=function(){this.endDrag_()};
_.N.timeToPixels_=function(M,q,G){M*=q;return G===void 0||G?M+"px":M};
_.N.pixelsToTime_=function(M){return M/this.tickSpacing_};
_.N.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.N.centerRuler_=function(M,q,G){this.set("rulerShift_",this.capRulerOffset_(M+(q-M)/2-G/2))};
_.N.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.N.updateLoopRange_=function(M,q,G,K,n,E,p){M&&(q&&K&&!G?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(M.pauseVideo(),M.seekTo(n,!1,void 0,void 0,50)):this.draggingRight_?(M.pauseVideo(),M.seekTo(E-.1,!1,void 0,void 0,50)):(p!==void 0?M.seekTo(p,!0,void 0,void 0,50):(q=M.getCurrentTime(),q<n||q>E?M.seekTo(n,!0,void 0,void 0,50):M.seekTo(q,!0,void 0,void 0,50)),M.playVideo()),M.setLoopRange({startTimeMs:n*1E3,endTimeMs:E*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(M.getCurrentTime())):
this.activeLoopRange_&&(M.setLoopRange(null),this.activeLoopRange_=!1))};
_.N.updateHandles_=function(){_.f_(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.f_(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.N.updateRuler_=function(){var M=this.end,q=this.start,G=this.draggableStartLimit_(),K=this.draggableEndLimit_();(q<G-.001||M>K+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.N.computeDurationLabel_=function(M,q){return M?M.replace("$clip_length",parseFloat(q).toFixed(1)):""};
_.N.computeDuration_=function(M,q){return this.isValidTime_(M)&&this.isValidTime_(q)&&M<q?q-M:0};
_.N.isValidTime_=function(M){return isNaN(parseFloat(M))||M<0?!1:this.player_?M>=this.seekableStart&&M<=this.seekableEnd:!0};
_.N.computeWindowSizeSec_=function(M,q,G){return Math.min((M||12E4)/1E3,G-q)};
_.N.computeTickSpacing_=function(M,q){return q?q/M:1};
_.N.onDragStateChanged_=function(){_.jP(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.N.centerRangeOnTime_=function(M){var q=this.duration;M=MKk(M-q/2,q,this.seekableStart,this.seekableEnd);_.jP(this.hostElement,"set-fixed-length-range",{start:M.start,duration:M.end-M.start})};
_.N.nearlyLessThan_=function(M,q,G){return M+(G===void 0?1E-6:G)<q};
_.N.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var M=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(M,this.start)||this.nearlyLessThan_(this.end,M))&&this.centerRangeOnTime_(M)}};
_.N.onStateChange_=function(M){this.visible&&!this.disabled&&M==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.N.computeDragState_=function(M,q,G,K){return M?"left":q?"right":G?"ruler":K?"window":"none"};
_.N.logClick=function(){var M=_.Cx(),q=_.wt();M&&q&&this.scrubberVe_&&(_.w("combine_ve_grafts")?_.oQ(_.nl(),this.scrubberVe_,q):_.QQ(M,q,this.scrubberVe_),_.Z_(M,this.scrubberVe_))};
Zu.prototype.onDragStateChanged_=Zu.prototype.onDragStateChanged_;Zu.prototype.updateRuler_=Zu.prototype.updateRuler_;Zu.prototype.updateHandles_=Zu.prototype.updateHandles_;Zu.prototype.onUpdateLoopRange=Zu.prototype.onUpdateLoopRange;Zu.prototype.onInitializedChanged_=Zu.prototype.onInitializedChanged_;Zu.prototype.onVisibleChanged_=Zu.prototype.onVisibleChanged_;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Zu.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",Object)],Zu.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"start",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"end",void 0);_.T([_.B({computed:"computeDuration_(start, end)"}),_.r("design:type",Number)],Zu.prototype,"duration",void 0);
_.T([_.B(),_.r("design:type",String)],Zu.prototype,"lengthTemplate",void 0);_.T([_.B({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.r("design:type",String)],Zu.prototype,"durationLabel",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"visible",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"player_",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"draggingLeft_",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"draggingRight_",void 0);
_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"draggingRuler_",void 0);_.T([_.B({value:!1}),_.r("design:type",Object)],Zu.prototype,"draggingWindow_",void 0);_.T([_.B({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.r("design:type",Number)],Zu.prototype,"tickSpacing_",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"seekableStart",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"seekableEnd",void 0);
_.T([_.B(),_.r("design:type",Number)],Zu.prototype,"windowSizeMs",void 0);_.T([_.B({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.r("design:type",Number)],Zu.prototype,"windowSizeSec_",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"rulerWidth_",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"rulerShift_",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"windowSlideSpeed",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Zu.prototype,"disabled",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"initialized",void 0);_.T([_.B(),_.r("design:type",Object)],Zu.prototype,"durationAccessibilityLabel",void 0);_.T([_.B({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.r("design:type",String)],Zu.prototype,"dragState",void 0);
_.T([_.KT("visible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Zu.prototype,"onVisibleChanged_",null);_.T([_.KT("initialized"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Zu.prototype,"onInitializedChanged_",null);_.T([_.KT("player_","visible","disabled","initialized","start","end"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Zu.prototype,"onUpdateLoopRange",null);
_.T([_.KT("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Zu.prototype,"updateHandles_",null);_.T([_.KT("start","end"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Zu.prototype,"updateRuler_",null);
_.T([_.KT("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Zu.prototype,"onDragStateChanged_",null);_.T([_.aO({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Zu);
_.z(Zu,"yt-clip-creation-scrubber-view",function(){if(TMv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;S4v===void 0&&(S4v=document.createElement("template"));var K=S4v;G.call(q,K.content.cloneNode(!0),M.content.firstChild);TMv=M}M=TMv;return M},{mode:2});var bs=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};M.startHighlightTimeout=0;M.endHighlightTimeout=0;return M};
_.l(bs,_.Q);_.N=bs.prototype;_.N.attached=function(){var M=this;this.startInput.addEventListener("input",function(q){return M.handleStartInput_(q)});
this.endInput.addEventListener("input",function(q){return M.handleEndInput_(q)});
this.startInput.addEventListener("focusout",function(q){return M.handleStartBlur_(q)});
this.endInput.addEventListener("focusout",function(q){return M.handleEndBlur_(q)})};
_.N.setPlayer=function(M){this.set("player_",M)};
_.N.onSetFixedLengthRange_=function(M){var q=M.detail;M=q.start;var G=q.duration,K=q.startLimit;q=q.endLimit;K||(K=this.seekableStart_);q||(q=this.seekableEnd_);M=MKk(M,G,K,q);this.start=M.start;this.end=M.end};
_.N.onSetRange_=function(M){var q=M.detail;M=q.start;var G=q.end,K=q.startLimit;q=q.endLimit;K||(K=this.seekableStart_);q||(q=this.seekableEnd_);if(M=qbv(M,G,K,q,this.minLengthSec,this.maxLengthSec))this.start=M.start,this.end=M.end};
_.N.updateInputs_=function(){var M=this.end,q=this.start;this.startInput.focused||(this.startInput.value=BK(q,!0));this.endInput.focused||(this.endInput.value=BK(M,!0))};
_.N.handleStartInput_=function(M){M=s9v(M.target.value);if(M===null)this.set("startValid",!1);else{var q=this.end,G=qbv(M,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);G?(this.set("endWillUpdate",G.end!==q),this.set("startValid",G.start===M)):this.set("startValid",!1)}};
_.N.handleEndInput_=function(M){M=s9v(M.target.value);if(M===null)this.set("endValid",!1);else{var q=this.start,G=G_W(this.start,M,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);G?(this.set("startWillUpdate",G.start!==q),this.set("endValid",G.end===M)):this.set("endValid",!1)}};
_.N.handleStartBlur_=function(M){M=s9v(M.target.value);M===null?this.startInput.value=BK(this.start,!0):this.forceUpdateInputs_(qbv(M,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.N.handleEndBlur_=function(M){M=s9v(M.target.value);M===null?this.endInput.value=BK(this.end,!0):this.forceUpdateInputs_(G_W(this.start,M,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.N.forceUpdateInputs_=function(M){M&&(this.start=M.start,this.end=M.end);this.startInput.value=BK(this.start,!0);this.endInput.value=BK(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.N.initializeClipRange_=function(){var M=this.seekableEnd_,q=this.seekableStart_,G=this.visible_,K=this.player_;if(!K||!G||q===null||!M)this.set("initialized",!1);else if(!this.initialized){var n=K.getCurrentTime(),E=this.getDefaultLengthSec_();G=K.getVideoData();var p=K.getPlayerState()==1,y=G.isLive;E=Math.min(E,M-q);n=Math.max(0,n);M=y?G_W(n-E,n,q,M,this.minLengthSec,this.maxLengthSec):p?MKk(n-E/2,E,q,M):MKk(n,E,q,M);this.start=M.start;this.end=M.end;this.set("initialized",!0);G.isLive&&K.seekTo(M.start);
this.startInput.value=BK(this.start,!0);this.endInput.value=BK(this.end,!0)}};
_.N.onStartChanged_=function(){var M=this;_.jP(this.hostElement,"start-changed",{start:this.start});var q;isNaN((q=this.oldStart)!=null?q:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){M.set("highlightStart",!1);M.startHighlightTimeout=0;M.oldStart=M.start},3E3))};
_.N.onEndChanged_=function(){var M=this;_.jP(this.hostElement,"end-changed",{end:this.end});var q;isNaN((q=this.oldEnd)!=null?q:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){M.set("highlightEnd",!1);M.endHighlightTimeout=0;M.oldEnd=M.end},3E3))};
_.N.onVisibilityChangedAction_=function(M){var q=this;this.set("visible_",M.visible);this.visible_&&!this.player_&&(M=_.TM())&&M.getPlayerPromise().then(function(G){q.setPlayer(G)})};
_.N.computeMinLengthSec_=function(M){return M/1E3||5};
_.N.computeMaxLengthSec_=function(M){return M/1E3||60};
_.N.computeDefaultLengthSec_=function(M){return M/1E3};
_.N.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.N.computeSeekableStart_=function(M,q){return M&&q?M.getProgressState(1).seekableStart:0};
_.N.computeSeekableEnd_=function(M,q){return M&&q?M.getProgressState(1).seekableEnd:0};
_.N.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.N.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.N.onDragState_=function(M){this.set("highlightStart",M.detail.startChanging);this.set("highlightEnd",M.detail.endChanging)};
bs.prototype.onDragState_=bs.prototype.onDragState_;bs.prototype.onEndChanged_=bs.prototype.onEndChanged_;bs.prototype.onStartChanged_=bs.prototype.onStartChanged_;bs.prototype.initializeClipRange_=bs.prototype.initializeClipRange_;bs.prototype.updateInputs_=bs.prototype.updateInputs_;bs.prototype.onSetRange_=bs.prototype.onSetRange_;bs.prototype.onSetFixedLengthRange_=bs.prototype.onSetFixedLengthRange_;
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],bs.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bs.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bs.prototype,"data",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],bs.prototype,"start",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],bs.prototype,"startValid",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],bs.prototype,"startWillUpdate",void 0);_.T([_.B({value:30}),_.r("design:type",Number)],bs.prototype,"end",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],bs.prototype,"endValid",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],bs.prototype,"endWillUpdate",void 0);_.T([_.B({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.r("design:type",Number)],bs.prototype,"minLengthSec",void 0);
_.T([_.B({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.r("design:type",Number)],bs.prototype,"maxLengthSec",void 0);_.T([_.B({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.r("design:type",Number)],bs.prototype,"defaultLengthSec",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],bs.prototype,"visible_",void 0);_.T([_.B(),_.r("design:type",Object)],bs.prototype,"player_",void 0);
_.T([_.B({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.r("design:type",Number)],bs.prototype,"seekableStart_",void 0);_.T([_.B({computed:"computeSeekableEnd_(player_, visible_)"}),_.r("design:type",Number)],bs.prototype,"seekableEnd_",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],bs.prototype,"initialized",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],bs.prototype,"disabled",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],bs.prototype,"highlightStart",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],bs.prototype,"highlightEnd",void 0);_.T([_.ET("#start"),_.r("design:type",HTMLInputElement)],bs.prototype,"startInput",void 0);_.T([_.ET("#end"),_.r("design:type",HTMLInputElement)],bs.prototype,"endInput",void 0);
_.T([_.GQ("set-fixed-length-range"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],bs.prototype,"onSetFixedLengthRange_",null);_.T([_.GQ("set-range"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],bs.prototype,"onSetRange_",null);_.T([_.KT("start","end"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bs.prototype,"updateInputs_",null);
_.T([_.KT("player_","visible_","seekableStart_","seekableEnd_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bs.prototype,"initializeClipRange_",null);_.T([_.KT("start"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bs.prototype,"onStartChanged_",null);_.T([_.KT("end"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bs.prototype,"onEndChanged_",null);
_.T([_.GQ("clips-drag-state"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],bs.prototype,"onDragState_",null);_.T([_.aO({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],bs);
_.z(bs,"yt-clip-creation-scrubber-renderer",function(){if(zDt===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;x8k===void 0&&(x8k=document.createElement("template"));var K=x8k;G.call(q,K.content.cloneNode(!0),M.content.firstChild);zDt=M}M=zDt;return M},{mode:2});var Uc=function(){var M=_.Q.apply(this,arguments)||this;M.player_=null;M.JSC$22941_playerEvents=new Map;M.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return M};
_.l(Uc,_.Q);_.N=Uc.prototype;_.N.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"}}}};
_.N.created=function(){this.JSC$22941_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$22941_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$22941_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$22941_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.N.detached=function(){this.setPlayer(null)};
_.N.onVisibilityChangedAction_=function(M){var q=this,G;if((G=this.data)==null?0:G.externalVideoId){var K;this.videoId=(K=this.data)==null?void 0:K.externalVideoId}this.getPlayer().then(function(n){if(M.visible)q.returnTime=n.getCurrentTime(),q.isAtLiveHead=n.getProgressState().isAtLiveHead;else{var E=q.returnTime;q.isAtLiveHead&&(E=Number.POSITIVE_INFINITY);n.seekTo(E,void 0,void 0,void 0,51)}})};
_.N.getPlayer=function(){var M=this;if(!this.player_){var q=_.TM();if(q)return q.getPlayerPromise().then(function(G){M.setPlayer(G);return G})}return Promise.resolve(this.player_)};
_.N.setPlayer=function(M){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$22941_playerEvents);if(M){this.player_=M;var q;((q=this.data)==null?0:q.externalVideoId)||this.set("videoId",M.getVideoData().video_id||"");var G;(M==null?void 0:(G=M.getPresentingPlayerType)==null?void 0:G.call(M))===2&&(this.set("isAdPlaying",!0),_.VW(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(M,this.JSC$22941_playerEvents)}};
_.N.ready=function(){_.f_(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.N.onTitleChanged_=function(M){this.set("titleValue",M.detail.title)};
_.N.onStartChanged_=function(M){this.set("start",M.detail.start)};
_.N.onEndChanged_=function(M){this.set("end",M.detail.end)};
_.N.onTitleValidChanged_=function(M){this.set("titleValid",M.detail.valid)};
_.N.onStartValidChanged_=function(M){this.set("startValid",M.detail.valid)};
_.N.onEndValidChanged_=function(M){this.set("endValid",M.detail.valid)};
_.N.onVideoDataChange_=function(){var M;if((M=this.data)==null||!M.externalVideoId){var q;this.set("videoId",((q=this.player_)==null?void 0:q.getVideoData().video_id)||"")}};
_.N.computeFormValid_=function(M,q,G,K){return!!(M&&q&&G&&K)};
_.N.computeCancelButton_=function(M,q,G){return M&&_.C(M,_.f1)?{buttonRenderer:Object.assign({},_.C(M,_.f1),{isDisabled:q||G})}:null};
_.N.computeSubmitButton_=function(M,q,G){return M&&_.C(M,_.f1)?{buttonRenderer:Object.assign({},_.C(M,_.f1),{command:void 0,isDisabled:!this.formValid||q||G})}:null};
_.N.computeSubmitCommand_=function(M){return M||null};
_.N.onSubmit_=function(M){var q=this;M.stopPropagation();M.preventDefault();this.submitCommand_&&(M={},M.comment_text=this.titleValue,M.clip_external_video_id=this.videoId,M.clip_offset_ms=parseInt(this.start*1E3,10),M.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.fx(this.hostElement,[this.submitCommand_,M]).then(function(){q.set("isLoading_",!1)},function(){q.set("isLoading_",!1)}))};
_.N.playerAdStartHandler_=function(){_.VW(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.N.playerAdEndHandler_=function(){_.VW(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.N.onVideoProgress_=function(){var M=this;this.getPlayer().then(function(q){var G,K=(q==null?void 0:(G=q.getPresentingPlayerType)==null?void 0:G.call(q))===2;M.isAdPlaying!==K&&(K?M.playerAdStartHandler_():M.playerAdEndHandler_())})};
Uc.prototype.onEndValidChanged_=Uc.prototype.onEndValidChanged_;Uc.prototype.onStartValidChanged_=Uc.prototype.onStartValidChanged_;Uc.prototype.onTitleValidChanged_=Uc.prototype.onTitleValidChanged_;Uc.prototype.onEndChanged_=Uc.prototype.onEndChanged_;Uc.prototype.onStartChanged_=Uc.prototype.onStartChanged_;Uc.prototype.onTitleChanged_=Uc.prototype.onTitleChanged_;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Uc.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",Object)],Uc.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Uc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Uc.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Uc.prototype,"data",void 0);_.T([_.B({value:""}),_.r("design:type",String)],Uc.prototype,"titleValue",void 0);
_.T([_.B({value:!1}),_.r("design:type",Boolean)],Uc.prototype,"titleValid",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],Uc.prototype,"start",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],Uc.prototype,"startValid",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],Uc.prototype,"end",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],Uc.prototype,"endValid",void 0);_.T([_.B({value:""}),_.r("design:type",String)],Uc.prototype,"videoId",void 0);
_.T([_.B({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.r("design:type",Boolean)],Uc.prototype,"formValid",void 0);_.T([_.B({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.r("design:type",Object)],Uc.prototype,"submitButton_",void 0);_.T([_.B({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.r("design:type",Object)],Uc.prototype,"submitCommand_",void 0);
_.T([_.B({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.r("design:type",Object)],Uc.prototype,"cancelButton_",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],Uc.prototype,"isLoading_",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],Uc.prototype,"isAdPlaying",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],Uc.prototype,"returnTime",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],Uc.prototype,"isAtLiveHead",void 0);
_.T([_.GQ("title-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uc.prototype,"onTitleChanged_",null);_.T([_.GQ("start-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uc.prototype,"onStartChanged_",null);_.T([_.GQ("end-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uc.prototype,"onEndChanged_",null);
_.T([_.GQ("title-valid-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uc.prototype,"onTitleValidChanged_",null);_.T([_.GQ("start-valid-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uc.prototype,"onStartValidChanged_",null);_.T([_.GQ("end-valid-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Uc.prototype,"onEndValidChanged_",null);
_.T([_.aO({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Uc);
_.z(Uc,"yt-clip-creation-renderer",function(){if(U8t===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;bAv===void 0&&(bAv=document.createElement("template"));var K=bAv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);U8t=M}M=U8t;return M},{mode:2});var xV=function(){return _.Q.apply(this,arguments)||this};
_.l(xV,_.Q);xV.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"}}}};
xV.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(M){return M.hasOwnProperty("clipCreationRenderer")})&&_.VW(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
xV.prototype.onPanelContentVisibleChanged=xV.prototype.onPanelContentVisibleChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.jp.YtVisibilityBehavior),_.r("design:type",Object)],xV.prototype,"ytVisibilityBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],xV.prototype,"ytdReduxBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],xV.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],xV.prototype,"panelContentVisible",void 0);_.T([_.KT("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xV.prototype,"onPanelContentVisibleChanged",null);_.T([_.b({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],xV);
_.z(xV,"ytd-clip-section-renderer",function(){if(D8C!==void 0)return D8C;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return D8C=M},{mode:1});var rpG;var zf=function(){return _.Q.apply(this,arguments)||this};
_.l(zf,_.Q);_.N=zf.prototype;
_.N.onKeyDown=function(M){if(this.snippetElements.length!==0&&(M=M.keyCode,M===38||M===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);M===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.wr(this.highlightedIndex,-1,this.snippetElements.length);M=this.snippetElements.length;var q=this.highlightedIndex%M;this.highlightedIndex=q*M<0?q+M:q;M=this.snippetElements[this.highlightedIndex];this.highlightSnippet(M);this.ensureVisible(M)}};
_.N.onKeyUp=function(M){var q=this;m$L(M)&&(M.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.r8.cancelJob(this.inputTimerId),this.inputTimerId=_.r8.addLowPriorityJob(function(){q.typedValue&&(q.fetchSnippets(q.typedValue),q.logInputGesture(q.data))},1E3))};
_.N.onClick=function(M){(M=_.gPS(M.target,null,"snippet-item"))&&this.selectSnippet(M)};
_.N.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.N.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.N.ready=function(){var M=this;this.inputElement.addEventListener("focus",function(){M.snippetsWrapper.style.removeProperty("display")})};
_.N.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.N.getSourceTimelines=function(){if(!this.data)return[];var M=[];if(this.data.searchInVideoSources)for(var q=_.k(this.data.searchInVideoSources),G=q.next();!G.done;G=q.next())G=G.value,G==="SEARCH_IN_VIDEO_SOURCE_ASR"?M.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):G==="SEARCH_IN_VIDEO_SOURCE_OCR"&&M.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return M};
_.N.fetchSnippets=function(M){var q=_.VW(this.hostElement,"yt-get-current-video-id-action")[0],G=this.getSourceTimelines();M={getSearchInVideoCommand:{externalVideoId:q,query:M!=null?M:"",sourceTimelines:G},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}})};
_.N.filterSnippets=function(M,q){var G=this;if(q){this.filteredSnippets=(0,_.xP.unsafeClone)(M);var K=RegExp(_.i$y(q),"i");this.filteredSnippets=this.filteredSnippets.filter(function(p){return K.test(G.ytRendererBehavior.getSimpleString(p.snippet))});
M=_.k(this.filteredSnippets);for(var n=M.next();!n.done;n=M.next()){n=n.value;var E=this.ytRendererBehavior.getSimpleString(n.snippet);n.snippet={runs:[{text:E.substring(0,E.toLowerCase().indexOf(q))},{text:E.substring(E.toLowerCase().indexOf(q),E.toLowerCase().indexOf(q)+q.length),bold:!0},{text:E.substring(E.toLowerCase().indexOf(q)+q.length,E.length)}]}}}else this.filteredSnippets=M};
_.N.onUpdateSearchInVideoResults=function(M){if(!(this.snippets.length>0)){var q,G,K;if((K=(q=_.C(M,MSG))==null?void 0:(G=q.results)==null?void 0:G.length)!=null&&K){var n;this.filteredSnippets=this.snippets=((n=_.C(M,MSG))==null?void 0:n.results).map(function(E){var p,y,Y;return{startMs:E==null?void 0:(p=E.searchInVideoResultRenderer)==null?void 0:p.startMs,startTimeText:E==null?void 0:(y=E.searchInVideoResultRenderer)==null?void 0:y.startTimeText,snippet:E==null?void 0:(Y=E.searchInVideoResultRenderer)==
null?void 0:Y.snippet}})}}};
_.N.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};
_.N.highlightSnippet=function(M){M.classList.add("highlighted")};
_.N.removeSnippetHighlight=function(M){M.classList.remove("highlighted")};
_.N.selectSnippet=function(M){this.typedValue=String(M.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(M);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.N.ensureVisible=function(M){var q=this.snippetsWrapper.scrollTop,G=q+this.snippetsWrapper.clientHeight,K=M.offsetTop-this.snippetsWrapper.offsetTop;M=K+M.clientHeight;K<q?this.snippetsWrapper.scrollTop-=q-K:M>G&&(this.snippetsWrapper.scrollTop+=M-G)};
_.N.seekPlayer=function(M){var q,G;return _.L(function(K){if(K.nextAddress==1){if(!M)return K.jumpTo(0);q=Number(M.dataset.startOffset);return K.yield(_.rk().getPlayerPromise(),3)}G=K.yieldResult;G.seekTo(q/1E3,!0);G.wakeUpControls();_.gL(K)})};
_.N.logInputGesture=function(M){var q=_.Cx();q&&(M==null?0:M.trackingParams)&&_.bO(q,_.yx(M.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.N.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("typed-value-changed",this.typedValue))};
_.N.updateTypedValueFromBinding=function(M){this.typedValue=M.currentTarget.value};
zf.prototype.typedValueChangedForBinding=zf.prototype.typedValueChangedForBinding;zf.prototype.dataChanged=zf.prototype.dataChanged;zf.prototype.panelContentVisibleChanged=zf.prototype.panelContentVisibleChanged;zf.prototype.onClick=zf.prototype.onClick;zf.prototype.onKeyUp=zf.prototype.onKeyUp;zf.prototype.onKeyDown=zf.prototype.onKeyDown;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],zf.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],zf.prototype,"data",void 0);_.T([_.B({value:[]}),_.r("design:type",Array)],zf.prototype,"snippets",void 0);_.T([_.B({value:[]}),_.r("design:type",Array)],zf.prototype,"filteredSnippets",void 0);_.T([_.B({value:[]}),_.r("design:type",Array)],zf.prototype,"snippetElements",void 0);
_.T([_.ET("#siv-input"),_.r("design:type",HTMLElement)],zf.prototype,"inputElement",void 0);_.T([_.ET("#siv-snippets-wrapper"),_.r("design:type",HTMLElement)],zf.prototype,"snippetsWrapper",void 0);_.T([_.B(),_.r("design:type",String)],zf.prototype,"typedValue",void 0);_.T([_.B({value:-1}),_.r("design:type",Number)],zf.prototype,"highlightedIndex",void 0);_.T([_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[_.vT]),_.r("design:returntype")],zf.prototype,"onKeyDown",null);
_.T([_.GQ("keyup"),_.r("design:type",Function),_.r("design:paramtypes",[_.vT]),_.r("design:returntype")],zf.prototype,"onKeyUp",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],zf.prototype,"onClick",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],zf.prototype,"panelContentVisible",void 0);
_.T([_.KT("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zf.prototype,"panelContentVisibleChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zf.prototype,"dataChanged",null);_.T([_.KT("typedValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zf.prototype,"typedValueChangedForBinding",null);
_.T([_.b({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],zf);
_.z(zf,"ytd-search-in-video-renderer",function(){if(rpG!==void 0)return rpG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return rpG=M},{mode:1});var jwk;var mj=function(){return _.Q.apply(this,arguments)||this};
_.l(mj,_.Q);mj.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
mj.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]]"}}}}}};
mj.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var M,q,G,K,n=(q=_.C((M=this.data)==null?void 0:M.onClickCommand,_.wBS))==null?void 0:(G=q.item)==null?void 0:(K=G.notificationTextRenderer)==null?void 0:K.successResponseText;n&&_.tkF(this.hostElement,n)}};
_.Yd.Object.defineProperties(mj.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K;return this.isProductPlaceholder&&((M=this.data)==null?void 0:(q=M.hiddenProductOptions)==null?void 0:q.showDropCountdown)&&!!((G=this.data)==null?0:(K=G.hiddenProductOptions)==null?0:K.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var M;return!this.isProductPlaceholder&&!((M=this.data)==null?0:M.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null?0:M.priceReplacementText)&&!((q=this.data)==null||!q.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],mj.prototype,"componentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],mj.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("isProductPlaceholder"),_.r("design:type",Object),_.r("design:paramtypes",[])],mj.prototype,"useCenterLayoutContainer",null);_.T([_.B({computed:"computeButtonOverride(data)"}),_.r("design:type",Object)],mj.prototype,"buttonOverride",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],mj.prototype,"isProductPlaceholder",null);
_.T([_.c("isProductPlaceholder"),_.r("design:type",Object),_.r("design:paramtypes",[])],mj.prototype,"showDropCountdown",null);_.T([_.c("isProductPlaceholder","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],mj.prototype,"showBrandName",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],mj.prototype,"showPriceReplacementText",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],mj.prototype,"showPrice",null);
_.T([_.c("isProductPlaceholder"),_.r("design:type",Object),_.r("design:paramtypes",[])],mj.prototype,"showMetadata",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],mj);
_.z(mj,"ytd-product-list-item-renderer",function(){if(jwk!==void 0)return jwk;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return jwk=M},{mode:1});var V1M;var ST=function(){return _.Q.apply(this,arguments)||this};
_.l(ST,_.Q);ST.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
ST.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
ST.prototype.panelContentVisibleChanged=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return M.playerApi?G.jumpTo(2):G.yield(_.rk().getPlayerPromise(),3);G.nextAddress!=2&&(M.playerApi=G.yieldResult);(q=M.playerApi)==null||q.productsInVideoVisibilityUpdated(!!M.panelContentVisible);_.gL(G)})};
ST.prototype.panelContentVisibleChanged=ST.prototype.panelContentVisibleChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ST.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ST.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ST.prototype,"panelContentVisible",void 0);_.T([_.B(),_.r("design:type",Object)],ST.prototype,"data",void 0);
_.T([_.KT("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],ST.prototype,"panelContentVisibleChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],ST);
_.z(ST,"ytd-product-list-renderer",function(){if(V1M!==void 0)return V1M;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return V1M=M},{mode:1});var RDk;var Tf=function(){var M=_.Q.apply(this,arguments)||this;M.hideTimestamps=!!_.d2("hide-transcript-timestamps");M.currentCueIndex=-1;M.flatCues=[];M.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};M.TEST_ONLY={getFlatCues:function(){return M.flatCues}};
return M};
_.l(Tf,_.Q);_.N=Tf.prototype;_.N.hideTimestampsChanged=function(){_.AK("hide-transcript-timestamps",this.hideTimestamps)};
_.N.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.N.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.N.dataChanged=function(){var M;if((M=this.data)!=null&&M.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;M=_.k(this.data.cueGroups);for(var q=M.next();!q.done;q=M.next()){q=_.k(_.C(q.value,qxe).cues);for(var G=q.next();!G.done;G=q.next())this.flatCues.push(Number(_.C(G.value,Gcv).startOffsetMs))}}};
_.N.onYtPlayerTimeChanged=function(M){if(!(M<0)){for(var q=this.currentCueIndex,G=q;;){var K=G>=0?this.flatCues[G]/1E3:-1;if(M+.5<K)--G;else if(K=G+1<this.flatCues.length?this.flatCues[G+1]/1E3:Infinity,M+.5>K)G+=1;else break}G!==q&&(q>=0&&((M=this.getCueElement(q))&&M.classList.remove("active"),(q=this.getCueGroupElement(q))&&q.classList.remove("active")),(q=this.getCueElement(G))&&q.classList.add("active"),(q=this.getCueGroupElement(G))&&q.classList.add("active"),this.currentCueIndex=G,this.isHovered||
this.scrollElementToTop(G))}};
_.N.scrollElementToTop=function(M){M=this.getCueElement(M>=3?M-3:0);this.hostElement.scrollTop=Math.min(M.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.N.getCueElement=function(M){return _.f_(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[M]+'"]')};
_.N.getCueGroupElement=function(M){return(M=this.getCueElement(M))&&M.parentElement?M.parentElement.parentElement:null};
_.N.onTap=function(M){var q=_.ba(M);M.target.classList.contains("cue")&&this.seekCueElement(q)};
_.N.onKeyPress=function(M){M.keyCode==13&&(M=_.gPS(M.target,null,"cue"))&&this.seekCueElement(M)};
_.N.seekCueElement=function(M){M=Number(M.getAttribute("start-offset"));_.VW(this.hostElement,"yt-transcript-player-seek",[M/1E3])};
_.N.onMouseEnter=function(){this.isHovered=!0};
_.N.onMouseLeave=function(){this.isHovered=!1};
Tf.prototype.onMouseLeave=Tf.prototype.onMouseLeave;Tf.prototype.onMouseEnter=Tf.prototype.onMouseEnter;Tf.prototype.onKeyPress=Tf.prototype.onKeyPress;Tf.prototype.onTap=Tf.prototype.onTap;Tf.prototype.dataChanged=Tf.prototype.dataChanged;Tf.prototype.hideTimestampsChanged=Tf.prototype.hideTimestampsChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Tf.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Tf.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Tf.prototype,"hideTimestamps",void 0);_.T([_.B(),_.r("design:type",Boolean)],Tf.prototype,"isHovered",void 0);_.T([_.KT("hideTimestamps"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tf.prototype,"hideTimestampsChanged",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tf.prototype,"dataChanged",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Tf.prototype,"onTap",null);_.T([_.GQ("keypress"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],Tf.prototype,"onKeyPress",null);
_.T([_.GQ("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tf.prototype,"onMouseEnter",null);_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tf.prototype,"onMouseLeave",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],Tf);
_.z(Tf,"ytd-transcript-body-renderer",function(){if(RDk!==void 0)return RDk;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return RDk=M},{mode:1});var fbA;var ro=function(){var M=_.Q.apply(this,arguments)||this;M.darkerPanels=_.w("web_watch_darker_panels");return M};
_.l(ro,_.Q);ro.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ro.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ro.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ro.prototype,"darkerPanels",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],ro);
_.z(ro,"ytd-transcript-footer-renderer",function(){if(fbA!==void 0)return fbA;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return fbA=M},{mode:1});var Fly;var HAG;var jT=function(){var M=_.Q.apply(this,arguments)||this;M.systemIcons=_.w("kevlar_system_icons");M.showClearButton=!1;return M};
_.l(jT,_.Q);_.N=jT.prototype;_.N.handleInput=function(M){var q=this;M.target.value.length?_.B4(this,"ytdTranscriptSearchBoxSearch",function(){q.emitSearchEvent(M)},500):(_.lzF(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=M.target.value.length>0};
_.N.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.N.handleClick=function(){var M,q=(M=this.data)==null?void 0:M.trackingParams;q&&_.Pg(_.nl(),q)};
_.N.handleClear=function(){_.lzF(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var M,q,G=(q=_.C((M=this.data)==null?void 0:M.clearButton,_.f1))==null?void 0:q.trackingParams;G&&_.Pg(_.nl(),G);this.clear()};
_.N.emitSearchEvent=function(M){_.jP(this.hostElement,"yt-transcript-search-box-search",{query:M.target.value});var q,G;(M=(G=_.C((q=this.data)==null?void 0:q.searchButton,_.f1))==null?void 0:G.trackingParams)&&_.Pg(_.nl(),M)};
_.N.emitClearEvent=function(){_.jP(this.hostElement,"yt-transcript-search-box-clear")};
_.Yd.Object.defineProperties(jT.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.f_(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jT.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jT.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jT.prototype,"systemIcons",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],jT);
_.z(jT,"ytd-transcript-search-box-renderer",function(){if(HAG!==void 0)return HAG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return HAG=M},{mode:1});var eD3;var $8y;var VX=function(){return _.Q.apply(this,arguments)||this};
_.l(VX,_.Q);VX.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var M,q;this.sectionHeaderAriaLabel=(M=this.data)==null?void 0:(q=M.accessibility)==null?void 0:q.accessibilityData.label}};
VX.prototype.fireSelectedEvent=function(M){_.jP(this.hostElement,"ytd-transcript-section-header",{startMs:M})};
VX.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
VX.prototype.handleKeyPress=function(M){this.data&&M.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Yd.Object.defineProperties(VX.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=(M=this.data)==null?void 0:M.enableTappableTranscriptHeader)!=null?q:!1}}});
VX.prototype.dataChanged=VX.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],VX.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],VX.prototype,"sectionHeaderAriaLabel",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],VX.prototype,"enableTappableTranscriptHeader",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],VX.prototype,"dataChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],VX);
_.z(VX,"ytd-transcript-section-header-renderer",function(){if($8y!==void 0)return $8y;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return $8y=M},{mode:1});var skA;var MUa;var RF=function(){var M=_.Q.apply(this,arguments)||this;M.isEditMode=!1;M.touchCaptionsEnabled=!1;M.deleteCaptionCorrectionPopupCommand=null;M.voteCaptionCorrectionPopupCommand=null;M.roundedContainer=!0;M.mouseOver=!1;M.textChanged=!1;M.messages={suggest_correction:_.Ge("suggest_correction",void 0,"Edit caption"),suggested_caption:_.Ge("suggested_caption",void 0,"Suggested caption"),submit_correction:_.Ge("submit_correction",void 0,"Submit for review"),cancel_correction:_.Ge("cancel_correction",
void 0,"Cancel"),replay_segment:_.Ge("replay_segment",void 0,"Re-play segment"),delete_correction:_.Ge("delete_correction",void 0,"Delete correction")};M.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return M};
_.l(RF,_.Q);_.N=RF.prototype;_.N.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)};
_.N.handleDelete=function(M){if(this.deleteCaptionCorrectionPopupCommand){var q=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);q&&this.ytdOpenPopupBehavior.openPopup(q);M.stopPropagation()}};
_.N.handleSubmit=function(M){if(this.data&&this.data.submitCaptionCorrectionCommand&&(M.stopPropagation(),this.textChanged)){var q;M=(q=_.C(this.data.submitCaptionCorrectionCommand,_.P0P))==null?void 0:q.params;q=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:M,correctionText:String(this.ironTextAreaElement.value),originalText:_.UX(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(q);this.isEditMode=!1}};
_.N.handleUpdateSegmentText=function(M){(M=_.C(M,wRG))&&M.targetId&&this.data&&M.targetId===this.data.targetId&&(M.userCorrection&&(this.editedText=M.userCorrection),M.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.UX(this.data.snippet)),M.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=M.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=M.voteCaptionCorrectionPopupCommand?
M.voteCaptionCorrectionPopupCommand:null,M.accessibility&&(this.segmentAriaLabel=M.accessibility.accessibilityData.label))};
_.N.handleCancel=function(M){this.isEditMode=!1;M.stopPropagation();this.logClientVe(159409)};
_.N.handleEditSegmentCommand=function(M){(M=_.C(M,ODy))&&M.targetId&&this.data&&M.targetId===this.data.targetId&&this.handleEdit()};
_.N.handleEditButtonClick=function(M){this.data&&(this.handleEdit(),M.stopPropagation())};
_.N.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var M;(M=this.ironTextAreaElement.textarea)==null||M.focus();this.logClientVe(159407)}};
_.N.handleMouseEnter=function(){this.mouseOver=!0};
_.N.handleMouseLeave=function(){this.mouseOver=!1};
_.N.handleReplay=function(M){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),M.stopPropagation(),this.logClientVe(159408))};
_.N.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()))};
_.N.handleKeypress=function(M){this.data&&(this.isEditMode?M.stopPropagation():this.isEnterPress(M)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(M)&&this.logClientVe(138758))};
_.N.handleTextboxClick=function(M){M.stopPropagation()};
_.N.handleTextboxKeydown=function(M){this.isControlEnterPress(M)?this.handleSubmit(M):M.key==="Escape"&&this.handleCancel(M)};
_.N.handleTextboxKeyup=function(){this.textChanged=_.UX(this.latestText)!==String(this.ironTextAreaElement.value)};
_.N.fireSelectedEvent=function(M){_.jP(this.hostElement,"yt-transcript-segment-selected",{startMs:M})};
_.N.fireReplayEvent=function(M,q){_.jP(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(M-100,0),endMs:q})};
_.N.fireEditEvent=function(M,q){_.jP(this.hostElement,"yt-transcript-segment-edit",{startMs:M,endMs:q})};
_.N.isEnterPress=function(M){return M.key==="Enter"||M.code==="Enter"||M.code==="NumpadEnter"||M.keyCode===13?!0:!1};
_.N.isControlEnterPress=function(M){var q=M.key==="Enter"||M.code==="Enter"||M.code==="NumpadEnter"||M.keyCode===13;return(M.ctrlKey||M.metaKey)&&q};
_.N.isCopyPress=function(M){var q=M.ctrlKey;return M.key==="c"&&q};
_.N.logClick=function(){var M,q=(M=this.data)==null?void 0:M.trackingParams;q&&_.Pg(_.nl(),q)};
_.N.logClientVe=function(M){_.X3(_.nl(),_.$m(M))};
_.Yd.Object.defineProperties(RF.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}}});
RF.prototype.handleMouseLeave=RF.prototype.handleMouseLeave;RF.prototype.handleMouseEnter=RF.prototype.handleMouseEnter;RF.prototype.dataChanged=RF.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],RF.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],RF.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],RF.prototype,"ytRendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],RF.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],RF.prototype,"isEditMode",void 0);_.T([_.B(),_.r("design:type",Object)],RF.prototype,"touchCaptionsEnabled",void 0);_.T([_.B(),_.r("design:type",Object)],RF.prototype,"editedText",void 0);_.T([_.B(),_.r("design:type",Object)],RF.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.T([_.B(),_.r("design:type",Object)],RF.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.T([_.B(),_.r("design:type",String)],RF.prototype,"segmentAriaLabel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],RF.prototype,"roundedContainer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],RF.prototype,"mouseOver",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],RF.prototype,"textChanged",void 0);_.T([_.B(),_.r("design:type",Object)],RF.prototype,"messages",void 0);
_.T([_.ET("#suggestion"),_.r("design:type",Object)],RF.prototype,"ironTextAreaElement",void 0);_.T([_.c("data","editedText"),_.r("design:type",Object),_.r("design:paramtypes",[])],RF.prototype,"latestText",null);_.T([_.c("touchCaptionsEnabled","isEditMode"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],RF.prototype,"enableEditButton",null);
_.T([_.c("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],RF.prototype,"enableUndoButton",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],RF.prototype,"dataChanged",null);_.T([_.GQ("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],RF.prototype,"handleMouseEnter",null);
_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],RF.prototype,"handleMouseLeave",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],RF);
_.z(RF,"ytd-transcript-segment-renderer",function(){if(MUa!==void 0)return MUa;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return MUa=M},{mode:1});var fg=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};M.isError=!1;M.darkerPanels=_.w("web_watch_darker_panels");M.useParentMaxHeight=_.w("web_watch_transscript_use_parent_max_height");M.segmentOffsets=[];M.segmentIndex=-1;return M};
_.l(fg,_.Q);_.N=fg.prototype;_.N.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"}}}}};
_.N.segmentsChanged=function(){this.updateOffsets()};
_.N.onYtPlayerTimeChanged=function(M){for(var q=this.segmentIndex,G=q;;){if(G>=0){var K=this.segmentOffsets[G].start;var n=this.segmentOffsets[G].isAutoScrollable}else K=-1,n=!0;var E=M+.5;if(!n){K=G+1<this.segmentOffsets.length?this.segmentOffsets[G+1].start:Infinity;if(E>=K){G+=1;continue}G=-1;break}if(E<K)K=G-1>=0&&this.segmentOffsets[G-1].isAutoScrollable,n=G===0||K?1:2,G-=n;else if(n=G+1<this.segmentOffsets.length&&this.segmentOffsets[G+1].isAutoScrollable?1:2,K=G+n<this.segmentOffsets.length?
this.segmentOffsets[G+n].start:Infinity,E>K)G+=n;else{if(G<0)break;G<this.segmentOffsets.length&&E>this.segmentOffsets[G].end&&(G=-1);break}}if(q!==G){if(q>=0){var p;(p=this.getSegmentElement(q))==null||p.classList.remove("active")}this.segmentIndex=G;if(!(G<0)){var y;(y=this.getSegmentElement(G))==null||y.classList.add("active");this.isHovered||this.scrollElementToTop(G)}}};
_.N.handleSegmentEdit=function(M){M.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=M.target,_.VW(this.hostElement,"yt-transcript-player-edit",[M.detail.startMs/1E3,M.detail.endMs/1E3]))};
_.N.handleSegmentSelected=function(M){_.VW(this.hostElement,"yt-transcript-player-seek",[M.detail.startMs/1E3])};
_.N.handleSegmentReplay=function(M){_.VW(this.hostElement,"yt-transcript-player-replay",[M.detail.startMs/1E3,M.detail.endMs/1E3])};
_.N.handleSectionHeaderSelected=function(M){_.VW(this.hostElement,"yt-transcript-player-seek",[M.detail.startMs/1E3])};
_.N.onMouseEnter=function(){this.isHovered=!0};
_.N.onMouseLeave=function(){this.isHovered=!1};
_.N.onRetryButtonClick=function(){_.jP(this.hostElement,"transcript-retry-button-click")};
_.N.getSegmentElement=function(M){return _.f_(this.hostElement).querySelector(":nth-child("+(M+1)+")")};
_.N.scrollElementToTop=function(M){M=this.getSegmentElement(M>=2?M-2:0);this.hostElement.scrollTop=Math.min(M.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.N.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(M){var q,G=(q=M.transcriptSegmentRenderer)!=null?q:M.transcriptSectionHeaderRenderer;return{start:Number(G.startMs)/1E3,end:Number(G.endMs)/1E3,isAutoScrollable:M.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.N.clearHighlightedSegments=function(){var M=_.f_(this.hostElement);M=_.k(M.querySelectorAll("ytd-transcript-segment-renderer"));for(var q=M.next();!q.done;q=M.next())q.value.classList.remove("active")};
_.Yd.Object.defineProperties(fg.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:M.searchResultSegments)||((q=this.data)==null?void 0:q.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
fg.prototype.onMouseLeave=fg.prototype.onMouseLeave;fg.prototype.onMouseEnter=fg.prototype.onMouseEnter;fg.prototype.handleSectionHeaderSelected=fg.prototype.handleSectionHeaderSelected;fg.prototype.handleSegmentReplay=fg.prototype.handleSegmentReplay;fg.prototype.handleSegmentSelected=fg.prototype.handleSegmentSelected;fg.prototype.handleSegmentEdit=fg.prototype.handleSegmentEdit;fg.prototype.segmentsChanged=fg.prototype.segmentsChanged;
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],fg.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],fg.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],fg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fg.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],fg.prototype,"isError",void 0);
_.T([_.B(),_.r("design:type",Object)],fg.prototype,"noResultLabel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fg.prototype,"darkerPanels",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],fg.prototype,"useParentMaxHeight",void 0);_.T([_.c("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],fg.prototype,"segments",null);
_.T([_.c("segments","noResultLabel"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fg.prototype,"displayNoResults",null);_.T([_.KT("segments"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fg.prototype,"segmentsChanged",null);_.T([_.GQ("yt-transcript-segment-edit"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],fg.prototype,"handleSegmentEdit",null);
_.T([_.GQ("yt-transcript-segment-selected"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],fg.prototype,"handleSegmentSelected",null);_.T([_.GQ("yt-transcript-segment-replay"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],fg.prototype,"handleSegmentReplay",null);
_.T([_.GQ("ytd-transcript-section-header"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],fg.prototype,"handleSectionHeaderSelected",null);_.T([_.GQ("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fg.prototype,"onMouseEnter",null);_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fg.prototype,"onMouseLeave",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],fg);
_.z(fg,"ytd-transcript-segment-list-renderer",function(){if(skA!==void 0)return skA;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return skA=M},{mode:1});var FP=function(){var M=_.Q.apply(this,arguments)||this;M.hideTimestamps=!!_.d2("hide-transcript-timestamps");M.isLoadingTranscripts=!1;M.darkerPanels=_.w("web_watch_darker_panels");M.isError=!1;M.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return M};
_.l(FP,_.Q);_.N=FP.prototype;_.N.headerChanged=function(){var M,q;this.baseGetTranscriptsCommand=(q=_.C((M=this.data)==null?void 0:M.header,CjC))==null?void 0:q.onTextChangeCommand};
_.N.bodyChanged=function(){var M=this.getBodyRenderer();M&&(M.initialSegments&&(this.initialTranscriptsRenderer=M),M.noResultLabel&&(this.noResultLabel=M.noResultLabel),M.retryLabel&&(this.retryLabel=M.retryLabel))};
_.N.detached=function(){this.clearSearchBoxText()};
_.N.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.N.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"}}}};
_.N.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.N.fireSearch=function(M){var q=this;if(M){var G=M.detail.query;if(this.baseGetTranscriptsCommand){var K;M=(K=_.C(this.baseGetTranscriptsCommand,_.l4B))==null?void 0:K.params;var n;K=_.C((n=this.data)==null?void 0:n.footer,K8A);var E;if((n=(E=_.C(K==null?void 0:K.languageMenu,vJv))==null?void 0:E.subMenuItems)&&n.length>0&&(E=n.find(function(Y){return Y.selected}))){var p,y;
M=(p=E.continuation)==null?void 0:(y=p.reloadContinuationData)==null?void 0:y.continuation}p=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:M,searchQuery:G}});this.ytComponentBehavior.resolveCommand(p,{commandController:{onServerError:function(){q.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});x$t(this.ytContinuationHandlerBehavior,function(){return G===q.getCurrentSearchBoxText()})}}};
_.N.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.N.onRetryButtonClick=function(){this.isError=!1;var M={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:M}))};
_.N.hideTimestampsChanged=function(){_.AK("hide-transcript-timestamps",this.hideTimestamps)};
_.N.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.N.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.N.handleSignalActionCopyTranscript=function(){var M=this,q=this.getBodyRenderer();q&&(q=((q==null?void 0:q.searchResultSegments)||(q==null?void 0:q.initialSegments)||[]).map(function(G){return _.C(G,oJM)}).filter(function(G){return!!G}).map(function(G){return{snippet:G.snippet||{runs:[{text:""}]},
startTimeText:G.startTimeText||{simpleText:""}}}).map(function(G){var K=(G.snippet.runs||[]).reduce(function(n,E){return n+E.text},"");
return M.hideTimestamps?K:G.startTimeText.simpleText+" "+K}).join("\n"),this.copyToClipboard(q))};
_.N.copyToClipboard=function(M){navigator.clipboard&&navigator.clipboard.writeText(M)};
_.N.getCurrentSearchBoxText=function(){var M;return(M=this.searchBox)==null?void 0:M.value};
_.N.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.N.getBodyRenderer=function(){var M;return _.C((M=this.data)==null?void 0:M.body,afG)};
_.N.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Yd.Object.defineProperties(FP.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.f_(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
FP.prototype.hideTimestampsChanged=FP.prototype.hideTimestampsChanged;FP.prototype.searchCleared=FP.prototype.searchCleared;FP.prototype.fireSearch=FP.prototype.fireSearch;FP.prototype.onReloadContinuationFinish=FP.prototype.onReloadContinuationFinish;FP.prototype.bodyChanged=FP.prototype.bodyChanged;FP.prototype.headerChanged=FP.prototype.headerChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],FP.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],FP.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],FP.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],FP.prototype,"hideTimestamps",void 0);
_.T([_.B(),_.r("design:type",Object)],FP.prototype,"isLoadingTranscripts",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],FP.prototype,"darkerPanels",void 0);_.T([_.B(),_.r("design:type",Object)],FP.prototype,"isError",void 0);_.T([_.KT("data.header"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FP.prototype,"headerChanged",null);
_.T([_.yO("data.body"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FP.prototype,"bodyChanged",null);_.T([_.GQ("yt-reload-continuation-finish"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FP.prototype,"onReloadContinuationFinish",null);_.T([_.GQ("yt-transcript-search-box-search"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],FP.prototype,"fireSearch",null);
_.T([_.GQ("yt-transcript-search-box-clear"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FP.prototype,"searchCleared",null);_.T([_.KT("hideTimestamps"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FP.prototype,"hideTimestampsChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],FP);
_.z(FP,"ytd-transcript-search-panel-renderer",function(){if(eD3!==void 0)return eD3;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return eD3=M},{mode:1});var Hd=function(){var M=_.Q.apply(this,arguments)||this;M.player=null;M.playerPollJobId=0;return M};
_.l(Hd,_.Q);_.N=Hd.prototype;_.N.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.N.onLoadReloadContinuation=function(M){_.w("web_generate_att_data_for_get_transcript_request")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:M.target.data.continuation}}):(M={clickTrackingParams:M.target.data.clickTrackingParams,getTranscriptEndpoint:{params:M.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}}))};
_.N.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"}}}};
_.N.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.N.attached=function(){this.updatePlayerListening()};
_.N.detached=function(){this.updatePlayerListening()};
_.N.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.N.startPlayerListening=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return(q=_.TM())?G.yield(q.getPlayerPromise(),2):G.return();M.player=G.yieldResult;M.playerPollJobId=_.r8.addLowPriorityJob(function(){M.getPlayerVideoProgress()},1E3);
M.player.addEventListener("onCueRangeEnter",function(K){M.onCueRangeEnter(K)});
M.player.addEventListener("onCueRangeExit",function(K){M.onCueRangeExit(K)});
M.player.addEventListener("onStateChange",function(K){M.onPlayerStateChange(K)});
M.player.addEventListener("SEEK_TO",function(K){M.onPlayerSeek(K)});
_.gL(G)})};
_.N.getPlayerVideoProgress=function(){var M=this;_.r8.cancelJob(this.playerPollJobId);if(this.player){var q=this.player.getCurrentTime();_.VW(this.hostElement,"yt-player-time-changed",[q])}this.playerPollJobId=_.r8.addLowPriorityJob(function(){M.getPlayerVideoProgress()},1E3)};
_.N.stopPlayerListening=function(){this.player=null;_.r8.cancelJob(this.playerPollJobId)};
_.N.onPlayerStateChange=function(M){M===2&&this.removePendingCue()};
_.N.onPlayerSeek=function(M){var q;if(q=this.pendingReplayCueId)q=this.pendingReplayCueId,q=M===(_.w("web_transcript_cue_id_killswitch")?Number(q):Number(q.split("_")[1]));q||this.removePendingCue()};
_.N.onCueRangeEnter=function(M){n2A(M)&&(this.pendingReplayCueId=M)};
_.N.onCueRangeExit=function(M){n2A(M)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.N.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.N.onYtTranscriptPlayerSeek=function(M){this.player&&this.player.seekTo(M,!0)};
_.N.onYtTranscriptPlayerReplay=function(M,q){this.player&&(this.player.addCueRange(KTa(M),M,q),this.player.seekTo(M,!0),this.player.playVideo())};
_.N.onYtTranscriptPlayerEdit=function(M,q){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(KTa(M),M,q),this.player.seekTo(M,!0))};
Hd.prototype.onLoadReloadContinuation=Hd.prototype.onLoadReloadContinuation;Hd.prototype.panelContentVisibleChanged=Hd.prototype.panelContentVisibleChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Hd.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Hd.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Hd.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Hd.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Hd.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Hd.prototype,"panelContentVisible",void 0);_.T([_.KT("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hd.prototype,"panelContentVisibleChanged",null);
_.T([_.GQ("yt-load-reload-continuation"),_.r("design:type",Function),_.r("design:paramtypes",[Object]),_.r("design:returntype")],Hd.prototype,"onLoadReloadContinuation",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],Hd);
_.z(Hd,"ytd-transcript-renderer",function(){if(Fly!==void 0)return Fly;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Fly=M},{mode:1});var qQk;var GCC;var eT=function(){return _.Q.apply(this,arguments)||this};
_.l(eT,_.Q);eT.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.FH(this.hostElement,[this.data.clickCommand],this.hostElement))};
eT.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.lL)()+_.JF)+"px)"};
eT.prototype.updateShouldHideFromBinding=function(M){this.shouldHide=M.detail.value};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],eT.prototype,"rendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],eT.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],eT.prototype,"shouldHide",void 0);_.T([_.b({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],eT);
_.z(eT,"ytd-ad-engagement-panel-banner-renderer",function(){if(GCC!==void 0)return GCC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return GCC=M},{mode:_.VO("kevlar_poly_si_batch_j070")?1:2});var KhC;var $V=function(){var M=_.Q.apply(this,arguments)||this;M.buttonUpdate=_.w("web_modern_buttons");M.adsSemanticText=_.w("enable_ads_web_ep_buenos_aires_and_padding_fix");return M};
_.l($V,_.Q);$V.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.T([_.B(),_.r("design:type",Object)],$V.prototype,"data",void 0);_.T([_.B({computed:"computeHideDefaultAdBadge(data)"}),_.r("design:type",Boolean)],$V.prototype,"hideDefaultAdBadge",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$V.prototype,"buttonUpdate",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$V.prototype,"adsSemanticText",void 0);_.T([_.b({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],$V);
_.z($V,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(KhC!==void 0)return KhC;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return KhC=M},{mode:1});var nIM;var sN=function(){var M=_.Q.apply(this,arguments)||this;M.darkerPanels=_.w("web_watch_darker_panels");M.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");M.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");M.headerClickListener=function(q){M.onHeaderClick(q)};
M.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return M};
_.l(sN,_.Q);_.N=sN.prototype;_.N.computeAdsInfoButton=function(){if(_.w("web_modern_buttons")){var M,q;return(q=_.C((M=this.data)==null?void 0:M.subtitleComplex,nJ9))==null?void 0:q.adInfoRenderer}};
_.N.updateHeaderClickListener=function(){var M,q,G;((M=this.data)==null?0:M.navigationEndpoint)||((q=this.data)==null?0:q.onClickCommand)||_.C((G=this.data)==null?void 0:G.visibilityButton,_.F7)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.N.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}}}}}};
_.N.collapsedChanged=function(){var M;(M=this.data)!=null&&M.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.w("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.N.focus=function(M){var q=this;this.titleElement&&_.r8.addJob(function(){_.E4(q.titleElement,M)},0,500)};
_.N.computeTitleAriaLabel=function(M){var q=[];if(M.title){var G,K;q.push(this.ytRendererBehavior.getSimpleString(M.title)||((G=M.title.accessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label))}M.contextualInfo&&q.push(this.ytRendererBehavior.getSimpleString(M.contextualInfo));return q.join(" ")};
_.N.onHeaderClick=function(M){this.shouldTriggerHeaderClick(M)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.FH(this.hostElement,[this.data.onClickCommand],this.hostElement)):(M=this.getVisibilityToggleButton())&&M.click())};
_.N.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var M=_.C(this.data.visibilityButton,_.f1)||_.C(this.data.visibilityButton,_.F7);M&&this.ytRendererBehavior.logExplicitClick(M)}};
_.N.getVisibilityToggleButton=function(){var M=_.f_(this.hostElement).querySelector("#visibility-button").firstElementChild;return(M==null?void 0:M.is)==="ytd-toggle-button-renderer"?M:null};
_.N.shouldTriggerHeaderClick=function(M){return!_.b8(_.Zx(M),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.N.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(M){M=_.C(M,_.FTG);this.targetId&&(M==null?void 0:M.targetId)===this.targetId&&(M=M.navigationButton)&&this.set("data.navigationButton",M)};
_.Yd.Object.defineProperties(sN.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!!(((M=this.entity)==null?0:M.isActionButtonHidden)||this.hideActionButton)}}});
sN.prototype.collapsedChanged=sN.prototype.collapsedChanged;sN.prototype.updateHeaderClickListener=sN.prototype.updateHeaderClickListener;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],sN.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],sN.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sN.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],sN.prototype,"targetId",void 0);_.T([_.B(),_.r("design:type",Boolean)],sN.prototype,"collapsed",void 0);_.T([_.B(),_.r("design:type",Boolean)],sN.prototype,"hideActionButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],sN.prototype,"shortsPanel",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],sN.prototype,"liveChatEngagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],sN.prototype,"learningChatEngagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],sN.prototype,"darkerPanels",void 0);_.T([_.ET("#title"),_.r("design:type",HTMLElement)],sN.prototype,"titleElement",void 0);_.T([_.ET("#header"),_.r("design:type",HTMLElement)],sN.prototype,"headerElement",void 0);
_.T([_.B({computed:"computeAdsInfoButton(data)"}),_.r("design:type",Object)],sN.prototype,"adsInfoButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],sN.prototype,"enableSqueezebackPanels",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],sN.prototype,"enableAnchoredPanel",void 0);_.T([_.B({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(M,q){return _.sX(M.entities,"engagementPanelTitleHeaderEntity",q)}}),
_.r("design:type",Object)],sN.prototype,"entity",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("targetId"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],sN.prototype,"adsSemanticText",null);_.T([_.KT("data","data.navigationEndpoint","data.onClickCommand"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sN.prototype,"updateHeaderClickListener",null);
_.T([_.yO("collapsed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sN.prototype,"collapsedChanged",null);_.T([_.c("entity","hideActionButton"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],sN.prototype,"isActionButtonHidden",null);_.T([_.b({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],sN);
_.z(sN,"ytd-engagement-panel-title-header-renderer",function(){if(nIM!==void 0)return nIM;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return nIM=M},{mode:1});var EIA;var MU=function(){return _.Q.apply(this,arguments)||this};
_.l(MU,_.Q);MU.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],MU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],MU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],MU.prototype,"data",void 0);_.T([_.b({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],MU);
_.z(MU,"ytd-macro-markers-info-item-renderer",function(){if(EIA!==void 0)return EIA;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return EIA=M},{mode:1});var N_e;var qU=function(M,q,G,K,n,E){_.uI.call(this);var p=this;this.JSC$23042_containerElement=M;this.hostElement=q;this.supportedSyncItems=G;this.syncEntityKey=K;this.options=n;this.renderLazyListItems=E;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;kCy(this);pUk(this);this.JSC$23042_scrollAnimation=new _.M7(function(y){M.scrollTop=y});
_.oE(this,this.JSC$23042_scrollAnimation);this.addOnDisposeCallback(function(){y5G(p,!1);p.activeItem&&p.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.l(qU,_.uI);var kCy=function(M){var q=_.IQ(_.AL().resolve(_.xy),function(G){return G.entities.markersEngagementPanelSyncEntity||{}},function(G,K){var n;
if(G[M.syncEntityKey]!==K[M.syncEntityKey]&&((n=G[M.syncEntityKey])==null?void 0:n.activeItemIndex)!==void 0)if(K=G[M.syncEntityKey].activeItemIndex,G=M.getItemByIndex(K)){if(LhG(M,G),M.contentVisible)if(M.browsingMode){var E;((E=M.options)==null?void 0:E.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(E=YQk(M),G.offsetTop<M.JSC$23042_containerElement.clientHeight+M.JSC$23042_containerElement.scrollTop&&E&&!M.activeItemBelowSyncPosition&&y5G(M,!1));Wht(M)}else M.scrollToItem(G)}else _.j1(new _.bj("Could not find "+
M.supportedSyncItems+" sync child to set active.",K,M.JSC$23042_containerElement.querySelectorAll(M.supportedSyncItems).length))});
M.unsubscribeFromTimedMarkersListSyncEntity=q;M.addOnDisposeCallback(q);A5y(M)},A5y=function(M){var q=_.AL().resolve(_.xy);
q=_.h$y(q.getState(),M.syncEntityKey);(q==null?void 0:q.activeItemIndex)!==void 0&&(q=M.getItemByIndex(q.activeItemIndex))&&LhG(M,q)},pUk=function(M){var q=new _.qA(M.onScroll,50,M);
_.oE(M,q);var G=function(){q.fire()};
M.JSC$23042_containerElement.addEventListener("scroll",G);M.addOnDisposeCallback(function(){M.JSC$23042_containerElement.removeEventListener("scroll",G)})};
qU.prototype.getItemByIndex=function(M){var q;(q=this.renderLazyListItems)==null||q.call(this,M);q=this.JSC$23042_containerElement.querySelectorAll(this.supportedSyncItems);if(q.length>M)return q[M]};
var LhG=function(M,q){M.activeItem&&M.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));q.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));M.activeItem=q};
qU.prototype.scrollToItem=function(M){M=this.getScrollPositionForItem(M);this.JSC$23042_containerElement.scrollTop!==M&&this.JSC$23042_scrollAnimation.start(this.JSC$23042_containerElement.scrollTop,M,300)};
qU.prototype.getScrollPositionForItem=function(M){if(this.JSC$23042_containerElement.querySelectorAll(this.supportedSyncItems)[0]===M)return 0;var q,G=((q=this.options)==null?0:q.percentOffset)?this.JSC$23042_containerElement.clientHeight*this.options.percentOffset:0;M=_.rq(M).y+this.JSC$23042_containerElement.scrollTop-(_.rq(this.JSC$23042_containerElement).y+G);return Math.max(0,Math.min(M,this.JSC$23042_containerElement.scrollHeight-this.JSC$23042_containerElement.offsetHeight))};
qU.prototype.onScroll=function(){this.activeItemBelowSyncPosition=YQk(this);if(this.activeItem&&!this.JSC$23042_scrollAnimation.isAnimating()&&Math.abs(this.JSC$23042_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var M;switch((M=this.options)==null?void 0:M.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":d6W(this,!vI3(this));Wht(this);break;default:d6W(this,!0)}}};
var d6W=function(M,q){var G,K;_.L(function(n){if(n.nextAddress==1){if(M.browsingMode)return n.return();M.browsingMode=!0;q&&M.hostElement.classList.add("browsing-mode");M.playerExitBrowsingModeListener=function(){y5G(M,!1)};
return n.yield(_.s0(),2)}G=n.yieldResult;(K=G)==null||K.addEventListener("SEEK_TO",M.playerExitBrowsingModeListener);_.gL(n)})},y5G=function(M,q){q=q===void 0?!0:q;
M.browsingMode&&(M.browsingMode=!1,M.hostElement.classList.remove("browsing-mode"),q&&M.scrollToItem(M.activeItem),h0t(M))},h0t=function(M){var q,G;
_.L(function(K){if(K.nextAddress==1)return M.playerExitBrowsingModeListener?K.yield(_.s0(),3):K.jumpTo(0);q=K.yieldResult;(G=q)==null||G.removeEventListener("SEEK_TO",M.playerExitBrowsingModeListener);M.playerExitBrowsingModeListener=void 0;_.gL(K)})},Wht=function(M){var q;
((q=M.options)==null?void 0:q.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(vI3(M)?M.hostElement.classList.remove("browsing-mode"):M.activeItem&&M.hostElement.classList.add("browsing-mode"))},YQk=function(M){if(!M.activeItem)return!1;
var q,G=((q=M.options)==null?0:q.percentOffset)?M.JSC$23042_containerElement.clientHeight*M.options.percentOffset:0;return M.activeItem.offsetTop>=M.JSC$23042_containerElement.scrollTop+G},vI3=function(M){if(!M.activeItem)return!1;
var q=M.activeItem.offsetTop+14<=M.JSC$23042_containerElement.scrollTop+M.JSC$23042_containerElement.clientHeight;return M.activeItem.offsetTop+M.activeItem.clientHeight-14>=M.JSC$23042_containerElement.scrollTop&&q};
qU.prototype.panelContentVisibleChanged=function(M){(this.contentVisible=M)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var tUe=function(M,q){M.syncEntityKey=q;var G;(G=M.unsubscribeFromTimedMarkersListSyncEntity)==null||G.call(M);kCy(M)},OIk=function(M,q){M.options=q};var GH=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return M};
_.l(GH,_.Q);_.N=GH.prototype;_.N.detached=function(){var M;(M=this.scrollController)==null||M.dispose();this.scrollController=void 0};
_.N.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"}}}};
_.N.dataChanged=function(){var M=this;_.yb(this,function(){if(M.scrollController){var q;(q=M.scrollController)==null||y5G(q,!1);var G,K,n;(K=M.scrollController)==null||tUe(K,(n=(G=M.data)==null?void 0:G.syncModelEntityKey)!=null?n:"default-macro-markers-list-renderer-entity-key");var E,p,y;(y=M.scrollController)==null||OIk(y,{percentOffset:(E=M.data)==null?void 0:E.selectedItemAlignmentPercentOffset,floatingPillType:(p=M.data)==null?void 0:p.floatingPillType})}else{var Y,A,v,h;M.scrollController=
new qU(M.contents,M.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(h=(Y=M.data)==null?void 0:Y.syncModelEntityKey)!=null?h:"default-macro-markers-list-renderer-entity-key",{percentOffset:(A=M.data)==null?void 0:A.selectedItemAlignmentPercentOffset,floatingPillType:(v=M.data)==null?void 0:v.floatingPillType},function(t){M.renderLazyListItems(t)})}M.scrollController.panelContentVisibleChanged(!!M.panelContentVisible)})};
_.N.computeButtonShape=function(){var M=this;if(this.data&&this.data.syncButtonLabel)return{onTap:function(){M.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.N.renderLazyListItems=function(M){for(var q=this.contents.children,G=0,K=0;K<q.length;K++){var n=void 0;(n=q[K].ytLazyListBehavior)==null||n.fillRemainingListItems();var E=void 0,p=void 0;n=_.C((E=this.data)==null?void 0:(p=E.contents)==null?void 0:p[K],_.ESB);p=E=void 0;if((E=n)==null?0:(p=E.contents)==null?0:p.length)G+=n.contents.length;if(G>=M)break}};
_.N.handleSetActivePanelItemAction=function(M){if((M=_.C(M,eyk))&&this.panelTargetId===M.panelTargetId){M=M.itemIndex;var q,G,K=(G=(q=this.data)==null?void 0:q.syncModelEntityKey)!=null?G:"default-macro-markers-list-renderer-entity-key",n;((n=this.syncEntity)==null?void 0:n.activeItemIndex)!==M&&this.ytdReduxBehavior.dispatch(_.LL("markersEngagementPanelSyncEntity",K,{key:K,activeItemIndex:M}))}};
_.N.onSyncClick=function(){var M;(M=this.scrollController)==null||y5G(M)};
_.N.panelContentVisibleChanged=function(){var M;(M=this.scrollController)==null||M.panelContentVisibleChanged(!!this.panelContentVisible)};
GH.prototype.panelContentVisibleChanged=GH.prototype.panelContentVisibleChanged;GH.prototype.dataChanged=GH.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],GH.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],GH.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],GH.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],GH.prototype,"data",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],GH.prototype,"useCustomColors",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],GH.prototype,"panelTargetId",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],GH.prototype,"panelContentVisible",void 0);
_.T([_.ET("#contents"),_.r("design:type",HTMLElement)],GH.prototype,"contents",void 0);_.T([_.B({selectorArgs:["data.syncModelEntityKey"],selector:_.h$y}),_.r("design:type",Object)],GH.prototype,"syncEntity",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GH.prototype,"dataChanged",null);
_.T([_.KT("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],GH.prototype,"panelContentVisibleChanged",null);_.T([_.b({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],GH);
_.z(GH,"ytd-macro-markers-list-renderer",function(){if(N_e!==void 0)return N_e;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return N_e=M},{mode:1});var wUG;var Ko=function(){return _.Q.apply(this,arguments)||this};
_.l(Ko,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Ko.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ko.prototype,"data",void 0);_.T([_.b({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Ko);
_.z(Ko,"ytd-error-corrections-section-item-renderer",function(){if(wUG!==void 0)return wUG;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return wUG=M},{mode:1});var CR9;var no=function(){return _.Q.apply(this,arguments)||this};
_.l(no,_.Q);no.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],no.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],no.prototype,"data",void 0);_.T([_.b({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],no);
_.z(no,"ytd-error-corrections-section-renderer",function(){if(CR9!==void 0)return CR9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return CR9=M},{mode:1});var ayt;var EN=function(){return _.Q.apply(this,arguments)||this};
_.l(EN,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],EN.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],EN.prototype,"data",void 0);_.T([_.b({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],EN);
_.z(EN,"ytd-topic-link-renderer",function(){if(ayt!==void 0)return ayt;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ayt=M},{mode:1});var oIy;var NU=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("kevlar_modern_sd_v2");M.modernLockupV2=_.w("modernize_structured_description_playlist_lockups_v2");return M};
_.l(NU,_.Q);NU.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],NU.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],NU.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],NU.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],NU.prototype,"modern",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],NU.prototype,"modernLockupV2",void 0);
_.T([_.b({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],NU);
_.z(NU,"ytd-video-description-course-section-renderer",function(){if(oIy!==void 0)return oIy;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return oIy=M},{mode:1});var lyC;var kM=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("kevlar_modern_sd_v2");return M};
_.l(kM,_.Q);kM.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],kM.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],kM.prototype,"modern",void 0);_.T([_.b({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],kM);
_.z(kM,"ytd-video-description-files-section-renderer",function(){if(lyC!==void 0)return lyC;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return lyC=M},{mode:1});var XUL;var po=function(){return _.Q.apply(this,arguments)||this};
_.l(po,_.Q);po.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],po.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],po.prototype,"data",void 0);_.T([_.b({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],po);
_.z(po,"ytd-video-description-gaming-section-renderer",function(){if(XUL!==void 0)return XUL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return XUL=M},{mode:1});var PR3;var y9=function(){var M=_.Q.apply(this,arguments)||this;M.isExpanded=!1;return M};
_.l(y9,_.Q);y9.prototype.computeHasDefaultMetadataEndpoint=function(M){var q;M=M==null?void 0:(q=M.defaultMetadata)==null?void 0:q.runs;return!(!M||M.length!==1||!M[0].navigationEndpoint)};
y9.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Yd.Object.defineProperties(y9.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],y9.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],y9.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],y9.prototype,"isExpanded",void 0);_.T([_.B({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],y9.prototype,"hasDefaultMetadataEndpoint",void 0);
_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],y9.prototype,"isExpandable",null);_.T([_.c("data","isExpandable","isExpanded"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],y9.prototype,"showExpandedMetadata",null);_.T([_.b({is:"ytd-info-row-renderer",disableElementRegistration:!0})],y9);
_.z(y9,"ytd-info-row-renderer",function(){if(PR3!==void 0)return PR3;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return PR3=M},{mode:1});var iIG;var Lo=function(){var M=_.Q.apply(this,arguments)||this;M.currentIndex=0;M.supportComponentResize=!0;M.modern=_.w("kevlar_modern_sd_v2");M.JSC$23072_lastScrollContainerWidth=NaN;return M};
_.l(Lo,_.Q);_.N=Lo.prototype;
_.N.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"}}}};
_.N.getItemsPath=function(){return"videoLockups"};
_.N.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.N.onIronResize=function(){this.updateVideoLockupStyles()};
_.N.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.N.updateVideoLockupStyles=function(){var M;this.JSC$23072_scrollContainer!==void 0&&(M=this.videoLockups)!=null&&M.length&&(M=this.JSC$23072_scrollContainer.clientWidth,M!==this.JSC$23072_lastScrollContainerWidth&&(this.JSC$23072_lastScrollContainerWidth=M,_.sT(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(M*.8,415)+"px"}),_.jP(this.hostElement,"iron-resize")))};
_.Yd.Object.defineProperties(Lo.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var M=[],q;if((q=this.data)==null||!q.carouselLockups)return M;q=_.k(this.data.carouselLockups);for(var G=q.next();!G.done;G=q.next()){G=G.value;var K=void 0;((K=_.C(G,cLa))==null?0:K.videoLockup)&&M.push(_.C(G,cLa).videoLockup)}return M}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoLockups)==null||!M.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var M=[],q;if((q=this.data)==null||!q.carouselLockups)return M;var G;return(G=_.C(this.data.carouselLockups[this.scrollCount],cLa))==null?void 0:G.infoRows}}});
Lo.prototype.dataChanged=Lo.prototype.dataChanged;Lo.prototype.onIronResize=Lo.prototype.onIronResize;Lo.prototype.hiddenChanged=Lo.prototype.hiddenChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Lo.prototype,"componentBehavior",void 0);_.T([_.P(_.pi.YtdHorizontalListBehavior),_.r("design:type",Object)],Lo.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Lo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Lo.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Lo.prototype,"inlineStructuredDescription",void 0);_.T([_.B({value:2}),_.r("design:type",Number)],Lo.prototype,"initialCount",void 0);_.T([_.B(),_.r("design:type",Object)],Lo.prototype,"currentIndex",void 0);
_.T([_.B(),_.r("design:type",Number)],Lo.prototype,"scrollCount",void 0);_.T([_.B(),_.r("design:type",Object)],Lo.prototype,"supportComponentResize",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Lo.prototype,"contentHidden",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Lo.prototype,"modern",void 0);_.T([_.ET("#scroll-container"),_.r("design:type",HTMLDivElement)],Lo.prototype,"JSC$23072_scrollContainer",void 0);
_.T([_.KT("contentHidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lo.prototype,"hiddenChanged",null);_.T([_.c("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],Lo.prototype,"videoLockups",null);_.T([_.c("videoLockups"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Lo.prototype,"hasVideoLockups",null);
_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lo.prototype,"onIronResize",null);_.T([_.c("data","scrollCount"),_.r("design:type",Object),_.r("design:paramtypes",[])],Lo.prototype,"infoRows",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lo.prototype,"dataChanged",null);_.T([_.b({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],Lo);
_.z(Lo,"ytd-video-description-music-section-renderer",function(){if(iIG!==void 0)return iIG;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return iIG=M},{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var c5t;var YM=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("kevlar_modern_sd_v2");return M};
_.l(YM,_.Q);YM.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],YM.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],YM.prototype,"ytRendererBehavior",void 0);_.T([_.B({}),_.r("design:type",Object)],YM.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],YM.prototype,"modern",void 0);_.T([_.b({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],YM);
_.z(YM,"ytd-video-description-transcript-section-renderer",function(){if(c5t!==void 0)return c5t;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return c5t=M},{mode:1});var gIC;_.S5(_.U(function(M){var q=_.No(_.aow,function(){return M.data().firstProviderLinkStatusEntityKey}),G=_.No(_.aow,function(){return M.data().secondProviderLinkStatusEntityKey}),K=function(){var n,E;
return((n=q())==null?void 0:n.linked)||((E=G())==null?void 0:E.linked)};
return _.W("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.W(_.Ft,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return M.data().sectionTitle}}),_.W(_.Ft,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return K()?M.data().connectedMessage:M.data().notConnectedMessage}}),_.W(_.d,{cond:K,
then:function(){return _.W(_.yu,{data:function(){return M.data().connectedButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.W(_.d,{cond:function(){return!K()},
then:function(){return _.W(_.yu,{data:function(){return M.data().notConnectedButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"nn"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;return _.W("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.W("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.W(_.Ft,{text:function(){return q().sectionTitle}})),_.W("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.W(_.Ft,{text:function(){return q().bodyHeader}})),_.W("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.W(_.Ft,{text:function(){return q().bodyText}})),_.W(_.d,{cond:function(){return q().attributionText},
then:function(){return _.W("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.W(_.Ft,{text:function(){return q().attributionText}}))}}))},"on"),"how-this-was-made-section-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){return _.W("yt-video-description-youchat-section-view-model",{class:_.Hb("ytVideoDescriptionYouchatSectionViewModelHost")},_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.W(_.Ft,{text:function(){return M.data().sectionTitle}})),_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.W(_.Ft,{text:function(){return M.data().subHeaderText}})),_.W("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.W(_.Wf,{data:function(){return _.C(M.data().primaryButton,
_.$N)}})))},"pn"),"yt-video-description-youchat-section-view-model",{props:{data:_.Hz}});var WS=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return M};
_.l(WS,_.Q);_.N=WS.prototype;
_.N.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}}}}}};
_.N.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.N.dataChanged=function(){var M,q;this.hasDescriptionOnly=!(((M=this.data)==null?void 0:(q=M.items)==null?void 0:q.length)!==1||!_.C(this.data.items[0],DX))};
_.N.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.N.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.N.autoFocusDescription=function(){var M;((M=_.AL().resolve(_.WR(_.Nt)))==null?0:M.isKeyBoardInUse())&&this.description&&_.N8(this.description)};
_.N.resize=function(){if(_.w("kevlar_disable_sd_resize"))this.JSC$23081_cardList&&_.jP(this.JSC$23081_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.jP(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.jP(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.N.scrollToSection=function(M){if(M=this.getSectionElement(M))_.VW(this.hostElement,"yt-scroll-to-watch-element",[M]),M.focus()};
_.N.getSectionElement=function(M){switch(M){case "infocards-item-section":var q;return(q=this.infocardsSection)!=null?q:null;case "transcript-item-section":var G;return(G=this.transcriptSection)!=null?G:null;case "how-this-was-made-section-item-section":var K;return(K=this.howThisWasMadeSection)!=null?K:null;case "files-item-section":var n;return(n=this.filesSection)!=null?n:null;default:return null}};
_.N.handleSetActiveItemAction=function(M){var q=_.C(M,eyk),G=q&&(q==null?void 0:q.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$23081_cardList;if(q&&G){M=this.currentActiveChapter;var K=this.currentActiveProblem;q=G==null?void 0:G.getItemByIndex(q.itemIndex);var n=G=!0;q&&(q.active=!0,q.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(G=M!==q,n=!1,this.currentActiveChapter=q):(q==null?void 0:q.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(G=!1,n=K!==q,this.currentActiveProblem=q));M&&G&&(M.active=!1);K&&n&&(K.active=!1)}};
_.Yd.Object.defineProperties(WS.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.w("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
WS.prototype.onYtExpanderMoreTapped=WS.prototype.onYtExpanderMoreTapped;WS.prototype.onHiddenChanged=WS.prototype.onHiddenChanged;WS.prototype.dataChanged=WS.prototype.dataChanged;WS.prototype.panelContentVisibleChanged=WS.prototype.panelContentVisibleChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],WS.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.uz),_.r("design:type",Object)],WS.prototype,"ironResizableBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],WS.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],WS.prototype,"panelContentVisible",void 0);_.T([_.B(),_.r("design:type",Boolean)],WS.prototype,"hasDescriptionOnly",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WS.prototype,"inlineStructuredDescription",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WS.prototype,"hidden",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WS.prototype,"shortsPanel",void 0);_.T([_.B(),_.r("design:type",Object)],WS.prototype,"videoSummary",void 0);_.T([_.B(),_.r("design:type",Object)],WS.prototype,"merchShelf",void 0);
_.T([_.c("videoSummary"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],WS.prototype,"showVideoSummary",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WS.prototype,"engagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],WS.prototype,"watchWhileSdp",void 0);_.T([_.ET("ytd-expandable-video-description-body-renderer"),_.r("design:type",Object)],WS.prototype,"description",void 0);
_.T([_.ET("ytd-horizontal-card-list-renderer"),_.r("design:type",Object)],WS.prototype,"JSC$23081_cardList",void 0);_.T([_.ET("ytd-horizontal-card-list-renderer[center-items]"),_.r("design:type",Object)],WS.prototype,"problemWalkthroughCardList",void 0);_.T([_.ET("ytd-shelf-renderer"),_.r("design:type",Object)],WS.prototype,"shelfSection",void 0);_.T([_.ET("ytd-video-description-music-section-renderer"),_.r("design:type",Object)],WS.prototype,"musicMetadataSection",void 0);
_.T([_.ET("ytd-video-description-infocards-section-renderer"),_.r("design:type",Object)],WS.prototype,"infocardsSection",void 0);_.T([_.ET("ytd-video-description-transcript-section-renderer"),_.r("design:type",Object)],WS.prototype,"transcriptSection",void 0);_.T([_.ET("how-this-was-made-section-view-model"),_.r("design:type",Object)],WS.prototype,"howThisWasMadeSection",void 0);_.T([_.ET("ytd-video-description-files-section-renderer"),_.r("design:type",Object)],WS.prototype,"filesSection",void 0);
_.T([_.KT("panelContentVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WS.prototype,"panelContentVisibleChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WS.prototype,"dataChanged",null);_.T([_.KT("hidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WS.prototype,"onHiddenChanged",null);
_.T([_.GQ("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WS.prototype,"onYtExpanderMoreTapped",null);_.T([_.b({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],WS);
_.z(WS,"ytd-structured-description-content-renderer",function(){if(gIC!==void 0)return gIC;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-content-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="video-summary" hidden="[[!showVideoSummary]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="merch-shelf" hidden="[[!merchShelf]]" class="style-scope ytd-structured-description-content-renderer"></div>\n<div id="items" class="style-scope ytd-structured-description-content-renderer"></div>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return gIC=M},{mode:2});var B_v;var Qk3;var AH=function(){return _.Q.apply(this,arguments)||this};
_.l(AH,_.Q);AH.prototype.computeAriaLabel=function(M){var q,G;return(M==null?void 0:(q=M.accessibility)==null?void 0:(G=q.accessibilityData)==null?void 0:G.label)||_.Ge("LOADING",void 0,"Loading")};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],AH.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],AH.prototype,"data",void 0);_.T([_.B({computed:"computeAriaLabel(data)"}),_.r("design:type",String)],AH.prototype,"ariaLabel",void 0);_.T([_.aO({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],AH);
_.z(AH,"yt-content-loading-renderer",function(){if(Qk3===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;B_v===void 0&&(B_v=document.createElement("template"));var K=B_v;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Qk3=M}M=Qk3;return M},{mode:_.VO("kevlar_poly_si_batch_j043")?1:2});_.S5(_.U(function(M){var q=_.k(_.lQ(!1,void 0,"OZMtVb")),G=q.next().value,K=q.next().value;q=_.k(_.lQ(!1,void 0,"qWERsf"));var n=q.next().value,E=q.next().value;_.SK(function(){var Y=_.C(M.data().collaboratePlaylistCollaborationSetting,h9C);Y&&K(Y.switchedOnByDefault);var A=_.C(M.data().allowNewCollaboratorsPlaylistCollaborationSetting,h9C);A&&E(A.switchedOnByDefault);if(!Y&&!A||!Y&&M.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")K(!0),E(!0)});
var p=function(Y){K(Y);E(Y);var A=M.data().playlistCollaborationEntityKey||"";var v=_.J_().getState();(v=_.sX(v.entities,"playlistCollaborationEntity",A))&&(v==null?void 0:v.isCollaborative)===Y||_.J_().dispatch(_.LL("playlistCollaborationEntity",A,Object.assign({},v,{isCollaborative:Y})))},y=function(Y){E(Y)};
return _.W("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.W("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.W(_.yu,{data:function(){return M.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(Y){return _.W(_.kH9,{data:Y.data,
onSwitch:p})}})),_.W(_.d,{cond:G,
then:function(){return _.W(_.dU,null,_.W("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.W(_.yu,{data:function(){return M.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(Y){return _.W(_.kH9,{data:Y.data,
onSwitch:y,overrideDisabled:!1})}})),_.W(_.d,{cond:n,
then:function(){return _.W("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.W(_.yu,{data:function(){return M.data().copyLinkButton}},{buttonViewModel:_.Wf}))}}),_.W("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.W(_.yu,{data:function(){return M.data().playlistCollaborators}},{contentListItemViewModel:_.W4R})))}}))},"qn"),"playlist-collaboration-view-model",{props:{data:_.Hz}});var IyA=_.U(function(M){var q=M.data;var G=M.customCommandResolver;return _.W(_.dU,null,_.W("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.W(_.yu,{data:function(){return q().adAvatar}},{adAvatarViewModel:function(K){return _.W(_.u_P,{data:K.data,
customCommandResolver:G})}})),_.W("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.W(_.d,{cond:function(){return q().headline},
then:function(K){return _.W(_.Ft,{text:K,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.W("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.W(_.yu,{data:function(){return q().adBadge}},{adBadgeViewModel:function(K){return _.W(_.hb,{data:K.data,
hasDot:function(){return q().primaryDetailsLine!==void 0},
customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.W(_.yu,{data:function(){return q().primaryDetailsLine}},{adDetailsLineViewModel:function(K){return _.W(_.tb,{data:K.data,
customCommandResolver:G,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"rn"),D6y=_.U(function(M){var q=M.data;
var G=M.customCommandResolver;return _.W("ad-avatar-lockup-view-model",{class:function(){var K;return((K=q().interaction)==null?0:K.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:_.bm(_.d_({visibilityCallback:function(K){var n,E=(n=q().interaction)==null?void 0:n.onFirstVisible;K&&E&&_.Pb(E)},
showOption:_.p0}),_.Xm(function(){return q().interaction},G)),
"aria-label":function(){var K,n;return(K=q().interaction)==null?void 0:(n=K.accessibility)==null?void 0:n.label}},_.W(_.Ub,null,_.W(_.J3,{when:function(){return q().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.W(IyA,{data:q,
customCommandResolver:G})}),_.W(_.Zk,null,function(){return null})))},"sn");_.S5(_.U(function(M){var q=M.data;var G=M.panelContentVisibility;M=_.d_({visibilityCallback:function(E){var p,y=(p=q().interaction)==null?void 0:p.onFirstVisible;E&&y&&_.Pb(y)},
showOption:_.p0});var K=_.Xm(function(){return q().interaction},E2M);
_.rY(function(){var E,p;if(p=_.sx("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var y;p=(y=p())==null?void 0:y.onLayoutVisibleCallback}else p=null;(E=p)==null||E()},"tn");
var n=function(){return G()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.W("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:_.bm(M,K)},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.W(_.d,{cond:_.tFH("(min-width: "+((0,_.lL)()+_.JF)+"px) or (max-width: 600px)"),then:function(){return _.W(_.yu,{data:function(){return q().adImage}},{adImageViewModel:function(E){return _.W(_.XM,{data:E.data,
targetHeight:80,customCommandResolver:E2M})}})}})),_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.W(_.yu,{data:function(){return q().adAvatarLockup}},{adAvatarLockupViewModel:function(E){return _.W(D6y,{data:E.data,
customCommandResolver:E2M})}})),_.W(_.d,{cond:n,
then:function(){return _.W(_.yu,{data:function(){return q().adButton}},{adButtonViewModel:function(E){return _.W(_.L0,{data:E.data,
customCommandResolver:E2M})}})},
else:function(){return _.W(_.yu,{data:function(){return q().menu}},{buttonViewModel:_.Wf})}}),_.W("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.W(_.yu,{data:function(){var E=_.C(q().toggleButton,_.M1);
return{toggleButtonViewModel:Object.assign({},E,{isTogglingDisabled:!0,isToggled:n()})}}},{toggleButtonViewModel:_.Dj})))))},"un"),"panel-ad-header-image-lockup-view-model",{props:{data:_.Hz,
panelContentVisibility:_.Hz}});_.S5(_.U(function(M){var q=function(){return _.C(M.data().inputComposerViewModel,tSC)},G=_.pp(_.gx.currentPageSubTypeSelector),K=_.pp(_.gx.persistentPanelVisibleSelector),n=_.k(_.lQ(!1,void 0,"ZdYZ1d")),E=n.next().value,p=n.next().value;
n=_.k(_.lQ(!1,void 0,"iu0Tnf"));var y=n.next().value,Y=n.next().value,A=function(){g(!0);var ay;_.Pb(((ay=q())==null?void 0:ay.onSubmitCommand)||{})},v=function(){if(K()&&!y()){var ay;
(ay=_.Mo())==null||ay.removeCueRange("aic-proactive");p(!1);Y(!0);A();ay={continuationCommand:{token:q().endOfVideoContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var bH={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),pageContext:cy()}};_.oM(ay,{form:{formData:bH},commandController:{onSuccess:function(){g(!1)},
onServerError:function(){_.oM(NUM(V()));g(!1)}}})}},h=function(){var ay=_.Mo();
if(ay&&!E()&&!y()){var bH=ay.getDuration();bH>60&&(ay.addCueRange("aic-proactive",bH-60,bH-20),p(!0))}},t=function(){var ay;
return((ay=q())==null?void 0:ay.youchatPendingResponseEntityKey)||""},O=_.No(_.Q8y,t),a=function(){var ay;
return!((ay=O())==null||!ay.isPendingResponse)},g=function(ay){_.IUA(t())(ay)};
n=_.k(_.lQ(!0,void 0,"FwVSpb"));var D=n.next().value,J=n.next().value,Z=function(){var ay,bH;var iH=_.C((bH=q())==null?void 0:bH.inputFormField,fkA);return iH==null?void 0:(ay=iH.contentProperties)==null?void 0:ay.placeholderText},V=function(){return q().sectionTargetId||"youchat_messages_section"};
n=_.yw("yt-chat-input-view-model");var S=_.pI("textarea"),m=_.No(RB3,"chat_input_view_model_state"),R=fPG(),se=function(){var ay;return!((ay=m())==null||!ay.value)},yY=function(){return M.data().environment==="CHAT_ENVIRONMENT_ENUM_AI_COMPANION"},d$=function(){var ay;
(ay=_.Mo())==null||ay.removeCueRange("aic-proactive");p(!1);Y(!1);var bH;_.w("enable_navigational_proactive_messages_on_ai_companion")&&((bH=q())==null?0:bH.navigationContinuation)&&K()&&(A(),ay={continuationCommand:{token:q().navigationContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},bH={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:y3W(),pageContext:cy()}},_.oM(ay,{form:{formData:bH},commandController:{onSuccess:function(){g(!1)},
onServerError:function(){_.oM(NUM(V()));g(!1)}}}))},cy=function(){var ay;
return(ay=_.AL().resolve(_.WR(_.Wln)))==null?void 0:_.Zna(ay,G())};
_.SK(function(){if(_.w("enable_ai_chat_controller")){var ay;(ay=_.AL().resolve(_.WR(_.Wln)))==null||ay.init(M.data().environment)}var bH,iH;if(!se()&&(((bH=q())==null?0:bH.welcomeFeatureContinuation)||((iH=M.data())==null?0:iH.onWelcomeCommand))){var oI;((oI=q())==null?0:oI.setPendingResponseOnWelcome)&&g(!0);ay={continuationCommand:{token:q().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};bH={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:y3W(),
pageContext:cy()}};_.oM(M.data().onWelcomeCommand?M.data().onWelcomeCommand:ay,{form:{formData:bH}});R(!0)}var r9=V(),X2=_.AL().resolve(_.WR(_.oq)),EM=function(){_.pL.remove(r9);R(!1)},LP=function(){_.oY(function(){if(yY()&&(d$(r9),G()==="watch")){var Pv=_.Mo();
Pv&&(Pv.addEventListener("onStateChange",h),Pv.addEventListener("onCueRangeEnter",v))}})};
ay=_.w("enable_ai_companion")?!yY():!0;X2==null||X2.addEventListener("yt-navigate-start",EM,{once:ay});X2==null||X2.addEventListener("yt-navigate-finish",LP,{once:ay});_.m_(function(){X2==null||X2.removeEventListener("yt-navigate-start",EM);X2==null||X2.removeEventListener("yt-navigate-finish",LP);var Pv=_.Mo();Pv&&(Pv.removeEventListener("onCueRangeEnter",v),Pv.removeEventListener("onStateChange",h),Pv.removeCueRange("aic-proactive"))})});
var t4=function(){var ay=S.value.value;S.value.value="";pMy(S.value);var bH,iH=((bH=q())==null?void 0:bH.enableGradientColorBg)||!1;bH=k_9(V(),ay,iH);_.oM(bH);A();var oI,r9;if(((oI=M.data())==null?0:oI.sendUserQueryCommand)||((r9=q())==null?0:r9.continuation)){var X2;oI={continuationCommand:{token:(X2=q())==null?void 0:X2.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};ay={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:ay,playerOffsetMs:y3W(),pageContext:cy()}};
_.oM(M.data().sendUserQueryCommand?M.data().sendUserQueryCommand:oI,{form:{formData:ay},commandController:{onSuccess:function(){g(!1)},
onServerError:function(){_.oM(NUM(V()));g(!1)}}})}};
return _.W("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:n},_.W("div",{class:"chatInputViewModelChatInputWrapper"},_.W("form",{class:"chatInputViewModelChatInputForm"},_.W("textarea",{class:"chatInputViewModelChatInput",el:S,"on:keydown":_.sq(function(ay){var bH=a()||!1;pMy(S.value);bH||ay.key!=="Enter"||ay.shiftKey||(ay.preventDefault(),t4());return!1}),
"on:keyup":_.sq(function(){J(S.value.value.length===0);return!1}),
"aria-label":function(){return a()?M.data().loadingAnimationA11yLabel||"":Z()},
placeholder:Z,rows:1}),_.W(_.Wf,{data:function(){return _.C(M.data().sendButton,_.$N)},
onClick:function(ay){ay.preventDefault();t4();J(S.value.value.length===0)},
buttonOverrides:function(){return{disabled:D()||a()}}})),_.W(_.Ft,{className:"chatInputViewModelChatDisclaimer",
text:function(){var ay;return(ay=_.C(M.data().disclaimer,_.NJd))==null?void 0:ay.text}})))},"vn"),"yt-chat-input-view-model",{props:{data:_.Hz}});var unM=["engagement-panel-clip-create","engagement-panel-clip-view"],J53=0,da=function(){var M=_.Q.apply(this,arguments)||this;var q;M.headerData=(q=M.data)==null?void 0:q.header;M.darkerPanels=_.w("web_watch_darker_panels");M.matchContentTheme=_.w("web_watch_panel_content_match_theme");M.disableAutoFill=!1;M.isFullscreen=!1;M.isTheaterMode=!1;M.liveChatReplyPanel=!1;M.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");M.disableBackdropFilter=_.w("web_disable_backdrop_filter");M.isPersistentPanel=
!1;M.trackEngagementPanelVisibility=_.w("web_watch_track_engagement_panel_visibility");M.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 M};
_.l(da,_.Q);_.N=da.prototype;
_.N.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(M){var q;return(M==null?void 0:(q=M.webComponentHint)==null?void 0:q.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.N.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var M;if((M=this.hostElement.parentElement)==null?0:M.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.N.detached=function(){this.updateTheaterDisablement()};
_.N.showPanel=function(){var M=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.r8.addJob(function(){M.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.N.maybeScrollToItemSection=function(M){var q=this,G,K=M==null?void 0:(G=M.sectionListEngagementPanelExtras)==null?void 0:G.scrollToItemSectionIdentifier;K&&_.r8.addJob(function(){var n;(n=q.sectionListRendererElement)==null||n.scrollToItemSection(K)},8)};
_.N.hidePanel=function(){var M=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.r8.addJob(function(){M.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.N.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.N.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.N.updatePanel=function(M,q,G,K){var n=this;if((M=M==null?void 0:M.engagementPanelSectionListRenderer)||K){if(M){K=M.header;var E=M.content,p=M.footer;(M=M.targetId)&&this.set("data.targetId",M);K&&this.set("data.header",K);E&&this.set("data.content",E);p&&this.set("data.footer",p)}else K&&(M=K.content,E=K.secondaryHeaderContent,(K=K.targetId)&&this.set("data.targetId",K),M&&this.set("data.content",M),E&&(this.secondaryHeaderData=E));this.updateChildVisibilityProperties();if(q){var y;_.w("kevlar_update_panel_focus_scroll_killswitch")||
(y={preventScroll:!0});this.focus(y)}_.yb(this,function(){_.jP(n.hostElement,"yt-refit");n.maybeScrollToItemSection(G)})}};
_.N.computeHeaderData=function(){var M,q=(0,_.xP.unsafeClone)((M=this.data)==null?void 0:M.header);if(q){M=new _.e0(Object.keys(q)[0]);var G=_.C(q,M),K=_.C(this.secondaryHeaderData,M);K&&_.hj(q,M,Object.assign({},K,G))}return q};
_.N.getReloadContinuation=function(){var M,q,G,K=_.k(((M=this.data)==null?void 0:(q=M.content)==null?void 0:(G=q.sectionListRenderer)==null?void 0:G.continuations)||[]);for(M=K.next();!M.done;M=K.next())if(M=M.value,M.reloadContinuationData)return M.reloadContinuationData.continuation};
_.N.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var M;((M=this.data)==null?0:M.targetId)&&(M=this.contentElement.firstElementChild)&&M.setAttribute("panel-target-id",this.data.targetId)};
_.N.forwardPopupClosedToFlowRootRenderer=function(){var M=_.f_(this.hostElement).querySelector("ytd-flow-root-renderer");if(M)M.onPopupClosed()};
_.N.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var M;if(!unM.includes((M=this.theaterDisablementPanelIdentifier)!=null?M:""))if(M=_.w("web_watch_imax_theater_mode")&&this.isTheaterMode,M=_.w("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||M,_.w("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||M){var q;this.visibility=(q=this.data)==null?void 0:q.visibility;var G;this.trackEngagementPanelVisibility&&((G=this.data)==null?void 0:G.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var K,n,E,p;this.contentEmpty=!!(((K=this.data)==null?0:(n=K.content)==null?0:n.structuredDescriptionContentRenderer)&&Object.keys((E=this.data)==null?void 0:(p=E.content)==null?void 0:
p.structuredDescriptionContentRenderer).length===0);(q=_.AL().resolve(_.Ja))&&q.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.N.isTheaterModeChanged=function(){_.w("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.N.isFullscreenChanged=function(){_.w("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.N.focus=function(M){if(this.header)this.header.focus(M);else{var q;(q=_.f_(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||q.focus(M)}};
_.N.visibilityChanged=function(){if(!_.w("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var M=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",G=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",K=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",n=K||!this.lastVisibility,E,p,y,Y=((E=this.data)==null?void 0:(p=E.identifier)==null?void 0:
p.tag)||((y=this.data)==null?void 0:y.panelIdentifier);if(M&&n){var A;((A=this.data)==null?0:A.onShowCommands)&&_.FH(this.hostElement,this.data.onShowCommands,this.hostElement);Y&&_.zw().dispatch(_.RJ({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:Y}}))}else if(q&&G){var v;((v=this.data)==null?0:v.onHideCommands)&&_.FH(this.hostElement,this.data.onHideCommands,this.hostElement);Y&&_.zw().dispatch(_.RJ({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:Y}}))}M&&this.lastVisibility!==
void 0&&(this.hostElement.style.order=String(-1*J53++));_.w("kevlar_watch_focus_on_engagement_panels")&&M&&K&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.N.notifyVisibilityChanged=function(M){var q;_.Rf(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,M,(q=this.data)==null?void 0:q.targetId]);if(_.w("autonav_pause_for_comments_ep")){var G;_.jP(this.hostElement,"yt-autonav-engagement-panel-visible-changed",{visible:M==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",targetId:(G=this.data)==null?void 0:G.targetId})}};
_.N.updateTheaterDisablement=function(){if(!_.w("kevlar_watch_theater_disablement_killswitch")){var M=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&unM.includes(M)&&!_.w("watch_next_grid_ignore_disallowed_panels")){var q=_.Cp(_.zw().getState()),G=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";M!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():G?(this.originalTheaterState===void 0&&(this.originalTheaterState=q,this.theaterDisablementPanelIdentifier=
M),q&&_.VW(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.N.clearTheaterDisablement=function(){_.VW(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.N.updateChildVisibilityProperties=function(){this.hostElement||_.w("kevlar_panel_property_init_killswitch")||this._enableProperties();var M=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=M);var q,G=(q=this.headerElement)==null?void 0:q.firstElementChild;if(G&&!this.adHeaderImageLockupViewModel){q=M==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";G.collapsed=q;G=_.f_(G).querySelector("#visibility-button");if(!G)return;(G=G.firstElementChild)&&
G.polymerController.is==="ytd-toggle-button-renderer"&&G.polymerController.data.isToggled!==q&&G.polymerController.set("data.isToggled",q)}var K;if(q=(K=this.contentElement)==null?void 0:K.firstElementChild)if(M&&M!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")q.removeAttribute("panel-content-visible");else{q.setAttribute("panel-content-visible","");var n;(n=q.markDirty)==null||n.call(q)}};
_.N.onYtChangeEngagementPanelVisibilityAction=function(M){var q=this,G,K=(G=this.data)==null?void 0:G.targetId,n,E,p;G=((n=this.data)==null?void 0:(E=n.identifier)==null?void 0:E.tag)||((p=this.data)==null?void 0:p.panelIdentifier);var y=_.C(M,_.BFP),Y;M=K&&(y==null?void 0:y.targetId)===K||G&&(y==null?void 0:(Y=y.panelIdentifier)==null?void 0:Y.tag)===G;this.dialog&&M&&(y==null?void 0:y.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(K==="engagement-panel-comments-section"?_.VW(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.VW(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",G]));!_.w("kevlar_use_engagement_panel_management_component")&&M&&(K=y.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!K?_.r8.addJob(function(){q.visibility=y.visibility},2,this.hideDelayMs):this.visibility=y.visibility,y.visibility&&this.notifyVisibilityChanged(y.visibility))};
_.N.onYtScrollToEngagementPanelCommand=function(M){var q,G=(q=this.data)==null?void 0:q.targetId,K,n,E;q=((K=this.data)==null?void 0:(n=K.identifier)==null?void 0:n.tag)||((E=this.data)==null?void 0:E.panelIdentifier);M=_.C(M,_.S5$);var p;(G&&(M==null?void 0:M.targetId)===G||q&&(M==null?void 0:(p=M.panelIdentifier)==null?void 0:p.tag)===q)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.VW(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.N.attachVEs=function(M){var q,G;(M==null?0:(q=M.content)==null?0:(G=q.productListRenderer)==null?0:G.trackingParams)&&_.nl().graftServerVe(M.content.productListRenderer.trackingParams);var K,n;(M==null?0:(K=M.content)==null?0:(n=K.transcriptRenderer)==null?0:n.trackingParams)&&_.nl().graftServerVe(M.content.transcriptRenderer.trackingParams)};
_.N.onYtUpdateEngagementPanelAction=function(M){var q,G=(q=this.data)==null?void 0:q.targetId;M=_.C(M,suv);G&&(M==null?void 0:M.targetId)===G&&(this.updatePanel({engagementPanelSectionListRenderer:{header:M==null?void 0:M.header,content:M==null?void 0:M.content}},!1),this.attachVEs(M))};
_.N.onYtShowEngagementPanelScrimAction=function(M){var q,G=(q=this.data)==null?void 0:q.targetId;M=_.C(M,$$C);G&&(M==null?void 0:M.engagementPanelTargetId)===G&&(this.scrimmed=!0)};
_.N.onYtHideEngagementPanelScrimAction=function(M){var q,G=(q=this.data)==null?void 0:q.targetId;M=_.C(M,HXC);G&&(M==null?void 0:M.engagementPanelTargetId)===G&&(this.scrimmed=!1)};
_.N.getIdentifier=function(){var M,q,G;return((M=this.data)==null?void 0:M.panelIdentifier)||((q=this.data)==null?void 0:(G=q.identifier)==null?void 0:G.tag)};
_.N.getSurface=function(){var M,q;return(M=this.data)==null?void 0:(q=M.identifier)==null?void 0:q.surface};
_.Yd.Object.defineProperties(da.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var M=this.getIdentifier();return M==="engagement-panel-youchat"||M==="PAyouchat"}}});
da.prototype.visibilityChanged=da.prototype.visibilityChanged;da.prototype.isFullscreenChanged=da.prototype.isFullscreenChanged;da.prototype.isTheaterModeChanged=da.prototype.isTheaterModeChanged;da.prototype.dataChanged=da.prototype.dataChanged;da.prototype.forwardPopupClosedToFlowRootRenderer=da.prototype.forwardPopupClosedToFlowRootRenderer;da.prototype.onYtRendererstamperFinished=da.prototype.onYtRendererstamperFinished;
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],da.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],da.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],da.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],da.prototype,"ytEventForwardingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],da.prototype,"data",void 0);
_.T([_.B({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.r("design:type",Object)],da.prototype,"headerData",void 0);_.T([_.B(),_.r("design:type",Object)],da.prototype,"secondaryHeaderData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"visibility",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],da.prototype,"contentEmpty",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],da.prototype,"scrimmed",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],da.prototype,"dialog",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],da.prototype,"dropdown",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"darkerPanels",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"matchContentTheme",void 0);_.T([_.B(),_.r("design:type",Object)],da.prototype,"disableAutoFill",void 0);
_.T([_.B({reflectToAttribute:!0,value:_.w("optimal_reading_width_comments_ep")}),_.r("design:type",Boolean)],da.prototype,"optimalReadingWidthComments",void 0);_.T([_.B(),_.r("design:type",Number)],da.prototype,"hideDelayMs",void 0);_.T([_.B({selector:_.a2,reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"isFullscreen",void 0);_.T([_.B({selector:_.Cp,reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"isTheaterMode",void 0);
_.T([_.B(),_.r("design:type",Number)],da.prototype,"showDelayMs",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.targetId"),_.r("design:type",Object),_.r("design:paramtypes",[])],da.prototype,"targetId",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],da.prototype,"webSize",null);_.T([_.B(),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],da.prototype,"hideFooterBorder",null);
_.T([_.B(),_.r("design:type",Object)],da.prototype,"isWatch",void 0);_.T([_.B(),_.r("design:type",Object)],da.prototype,"originalTheaterState",void 0);_.T([_.B(),_.r("design:type",Object)],da.prototype,"theaterDisablementPanelIdentifier",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],da.prototype,"isWatchWhilePanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],da.prototype,"shortsPanel",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],da.prototype,"liveChatEngagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],da.prototype,"learningChatEngagementPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"liveChatReplyPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"enableAnchoredPanel",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"disableBackdropFilter",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],da.prototype,"isPersistentPanel",void 0);_.T([_.B(),_.r("design:type",Object)],da.prototype,"trackEngagementPanelVisibility",void 0);_.T([_.ET("#header"),_.r("design:type",HTMLElement)],da.prototype,"headerElement",void 0);_.T([_.ET("#header > *"),_.r("design:type",HTMLElement)],da.prototype,"header",void 0);
_.T([_.ET("ytd-section-list-renderer"),_.r("design:type",Object)],da.prototype,"sectionListRendererElement",void 0);_.T([_.ET("panel-ad-header-image-lockup-view-model"),_.r("design:type",HTMLElement)],da.prototype,"adHeaderImageLockupViewModel",void 0);_.T([_.ET("#content"),_.r("design:type",HTMLElement)],da.prototype,"contentElement",void 0);
_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],da.prototype,"onYtRendererstamperFinished",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],da.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.T([_.yO("data","isFullscreen","isTheaterMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],da.prototype,"dataChanged",null);
_.T([_.KT("isTheaterMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],da.prototype,"isTheaterModeChanged",null);_.T([_.KT("isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],da.prototype,"isFullscreenChanged",null);_.T([_.KT("visibility"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],da.prototype,"visibilityChanged",null);
_.T([_.b({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],da);
_.z(da,"ytd-engagement-panel-section-list-renderer",function(){if(qQk!==void 0)return qQk;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qQk=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var ZIt;var vS=function(){var M=_.Q.apply(this,arguments)||this;M.lastRenderedPanelIds=new Set;M.visiblePanels=[];M.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return M};
_.l(vS,_.Q);_.N=vS.prototype;_.N.dataChanged=function(){if(this.data){for(var M=[],q=_.k(this.data),G=q.next();!G.done;G=q.next()){G=G.value;var K=void 0,n=void 0,E=(K=G)==null?void 0:(n=K.engagementPanelSectionListRenderer)==null?void 0:n.visibility;n=K=void 0;((K=G)==null?0:(n=K.engagementPanelSectionListRenderer)==null?0:n.targetId)&&E!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&M.push(G)}this.visiblePanels=M}else this.visiblePanels=[]};
_.N.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}}};
_.N.withoutVisiblePanelById=function(M){return this.visiblePanels.filter(function(q){var G;return((G=q.engagementPanelSectionListRenderer)==null?void 0:G.targetId)!==M})};
_.N.onYtChangeEngagementPanelVisibilityAction=function(M){var q=this,G=_.C(M,_.BFP);if(this.data&&(G==null?0:G.targetId)&&(G==null?0:G.visibility)){var K,n=(K=this.data.find(function(p){var y;return((y=p.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===G.targetId}))==null?void 0:K.engagementPanelSectionListRenderer;
if(n){var E=this.withoutVisiblePanelById(G.targetId);G.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(M=this.data.find(function(p){var y;return((y=p.engagementPanelSectionListRenderer)==null?void 0:y.targetId)===G.targetId}))&&(E=[M].concat(_.Ui(E)));
this.hideDelayMs&&G.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&E.length===0?_.r8.addJob(function(){n.visibility=G.visibility;q.visiblePanels=E},10,this.hideDelayMs):(n.visibility=G.visibility,this.visiblePanels=E);
_.Rf(this.hostElement,"yt-engagement-panels-visible-changed",[E])}}};
_.N.onRendererstamperFinished=function(){var M=new Set(this.visiblePanels.map(function(q){var G;return(G=q.engagementPanelSectionListRenderer)==null?void 0:G.targetId}));
this.handlePanelVisibilityChange(M,this.lastRenderedPanelIds);this.lastRenderedPanelIds=M};
_.N.handlePanelVisibilityChange=function(M,q){M=M===void 0?new Set:M;q=q===void 0?new Set:q;if(this.data)for(var G=_.k(this.data),K=G.next();!K.done;K=G.next()){K=K.value;var n=void 0,E=void 0,p=(n=K)==null?void 0:(E=n.engagementPanelSectionListRenderer)==null?void 0:E.targetId;if(p&&(n=q.has(p),E=M.has(p),p=void 0,!n&&E?(E=n=void 0,p=(n=K)==null?void 0:(E=n.engagementPanelSectionListRenderer)==null?void 0:E.onShowCommands):n&&!E&&(E=n=void 0,p=(n=K)==null?void 0:(E=n.engagementPanelSectionListRenderer)==
null?void 0:E.onHideCommands),p))for(K=_.k(p),p=K.next();!p.done;p=K.next())this.ytComponentBehavior.resolveCommand(p.value)}};
vS.prototype.onRendererstamperFinished=vS.prototype.onRendererstamperFinished;vS.prototype.dataChanged=vS.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],vS.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],vS.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],vS.prototype,"lastRenderedPanelIds",void 0);_.T([_.B(),_.r("design:type",Number)],vS.prototype,"hideDelayMs",void 0);_.T([_.B(),_.r("design:type",Array)],vS.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Array)],vS.prototype,"visiblePanels",void 0);_.T([_.B(),_.r("design:type",Boolean)],vS.prototype,"isWatchWhilePanel",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vS.prototype,"dataChanged",null);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vS.prototype,"onRendererstamperFinished",null);_.T([_.b({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],vS);
_.z(vS,"ytd-watch-engagement-panels",function(){if(ZIt!==void 0)return ZIt;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return ZIt=M},{mode:1});var bIM;var hH=function(){return _.Q.apply(this,arguments)||this};
_.l(hH,_.Q);hH.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.NX(_.f_(this.hostElement).querySelector("#text"),_.jSv(_.f2B,this.data.companionLegalText))};
hH.prototype.computeAutoScrollEnabled=function(M,q){return M&&!q};
hH.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
hH.prototype.onToggleTap=function(){this.expanded=!this.expanded};
hH.prototype.expandedChanged=hH.prototype.expandedChanged;hH.prototype.dataChanged=hH.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hH.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.F59),_.r("design:type",Object)],hH.prototype,"ytdAutoScrollBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hH.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],hH.prototype,"expanded",void 0);
_.T([_.B({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.r("design:type",Boolean)],hH.prototype,"autoScrollEnabled",void 0);_.T([_.B(),_.r("design:type",String)],hH.prototype,"expanderIcon",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hH.prototype,"dataChanged",null);
_.T([_.KT("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hH.prototype,"expandedChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],hH);
_.z(hH,"ytd-companion-legal-text-renderer",function(){if(bIM!==void 0)return bIM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return bIM=M},{mode:1});var U6v;var tH=function(){var M=_.Q.apply(this,arguments)||this;M.buttonUpdate=_.w("web_modern_buttons");M.kevlarWatchGrid=_.w("kevlar_watch_grid");M.centerAlignDescription=_.w("action_companion_center_align_description");M.truncateDomain=_.w("action_companion_truncate_domain");M.enableMonoStyle=_.w("enable_default_mono_cta_migration_web_client");return M};
_.l(tH,_.Q);_.N=tH.prototype;_.N.computeButtonOverride=function(){if(this.buttonUpdate)return{style:this.enableMonoStyle?"mono":"call-to-action",type:"filled"}};
_.N.getOnLayoutVisibleCallback=function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.N.getLayoutId=function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.N.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",tH.JSC$23135_DEFAULT_AD_BADGE_RENDERER);var M=this.getOnLayoutVisibleCallback();M&&M()}};
_.N.getButtonRenderer=function(M){return M.actionButton&&_.C(M.actionButton,_.f1)?(delete _.C(M.actionButton,_.f1).navigationEndpoint,_.C(M.actionButton,_.f1)):{}};
_.N.onClick=function(M){var q=this;if((!_.w("web_modern_buttons")||!_.b8(_.Zx(M),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){M=_.TM();var G=this.getLayoutId();M&&G&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(K){(new _.Zi(K)).executeCommand(q.data.navigationEndpoint,G)}):_.w("kevlar_companion_resolve_command_killswitch")?_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.VW(this.hostElement,"yt-companion-ad-clicked",["action-companion",G])}};
_.Yd.Object.defineProperties(tH.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.data)==null?0:(q=M.detailsLine)==null?0:(G=q.adRating)==null?0:G.ratingText)?this.data.detailsLine.adRating.ratingText:null}},
computeRatingHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getRating}},
iconType:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K;return((M=this.data)==null?0:(q=M.detailsLine)==null?0:(G=q.adRating)==null?0:(K=G.ratingIcon)==null?0:K.iconType)?_.H4(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K;return((M=this.data)==null?0:(q=M.detailsLine)==null?0:(G=q.texts)==null?0:(K=G[0])==null?0:K.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 M,q;return((M=this.data)==null?0:(q=M.description)==null?0:q.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var M=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return M?M.indexOf("/default_banner")!==-1:!0}}});
tH.prototype.onClick=tH.prototype.onClick;tH.prototype.dataChanged=tH.prototype.dataChanged;tH.JSC$23135_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Ge("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],tH.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tH.prototype,"rendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tH.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tH.prototype,"buttonUpdate",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tH.prototype,"kevlarWatchGrid",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tH.prototype,"centerAlignDescription",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tH.prototype,"truncateDomain",void 0);
_.T([_.B({computed:"computeButtonOverride(buttonUpdate)"}),_.r("design:type",Object)],tH.prototype,"buttonOverride",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],tH.prototype,"enableMonoStyle",void 0);_.T([_.c("data.detailsLine.adRating.ratingText"),_.r("design:type",Object),_.r("design:paramtypes",[])],tH.prototype,"getRating",null);_.T([_.c("getRating"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tH.prototype,"computeRatingHidden",null);
_.T([_.c("data.detailsLine.adRating.ratingIcon.iconType"),_.r("design:type",Object),_.r("design:paramtypes",[])],tH.prototype,"iconType",null);_.T([_.c("data.detailsLine.texts.0.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],tH.prototype,"getDetailsLine",null);_.T([_.c("getDetailsLine"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tH.prototype,"computeDetailsLineHidden",null);
_.T([_.c("data.description.text"),_.r("design:type",Object),_.r("design:paramtypes",[])],tH.prototype,"getDescriptionText",null);_.T([_.c("getDescriptionText"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tH.prototype,"computeDescriptionTextHidden",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],tH.prototype,"interactionLoggingClientData",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],tH.prototype,"hideBanner",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tH.prototype,"dataChanged",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],tH.prototype,"onClick",null);_.T([_.b({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],tH);
_.z(tH,"ytd-action-companion-ad-renderer",function(){if(U6v!==void 0)return U6v;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return U6v=M},{mode:_.VO("kevlar_poly_si_batch_j067")?1:2});var x6A;var z0a;var ON=function(){var M=_.Q.apply(this,arguments)||this;M.buttonUpdate=_.w("web_modern_buttons");M.hideLegacyBanner=_.w("enable_dsa_one_click_ata_translators_infeed_elements");M.adInfoButtonStyle="mono";M.adInfoButtonType="text";M.noDotAdBadge=!0;return M};
_.l(ON,_.Q);_.N=ON.prototype;_.N.getOnLayoutVisibleCallback=function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.N.getLayoutId=function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.N.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 M=this.data.image.thumbnail.thumbnails[0];this.imageSrc=M.url?_.SM(M.url):void 0;this.imageWidth=M.width||0;this.imageHeight=M.height||0}this.data.clickthroughEndpoint&&_.C(this.data.clickthroughEndpoint,_.q6)&&(M=_.C(this.data.clickthroughEndpoint,_.q6).url,_.w("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
M||"":M?(M=_.SM(M),this.clickThroughUrl=_.by(M)):this.clickThroughUrl=void 0);(M=this.getOnLayoutVisibleCallback())&&M()}};
_.N.onClick=function(M){_.b8(_.Zx(M),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(M)};
_.N.handleClick=function(){var M=this;this.data&&this.data.clickthroughEndpoint&&(_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(q){M.macroReplacementBehavior.sendServiceRequestAction([q])}),_.VW(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.N.onLoad=function(){_.Rf(this.hostElement,"yt-refit-popups-action")};
_.Yd.Object.defineProperties(ON.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}}});
ON.prototype.onLoad=ON.prototype.onLoad;ON.prototype.onClick=ON.prototype.onClick;ON.prototype.dataChanged=ON.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ON.prototype,"rendererBehavior",void 0);_.T([_.P(fZ3.YtMacroReplacementBehavior),_.r("design:type",Object)],ON.prototype,"macroReplacementBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ON.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ON.prototype,"buttonUpdate",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ON.prototype,"hideLegacyBanner",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ON.prototype,"adInfoButtonStyle",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ON.prototype,"adInfoButtonType",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ON.prototype,"macros",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ON.prototype,"interactionLoggingClientData",null);_.T([_.B(),_.r("design:type",String)],ON.prototype,"clickThroughUrl",void 0);_.T([_.B(),_.r("design:type",_.uy)],ON.prototype,"imageSrc",void 0);_.T([_.B(),_.r("design:type",Number)],ON.prototype,"imageWidth",void 0);_.T([_.B(),_.r("design:type",Number)],ON.prototype,"imageHeight",void 0);_.T([_.B(),_.r("design:type",Object)],ON.prototype,"noDotAdBadge",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ON.prototype,"dataChanged",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],ON.prototype,"onClick",null);_.T([_.GQ("load"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ON.prototype,"onLoad",null);_.T([_.b({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],ON);
_.z(ON,"ytd-image-companion-renderer",function(){if(z0a!==void 0)return z0a;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return z0a=M},{mode:_.VO("kevlar_poly_si_batch_j067")?1:2});var m6A;var wa=function(){return _.Q.apply(this,arguments)||this};
_.l(wa,_.Q);_.N=wa.prototype;_.N.dataChanged=function(){this.set("data.adBadge",wa.JSC$23144_DEFAULT_AD_BADGE_RENDERER);if(this.data){var M=this.getOnLayoutVisibleCallback();M&&M()}};
_.N.getOnLayoutVisibleCallback=function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.onLayoutVisibleCallback:null};
_.N.getLayoutId=function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.layoutId:null};
_.N.onCompanionClicked=function(M){this.data&&(M.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.VW(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.N.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var M=_.TM(),q=this.getLayoutId(),G=this.data.clickToAdvSiteEndpoint;M&&q&&_.w("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?M.getPlayerPromise().then(function(K){(new _.Zi(K)).executeCommand(G,q)}):_.jP(this.hostElement,"yt-navigate",{endpoint:G})}};
_.N.sendTrackingPings=function(M){if(M&&M.length!==0&&M[0].loggingUrls&&(M=M[0].loggingUrls.map(this.getBaseUrl)))for(var q=0;q<M.length;q++)_.M8(M[q])};
_.N.getBaseUrl=function(M){return M.baseUrl||""};
_.Yd.Object.defineProperties(wa.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var M=_.sx("yt.www.ads.eventcache.getLastCompanionData");return M?(M=M())&&M.interactionLoggingClientData:null}}});
wa.prototype.onCompanionClicked=wa.prototype.onCompanionClicked;wa.prototype.dataChanged=wa.prototype.dataChanged;wa.JSC$23144_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.Ge("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],wa.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],wa.prototype,"data",void 0);_.T([_.ET("#title"),_.r("design:type",HTMLElement)],wa.prototype,"shopTitle",void 0);
_.T([_.yO("data.impressionEndpoints"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wa.prototype,"dataChanged",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],wa.prototype,"interactionLoggingClientData",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],wa.prototype,"onCompanionClicked",null);
_.T([_.b({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],wa);
_.z(wa,"ytd-shopping-companion-renderer",function(){if(m6A!==void 0)return m6A;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return m6A=M},{mode:1});_.S5(_.U(function(M){var q=M.data;M=_.d_({visibilityCallback:function(K){var n,E=(n=q().interaction)==null?void 0:n.onFirstVisible;K&&E&&_.Pb(E)},
showOption:_.p0});var G=_.Xm(function(){return q().interaction},LT3);
_.rY(function(){var K,n;n=(n=_.sx("yt.www.ads.eventcache.getLastCompanionData"))?(n=n())&&n.onLayoutVisibleCallback:null;(K=n)==null||K()},"wn");
return _.W("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.sq(function(K){_.Rf(K.currentTarget,"yt-refit-popups-action")}),
el:_.bm(M,G),"aria-label":function(){var K,n;return(K=q().interaction)==null?void 0:(n=K.accessibility)==null?void 0:n.label}},_.W("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.W(_.yu,{data:function(){return q().adImage}},{adImageViewModel:function(K){return _.W(_.XM,{data:K.data,
targetHeight:80,customCommandResolver:LT3})}})),_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.W(_.yu,{data:function(){return q().adBadge}},{adBadgeViewModel:function(K){return _.W(_.hb,{data:K.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.W("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.W(_.yu,{data:function(){return q().menu}},{buttonViewModel:_.Wf}))))},"xn"),"banner-image-layout-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;M=_.d_({visibilityCallback:function(K){var n,E=(n=q().interaction)==null?void 0:n.onFirstVisible;K&&E&&_.Pb(E)},
showOption:_.p0});var G=_.Xm(function(){return q().interaction},YbC);
_.rY(function(){var K,n;n=(n=_.sx("yt.www.ads.eventcache.getLastCompanionData"))?(n=n())&&n.onLayoutVisibleCallback:null;(K=n)==null||K()},"yn");
return _.W("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:_.bm(M,G)},_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.W(_.yu,{data:function(){return q().adImage}},{adImageViewModel:function(K){return _.W(_.XM,{data:K.data,
targetHeight:80,customCommandResolver:YbC})}})),_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.W(_.yu,{data:function(){return q().adAvatarLockup}},{adAvatarLockupViewModel:function(K){return _.W(D6y,{data:K.data,
customCommandResolver:YbC})}})),_.W(_.yu,{data:function(){return q().adButton}},{adButtonViewModel:function(K){return _.W(_.L0,{data:K.data,
customCommandResolver:YbC})}}),_.W("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.W(_.yu,{data:function(){return q().menu}},{buttonViewModel:_.Wf}))))},"zn"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.Hz}});var SQG={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"},Co=function(){var M=_.Q.apply(this,arguments)||this;M.updateCompanionDataJobId=0;M.contentVideoId=null;M.player=null;M.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return M};
_.l(Co,_.Q);_.N=Co.prototype;_.N.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:SQG}}};
_.N.attached=function(){var M=this,q=_.TM();q&&q.getPlayerPromise().then(function(G){M.getCachedDataAndListen(G)})};
_.N.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.N.updateRendererStamper=function(){var M={};if(this.data)for(var q in SQG)if(this.data[q]){M[q]=this.data[q];break}if(this.oneofRenderer!=void 0||Object.keys(M).length)this.oneofRenderer=M};
_.N.getCachedDataAndListen=function(M){var q=this.retrieveCachedCompanionData();q&&Object.keys(q).length&&this.receiveCompanionData(q);this.ytPlayerListenerBehavior.listenToPlayerEvent(M,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=M};
_.N.retrieveCachedCompanionData=function(){return _.Kj.yt&&_.Kj.yt.www&&_.Kj.yt.www.ads&&_.Kj.yt.www.ads.eventcache&&_.Kj.yt.www.ads.eventcache.getLastCompanionData?_.Kj.yt.www.ads.eventcache.getLastCompanionData():null};
_.N.receiveCompanionData=function(M){M&&Object.keys(M).length?(this.contentVideoId=M.contentVideoId,this.setCompanionData(M)):this.setCompanionData(M)};
_.N.setCompanionData=function(M){this.cancelPendingCompanionAdJobs();if(M){this.updateCompanionDataJobId=0;for(var q in SQG)SQG.hasOwnProperty(q)&&(this.data[q]=void 0);M.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",M.shoppingCompanionCarouselRenderer):M.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",M.imageCompanionAdRenderer):M.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",M.actionCompanionAdRenderer),_.Rf(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Rf(this.hostElement,"yt-hide-tvfilm-offer-module")):M.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",M.bannerImageLayoutViewModel):M.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",M.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.N.dataChanged=function(){var M=this,q=_.TM();q?q.getPlayerPromise().then(function(G){M.contentVideoId&&G.getVideoUrl().includes("v="+M.contentVideoId)||(M.cancelPendingCompanionAdJobs(),M.updateRendererStamper())}):_.Mz(Error("Yo"))};
_.N.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.r8.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.N.handleCompanionAdClicked=function(M,q){this.player.onAdUxClicked(M,q);this.player.pauseVideo()};
Co.prototype.dataChanged=Co.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Co.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Co.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Co.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],Co.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Co.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Co.prototype,"oneofRenderer",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Co.prototype,"dataChanged",null);_.T([_.b({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],Co);
_.z(Co,"ytd-companion-slot-renderer",function(){if(x6A!==void 0)return x6A;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return x6A=M},{mode:_.VO("kevlar_poly_si_batch_j067")?
1:2});var T_v;var aL=function(){return _.Q.apply(this,arguments)||this};
_.l(aL,_.Q);aL.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
aL.prototype.dataChanged=aL.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],aL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],aL.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],aL.prototype,"companionSlotData",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],aL.prototype,"dataChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],aL);
_.z(aL,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(T_v!==void 0)return T_v;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return T_v=M},{mode:1});var r5y;var oL=function(){var M=_.Q.apply(this,arguments)||this;M.skinnyMode=!1;M.COMPACT_EVENT_COUNT=4;M.onShelfToggleButtonTap=function(){M.logTap(M.data);M.showingMore=!M.showingMore};
M.onShelfToggleButtonFocus=function(){M.showingMore||(M.logTap(M.data),M.showingMore=!0,_.yb(M,function(){var q=M.COMPACT_EVENT_COUNT-1,G;(G=_.f_(M.hostElement).querySelector("#event-"+q))==null||G.focus()}))};
return M};
_.l(oL,_.Q);_.N=oL.prototype;_.N.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.N.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.N.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.qs(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.qs(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.qs(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.qs(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.qs(this.infoTooltip,this.infoTooltip.hide))};
_.N.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.qs(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.qs(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.qs(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.qs(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.qs(this.infoTooltip,this.infoTooltip.hide))};
_.N.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)};
_.N.onShowingMoreChanged=function(){var M;this.showingMoreChanged((M=this.showingMore)!=null?M:!1)};
_.N.showingMoreChanged=function(M){var q=this.get("data.events")||[];this.set("restEvents",q.slice(1,M?q.length:this.COMPACT_EVENT_COUNT).map(function(G){return G.ticketEventRenderer}));
q.slice(0,M?q.length:this.COMPACT_EVENT_COUNT).forEach(function(G){var K=_.Cx();G=G.ticketEventRenderer.trackingParams;_.wt()&&K&&G&&(G=_.yx(G),K&&_.D_(K,G))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.N.computeAriaLabel=function(M){return M.subtitle1+", "+M.subtitle2};
_.N.logTap=function(M){_.wt()&&this.ytRendererBehavior.logExplicitClick(M)};
_.N.isKeyboardAction=function(M){return this.get("detail.x",M)===0&&this.get("detail.y",M)===0};
_.N.onFirstEventTap=function(M){M.target&&this.handleTap(M.target,this.firstEvent,this.isKeyboardAction(M))};
_.N.onTicketLinkTap=function(M){M.target&&this.handleTap(M.target,M.model.item,this.isKeyboardAction(M))};
_.N.handleTap=function(M,q,G){if(q.buttonCommand)if(q.hasMultipleOffers)Object.assign(_.C(q.buttonCommand,_.BA),{properties:{source:G?"keyboard":"tap"}}),this.logTap(q),this.popupPositionTarget=M,_.FH(this.hostElement,[q.buttonCommand],this.hostElement);else{var K;if((K=_.C(q.buttonCommand,_.q6))==null?0:K.url)this.logTap(q),_.si(window,_.C(q.buttonCommand,_.q6).url)}};
oL.prototype.onShowingMoreChanged=oL.prototype.onShowingMoreChanged;oL.prototype.dataChanged=oL.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],oL.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],oL.prototype,"firstEvent",void 0);_.T([_.B(),_.r("design:type",Object)],oL.prototype,"restEvents",void 0);_.T([_.B(),_.r("design:type",String)],oL.prototype,"imageUrl",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],oL.prototype,"showingMore",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],oL.prototype,"canShowMore",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oL.prototype,"skinnyMode",void 0);_.T([_.B(),_.r("design:type",HTMLElement)],oL.prototype,"popupPositionTarget",void 0);_.T([_.ET("#banner-info-tooltip"),_.r("design:type",Object)],oL.prototype,"infoTooltip",void 0);
_.T([_.ET("#info-container"),_.r("design:type",HTMLElement)],oL.prototype,"infoContainer",void 0);_.T([_.ET("#shelf-toggler"),_.r("design:type",HTMLElement)],oL.prototype,"shelfToggleButton",void 0);_.T([_.ET("#separator"),_.r("design:type",HTMLDivElement)],oL.prototype,"separator",void 0);_.T([_.B(),_.r("design:type",String)],oL.prototype,"shelfTogglerLabelText",void 0);_.T([_.B(),_.r("design:type",String)],oL.prototype,"shelfTogglerIcon",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oL.prototype,"dataChanged",null);_.T([_.yO("showingMore"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oL.prototype,"onShowingMoreChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],oL);
_.z(oL,"ytd-ticket-shelf-renderer",function(){if(r5y!==void 0)return r5y;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return r5y=M},{mode:1});var jke;var VUL;var R0a=function(){return _.Q.apply(this,arguments)||this};
_.l(R0a,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],R0a.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],R0a.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],R0a);
_.z(R0a,"ytd-comments-entry-point-message-renderer",function(){if(VUL!==void 0)return VUL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return VUL=M},{mode:1});var fyM;var le=function(){return _.Q.apply(this,arguments)||this};
_.l(le,_.Q);_.Yd.Object.defineProperties(le.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.teaserAvatar)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],le.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],le.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],le.prototype,"hasAvatar",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],le);
_.z(le,"ytd-comments-entry-point-teaser-renderer",function(){if(fyM!==void 0)return fyM;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return fyM=M},{mode:1});var Fha;var HIL=function(){return _.Q.apply(this,arguments)||this};
_.l(HIL,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],HIL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],HIL.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],HIL);
_.z(HIL,"ytd-comments-simplebox-renderer",function(){if(Fha!==void 0)return Fha;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Fha=M},{mode:1});var Xb=function(){var M=_.Q.apply(this,arguments)||this;M.fullHeight=!_.w("comment_teaser_full_height_kill_switch")&&_.w("kevlar_watch_grid");return M};
_.l(Xb,_.Q);Xb.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"}}}};
Xb.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Xb.prototype.onTap=function(){var M=this.tapCommand;M&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(M))};
Xb.prototype.onKeyUp=function(M){if(M.keyCode===13)this.onTap()};
_.Yd.Object.defineProperties(Xb.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.onTap)return this.data.onTap;var q,G;if(((q=this.data)==null?0:q.teaserContent)||((G=this.data)==null?0:G.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)!=null&&M.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
Xb.prototype.onKeyUp=Xb.prototype.onKeyUp;Xb.prototype.onTap=Xb.prototype.onTap;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Xb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Xb.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Xb.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Xb.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Xb.prototype,"fullHeight",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xb.prototype,"tapCommand",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xb.prototype,"simpleboxPlaceholder",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xb.prototype,"hasSimpleboxPlaceholder",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xb.prototype,"simpleboxAvatar",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xb.prototype,"teaserContent",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xb.prototype,"hasTeaserContent",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xb.prototype,"teaserAvatar",null);
_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xb.prototype,"hasTeaserAvatar",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xb.prototype,"messageText",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Xb.prototype,"contentRenderer",null);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xb.prototype,"hasContents",null);
_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Xb.prototype,"hasContentRenderer",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xb.prototype,"onTap",null);_.T([_.GQ("keypress"),_.r("design:type",Function),_.r("design:paramtypes",[_.vT]),_.r("design:returntype")],Xb.prototype,"onKeyUp",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],Xb);
_.z(Xb,"ytd-comments-entry-point-header-renderer",function(){if(jke!==void 0)return jke;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return jke=M},{mode:1});var e0v;_.S5(_.I39,"yt-animated-rolling-number",{props:{numberText:_.Hz,numberValue:_.Hz,heightPx:_.Hz,fontSizeMultiplier:_.Hz,shouldAnimate:_.Hz,forceRollUp:_.Hz}});var $6e=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),slC={numberText:"",heightPx:2*$6e,shouldAnimate:!1},PS=function(){var M=_.Q.apply(this,arguments)||this;M.usingAnimatedComponents=!0;M.wasDetailed=!1;M.JSC$23181_browserSupportsAnimation=_.w("web_supports_animations_api");M.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};M.detailed=!1;M.shouldAnimate=!1;M.viewCountProps=slC;M.dateTextProps=
slC;M.metadataBadgesInDescription=_.w("web_metadata_badges_in_description");return M};
_.l(PS,_.Q);_.N=PS.prototype;_.N.attached=function(){var M=this;_.AL().resolve(_.nQ).subtitleChangeCallbackMap.set("ytd-watch-info-text",function(q){M.set("videoPrimaryInfoRenderer.subtitle",q)})};
_.N.detached=function(){_.AL().resolve(_.nQ).subtitleChangeCallbackMap.delete("ytd-watch-info-text")};
_.N.resetAnimationState=function(){this.shouldAnimate=!1};
_.N.updateDynamicMetadata=function(){if(this.JSC$23181_browserSupportsAnimation){if(!this.detailed){var M,q,G,K;var n=(M=this.videoPrimaryInfoRenderer)==null?void 0:(q=M.viewCount)==null?void 0:(G=q.videoViewCountRenderer)==null?void 0:(K=G.extraShortViewCount)==null?void 0:K.simpleText;var E,p,y,Y;var A=(E=this.videoPrimaryInfoRenderer)==null?void 0:(p=E.viewCount)==null?void 0:(y=p.videoViewCountRenderer)==null?void 0:(Y=y.shortViewCount)==null?void 0:Y.simpleText}if(!A){var v,h,t,O;n=(v=this.videoPrimaryInfoRenderer)==
null?void 0:(h=v.viewCount)==null?void 0:(t=h.videoViewCountRenderer)==null?void 0:(O=t.unlabeledViewCountValue)==null?void 0:O.simpleText;var a,g,D,J;A=(a=this.videoPrimaryInfoRenderer)==null?void 0:(g=a.viewCount)==null?void 0:(D=g.videoViewCountRenderer)==null?void 0:(J=D.viewCount)==null?void 0:J.simpleText}var Z,V,S;M=Number((Z=this.videoPrimaryInfoRenderer)==null?void 0:(V=Z.viewCount)==null?void 0:(S=V.videoViewCountRenderer)==null?void 0:S.originalViewCount);var m,R;Z=(m=this.videoPrimaryInfoRenderer)==
null?void 0:(R=m.relativeDateText)==null?void 0:R.simpleText;var se;m=!((se=this.videoPrimaryInfoRenderer)==null||!se.relativeDateText);if(n&&A&&M&&(Z||!m)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;se=A.split(new RegExp("("+n+")"));n=_.bc(se[0]);var yY;A={numberText:(yY=se[1])!=null?yY:"",numberValue:M,heightPx:2*$6e,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var d$;yY=((d$=se[2])!=null?d$:"")+"  ";this.setViewCount(A,n,_.bc(yY));
if(!this.detailed&&m){n=Z.split(/(\d+)/);d$=_.bc(n[0]);var cy;yY={numberText:(cy=n[1])!=null?cy:"",heightPx:2*$6e,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var t4;cy=((t4=n[2])!=null?t4:"")+"  ";this.setDateText(yY,d$,_.bc(cy))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.N.setViewCount=function(M,q,G){_.UX(q)!==_.UX(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=q);this.viewCountProps.numberText!==(M==null?void 0:M.numberText)&&(this.viewCountProps=M||slC);_.UX(G)!==_.UX(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=G)};
_.N.setDateText=function(M,q,G){_.UX(q)!==_.UX(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=q);this.dateTextProps.numberText!==(M==null?void 0:M.numberText)&&(this.dateTextProps=M||slC);_.UX(G)!==_.UX(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=G)};
_.N.onYtUpdateViewershipAction=function(M){this.videoPrimaryInfoRenderer&&(_.C(M,PjM).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.C(M,PjM).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.C(M,PjM).viewCount)))};
_.N.onYtUpdateDateTextAction=function(M){if(this.videoPrimaryInfoRenderer){M=_.C(M,_.lfC).dateText;this.shouldAnimate=!0;var q;((q=this.videoPrimaryInfoRenderer)==null?0:q.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",M):this.set("videoPrimaryInfoRenderer.dateText",M)}};
_.Yd.Object.defineProperties(PS.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return hy9(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.UX(hy9(this.videoPrimaryInfoRenderer,!0,!0,"\u2022",!0))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.UX(this.viewCountPreNumberText),this.viewCountProps.numberText,_.UX(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.UX(this.dateTextPreNumberText),this.dateTextProps.numberText,_.UX(this.dateTextPostNumberText)].join("")}}});
PS.prototype.updateDynamicMetadata=PS.prototype.updateDynamicMetadata;PS.prototype.resetAnimationState=PS.prototype.resetAnimationState;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],PS.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],PS.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],PS.prototype,"videoPrimaryInfoRenderer",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],PS.prototype,"detailed",void 0);_.T([_.B(),_.r("design:type",Object)],PS.prototype,"shouldAnimate",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],PS.prototype,"viewCountPreNumberText",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],PS.prototype,"viewCountProps",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],PS.prototype,"viewCountPostNumberText",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],PS.prototype,"dateTextPreNumberText",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],PS.prototype,"dateTextProps",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],PS.prototype,"dateTextPostNumberText",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],PS.prototype,"metadataBadgesInDescription",void 0);_.T([_.c("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.r("design:type",Object),_.r("design:paramtypes",[])],PS.prototype,"infoText",null);
_.T([_.c("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.r("design:type",String),_.r("design:paramtypes",[])],PS.prototype,"descriptionInfoTooltipText",null);_.T([_.c("detailed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],PS.prototype,"showDescriptionInfoTooltip",null);
_.T([_.c("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.r("design:type",String),_.r("design:paramtypes",[])],PS.prototype,"animatedViewCountAccessibilityLabel",null);_.T([_.c("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.r("design:type",String),_.r("design:paramtypes",[])],PS.prototype,"animatedDateTextAccessibilityLabel",null);
_.T([_.KT("videoPrimaryInfoRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PS.prototype,"resetAnimationState",null);_.T([_.KT("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.subtitle","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PS.prototype,"updateDynamicMetadata",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-watch-info-text"})],PS);
_.z(PS,"ytd-watch-info-text",function(){if(e0v!==void 0)return e0v;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return e0v=M},{mode:1});var M4L;var qUy="baseBackground raisedBackground additiveBackground textPrimary textSecondary outline keyLight collectionStack invertedBackground textPrimaryInverse textDisabled dropShadow cardOutline overlayBackground overlayTextPrimary".split(" ");var GyG=_.U(function(M){var q=M.data;var G=M.setTapCommand;_.zL(function(){var K=_.aM(q().onTap);G(K)},"CLm0Xe");
return _.W("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.W(_.yu,{data:function(){return q().avatar}},{avatarViewModel:_.zo}),_.W("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.W("span",null,function(){return q().simpleboxText})))},"Bn");var KoM=_.U(function(M){return _.W("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.W(_.d,{cond:function(){return _.C(M.data().avatar,_.aZ)},
then:function(q){return _.W(_.zo,{data:q,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.W("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.W(_.Ft,{text:function(){return M.data().teaserText}})))},"Cn");var ndG=_.U(function(M){var q=M.data;var G=M.setTapCommand;_.zL(function(){var K=_.aM(q().onTap);G(K)},"qxjCCd");
return _.W("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.W(_.yu,{data:function(){return q().teasers}},{commentsEntryPointTeaserViewModel:KoM}))},"En");var Ed9=_.U(function(M){var q=M.data;var G=M.setTapCommand;_.zL(function(){var K=_.aM(q().onTap);G(K)},"CRZByf");
return _.W("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.W(_.Ft,{text:function(){return q().messageText}}))},"Gn");var NhC=_.U(function(M){var q=M.data;var G=M.setTapCommand;var K=M.isDisabled;_.zL(function(){var n=(K==null?0:K())?void 0:_.aM(q().onTap);G(n)},"GZxRqd");
return _.W("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.W(_.np,{icon:function(){return q().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.W(_.d,{cond:function(){return q().image},
then:function(n){return _.W(_.Jj,{data:n,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.W(_.Ft,{text:function(){return q().text},
className:function(){return q().image||q().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.W(_.yu,{data:function(){return q().button}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:K==null?void 0:K()}}})}}))},"In");var kyM=_.U(function(M){var q=M.data;var G=M.itemIndex;var K=M.selectedIndex;var n=M.indexUpdatedCallback;var E=M.observer;M=M.title;var p=_.pI("yt-carousel-item-view-model",function(h){E&&E().observe(h)}),y=function(h){G()===K()&&n(h)},Y=_.pp(reL),A=_.pp(_.E7y),v=function(){var h,t,O,a,g;
return((h=q())==null?void 0:h.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!Y()||((t=q())==null?void 0:t.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&((O=A())==null?void 0:O.includes("PAposts_by_host"))||((a=q())==null?void 0:a.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&((g=A())==null?void 0:g.includes("PAyouchat"))};
return _.W("yt-carousel-item-view-model",{el:p,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":M},_.W(_.yu,{data:function(){var h,t;return(t=(h=_.C(q().carouselItem,Ry9))==null?void 0:h.textCarousel)!=null?t:q().carouselItem}},{textCarouselItemViewModel:function(h){return _.W(NhC,{data:h.data,
setTapCommand:y,isDisabled:v})},
commentTeaserCarouselItemViewModel:function(h){return _.W(ndG,{data:h.data,setTapCommand:y})},
commentInputBoxCarouselItemViewModel:function(h){return _.W(GyG,{data:h.data,setTapCommand:y})},
commentsEntryPointMessageViewModel:function(h){return _.W(Ed9,{data:h.data,setTapCommand:y})}}))},"Jn");var pGC=_.U(function(M){var q=M.numDots;var G=M.activeIndex;return _.W("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.W(_.bf,{each:function(){return Array.from({length:q()})},
keyBy:"INDEX"},function(K,n){return _.W("div",{class:function(){var E={};return _.vO("ytCarouselDotsShapeDot",(E.ytCarouselDotsShapeDotActive=n===G(),E))}})}))},"Kn");var yh9=_.U(function(M){var q=M.data;var G=M.handleCarouselNavigation;var K=M.numItems;var n=M.selectedIndex;var E=function(){return{disabled:n()===0}},p=function(){return{disabled:n()===K()-1}};
return _.W("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.W("div",null,_.W("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return q().title}),_.W(_.d,{cond:function(){return q().subtitle},
then:function(y){return _.W("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return q().subtitleAccessibilityText}},y)}})),_.W(_.d,{cond:function(){return K()>1},
then:function(){return _.W("div",{class:"ytCarouselTitleViewModelNavigation"},_.W(pGC,{numDots:K,activeIndex:n}),_.W(_.d,{cond:function(){return q().previousButton},
then:function(y){return _.W(_.yu,{data:y},{buttonViewModel:function(Y){return _.W(_.Wf,{data:Y.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return G(-1)},
buttonOverrides:E})}})}}),_.W(_.d,{cond:function(){return q().nextButton},
then:function(y){return _.W(_.yu,{data:y},{buttonViewModel:function(Y){return _.W(_.Wf,{data:Y.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return G(1)},
buttonOverrides:p})}})}}))}}))},"Ln");_.S5(_.U(function(M){var q=M.data;var G,K=_.pI("yt-video-metadata-carousel-view-model"),n=_.pI("div",function(m){var R=function(){var se=m.offsetWidth*g(),yY=24*(g()-1);t(se+yY)};
R();window.ResizeObserver&&(G=new ResizeObserver(R),G.observe(m))}),E=_.R9("HTML_DIR")==="rtl",p=!1,y=0,Y=0;
M=_.k(_.lQ(0,void 0,"M49TDf"));var A=M.next().value,v=M.next().value;M=_.k(_.lQ(0,void 0,"zLIok"));var h=M.next().value,t=M.next().value;M=_.k(_.lQ(!1,void 0,"bhelhc"));var O=M.next().value,a=M.next().value,g=function(){var m,R,se;return(se=(m=q())==null?void 0:(R=m.carouselTitles)==null?void 0:R.length)!=null?se:0},D=function(){n.value&&n.value.scrollLeft!==y&&v((E?n.value.scrollLeft<y:n.value.scrollLeft>y)?Math.min(A()+1,g()-1):Math.max(A()-1,0))},J;
window.IntersectionObserver&&(J=new IntersectionObserver(function(m){m=_.k(m);for(var R=m.next();!R.done;R=m.next())if(R.value.isIntersecting){if(p){p=!1;break}D()}else v(Y)},{threshold:.2}));
_.zL(function(){if(n.value){var m=(E?-1:1)*(h()/g()+12)*(O()&&J?Y:A());typeof n.value.scrollTo==="function"?n.value.scrollTo({left:m,behavior:"smooth"}):n.value.scrollLeft=m;y=m;Y=O()&&J?Y:A()}},"s9rbgc");
var Z,V=function(m){Z=m};
_.m_(function(){var m;(m=G)==null||m.disconnect();var R;(R=J)==null||R.disconnect()});
var S=function(m){m=A()+m;m>=0&&m<g()&&(p=!0,v(m))};
return _.W("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:K,"on:click":_.sq(function(m){if(_.t$(_.h$(m),K.value,["BUTTON".toString()])||!Z)return!1;_.AL().resolve(_.vR).resolveCommand(Z,{forceClickLogging:!0});return!1}),
"on:touchstart":_.sq(function(){a(!0);return!1}),
"on:touchend":_.sq(function(){J||D();a(!1);return!1}),
hidden:function(){var m,R;return!((m=q())==null?0:(R=m.carouselItems)==null?0:R.length)}},_.W("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.W(_.d,{cond:function(){return q().carouselTitles},
then:function(m){return _.W(_.yu,{data:function(){return m()[O()&&J?Y:A()]}},{carouselTitleViewModel:function(R){return _.W(yh9,{data:R.data,
handleCarouselNavigation:S,numItems:g,selectedIndex:A})}})}})),_.W("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:n},_.W("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+h()+"px;"}},_.W(_.d,{cond:function(){return q().carouselItems},
then:function(m){return _.W(_.bf,{each:m},function(R,se){return _.W(_.yu,{data:function(){return R}},{carouselItemViewModel:function(yY){return _.W(kyM,{data:yY.data,
itemIndex:se,selectedIndex:A,indexUpdatedCallback:V,observer:J,title:function(){a:{var d$=se();var cy,t4=(cy=q())==null?void 0:cy.carouselTitles;if(t4&&(d$=t4[d$])){var ay;d$=(ay=_.C(d$,VKW))==null?void 0:ay.title;break a}d$=void 0}return d$}})}})})}}))))},"Nn"),"yt-video-metadata-carousel-view-model",{props:{data:_.Hz}});var LoL=_.w("web_action_buttons_update_owner_width")?32:12,ie=function(){var M=_.Q.apply(this,arguments)||this;M.isHovering=!1;M.enableColorSampling=_.w("web_delhi_colorful_sd");M.metadataBadgesInDescription=_.w("web_metadata_badges_in_description");M.descriptionCollapsed=!0;M.useFadedScrimDescription=_.w("kevlar_enable_faded_scrim_on_description");M.skinnyMode=!1;M.playlist=!1;M.isDark=document.documentElement.hasAttribute("dark");M.disableVideoOwnerOnTap=_.w("swatchie_video_owner_on_tap_ks");M.swatcherooDelayLoad=
_.w("swatcheroo_enable_ghost_cards");M.primaryMenuWidth=0;M.videoId="";M.titleHeadlineXs=_.w("web_watch_typography_title_headline_xs");M.titleHeadlineS=_.w("web_watch_typography_title_headline_s");M.titleHeadlineM=_.w("web_watch_typography_title_headline_m");M.titleHashtagBlackLinkified=_.w("web_title_hashtag_black_linkified");M.titleHashtagGreyLinkified=_.w("web_title_hashtag_grey_linkified");M.actionButtonsUpdateOwnerWidth=_.w("web_action_buttons_update_owner_width");M.shouldForceIconOnly=!1;M.actionMap=
{"yt-update-title-action":"onYtUpdateTitleAction","yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};M.isFullscreen=!1;M.isTheaterMode=!1;return M};
_.l(ie,_.Q);_.N=ie.prototype;_.N.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.N.updateOwnerAndDescriptionPosition=function(){_.w("kevlar_watch_grid")&&this.titleElement&&this.descriptionElement&&this.bottomRowElement&&this.ownerElement&&this.topRowElement&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Is(this.bottomRowElement,this.ownerElement)):(_.Is(this.bottomRowElement,this.descriptionElement),_.Is(this.topRowElement,this.ownerElement)))};
_.N.titleOnTap=function(M){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.b8(_.Zx(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var q;((q=window.getSelection())==null?0:q.toString().length)||this.handleExpandDescriptionCommands()}};
_.N.videoOwnerOnTap=function(M){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.b8(_.Zx(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.N.detached=function(){var M=this,q;return _.L(function(G){(q=M.resizeObserver)==null||q.disconnect();_.gL(G)})};
_.N.maybeAttachResizeObserver=function(){var M=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.qA(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){M.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.N.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var M=this.hostElement.clientWidth,q=Math.max(this.largerItemWrap?400:350,M/2-LoL);_.w("web_action_buttons_update_owner_width")&&(q=this.ownerElement.clientWidth+LoL);this.actionsOnSeparateLine=this.primaryMenuWidth>M-q?!0:!1}};
_.N.stripAttributedDescription=function(M){return{content:M.content.replace(/[\r\n]{2,}/g,"\n")}};
_.N.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("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:_.w("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.N.videoPrimaryInfoRendererChanged=function(){var M;if((M=this.videoPrimaryInfoRenderer)==null?0:M.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.N.videoSecondaryInfoRendererChanged=function(){var M,q;(M=this.descriptionInlineExpander)==null||(q=M.collapse)==null||q.call(M);this.descriptionExpandClientVe=_.$m(110509);this.descriptionCollapseClientVe=_.$m(110510);M=_.Cx();q=_.wt();M&&q&&(_.w("combine_ve_grafts")?(_.oQ(_.nl(),this.descriptionExpandClientVe,q),_.oQ(_.nl(),this.descriptionCollapseClientVe,q)):_.IJ(M,q,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.N.structuredDescriptionContentRendererChanged=function(){this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRendererComputed)};
_.N.updateTopLevelIconsOnly=function(){var M=this;_.w("top_level_update_killswitch")||this.menu&&_.r8.addLowPriorityJob(function(){M.menu.topLevelIconsOnly=M.skinnyMode},_.tL("swathceroo_delay_flexible_menu_update",100))};
_.N.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.w("web_action_buttons_minimize_subscribe")};
_.N.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.N.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.N.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.N.onYtTextInlineExpanderExpandedChanged=function(){if(!_.w("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var M,q;(q=(M=this.structuredDescriptionContentRendererElement).resize)==null||q.call(M)}};
_.N.onRenderStamperFinished=function(M){(M==null?void 0:M.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.N.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.N.onYtExpanderLessTapped=function(){var M,q=(M=this.videoSecondaryInfoRenderer)==null?void 0:M.showLessCommand;q&&this.ytComponentBehavior.resolveCommand(q)};
_.N.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.N.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.N.onDescriptionClick=function(M){if(!_.b8(_.Zx(M)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var q;((q=window.getSelection())==null?0:q.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.w("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.N.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.N.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.N.logCollapseClick=function(){var M=_.Cx();M&&this.descriptionCollapseClientVe&&_.Z_(M,this.descriptionCollapseClientVe)};
_.N.logExpandClick=function(){var M=_.Cx();M&&this.descriptionExpandClientVe&&_.Z_(M,this.descriptionExpandClientVe)};
_.N.collapseDescription=function(){this.descriptionCollapsed=!0};
_.N.scrollToTopOfContainer=function(){_.VW(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.N.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.N.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRendererComputed&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.N.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.N.resize=function(){if(this.videoSecondaryInfoRenderer)if(this.descriptionInlineExpander){var M,q;(q=(M=this.descriptionInlineExpander).resize)==null||q.call(M)}else _.j1(new _.bj("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var G;(G=this.menu)==null||G.maybeFlushDebouncer();this.updatePrimaryMenuWidth();this.primaryMenuWidth!==0&&this.maybeUpdateActionsOnSeparateLine()}};
_.N.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var M,q,G,K,n=_.w("web_action_buttons_update_owner_width")?(G=(M=_.f_(this.menu).querySelector("#button-shape"))==null?void 0:M.clientWidth)!=null?G:0:(K=(q=_.f_(this.menu).querySelector("#button"))==null?void 0:q.clientWidth)!=null?K:0,E,p;M=((p=(E=_.f_(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:E.clientWidth)!=null?p:0)+8+n;var y,Y;n=(Y=(y=_.f_(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:y.children.length)!=null?Y:2;M<=8*n||(this.primaryMenuWidth=M)}};
_.N.onYtUpdateTitleAction=function(M){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.C(M,XRL).title)};
_.N.onYtUpdateDescriptionAction=function(M){if(M=_.C(M,_.Q49)){var q,G=!((q=this.videoSecondaryInfoRenderer)==null||!q.attributedDescription);M.isEmpty||!M.description&&!M.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):M.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",M.attributedDescription):M.description&&(G?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.tj(M.description)):this.set("videoSecondaryInfoRenderer.description",M.description))}};
_.N.onYtDarkModeToggledAction=function(M){this.isDark=M};
_.N.registerPanel=function(){if(!_.w("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var M=_.w("web_watch_imax_theater_mode")&&this.isTheaterMode;M=_.w("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||M;var q=_.AL().resolve(_.Ja);q&&!M&&q.registerPanel("engagement-panel-structured-description",this)}};
_.N.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.N.parseColorSamplingData=function(){var M;if(_.w("web_delhi_colorful_sd")&&((M=this.structuredDescriptionContentRenderer)==null?0:M.items)&&(M=this.structuredDescriptionContentRenderer.items.find(function(n){return!!_.C(n,DX)}))){var q,G;
this.hoverColor={lightTheme:(q=_.C(M,DX))==null?void 0:q.lightThemeColorPalette,darkTheme:(G=_.C(M,DX))==null?void 0:G.darkThemeColorPalette};var K;this.hoverText=(K=_.C(M,DX))==null?void 0:K.colorSampledDescriptionBodyText}};
_.N.updateHoverColor=function(){if(_.w("web_delhi_colorful_sd")){var M=this.hoverColor,q={},G;M=(G=this.isDark?M==null?void 0:M.darkTheme:M==null?void 0:M.lightTheme)!=null?G:{};G=_.k(qUy);for(var K=G.next();!K.done;K=G.next()){K=K.value;var n=M[K];q["--yt-saturated-"+_.Kx(K)]=n?_.C_(n):"initial"}_.sT(this.hostElement,q)}};
_.N.onDescriptionMouseEnter=function(){this.isHovering=!0};
_.N.onDescriptionMouseLeave=function(){this.isHovering=!1};
_.N.showPanel=function(M){this.expandDescription();var q=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;q.resize();var G,K=M==null?void 0:(G=M.sectionListEngagementPanelExtras)==null?void 0:G.scrollToItemSectionIdentifier;K?_.r8.addJob(function(){q==null||q.scrollToSection(K)},8):this.scrollToTopOfContainer()};
_.N.isVisible=function(){return!this.descriptionCollapsed};
_.N.getReloadContinuation=function(){};
_.N.hidePanel=function(){};
_.N.updatePanel=function(){};
_.Yd.Object.defineProperties(ie.prototype,{structuredDescriptionContentRendererComputed:{configurable:!0,enumerable:!0,get:function(){var M;return _.w("web_delhi_colorful_sd")&&(M=this.structuredDescriptionContentRenderer)!=null&&M.items?Object.assign({},this.structuredDescriptionContentRenderer,{items:this.structuredDescriptionContentRenderer.items.filter(function(q){return!_.C(q,DX)&&!_.C(q,gJC)})}):this.structuredDescriptionContentRenderer}},
productShelf:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.structuredDescriptionContentRendererComputed)!=null&&M.items){var q;M=_.k((q=this.structuredDescriptionContentRendererComputed)==null?void 0:q.items);for(q=M.next();!q.done;q=M.next())if(q=_.C(q.value,_.aIv))return q}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoPrimaryInfoRenderer)==null?0:M.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!!((M=this.videoSecondaryInfoRenderer)==null?0:(q=M.owner)==null?0:(G=q.videoOwnerRenderer)==null?0:G.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode){var M,q;if((M=this.videoSecondaryInfoRenderer)==null?0:(q=M.attributedDescription)==null?0:q.content){var G,K;return(K=this.stripAttributedDescription((G=this.videoSecondaryInfoRenderer)==null?void 0:G.attributedDescription))!=null?K:{runs:[]}}}if(_.w("web_delhi_colorful_sd")&&this.isHovering&&this.descriptionCollapsed&&this.hoverText)return this.hoverText;var n,E,p,y;return(y=(p=(n=this.videoSecondaryInfoRenderer)==
null?void 0:n.description)!=null?p:(E=this.videoSecondaryInfoRenderer)==null?void 0:E.attributedDescription)!=null?y:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=(M=this.videoSecondaryInfoRenderer)==null?void 0:M.headerRuns)!=null?q:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.commentsEntryPointHeaderRenderer)==null||!M.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.videoMetadataCarousel)==null||!M.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.tL("swatchie_desc_lines",3):this.hasTeaserCarousel?2:3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var M,q,G=Object.assign({},(M=this.videoSecondaryInfoRenderer)==null?void 0:(q=M.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer);if(G&&G.rows&&G.collapsedItemCount!==void 0&&!(G.rows.length<=G.collapsedItemCount))return G.rows=G.rows.slice(G.collapsedItemCount),G.collapsedItemCount=0,G}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var M,q,G=Object.assign({},(M=this.videoSecondaryInfoRenderer)==null?void 0:(q=M.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer);if(G&&G.rows&&G.collapsedItemCount!==void 0)return G.rows=G.rows.slice(0,G.collapsedItemCount),G.collapsedItemCount=G.rows.length,G}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var M,q;return!!((M=this.structuredDescriptionContentRendererComputed)==null?0:(q=M.items)==null?0:q.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 M;return(M=this.videoSecondaryInfoRenderer)==null?void 0:M.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.videoSecondaryInfoRenderer)==null?0:(q=M.owner)==null?0:(G=q.videoOwnerRenderer)==null?0:G.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K;return!!((M=this.videoPrimaryInfoRenderer)==null?0:(q=M.videoActions)==null?0:(G=q.menuRenderer)==null?0:(K=G.flexibleItems)==null?0:K.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.IM(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.IM(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var M=this;if(_.w("web_title_hashtag_grey_delinkified")){var q,G=_.xP.unsafeClone((q=this.videoPrimaryInfoRenderer)==null?void 0:q.title);(q=G==null?void 0:G.runs)&&q.forEach(function(K){if(K==null?0:K.navigationEndpoint)K.textColor=4284506208,M.isDark&&(K.textColor=4289374890)});
return G}return(G=this.videoPrimaryInfoRenderer)==null?void 0:G.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.w("web_title_hashtag_black_delinkified")||_.w("web_title_hashtag_grey_delinkified")}}});
ie.prototype.updateHoverColor=ie.prototype.updateHoverColor;ie.prototype.parseColorSamplingData=ie.prototype.parseColorSamplingData;ie.prototype.resetDescriptionState=ie.prototype.resetDescriptionState;ie.prototype.registerPanel=ie.prototype.registerPanel;ie.prototype.onYtExpanderLessTapped=ie.prototype.onYtExpanderLessTapped;ie.prototype.onYtExpanderMoreTapped=ie.prototype.onYtExpanderMoreTapped;ie.prototype.onRenderStamperFinished=ie.prototype.onRenderStamperFinished;
ie.prototype.onYtTextInlineExpanderExpandedChanged=ie.prototype.onYtTextInlineExpanderExpandedChanged;ie.prototype.onYtTextInlineExpanderCollapseClicked=ie.prototype.onYtTextInlineExpanderCollapseClicked;ie.prototype.onYtTextInlineExpanderExpandClicked=ie.prototype.onYtTextInlineExpanderExpandClicked;ie.prototype.moveActionsElement=ie.prototype.moveActionsElement;ie.prototype.updateShouldForceIconOnly=ie.prototype.updateShouldForceIconOnly;ie.prototype.updateTopLevelIconsOnly=ie.prototype.updateTopLevelIconsOnly;
ie.prototype.structuredDescriptionContentRendererChanged=ie.prototype.structuredDescriptionContentRendererChanged;ie.prototype.videoSecondaryInfoRendererChanged=ie.prototype.videoSecondaryInfoRendererChanged;ie.prototype.videoPrimaryInfoRendererChanged=ie.prototype.videoPrimaryInfoRendererChanged;ie.prototype.maybeUpdateActionsOnSeparateLine=ie.prototype.maybeUpdateActionsOnSeparateLine;ie.prototype.updateOwnerAndDescriptionPosition=ie.prototype.updateOwnerAndDescriptionPosition;
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ie.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ie.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ie.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ie.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],ie.prototype,"ytdReduxBehavior",void 0);_.T([_.ET("#above-the-fold"),_.r("design:type",HTMLElement)],ie.prototype,"aboveTheFoldContainer",void 0);_.T([_.ET("#menu ytd-menu-renderer"),_.r("design:type",Object)],ie.prototype,"menu",void 0);_.T([_.ET("#description-inline-expander"),_.r("design:type",Object)],ie.prototype,"descriptionInlineExpander",void 0);
_.T([_.ET("#faded-structured-description"),_.r("design:type",Object)],ie.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.T([_.ET("#structured-description"),_.r("design:type",Object)],ie.prototype,"structuredDescriptionContentRendererElement",void 0);_.T([_.ET("#title"),_.r("design:type",HTMLElement)],ie.prototype,"titleElement",void 0);_.T([_.ET("#description"),_.r("design:type",HTMLElement)],ie.prototype,"descriptionElement",void 0);
_.T([_.ET("#description-interaction"),_.r("design:type",Object)],ie.prototype,"descriptionInteraction",void 0);_.T([_.ET("#owner"),_.r("design:type",HTMLElement)],ie.prototype,"ownerElement",void 0);_.T([_.ET("#top-row"),_.r("design:type",HTMLElement)],ie.prototype,"topRowElement",void 0);_.T([_.ET("#bottom-row"),_.r("design:type",HTMLElement)],ie.prototype,"bottomRowElement",void 0);_.T([_.ET("#actions"),_.r("design:type",HTMLElement)],ie.prototype,"actionsElement",void 0);
_.T([_.ET("#bottom-actions"),_.r("design:type",HTMLElement)],ie.prototype,"bottomActionsElement",void 0);_.T([_.ET("#ytd-watch-info-text"),_.r("design:type",Object)],ie.prototype,"watchInfoTextElement",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"videoPrimaryInfoRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"videoSecondaryInfoRenderer",void 0);
_.T([_.B(),_.r("design:type",Object)],ie.prototype,"commentsEntryPointHeaderRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"videoMetadataCarousel",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"structuredDescriptionContentRenderer",void 0);_.T([_.c("structuredDescriptionContentRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"structuredDescriptionContentRendererComputed",null);
_.T([_.B(),_.r("design:type",Object)],ie.prototype,"videoSummary",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"merchShelf",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"infoPanelBelowMetadata",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"hoverColor",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"hoverText",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"isHovering",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"enableColorSampling",void 0);_.T([_.c("structuredDescriptionContentRendererComputed"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"productShelf",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"metadataBadgesInDescription",void 0);_.T([_.c("videoPrimaryInfoRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"shouldHideBadges",null);
_.T([_.c("productShelf","descriptionCollapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ie.prototype,"shouldShowProductShelf",null);_.T([_.B(),_.r("design:type",Boolean)],ie.prototype,"isWatchFlexy",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"descriptionCollapsed",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ie.prototype,"useFadedScrimDescription",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"skinnyMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("videoSecondaryInfoRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"largerItemWrap",null);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"playlist",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"clarifyBox",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"playerAds",void 0);
_.T([_.B(),_.r("design:type",Boolean)],ie.prototype,"isDark",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],ie.prototype,"actionsOnSeparateLine",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"disableVideoOwnerOnTap",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"swatcherooDelayLoad",void 0);_.T([_.B(),_.r("design:type",Boolean)],ie.prototype,"suppressTopLevelMetadataRows",void 0);
_.T([_.B(),_.r("design:type",Object)],ie.prototype,"primaryMenuWidth",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"videoId",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"titleHeadlineXs",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"titleHeadlineS",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"titleHeadlineM",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"titleHashtagBlackLinkified",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"titleHashtagGreyLinkified",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"actionButtonsUpdateOwnerWidth",void 0);_.T([_.B(),_.r("design:type",Object)],ie.prototype,"shouldForceIconOnly",void 0);
_.T([_.yO("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"updateOwnerAndDescriptionPosition",null);_.T([_.yO("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.T([_.c("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription","isHovering","hoverText","descriptionCollapsed"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"descriptionText",null);_.T([_.c("videoSecondaryInfoRenderer.headerRuns"),_.r("design:type",Array),_.r("design:paramtypes",[])],ie.prototype,"headerRuns",null);
_.T([_.B({value:!1}),_.c("commentsEntryPointHeaderRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"hasTeaser",null);_.T([_.B({value:!1,reflectToAttribute:!0}),_.c("videoMetadataCarousel"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"hasTeaserCarousel",null);_.T([_.B({value:3}),_.c("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"descriptionMaxLines",null);
_.T([_.c("videoSecondaryInfoRenderer.metadataRowContainer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"collapsibleMetadataRows",null);_.T([_.c("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"alwaysVisibleMetadataRows",null);
_.T([_.c("videoSecondaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ie.prototype,"hasInlineStructuredDescription",null);_.T([_.c("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ie.prototype,"showInlineStructuredDescription",null);
_.T([_.c("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"descriptionExpandCommand",null);_.T([_.c("videoSecondaryInfoRenderer.owner"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"videoOwnerCommand",null);_.T([_.B({reflectToAttribute:!0}),_.c("videoPrimaryInfoRenderer.videoActions"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ie.prototype,"flexMenuEnabled",null);
_.T([_.B({selector:_.a2,reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"isFullscreen",void 0);_.T([_.B({selector:_.Cp,reflectToAttribute:!0}),_.r("design:type",Object)],ie.prototype,"isTheaterMode",void 0);_.T([_.c("descriptionText","useFadedScrimDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ie.prototype,"showAttributedStringDescription",null);
_.T([_.c("descriptionText","useFadedScrimDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ie.prototype,"showFormattedStringDescription",null);_.T([_.c("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],ie.prototype,"showFadedStructuredDescription",null);
_.T([_.yO("videoPrimaryInfoRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"videoPrimaryInfoRendererChanged",null);_.T([_.c("videoPrimaryInfoRenderer.title"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"videoTitle",null);_.T([_.c("videoPrimaryInfoRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],ie.prototype,"noEndpoints",null);
_.T([_.yO("videoSecondaryInfoRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"videoSecondaryInfoRendererChanged",null);_.T([_.KT("videoPrimaryInfoRenderer","structuredDescriptionContentRendererComputed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"structuredDescriptionContentRendererChanged",null);
_.T([_.KT("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"updateTopLevelIconsOnly",null);_.T([_.KT("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"updateShouldForceIconOnly",null);_.T([_.KT("skinnyMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"moveActionsElement",null);
_.T([_.GQ("yt-text-inline-expander-expand-clicked"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"onYtTextInlineExpanderExpandClicked",null);_.T([_.GQ("yt-text-inline-expander-collapse-clicked"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.T([_.GQ("yt-text-inline-expander-expanded-changed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],ie.prototype,"onRenderStamperFinished",null);
_.T([_.GQ("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"onYtExpanderMoreTapped",null);_.T([_.GQ("yt-expander-less-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"onYtExpanderLessTapped",null);
_.T([_.KT("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"registerPanel",null);_.T([_.KT("videoSecondaryInfoRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"resetDescriptionState",null);
_.T([_.KT("structuredDescriptionContentRenderer"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"parseColorSamplingData",null);_.T([_.KT("hoverColor","isDark"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ie.prototype,"updateHoverColor",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-watch-metadata"})],ie);
_.z(ie,"ytd-watch-metadata",function(){if(M4L!==void 0)return M4L;var M=document.createElement("template");_.X(M,'\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]]" 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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return M4L=M},{mode:2});_.OYk=function(M){_.uI.call(this);this.JSC$23206_watchApi=M;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;YUk(this);Woe(this);Ahk(this);d3k(this);vd3(this);hSC(this);t4G(this)};
_.l(_.OYk,_.uI);var Ahk=function(M){var q=function(){_.w("kevlar_is_pupi_enabled")||cS(M)};
M.JSC$23206_watchApi.getRoot().addEventListener("yt-player-updated",q);M.addOnDisposeCallback(function(){M.JSC$23206_watchApi.getRoot().removeEventListener("yt-player-updated",q)})},vd3=function(M){if(_.w("kevlar_endscreen_auto_theater_mode")){var q=M.JSC$23206_watchApi.subscribeToActiveChanged(function(){wGC(M)},!1);
M.addOnDisposeCallback(q)}},YUk=function(M){var q,G,K,n,E;
_.L(function(p){if(p.nextAddress==1)return p.yield(M.JSC$23206_watchApi.playerApi,2);q=p.yieldResult;G=function(y){y=!!y;Cdk(M)&&(y=y?2:1,_.Yx.getInstance().setState(y,!0,!1))};
K=function(y){y&&_.TY9(_.zw().getState())&&(_.VW(M.JSC$23206_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),M.temporaryTheaterMode=!0)};
n=function(y){_.w("kevlar_player_update_autonav_on_new_data")&&y.type==="newdata"&&(_.w("kevlar_is_pupi_enabled")||cS(M))};
E=function(y){M.onPlayerStateChange(y)};
_.w("kevlar_endscreen_auto_theater_mode")&&q.addEventListener("onAutonavCancelled",K);q.addEventListener("onAutonavChangeRequest",G);q.addEventListener("onVideoDataChange",n);q.addEventListener("onStateChange",E);M.addOnDisposeCallback(function(){q.removeEventListener("onAutonavChangeRequest",G);q.removeEventListener("onVideoDataChange",n);q.removeEventListener("onStateChange",E);_.w("kevlar_endscreen_auto_theater_mode")&&q.removeEventListener("onAutonavCancelled",K)});
_.gL(p)})},Woe=function(M){M.JSC$23206_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){M.autonavCancelledBySignal=!0;
_.w("kevlar_is_pupi_enabled")||cS(M)});
M.JSC$23206_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(q,G,K){G&&cS(M,K)});
M.JSC$23206_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){Cdk(M)&&_.Yx.getInstance().setState(2,!0,!0)});
M.JSC$23206_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){Cdk(M)&&_.Yx.getInstance().setState(1,!0,!0)});
M.addOnDisposeCallback(function(){M.JSC$23206_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");M.JSC$23206_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");M.JSC$23206_watchApi.unregisterActionHandler("yt-enable-autoplay-command");M.JSC$23206_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},d3k=function(M){var q=M.JSC$23206_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){t4G(M)}),G=M.JSC$23206_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){hSC(M)});
M.addOnDisposeCallback(function(){M.JSC$23206_watchApi.unsubscribeByKey(q);M.JSC$23206_watchApi.unsubscribeByKey(G)})},t4G=function(M){M.autonavCancelledBySignal=!1;
_.w("kevlar_is_pupi_enabled")||cS(M)},hSC=function(M){var q=M.JSC$23206_watchApi.getWatchNextResponse(),G,K;
var n=(q=(K=_.C(q==null?void 0:(n=q.playerOverlays)==null?void 0:(G=n.playerOverlayRenderer)==null?void 0:G.autonavToggle,_.JR8))==null?void 0:K.enabled)?2:1;_.w("kevlar_is_pupi_enabled")?_.Yx.getInstance().setState(n,!1,!1):cS(M);_.w("web_persist_server_autonav_state_on_client")&&typeof q==="boolean"&&_.yri(n===2)},Cdk=function(M){if(M.autonavCancelledBySignal)return!1;
var q,G,K,n;return!!((q=M.JSC$23206_watchApi.getWatchNextResponse())==null?0:(G=q.contents)==null?0:(K=G.twoColumnWatchNextResults)==null?0:(n=K.autoplay)==null?0:n.autoplay)};
_.OYk.prototype.onPlayerStateChange=function(M){if(M===0){M=!_.Yx.getInstance().isAutoplaySetExplicitly();var q=this.JSC$23206_watchApi.getWatchNextResponse(),G,K,n,E;q=_.C(q==null?void 0:(G=q.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(n=K.autoplay)==null?void 0:(E=n.autoplay)==null?void 0:E.autoplayExplicitChoiceDialogRenderer,_.H3I);Cdk(this)&&M&&q&&_.$A.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:q},popupType:"DIALOG"}})}else wGC(this)};
var wGC=function(M){M.temporaryTheaterMode&&(M.temporaryTheaterMode=!1,_.VW(M.JSC$23206_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},cS=function(M,q){q=q===void 0?!1:q;
var G;_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23206_watchApi.playerApi,2);G=K.yieldResult;Cdk(M)?G.setAutonavState(_.Yx.getInstance().getState(),q):G.setAutonavState(1,q);_.gL(K)})};var aee={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL",SHOPPING_TIMELY_SHELF:"SHOPPING_TIMELY_SHELF"};_.leL=function(M){_.uI.call(this);var q=this;this.JSC$23211_watchApi=M;var G=this.JSC$23211_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){odt(q)});
this.addOnDisposeCallback(function(){q.JSC$23211_watchApi.unsubscribeByKey(G)});
odt(this)};
_.l(_.leL,_.uI);var odt=function(M){var q=M.JSC$23211_watchApi.getPlayerResponse(),G=M.JSC$23211_watchApi.getWatchNextResponse();if(!_.zAs(q==null?void 0:q.playabilityStatus,G==null?void 0:G.playerOverlays)){var K;var n=q==null?void 0:(K=q.playabilityStatus)==null?void 0:K.errorScreen}M.JSC$23211_watchApi.provideRenderingData("ERROR_SCREEN",n)};var XGM=_.U(function(M){var q=M.data;M=_.w("web_watch_video_details_hide_subtitle");var G=_.w("web_watch_video_details_single_line_title"),K=_.sq(function(){var y=q().onTap;y&&_.AL().resolve(_.vR).resolveCommand(y)}),n={},E={},p={};
return _.W("yt-player-overlay-video-details-renderer",{class:_.Hb("ytPlayerOverlayVideoDetailsRendererHost",(n.ytPlayerOverlayVideoDetailsRendererFrostedGlass=!_.w("web_watch_video_details_transparent_background"),n)),"on:click":K,role:"button"},_.W("h2",{class:_.Hb("ytPlayerOverlayVideoDetailsRendererTitle",(E.ytPlayerOverlayVideoDetailsRendererSingleLineTitle=function(){return G},E))},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",{class:_.Hb("ytPlayerOverlayVideoDetailsRendererSubtitle",
(p.ytPlayerOverlayVideoDetailsRendererHideSubtitle=M,p))},_.W(_.Ft,{text:function(){return q().subtitle}})))},"On");var BS={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},Pdt=_.U(function(M){var q=M.data;var G=_.pp(_.a2),K=_.w("web_watch_action_bar_resize_buttons"),n=_.w("web_watch_video_action_dsdvb"),E=_.w("delhi_modern_web_player_icons")&&!_.w("enable_web_delhi_icons");M=_.w("delhi_modern_web_player_disable_frosted_glass");var p=_.w("delhi_modern_web_player_compact_video_actions_controls"),
y=_.w("web_player_quick_action_buttons_icon_only"),Y=function(){var v=K&&!G(),h={};p?h.size="S":v&&(h.size="M");y&&(h.iconPosition="icon-only");if(Object.keys(h).length!==0)return h},A={};
return _.W("yt-player-quick-action-buttons",{class:_.Hb("ytPlayerQuickActionButtonsHost",(A.ytPlayerQuickActionButtonsHostCompactControls=function(){return!G()||p},A.ytPlayerQuickActionButtonsHostDisableBackdropFilter=M,A))},_.W(_.bf,{each:function(){var v=q();
if(E){v=JSON.parse(JSON.stringify(v));for(var h=_.k(v),t=h.next();!t.done;t=h.next()){var O=t.value,a=void 0;t=_.C((a=_.C(O,_.SN))==null?void 0:a.toggleButtonViewModel,_.M1);var g=void 0;a=_.C((g=_.C(O,_.mz))==null?void 0:g.toggleButtonViewModel,_.M1);g=_.C(O,_.$N);O=_.C(O,_.M1);if(t)a=_.C(t.defaultButtonViewModel,_.$N),t=_.C(t.toggledButtonViewModel,_.$N),a&&a.iconName&&(a.iconName=BS[a.iconName]),t&&t.iconName&&(t.iconName=BS[t.iconName]);else if(a)t=_.C(a.defaultButtonViewModel,_.$N),a=_.C(a.toggledButtonViewModel,
_.$N),t&&t.iconName&&(t.iconName=BS[t.iconName]),a&&a.iconName&&(a.iconName=BS[a.iconName]);else if(g)g.iconName&&(g.iconName=BS[g.iconName]);else if(O){t=_.C(O.defaultButtonViewModel,_.$N);a=_.C(O.toggledButtonViewModel,_.$N);O=void 0;if((O=t)==null?0:O.iconName)t.iconName=BS[t.iconName];t=void 0;if((t=a)==null?0:t.iconName)a.iconName=BS[a.iconName]}}}n&&(v=tKG(v));return v}},function(v){return _.W(_.yu,{data:function(){return v}},{buttonViewModel:function(h){return _.W(_.Wf,{data:h.data,
buttonOverrides:Y})},
likeButtonViewModel:function(h){return _.W(_.rn,{data:h.data,buttonShapeOverrideables:Y})},
dislikeButtonViewModel:function(h){return _.W(_.TR,{data:h.data,buttonShapeOverrideables:Y})},
toggleButtonViewModel:function(h){return _.W(_.Dj,{data:h.data,buttonShapeOverrides:Y})}})}))},"Pn");_.ch9=function(M){_.uI.call(this);var q=this;this.JSC$23215_watchApi=M;M=_.k(_.lQ({},void 0,"n9wCVe"));this.quickActionsViewModel=M.next().value;this.setQuickActionsViewModel=M.next().value;M=_.k(_.lQ({},void 0,"JD2YUd"));this.playerOverlayVideoDetailsRenderer=M.next().value;this.setPlayerOverlayVideoDetailsRenderer=M.next().value;var G=this.JSC$23215_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){iYt(q)});
this.addOnDisposeCallback(function(){q.JSC$23215_watchApi.unsubscribeByKey(G)});
iYt(this)};
_.l(_.ch9,_.uI);
var iYt=function(M){var q,G,K,n,E,p,y,Y,A,v,h,t,O,a;_.L(function(g){if(g.nextAddress==1)return g.yield(M.JSC$23215_watchApi.playerApi,2);q=g.yieldResult;G=M.JSC$23215_watchApi.getWatchNextResponse();E=(K=G)==null?void 0:(n=K.playerOverlays)==null?void 0:n.playerOverlayRenderer;y=_.C((p=E)==null?void 0:p.fullscreenQuickActionsBar,_.Ijd);(A=(Y=M).setQuickActionsViewModel)==null||A.call(Y,y||{});y&&gdG(M,q);t=(v=E)==null?void 0:(h=v.videoDetails)==null?void 0:h.playerOverlayVideoDetailsRenderer;(a=(O=
M).setPlayerOverlayVideoDetailsRenderer)==null||a.call(O,t||{});t&&Bhe(M,q);_.gL(g)})},gdG=function(M,q){if(!M.quickActionButtonsContainer)if(q.setFullscreenQuickActions){M.quickActionButtonsContainer=document.createElement("div");
q.setFullscreenQuickActions(M.quickActionButtonsContainer);var G=function(){return M.quickActionsViewModel().quickActionButtons||[]},K=_.z_(M.quickActionButtonsContainer,function(){return _.W(Pdt,{data:G})},"Qn");
M.addOnDisposeCallback(function(){q.setFullscreenQuickActions(void 0);K()})}else _.j1(new _.bj("setFullscreenQuickActions not defined",{playerApi:Object.keys(q),
isReady:q.isReady(),appState:q.getAppState()}))},Bhe=function(M,q){if(!M.playerOverlayVideoDetailsRendererContainer)if(q.setPlayerOverlayVideoDetailsRenderer){M.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
q.setPlayerOverlayVideoDetailsRenderer(M.playerOverlayVideoDetailsRendererContainer);var G=_.z_(M.playerOverlayVideoDetailsRendererContainer,function(){return _.W(XGM,{data:M.playerOverlayVideoDetailsRenderer})},"Rn");
M.addOnDisposeCallback(function(){q.setPlayerOverlayVideoDetailsRenderer(void 0);G()})}else _.j1(new _.bj("setPlayerOverlayVideoDetailsRenderer not defined",{playerApi:Object.keys(q),
isReady:q.isReady(),appState:q.getAppState()}))};_.Q9=function(M){_.uI.call(this);var q=this;this.JSC$23221_watchApi=M;this.JSC$23221_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;M=_.IQ(_.zw(),_.a2,function(G){q.onFullscreenChanged(G)});
this.addOnDisposeCallback(M);M=_.IQ(_.zw(),_.gy,function(G){q.onWatchScroll(G)});
this.addOnDisposeCallback(M);_.w("kevlar_watch_while_v2")&&(M=_.IQ(_.zw(),_.at,function(G){QlA(q,G)}),this.addOnDisposeCallback(M));
IeA(this);D3C(this);uG3();this.onWatchScroll(_.gy(_.zw().getState()));_.fX("START_IN_FULL_WINDOW_MODE")&&this.JSC$23221_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.l(_.Q9,_.uI);var IeA=function(M){M.JSC$23221_watchApi.registerActionHandler("yt-fullscreen-change-action",function(q){var G=M.JSC$23221_watchApi.isActive();q&&!G||_.zw().dispatch(_.RJ({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!q}}))});
M.addOnDisposeCallback(function(){M.JSC$23221_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},D3C=function(M){var q,G;
_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23221_watchApi.playerApi,2);q=K.yieldResult;G=function(){M.onFullerscreenEduClicked()};
q.addEventListener("onFullerscreenEduClicked",G);M.addOnDisposeCallback(function(){q.removeEventListener("onFullerscreenEduClicked",G)});
_.gL(K)})};
_.Q9.prototype.onFullscreenChanged=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return q.isFullscreen=!!_.m3(),K.yield(q.JSC$23221_watchApi.playerApi,2);G=K.yieldResult;q.JSC$23221_miniplayerActive||G.setFauxFullscreen(q.isFullscreen);if(M&&(q.JSC$23221_watchApi.focusOnPlayer(),!q.fullerscreenEduButtonShownThisPlayback)){q.fullerscreenEduButtonShownThisPlayback=!0;var n=_.d2("yt-fullerscreen-edu-button-shown-count")||0;_.AK("yt-fullerscreen-edu-button-shown-count",n+1,31536E3);
q.updateFullerscreenEduButtonSubtleModeState()}_.gL(K)})};
var QlA=function(M,q){var G;_.L(function(K){if(K.nextAddress==1)return M.JSC$23221_miniplayerActive=q,K.yield(M.JSC$23221_watchApi.playerApi,2);G=K.yieldResult;G.setFauxFullscreen(!M.JSC$23221_miniplayerActive&&M.isFullscreen);_.gL(K)})};
_.Q9.prototype.onWatchScroll=function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1)return _.w("external_fullscreen_with_edu")?n.yield(q.JSC$23221_watchApi.playerApi,2):n.return();G=n.yieldResult;K=M<=0;q.shouldShowFullerscreenEdu!==K&&(q.shouldShowFullerscreenEdu=K,G.updateFullerscreenEduButtonVisibility(!q.shouldShowFullerscreenEdu));_.gL(n)})};
_.Q9.prototype.onFullerscreenEduClicked=function(){this.JSC$23221_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var M=_.d2("yt-fullerscreen-edu-button-click-count")||0;_.AK("yt-fullerscreen-edu-button-click-count",M+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.Q9.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var M=this,q,G,K,n,E,p;return _.L(function(y){if(y.nextAddress==1)return q=_.d2("yt-fullerscreen-edu-button-click-count")||0,G=_.d2("yt-fullerscreen-edu-button-shown-count")||0,K=_.tL("external_fullscreen_button_click_threshold"),n=_.tL("external_fullscreen_button_shown_threshold"),E=q>=K||G>=n,y.yield(M.JSC$23221_watchApi.playerApi,2);p=y.yieldResult;p.updateFullerscreenEduButtonSubtleModeState(E);_.gL(y)})};
_.Q9.prototype.disposeInternal=function(){_.uI.prototype.disposeInternal.call(this);var M=_.m3();_.w("kevlar_exit_fullscreen_leaving_watch")&&M&&_.SP(M)};
var uG3=function(){if(_.w("web_watch_add_viewport_meta_tag")){var M=document.querySelector("meta[name=viewport]"),q=document.head;q&&!M&&(M=document.createElement("meta"),M.name="viewport",M.content="width=device-width, initial-scale=1.0, viewport-fit=cover",q.appendChild(M))}};_.ZYv=function(M){_.uI.call(this);var q=this;this.JSC$23224_watchApi=M;this.jobId=0;this.pendingRequestId=void 0;var G=this.JSC$23224_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JhW(q)});
this.addOnDisposeCallback(function(){q.JSC$23224_watchApi.unsubscribeByKey(G)});
JhW(this)};
_.l(_.ZYv,_.uI);var bYW=function(M){_.r8.cancelJob(M.jobId);M.pendingRequestId=void 0},JhW=function(M){bYW(M);
var q=OXC(M.JSC$23224_watchApi.getWatchNextResponse());if(q){var G=250,K,n=(K=_.C(q,_.BJP))==null?void 0:K.initialDelayMs;_.w("web_watch_updated_metadata_server_initial_delay")&&n&&(G=n);M.jobId=_.r8.addLowPriorityJob(function(){return M.fetchUpdatedMetadata(q)},G)}};
_.ZYv.prototype.fetchUpdatedMetadata=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J;return _.L(function(Z){switch(Z.nextAddress){case 1:q&&(K={continuation:q});if(!_.w("web_get_updated_metadata_fantasy_panel_continuation_params")){Z.jumpTo(2);break}n=_.AL().resolve(_.Ja);E="PAsports_fantasy";return Z.yield(n.isVisible(E,!0),3);case 3:Z.yieldResult&&(A=(y=(p=n).getUpdatePanelContinuationData)==null?void 0:(Y=y.call(p,E))==null?void 0:Y.updatePanelContinuationRequest)&&(K||(K={}),K.clientParams=
{panelContinuationParams:{panelContinuation:A}});case 2:v=_.AL().resolve(_.YU);if(!v)return _.T6(Error("Zo")),Z.return();h={};G.pendingRequestId=h;return Z.yield(_.Dt(v,M,K),4);case 4:t=Z.yieldResult;if(h!==G.pendingRequestId)return Z.return();g=(O=t)==null?void 0:(a=O.continuation)==null?void 0:a.timedContinuationData;((D=g)==null?0:D.continuation)&&((J=g)==null?0:J.timeoutMs)&&(G.jobId=_.r8.addLowPriorityJob(function(){return G.fetchUpdatedMetadata(M,g.continuation)},g.timeoutMs));
_.gL(Z)}})};
_.ZYv.prototype.disposeInternal=function(){_.uI.prototype.disposeInternal.call(this);bYW(this)};var U3G=_.U(function(M){var q=_.sq(function(){var K=M.data().videoId;if(M.active())K=_.Te(K),_.AL().resolve(_.vR).resolveCommand(K);else{var n=M.playerApi(),E=n.getAvailableAudioTracks(),p,y,Y=(p=M.sourceVideoConfig().audioTracks)==null?void 0:(y=p.find(function(A){return A.isDefaultForSource}))==null?void 0:y.id;
if(E=E.find(function(A){return A.getLanguageInfo().getId()===Y}))n.setAudioTrack(E,!0),n.setCompositeParam({activeVideoId:K}),M.setActiveSourceId(K)}}),G={};
return _.W("ytw-composite-source-video-overlay",{class:_.Hb("ytwCompositeSourceVideoOverlayHost",(G.ytwCompositeSourceVideoOverlayActive=M.active,G.ytwCompositeSourceVideoOverlayInteracting=M.interacting,G)),style:_.Kp({left:function(){var K;return((K=M.data().topLeftCornerX)!=null?K:0)*100+"%"},
top:function(){var K;return((K=M.data().topLeftCornerY)!=null?K:0)*100+"%"},
width:function(){var K;return((K=M.data().width)!=null?K:0)*100+"%"},
height:function(){var K;return((K=M.data().height)!=null?K:0)*100+"%"}}),
"on:click":q},_.W("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Sn");var x33=_.U(function(M){var q=_.k(_.GM(function(){var p,y=(p=M.data().sources)==null?void 0:p.find(function(Y){return Y.isActive});
if(y)return y.videoId})),G=q.next().value,K=q.next().value;
q=_.k(_.lQ(!1,void 0,"rmRJ8d"));var n=q.next().value,E=q.next().value;return _.W("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.sq(function(){E(!0)}),
"on:mouseout":_.sq(function(){E(!1)})},_.W(_.d,{cond:function(){return M.data().sources},
then:function(p){return _.W(_.bf,{each:p},function(y){return _.W(U3G,{data:y,active:function(){return y.videoId===G()},
setActiveSourceId:K,interacting:n,playerApi:M.playerApi,sourceVideoConfig:function(){return wML(M.compositeVideoConfig(),y.videoId)}})})}}))},"Tn");_.SUv=function(M){_.uI.call(this);this.JSC$23240_watchApi=M;M=_.k(_.lQ({},void 0,"RgF9Ae"));this.compositeVideoOverlayRenderer=M.next().value;this.setCompositeVideoOverlayRenderer=M.next().value;M=_.k(_.lQ({},void 0,"OlaJpc"));this.compositeVideoConfig=M.next().value;this.setCompositeVideoConfig=M.next().value;zSC(this);m3A(this)};
_.l(_.SUv,_.uI);var zSC=function(M){var q=M.JSC$23240_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){m3A(M)});
M.addOnDisposeCallback(function(){M.JSC$23240_watchApi.unsubscribeByKey(q)})},Th9=function(M){var q;
return _.L(function(G){if(G.nextAddress==1)return G.yield(M.JSC$23240_watchApi.playerApi,2);q=G.yieldResult;q.setCompositeVideoOverlayRendererComponent(M.container);_.gL(G)})},rhG=function(M){var q;
return _.L(function(G){if(G.nextAddress==1)return G.yield(M.JSC$23240_watchApi.playerApi,2);q=G.yieldResult;q.setCompositeVideoOverlayRendererComponent(void 0);_.gL(G)})},jlG=function(M){var q,G;
return _.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23240_watchApi.playerApi,2);q=K.yieldResult;M.container=document.createElement("div");G=_.z_(M.container,function(){return _.W(x33,{data:M.compositeVideoOverlayRenderer,compositeVideoConfig:M.compositeVideoConfig,playerApi:q})},"Un");
M.addOnDisposeCallback(G);_.gL(K)})},m3A=function(M){var q,G,K,n,E,p,y,Y;
_.L(function(A){return A.nextAddress==1?(q=M.JSC$23240_watchApi.getPlayerResponse(),E=_.C((G=q)==null?void 0:(K=G.overlay)==null?void 0:(n=K.playerControlsOverlayRenderer)==null?void 0:n.compositeVideoOverlay,dz9),Y=(p=q)==null?void 0:(y=p.playerConfig)==null?void 0:y.compositeVideoConfig,E&&M.setCompositeVideoOverlayRenderer(E),Y&&M.setCompositeVideoConfig(Y),E&&Y?M.container?A.jumpTo(6):A.yield(jlG(M),6):V4a(M)?A.yield(rhG(M),0):A.jumpTo(0)):V4a(M)?A.jumpTo(0):A.yield(Th9(M),0)})},V4a=function(M){var q;
return!((q=M.container)==null||!q.parentElement)};
_.SUv.prototype.disposeInternal=function(){V4a(this)&&rhG(this);_.uI.prototype.disposeInternal.call(this)};_.eSk=function(M){_.uI.call(this);var q=this;this.JSC$23246_watchApi=M;var G=this.JSC$23246_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var K=q.JSC$23246_watchApi.getPlayerResponse();if(K){var n,E;if(K=_.C((n=K.endscreen)==null?void 0:(E=n.endscreenRenderer)==null?void 0:E.hideButton,_.M1)){var p;(p=q.setEndscreenHideButton)==null||p.call(q,K);RSv(q)}}});
this.addOnDisposeCallback(function(){q.JSC$23246_watchApi.unsubscribeByKey(G)});
M=_.k(_.lQ({},void 0,"ER3tqb"));this.endscreenHideButton=M.next().value;this.setEndscreenHideButton=M.next().value;fe3(this);Foy(this);HYy(this)};
_.l(_.eSk,_.uI);
var RSv=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return M.creatorEndscreenHideButtonContainer?K.return():K.yield(M.JSC$23246_watchApi.playerApi,2);q=K.yieldResult;M.creatorEndscreenHideButtonContainer=document.createElement("div");_.GL(M.creatorEndscreenHideButtonContainer,!1);q.setCreatorEndscreenHideButton(M.creatorEndscreenHideButtonContainer);G=_.z_(M.creatorEndscreenHideButtonContainer,function(){return _.W(_.Dj,{data:M.endscreenHideButton,useOutlinedIcon:!0})},"Vn");
M.addOnDisposeCallback(function(){G();var n;(n=q)==null||n.setCreatorEndscreenHideButton(void 0)});
_.gL(K)})},fe3=function(M){var q,G;
_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23246_watchApi.playerApi,2);q=K.yieldResult;G=function(){M.creatorEndscreenHideButtonContainer&&_.GL(M.creatorEndscreenHideButtonContainer,!0)};
q.addEventListener("endscreenelementshown",G);M.addOnDisposeCallback(function(){var n;(n=q)==null||n.removeEventListener("endscreenelementshown",G)});
_.gL(K)})},Foy=function(M){var q=function(){M.creatorEndscreenHideButtonContainer&&_.GL(M.creatorEndscreenHideButtonContainer,!1)},G=M.JSC$23246_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",q),K=M.JSC$23246_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",q);
M.addOnDisposeCallback(function(){M.JSC$23246_watchApi.unsubscribeByKey(G);M.JSC$23246_watchApi.unsubscribeByKey(K)})},HYy=function(M){M.JSC$23246_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(q){var G=_.C(q,pRG);
M.JSC$23246_watchApi.playerApi.then(function(K){K==null||K.setCreatorEndscreenVisibility(!!G.hide)})});
M.addOnDisposeCallback(function(){M.JSC$23246_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.sfC=function(M){_.uI.call(this);this.JSC$23252_watchApi=M;$3y(this)};
_.l(_.sfC,_.uI);var $3y=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23252_watchApi.playerApi,2);q=K.yieldResult;G=function(n){_.zw().dispatch(_.RJ({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:n}}))};
q.addEventListener("onRetroModeChanged",G);M.addOnDisposeCallback(function(){q.removeEventListener("onRetroModeChanged",G)});
_.gL(K)})};var c3e=0,QP=0,BUW=0;var MPA;MPA=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.IL=function(M){_.uI.call(this);this.JSC$23257_watchApi=M;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;quk(this)};
_.l(_.IL,_.uI);
var quk=function(M){var q,G,K;_.L(function(n){if(n.nextAddress==1)return n.yield(M.JSC$23257_watchApi.playerApi,2);q=n.yieldResult;if(M.isDisposed())return n.return();M.sessionStorage=_.U$R("yt-sleep-timer");M.sessionStorage||_.j1(new _.bj("SessionStorage for Sleep Timer is undefined."));((G=M.sessionStorage)==null?void 0:G.get("yt-sleep-timer"))==="true"&&(D$W(),(K=M.sessionStorage)==null||K.remove("yt-sleep-timer"),q.syncVolume());Gta(M,q);K3M(M,q);nDk(M,q);_.gL(n)})},Gta=function(M,q){var G=function(A){M.onSleepTimerSettingsChanged(A,
q)},K=function(A){M.onPlayerStateChange(A,q)},n=function(){M.onLoopChange(q)},E=function(){M.onCloseMiniplayer(q)},p=function(){iXL(q,(0,_.d8)(),u1W(q),M.selectedOption==="End of video",q.getPlayerState()!==1)},y=function(){M.onSeekComplete(q)},Y=function(){_.r8.cancelJob(QP);
var A=q.getCurrentTime()>=q.getDuration(),v=M.selectedOption==="End of video"||M.selectedOption==="End of playlist"&&!lkC(M.playlistId);A&&v&&EDk(M,q)};
q.addEventListener("onSleepTimerSettingsChanged",G);q.addEventListener("onLoopChange",n);q.addEventListener("onLoopRangeChange",n);q.addEventListener("onStateChange",K);q.addEventListener("onCloseMiniplayer",E);q.addEventListener("onSleepTimerFeatureAvailable",p);q.addEventListener("SEEK_COMPLETE",y);q.addEventListener("onAdStart",Y);M.addOnDisposeCallback(function(){q.removeEventListener("onSleepTimerSettingsChanged",G);q.removeEventListener("onLoopChange",n);q.removeEventListener("onLoopRangeChange",
n);q.removeEventListener("onStateChange",K);q.removeEventListener("onCloseMiniplayer",E);q.removeEventListener("onSleepTimerFeatureAvailable",p);q.removeEventListener("SEEK_COMPLETE",y);q.removeEventListener("onAdStart",Y)})},K3M=function(M,q){var G=M.JSC$23257_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var K=q.getVideoData().video_id,n,E=(n=akW(M.JSC$23257_watchApi))==null?void 0:n.playlistId;
M.pauseAutonavPlayback&&(q.pauseVideo(),q.syncVolume(),M.pauseAutonavPlayback=!1);if(M.selectedOption==="End of video"&&K!==M.videoId)Dm(M,q);else{if(M.selectedOption==="End of playlist"){n=lkC(M.playlistId);if(E!==M.playlistId){Dm(M,q);break a}n?n&&NtG(M,q):ktM(M,q)}M.videoId=K;M.playlistId=E}}});
M.addOnDisposeCallback(function(){M.JSC$23257_watchApi.unsubscribeByKey(G)})},nDk=function(M,q){var G=_.AL().resolve(_.xy),K=_.IQ(G,_.Ij4,function(E){E&&M.selectedOption!=="Off"&&Dm(M,q)}),n=M.JSC$23257_watchApi.subscribeToActiveChanged(function(E){var p,y;
return _.L(function(Y){if(Y.nextAddress==1)return Y.yield(_.Bg().navigationFinishPromise,2);p=!_.$iS();y=_.AL().resolve(_.lq).isMiniplayerActive();E||!CfC(M.selectedOption)||y||p||Dm(M,q);_.gL(Y)})},!1);
G=_.IQ(G,function(E){return E.entities.playlistLoopStateEntity||{}},function(E){E=E===void 0?{}:E;
var p=o2k(M.JSC$23257_watchApi);if(p){var y;((y=E[p])==null?void 0:y.state)==="PLAYLIST_LOOP_STATE_ALL"&&CfC(M.selectedOption)&&Dm(M,q)}});
M.addOnDisposeCallback(K);M.addOnDisposeCallback(G);M.addOnDisposeCallback(n)};
_.IL.prototype.onSleepTimerSettingsChanged=function(M,q){switch(M){case "Off":this.selectedOption!=="Off"&&Dm(this,q);break;case "End of video":case "End of playlist":pF9(this,M,q);break;default:pF9(this,M,q,MPA.get(M))}};
_.IL.prototype.onLoopChange=function(M){(M.getLoopVideo()||M.getLoopRange())&&CfC(this.selectedOption)&&Dm(this,M)};
_.IL.prototype.onCloseMiniplayer=function(M){CfC(this.selectedOption)&&Dm(this,M)};
var pF9=function(M,q,G,K){yl9(M,G);M.selectedOption=q;M.videoId=G.getVideoData().video_id;M.playlistId="";var n;(n=M.sessionStorage)==null||n.set("yt-sleep-timer","true");M.adjustmentsCount++;iXL(G,(0,_.d8)(),u1W(G),M.selectedOption==="End of video");if(M.selectedOption==="End of video")ktM(M,G),L3y(M,G);else if(M.selectedOption==="End of playlist"){L3y(M,G);var E,p;M.playlistId=(p=(E=akW(M.JSC$23257_watchApi))==null?void 0:E.playlistId)!=null?p:"";lkC(M.playlistId)||ktM(M,G)}else K&&(M.presetFadeSchedulerId=
_.WO(_.r8,function(){Q93(G,15E3)},K-15E3),M.presetPauseSchedulerId=_.WO(_.r8,function(){EDk(M,G)},K),g2k(G,(0,_.d8)(),K))},EDk=function(M,q){if(M.JSC$23257_watchApi.isActive()){var G={dismissDialogEndpoint:{}};
var K={commandExecutorCommand:{commands:[G,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};G={buttonViewModel:{title:_.Ge("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:G}}};K={buttonViewModel:{title:_.Ge("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:K}}};var n={dialogHeaderViewModel:{headline:{content:_.Ge("SLEEP_TIMER_ENDED_TITLE")}}},
E={basicContentViewModel:{paragraphs:[{text:{content:_.Ge("SLEEP_TIMER_ENDED_TEXT")}}]}};G={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:n,content:E,footer:{panelFooterViewModel:{primaryButton:G,secondaryButton:K,shouldHideDivider:!0}}}}}}};_.AL().resolve(_.vR).resolveCommand(G,{form:{element:M}})}else D$W();Yue(M,!1);W3t(M,q);q.pauseVideo();_.Yx.getInstance().getState()===2&&q.getPlayerState()===5&&(M.pauseAutonavPlayback=!0)},Dm=function(M,q){Yue(M,!0);
W3t(M,q);D$W()},W3t=function(M,q){yl9(M,q);
M.selectedOption="Off";M.videoId="";M.playlistId="";M.adjustmentsCount=0;var G;(G=M.sessionStorage)==null||G.remove("yt-sleep-timer");_.r8.cancelJob(c3e);q.resetSleepTimerMenuSettings()},Yue=function(M,q){q={timer_length_adjustment_times_during_session:M.adjustmentsCount-1,
is_session_cancelled:q};switch(M.selectedOption){case "Off":q.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":q.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":q.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:q.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",q.option_duration_in_minutes=MPA.get(M.selectedOption)/6E4}_.ml("sleepTimerSessionFinishEvent",q)};
_.IL.prototype.onPlayerStateChange=function(M,q){M===1?iXL(q,(0,_.d8)(),u1W(q),this.selectedOption==="End of video"):M===0?(_.r8.cancelJob(QP),q.setVideoTimeLeft(PfC(0,0))):M===2&&_.r8.cancelJob(QP);this.selectedOption==="End of video"?M===0?EDk(this,q):M===2&&IkC(q):this.selectedOption!=="End of playlist"||lkC(this.playlistId)||(M===0?EDk(this,q):M===2&&IkC(q))};
_.IL.prototype.onSeekComplete=function(M){M.getPlayerState()===2&&iXL(M,(0,_.d8)(),u1W(M),this.selectedOption==="End of video",!0)};
_.IL.prototype.onCueRangeEnter=function(M,q){M==="sleep-timer-fade-audio"&&Q93(q,(q.getDuration()-q.getProgressState().current)*1E3)};
_.IL.prototype.onCueRangeExit=function(M,q){M==="sleep-timer-fade-audio"&&q.getPlayerState()!==0&&IkC(q,!0)};
var ktM=function(M,q){q.addCueRange("sleep-timer-fade-audio",q.getDuration()-15,q.getDuration());q.addEventListener("onCueRangeEnter",function(G){M.onCueRangeEnter(G,q)});
q.addEventListener("onCueRangeExit",function(G){M.onCueRangeExit(G,q)})},NtG=function(M,q){q.removeCueRange("sleep-timer-fade-audio");
q.removeEventListener("onCueRangeEnter",function(G){M.onCueRangeEnter(G,q)});
q.removeEventListener("onCueRangeExit",function(G){M.onCueRangeExit(G,q)})},yl9=function(M,q){CfC(M.selectedOption)?NtG(M,q):(_.r8.cancelJob(M.presetPauseSchedulerId),_.r8.cancelJob(M.presetFadeSchedulerId),M.presetPauseSchedulerId=0,M.presetFadeSchedulerId=0);
IkC(q,!0)},L3y=function(M,q){q.setLoop(!1);
q.setLoopVideo(!1);q.setLoopRange(null);(M=o2k(M.JSC$23257_watchApi))&&_.AL().resolve(_.xy).dispatch(_.LL("playlistLoopStateEntity",M,{key:M,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.hzk=function(M){_.uI.call(this);var q=this;this.JSC$23260_watchApi=M;Alt(this);dht(this);vDC(this);var G=this.JSC$23260_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){_.tL("theater_mode_cookie_max_age_seconds",-1)!==-1&&_.Iu.get("wide",void 0)==="1"&&_.Df("wide","1",_.tL("theater_mode_cookie_max_age_seconds",-1))});
this.addOnDisposeCallback(function(){q.JSC$23260_watchApi.unsubscribeByKey(G)});
M=M.getRoot();if(M.is==="ytd-watch-flexy"||M.is==="ytd-watch-grid")M.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.jYC();_.w("web_watch_log_theater_mode_cookie_state")&&_.Iu.get("wide","0")==="1"&&_.BDY("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.l(_.hzk,_.uI);var Alt=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23260_watchApi.playerApi,2);q=K.yieldResult;G=function(n){tPM(M,!!n)};
q.addEventListener("SIZE_CLICKED",G);M.addOnDisposeCallback(function(){q.removeEventListener("SIZE_CLICKED",G)});
_.gL(K)})},dht=function(M){M.JSC$23260_watchApi.registerActionHandler("yt-toggle-theater-mode",function(q,G){tPM(M,q,G===void 0?!0:G)});
M.addOnDisposeCallback(function(){M.JSC$23260_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.hzk.prototype.getState=function(){return _.Cp(_.zw().getState())};
var tPM=function(M,q,G){G=G===void 0?!0:G;var K,n,E,p=_.w("enable_player_resize_transition")&&!!M.JSC$23260_watchApi.getWatchNextResponse()&&!((K=M.JSC$23260_watchApi.getWatchNextResponse())==null?0:(n=K.contents)==null?0:(E=n.twoColumnWatchNextResults)==null?0:E.conversationBar);_.drw(function(){_.zw().dispatch(_.RJ({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:q}}));_.w("theater_mode_scroll_to_top_killswitch")||M.JSC$23260_watchApi.scrollWatchTo(0,!1);_.m3()&&_.w("external_fullscreen")&&_.SP(document.documentElement);
vDC(M);G&&_.Df("wide",q?"1":"0",_.tL("theater_mode_cookie_max_age_seconds",-1));_.VW(M.JSC$23260_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);M.JSC$23260_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:q});q&&_.jYC()},{shouldWrap:p})},vDC=function(M){var q;
_.L(function(G){if(G.nextAddress==1)return G.yield(M.JSC$23260_watchApi.playerApi,2);q=G.yieldResult;q.setSizeStyle(!0,M.getState());_.gL(G)})};var CG3=function(M){_.uI.call(this);var q=this;this.playerApi=M;this.timeToPanelSyncKeyMap={};var G;if(M==null?0:(G=M.isReady)==null?0:G.call(M)){G=_.IQ(_.AL().resolve(_.xy),function(n){return n.entities.timedMarkersListSyncEntity||{}},function(n,E){n=n===void 0?{}:n;
E=E===void 0?{}:E;for(var p=_.k(Object.keys(E)),y=p.next();!y.done;y=p.next())y=y.value,n[y]!==E[y]&&Ox3(q,E[y]);E=_.k(Object.keys(n));for(p=E.next();!p.done;p=E.next())p=p.value,y=n[p],q.timeToPanelSyncKeyMap[p]&&wFt(q,y)});
this.addOnDisposeCallback(G);var K=function(n){q.onCueRangeEnter(n)};
M.addEventListener("onCueRangeEnter",K);this.addOnDisposeCallback(function(){var n;(n=M.removeEventListener)==null||n.call(M,"onCueRangeEnter",K)})}};
_.l(CG3,_.uI);
var wFt=function(M,q){var G,K;if((G=M.playerApi)==null?0:(K=G.isReady)==null?0:K.call(G)){var n;if((G=q==null?void 0:(n=q.timedListData)==null?void 0:n.sections)&&q!=null&&q.key)for(n=_.k(G),G=n.next();!G.done;G=n.next())if(G=G.value,G.timedSyncDataList&&G.sectionId)for(K=0;K<G.timedSyncDataList.length;K++){var E=G.timedSyncDataList[K];E.syncItemId&&M.playerApi.addCueRange(G.sectionId+"_"+q.key+"_"+E.syncItemId,Number(E.videoTimeMs)/1E3,K===G.timedSyncDataList.length-1?0x8000000000000:Number(G.timedSyncDataList[K+
1].videoTimeMs)/1E3)}}},Ox3=function(M,q){var G,K;
if((G=M.playerApi)==null?0:(K=G.isReady)==null?0:K.call(G)){var n;if((G=q==null?void 0:(n=q.timedListData)==null?void 0:n.sections)&&q!=null&&q.key)for(n=_.k(G),G=n.next();!G.done;G=n.next())if(G=G.value,G.timedSyncDataList&&G.sectionId){K=_.k(G.timedSyncDataList);for(var E=K.next();!E.done;E=K.next())E=E.value,E.syncItemId&&M.playerApi.removeCueRange(G.sectionId+"_"+q.key+"_"+E.syncItemId)}}};
CG3.prototype.onCueRangeEnter=function(M){for(var q=_.k(Object.keys(this.timeToPanelSyncKeyMap)),G=q.next();!G.done;G=q.next()){G=G.value;var K=_.k(M.split("_"+G+"_")),n=K.next().value;K=K.next().value;if(n&&K){M=_.AL().resolve(_.xy);q=this.timeToPanelSyncKeyMap[G];var E=_.h$y(M.getState(),q);G=aay(G,n,K);if(G===-1)break;G={activeSyncId:K,activeItemIndex:G,activeSectionInfo:{sectionIdentifier:n}};E?M.dispatch(_.hY("markersEngagementPanelSyncEntity",q,G)):M.dispatch(_.LL("markersEngagementPanelSyncEntity",
q,Object.assign({},{key:q},G)));break}}};
var aay=function(M,q,G){var K=_.AL().resolve(_.xy),n,E;M=(n=bWt(K.getState(),M))==null?void 0:(E=n.timedListData)==null?void 0:E.sections;if(!M)return-1;n=0;E=_.k(M);for(M=E.next();!M.done;M=E.next()){M=M.value;K=M.timedSyncDataList||[];if(M.sectionId===q)return q=K.findIndex(function(p){return p.syncItemId===G}),q===-1?q:n+q;
n+=K.length}return-1};_.XFG=function(M){_.uI.call(this);var q=this;this.JSC$23273_watchApi=M;this.unresolvedCommands=[];this.JSC$23273_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(G){oD3(q,G)});
this.addOnDisposeCallback(function(){q.JSC$23273_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
laL(this)};
_.l(_.XFG,_.uI);var laL=function(M){var q;_.L(function(G){if(G.nextAddress==1)return G.yield(M.JSC$23273_watchApi.playerApi,2);q=G.yieldResult;if(M.isDisposed())return G.return();M.timedSyncObserver=new CG3(q);M.unresolvedCommands.length&&(M.unresolvedCommands.forEach(function(K){return oD3(M,K)}),M.unresolvedCommands=[]);
_.oE(M,M.timedSyncObserver);_.gL(G)})},oD3=function(M,q){if(M.timedSyncObserver){var G=_.C(q,L8C);
if(G&&G.timedSyncEntityKey&&G.panelSyncEntityKey){M=M.timedSyncObserver;q=G.timedSyncEntityKey;var K=G.panelSyncEntityKey;G=!!G.isEnabled;G=G===void 0?!0:G;var n=_.AL().resolve(_.xy);n=bWt(n.getState(),q);G?M.timeToPanelSyncKeyMap[q]||(M.timeToPanelSyncKeyMap[q]=K,wFt(M,n)):(delete M.timeToPanelSyncKeyMap[q],Ox3(M,n))}}else M.unresolvedCommands.push(q)};var PGy=_.U(function(M){var q=M.data,G=M.maybeLogSmartSkipClientData,K=null,n=null,E=_.w("web_enable_auto_focus_for_timely_action_button"),p=function(){K=document.activeElement},y=function(){q().smartSkipMetadata&&(K=document.activeElement,_.YLk(function(){return n}))},Y=function(v){if(q().smartSkipMetadata&&(!v||v.key!=="Enter")){K&&K.isConnected&&(_.YLk(function(){return K}),K=null);
var h;(h=n)==null||h.blur()}};
M=_.sq(function(){G==null||G(!0,q());return!1});
var A=_.bm(_.CL(function(){return q().rendererContext},{onTap:function(v,h){h({disableClickTracking:!0})}}),_.d_({visibilityCallback:function(v){if(E)v?n&&q().smartSkipMetadata&&(y(),document.addEventListener("focusin",p)):(document.removeEventListener("focusin",p),Y());
else if(v){v=_.O0(q().rendererContext);var h=Number(q().maxVisibleDurationMilliseconds),t,O=(t=_.C(q().rendererContext,_.NQ))==null?void 0:t.label;v&&h&&O&&(t={label:O,command:v,durationMs:h},_.AL().resolve(_.sJ).enqueue(t))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}));_.mT(function(){if(E){var v;if((n=(v=A.value)==null?void 0:v.querySelector("button"))&&q().smartSkipMetadata){var h;(h=A.value)==null||h.addEventListener("keydown",Y)}}});
_.m_(function(){E&&(n&&q().smartSkipMetadata&&n.removeEventListener("keydown",Y),document.removeEventListener("focusin",p),Y())});
return _.W("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:A,"on:click":M},_.W(_.yu,{data:function(){return q().content}},{buttonViewModel:_.Wf}))},"Xn");var ixW=_.U(function(M){var q=M.data,G=M.playerApi,K=_.AL().resolve(_.LKR);M=_.k(_.GM(function(){q()}));
var n=M.next().value,E=M.next().value,p=function(){return bXG(q(),n())},y=function(A,v){var h,t,O=(h=_.C(v==null?void 0:v.rendererContext,_.EE))==null?void 0:(t=h.loggingDirectives)==null?void 0:t.trackingParams;
if((v=v==null?void 0:v.smartSkipMetadata)&&v.loggingData&&(t=v.loggingData,v=t.algorithmId,h=t.startMilliseconds,t=t.endMilliseconds,v&&h!==void 0&&t!==void 0)){var a,g;A={smartSkipData:Object.assign({},{versionName:v,startMediaTimeMs:h,endMediaTimeMs:t},A&&{userInteractionMediaTimeMs:(Math.floor(((a=_.TM())==null?void 0:(g=a.getPlayer())==null?void 0:g.getCurrentTime())||0)*1E3).toString()})};a=_.Cx();var D;O&&(D=_.yx(O));a&&D&&_.Ul(a,D,A)}},Y=function(A,v){var h=bXG(q(),A);
if(h){var t=_.C(h,ZXe),O;if(O=v)O=G(),h=_.C(h,ZXe),O=h!=null&&h.smartSkipMetadata?!(O==null?0:O.isSameMarkerTypeVisible((h==null?void 0:h.smartSkipMetadata.markerKey)||"")):!0;if(O){var a,g;(t==null?0:(a=t.smartSkipMetadata)==null?0:(g=a.loggingData)==null?0:g.isCounterfactual)||(y(!1,t),E(A))}else v||n()!==A||E(void 0)}};
_.zL(function(){var A=q().timelyActions;if(A){A=_.k(A);for(var v=A.next();!v.done;v=A.next()){v=_.C(v.value,ZXe);var h=void 0;(h=v)!=null&&h.cueRangeId&&K.timelyActionsMap.set(v.cueRangeId,Y)}_.m_(function(){K.timelyActionsMap.clear()})}},"l2RtC");
return _.W("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.W(_.yu,{data:p},{timelyActionViewModel:function(A){return _.W(PGy,{data:A.data,maybeLogSmartSkipClientData:function(){y(!0,_.C(p(),ZXe))}})}}))},"Zn");_.gDy=function(M){_.uI.call(this);this.JSC$23285_watchApi=M;M=_.k(_.lQ({},void 0,"UN7k5e"));this.timelyActionsOverlay=M.next().value;this.setTimelyActionsOverlay=M.next().value;clk(this)};
_.l(_.gDy,_.uI);var clk=function(M){var q,G,K,n;_.L(function(E){if(E.nextAddress==1)return Bta(M),QfC(M),M.timelyActionsContainer=document.createElement("div"),E.yield(M.JSC$23285_watchApi.playerApi,2);q=E.yieldResult;(K=(G=q).insertTimelyActionUi)==null||K.call(G,M.timelyActionsContainer);n=_.z_(M.timelyActionsContainer,function(){return _.W(ixW,{data:M.timelyActionsOverlay,playerApi:q})},"$n");
M.addOnDisposeCallback(n);_.gL(E)})},QfC=function(M){var q=M.JSC$23285_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Bta(M)});
M.addOnDisposeCallback(function(){M.JSC$23285_watchApi.unsubscribeByKey(q)})},Bta=function(M){var q=M.JSC$23285_watchApi.getWatchNextResponse();
if(q){var G,K;if(q=_.C((G=q.playerOverlays)==null?void 0:(K=G.playerOverlayRenderer)==null?void 0:K.timelyActionsOverlayViewModel,YxW)){var n;(n=M.setTimelyActionsOverlay)==null||n.call(M,q)}}};_.Dhy=function(M){_.uI.call(this);this.JSC$23289_watchApi=M;IaC(this)};
_.l(_.Dhy,_.uI);var IaC=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23289_watchApi.playerApi,2);q=K.yieldResult;G=function(n){_.$A.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.C(n,_.YKk)},popupType:"TOAST"}})};
q.addEventListener("onYtShowToast",G);M.addOnDisposeCallback(function(){q.removeEventListener("onYtShowToast",G)});
_.gL(K)})};var uHG,bxL,Suy,Jlv,Zxk,mhA,xh3,zz9,Tt9,jfA;uHG=!1;_.Uhk=function(M){_.uI.call(this);this.JSC$23292_watchApi=M;this.fullscreen=this.theater=!1;Jlv(this);Zxk(this);bxL(this)};
_.l(_.Uhk,_.uI);bxL=function(M){var q,G,K;_.L(function(n){if(n.nextAddress==1)return n.yield(M.JSC$23292_watchApi.playerApi,2);q=n.yieldResult;if(M.isDisposed())return n.return();G=M.JSC$23292_watchApi.getElement("CINEMATICS");if(!G)return n.return();M.JSC$23292_cinematicController=new _.tF(G,q);_.oE(M,M.JSC$23292_cinematicController);_.uDy(M.JSC$23292_cinematicController);xh3(M,_.sXe());K=M.JSC$23292_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(E){zz9(M,E)});
M.addOnDisposeCallback(function(){M.JSC$23292_watchApi.unsubscribeByKey(K)});
mhA(M);zz9(M,M.JSC$23292_cinematicController.isAllowed());Suy(M);Tt9(M);_.gL(n)})};
Suy=function(M){M.fullscreen=_.a2(_.zw().getState());M.theater=_.Cp(_.zw().getState());_.rlC(M,M.fullscreen,M.theater);var q=_.IQ(_.zw(),_.a2,function(K){M.fullscreen=K;_.rlC(M,M.fullscreen,M.theater)}),G=_.IQ(_.zw(),_.Cp,function(K){M.theater=K;
_.rlC(M,M.fullscreen,M.theater)});
M.addOnDisposeCallback(q);M.addOnDisposeCallback(G)};
Jlv=function(M){var q=M.JSC$23292_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){mhA(M)});
M.addOnDisposeCallback(function(){M.JSC$23292_watchApi.unsubscribeByKey(q)})};
Zxk=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23292_watchApi.playerApi,2);q=K.yieldResult;G=function(n){xh3(M,n)};
q.addEventListener("cinematicSettingsToggleChange",G);M.addOnDisposeCallback(function(){q.removeEventListener("cinematicSettingsToggleChange",G)});
_.gL(K)})};
mhA=function(M){var q=M.JSC$23292_watchApi.getWatchNextResponse(),G;q=_.C(q==null?void 0:(G=q.pageVisualEffects)==null?void 0:G[0],_.$i);var K;(K=M.JSC$23292_cinematicController)==null||_.ZS3(K,q)};
xh3=function(M,q){var G;(G=M.JSC$23292_cinematicController)==null||_.Juy(G,q);jfA(M)};
zz9=function(M,q){var G;_.L(function(K){if(K.nextAddress==1)return _.w("kevlar_watch_cinematics_invisible")&&(q=!1),K.yield(M.JSC$23292_watchApi.playerApi,2);G=K.yieldResult;G.updateCinematicSettings(q);jfA(M);_.gL(K)})};
Tt9=function(M){var q=_.El();if(_.w("kevlar_measure_ambient_mode_idle")&&!q.getFlag(192)&&!uHG){uHG=!0;var G=_.Jp(_.r8,function(){_.AL().resolve(_.ZXv).start(1E4)},5E3);
M.addOnDisposeCallback(function(){_.r8.cancelJob(G);_.AL().resolve(_.ZXv).stop()})}};
_.rlC=function(M,q,G){M.fullscreen=q;M.theater=G;var K;(K=M.JSC$23292_cinematicController)==null||K.setFullscreen(M.fullscreen,M.theater);if(_.w("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(M.theater||M.fullscreen){var n;(n=M.JSC$23292_cinematicController)==null||_.bSL(n)}else if((M=M.JSC$23292_cinematicController)!=null){var E;(E=M.currentCinematicEffect)==null||E.pause()}};
jfA=function(M){if(_.w("web_cinematic_theater_mode")||_.w("web_cinematic_fullscreen")){var q;M.JSC$23292_watchApi.getRoot().toggleCinematicsActive(!((q=M.JSC$23292_cinematicController)==null||!q.isEnabled()))}};_.F33=function(M){_.uI.call(this);var q=this;this.JSC$23295_watchApi=M;this.commentsReady=!1;this.setCommentsJobId=0;M=_.IQ(_.zw(),_.gy,function(){VPM(q)});
this.addOnDisposeCallback(M);var G=this.JSC$23295_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){RzA(q)}),K=this.JSC$23295_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){RzA(q)});
this.addOnDisposeCallback(function(){q.JSC$23295_watchApi.unsubscribeByKey(G);q.JSC$23295_watchApi.unsubscribeByKey(K)});
var n=function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&fa9(q,"false")};
this.JSC$23295_watchApi.getRoot().addEventListener("yt-page-data-will-update",n);this.addOnDisposeCallback(function(){q.JSC$23295_watchApi.getRoot().removeEventListener("yt-page-data-will-update",n)});
RzA(this)};
_.l(_.F33,_.uI);var RzA=function(M){M.commentsReady=!1;_.r8.cancelJob(M.setCommentsJobId);M.setCommentsJobId=_.Jp(_.r8,function(){VPM(M)},1E3)},VPM=function(M){if(!M.commentsReady){_.oJ("cmi");
_.r8.cancelJob(M.setCommentsJobId);var q,G,K,n,E=(q=M.JSC$23295_watchApi.getWatchNextResponse())==null?void 0:(G=q.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(n=K.results)==null?void 0:n.results.contents;q=void 0;if(E&&E.length)for(E=_.k(E),G=E.next();!G.done;G=E.next())if(G=G.value,n=K=void 0,((K=G)==null?void 0:(n=K.itemSectionRenderer)==null?void 0:n.sectionIdentifier)==="comment-item-section"){_.w("web_watch_provide_undefined_comments")?q=G.itemSectionRenderer:M.JSC$23295_watchApi.provideRenderingData("COMMENTS",
G.itemSectionRenderer);fa9(M,"true");break}_.w("web_watch_provide_undefined_comments")&&M.JSC$23295_watchApi.provideRenderingData("COMMENTS",q);M.commentsReady=!0;M.JSC$23295_watchApi.dispatchEvent("yt-watch-comments-ready")}},fa9=function(M,q){var G;
(G=M.JSC$23295_watchApi.getElement("COMMENTS"))==null||G.setAttribute("canScheduleJobs",q)};_.MEA=function(M){_.uI.call(this);var q=this;this.JSC$23298_watchApi=M;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.w("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.w("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.w("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.tL("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)HxW(this);
else{var G=this.JSC$23298_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ezA(q);ue(q)}),K=this.JSC$23298_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){JH(q);
ue(q)});
this.JSC$23298_watchApi.getRoot().is==="ytd-watch-grid"&&_.w("swatcheroo_pbs_load_grid")&&($he(this),sJe(this));this.addOnDisposeCallback(function(){q.JSC$23298_watchApi.unsubscribeByKey(G);q.JSC$23298_watchApi.unsubscribeByKey(K);_.r8.cancelJob(q.provideRichGridJobId)});
ezA(this);JH(this)}};
_.l(_.MEA,_.uI);var HxW=function(M){var q=M.JSC$23298_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){M.providePlayerJobId=_.MK(_.r8,function(){ezA(M);ue(M)},M.provideAllDataDelayMs)}),G=M.JSC$23298_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){M.provideWatchNextJobId=_.MK(_.r8,function(){JH(M);
ue(M)},M.provideAllDataDelayMs)}),K=M.JSC$23298_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){M.provideWatchNextJobId=_.MK(_.r8,function(){JH(M);
ue(M)},M.provideAllDataDelayMs)});
M.JSC$23298_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Jp(_.r8,function(){ezA(M);JH(M);ue(M)},100)});
M.JSC$23298_watchApi.addPageDisposeJob(function(){_.r8.cancelJob(M.provideWatchNextJobId);_.r8.cancelJob(M.providePlayerJobId)});
M.addOnDisposeCallback(function(){M.JSC$23298_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");M.JSC$23298_watchApi.unsubscribeByKey(q);M.JSC$23298_watchApi.unsubscribeByKey(G);M.JSC$23298_watchApi.unsubscribeByKey(K);_.r8.cancelJob(M.providePlayerJobId);_.r8.cancelJob(M.provideWatchNextJobId)});
ezA(M);JH(M)},ezA=function(M){var q=M.JSC$23298_watchApi.getPlayerResponse(),G,K,n=(K=q==null?void 0:(G=q.playabilityStatus)==null?void 0:G.messageRenderers)!=null?K:[],E,p;
q=(p=q==null?void 0:(E=q.playabilityStatus)==null?void 0:E.messages)!=null?p:[];E=_.k(q);for(p=E.next();!p.done;p=E.next())n.push({alertRenderer:{text:_.bc(p.value),type:"WARNING"}});M.JSC$23298_watchApi.provideRenderingData("ALERTS",n)},JH=function(M){var q=[],G,K,n,E=M.JSC$23298_watchApi.getWatchNextResponse(),p,y,Y,A,v=E==null?void 0:(p=E.contents)==null?void 0:(y=p.twoColumnWatchNextResults)==null?void 0:(Y=y.results)==null?void 0:(A=Y.results)==null?void 0:A.contents;
if(v)for(p=_.k(v),y=p.next();!y.done;y=p.next())if(y=y.value,y.videoPrimaryInfoRenderer)var h=y;else if(y.videoSecondaryInfoRenderer){var t=y;A=Y=void 0;y=Object.assign({},(Y=y.videoSecondaryInfoRenderer)==null?void 0:(A=Y.metadataRowContainer)==null?void 0:A.metadataRowContainerRenderer);if(y.rows&&y.collapsedItemCount!==void 0){y.rows=y.rows.slice(0,y.collapsedItemCount).filter(function(Gs){return!!Gs.richMetadataRowRenderer});
y.collapsedItemCount=y.rows.length;var O={metadataRowContainerRenderer:y}}}else if(y.merchandiseShelfRenderer)var a=y;else if(y.ticketShelfRenderer)var g=y;else if(y.expandableMetadataRenderer)var D=y;else if(y.itemSectionRenderer)if(Y=y.itemSectionRenderer.contents,A=void 0,M.directlyProvideComments&&((A=y.itemSectionRenderer)==null?void 0:A.sectionIdentifier)==="comment-item-section")_.oJ("cmi"),M.JSC$23298_watchApi.provideRenderingData("COMMENTS",y.itemSectionRenderer);else if(Y)for(y=_.k(Y),Y=
y.next();!Y.done;Y=y.next())if(Y=Y.value,Y.commentsEntryPointHeaderRenderer)var J=Y;else if(Y.clarificationRenderer||Y.infoPanelContainerRenderer||Y.infoPanelContentRenderer||Y.emergencyOneboxRenderer){q.push(Y);var Z=Z||!!t}else Y.limitedStateMessageRenderer?K=Y:Y.videoMetadataCarouselViewModel&&(n=Y);if(_.w("web_watch_merch_in_sd_when_ticket_shelf_present")&&a&&g){var V=a;a=void 0}if(M.provideWatchNextSecondaryResults){var S,m,R;M.JSC$23298_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
E==null?void 0:(S=E.contents)==null?void 0:(m=S.twoColumnWatchNextResults)==null?void 0:(R=m.secondaryResults)==null?void 0:R.secondaryResults)}if(M.JSC$23298_watchApi.getRoot().is==="ytd-watch-grid"){var se,yY;M.JSC$23298_watchApi.provideRenderingData("LIVE_CHAT",E==null?void 0:(se=E.contents)==null?void 0:(yY=se.twoColumnWatchNextResults)==null?void 0:yY.conversationBar)}var d$,cy,t4,ay;(S=E==null?void 0:(d$=E.contents)==null?void 0:(cy=d$.twoColumnWatchNextResults)==null?void 0:(t4=cy.secondaryResults)==
null?void 0:(ay=t4.secondaryResults)==null?void 0:ay.offerModule)&&(S.donationShelfRenderer||S.donationUnavailableRenderer)&&M.JSC$23298_watchApi.getRoot().is!=="ytd-watch-grid"&&(G=S);d$=M.JSC$23298_watchApi.getPlayerResponse();if(!d$||!_.zAs(d$.playabilityStatus,E==null?void 0:E.playerOverlays)){var bH;if(E==null?0:(bH=E.contents)==null?0:bH.singleColumnWatchNextResults){var iH,oI;var r9=E==null?void 0:(iH=E.contents.singleColumnWatchNextResults.results)==null?void 0:(oI=iH.results)==null?void 0:
oI.contents}else{var X2,EM,LP,Pv;bH=!!(v==null?0:(X2=v[0])==null?0:(EM=X2.itemSectionRenderer)==null?0:(LP=EM.contents)==null?0:(Pv=LP[0])==null?0:Pv.backgroundPromoRenderer);var g9,a8;X2=!!(E==null?0:(g9=E.contents)==null?0:(a8=g9.twoColumnWatchNextResults)==null?0:a8.secondaryResults);bH&&!X2&&(r9=v)}}v=q[0];g9=q[1];Z&&q.length===1&&(g9=v,v=void 0);M.JSC$23298_watchApi.provideRenderingData("PRIMARY_INFO",h);M.JSC$23298_watchApi.provideRenderingData("SECONDARY_INFO",t);M.JSC$23298_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
J);M.JSC$23298_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",n);M.JSC$23298_watchApi.provideRenderingData("CLARIFICATION",v);M.JSC$23298_watchApi.provideRenderingData("RICH_METADATA",O);M.JSC$23298_watchApi.provideRenderingData("MERCH_SHELF",a);_.w("web_watch_merch_in_sd_when_ticket_shelf_present")&&M.JSC$23298_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",V);M.JSC$23298_watchApi.provideRenderingData("TICKET_SHELF",g);M.JSC$23298_watchApi.provideRenderingData("LIMITED_STATE",K);M.JSC$23298_watchApi.getRoot().is!==
"ytd-watch-grid"&&M.JSC$23298_watchApi.provideRenderingData("DONATION_SHELF",G);M.JSC$23298_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",r9);M.JSC$23298_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",g9);M.JSC$23298_watchApi.provideRenderingData("EXPANDABLE_METADATA",D);if(M.swatcherooProvideAllDataOnScheduledJob){var tE,ND,Mx,hd,Kn,w9;h=E==null?void 0:(tE=E.contents)==null?void 0:(ND=tE.twoColumnWatchNextResults)==null?void 0:(Mx=ND.secondaryResults)==null?void 0:(hd=Mx.secondaryResults)==
null?void 0:(Kn=hd.results)==null?void 0:(w9=Kn[0])==null?void 0:w9.richGridRenderer;M.JSC$23298_watchApi.provideRenderingData("RICH_GRID_RENDERER",h)}};
_.MEA.prototype.hasCompanionAds=function(M){var q,G;return(G=M==null?void 0:(q=M.adPlacements)==null?void 0:q.some(function(K){var n,E,p,y;return(K==null?void 0:(n=K.adPlacementRenderer)==null?void 0:(E=n.renderer)==null?void 0:E.actionCompanionAdRenderer)||(K==null?void 0:(p=K.adPlacementRenderer)==null?void 0:(y=p.renderer)==null?void 0:y.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?G:!1};
var ue=function(M){if(!_.w("swaterdoo_ps_wn_handle_ks")){M.swatcherooProvideAllDataOnScheduledJob||sJe(M,3E3);var q=M.JSC$23298_watchApi.getPlayerResponse(),G,K,n,E,p,y=(G=M.JSC$23298_watchApi.getWatchNextResponse())==null?void 0:(K=G.contents)==null?void 0:(n=K.twoColumnWatchNextResults)==null?void 0:(E=n.secondaryResults)==null?void 0:(p=E.secondaryResults)==null?void 0:p.offerModule;q=M.hasCompanionAds(q);var Y,A;G=(y==null?void 0:(Y=y.tvfilmOfferModuleRenderer)==null?void 0:Y.clientShouldSuppressIfCompanionAdDisplayed)||
(y==null?void 0:(A=y.unlimitedOfferModuleRenderer)==null?void 0:A.suppressIfCompanionAds);Y=q&&G;M.JSC$23298_watchApi.getRoot().is==="ytd-watch-grid"&&M.JSC$23298_watchApi.provideRenderingData("OFFER_MODULE",Y?void 0:y)}},sJe=function(M,q){_.w("swatcheroo_pbs_load_grid")&&(M.provideRichGridJobId&&_.r8.cancelJob(M.provideRichGridJobId),M.provideRichGridJobId=_.MK(_.r8,function(){M.provideRichGridJobId=0;
var G,K,n,E,p,y,Y,A=(G=M.JSC$23298_watchApi.getWatchNextResponse())==null?void 0:(K=G.contents)==null?void 0:(n=K.twoColumnWatchNextResults)==null?void 0:(E=n.secondaryResults)==null?void 0:(p=E.secondaryResults)==null?void 0:(y=p.results)==null?void 0:(Y=y[0])==null?void 0:Y.richGridRenderer;A&&M.JSC$23298_watchApi.provideRenderingData("RICH_GRID_RENDERER",A)},q))},$he=function(M){var q,G;
_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23298_watchApi.playerApi,2);q=K.yieldResult;G=function(){M.onPlaybackStart()};
q.addEventListener("onPlaybackStartExternal",G);M.addOnDisposeCallback(function(){q.removeEventListener("onPlaybackStartExternal",G)});
_.gL(K)})};
_.MEA.prototype.onPlaybackStart=function(){sJe(this)};_.GeC=function(M){_.uI.call(this);var q=this;this.JSC$23311_watchApi=M;M.playerApi.then(function(G){q.player=G});
this.gestures=new _.kV(this.JSC$23311_watchApi.getRoot(),M.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.mTv(_.zw().getState())&&_.gy(_.zw().getState())<=0)if(_.a2(_.zw().getState())){var G;(G=q.player)==null||G.toggleFullscreen()}else _.VW(q.JSC$23311_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
qle(this)};
_.l(_.GeC,_.uI);var qle=function(M){var q=_.IQ(_.zw(),_.a2,function(G){M.onFullscreenChanged(G)});
M.addOnDisposeCallback(q);q=_.IQ(_.zw(),_.gy,function(G){M.gestures&&(G>0?M.gestures.detach():M.gestures.attach())});
M.addOnDisposeCallback(q)};
_.GeC.prototype.onFullscreenChanged=function(M){this.gestures&&this.gestures.update(M)};_.npC=function(M){_.uI.call(this);var q=this;this.JSC$23314_watchApi=M;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(M.subscribeToActiveChanged(function(G){q.onActiveChanged(G)}));
KbA(this)};
_.l(_.npC,_.uI);var EpG=function(M){if(_.w("swatcheroo_page_dispose_all_watch_data"))M.pageDisposalDataTypes=Object.values(aee).filter(function(G){return G!=="PLAYLIST"});
else if(_.w("swatcheroo_page_dispose_rich_grid")){var q;(q=M.pageDisposalDataTypes)==null||q.push("RICH_GRID_RENDERER")}},KbA=function(M){_.w("swatcheroo_enable_ghost_cards")&&(EpG(M),M.JSC$23314_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.r8.cancelJob(M.clearDataJobId);
M.clearDataJobId=0}),M.runPageDisposeJob=function(){var q=_.AL().resolve(_.md).getDestinationPageType()==="watch";
M.clearDataJobId=_.MK(_.r8,M.runClearDataJob,q?0:_.tL("web_watch_delay_page_dispose_ms",1E4))},M.runClearDataJob=function(){NjG(M)},M.runOnYtNavigateAwayFinish=function(){M.clearDataJobId&&(_.r8.cancelJob(M.clearDataJobId),M.clearDataJobId=0,NjG(M))},document.addEventListener("yt-navigate-finish",M.runOnYtNavigateAwayFinish),M.JSC$23314_watchApi.addPageDisposeJob(M.runPageDisposeJob),M.addOnDisposeCallback(function(){M.JSC$23314_watchApi.removePageDisposeJob(M.runPageDisposeJob);
M.JSC$23314_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",M.runOnYtNavigateAwayFinish)}))},NjG=function(M){M.pageDisposalDataTypes.forEach(function(q){M.JSC$23314_watchApi.provideRenderingData(q,void 0)});
M.clearDataJobId=0};
_.npC.prototype.onActiveChanged=function(M){M&&((M=document.querySelector("#watch-page-skeleton"))&&_.cX(M),key(this),document.body.removeAttribute("no-y-overflow"),_.fX("IS_SHELL_LOAD")&&_.ICe())};
var key=function(M){_.L(function(q){if(q.nextAddress==1)return q.yield(M.JSC$23314_watchApi.playerApi,2);_.i_();_.gL(q)})};var p8A;p8A=_.w("kevlar_watch_while_counterfactual")?0:.25;_.WbG=function(M){_.uI.call(this);this.JSC$23317_watchApi=M;this.JSC$23317_watchWhileEnabled=_.w("kevlar_watch_while_v2");this.pipEnabled=_.w("web_enable_pip_on_miniplayer");y23(this);LbA(this);YlA(this)};
_.l(_.WbG,_.uI);var y23=function(M){M.JSC$23317_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){A2W(M)});
M.addOnDisposeCallback(function(){M.JSC$23317_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},LbA=function(M){var q,G;
_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23317_watchApi.playerApi,2);q=K.yieldResult;G=function(){A2W(M)};
q.addEventListener("onCollapseMiniplayer",G);M.addOnDisposeCallback(function(){q.removeEventListener("onCollapseMiniplayer",G)});
_.gL(K)})},YlA=function(M){var q=M.JSC$23317_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&q&&M.JSC$23317_watchWhileEnabled&&(M.playerIntersectionObserver=new IntersectionObserver(function(G){M.handleIntersect(G)},{threshold:[p8A]}),M.playerIntersectionObserver.observe(q),M.addOnDisposeCallback(function(){var G;
(G=M.playerIntersectionObserver)==null||G.disconnect()}))},A2W=function(M){var q,G,K;
_.L(function(n){if(n.nextAddress==1){q=_.AL().resolve(_.md);G=q.data;K=_.OF(G.response,!1,G.playerResponse);_.Bg().miniplayerButtonActivation=!0;if(M.pipEnabled)return _.Bg().watchPipActivation=!0,n.jumpTo(2);_.AL().resolve(_.lq).collapse();return n.yield(_.Bg().navigationFinishPromise,2)}if(n.nextAddress!=4)return _.Bg().currentEndpoint=K.watchEndpoint||null,n.yield(_.AL().resolve(_.lq).activate(M.JSC$23317_watchApi.getElement("PLAYER"),K,G),4);_.Bg().userActivation=!0;_.gL(n)})};
_.WbG.prototype.handleIntersect=function(M){dgA(this,M[M.length-1])};
var dgA=function(M,q){M.watchWhileJobId&&_.r8.cancelJob(M.watchWhileJobId);M.watchWhileJobId=_.r8.addLowPriorityJob(function(){var G,K;return _.L(function(n){if(n.nextAddress==1)return M.watchWhileJobId=void 0,G=_.AL().resolve(_.lq),q.intersectionRatio>p8A?G.isMiniplayerActive()?n.yield(G.deactivate(),0):n.jumpTo(0):(K=!G.isMiniplayerActive())?n.yield(vpk(M),5):n.jumpTo(4);n.nextAddress!=4&&(K=n.yieldResult);if(!K)return n.jumpTo(0);_.Bg().watchWhileActivation=!0;return n.yield(hev(M),0)})},100)},
vpk=function(M){return _.L(function(q){return q.nextAddress==1?_.w("kevlar_watch_while_paused")?q.return(!0):q.yield(M.isPlayerPlaying(),2):q.return(q.yieldResult)})};
_.WbG.prototype.isPlayerPlaying=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return G.yield(M.JSC$23317_watchApi.playerApi,2);q=G.yieldResult;return G.return(q.getPlayerStateObject().isPlaying)})};
var hev=function(M){var q,G;return _.L(function(K){q=_.AL().resolve(_.md).data;G=_.OF(q.response,!1,q.playerResponse);_.Bg().currentEndpoint=G.watchEndpoint||null;return K.yield(_.AL().resolve(_.lq).activate(M.JSC$23317_watchApi.getElement("PLAYER"),G,q),0)})};_.w8v=function(M){_.uI.call(this);this.JSC$23321_watchApi=M;tEy(this);O7C(this)};
_.l(_.w8v,_.uI);var O7C=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23321_watchApi.playerApi,2);q=K.yieldResult;G=function(n){var E;n.sessionData&&n.sessionData.itct&&(E=n.sessionData.itct);var p=n.watchEndpoint;if(p&&n.sessionData&&n.sessionData.autonav)p=_.TSe(p,E);else{var y;p=_.Te(n.videoId,(y=n.listId)!=null?y:void 0,E)}E={endpoint:p};n.sessionData&&(E.tempData=n.sessionData);M.JSC$23321_watchApi.dispatchEvent("yt-navigate",E)};
q.addEventListener("onPlayVideo",G);M.addOnDisposeCallback(function(){q.removeEventListener("onPlayVideo",G)});
_.gL(K)})},tEy=function(M){var q=function(G){M.onYtNavigate(G)};
M.JSC$23321_watchApi.getRoot().addEventListener("yt-navigate",q);M.addOnDisposeCallback(function(){M.JSC$23321_watchApi.getRoot().removeEventListener("yt-navigate",q)})};
_.w8v.prototype.onYtNavigate=function(M){var q=this,G,K,n,E,p,y,Y,A,v;return _.L(function(h){if(h.nextAddress==1){if(!((G=M.detail)==null?0:(K=G.endpoint)==null?0:K.watchEndpoint))return h.return();n=M.detail.endpoint.watchEndpoint;E=q.JSC$23321_watchApi.getWatchNextResponse();y=_.C((p=E)==null?void 0:p.currentVideoEndpoint,_.Jl);if(!y)return h.return();if(n.videoId!==y.videoId||n.playlistId&&n.playlistId!==y.playlistId||typeof n.startTimeSeconds!=="number")return h.jumpTo(0);M.stopPropagation();
(Y=_.w("kevlar_watch_while_v2")&&!_.w("kevlar_watch_while_counterfactual"))&&_.AL().resolve(_.lq).isMiniplayerActive()||q.JSC$23321_watchApi.scrollWatchTo(0,!0);return h.yield(q.JSC$23321_watchApi.playerApi,3)}A=h.yieldResult;v=n.startTimeSeconds;A.seekTo(v,void 0,void 0,void 0,84);A.wakeUpControls();v<A.getDuration()&&A.playVideo();_.gL(h)})};_.a_k=function(M){_.uI.call(this);var q=this;this.JSC$23324_watchApi=M;var G=this.JSC$23324_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){COk(q)});
this.addOnDisposeCallback(function(){q.JSC$23324_watchApi.unsubscribeByKey(G)});
COk(this);_.w("enable_ai_companion")&&(M=this.JSC$23324_watchApi.getElement("PERSISTENT_PANEL_CONTAINER"))&&_.h3I(_.AL().resolve(_.UW),M,"WATCH")};
_.l(_.a_k,_.uI);var COk=function(M){var q=M.JSC$23324_watchApi.getWatchNextResponse();if(q){var G,K=[].concat(_.Ui((G=q==null?void 0:q.engagementPanels)!=null?G:[]));K.unshift.apply(K,_.Ui(opM(q)));M.JSC$23324_watchApi.provideRenderingData("ENGAGEMENT_PANELS",K)}},l_t=function(M){var q,G,K,n=(q=M.engagementPanels)==null?void 0:(G=q.find(function(O){var a;
return((a=O.engagementPanelSectionListRenderer)==null?void 0:a.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(K=G.engagementPanelSectionListRenderer.content)==null?void 0:K.structuredDescriptionContentRenderer,E;
if(_.C(n==null?void 0:(E=n.items)==null?void 0:E.find(function(O){return!!_.C(O,BPL)}),BPL))return!0;
var p,y,Y,A;if(M=(((p=M.contents)==null?void 0:(y=p.twoColumnWatchNextResults)==null?void 0:(Y=y.results)==null?void 0:(A=Y.results)==null?void 0:A.contents)||[]).find(function(O){return O.videoPrimaryInfoRenderer})){var v,h,t;
return(((v=M.videoPrimaryInfoRenderer)==null?void 0:(h=v.videoActions)==null?void 0:(t=h.menuRenderer)==null?void 0:t.flexibleItems)||[]).some(function(O){O=_.C(O,_.$tf);if(!O)return!1;var a,g;O=(a=O.topLevelButton)==null?void 0:(g=a.buttonViewModel)==null?void 0:g.onTap;if(!O)return!1;a=_.aM(O);if(!a)return!1;var D;return((D=_.C(a,_.hM))==null?void 0:D.panelIdentifier)==="PAyouchat"})}return!1},opM=function(M){var q=[];
if(!_.w("web_watch_inject_placeholder_fantasy_panel_killswitch")){var G,K,n,E=(G=M.engagementPanels)==null?void 0:(K=G.find(function(y){var Y;return((Y=y.engagementPanelSectionListRenderer)==null?void 0:Y.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(n=K.engagementPanelSectionListRenderer.content)==null?void 0:n.structuredDescriptionContentRenderer,p;
_.C(E==null?void 0:(p=E.items)==null?void 0:p.find(function(y){return!!_.C(y,EJG)}),EJG)&&(G=_.CBy("PAsports_fantasy"),G.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q.push(G))}l_t(M)&&(M=_.CBy("PAyouchat"),M.engagementPanelSectionListRenderer.targetId="PAyouchat",M.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",q.push(M));
return q};_.POG=function(M){_.uI.call(this);this.JSC$23327_watchApi=M;X8C(this)};
_.l(_.POG,_.uI);var X8C=function(M){M.JSC$23327_watchApi.registerActionHandler("yt-loop-command",function(q){i7v(M,q)});
M.JSC$23327_watchApi.registerActionHandler("yt-repeat-chapter-command",function(q){c2M(M,q)});
M.addOnDisposeCallback(function(){M.JSC$23327_watchApi.unregisterActionHandler("yt-loop-command");M.JSC$23327_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},i7v=function(M,q){var G;
_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23327_watchApi.playerApi,2);G=K.yieldResult;_.C(q,kce).loop?(G.setLoopRange({startTimeMs:Number(_.C(q,kce).startTimeMs),endTimeMs:Number(_.C(q,kce).endTimeMs),postId:_.C(q,kce).postId,type:"clips"}),G.playVideo()):G.setLoopRange(null);_.gL(K)})},c2M=function(M,q){var G,K;
_.L(function(n){if(n.nextAddress==1)return n.yield(M.JSC$23327_watchApi.playerApi,2);G=n.yieldResult;K=_.C(q,W8W).repeat;K==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(G.setLoopRange({startTimeMs:Number(_.C(q,W8W).startTimeMs),endTimeMs:Number(_.C(q,W8W).endTimeMs),type:"repeatChapter"}),G.playVideo()):K==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&G.setLoopRange(null);_.gL(n)})};_.BjM=function(M){_.uI.call(this);this.JSC$23332_watchApi=M;gpA(this)};
_.l(_.BjM,_.uI);var gpA=function(M){M.JSC$23332_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(q){QJA(M,q)});
M.addOnDisposeCallback(function(){M.JSC$23332_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},QJA=function(M,q){var G,K,n,E,p,y,Y,A,v,h,t;
_.L(function(O){if(O.nextAddress==1)return O.yield(M.JSC$23332_watchApi.playerApi,2);G=O.yieldResult;if(E=(n=(K=_.C(q,ALv))==null?void 0:K.highlightedMenuItemKey)!=null?n:"")(y=(p=G).highlightSettingsMenuItem)==null||y.call(p,E);if(v=(A=(Y=_.C(q,ALv))==null?void 0:Y.openMenuItemKey)!=null?A:"")(t=(h=G).openSettingsMenuItem)==null||t.call(h,v);_.gL(O)})};var I_A=_.$p("/youtube/app/watch/player_state","playerStateEntity");_.Zm=function(M){_.uI.call(this);this.JSC$23335_watchApi=M;Dgv(this)};
_.l(_.Zm,_.uI);var uIe=function(M){switch(M){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"}},Dgv=function(M){var q,G,K,n;
_.L(function(E){if(E.nextAddress==1)return E.yield(M.JSC$23335_watchApi.playerApi,2);q=E.yieldResult;if(M.isDisposed())return E.return();G=function(p){M.onPlayerStateChange(p)};
K=function(p){M.onAdStateChange(p)};
n=function(){M.onAdSkip()};
q.addEventListener("onStateChange",G);q.addEventListener("onAdStateChange",K);q.addEventListener("onAdSkip",n);M.addOnDisposeCallback(function(){q.removeEventListener("onStateChange",G);q.removeEventListener("onAdStateChange",K);q.removeEventListener("onAdSkip",n)});
_.gL(E)})},J2A=function(M){var q=_.J_(),G=q.dispatch;
a:switch(M.adsState){case -1:case 0:var K="ADS_STATE_NONE";break a;case 1:case 2:case 3:K="ADS_STATE_PLAYING";break a;default:K="ADS_STATE_UNKNOWN"}G.call(q,_.LL("playerStateEntity",I_A,{key:I_A,playerState:uIe(M.playerState),adsState:K,videoId:M.videoId}))};
_.Zm.prototype.onPlayerStateChange=function(M){var q=this,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(q.JSC$23335_watchApi.playerApi,2);G=K.yieldResult;if(q.isDisposed())return K.return();q.playerState=M;q.videoId=G.getVideoData().video_id;J2A(q);_.gL(K)})};
_.Zm.prototype.onAdStateChange=function(M){this.adsState=M;J2A(this)};
_.Zm.prototype.onAdSkip=function(){this.adsState=0;J2A(this)};_.b7a=function(M){_.uI.call(this);var q=this;this.JSC$23339_watchApi=M;this.enableExternalPlaylistPanelInPlayer=_.w("delhi_web_player_use_external_playlist_panel");_.AL().resolve(_.$x).setPlayer(this.JSC$23339_watchApi.getElement("PLAYER"));M=this.JSC$23339_watchApi.subscribeToActiveChanged(function(G){q.onActiveChanged(G)});
this.addOnDisposeCallback(M);Z7M(this)};
_.l(_.b7a,_.uI);var Z7M=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return M.enableExternalPlaylistPanelInPlayer?K.yield(M.JSC$23339_watchApi.playerApi,2):K.return();q=K.yieldResult;G=function(){if(M.playlistPanelElement)M.playlistPanelElement.onToggleExpanded()};
q.addEventListener("onToggleExternalPlaylistPanel",G);M.addOnDisposeCallback(function(){q.removeEventListener("onToggleExternalPlaylistPanel",G)});
_.gL(K)})};
_.b7a.prototype.onActiveChanged=function(M){var q=this,G=_.AL().resolve(_.$x),K=function(){UgC(q)};
M?(this.playlistPanelElement=this.JSC$23339_watchApi.getElement("PLAYLIST_PANEL"))?(G.setPlaylistComponent(this.playlistPanelElement),G.addEventListener("yt-playlist-data-updated",K),this.addOnDisposeCallback(function(){G.removeEventListener("yt-playlist-data-updated",K)}),UgC(this)):_.Mz(Error("$o")):(G.removeEventListener("yt-playlist-data-updated",K),G.cancelVideoSkip())};
var UgC=function(M){var q=_.AL().resolve(_.$x);M.JSC$23339_watchApi.provideRenderingData("PLAYLIST",q.getPlaylistData())};_.be=function(M){_.uI.call(this);var q=this;this.JSC$23342_watchApi=M;this.onPageScroll=function(){q.scrollThrottle.fire();q.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.qA(this.onThrottledScroll,200,this);_.oE(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.qA(this.onMastheadThrottledScroll,50,this);_.oE(this,this.mastheadScrollThrottle);this.animation=new _.M7(function(G){q.JSC$23342_watchApi.getRoot().setScrollTop(G)});
M=_.IQ(_.zw(),_.a2,function(){q.onFullscreenChanged()});
this.addOnDisposeCallback(M);xgt(this);zey(this);this.onThrottledScroll()};
_.l(_.be,_.uI);
_.be.prototype.onFullscreenChanged=function(){var M=this,q=this.JSC$23342_watchApi.getRoot();!this.pageScrollElement&&q.pageScrollElement?(this.pageScrollElement=q.pageScrollElement,q.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){M.pageScrollElement&&M.pageScrollElement.removeEventListener("scroll",M.onPageScroll)})):this.pageScrollElement&&!q.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var xgt=function(M){window.addEventListener("scroll",M.onPageScroll);M.addOnDisposeCallback(function(){window.removeEventListener("scroll",M.onPageScroll)})},zey=function(M){M.JSC$23342_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(q){a:{var G;
if(G=M.JSC$23342_watchApi.getRoot().contains(q)&&!M.animation.isAnimating()){G=q.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var K,n,E=(q==null?void 0:(K=q.parentElement)==null?void 0:(n=K.parentElement)==null?void 0:n.id)==="fixed-secondary";G=!(G&&E)}if(G){if(_.w("kevlar_watch_scroll_manager_absolute_offset_killswitch"))K=q.offsetTop;else for(K=0,n=q;n!==null;)K+=n.offsetTop,K-=n.scrollTop,n=n.offsetParent;n=K;K=n-24;q=n+q.offsetHeight+24;n=M.JSC$23342_watchApi.getRoot().getPageScrollingElement();
G=M.JSC$23342_watchApi.getRoot().getScrollTop();E=G+n.clientHeight-56;if(K<G+56)q=K-56;else if(q>E)q-=n.clientHeight;else break a;M.scrollWatchTo(Math.max(0,q),!0)}}});
M.addOnDisposeCallback(function(){M.JSC$23342_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.be.prototype.onThrottledScroll=function(){var M=_.zw(),q=M.dispatch,G=this.JSC$23342_watchApi.getRoot().getScrollTop();q.call(M,_.RJ({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:G}}))};
_.be.prototype.onMastheadThrottledScroll=function(){this.JSC$23342_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$23342_watchApi.getRoot().getScrollTop())};
_.be.prototype.scrollWatchTo=function(M,q){(q===void 0?0:q)?this.animation.start(this.JSC$23342_watchApi.getRoot().getScrollTop(),Math.max(0,M),500):this.JSC$23342_watchApi.getRoot().setScrollTop(M)};_.Tjv=function(M){_.uI.call(this);var q=this;this.JSC$23345_watchApi=M;var G=this.JSC$23345_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){mge(q)}),K=this.JSC$23345_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){SlG(q)});
this.addOnDisposeCallback(function(){q.JSC$23345_watchApi.unsubscribeByKey(G);q.JSC$23345_watchApi.unsubscribeByKey(K)});
mge(this);SlG(this)};
_.l(_.Tjv,_.uI);
var mge=function(M){var q,G,K,n=(K=(q=M.JSC$23345_watchApi.getPlayerResponse())==null?void 0:(G=q.videoDetails)==null?void 0:G.title)!=null?K:"";M.JSC$23345_watchApi.dispatchEvent("yt-update-title",n)},SlG=function(M){var q,G,K,n,E,p,y,Y=(y=((p=(q=M.JSC$23345_watchApi.getWatchNextResponse())==null?void 0:(G=q.contents)==null?void 0:(K=G.twoColumnWatchNextResults)==null?void 0:(n=K.results)==null?void 0:(E=n.results)==null?void 0:E.contents)!=null?p:[]).find(function(A){return!!A.videoPrimaryInfoRenderer}))==null?
void 0:y.videoPrimaryInfoRenderer;
(q=_.UX(Y==null?void 0:Y.title))&&M.JSC$23345_watchApi.dispatchEvent("yt-update-title",q)};_.jJt=function(M){_.uI.call(this);this.JSC$23348_watchApi=M;r2y(this)};
_.l(_.jJt,_.uI);var r2y=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$23348_watchApi.playerApi,2);q=K.yieldResult;G=function(){M.onYpcContentRequest()};
q.addEventListener("onYpcContentRequest",G);M.addOnDisposeCallback(function(){q.removeEventListener("onYpcContentRequest",G)});
_.gL(K)})};
_.jJt.prototype.onYpcContentRequest=function(){var M,q,G,K,n,E=(M=this.JSC$23348_watchApi.getWatchNextResponse())==null?void 0:(q=M.contents)==null?void 0:(G=q.twoColumnWatchNextResults)==null?void 0:(K=G.secondaryResults)==null?void 0:(n=K.secondaryResults)==null?void 0:n.offerModule,p,y,Y,A;M=(A=(Y=(y=(p=E==null?void 0:E.episodeOfferModuleRenderer)!=null?p:E==null?void 0:E.movieOfferModuleRenderer)!=null?y:E==null?void 0:E.unlimitedOfferModuleRenderer)!=null?Y:E==null?void 0:E.liveOfferModuleRenderer)!=
null?A:E==null?void 0:E.tvfilmOfferModuleRenderer;var v,h,t;E=(t=E==null?void 0:(v=E.tvfilmOfferModuleRenderer)==null?void 0:(h=v.actionButtons)==null?void 0:h.length)!=null?t:0;h=Math.max(E-1,0);var O,a,g;v=(g=M==null?void 0:(O=M.offerButton)==null?void 0:O.buttonRenderer)!=null?g:M==null?void 0:(a=M.actionButtons)==null?void 0:a[h].buttonRenderer;var D,J;(O=(J=(D=v==null?void 0:v.navigationEndpoint)!=null?D:v==null?void 0:v.serviceEndpoint)!=null?J:v==null?void 0:v.command)&&_.$A.instance.resolveCommand(O)};
}catch(e){_._DumpException(e)}
try{
var KXI,Mow,$rw;_.sOw=function(){var M=_.xP.clone(e3w),q;return(new _.X4(function(G,K){M.onSuccess=function(n){_.nps(n)?G(new $rw(n)):K(new _.Zn("Request failed, status="+_.au(n),"net.badstatus",n))};
M.onError=function(n){K(new _.Zn("Unknown request error","net.unknown",n))};
M.onTimeout=function(n){K(new _.Zn("Request timed out","net.timeout",n))};
q=_.cR("//googleads.g.doubleclick.net/pagead/id",M)})).thenCatch(function(G){if(G instanceof _.l_){var K;
(K=q)==null||K.abort()}return _.Aj(G)})};
_.qT5=function(M){a:{var q="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(q="EMBEDDED_PLAYER_MODE_PFL");var G=M.raw_embedded_player_response;if(!G&&(M=M.embedded_player_response))try{G=JSON.parse(M)}catch(n){break a}if(G)b:for(var K in Mow)if(Mow[K]==G.embeddedPlayerMode){q=Mow[K];break b}}return q==="EMBEDDED_PLAYER_MODE_PFL"};
_.GQs=function(){if(_.w("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("wf");if(!_.rtw())return Error("xf");var M=_.R9("PLAYER_VARS",{});if(_.xP.get(M,"privembed",!1)=="1")return Error("yf");if(_.qT5(M))return Error("zf")};
KXI=function(M){switch(M){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:_.F2(M,"unknown result type")}};
_.nAP=function(M,q,G){q=_.sx$[q];G={detected:M===0,source:q.z9F,detectionResult:KXI(M),contentCpn:G};_.ml("biscottiBasedDetection",G);_.Stf.increment(q.z9F,M);q.tgH!==void 0&&_.Vz("CATSTAT",_.emy(M,q))};
_.bL=function(M,q){var G={};G.key=M;G.value=q;return _.CJ4().then(function(K){return new Promise(function(n,E){try{var p=K.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(G);p.onsuccess=function(){n()};
p.onerror=function(){E()}}catch(y){E(y)}})})};
_.N4v=function(){var M=_.tL("user_engagement_experiments_rate_limit_ms"),q=EA8.get("last-user-engagement-exp-trigger-timestamp");return!q||(0,_.d8)()>=q+M?(EA8.set("last-user-engagement-exp-trigger-timestamp",(0,_.d8)()),!0):!1};
_.UD=function(M,q,G,K,n){q=q===void 0?null:q;G=G===void 0?null:G;K=K===void 0?null:K;n=n===void 0?null:n;M={youThereEventType:M};G&&(M.lactThresholdMs=G.lactThresholdMs,M.mediaPosSec=G.promptDelaySec,M.lactServerRequestMs=G.lactServerRequestMs,M.triggerReason=G.triggerReason);n!=null&&(M.renderingMediaPosSec=Math.round(n));q||(q=_.Cx());q&&(M.clientScreenNonce=q);K&&(M.clientPlaybackNonce=K);_.ml("youThere",M)};
Mow={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"};$rw=function(M){this.xhr=M};
_.Zn=function(M,q,G){_.qD.call(this,M+", errorCode="+q);this.errorCode=q;this.xhr=G;this.name="PromiseAjaxError"};
_.l(_.Zn,_.qD);var e3w={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var EA8=new _.F8("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.H_R=function(M){return _.RJ({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:M})};
}catch(e){_._DumpException(e)}
try{
var SC,ws9,aSG,ozG,lS9,Xsa,iKM,ZKt,bKt,UbL,PcW,Cce,Qt3,Bz9,mbG;_.OKG=function(){var M=window.location.hash;M.charAt(0)==="#"&&(M=M.charAt(1)==="!"?M.substring(2):M.substring(1));return _.KD(M)};
SC=function(M,q,G){var K;return _.L(function(n){if(n.nextAddress==1)return n.yield(q(),2);K=n.yieldResult;G(K,M);_.gL(n)})};
ws9=function(){return _.L(function(M){return M.nextAddress==1?M.yield((_.GQs()!==void 0?_.Aj(Error("Af")):_.sOw()).then(function(){return 1},function(q){if(q.message==="Biscotti id is disabled")return 3;
_.j1("Failed fetching bid");return 0}),2):M.return(M.yieldResult)})};
aSG=function(){var M=_.rz("NDJ6bms0dGVuajYweXQtaGF2ZW4tZW1iZWQtcGxheWVyIw=="),q=_.rz("ZWJqcWMycHhsdHR2aWZyYW1lIw==");return document.querySelector(q+Cce+M)?0:1};
ozG=function(){return _.UBF(_.N5)};
lS9=function(){return _.xBi()===0?0:_.zm$()};
Xsa=function(){return _.j4y(_.ELi([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
iKM=function(){return _.Bsj(PcW)};
_.cnC=function(M){_.L(function(q){switch(q.nextAddress){case 1:return q.yield(SC("b.f_",ws9,M),2);case 2:return q.yield(SC("j.s_",_.cRF,M),3);case 3:return q.yield(SC("r.s_",_.X5i,M),4);case 4:return q.yield(SC("e.h_",iKM,M),5);case 5:if(!_.w("ab_det_sc_inj")){q.jumpTo(6);break}return q.yield(SC("s.i_",_.ZRH,M),6);case 6:if(_.w("ab_deg_unex_thr")){q.jumpTo(8);break}return q.yield(SC("a.o_",_.uuF,M),8);case 8:if(_.w("ks_get_o_pp")){q.jumpTo(10);break}return q.yield(SC("g.o_",_.DBD,M),10);case 10:if(_.w("ks_det_gpbl")){q.jumpTo(12);
break}return q.yield(SC("p.i_",_.Ids,M),12);case 12:return q.yield(SC("f.i_",_.ARu,M),14);case 14:return q.yield(SC("a.b_",_.oLy,M),15);case 15:return q.yield(SC("p.m_",_.hmy,M),16);case 16:if(!_.w("ab_det_el_h_v2")){q.jumpTo(17);break}return q.yield(SC("n.h_",Xsa,M),17);case 17:return q.yield(SC("o.p_",ozG,M),19);case 19:return q.yield(SC("e.i_",aSG,M),20);case 20:if(_.w("ab_det_apm"))return q.yield(SC("o.a_",lS9,M),0);q.jumpTo(0)}})};
_.gzG=function(M,q){M={videoId:M};q&&(M.playlistId=q);return M};
_.ISC=function(){if(_.rtw()){var M=_.R9("PLAYER_VARS",{});if(_.xP.get(M,"privembed",!1)!="1"&&!_.qT5(M)){var q=function(){Bz9=!0;"google_ad_status"in window?_.Vz("DCLKSTAT",1):_.Vz("DCLKSTAT",2)};
try{_.cF(_.Uav,q)}catch(G){}Qt3.push(_.r8.addLowPriorityJob(function(){if(!(Bz9||"google_ad_status"in window)){try{_.Zhj(_.Uav.toString(),q)}catch(G){}Bz9=!0;_.Vz("DCLKSTAT",3)}},5E3))}}};
_.Dbk=function(M,q,G){G=G===void 0?!1:G;var K=Math.max(M.width,_.IfM);if(_.w("kevlar_watch_feed_big_thumbs")&&M.width>=1550-_.lL()&&M.height>=800)K-=_.Uzy;else if(M.width>=_.JF){var n=_.DzC+_.uN3+_.u1;_.w("kevlar_watch_feed_big_thumbs")&&(n=_.bDv);K-=n}else K-=_.DzC;K=Math.min(K,_.JLA);n=240;G&&(n=380);q<.5624||(!_.w("kevlar_watch_flexy_disable_small_window_sizing")&&(M.height<630&&M.width>=657||M.height>=630&&M.width>=_.JF&&M.width<1327)?n=360:!_.w("kevlar_watch_flexy_disable_large_window_sizing")&&
M.height>=630&&M.width>=1327&&(n=480));var E=Math.min(K*q,M.height-(56+_.Quk+_.ZDG));E=Math.max(E,n);q<1?K=E/q:M.width>=_.JF&&(K=_.Dbk(M,.5625,G).width);return new _.cc(Math.round(K),Math.round(E))};
_.upC=function(M){var q=0;M.indexOf("h")!=-1&&(M=M.split("h"),q=M[0]*60*60,M=M[1]);M.indexOf("m")!=-1&&(M=M.split("m"),q=M[0]*60+q,M=M[1]);M.indexOf("s")!=-1?(M=M.split("s"),q=M[0]*1+q):q=M*1+q;return q};
_.JnL=function(){_.tL("service_worker_push_logged_out_prompt_watches")!=-1&&_.PZ("WatchCount").then(function(M){M>=100||_.bL("WatchCount",M+1)})};
ZKt=function(M){var q=M.externalVideoId||"";return q?M.isShortsEligible?"https://www.youtube.com/shorts/"+q:"https://www.youtube.com/watch?v="+q:""};
bKt=function(M){var q=[];M.viewCount&&q.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:M.viewCount});M.likeCount&&q.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:M.likeCount});return q};
UbL=function(M){var q,G,K={"@context":"https://schema.org","@type":"VideoObject",description:_.UX(M.description),duration:"PT"+(M.lengthSeconds||"0")+"S",embedUrl:M.embed?M.embed.iframeUrl:"",name:_.UX(M.title),thumbnailUrl:((q=M.thumbnail)==null?void 0:(G=q.thumbnails)==null?void 0:G.map(function(v){return v&&v.url||""}))||[],
uploadDate:M.publishDate};_.w("mweb_video_schema_id_killswitch")||(K["@id"]=ZKt(M));q=bKt(M);q.length&&(K.interactionStatistic=q);M.category&&(K.genre=M.category);M.ownerChannelName&&(K.author=M.ownerChannelName);M.liveBroadcastDetails&&(K.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:M.liveBroadcastDetails.startTimestamp,endDate:M.liveBroadcastDetails.endTimestamp}]);if(M.learningResource){M=M.learningResource;K["@type"]=["VideoObject","LearningResource"];var n;if((n=M.learningResourceType)==
null?0:n.length)K.learningResourceType=M.learningResourceType[0];var E;if((E=M.educationalAlignment)==null?0:E.length)K.educationalAlignment={"@type":"AlignmentObject",targetName:M.educationalAlignment[0]};var p;if((p=M.educationalLevel)==null?0:p.length){n=M.educationalLevel[0];var y;if((y=M.educationalLevelCountry)==null?0:y.length)n+=" ("+M.educationalLevelCountry+")";K.educationalLevel=n}var Y,A;if(((Y=M.learningResourceType)==null?0:Y.length)&&M.learningResourceType[0]==="Problem walkthrough"&&
((A=M.problemDescriptions)==null?0:A.length))for(K.hasPart=[],y=_.k(M.problemDescriptions),Y=y.next();!Y.done;Y=y.next())n=Y.value,Y=n.problemDescriptionText,A=n.startOffset,n=n.url,Y&&A!==void 0&&n&&K.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:Y,text:Y,startOffset:A,url:n})}return K};
_.xbk=function(M){return _.RJ({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:M}})};
PcW=[[["I3QwaDlobjFhd2R3cHJpbWFyeQ==",null,null],[null,["cmRzM3E1cThoM21leXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXIj","dXZmeG5od3VpdnV0c3R5bGUtc2NvcGUj"],null],["YWwwNWFkdXNqcHJybWFzdGhlYWQtYWQj",["MjF6Zzl3bm41M3h2eXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM="],null],[null,["bndndjVmaWdzaXExeXRkLXJpY2gtZ3JpZC1yZW5kZXJlciM=","dDMxMDc3aDhkdXVjc3R5bGUtc2NvcGUj"],null],[null,["ZHdyNWd5cDU0MGRqeXRkLWJhbm5lci1wcm9tby1yZW5kZXJlciM=","Z2xjMmU1M2Q3b2dpc3R5bGUtc2NvcGUj"],null],[null,["eHRyNTBuZTNhbTZleXRkLWFkLXNsb3QtcmVuZGVyZXIj"],
null]],[["aGk5OWFyYXc0OGJqcGxheWVyLWFkcyM=",null,null]],[[null,null,"I2lqenN0eXk0a3NleXRsci1iYW5uZXItY3RhLXJlbmRlcmVy"]]];Cce="#";Qt3=[];Bz9=!1;_.zH9=["engagement-panel-ads"];mbG=new _.e0("updateSentimentBarStateCommand");_.SXA=new _.e0("showSurveyCommand");_.TH=new _.e0("changeMarkersVisibilityCommand");var rnA,jta,F43,fSC,RH9,ra;_.TzW=function(M,q){this.playerProvider_=M;this.actionSenderElement_=q;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.TzW.prototype.reset=function(){rnA(this);this.isUserPredictedAbsent_=!1};
rnA=function(M,q){!M.youThereData_||M.showWarningJob_||q!==void 0&&q||(_.UD("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Cx(),M.youThereData_,M.clientPlaybackNonce_),_.S1());_.r8.cancelJob(M.showWarningJob_);M.showWarningJob_=0;_.r8.cancelJob(M.showBlockingWarningJob_);M.showBlockingWarningJob_=0;_.r8.cancelJob(M.pausePlaybackJob_);M.pausePlaybackJob_=0;M.youThereData_=null;M.clientPlaybackNonce_=void 0;M.inYouThereFlow_=!1};
_.Vga=function(M,q){var G,K,n;_.L(function(E){if(E.nextAddress==1)return M.reset(),E.yield(M.playerProvider_().getPlayerPromise(),2);G=E.yieldResult;M.clientPlaybackNonce_=G.getVideoData().cpn;M.youThereData_=q.configData.youThereData;if(!M.youThereData_)return E.return();if(M.youThereData_.triggerReason&&M.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.N4v())return _.UD("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Cx(),M.youThereData_,M.clientPlaybackNonce_),E.return();K=M.youThereData_.promptDelaySec;
n=G.getCurrentTime();M.showWarningJob_=_.r8.addLowPriorityJob(function(){return _.L(function(p){M.showWarningJob_=0;return p.yield(jta(M),0)})},Math.max(K-n,0)*1E3);
_.gL(E)})};
jta=function(M){var q,G,K,n,E,p;return _.L(function(y){if(y.nextAddress==1)return y.yield(M.playerProvider_().getPlayerPromise(),2);if(y.nextAddress!=3)return q=y.yieldResult,G=q.getCurrentTime(),y.yield(RH9(M),3);K=y.yieldResult;if(!K||!M.youThereData_)return y.return();if(_.w("check_user_lact_at_prompt_shown_time_on_web")&&(n=parseInt(M.youThereData_.lactThresholdMs,10),_.Ap()<n))return _.UD("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Cx(),M.youThereData_,M.clientPlaybackNonce_),y.return();if(M.youThereData_.playbackPauseDelayMs<=
0)return fSC(M),y.return();!_.w("external_fullscreen")&&(E=_.m3())&&(M.ignoreFullscreenExitUserActivity_=!0,_.r8.addLowPriorityJob(function(){M.ignoreFullscreenExitUserActivity_=!1},2E3),_.SP(E));
M.youThereData_.showToastWarningPrompt&&(ra(M,M.youThereData_.showWarningActions),M.inYouThereFlow_=!0,_.UD("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Cx(),M.youThereData_,M.clientPlaybackNonce_,G),_.UD("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Cx(),M.youThereData_,M.clientPlaybackNonce_,G));p=0;M.youThereData_.blockingPromptDelayMs&&(p=M.youThereData_.blockingPromptDelayMs);M.showBlockingWarningJob_=_.r8.addLowPriorityJob(function(){return _.L(function(Y){M.showBlockingWarningJob_=0;return Y.yield(F43(M),
0)})},p);
_.gL(y)})};
F43=function(M){var q,G,K;return _.L(function(n){if(n.nextAddress==1)return n.yield(RH9(M),2);q=n.yieldResult;if(!M.youThereData_)return n.return();q&&(M.youThereData_.showBlockingWarningAction&&(_.UD("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Cx(),M.youThereData_,M.clientPlaybackNonce_),(G=_.C(M.youThereData_.showBlockingWarningAction,_.eP))?ra(M,G.commands):ra(M,[M.youThereData_.showBlockingWarningAction]),M.inYouThereFlow_=!0),K=M.youThereData_.playbackPauseDelayMs,M.pausePlaybackJob_=
_.r8.addLowPriorityJob(function(){return _.L(function(E){M.pausePlaybackJob_=0;return E.yield(fSC(M),0)})},K));
_.gL(n)})};
fSC=function(M){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(RH9(M),2);q=G.yieldResult;if(!M.youThereData_)return G.return();q&&(_.UD("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Cx(),M.youThereData_,M.clientPlaybackNonce_),ra(M,M.youThereData_.showPausedActions),M.inYouThereFlow_=!0);_.gL(G)})};
_.TzW.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var M=_.C(this.youThereData_.userActiveDuringFlowAction,_.eP);M?ra(this,M.commands):ra(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.UD("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Cx(),this.youThereData_,this.clientPlaybackNonce_),_.S1());rnA(this,!0)}_.HK9(this,!1)};
_.eHe=function(M){_.UD("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Cx(),M.youThereData_,M.clientPlaybackNonce_)};
RH9=function(M){var q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(M.playerProvider_().getPlayerPromise(),2);q=K.yieldResult;G=q.getPlayerState();return K.return(G==-1||G==1||G==3)})};
_.HK9=function(M,q){var G;_.L(function(K){if(K.nextAddress==1){if(M.isUserPredictedAbsent_==q)return K.jumpTo(0);M.isUserPredictedAbsent_=q;return K.yield(M.playerProvider_().getPlayerPromise(),3)}G=K.yieldResult;G.setUserEngagement(q);q&&_.UD("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Cx(),M.youThereData_,M.clientPlaybackNonce_);_.gL(K)})};
ra=function(M,q){if(_.w("handle_service_request_actions")||_.w("kevlar_youthere_service_endpoint_actions_killswitch"))_.FH(M.actionSenderElement_,q,M.actionSenderElement_);else{q=_.k(q);for(var G=q.next();!G.done;G=q.next())G=G.value,G.commandMetadata&&G.commandMetadata.webCommandMetadata&&G.commandMetadata.webCommandMetadata.sendPost?_.fx(M.actionSenderElement_,[G]):_.FH(M.actionSenderElement_,[G],M.actionSenderElement_)}};var $bt;var srC;var jC=function(){var M=_.Q.apply(this,arguments)||this;M.systemIcons=_.w("kevlar_system_icons");M.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return M};
_.l(jC,_.Q);jC.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var M=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(M=this.data.percentIfLiked||0,this.activated=!0):(M=this.data.percentIfIndifferent||0,this.activated=!1);_.f_(this.hostElement).querySelector("#like-bar").style.width=M+"%"}};
jC.prototype.handleUpdateSentimentBarStateCommand=function(M){this.data&&this.set("data.likeStatus",_.C(M,mbG).likeStatus)};
jC.prototype.observeLikeStatus=jC.prototype.observeLikeStatus;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],jC.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jC.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],jC.prototype,"activated",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],jC.prototype,"systemIcons",void 0);_.T([_.KT("data.likeStatus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jC.prototype,"observeLikeStatus",null);_.T([_.b({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],jC);
_.z(jC,"ytd-sentiment-bar-renderer",function(){if(srC!==void 0)return srC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return srC=M},{mode:1});var Mle;var V9=function(){var M=_.Q.apply(this,arguments)||this;M.small=!0;return M};
_.l(V9,_.Q);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],V9.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],V9.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],V9.prototype,"small",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],V9);
_.z(V9,"ytd-video-view-count-renderer",function(){if(Mle!==void 0)return Mle;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Mle=M},{mode:_.VO("kevlar_poly_si_batch_j080")?1:2});var RL=function(){var M=_.Q.apply(this,arguments)||this;M.infoFormattedStrings=[];M.wrapVideoActions=_.w("kevar_watch_wrap_video_actions");M.hideSentimentBar=_.w("kevlar_watch_hide_sentiment_bar");M.actionMap={};return M};
_.l(RL,_.Q);_.N=RL.prototype;_.N.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.N.dataChanged=function(){_.w("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.N.computeInfoFormattedStrings=function(M){if(!M)return[];var q=[];M.dateText&&q.push(M.dateText);M.stationName&&q.push(M.stationName);M.rating&&q.push(M.rating);M.startEndTimeTemplate&&M.startTimeUtcMillis&&M.endTimeUtcMillis&&q.push(_.bc(_.V_C(_.UX(M.startEndTimeTemplate),Number(M.startTimeUtcMillis),Number(M.endTimeUtcMillis))));M.upNextProgramText&&q.push(M.upNextProgramText);return q};
_.N.scheduleInitialUpdatedMetadataRequest=function(){var M,q=(M=this.data)==null?void 0:M.updatedMetadataEndpoint;if(q){var G;M=Number((G=_.C(q,_.BJP))==null?void 0:G.initialDelayMs);G=isNaN(M)?250:M;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),G)}};
_.N.setSentimentBarWidth=function(){var M=this;_.yb(this,function(){var q=_.f_(M.hostElement).querySelector("ytd-menu-renderer");if(q){q=q.topLevelButtons;for(var G=0,K=0;K<q.length;K++){var n=q[K],E=M.get("toggleButtonSupportedData.toggleButtonIdData.id",n.data);if(E==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||E==="TOGGLE_BUTTON_ID_TYPE_LIKE")G+=n.clientWidth+8;else break}G&&(M.sentiment.style.width=G-8+" px")}})};
_.N.fetchUpdatedMetadata=function(M){var q;M&&(q={continuation:M});var G;(M=(G=this.data)==null?void 0:G.updatedMetadataEndpoint)&&_.AL().resolve(_.vR).resolveCommand(M,{form:Object.assign({},q,{element:this.hostElement})})};
_.N.onYtServiceRequestSent=function(M,q){q.endpoint&&_.C(q.endpoint,_.oU)&&(this.hasUpdateSentimentBarStateCommands()&&!_.w("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.C(q.endpoint,_.oU).status),this.setSentimentBarWidth())};
_.N.hasUpdateSentimentBarStateCommands=function(){var M,q,G,K,n=(K=(M=this.data)==null?void 0:(q=M.videoActions)==null?void 0:(G=q.menuRenderer)==null?void 0:G.topLevelButtons)!=null?K:[];M=_.k(n);for(q=M.next();!q.done;q=M.next()){q=q.value;n=K=G=void 0;var E=(G=q.toggleButtonRenderer)==null?void 0:(K=G.toggleButtonSupportedData)==null?void 0:(n=K.toggleButtonIdData)==null?void 0:n.id;if(E==="TOGGLE_BUTTON_ID_TYPE_LIKE"||E==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){K=G=void 0;q=(K=_.C((G=q.toggleButtonRenderer)==
null?void 0:G.defaultServiceEndpoint,_.eP))==null?void 0:K.commands;if(!q)break;q=_.k(q);for(G=q.next();!G.done;G=q.next())if(_.C(G.value,mbG))return!0}}return!1};
_.N.onYtServiceRequestCompleted=function(M,q){var G;(M=(G=q.data)==null?void 0:G.loggingDirectives)&&_.rFj(_.nl(),M);this.get("continuation.timedContinuationData",q.data)&&this.data&&this.data.updatedMetadataEndpoint&&(q=q.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,q.continuation),q.timeoutMs))};
_.N.computeHasDateText=function(M){return!!M&&!!M.dateText};
_.Yd.Object.defineProperties(RL.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K;return!((K=(M=this.data)==null?void 0:(q=M.videoActions)==null?void 0:(G=q.menuRenderer)==null?void 0:G.flexibleItems)==null||!K.length)}}});
RL.prototype.onYtServiceRequestCompleted=RL.prototype.onYtServiceRequestCompleted;RL.prototype.onYtServiceRequestSent=RL.prototype.onYtServiceRequestSent;RL.prototype.dataChanged=RL.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],RL.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.qt.YtTaskEmitterBehavior),_.r("design:type",Object)],RL.prototype,"ytTaskEmitterBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],RL.prototype,"data",void 0);_.T([_.B({computed:"computeInfoFormattedStrings(data)"}),_.r("design:type",Array)],RL.prototype,"infoFormattedStrings",void 0);
_.T([_.B({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],RL.prototype,"hasDateText",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],RL.prototype,"wrapVideoActions",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],RL.prototype,"hideSentimentBar",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],RL.prototype,"flexMenuEnabled",null);
_.T([_.ET("#sentiment"),_.r("design:type",Object)],RL.prototype,"sentiment",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],RL.prototype,"dataChanged",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],RL.prototype,"onYtServiceRequestSent",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],RL.prototype,"onYtServiceRequestCompleted",null);
_.z(RL,"ytd-video-primary-info-renderer",function(){if($bt===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);$bt=M}M=$bt;return M},{mode:1});var qpv;var fo=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return M};
_.l(fo,_.Q);_.N=fo.prototype;_.N.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"}}}};
_.N.dataChanged=function(){var M;this.descriptionToggled=!((M=this.data)==null||!M.defaultExpanded);var q;this.collapsed=this.descriptionAlwaysCollapsed||!((q=this.data)==null?0:q.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.$m(110509);this.showLessClientVe=_.$m(110510);M=_.Cx();q=_.wt();M&&q&&_.IJ(M,q,[this.showMoreClientVe,this.showLessClientVe])};
_.N.onYtExpanderMoreTapped=function(){var M,q=(M=this.data)==null?void 0:M.showMoreCommand;q&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(q);(M=_.Cx())&&this.showMoreClientVe&&_.Z_(M,this.showMoreClientVe)};
_.N.onYtExpanderLessTapped=function(){var M=_.Cx();M&&this.showLessClientVe&&_.Z_(M,this.showLessClientVe);var q;(M=(q=this.data)==null?void 0:q.showLessCommand)&&this.componentBehavior.resolveCommand(M)};
_.N.handleUpdateDateTextAction=function(M){this.data&&this.data.dateText&&this.set("data.dateText",_.C(M,_.lfC).dateText)};
_.N.handleUpdateDescriptionAction=function(M){if(M=_.C(M,_.Q49))M.isEmpty||!M.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.tj(M.description)):this.set("data.description",M.description)};
_.N.onYtChangeEngagementPanelVisibilityAction=function(M){if(_.w("web_structured_description_show_more")||_.w("web_engagement_panel_open_description")){var q,G=(q=_.C(M,_.BFP))==null?void 0:q.targetId,K;M=((K=_.C(M,_.BFP))==null?void 0:K.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";G==="engagement-panel-structured-description"&&M&&(this.descriptionToggled=!0)}};
_.N.updateCollapsedFromBinding=function(M){this.collapsed=M.detail.value};
_.N.updateDescriptionToggledFromBinding=function(M){this.descriptionToggled=M.detail.value};
_.N.updateCanCollapseFromBinding=function(M){this.canCollapse=M.detail.value};
_.Yd.Object.defineProperties(fo.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.data)==null?void 0:(q=M.metadataRowContainer)==null?void 0:q.metadataRowContainerRenderer;return!!G&&!!G.rows&&G.rows.length>G.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.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}}});
fo.prototype.onYtExpanderLessTapped=fo.prototype.onYtExpanderLessTapped;fo.prototype.onYtExpanderMoreTapped=fo.prototype.onYtExpanderMoreTapped;fo.prototype.dataChanged=fo.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],fo.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],fo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],fo.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fo.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],fo.prototype,"collapsed",void 0);_.T([_.B(),_.r("design:type",Boolean)],fo.prototype,"descriptionToggled",void 0);
_.T([_.B(),_.r("design:type",Boolean)],fo.prototype,"canCollapse",void 0);_.T([_.B(),_.r("design:type",Object)],fo.prototype,"subscribeButtonData",void 0);_.T([_.B(),_.r("design:type",Number)],fo.prototype,"descriptionCollapsedHeight",void 0);_.T([_.B(),_.r("design:type",Object)],fo.prototype,"structuredDescriptionContentRenderer",void 0);_.T([_.B({value:function(){return _.w("web_watch_description_always_collapsed")}}),
_.r("design:type",Boolean)],fo.prototype,"descriptionAlwaysCollapsed",void 0);_.T([_.ET("#description"),_.r("design:type",HTMLDivElement)],fo.prototype,"description",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fo.prototype,"dataChanged",null);_.T([_.GQ("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fo.prototype,"onYtExpanderMoreTapped",null);
_.T([_.GQ("yt-expander-less-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fo.prototype,"onYtExpanderLessTapped",null);_.T([_.c("data.metadataRowContainer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fo.prototype,"metadataCollapsible",null);_.T([_.c("data","structuredDescriptionContentRenderer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fo.prototype,"hasInlineStructuredDescription",null);
_.T([_.c("data.attributedDescription"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fo.prototype,"hasAttributedDescription",null);_.T([_.c("hasInlineStructuredDescription","collapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fo.prototype,"loadStructuredDescription",null);_.T([_.c("data","structuredDescriptionContentRenderer","collapsed"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fo.prototype,"showInlineStructuredDescription",null);
_.T([_.c("data","hasInlineStructuredDescription","metadataCollapsible"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fo.prototype,"descriptionAlwaysCollapsible",null);
_.z(fo,"ytd-video-secondary-info-renderer",function(){if(qpv===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);qpv=M}M=qpv;return M},{mode:2});var Gut;var Fb=function(){return _.Q.apply(this,arguments)||this};
_.l(Fb,_.Q);Fb.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.w("web_modern_buttons"),forceIconButton:!_.w("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Fb.prototype.activate=function(M){M.appendTo(this.player);M.getPlayerPromise().then(function(q){q.setMinimized(!0)});
this.active=!0};
Fb.prototype.deactivate=function(){var M=this.player.firstElementChild;M.getPlayerPromise().then(function(q){q.setMinimized(!1)});
this.active=!1;return M};
Fb.prototype.onScrollUpTap=function(){var M=_.AL().resolve(_.md).getCurrentPage();M&&M.setScrollTop(0)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Fb.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Fb.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Fb.prototype,"active",void 0);
_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.r("design:type",Boolean)],Fb.prototype,"darkLaunch",void 0);_.T([_.ET("#player"),_.r("design:type",HTMLDivElement)],Fb.prototype,"player",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Fb);
_.z(Fb,"ytd-miniplayer-bar-renderer",function(){if(Gut!==void 0)return Gut;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer-bar-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="player" class="style-scope ytd-miniplayer-bar-renderer"></div>\n<div id="meta" class="style-scope ytd-miniplayer-bar-renderer">\n  <div id="title-row" class="style-scope ytd-miniplayer-bar-renderer">\n    <h1 id="title" class="style-scope ytd-miniplayer-bar-renderer">[[getSimpleString(data.title)]]</h1>\n    <div id="scroll-up" on-tap="onScrollUpTap" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n  <yt-formatted-string id="owner" link-inherit-color="" text="[[data.owner]]" class="style-scope ytd-miniplayer-bar-renderer"></yt-formatted-string>\n  <div id="buttons" class="style-scope ytd-miniplayer-bar-renderer">\n    <div id="menu" class="style-scope ytd-miniplayer-bar-renderer"></div>\n    <div id="subscribe" class="style-scope ytd-miniplayer-bar-renderer"></div>\n  </div>\n</div>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Gut=M},{mode:1});_.S5(_.U(function(M){var q=_.pI("script");_.zL(function(){var G;if(G=JSON)G=UbL(M.data()),G=_.Gp(JSON.stringify(G).replace(/</g,"\\u003C"));var K=M.data(),n=_.UX(K.title).trim().length===0,E=!K.publishDate||K.publishDate.trim().length===0,p,y,Y,A,v=!((p=K.thumbnail)==null?0:(y=p.thumbnails)==null?0:y.length)||!((Y=K.thumbnail)==null?0:Y.thumbnails[0].url)||((A=K.thumbnail)==null?void 0:A.thumbnails[0].url.trim().length)===0;q.value&&G&&!(n||E||v)&&_.nv(q.value,G)},"Vy9K7b");
return _.W("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.W("script",{el:q,type:"application/ld+json"}))},"bo"),"player-microformat-renderer",{props:{data:_.xj}});
}catch(e){_._DumpException(e)}
try{
var Ree,f_y,H7k;_.VEC=function(M){return M.watch.watchWindowSize};
Ree=function(M,q){var G=document.querySelector(M);G?q(G):setTimeout(function(){Ree(M,q)},1E3)};
f_y=function(M,q,G,K){if(M.isLockupToWatchTransitionEnabled){if(q){var n={};n=(n["watch-next-appears"]="player-watch-next-loaded",n);n["lockup-to-watch"]=M.lockupToWatchPlayerTransitionType==="fade-in"?"player-lockup-to-watch-fade-in":"player-lockup-to-watch-fade-in-and-zoom";M.viewTransitionCoordinator.registerElement(q,n)}G&&(q={},M.viewTransitionCoordinator.registerElement(G,(q["lockup-to-watch"]="below-lockup-to-watch",q["watch-next-appears"]="below-watch-next-loaded",q)));K&&(G={},M.viewTransitionCoordinator.registerElement(K,
(G["watch-next-appears"]="secondary-watch-next-loaded",G)))}};
_.Fb3=function(M){return _.RJ({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:M}})};
H7k=new _.e0("webWatchNextResponseExtensionData");var $gv=function(M){_.uI.call(this);var q=this;this.JSC$23352_watchApi=M;this.observer=null;var G=this.JSC$23352_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){eev(q)});
this.addOnDisposeCallback(function(){q.JSC$23352_watchApi.unsubscribeByKey(G);q.observer&&(q.observer.disconnect(),q.observer=null)});
eev(this)};
_.l($gv,_.uI);
var eev=function(M){var q,G,K,n;_.L(function(E){if(E.nextAddress==1){M.observer&&(M.observer.disconnect(),M.observer=null);q=M.JSC$23352_watchApi.getWatchNextResponse();if(!q)return E.return();G=_.C(q,H7k);return((K=G)==null?0:K.enableCreatorChatbot)&&G.creatorChannelId?E.yield((0,_.qzi)("NSzT5"),3):E.jumpTo(0)}n=_.hUM;n(G.creatorChannelId);Ree("ytd-watch-metadata",function(p){M.observer=new MutationObserver(function(){var y,Y;(y=document.querySelector('ytd-watch-metadata #flexible-item-buttons button[aria-label="Ask"]'))==null||
(Y=y.closest("yt-button-view-model.ytd-menu-renderer"))==null||Y.remove()});
M.observer.observe(p,{childList:!0,subtree:!0})});
_.gL(E)})};var UN=function(M){_.uI.call(this);this.JSC$23356_watchApi=M;this.isShelfVisible=this.isAdPlaying=this.isSeeking=!1;sty(this)};
_.l(UN,_.uI);var sty=function(M){_.L(function(q){if(q.nextAddress==1)return q.yield(MgG(M),2);qXL(M);_.gL(q)})},MgG=function(M){var q,G,K,n,E,p,y,Y;
return _.L(function(A){if(A.nextAddress==1)return A.yield(M.JSC$23356_watchApi.playerApi,2);q=A.yieldResult;M.JSC$23356_watchApi.registerActionHandler("yt-dismiss-shopping-timely-shelf-action",function(){GwM(M)});
M.JSC$23356_watchApi.registerActionHandler("yt-request-timely-shelf-state",function(){M.isShelfVisible?K49(M):nz3(M)});
G=M.JSC$23356_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qXL(M)});
K=function(v){M.onCueRangeEnter(v)};
q.addEventListener("onCueRangeEnter",K);n=function(v){M.onCueRangeExit(v)};
q.addEventListener("onCueRangeExit",n);E=function(){M.isSeeking=!0};
q.addEventListener("SEEK_TO",E);p=function(){M.onSeekComplete()};
q.addEventListener("SEEK_COMPLETE",p);y=function(){M.onAdStart()};
q.addEventListener("onAdStart",y);Y=function(){M.onAdComplete()};
q.addEventListener("onAdComplete",Y);M.addOnDisposeCallback(function(){M.JSC$23356_watchApi.unsubscribeByKey(G);q.removeEventListener("onCueRangeEnter",K);q.removeEventListener("onCueRangeExit",n);q.removeEventListener("SEEK_TO",E);q.removeEventListener("SEEK_COMPLETE",p);q.removeEventListener("onAdStart",y);q.removeEventListener("onAdComplete",Y)});
_.gL(A)})},Ez9=function(M){var q,G,K,n,E,p,y,Y,A;
return(E=(q=M.contents)==null?void 0:(G=q.twoColumnWatchNextResults)==null?void 0:(K=G.results)==null?void 0:(n=K.results)==null?void 0:n.contents)==null?void 0:(p=E.find(function(v){var h,t,O;return(h=v.itemSectionRenderer)==null?void 0:(t=h.contents)==null?void 0:(O=t[0])==null?void 0:O.shoppingTimelyShelfViewModel}))==null?void 0:(y=p.itemSectionRenderer)==null?void 0:(Y=y.contents)==null?void 0:(A=Y[0])==null?void 0:A.shoppingTimelyShelfViewModel},qXL=function(M){var q;
_.L(function(G){if(G.nextAddress==1)return(q=M.JSC$23356_watchApi.getWatchNextResponse())?G.yield(GwM(M),2):G.return();M.shoppingTimelyShelfViewModel=Ez9(q);NzW(M);kwA(M);_.gL(G)})},NzW=function(M){var q,G=(q=M.shoppingTimelyShelfViewModel)==null?void 0:q.offerIdToVariants;
G&&(q=G.filter(function(K){return K.key&&K.value}).map(function(K){return[K.key,
K.value]}),M.variantsMap=new Map(q))},kwA=function(M){var q,G,K,n,E,p;
_.L(function(y){if(y.nextAddress==1)return(G=(q=M.shoppingTimelyShelfViewModel)==null?void 0:q.cueRanges)?y.yield(M.JSC$23356_watchApi.playerApi,2):y.return();K=y.yieldResult;M.cueRanges=G;n=_.k(G);for(E=n.next();!E.done;E=n.next())p=E.value,p.startTime!==void 0&&p.endTime!==void 0&&p.id!==void 0&&K.addCueRange("shopping_timely_shelf"+p.id,psW(p.startTime),psW(p.endTime));_.gL(y)})},psW=function(M){return Number(M.seconds||0)+(M.nanos||0)/1E9};
UN.prototype.onCueRangeEnter=function(M){if(M.startsWith("shopping_timely_shelf")&&(this.activeCueId=M,!this.isSeeking&&!this.isAdPlaying)){var q=M.substring(21),G,K;M=(G=this.variantsMap)==null?void 0:(K=G.get(q))==null?void 0:K.shelf;if(_.w("web_enable_shopping_timely_shelf_client_overwrite")){var n,E,p,y,Y;G=M==null?void 0:(n=M.shoppingTimelyShelfContentViewModel)==null?void 0:(E=n.button)==null?void 0:(p=E[1])==null?void 0:(y=p.buttonViewModel)==null?void 0:(Y=y.onTap)==null?void 0:Y.innertubeCommand;
var A,v;if(G==null?0:(A=G.menuEndpoint)==null?0:(v=A.menu)==null?0:v.menuRenderer)G.openPopupAction=G.menuEndpoint,G.openPopupAction.popup=G.openPopupAction.menu,G.openPopupAction.popup.menuPopupRenderer=G.openPopupAction.popup.menuRenderer,G.openPopupAction.popupType="DROPDOWN",delete G.menuEndpoint,delete G.openPopupAction.menu,delete G.openPopupAction.popup.menuRenderer}M&&(this.JSC$23356_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",M),K49(this))}};
UN.prototype.onCueRangeExit=function(M){M.startsWith("shopping_timely_shelf")&&(this.activeCueId=void 0,this.isSeeking||nz3(this))};
UN.prototype.onSeekComplete=function(){this.isSeeking=!1;ynW(this)};
var K49=function(M){M.shoppingTimelyShelfViewModel&&(M.isShelfVisible=!0,_.GC.getInstance().triggerAction("yt-show-shopping-timely-shelf"))},nz3=function(M){M.shoppingTimelyShelfViewModel&&(M.isShelfVisible=!1,_.GC.getInstance().triggerAction("yt-hide-shopping-timely-shelf"))},GwM=function(M){var q,G,K,n,E;
return _.L(function(p){if(p.nextAddress==1)return p.yield(M.JSC$23356_watchApi.playerApi,2);q=p.yieldResult;if(M.cueRanges)for(G=_.k(M.cueRanges),K=G.next();!K.done;K=G.next())n=K.value,n.id&&(E="shopping_timely_shelf"+n.id,q.removeCueRange(E));M.JSC$23356_watchApi.provideRenderingData("SHOPPING_TIMELY_SHELF",{});nz3(M);M.shoppingTimelyShelfViewModel=void 0;M.cueRanges=void 0;M.variantsMap=void 0;M.isSeeking=!1;M.activeCueId=void 0;_.gL(p)})};
UN.prototype.onAdStart=function(){this.isAdPlaying=!0;nz3(this)};
UN.prototype.onAdComplete=function(){this.isAdPlaying=!1;ynW(this)};
var ynW=function(M){if(M.activeCueId)M.onCueRangeEnter(M.activeCueId);else nz3(M)};var dbL=function(M){_.uI.call(this);var q=this;this.JSC$23363_watchApi=M;M=_.IQ(_.zw(),_.n7y,function(){L4t(q)});
this.addOnDisposeCallback(M);M=_.IQ(_.zw(),_.VEC,function(){L4t(q)});
this.addOnDisposeCallback(M);YXG(this);W4M(this);Ank()};
_.l(dbL,_.uI);var YXG=function(M){var q=function(K){_.zw().dispatch(_.SbC(K.matches))},G=window.matchMedia("(max-width: "+(999+_.lL())+"px)");
G.addListener(q);M.addOnDisposeCallback(function(){G.removeListener(q)});
q(G)},W4M=function(M){M.JSC$23363_watchApi.registerActionHandler("yt-window-resized",function(){Ank()});
M.addOnDisposeCallback(function(){M.JSC$23363_watchApi.unregisterActionHandler("yt-window-resized")})},Ank=function(){var M=_.kU();
_.zw().dispatch(_.RJ({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:M.width,height:M.height}}}))},L4t=function(M){var q;
_.L(function(G){if(G.nextAddress==1)return G.yield(M.JSC$23363_watchApi.playerApi,2);q=G.yieldResult;q.setSize(NaN,NaN);_.gL(G)})};var vzy=function(M){_.uI.call(this);var q=_.AL().resolve(_.ix);f_y(q,M.getElement("PLAYER_CONTAINER"),M.getElement("BELOW_THE_PLAYER"),M.getElement("SECONDARY"));this.addOnDisposeCallback(function(){var G=M.getElement("PLAYER_CONTAINER"),K=M.getElement("BELOW_THE_PLAYER"),n=M.getElement("SECONDARY");q.isLockupToWatchTransitionEnabled&&(G&&_.lh(q.viewTransitionCoordinator,G),K&&_.lh(q.viewTransitionCoordinator,K),n&&_.lh(q.viewTransitionCoordinator,n))})};
_.l(vzy,_.uI);_.xM=function(M){_.z0.call(this);var q=this;this.rootElement=M;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return q.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(G){q.initOrDisposeActiveModules(G)}));
this.onAttached()};
_.l(_.xM,_.z0);_.N=_.xM.prototype;_.N.getRoot=function(){return this.rootElement};
_.N.getElement=function(M){return this.rootElement.getElement(M)};
_.N.setPlayerResponse=function(M){this.playerResponse=M;this.publish("PLAYER_RESPONSE_UPDATED",M)};
_.N.getPlayerResponse=function(){return this.playerResponse};
_.N.setWatchNextResponse=function(M){this.watchNextResponse===M?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=M,this.publish("WATCH_NEXT_RESPONSE_UPDATED",M))};
_.N.getWatchNextResponse=function(){return this.watchNextResponse};
_.N.registerActionHandler=function(M,q){var G=this;if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var K={};_.KI(_.GC.getInstance(),(K[M]=q,K),this.getRoot())}else this.actionHandlers.has(M)||(this.actionHandlers.set(M,[]),K={},_.KI(_.GC.getInstance(),(K[M]=function(){var n=_.rW.apply(0,arguments);return(G.actionHandlers.get(M)||[]).map(function(E){return E.apply(null,_.Ui(n))})},K),this.getRoot())),this.actionHandlers.get(M).push(q)};
_.N.unregisterActionHandler=function(M){if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var q={};_.N6(_.GC.getInstance(),(q[M]=!0,q),this.getRoot())}else(q=this.actionHandlers.get(M))?(q.pop(),q.length===0&&(q={},_.N6(_.GC.getInstance(),(q[M]=!0,q),this.getRoot()),this.actionHandlers.delete(M))):_.j1(new _.bj("Attempted to unregister an action handler which is not registered.",M))};
_.N.addPageDisposeJob=function(M){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.B$H(this.rootElement.pageDisposeJobs,M)};
_.N.removePageDisposeJob=function(M){this.rootElement.pageDisposeJobs&&_.my(this.rootElement.pageDisposeJobs,M)};
_.N.dispatchEvent=function(M,q){_.jP(this.rootElement,M,q)};
_.N.provideRenderingData=function(M,q){this.rootElement.provideRenderingData(M,q)};
_.N.scrollWatchTo=function(M,q){var G;(G=this.watchScrollManager)==null||G.scrollWatchTo(M,q)};
_.N.focusOnPlayer=function(){var M=this.getElement("PLAYER");_.yb(M,function(){if(M&&M.firstElementChild){var q=M.querySelector(".html5-video-player");q&&(_.EW(_.AL().resolve(_.Lp)),q.focus())}else _.j1(Error("ap"))})};
_.N.subscribeToActiveChanged=function(M,q){q=q===void 0?!0:q;var G=_.IQ(_.zw(),_.mTv,function(K){M(K)});
q&&M(_.mTv(_.zw().getState()));return G};
_.N.isActive=function(){return _.mTv(_.zw().getState())};
_.N.onAttached=function(){var M=_.w("external_fullscreen");_.w("use_unified_flag_accessor")&&(M=_.AL().resolve(_.hyE).retriever.getFlag(_.OFI));(M||_.fX("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var hHL=function(M){return M.getRoot().is==="ytd-watch-flexy"||M.getRoot().is==="ytd-watch-grid"},zH=function(M){return M.getRoot().is==="ytd-watch-fixie"};
_.xM.prototype.initPersistentModules=function(){if(zH(this)||hHL(this)&&_.w("kevlar_watch_flexy_theater_manager")){var M=new _.hzk(this);_.oE(this,M)}M=new _.npC(this);_.oE(this,M);M=new _.Q9(this);_.oE(this,M);M=new _.MEA(this);_.oE(this,M);M=new _.Zm(this);_.oE(this,M);M=new _.IL(this);_.oE(this,M);if(zH(this)||hHL(this)&&_.w("kevlar_watch_flexy_playlist_manager"))M=new _.b7a(this),_.oE(this,M);_.w("web_thumbnail_to_watch_transition")&&(M=new vzy(this),_.oE(this,M))};
_.xM.prototype.initOrDisposeActiveModules=function(M){M?(this.watchScrollManager=new _.be(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.w8v(this)),_.w("web_enable_shopping_timely_shelf_client")&&this.activeModules.push(new UN(this)),this.activeModules.push(new _.OYk(this)),zH(this)&&this.activeModules.push(new dbL(this)),this.activeModules.push(new _.Tjv(this)),this.activeModules.push(new _.WbG(this)),(zH(this)||_.w("kevlar_watch_flexy_error_screen_data_provider"))&&
this.activeModules.push(new _.leL(this)),this.activeModules.push(new _.POG(this)),(zH(this)||_.w("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.jJt(this)),(zH(this)||_.w("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.Dhy(this)),_.w("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Uhk(this),this.activeModules.push(this.watchCinematicManager)),_.w("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.BjM(this)),_.w("kevlar_watch_flexy_gestures_manager")&&
this.activeModules.push(new _.GeC(this)),M=_.w("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.w("kevlar_watch_flexy_comments_manager")&&!M&&this.activeModules.push(new _.F33(this)),_.w("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.ZYv(this)),this.activeModules.push(new _.XFG(this)),this.activeModules.push(new _.a_k(this)),_.w("web_enable_timely_actions")&&this.activeModules.push(new _.gDy(this)),_.w("web_enable_player_creator_endscreen_manager")&&
this.activeModules.push(new _.eSk(this)),_.w("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.SUv(this)),_.w("web_fullscreen_components")&&this.activeModules.push(new _.ch9(this)),_.w("web_player_rtr_ctrls")&&this.activeModules.push(new _.sfC(this)),_.w("enable_creator_chatbot")&&this.activeModules.push(new $gv(this))):(_.yq(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.xM.prototype.disposeInternal=function(){_.z0.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Yd.Object.defineProperties(_.xM.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var uev,MV,J93,ZGt,Uae,xa9,bGv,zGt;uev=function(){var M=_.kp();M.info||(M.info={});return M.info};
MV=function(M){return Math.round(_.Yp()+M)};
J93=function(){var M;if(_.w("csi_use_performance_navigation_timing")){var q,G,K,n=_.L7==null?void 0:(M=_.L7.getEntriesByType)==null?void 0:(q=M.call(_.L7,"navigation"))==null?void 0:(G=q[0])==null?void 0:(K=G.toJSON)==null?void 0:K.call(G);n?(n.requestStart=MV(n.requestStart),n.responseEnd=MV(n.responseEnd),n.redirectStart=MV(n.redirectStart),n.redirectEnd=MV(n.redirectEnd),n.domainLookupEnd=MV(n.domainLookupEnd),n.connectStart=MV(n.connectStart),n.connectEnd=MV(n.connectEnd),n.responseStart=MV(n.responseStart),
n.secureConnectionStart=MV(n.secureConnectionStart),n.domainLookupStart=MV(n.domainLookupStart),n.isPerformanceNavigationTiming=!0,M=n):M=_.L7.timing}else M=_.w("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.L7.timing)):_.L7.timing;return M};
ZGt=function(){if(_.L7.getEntriesByType){var M=_.L7.getEntriesByType("paint");if(M=_.J4(M,function(G){return G.name==="first-paint"}))return MV(M.startTime)}var q;
_.w("csi_use_performance_navigation_timing")?q=_.L7.getEntriesByType("first-paint")[0].startTime:q=_.L7.timing.msFirstPaint;return q?Math.max(0,q):0};
Uae=function(){var M=window.location.protocol,q=_.L7.getEntriesByType("resource");q=_.jh(q,function(G){return G.name.indexOf(M+"//fonts.gstatic.com/s/")===0});
(q=bGv(q,function(G,K){return K.duration>G.duration?K:G}))&&q.startTime>0&&q.responseEnd>0&&(_.W8("wffs",MV(q.startTime)),_.W8("wffe",MV(q.responseEnd)))};
xa9=function(M,q){M=document.querySelector(M);if(!M)return!1;var G="",K=M.nodeName;K==="SCRIPT"?(G=M.src,G||(G=M.getAttribute("data-timing-href"))&&(G=window.location.protocol+G)):K==="LINK"&&(G=M.href);_.MX(document)&&M.setAttribute("nonce",_.MX(document));return G?(M=_.L7.getEntriesByName(G))&&M[0]&&(M=M[0],G=_.Yp(),_.W8("rsf_"+q,G+Math.round(M.fetchStart)),_.W8("rse_"+q,G+Math.round(M.responseEnd)),M.transferSize!==void 0&&M.transferSize===0)?!0:!1:!1};
_.maM=function(M,q){_.$2(function(){_.yQ("").info.actionType=M;q&&_.Vz("TIMING_AFT_KEYS",q);_.Vz("TIMING_ACTION",M);var G=_.Jre(_.R9("TIMING_INFO",{}));Object.keys(G).length>0&&_.A2(G);G={isNavigation:!0,actionType:_.awy(_.R9("TIMING_ACTION"))};var K=_.R9("PREVIOUS_ACTION");K&&(G.previousAction=_.awy(K));if(K=_.R9("CLIENT_PROTOCOL"))G.httpProtocol=K;if(K=_.R9("CLIENT_TRANSPORT"))G.transportProtocol=K;(K=_.Cx())&&K!=="UNDEFINED_CSN"&&(G.clientScreenNonce=K);K=_.u7j();if(K===1||K===-1)G.isVisible=!0;
K=_.ArF().loadType==="cold";var n=uev();K||(K=n.yt_lt==="cold");if(K){G.loadType="cold";K=uev();n=J93();var E=_.Yp(),p=_.R9("CSI_START_TIMESTAMP_MILLIS",0);p>0&&!_.w("embeds_web_enable_csi_start_override_killswitch")&&(E=p);E&&(_.W8("srt",n.responseStart),K.prerender!==1&&_.i14(E));K=ZGt();K>0&&_.W8("fpt",K);K=J93();K.isPerformanceNavigationTiming&&_.A2({performanceNavigationTiming:!0},void 0);_.W8("nreqs",K.requestStart,void 0);_.W8("nress",K.responseStart,void 0);_.W8("nrese",K.responseEnd,void 0);
K.redirectEnd-K.redirectStart>0&&(_.W8("nrs",K.redirectStart,void 0),_.W8("nre",K.redirectEnd,void 0));K.domainLookupEnd-K.domainLookupStart>0&&(_.W8("ndnss",K.domainLookupStart,void 0),_.W8("ndnse",K.domainLookupEnd,void 0));K.connectEnd-K.connectStart>0&&(_.W8("ntcps",K.connectStart,void 0),_.W8("ntcpe",K.connectEnd,void 0));K.secureConnectionStart>=_.Yp()&&K.connectEnd-K.secureConnectionStart>0&&(_.W8("nstcps",K.secureConnectionStart,void 0),_.W8("ntcpe",K.connectEnd,void 0));_.L7&&"getEntriesByType"in
_.L7&&Uae();K=[];if(document.querySelector&&_.L7&&_.L7.getEntriesByName)for(var y in zGt)zGt.hasOwnProperty(y)&&(n=zGt[y],xa9(y,n)&&K.push(n));if(K.length>0)for(G.resourceInfo=[],y=_.k(K),K=y.next();!K.done;K=y.next())G.resourceInfo.push({resourceCache:K.value})}_.A2(G);G=_.p7();G.preLoggedGelInfos||(G.preLoggedGelInfos=[]);y=G.preLoggedGelInfos;G=_.vNj();K=void 0;for(n=0;n<y.length;n++)if(E=y[n],E.loadType){K=E.loadType;break}if(_.ArF().loadType==="cold"&&(G.loadType==="cold"||K==="cold")){K=_.dCy();
n=_.p7();n=n.gelTicks?n.gelTicks:n.gelTicks={};for(var Y in K)if(!(Y in n))if(typeof K[Y]==="number")_.W8(Y,_.dj(Y));else if(_.w("log_repeated_ytcsi_ticks"))for(E=_.k(K[Y]),p=E.next();!p.done;p=E.next())p=p.value,_.W8(Y.slice(1),p);Y={};K=!1;y=_.k(y);for(n=y.next();!n.done;n=y.next())K=n.value,_.XH(G,K),_.XH(Y,K),K=!0;K&&_.A2(Y)}_.xCH(!0);Y=_.R9("TIMING_ACTION");_.sx("ytglobal.timingready_")&&Y&&_.fwY()&&_.UCj()&&_.IwH()})()};
bGv=function(M,q){return Array.prototype.reduce.call(M,q,{duration:0})};
zGt={'script[name="scheduler/scheduler"]':"sj",'script[name="player/base"]':"pj",'link[rel="preload"][name="player/embed"]':"pej",'link[rel="stylesheet"][name="www-player"]':"pc",'link[rel="stylesheet"][name="player/www-player"]':"pc",'script[name="desktop_polymer/desktop_polymer"]':"dpj",'link[rel="import"][name="desktop_polymer"]':"dph",'script[name="mobile-c3"]':"mcj",'link[rel="stylesheet"][name="mobile-c3"]':"mcc",'script[name="player-plasma-ias-phone/base"]':"mcppj",'script[name="player-plasma-ias-tablet/base"]':"mcptj",
'link[rel="stylesheet"][name="mobile-polymer-player-ias"]':"mcpc",'link[rel="stylesheet"][name="mobile-polymer-player-svg-ias"]':"mcpsc",'script[name="mobile_blazer_core_mod"]':"mbcj",'link[rel="stylesheet"][name="mobile_blazer_css"]':"mbc",'script[name="mobile_blazer_logged_in_users_mod"]':"mbliuj",'script[name="mobile_blazer_logged_out_users_mod"]':"mblouj",'script[name="mobile_blazer_noncore_mod"]':"mbnj","#player_css":"mbpc",'script[name="mobile_blazer_desktopplayer_mod"]':"mbpj",'link[rel="stylesheet"][name="mobile_blazer_tablet_css"]':"mbtc",
'script[name="mobile_blazer_watch_mod"]':"mbwj",'script[name="embed_client"]':"ecj",'link[rel="stylesheet"][name="embed-ui"]':"ecc"};var SAC={};SAC.YtVisibilityRootBehavior=[_.YmI.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.ka(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.R9("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var M=_.R9("INNERTUBE_CLIENT_NAME")!=="WEB";_.w("kevlar_use_vimio_behavior")&&M&&_.IW8()}}];_.qV={};_.qV.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(M){M.detail.contextProvider=this;M.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
SAC.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.u8();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(M){var q=this;this.pageCount+=1;_.w("kevlar_use_vimio_behavior")&&(_.R9("INNERTUBE_CLIENT_NAME")==="WEB"?_.r8.addJob(function(){q.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(M)},
loadPage_:function(M){this.data=M},
ytPageBehaviorActiveObserver_:function(M){var q=this;_.w("kevlar_use_vimio_behavior")&&(M?_.R9("INNERTUBE_CLIENT_NAME")==="WEB"?_.r8.addJob(function(){q.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(M){if(!this.setScrollTopJobId_){var q=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){q.setScrollTopJobId_=0;var G=_.AL().resolve(_.WR(_.Lp));G&&_.EW(G);this.getPageScrollingElement().scrollTop=M}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.o5(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var DaW;var ss=function(){var M=_.Q.apply(this,arguments)||this;M.playerListenerConfig=null;M.actionMap={"yt-show-watch-page-survey":"openSurvey"};return M};
_.l(ss,_.Q);_.N=ss.prototype;_.N.dataChanged=function(){var M=this,q=_.TM();q&&q.getPlayerPromise().then(function(K){M.maybeRemovePlayerListeners(K)});
var G=this.data&&this.data.survey;G&&((G=(G=G.singleOptionSurveyRenderer||G.checkboxSurveyRenderer||G.multiStageSurveyRenderer)&&G.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(q,G):this.openSurvey())};
_.N.triggerWatchPageSurvey=function(M,q){var G=this,K,n,E,p,y,Y,A,v,h;return _.L(function(t){if(t.nextAddress==1)return M?t.yield(M.getPlayerPromise(),2):t.return();G.player=t.yieldResult;if(!G.player)return t.return();K={};n=_.k(q);for(E=n.next();!E.done;E=n.next())p=E.value,y=_.k(G.createEventListenerPair(p)),Y=y.next().value,A=y.next().value,v=Y,h=A,v&&h&&(K[v]=h,G.ytPlayerListenerBehavior.listenToPlayerEvent(G.player,v,h));G.playerListenerConfig=K;_.gL(t)})};
_.N.createEventListenerPair=function(M){var q=M.playbackEventTrigger;return q?this.handlePlaybackTrigger(q):(M=M.watchTimeTrigger)?this.handleWatchTimeTrigger(M):[void 0,void 0]};
_.N.handleWatchTimeTrigger=function(M){var q=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var G=M.videoWatchFraction,K=M.watchTimeSec;return K&&G?["onVideoProgress",function(){q.player&&q.isWatchTimeConditionMet(q.player,G,K)&&q.showSurvey()}]:[void 0,
void 0]};
_.N.isWatchTimeConditionMet=function(M,q,G){var K=M.getProgressState(),n=K.current-this.lastKnownPlaybackPosition;n<5&&(this.accumulatedMediaTime+=n);this.lastKnownPlaybackPosition=K.current;K=Math.round(this.accumulatedMediaTime/K.duration*1E3)/1E3;return M.getPresentingPlayerType&&M.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>G||K>q)};
_.N.handlePlaybackTrigger=function(M){var q=this;M=M.playbackEvent;if(M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var G="onStateChange";var K=function(n){n===0&&q.showSurvey()}}else M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(G="onVideoProgress",K=function(n){q.player&&q.player.getPresentingPlayerType&&q.player.getPresentingPlayerType()===1&&n&&q.showSurvey()}):M==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(G="onAdEnd",K=this.showSurvey);
return[G,K]};
_.N.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.N.openSurvey=function(){var M=this,q=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.H_R(!!q));_.r8.addJob(function(){M.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:q}})},0,0)};
_.N.maybeRemovePlayerListeners=function(M){if(this.playerListenerConfig){for(var q=_.k(Object.keys(this.playerListenerConfig)),G=q.next();!G.done;G=q.next())G=G.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(M,G,this.playerListenerConfig[G]);this.playerListenerConfig=null}};
ss.prototype.dataChanged=ss.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],ss.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],ss.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ss.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],ss.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ss.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],ss.prototype,"playerListenerConfig",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],ss.prototype,"lastKnownPlaybackPosition",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],ss.prototype,"accumulatedMediaTime",void 0);_.T([_.B(),_.r("design:type",Object)],ss.prototype,"player",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ss.prototype,"dataChanged",null);_.T([_.b({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],ss);
_.z(ss,"ytd-survey-trigger-renderer",function(){if(DaW!==void 0)return DaW;var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return DaW=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
var aCk=new _.e0("replaceFeedContentAction");var oCC;var lCM;var XtM=function(){return _.Q.apply(this,arguments)||this};
_.l(XtM,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],XtM.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],XtM.prototype,"data",void 0);_.T([_.b({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],XtM);
_.z(XtM,"ytd-sub-feed-option-renderer",function(){if(lCM!==void 0)return lCM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return lCM=M},{mode:1});var Pyv;var VD=function(){return _.Q.apply(this,arguments)||this};
_.l(VD,_.Q);VD.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],VD.prototype,"ytRendererStamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],VD.prototype,"data",void 0);_.T([_.b({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],VD);
_.z(VD,"ytd-sub-feed-selector-renderer",function(){if(Pyv!==void 0)return Pyv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Pyv=M},{mode:1});var Rj=function(){return _.Q.apply(this,arguments)||this};
_.l(Rj,_.Q);
Rj.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}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Rj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Rj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Rj.prototype,"data",void 0);_.T([_.b({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Rj);
_.z(Rj,"ytd-browse-feed-actions-renderer",function(){if(oCC!==void 0)return oCC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return oCC=M},{mode:1});var iGk;var c9G;var fc=function(){return _.Q.apply(this,arguments)||this};
_.l(fc,_.Q);fc.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],fc.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],fc.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fc.prototype,"data",void 0);_.T([_.b({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],fc);
_.z(fc,"ytd-mini-channel-renderer",function(){if(c9G!==void 0)return c9G;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return c9G=M},{mode:1});var gC9;var Fj=function(){return _.Q.apply(this,arguments)||this};
_.l(Fj,_.Q);Fj.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Fj.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Fj.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Fj.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],Fj);
_.z(Fj,"ytd-vertical-channel-section-renderer",function(){if(gC9!==void 0)return gC9;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return gC9=M},{mode:1});var H0=function(){return _.Q.apply(this,arguments)||this};
_.l(H0,_.Q);H0.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],H0.prototype,"data",void 0);_.T([_.b({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],H0);
_.z(H0,"ytd-browse-secondary-contents-renderer",function(){if(iGk!==void 0)return iGk;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return iGk=M},{mode:1});var BWk;var en=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};M.notActive=!1;M.isConstrainedList=!1;M.marginSettings=0;return M};
_.l(en,_.Q);_.N=en.prototype;
_.N.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(M){var q;return(M==null?void 0:(q=M.webComponentHint)==null?void 0:q.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}}}}};
_.N.getPath=function(M,q){var G="data.tabs.#"+q+".";M.tabs[q].tabRenderer?G+="tabRenderer.":M.tabs[q].expandableTabRenderer&&(G+="expandableTabRenderer.");return G+"content.sectionListRenderer"};
_.N.computeDisplayedContent=function(M){this.unlinkPaths("content");if(M&&M.tabs)for(var q=M.tabs.length,G=0;G<q;G++){var K=M.tabs[G].tabRenderer||M.tabs[G].expandableTabRenderer;if(K.selected&&K.content)return this.linkPaths("content",this.getPath(M,G)),K.content}return null};
_.N.computeHasSecondaryColumnData=function(M){return!!M&&!!M.secondaryContents};
_.N.onRetrieveLocation=function(M,q){q.locationRetrieved(q.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);M.stopPropagation()};
_.N.onYtServiceRequestSent=function(M,q){_.w("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(q)};
_.N.onYtServiceRequestCompleted=function(M,q){_.w("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(q)};
_.N.onReplaceFeedContentAction=function(M){if(!_.w("replace_feed_content_action_killswitch")&&!this.notActive){var q;(M=(q=_.C(M,aCk))==null?void 0:q.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(M)}};
_.N.handleServiceRequestActions=function(M){if(M=M.actions){M=_.k(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;var G=void 0;((G=_.C(q,aCk))==null?0:G.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.C(q,aCk).items)}}};
en.prototype.onYtServiceRequestCompleted=en.prototype.onYtServiceRequestCompleted;en.prototype.onYtServiceRequestSent=en.prototype.onYtServiceRequestSent;en.prototype.onRetrieveLocation=en.prototype.onRetrieveLocation;_.T([_.P(_.jr),_.r("design:type",Object)],en.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],en.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],en.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],en.prototype,"data",void 0);_.T([_.B({computed:"computeDisplayedContent(data)"}),_.r("design:type",Object)],en.prototype,"content",void 0);
_.T([_.B({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],en.prototype,"hasSecondaryColumnData",void 0);_.T([_.B({value:function(){return window.outerHeight>1024?3:2}}),
_.r("design:type",Number)],en.prototype,"initialCount",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],en.prototype,"pageSubtype",void 0);_.T([_.ET("ytd-section-list-renderer"),_.r("design:type",Object)],en.prototype,"listRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],en.prototype,"notActive",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],en.prototype,"isConstrainedList",void 0);
_.T([_.B(),_.r("design:type",String)],en.prototype,"responsiveSizing",void 0);_.T([_.B(),_.r("design:type",Number)],en.prototype,"marginSettings",void 0);_.T([_.GQ("yt-retrieve-location"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],en.prototype,"onRetrieveLocation",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],en.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],en.prototype,"onYtServiceRequestCompleted",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],en);
_.z(en,"ytd-two-column-browse-results-renderer",function(){if(BWk!==void 0)return BWk;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return BWk=M},{mode:2});
}catch(e){_._DumpException(e)}
try{
var KaC=function(M){if((M==null?void 0:M.value)===void 0||M==null||!M.unit)return"initial";a:{switch(M.unit){case "SHOPPING_DIMENSION_UNIT_POINT":var q="px";break a;case "SHOPPING_DIMENSION_UNIT_FRACTION":q="%";break a}q=void 0}return q?""+M.value+q:"initial"};_.S5(_.U(function(M){var q=M.data;M=_.k(_.lQ(!1,void 0,"leWY9b"));var G=M.next().value,K=M.next().value;_.SK(function(){_.GC.getInstance().triggerAction("yt-request-timely-shelf-state")});
_.KI(_.GC.getInstance(),{"yt-hide-shopping-timely-shelf":function(){K(!1)},
"yt-show-shopping-timely-shelf":function(){requestAnimationFrame(function(){K(!0)})}});
var n=function(){var E;return((E=q().image)==null?void 0:E.height)||40};
M={};return _.W("yt-shopping-timely-shelf-content-view-model",{el:_.bm(_.CL(function(){return q().rendererContext})),
class:_.Hb("ytShoppingTimelyShelfContentViewModelHost",(M.ytShoppingTimelyShelfContentViewModelIsVisible=function(){return!!(q().image||q().avatar||q().line1)&&G()},M)),
style:_.Kp({"--shopping-timely-shelf-content-padding-top":function(){var E;return KaC((E=q().padding)==null?void 0:E.top)},
"--shopping-timely-shelf-content-padding-bottom":function(){var E;return KaC((E=q().padding)==null?void 0:E.bottom)},
"--shopping-timely-shelf-content-padding-start":function(){var E;return KaC((E=q().padding)==null?void 0:E.start)},
"--shopping-timely-shelf-content-padding-end":function(){var E;return KaC((E=q().padding)==null?void 0:E.end)},
"--yt-shopping-timely-shelf-background-color":function(){return q().backgroundColor!==void 0?_.C_(q().backgroundColor):"initial"},
"--yt-shopping-timely-shelf-image-corner-radius":function(){var E,p;return((p=(E=q().image)==null?void 0:E.cornerRadius)!=null?p:0)+"px"}})},_.W(_.d,{cond:function(){var E;
return(E=q().image)==null?void 0:E.image},
then:function(E){return _.W(_.Jj,{preserveHeight:!0,preserveWidth:!0,height:n,data:E,alt:"",className:"ytShoppingTimelyShelfContentViewModelImage"})}}),_.W(_.yu,{data:function(){return q().avatar}},{avatarViewModel:_.zo}),_.W("div",{class:"ytShoppingTimelyShelfContentViewModelText"},_.W(_.yu,{data:function(){return q().line1}},{shoppingContentLineViewModel:function(E){return _.W(_.ey,{data:E.data})}}),_.W(_.yu,{data:function(){return q().line2}},{shoppingContentLineViewModel:function(E){return _.W(_.ey,
{data:E.data})}})),_.W("div",{class:"ytShoppingTimelyShelfContentViewModelButtons"},_.W(_.yu,{data:function(){var E;
return(E=q().button)!=null?E:[]}},{buttonViewModel:function(E){var p=E.data;
return _.W(_.Wf,{data:p,className:"ytShoppingTimelyShelfContentViewModelButton",onClick:function(y){p().onTap&&y.stopPropagation()}})}})))},"co"),"yt-shopping-timely-shelf-content-view-model",{props:{data:_.Hz}});_.nUA={};
_.nUA.YtdWatchBehavior=[_.F.YtRendererBehavior,_.$S.YtPlayerListenerBehavior,_.EH.YtRendererstamperBehavior,_.wg.YtActionHandlerBehavior,_.qV.YtPageBehavior,_.OH.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},shoppingTimelyShelf:{type:Object,computed:"getShoppingTimelyShelf(data, shoppingTimelyShelfValue)"},offerModule:{type:Object},
engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},shoppingTimelyShelfValue:{type:Object},conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,
computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},
theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.fX("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.w("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 _.fX("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 _.w("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.w("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 _.tL("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.tL("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)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.w("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.w("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.w("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("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 _.w("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);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var M={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:_.vZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.vZ(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},
"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.w("swa_prov_panels_ks")?M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}:(M.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},M.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return M},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-set-playlist-collapsed":"onSetPlaylistCollapsed","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var M=this;this.watchController=void 0;this.pageDisposeJobs=[function(){M.showMetadataPlaceholder_()},
function(){_.w("web_watch_dont_clear_comments")||M.clearComments_()},
function(){M.clearPlayerAds_()},
function(){M.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.w("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.w("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=
!1);this.youThereManager_=new _.TzW(function(){return _.Sc(M)},this.hostElement);
this.pageDisposeJobs.push(function(){M.youThereManager_.reset()});
_.w("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){M.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.Yt;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;_.w("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));_.w("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.qs(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(M){M&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:M}),M.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(M){_.w("kevlar_watch_flexy_theater_manager")&&(this.theater=M,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(M){!_.w("kevlar_watch_while_v2")&&!_.w("web_watch_pip")||M||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(M){this.active!==void 0&&(this.fullscreen=M,_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(M){this.active!==void 0&&(_.jP(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(M>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(M){this.initCsi_();this.updatePageData_(M)},
updatePageData_:function(M){var q=this;if(M)if(this.data===M){this.onPageLoadWithSameData_();var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)}else this.data=M;this.playlist&&_.t2({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.oJ("nw");this.loading=!1;_.Jp(_.r8,function(){q.initDclkstatus_();var K,n=((K=q.player)==null?void 0:K.getVideoData().cpn)||"";_.cnC(function(E,p){_.nAP(E,p,n)})})},
onPageLoadWithSameData_:function(){_.w("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 M=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!M);this.set("loadingData.playlistLoading",M&&M!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),M=this.watchNextSkeletonEl_.firstElementChild;M;)M.classList.remove("hidden"),M=M.nextElementSibling;if(_.w("kevlar_watch_frame0_loading_state")){var q,G,K;M=(q=this.loadingData)==null?void 0:(G=q.endpoint)==null?void 0:(K=G.watchEndpoint)==null?void 0:K.videoId;var n;M&&(n="https://i.ytimg.com/vi/"+M+"/frame0.jpg");_.f_(this.hostElement).querySelector("#player").style.backgroundImage=n?"url("+n+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var M=_.f_(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&M&&(M.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var q,G;(G=(q=this.watchMetadata).updateSentimentBarWidth)==
null||G.call(q);var K,n;(n=(K=this.watchMetadata).resize)==null||n.call(K)}_.w("kevlar_watch_frame0_loading_state")&&(_.f_(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(M){var q=_.f_(this.hostElement).querySelector(M);q?_.Tt(q,!1):_.j1(new _.bj("Overscroll monitor not found for component: ",M))},
removeSplitScrollMouseTrap:function(M){var q=_.f_(this.hostElement).querySelector(M);q?_.rt(q):_.j1(new _.bj("Disposal component for  overscroll monitoring not found: ",M))},
onLoadingChanged_:function(M){M?this.setLoadingState_():this.clearLoadingState_()},
setPlayerLoadingState_:function(){this.playerLoading_||(this.playerLoading_=!0,_.w("web_thumbnail_to_watch_transition")&&!_.bD8||this.hostElement.classList.add("loading-player"))},
clearPlayerLoadingState_:function(){this.playerLoading_&&(this.playerLoading_=!1,_.w("web_thumbnail_to_watch_transition")&&!_.bD8||this.hostElement.classList.remove("loading-player"))},
toggleBodyScrolling_:function(M){var q=this;M?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.r8.addLowPriorityJob(function(){q.onWindowResized_(_.kU(!0))})},
updateTheaterModeState_:function(M){if(!_.w("kevlar_watch_flexy_theater_manager")){M=M||this.fullWindowMode_;if(this.theater!==void 0||M)this.theater=M;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();M&&_.jYC()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation();this.updateErrorScreenLocation()},
updatePlayerLocation:function(){var M=this.fullBleedPlayer?_.f_(this.hostElement).querySelector("#player-full-bleed-container"):_.f_(this.hostElement).querySelector("#player-container-inner");var q=this.getPlayerContainer(),G=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip");q.parentElement!==M&&(G&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():_.Sc(this).appendTo(M,q))},
updateErrorScreenLocation:function(){var M=_.f_(this.hostElement).querySelector("#error-screen"),q=this.fullBleedPlayer?_.f_(this.hostElement).querySelector("#player-full-bleed-container"):_.f_(this.hostElement).querySelector("#player");M.parentElement!==q&&q.appendChild(M)},
deactivateMiniplayerAndResetPlayer:function(){var M=this;return _.L(function(q){if(q.nextAddress==1)return q.yield(_.AL().resolve(_.lq).deactivate(),2);M.updatePlayerLocation();_.gL(q)})},
updateCinematicsLocation:function(){var M=this.getElement("CINEMATICS");if(M){var q=this.getCinematicsLocationContainer();M.parentElement!==q&&q.appendChild(M)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInFullBleedContainer(this.theater&&!this.fullscreen,this.fullscreen,this.isSingleColumn)?_.f_(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.f_(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInFullBleedContainer:function(M,q,G){var K=document.documentElement.hasAttribute("dark"),n=K&&_.w("web_cinematic_theater_mode"),E=K&&_.w("web_cinematic_fullscreen");K=!K&&this.cinematicLightTheme;return G||M&&n||q&&E||(q||M)&&K},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var M=this,q;(q=this.watchController)==null||q.setWatchNextResponse(this.data);_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.AL().resolve(_.$x).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.w("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.r8.addLowPriorityJob(function(){_.Rf(M.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.w("web_watch_start_chat_in_theater_mode")){var G,K,n;if((G=this.data)==null?0:(K=G.contents)==null?0:(n=K.twoColumnWatchNextResults)==null?0:n.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var E,p;((E=this.data)==null?0:(p=E.contents)==null?0:p.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(M){var q;(q=this.watchController)==null||q.setPlayerResponse(this.playerData);M&&M.playabilityStatus&&(q=this.isVideoPlayable_(M.playabilityStatus,this.getPlayerOverlays_(this.data)),M=this.isLiveStreamOffline_(M.playabilityStatus),q&&!M||_.yb(this,function(){_.oJ("pbu")}));
this.setPlayerAds_();_.Rf(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(M,q){if((_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"))&&this.playerData&&q)return this.playerData.videoDetails},
watchPageActiveChanged_:function(M){_.zw().dispatch(_.Fb3(this.active));M?this.activate_():this.deactivate_()},
attached:function(){var M=this;this.watchController=new _.xM(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);_.w("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var q=_.Sc(this);_.w("kevlar_disable_prepare_player")||
q.preparePlayer();_.w("kevlar_watch_flexy_playlist_manager")||_.AL().resolve(_.$x).setPlayer(q);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();q={"--ytd-watch-flexy-scrollbar-width":_.lL()+"px"};this.is==="ytd-watch-grid"&&(_.zw().dispatch(_.RJ({type:"SET_IS_SWATCHEROO_ACTIVE",payload:{isSwatcherooActive:!0}})),q["--ytd-watch-flexy-sidebar-width"]=_.uN3+"px",q["--ytd-watch-grid-horizontal-page-margins"]=_.u1+"px",q["--ytd-watch-grid-columns-top-margins"]=
_.Quk+"px",q["--ytd-watch-grid-min-player-height-medium"]="360px");!_.tL("kv_pl_mx_sz_ks")&&_.tL("kevlar_watch_max_player_width")&&(q["--ytd-watch-flexy-max-player-width-wide-screen"]=_.JLA+"px");_.tL("kevlar_watch_flexy_metadata_height")&&(q["--ytd-watch-flexy-space-below-player"]=_.ZDG+"px");this.safeUpdateStyles(q);_.w("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.kV(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return M.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.f_(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var M=_.lL(),q=_.JF+M,G=q;this.fixedPanels&&(q+=_.uN3);var K=657+M;M=1327+M;_.f_(this.hostElement).querySelector("#two-column-query").query="(min-width: "+q+"px)";_.f_(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(K+"px), (min-height: 630px) and (min-width: ")+(q+"px) and (max-width: ")+(M+"px)");_.f_(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(M+"px)");
_.f_(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+G+"px)";this.isTwoColumnsInitialized=!0},
calculateCurrentPlayerSize_:function(){var M=_.f_(this.hostElement).querySelector("#miniplayer-bar").firstChild,q=this.squeezeback&&!_.w("web_watch_squeezeback_player_size_killswitch");return M&&M.active||this.theater||_.w("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||q||!this.active||!this.windowSize_||this.fullBleedPlayer?new _.cc(NaN,NaN):_.Dbk(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Dbk(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ka(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var M=this;this.onWindowResized_(_.kU());_.w("browse_skeleton_removal_on_watch_killswitch")||_.fX("IS_SHELL_LOAD")&&_.ICe();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var q=_.Sc(this);q.addEventListener("yt-player-updated",_.qs(this,this.onPlayerUpdated_));q.getPlayerPromise().then(function(G){M.playerApiReady_(G)});
_.w("kevlar_watch_flexy_playlist_manager")||(q=_.AL().resolve(_.$x),_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&q.addEventListener("yt-navigate",_.qs(this,this.onYtNavigate_)),q.setPlaylistComponent(_.f_(this.hostElement).querySelector("#playlist")),q.addEventListener("yt-playlist-data-updated",_.qs(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.r8.addLowPriorityJob(function(){_.jP(M.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Sc(this).removeEventListener("yt-player-updated",_.qs(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.w("kevlar_watch_flexy_playlist_manager")){var M=_.AL().resolve(_.$x);_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&M.removeEventListener("yt-navigate",_.qs(this,this.onYtNavigate_));
M.cancelVideoSkip();M.removeEventListener("yt-playlist-data-updated",_.qs(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.jP(this.hostElement,"yt-autonav-pause-player",!1);M=_.m3();_.w("kevlar_exit_fullscreen_leaving_watch")&&M&&_.SP(M)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(M){this.player&&this.player.updateVideoData({rvs:M.rvs})},
getPageContents:function(M){return M&&M.contents&&M.contents.twoColumnWatchNextResults&&M.contents.twoColumnWatchNextResults.results&&M.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getShoppingTimelyShelf:function(){return this.shoppingTimelyShelfValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(M){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",M)},
onRetrieveLocation_:function(M,q){q.hasComments?q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):q.locationRetrieved("/related_ajax",void 0);M.stopPropagation()},
onSubscriptionChanged_:function(M,q){this.player&&(q?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.maM("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.f_(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.f_(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(M){this.player=M;this.setPlayerState(M.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.w("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.w("kevlar_unified_player")||_.w("kevlar_player_new_bootstrap_adoption"))&&_.i_()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(M,q){q=q===void 0?!0:q;_.m3()&&_.w("external_fullscreen")&&_.SP(document.documentElement);this.theaterRequested_=M;q&&_.Df("wide",M?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.VW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.jP(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(M){_.V2(M,typeof this.player),this.player&&_.V2(M,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var M;((M=this.player)==null?0:M.isFullscreen())?this.player.toggleFullscreen():_.VW(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(M,q){return this.loading?q:!!Object.keys(M).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(M){if(M){M=_.k(M);for(var q=M.next();!q.done;q=M.next())q=q.value,q.youThereRenderer&&_.Vga(this.youThereManager_,q.youThereRenderer)}},
setPlaylistData_:function(M){return M||{}},
userEngagementConfigDataChanged_:function(M){if(M)if(M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var q=this.youThereManager_;_.Ap()<M.lowEngagementThresholdMs||_.HK9(q,!0)}else M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.VW(this.hostElement,"yt-autonav-pause-user-engagement",[M])},
isPlayerUnavailable_:function(M,q,G){return!!M&&!this.isVideoPlayable_(M,G)&&!q},
getPlayerOverlays_:function(M){return(M==null?void 0:M.playerOverlays)||null},
isVideoPlayable_:function(M,q){if(!M)return!1;var G=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",K=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",M)||this.get("errorScreen.ypcTrailerRenderer",M);M=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",M);var n;q=q==null?void 0:(n=q.playerOverlayRenderer)==null?void 0:n.gatedActionsOverlayRenderer;return!!G||!!K||!!M||!!q},
hasWatchNextResponseErrorRenderer:function(M){var q=this.getPageContents(M),G,K,n,E,p;return!(M==null?0:(G=M.contents)==null?0:(K=G.twoColumnWatchNextResults)==null?0:K.secondaryResults)&&!!((n=q[0])==null?0:(E=n.itemSectionRenderer)==null?0:(p=E.contents[0])==null?0:p.backgroundPromoRenderer)},
isLiveStreamOffline_:function(M){return M?M.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(M,q,G){var K=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q),n=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];n=_.w("web_no_skip_video_on_verification_checks")?(M==null?void 0:M.status)&&n.includes(M.status):M&&M.status==="AGE_CHECK_REQUIRED";var E=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",M);E==void 0&&(E=!0);!G||this.isVideoPlayable_(M,this.getPlayerOverlays_(q))||
K||n||!E||_.AL().resolve(_.$x).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.JnL()},
onPlayerFeedbackStartRequest_:function(M){_.VW(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:M}])},
onPlayerFeedbackArticleRequest_:function(M){_.VW(this.hostElement,"yt-help-dialog-requested",[M])},
onPlayerYpcContentRequest_:function(){var M,q,G,K,n,E,p,y,Y=((M=this.data)==null?NaN:(q=M.contents)==null?NaN:(G=q.twoColumnWatchNextResults)==null?NaN:(K=G.secondaryResults)==null?NaN:(n=K.secondaryResults)==null?NaN:(E=n.offerModule)==null?NaN:(p=E.tvfilmOfferModuleRenderer)==null?NaN:(y=p.actionButtons)==null?NaN:y.length)-1;M=[".offerButton.buttonRenderer.",".actionButtons."+(Y>=0?Y:0)+".buttonRenderer."];q=_.k(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(G=q.next();!G.done;G=q.next())for(G=G.value,K=_.k(M),n=K.next();!n.done;n=K.next())if(n="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+G+n.value,n=this.get(n+"navigationEndpoint",this.data)||this.get(n+"serviceEndpoint",this.data)||this.get(n+"command",this.data)){_.sE(n,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(M){_.jP(this.hostElement,"yt-autonav-pause-player",M)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(M){M()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.jP(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(M)},
setPlayerState:function(M){_.zw().dispatch(_.HMP(M))},
onPlayerSubscribe_:function(M){_.VW(this.hostElement,"yt-player-subscribe",[M])},
onPlayerUnsubscribe_:function(M){_.VW(this.hostElement,"yt-player-unsubscribe",[M])},
onPlayerAdYtShowToast_:function(M){_.VW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:M.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(M){if(M)return M},
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(M){return!_.w("web_watch_move_summary_to_sd")&&!!M},
computeWatchMetadataRefresh:function(){return _.w("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.w("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var M,q,G,K;this.watchNextSecondaryResults=(M=this.data)==null?void 0:(q=M.contents)==null?void 0:(G=q.twoColumnWatchNextResults)==null?void 0:(K=G.secondaryResults)==null?void 0:K.secondaryResults}},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var M,q=(M=this.data)==null?void 0:M.engagementPanels;if(q==null?0:q.length){M=null;q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;var K=void 0;if(((K=G.engagementPanelSectionListRenderer)==null?void 0:K.targetId)==="engagement-panel-structured-description"){M=G;break}}var n,E,p;M=(n=M)==null?void 0:(E=n.engagementPanelSectionListRenderer)==null?void 0:(p=E.content)==null?void 0:p.structuredDescriptionContentRenderer;if(M==null?0:M.items){n=
[];E=_.k(M.items);for(p=E.next();!p.done;p=E.next()){p=p.value;if(!_.w("sd_horizontal_list_show_nav_killswitch")){var y=K=G=q=M=void 0,Y=void 0,A=(M=p.horizontalCardListRenderer)==null?void 0:(q=M.header)==null?void 0:(G=q.richListHeaderRenderer)==null?void 0:(K=G.navigationButton)==null?void 0:(y=K.buttonRenderer)==null?void 0:(Y=y.command)==null?void 0:Y.commandExecutorCommand;A&&A.commands&&(A.commands=A.commands.filter(function(v){return!_.C(v,_.FTG)}))}(!p.expandableVideoDescriptionBodyRenderer&&
!p.videoDescriptionHeaderRenderer||_.w("web_delhi_colorful_sd"))&&n.push(p)}return{items:n}}}},
constructWarning_:function(M){return{text:_.bc(M),type:"WARNING"}},
isPlaShelfEnabled_:function(M){if((this.get("adPlacements",M)||[]).length)return!0;M=this.get("playerAds",M)||[];return!(!M.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",M[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var M=this;_.jP(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var q=this.getScrollTop()>0;this.gestures_&&(q?this.gestures_.detach():this.gestures_.attach());q!==this.showFullerscreenEdu_&&_.w("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=q,_.Sc(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonVisibility(M.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.jP(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var M=this;this.commentsReady=!1;_.r8.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Jp(_.r8,function(){M.setComments_()},1E3)},
setComments_:function(){if(!_.w("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.oJ("cmi");_.r8.cancelJob(this.setCommentsJobId_);var M=this.getPageContents(this.data);if(M&&M.length){M=_.k(M);for(var q=M.next();!q.done;q=M.next())if(q=q.value,this.get("itemSectionRenderer.sectionIdentifier",q)==="comment-item-section"){this.comments=q.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.jP(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.oJ("cmc")},
doRemoveComments_:function(){this.comments={};_.w("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.r8.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.r8.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(M,q){var G=_.C(q.endpoint,_.Jl);G&&(!(q=this.get("data.currentVideoEndpoint.watchEndpoint"))||G.videoId!==q.videoId||G.playlistId&&G.playlistId!==q.playlistId||G.index!==void 0&&G.index!==q.index||typeof G.startTimeSeconds!=="number"||(M.stopPropagation(),this.setScrollTop(0),_.Sc(this).getPlayerPromise().then(function(K){var n=G.startTimeSeconds;K.seekTo(n);K.wakeUpControls();n<K.getDuration()&&K.playVideo()})))},
updatePlayerStartTime_:function(){var M=_.OKG();"t"in M&&(M=_.upC(M.t),this.player.seekTo(M,!0))},
updateTitleFromWatchNext:function(M){M=this.getPageContents(M);var q,G;(M=_.UX(M==null?void 0:(q=M[0])==null?void 0:(G=q.videoPrimaryInfoRenderer)==null?void 0:G.title))&&_.jP(this.hostElement,"yt-update-title",M)},
updateTitle_:function(M){M=this.get("videoDetails.title",M)||"";_.jP(this.hostElement,"yt-update-title",M)},
syncWithRemoteVideo_:function(M,q,G){if(this.active&&this.player){var K=this.player.getVideoData();if(K.video_id===G&&(G=K.list,_.w("polymer_enable_mdx_queue")&&G&&G.startsWith("RQ")&&(G=void 0),K.video_id!==M||G!=q)){var n;_.w("kevlar_player_watch_endpoint_navigation")?n=_.TSe(_.gzG(M,q)):n=this.buildWatchEndpoint_(M,q);_.jP(this.hostElement,"yt-navigate",{endpoint:n,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(M,q,G){return _.Te(M,q,G)},
initDclkstatus_:function(){_.ISC()},
attachWatchPageSkeleton_:function(){var M=document.querySelector("#watch-page-skeleton");if(M){var q=M.querySelector("#primary-info"),G=M.querySelector("#secondary-info"),K=M.querySelector("#related");q&&_.f_(this.hostElement).querySelector("#info-skeleton").appendChild(q);G&&_.f_(this.hostElement).querySelector("#meta-skeleton").appendChild(G);K&&(_.f_(this.hostElement).querySelector("#related-skeleton").appendChild(K),this.watchNextSkeletonEl_=K);_.cX(M)}},
handlePlayerUpdated_:function(){_.Sc(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(M,q){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof q!=="undefined"){var G=this.watchNextSkeletonEl_.children,K=M&&M.indexSplices.length?M.indexSplices[0].index:0;M=Math.min(this.watchNextShownItems.length,G.length);q||(K=0,M=G.length);for(q=K;q<M;q++)G[q].classList.add("hidden")}},
onPlayerFullscreenChange_:function(M){_.w("external_fullscreen")||_.VW(this.hostElement,"yt-player-fullscreen",[M.fullscreen])},
onFullscreenChange_:function(M){this.fullscreen=M;this.gestures_&&this.gestures_.update(this.fullscreen);var q=_.Sc(this);q.getPlayerPromise().then(function(G){G.setFauxFullscreen(!!_.m3())});
this.updateFullBleedElementLocations();M&&(q.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(M,q){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!q},
computeIsDonationShelfCollapsed_:function(M){return M},
computeShouldShowMerchShelf:function(M,q){return q&&!!M},
computeResponseHasComments:function(M){var q,G,K,n,E;return!!(M==null?0:(q=M.contents)==null?0:(G=q.twoColumnWatchNextResults)==null?0:(K=G.results)==null?0:(n=K.results)==null?0:(E=n.contents)==null?0:E.some(function(p){var y;return(p==null?void 0:(y=p.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(M,q,G,K){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&K?!1:!!M&&!!Object.keys(M).length&&!q},
identity:_.ZF,onWindowResized_:function(M){this.windowSize_=M;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(M){var q=this;M&&M.type!=="dataloaded"&&M.type!=="dataupdated"||_.Sc(this).getPlayerPromise().then(function(G){var K=G.getPlayerState();K!==5&&K!==0&&(G=1/G.getVideoAspectRatio(),q.videoHeightToWidthRatio_!==G&&(q.videoHeightToWidthRatio_=G))})},
schedulePlayerSizeUpdate_:function(M){var q=this,G=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"),K=function(){if(q.watchMetadata){var n,E;(E=(n=q.watchMetadata).resize)==null||E.call(n)}_.Sc(q).getPlayerPromise().then(function(p){if(_.w("kevlar_set_internal_player_size")){if(!G||!q.isMiniplayerActive()){var y=q.calculateCurrentPlayerSize_();p.setInternalSize(y.width,y.height)}}else p.setSize(NaN,NaN);_.w("kevlar_watch_while")&&q.updateWatchWhileScrollThreshold_()})};
M?K():_.MK(_.r8,K)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(M){this.set("data.survey",M.detail)},
onYtShowSurveyCommand_:function(M){this.set("data.survey",_.C(M,_.SXA).survey)},
onDownloadedVideoDeleted:function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1){if(!q.active||(G=q.playerData)==null||!G.offlineState||q.videoId!==M)return n.return();(K=q.player)==null||K.stopVideo();_.Bg().navigatingAwayFromWatchDeletedVideo=!0;_.sE(_.fVu,q.hostElement);return n.yield(_.Bg().navigationFinishPromise,2)}_.Bg().navigatingAwayFromWatchDeletedVideo=!1;_.gL(n)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var M;this.theater?M=_.wr(.5625*this.windowSize_.width,480,this.windowSize_.height-185):M=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==M&&(this.watchWhileScrollThreshold_=M,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var M=_.f_(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&M){var q=this.windowSize_.height>=624,G=this.active?this.getScrollTop():0;!M.active&&q&&G>=this.watchWhileScrollThreshold_?(M.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):M.active&&(!q||G<this.watchWhileScrollThreshold_&&!_.m3())&&(M.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var M=_.f_(this.hostElement).querySelector("#secondary-inner");if(M){var q=_.f_(this.hostElement).querySelector("#below"),G=_.f_(this.hostElement).querySelector("#secondary"),K=_.f_(this.hostElement).querySelector("#comments");K&&G&&q&&(this.defaultTwoColumnLayout?(M.appendChild(K),G.appendChild(M)):(q.appendChild(K),_.Is(q,M)))}}},
isTwoColumnsChanged_:function(M,q){if(M!==!0||q!==void 0)if(this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(M=_.f_(this.hostElement).querySelector("#secondary-inner"))){q=_.f_(this.hostElement).querySelector("#below");var G=_.f_(this.hostElement).querySelector("#secondary"),K=_.f_(this.hostElement).querySelector("#comments");K&&G&&q&&(this.isTwoColumns_?(M.appendChild(K),G.appendChild(M)):(q.appendChild(K),_.Is(q,M)))}}else{M=!_.w("web_watch_enable_fs_squeezeback_panels")||
!(this.fullscreen||this.iMaxTheaterMode&&this.theater);q=_.f_(this.hostElement).querySelector("#panels");var n=_.f_(this.hostElement).querySelector("#alerts"),E=_.f_(this.hostElement).querySelector("#shopping-timely-shelf");G=_.f_(this.hostElement).querySelector("#playlist");K=_.f_(this.hostElement).querySelector("#related");var p=_.f_(this.hostElement).querySelector("#donation-shelf"),y=_.f_(this.hostElement).querySelector("#comments"),Y=_.f_(this.hostElement).querySelector("#persistent-panel-container");
this.isTwoColumns_?(n=_.f_(this.hostElement).querySelector("#secondary-inner"),M&&(n.appendChild(q),n.appendChild(G),this.aiCompanionEnabled&&Y&&n.appendChild(Y)),n.appendChild(p),n.appendChild(K)):(M&&(_.cp(q,n),_.cp(G,n),this.aiCompanionEnabled&&Y&&_.cp(Y,n),_.cp(E,G)),_.cp(p,n),y&&_.cp(K,y));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.w("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.w("web_watch_enable_fs_squeezeback_panels")&&_.w("web_watch_theater_chat")){var M=_.f_(this.hostElement).querySelector("#chat-container"),q=this.theater&&!this.fullscreen||_.w("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&q?(q=_.f_(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==q&&q.append(M),this.fixedPanels=!0):(this.fixedPanels=
!1,q=_.f_(this.hostElement).querySelector("#playlist"),M&&q?_.gB(M,q):_.j1(new _.bj("Missing element when updating chat location",{"chatContainer defined":!!M,"playlist defined":!!q})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(M,q){return _.w("sw_metadata_vis_toggle_ks")?!0:!!M||!!q},
computeForceDarkPanelTheme:function(M){return _.w("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&M:!1},
safeUpdateStyles:function(M){try{_.sT(this.hostElement,M)}catch(q){_.j1(q)}},
videoHeightToWidthRatioChanged_:function(M,q){q&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(M){this.videoHeightToWidthRatio_=1/M},
computeIsVerticalVideo_:function(M){return M>=1},
computeIsFourThreeToSixteenNineVideo_:function(M){return M<=.7501&&M>=.5624},
computeIsExtraWideVideo_:function(M){return M<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Sc(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Sc(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.eHe(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(M){var q=_.d2(M)||0;_.AK(M,q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var M=_.d2("yt-fullerscreen-edu-button-click-count")||0,q=_.d2("yt-fullerscreen-edu-button-shown-count")||0,G=_.tL("external_fullscreen_button_shown_threshold"),K=M>=_.tL("external_fullscreen_button_click_threshold")||q>=G;_.Sc(this).getPlayerPromise().then(function(n){n.updateFullerscreenEduButtonSubtleModeState(K)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(M,q){return q},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.AL().resolve(_.$x).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var M=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.r8.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.r8.addLowPriorityJob(function(){M.fullHeightPanelPositionUpdateJobId=0;var q=_.f_(M.hostElement).querySelector("#secondary"),G=_.f_(M.hostElement).querySelector("#fixed-secondary");q=q.getBoundingClientRect();var K=q.width;M.swatcherooSqueezeback&&
(K+=_.u1);if(M.swatcherooSqueezeback){var n=_.f_(M.hostElement).querySelector("#squeezeback-constraining-container");n.style.width=K+"px";n.style.flex="0 0 "+K+"px"}G.style.width=K+"px";G.style.left=q.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var M=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.r8.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.r8.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;var q;!M.isTwoColumns_||M.theater||M.fullscreen?q=460:q=M.calculateNormalPlayerSize_().height;var G=q+"px";_.w("live_chat_taller_height")&&!M.theater&&(G="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.w("live_chat_medium_height")&&!M.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.w("live_chat_scaled_height")&&!M.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 238px)");M.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":q+"px","--ytd-watch-flexy-chat-max-height":G,"--ytd-watch-flexy-structured-description-max-height":q+"px","--ytd-watch-flexy-comments-panel-max-height":q+"px","--ytd-comments-engagement-panel-content-height":q+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(M){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",M)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.FH(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(M){var q=_.f_(this.hostElement).querySelector("#engagement-panel-scrim");M?q.addEventListener("tap",_.qs(this,this.onEngagementPanelScrimClick_)):q.removeEventListener("tap",_.qs(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(M){if(this.hostElement.contains(M)&&!this.scrollToAnimation_.isAnimating()){var q=M.offsetTop-24;M=M.offsetTop+M.offsetHeight+24;var G=this.getPageScrollingElement(),K=this.getScrollTop(),n=K+G.clientHeight-56;if(q<K+56)q-=56;else if(M>n)q=M-G.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtSignalActionScrollToComments:function(){var M=this.hostElement.querySelector("#comments");if(M&&!this.scrollToAnimation_.isAnimating()){M=M.offsetTop-56-24;if(_.w("kevlar_comment_teaser_scroll_to_midpoint")&&(M-=_.Bc().height/3,M<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,M),500)}},
onYtEngagementPanelVisibleChanged:function(M,q,G){if(this.active&&this.trackEngagementPanelVisibility&&!_.zH9.includes(G)){if(q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Rf(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var K=_.AL().resolve(_.Ja);this.visiblePanelIdentifiers_.forEach(function(n){n!==G&&K.hidePanel({identifier:n})})}this.visiblePanelIdentifiers_.add(G)}q!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(G);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(M){return M?"":"watch-active-metadata"},
computeNewMetadataClass:function(M){return M?"watch-active-metadata":""},
computeIsSingleColumn:function(M,q){return q&&!M},
computeFullBleedPlayer:function(M,q,G){return _.w("external_fullscreen")&&M||q||G},
computeDefaultLayout:function(M){return!M},
computeDefaultTwoColumnLayout:function(M,q){return!M&&q},
updatePanelsLocation:function(){if(_.w("web_watch_enable_fs_squeezeback_panels")){var M=_.f_(this.hostElement).querySelector("#below"),q=_.f_(this.hostElement).querySelector("#panels"),G=_.f_(this.hostElement).querySelector("#playlist"),K=_.f_(this.hostElement).querySelector("#chat-container"),n=_.f_(this.hostElement).querySelector("#panels-full-bleed-container"),E=_.f_(this.hostElement).querySelector("#secondary-inner"),p=_.f_(this.hostElement).querySelector("#shopping-timely-shelf"),y=_.f_(this.hostElement).querySelector("#persistent-panel-container");
if(M&&q&&G&&K&&n&&E&&p&&(this.aiCompanionEnabled?y:1)){var Y=this.fullscreen||this.theater&&this.iMaxTheaterMode,A=this.theater&&!this.iMaxTheaterMode&&this.liveChatPresentAndExpanded;this.fixedPanels=!1;Y?(n.appendChild(q),n.appendChild(K),n.appendChild(G),this.aiCompanionEnabled&&y&&n.appendChild(y)):this.isTwoColumns_?(A?(M=_.f_(this.hostElement).querySelector("#columns"),(K==null?void 0:K.parentElement)!==M&&M.append(K),this.fixedPanels=!0,this.updatePageMediaQueries(),this.schedulePlayerSizeUpdate_()):
_.Is(E,K),_.Is(E,q),_.Is(E,G),this.aiCompanionEnabled&&y&&_.Is(E,y)):(M.appendChild(q),M.appendChild(p),M.appendChild(K),M.appendChild(G),this.aiCompanionEnabled&&y&&M.appendChild(y))}}},
swatcherooUpdatePanelsLocation:function(M,q,G,K,n,E){if(this.is==="ytd-watch-grid"){q=M&&!q;this.swatcherooSplitScroll&&(q?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));G=_.f_(this.hostElement).querySelector("#panels");var p=_.f_(this.hostElement).querySelector("#playlist"),y=_.f_(this.hostElement).querySelector("#persistent-panel-container"),
Y=_.f_(this.hostElement).querySelector("#fixed-secondary"),A=_.f_(this.hostElement).querySelector("#fixed-below"),v=_.f_(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),h=_.f_(this.hostElement).querySelector("#chat-container");E&&(M?(Y.appendChild(G),this.aiCompanionEnabled&&y&&Y.appendChild(y)):(A.appendChild(G),this.aiCompanionEnabled&&y&&A.appendChild(y)));n?M?Y.appendChild(h):A.appendChild(h):_.gB(h,v);K?M?Y.appendChild(p):A.appendChild(p):_.gB(p,
v);this.swatcherooSplitScroll&&(M=_.f_(this.hostElement).querySelector("#secondary"),K=_.f_(this.hostElement).querySelector("#columns"),n=_.f_(this.hostElement).querySelector("#fixed-columns-secondary"),q?n.appendChild(M):K.appendChild(M))}},
computeMetadataSkinnyMode:function(M,q,G){return this.is!=="ytd-watch-grid"?!1:M?G:q},
computeWatchWhilePanelsActive:function(M,q){return M||q},
computeNoBorderOnChat:function(M){return _.w("web_watch_theater_chat_no_border")&&M},
computeLiveChatPresentAndExpanded:function(M,q){return M&&!q},
computePanelExpanded:function(M,q,G){return M||q||G},
computeSqueezeback:function(M,q,G,K){if(_.w("web_watch_enable_fs_squeezeback_panels")){var n=this.iMaxTheaterMode&&this.theater,E=this.theater&&!this.iMaxTheaterMode;return(M||q||G)&&(n||K)||q&&E}},
computeSwatcherooSqueezeback:function(M,q,G){return this.is!=="ytd-watch-grid"||_.w("ww_squeezeback_killswitch")?!1:M&&q&&G},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(M){_.Sc(this).getPlayerPromise().then(function(q){var G;(G=q.changeMarkerVisibility)==null||G.call(q,_.C(M,_.TH).isVisible||!1,_.C(M,_.TH).entityKeys||[],_.C(M,_.TH).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(M){this.liveChatCollapsed=M.detail;_.zw().dispatch(_.xbk(M.detail));if(!this.liveChatCollapsed&&this.squeezeback){var q=_.AL().resolve(_.Ja);this.visiblePanelIdentifiers_.forEach(function(G){q.hidePanel({identifier:G})})}},
onSetPlaylistCollapsed:function(M){_.w("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!M)},
provideRenderingData:function(M,q){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=q;break;case "PRIMARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=q);this.videoPrimaryInfoRendererValue=q==null?void 0:q.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=q);this.videoSecondaryInfoRendererValue=q==null?void 0:q.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
q;break;case "CLARIFICATION":this.clarifyBoxValue=q;break;case "LIVE_CHAT":this.conversationBar=q;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=q;break;case "PLAYLIST":this.externalPlaylistData_=q!=null?q:{};break;case "MERCH_SHELF":this.merchShelfValue=q==null?void 0:q.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=q;break;case "TICKET_SHELF":this.ticket=q;break;case "OFFER_MODULE":this.offerModule=q;break;case "LIMITED_STATE":this.limitedStateValue=
q;break;case "DONATION_SHELF":this.donation=q;break;case "ALERTS":this.alertsValue=q;break;case "COMMENTS":this.comments=q;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=q;break;case "ENGAGEMENT_PANELS":this.engagementPanels=q;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=q;break;case "RICH_GRID_RENDERER":this.richGridRendererData=q;break;case "EXPANDABLE_METADATA":this.expandableMetadata=q;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
q;break;case "SHOPPING_TIMELY_SHELF":this.shoppingTimelyShelfValue=q}},
toggleCinematicsActive:function(M){this.cinematicsActive=M},
isMiniplayerActive:function(){return _.AL().resolve(_.lq).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var p4E;_.kQL=function(M){if(!(0,_.WpS)(M))throw Error("K``"+String(M));};
_.y_w=function(M){return M.findIndex(function(q){return p4E.indexOf(q.tagName)>-1})>-1};
_.LXw=function(){var M=_.AL().resolve(_.vq);_.N7y(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(M.isFullscreenEnabled()?_.SP(document.documentElement):_.en4(document.documentElement))};
p4E=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.m9=new Map;_.m9.set(32,59972);_.m9.set(27,50765);_.m9.set(70,60102);_.m9.set(76,60221);_.m9.set(77,60222);_.m9.set(74,60223);_.m9.set(84,60224);_.m9.set(38,61941);_.m9.set(40,61942);_.m9.set(73,62521);_.m9.set(67,62522);_.m9.set(80,63390);_.m9.set(78,63397);_.m9.set(75,59972);_.m9.set(188,63385);_.m9.set(190,63384);_.m9.set(36,63387);
_.m9.set(35,63386);_.m9.set(37,63388);_.m9.set(39,63389);_.m9.set(79,63423);_.m9.set(87,63424);_.m9.set(107,63426);_.m9.set(109,63425);_.m9.set(65,63428);_.m9.set(83,63430);_.m9.set(68,63429);_.m9.set(221,63431);_.m9.set(219,63432);_.m9.set(97,63439);_.m9.set(98,63440);_.m9.set(99,63441);_.m9.set(100,63442);_.m9.set(101,63443);_.m9.set(102,63444);_.m9.set(103,63445);_.m9.set(104,63446);_.m9.set(105,63447);_.Sq=new Map;_.Sq.set(80,63390);_.Sq.set(78,63397);_.Sq.set(188,63400);_.Sq.set(190,63401);
_.Sq.set(191,60765);_.Sq.set(13,247917);_.T0=new Map;_.rO=new Map;
}catch(e){_._DumpException(e)}
try{
var PaP,gUw,B2I,Qrv;_.axI=function(M){return M.ui.guideIsVisibleButNotPersistent};
_.oUI=function(M){return M.ui.tabGesturesIsActive};
_.lxI=function(){var M=_.wP("service_worker_scope");try{return navigator.serviceWorker.getRegistration(M)}catch(q){return Promise.reject(q)}};
_.XEs=function(M){return!(!M||!M.pushManager)};
PaP=function(){return _.lxI().then(_.XEs).catch(function(){return!1})};
_.i_s=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?PaP():Promise.resolve(!1)};
_.cKw=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
gUw=function(){var M,q,G;return _.L(function(K){switch(K.nextAddress){case 1:return K.yield(_.xx.getInstance(),2);case 2:M=K.yieldResult;if(!M){q=void 0;K.jumpTo(3);break}return K.yield(M.get("lmqf"),4);case 4:q=K.yieldResult;case 3:switch((G=q)||(G="SD"),G){case "HD":return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return K.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
B2I=function(M){var q,G,K;return _.L(function(n){if(n.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.w("disable_av1_setting")){var E=window.localStorage["yt-player-av1-pref"];E=E==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":E==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else E="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(q=M===E)return n.jumpTo(2);K=G=M;return n.yield(gUw(),3)}n.nextAddress!=2&&(q=K===n.yieldResult);return n.return(q)})};var Ixg;var DrI=_.cn.IronButtonState,uww=(0,_.lM)(HTMLElement);
_.h_({_template:function(){if(Ixg!==void 0)return Ixg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Qrv===void 0&&(Qrv=document.createElement("template"));var K=Qrv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return Ixg=M},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[DrI,_.Pn,_.gQ,_.I3],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(M){var q=(0,_.Ik)(this);q.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:M});q.shadowRoot.appendChild(M);return uww.prototype._attachDom.call(this,M)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var M=this.contentElement;M&&M.selectedItem&&this._setSelectedItem(M.selectedItem)},
get contentElement(){for(var M=_.YD(this.$.content).getDistributedNodes(),q=0,G=M.length;q<G;q++)if(M[q].nodeType===Node.ELEMENT_NODE)return M[q]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(M){this._setSelectedItem(M.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(M){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(M)===this&&this.open()},
_selectedItemChanged:function(M){var q="";M?q=M.label||M.getAttribute("label")||M.textContent.trim():q="";this.value=q;this._setSelectedItemLabel(q)},
_computeMenuVerticalOffset:function(M,q){return q?q:M?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var M=this.opened?"true":"false",q=this.contentElement;q&&q.setAttribute("aria-expanded",M)}});_.Pa=new _.e0("navigateAction");var JKI=new _.e0("formRenderer");var iL=function(){var M=_.kA.apply(this,arguments)||this;M.showInput=!1;return M};
_.l(iL,_.kA);_.N=iL.prototype;_.N.detached=function(){this.showInput&&window.removeEventListener("click",_.qs(this,this.closeOnOutsideClick_))};
_.N.stopPropagation_=function(M){this.showInput&&M.stopPropagation()};
_.N.closeOnOutsideClick_=function(M){this.closeOnOutsideClickCondition(M)&&(this.showInput=!1,window.removeEventListener("click",_.qs(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.N.closeOnOutsideClickCondition=function(){return!0};
_.N.closeOnOutsideClickHandler=function(){};
_.N.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.qs(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.N.openOnClickHandler=function(){};
_.N.showInputChanged=function(){};
_.N.setShowInput=function(M){this.showInput=M};
iL.prototype.setShowInput=iL.prototype.setShowInput;iL.prototype.showInputChanged=iL.prototype.showInputChanged;iL.prototype.openOnClickHandler=iL.prototype.openOnClickHandler;iL.prototype.openOnClick_=iL.prototype.openOnClick_;iL.prototype.closeOnOutsideClickHandler=iL.prototype.closeOnOutsideClickHandler;iL.prototype.closeOnOutsideClickCondition=iL.prototype.closeOnOutsideClickCondition;iL.prototype.closeOnOutsideClick_=iL.prototype.closeOnOutsideClick_;iL.prototype.stopPropagation_=iL.prototype.stopPropagation_;
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],iL.prototype,"showInput",void 0);_.T([_.GQ("click"),_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],iL.prototype,"stopPropagation_",null);_.T([_.KT("showInput"),_.r("design:type",Function),_.r("design:paramtypes",[Boolean]),_.r("design:returntype")],iL.prototype,"showInputChanged",null);_.T([_.pT()],iL);_.Z_8=[iL.prototype];var b_8;var UrL;var ca=function(){return _.Q.apply(this,arguments)||this};
_.l(ca,_.Q);_.N=ca.prototype;_.N.computePreselectedOption=function(M,q){return q===this.itemSelected_?M:void 0};
_.N.dataChanged_=function(){var M=this;this.preselectedSubreason=this.itemSelected_=-1;var q;(q=this.data)!=null&&q.key&&_.yb(this,function(){var G,K=Number((G=M.data)==null?void 0:G.key);!Number.isNaN(K)&&(M.itemSelected_=K,G=(G=(M.data.items||[])[K])&&G.optionSelectableItemRenderer&&G.optionSelectableItemRenderer.preselectedIndex)&&(M.preselectedSubreason=G)})};
_.N.isSubReasonHidden_=function(M,q){return M!=q};
_.N.onTopItemSelected_=function(M,q){for(var G=_.f_(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),K=0,n=G.length;K<n;K++)G[K].select(0);_.VW(this.hostElement,"yt-report-form-update",[q.item.value]);M.stopPropagation()};
_.N.onItemSelected_=function(M,q){_.VW(this.hostElement,"yt-report-form-update",[q.item.value]);M.stopPropagation()};
_.N.getItem_=function(M){return M.serviceItem?M.serviceItem:M.navigationItem?M.navigationItem:M.optionSelectableItemRenderer?M.optionSelectableItemRenderer:null};
_.N.computeText_=function(M){return(M=this.getItem_(M))?this.ytRendererBehavior.getSimpleString(M.text):null};
_.N.validate=function(){return this.itemSelected_!==-1};
_.N.computeAriaLabel_=function(M){var q=_.UX(M.text);(M=M.accessibility&&M.accessibility.accessibilityData&&M.accessibility.accessibilityData.label)&&(q+=". "+M);return q};
_.N.computeItemSelected_=function(M){return M};
_.N.preventSelection_=function(M){M.stopPropagation();this.tooltipTapped=!0};
_.N.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.N.updateItemSelectedFromBinding=function(M){this.itemSelected_=M.detail.value};
_.N.save=function(){var M;this.validate()&&(M=this.data)!=null&&M.items&&(M=this.data.items[this.itemSelected_],M!=null&&M.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(M.optionSelectableItemRenderer.submitEndpoint)||_.fx(this.hostElement,[M.optionSelectableItemRenderer.submitEndpoint])))};
ca.prototype.onPaperRippleTransitionEnd_=ca.prototype.onPaperRippleTransitionEnd_;ca.prototype.dataChanged_=ca.prototype.dataChanged_;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ca.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ca.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ca.prototype,"data",void 0);_.T([_.B({value:-1}),_.r("design:type",Number)],ca.prototype,"itemSelected_",void 0);
_.T([_.B({computed:"computeItemSelected_(itemSelected_)"}),_.r("design:type",Number)],ca.prototype,"value",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],ca.prototype,"restoreFocusOnClose",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],ca.prototype,"tooltipTapped",void 0);_.T([_.B({value:-1}),_.r("design:type",Number)],ca.prototype,"preselectedSubreason",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ca.prototype,"dataChanged_",null);_.T([_.GQ("transitionend"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ca.prototype,"onPaperRippleTransitionEnd_",null);_.T([_.aO({is:"yt-options-renderer",disableElementRegistration:!0})],ca);
_.z(ca,"yt-options-renderer",function(){if(UrL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;b_8===void 0&&(b_8=document.createElement("template"));var K=b_8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);UrL=M}M=UrL;return M},{mode:2});var xrn;var z3n;var mrI;var SpI;var T2w;var rKw;var gO=function(){return _.Q.apply(this,arguments)||this};
_.l(gO,_.Q);gO.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
gO.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
gO.prototype.onTap=function(M){if(this.hostElement.classList.contains("selected")||_.VW(this.hostElement,"yt-share-panel-can-select-contact-action")[0])M&&M.detail&&(M.detail.x||M.detail.y)&&_.f_(this.hostElement).querySelector("#target").blur(),(M=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),M={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:M?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.VW(this.hostElement,"yt-share-panel-select-contact-action",[M])};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gO.prototype,"ytRendererBehavior",void 0);_.T([_.B({observer:"onDataChanged"}),_.r("design:type",Object)],gO.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.r("design:type",String)],gO.prototype,"componentTitle",void 0);_.T([_.ET("#thumbnail"),_.r("design:type",Object)],gO.prototype,"thumbnail",void 0);_.T([_.aO({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],gO);
_.z(gO,"yt-enrolled-contact-renderer",function(){if(rKw===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;T2w===void 0&&(T2w=document.createElement("template"));var K=T2w;G.call(q,K.content.cloneNode(!0),M.content.firstChild);rKw=M}M=rKw;return M},{mode:2});var jrg;var VlR;var Ba=function(){return _.Q.apply(this,arguments)||this};
_.l(Ba,_.Q);Ba.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
Ba.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Ba.prototype.onTap=function(M){if(this.hostElement.classList.contains("selected")||_.VW(this.hostElement,"yt-share-panel-can-select-contact-action")[0])M&&M.detail&&(M.detail.x||M.detail.y)&&_.f_(this.hostElement).querySelector("#target").blur(),(M=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),M={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:M?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.VW(this.hostElement,"yt-share-panel-select-contact-action",[M])};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ba.prototype,"ytRendererBehavior",void 0);_.T([_.B({observer:"onDataChanged"}),_.r("design:type",Object)],Ba.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.r("design:type",String)],Ba.prototype,"componentTitle",void 0);_.T([_.ET("#thumbnail"),_.r("design:type",Object)],Ba.prototype,"thumbnail",void 0);_.T([_.aO({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],Ba);
_.z(Ba,"yt-suggested-contact-renderer",function(){if(VlR===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;jrg===void 0&&(jrg=document.createElement("template"));var K=jrg;G.call(q,K.content.cloneNode(!0),M.content.firstChild);VlR=M}M=VlR;return M},{mode:2});var Qo=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-share-panel-reset-action":"onReset"};return M};
_.l(Qo,_.Q);Qo.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"}}}}}};
Qo.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.VW(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
Qo.prototype.onReset=function(){for(var M=_.f_(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),q=M.length-1;q>=0;q--)M[q].classList.toggle("selected")};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Qo.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Qo.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Qo.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B({observer:"onDataChanged"}),_.r("design:type",Object)],Qo.prototype,"data",void 0);
_.T([_.aO({is:"yt-contact-section-renderer",disableElementRegistration:!0})],Qo);
_.z(Qo,"yt-contact-section-renderer",function(){if(SpI===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;mrI===void 0&&(mrI=document.createElement("template"));var K=mrI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);SpI=M}M=SpI;return M},{mode:2});var IV=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return M};
_.l(IV,_.Q);_.N=IV.prototype;_.N.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"}}}};
_.N.onYtRefreshFormCommand=function(M){var q;(M=_.C((q=_.C(M,_.zpd))==null?void 0:q.formRenderer,JKI))&&this.set("data",M)};
_.N.reset=function(){var M=_.f_(this.hostElement).querySelector("#fields").children;M=_.k(M);for(var q=M.next();!q.done;q=M.next())q=q.value,q.reset&&q.reset()};
_.N.getForm=function(){var M={},q=_.f_(this.hostElement).querySelector("#fields").children;q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;if(!G.validate())return null;M[G.data.key]=G.value}return M};
_.N.submitFormFields=function(){if(this.fields)for(var M=_.k(this.fields),q=M.next();!q.done;q=M.next())q=q.value,q.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?q.save():q.nodeName==="YT-OPTIONS-RENDERER"&&q.save()};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],IV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],IV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],IV.prototype,"data",void 0);_.T([_.Ns("#fields > *"),_.r("design:type",Array)],IV.prototype,"fields",void 0);
_.T([_.aO({is:"yt-form-renderer",disableElementRegistration:!0})],IV);
_.z(IV,"yt-form-renderer",function(){if(z3n===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;xrn===void 0&&(xrn=document.createElement("template"));var K=xrn;G.call(q,K.content.cloneNode(!0),M.content.firstChild);z3n=M}M=z3n;return M},{mode:2});var R3s;var Dn=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return M};
_.l(Dn,_.Q);Dn.prototype.onCheckboxChange=function(M){this.data&&(M=(this.checked=_.ba(M).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}})};
Dn.prototype.handleUpdateCheckboxCommand=function(M){(M=_.C(M,_.KxJ))&&this.data&&this.data.id===M.id&&(this.set("data.disabled",M.disabled),this.set("data.title",M.title))};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Dn.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Dn.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],Dn.prototype,"checked",void 0);_.T([_.b({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Dn);
_.z(Dn,"ytd-settings-checkbox-renderer",function(){if(R3s!==void 0)return R3s;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return R3s=M},{mode:1});var fxv;var uL=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return M};
_.l(uL,_.Q);uL.prototype.dataChanged=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return M.radio.removeAttribute("checked"),!M.data||!M.data.id||M.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.cKw()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(q=M.data&&M.data.id)?G.yield(B2I(M.data.id),4):G.jumpTo(3):(M.set("data.hidden",!0),G.jumpTo(0));G.nextAddress!=3&&(q=G.yieldResult);q&&_.VW(M.hostElement,"yt-select-settings-radio-option",[M.data.id]);_.gL(G)})};
uL.prototype.onButtonChanged=function(M){_.ba(M).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.VW(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
uL.prototype.onSelectOption=function(M){this.data&&this.data.id&&(this.data.id===M?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
uL.prototype.dataChanged=uL.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],uL.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],uL.prototype,"ytActionHandlerBehavior",void 0);_.T([_.ET("#radio"),_.r("design:type",Object)],uL.prototype,"radio",void 0);_.T([_.B(),_.r("design:type",Object)],uL.prototype,"data",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],uL.prototype,"dataChanged",null);_.T([_.b({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],uL);
_.z(uL,"ytd-settings-radio-option-renderer",function(){if(fxv!==void 0)return fxv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return fxv=M},{mode:1});var Faw;var JG=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return M};
_.l(JG,_.Q);
JG.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"}}}};
JG.prototype.handleUpdateTextCommand=function(M){(M=_.C(M,_.nt$))&&this.data&&this.data.id===M.id&&this.set("data",M)};
JG.prototype.handleUpdateConnectedAppRendererCommand=function(M){if(_.C(M,_.kbP)&&this.data){var q,G;if(M=(q=_.C(M,_.kbP))==null?void 0:(G=q.newConnectedAppRenderer)==null?void 0:G.connectedAppRenderer)this.data=M}};
JG.prototype.computeConnectedAppStyle=function(M){return M.style?M.style.toLowerCase().replace(/_/g,"-"):""};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],JG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],JG.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JG.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],JG.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.r("design:type",String)],JG.prototype,"connectedAppStyle",void 0);_.T([_.b({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],JG);
_.z(JG,"ytd-connected-app-renderer",function(){if(Faw!==void 0)return Faw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Faw=M},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.mv("iuT5Oc");

_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("L3n37");
var YpA=function(M){return M.watch.isLearningJourneyActive},WaA=_.$m(115994),AKW=_.$m(115993),drG=function(M,q,G){var K=this;
var n=G.dragDownAction;this.layer=0;this.JSC$23431_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return K.dragDownAction()}}}};
this.JSC$23431_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return K.dragDownAction()}}}};
this.fullscreen=!1;var E=_.nl();_.lu(E,WaA,this.layer);_.lu(E,AKW,this.layer);this.dragDownAction=function(){n();_.Bx(E,{visualElement:K.fullscreen?WaA:AKW})};
this.gesture=new _.Z0(M,q,this.getConfig(!1),"pandown");this.attach()};
drG.prototype.attach=function(){this.gesture.attach()};
drG.prototype.detach=function(){this.gesture.detach()};
drG.prototype.update=function(M){this.fullscreen=M;var q=this.gesture;M=this.getConfig(M);q.config=M};
drG.prototype.getConfig=function(M){return M?this.JSC$23431_watchFullScreenConfig:this.JSC$23431_watchConfig};var vUC=function(M){_.z0.call(this);var q=this;this.rootElement=M;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return q.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(G){q.initOrDisposeActiveModules(G)}));
this.onAttached()};
_.l(vUC,_.z0);_.N=vUC.prototype;_.N.getRoot=function(){return this.rootElement};
_.N.getElement=function(M){return this.rootElement.getElement(M)};
_.N.setPlayerResponse=function(M){this.playerResponse=M;this.publish("PLAYER_RESPONSE_UPDATED",M)};
_.N.getPlayerResponse=function(){return this.playerResponse};
_.N.setWatchNextResponse=function(M){this.watchNextResponse===M?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=M,this.publish("WATCH_NEXT_RESPONSE_UPDATED",M))};
_.N.getWatchNextResponse=function(){return this.watchNextResponse};
_.N.registerActionHandler=function(M,q){var G=this;if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var K={};_.KI(_.GC.getInstance(),(K[M]=q,K),this.getRoot())}else this.actionHandlers.has(M)||(this.actionHandlers.set(M,[]),K={},_.KI(_.GC.getInstance(),(K[M]=function(){var n=_.rW.apply(0,arguments);return(G.actionHandlers.get(M)||[]).map(function(E){return E.apply(null,_.Ui(n))})},K),this.getRoot())),this.actionHandlers.get(M).push(q)};
_.N.unregisterActionHandler=function(M){if(_.w("web_watch_controller_reg_multiple_handlers_killswitch")){var q={};_.N6(_.GC.getInstance(),(q[M]=!0,q),this.getRoot())}else(q=this.actionHandlers.get(M))?(q.pop(),q.length===0&&(q={},_.N6(_.GC.getInstance(),(q[M]=!0,q),this.getRoot()),this.actionHandlers.delete(M))):_.j1(new _.bj("Attempted to unregister an action handler which is not registered.",M))};
_.N.addPageDisposeJob=function(M){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.B$H(this.rootElement.pageDisposeJobs,M)};
_.N.removePageDisposeJob=function(M){this.rootElement.pageDisposeJobs&&_.my(this.rootElement.pageDisposeJobs,M)};
_.N.dispatchEvent=function(M,q){_.jP(this.rootElement,M,q)};
_.N.provideRenderingData=function(M,q){this.rootElement.provideRenderingData(M,q)};
_.N.scrollWatchTo=function(M,q){var G;(G=this.watchScrollManager)==null||G.scrollWatchTo(M,q)};
_.N.focusOnPlayer=function(){var M=this.getElement("PLAYER");_.yb(M,function(){if(M&&M.firstElementChild){var q=M.querySelector(".html5-video-player");q&&(_.EW(_.AL().resolve(_.Lp)),q.focus())}else _.j1(Error("ap"))})};
var h3k=function(M){var q=!!M.rootElement.theater,G=!!M.rootElement.fullscreen,K;(K=M.watchCinematicManager)==null||_.rlC(K,G,q)};
_.N=vUC.prototype;_.N.subscribeToActiveChanged=function(M,q){q=q===void 0?!0:q;var G=_.IQ(_.zw(),YpA,function(K){M(K)});
q&&M(YpA(_.zw().getState()));return G};
_.N.isActive=function(){return YpA(_.zw().getState())};
_.N.onAttached=function(){var M=_.w("external_fullscreen");_.w("use_unified_flag_accessor")&&(M=_.AL().resolve(_.hyE).retriever.getFlag(_.OFI));(M||_.fX("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.N.initPersistentModules=function(){if(_.w("kevlar_watch_flexy_theater_manager")){var M=new _.hzk(this);_.oE(this,M)}M=new _.npC(this);_.oE(this,M);M=new _.Q9(this);_.oE(this,M);M=new _.MEA(this);_.oE(this,M);M=new _.Zm(this);_.oE(this,M);M=new _.IL(this);_.oE(this,M);_.w("kevlar_watch_flexy_playlist_manager")&&(M=new _.b7a(this),_.oE(this,M))};
_.N.initOrDisposeActiveModules=function(M){M?(this.watchScrollManager=new _.be(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.w8v(this)),this.activeModules.push(new _.OYk(this)),this.activeModules.push(new _.Tjv(this)),this.activeModules.push(new _.WbG(this)),_.w("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.leL(this)),this.activeModules.push(new _.POG(this)),_.w("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.jJt(this)),
_.w("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.Dhy(this)),_.w("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.Uhk(this),this.activeModules.push(this.watchCinematicManager),h3k(this)),_.w("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.BjM(this)),_.w("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.GeC(this)),M=_.w("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.w("kevlar_watch_flexy_comments_manager")&&
!M&&this.activeModules.push(new _.F33(this)),_.w("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.ZYv(this)),this.activeModules.push(new _.XFG(this)),this.activeModules.push(new _.a_k(this)),_.w("web_enable_timely_actions")&&this.activeModules.push(new _.gDy(this)),_.w("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.eSk(this)),_.w("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.SUv(this)),_.w("web_fullscreen_components")&&
this.activeModules.push(new _.ch9(this)),_.w("web_player_rtr_ctrls")&&this.activeModules.push(new _.sfC(this))):(_.yq(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.N.disposeInternal=function(){_.z0.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Yd.Object.defineProperties(vUC.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var tlC={},O_W=["learning-journey-engagement-panel","PAlearning_chat"];
tlC.YtdLearningJourneyWatchBehavior=[_.F.YtRendererBehavior,_.$S.YtPlayerListenerBehavior,_.EH.YtRendererstamperBehavior,_.wg.YtActionHandlerBehavior,_.qV.YtPageBehavior,_.OH.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 _.fX("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.w("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 _.fX("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 _.w("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.w("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 _.tL("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.tL("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 _.w("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 _.w("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("web_watch_rounded_player_large")||_.w("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 _.w("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.w("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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 _.w("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.w("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:_.vZ(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.vZ(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},
singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}},learningJourneyEngagementPanels:{id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0,learningChatEngagementPanel:!0}}}},nonLearningJourneyEngagementPanels:{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}}},
listeners:{"yt-retrieve-location":"onRetrieveLocation_","yt-subscription-changed":"onSubscriptionChanged_","yt-show-survey":"onYtShowSurvey_","yt-chat-collapsed-changed":"onYtChatCollapsedChanged"},actionMap:{"yt-sync-with-remote-video":"syncWithRemoteVideo_","yt-window-resized":"onWindowResized_","yt-initial-video-aspect-ratio":"onYtInitialVideoAspectRatio_","yt-update-player-next-video":"onUpdatePlayerNextVideo_","yt-signal-action-pause-player":"handleSignalActionPausePlayer_","yt-signal-action-play-player":"handleSignalActionPlayPlayer_",
"yt-signal-action-acknowledge-youthere":"handleSignalActionAcknowledgeYouThere_","yt-user-activity":"onYtUserActivity_","yt-show-engagement-panel-scrim-action":"onYtShowEngagementPanelScrimAction_","yt-hide-engagement-panel-scrim-action":"onYtHideEngagementPanelScrimAction_","yt-get-current-video-id-action":"onGetCurrentVideoIdAction_","yt-show-survey-command":"onYtShowSurveyCommand_","yt-signal-action-scroll-to-comments":"onYtSignalActionScrollToComments","yt-engagement-panel-visible-changed":"onYtEngagementPanelVisibleChanged",
"yt-downloaded-video-deleted":"onDownloadedVideoDeleted","yt-change-markers-visibility-command":"onChangeMarkersVisibility","yt-updated-playability-status":"onYtUpdatedPlayabilityStatus"},created:function(){var M=this;this.watchController=void 0;this.pageDisposeJobs=[function(){M.showMetadataPlaceholder_()},
function(){_.w("web_watch_dont_clear_comments")||M.clearComments_()},
function(){M.clearPlayerAds_()},
function(){M.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;_.w("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.w("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=new _.TzW(function(){return _.Sc(M)},
this.hostElement);
this.pageDisposeJobs.push(function(){M.youThereManager_.reset()});
_.w("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){M.resetFullerscreenEduButtonForNewPlayback_()}));
_.w("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.Yt;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;_.w("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.w("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));_.w("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.qs(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(M){M&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:M}),M.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(M){_.w("kevlar_watch_flexy_theater_manager")&&(this.theater=M,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.w("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(M){!_.w("kevlar_watch_while_v2")&&!_.w("web_watch_pip")||M||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(M){this.active!==void 0&&(this.fullscreen=M,_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(M){this.active!==void 0&&(_.jP(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.w("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(M>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(M){this.initCsi_();this.updatePageData_(M)},
updatePageData_:function(M){var q=this;if(M)if(this.data===M){this.onPageLoadWithSameData_();var G;(G=this.watchController)==null||G.setWatchNextResponse(this.data)}else this.data=M;this.playlist&&_.t2({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.oJ("nw");this.loading=!1;_.Jp(_.r8,function(){q.initDclkstatus_();var K,n=((K=q.player)==null?void 0:K.getVideoData().cpn)||"";_.cnC(function(E,p){_.nAP(E,p,n)})})},
onPageLoadWithSameData_:function(){_.w("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 M=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!M);this.set("loadingData.playlistLoading",M&&M!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),M=this.watchNextSkeletonEl_.firstElementChild;M;)M.classList.remove("hidden"),M=M.nextElementSibling;var q,G,K;M=(q=this.loadingData)==null?void 0:(G=q.endpoint)==null?void 0:(K=G.watchEndpoint)==null?void 0:K.videoId;var n;M&&(n="https://i.ytimg.com/vi/"+M+"/frame0.jpg");_.f_(this.hostElement).querySelector("#player").style.backgroundImage=n?"url("+n+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var M=_.f_(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&M&&(M.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var q,G;(G=(q=this.watchMetadata).updateSentimentBarWidth)==
null||G.call(q);var K,n;(n=(K=this.watchMetadata).resize)==null||n.call(K)}_.f_(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(M){var q=_.f_(this.hostElement).querySelector(M);q?_.Tt(q,!1):_.j1(new _.bj("Overscroll monitor not found for component: ",M))},
removeSplitScrollMouseTrap:function(M){var q=_.f_(this.hostElement).querySelector(M);q?_.rt(q):_.j1(new _.bj("Disposal component for  overscroll monitoring not found: ",M))},
onLoadingChanged_:function(M){M?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(M){var q=this;M?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.r8.addLowPriorityJob(function(){q.onWindowResized_(_.kU(!0))})},
updateTheaterModeState_:function(M){if(!_.w("kevlar_watch_flexy_theater_manager")){M=M||this.fullWindowMode_;if(this.theater!==void 0||M)this.theater=M;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();M&&_.jYC()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var M=this.theater;_.w("external_fullscreen")&&this.fullscreen&&(M=!0);M=M?_.f_(this.hostElement).querySelector("#player-full-bleed-container"):_.f_(this.hostElement).querySelector("#player-container-inner");var q=this.getPlayerContainer(),G=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip");q.parentElement!==M&&(G&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.Sc(this).appendTo(M,q),M.appendChild(_.f_(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var M=this;return _.L(function(q){if(q.nextAddress==1)return q.yield(_.AL().resolve(_.lq).deactivate(),2);M.updatePlayerLocation();_.gL(q)})},
updateCinematicsLocation:function(){var M=this.getElement("CINEMATICS");if(M){var q=this.getCinematicsLocationContainer();M.parentElement!==q&&q.appendChild(M);var G;(G=this.watchController)==null||h3k(G)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.f_(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.f_(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(M,q){var G=document.documentElement.hasAttribute("dark"),K=G&&_.w("web_cinematic_theater_mode"),n=G&&_.w("web_cinematic_fullscreen");G=!G&&this.cinematicLightTheme;return M&&K||q&&n||(q||M)&&G},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var M;(M=this.watchController)==null||M.setWatchNextResponse(this.data);_.w("kevlar_watch_flexy_comments_manager")||this.initComments_();_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.AL().resolve(_.$x).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.w("web_watch_start_chat_in_theater_mode")){var q,
G,K;if((q=this.data)==null?0:(G=q.contents)==null?0:(K=G.twoColumnWatchNextResults)==null?0:K.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var n,E;((n=this.data)==null?0:(E=n.contents)==null?0:E.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(M){var q;(q=this.watchController)==null||q.setPlayerResponse(this.playerData);M&&M.playabilityStatus&&(q=this.isVideoPlayable_(M.playabilityStatus,this.getPlayerOverlays_(this.data)),M=this.isLiveStreamOffline_(M.playabilityStatus),q&&!M||_.yb(this,function(){_.oJ("pbu")}));
this.setPlayerAds_();_.Rf(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(M){_.zw().dispatch(_.RJ({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));M?this.activate_():this.deactivate_()},
attached:function(){var M=this;this.watchController=new vUC(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.w("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var q=_.Sc(this);_.w("kevlar_disable_prepare_player")||q.preparePlayer();_.w("kevlar_watch_flexy_playlist_manager")||_.AL().resolve(_.$x).setPlayer(q);this.updatePageMediaQueries();q={"--ytd-watch-flexy-scrollbar-width":_.lL()+
"px"};!_.tL("kv_pl_mx_sz_ks")&&_.tL("kevlar_watch_max_player_width")&&(q["--ytd-watch-flexy-max-player-width-wide-screen"]=_.JLA+"px");_.tL("kevlar_watch_flexy_metadata_height")&&(q["--ytd-watch-flexy-space-below-player"]=_.ZDG+"px");this.safeUpdateStyles(q);_.w("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new drG(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return M.onPlayerTouchPanDown_()}}));
_.w("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.f_(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var M=_.lL(),q=_.JF+M,G=q;this.fixedPanels&&(q+=_.uN3);var K=657+M;M=1327+M;_.f_(this.hostElement).querySelector("#two-column-query").query="(min-width: "+q+"px)";_.f_(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(K+"px), (min-height: 630px) and (min-width: ")+(q+"px) and (max-width: ")+(M+"px)");_.f_(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(M+"px)");
_.f_(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+G+"px)"},
calculateCurrentPlayerSize_:function(){var M=_.f_(this.hostElement).querySelector("#miniplayer-bar").firstChild;return M&&M.active||this.theater||_.w("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.cc(NaN,NaN):_.Dbk(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.Dbk(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.ka(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var M=this;this.onWindowResized_(_.kU());_.w("browse_skeleton_removal_on_watch_killswitch")||_.fX("IS_SHELL_LOAD")&&_.ICe();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var q=_.Sc(this);q.addEventListener("yt-player-updated",_.qs(this,this.onPlayerUpdated_));q.getPlayerPromise().then(function(G){M.playerApiReady_(G)});
_.w("kevlar_watch_flexy_playlist_manager")||(q=_.AL().resolve(_.$x),_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&q.addEventListener("yt-navigate",_.qs(this,this.onYtNavigate_)),q.setPlaylistComponent(_.f_(this.hostElement).querySelector("#playlist")),q.addEventListener("yt-playlist-data-updated",_.qs(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.r8.addLowPriorityJob(function(){_.jP(M.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.Sc(this).removeEventListener("yt-player-updated",_.qs(this,this.onPlayerUpdated_));if(!_.w("kevlar_watch_flexy_playlist_manager")){var M=_.AL().resolve(_.$x);_.w("kevlar_watch_observe_playlist_navigations_killswitch")&&M.removeEventListener("yt-navigate",_.qs(this,this.onYtNavigate_));M.cancelVideoSkip();M.removeEventListener("yt-playlist-data-updated",_.qs(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.w("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.jP(this.hostElement,"yt-autonav-pause-player",!1);M=_.m3();_.w("kevlar_exit_fullscreen_leaving_watch")&&M&&_.SP(M)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(M){this.player&&this.player.updateVideoData({rvs:M.rvs})},
getPageContents:function(M){return M&&M.contents&&M.contents.twoColumnWatchNextResults&&M.contents.twoColumnWatchNextResults.results&&M.contents.twoColumnWatchNextResults.results.results.contents},
getClarifyBox:function(){return this.clarifyBoxValue},
getLimitedState:function(){return this.limitedStateValue},
getMerchShelf:function(){return this.merchShelfValue},
getSingleColumn:function(){return this.singleColumnValue},
getOfferModule:function(M){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",M)},
onRetrieveLocation_:function(M,q){q.hasComments?q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):q.locationRetrieved("/related_ajax",void 0);M.stopPropagation()},
onSubscriptionChanged_:function(M,q){this.player&&(q?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.maM("learning_journey_watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.f_(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.f_(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(M){this.player=M;this.setPlayerState(M.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.w("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.w("kevlar_unified_player")||_.w("kevlar_player_new_bootstrap_adoption"))&&_.i_()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(M,q){q=q===void 0?!0:q;_.m3()&&_.w("external_fullscreen")&&_.SP(document.documentElement);this.theaterRequested_=M;q&&_.Df("wide",M?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.VW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.jP(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(M){_.V2(M,typeof this.player),this.player&&_.V2(M,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var M;((M=this.player)==null?0:M.isFullscreen())?this.player.toggleFullscreen():_.VW(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(M,q){return this.loading?q:!!Object.keys(M).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(M){if(M){M=_.k(M);for(var q=M.next();!q.done;q=M.next())q=q.value,q.youThereRenderer&&_.Vga(this.youThereManager_,q.youThereRenderer)}},
setPlaylistData_:function(M){return M||{}},
userEngagementConfigDataChanged_:function(M){if(M)if(M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var q=this.youThereManager_;_.Ap()<M.lowEngagementThresholdMs||_.HK9(q,!0)}else M.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.VW(this.hostElement,"yt-autonav-pause-user-engagement",[M])},
isPlayerUnavailable_:function(M,q,G){return!!M&&!this.isVideoPlayable_(M,G)&&!q},
getPlayerOverlays_:function(M){return(M==null?void 0:M.playerOverlays)||null},
isVideoPlayable_:function(M,q){if(!M)return!1;var G=M.status==="OK"||M.status==="LIVE_STREAM_OFFLINE",K=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",M)||this.get("errorScreen.ypcTrailerRenderer",M);M=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",M);var n;q=q==null?void 0:(n=q.playerOverlayRenderer)==null?void 0:n.gatedActionsOverlayRenderer;return!!G||!!K||!!M||!!q},
hasWatchNextResponseErrorRenderer:function(M){var q=this.getPageContents(M),G,K,n,E,p;return!(M==null?0:(G=M.contents)==null?0:(K=G.twoColumnWatchNextResults)==null?0:K.secondaryResults)&&!!((n=q[0])==null?0:(E=n.itemSectionRenderer)==null?0:(p=E.contents[0])==null?0:p.backgroundPromoRenderer)},
isLiveStreamOffline_:function(M){return M?M.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(M,q,G){var K=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",q),n=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];n=_.w("web_no_skip_video_on_verification_checks")?(M==null?void 0:M.status)&&n.includes(M.status):M&&M.status==="AGE_CHECK_REQUIRED";var E=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",M);E==void 0&&(E=!0);!G||this.isVideoPlayable_(M,this.getPlayerOverlays_(q))||
K||n||!E||_.AL().resolve(_.$x).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.JnL()},
onPlayerFeedbackStartRequest_:function(M){_.VW(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:M}])},
onPlayerFeedbackArticleRequest_:function(M){_.VW(this.hostElement,"yt-help-dialog-requested",[M])},
onPlayerYpcContentRequest_:function(){var M,q,G,K,n,E,p,y,Y=((M=this.data)==null?NaN:(q=M.contents)==null?NaN:(G=q.twoColumnWatchNextResults)==null?NaN:(K=G.secondaryResults)==null?NaN:(n=K.secondaryResults)==null?NaN:(E=n.offerModule)==null?NaN:(p=E.tvfilmOfferModuleRenderer)==null?NaN:(y=p.actionButtons)==null?NaN:y.length)-1;M=[".offerButton.buttonRenderer.",".actionButtons."+(Y>=0?Y:0)+".buttonRenderer."];q=_.k(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(G=q.next();!G.done;G=q.next())for(G=G.value,K=_.k(M),n=K.next();!n.done;n=K.next())if(n="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+G+n.value,n=this.get(n+"navigationEndpoint",this.data)||this.get(n+"serviceEndpoint",this.data)||this.get(n+"command",this.data)){_.sE(n,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(M){_.jP(this.hostElement,"yt-autonav-pause-player",M)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(M){M()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(M){switch(M){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.jP(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(M)},
setPlayerState:function(M){_.zw().dispatch(_.HMP(M))},
onPlayerSubscribe_:function(M){_.VW(this.hostElement,"yt-player-subscribe",[M])},
onPlayerUnsubscribe_:function(M){_.VW(this.hostElement,"yt-player-unsubscribe",[M])},
onPlayerAdYtShowToast_:function(M){_.VW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:M.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(M){if(M)return M},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(M){return!_.w("web_watch_move_summary_to_sd")&&!!M},
computeWatchMetadataRefresh:function(){return _.w("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var M,q,G,K;this.watchNextSecondaryResults=(M=this.data)==null?void 0:(q=M.contents)==null?void 0:(G=q.twoColumnWatchNextResults)==null?void 0:(K=G.secondaryResults)==null?void 0:K.secondaryResults}},
setRichGridRendererData:function(M){this.richGridRendererData=M},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var M,q=(M=this.data)==null?void 0:M.engagementPanels;if(q==null?0:q.length){M=null;q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;var K=void 0;if(((K=G.engagementPanelSectionListRenderer)==null?void 0:K.targetId)==="engagement-panel-structured-description"){M=G;break}}var n,E,p;M=(n=M)==null?void 0:(E=n.engagementPanelSectionListRenderer)==null?void 0:(p=E.content)==null?void 0:p.structuredDescriptionContentRenderer;if(M==null?0:M.items){n=
[];E=_.k(M.items);for(p=E.next();!p.done;p=E.next()){p=p.value;if(!_.w("sd_horizontal_list_show_nav_killswitch")){var y=K=G=q=M=void 0,Y=void 0,A=(M=p.horizontalCardListRenderer)==null?void 0:(q=M.header)==null?void 0:(G=q.richListHeaderRenderer)==null?void 0:(K=G.navigationButton)==null?void 0:(y=K.buttonRenderer)==null?void 0:(Y=y.command)==null?void 0:Y.commandExecutorCommand;A&&A.commands&&(A.commands=A.commands.filter(function(v){return!_.C(v,_.FTG)}))}p.expandableVideoDescriptionBodyRenderer||
p.videoDescriptionHeaderRenderer||n.push(p)}return{items:n}}}},
constructWarning_:function(M){return{text:_.bc(M),type:"WARNING"}},
isPlaShelfEnabled_:function(M){if((this.get("adPlacements",M)||[]).length)return!0;M=this.get("playerAds",M)||[];return!(!M.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",M[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var M=this;_.jP(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var q=this.getScrollTop()>0;this.gestures_&&(q?this.gestures_.detach():this.gestures_.attach());q!==this.showFullerscreenEdu_&&_.w("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=q,_.Sc(this).getPlayerPromise().then(function(G){G.updateFullerscreenEduButtonVisibility(M.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.jP(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var M=this;this.commentsReady=!1;_.r8.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.Jp(_.r8,function(){M.setComments_()},1E3)},
setComments_:function(){if(!_.w("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.oJ("cmi");_.r8.cancelJob(this.setCommentsJobId_);var M=this.getPageContents(this.data);if(M&&M.length){M=_.k(M);for(var q=M.next();!q.done;q=M.next())if(q=q.value,this.get("itemSectionRenderer.sectionIdentifier",q)==="comment-item-section"){this.comments=q.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.jP(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.w("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.w("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.oJ("cmc")},
doRemoveComments_:function(){this.comments={};_.w("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.r8.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.r8.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(M,q){var G=_.C(q.endpoint,_.Jl);G&&(!(q=this.get("data.currentVideoEndpoint.watchEndpoint"))||G.videoId!==q.videoId||G.playlistId&&G.playlistId!==q.playlistId||G.index!==void 0&&G.index!==q.index||typeof G.startTimeSeconds!=="number"||(M.stopPropagation(),this.setScrollTop(0),_.Sc(this).getPlayerPromise().then(function(K){var n=G.startTimeSeconds;K.seekTo(n);K.wakeUpControls();n<K.getDuration()&&K.playVideo()})))},
updatePlayerStartTime_:function(){var M=_.OKG();"t"in M&&(M=_.upC(M.t),this.player.seekTo(M,!0))},
updateTitleFromWatchNext:function(M){M=this.getPageContents(M);var q,G;(M=_.UX(M==null?void 0:(q=M[0])==null?void 0:(G=q.videoPrimaryInfoRenderer)==null?void 0:G.title))&&_.jP(this.hostElement,"yt-update-title",M)},
updateTitle_:function(M){M=this.get("videoDetails.title",M)||"";_.jP(this.hostElement,"yt-update-title",M)},
syncWithRemoteVideo_:function(M,q,G){if(this.active&&this.player){var K=this.player.getVideoData();if(K.video_id===G&&(G=K.list,_.w("polymer_enable_mdx_queue")&&G&&G.startsWith("RQ")&&(G=void 0),K.video_id!==M||G!=q)){var n;_.w("kevlar_player_watch_endpoint_navigation")?n=_.TSe(_.gzG(M,q)):n=this.buildWatchEndpoint_(M,q);_.jP(this.hostElement,"yt-navigate",{endpoint:n,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(M,q,G){return _.Te(M,q,G)},
initDclkstatus_:function(){_.ISC()},
attachWatchPageSkeleton_:function(){var M=document.querySelector("#watch-page-skeleton");if(M){var q=M.querySelector("#primary-info"),G=M.querySelector("#secondary-info"),K=M.querySelector("#related");q&&_.f_(this.hostElement).querySelector("#info-skeleton").appendChild(q);G&&_.f_(this.hostElement).querySelector("#meta-skeleton").appendChild(G);K&&(_.f_(this.hostElement).querySelector("#related-skeleton").appendChild(K),this.watchNextSkeletonEl_=K);_.cX(M)}},
handlePlayerUpdated_:function(){_.Sc(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(M,q){if(this.watchNextSkeletonEl_&&typeof q!=="undefined"){var G=this.watchNextSkeletonEl_.children,K=M&&M.indexSplices.length?M.indexSplices[0].index:0;M=Math.min(this.watchNextShownItems.length,G.length);q||(K=0,M=G.length);for(q=K;q<M;q++)G[q].classList.add("hidden")}},
onPlayerFullscreenChange_:function(M){_.w("external_fullscreen")||_.VW(this.hostElement,"yt-player-fullscreen",[M.fullscreen])},
onFullscreenChange_:function(M){this.fullscreen=M;this.gestures_&&this.gestures_.update(this.fullscreen);var q=_.Sc(this);q.getPlayerPromise().then(function(G){G.setFauxFullscreen(!!_.m3())});
this.updateFullBleedElementLocations();M&&(q.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(M,q){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!q},
computeIsDonationShelfCollapsed_:function(M){return M},
computeShouldShowMerchShelf:function(M,q){return q&&!!M},
computeResponseHasComments:function(M){var q,G,K,n,E;return!!(M==null?0:(q=M.contents)==null?0:(G=q.twoColumnWatchNextResults)==null?0:(K=G.results)==null?0:(n=K.results)==null?0:(E=n.contents)==null?0:E.some(function(p){var y;return(p==null?void 0:(y=p.itemSectionRenderer)==null?void 0:y.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(M,q){this.responseHasComments=this.computeResponseHasComments(this.data);return!!M&&!!Object.keys(M).length&&!q},
identity:_.ZF,onWindowResized_:function(M){this.windowSize_=M;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.w("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(M){var q=this;M&&M.type!=="dataloaded"&&M.type!=="dataupdated"||_.Sc(this).getPlayerPromise().then(function(G){var K=G.getPlayerState();K!==5&&K!==0&&(G=1/G.getVideoAspectRatio(),q.videoHeightToWidthRatio_!==G&&(q.videoHeightToWidthRatio_=G))})},
schedulePlayerSizeUpdate_:function(M){var q=this,G=_.w("kevlar_watch_while_v2")||_.w("web_watch_pip"),K=function(){if(q.watchMetadata){var n,E;(E=(n=q.watchMetadata).resize)==null||E.call(n)}_.Sc(q).getPlayerPromise().then(function(p){if(_.w("kevlar_set_internal_player_size")){if(!G||!q.isMiniplayerActive()){var y=q.calculateCurrentPlayerSize_();p.setInternalSize(y.width,y.height)}}else p.setSize(NaN,NaN);_.w("kevlar_watch_while")&&q.updateWatchWhileScrollThreshold_()})};
M?K():_.MK(_.r8,K)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(M){this.set("data.survey",M.detail)},
onYtShowSurveyCommand_:function(M){this.set("data.survey",_.C(M,_.SXA).survey)},
onDownloadedVideoDeleted:function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1){if(!q.active||(G=q.playerData)==null||!G.offlineState||q.videoId!==M)return n.return();(K=q.player)==null||K.stopVideo();_.Bg().navigatingAwayFromWatchDeletedVideo=!0;_.sE(_.fVu,q.hostElement);return n.yield(_.Bg().navigationFinishPromise,2)}_.Bg().navigatingAwayFromWatchDeletedVideo=!1;_.gL(n)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var M;this.theater?M=_.wr(.5625*this.windowSize_.width,480,this.windowSize_.height-185):M=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==M&&(this.watchWhileScrollThreshold_=M,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var M=_.f_(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&M){var q=this.windowSize_.height>=624,G=this.active?this.getScrollTop():0;!M.active&&q&&G>=this.watchWhileScrollThreshold_?(M.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):M.active&&(!q||G<this.watchWhileScrollThreshold_&&!_.m3())&&(M.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(M,q){if(M!==!0||q!==void 0){M=!_.w("live_chat_over_engagement_panels");q=_.f_(this.hostElement).querySelector("#chat-container");var G=_.f_(this.hostElement).querySelector("#plj-sidebar"),K=_.f_(this.hostElement).querySelector("#panels"),n=_.f_(this.hostElement).querySelector("#plj-panels"),E=_.f_(this.hostElement).querySelector("#plj-playlist"),p=_.f_(this.hostElement).querySelector("#alerts"),y=_.f_(this.hostElement).querySelector("#playlist"),Y=_.f_(this.hostElement).querySelector("#related"),
A=_.f_(this.hostElement).querySelector("#donation-shelf"),v=_.f_(this.hostElement).querySelector("#comments");this.isTwoColumns_?(p=_.f_(this.hostElement).querySelector("#secondary-inner"),p.appendChild(G),G.appendChild(E),E.appendChild(y),G.appendChild(n),M&&p.appendChild(K),_.w("web_watch_theater_chat")||p.appendChild(q),M||p.appendChild(K),p.appendChild(A),p.appendChild(Y)):(M&&_.cp(K,p),_.cp(y,p),_.w("web_watch_theater_chat")||_.cp(q,p),M||_.cp(K,p),_.cp(A,p),v&&(n&&_.cp(n,v),_.cp(Y,v)));_.w("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.w("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.w("web_watch_theater_chat")){var M=_.f_(this.hostElement).querySelector("#chat-container"),q=this.theater&&!this.fullscreen||_.w("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&q?_.w("web_watch_theater_chat_beside_player")?(q=_.f_(this.hostElement).querySelector("#panels-full-bleed-container"),(M==null?void 0:M.parentElement)!==q&&q.append(M),this.panelsBesidePlayer=!0):_.w("web_watch_theater_fixed_chat")&&
(q=_.f_(this.hostElement).querySelector("#columns"),(M==null?void 0:M.parentElement)!==q&&q.append(M),this.fixedPanels=!0):(_.w("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.w("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),q=_.f_(this.hostElement).querySelector("#playlist"),M&&q?_.gB(M,q):_.j1(new _.bj("Missing element when updating chat location",{"chatContainer defined":!!M,"playlist defined":!!q})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(M,q){return _.w("sw_metadata_vis_toggle_ks")?!0:!!M||!!q},
computeForceDarkPanelTheme:function(M){return _.w("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&M:!1},
safeUpdateStyles:function(M){try{_.sT(this.hostElement,M)}catch(q){_.j1(q)}},
videoHeightToWidthRatioChanged_:function(M,q){q&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.w("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(M){this.videoHeightToWidthRatio_=1/M},
computeIsVerticalVideo_:function(M){return M>=1},
computeIsFourThreeToSixteenNineVideo_:function(M){return M<=.7501&&M>=.5624},
computeIsExtraWideVideo_:function(M){return M<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.Sc(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.Sc(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.eHe(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(M){var q=_.d2(M)||0;_.AK(M,q+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var M=_.d2("yt-fullerscreen-edu-button-click-count")||0,q=_.d2("yt-fullerscreen-edu-button-shown-count")||0,G=_.tL("external_fullscreen_button_shown_threshold"),K=M>=_.tL("external_fullscreen_button_click_threshold")||q>=G;_.Sc(this).getPlayerPromise().then(function(n){n.updateFullerscreenEduButtonSubtleModeState(K)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(M,q){return q},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.AL().resolve(_.$x).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var M=this;this.panelMaxHeightUpdateJob_&&_.r8.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.r8.addLowPriorityJob(function(){M.panelMaxHeightUpdateJob_=0;var q;!M.isTwoColumns_||M.theater||M.fullscreen?q=460:q=M.calculateNormalPlayerSize_().height;var G=q+"px";_.w("live_chat_taller_height")&&!M.theater&&(G="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.w("live_chat_medium_height")&&
!M.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.w("live_chat_scaled_height")&&!M.theater&&(G="calc(100vh - var(--ytd-toolbar-height) - 238px)");M.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":q+"px","--ytd-watch-flexy-chat-max-height":G,"--ytd-watch-flexy-structured-description-max-height":q+"px","--ytd-watch-flexy-comments-panel-max-height":q+"px","--ytd-comments-engagement-panel-content-height":q+"px"})})},
onYtShowEngagementPanelScrimAction_:function(M){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",M)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.FH(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(M){var q=_.f_(this.hostElement).querySelector("#engagement-panel-scrim");M?q.addEventListener("tap",_.qs(this,this.onEngagementPanelScrimClick_)):q.removeEventListener("tap",_.qs(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(M){if(this.hostElement.contains(M)&&!this.scrollToAnimation_.isAnimating()){var q=M.offsetTop-24;M=M.offsetTop+M.offsetHeight+24;var G=this.getPageScrollingElement(),K=this.getScrollTop(),n=K+G.clientHeight-56;if(q<K+56)q-=56;else if(M>n)q=M-G.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,q),500)}},
onYtSignalActionScrollToComments:function(){var M=this.hostElement.querySelector("#comments");if(M&&!this.scrollToAnimation_.isAnimating()){M=M.offsetTop-56-24;if(_.w("kevlar_comment_teaser_scroll_to_midpoint")&&(M-=_.Bc().height/3,M<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,M),500)}},
onYtEngagementPanelVisibleChanged:function(M,q,G){this.active&&this.trackEngagementPanelVisibility&&!_.zH9.includes(G)&&(q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(G),q!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&q!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(G),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(M){return M?"":"watch-active-metadata"},
computeNewMetadataClass:function(M){return M?"watch-active-metadata":""},
computeFullBleedPlayer:function(M,q){return M||q},
computeDefaultLayout:function(M){return!M},
computeDefaultTwoColumnLayout:function(M,q){return!M&&q},
computeWatchWhilePanelsActive:function(M,q){return M||q},
computeNoBorderOnChat:function(M){return _.w("web_watch_theater_chat_no_border")&&M},
computeLiveChatPresentAndExpanded:function(M,q){return M&&!q},
computePanelExpanded:function(M,q,G){return M||q||G},
onChangeMarkersVisibility:function(M){_.Sc(this).getPlayerPromise().then(function(q){var G;(G=q.changeMarkerVisibility)==null||G.call(q,_.C(M,_.TH).isVisible||!1,_.C(M,_.TH).entityKeys||[],_.C(M,_.TH).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(M){this.liveChatCollapsed=M.detail;_.zw().dispatch(_.xbk(M.detail))},
provideRenderingData:function(M,q){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=q;break;case "PRIMARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=q);this.videoPrimaryInfoRendererValue=q==null?void 0:q.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.w("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=q);this.videoSecondaryInfoRendererValue=q==null?void 0:q.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
q;break;case "CLARIFICATION":this.clarifyBoxValue=q;break;case "LIVE_CHAT":this.conversationBar=q;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=q;break;case "PLAYLIST":this.externalPlaylistData_=q!=null?q:{};break;case "MERCH_SHELF":this.merchShelfValue=q==null?void 0:q.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=q;break;case "OFFER_MODULE":this.offerModule=q;break;case "LIMITED_STATE":this.limitedStateValue=q;break;case "DONATION_SHELF":this.donation=q;break;
case "ALERTS":this.alertsValue=q;break;case "COMMENTS":this.comments=q;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=q;break;case "ENGAGEMENT_PANELS":this.engagementPanels=q;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=q;break;case "RICH_GRID_RENDERER":this.richGridRendererData=q;break;case "EXPANDABLE_METADATA":this.expandableMetadata=q;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=q}},
toggleCinematicsActive:function(M){this.cinematicsActive=M},
isMiniplayerActive:function(){return _.AL().resolve(_.lq).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(M){return O_W.map(function(q){return M.find(function(G){var K;return(G==null?void 0:(K=G.engagementPanelSectionListRenderer)==null?void 0:K.targetId)===q})}).filter(function(q){return q!==void 0})},
getNonLearningJourneyEngagementPanels:function(M){return M.filter(function(q){var G;return!O_W.includes((q==null?void 0:(G=q.engagementPanelSectionListRenderer)==null?void 0:G.targetId)||"")})}}];var wEG;var $M=function(){var M=_.Q.apply(this,arguments)||this;M.flexy=!0;M.learningJourney=!0;M.viewTransitionEnabled=_.w("enable_player_resize_transition");M.smallerChatMinHeight=_.w("live_chat_smaller_min_height");M.cinematicTheaterMode=_.w("web_cinematic_theater_mode");M.transparentTheaterMode=_.w("web_transparent_theater_mode");M.cinematicFullscreen=_.w("web_cinematic_fullscreen");M.cinematicFullscreenV2=_.w("web_cinematic_fullscreen_v2");M.isDarkTheme=document.documentElement.hasAttribute("dark");
M.theaterLargerPlayer=_.w("web_watch_theater_larger_player");M.defaultCollapsePlaylist=_.w("web_watch_default_collapse_playlist");M.enableCanvasLayout=_.w("web_enable_canvas_on_learning_journey");return M};
_.l($M,_.Q);_.N=$M.prototype;_.N.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.N.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.N.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.N.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.N.ready=function(){var M=this,q=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",q);this.secondary.addEventListener("scroll",q)};
_.N.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.N.updateIsTwoColumnsFromBinding=function(M){_.w("web_watch_update_narrow_width_killswitch")||_.zw().dispatch(_.SbC(!M.detail.value));this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.N.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.N.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.N.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.N.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.N.updateShownItemsFromBinding=function(M){M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value};
_.N.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23440_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23440_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Yd.Object.defineProperties($M.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 M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var q=0;q<this.data.pageVisualEffects.length;q++)if(M=_.C(this.data.pageVisualEffects[q],_.$i))return q=void 0,(q=M.config)==null?void 0:q.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.learningJourneyEngagementPanels)==null?void 0:M.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var M,q=(M=this.learningJourneyEngagementPanels)==null?void 0:M.find(function(t){var O;return(t==null?void 0:(O=t.engagementPanelSectionListRenderer)==null?void 0:O.panelIdentifier)==="learning-journey-engagement-panel"});
if(q){var G,K,n,E,p,y,Y,A,v;if(M=(A=((Y=(p=((E=q==null?void 0:(G=q.engagementPanelSectionListRenderer)==null?void 0:(K=G.content)==null?void 0:(n=K.sectionListRenderer)==null?void 0:n.contents)!=null?E:[])[0])==null?void 0:(y=p.itemSectionRenderer)==null?void 0:y.contents)!=null?Y:[])[0])==null?void 0:(v=A.accordionViewModel)==null?void 0:v.onTitleTap){var h=_.aM(M);if(h)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.$A.instance.resolveCommand(h)}}}}}}});
_.Yd.Object.defineProperties($M,{template:{configurable:!0,enumerable:!0,get:function(){if(wEG===void 0){var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="watch-content" hidden="[[!showWatchResponse]]" class="style-scope ytd-watch-learning-journey">\n        <div id="player" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n            <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n              <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n                <ytd-player id="ytd-plj-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_LEARNING_JOURNEY_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n                </ytd-player>\n              </div>\n            </div>\n            <div id="player-button-overlays" class="style-scope ytd-watch-learning-journey">\n              <yt-button-shape data="[[backButtonData]]" hidden$="[[!backButtonData]]" icon-name="x_cairo" class="style-scope ytd-watch-learning-journey">\n            </yt-button-shape></div>\n          </div>\n          <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n          </yt-playability-error-supported-renderers>\n        </div>\n        <div id="below" class="style-scope ytd-watch-learning-journey">\n          <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n          <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n          </ytd-watch-metadata>\n          <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n            <div id="info" class="style-scope ytd-watch-learning-journey">\n              <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n            <div id="meta" class="style-scope ytd-watch-learning-journey">\n              <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n              <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n            </div>\n          </div>\n          <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n          <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n          \n          <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n            <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n            </ytd-merch-shelf-renderer>\n          </template>\n          <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-comments>\n        </div>\n      </div>\n      <div id="browse-content" hidden="[[!showBrowseResponse]]" class="style-scope ytd-watch-learning-journey">\n        <ytd-two-column-browse-results-renderer id="ytd-plj-browse" data="[[browseData.contents.twoColumnBrowseResultsRenderer]]" class="style-scope ytd-watch-learning-journey"></ytd-two-column-browse-results-renderer>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);wEG=M}M=wEG;return M}}});
$M.prototype.updateMiniplayerIsActiveValue=$M.prototype.updateMiniplayerIsActiveValue;$M.prototype.updateScrollTopValue=$M.prototype.updateScrollTopValue;$M.prototype.updateFullscreenValue=$M.prototype.updateFullscreenValue;$M.prototype.updateTheaterValue=$M.prototype.updateTheaterValue;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],$M.prototype,"ytComponentBehavior",void 0);
_.T([_.P(tlC.YtdLearningJourneyWatchBehavior),_.r("design:type",Object)],$M.prototype,"ytdWatchBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],$M.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$M.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],$M.prototype,"playerData",void 0);_.T([_.B(),_.r("design:type",Object)],$M.prototype,"browseData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"flexy",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"learningJourney",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"viewTransitionEnabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"smallerChatMinHeight",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"cinematicTheaterMode",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"transparentTheaterMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"cinematicFullscreen",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"cinematicFullscreenV2",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"isDarkTheme",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],$M.prototype,"theaterLargerPlayer",void 0);_.T([_.B(),_.r("design:type",Object)],$M.prototype,"defaultCollapsePlaylist",void 0);_.T([_.B(),_.r("design:type",Object)],$M.prototype,"enableCanvasLayout",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("playerData","browseData","enableCanvasLayout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$M.prototype,"showBrowseResponse",null);
_.T([_.B({reflectToAttribute:!0}),_.c("playerData","enableCanvasLayout"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],$M.prototype,"showWatchResponse",null);_.T([_.B({selector:_.Cp}),_.r("design:type",Object)],$M.prototype,"theaterValue",void 0);_.T([_.B({selector:_.a2}),_.r("design:type",Object)],$M.prototype,"fullscreenValue",void 0);_.T([_.B({selector:_.gy}),_.r("design:type",Object)],$M.prototype,"scrollTopValue",void 0);
_.T([_.B({selector:_.at}),_.r("design:type",Object)],$M.prototype,"miniplayerIsActiveValue",void 0);_.T([_.ET("#ytd-plj-player"),_.r("design:type",HTMLElement)],$M.prototype,"ytdPlayer",void 0);_.T([_.ET("#playlist"),_.r("design:type",HTMLElement)],$M.prototype,"JSC$23440_ytdPlaylistPanelRenderer",void 0);_.T([_.xB("ytd-comments"),_.r("design:type",HTMLElement)],$M.prototype,"ytdComments",void 0);_.T([_.ET("#primary"),_.r("design:type",HTMLElement)],$M.prototype,"primary",void 0);
_.T([_.ET("#secondary"),_.r("design:type",HTMLElement)],$M.prototype,"secondary",void 0);_.T([_.ET("#player-container"),_.r("design:type",HTMLElement)],$M.prototype,"playerContainer",void 0);_.T([_.ET("#cinematics"),_.r("design:type",HTMLElement)],$M.prototype,"JSC$23440_cinematics",void 0);_.T([_.KT("theaterValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$M.prototype,"updateTheaterValue",null);
_.T([_.KT("fullscreenValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$M.prototype,"updateFullscreenValue",null);_.T([_.KT("scrollTopValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$M.prototype,"updateScrollTopValue",null);_.T([_.KT("miniplayerIsActiveValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$M.prototype,"updateMiniplayerIsActiveValue",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],$M.prototype,"cinematicLightTheme",null);_.T([_.B({reflectToAttribute:!0}),_.c("learningJourneyEngagementPanels"),_.r("design:type",Object),_.r("design:paramtypes",[])],$M.prototype,"hasLearningJourneyPanels",null);_.T([_.c("learningJourneyEngagementPanels"),_.r("design:type",Object),_.r("design:paramtypes",[])],$M.prototype,"backButtonData",null);_.T([_.b({is:"ytd-watch-learning-journey"})],$M);_.Su.registerService(_.LSF,$M);
_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("Tm0L3c");
var N2L;var kuy;var pEv=function(){return _.Q.apply(this,arguments)||this};
_.l(pEv,_.Q);_.T([_.b({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],pEv);
_.z(pEv,"ytd-ghost-comments-renderer",function(){if(kuy===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);kuy=M}M=kuy;return M},{mode:1});var yKv;var Lay=function(){return _.Q.apply(this,arguments)||this};
_.l(Lay,_.Q);_.T([_.b({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],Lay);
_.z(Lay,"ytd-ghost-watch-metadata-renderer",function(){if(yKv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);yKv=M}M=yKv;return M},{mode:1});var eC=function(){var M=_.Q.apply(this,arguments)||this;M.ghostGridRenderer={rows:6};M.smallerChatMinHeight=_.w("live_chat_smaller_min_height");M.cinematicTheaterMode=_.w("web_cinematic_theater_mode");M.transparentTheaterMode=_.w("web_transparent_theater_mode");M.darkerPanels=_.w("web_watch_darker_panels");M.cinematicFullscreen=_.w("web_cinematic_fullscreen");M.cinematicFullscreenV2=_.w("web_cinematic_fullscreen_v2");M.isDarkTheme=document.documentElement.hasAttribute("dark");return M};
_.l(eC,_.Q);_.N=eC.prototype;_.N.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.N.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.N.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.N.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.N.ready=function(){var M=this,q=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",q);this.secondary.addEventListener("scroll",q)};
_.N.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.N.updateIsTwoColumnsFromBinding=function(M){this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.N.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.N.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.N.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.N.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.N.updateShownItemsFromBinding=function(M){_.w("swatcheroo_direct_use_rich_grid")||(M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value)};
_.N.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23428_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23428_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Yd.Object.defineProperties(eC.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var q=0;q<this.data.pageVisualEffects.length;q++)if(M=_.C(this.data.pageVisualEffects[q],_.$i))return q=void 0,(q=M.config)==null?void 0:q.enableInLightTheme;return!1}}});
eC.prototype.updateMiniplayerIsActiveValue=eC.prototype.updateMiniplayerIsActiveValue;eC.prototype.updateScrollTopValue=eC.prototype.updateScrollTopValue;eC.prototype.updateFullscreenValue=eC.prototype.updateFullscreenValue;eC.prototype.updateTheaterValue=eC.prototype.updateTheaterValue;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],eC.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.nUA.YtdWatchBehavior),_.r("design:type",Object)],eC.prototype,"ytdWatchBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],eC.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],eC.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],eC.prototype,"ghostGridRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],eC.prototype,"playerData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eC.prototype,"smallerChatMinHeight",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eC.prototype,"cinematicTheaterMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eC.prototype,"transparentTheaterMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eC.prototype,"darkerPanels",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eC.prototype,"cinematicFullscreen",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eC.prototype,"cinematicFullscreenV2",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],eC.prototype,"isDarkTheme",void 0);_.T([_.B({selector:_.Cp}),_.r("design:type",Object)],eC.prototype,"theaterValue",void 0);_.T([_.B({selector:_.a2}),_.r("design:type",Object)],eC.prototype,"fullscreenValue",void 0);_.T([_.B({selector:_.gy}),_.r("design:type",Object)],eC.prototype,"scrollTopValue",void 0);
_.T([_.B({selector:_.at}),_.r("design:type",Object)],eC.prototype,"miniplayerIsActiveValue",void 0);_.T([_.ET("#ytd-player"),_.r("design:type",HTMLElement)],eC.prototype,"ytdPlayer",void 0);_.T([_.ET("#playlist"),_.r("design:type",HTMLElement)],eC.prototype,"JSC$23428_ytdPlaylistPanelRenderer",void 0);_.T([_.ET("#ytd-comments"),_.r("design:type",HTMLElement)],eC.prototype,"ytdComments",void 0);_.T([_.ET("#primary"),_.r("design:type",HTMLElement)],eC.prototype,"primary",void 0);
_.T([_.ET("#secondary"),_.r("design:type",HTMLElement)],eC.prototype,"secondary",void 0);_.T([_.ET("#player-container"),_.r("design:type",HTMLElement)],eC.prototype,"playerContainer",void 0);_.T([_.ET("#cinematics"),_.r("design:type",HTMLElement)],eC.prototype,"JSC$23428_cinematics",void 0);_.T([_.KT("theaterValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eC.prototype,"updateTheaterValue",null);
_.T([_.KT("fullscreenValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eC.prototype,"updateFullscreenValue",null);_.T([_.KT("scrollTopValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eC.prototype,"updateScrollTopValue",null);_.T([_.KT("miniplayerIsActiveValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],eC.prototype,"updateMiniplayerIsActiveValue",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],eC.prototype,"cinematicLightTheme",null);
_.z(eC,"ytd-watch-grid",function(){if(N2L===void 0){var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n        <ytd-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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);N2L=M}M=N2L;return M},{mode:2});_.Su.registerService(_.yH$,eC);
_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("CF909");
var EUL;var HS=function(){var M=_.Q.apply(this,arguments)||this;M.viewTransitionEnabled=_.w("enable_player_resize_transition");M.smallerChatMinHeight=_.w("live_chat_smaller_min_height");M.cinematicTheaterMode=_.w("web_cinematic_theater_mode");M.transparentTheaterMode=_.w("web_transparent_theater_mode");M.cinematicFullscreen=_.w("web_cinematic_fullscreen");M.isDarkTheme=document.documentElement.hasAttribute("dark");M.defaultCollapsePlaylist=_.w("web_watch_default_collapse_playlist");M.retroModeReduxValue=
!1;M.persistentPanelVisibleValue=!1;return M};
_.l(HS,_.Q);_.N=HS.prototype;_.N.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.N.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.N.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.N.updateRetroModeReduxValue=function(){_.w("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.N.updatePersistentPanelVisibleValue=function(){_.w("enable_ai_companion")&&(this.ytdWatchBehavior.persistentPanelVisible=this.persistentPanelVisibleValue)};
_.N.ready=function(){var M=this,q=function(){M.onColumnScroll()};
this.primary.addEventListener("scroll",q);this.secondary.addEventListener("scroll",q)};
_.N.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.N.updateIsTwoColumnsFromBinding=function(M){_.w("web_watch_update_narrow_width_killswitch")||_.zw().dispatch(_.SbC(!M.detail.value));this.ytdWatchBehavior.isTwoColumns_=M.detail.value};
_.N.updateFlexySmallWindowFromBinding=function(M){this.ytdWatchBehavior.flexySmallWindow_=M.detail.value};
_.N.updateFlexyLargeWindowFromBinding=function(M){this.ytdWatchBehavior.flexyLargeWindow_=M.detail.value};
_.N.updateWatchWhileWindowSizeSufficientFromBinding=function(M){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=M.detail.value};
_.N.updateWatchNextCanShowMoreFromBinding=function(M){this.ytdWatchBehavior.watchNextCanShowMore=M.detail.value};
_.N.updateShownItemsFromBinding=function(M){M.detail.path?this.set(M.detail.path,M.detail.value):this.ytdWatchBehavior.watchNextShownItems=M.detail.value};
_.N.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$23423_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$23423_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}};
_.Yd.Object.defineProperties(HS.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.pageVisualEffects)return!1;for(var q=0;q<this.data.pageVisualEffects.length;q++)if(M=_.C(this.data.pageVisualEffects[q],_.$i))return q=void 0,(q=M.config)==null?void 0:q.enableInLightTheme;return!1}}});
_.Yd.Object.defineProperties(HS,{template:{configurable:!0,enumerable:!0,get:function(){if(EUL===void 0){var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="shopping-timely-shelf" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n      <div 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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);EUL=M}M=EUL;return M}}});
HS.prototype.updatePersistentPanelVisibleValue=HS.prototype.updatePersistentPanelVisibleValue;HS.prototype.updateRetroModeReduxValue=HS.prototype.updateRetroModeReduxValue;HS.prototype.updateScrollTopValue=HS.prototype.updateScrollTopValue;HS.prototype.updateFullscreenValue=HS.prototype.updateFullscreenValue;HS.prototype.updateTheaterValue=HS.prototype.updateTheaterValue;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],HS.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.nUA.YtdWatchBehavior),_.r("design:type",Object)],HS.prototype,"ytdWatchBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],HS.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],HS.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],HS.prototype,"playerData",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],HS.prototype,"viewTransitionEnabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],HS.prototype,"smallerChatMinHeight",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],HS.prototype,"cinematicTheaterMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],HS.prototype,"transparentTheaterMode",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],HS.prototype,"cinematicFullscreen",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],HS.prototype,"isDarkTheme",void 0);_.T([_.B(),_.r("design:type",Object)],HS.prototype,"defaultCollapsePlaylist",void 0);_.T([_.B({selector:_.Cp}),_.r("design:type",Object)],HS.prototype,"theaterValue",void 0);_.T([_.B({selector:_.a2}),_.r("design:type",Object)],HS.prototype,"fullscreenValue",void 0);
_.T([_.B({selector:_.gy}),_.r("design:type",Object)],HS.prototype,"scrollTopValue",void 0);_.T([_.B({selector:_.at}),_.r("design:type",Object)],HS.prototype,"miniplayerIsActive",void 0);_.T([_.B({selector:function(M){return M.watch.isWatchRetroMode}}),
_.r("design:type",Object)],HS.prototype,"retroModeReduxValue",void 0);_.T([_.B({selector:_.gx.persistentPanelVisibleSelector}),_.r("design:type",Object)],HS.prototype,"persistentPanelVisibleValue",void 0);_.T([_.xB("ytd-player"),_.r("design:type",HTMLElement)],HS.prototype,"ytdPlayer",void 0);_.T([_.ET("#playlist"),_.r("design:type",HTMLElement)],HS.prototype,"JSC$23423_ytdPlaylistPanelRenderer",void 0);_.T([_.xB("ytd-comments"),_.r("design:type",HTMLElement)],HS.prototype,"ytdComments",void 0);
_.T([_.ET("#primary"),_.r("design:type",HTMLElement)],HS.prototype,"primary",void 0);_.T([_.ET("#secondary"),_.r("design:type",HTMLElement)],HS.prototype,"secondary",void 0);_.T([_.ET("#player-container"),_.r("design:type",HTMLElement)],HS.prototype,"playerContainer",void 0);_.T([_.ET("#below"),_.r("design:type",HTMLElement)],HS.prototype,"below",void 0);_.T([_.ET("#cinematics"),_.r("design:type",HTMLElement)],HS.prototype,"JSC$23423_cinematics",void 0);
_.T([_.ET("#persistent-panel-container"),_.r("design:type",HTMLElement)],HS.prototype,"persistentPanelContainer",void 0);_.T([_.KT("theaterValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HS.prototype,"updateTheaterValue",null);_.T([_.KT("fullscreenValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HS.prototype,"updateFullscreenValue",null);
_.T([_.KT("scrollTopValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HS.prototype,"updateScrollTopValue",null);_.T([_.KT("retroModeReduxValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HS.prototype,"updateRetroModeReduxValue",null);_.T([_.KT("persistentPanelVisibleValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HS.prototype,"updatePersistentPanelVisibleValue",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],HS.prototype,"cinematicLightTheme",null);_.T([_.b({is:"ytd-watch-flexy"})],HS);_.Su.registerService(_.pSy,HS);
_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("nmfa2d");
var tge;var mS=function(){var M=_.Q.apply(this,arguments)||this;M.hidden=!1;M.errorScreen=null;M.playlistData={};return M};
_.l(mS,_.Q);_.N=mS.prototype;_.N.getPlayer=function(){return this.ytdPlayer};
_.N.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:_.vZ(["aa","eocs"])}}};
_.N.onActiveChanged=function(){_.zw().dispatch(_.Fb3(this.ytPageBehavior.active))};
_.N.playerDataChanged=function(){var M;(M=this.watchController)==null||M.setPlayerResponse(this.playerData)};
_.N.dataChanged=function(){var M;(M=this.watchController)==null||M.setWatchNextResponse(this.data)};
_.N.sizeChanged=function(){var M,q;(q=(M=this.metadata).resize)==null||q.call(M)};
_.N.attached=function(){this.watchController=new _.xM(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.N.detached=function(){_.ka(this.watchController);this.watchController=void 0};
_.N.getPlayerContainer=function(){return this.playerContainer};
_.N.getElement=function(M){switch(M){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.playlistPanel}};
_.N.provideRenderingData=function(M,q){switch(M){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=q;break;case "ERROR_SCREEN":this.errorScreen=q!=null?q:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=q;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=q;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=q;break;case "RICH_METADATA":this.richMetadataRowContainer=q;break;case "CLARIFICATION":this.clarificationData=q;break;case "PLAYLIST":this.playlistData=
q!=null?q:{};break;case "MERCH_SHELF":this.merchShelf=q;break;case "TICKET_SHELF":this.ticketShelf=q;break;case "LIMITED_STATE":this.limitedState=q;break;case "DONATION_SHELF":this.donationShelf=q;break;case "ALERTS":this.alerts=q}};
_.Yd.Object.defineProperties(mS.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return!this.hidden&&!!((M=this.data)==null?0:(q=M.contents)==null?0:(G=q.twoColumnWatchNextResults)==null?0:G.conversationBar)}}});
mS.prototype.sizeChanged=mS.prototype.sizeChanged;mS.prototype.dataChanged=mS.prototype.dataChanged;mS.prototype.playerDataChanged=mS.prototype.playerDataChanged;mS.prototype.onActiveChanged=mS.prototype.onActiveChanged;_.T([_.P(_.qV.YtPageBehavior),_.r("design:type",Object)],mS.prototype,"ytPageBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],mS.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mS.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],mS.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"playerData",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],mS.prototype,"hidden",void 0);_.T([_.ET("#ytd-player"),_.r("design:type",HTMLElement)],mS.prototype,"ytdPlayer",void 0);_.T([_.ET("#player-container"),_.r("design:type",HTMLElement)],mS.prototype,"playerContainer",void 0);_.T([_.ET("#metadata"),_.r("design:type",Object)],mS.prototype,"metadata",void 0);_.T([_.ET("#playlist"),_.r("design:type",HTMLElement)],mS.prototype,"playlistPanel",void 0);
_.T([_.B({selector:_.TY9,reflectToAttribute:!0}),_.r("design:type",Object)],mS.prototype,"fixie",void 0);_.T([_.B({selector:_.S93,reflectToAttribute:!0}),_.r("design:type",Object)],mS.prototype,"singleColumn",void 0);_.T([_.B({selector:function(M){return _.Cp(M)&&!_.a2(M)},
reflectToAttribute:!0}),_.r("design:type",Object)],mS.prototype,"theater",void 0);_.T([_.B({selector:_.a2,reflectToAttribute:!0}),_.r("design:type",Object)],mS.prototype,"fullscreen",void 0);_.T([_.B({selector:_.VEC}),_.r("design:type",Object)],mS.prototype,"windowSize",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"singleColumnContents",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"errorScreen",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"playlistData",void 0);
_.T([_.B(),_.r("design:type",Object)],mS.prototype,"videoPrimaryInfoRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"videoSecondaryInfoRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"richMetadataRowContainer",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"clarificationData",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"commentsEntryPointHeaderRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"ticketShelf",void 0);
_.T([_.B(),_.r("design:type",Object)],mS.prototype,"merchShelf",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"donationShelf",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"limitedState",void 0);_.T([_.B(),_.r("design:type",Object)],mS.prototype,"alerts",void 0);_.T([_.c("playlistData"),_.r("design:type",Object),_.r("design:paramtypes",[])],mS.prototype,"hasPlaylistData",null);
_.T([_.c("data","hidden"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],mS.prototype,"hasChat",null);_.T([_.KT("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mS.prototype,"onActiveChanged",null);_.T([_.KT("playerData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mS.prototype,"playerDataChanged",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mS.prototype,"dataChanged",null);_.T([_.KT("windowSize","singleColumn"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mS.prototype,"sizeChanged",null);
_.z(mS,"ytd-watch-fixie",function(){if(tge===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);tge=M}M=tge;return M},{mode:1});_.Su.registerService(_.kH$,mS);
_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("xwEKAe");
var Uy3=function(M){M=M.command;var q=_.C(M,_.p_);return{command:M,reelPlayerOverlayRenderer:_.C(q==null?void 0:q.overlay,_.jGv),thumbnail:q==null?void 0:q.thumbnail,videoId:q.videoId}},xyv=function(M){M=M.command;
var q=_.C(M,_.jN);return{command:M,reelNonVideoContentRenderer:_.C(q==null?void 0:q.renderer,_.RD)}},zkM=function(M){return M.entries?M.entries.map(function(q){return _.C(q==null?void 0:q.command,_.p_)?Uy3(q):xyv(q)}):[]},myG=function(M){return M.prevEntries?M.prevEntries.map(function(q){return _.C(q==null?void 0:q.command,_.p_)?Uy3(q):xyv(q)}):[]},SKv=function(M){return _.kc(M)?M.getAttribute("jsname")==="coFSxe":!1},Tc9=function(M,q){q.id||(q.id="ow"+_.Fi(q));
M.setAttribute("jsowner",q.id);M.__owner=q;var G=_.jX(q,SKv);G&&(_.DhS.has(G)||_.DhS.set(G,[]),_.DhS.get(G).push(M));(G=_.Ia$.get(q))||_.Ia$.set(q,G=[]);G.includes(M)||G.push(M);q.setAttribute("__IS_OWNER",!0)},rua=function(){var M=_.w2s(1);
M=_.pW(M,_.PFi);if(!(_.OFy(M)||M[_.tPw]&&!M.__hasBeenSet))return M.value},jEG=function(M){return(M=_.KAD(M))?_.EOi(M):0},VAL=function(M){return M.shorts.isSmallScreenSqueezeback},Rkt=function(M){return M.shorts.isPlaybackStarted},fGL=function(M){var q=_.El();
if(q.getFlag(202))q=q.getFlag(201);else{var G;q=(M==null?void 0:(G=M.config)==null?void 0:G.settingOnByDefault)!==void 0?M.config.settingOnByDefault:!_.w("web_shorts_cinematics_disabled_by_default")}return q},Fvy=function(M){var q=_.El();
_.Ng(0,201,M);_.Ng(0,202,!0);q.save()},$yL=function(M){var q=_.w2s(2),G=new Set;
_.m_(function(){return void G.forEach(function(K){return void K()})});
return function(K){var n=_.k_(q);try{var E=HSv(ekG(M),K);G.add(E);return function(){E();G.delete(E)}}finally{_.k_(n)}}},sYM=function(M){var q=M.children;
var G=M.root;_.mT(function(){var K=$yL(G)(q);_.m_(K)});
return document.createTextNode("")},HSv=function(M,q){var G=M_A(M);
(M=rua())&&Tc9(G,M);_.o9.setUp();q=_.k(_.moy(q,!0));M=q.next().value;var K=q.next().value;q=_.k(M);for(M=q.next();!M.done;M=q.next())G.appendChild(M.value);_.o9.log(G);_.o9.tearDown();return function(){K();G.remove()}},ekG=function(M){if(typeof M==="string")return M=document.querySelector(M),_.kQL(M),M;
if(_.h3(M)&&M.nodeType===Node.ELEMENT_NODE)return M;if(!M.__value&&!M.__optional){var q=_.wFy.USE_ELEMENT_NOT_ASSIGNED(M.__expectedTagName);M.__hasErrored=!0;throw q;}return M.value},M_A=function(M){var q=document.createElementNS(M.namespaceURI,M.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return M.appendChild(q)},q9C=function(M,q,G,K){M=q-M;
G=K-G;return Math.sqrt(M*M+G*G)},GLG=function(M){var q=M>>8&255,G=M&255;
return"#"+(M>>16&255).toString(16).padStart(2,"0")+q.toString(16).padStart(2,"0")+G.toString(16).padStart(2,"0")},K_C=function(M,q){M&&_.AL().resolve(_.vR).resolveCommand(M,{forceClickLogging:!0,
form:{element:q}})},n_k=function(){return _.AL().resolve(_.vq).dismissedIndices},E_M=function(M,q){var G,K,n,E,p,y,Y,A,v;
return _.L(function(h){if(h.nextAddress==1){G=_.AL().resolve(_.Wq);E=(K=G)==null?void 0:(n=K.reelWatchEndpointMap)==null?void 0:n.reelWatchSequence;y=(p=M.innertubeTransportService)!=null?p:_.AL().resolve(_.YU);if(!E)return h.jumpTo(2);Y=E();return(A=Y.JSC$14168_getRequest(q,{}))?h.yield(_.e6(y,A.innerTubeRequest,A.input,q.clickTrackingParams,A.config),4):h.jumpTo(2)}return h.nextAddress!=2?(v=h.yieldResult,h.return(v)):h.return(void 0)})},NYC=function(M,q,G){var K,n=(K=_.C(q,_.p_))==null?void 0:
K.videoId;
K=!(!n||!M.find(function(p){return p.videoId&&p.videoId===n}));
var E=!!M.find(function(p){var y;return((y=_.C(p.command,_.p_))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"});
M=!!M.find(function(p){return!!_.C(p.command,_.jN)&&!!_.C(q,_.jN)&&p.command===q});
return G?K||M:K||E||M},kLv=function(M,q,G){var K=[].concat(_.Ui(M)),n=0,E=G?zkM(G):[];
G=G?myG(G):[];q&&!NYC(M,q.command)&&K.unshift(q);E.length&&!NYC(M,E[0].command,!0)&&K.push.apply(K,_.Ui(E));q&&G.length&&!NYC(M,G[0].command)&&(K.unshift.apply(K,_.Ui(G.reverse())),n=G.length);return{newContentList:K,indexChange:n}},pme=function(M){return _.RJ({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:M}})},ye9=function(M){return _.RJ({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:M}})},L_a=function(M){return _.RJ({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:M}})};var OI=function(M,q){if(M instanceof OI)this.array_=M.array_;else{var G;if(G=_.TF(M))a:{for(var K=G=0;K<M.length;K++){if(!_.TF(M[K])||G>0&&M[K].length!=G){G=!1;break a}for(var n=0;n<M[K].length;n++)if(typeof M[K][n]!=="number"){G=!1;break a}G==0&&(G=M[K].length)}G=G!=0}if(G)this.array_=_.Sw(M);else if(M instanceof _.cc)this.array_=Y9L(M.height,M.width);else if(typeof M==="number"&&typeof q==="number"&&M>0&&q>0)this.array_=Y9L(M,q);else throw Error("Oo");}this.size_=new _.cc(this.array_[0].length,
this.array_.length)},W_v=function(M,q,G){for(var K=0;K<M.getSize().height;K++)for(var n=0;n<M.getSize().width;n++)q.call(G,M.array_[K][n],K,n,M)},AeG=function(M,q){var G=new OI(M.getSize());
W_v(M,function(K,n,E){G.array_[n][E]=q.call(void 0,K,n,E,M)});
return G},Y9L=function(M,q){for(var G=[],K=0;K<M;K++){G[K]=[];
for(var n=0;n<q;n++)G[K][n]=0}return G};
OI.prototype.add=function(M){if(!_.LvG(this.size_,M.getSize()))throw Error("Po");return AeG(this,function(q,G,K){return q+M.array_[G][K]})};
OI.prototype.equals=function(M,q){if(this.size_.width!=M.size_.width||this.size_.height!=M.size_.height)return!1;q=q||0;for(var G=0;G<this.size_.height;G++)for(var K=0;K<this.size_.width;K++)if(!_.yu9(this.array_[G][K],M.array_[G][K],q))return!1;return!0};
OI.prototype.getSize=function(){return this.size_};
var wy=function(M,q,G){return q>=0&&q<M.size_.height&&G>=0&&G<M.size_.width?M.array_[q][G]:null};
OI.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var dTy=function(M,q,G,K){if(!(q>=0&&q<M.size_.height&&G>=0&&G<M.size_.width))throw Error("Qo`"+q+"`"+G+"`"+M.size_.height+"`"+M.size_.width);M.array_[q][G]=K};
OI.prototype.multiply=function(M){if(M instanceof OI){if(this.size_.width!=M.getSize().height)throw Error("Ro");return v_C(this,M)}if(typeof M==="number")return hBL(this,M);throw Error("So");};
var v_C=function(M,q){var G=new OI(M.size_.height,q.getSize().width);W_v(G,function(K,n,E){for(var p=K=0;p<this.size_.width;p++)K+=wy(this,n,p)*wy(q,p,E);dTy(G,n,E,K)},M);
return G},hBL=function(M,q){return AeG(M,function(G){return G*q})};var t_e=new _.e0("inlineSurveyRenderer");var OWG=new _.e0("interstitialViewModel");var wmW=new _.e0("reelNavigateCommand");var CQv=new _.e0("reelNonVideoContentDismissalCommand");var aP9=new _.e0("showReelsCommentsOverlayCommand");var o_e=new _.e0("videoInteractionPopUpRenderer");var lPv=new _.e0("pollChoiceData");var XmG;var PQW;var iWL;var C9=function(){var M=_.Q.apply(this,arguments)||this;M.ctaVisualElement=null;M.currentCsn=null;return M};
_.l(C9,_.Q);_.N=C9.prototype;_.N.onDataChanged=function(){this.maybeLogShows()};
_.N.computeButtonShape=function(){var M=this;if(this.data)return{buttonText:_.UX(this.data.text),state:"active",onTap:function(){M.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.N.maybeCreateCtaVe=function(){var M;if((M=this.data)!=null&&M.badgeInteractionLogging){var q;if(M=(q=this.data.badgeInteractionLogging)==null?void 0:q.trackingParams)this.ctaVisualElement=_.yx(M)}};
_.N.maybeLogClicks=function(){this.currentCsn=_.Cx(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Z_(this.currentCsn,this.ctaVisualElement)};
_.N.maybeLogShows=function(){this.currentCsn=_.Cx(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.uO(this.currentCsn,[this.ctaVisualElement])};
_.N.onTap=function(){var M;if((M=this.data)!=null&&M.onClickCommand){var q;this.ytComponentBehavior.resolveCommand((q=this.data)==null?void 0:q.onClickCommand);this.maybeLogClicks()}};
C9.prototype.onDataChanged=C9.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],C9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],C9.prototype,"ytComponentBehavior",void 0);_.T([_.B({}),_.r("design:type",Object)],C9.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],C9.prototype,"onDataChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],C9);
_.z(C9,"ytd-shopping-overlay-badge-renderer",function(){if(iWL!==void 0)return iWL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return iWL=M},{mode:1});_.S5(_.UTL,"reel-sound-metadata-view-model",{props:{data:_.xj,overlayDensity:_.xj}});_.S5(_.u8s,"player-disclosure-view-model",{props:{data:_.Hz,extractOverlay:_.Hz}});_.S5(_.xvJ,"pivot-button-view-model",{props:{data:_.xj,className:_.xj}});_.S5(_.zFd,"reel-action-bar-view-model",{props:{data:_.Hz,buttonShapeOverrideables:_.Hz}});_.S5(_.xlw,"yt-reel-metapanel-view-model",{props:{data:_.Hz,overlayDensity:_.Hz,extractOverlay:_.Hz}});var ce3=_.U(function(M){var q=M.children;var G=M.region;M=_.k(_.lQ(void 0,void 0,"flxBBc"));var K=M.next().value,n=M.next().value;M=_.k(_.lQ("0px",void 0,"IAR7k"));var E=M.next().value,p=M.next().value;M=_.k(_.lQ("0px",void 0,"QV4iWb"));var y=M.next().value,Y=M.next().value;M=_.k(_.lQ(0,void 0,"Q2oK6b"));var A=M.next().value,v=M.next().value;M=_.k(_.lQ(0,void 0,"hYKowe"));var h=M.next().value,t=M.next().value,O=function(){var V=K();if(V){var S;if(((S=_.Mo())==null?void 0:S.getPlayerState())!==-1){V.style.display=
"inherit";var m;(m=_.Mo())==null||m.removeEventListener("onStateChange",O)}else V.style.display="none";g()}},a=function(){var V;
return(V=_.TM())==null?void 0:V.querySelector("video")},g=function(){var V=a();
if(V){v(V.getBoundingClientRect().width);t(V.getBoundingClientRect().height);var S;p((V==null?void 0:(S=V.style)==null?void 0:S.left)||"0px");var m;Y((V==null?void 0:(m=V.style)==null?void 0:m.top)||"0px")}};
_.zL(function(){var V=K();if(V){var S,m,R;if(((S=_.Mo())==null?void 0:S.getPlayerState())===-1&&Math.round(((R=(m=_.Mo())==null?void 0:m.getVideoAspectRatio())!=null?R:0)*100)!==Math.round(A()/h()*100)){V.style.display="none";var se,yY;t(A()/((yY=(se=_.Mo())==null?void 0:se.getVideoAspectRatio())!=null?yY:1))}}},"N29KDe");
var D=function(){g()},J;
_.mT(function(){g();var V;if(!(G==null?0:(V=G())==null?0:V.transformationMatrix))throw Error("Wo");var S;(S=_.Mo())==null||S.addEventListener("onStateChange",O);if(window.ResizeObserver){if(V=a())J=new ResizeObserver(D),J.observe(V)}else window.addEventListener("resize",g);_.m_(function(){var m;(m=_.Mo())==null||m.removeEventListener("onStateChange",O);J?J.disconnect():window.removeEventListener("resize",g)})});
var Z=function(){var V,S,m=(S=G==null?void 0:(V=G())==null?void 0:V.transformationMatrix)!=null?S:[];V=A();S=h();for(var R=[],se=0,yY=-1;se<m.length;se++)se%3===0&&(yY++,R[yY]=[]),R[yY].push(m[se]);m=new OI(R);R=new OI([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);R=m.multiply(R);m=new OI([[0,0],[0,0],[0,0],[0,0]]);for(se=0;se<R.getSize().width;se++){yY=wy(R,0,se);var d$=wy(R,1,se);if(yY===null||d$===null)throw Error("Vo`"+(se+1).toString());dTy(m,se,0,yY*V);dTy(m,se,1,d$*S)}V=wy(m,0,0);se=wy(m,1,0);S=wy(m,0,
1);yY=wy(m,1,1);if(V===null||se===null||S===null||yY===null)throw Error("To");R=q9C(V,se,S,yY);d$=wy(m,3,0);m=wy(m,3,1);if(d$===null||m===null)throw Error("Uo");m=q9C(V,d$,S,m);yY=(Number((yY*-1).toFixed(2))-Number((S*-1).toFixed(2)))/(Number(se.toFixed(2))-Number(V.toFixed(2)));d$=Math.atan(yY)*180/Math.PI;se=yY===Number.POSITIVE_INFINITY?-90:yY===Number.NEGATIVE_INFINITY?90:Object.is(yY,-0)?180:yY===0?0:yY>0?d$*-1:V<se?d$*-1:Math.abs(d$)+180;return"left:calc("+V+"px + "+E()+"); top:calc("+(S+"px + "+
y()+"); width:")+(R+"px; height:")+(m+"px; transform:rotate(")+(se+"deg);\n        --sticker-width:"+R+";")};
return _.W(sYM,{root:"#sticker-layer"},function(){return _.W("yt-overlay-sticker",{el:_.bm(n),style:Z,class:"ytOverlayStickerHost"},q)})},"Zm");var g_e=_.U(function(M){function q(){var O,a,g,D,J=(a=_.C((O=Y())==null?void 0:O.command,_.wBS))==null?void 0:(g=a.item)==null?void 0:(D=g.notificationTextRenderer)==null?void 0:D.successResponseText;if(J)O=_.Sg(J),_.VW(K.value,"yt-open-popup-action",[O,K.value]);else if(A())K_C(A(),K.value);else{var Z;K_C((Z=Y())==null?void 0:Z.command,K.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var G=M.data;var K=_.pI("svg"),n=_.k(_.lQ(!1,void 0,"e9onLe"));M=n.next().value;var E=n.next().value,p=_.k(_.lQ(!1,void 0,"ptnIQd"));n=p.next().value;var y=p.next().value,Y=function(){var O;return _.C((O=G())==null?void 0:O.popUp,o_e)},A=function(){var O;
return(O=G())==null?void 0:O.command},v=function(){return _.C(A(),_.Ayy)!==void 0};
p=_.sq(function(){q();return!1});
var h={},t={};return _.W("svg",{"on:mouseover":_.sq(function(){v()&&E(!0);y(!0);return!1}),
"on:mouseout":_.sq(function(){E(!1);y(!1);return!1}),
"on:keydown":_.sq(function(O){O.key==="Enter"&&q();return!1}),
"on:focus":_.sq(function(){v()&&E(!0);return!1}),
"on:blur":_.sq(function(){v()&&E(!1);return!1}),
el:K,tabindex:0,"aria-label":function(){var O;return(O=G())==null?void 0:O.a11yString},
id:"player-overlay-video-interaction-svg",class:_.Hb("ytPlayerOverlayInteractionInteractionsSvg",(h.ytPlayerOverlayInteractionInteractionsSvgHover=M,h),(t.ytPlayerOverlayInteractionInteractionsSvgHideOutline=n,t)),role:"button","on:click":p})},"bn");_.S5(_.U(function(M){var q=M.data;_.mT(function(){var G;if((G=q())==null?0:G.trackingParams){var K;_.nl().graftServerVe((K=q().trackingParams)!=null?K:"")}});
return _.W("yt-player-overlay-interaction",null,_.W(ce3,{region:function(){var G,K;return(G=q())==null?void 0:(K=G.regions)==null?void 0:K[0]}},_.W(g_e,Object.assign({},M))))},"an"),"yt-player-overlay-interaction",{props:{data:_.Hz}});var BYa=_.U(function(M){var q=M.data;var G=M.index;var K=M.selectedChoice;var n=function(){var E;return _.C((E=q())==null?void 0:E.renderer,lPv)};
M={};return _.W("yt-overlay-poll-sticker-choice",{class:_.Hb("ytOverlayPollStickerChoiceHost"),style:_.Kp({"--displayed-percentage":function(){var E,p,y,Y;return""+Math.ceil(Number((K==null?void 0:K())===G()?(E=n())==null?void 0:(p=E.selected)==null?void 0:p.progressBarWidth:(y=n())==null?void 0:(Y=y.unselected)==null?void 0:Y.progressBarWidth)*100)}})},_.W("div",{class:_.Hb("ytOverlayPollStickerChoicePollChoice",(M.ytOverlayPollStickerChoiceShowVotePercentage=function(){return(K==null?void 0:K())!==
void 0},M.ytOverlayPollStickerChoicePollChoiceSelected=function(){return(K==null?void 0:K())===G()},M))},_.W("div",{class:"ytOverlayPollStickerChoicePollChoiceText"},function(){var E;
return((E=n())==null?void 0:E.text)||""}),_.W("div",{class:"ytOverlayPollStickerChoiceVotePercentage"},function(){if(typeof(K==null?void 0:K())==="undefined")var E="";
else{var p,y,Y,A;E=(K==null?void 0:K())===G()?(p=n())==null?void 0:(y=p.selected)==null?void 0:y.votePercentage:(Y=n())==null?void 0:(A=Y.unselected)==null?void 0:A.votePercentage}return E})))},"cn");var QYG=_.U(function(M){var q=M.data;M=_.k(_.lQ(void 0,void 0,"sDpzBb"));var G=M.next().value,K=M.next().value;return _.W("yt-overlay-poll-sticker",null,_.W(ce3,{region:function(){var n,E;return(n=q())==null?void 0:(E=n.region)==null?void 0:E.interactionRegion}},_.W("div",{class:_.Hb("ytOverlayPollStickerHost"),
style:_.Kp({"--original-height":function(){var n;return""+(((n=q())==null?void 0:n.mainBodyHeight)||1)},
"--original-width":function(){var n;return""+(((n=q())==null?void 0:n.mainBodyWidth)||1)},
"--scaled-width":function(){var n;return""+(((n=q())==null?void 0:n.mainBodyWidth)||1)},
"--primary-surface":function(){var n,E;return GLG(((n=q())==null?void 0:(E=n.theme)==null?void 0:E.primarySurface)||0)},
"--raised-surface":function(){var n,E;return GLG(((n=q())==null?void 0:(E=n.theme)==null?void 0:E.raisedSurface)||0)},
"--secondary-surface":function(){var n,E;return GLG(((n=q())==null?void 0:(E=n.theme)==null?void 0:E.secondarySurface)||0)},
"--primary-text":function(){var n,E;return GLG(((n=q())==null?void 0:(E=n.theme)==null?void 0:E.primaryText)||0)},
"--secondary-text":function(){var n,E;return GLG(((n=q())==null?void 0:(E=n.theme)==null?void 0:E.secondaryText)||0)}})},_.W("h1",{class:"ytOverlayPollStickerQuestionText"}," ",function(){return q().questionText}," "),_.W(_.bf,{each:function(){return q().pollChoiceConfigs||[]}},function(n,E){return _.W("div",{class:"ytOverlayPollStickerPollChoice",
"on:click":_.sq(function(){K(G()===E()?void 0:E())})},_.W(BYa,{data:n,
index:E,selectedChoice:G}))}),_.W("div",{class:"ytOverlayPollStickerVoteCount"},function(){return typeof(G==null?void 0:G())==="undefined"?q().preVoteCountText:q().postVoteCountText}))))},"dn");_.S5(_.U(function(M){var q=M.data;return _.W("yt-stickers-layer",null,_.W(_.bf,{each:function(){var G;return((G=q())==null?void 0:G.stickers)||[]}},function(G){return _.W(_.d,{cond:function(){return _.w("enable_shorts_poll_stickers_web")},
then:function(){return _.W(_.d,{cond:function(){return G==null?void 0:G.pollSticker},
then:function(K){return _.W(QYG,{data:K})}})}})}))},"en"),"yt-stickers-layer",{props:{data:_.Hz}});var as=function(){var M=_.Q.apply(this,arguments)||this;M.showScrubber=!1;M.isWatchWhileMode=!1;M.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");M.enablePollStickers=_.w("enable_shorts_poll_stickers_web");M.enableShortsModernControls=_.w("web_shorts_modern_controls");M.anchoredPanelActive=!1;M.enableLivingroomLayout=_.w("reels_enable_livingroom_layout");M.enablePlayerMetadataContainer=_.w("reels_web_enable_metadata_container");M.enableSqueezebackPanels=_.w("web_shorts_enable_squeezeback_panels");
M.useAspectRatio=_.w("web_use_aspect_ratio");M.isSqueezebackActive=!1;M.smallScreenSqueezeback=!1;M.isPlayerStarted=!1;M.overlayDensity=0;M.extractOverlay=!1;M.extractActionBar=!1;M.isOverlay=!1;M.isImmersive=!1;M.isImmersiveHorizontal=!1;M.isFullscreen=!1;M.onWindowResized=function(){var q;M.set("isImmersive",((q=window.getComputedStyle(M.hostElement))==null?void 0:q.getPropertyValue("--immersive-mode-on"))==="1");M.set("isImmersiveHorizontal",M.isImmersive&&M.enableLivingroomLayout&&!M.isWatchWhileMode)};
return M};
_.l(as,_.Q);_.N=as.prototype;_.N.updateIsOverlay=function(M){this.isOverlay=M.detail.value};
_.N.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.N.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.N.computeActionBarButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",iconPosition:"icon-with-label",size:"L"}};
_.N.computeButtonOverride=function(){return{style:this.extractActionBar?"mono":"overlay-dark",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.N.onOverlayDensityChange=function(){var M=_.f_(this.hostElement).querySelector("ytd-info-panel-container-renderer");M&&(M.set("extractOverlay",this.extractOverlay),M.set("roundedContainer",this.extractOverlay))};
_.N.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.N.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.N.ready=function(){(_.w("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"))&&(!_.w("enable_reel_action_bar_view_model")||this.get("data.buttonBar")||this.get("data.menu"))||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.wP("reels_metadata_justified_content")||"flex-start");
this.hostElement.style.setProperty("--action-justify-content",_.wP("reels_action_justified_content")||"flex-start")};
_.N.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}}};
_.N.setFakeLoadingButtons=function(){_.w("enable_reel_action_bar_view_model")?this.set("data.buttonBar",{}):(this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.Ge("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.Ge("DISLIKE_LABEL",void 0,"Dislike")}}}),this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.Ge("COMMENT_LABEL",void 0,"Comment")}}}),this.set("data.shareButton",
{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.Ge("SHARE_LABEL",void 0,"Share")}}}),this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.Ge("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()};
_.N.setEmptyOverlayMetadata=function(){_.w("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}))};
_.Yd.Object.defineProperties(as.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.infoPanel)}}});
as.prototype.onOverlayDensityChange=as.prototype.onOverlayDensityChange;as.prototype.onIsActiveChanged=as.prototype.onIsActiveChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],as.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],as.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],as.prototype,"ytdReduxBehavior",void 0);
_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],as.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],as.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],as.prototype,"isActive",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],as.prototype,"hidden",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],as.prototype,"useShortsIcon",void 0);
_.T([_.B({value:"left"}),_.r("design:type",String)],as.prototype,"buttonTooltipPosition",void 0);_.T([_.B({value:_.w("reels_enable_livingroom_layout")?"top":"left"}),_.r("design:type",String)],as.prototype,"likeButtonTooltipPosition",void 0);_.T([_.B({value:"none"}),_.r("design:type",String)],as.prototype,"textTransform",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"showScrubber",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"isWatchWhileMode",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.infoPanel"),_.r("design:type",Object),_.r("design:paramtypes",[])],as.prototype,"hasInfoPanel",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"enableAnchoredPanel",void 0);_.T([_.B(),_.r("design:type",Object)],as.prototype,"enablePollStickers",void 0);
_.T([_.B(),_.r("design:type",Object)],as.prototype,"enableShortsModernControls",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"anchoredPanelActive",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"enableLivingroomLayout",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],as.prototype,"enablePlayerMetadataContainer",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"enableSqueezebackPanels",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"useAspectRatio",void 0);_.T([_.B({selector:_.HZi,reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"isSqueezebackActive",void 0);_.T([_.B({selector:VAL,reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"smallScreenSqueezeback",void 0);
_.T([_.B({selector:Rkt}),_.r("design:type",Object)],as.prototype,"isPlayerStarted",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"overlayDensity",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"extractOverlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"extractActionBar",void 0);_.T([_.B(),_.r("design:type",Object)],as.prototype,"isOverlay",void 0);
_.T([_.B(),_.r("design:type",Object)],as.prototype,"isImmersive",void 0);_.T([_.B(),_.r("design:type",Object)],as.prototype,"isImmersiveHorizontal",void 0);_.T([_.B({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.r("design:type",Boolean)],as.prototype,"isShortsImmersive",void 0);_.T([_.B({computed:"computeButtonOverride(extractActionBar)"}),_.r("design:type",Object)],as.prototype,"buttonOverride",void 0);
_.T([_.B({computed:"computeActionBarButtonOverride(extractActionBar)"}),_.r("design:type",Object)],as.prototype,"actionBarButtonOverride",void 0);_.T([_.B({selector:_.TS,reflectToAttribute:!0}),_.r("design:type",Object)],as.prototype,"isFullscreen",void 0);_.T([_.KT("isActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],as.prototype,"onIsActiveChanged",null);
_.T([_.KT("extractOverlay"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],as.prototype,"onOverlayDensityChange",null);_.T([_.b({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],as);
_.z(as,"ytd-reel-player-overlay-renderer",function(){if(PQW!==void 0)return PQW;var M=document.createElement("template");_.X(M,'\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 &amp;&amp; data.videoInteractions.elementsInteractionsLayer]]" 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="[[!enableShortsModernControls]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[!extractActionBar]]" overrides="[[actionBarButtonOverride]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n      </div>\n    </template>\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return PQW=M},{mode:1});var IPC;var l1=function(){var M=_.Q.apply(this,arguments)||this;M.videoDuration=0;M.playedTime=0;M.isActive=!1;M.JSC$22620_playerEvents=new Map;return M};
_.l(l1,_.Q);_.N=l1.prototype;_.N.created=function(){this.JSC$22620_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$22620_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.N.attached=function(){this.getPlayerAndInitializeListeners()};
_.N.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22620_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.qs(this,this.onPageChanged))};
_.N.getPlayerAndInitializeListeners=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return q=_.TM(),q?G.yield(q.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.qs(M,M.onPageChanged)),G.jumpTo(0));M.player=G.yieldResult;M.initializePlayerListeners();_.gL(G)})};
_.N.onPageChanged=function(M){var q=this;return _.L(function(G){if(G.nextAddress==1)return M.detail.newPageType!=="ytd-shorts"?G.return():G.yield(_.rk().getPlayerPromise(),2);q.player=G.yieldResult;q.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.qs(q,q.onPageChanged));_.gL(G)})};
_.N.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22620_playerEvents)};
_.N.onVideoDataChange=function(M){var q=this;return _.L(function(G){if(!q.player||M.type!=="newdata")return G.return();q.videoDuration=_.w("web_shorts_use_progress_state_for_gapless")?q.player.getProgressState(M.playertype).seekableEnd:q.player.getDuration(M.playertype);q.playedTime=0;_.gL(G)})};
_.N.onVideoProgress=function(M){var q=this,G,K;return _.L(function(n){if(!q.player)return n.return();G=q.player.getPresentingPlayerType();K=q.player.getPlayerState();q.videoDuration=_.w("web_shorts_use_progress_state_for_gapless")?q.player.getProgressState(G).seekableEnd:q.player.getDuration(G);q.playedTime=K===0?q.videoDuration:M;_.gL(n)})};
_.N.getPercentPlayed=function(M,q){return M?_.wr(q/M,0,1):0};
_.Yd.Object.defineProperties(l1.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 M="";return M=this.videoDuration&&this.playedTime?M+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):M+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],l1.prototype,"componentBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],l1.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],l1.prototype,"player",void 0);_.T([_.B(),_.r("design:type",Object)],l1.prototype,"videoDuration",void 0);_.T([_.B(),_.r("design:type",Object)],l1.prototype,"playedTime",void 0);_.T([_.B(),_.r("design:type",Object)],l1.prototype,"isActive",void 0);
_.T([_.c("videoDuration","playedTime"),_.r("design:type",Number),_.r("design:paramtypes",[])],l1.prototype,"percentPlayed",null);_.T([_.c("videoDuration","playedTime"),_.r("design:type",Object),_.r("design:paramtypes",[])],l1.prototype,"percentPlayedStyle",null);_.T([_.c("videoDuration","isActive"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],l1.prototype,"hideProgressBar",null);
_.z(l1,"ytd-progress-bar-line",function(){if(IPC===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);IPC=M}M=IPC;return M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var DTC;_.S5(_.pUI,"ytm-closed-captioning-button",{props:{captionIconType:_.Hz,onClick:_.xj,ariaLabel:_.Hz,ariaPressed:_.Hz,isOverlay:_.xj,isModern:_.xj}});_.S5(_.DlR,"desktop-shorts-volume-controls",{props:{orientation:_.Hz}});var XL=function(){var M=_.Q.apply(this,arguments)||this;M.playerState=null;M.isMuted=!1;M.shortsModernControlsEnabled=_.w("web_shorts_modern_controls");M.volumeControlsOrientationState="horizontal_right";M.isOverlay=!0;M.isAdsOverlay=!1;M.captionIconType=-1;M.ariaLabel="";M.overlayDensity=0;M.JSC$22623_playerEvents=new Map;M.onClosedCaptionsButtonClick=function(){M.player&&_.OJ(M.player)&&(M.player.toggleSubtitles(),M.updateCaptionIconType())};
return M};
_.l(XL,_.Q);_.N=XL.prototype;_.N.created=function(){this.JSC$22623_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$22623_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$22623_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.N.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.$m(28662);this.playPauseButtonClientVE=_.$m(36842);this.fullscreenButtonToggleOffClientVE=_.$m(222256);this.fullscreenButtonToggleOnClientVE=_.$m(222257);var M=_.Cx(),q=_.wt();M&&q&&(_.w("combine_ve_grafts")?(_.oQ(_.nl(),this.muteButtonClientVE,q),_.oQ(_.nl(),this.playPauseButtonClientVE,q)):_.IJ(M,q,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.N.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$22623_playerEvents),this.player=null)};
_.N.updateCaptionIconType=function(){var M=-1,q=void 0,G=_.Ge("CLOSED_CAPTIONS_DISABLED");this.player&&_.OJ(this.player)&&(_.HAn(this.player)?(q=!0,G=_.Ge("CLOSED_CAPTIONS_ON"),M=1):(q=!1,G=_.Ge("CLOSED_CAPTIONS_OFF"),M=0));this.captionIconType=M;this.ariaPressedState=q;this.ariaLabel=G};
_.N.computeActionBarButtonOverride=function(){return{style:"overlay-dark",iconPosition:"icon-only",size:"L",disableBackdropFilter:!0,customColors:{backgroundColor:"transparent",color:"var(--yt-spec-static-overlay-icon-active-other)"}}};
_.N.getPlayerAndInitializeListeners=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return q=_.TM(),q?G.yield(q.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.qs(M,M.onPageChanged)),G.jumpTo(0));M.player=G.yieldResult;M.initializePlayerListeners();_.gL(G)})};
_.N.onPageChanged=function(M){var q=this;return _.L(function(G){if(G.nextAddress==1)return M.detail.newPageType!=="ytd-shorts"?G.return():G.yield(_.rk().getPlayerPromise(),2);q.player=G.yieldResult;q.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.qs(q,q.onPageChanged));_.gL(G)})};
_.N.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$22623_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.N.onPlayerStateChange=function(M){this.playerState=M};
_.N.onPlayerVolumeChange=function(M){this.isMuted=M.muted};
_.N.onPlayPauseButtonClick=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(_.rk().getPlayerPromise(),2);q=K.yieldResult;(G=_.Cx())&&M.playPauseButtonClientVE&&_.Z_(G,M.playPauseButtonClientVE);q.getPlayerState()!==1?q.playVideo():q.pauseVideo();_.gL(K)})};
_.N.computePlayPauseIcon=function(M){return M===2||M===-1||M===5?_.w("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.w("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.w("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.N.computeFullscreenLabel=function(M){return M?_.Ge("FULLSCREEN_EXIT_LABEL"):_.Ge("FULLSCREEN_ENTER_LABEL")};
_.N.computePlayPauseLabel=function(M){return M===1||M===3?_.Ge("PLAYER_LABEL_PAUSE"):_.Ge("PLAYER_LABEL_PLAY")};
_.N.onMuteButtonClick=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(_.rk().getPlayerPromise(),2);q=K.yieldResult;(G=_.Cx())&&M.muteButtonClientVE&&_.Z_(G,M.muteButtonClientVE);q.isMuted()?q.unMute(!0):q.mute(!0);_.gL(K)})};
_.N.computeMuteIcon=function(M){return M?"miniplayer:volume-off":"miniplayer:volume-up"};
_.N.computeMuteLabel=function(M){return M?_.Ge("PLAYER_LABEL_UNMUTE"):_.Ge("PLAYER_LABEL_MUTE")};
_.N.onFullscreenButtonClick=function(){var M=_.Cx();M&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.Z_(M,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.Z_(M,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.LXw()};
_.Yd.Object.defineProperties(XL.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var M=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(){M.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-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:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.w("web_shorts_modern_controls")?"player_full_exit_alt":_.w("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.w("web_shorts_modern_controls")?"player_full_enter_alt":_.w("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],XL.prototype,"componentBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],XL.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],XL.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"player",void 0);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"playerState",void 0);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"isMuted",void 0);
_.T([_.B({computed:"computePlayPauseIcon(playerState)"}),_.r("design:type",String)],XL.prototype,"playPauseIcon",void 0);_.T([_.B({computed:"computeMuteIcon(isMuted)"}),_.r("design:type",String)],XL.prototype,"muteIcon",void 0);_.T([_.B({selector:_.TS}),_.r("design:type",Boolean)],XL.prototype,"isFullscreen",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XL.prototype,"shortsModernControlsEnabled",void 0);
_.T([_.B(),_.r("design:type",Object)],XL.prototype,"volumeControlsOrientationState",void 0);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"isOverlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XL.prototype,"isAdsOverlay",void 0);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"captionIconType",void 0);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"ariaLabel",void 0);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"ariaPressedState",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XL.prototype,"overlayDensity",void 0);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"data",void 0);_.T([_.B({computed:"computeActionBarButtonOverride()"}),_.r("design:type",Object)],XL.prototype,"actionBarButtonOverride",void 0);_.T([_.c("playerState"),_.r("design:type",Object),_.r("design:paramtypes",[])],XL.prototype,"playPauseButtonData",null);
_.T([_.c("isFullscreen"),_.r("design:type",Object),_.r("design:paramtypes",[])],XL.prototype,"fullscreenButtonData",null);_.T([_.B(),_.r("design:type",Object)],XL.prototype,"onClosedCaptionsButtonClick",void 0);_.T([_.c("isFullscreen"),_.r("design:type",String),_.r("design:paramtypes",[])],XL.prototype,"fullscreenIcon",null);
_.z(XL,"ytd-shorts-player-controls",function(){if(DTC===void 0){var M=document.createElement("template");_.X(M,'\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<template is="dom-if" if="[[shortsModernControlsEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <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    <desktop-shorts-volume-controls orientation="[[volumeControlsOrientationState]]" class="style-scope ytd-shorts-player-controls"></desktop-shorts-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-modern="[[shortsModernControlsEnabled]]" 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</template>\n<template is="dom-if" if="[[!shortsModernControlsEnabled]]" 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  <desktop-shorts-volume-controls class="style-scope ytd-shorts-player-controls"></desktop-shorts-volume-controls>\n  <yt-button-shape id="fullscreen-button-shape" data="[[fullscreenButtonData]]" icon-name="[[fullscreenIcon]]" on-click="onFullscreenButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);DTC=M}M=DTC;return M},{mode:1});var uSG;_.S5(_.QvE,"yt-interstitial-view-model",{props:{data:_.Hz}});var JeC=_.U(function(M){var q=M.data;return _.W("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.W("h1",{class:"reelWatchBreakViewModelHostTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W("h2",{class:"reelWatchBreakViewModelHostBody"},_.W(_.Ft,{text:function(){return q().body},
isOverlay:!0})),_.W(_.yu,{data:function(){return q().buttons}},{buttonViewModel:function(G,K){return _.W("div",{class:function(){return K()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.W(_.Wf,{data:G.data}))}}))},"fn");
JeC.idomCompat=!0;_.S5(JeC,"reel-watch-break-view-model",{props:{data:_.Hz}});var PK=function(){return _.Q.apply(this,arguments)||this};
_.l(PK,_.Q);PK.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}}};
_.Yd.Object.defineProperties(PK.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.C((M=this.data)==null?void 0:M.renderer,t_e)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var M;return!!_.C((M=this.data)==null?void 0:M.renderer,OWG)}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],PK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],PK.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],PK.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],PK.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data.renderer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],PK.prototype,"isSurvey",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.renderer"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],PK.prototype,"isInterstitialViewModel",null);_.T([_.b({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],PK);
_.z(PK,"ytd-reel-non-video-content-renderer",function(){if(uSG!==void 0)return uSG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return uSG=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var ZWL;_.S5(_.IZs,"desktop-shorts-player-controls",{});var i1=function(){var M=_.Q.apply(this,arguments)||this;M.isPlayerPaused=!1;M.isPlayerStarted=!1;M.showPlayerControls=!1;M.showScrubber=!1;M.autoHideJobId=0;M.modern=_.w("web_button_rework");M.overlayType=_.wP("web_shorts_expanded_overlay_type");M.panelData=void 0;M.isWatchWhileMode=!1;M.hasError=!1;M.panelShowDelayMs=1;M.scrubberComponent={};M.isFullscreen=!1;M.shouldHideOverlay=!1;M.enableAnchoredPanel=_.w("desktop_shorts_v2_anchored_panel");M.enablePersistentAnchoredPanel=_.w("desktop_shorts_v2_persistent_anchored_panel");
M.hideWatchWhilePanel=_.w("web_shorts_hide_watch_while_panel");M.useAspectRatio=_.w("web_use_aspect_ratio");M.enableShortsModernControls=_.w("web_shorts_modern_controls");M.isPersistentPanelActive=!1;M.anchoredPanelActive=!1;M.isShortsPipActive=!1;M.smallScreenSqueezeback=!1;M.enableFlexibleOverlay=_.w("web_enable_flexible_overlay");M.overlayDensity=0;M.extractOverlay=!1;M.extractActionBar=!1;M.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
M.onWindowResized=function(){_.B4(M,"calculateOverlayDensity",function(){M.calculateOverlayDensity()},100)};
return M};
_.l(i1,_.Q);_.N=i1.prototype;_.N.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.N.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.N.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var M=_.AL().resolve(_.Ja);this.isWatchWhileMode&&_.r8.addJob(function(){M.showPanel({identifier:"shorts-comments-panel",target:null})},0)}}else this.panelData=void 0};
_.N.handleShowReelsCommentsOverlayCommand=function(M){M=_.C(M,aP9);this.isActive&&(M==null?0:M.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))};
_.N.updateEngagementPanelVisibility=function(M,q){M&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:q?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:M}})};
_.N.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.N.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.AL().resolve(_.vq).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.N.handleWatchWhilePanelScrimClick=function(){var M=_.AL().resolve(_.Ja);this.activeWatchWhilePanel&&(M.hidePanel({identifier:this.activeWatchWhilePanel}),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.N.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.N.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]",extractOverlay:"[[extractOverlay]]",extractActionBar:"[[extractActionBar]]"}}},renderPriority:0}}};
_.N.handlePlayerClick=function(M){var q=this,G,K;if((K=(G=window).matchMedia)!=null&&K.call(G,"(any-pointer: coarse)").matches||!M)this.showPlayerControls=!0,_.r8.cancelJob(this.autoHideJobId),this.autoHideJobId=_.Jp(_.r8,function(){q.showPlayerControls=!1},4E3)};
_.N.isFirstReel=function(){return this.index===0};
_.N.handleMouseenter=function(){_.r8.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.N.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.N.handleScrubberEnter=function(){this.showScrubber=!0};
_.N.handleScrubberLeave=function(){this.showScrubber=!1};
_.N.maybeLogNonDefaultAspectRatio=function(){var M;(M=this.data)!=null&&M.thumbnail&&this.isActive&&.5625!==jEG(this.data.thumbnail)&&_.BDY("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.N.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var M=document.querySelector("#shorts-container");if(M){var q=!1,G,K=this.playerContainer.offsetWidth,n=this.playerContainer.offsetHeight;M=M.offsetWidth/2-K/2;M>=368?(M=1,q=G=!0):M>=72?(M=0,G=!0):(M=2,G=!1);K>=600&&n>=840?M=1:window.innerWidth<=599&&(M=2,G=q=!1);this.isPersistentPanelActive&&(M=0,q=!1);this.extractActionBar=G;_.w("web_enable_flexible_overlay")&&(this.overlayDensity=M,this.extractOverlay=
q);var E;(E=this.onOverlayDensityChanged)==null||E.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar)}}};
_.N.onOverlayDensityChange=function(){var M;(M=this.onOverlayDensityChanged)==null||M.call(this,this.index,this.overlayDensity,this.extractOverlay,this.extractActionBar);if(M=_.f_(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))M.set("overlayDensity",this.overlayDensity),M.set("extractOverlay",this.extractOverlay),M.set("extractActionBar",this.extractActionBar);if(M=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))M.overlayDensity=this.overlayDensity,M.extractOverlay=
this.extractOverlay,M.extractActionBar=this.extractActionBar};
_.N.isVideoContent=function(M){_.AL().resolve(_.vq);return!!_.C(M,_.p_)};
_.N.isNonVideoContent=function(M){_.AL().resolve(_.vq);return!!_.C(M,_.jN)};
_.N.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Yd.Object.defineProperties(i1.prototype,{isAdsOverlay:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.adsOverlay)}},
enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var M,q;return _.w("web_enable_format_first")||((M=this.data)==null?void 0:M.adsOverlay)&&_.w("web_enable_format_first_ads_only")||((q=this.data)==null?void 0:q.reelPlayerOverlayRenderer)&&_.w("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError&&(this.isPlayerStarted||!_.w("web_shorts_modern_controls"))}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var M;return!this.isActive||!this.isPlayerStarted||(M=this.data)!=null&&M.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.data)==null?0:M.command)&&this.isVideoContent(this.data.command)){var q,G;if(((q=this.data)==null?0:q.adsOverlay)&&Object.keys((G=this.data)==null?void 0:G.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var K,n;if(((K=this.data)==null?0:K.reelPlayerOverlayRenderer)&&Object.keys((n=this.data)==null?void 0:n.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
i1.prototype.onOverlayDensityChange=i1.prototype.onOverlayDensityChange;i1.prototype.calculateOverlayDensity=i1.prototype.calculateOverlayDensity;i1.prototype.maybeLogNonDefaultAspectRatio=i1.prototype.maybeLogNonDefaultAspectRatio;i1.prototype.onEngagementPanelsChanged=i1.prototype.onEngagementPanelsChanged;i1.prototype.onScrubberDataChange=i1.prototype.onScrubberDataChange;i1.prototype.updateShouldHideOverlay=i1.prototype.updateShouldHideOverlay;
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],i1.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],i1.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],i1.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],i1.prototype,"index",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],i1.prototype,"isActive",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],i1.prototype,"isHiddenInDom",void 0);_.T([_.B(),_.r("design:type",Object)],i1.prototype,"isPlayerPaused",void 0);_.T([_.B({selector:Rkt}),_.r("design:type",Object)],i1.prototype,"isPlayerStarted",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"showPlayerControls",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"showScrubber",void 0);_.T([_.B(),_.r("design:type",Object)],i1.prototype,"autoHideJobId",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"modern",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"overlayType",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],i1.prototype,"ytdReduxBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],i1.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],i1.prototype,"watchWhileEngagementPanels",void 0);_.T([_.B(),_.r("design:type",Object)],i1.prototype,"panelData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"isWatchWhileMode",void 0);_.T([_.B(),_.r("design:type",String)],i1.prototype,"activeWatchWhilePanel",void 0);
_.T([_.B(),_.r("design:type",Object)],i1.prototype,"hasError",void 0);_.T([_.B(),_.r("design:type",Object)],i1.prototype,"panelShowDelayMs",void 0);_.T([_.B(),_.r("design:type",Object)],i1.prototype,"scrubberComponent",void 0);_.T([_.B({selector:_.TS,reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"isFullscreen",void 0);_.T([_.B(),_.r("design:type",Object)],i1.prototype,"shouldHideOverlay",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"enableAnchoredPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"enablePersistentAnchoredPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"hideWatchWhilePanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"useAspectRatio",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"enableShortsModernControls",void 0);_.T([_.B({selector:_.HZi,reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"isPersistentPanelActive",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"anchoredPanelActive",void 0);_.T([_.B({selector:_.rx,reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"isShortsPipActive",void 0);
_.T([_.B({selector:VAL,reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"smallScreenSqueezeback",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.adsOverlay"),_.r("design:type",Object),_.r("design:paramtypes",[])],i1.prototype,"isAdsOverlay",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],i1.prototype,"enableFormatFirst",null);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"enableFlexibleOverlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"overlayDensity",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"extractOverlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],i1.prototype,"extractActionBar",void 0);_.T([_.B(),_.r("design:type",Function)],i1.prototype,"onOverlayDensityChanged",void 0);
_.T([_.B(),_.c("isActive","hasError","isPlayerStarted"),_.r("design:type",Object),_.r("design:paramtypes",[])],i1.prototype,"shouldRenderPlayerElements",null);_.T([_.B(),_.c("isActive","isWatchWhileMode"),_.r("design:type",Object),_.r("design:paramtypes",[])],i1.prototype,"watchWhileOrPersistentActive",null);_.T([_.KT("isActive","hasError","showingExpandedOverlay"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i1.prototype,"updateShouldHideOverlay",null);
_.T([_.B({reflectToAttribute:!0}),_.c("isActive","isPlayerStarted","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],i1.prototype,"shouldRenderScrubber",null);_.T([_.KT("shouldRenderScrubber"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i1.prototype,"onScrubberDataChange",null);_.T([_.c("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.r("design:type",Object),_.r("design:paramtypes",[])],i1.prototype,"overlayComponent",null);
_.T([_.KT("watchWhileEngagementPanels"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i1.prototype,"onEngagementPanelsChanged",null);_.T([_.ET("#player-container"),_.r("design:type",HTMLElement)],i1.prototype,"playerContainer",void 0);_.T([_.ET("#cinematic-container"),_.r("design:type",HTMLElement)],i1.prototype,"cinematicContainer",void 0);
_.T([_.KT("isPersistentPanelActive","data.thumbnail"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i1.prototype,"maybeLogNonDefaultAspectRatio",null);_.T([_.KT("isPersistentPanelActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i1.prototype,"calculateOverlayDensity",null);
_.T([_.KT("overlayDensity","extractOverlay","extractActionBar"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],i1.prototype,"onOverlayDensityChange",null);_.T([_.b({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],i1);
_.z(i1,"ytd-reel-video-renderer",function(){if(ZWL!==void 0)return ZWL;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="sticker-layer" class="sticker-layer style-scope ytd-reel-video-renderer"></div>\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls 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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ZWL=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var cK=function(){var M=_.Q.apply(this,arguments)||this;M.isPreviousPageShorts=!1;M.index=0;M.delayedActiveIndex=0;M.playablePreviousIndex=null;M.isPlayerPaused=!1;M.isPlayerStarted=!1;M.intersectionObserverThreshold=.6;M.fitToVisibleBounds=!1;M.pageSubtype="shorts";M.enablePreviousContinuation=_.w("shorts_in_playlists_web");M.shortsPipEnabled=_.w("web_shorts_pip");M.isDark=document.documentElement.hasAttribute("dark");M.shortsViewTransitions=_.w("web_shorts_view_transitions");M.isFullscreen=!1;M.isShortsPipActive=
!1;M.buttonOverride={iconPosition:"icon-only",size:"XL"};M.anchoredPanelActive=!1;M.isActive=!1;M.smallScreenPersistentPanel=!1;M.isPersistentPanelActive=!1;M.smallScreenSqueezeBack=!1;M.enableScrollIntoViewCenter=_.w("web_scroll_into_view_center");M.formatFirst=_.w("web_enable_format_first")||_.w("web_enable_format_first_ads_only")||_.w("web_enable_format_first_organic_only");M.enableFlexibleOverlay=_.w("web_enable_flexible_overlay");M.extractOverlay=!1;M.useAspectRatio=_.w("web_use_aspect_ratio");
M.enableShortsSequenceRefactorUnify=_.w("web_enable_shorts_sequence_refactor_unify");M.isShortsInitialized=!1;M.shortsContentList=[];M.hasDataUpdated=!1;M.playerInPosition=!1;M.hidePreviousButtonImmediately=!1;M.showPreviousButtonImmediately=!1;M.endOfNextContinuation=!1;M.currentPlayerIndex=0;M.nextReelVe=_.$m(56921);M.prevReelVe=_.$m(56922);M.loopToggleOffVe=_.$m(198013);M.loopToggleOnVe=_.$m(198014);M.ambientModeToggleVe=_.$m(227860);M.reelPlayerPausedStateRendererVe=_.$m(141313);M.storedPlaybackSpeed=
null;M.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"};M.onOverlayDensityChanged=function(q,G,K,n){q=M.getActiveReelVideo(q);M.extractOverlay=!!K;q==null||q.setAttribute("overlay-density",String(G));K===void 0||q!=null&&q.toggleAttribute("extract-overlay",
K);n===void 0||q!=null&&q.toggleAttribute("extract-action-bar",n)};
return M};
_.l(cK,_.Q);_.N=cK.prototype;_.N.setFirstShortsData=function(){!this.firstShortsData&&this.data&&(this.firstShortsData=this.getCurrentShort())};
_.N.setShortsContentList=function(){var M=this,q=this.shortsContentList?[].concat(_.Ui(this.shortsContentList)):[],G=this.firstShortsData,K=this.reelWatchSequenceResponse;if(G=this.shortsController==null?void 0:kLv(q,G,K!=null?K:null)){K=G.newContentList;var n=G.indexChange;if(K.length!==q.length){var E;(E=this.intersectionObserver)==null||E.disconnect();this.shortsContentList=K;_.yb(this,function(){n!==0&&(M.index=n,M.scrollToVideoThrottle.fire(M.index,"instant"),M.movePlayerToVideo(M.index));_.r8.addLowPriorityJob(function(){M.observeShorts()})})}}};
_.N.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.N.onResize=function(){var M=_.zw(),q=M.dispatch,G=this.calculateIsSmallWidth();q.call(M,_.RJ({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:G}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.N.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}}};
_.N.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var M=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,q=M,G=0;M<250&&(q=M+this.shortsInnerContainer.clientWidth,G=24);_.sT(this.hostElement,{"--ytd-shorts-header-width":q+"px","--ytd-shorts-top-spacing":G+"px"})}};
_.N.isFirstShorts=function(M){return M&&!this.enableShortsSequenceRefactorUnify?this.index===-M.length:this.index===0};
_.N.isActiveReel=function(M,q,G){G&&(q=this.calculatePrevIndex(q,G));return M===q};
_.N.onFullscreenChange=function(){_.w("web_fullscreen_shorts")&&(this.scrollToVideoThrottle.fire(this.activeIndex,"instant"),this.isFullscreen&&this.isShortsPipActive&&_.AL().resolve(_.lq).close(!0))};
_.N.engagementPanelsChanged=function(){var M;this.watchWhileEngagementPanels=(M=this.data)==null?void 0:M.engagementPanels};
_.N.unregisterPanels=function(){var M=_.AL().resolve(_.Ja);if(this.watchWhileEngagementPanels)for(var q=_.k(this.watchWhileEngagementPanels),G=q.next();!G.done;G=q.next()){var K=G.value,n=void 0,E=void 0;G=(n=K.engagementPanelSectionListRenderer)==null?void 0:(E=n.identifier)==null?void 0:E.tag;K=this.getPanelIdentifier(K.engagementPanelSectionListRenderer);M&&(G&&M.panelMap.delete(G),K&&_.w("web_shorts_panel_caching_bugfix")&&(n=G=void 0,(n=(G=M).unregisterPanelContent)==null||n.call(G,K)))}};
_.N.isVideoContent=function(M){return this.isVideoContentCommand(M==null?void 0:M.command)};
_.N.getActiveReelVideo=function(M){return _.f_(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+M+'"]')};
_.N.calculatePrevIndex=function(M,q){return q?M-((q==null?void 0:q.length)||0):-1};
_.N.onKeydown=function(M){var q=_.Zx(M)||[];if(!_.y_w(q))if(M.code==="ArrowUp")M.preventDefault(),this.handlePrevButtonClick();else if(M.code==="ArrowDown")M.preventDefault(),this.handleNextButtonClick();else if(M.code==="KeyM")this.toggleMuteUnmuteVideo();else if(M.code==="KeyK"||M.code==="Space")this.togglePlayPauseVideo();else if((M.code==="KeyA"||M.code==="ArrowLeft")&&_.w("web_shorts_keyboard_enable_seek_shortcuts")){var G;(G=this.player)==null||G.seekBy(-5)}else if((M.code==="KeyD"||M.code===
"ArrowRight")&&_.w("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var K;(K=this.player)==null||K.seekBy(5)}};
_.N.onServiceRequestCompleted=function(M,q){M=q.data;this.enableShortsSequenceRefactorUnify?M.continuationEndpoint||M.prevContinuationEndpoint?this.reelWatchSequenceResponse=M:this.endOfNextContinuation=!0:M.continuationEndpoint&&M.entries?(this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:M.entries,continuationEndpoint:M.continuationEndpoint}}),_.w("web_enable_shorts_sequence_cache_fix")&&(this.cachedReelWatchSequenceResponse=
M)):M.prevContinuationEndpoint&&M.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:M.prevEntries,prevContinuationEndpoint:M.prevContinuationEndpoint}}):this.shortsProcessedSequence&&this.index>0&&(this.endOfNextContinuation=!0)};
_.N.handleEngagementPanelVisibilityChanged=function(M,q){var G=_.AL().resolve(_.Ja);if(M&&G){var K=this.getPanelIdentifier(M);if(q==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==K){G.hidePanel({identifier:this.activePanel});var n;this.activePanel=((n=M.identifier)==null?void 0:n.tag)||M.panelIdentifier}else this.isPersistentPanelActive=!0,_.zw().dispatch(pme(!0)),this.anchoredPanelActive=!0,this.activePanel=K;else q==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===K&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.zw().dispatch(pme(!1)))}};
_.N.handlePanelScrimClick=function(){var M=_.AL().resolve(_.Ja);this.activePanel&&(M.hidePanel({identifier:this.activePanel}),_.zw().dispatch(pme(!1)))};
_.N.getShortsLoopSetting=function(){var M,q,G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:return _.w("kevlar_shorts_auto_advance")?E.yield(_.xx.getInstance(),2):E.return(!0);case 2:return(M=E.yieldResult)?E.yield(M.get("sfvles"),3):E.return(!0);case 3:return G=(q=E.yieldResult)!=null?q:!1,E.yield(M.get("sfvle"),4);case 4:return n=(K=E.yieldResult)!=null?K:!0,G?E.return(n):E.return(!0)}})};
_.N.handleSignalActionToggleLoopShortsOff=function(){var M=this,q,G,K;return _.L(function(n){switch(n.nextAddress){case 1:if(!M.player)return n.return();M.player.setLoopVideo(!1);q=_.nl();_.X3(q,M.loopToggleOffVe);return n.yield(_.xx.getInstance(),2);case 2:return(G=n.yieldResult)?n.yield(G.set("sfvle",!1),3):n.return();case 3:return n.yield(G.set("sfvles",!0),4);case 4:K=_.El(),_.Ng(0,203,!1),_.Ng(0,204,!0),K.save(),_.gL(n)}})};
_.N.handleSignalActionToggleLoopShortsOn=function(){var M=this,q,G,K;return _.L(function(n){switch(n.nextAddress){case 1:if(!M.player)return n.return();M.player.setLoopVideo(!0);q=_.nl();_.X3(q,M.loopToggleOnVe);return n.yield(_.xx.getInstance(),2);case 2:return(G=n.yieldResult)?n.yield(G.set("sfvle",!0),3):n.return();case 3:return n.yield(G.set("sfvles",!0),4);case 4:K=_.El(),_.Ng(0,203,!0),_.Ng(0,204,!0),K.save(),_.gL(n)}})};
_.N.handleSignalActionToggleCinematicShortsOn=function(){Fvy(!0);var M;(M=this.JSC$22647_cinematicController)==null||_.Juy(M,!0);_.X3(_.nl(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.N.handleSignalActionToggleCinematicShortsOff=function(){Fvy(!1);var M;(M=this.JSC$22647_cinematicController)==null||_.Juy(M,!1);_.X3(_.nl(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.N.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.N.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.N.unhideCurrentOverlay=function(){this.hasDataUpdated=!0;if(this.overlayContainer&&this.playerInPosition){var M=this.overlayContainer.querySelector("#experiment-overlay");M&&_.r8.addLowPriorityJob(function(){M.style.display="unset"},100)}};
_.N.getCurrentShort=function(){if(this.currentEndpoint){var M=this.currentEndpoint;if(this.isNonVideoContentCommand(M)){var q=_.C(M,_.jN);return{reelNonVideoContentRenderer:_.C(q==null?void 0:q.renderer,_.RD),command:M}}if(this.data){var G;q=(G=_.C(this.currentEndpoint,_.p_))==null?void 0:G.thumbnail;var K;G=(K=this.data.overlay)==null?void 0:K.reelPlayerOverlayRenderer;_.AL().resolve(_.vq);M=this.data;var n,E;K=(n=M.overlay)==null?void 0:(E=n.shortsAdsRenderer)==null?void 0:E.adSlots;if(K!==void 0)K.length===
0?(_.BO("Shorts ads returned no ad slots."),M=void 0):(K.length>1&&_.BO("Shorts ads has more than one ad slots."),M=_.C(K[0],_.grI));else{var p,y;M=_.C((p=M.overlay)==null?void 0:(y=p.shortsAdsRenderer)==null?void 0:y.overlay,_.grI)}p=M;M=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.C(this.currentEndpoint,_.p_),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});var Y;return{reelPlayerOverlayRenderer:G,thumbnail:q,command:M,adsOverlay:p,
videoId:(Y=_.C(this.currentEndpoint,_.p_))==null?void 0:Y.videoId}}}};
_.N.created=function(){var M=this;this.scrollToVideoThrottle=new _.qA(function(q,G){G=G===void 0?"smooth":G;var K;(K=M.getActiveReelVideo(q))==null||K.scrollIntoView({behavior:G,block:"nearest",inline:M.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.shortsController=_.AL().resolve(_.vq);this.maybeCreateIntersectionObserver()};
_.N.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.N.attached=function(){var M=this;_.AL().resolve(_.vq).registerRootElement(this);this.pageScrollElement=_.f_(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.qs(this,this.processResetAction));_.w("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){M.maybeCreateIntersectionObserver();M.scrollToVideoThrottle.fire(M.activeIndex,"instant");M.shortsContainer.style.overflowY=
"scroll"}))};
_.N.updateReelWatchSequenceResponse=function(){var M=this,q;if(_.w("web_enable_delay_shorts_sequence_call_new")&&this.currentEndpoint&&((q=_.C(this.currentEndpoint,_.p_))==null?0:q.sequenceParams)&&!this.reelWatchSequenceResponse){var G;(G=this.shortsController)==null||E_M(G,this.currentEndpoint).then(function(K){K&&(M.reelWatchSequenceResponse=K,_.r8.addLowPriorityJob(function(){M.observeShorts()}))})}};
_.N.calculateSqueezebackPanelSize=function(){var M=this,q=window.innerWidth-456-(window.innerHeight-106)*.5625;_.r8.addLowPriorityJob(function(){q<360?_.zw().dispatch(ye9(!0)):(M.hostElement.style.setProperty("--anchored-panel-width",Math.min(q,480)+"px"),_.zw().dispatch(ye9(!1)))})};
_.N.detached=function(){var M=_.AL().resolve(_.vq);M.rootElement=void 0;var q;(q=M.unsubscribeFromStore)==null||q.call(M);M.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.qs(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.N.onResizeFinished=function(M,q){var G=this,K=new ResizeObserver(function(){G.shortsContainer.style.overflowY="hidden";_.r8.addLowPriorityJob(function(){q()},100)});
K.observe(M);return K};
_.N.resetDocumentScrollTop=function(){var M,q;if((M=document)==null?0:(q=M.scrollingElement)==null?0:q.scrollTop)document.scrollingElement.scrollTop=0};
_.N.loadPage_=function(M){var q=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),M){var G;!_.w("web_enable_delay_shorts_sequence_call")&&((G=_.C(this.currentEndpoint,_.p_))==null?0:G.sequenceParams)&&(this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index));this.data=M;this.isPlayerStarted?this.handleOnPlaybackCommand():
this.afterPlayerStarted=function(){q.isPlayerStarted&&(q.handleOnPlaybackCommand(),q.afterPlayerStarted=function(){})};
this.registerPanel(M)}};
_.N.afterPlayerStarted=function(){};
_.N.handleOnPlaybackCommand=function(){if(_.w("web_shorts_comment_stickers")&&this.isPlayerStarted){var M,q=(M=_.C(this.currentEndpoint,_.p_))==null?void 0:M.onPlaybackCommand;q&&this.ytComponentBehavior.resolveCommand(q)}};
_.N.maybeCreateIntersectionObserver=function(){var M=this,q=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==q){this.intersectionObserverThreshold=q;var G={rootMargin:"0px",threshold:q},K;(K=this.intersectionObserver)==null||K.disconnect();this.intersectionObserver=new IntersectionObserver(function(n){n=_.k(n);for(var E=n.next();!E.done;E=n.next())if(E=E.value,E.intersectionRatio>q){E=Number(E.target.id);if(isNaN(E))break;if(E===M.index)break;
_.jDs();M.loadVideo(E);_.XI("r_vtc")}},G);
this.enableShortsSequenceRefactorUnify||this.observeShorts()}};
_.N.observeShorts=function(){var M=[].concat(_.Ui(_.f_(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));M=_.k(M);for(var q=M.next();!q.done;q=M.next()){q=q.value;var G=void 0;(G=this.intersectionObserver)==null||G.observe(q)}};
_.N.initCsi=function(){_.maM("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var M={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"}},q,G;if((q=this.playerData)==null?0:(G=q.cacheMetadata)==null?0:G.isCacheHit)M.isCacheHit=!0;var K;if(q=(K=_.C(this.currentEndpoint,_.p_))==null?void 0:
K.prefetchTaskId)M.prefetchInfo={taskId:q};_.t2(M)};
_.N.isAd=function(){var M,q;return!!((M=_.C(this.currentEndpoint,_.p_))==null?0:(q=M.adClientParams)==null?0:q.isAd)};
_.N.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.N.getPlayerContainer=function(){var M;return(M=_.f_(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:M.playerContainer};
_.N.onPlayerStateChange=function(M){var q=this;this.isPlayerPaused=M===2;M!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?M===1&&this.index===0&&(this.isPlayerStarted||_.zw().dispatch(L_a(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.zw().dispatch(L_a(!0)));this.player&&!this.player.getLoopVideo()&&_.r8.addLowPriorityJob(function(){q.getShortsLoopSetting().then(function(G){var K;(K=q.player)==null||K.setLoopVideo(G)})});
this.isPlayerPaused&&_.w("web_shorts_paused_state_logging")&&_.uO(_.Cx(),[this.reelPlayerPausedStateRendererVe])};
_.N.isShortPlayable=function(){if(_.w("kevlar_playable_short_killswitch"))return!0;var M;return(M=this.playerData)!=null&&M.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.N.setNormalPlaybackSpeed=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(M.getPlayer().getPlayerPromise(),2);q=K.yieldResult;G=q.getPlaybackRate();G!==1&&(M.storedPlaybackSpeed=G,q.setPlaybackRate(1));_.gL(K)})};
_.N.restorePlaybackSpeed=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1)return M.storedPlaybackSpeed===null?G.jumpTo(0):G.yield(M.getPlayer().getPlayerPromise(),3);q=G.yieldResult;q.setPlaybackRate(M.storedPlaybackSpeed);M.storedPlaybackSpeed=null;_.gL(G)})};
_.N.playerDataChanged=function(){var M=this,q,G,K,n,E,p,y,Y,A;return _.L(function(v){if(v.nextAddress==1){q=M.getPlayer();M.enableShortsSequenceRefactorUnify||(G=M.intersectionObserver)==null||G.disconnect();if(M.playerData){if(((K=M.playerData.videoDetails)==null?void 0:K.videoId)!==((n=q.getPlayer())==null?void 0:n.getVideoData().video_id)){E={};if(p=_.C(M.currentEndpoint,_.p_))E.watch_endpoint=p,p.endTimeSeconds&&(E.end=p.endTimeSeconds);q.loadVideoWithPlayerResponse(M.playerData,E)}}else return v.return();
return M.player?v.jumpTo(2):v.yield(q.getPlayerPromise(),3)}v.nextAddress!=2&&(M.player=v.yieldResult,M.JSC$22647_playerStateChangeListener=M.onPlayerStateChange.bind(M),M.player.addEventListener("onStateChange",M.JSC$22647_playerStateChangeListener),_.w("kevlar_client_enable_shorts_player_bootstrap")&&_.i_(),M.scrollToVideoThrottle.fire(M.index),M.movePlayerToVideo(M.index),_.r8.addLowPriorityJob(function(){M.getShortsLoopSetting().then(function(h){var t;(t=M.player)==null||t.setLoopVideo(h)})}),
_.z8$.resolve(M.player),M.player.syncVolume(),M.getPlayer().focusOnPlayer());
M.enableShortsSequenceRefactorUnify||_.r8.addLowPriorityJob(function(){M.observeShorts()},100);
y=M.player.getPlayerState(M.player.getPresentingPlayerType());y!==1||M.isPlayerStarted||_.zw().dispatch(L_a(!0));M.updateBackNavContainerWidth();Y=_.C(M.currentEndpoint,_.p_);((A=Y)==null?0:A.startTimeSeconds)&&M.player.seekTo(Y.startTimeSeconds);if(M.JSC$22647_cinematicController||M.cinematicsInitializeJobId)return v.return();M.cinematicsInitializeJobId=_.r8.addLowPriorityJob(function(){M.initCinematicController();M.cinematicsInitializeJobId=void 0});
_.gL(v)})};
_.N.onShortUndoDismiss=function(){var M=this,q=n_k().pop();q!==void 0&&(_.yb(this,function(){M.showCardWithIndex(q)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.N.onShortsDismiss=function(M){if(M=M.detail.reelDismissalActionRenderer)(M=_.C(M.onDismissalCompletionRenderer,_.YKk))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:M}}}),this.scrollAndDismissCard()};
_.N.processReelNonVideoContentDismissalCommand=function(M){var q=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);M=_.C(M,CQv);this.activeDimissalTimeout=setTimeout(function(){q.scrollAndDismissCard()},Number(M==null?void 0:M.delayMs))};
_.N.scrollAndDismissCard=function(){var M=this,q=this.index;n_k().push(q);_.yb(this,function(){var G=M.getPlayableNextIndex();G!==null&&(M.hideCardWithIndex(q),M.scrollToVideoThrottle.fire(G))})};
_.N.hideCardWithIndex=function(M){if(M=this.getActiveReelVideo(M))M.hidden=!0};
_.N.showCardWithIndex=function(M){if(M=this.getActiveReelVideo(M))M.hidden=!1};
_.N.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.N.activeChanged=function(M){_.zw().dispatch(_.RJ({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:M}}));if(M)document.addEventListener("keydown",_.qs(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var q;(q=this.player)==null||q.sendAbandonmentPing()}var G;(G=this.player)==null||G.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.qs(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.N.graftClientVisualElements=function(){if(this.data){var M=_.nl();_.Z4S(M,_.HF({response:this.reelWatchSequenceResponse}));_.oQ(M,this.nextReelVe);_.oQ(M,this.prevReelVe);_.w("kevlar_shorts_auto_advance")&&(_.oQ(M,this.loopToggleOffVe),_.oQ(M,this.loopToggleOnVe));_.oQ(M,this.ambientModeToggleVe);_.uO(_.Cx(),[this.nextReelVe,this.prevReelVe]);_.w("web_shorts_paused_state_logging")&&_.oQ(M,this.reelPlayerPausedStateRendererVe)}};
_.N.graftNvcRenderer=function(){var M,q,G,K,n,E,p=this.enableShortsSequenceRefactorUnify?(M=this.shortsContentList)==null?void 0:(q=M[this.index])==null?void 0:q.command:this.index<0?(G=this.shortsProcessedPrevSequence)==null?void 0:(K=G[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:K.command:(n=this.shortsProcessedSequence)==null?void 0:(E=n[this.index])==null?void 0:E.command;if(p&&this.isNonVideoContentCommand(p)){M=_.C(p,_.jN);var y,Y;(M=(y=_.C(M==null?void 0:M.renderer,_.RD))==
null?void 0:(Y=y.loggingDirectives)==null?void 0:Y.trackingParams)&&_.nl().graftServerVe(M)}};
_.N.setActiveIndex=function(){_.AL().resolve(_.vq).setActiveIndex(this.index)};
_.N.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.N.lazyUpdateMiniplayerData=function(){var M=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.r8.addLowPriorityJob(function(){M.updateMiniplayerData();M.updateMiniplayerDataJobId=void 0}))};
_.N.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.r8.cancelJob(this.updateMiniplayerDataJobId)};
_.N.updateMiniplayerData=function(){var M,q,G,K=_.AL().resolve(_.lq),n={shortsData:this.getCurrentShort(),previousButtonDisabled:!((M=this.prevButtonData)==null||!M.isDisabled),nextButtonDisabled:!((q=this.nextButtonData)==null||!q.isDisabled),playabilityStatus:(G=this.playerData)==null?void 0:G.playabilityStatus};_.AB(K,n)};
_.N.resetPlayerLocation=function(){var M=this.getPlayer();this.initialPlayerContainer&&M.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.N.movePlayerToVideo=function(M,q){var G=this;q=q===void 0?!0:q;var K=this.getActiveReelVideo(M),n=this.getPlayer();if(K){this.overlayContainer?K.appendChild(this.overlayContainer):(this.overlayContainer=_.f_(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,K.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||n.appendTo(this.overlayContainer.playerContainer,void 0,!0));var E;(E=this.player)==null||E.setSize(NaN,NaN);this.isActive||_.Jp(_.r8,function(){G.isActive=
!0});
n.style.visibility="visible";this.playerInPosition=!0;this.hasDataUpdated&&this.unhideCurrentOverlay();_.w("reels_web_disable_rtr_tick")||_.w("reels_web_use_pbs_first_shorts")&&M===0||_.oJ("r_tr");this.currentPlayerIndex=M;K.appendChild(this.errorScreenContainer);var p;(p=this.JSC$22647_cinematicController)==null||_.bSL(p)}else q?_.r8.addLowPriorityJob(function(){G.movePlayerToVideo(G.index,!1)}):Math.random()<=_.tL("web_shorts_error_logging_threshold")&&_.rM(new _.bj("Trying to movePlayerToVideo with undefined container.",
{firstAttempt:q,
index:M}))};
_.N.enableFormatFirst=function(M){return _.w("web_enable_format_first")||M.adsOverlay&&_.w("web_enable_format_first_ads_only")||M.reelPlayerOverlayRenderer&&_.w("web_enable_format_first_organic_only")};
_.N.getAspectRatio=function(M){if(this.enableFormatFirst(M))return(M==null?0:M.thumbnail)&&jEG(M.thumbnail)?"--ytd-shorts-player-ratio: "+jEG(M.thumbnail):"--ytd-shorts-player-ratio: 0.5625"};
_.N.getBackgroundImage=function(M){if(M!=null&&M.thumbnail)return(M=_.r7(M.thumbnail.thumbnails))?'background-image:url("'+M+'");':"background-color:black;"};
_.N.onPersistentPanelActiveChanged=function(){var M=this.getCurrentShort();if(M&&this.enableFormatFirst(M)&&(M==null?0:M.thumbnail)&&jEG(M.thumbnail)!==.5625){var q;(q=this.player)==null||q.setSize(NaN,NaN)}};
_.N.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.N.moveCinematicsToVideo=function(){var M=_.f_(this.hostElement).querySelector("ytd-reel-video-renderer");(M==null?0:M.cinematicContainer)&&M.cinematicContainer!==this.shortsCinematicContainer.parentElement&&M.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.N.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.N.updatePrevButtonData=function(){var M=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(M){var q;this.prevButtonData=M=Object.assign({},M,{accessibility:{label:_.Ge("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:M.isDisabled||this.index===-(((q=this.shortsProcessedPrevSequence)==null?void 0:q.length)||0),tooltip:this.isUpArrowHidden?"":_.Ge("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=M=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.N.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.N.updateNextButtonData=function(){var M=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(M){var q;this.nextButtonData=M=Object.assign({},M,{accessibility:{label:_.Ge("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:M.isDisabled||this.index===((q=this.shortsProcessedSequence)==null?void 0:q.length),tooltip:_.Ge("NEXT_VIDEO_LABEL")||""})}};
_.N.getPlayablePreviousIndex=function(){for(var M,q=this.index-1;q>=-(((M=this.prevShortsSequence)==null?void 0:M.length)||0);q--)if(!n_k().includes(q))return q;return null};
_.N.getIndexInSequence=function(M,q){return M.findIndex(function(G){var K;return((K=_.C(G.command,_.p_))==null?void 0:K.videoId)===q})};
_.N.handlePrevButtonClick=function(M){var q=this,G,K;return _.L(function(n){G=q.getPlayablePreviousIndex();if(G===null)return n.return();q.gestureType=((K=M)==null?void 0:K.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";G===0&&(q.hidePreviousButtonImmediately=!0);if(q.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){q.scrollToVideoThrottle.fire(G,"auto")}),n.return();
q.scrollToVideoThrottle.fire(G);_.gL(n)})};
_.N.getPlayableNextIndex=function(){for(var M,q,G=this.index+1;G<(this.enableShortsSequenceRefactorUnify?(M=this.shortsContentList)==null?void 0:M.length:((q=this.shortsProcessedSequence)==null?void 0:q.length)||0);G++)if(!n_k().includes(G))return G;return null};
_.N.handleNextButtonClick=function(M,q){var G=this,K,n;return _.L(function(E){K=G.getPlayableNextIndex();if(K===null)return E.return();K===1&&(G.showPreviousButtonImmediately=!0);G.gestureType=((n=M)==null?void 0:n.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";q&&(G.gestureType=q);if(G.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){G.scrollToVideoThrottle.fire(K,"auto")}),E.return();
G.scrollToVideoThrottle.fire(K);_.gL(E)})};
_.N.handleReelNavigateCommand=function(M,q,G){(M=_.C(M,wmW))&&q&&M.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(G)};
_.N.loadVideo=function(M,q){q=q===void 0?!1:q;if(M!==this.currentPlayerIndex){_.zw().dispatch(L_a(!1));if(this.isAd()&&!q){var G;(G=this.player)==null||G.notifyShortsAdSwipeEvent()}if((q=this.JSC$22647_cinematicController)!=null){var K;(K=q.currentCinematicEffect)==null||K.pause()}if((K=this.JSC$22647_cinematicController)!=null){var n;(n=K.currentCinematicEffect)==null||n.clear()}K=M>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(K));
this.getPlayer().style.visibility="hidden";this.hasDataUpdated=this.playerInPosition=!1;this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var E,p,y,Y,A,v;n=this.enableShortsSequenceRefactorUnify?(E=this.shortsContentList)==null?void 0:(p=E[M])==null?void 0:p.command:M<0?(y=this.shortsProcessedPrevSequence)==null?void 0:(Y=y[this.shortsProcessedPrevSequence.length+M])==null?void 0:Y.command:(A=this.shortsProcessedSequence)==null?void 0:(v=A[M])==
null?void 0:v.command;this.index=M;this.gestureType||(this.gestureType=K?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");n&&this.isVideoContentCommand(n)&&(this.ytComponentBehavior.resolveCommand(n,{form:{createScreenConfig:{clickedVisualElement:K?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(n&&this.isNonVideoContentCommand(n)){this.currentEndpoint=n;this.data=void 0;E=_.nl();p=_.C(n,_.jN);var h,t;(p=(h=
_.C(p==null?void 0:p.renderer,_.RD))==null?void 0:(t=h.screenLoggingData)==null?void 0:t.screenVeType)&&_.aQ(E,p);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo();(h=this.getActiveReelVideo(M))&&h.appendChild(this.overlayContainer)}var O,a;h=this.enableShortsSequenceRefactorUnify?((O=this.shortsContentList)==null?void 0:O.length)===M+1:((a=this.reelWatchSequenceResponse)==null?void 0:a.entries)&&M===this.reelWatchSequenceResponse.entries.length-1;var g;if(((g=
this.reelWatchSequenceResponse)==null?0:g.continuationEndpoint)&&h){var D,J;O={contentPlaybackContext:_.VS({},(J=_.C((D=this.currentEndpoint)==null?void 0:D.commandMetadata,_.Mg))==null?void 0:J.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:O})}var Z,V;M=this.enableShortsSequenceRefactorUnify?M===0:M===-(((Z=this.reelWatchSequenceResponse)==null?void 0:(V=Z.prevEntries)==null?void 0:V.length)||0);var S,m;((S=this.reelWatchSequenceResponse)==
null?0:S.prevContinuationEndpoint)&&((m=this.reelWatchSequenceResponse)==null?0:m.prevEntries)&&M&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.N.setMiniplayerPreview=function(M){M=(M===void 0?0:M)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var q,G,K,n,E=_.AL().resolve(_.lq),p={shortsData:void 0,shortsPreviewThumbnail:M?this.enableShortsSequenceRefactorUnify?(q=this.shortsContentList)==null?void 0:(G=q[M])==null?void 0:G.thumbnail:(K=this.shortsProcessedSequence)==null?void 0:(n=K[M])==null?void 0:n.thumbnail:void 0};_.AB(E,p)};
_.N.updateTitle=function(M){var q,G;M=(M==null?0:M.adSlots)?"":(G=M==null?void 0:(q=M.videoDetails)==null?void 0:q.title)!=null?G:"";_.jP(this.hostElement,"yt-update-title",M)};
_.N.registerPanel=function(M){var q=_.AL().resolve(_.Ja);if(q){M=_.k(M.engagementPanels||[]);for(var G=M.next();!G.done;G=M.next()){G=G.value;var K=this.getPanelIdentifier(G.engagementPanelSectionListRenderer),n=void 0,E=void 0;(E=(n=q).registerPanelContent)==null||E.call(n,K,G)}}};
_.N.getPanelIdentifier=function(M){var q;return(M==null?void 0:(q=M.identifier)==null?void 0:q.tag)||(M==null?void 0:M.panelIdentifier)||(M==null?void 0:M.targetId)};
_.N.processResetAction=function(){this.currentPlayerIndex=this.index=0;this.playerData=this.player=void 0;this.unregisterPanels();this.reelWatchSequenceResponse=this.data=void 0;this.shortsContentList=[];this.currentEndpoint=void 0;this.endOfNextContinuation=this.isPersistentPanelActive=this.anchoredPanelActive=!1;_.zw().dispatch(L_a(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();this.shortsContainer.scrollTop=0;this.firstShortsData=void 0;_.zw().dispatch(pme(!1));var M;(M=this.shortsController)!=
null&&(M.dismissedIndices=[]);var q;(q=this.shortsController)!=null&&q.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.AL().resolve(_.lq).close(!0)};
_.N.processAppendReelWatchSequenceContinuationEntriesAction=function(M){var q=this,G;(G=this.intersectionObserver)==null||G.disconnect();M=M.appendReelWatchSequenceContinuationEntriesAction;if(M==null?0:M.entries){var K;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Ui(((K=this.reelWatchSequenceResponse)==null?void 0:K.entries)||[]),_.Ui(M.entries)),continuationEndpoint:M.continuationEndpoint})}else if(M==null?0:M.prevEntries){var n;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Ui(((n=this.reelWatchSequenceResponse)==null?void 0:n.prevEntries)||[]),_.Ui(M.prevEntries)),prevContinuationEndpoint:M.prevContinuationEndpoint});_.r8.addLowPriorityJob(function(){q.movePlayerToVideo(q.index);q.scrollToVideoThrottle.fire(q.index,"instant")})}else return;
_.r8.addLowPriorityJob(function(){q.observeShorts()},100)};
_.N.processWatchSequence=function(M){var q=this;return M.map(function(G){G=G.command;if(q.isVideoContentCommand(G)){var K=_.C(G,_.p_);return{reelPlayerOverlayRenderer:_.C(K==null?void 0:K.overlay,_.jGv),thumbnail:K.thumbnail,command:G}}return q.isNonVideoContentCommand(G)?(K=_.C(G,_.jN),{reelNonVideoContentRenderer:_.C(K==null?void 0:K.renderer,_.RD),command:G}):{command:G}})};
_.N.calculateIntersectionObserverThreshold=function(){var M=_.f_(this.hostElement).querySelector("ytd-reel-video-renderer"),q=1;(M==null?0:M.offsetHeight)&&(M==null?0:M.offsetWidth)&&(q=Math.min(M.offsetHeight,this.shortsContainer.offsetHeight)/M.offsetHeight*(Math.min(M.offsetWidth,this.shortsContainer.offsetWidth)/M.offsetWidth));return Math.round(q*.6*10)/10};
_.N.isVideoContentCommand=function(M){_.AL().resolve(_.vq);return!!_.C(M,_.p_)};
_.N.isNonVideoContentCommand=function(M){_.AL().resolve(_.vq);return!!_.C(M,_.jN)};
_.N.initCinematicController=function(){var M=this;if(this.player&&this.shortsCinematicContainer){this.JSC$22647_cinematicController=new _.tF(this.shortsCinematicContainer,this.player);var q,G=_.C((q=this.data)==null?void 0:q.background,_.$i);_.ZS3(this.JSC$22647_cinematicController,G);_.Juy(this.JSC$22647_cinematicController,fGL(G));_.uDy(this.JSC$22647_cinematicController);_.r8.addLowPriorityJob(function(){M.moveCinematicsToVideo()})}};
_.N.handleMiniplayerNavigateShorts=function(M){M==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():M==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.N.handleSignalActionToggleShortsPictureInPicture=function(){if(_.AL().resolve(_.lq).pictureInPictureSupported()){var M=_.AL().resolve(_.vq);if(_.w("web_shorts_pip")){var q=_.AL().resolve(_.lq);M.isShortsPipActive()?q.deactivate():q.isMiniplayerActive()||(_.Bg().shortsPipActivation=!0,_.T8v(q))}}else(M=this.player)==null||M.togglePictureInPicture()};
_.Yd.Object.defineProperties(cK.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.reelWatchSequenceResponse)!=null&&M.prevEntries)return this.processWatchSequence([].concat(_.Ui(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(_.Ui(this.prevShortsSequence))}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.reelWatchSequenceResponse)!=null&&M.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){var M=this;if(this.firstShortsData){if(!this.shortsSequence)return[this.firstShortsData];var q;if(this.index<0||this.shortsProcessedSequence&&this.shortsSequence&&((q=this.shortsProcessedSequence)==null?void 0:q.length)>this.shortsSequence.length)return this.shortsProcessedSequence;var G;q=_.C((G=this.firstShortsData)==null?void 0:G.command,_.p_);if(q==null||!q.videoId)return this.shortsProcessedSequence;G=this.getIndexInSequence(this.shortsSequence,
q.videoId);if(G!==-1){if(this.shortsProcessedSequence&&this.shortsSequence&&this.shortsProcessedSequence.length===this.shortsSequence.length)return this.shortsProcessedSequence;this.index===0&&(this.currentPlayerIndex=this.index=G,_.r8.addLowPriorityJob(function(){M.scrollToVideoThrottle.fire(M.index,"auto");M.movePlayerToVideo(M.index)}));
return[].concat(_.Ui(this.shortsSequence))}return[this.firstShortsData].concat(_.Ui(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var M=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;M&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(M)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 M,q;return this.index===((M=this.reelWatchSequenceResponse)==null?void 0:(q=M.entries)==null?void 0:q.length)}var G;return!((G=this.reelWatchSequenceResponse)==null?0:G.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var M;(M=this.delayedActiveIndexUpdateDebouncer)==null||M.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return this.isShortPlayable()||((q=_.C((M=this.data)==null?void 0:M.watchStatus,_.Mrx))==null?void 0:(G=q.style)==null?void 0:G.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var M=this,q=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),G;if((this.data||q)&&(((G=this.data)==null?0:G.engagementPanels)||this.isAd()||q)){q=!1;this.activePanel="shorts-comments-panel";var K;G=_.k(((K=this.data)==null?void 0:K.engagementPanels)||[]);for(K=G.next();!K.done;K=G.next())if(this.getPanelIdentifier(K.value.engagementPanelSectionListRenderer)===this.activePanel){q=!0;break}if(this.isPersistentPanelActive){var n=
_.AL().resolve(_.Ja);_.Jp(_.r8,function(){n.showPanel({identifier:M.activePanel,target:null})},100)}var E;
K=[].concat(_.Ui(Object.values(((E=this.data)==null?void 0:E.engagementPanels)||{})));E=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);G=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return E===void 0&&G===void 0||(E==null?0:E.isDisabled)||(G==null?void 0:G.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||
!q?(q=K==null?void 0:K.findIndex(function(p){var y,Y;return((y=p.engagementPanelSectionListRenderer)==null?void 0:(Y=y.identifier)==null?void 0:Y.tag)==="shorts-comments-panel"}),q===-1||q===void 0||K!=null&&K.splice(q,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.Ge("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.Ge("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:_.Ge("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.Ge("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(_.Ui(Object.values(K||
{})))):K}}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var M=this,q,G,K;if((q=this.playerData)==null?0:(G=q.playabilityStatus)==null?0:(K=G.errorScreen)==null?0:K.playerInterstitialRenderer)return _.r8.addLowPriorityJob(function(){M.movePlayerToVideo(M.index)}),this.playerData.playabilityStatus.errorScreen;
var n,E;return((n=this.data)==null?void 0:n.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((E=this.data)==null?0:E.watchStatus)&&_.C(this.data.watchStatus,_.awp)?(_.r8.addLowPriorityJob(function(){M.movePlayerToVideo(M.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Yd.Object.defineProperties(cK,{template:{configurable:!0,enumerable:!0,get:function(){if(XmG===void 0){var M=document.createElement("template");_.X(M,'\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="[[!enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n        <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n          <template class="style-scope ytd-shorts">\n            <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n              <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n              </div>\n            </div>\n          </template>\n        </dom-repeat>\n      </template>\n      <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <template is="dom-if" if="[[enableShortsSequenceRefactorUnify]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsContentList]]" 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    </template>\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);XmG=M}M=XmG;return M}}});
cK.prototype.onNextButtonDataChange=cK.prototype.onNextButtonDataChange;cK.prototype.onPrevButtonDataChange=cK.prototype.onPrevButtonDataChange;cK.prototype.onPersistentPanelActiveChanged=cK.prototype.onPersistentPanelActiveChanged;cK.prototype.lazyUpdateMiniplayerData=cK.prototype.lazyUpdateMiniplayerData;cK.prototype.onShortsPipActiveChanged=cK.prototype.onShortsPipActiveChanged;cK.prototype.setActiveIndex=cK.prototype.setActiveIndex;cK.prototype.graftNvcRenderer=cK.prototype.graftNvcRenderer;
cK.prototype.graftClientVisualElements=cK.prototype.graftClientVisualElements;cK.prototype.onActiveChanged=cK.prototype.onActiveChanged;cK.prototype.onShortsDismiss=cK.prototype.onShortsDismiss;cK.prototype.onShortUndoDismiss=cK.prototype.onShortUndoDismiss;cK.prototype.playerDataChanged=cK.prototype.playerDataChanged;cK.prototype.afterPlayerStarted=cK.prototype.afterPlayerStarted;cK.prototype.updateReelWatchSequenceResponse=cK.prototype.updateReelWatchSequenceResponse;
cK.prototype.unhideCurrentOverlay=cK.prototype.unhideCurrentOverlay;cK.prototype.onServiceRequestCompleted=cK.prototype.onServiceRequestCompleted;cK.prototype.engagementPanelsChanged=cK.prototype.engagementPanelsChanged;cK.prototype.onFullscreenChange=cK.prototype.onFullscreenChange;cK.prototype.onResize=cK.prototype.onResize;cK.prototype.setShortsContentList=cK.prototype.setShortsContentList;cK.prototype.setFirstShortsData=cK.prototype.setFirstShortsData;
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],cK.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.qV.YtPageBehavior),_.r("design:type",Object)],cK.prototype,"ytPageBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],cK.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.uz),_.r("design:type",Object)],cK.prototype,"ironResizableBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],cK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],cK.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],cK.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],cK.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],cK.prototype,"playerData",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"reelWatchSequenceResponse",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"cachedReelWatchSequenceResponse",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"cachedSequenceParams",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"cachedSequenceProvider",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"currentEndpoint",void 0);
_.T([_.B(),_.r("design:type",Object)],cK.prototype,"nextButtonData",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"prevButtonData",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"isPreviousPageShorts",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"index",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"delayedActiveIndex",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"playablePreviousIndex",void 0);
_.T([_.B(),_.r("design:type",Object)],cK.prototype,"player",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"isPlayerPaused",void 0);_.T([_.B({selector:Rkt}),_.r("design:type",Object)],cK.prototype,"isPlayerStarted",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"intersectionObserver",void 0);_.T([_.B(),_.r("design:type",Number)],cK.prototype,"cinematicsInitializeJobId",void 0);_.T([_.B(),_.r("design:type",Number)],cK.prototype,"updateMiniplayerDataJobId",void 0);
_.T([_.B(),_.r("design:type",Object)],cK.prototype,"fitToVisibleBounds",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"pageSubtype",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],cK.prototype,"enablePreviousContinuation",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"shortsPipEnabled",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"isDark",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"shortsViewTransitions",void 0);_.T([_.B({selector:_.TS,reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"isFullscreen",void 0);_.T([_.B({selector:_.rx,reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"isShortsPipActive",void 0);_.T([_.ET("#shorts-inner-container"),_.r("design:type",HTMLElement)],cK.prototype,"shortsInnerContainer",void 0);
_.T([_.ET("#back-nav-button ytd-button-renderer"),_.r("design:type",_.kS)],cK.prototype,"backNavButton",void 0);_.T([_.ET("#shorts-container"),_.r("design:type",HTMLElement)],cK.prototype,"shortsContainer",void 0);_.T([_.xB("error-screen"),_.r("design:type",HTMLElement)],cK.prototype,"errorScreenContainer",void 0);_.T([_.xB("player"),_.r("design:type",Object)],cK.prototype,"playerElement",void 0);
_.T([_.xB("shorts-cinematic-container"),_.r("design:type",HTMLElement)],cK.prototype,"shortsCinematicContainer",void 0);_.T([_.xB("initial-player-container"),_.r("design:type",HTMLElement)],cK.prototype,"initialPlayerContainer",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"buttonOverride",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"anchoredPanelActive",void 0);_.T([_.B(),_.r("design:type",String)],cK.prototype,"activePanel",void 0);
_.T([_.B(),_.r("design:type",Object)],cK.prototype,"isActive",void 0);_.T([_.B({selector:VAL,reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"smallScreenPersistentPanel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"isPersistentPanelActive",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"smallScreenSqueezeBack",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"enableScrollIntoViewCenter",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"formatFirst",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"enableFlexibleOverlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"extractOverlay",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"useAspectRatio",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cK.prototype,"enableShortsSequenceRefactorUnify",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"shortsController",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"panelContainer",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"overlayContainer",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"isShortsInitialized",void 0);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"firstShortsData",void 0);
_.T([_.B(),_.r("design:type",Object)],cK.prototype,"firstShortsDataModel",void 0);_.T([_.B(),_.r("design:type",Array)],cK.prototype,"shortsContentList",void 0);_.T([_.c("reelWatchSequenceResponse"),_.r("design:type",Object),_.r("design:paramtypes",[])],cK.prototype,"prevShortsSequence",null);_.T([_.c("data","prevShortsSequence"),_.c("data","prevShortsSequence"),_.r("design:type",Object),_.r("design:paramtypes",[])],cK.prototype,"shortsProcessedPrevSequence",null);
_.T([_.c("reelWatchSequenceResponse"),_.r("design:type",Object),_.r("design:paramtypes",[])],cK.prototype,"shortsSequence",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"setFirstShortsData",null);_.T([_.KT("reelWatchSequenceResponse","firstShortsData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"setShortsContentList",null);
_.T([_.c("data","shortsSequence","firstShortsData"),_.r("design:type",Object),_.r("design:paramtypes",[])],cK.prototype,"shortsProcessedSequence",null);_.T([_.B({reflectToAttribute:!0}),_.c("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cK.prototype,"isUpArrowHidden",null);
_.T([_.B({reflectToAttribute:!0}),_.c("reelWatchSequenceResponse","index","endOfNextContinuation"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cK.prototype,"isDownArrowHidden",null);_.T([_.B(),_.c("index"),_.r("design:type",Number),_.r("design:paramtypes",[])],cK.prototype,"activeIndex",null);_.T([_.c("isShortPlayable","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cK.prototype,"shouldRenderOfflineContent",null);
_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"onResize",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],cK.prototype,"anchoredEngagementPanels",null);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"watchWhileEngagementPanels",void 0);_.T([_.KT("isFullscreen"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"onFullscreenChange",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"engagementPanelsChanged",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],cK.prototype,"onServiceRequestCompleted",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"unhideCurrentOverlay",null);
_.T([_.KT("currentEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"updateReelWatchSequenceResponse",null);_.T([_.KT("isPlayerStarted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"afterPlayerStarted",null);_.T([_.c("playerData","reelWatchSequenceResponse","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],cK.prototype,"errorScreen",null);
_.T([_.c("errorScreen"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],cK.prototype,"hasError",null);_.T([_.KT("playerData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],cK.prototype,"playerDataChanged",null);_.T([_.GQ("yt-dismissible-item-undo-feedback"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"onShortUndoDismiss",null);
_.T([_.GQ("yt-disable-lockup-interaction"),_.r("design:type",Function),_.r("design:paramtypes",[Object]),_.r("design:returntype")],cK.prototype,"onShortsDismiss",null);_.T([_.yO("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"onActiveChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"graftClientVisualElements",null);
_.T([_.KT("currentPlayerIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"graftNvcRenderer",null);_.T([_.KT("index"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"setActiveIndex",null);_.T([_.KT("isShortsPipActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"onShortsPipActiveChanged",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"lazyUpdateMiniplayerData",null);_.T([_.B(),_.r("design:type",Object)],cK.prototype,"onOverlayDensityChanged",void 0);_.T([_.KT("isPersistentPanelActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"onPersistentPanelActiveChanged",null);
_.T([_.KT("index","data","isUpArrowHidden"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"onPrevButtonDataChange",null);_.T([_.KT("index","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cK.prototype,"onNextButtonDataChange",null);_.T([_.b({is:"ytd-shorts"})],cK);_.Su.registerService(_.NaF,cK);
_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("JzFVk");
var JgA;var Z8C;var eH=function(){return _.Q.apply(this,arguments)||this};
_.l(eH,_.Q);eH.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
eH.prototype.computeBlueBottomLink=function(M){return M};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],eH.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.bottomIcon)"}),_.r("design:type",String)],eH.prototype,"bottomIcon",void 0);
_.T([_.B({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.r("design:type",Boolean)],eH.prototype,"enableBlueBottomLink",void 0);_.T([_.b({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],eH);
_.z(eH,"ytd-web-answer-renderer",function(){if(Z8C!==void 0)return Z8C;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Z8C=M},{mode:_.VO("kevlar_poly_si_batch_j035")?1:2});var b83;var $F=function(){var M=_.Q.apply(this,arguments)||this;M.hasChipBar=!1;return M};
_.l($F,_.Q);$F.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}}};
$F.prototype.computeHasChipBar=function(M){return!(M==null||!M.chipBar)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],$F.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$F.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.r("design:type",Object)],$F.prototype,"hasChipBar",void 0);_.T([_.b({is:"ytd-search-header-renderer",disableElementRegistration:!0})],$F);
_.z($F,"ytd-search-header-renderer",function(){if(b83!==void 0)return b83;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return b83=M},{mode:1});var U_y;var sI=function(){return _.Q.apply(this,arguments)||this};
_.l(sI,_.Q);sI.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],sI.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],sI.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sI.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-page-continuation"})],sI);
_.z(sI,"ytd-page-continuation",function(){if(U_y!==void 0)return U_y;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return U_y=M},{mode:1});var x_v;var zqA;var m_9;var Swe=function(){return _.Q.apply(this,arguments)||this};
_.l(Swe,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Swe.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Swe.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],Swe);
_.z(Swe,"ytd-watch-card-one-vs-one-event",function(){if(m_9!==void 0)return m_9;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return m_9=M},{mode:1});var Tqt=function(){return _.Q.apply(this,arguments)||this};
_.l(Tqt,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Tqt.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Tqt.prototype,"data",void 0);_.T([_.b({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],Tqt);
_.z(Tqt,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(zqA!==void 0)return zqA;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return zqA=M},{mode:1});var rgM;var jge=function(){return _.Q.apply(this,arguments)||this};
_.l(jge,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jge.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jge.prototype,"data",void 0);_.T([_.b({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],jge);
_.z(jge,"ytd-banner-and-box-hero-image-renderer",function(){if(rgM!==void 0)return rgM;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return rgM=M},{mode:1});var VXC;var ML=function(){var M=_.Q.apply(this,arguments)||this;M.modern=_.w("web_modern_buttons");return M};
_.l(ML,_.Q);ML.prototype.computeIcon=function(){var M,q,G=(M=this.data)==null?void 0:(q=M.icon)==null?void 0:q.iconType;if(G)return _.H4(G)};
ML.prototype.computeButtonShape=function(){var M;return{buttonText:_.UX((M=this.data)==null?void 0:M.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Yd.Object.defineProperties(ML.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"}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ML.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ML.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ML.prototype,"modern",void 0);_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.c("data.style"),_.r("design:type",Object),_.r("design:paramtypes",[])],ML.prototype,"buttonColor",null);
_.T([_.b({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],ML);
_.z(ML,"ytd-call-to-action-button-renderer",function(){if(VXC!==void 0)return VXC;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-call-to-action-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-button id="overlay-button" hidden="[[modern]]" raised="" tabindex="-1" class="style-scope ytd-call-to-action-button-renderer">\n  <yt-icon id="overlay-icon" icon="[[data.icon.iconType]]" class="style-scope ytd-call-to-action-button-renderer"></yt-icon>\n  <span id="overlay-text" class="style-scope ytd-call-to-action-button-renderer">[[getSimpleString(data.label)]]</span>\n</tp-yt-paper-button>\n<yt-button-shape data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden$="[[!modern]]" icon-name="[[computeIcon(data.icon.iconType)]]" class="style-scope ytd-call-to-action-button-renderer">\n</yt-button-shape>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return VXC=M},{mode:1});var RqC;var qL=function(){return _.Q.apply(this,arguments)||this};
_.l(qL,_.Q);qL.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.f_(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.TE(this.data.leftThumbnail.thumbnails,216)+")")};
qL.prototype.onLeftThumbnailChanged=qL.prototype.onLeftThumbnailChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],qL.prototype,"data",void 0);_.T([_.KT("data.leftThumbnail"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qL.prototype,"onLeftThumbnailChanged",null);_.T([_.b({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],qL);
_.z(qL,"ytd-collage-hero-image-renderer",function(){if(RqC!==void 0)return RqC;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return RqC=M},{mode:1});var fJM;var Gn=function(){return _.Q.apply(this,arguments)||this};
_.l(Gn,_.Q);Gn.prototype.computeStyle=function(M){return M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Gn.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.r("design:type",String)],Gn.prototype,"componentStyle",void 0);_.T([_.b({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],Gn);
_.z(Gn,"ytd-single-hero-image-renderer",function(){if(fJM!==void 0)return fJM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return fJM=M},{mode:1});var FKv;var K9=function(){return _.Q.apply(this,arguments)||this};
_.l(K9,_.Q);_.N=K9.prototype;
_.N.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:_.w("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.N.computeSubtitle=function(M){if(this.data){var q;if(this.data.upcomingEventData){M=_.UX(M.subtitle);var G=Number(this.data.upcomingEventData.startTime);isNaN(G)||(q=_.bc(_.A$(M,G)))}else q=M.subtitle;return q}};
_.N.onHeroTap=function(M){M.preventDefault();var q=this.data&&this.data.navigationEndpoint;!q||!_.b8(_.Zx(M),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.b8(_.Zx(M),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.w("kevlar_watchcard_hero_video_renderer_killswitch")?_.jP(this.hostElement,"yt-navigate",{navigationEndpoint:q}):this.ytComponentBehavior.resolveCommand(q))};
_.N.computeHeroTabIndex=function(M){return M&&M.simpleText?-1:0};
_.N.computeHeroRole=function(M){return M&&M.simpleText?"":"link"};
_.N.computeIsReminderButtonPresent=function(M){return!(!M||!M.reminderButton)};
_.N.computeHideBottomItems=function(M){return!(this.computeIsReminderButtonPresent(M)||M.subtitle)};
_.N.dataChanged=function(){var M=this.get("data.buttons.buttonRenderer.serviceEndpoint"),q;((q=_.C(M==null?void 0:M.commandMetadata,_.QL))==null?0:q.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(M)};
K9.prototype.dataChanged=K9.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],K9.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],K9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],K9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],K9.prototype,"data",void 0);
_.T([_.B({computed:"computeSubtitle(data)"}),_.r("design:type",String)],K9.prototype,"subtitle",void 0);_.T([_.B({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],K9.prototype,"isReminderButtonPresent",void 0);_.T([_.B({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],K9.prototype,"hideBottomItems",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K9.prototype,"dataChanged",null);_.T([_.b({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],K9);
_.z(K9,"ytd-watch-card-hero-video-renderer",function(){if(FKv!==void 0)return FKv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return FKv=M},{mode:1});var H8W;var n9=function(){return _.Q.apply(this,arguments)||this};
_.l(n9,_.Q);_.N=n9.prototype;_.N.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"}}}};
_.N.computeTitleBadges=function(M){return M?[M]:[]};
_.N.computeHeaderStyle=function(M){return M?M.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.N.computeAvatarAriaLabel=function(M){if(M){var q,G,K,n;return(n=(q=M.avatar)==null?void 0:(G=q.accessibility)==null?void 0:(K=G.accessibilityData)==null?void 0:K.label)!=null?n:_.UX(M==null?void 0:M.title)}};
_.N.computeAvatarHeight=function(M){return M==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.N.computeBadgeRowClass=function(M){return(M==null?0:M[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],n9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],n9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],n9.prototype,"data",void 0);_.T([_.B({computed:"computeTitleBadges(data.titleBadge)"}),_.r("design:type",Array)],n9.prototype,"titleBadges",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.r("design:type",String)],n9.prototype,"headerStyle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.r("design:type",String)],n9.prototype,"badgeRowClass",void 0);_.T([_.b({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],n9);
_.z(n9,"ytd-watch-card-rich-header-renderer",function(){if(H8W!==void 0)return H8W;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return H8W=M},{mode:1});var eqC;var $_G;var EI=function(){return _.Q.apply(this,arguments)||this};
_.l(EI,_.Q);EI.prototype.onMetadataTap=function(M){var q=this.data&&this.data.navigationEndpoint;q&&!_.b8(_.Zx(M),this.hostElement,["A".toString()])&&_.jP(this.hostElement,"yt-navigate",{endpoint:q})};
_.Yd.Object.defineProperties(EI.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 M;if(this.data.upcomingEventData){var q=_.UX(this.data.subtitle),G=Number(this.data.upcomingEventData.startTime);isNaN(G)||(M=_.bc(_.A$(q,G)))}else M=this.data.subtitle;return M}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],EI.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],EI.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data.style"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],EI.prototype,"isCondensed",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],EI.prototype,"subtitle",null);
_.T([_.b({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],EI);
_.z(EI,"ytd-watch-card-compact-video-renderer",function(){if($_G!==void 0)return $_G;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return $_G=M},{mode:1});var sEt;var MAG=function(){return _.Q.apply(this,arguments)||this};
_.l(MAG,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],MAG.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],MAG.prototype,"data",void 0);_.T([_.b({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],MAG);
_.z(MAG,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(sEt!==void 0)return sEt;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return sEt=M},{mode:1});var NL=function(){return _.Q.apply(this,arguments)||this};
_.l(NL,_.Q);NL.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}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],NL.prototype,"ytRendererStamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],NL.prototype,"data",void 0);_.T([_.b({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],NL);
_.z(NL,"ytd-vertical-watch-card-list-renderer",function(){if(eqC!==void 0)return eqC;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return eqC=M},{mode:1});var qKA;var kQ=function(){var M=_.Q.apply(this,arguments)||this;M.ariaExpanded="false";return M};
_.l(kQ,_.Q);_.N=kQ.prototype;_.N.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.N.dataChanged=function(){var M;this.currentSeasonIndex=((M=this.data)==null?void 0:M.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.N.computeEpisodesInfo=function(M,q,G){if(M!==void 0&&q.length===M.length)return M[G]};
_.N.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.N.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.N.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.N.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.N.getUppercaseSimpleString=function(M){return this.ytRendererBehavior.getSimpleString(M).toUpperCase()};
_.N.updateCurrentSeasonIndexFromBinding=function(M){this.currentSeasonIndex=M.detail.value};
kQ.prototype.onIronOverlayClosed=kQ.prototype.onIronOverlayClosed;kQ.prototype.currentSeasonIndexChanged=kQ.prototype.currentSeasonIndexChanged;kQ.prototype.dataChanged=kQ.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],kQ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],kQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],kQ.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",String)],kQ.prototype,"label",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],kQ.prototype,"currentSeasonIndex",void 0);_.T([_.B({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.r("design:type",Object)],kQ.prototype,"episodesInfo",void 0);_.T([_.B({value:"false"}),_.r("design:type",Object)],kQ.prototype,"ariaExpanded",void 0);_.T([_.ET("#lists"),_.r("design:type",Object)],kQ.prototype,"lists",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kQ.prototype,"dataChanged",null);_.T([_.yO("currentSeasonIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kQ.prototype,"currentSeasonIndexChanged",null);_.T([_.GQ("iron-overlay-closed"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],kQ.prototype,"onIronOverlayClosed",null);
_.T([_.b({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],kQ);
_.z(kQ,"ytd-watch-card-section-dropdown-renderer",function(){if(qKA!==void 0)return qKA;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qKA=M},{mode:1});var GiG;var p9=function(){var M=_.Q.apply(this,arguments)||this;M.isSearch=!1;return M};
_.l(p9,_.Q);p9.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}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],p9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],p9.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],p9.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],p9.prototype,"isSearch",void 0);_.T([_.b({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],p9);
_.z(p9,"ytd-watch-card-section-sequence-renderer",function(){if(GiG!==void 0)return GiG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return GiG=M},{mode:1});var Kvy=_.U(function(M){return _.W("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},_.W(_.yu,{data:function(){return M.data().ctaButton}},{buttonViewModel:_.Wf}),_.W(_.Ft,{text:function(){return M.data().subtext},
className:"ytwYtdButtonBannerViewModelSubtext"}))},"Um");
Kvy.idomCompat=!0;_.S5(Kvy,"ytd-button-banner-view-model",{props:{data:_.Hz}});var yP=function(){var M=_.Q.apply(this,arguments)||this;M.isSearch=!1;return M};
_.l(yP,_.Q);
yP.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"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],yP.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],yP.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yP.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],yP.prototype,"rounded",void 0);_.T([_.B(),_.r("design:type",Object)],yP.prototype,"isSearch",void 0);
_.T([_.b({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],yP);
_.z(yP,"ytd-universal-watch-card-renderer",function(){if(x_v!==void 0)return x_v;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return x_v=M},{mode:1});var nak;_.S5(_.U(function(M){var q=M.data;var G;M=!((G=_.AL().resolve(_.WR(_.Qx)))==null||!G());G={};return _.W("overview-message-view-model",{class:_.Hb("ytwOverviewMessageViewModelHost",(G.ytwOverviewMessageViewModelDarkBackground=M,G.ytwOverviewMessageViewModelLightBackground=!M,G))},_.W(_.d,{cond:function(){return q().primaryImage},
then:function(K){return _.W(_.Jj,{data:K,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.W(_.d,{cond:function(){return q().primaryText},
then:function(){return _.W("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.W(_.Ft,{text:function(){return q().primaryText}}))}}),_.W(_.d,{cond:function(){return q().secondaryText},
then:function(){return _.W("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.W(_.Ft,{text:function(){return q().secondaryText}}))}}))},"Vm"),"overview-message-view-model",{props:{data:_.Hz}});_.S5(_.$Uf,"ytd-overview-answer-view-model",{props:{data:_.Hz}});var L9=function(){return _.Q.apply(this,arguments)||this};
_.l(L9,_.Q);L9.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"}}}};
L9.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],L9.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],L9.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],L9.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],L9.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],L9.prototype,"isSearch",void 0);
_.T([_.b({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],L9);
_.z(L9,"ytd-secondary-search-container-renderer",function(){if(nak!==void 0)return nak;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return nak=M},{mode:1});var EaG;var YQ=function(){var M=_.Q.apply(this,arguments)||this;M.renderSecondarySearchContainer=!1;M.isSearch=!1;return M};
_.l(YQ,_.Q);_.N=YQ.prototype;_.N.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.N.created=function(){var M=this;this.boundStampSecondarySearchContainerIfFits=function(){M.stampSecondarySearchContainerIfFits()};
_.Vz("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.N.computeIsSearchFrictionPage=function(M){var q,G,K,n,E;M=M==null?void 0:(q=M.primaryContents)==null?void 0:(G=q.sectionListRenderer)==null?void 0:(K=G.contents)==null?void 0:(n=K[0])==null?void 0:(E=n.itemSectionRenderer)==null?void 0:E.contents;if(!M)return!1;q=_.k(M);for(G=q.next();!G.done;G=q.next())if(K=void 0,(K=G.value)==null?0:K.searchFrictionViewModel)return!0;return!1};
_.N.computeShowSecondaryColumn=function(M,q){return!!(q&&q.secondaryContents&&M)};
_.N.activeChanged=function(){var M=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.qs(this,this.debounceStampSecondarySearchContainerIfFits)),_.g4(function(){M.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.qs(this,this.debounceStampSecondarySearchContainerIfFits))};
_.N.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.N.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.N.debounceStampSecondarySearchContainerIfFits=function(){_.B4(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.N.onRetrieveLocation=function(M,q){q.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);M.stopPropagation()};
_.N.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
YQ.prototype.dataChanged=YQ.prototype.dataChanged;YQ.prototype.onRetrieveLocation=YQ.prototype.onRetrieveLocation;YQ.prototype.persistentGuideChanged=YQ.prototype.persistentGuideChanged;YQ.prototype.activeChanged=YQ.prototype.activeChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],YQ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],YQ.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],YQ.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.uz),_.r("design:type",Object)],YQ.prototype,"ironResizableBehavior",void 0);_.T([_.B(),_.r("design:type",Boolean)],YQ.prototype,"active",void 0);_.T([_.B(),_.r("design:type",Object)],YQ.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.w("enable_desktop_search_bigger_thumbs")}}),
_.r("design:type",Boolean)],YQ.prototype,"useBiggerThumbs",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.wP("desktop_search_bigger_thumbs_style")}}),
_.r("design:type",String)],YQ.prototype,"biggerThumbsStyle",void 0);_.T([_.B(),_.r("design:type",Object)],YQ.prototype,"renderSecondarySearchContainer",void 0);_.T([_.B({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.r("design:type",Boolean)],YQ.prototype,"showSecondaryColumn",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.r("design:type",Boolean)],YQ.prototype,"isSearchFrictionPage",void 0);
_.T([_.B(),_.r("design:type",Object)],YQ.prototype,"isSearch",void 0);_.T([_.KT("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YQ.prototype,"activeChanged",null);_.T([_.KT("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YQ.prototype,"persistentGuideChanged",null);
_.T([_.GQ("yt-retrieve-location"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],YQ.prototype,"onRetrieveLocation",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YQ.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],YQ);
_.z(YQ,"ytd-two-column-search-results-renderer",function(){if(EaG!==void 0)return EaG;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return EaG=M},{mode:1});var WK=function(){var M=_.Q.apply(this,arguments)||this;M.hasSearchHeader=!1;M.hasSecondaryContent=!1;M.hasBiggerThumbs=_.w("enable_desktop_search_bigger_thumbs");M.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return M};
_.l(WK,_.Q);_.N=WK.prototype;_.N.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:_.vZ(["aa","eocs"])}}};
_.N.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.N.loadPage_=function(M){this.initCsi();M&&(this.data=M,_.Vz("REFINEMENTS_TUPLE",["FromSearchResponse",M.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.N8(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.N.initCsi=function(){_.maM("results",["ol","cpt"])};
_.N.updateTitle=function(){var M=_.eA(window.location.href,"q");M||(M=_.eA(window.location.href,"search_query"));_.jP(this.hostElement,"yt-update-title",M||"")};
_.N.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.N.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.w("web_srp_data_changed_terminate_imp_killswitch")||_.VW(this.hostElement,"yt-terminate-video-preview-action")};
_.N.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.N.computeHasSearchHeader=function(M){var q;M=M==null?void 0:(q=M.header)==null?void 0:q.searchHeaderRenderer;return!!M&&(!!M.searchFilterButton||!!M.chipBar)};
_.N.computeHasSecondaryContent=function(M){var q,G;return!!(M==null?0:(q=M.contents)==null?0:(G=q.twoColumnSearchResultsRenderer)==null?0:G.secondaryContents)};
_.Yd.Object.defineProperties(WK,{template:{configurable:!0,enumerable:!0,get:function(){if(JgA===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);JgA=M}M=JgA;return M}}});
WK.prototype.onReloadContinuationFinish=WK.prototype.onReloadContinuationFinish;WK.prototype.dataChanged=WK.prototype.dataChanged;_.T([_.P(_.qV.YtPageBehavior),_.r("design:type",Object)],WK.prototype,"ytPageBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],WK.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],WK.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],WK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],WK.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],WK.prototype,"data",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],WK.prototype,"monitorScroll",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],WK.prototype,"hasSearchHeader",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],WK.prototype,"hasSecondaryContent",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],WK.prototype,"hasBiggerThumbs",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WK.prototype,"dataChanged",null);
_.T([_.GQ("yt-reload-continuation-finish"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],WK.prototype,"onReloadContinuationFinish",null);_.T([_.b({is:"ytd-search"})],WK);_.Su.registerService(_.EMu,WK);
_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("h8y2qb");
var TWC=function(M){if(M=_.KAD(M)){var q;(q=M.sources)!=null&&q[0]?(q=_.EOi(M),q=q<1?"VERTICAL":q>1?"HORIZONTAL":"SQUARE"):q=void 0;return q}},GA=function(M){_.CO.call(this,"upload");
this.opts.query=M},jvG=function(M,q){return _.W(r9L,{data:M,
onYtNavigate:q})},VMy=function(M,q){return _.sX(M.entities,"pageHeaderEntity",q)},fCA=function(M,q){return M.map(function(G){if(G.tabRenderer)return RGM(G.tabRenderer);
if(G.expandableTabRenderer&&q){var K=G.expandableTabRenderer;return{customTabRenderable:function(){return q(K)}}}return{}})},RGM=function(M){return{identifier:M.tabIdentifier,
aTagConfig:_.lm({innertubeCommand:M.endpoint,forceNewState:!0}),title:M.title,selected:M.selected,disabled:M.unselectable,icon:M.icon}},FLM=function(M){return _.RJ({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:M})},HGG=function(M){if(!_.jc(document,"gtm-noscript")){var q=document.createElement("noscript");
q.id="gtm-noscript";q.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+M+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(q)}};_.TO(GA,_.CO);GA.prototype.JSC$10078_setLabel=function(M){GA.superClass_.JSC$10078_setLabel.call(this,M);return this};
GA.prototype.addUploadMetadata=function(M,q){GA.superClass_.addUploadMetadata.call(this,M,q);return this};var eGy=function(M){if(M!=="youtubebanner"&&M!=="youtube-channel-banner")throw Error("Ko");GA.call(this,M)};
_.l(eGy,GA);eGy.prototype.JSC$10078_setLabel=function(M){GA.prototype.JSC$10078_setLabel.call(this,M);return this};
eGy.prototype.addUploadMetadata=function(M,q){GA.prototype.addUploadMetadata.call(this,M,q);return this};var $aW=[_.uz,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(M){_.YD(M).path[0]!==this&&(this.resetLayout(),M.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var M=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.yd(this._layoutDebouncer,_.Wb,M);_.Lk(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var M=this;requestAnimationFrame(function(){M.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(M){this.resizerShouldNotify(M)&&this._notifyDescendant(M)},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 sSA=[_.VhJ,{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(M,q){var G=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[M];if(!G)throw new ReferenceError(this._getUndefinedMsg(M));M=this._boundEffect(G,q||{});M.setUp();return M},
_effectsChanged:function(M,q,G){this._tearDownEffects();M&&G&&(M.split(" ").forEach(function(K){var n;K!==""&&((n=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[K])?this._effects.push(this._boundEffect(n,q[K])):console.warn(this._getUndefinedMsg(K)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(M,q){q=q||{};var G=parseFloat(q.startsAt||0),K=parseFloat(q.endsAt||1),n=K-G,E=function(){};
K=G===0&&K===1?M.run:function(p,y){M.run.call(this,Math.max(0,(p-G)/n),y)};
return{setUp:M.setUp?M.setUp.bind(this,q):E,run:M.run?K.bind(this):E,tearDown:M.tearDown?M.tearDown.bind(this):E}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(M){M.setUp()!==!1&&this._effectsRunFn.push(M.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(M){M.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(M,q){this._effectsRunFn&&this._effectsRunFn.forEach(function(G){G(M,q)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var M=this._clampedScrollTop;this._updateScrollState(M);this.threshold>0&&this._setThresholdTriggered(M>=this.threshold)}},
_getDOMRef:function(M){console.warn("_getDOMRef","`"+M+"` is undefined")},
_getUndefinedMsg:function(M){return"Scroll effect `"+M+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+M+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Lo`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(M){var q={};M=parseFloat(M.scalar);q.background=this._getDOMRef("background");q.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");q.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");q.deltaBg=q.backgroundFrontLayer.offsetHeight-q.background.offsetHeight;q.deltaBg===0?(isNaN(M)&&(M=.8),q.deltaBg=(this._dHeight||0)*M):(isNaN(M)&&(M=
1),q.deltaBg*=M);this._fxParallaxBackground=q},
run:function(M){var q=this._fxParallaxBackground;this.transform("translate3d(0px, "+q.deltaBg*Math.min(1,M)+"px, 0px)",q.backgroundFrontLayer);q.backgroundRearLayer&&this.transform("translate3d(0px, "+q.deltaBg*Math.min(1,M)+"px, 0px)",q.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var Mmv;var qiy;var Gp3=function(){};
_.N=Gp3.prototype;_.N._scrollTargetChanged=function(){};
_.N.scroll=function(){};
_.N._isValidScrollTarget=function(){};
_.N._toggleScrollListener=function(){};
_.N.toggleScrollListener=function(){};
_.N.createEffect=function(){};
_.N._effectsChanged=function(){};
_.N._layoutIfDirty=function(){};
_.N._boundEffect=function(){};
_.N._setUpEffect=function(){};
_.N._tearDownEffects=function(){};
_.N._runEffects=function(){};
_.N._scrollHandler=function(){};
_.N._scrollStateChanged=function(){};
_.N._getUndefinedMsg=function(){};
_.N.notifyResize=function(){};
_.N.assignParentResizable=function(){};
_.N.stopResizeNotificationsFor=function(){};
_.N._subscribeIronResize=function(){};
_.N._unsubscribeIronResize=function(){};
_.N.resizerShouldNotify=function(){};
_.N._onDescendantIronResize=function(){};
_.N._fireResize=function(){};
_.N._onIronRequestResizeNotifications=function(){};
_.N._parentResizableChanged=function(){};
_.N._notifyDescendant=function(){};
_.N._requestResizeNotifications=function(){};
_.N._findParent=function(){};
_.N._appResetLayoutHandler=function(){};
_.N.resetLayout=function(){};
_.N._notifyLayoutChanged=function(){};
_.N._notifyDescendantResize=function(){};
_.N._setThresholdTriggered=function(){};
Gp3=_.h_({_template:function(){if(qiy!==void 0)return qiy;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;Mmv===void 0&&(Mmv=document.createElement("template"));var K=Mmv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return qiy=M},
is:"tp-yt-app-header",behaviors:[sSA,$aW],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 M=_.YD(this.$.slot).getDistributedNodes(),q=0,G;G=M[q];q++)if(G.nodeType===Node.ELEMENT_NODE)if(G.hasAttribute("sticky")){this._stickyElRef=G;break}else this._stickyElRef||(this._stickyElRef=G);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var M=this._clampedScrollTop,q=this._height===0||M===0,G=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;q||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();q?this._updateScrollState(M,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=G}},
_updateScrollState:function(M,q){if(this._height!==0){var G=0,K=this._top;var n=this._maxHeaderTop;var E=M-this._lastScrollTop,p=Math.abs(E),y=M>this._lastScrollTop,Y=performance.now();this._mayMove()&&(G=this._clamp(this.reveals?K+E:M,0,n));M>=this._dHeight&&(G=this.condenses&&!this.fixed?Math.max(this._dHeight,G):G,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&p<100){if(Y-this._initTimestamp>300||this._wasScrollingDown!==y)this._initScrollTop=M,this._initTimestamp=Y;M>=n&&
(Math.abs(this._initScrollTop-M)>30||p>10?(y&&M>=n?G=n:!y&&M>=this._dHeight&&(G=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((G-K)/(E/(Y-this._lastTimestamp)),0,300)+"ms"):G=this._top)}n=this._dHeight===0?M>0?1:0:G/this._dHeight;q||(this._lastScrollTop=M,this._top=G,this._wasScrollingDown=y,this._lastTimestamp=Y);if(q||n!==this._progress||K!==G||M===0)this._progress=n,this._runEffects(n,G),this._transformHeader(G)}},
_mayMove:function(){return this.condenses||!this.fixed},
willCondense:function(){return this._dHeight>0&&this.condenses},
isOnScreen:function(){return this._height!==0&&this._top<this._height},
isContentBelow:function(){return this._top===0?this._clampedScrollTop>0:this._clampedScrollTop-this._maxHeaderTop>=0},
_transformHeader:function(M){this.translate3d(0,-M+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&M>=this._stickyElTop?Math.min(M,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(M,q,G){return Math.min(G,Math.max(q,M))},
_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),_.YD(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(M){switch(M){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.YD(this).querySelector("[main-title]");case "condensedTitle":return _.YD(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var KwA;var nqG;_.h_({_template:function(){if(nqG!==void 0)return nqG;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;KwA===void 0&&(KwA=document.createElement("template"));var K=KwA;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return nqG=M},
is:"tp-yt-app-header-layout",behaviors:[$aW],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.YD(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var M=this.header;if(this.isAttached&&M){this.$.wrapper.classList.remove("initializing");M.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)M.style.left=
"",M.style.right="";else{var q=this.getBoundingClientRect(),G=document.documentElement.clientWidth-q.right;M.style.left=q.left+"px";M.style.right=G+"px"}q=this.$.contentContainer.style;G=M.offsetHeight;M.fixed&&!M.condenses&&this.hasScrollingRegion?(q.marginTop=G+"px",q.paddingTop=""):(q.paddingTop=G+"px",q.marginTop="")}}});var Eqe=new _.e0("alertCommand");var NLG=new _.e0("manageLabsStateCommand");var kpa=new _.e0("inlineFormRenderer");var pDk=new _.e0("playlistSidebarPrimaryInfoRenderer");var yxe=new _.e0("productDetailsThumbnailRenderer"),Lwt=new _.e0("productDetailsVariantRenderer"),Yik=new _.e0("productDetailsVariantOptionRenderer"),WwC=new _.e0("productDetailsOffersContainerRenderer"),AxM=new _.e0("productDetailsOfferRenderer");var dXG=new _.e0("shoppingFlaggingRenderer");var vqG=new _.e0("playlistBylineRenderer");var h7C=new _.e0("insertChannelTabCommand");var K2=function(){return _.kA.apply(this,arguments)||this};
_.l(K2,_.kA);_.N=K2.prototype;_.N.activeChanged=function(){if(this.active){var M=_.f_(this.hostElement).querySelector("#header");M&&_.jP(M,"iron-resize");window.addEventListener("scroll",_.qs(this,this.onScroll))}else window.removeEventListener("scroll",_.qs(this,this.onScroll)),_.jP(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.N.guideVisibleChanged=function(){var M=_.f_(this.hostElement).querySelector("#header");M&&_.jP(M,"iron-resize")};
_.N.onScroll=function(){var M=this;_.B4(this,"onScroll",function(){var q=_.f_(M.hostElement).querySelector("#header");q&&q.polymerController&&(q=q.polymerController.getScrollState().progress===1?"standard":"seamed",_.jP(M.hostElement,"yt-request-panel-mode-change",{mode:q}))},10)};
_.N.tabsChanged=function(){if(this.tabs){for(var M=null,q=0,G=this.tabs.length;q<G;++q){var K=this.tabs[q].tabRenderer;if(K&&K.selected){M=q;break}}this.selected=M}};
_.N.onTabsActivate=function(M){_.jP(this.hostElement,"yt-navigate",{endpoint:this.tabs[M.detail.selected].tabRenderer.endpoint})};
K2.prototype.tabsChanged=K2.prototype.tabsChanged;K2.prototype.guideVisibleChanged=K2.prototype.guideVisibleChanged;K2.prototype.activeChanged=K2.prototype.activeChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],K2.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.B(),_.r("design:type",Array)],K2.prototype,"tabs",void 0);
_.T([_.B(),_.r("design:type",Object)],K2.prototype,"selected",void 0);_.T([_.B(),_.r("design:type",Boolean)],K2.prototype,"active",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],K2.prototype,"disableHeaderFluidWidth",void 0);_.T([_.KT("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K2.prototype,"activeChanged",null);
_.T([_.KT("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K2.prototype,"guideVisibleChanged",null);_.T([_.KT("tabs"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],K2.prototype,"tabsChanged",null);_.T([_.pT()],K2);var tmG=[_.F.YtRendererBehavior,_.RB.YtdGuideStateAwareBehavior,K2.prototype];var Ovk=2/3,wDa=_.$m(130749),C5W=function(M,q){var G=this;this.element=M;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){G.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:Ovk,moveAction:function(K){G.moveAction(K)},
triggerAction:function(){G.element.isReloading=!0;_.Bx(_.nl(),{visualElement:wDa});_.$A.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:G.element}})}}}};
_.lu(_.nl(),wDa,this.layer);this.gesture=new _.Z0(M,q,this.refreshConfig,"pan-down");this.attach()};
_.N=C5W.prototype;_.N.attach=function(){this.gesture.attach()};
_.N.detach=function(){this.gesture.detach()};
_.N.reset=function(){this.element.close()};
_.N.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.N.moveAction=function(M){this.element.rotation=M*360};var a2C=_.$m(130750),l2k=function(M,q,G,K,n){var E=this;this.element=M;this.parent=G;this.channelHeader=K;this.ytdReduxDispatch=n;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){E.tabsStartAtInPx=E.channelHeader.clientHeight-48;var p;(p=E.selectedTab)!=null&&p.title&&(p=_.AL().resolve(_.WR(_.md)))&&(p=p.getCurrentPage(),E.lastVisitedTabScrollPosition=p.getScrollTop(),E.previousTab&&
((E.lastVisitedTabScrollPosition===void 0?0:E.lastVisitedTabScrollPosition<E.channelHeader.clientHeight-48)?E.scrollPositionForTabs.has(E.selectedTab.title)&&E.scrollPositionForTabs.delete(E.selectedTab.title):E.scrollPositionForTabs.set(E.selectedTab.title,p.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:oqC(),triggerAction:function(){E.navigate(E.previousTab)},
moveAction:function(p,y){E.moveAction(p,y)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-oqC(),triggerAction:function(){E.navigate(E.nextTab)},
moveAction:function(p,y){E.moveAction(p,y)}}}};
_.lu(_.nl(),a2C,this.layer);this.gesture=new _.Z0(M,q,this.tabConfig);this.attach()};
_.N=l2k.prototype;_.N.attach=function(){this.gesture.attach()};
_.N.detach=function(){this.gesture.detach()};
_.N.tabsChanged=function(M){if(M){var q=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;M=_.k(M);for(var G=M.next();!G.done;G=M.next()){G=G.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=G);var K=void 0;if((K=G)==null?0:K.selected)this.previousTab=q,this.selectedTab=G;q=G}q=this.gesture;M=this.getConfig();q.config=M;this.scrollPositionNeedsUpdate=!0}};
_.N.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}})};
_.N.moveAction=function(M,q){if(!this.tabsElement){var G;this.tabsElement=(G=this.parent.header)==null?void 0:G.tabsElement;q==="right"&&this.previousTab?(G=this.previousTab.endpoint,_.VXg(_.AL().resolve(_.Ls),G,{},"")):q==="left"&&this.nextTab&&(G=this.nextTab.endpoint,_.VXg(_.AL().resolve(_.Ls),G,{},""));if(!this.tabsElement)return}G=this.tabsElement._pos;q==="right"&&(M*=-1);this.tabsElement._positionBar(G.width,G.left*1+G.width*M)};
var oqC=function(){var M,q;return(q=(M=_.AL().resolve(_.md).getCurrentPage())==null?void 0:M.clientWidth)!=null?q:0};
l2k.prototype.navigate=function(M){this.element.data=void 0;if(M=M==null?void 0:M.endpoint)this.ytdReduxDispatch(FLM(!0)),_.Bx(_.nl(),{visualElement:a2C}),_.$A.instance.resolveCommand({navigateAction:{endpoint:M}},{form:{element:this.element}})};var XDa;var P5y;var n2=function(){return _.Q.apply(this,arguments)||this};
_.l(n2,_.Q);n2.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],n2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],n2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],n2.prototype,"data",void 0);_.T([_.b({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],n2);
_.z(n2,"ytd-labs-edit-renderer",function(){if(P5y!==void 0)return P5y;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return P5y=M},{mode:1});var ivC;var Es=function(){var M=_.Q.apply(this,arguments)||this;M.dark=!1;M.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";M.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(Es,_.Q);Es.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Es.prototype.ready=function(){var M=document.documentElement.hasAttribute("dark");this.setBackgroundImage(M);this.dark=M};
Es.prototype.onDarkModeToggledAction=function(M){this.setBackgroundImage(M);this.dark=M};
Es.prototype.setBackgroundImage=function(M){_.sT(this.hostElement,{"--yt-labs-header-background":"url("+(M?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Es.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Es.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Es.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Es.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Es.prototype,"dark",void 0);
_.T([_.b({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],Es);
_.z(Es,"ytd-labs-header-renderer",function(){if(ivC!==void 0)return ivC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ivC=M},{mode:1});var cxG;var NV=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return M};
_.l(NV,_.Q);NV.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"}}}}}};
NV.prototype.onYtToggleButton=function(M){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",M.detail.toggled)};
NV.prototype.onManageLabsState=function(M){if(M=_.C(M,NLG))M.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?M.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&M.labsItemId===this.data.labsItemId&&(M.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.VW(this.hostElement,"yt-check-labs-opted-in-state").some(function(q){return q})&&this.data.confirmationDialogCommand?_.FH(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.AL().resolve(_.vR).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&M.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.AL().resolve(_.vR).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
NV.prototype.onCheckLabsOptedInState=function(){var M=this.get("data.primaryButton.toggleButtonRenderer");return M?M.isToggled:!1};
_.Yd.Object.defineProperties(NV.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
NV.prototype.onYtToggleButton=NV.prototype.onYtToggleButton;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],NV.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],NV.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],NV.prototype,"itemStyle",null);_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],NV.prototype,"onYtToggleButton",null);_.T([_.b({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],NV);
_.z(NV,"ytd-labs-item-renderer",function(){if(cxG!==void 0)return cxG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return cxG=M},{mode:1});var gqt;var BLt;var QSy=function(){return _.Q.apply(this,arguments)||this};
_.l(QSy,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QSy.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QSy.prototype,"data",void 0);_.T([_.b({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],QSy);
_.z(QSy,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(BLt!==void 0)return BLt;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return BLt=M},{mode:1});var I2t;var kF=function(){return _.Q.apply(this,arguments)||this};
_.l(kF,_.Q);kF.prototype.observeSuperchatChip=function(){if(this.data){var M={"--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)};_.sT(this.hostElement,M)}};
kF.prototype.colorFromDecimal=function(M){return _.C_(Number(M||0))};
kF.prototype.observeSuperchatChip=kF.prototype.observeSuperchatChip;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],kF.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kF.prototype,"observeSuperchatChip",null);_.T([_.b({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],kF);
_.z(kF,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(I2t!==void 0)return I2t;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return I2t=M},{mode:1});var p2=function(){return _.Q.apply(this,arguments)||this};
_.l(p2,_.Q);p2.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"}}}};
_.Yd.Object.defineProperties(p2.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],p2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.TU),_.r("design:type",Object)],p2.prototype,"ytdDismissibleItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],p2.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],p2.prototype,"hideMessageBlock",null);
_.T([_.b({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],p2);
_.z(p2,"ytd-live-chat-history-entry-renderer",function(){if(gqt!==void 0)return gqt;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return gqt=M},{mode:1});var DXC;var urk=function(){return _.Q.apply(this,arguments)||this};
_.l(urk,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],urk.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],urk.prototype,"data",void 0);_.T([_.b({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],urk);
_.z(urk,"ytd-channel-options-renderer",function(){if(DXC!==void 0)return DXC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return DXC=M},{mode:1});var Jx3;var ym=function(){return _.Q.apply(this,arguments)||this};
_.l(ym,_.Q);ym.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ym.prototype,"data",void 0);_.T([_.b({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],ym);
_.z(ym,"ytd-settings-email-item-renderer",function(){if(Jx3!==void 0)return Jx3;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Jx3=M},{mode:1});var Zve;var L2=function(){return _.Q.apply(this,arguments)||this};
_.l(L2,_.Q);L2.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"}}}};
L2.prototype.getExpansionIcon=function(M){return M?"COLLAPSE":"EXPAND"};
L2.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Yd.Object.defineProperties(L2.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],L2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],L2.prototype,"data",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],L2.prototype,"expanded",void 0);_.T([_.c("expanded"),_.r("design:type",String),_.r("design:paramtypes",[])],L2.prototype,"emailListExpanded",null);
_.T([_.ET("#options"),_.r("design:type",Object)],L2.prototype,"options",void 0);_.T([_.b({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],L2);
_.z(L2,"ytd-settings-email-list-renderer",function(){if(Zve!==void 0)return Zve;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Zve=M},{mode:1});var bvk;var YF=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return M};
_.l(YF,_.Q);YF.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"}}}};
YF.prototype.handleSignalActionSubmitForm=function(){var M,q=(M=this.formRenderer)==null?void 0:M.getForm();q&&this.data.serviceEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},q,{element:this.hostElement})})};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],YF.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],YF.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],YF.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],YF.prototype,"data",void 0);_.T([_.ET("yt-form-renderer"),_.r("design:type",Object)],YF.prototype,"formRenderer",void 0);
_.T([_.b({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],YF);
_.z(YF,"ytd-settings-gaia-link-renderer",function(){if(bvk!==void 0)return bvk;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return bvk=M},{mode:1});var UXt;var Wk=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return M};
_.l(Wk,_.Q);Wk.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.cKw()&&this.set("data.hidden",!1)};
Wk.prototype.onSwitchReady=function(){var M=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.w("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.i_s().then(function(q){q&&(Notification.permission==="default"?M.set("data.hidden",!1):Notification.permission==="granted"&&_.PZ("NotificationsDisabled").then(function(G){G||_.VW(M.hostElement,"yt-toggle-settings-switch",[M.data.id,!G]);M.set("data.hidden",!1)}).catch(function(){}))})})};
Wk.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}}}}};
Wk.prototype.handleUpdateOptionsCommand=function(M){(M=_.C(M,_.EtB))&&this.data&&this.data.id===M.id&&(this.set("data.hidden",M.hidden),M.text!==void 0&&this.set("data.text",M.text),M.clearOptions&&this.set("data.options",[]))};
Wk.prototype.onSwitchReady=Wk.prototype.onSwitchReady;Wk.prototype.dataChanged=Wk.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Wk.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Wk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Wk.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Wk.prototype,"data",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wk.prototype,"dataChanged",null);_.T([_.GQ("yt-settings-switch-ready"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wk.prototype,"onSwitchReady",null);_.T([_.b({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],Wk);
_.z(Wk,"ytd-settings-options-renderer",function(){if(UXt!==void 0)return UXt;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return UXt=M},{mode:1});var xXv;var AS=function(){return _.Q.apply(this,arguments)||this};
_.l(AS,_.Q);AS.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
AS.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
AS.prototype.onYtExpanderMoreTapped=AS.prototype.onYtExpanderMoreTapped;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],AS.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],AS.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],AS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],AS.prototype,"data",void 0);
_.T([_.GQ("yt-expander-more-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],AS.prototype,"onYtExpanderMoreTapped",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],AS);
_.z(AS,"ytd-product-details-description-renderer",function(){if(xXv!==void 0)return xXv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return xXv=M},{mode:1});var z7M;var d3=function(){var M=_.Q.apply(this,arguments)||this;M.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";M.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";M.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";M.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return M};
_.l(d3,_.Q);d3.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Yd.Object.defineProperties(d3.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:(q=M.offerData)==null?void 0:q.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?void 0:M.purchaseButtonRenderers)!==void 0&&((q=this.data)==null?void 0:q.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null||!M.formattedFromMerchantText)&&(!((q=this.data)==null||!q.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],d3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],d3.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],d3.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],d3.prototype,"data",void 0);
_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.r("design:type",Object)],d3.prototype,"shippingIcon",void 0);_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.r("design:type",Object)],d3.prototype,"shippingAddressIcon",void 0);_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.r("design:type",Object)],d3.prototype,"googleGuaranteeIcon",void 0);
_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?String:void 0}),_.r("design:type",Object)],d3.prototype,"returnPolicyIcon",void 0);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],d3.prototype,"showAdditionalFees",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],d3.prototype,"showMultiPurchaseButtons",null);
_.T([_.c("data","showMultiPurchaseButtons"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],d3.prototype,"showPurchaseData",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],d3);
_.z(d3,"ytd-product-details-hero-offer-renderer",function(){if(z7M!==void 0)return z7M;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return z7M=M},{mode:1});var mX3;var Sie;var vk=function(){return _.Q.apply(this,arguments)||this};
_.l(vk,_.Q);_.N=vk.prototype;_.N.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.N.onKeyDown=function(M){M=M.keyCode;M!==13&&M!==32||this.handleSelection()};
_.N.onMouseEnterImage=function(){var M;((M=this.data)==null?void 0:M.thumbnailDetails)!==void 0&&_.Rf(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.N.onMouseLeaveImage=function(){_.Rf(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.N.handleSelection=function(){this.data&&_.jP(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Yd.Object.defineProperties(vk.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.isSelected)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],vk.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],vk.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],vk.prototype,"isSelected",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],vk);
_.z(vk,"ytd-product-details-thumbnail-renderer",function(){if(Sie!==void 0)return Sie;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Sie=M},{mode:1});var hS=function(){var M=_.Q.apply(this,arguments)||this;var q={};M.actionMap=(q["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",q["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",q);M.selectedThumbnailIndex=0;M.selectItem=function(G){G.target.onKeyDown(G)};
return M};
_.l(hS,_.Q);_.N=hS.prototype;_.N.handlePreviewImageSelect=function(M){this.hoverThumbnail=M};
_.N.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.N.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.N.onThumbnailSelected=function(M,q){this.selectedThumbnailIndex=q};
_.N.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.N.updateOffset=function(){var M=_.f_(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-M));this.ytdHorizontalListBehavior.reposition_()};
_.Yd.Object.defineProperties(hS.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.imageRenderer){var q,G;return((q=this.data)==null?void 0:(G=q.imageRenderer)==null?void 0:G.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var M;if((M=this.data)==null?0:M.imageRenderer){var q;return(q=_.C(this.data.imageRenderer[this.selectedThumbnailIndex],yxe))==null?void 0:q.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var M=this,q,G,K,n=(K=(q=this.data)==null?void 0:(G=q.imageRenderer)==null?void 0:G.map(function(E,p){return{productDetailsThumbnailRenderer:Object.assign({},_.C(E,yxe),{index:p,isSelected:p===M.selectedThumbnailIndex})}}))!=null?K:[];
return Object.assign({},this.data,{imageRenderer:n})}}});
hS.prototype.updateOffset=hS.prototype.updateOffset;hS.prototype.dataChanged=hS.prototype.dataChanged;hS.prototype.onThumbnailSelected=hS.prototype.onThumbnailSelected;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hS.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],hS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.pi.YtdHorizontalListBehavior),_.r("design:type",Object)],hS.prototype,"ytdHorizontalListBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],hS.prototype,"componentBehavior",void 0);_.T([_.P([_.wg.YtActionHandlerBehavior]),_.r("design:type",Object)],hS.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hS.prototype,"data",void 0);_.T([_.B({value:"$.items.children"}),_.r("design:type",String)],hS.prototype,"itemsPath",void 0);_.T([_.B({value:3}),_.r("design:type",Number)],hS.prototype,"initialCount",void 0);
_.T([_.ET("#items"),_.r("design:type",Object)],hS.prototype,"items",void 0);_.T([_.B(),_.r("design:type",Object)],hS.prototype,"selectedThumbnailIndex",void 0);_.T([_.B(),_.r("design:type",Object)],hS.prototype,"hoverThumbnail",void 0);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],hS.prototype,"showThumbnails",null);
_.T([_.GQ("ytd-product-details-thumbnail-renderer-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Number]),_.r("design:returntype")],hS.prototype,"onThumbnailSelected",null);_.T([_.c("data","selectedThumbnailIndex","hoverThumbnail"),_.r("design:type",Object),_.r("design:paramtypes",[])],hS.prototype,"thumbnailDetails",null);_.T([_.c("data","selectedThumbnailIndex"),_.r("design:type",Object),_.r("design:paramtypes",[])],hS.prototype,"populatedData",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hS.prototype,"dataChanged",null);_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hS.prototype,"updateOffset",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],hS);
_.z(hS,"ytd-product-details-image-carousel-renderer",function(){if(mX3!==void 0)return mX3;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return mX3=M},{mode:_.VO("kevlar_poly_si_batch_j079")?1:2});var TLA;var tS=function(){return _.Q.apply(this,arguments)||this};
_.l(tS,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tS.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],tS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],tS.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tS.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],tS);
_.z(tS,"ytd-product-details-offer-renderer",function(){if(TLA!==void 0)return TLA;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return TLA=M},{mode:1});var rxC;var Os=function(){var M=_.Q.apply(this,arguments)||this;M.isOffersHidden=!0;return M};
_.l(Os,_.Q);Os.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var M,q=_.C((M=this.data)==null?void 0:M.viewOffersButton,_.f1);q&&this.ytRendererBehavior.logExplicitClick(q)};
Os.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Yd.Object.defineProperties(Os.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K;return(G=_.C((M=this.data)==null?void 0:(q=M.offers)==null?void 0:q[0],AxM))==null?void 0:(K=G.offerData)==null?void 0:K.vendorLogoUrl}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Os.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Os.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Os.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Os.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Os.prototype,"isOffersHidden",void 0);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Os.prototype,"firstOfferVendorLogoUrl",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],Os);
_.z(Os,"ytd-product-details-offers-container-renderer",function(){if(rxC!==void 0)return rxC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return rxC=M},{mode:1});var jSt;var VmG;var w3=function(){return _.Q.apply(this,arguments)||this};
_.l(w3,_.Q);w3.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
w3.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Rf(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
w3.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Rf(this,"ytd-product-details-variant-image-unselect")};
_.Yd.Object.defineProperties(w3.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 M;return((M=this.data)==null?void 0:M.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.data)==null?void 0:M.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((q=this.data)==null?void 0:q.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((G=this.data)==null?void 0:G.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var M;if(((M=this.data)==null?void 0:M.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var M,q;return this.isUnavailable?(M=this.data)==null?void 0:M.variantOptionUnavailableAccessibilityLabel:(q=this.data)==null?void 0:q.variantOptionAccessibilityLabel}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],w3.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],w3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],w3.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],w3.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],w3.prototype,"displayType",void 0);
_.T([_.c("displayType","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],w3.prototype,"isImageButton",null);_.T([_.c("displayType","data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],w3.prototype,"isPillButton",null);_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],w3.prototype,"isActive",null);
_.T([_.c("data"),_.B({reflectToAttribute:!0}),_.r("design:type",Boolean),_.r("design:paramtypes",[])],w3.prototype,"isUnavailable",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],w3.prototype,"thumbnailDetails",null);_.T([_.c("isUnavailable","data"),_.r("design:type",Object),_.r("design:paramtypes",[])],w3.prototype,"accessibilityLabel",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],w3);
_.z(w3,"ytd-product-details-variant-option-renderer",function(){if(VmG!==void 0)return VmG;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return VmG=M},{mode:1});var R7M;var C2=function(){var M=_.Q.apply(this,arguments)||this;M.variantsExpanded=!1;M.hideShowMoreLessVariantButton=!0;M.initialized=!1;M.computeVariantsDebouncer=null;M.computeVariants=function(q){q=q===void 0?!1:q;M.variantsExpanded||M.showOptions()||!q||(M.variantsExpanded=!0);if(M.variantsExpanded){q=_.k(M.items.children);for(var G=q.next();!G.done;G=q.next())G.value.hidden=!1}M.initialized=!0};
return M};
_.l(C2,_.Q);_.N=C2.prototype;_.N.ready=function(){var M=this;setTimeout(function(){M.computeVariants(!0)})};
_.N.showOptions=function(){for(var M=_.k(this.items.children),q=M.next();!q.done;q=M.next())q.value.hidden=!0;var G=this.container.getBoundingClientRect().width,K=0,n=M=0;q=!1;for(var E=_.k(this.items.children),p=E.next();!p.done;p=E.next()){p=p.value;p.hidden=!1;var y=p.getBoundingClientRect().width;if(K+y<G)K+=y;else if(++n<2)K=y;else break;M+=1;p.hasAttribute("is-active")&&(q=!0)}for(G=M;G<this.items.children.length;G++)this.items.children[G].hidden=!0;this.hideShowMoreLessVariantButton=M===this.items.children.length;
return q};
_.N.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.yd(this.computeVariantsDebouncer,_.eD.after(100),this.computeVariants)};
_.N.onShowMoreLessVariantsButtonClick=function(){var M;(M=this.data)!=null&&M.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.N.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Yd.Object.defineProperties(C2.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.data)==null?void 0:(q=M.variantOptionRenderers)==null?void 0:q.find(function(E){return _.C(E,Yik).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),K,n;
return(n=(K=_.C(G,Yik))==null?void 0:K.name)!=null?n:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.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"}}}});
C2.prototype.debouncedComputeVariants=C2.prototype.debouncedComputeVariants;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],C2.prototype,"componentBehavior",void 0);_.T([_.P(_.uz),_.r("design:type",Object)],C2.prototype,"ironResizableBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],C2.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],C2.prototype,"variantsExpanded",void 0);_.T([_.B(),_.r("design:type",Object)],C2.prototype,"hideShowMoreLessVariantButton",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],C2.prototype,"initialized",void 0);_.T([_.ET("#items"),_.r("design:type",HTMLDivElement)],C2.prototype,"items",void 0);_.T([_.ET("#container"),_.r("design:type",HTMLDivElement)],C2.prototype,"container",void 0);
_.T([_.ET("#more-variants-button"),_.r("design:type",HTMLElement)],C2.prototype,"moreVariantsButton",void 0);_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],C2.prototype,"selectedOptionName",null);_.T([_.KT("data","variantsExpanded"),_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],C2.prototype,"debouncedComputeVariants",null);
_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],C2.prototype,"displayType",null);_.T([_.c("displayType"),_.r("design:type",Object),_.r("design:paramtypes",[])],C2.prototype,"variantItemsClassname",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],C2);
_.z(C2,"ytd-product-details-variant-renderer",function(){if(R7M!==void 0)return R7M;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return R7M=M},{mode:1});var aX=function(){return _.Q.apply(this,arguments)||this};
_.l(aX,_.Q);
aX.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"}}}};
_.Yd.Object.defineProperties(aX.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(q=_.C((M=this.data)==null?void 0:M.offersContainerRenderer,WwC))==null?void 0:q.offers;return G!==void 0&&(G==null?void 0:G.length)>1}},
showBuySeparator:{configurable:!0,enumerable:!0,get:function(){return this.showOffers&&this.showPurchaseData}},
showBuyCard:{configurable:!0,enumerable:!0,get:function(){return this.showOffers||this.showPurchaseData}},
selectedVariantsText:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((G=(M=this.data)==null?void 0:(q=M.variants)==null?void 0:q.map(function(K){var n,E;K=(E=(n=_.C(K,Lwt))==null?void 0:n.variantOptionRenderers)==null?void 0:E.find(function(y){var Y;return((Y=_.C(y,Yik))==null?void 0:Y.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var p;return(p=_.C(K,Yik))==null?void 0:p.name}).filter(function(K){return typeof K==="string"}))!=null?G:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var M,q,G,K=(q=_.C((M=this.data)==null?void 0:M.shoppingFlaggingRenderer,dXG))==null?void 0:(G=q.reportButton)==null?void 0:G.buttonRenderer;if(K)return{text:K.text,command:K.command,icon:{iconType:"FLAG"},accessibilityData:K.accessibilityData,trackingParams:K.trackingParams,loggingDirectives:K.loggingDirectives}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],aX.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],aX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],aX.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],aX.prototype,"data",void 0);_.T([_.ET("#image-carousel-renderer"),_.r("design:type",Object)],aX.prototype,"imageCarouselRenderer",void 0);
_.T([_.ET("#hero-offer-renderer"),_.r("design:type",Object)],aX.prototype,"productDetailsHeroOfferRenderer",void 0);_.T([_.ET("#variants"),_.r("design:type",Object)],aX.prototype,"productDetailsVariantRenderer",void 0);_.T([_.ET("#offers"),_.r("design:type",Object)],aX.prototype,"productDetailsOffersContainerRenderer",void 0);_.T([_.ET("#description-renderer"),_.r("design:type",Object)],aX.prototype,"productDetailsDescriptionRenderer",void 0);
_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aX.prototype,"showPurchaseData",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aX.prototype,"showHeroOfferRenderer",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aX.prototype,"showBrandText",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aX.prototype,"showOffers",null);
_.T([_.c("showOffers","showPurchaseData"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aX.prototype,"showBuySeparator",null);_.T([_.c("showOffers","showPurchaseData"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],aX.prototype,"showBuyCard",null);_.T([_.c("data"),_.r("design:type",String),_.r("design:paramtypes",[])],aX.prototype,"selectedVariantsText",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],aX.prototype,"shoppingReportingButtonData",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],aX);
_.z(aX,"ytd-product-details-renderer",function(){if(jSt!==void 0)return jSt;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return jSt=M},{mode:1});var f2k;var FwM;var HvC;var oX=function(){return _.Q.apply(this,arguments)||this};
_.l(oX,_.Q);oX.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Yd.Object.defineProperties(oX.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],oX.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],oX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],oX.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],oX.prototype,"formattedAmount",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],oX.prototype,"ariaLabel",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data.style"),_.r("design:type",String),_.r("design:paramtypes",[])],oX.prototype,"vcBalanceWidgetStyle",null);_.T([_.aO({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],oX);
_.z(oX,"yt-vc-balance-renderer",function(){if(HvC===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;FwM===void 0&&(FwM=document.createElement("template"));var K=FwM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);HvC=M}M=HvC;return M},{mode:2});_.hC("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var l$=function(){return _.Q.apply(this,arguments)||this};
_.l(l$,_.Q);_.Yd.Object.defineProperties(l$.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:""}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],l$.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],l$.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],l$.prototype,"data",void 0);_.T([_.B({selectorArgs:["data.vcBalanceEntityKey"],selector:function(M,q){return _.sX(M.entities,"vcBalanceEntity",q)}}),
_.r("design:type",Object)],l$.prototype,"vcBalanceEntity",void 0);_.T([_.c("vcBalanceEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],l$.prototype,"formattedAmount",null);_.T([_.c("vcBalanceEntity"),_.r("design:type",String),_.r("design:paramtypes",[])],l$.prototype,"vcBalanceAriaLabel",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],l$);
_.z(l$,"ytd-vc-balance-renderer",function(){if(f2k!==void 0)return f2k;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return f2k=M},{mode:1});var e73;var XO=function(){var M=_.Q.apply(this,arguments)||this;M.rotation=0;M.isReloading=!1;return M};
_.l(XO,_.Q);XO.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
XO.prototype.reset=function(){this.hostElement.style.opacity=""};
XO.prototype.close=function(){var M=this;return _.L(function(q){if(q.nextAddress==1)return q.yield(M.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);M.hostElement.style.opacity="0";_.gL(q)})};
XO.prototype.rotationChanged=XO.prototype.rotationChanged;_.T([_.B(),_.r("design:type",Object)],XO.prototype,"rotation",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],XO.prototype,"isReloading",void 0);_.T([_.ET("#icon"),_.r("design:type",HTMLElement)],XO.prototype,"icon",void 0);_.T([_.KT("rotation"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],XO.prototype,"rotationChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-refresh"})],XO);
_.z(XO,"ytd-refresh",function(){if(e73!==void 0)return e73;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return e73=M},{mode:1});var $XC;var Pk=function(){return _.Q.apply(this,arguments)||this};
_.l(Pk,_.Q);Pk.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"}}}};
Pk.prototype.dataChanged=function(){if(this.data){var M=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var q=_.TE(this.data.banner.thumbnails,this.hostElement.clientWidth);q&&(q.indexOf("//")===0&&(q="https:"+q),this.hasBannerArt=!0,_.sT(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+q+")"}))}this.hasBannerArt!==M&&_.f_(this.hostElement).querySelector("#header").fire("iron-resize")}};
Pk.prototype.updateSelectedFromBinding=function(M){this.selected=M.detail.value};
Pk.prototype.dataChanged=Pk.prototype.dataChanged;_.T([_.P(tmG),_.r("design:type",Object)],Pk.prototype,"ytdTabbedHeaderBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Pk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.jr),_.r("design:type",Object)],Pk.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],Pk.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Pk.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Pk.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],Pk.prototype,"selected",void 0);_.T([_.B(),_.r("design:type",Boolean)],Pk.prototype,"active",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pk.prototype,"hasBannerArt",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pk.prototype,"dataChanged",null);_.T([_.b({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],Pk);
_.z(Pk,"ytd-interactive-tabbed-header-renderer",function(){if($XC!==void 0)return $XC;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-interactive-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[!active]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-interactive-tabbed-header-renderer"><svg id="bg" viewBox="0 0 1439 304" preserveAspectRatio="xMinYMid slice" class="style-scope ytd-interactive-tabbed-header-renderer"><path opacity="0.5" d="M 0,304 V 0 H 963 L 1439,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.5" d="M 0,0 l 0,304 580,0 L 1055,0 0,0 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path><path opacity="0.9" d="M 0,304 V 0 H 780 L 1247,304 Z" class="style-scope ytd-interactive-tabbed-header-renderer"></path></svg><div id="content-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="content" class="style-scope ytd-interactive-tabbed-header-renderer"><yt-img-shadow id="box-art" object-fit="COVER" thumbnail="[[data.boxArt]]" class="style-scope ytd-interactive-tabbed-header-renderer"></yt-img-shadow><div id="details" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="title" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.title)]]</div><div id="auto-generated" hidden="[[!data.autoGenerated]]" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.autoGenerated)]]</div><div id="description" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.description)]]</div><div id="metadata" class="style-scope ytd-interactive-tabbed-header-renderer">[[getSimpleString(data.metadata)]]</div><ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-interactive-tabbed-header-renderer"></ytd-badge-supported-renderer><div id="buttons" class="style-scope ytd-interactive-tabbed-header-renderer"></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-interactive-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tabs noink="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-interactive-tabbed-header-renderer"><template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-interactive-tabbed-header-renderer"><tp-yt-paper-tab hidden="[[!item.tabRenderer]]" class="style-scope ytd-interactive-tabbed-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab></template></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return $XC=M},{mode:1});var sgA;var i$=function(){return _.Q.apply(this,arguments)||this};
_.l(i$,_.Q);i$.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
i$.prototype.computeActionsAlignment=function(M){return(M==null?void 0:M.actionsAlignment)||""};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],i$.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],i$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],i$.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.r("design:type",String)],i$.prototype,"actionsAlignment",void 0);_.T([_.b({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],i$);
_.z(i$,"ytd-page-footer-renderer",function(){if(sgA!==void 0)return sgA;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return sgA=M},{mode:1});var MXL;var qwG;var ck=function(){var M=_.Q.apply(this,arguments)||this;M.isEditing=!1;M.useSlot=!1;M.isMultiline=!1;return M};
_.l(ck,_.Q);_.N=ck.prototype;_.N.onKeydown=function(M){if(M.keyCode===13&&!this.isMultiline)this.onSave();else if(M.keyCode===27)this.onCancel()};
_.N.computeComponentStyle=function(M){return(M==null?0:M.style)?M.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.N.computeisMultiline=function(M){if(this.multilineOverride!==void 0)return this.multilineOverride;var q,G;return!!(M==null?0:(q=M.formField)==null?0:(G=q.textInputFormFieldRenderer)==null?0:G.isMultiline)};
_.N.computeTextDisplayed=function(M,q){if(M)return M;if(q)return q};
_.N.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.N.onSave=function(){if(this.textForm.validate()){this.textForm.save();var M=this.textForm.value;if(M)this.set("data.textDisplayed",_.bc(M));else{var q;((q=this.data)==null?0:q.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.sO("inline-form-changed",this.data));this.isEditing=!1}};
_.N.onCancel=function(){var M=_.UX(this.data.textDisplayed);M===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(M);this.isEditing=!1};
ck.prototype.onKeydown=ck.prototype.onKeydown;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],ck.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ck.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ck.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ck.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],ck.prototype,"isEditing",void 0);_.T([_.B(),_.r("design:type",Object)],ck.prototype,"useSlot",void 0);_.T([_.B(),_.r("design:type",Boolean)],ck.prototype,"multilineOverride",void 0);_.T([_.B(),_.r("design:type",Boolean)],ck.prototype,"enableOverlayTheme",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.r("design:type",String)],ck.prototype,"componentStyle",void 0);
_.T([_.B({computed:"computeisMultiline(data)"}),_.r("design:type",Object)],ck.prototype,"isMultiline",void 0);_.T([_.ET("#text-form"),_.r("design:type",Object)],ck.prototype,"textForm",void 0);_.T([_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],ck.prototype,"onKeydown",null);_.T([_.b({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],ck);
_.z(ck,"ytd-inline-form-renderer",function(){if(qwG!==void 0)return qwG;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return qwG=M},{mode:1});var G9A;var g3=function(){var M=_.Q.apply(this,arguments)||this;M.previousSelectValue=void 0;M.selectedItemMessage=void 0;return M};
_.l(g3,_.Q);g3.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
g3.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var M,q,G,K,n=(M=this.data)==null?void 0:(q=M.dropdown)==null?void 0:(G=q.dropdownRenderer)==null?void 0:(K=G.entries)==null?void 0:K.map(function(y){return y.privacyDropdownItemRenderer});
M=_.k(n!=null?n:[]);for(q=M.next();!q.done;q=M.next())if((q=q.value)&&q.int32Value===this.selectedValue){this.selectedItemMessage=q.itemMessage;break}}else this.selectedItemMessage=void 0;var E;(E=this.onValueChanged)==null||E.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var p;(p=this.data)!=null&&p.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
g3.prototype.onValueChangedForSelectedValue=function(M){this.selectedValue=M.detail.value};
g3.prototype.selectedValueChanged=g3.prototype.selectedValueChanged;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],g3.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],g3.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],g3.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],g3.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],g3.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],g3.prototype,"theme",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Number)],g3.prototype,"selectedValue",void 0);_.T([_.B(),_.r("design:type",Function)],g3.prototype,"onValueChanged",void 0);
_.T([_.yO("selectedValue"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],g3.prototype,"selectedValueChanged",null);_.T([_.b({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],g3);
_.z(g3,"ytd-dropdown-form-field-renderer",function(){if(G9A!==void 0)return G9A;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return G9A=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var KKG;var Bk=function(){return _.Q.apply(this,arguments)||this};
_.l(Bk,_.Q);_.Yd.Object.defineProperties(Bk.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var M=[],q=_.k(this.data||[]),G=q.next();!G.done;G=q.next())(G=_.C(G.value,vqG))&&M.push(G);return M}}});
_.T([_.B(),_.r("design:type",Array)],Bk.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Bk.prototype,"byline",null);_.T([_.b({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],Bk);
_.z(Bk,"ytd-playlist-byline-renderer",function(){if(KKG!==void 0)return KKG;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return KKG=M},{mode:1});var nPM;var Qm=function(){var M=_.Q.apply(this,arguments)||this;M.rtlBullet=_.w("web_playlist_stats_rtl_bullet_icon_killswitch");M.modern=_.w("web_modern_buttons");M.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return M};
_.l(Qm,_.Q);_.N=Qm.prototype;_.N.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"}}}}};
_.N.attached=function(){};
_.N.computeIsCustomThumbnail=function(M){return M?!!M.playlistCustomThumbnailRenderer:!1};
_.N.onYtNavigate=function(M,q){if(q&&q.actions&&q.actions.indexOf("shuffle")>-1){M=_.AL().resolve(_.$x);var G=q.tempData||{};G.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);q.tempData=G;M.isShuffleNextPlaylist=!0}};
_.N.onUpdatePlaylistAction=function(M){var q;M=(q=_.C(M,_.JQ8))==null?void 0:q.updatedRenderer;if(q=_.C(M,pDk))this.data=q};
_.N.computeStyleType=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.N.computeThumbnailWidth=function(M){return M==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.N.computeHideThumbnailAria=function(M){if(M==null?0:M.thumbnailOverlays)for(var q=0;q<M.thumbnailOverlays.length;q++){var G=void 0;if((G=M.thumbnailOverlays[q])==null?0:G.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
Qm.prototype.onYtNavigate=Qm.prototype.onYtNavigate;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Qm.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Qm.prototype,"ytComponentBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Qm.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Qm.prototype,"rtlBullet",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.r("design:type",String)],Qm.prototype,"styleType",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.r("design:type",Number)],Qm.prototype,"thumbnailWidth",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Qm.prototype,"modern",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.r("design:type",Boolean)],Qm.prototype,"isCustomThumbnail",void 0);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[Event,Object]),_.r("design:returntype")],Qm.prototype,"onYtNavigate",null);_.T([_.b({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],Qm);
_.z(Qm,"ytd-playlist-sidebar-primary-info-renderer",function(){if(nPM!==void 0)return nPM;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return nPM=M},{mode:1});var EPv;var IX=function(){return _.Q.apply(this,arguments)||this};
_.l(IX,_.Q);IX.prototype.computeOwnerVisibility=function(M){return!(!M.videoOwner&&!M.button)};
IX.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],IX.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],IX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],IX.prototype,"data",void 0);_.T([_.b({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],IX);
_.z(IX,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(EPv!==void 0)return EPv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return EPv=M},{mode:1});var Nqv;var DL=function(){var M=_.Q.apply(this,arguments)||this;M.expanded=!1;M.isCompact=!1;return M};
_.l(DL,_.Q);_.N=DL.prototype;_.N.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.N.dataChanged=function(){this.data&&_.NX(_.f_(this.text),_.jSv(_.f2B,_.UX(this.data.text||null)))};
_.N.computeAutoScrollEnabled=function(M,q){return M&&!q};
_.N.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.N.toggleOnTap=function(){this.expanded=!this.expanded};
DL.prototype.expandedChanged=DL.prototype.expandedChanged;DL.prototype.dataChanged=DL.prototype.dataChanged;_.T([_.P(_.F59),_.r("design:type",Object)],DL.prototype,"ytdAutoScrollBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],DL.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],DL.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],DL.prototype,"expanded",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],DL.prototype,"isCompact",void 0);_.T([_.B({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.r("design:type",Boolean)],DL.prototype,"autoScrollEnabled",void 0);_.T([_.ET("#text"),_.r("design:type",Object)],DL.prototype,"text",void 0);_.T([_.ET("#expander-icon"),_.r("design:type",Object)],DL.prototype,"expanderIcon",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DL.prototype,"dataChanged",null);_.T([_.KT("expanded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DL.prototype,"expandedChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],DL);
_.z(DL,"ytd-channel-legal-info-renderer",function(){if(Nqv!==void 0)return Nqv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Nqv=M},{mode:1});var k99;var pcW=_.Ge("DOWNLOAD",{},"Download"),ygA=_.Ge("DOWNLOADING",{},"Downloading"),LKM=_.Ge("DOWNLOADED",{},"Downloaded"),u$=function(){var M=_.Q.apply(this,arguments)||this;M.downloadProgress=0;M.isDownloadComplete=!1;M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.l(u$,_.Q);_.N=u$.prototype;_.N.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.N.dataChanged=function(){var M;(M=this.data)!=null&&M.tooltip||(M=_.Ps(_.zw().getState(),this.playlistId),this.updateButtonState(M))};
_.N.computePlaylistId=function(M){return M};
_.N.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.N.updateButtonState=function(M){if(this.data&&(this.data.tooltip!==ygA||!_.pK(M))){this.isDownloadComplete=!1;switch(M){case "TRANSFER_STATE_UNKNOWN":M=pcW;var q="OFFLINE_DOWNLOAD";var G="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":M=LKM;q="OFFLINE_PIN";G="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":M=ygA;q="OFFLINE_DOWNLOADING_ZERO";G="ACTION_REMOVE_WITH_PROMPT";
break;default:M=pcW,q="OFFLINE_DOWNLOAD",G="ACTION_ADD"}var K=Object.assign({},this.data);K.tooltip=M;K.accessibilityData={accessibilityData:{label:M}};K.icon={iconType:q};K.size="SIZE_DEFAULT";_.C(K.command,_.E0)&&(_.C(K.command,_.E0).action=G);this.set("data",K)}};
_.N.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var M="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?M="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?M="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?M="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?M="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?M="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(M="OFFLINE_PIN",this.isDownloadComplete=!0);var q;M!==((q=this.data.icon)==null?void 0:q.iconType)&&(q=Object.assign({},this.data),q.tooltip=ygA,q.accessibilityData={accessibilityData:{label:ygA}},q.icon={iconType:M},_.C(q.command,_.E0)&&(_.C(q.command,_.E0).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",q))}};
u$.prototype.updateProgress=u$.prototype.updateProgress;u$.prototype.onTransferStateChanged=u$.prototype.onTransferStateChanged;u$.prototype.dataChanged=u$.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],u$.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],u$.prototype,"ytdReduxBehavior",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],u$.prototype,"forceIconButton",void 0);
_.T([_.B({value:!0}),_.r("design:type",Boolean)],u$.prototype,"forceIconOnly",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],u$.prototype,"overrides",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],u$.prototype,"buttonTooltipPosition",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],u$.prototype,"styleActionButton",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],u$.prototype,"disableTextTransform",void 0);
_.T([_.B({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.r("design:type",String)],u$.prototype,"playlistId",void 0);_.T([_.B(),_.r("design:type",Object)],u$.prototype,"data",void 0);_.T([_.B({selector:_.SHD,selectorArgs:["playlistId"]}),_.r("design:type",Object)],u$.prototype,"downloadProgress",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],u$.prototype,"isDownloadComplete",void 0);
_.T([_.B({selector:_.Ps,selectorArgs:["playlistId"]}),_.r("design:type",String)],u$.prototype,"transferState",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],u$.prototype,"showTooltips",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],u$.prototype,"sendCommandWhenDisabled",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],u$.prototype,"disabled",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u$.prototype,"dataChanged",null);_.T([_.yO("transferState"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u$.prototype,"onTransferStateChanged",null);_.T([_.yO("downloadProgress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],u$.prototype,"updateProgress",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],u$);
_.z(u$,"ytd-download-playlist-button-renderer",function(){if(k99!==void 0)return k99;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return k99=M},{mode:1});var Ywa;_.S5(_.LkI,"thumbnail-overlay-button-view-model",{props:{data:_.Hz,lockupExperiments:_.Hz}});var JS=function(){var M=_.Q.apply(this,arguments)||this;M.isSquare=!1;M.isVertical=!1;return M};
_.l(JS,_.Q);JS.prototype.computeIsSquare=function(M){return M!=null&&M.thumbnail?TWC(M.thumbnail)==="SQUARE":!1};
JS.prototype.computeIsVertical=function(M){return M!=null&&M.thumbnail?TWC(M.thumbnail)==="VERTICAL":!1};
JS.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],JS.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],JS.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.r("design:type",Object)],JS.prototype,"isSquare",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.r("design:type",Object)],JS.prototype,"isVertical",void 0);
_.T([_.B(),_.r("design:type",Object)],JS.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],JS);
_.z(JS,"ytd-hero-playlist-thumbnail-renderer",function(){if(Ywa!==void 0)return Ywa;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Ywa=M},{mode:1});var ZL=function(){var M=_.Q.apply(this,arguments)||this;M.isDarkTheme=!1;M.isUltraWide=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return M};
_.l(ZL,_.Q);_.N=ZL.prototype;_.N.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.AL();var M;(M=_.AL().resolve(_.WR(_.lK)))!=null&&(M.headerElement=this.hostElement)};
_.N.detached=function(){var M;(M=_.AL().resolve(_.WR(_.lK)))!=null&&(M.headerElement=void 0)};
_.N.onUpdateHeader=function(M){(M=M.detail)&&this.set("data",M)};
_.N.computeTextDisplayed=function(M){if(M)return M.textDisplayed?M.textDisplayed:M.placeholder};
_.N.gradientColorToLinearGradientStop=function(M){var q=this.isDarkTheme?M.darkThemeColor:M.lightThemeColor;return q?_.C_(q)+" "+((M==null?void 0:M.startLocation)||0)*100+"%":"transparent"};
_.N.onWindowResize=function(){var M;((M=this.data)==null?0:M.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.N.onIronResize=function(M){this.isUltraWide=!M.detail.value};
_.N.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.N.onUpdatePlaylistName=function(M){var q=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},M.detail.value));_.yb(this,function(){var G;(G=q.editableTitle)==null||G.resize()})};
_.N.onUpdatePlaylistDescription=function(M){var q=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},M.detail.value));_.yb(this,function(){var G;(G=q.editableDescriptionInlineExpander)==null||G.resize()})};
_.N.getCinematicData=function(M){return _.C(M==null?void 0:M.cinematicContainer,_.$i)};
_.Yd.Object.defineProperties(ZL.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 M,q=(M=this.getCinematicData(this.data))==null?void 0:M.config;return(M=this.isDarkTheme?q==null?void 0:q.darkThemeBackgroundColor:q==null?void 0:q.lightThemeBackgroundColor)?"background-color:"+_.w2(M)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var M;return _.C((M=this.data)==null?void 0:M.descriptionForm,kpa)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var M=this,q,G,K;return"background:linear-gradient(to bottom, "+(((K=(q=this.getCinematicData(this.data))==null?void 0:(G=q.gradientColorConfig)==null?void 0:G.map(function(n){return M.gradientColorToLinearGradientStop(n)}))==null?void 0:K.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var M;return _.UX((M=this.data)==null?void 0:M.descriptionTapText)}}});
ZL.prototype.onUpdateHeader=ZL.prototype.onUpdateHeader;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ZL.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ZL.prototype,"actionHandlerBehavior",void 0);_.T([_.ET("#description-inline-expander"),_.r("design:type",Object)],ZL.prototype,"descriptionInlineExpander",void 0);
_.T([_.ET("#editable-description-inline-expander"),_.r("design:type",Object)],ZL.prototype,"editableDescriptionInlineExpander",void 0);_.T([_.B(),_.r("design:type",Object)],ZL.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],ZL.prototype,"isUltraWide",void 0);_.T([_.ET("#editable-title-display"),_.r("design:type",Object)],ZL.prototype,"editableTitle",void 0);_.T([_.c("isUltraWide"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZL.prototype,"maxDescriptionLines",null);
_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZL.prototype,"noCinematicData",null);_.T([_.GQ("yt-new-playlist-header"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],ZL.prototype,"onUpdateHeader",null);_.T([_.c("data","isDarkTheme"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZL.prototype,"backgroundStyle",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZL.prototype,"descriptionFormData",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZL.prototype,"getDropdownTheme",null);_.T([_.c("data","isDarkTheme"),_.r("design:type",String),_.r("design:paramtypes",[])],ZL.prototype,"gradientStyle",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZL.prototype,"descriptionTapText",null);
_.T([_.b({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],ZL);
_.z(ZL,"ytd-playlist-header-renderer",function(){if(MXL!==void 0)return MXL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return MXL=M},{mode:_.VO("kevlar_poly_si_batch_j078")?1:2});var WKA;var Agv;var b$=function(){return _.Q.apply(this,arguments)||this};
_.l(b$,_.Q);b$.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],b$.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],b$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],b$.prototype,"data",void 0);_.T([_.b({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],b$);
_.z(b$,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(Agv!==void 0)return Agv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Agv=M},{mode:1});var Us=function(){return _.Q.apply(this,arguments)||this};
_.l(Us,_.Q);
Us.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}}}}};
Us.prototype.computeUsePremiumShowStyle=function(M){if(!M||!M.items)return!1;for(var q=0;q<M.items.length;q++)if(_.C(M.items[q],pDk)){var G=void 0;return((G=_.C(M.items[q],pDk))==null?void 0:G.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Us.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Us.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Us.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.r("design:type",Boolean)],Us.prototype,"usePremiumShowStyle",void 0);
_.T([_.b({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],Us);
_.z(Us,"ytd-playlist-sidebar-renderer",function(){if(WKA!==void 0)return WKA;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return WKA=M},{mode:1});var d_G;var vPk;var hqe=function(M,q,G,K,n,E,p,y){this.minWidth=M;this.minHeight=q;this.recommendedWidth=G;this.recommendedHeight=K;this.JSC$22428_maxFileSize=n;this.title=E;this.bannerGalleryTitle=p;this.channelId=y;this.picker_=null;M=_.YY$("yt-banner");q=M.addView;G=(new eGy("youtubebanner")).addUploadMetadata("silo_id","19");G.opts.ytMaxFileSize=this.JSC$22428_maxFileSize;K=this.recommendedHeight;G.opts.ytRecWidth=this.recommendedWidth;G.opts.ytRecHeight=K;q.call(M,G);M.addView(new _.li);q=M.addView;G=new _.li;
G.opts.type="ytbanner";q.call(M,G.JSC$10078_setLabel(this.bannerGalleryTitle));q=M.setTitle(this.title).setSize(1E3);q.urlParamMap_.set("thumbs","orig");G=this.minWidth;K=this.minHeight;if(isNaN(G)||isNaN(K))throw Error("gb`"+G+"`"+K);q.urlParamMap_.set("minSize",G+"x"+K);q.urlParamMap_.set("cropMode","ytcb");this.builder_=M};
hqe.prototype.open=function(){var M=this;return new _.X4(function(q,G){_.Qkl(M.builder_,function(K){K.action=="picked"?q(K):K.action=="cancel"&&G(Error("Mo"))});
M.picker_&&M.picker_.dispose();M.picker_=M.builder_.build();M.picker_.setVisible(!0)})};
hqe.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var tXM=function(M){this.channelId=M};
tXM.prototype.upload=function(M){var q="";M.viewToken&&(q=M.viewToken[2].type);var G=M.docs[0];M=G.crop;q={channel_id:this.channelId,fife_url:G.thumbnails[0].url,photo_id:G.id,is_gallery_image:q=="ytbanner"};M&&(q.crop_top=M.top,q.crop_right=M.right,q.crop_bottom=M.bottom,q.crop_left=M.left);return _.dcj("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:q})};var xF=function(){var M=_.Q.apply(this,arguments)||this;M.ariaLabel=null;return M};
_.l(xF,_.Q);_.N=xF.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.N.detached=function(){this.picker&&this.picker.dispose()};
_.N.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.N.computeAriaLabel=function(M){return M};
_.N.onTap=function(){var M=this,q;if((q=this.data)==null||!q.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new hqe(this.data.bannerMinWidth||0,this.data.bannerMinHeight||0,this.data.bannerRecommendedWidth||0,this.data.bannerRecommendedHeight||0,this.data.bannerMaxFileSizeInMegabytes||0,this.data.editorTitle||"",this.data.galleryViewTitle||"",this.data.channelId||""));var G;(G=this.picker)==null||G.open().then(function(K){M.handleBannerPicked(K)},function(){})}};
_.N.handleBannerPicked=function(M){var q=this;this.uploader||(this.uploader=new tXM(this.data.channelId||""));this.message=this.data.uploadingText;this.uploader.upload(M).then(function(G){q.handleBannerUploadSucceeded(G)},function(G){q.handleBannerUploadFailed(G)})};
_.N.handleBannerUploadSucceeded=function(M){M&&M.errors?this.handleBannerUploadFailed(M):(_.jP(this.hostElement,"yt-banner-updated",M),this.message=null)};
_.N.handleBannerUploadFailed=function(M){this.message=M&&M.errors&&M.errors.length?M.errors[0]:null};
xF.prototype.dataChanged=xF.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],xF.prototype,"componentBehavior",void 0);_.T([_.P(_.Z4),_.r("design:type",Object)],xF.prototype,"ironButtonState",void 0);_.T([_.B(),_.r("design:type",Object)],xF.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.r("design:type",Object)],xF.prototype,"ariaLabel",void 0);
_.T([_.B(),_.r("design:type",Object)],xF.prototype,"message",void 0);_.T([_.B(),_.r("design:type",Object)],xF.prototype,"picker",void 0);_.T([_.B(),_.r("design:type",Object)],xF.prototype,"uploader",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xF.prototype,"dataChanged",null);_.T([_.b({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],xF);
_.z(xF,"ytd-channel-banner-editor-renderer",function(){if(vPk!==void 0)return vPk;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return vPk=M},{mode:1});var O8G;var wcv=_.DQ(["#"]),zA=function(){return _.Q.apply(this,arguments)||this};
_.l(zA,_.Q);zA.prototype.computeHrefWithDefault=function(M){return this.ytComponentBehavior.computeHref_(M,!0)||_.NLj(wcv)};
zA.prototype.dataChanged=function(){var M=this.data;M&&M.targetId&&_.o9B(_.lW(),M.targetId,this.moreIcon)};
zA.prototype.dataChanged=zA.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],zA.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],zA.prototype,"data",void 0);_.T([_.ET("#more-icon"),_.r("design:type",Object)],zA.prototype,"moreIcon",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],zA.prototype,"dataChanged",null);
_.T([_.b({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],zA);
_.z(zA,"ytd-channel-tagline-renderer",function(){if(O8G!==void 0)return O8G;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return O8G=M},{mode:1});var CCG;var me=function(){return _.Q.apply(this,arguments)||this};
_.l(me,_.Q);_.N=me.prototype;_.N.ready=function(){var M=this;_.f_(this.hostElement).querySelector("#form").addEventListener("submit",function(q){M.onSubmit(q)})};
_.N.onDataChanged=function(){var M;((M=this.data)==null?0:M.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.N.onIconButtonKeydown=function(M){M.keyCode===13&&this.iconButton.click()};
_.N.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.N.openOnClickHandler=function(){this.input.focus()};
_.N.onSubmit=function(M){M.preventDefault();return!1};
_.N.submitOnEnterKeyUp=function(M){var q;if(M.keyCode===13&&((q=this.data)==null?0:q.expandedText)){M=this.data.endpoint;q=_.xP.unsafeClone(M);var G;((G=_.C(q==null?void 0:q.commandMetadata,_.Mg))==null?0:G.url)?(_.C(q.commandMetadata,_.Mg).url=_.F4(_.C(q.commandMetadata,_.Mg).url,"query",this.data.expandedText),_.C(q,_.n_)&&(_.C(q,_.n_).query=this.data.expandedText),_.jP(this.hostElement,"yt-navigate",{endpoint:q,tempData:{disableCache:!0}})):(G=new _.bj("Error: Trying to navigate to an endpoint without url",
M),_.T6(G))}};
_.N.updateDataExpandedTextFromBinding=function(M){this.set("data.expandedText",M.detail.value)};
_.Yd.Object.defineProperties(me.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
me.prototype.onDataChanged=me.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],me.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Z_8),_.r("design:type",Object)],me.prototype,"ytdExpandableInputBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],me.prototype,"data",void 0);_.T([_.ET("#input"),_.r("design:type",Object)],me.prototype,"input",void 0);_.T([_.ET("#icon-button"),_.r("design:type",HTMLElement)],me.prototype,"iconButton",void 0);
_.T([_.B(),_.r("design:type",String),_.r("design:paramtypes",[])],me.prototype,"searchIcon",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],me.prototype,"onDataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],me);
var r9L=_.jo()(me,"ytd-expandable-tab-renderer",function(){if(CCG===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);CCG=M}M=CCG;return M},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var aJA;var SH=function(){var M=_.Q.apply(this,arguments)||this;M.avatarSize=80;M.ariaLabel=_.Ge("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return M};
_.l(SH,_.Q);SH.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
SH.prototype.computeHref=function(M){var q;return((q=_.C(M,_.q6))==null?0:q.url)?this.componentBehavior.computeHref_(M):null};
SH.prototype.onTap=function(){var M,q;(M=this.data)==null||!M.editAvatarServiceEndpoint||((q=_.C(this.data.editAvatarServiceEndpoint,_.q6))==null?0:q.url)||_.AL().resolve(_.vR).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.T([_.P(_.Z4),_.r("design:type",Object)],SH.prototype,"ironButtonState",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],SH.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],SH.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],SH.prototype,"avatarSize",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],SH.prototype,"ariaLabel",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],SH);
_.z(SH,"ytd-channel-avatar-editor",function(){if(aJA!==void 0)return aJA;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return aJA=M},{mode:1});var oPk=_.U(function(M){var q=M.data;var G=M.noPadding;var K=M.enableBanner;var n=M.cinematicContainerTopbarOffset;var E=M.allowCinematicContainerOverflow;var p=M.displayAsSidebar;M=M.className;_.zL(function(){q().tagManagerId&&(_.Bz(q().tagManagerId,_.R9("GL")),HGG(q().tagManagerId))},"vUc8md");
var y=_.No(VMy,function(){return q().pageHeaderEntityKey});
return _.W("yt-page-header-renderer",{class:_.Hb("pageHeaderRendererHost",M)},_.W(_.yu,{data:function(){var Y;return((Y=y())==null?0:Y.header)?y().header:(p==null?0:p())&&q().sidebarContent?q().sidebarContent:q().content}},{pageHeaderViewModel:function(Y){return _.W(_.VC$,{data:Y.data,
noPadding:G,enableBanner:K,cinematicContainerTopbarOffset:n,allowCinematicContainerOverflow:E,displayAsSidebar:function(){return(p==null?void 0:p())&&q().enableSidebarView}})}}))},"Sm");
oPk.idomCompat=!0;_.S5(oPk,"yt-page-header-renderer",{props:{data:_.Hz,noPadding:_.Hz,enableBanner:_.Hz,cinematicContainerTopbarOffset:_.Hz,allowCinematicContainerOverflow:_.Hz,displayAsSidebar:_.Hz,className:_.Hz}});_.S5(_.fU,"yt-image-banner-view-model",{props:{data:_.Hz,isPositionRelative:_.Hz}});_.S5(_.YeE,"yt-tab-group-shape",{props:{shape:_.Hz}});var lJC=_.gx.persistentPanelVisibleSelector,TA=function(){var M=_.Q.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(q){return jvG(q,function(){return void M.onSearchNavigate()})};
M.isRichGrid=!1;M.isConstrainedList=!1;M.richGridMiniMode=!1;M.richGridStyle="RICH_GRID_STYLE_UNKNOWN";M.isRichGridShorts=!1;M.responsiveSizing="COMPACT";M.disableGridStateAware=!1;M.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return M};
_.l(TA,_.Q);_.N=TA.prototype;_.N.computeHeaderDisabled=function(M,q){return q||!M||this.tabsHidden};
_.N.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.N.computeIsRichGridShorts=function(M){return M==="RICH_GRID_STYLE_SHORTS_GRID"||M==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.N.computeImageBannerViewModel=function(){var M,q;return _.C((q=_.C((M=this.data)==null?void 0:M.content,_.ARf))==null?void 0:q.banner,_.Nsl)};
_.N.computeHasCinematicContainer=function(){var M,q;return!((q=_.C((M=this.data)==null?void 0:M.content,_.ARf))==null||!q.background)};
_.N.handleHeaderResize=function(){var M=_.f_(this.hostElement).querySelector("#header");M&&_.jP(M,"iron-resize")};
_.N.handleInsertTabCommand=function(M){var q=_.C(M,h7C);q&&(q.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(G){return G.tabRenderer&&G.tabRenderer.tabIdentifier===q.tabIdentifier})||this.splice("tabs",q.tabIndex||-1,0,q.tab))};
_.N.handleRefreshChannelTabAction=function(M){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===M&&_.jP(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.N.persistentPanelVisibleChanged=function(){this.handleHeaderResize()};
_.N.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.sT(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.N.observerRichGridSlimItemsPerRow=function(){_.sT(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.N.updateCssVars=function(){this.richGridItemsPerRow&&_.sT(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.tL("rich_grid_max_item_width",500))+16)-16+"px"})};
_.N.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.sT(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.N.onDataChanged=function(){this.handleHeaderResize()};
_.N.onWindowResize=function(){this.handleHeaderResize()};
_.N.onFocusedChanged=function(M){(M=_.ba(M))&&M.is==="tp-yt-paper-tab"&&M.hasRipple()&&(M.getRipple().holdDown=!M.pointerDown&&M.focused)};
_.N.updateSelectedFromBinding=function(M){this.ytdTabbedHeaderBehavior.selected=M.detail.value};
_.N.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Yd.Object.defineProperties(TA.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:fCA(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.imageBannerViewModel)==null?void 0:M.style)==="IMAGE_BANNER_STYLE_INSET"}}});
TA.prototype.onDataChanged=TA.prototype.onDataChanged;TA.prototype.updateCssVarsForResponsiveGrid=TA.prototype.updateCssVarsForResponsiveGrid;TA.prototype.updateCssVars=TA.prototype.updateCssVars;TA.prototype.observerRichGridSlimItemsPerRow=TA.prototype.observerRichGridSlimItemsPerRow;TA.prototype.observerRichGridItemsPerRow=TA.prototype.observerRichGridItemsPerRow;TA.prototype.persistentPanelVisibleChanged=TA.prototype.persistentPanelVisibleChanged;
_.T([_.P(_.jr),_.r("design:type",Object)],TA.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.P(tmG),_.r("design:type",Object)],TA.prototype,"ytdTabbedHeaderBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],TA.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],TA.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],TA.prototype,"ytdReduxBehavior",void 0);_.T([_.ET("#tabs"),_.r("design:type",Object)],TA.prototype,"tabsElement",void 0);_.T([_.B(),_.r("design:type",Array)],TA.prototype,"tabs",void 0);_.T([_.B(),_.r("design:type",Object)],TA.prototype,"expandableCustomTabRenderable",void 0);
_.T([_.c("tabs.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],TA.prototype,"tabGroupShape",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],TA.prototype,"isRichGrid",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],TA.prototype,"isConstrainedList",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Object)],TA.prototype,"richGridMiniMode",void 0);_.T([_.B({selector:function(M){return M.ui.richGridStyle}}),
_.r("design:type",Object)],TA.prototype,"richGridStyle",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.r("design:type",Object)],TA.prototype,"isRichGridShorts",void 0);_.T([_.B({selector:_.CK}),_.r("design:type",Number)],TA.prototype,"richGridItemsPerRow",void 0);_.T([_.B({selector:function(M){return M.ui.richGridContainerWidth}}),
_.r("design:type",Number)],TA.prototype,"richGridContainerWidth",void 0);_.T([_.B({selector:_.cvi}),_.r("design:type",Number)],TA.prototype,"richGridSlimItemsPerRow",void 0);_.T([_.B(),_.r("design:type",Object)],TA.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],TA.prototype,"responsiveSizing",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],TA.prototype,"disableGridStateAware",void 0);
_.T([_.B({computed:"computeImageBannerViewModel(data)"}),_.r("design:type",Object)],TA.prototype,"imageBannerViewModel",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.r("design:type",Boolean)],TA.prototype,"hasCinematicContainer",void 0);_.T([_.B({selector:_.axI,reflectToAttribute:!0}),_.r("design:type",Boolean)],TA.prototype,"guideIsVisibleButNotPersistent",void 0);
_.T([_.B({selector:lJC}),_.r("design:type",Boolean)],TA.prototype,"persistentPanelVisible",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("imageBannerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],TA.prototype,"hasBanner",null);_.T([_.B({reflectToAttribute:!0}),_.c("imageBannerViewModel"),_.r("design:type",Object),_.r("design:paramtypes",[])],TA.prototype,"hasInsetBanner",null);
_.T([_.B({computed:"computeTabsHidden(tabs)",value:!0}),_.r("design:type",Boolean)],TA.prototype,"tabsHidden",void 0);_.T([_.KT("persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"persistentPanelVisibleChanged",null);_.T([_.KT("richGridItemsPerRow","isRichGrid"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"observerRichGridItemsPerRow",null);
_.T([_.KT("richGridSlimItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"observerRichGridSlimItemsPerRow",null);_.T([_.KT("richGridItemsPerRow","richGridMiniMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"updateCssVars",null);
_.T([_.KT("richGridContainerWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"updateCssVarsForResponsiveGrid",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],TA.prototype,"onDataChanged",null);_.T([_.b({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],TA);
_.z(TA,"ytd-tabbed-page-header",function(){if(d_G!==void 0)return d_G;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-tabbed-page-header--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-if" if="[[!tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <tp-yt-app-header-layout class="style-scope ytd-tabbed-page-header">\n    <tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent, tabs)]]" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n        <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n          <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n            <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n              <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header">\n              </yt-image-banner-view-model>\n            </div>\n          </div>\n        </template>\n        <div id="page-header" class="style-scope ytd-tabbed-page-header">\n          <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[tabsHidden]]" no-padding="" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n        </div>\n      </div>\n      <tp-yt-app-toolbar disable-upgrade$="[[tabsHidden]]" sticky="" class="style-scope ytd-tabbed-page-header">\n        <div id="tabs-container" class="style-scope ytd-tabbed-page-header">\n          \n          <div id="tabs-inner-container" class="style-scope ytd-tabbed-page-header">\n            <div id="tabs-divider" class="style-scope ytd-tabbed-page-header"></div>\n            <tp-yt-paper-tabs id="tabs" disable-upgrade$="[[tabsHidden]]" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-tabbed-page-header">\n              <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-tabbed-page-header"> </yt-tab-group-shape>\n            </tp-yt-paper-tabs>\n          </div>\n        </div>\n      </tp-yt-app-toolbar>\n    </tp-yt-app-header>\n  </tp-yt-app-header-layout>\n</template>\n<template is="dom-if" if="[[tabsHidden]]" class="style-scope ytd-tabbed-page-header">\n  <div id="page-header-container" class="style-scope ytd-tabbed-page-header">\n    <template is="dom-if" if="[[hasBanner]]" class="style-scope ytd-tabbed-page-header">\n      <div id="page-header-banner" class="style-scope ytd-tabbed-page-header">\n        <div id="page-header-banner-sizer" class="style-scope ytd-tabbed-page-header">\n          <yt-image-banner-view-model data="[[imageBannerViewModel]]" class="style-scope ytd-tabbed-page-header"> </yt-image-banner-view-model>\n        </div>\n      </div>\n    </template>\n    <div id="page-header" class="style-scope ytd-tabbed-page-header">\n      <yt-page-header-renderer allow-cinematic-container-overflow="" data="[[data]]" disable-upgrade$="[[!tabsHidden]]" no-padding="true" class="style-scope ytd-tabbed-page-header"></yt-page-header-renderer>\n    </div>\n  </div>\n</template>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return d_G=M},{mode:1});var XcG;var r3=function(){return _.Q.apply(this,arguments)||this};
_.l(r3,_.Q);r3.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.sT(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Yd.Object.defineProperties(r3.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var M,q;return this.componentBehavior.computeIcon_(((q=_.C((M=this.data)==null?void 0:M.badge,_.tvd))==null?void 0:q.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=_.C((M=this.data)==null?void 0:M.badge,_.tvd))==null?void 0:q.label}}});
r3.prototype.observerRichGridItemsPerRow=r3.prototype.observerRichGridItemsPerRow;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],r3.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],r3.prototype,"componentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],r3.prototype,"ytdReduxBehavior",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.wz}),_.r("design:type",Boolean)],r3.prototype,"richGridMiniMode",void 0);
_.T([_.B({selector:_.CK}),_.r("design:type",Number)],r3.prototype,"richGridItemsPerRow",void 0);_.T([_.B(),_.r("design:type",Object)],r3.prototype,"data",void 0);_.T([_.KT("richGridItemsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],r3.prototype,"observerRichGridItemsPerRow",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],r3.prototype,"badgeIconName",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],r3.prototype,"badgeLabel",null);_.T([_.b({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],r3);
_.z(r3,"ytd-member-hub-profile-renderer",function(){if(XcG!==void 0)return XcG;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return XcG=M},{mode:1});var PCC;var jH=function(){return _.Q.apply(this,arguments)||this};
_.l(jH,_.Q);jH.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],jH.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jH.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jH.prototype,"data",void 0);_.T([_.b({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],jH);
_.z(jH,"ytd-settings-sidebar-renderer",function(){if(PCC!==void 0)return PCC;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return PCC=M},{mode:1});var i8M;var Vm=function(){var M=_.Q.apply(this,arguments)||this;M.expandableCustomTabRenderable=function(q){return jvG(q,function(){return void M.onSearchNavigate()})};
return M};
_.l(Vm,_.Q);Vm.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Vm.prototype.onSearchNavigate=function(){this.selected=void 0};
Vm.prototype.onTabsChange=function(){var M,q=(M=this.tabs)==null?void 0:M.findIndex(function(G){var K;return G==null?void 0:(K=G.tabRenderer)==null?void 0:K.selected});
q!==void 0&&(this.selected=q)};
Vm.prototype.onTabsActive=function(M){if(this.tabs!==void 0){var q,G;(M=(q=this.tabs[M.detail.selected])==null?void 0:(G=q.tabRenderer)==null?void 0:G.endpoint)&&_.jP(this.hostElement,"yt-navigate",{endpoint:M})}};
_.Yd.Object.defineProperties(Vm.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:fCA(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
Vm.prototype.onTabsChange=Vm.prototype.onTabsChange;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Vm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.jr),_.r("design:type",Object)],Vm.prototype,"ytdGridStateAwareBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],Vm.prototype,"ytdGuideStateAwareBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Vm.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Array)],Vm.prototype,"tabs",void 0);_.T([_.B(),_.r("design:type",Number)],Vm.prototype,"selected",void 0);_.T([_.c("tabs.*"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vm.prototype,"tabGroupShape",null);_.T([_.B(),_.r("design:type",Object)],Vm.prototype,"expandableCustomTabRenderable",void 0);
_.T([_.c("tabs"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Vm.prototype,"tabsEnabled",null);_.T([_.yO("tabs"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Vm.prototype,"onTabsChange",null);_.T([_.b({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],Vm);
_.z(Vm,"ytd-topic-channel-details-renderer",function(){if(i8M!==void 0)return i8M;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return i8M=M},{mode:1});var cge;var RX=function(){var M=_.Q.apply(this,arguments)||this;M.disableGridStateAware=!1;return M};
_.l(RX,_.Q);RX.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]]"}}}}}};
RX.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
RX.prototype.updateCssVars=function(){_.sT(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.tL("rich_grid_max_item_width",500))+16)-16+"px"})};
RX.prototype.updateCssVars=RX.prototype.updateCssVars;RX.prototype.activeChanged=RX.prototype.activeChanged;_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],RX.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],RX.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],RX.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],RX.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],RX.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Array)],RX.prototype,"tabs",void 0);_.T([_.B(),_.r("design:type",Boolean)],RX.prototype,"active",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],RX.prototype,"disableGridStateAware",void 0);
_.T([_.B({selector:_.CK}),_.r("design:type",Number)],RX.prototype,"richGridItemsPerRow",void 0);_.T([_.B({selector:_.wz}),_.r("design:type",Boolean)],RX.prototype,"richGridMiniMode",void 0);_.T([_.ET("ytd-carousel-item-renderer"),_.r("design:type",Object)],RX.prototype,"carousel",void 0);_.T([_.KT("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],RX.prototype,"activeChanged",null);
_.T([_.KT("richGridItemsPerRow","richGridMiniMode"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],RX.prototype,"updateCssVars",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],RX);
_.z(RX,"ytd-carousel-header-renderer",function(){if(cge!==void 0)return cge;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return cge=M},{mode:1});var gPy;var BqW=_.DQ(["https://www.google-analytics.com/analytics.js"]),f2=function(){var M=_.Q.apply(this,arguments)||this;M.scriptAnalyticsAdded=!1;return M};
_.l(f2,_.Q);f2.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var M,q=(M=this.data)==null?void 0:M.tagManagerId;q&&(_.Bz(q,_.R9("GL")),HGG(q))};
f2.prototype.sendGoogleAnalyticsPageview=function(M){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var G=_.rW.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(G)};
var q=window.ga;q("set","page",window.location.pathname);q.l=+new Date;q("set","forceSSL",!0);q("create",M,"'auto'");q("send","pageview")};
f2.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var M=_.iI("SCRIPT");M.name="ga-analytics";var q=_.Ow(BqW);_.Ei(M,q);M.async=!0;_.f_(this.hostElement).appendChild(M)};
f2.prototype.dataChanged=f2.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],f2.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],f2.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],f2);
_.z(f2,"ytd-channel-metadata-renderer",function(){if(gPy!==void 0)return gPy;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return gPy=M},{mode:1});var Qga;var IJM;var FO=function(){var M=_.Q.apply(this,arguments)||this;M.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"]);M.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"]);M.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return M};
_.l(FO,_.Q);_.N=FO.prototype;_.N.attached=function(){this.requestElementsPerRow()};
_.N.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_]]"}}}}}};
_.N.onUpdateElementsPerRowAction=function(M){M&&this.elementsPerRow!==M&&(this.elementsPerRow=M)};
_.N.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.N.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.N.computeAlertStyle_=function(M){return M};
_.N.observerElementsPerRow=function(){this.elementsPerRow&&_.sT(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.N.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.N.requestElementsPerRow=function(){_.jP(this.hostElement,"yt-request-elements-per-row")};
FO.prototype.onIsVisibleChanged_=FO.prototype.onIsVisibleChanged_;FO.prototype.observerElementsPerRow=FO.prototype.observerElementsPerRow;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],FO.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],FO.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],FO.prototype,"actionHandlerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],FO.prototype,"data",void 0);_.T([_.B({value:6,reflectToAttribute:!0}),_.r("design:type",Number)],FO.prototype,"elementsPerRow",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],FO.prototype,"wrapButtons",void 0);_.T([_.B({value:_.R9("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.r("design:type",Boolean)],FO.prototype,"isMusic",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.r("design:type",String)],FO.prototype,"alertStyle",void 0);_.T([_.B({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.r("design:type",Function)],FO.prototype,"dismissBoundButtonTap_",void 0);_.T([_.B({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.r("design:type",Function)],FO.prototype,"acceptBoundButtonTap_",void 0);_.T([_.KT("elementsPerRow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FO.prototype,"observerElementsPerRow",null);_.T([_.KT("data.isVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FO.prototype,"onIsVisibleChanged_",null);_.T([_.aO({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],FO);
_.z(FO,"yt-alert-with-actions-renderer",function(){if(IJM===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;Qga===void 0&&(Qga=document.createElement("template"));var K=Qga;G.call(q,K.content.cloneNode(!0),M.content.firstChild);IJM=M}M=IJM;return M},{mode:2});_.S5(_.U(function(M){function q(t){var O={};return _.W(_.Ft,{text:t,className:_.Hb("ytPersonalGreetingViewModelHeadline",(O.ytPersonalGreetingViewModelHeadlineSmall=function(){return y()===48},O))})}
function G(t,O){return _.W("span",{el:t,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},q(O))}
var K=_.bm(_.CL(function(){var t;return(t=M.data())==null?void 0:t.rendererContext},void 0,void 0,void 0,!0)),n=_.pI("span"),E=_.pI("span"),p=function(){return M.data().canvasPromoData},y=function(){var t;
return(t=M.data().bannerHeight)!=null?t:56},Y=_.xkj(K,{throttleMs:100}),A=_.xkj(n,{throttleMs:100}),v=_.xkj(E,{throttleMs:100}),h=function(){return A.width()-Y.width()>1};
return _.W("yt-personal-greeting-view-model",{el:K,"aria-hidden":h,class:_.Hb(M.className,"ytPersonalGreetingViewModelHost"),style:_.Kp({height:(0,_.kn)(function(){return h()?0:y()})})},_.W(_.d,{cond:function(){return M.data().avatar&&!(v.width()+(M.data().avatar?48:0)-Y.width()>1)},
then:function(){return _.W(_.yu,{data:function(){return M.data().avatar}},{decoratedAvatarViewModel:function(t){return _.W(_.mF,{data:t.data,
className:_.Hb("ytPersonalGreetingViewModelAvatar")})}})}}),_.W("h1",null,q(function(){var t;
return(p==null?void 0:(t=p())==null?void 0:t.headline)||(v.width()+(M.data().avatar?48:0)-Y.width()>1?M.data().shorterGreeting:M.data().greeting)})),G(E,function(){return M.data().greeting}),G(n,function(){return M.data().shorterGreeting}))},"Tm"),"yt-personal-greeting-view-model",{props:{data:_.Hz,
className:_.Hz}});var Hk=function(){var M=_.Q.apply(this,arguments)||this;M.hidden=!1;M.isConstrainedList=!1;M.responsiveSizing="COMPACT";M.attachedPlayers=_.w("kevlar_channel_trailer_multi_attach")?[]:void 0;M.player=null;M.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return M};
_.l(Hk,_.Q);_.N=Hk.prototype;
_.N.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}}}}};
_.N.created=function(){var M=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){M.disposeMastheadAd()}]};
_.N.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new C5W(this.refresh,this.contents))};
_.N.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.N.activeChanged=function(){var M=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=M)};
_.N.tabsChanged=function(){var M=this,q,G;if(this.pageSubtype==="channels"||_.w("kevlar_tab_gestures_for_tabbed_header_data")&&((q=this.data)==null?0:(G=q.header)==null?0:G.carouselHeaderRenderer))this.tabGestures=new l2k(this.contents,this.contents,this.hostElement,this.header,function(p){M.ytdReduxBehavior.dispatch(p)});
var K,n,E;q=(K=this.data)==null?void 0:(n=K.contents)==null?void 0:(E=n.twoColumnBrowseResultsRenderer)==null?void 0:E.tabs;this.tabGestures&&this.tabGestures.tabsChanged(q)};
_.N.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.N.engagementPanelsChanged=function(){var M=_.AL().resolve(_.Ja);if(M){if(this.engagementPanels)for(var q=_.k(this.engagementPanels),G=q.next();!G.done;G=q.next()){var K=void 0;(G=(K=G.value.identifier)==null?void 0:K.tag)&&M.panelMap.delete(G)}this.engagementPanels=[];var n;q=_.k(((n=this.data)==null?void 0:n.panels)||[]);for(n=q.next();!n.done;n=q.next()){n=_.C(n.value,_.SLk);var E=G=void 0,p=void 0,y=void 0;if(K=((G=n)==null?void 0:G.targetId)||((E=n)==null?void 0:E.panelIdentifier)||((p=n)==
null?void 0:(y=p.identifier)==null?void 0:y.tag))E=G=void 0,(E=(G=M).registerPanelContent)==null||E.call(G,K,{engagementPanelSectionListRenderer:n}),this.engagementPanels.push(n)}}};
_.N.onStampFinished=function(){var M=this;_.yb(this,function(){if(M.tabGestures){var q=M.tabGestures;if(q.scrollPositionNeedsUpdate){var G=_.AL().resolve(_.WR(_.md)),K;if((K=q.selectedTab)!=null&&K.title&&G&&(K=G.getCurrentPage())){if(q.scrollPositionForTabs.has(q.selectedTab.title)){var n,E;G=(E=(n=G.getCurrentPage())==null?void 0:n.clientHeight)!=null?E:0;n=q.scrollPositionForTabs.get(q.selectedTab.title);K.setScrollTop(n);G>n+100&&(q.scrollPositionNeedsUpdate=!1)}else K.setScrollTop(Math.min(q.lastVisitedTabScrollPosition!==
void 0?q.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,q.tabsStartAtInPx)),q.scrollPositionNeedsUpdate=!1;q.ytdReduxDispatch(FLM(!1))}}}})};
_.N.loadPage_=function(M){this.initCsi();M&&(this.data=M);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.N.getTitle=function(M){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",M))return this.get("microformat.microformatDataRenderer.title",M);if(this.get("header.feedTabbedHeaderRenderer.title",M))return _.UX(this.get("header.feedTabbedHeaderRenderer.title",M));if(this.get("header.interactiveTabbedHeaderRenderer.title",M))return this.get("header.interactiveTabbedHeaderRenderer.title",M);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
M))return _.UX(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",M));var q,G;return(M==null?0:(q=M.header)==null?0:(G=q.pageHeaderRenderer)==null?0:G.pageTitle)?M.header.pageHeaderRenderer.pageTitle:""};
_.N.updateTitle=function(M){_.jP(this.hostElement,"yt-update-title",this.getTitle(M))};
_.N.initCsi=function(){_.maM(this.pageSubtype||"browse",["ol","cpt"])};
_.N.getPlayer=function(){if(_.w("kevlar_channel_trailer_multi_attach")){for(var M=_.k(this.attachedPlayers),q=M.next();!q.done;q=M.next())if(q=q.value,q.isConnected||_.HX(this.hostElement,q))return q;return null}return this.player};
_.N.getPlayerContainer=function(){return null};
_.N.onPlayerAttached=function(M,q){_.w("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(q):this.player=q};
_.N.onPlayerDetached=function(M,q){_.w("kevlar_channel_trailer_multi_attach")?(M=this.attachedPlayers.indexOf(q),M<0||this.attachedPlayers.splice(M,1)):this.player=null};
_.N.getServiceTrackingParams=function(){var M,q;return((M=this.data)==null?void 0:(q=M.responseContext)==null?void 0:q.serviceTrackingParams)||[]};
_.N.setMastheadAd=function(M){M&&M.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=M&&M.mastheadAd};
_.N.dataChanged=function(){var M=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.ICe();_.yb(this,function(){_.Rf(M.hostElement,"ytd-update-grid-state-action")})};
_.N.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.N.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var M=this.data.alerts;return M&&M.find(function(q){return!!q.alertWithActionsRenderer})}};
_.N.computeGreetingData=function(){if(this.data&&this.data.alerts){var M=this.data.alerts;return M&&M.find(function(q){return!!q.personalGreetingViewModel})}};
_.N.computeHasMemberHubProfileRenderer=function(M){var q;return!!(M==null?0:(q=M.header)==null?0:q.memberHubProfileRenderer)};
_.N.handleAlertCommand=function(M){this.get("alertCommand.alert.alertWithActionsRenderer",M)&&(M=_.C(M,Eqe),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",M.alert))};
_.N.handleYtPlaylistDeletionRedirect=function(M){M=this.get("playlistDeletionRedirectCommand.redirectEndpoint",M);_.jP(this.hostElement,"yt-navigate",{endpoint:M})};
_.N.computeFluidWidth=function(M,q,G){if(q==="mini_app"||G)return!0;var K,n,E;M=M==null?void 0:(K=M.contents)==null?void 0:(n=K.twoColumnBrowseResultsRenderer)==null?void 0:(E=n.tabs)==null?void 0:E.find(function(Y){var A;return Y==null?void 0:(A=Y.tabRenderer)==null?void 0:A.selected});
if(!M)return!1;var p,y;return!!((p=M.tabRenderer)==null?0:(y=p.content)==null?0:y.richGridRenderer)&&!["channel","channels","playables"].includes(q)};
_.N.computeHeaderFluidWidth=function(M){return M==="hashtag-landing-page"};
_.N.computeHasSidebar=function(M){var q;return!!(M.sidebar||((q=M.header)==null?0:q.playlistHeaderRenderer))};
_.N.computeHasPageHeaderSidebar=function(M){var q,G;return!!((q=M.header)==null?0:(G=q.pageHeaderRenderer)==null?0:G.enableSidebarView)};
_.N.computeUseUnifiedShowPageLayout=function(M){if(!M||this.pageSubtype!=="show"||!M.sidebar||!M.sidebar.playlistSidebarRenderer)return!1;M=M.sidebar.playlistSidebarRenderer;if(!M.items)return!1;for(var q=0;q<M.items.length;q++)if(_.C(M.items[q],pDk)){var G=void 0;return((G=_.C(M.items[q],pDk))==null?void 0:G.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.N.computeIsConstrainedList=function(M){return _.w("web_enable_constrained_list_subscriptions_channels")&&M==="subscriptions-channels"};
_.N.computeResponsiveSizing=function(M){return M==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Yd.Object.defineProperties(Hk.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var M,q;return((M=this.data)==null?0:(q=M.header)==null?0:q.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var M,q;if(!((M=this.data)==null?0:(q=M.sidebar)==null?0:q.playlistSidebarRenderer))return!1;var G;return(G=this.data)!=null&&G.header?!1:!0}}});
_.Yd.Object.defineProperties(Hk,{template:{configurable:!0,enumerable:!0,get:function(){if(XDa===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);XDa=M}M=XDa;return M}}});
Hk.prototype.dataChanged=Hk.prototype.dataChanged;Hk.prototype.onPlayerDetached=Hk.prototype.onPlayerDetached;Hk.prototype.onPlayerAttached=Hk.prototype.onPlayerAttached;Hk.prototype.onStampFinished=Hk.prototype.onStampFinished;Hk.prototype.engagementPanelsChanged=Hk.prototype.engagementPanelsChanged;Hk.prototype.scrollAtTopChanged=Hk.prototype.scrollAtTopChanged;Hk.prototype.tabsChanged=Hk.prototype.tabsChanged;Hk.prototype.activeChanged=Hk.prototype.activeChanged;
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Hk.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],Hk.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Hk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Hk.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.qV.YtPageBehavior),_.r("design:type",Object)],Hk.prototype,"ytPageBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Hk.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],Hk.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Hk.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Hk.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Hk.prototype,"hidden",void 0);
_.T([_.B(),_.r("design:type",Object)],Hk.prototype,"mastheadAdData",void 0);_.T([_.B({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.r("design:type",Object)],Hk.prototype,"alertBannerData",void 0);_.T([_.B({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.r("design:type",Object)],Hk.prototype,"greetingData",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Hk.prototype,"pageSubtype",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.r("design:type",Boolean)],Hk.prototype,"hasMemberHubProfileRenderer",void 0);_.T([_.B({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Hk.prototype,"hasSidebar",void 0);_.T([_.B({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Hk.prototype,"hasPageHeaderSidebar",void 0);
_.T([_.B({reflectToAttribute:!0,value:!0}),_.r("design:type",Boolean)],Hk.prototype,"roundedContainer",void 0);_.T([_.B({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Hk.prototype,"useUnifiedShowPageLayout",void 0);_.T([_.B({computed:"computeIsConstrainedList(pageSubtype)"}),_.r("design:type",Object)],Hk.prototype,"isConstrainedList",void 0);
_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Hk.prototype,"usePlaylistHeaderRenderer",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Hk.prototype,"useOldPlaylistSidebarRenderer",null);_.T([_.B({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.r("design:type",Boolean)],Hk.prototype,"fluidWidth",void 0);_.T([_.B({selector:function(M){return M.ui.scrollAtTop}}),
_.r("design:type",Boolean)],Hk.prototype,"scrollAtTop",void 0);_.T([_.B({selector:_.oUI}),_.r("design:type",Boolean)],Hk.prototype,"tabGesturesIsActive",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.r("design:type",Boolean)],Hk.prototype,"disableHeaderFluidWidth",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.r("design:type",String)],Hk.prototype,"responsiveSizing",void 0);
_.T([_.ET("ytd-two-column-browse-results-renderer"),_.r("design:type",HTMLElement)],Hk.prototype,"contents",void 0);_.T([_.ET("#header"),_.r("design:type",HTMLElement)],Hk.prototype,"header",void 0);_.T([_.ET("ytd-refresh"),_.r("design:type",Object)],Hk.prototype,"refresh",void 0);_.T([_.KT("active"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hk.prototype,"activeChanged",null);
_.T([_.KT("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hk.prototype,"tabsChanged",null);_.T([_.KT("scrollAtTop"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hk.prototype,"scrollAtTopChanged",null);_.T([_.B(),_.r("design:type",Object)],Hk.prototype,"engagementPanels",void 0);
_.T([_.KT("data.panels"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hk.prototype,"engagementPanelsChanged",null);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hk.prototype,"onStampFinished",null);_.T([_.GQ("yt-player-attached"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Element]),_.r("design:returntype")],Hk.prototype,"onPlayerAttached",null);
_.T([_.GQ("yt-player-detached"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Element]),_.r("design:returntype")],Hk.prototype,"onPlayerDetached",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hk.prototype,"dataChanged",null);_.T([_.b({is:"ytd-browse"})],Hk);_.Su.registerService(_.nMe,Hk);
_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("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 eq,PgP,iTP,c_I,gAM,B4R,QOP,Ip8,DsI,us5,J_g,ZTR,Us5,xsv,msI,STw,T4g,jOE,Vo5,RUE,fpE,$B,HTI,sa,eUR,$s8,sMg,M5M,qEP,KYP,EjI,GEg,bTL,N75,kEE,pbw,yjI,LYg,YEI,WYv,Ajw,dYw,hxL,t5M,wb5,agg,ojL,lgs,PmR,cjP,gjU,B7s,QMR,IgU,DYw,ugw,Jjg,ZlE,blI,UYv,xYs,mYL,SEL,T7s,rjI,jMv,V5v,RxI,fgI,Hl8,exP,$YI,s2L,Mc8,qqI,GMn,Kdg,nmv,EmP,Nk5,kMw,pxM,yCv,LdP,YqI,WdE,ACR,dAv,vmE,h4I,tcE,OpM,wxI,pd,C8s,atn,Xxn,uYP,UAv,xAE,rC5,j2I,TkL,mA5,FdI,$An,ne5,z4L,Ms8,HpE,dV,NxP,y$I,Wgg,LgL,Y0R,A$M,tsw,veM,OLn,wOI,hV8,dos,ChU,Oa,wV,
iLP,c$n,Cd,gev,BxR,QZv,bL5,UoM,aP,oP,zVM,xo5,mo8,S0L,Txn,r$P,lp,Xo,Po,$on,sU5,MbR,co,Eng,qzv,nnU,NII,GhM,p3w,KGn,YzM,yYU,LGU,gV,AYP,WGE,tbI,a$M,DN,up,w3M,l$R,C_U,onw,ZN,Ua,xY,zY,jUR,JYs,f$w,FGP,H5P,eYM,sHv,BII,QUI,TY,DQw,mu,Si,uTE,$QP,Vbv,I$L,ji,kOM,yM5,LiR,phn,KiI,WiI,vWU,Ho,fd,Fo,OsE,GOs,$Y,dKs,nWg,AMP,Nrv,qFM,EWI,Cqv,aQ5,oWg,Xh5,isI,cMU,gWn,Brv,IQU,QHv,uaR,JMg,bsn,UKP,z2w,mKw,SFU,TrL,rMU,jHE,VhR,fQv,R2L,FiI,e2P,$Kg,qf,sTs,M$I,GP,qv8,GmI,K6v,n1I,E1I,Nlv,kmI,p7g,L6w,Kq,Yvn,W6n,v15,t$s,Ouw,CZv,w7w,
ahg,o1I,lhw,PZv,ius,cDL,g1U,BlU,QTv,Ih5,Dnw,uWw,JDR,Zun,buI,mnv,SvI,xnI,zWU,Unv,TlE,V$I,rDI,jT5,F6v,RWw,fhI,Hus,eWL,$ns,s5R,qBE,G$I,KEv,EEI,NBv,pp5,LEw,WEM,deP,hKw,OeM,CoE,oEE,Pov,ieM,ccI,BBn,gEL,IlI,Des,uZs,Jcs,Ed,ZeL,bew,UeI,flI,HeR,eKw,qSL,Lq,GZP,KPL,nuU,N6L,Eun,kZI,pTv,yon,LPI,YSs,yh,WP8,YX,AcI,Aon,dpI,CmM,vuw,h_P,t8v,OEw,wTP,C2U;
eq=function(M){if(!M)return"browse";var q=M.page,G=M.url,K,n,E,p=(K=M.response)==null?void 0:(n=K.responseContext)==null?void 0:(E=n.webResponseContextExtensionData)==null?void 0:E.pageTheme;if(p)q=p.toLowerCase().replace(/_/g,"-");else if(q!=="watch"&&q!=="learning_journey_watch"){var y,Y;if((q==="browse"||q==="settings")&&((y=M.response)==null?0:(Y=y.sidebar)==null?0:Y.settingsSidebarRenderer))q="WEB_PAGE_TYPE_SETTINGS";else{var A,v;q==="browse"&&((A=M.response)==null?0:(v=A.metadata)==null?0:v.channelMetadataRenderer)?
q="channel":G&&(q=_.El4(G)||q)}}return q};
PgP=function(){var M=_.sx("yt.aba.att");return M?M:_.Cy.instance!==void 0?_.Cy.instance.gcv.bind(_.Cy.instance):null};
iTP=function(M,q){var G;return _.L(function(K){return(G=PgP())?K.return(G(M,q,6E4)):K.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})};
c_I=function(M,q,G,K,n){q=q===void 0?[]:q;n=n?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:n}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.rj(M),dialogMessages:q.map(function(E){return _.rj(E)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rj(G),serviceEndpoint:n}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.rj(K)}}}}}};
gAM=function(M,q,G){G=G===void 0?!1:G;var K=_.Bg(),n=!!_.KV().queueProxy,E,p,y;M=M==null?void 0:(E=M.response)==null?void 0:(p=E.currentVideoEndpoint)==null?void 0:(y=p.watchEndpoint)==null?void 0:y.playlistId;if((n||M)&&!_.w("web_watch_disable_playlist_auto_miniplayer"))return G&&(K.playlistWatchPageActivation=!0),!0;switch(eq(q)){case "yts-products":return G&&(K.productDetailsPageActivation=!0),!0;case "mini_app":return G&&(K.miniAppPageActivation=!0),!0;case "playables":return G&&(K.playablesDestPageActivation=
!0),!0;case "companion-canvas":return G&&(K.companionCanvasActivation=!0),!0;default:return!1}};
B4R=function(M){M=_.N$e(M);M.length>0&&M[0].focus()};
QOP=function(M,q,G){for(var K=typeof M==="string"?M.split(""):M,n=M.length-1;n>=0;--n)n in K&&q.call(G,K[n],n,M)};
Ip8=function(M,q){q=_.c4w(M,q);q>=0&&_.Qyw(M,q)};
DsI=function(M){return Array.prototype.concat.apply([],arguments)};
us5=function(M){var q=0;q=q===void 0?0:q;if(!_.MM(M))throw _.sM("uint64");var G=typeof M;switch(q){case 512:switch(G){case "string":return _.QIy(M);case "bigint":return String((0,_.hE)(64,M));default:return _.g$y(M)}case 1024:switch(G){case "string":return _.I8Y(M);case "bigint":return _.bS((0,_.hE)(64,M));default:return _.B9F(M)}case 0:switch(G){case "string":return _.QIy(M);case "bigint":return _.bS((0,_.hE)(64,M));default:return _.cdH(M)}default:return _.F2(q,"Unknown format requested type for int64")}};
J_g=function(M){M!=null&&(M=M.JSC$8824_value_||"",M=typeof M==="string"?M:new Uint8Array(M));return M};
ZTR=function(M,q){if(/-[a-z]/.test(q))return null;if(_.kiM&&M.dataset){if(_.Oj4()&&!(q in M.dataset))return null;M=M.dataset[q];return M===void 0?null:M}return M.getAttribute("data-"+_.Kx(q))};
Us5=function(){var M=bTL;_.sx("yt.ads.biscotti.getId_")||_.Y5("yt.ads.biscotti.getId_",M)};
xsv=function(M){_.Y5("yt.ads.biscotti.lastId_",M)};
msI=function(){var M={};for(_.SS=new zUv(M.handleError===void 0?_.rM:M.handleError,M.logEvent===void 0?_.ml:M.logEvent);_.Tc.length>0;)switch(M=_.Tc.shift(),M.type){case "ERROR":_.SS.logError(M.payload);break;case "EVENT":_.SS.logEvent(M.eventType,M.payload)}};
STw=function(M,q,G){return _.kwe(function(K){return G?K.userIdentifier!==void 0&&!M.includes(K.userIdentifier)&&G.includes(K.publicName):K.userIdentifier!==void 0&&!M.includes(K.userIdentifier)},q)};
T4g=function(M){var q,G;return _.L(function(K){if(K.nextAddress==1)return q=_.JL("YtIdbMeta hasAnyMeta other"),K.yield(_.kwe(function(n){return n.userIdentifier!==void 0&&n.userIdentifier!==q},M),2);
G=K.yieldResult;return K.return(G.length>0)})};
jOE=function(M,q){r_I||(r_I=_.r8.addLowPriorityJob(function(){var G,K,n,E,p;return _.L(function(y){switch(y.nextAddress){case 1:return y.yield(_.W2(),2);case 2:G=y.yieldResult;if(!G)return y.return();K=!0;_.Cv(y,3);return y.yield(STw(M,G,q),5);case 5:n=y.yieldResult;if(!n.length){K=!1;y.jumpTo(6);break}E=n[0];return y.yield(_.nF(E.actualName),7);case 7:return y.yield(_.k5(E.actualName,G),6);case 6:_.KF(y,4);break;case 3:p=_.i5(y),_.rP(p),K=!1;case 4:_.r8.cancelJob(r_I),r_I=0,K&&jOE(M,q),_.gL(y)}})}))};
Vo5=function(){var M;return _.L(function(q){return q.nextAddress==1?q.yield(_.W2(),2):(M=q.yieldResult)?q.return(T4g(M)):q.return(!1)})};
RUE=function(M){var q=100;q=q===void 0?500:q;var G,K,n,E,p,y;return _.L(function(Y){return Y.nextAddress==1?(G=_.R9("INNERTUBE_CONTEXT_CLIENT_NAME",0),K=[G,(0,_.d8)()-2592E6],n=[G,(0,_.d8)()],E=IDBKeyRange.bound(K,n),Y.yield(_.usy(M),2)):Y.nextAddress!=3?(p=Y.yieldResult,y=[],Y.yield(_.Nl(p,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(A){y.length=0;return _.v2(A.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:E,direction:"prev"},function(v){if(v.getValue()&&y.length<
q)return y.push(v.getValue()),v.delete().then(function(){return v.continue()})})}),3)):Y.return(y)})};
fpE=function(){var M;return _.L(function(q){if(q.nextAddress==1)return q.yield(_.W2(),2);M=q.yieldResult;if(!M||!_.Zf()&&!_.w("nwl_init_require_datasync_id_killswitch")||!_.sMs())return q.jumpTo(0);_.qEH=!0;_.M5D.isNwlInitialized=_.qEH;return q.yield(_.lSd().awaitInitialization(),0)})};
$B=function(M,q){_.Olu[M]=!0;var G=_.dM();G&&G.publish.apply(G,arguments);_.Olu[M]=!1};
HTI=function(){if(_.Fau()&&!FXg){var M=function(G){G=G.data;if(G.op==="serializedGelBatch"){var K=_.wxy.get(G.key);K&&(_.atj(G.serializedBatch,K.client,K.resolve,K.networklessOptions,K.isIsolated,K.useVSSEndpoint,K.dangerousLogToVisitorSession,K.requestsOutstanding),_.wxy.delete(G.key))}},q=_.fxi();
q&&(q.addEventListener("message",M),q.onerror=function(){_.wxy.clear()});
FXg=!0}};
sa=function(){this.relativeTimeStart_=_.Sh()};
eUR=function(M,q){M!=null&&this.append.apply(this,arguments)};
$s8=function(){return _.PF("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")};
sMg=function(M,q,G){G=G===void 0?!1:G;var K,n,E,p,y;return _.L(function(Y){switch(Y.nextAddress){case 1:_.Df("SOCS",M,34128E3,"youtube.com",!0);if(_.$W)return n=fetch(q,{method:"POST",mode:_.If(q),credentials:_.QW(q),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),E=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.If("/upgrade_visitor_cookie?eom=1"),credentials:_.QW("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),Y.yield(Promise.all([n,E]).then(function(A){return A[1]}),5);
fetch(q,{method:"POST",mode:_.If(q),credentials:_.QW(q),cache:"no-store",headers:{"Content-Type":"text/plain"}});return Y.yield(fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.If("/upgrade_visitor_cookie?eom=1"),credentials:_.QW("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:K=Y.yieldResult;Y.jumpTo(3);break;case 5:K=p=Y.yieldResult;case 3:if(!K.ok)throw Error("vf");return Y.yield(K.text(),7);case 7:y=Y.yieldResult,
!y.includes('"state_switch":true')&&!G||y.includes("skip_reload_for_test")||window.location.reload(),_.gL(Y)}})};
M5M=function(M){return _.L(function(q){return q.nextAddress==1?q.yield(sMg(M.socsCookie,M.savePreferenceUrl,!0),2):q.return()})};
qEP=function(M){return _.L(function(q){return q.nextAddress==1?q.yield(sMg(M.socsCookie,M.savePreferenceUrl),2):q.return()})};
KYP=function(M){M=M.xhr.responseText;if(!_.Ee(M,")]}'"))throw new Mm;M=JSON.parse(M.substr(4));if((M.type||1)>1)throw new Mm;M=M.id;xsv(M);qm=_.Ej(M);GEg(18E5,2);return M};
EjI=function(M,q){q=new njU(q);xsv("");qm=_.cbv(q);M>0&&GEg(12E4,M-1);throw q;};
GEg=function(M,q){_.lj(function(){_.sOw().then(KYP,function(G){return EjI(q,G)}).thenCatch(_.vp)},M)};
bTL=function(){var M=_.GQs();if(M!==void 0)return _.Aj(M);qm||(qm=_.sOw().then(KYP).thenCatch(function(q){return EjI(2,q)}));
return qm};
N75=function(){var M=document;return _.J4(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(q){return"on"+q.toLowerCase()in M})};
kEE=function(M){M.addEventListener("click",function(q){var G=q.target;G&&G.getAttribute("href")&&(G=G.getAttribute("href"),_.si(window,G,"_blank"),q.preventDefault(),q.stopImmediatePropagation())})};
pbw=function(M){var q,G,K,n=(K=(G=((q=M.mainDownloadsListEntity)!=null?q:{})[_.wfs])==null?void 0:G.refresh)!=null?K:"",E;M=(E=M.refresh)==null?void 0:E[n];n=M!=null?M:{};return(n==null?0:n.refreshTime)?Number(n==null?void 0:n.refreshTime):0};
yjI=function(M,q){var G=_.dz(M);return q.every(function(K){var n;K=K==null?void 0:(n=K.playbackDataEntity)==null?void 0:n.key;if(!K)return!1;n=_.$p(_.FI(K).entityId,"mainVideoEntity");return!!G[n]})};
LYg=function(M){M=_.Yz(M.entities);return _.uts(M).length};
YEI=function(M,q){if(q){var G;M=(G=_.sX(M.entities,"downloadQualityPickerEntity",q))!=null?G:void 0}else M=void 0;return M};
WYv=function(M){var q=document.getElementsByTagName("ytd-enforcement-message-view-model");q.length===0||getComputedStyle(q[0]).display==="none"?M(0,"p.h_"):M(1,"p.h_")};
Ajw=function(){GY=0;var M=[_.kU(!0)];Kd&&_.Rf(Kd,"yt-window-resized",M)};
dYw=function(){GY||(GY=_.r8.addLowPriorityJob(Ajw,200))};
hxL=function(){nd=0;vjL=_.pc9(document);var M=[vjL];Kd&&_.Rf(Kd,"yt-window-scrolled",M)};
t5M=function(){nd||(nd=_.r8.addLowPriorityJob(hxL,200))};
wb5=function(M){M=M===void 0?null:M;Olw.push(_.LA(window,"resize",dYw));Olw.push(_.LA(window,"scroll",t5M));M&&(Kd=M)};
agg=function(){var M=_.WE.getLocalStorage();M&&CmM(M,M.mechanism.__iterator__(!0))};
ojL=function(M){_.L(function(q){if(q.nextAddress==1)return q.yield(M.delete("yt-appshell-assets"),2);_.gL(q)})};
lgs=function(M){return _.Eh((0,_.I1d)(),M)};
PmR=function(){var M;_.L(function(q){return q.nextAddress==1?q.yield(Ea.getInstance(),2):(M=q.yieldResult)?q.yield(Xbv(M),0):q.jumpTo(0)})};
cjP=function(){var M;_.L(function(q){return q.nextAddress==1?q.yield(Nm.getInstance(),2):(M=q.yieldResult)?q.yield(ilE(M),0):q.jumpTo(0)})};
gjU=function(M){ojL(M);PmR();cjP()};
B7s=function(M){var q,G;return _.L(function(K){if(K.nextAddress==1)return K.yield(_.cby(M),2);if(q=K.yieldResult){var n;a:{if(q.headers&&(n=q.headers.get("date"))&&(n=Date.parse(n),!isNaN(n))){n=Math.round((0,_.d8)()-n);break a}n=-1}G=n;if(G>-1)return K.return(G)}return K.return(-1)})};
QMR=function(){var M=_.Kj.caches,q=_.fX("IS_SHELL_LOAD"),G,K;_.L(function(n){if(n.nextAddress==1)return G=-1,q?n.yield(B7s(M),3):(K=_.Yp(),G=Math.round((0,_.d8)()-K),n.jumpTo(2));n.nextAddress!=2&&(G=n.yieldResult);G>=0&&G<2147483648&&_.t2({appInstallDataAgeMs:G});_.gL(n)})};
IgU=function(M){var q=_.s9(_.Kj.location.href),G={};"absolute_experiments forced_experiments expflag conditional_experiments client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url build mloader debugjs".split(" ").forEach(function(K){var n=q.JSC$10036_queryData_.getValues(K);if(n==null?0:n.length)G[K]=n});
return _.wq(M,new Map(Object.entries(G)))};
DYw=function(M){M=M.match(/(.*)::.*::.*/);if(M!==null)return M[1]};
ugw=function(M){if(_.VLu()){var q=Object.keys(window.localStorage);q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;var K=DYw(G);K===void 0||M.includes(K)||self.localStorage.removeItem(G)}}};
Jjg=function(){if(!_.VLu())return!1;var M=_.JL(),q=Object.keys(window.localStorage);q=_.k(q);for(var G=q.next();!G.done;G=q.next())if(G=DYw(G.value),G!==void 0&&G!==M)return!0;return!1};
ZlE=function(M){return _.bL("NotificationsDisabled",M)};
blI=function(){return Notification.permission!="granted"?Promise.resolve():_.lxI().then(function(M){return M?M.pushManager.getSubscription().then(function(q){if(q)return Promise.resolve();q={userVisibleOnly:!0,applicationServerKey:_.ew("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return M.pushManager.subscribe(q).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})};
UYv=function(M){return _.lxI().then(function(q){if(!q||!q.active)return Promise.reject(new _.bj("serviceworker.postMessage",M,q));try{return q.active.postMessage(M),Promise.resolve()}catch(G){return Promise.reject(G)}})};
xYs=function(){UYv({type:"notifications_register",data:_.R9("ID_TOKEN")})};
mYL=function(){var M={isWide:_.Iu.get("wide","0")==="1"},q=_.El();if(q=q.getFlag(165)||q.getFlag(174))M.theme=_.cE(!0);if(_.LMe()){var G=_.ia()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";M.systemTheme=G}!q&&_.w("parent_tools_enable_app_settings")&&_.nD(window.location.href).theme!==void 0&&(M.theme=_.cE());if((q=kY)?!_.xP.equals(q,M):M)q={currentValue:M},zx5&&(q.timeSinceLastSnapshotSecs=Math.round(((0,_.d8)()-zx5)/1E3)),kY&&(q.previousValue=kY),_.ml("appSettingsCaptured",q),kY=M,zx5=
(0,_.d8)()};
SEL=function(){if(!_.fX("LOGGED_IN"))return Promise.resolve(!1);var M=_.wP("service_worker_push_force_notification_prompt_tag");return M?_.PZ("PromptTags").then(function(q){if(!q)return!0;var G=[];try{G=JSON.parse(q)}catch(K){return!1}return G&&G.indexOf(M)==-1}):Promise.resolve(!1)};
T7s=function(){var M=_.tL("service_worker_push_prompt_delay_microseconds");return M?_.PZ("PromptTime").then(function(q){return Promise.resolve(Date.now()-M>(q||0))}):Promise.resolve(!0)};
rjI=function(){var M=_.tL("service_worker_push_logged_out_prompt_watches");return M==-1?Promise.resolve(!1):_.PZ("WatchCount").then(function(q){return q>=M})};
jMv=function(){var M=_.jc(document,"yt-push-prompt-modal-bg");M&&_.cX(M)};
V5v=function(){return _.tL("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.PZ("PromptCount").then(function(M){M||(M=0);return Promise.resolve(M<_.tL("service_worker_push_prompt_cap"))})};
RxI=function(M){return _.fX("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.fX("LOGGED_IN")&&(M===void 0?0:M)?SEL().then(function(q){if(q)return!0;q=[V5v(),T7s()];_.fX("LOGGED_IN")||q.push(rjI());return Promise.all(q).then(function(G){return G.every(function(K){return K})})}):Promise.resolve(!1)};
fgI=function(){_.PZ("PromptCount").then(function(M){return _.bL("PromptCount",M+1)}).then(function(){return _.bL("PromptTime",Date.now())}).then(function(){var M=_.wP("service_worker_push_force_notification_prompt_tag");
if(M)return _.PZ("PromptTags").then(function(q){var G=[];if(q)try{G=JSON.parse(q)}catch(K){return!1}G||(G=[]);G.push(M);return _.bL("PromptTags",JSON.stringify(G))})})};
Hl8=function(){FY8||jMv()};
exP=function(M){M.style.zIndex=2147483648;M.style.pointerEvents="auto";M.style.backgroundColor="rgba(0, 0, 0, 0.6)";M.style.width="100%";M.style.height="100vh";M.style.position="absolute";M.style.top="0";M.style.left="0";M.style.border="none"};
$YI=function(){var M=_.jc(document,"yt-push-prompt-modal-bg");FY8=_.w("service_worker_push_prompt_modal_ignore_click");M?exP(M):(M=_.lo("div",{id:"yt-push-prompt-modal-bg"}),exP(M),document.body.appendChild(M),_.Aju(document,"click",Hl8))};
s2L=function(){var M=arguments;_.w("service_worker_push_prompt_modal_enable")&&$YI();return Notification.requestPermission().then(function(q){jMv();var G=document.getElementById("ticker");G&&(G.className=G.classList.remove("show"));if(q=="granted")return blI().then(function(){ZlE(!1);xYs();return Promise.resolve(!0)});
q=="denied"&&xYs();return Promise.resolve(!1)}).catch(function(){jMv();
return Promise.reject.apply(Promise,_.Ui(M))})};
Mc8=function(M){M=M===void 0?!1:M;var q=_.vhF().client;if(q&&q.browserVersion){var G=q.browserVersion,K=q.browserName=="CHROME"&&_.vy(G,"50.0.0")<0;q=q.browserName=="OPERA"&&_.vy(G,"42.0.0")<0;if(K||q)return Promise.resolve()}return _.i_s().then(function(n){if(!n)return Promise.resolve();n=blI().then(function(){return UYv({type:"notifications_check_registration",data:_.R9("ID_TOKEN")})});
return Notification.permission!="default"?n.catch(function(){}):n.then(function(){return RxI(M)}).then(function(E){if(E)return fgI(),s2L().then(function(){})}).catch(function(){})})};
qqI=function(M){return _.XEs(M)?Mc8():Promise.resolve()};
GMn=function(M){var q=M.installing||M.waiting;return M.active||!q?Promise.resolve(M):new Promise(function(G){var K=function(n){n=n.target;if(n.state==="activated"||n.state==="redundant")q.removeEventListener("statechange",K),G(M)};
q.addEventListener("statechange",K)})};
Kdg=function(){var M=new _.otj("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");_.eb(M,{mainAppWeb:_.Ir()});var q=_.$EP;_.w("service_worker_forward_exp_params")&&(q=IgU(q));try{var G=_.OJs(q).catch(function(){_.$n(M,"FAILURE");return new Promise(function(){})});
_.w("service_worker_push_enabled")&&G.then(function(K){_.$n(M,"SUCCESS");return K}).then(GMn).then(qqI)}catch(K){if(_.$n(M,"FAILURE"),K.name!=="SecurityError")throw K;
}};
nmv=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&Kdg()};
EmP=function(M,q){var G={};q&&(G.serializedYpcFamilyCreateLoggingParams=q);_.ml(M,G);_.S1()};
Nk5=function(M,q){var G={};G.serializedYpcRefundFlowLoggingParams=q;M&&(G.eventType=M);_.ml("ypcRefundFlowEvent",G);_.S1()};
kMw=function(M){M&&_.C9H("transactionFlowSucceeded",M)};
pxM=function(M){M&&_.dS("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")};
yCv=function(M){var q,G,K,n,E,p,y;_.L(function(Y){if(Y.nextAddress==1)return Y.yield(_.G8i(),2);if(Y.nextAddress!=3){if(!Y.yieldResult)return Y.return(!1);q=[];return Y.yield(_.fl.keys(),3)}G=Y.yieldResult;K=_.k(G);for(n=K.next();!n.done;n=K.next())E=n.value,p=_.Mae(E),y=p.datasyncId,!y||M.includes(y)||q.push(_.fl.delete(E));return Y.return(Promise.all(q).then(function(A){return A.some(function(v){return v})}))})};
LdP=function(){var M,q,G,K,n,E,p;return _.L(function(y){if(y.nextAddress==1)return y.yield(_.G8i(),2);if(y.nextAddress!=3){if(!y.yieldResult)return y.return(!1);M=_.JL("cache contains other");return y.yield(_.fl.keys(),3)}q=y.yieldResult;G=_.k(q);for(K=G.next();!K.done;K=G.next())if(n=K.value,E=_.Mae(n),(p=E.datasyncId)&&p!==M)return y.return(!0);return y.return(!1)})};
YqI=function(){var M=_.AL().resolve(_.WR(_.$G8));return M?M.getCurrentTime():0};
WdE=function(){var M,q,G,K,n,E,p,y,Y,A,v,h,t,O;return _.L(function(a){switch(a.nextAddress){case 1:M={},q=_.k0Y(),G=_.k(Object.entries(q)),K=G.next();case 4:if(K.done){a.jumpTo(3);break}n=K.value;E=_.k(n);p=E.next().value;y=E.next().value;Y=p;A=y;if(!A){a.jumpTo(5);break}return a.yield(A(),8);case 8:M[Y]=a.yieldResult;case 5:K=G.next();a.jumpTo(4);break;case 2:v=_.k(),h=v.next();case 9:if(h.done){a.jumpTo(3);break}t=h.value;O=q[t];if(!O){a.jumpTo(10);break}return a.yield(O(),13);case 13:M[t]=a.yieldResult;
case 10:h=v.next();a.jumpTo(9);break;case 3:return a.return(M)}})};
ACR=function(){var M;_.L(function(q){if(q.nextAddress==1)return q.yield(WdE(),2);M=q.yieldResult;return q.yield(navigator.clipboard.writeText(JSON.stringify(M,null,2)),0)})};
dAv=function(M,q){return _.sX(M.entities,"superThanksSelectedTierEntity",q)};
vmE=function(M,q){return{popup:{searchSuggestionReportDialog:{searchQuery:M,title:_.Ge("SBOX_INAPPROPRIATE_TITLE"),suggestions:q,categoryLabel:_.Ge("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.Ge("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.Ge("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.Ge("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.Ge("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.Ge("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.Ge("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.Ge("SBOX_INAPPROPRIATE_ADDITIONAL"),
cancelButtonLabel:_.Ge("SBOX_INAPPROPRIATE_CANCEL"),submitButtonLabel:_.Ge("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}};
h4I=function(M){var q,G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V;return _.L(function(S){switch(S.nextAddress){case 1:return S.yield(_.Gw(),2);case 2:return(q=S.yieldResult)?S.yield(_.ASH(q),3):S.return();case 3:G=S.yieldResult;if(!G)return S.return();n=((K=G.offlineVideos)==null?void 0:K.length)||0;p=((E=G.offlinePlaylists)==null?void 0:E.length)||0;if(n===0&&p===0)return S.return();y=0;if(G.offlineVideos)for(Y=_.k(G.offlineVideos),A=Y.next();!A.done;A=Y.next())v=A.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===
v.videoState&&(y+=1);M.offline_videos_count=n.toString();_.w("kevlar_log_offline_current_network_type_ks")||(M.offline_current_network_type=(h=_.Z7w())!=null?h:"CONN_INVALID");_.w("kevlar_log_updated_time_for_smart_downloads")&&(t=_.zw().getState().entities,O=_.OX(t),a=pbw(t),M.offline_smart_downloads_last_sync_time_ms=O.toString(),M.offline_smart_downloads_next_sync_time_ms=a.toString());M.offline_videos_playable=y.toString();M.offline_playlists_count=p.toString();G.offlineVideos&&(g=G.offlineVideos.reduce(function(m,
R){R.downloadedBytes&&(m+=Number(R.downloadedBytes));return m},0).toString())&&(M.offline_used_disk_space_bytes=g);
if(!((D=navigator)==null?0:(J=D.storage)==null?0:J.estimate)){S.jumpTo(4);break}return S.yield(navigator.storage.estimate(),5);case 5:Z=S.yieldResult,M.offline_free_disk_space_bytes=(((V=Z)==null?void 0:V.quota)||0).toString();case 4:M.offline_client_state=JSON.stringify(G),_.gL(S)}})};
tcE=function(M){M=M.match(/(.*)::.*::.*/);if(M!==null)return M[1]};
OpM=function(M){if(_.Qsy()){var q=Object.keys(window.sessionStorage);q=_.k(q);for(var G=q.next();!G.done;G=q.next()){G=G.value;var K=tcE(G);K===void 0||M.includes(K)||self.sessionStorage.removeItem(G)}}};
wxI=function(){if(!_.Qsy())return!1;var M=_.JL(),q=Object.keys(window.sessionStorage);q=_.k(q);for(var G=q.next();!G.done;G=q.next())if(G=tcE(G.value),G!==void 0&&G!==M)return!0;return!1};
pd=function(M,q,G){(_.w("desktop_keyboard_shortcut_usage_log")||G&&_.w("web_shorts_keyboard_shortcut_usage_log"))&&(q?_.Sq.get(M):_.m9.get(M))&&(M=q?_.rO.get(M):_.T0.get(M))&&_.Z_(_.Cx(),M)};
C8s=function(M,q){return M.findIndex(function(G){return G.tagName==="INPUT".toString()})>-1?[9,
38,40,37,39].includes(q.keyCode):!1};
atn=function(M,q){q.stack&&(M.stack+="\n"+q.stack);return M};
Xxn=function(M){var q=yh(M,"Content-Type");if(!q)return null;q=q.toLowerCase();if(q.startsWith("application/json"))return q.startsWith("application/json+protobuf")?new omw:new _.ph;if(q.startsWith("application/x-protobuf")){M=yh(M,"Content-Transfer-Encoding");if(!M)return new Ld;if(M.toLowerCase()=="base64")return new lts}return null};
uYP=function(M,q,G,K){var n=new P8L(function(y,Y){return ipw.has(Y)?y.sentinel==="gal"&&y.event!==void 0:!1},function(y){y.event?(y=cC5(y.event),y=!y||gmg(K,y)?!0:_.Nn(M.lastEvent,YY,2,Wo)?!_.Nn(y,AO,1,Wo)&&!_.Nn(y,YY,2,Wo):!_.Nn(y,AO,1,Wo)&&!_.Nn(y,YY,3,Wo)):y=!0;
return y});
G=_.wq(M.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",BkL(G)]]));if(M.nestedOrigins!==void 0)for(var E=_.k(M.nestedOrigins),p=E.next();!p.done;p=E.next())G=_.wq(G,new Map([["origin",p.value]]));return Q2E(n,G,q).then(function(y){y=ItM(y.event);if(_.Nn(y,AO,1,Wo)){var Y,A=(Y=_.aT(y,AO,1,Wo))==null?void 0:_.tD(Y,2);A&&K.JSC$19660_logErrorEvent(DAU(A));Y=_.aT(y,AO,1,Wo);_.tD(Y,2)===4?(y=_.aT(y,AO,1,Wo),y={statusCode:11,statusMessage:_.hD(y,
3)}):(y=_.aT(y,AO,1,Wo),y={statusCode:12,statusMessage:_.hD(y,3)});return y}_.Nn(y,YY,3,Wo)?(y=_.aT(y,YY,3,Wo),y={statusCode:1,consentLanguageKeys:_.hD(y,2)}):y={statusCode:1};return y}).catch(function(y){return y.errorCode!==void 0?{statusCode:y.errorCode,
statusMessage:y.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})};
UAv=function(M){var q={};if(M===void 0||M===null)return q;M.getToken()!==void 0&&JCv(M.getToken())&&JCv(M.getToken()).length>0&&(q.scopes=new Set(JCv(M.getToken())));M.getToken()!==void 0&&Zpn(M.getToken())&&Zpn(M.getToken()).length>0&&(q.capabilities=new Set(Zpn(M.getToken())));_.hD(M,3)!==void 0&&(q.consistencyKey=_.hD(M,3));M.getName()!==void 0&&M.getName()!==""&&(q.linkName=M.getName());_.Ev(M,bpw,4)&&(M=_.t0(M,bpw,4),M=Object.assign({},_.hD(M,1)&&{userId:_.hD(M,1)},_.hD(M,2)&&{displayName:_.hD(M,
2)},_.hD(M,3)&&{email:_.hD(M,3)},_.hD(M,5)&&{username:_.hD(M,5)},_.hD(M,4)&&{profilePicture:_.hD(M,4)}),q.profile=M);return q};
xAE=function(M,q){var G=M.flowParams,K;return{serviceId:G.serviceId,sessionId:G.sessionId,currentFlow:M.currentFlow,googleScopesString:q,linkingSessionSerialized:M.session.serialize(),consentLanguageKeys:G.consentLanguageKeys,callerState:M.callerState,dynamicUrlParameters:G.dynamicUrlParameters,partnerConfigMinReadTimestampSerialized:(K=G.partnerConfigMinReadTimestamp)==null?void 0:K.serialize()}};
rC5=function(M){var q=M.googleScopes!==void 0?Array.from(M.googleScopes).join(","):"";z4L(xAE(M,q));q=mA5(M);return q===null?Promise.resolve(Sqw):q.start().then(function(G){var K,n=(K=G.link)==null?void 0:K.consistencyKey;return G.statusCode===1&&M.googleScopes!==void 0&&M.googleScopes.size>0&&n!==void 0?(K=M.flowParams,TkL(K.serviceId,K.sessionId,M.googleScopes,n,K.galService,M.config,G)):G})};
j2I=function(M){var q=mA5(M);return q===null?Promise.resolve(dV({statusCode:7,statusMessage:"Failed to create flow object"},M.callerState)):q.complete().then(function(G){var K,n=(K=G.link)==null?void 0:K.consistencyKey;return G.statusCode===1&&M.googleScopes!==void 0&&M.googleScopes.size>0&&n!==void 0?(K=M.flowParams,TkL(K.serviceId,K.sessionId,M.googleScopes,n,K.galService,M.config,G)):dV(G,M.callerState)},function(G){return dV({statusCode:12,
statusMessage:"Failed to complete the flow: "+G.message},M.callerState)})};
TkL=function(M,q,G,K,n,E,p){return VcU(n,{serviceId:M,sessionId:q,googleScopes:G,consistencyKey:K}).then(function(){return p},function(y){return n.deleteLink({serviceId:M,
sessionId:q,accountLinkingEntryPoint:E.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+y.message}},function(Y){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+Y.message}})})};
mA5=function(M){switch(M.currentFlow){case 1:var q=M.flowParams;M=_.t0(M.session,R4M,1);return vo.createOAuthFlow(q,M);case 2:case 3:return q=M.flowParams,M=_.t0(M.session,ftI,6),hO.createStreamlinedFlow(q,M);default:return null}};
FdI=function(M,q){M===2&&(M=3);var G=0;tO.indexOf(M)!==-1&&(G=tO.indexOf(M)+1);for(M=G;M<tO.length;M++)if(q.has(tO[M]))return tO[M]};
$An=function(M){var q=M.serviceId;var G=M.sessionId;var K=M.config;var n=M.galService;var E=M.capabilities;var p=M.scopes;var y=M.loginHint;var Y=M.callerState;var A=M.consentLanguageKeys;var v=M.linkName;var h=M.dynamicUrlParameters;var t=M.partnerConfigMinReadTimestamp;M=K.dataUsageNoticeConfig?K.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return n.startLinkingSession({serviceId:q,sessionId:G,capabilities:E,scopes:p,loginHint:y,callerState:Y,supportedFlows:HpE(K.supportedFlows),completionUrl:K.completionUrl,
accountLinkingEntryPoint:K.accountLinkingEntryPoint,consentLanguageKeys:A,dataUsageNoticeConfig:M,linkName:v,dynamicUrlParameters:h,partnerConfigMinReadTimestamp:t}).then(function(O){return new e4L(q,G,K,n,O,void 0,Y,A,h,t)})};
ne5=function(M,q,G){var K=(new sZP).getSession(M);if(K===null)return Promise.resolve({statusCode:2});Ms8(M);var n=q0s(K.linkingSessionSerialized),E=K.googleScopesString!==""&&K.googleScopesString!==void 0?new Set(K.googleScopesString.split(",")):void 0,p=K.partnerConfigMinReadTimestampSerialized?GSL(K.partnerConfigMinReadTimestampSerialized):void 0;return KgP(new e4L(M,K.sessionId,q,G,n,E,K.callerState,K.consentLanguageKeys,K.dynamicUrlParameters,p),K.currentFlow,K.consentLanguageKeys)};
z4L=function(M){var q=new sZP;q.storage!==null&&q.storage.set("SAVED_SESSION",M)};
Ms8=function(M){var q=new sZP;if(q.storage!==null){var G=q.storage.get("SAVED_SESSION");G!==void 0&&G.serviceId===M&&q.storage.remove("SAVED_SESSION")}};
HpE=function(M){var q=new Set;M=_.k(M);for(var G=M.next();!G.done;G=M.next())G=G.value,G!==1&&EeE.has(G)&&q.add(EeE.get(G));return q};
dV=function(M,q){q!==void 0&&(M.callerState=q);return M};
NxP=function(M){switch(M){case 5:return 3;case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}};
y$I=function(M){return new kSI(M,new pOM(M))};
Wgg=function(M,q){q=q===void 0?!1:q;var G=document.createElement("div");M&&(G.style.transform="scaleX(-1)");G.style.backgroundColor=q?"rgba(138,180,248,.24)":"#e8f0fe";G.style.height="4px";G.style.overflow="hidden";G.style.position="absolute";G.style.top="0";G.style.width="100%";G.style.zIndex="1500";G.setAttribute("aria-label","Loading");G.setAttribute("aria-live","polite");M=document.createElement("style");M.textContent="@keyframes omdc-linear-progress-primary-indeterminate-translate {\n    0% {\n      transform: translateX(0);\n    }\n\n    20% {\n      animation-timing-function: cubic-bezier(0.5, 0, 0.701732, 0.495819);\n      transform: translateX(0);\n    }\n\n    59.15% {\n      animation-timing-function: cubic-bezier(\n        0.302435,\n        0.381352,\n        0.55,\n        0.956352\n      );\n\n      transform: translateX(83.67142%);\n    }\n\n    100% {\n      transform: translateX(200.611057%);\n    }\n  }@keyframes omdc-linear-progress-primary-indeterminate-scale {\n    0% {\n      transform: scaleX(0.08);\n    }\n\n    36.65% {\n      animation-timing-function: cubic-bezier(0.334731, 0.12482, 0.785844, 1);\n      transform: scaleX(0.08);\n    }\n\n    69.15% {\n      animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n      transform: scaleX(0.661479);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-translate {\n    0% {\n      animation-timing-function: cubic-bezier(0.15, 0, 0.515058, 0.409685);\n      transform: translateX(0);\n    }\n\n    25% {\n      animation-timing-function: cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);\n      transform: translateX(37.651913%);\n    }\n\n    48.35% {\n      animation-timing-function: cubic-bezier(0.4, 0.627035, 0.6, 0.902026);\n      transform: translateX(84.386165%);\n    }\n\n    100% {\n      transform: translateX(160.277782%);\n    }\n  }@keyframes omdc-linear-progress-secondary-indeterminate-scale {\n    0% {\n      animation-timing-function: cubic-bezier(\n        0.205028,\n        0.057051,\n        0.57661,\n        0.453971\n      );\n      transform: scaleX(0.08);\n    }\n\n    19.15% {\n      animation-timing-function: cubic-bezier(\n        0.152313,\n        0.196432,\n        0.648374,\n        1.004315\n      );\n      transform: scaleX(0.457104);\n    }\n\n    44.15% {\n      animation-timing-function: cubic-bezier(\n        0.257759,\n        -0.003163,\n        0.211762,\n        1.38179\n      );\n      transform: scaleX(0.72796);\n    }\n\n    100% {\n      transform: scaleX(0.08);\n    }\n  }";
G.appendChild(M);M=LgL();M.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";M.style.left="-145.166611%";var K=Y0R(q);K.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";M.appendChild(K);G.appendChild(M);M=LgL();M.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";M.style.left="-54.888891%";q=Y0R(q);q.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
M.appendChild(q);G.appendChild(M);return G};
LgL=function(){var M=document.createElement("div");M.style.height="100%";M.style.position="absolute";M.style.transformOrigin="top left";M.style.width="100%";return M};
Y0R=function(M){var q=document.createElement("span");q.style.borderTop=M?"4px solid #669df6":"4px solid #4285f4";q.style.display="inline-block";q.style.position="absolute";q.style.width="100%";return q};
A$M=function(M){return M==null?void 0:_.va$(M).valueOf()};
tsw=function(M){var q=document.body,G=!1,K=function(){G||(G=!0,dos(n,E),setTimeout(function(){q.removeChild(E);q.removeChild(n)},150))},n=veM(M,getComputedStyle(q).direction==="rtl",K),E=hV8(K);
dos(n,E);q.appendChild(E);q.appendChild(n);window.requestAnimationFrame(function(){E.style.opacity="1";n.style.opacity="1";n.style.transform="translate(-50%, -50%) scale(1)";n.children[0].focus()})};
veM=function(M,q,G){var K=document.createElement("div");K.style.position="fixed";K.style.alignItems="center";K.style.backgroundColor=M?"rgb(32, 33, 36)":"white";K.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";K.style.display="flex";K.style.flexDirection="column";K.style.justifyContent="center";K.style.left="50%";K.style.top="50%";K.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";K.style.zIndex="2002";document.body.clientWidth>=
660?(K.style.borderRadius="8px",K.style.minHeight="220px",K.style.maxHeight="90%",K.style.maxWidth="90%",K.style.minWidth="540px"):(K.style.height="100%",K.style.width="100%");K.setAttribute("aria-label","Error");K.setAttribute("aria-modal","true");K.setAttribute("role","alertdialog");K.addEventListener("keydown",function(E){E.key==="Escape"&&G()});
q=OLn(M,q,G);K.appendChild(wOI(q));K.appendChild(q);var n=document.createElement("img");n.src=M?"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";n.style.height="72px";n.style.width="72px";n.style.color="#9aa0a6";n.setAttribute("alt","");K.appendChild(n);n=document.createElement("h1");n.textContent="Something went wrong.  Try again.";
n.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";n.style.lineHeight="24px";n.style.fontSize="16px";n.style.textAlign="center";n.style.letterSpacing="0.1px";n.style.color=M?"rgb(232,234,237)":"#3c4043";K.appendChild(n);K.appendChild(wOI(q));return K};
OLn=function(M,q,G){var K=document.createElement("button");K.style.backgroundColor="transparent";K.style.border="none";K.style.borderRadius="50%";K.style.cursor="pointer";K.style.outline="none";K.style.padding="12px";K.setAttribute("aria-label","Close dialog");K.style.position="absolute";K.style.top="0";q?K.style.right="0":K.style.left="0";K.addEventListener("focus",function(){K.style.backgroundColor=M?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
K.addEventListener("blur",function(){K.style.backgroundColor="transparent"});
K.addEventListener("mouseenter",function(){K.style.backgroundColor=M?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
K.addEventListener("mouseleave",function(){K.style.backgroundColor="transparent"});
K.addEventListener("click",G);K.addEventListener("keydown",function(n){n.key!=="Enter"&&n.key!=="Space"||G()});
q=document.createElement("img");q.src=M?"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";q.style.display="block";q.style.height="24px";q.style.width="24px";q.setAttribute("alt","");K.appendChild(q);return K};
wOI=function(M){var q=document.createElement("div");q.setAttribute("tabindex","0");q.setAttribute("aria-hidden","true");q.addEventListener("focus",function(){return void M.focus()});
return q};
hV8=function(M){var q=document.createElement("div");q.style.backgroundColor="rgba(32,33,36,0.6)";q.style.bottom="0";q.style.left="0";q.style.position="fixed";q.style.right="0";q.style.top="0";q.style.transition=" opacity 150 ms linear";q.style.zIndex="2001";q.addEventListener("click",M);return q};
dos=function(M,q){q.style.opacity="0";M.style.opacity="0";M.style.transform="translate(-50%, -50%) scale(0.8)"};
ChU=function(M,q){M.sandbox&&M.sandbox.add&&(M.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),M.sandbox.add("allow-downloads"));M.src=q};
Oa=function(M){aTg.call(this,M)};
wV=function(M,q){q=q===void 0?!1:q;this.parsedImageUrl_=null;M instanceof oen||(lTI==void 0&&(lTI=new XOs),M=lTI.parse(M.toString(),q));M=this.parsedImageUrl_=M;M.JSC$19872_parsedOptions_==void 0&&((q=M.getOptions())||(q=""),M.JSC$19872_parsedOptions_=(new PhI).parse(q));aTg.call(this,M.JSC$19872_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;M=this.parsedImageUrl_;q=M.uri_.JSC$10036_port_;this.JSC$19874_domain_=M.uri_.JSC$10036_domain_+(q?":"+q:"");this.JSC$19874_query_=
this.parsedImageUrl_.uri_.JSC$10036_queryData_.toString()};
iLP=function(M){this.mode=4;this.data=M;this.parsedData=[];M=0;for(var q=this.data.length;M<q;M++){var G=[],K=this.data.charCodeAt(M);K>65536?(G[0]=240|(K&1835008)>>>18,G[1]=128|(K&258048)>>>12,G[2]=128|(K&4032)>>>6,G[3]=128|K&63):K>2048?(G[0]=224|(K&61440)>>>12,G[1]=128|(K&4032)>>>6,G[2]=128|K&63):K>128?(G[0]=192|(K&1984)>>>6,G[1]=128|K&63):G[0]=K;this.parsedData.push(G)}this.parsedData=Array.prototype.concat.apply([],this.parsedData);this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),
this.parsedData.unshift(187),this.parsedData.unshift(239))};
c$n=function(M){this.typeNumber=0;this.errorCorrectLevel=M===void 0?2:M;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]};
Cd=function(M,q){if(M.length==void 0)throw Error("Ok`"+M.length+"`"+q);for(var G=0;G<M.length&&M[G]==0;)G++;this.num=Array(M.length-G+q);for(q=0;q<M.length-G;q++)this.num[q]=M[q+G]};
gev=function(M,q){this.totalCount=M;this.dataCount=q};
BxR=function(){this.buffer=[];this.length=0};
QZv=function(){var M=!1;if(_.os4()){M=_.Oe();var q="";_.PHY()?(q=/Windows (?:NT|Phone) ([0-9.]+)/,q=(M=q.exec(M))?M[1]:"0.0"):_.Iy()?(q=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,q=(M=q.exec(M))&&M[1].replace(/_/g,".")):_.Xyw()?(q=/Mac OS X ([0-9_.]+)/,q=(M=q.exec(M))?M[1].replace(/_/g,"."):"10"):_.Wy(_.Oe(),"KaiOS")?(q=/(?:KaiOS)\/(\S+)/i,q=(M=q.exec(M))&&M[1]):_.os4()?(q=/Android\s+([^\);]+)(\)|;)/,q=(M=q.exec(M))&&M[1]):_.ijy()&&(q=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,q=(M=q.exec(M))&&M[1]);M=
q||""}return M};
bL5=function(M,q){this.JSC$19897__htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(q)for(var G in q)this.JSC$19897__htOption[G]=q[G];this.JSC$19897__htOption.useSVG&&(ITn=Dog);this.JSC$19897__android=QZv();this.JSC$19897__el=M;this._oQRCode=null;this._oDrawing=new ITn(this.JSC$19897__el,this.JSC$19897__htOption);this.JSC$19897__htOption.text&&(M=this.JSC$19897__htOption.text,this._oQRCode=new c$n(this.JSC$19897__htOption.correctLevel),umn(this._oQRCode,
M),q=this._oQRCode,J$R(q,!1,ZLw(q)),this.JSC$19897__el.title=M,this._oDrawing.draw(this._oQRCode),this.makeImage())};
UoM=function(M,q,G,K,n){M.save();var E=new Path2D;E.roundRect(q,G,K*7,K*7,K*2);E.roundRect(q+K,G+K,K*5,K*5,K*1.3);E.roundRect(q+2*K,G+2*K,K*3,K*3,K);M.clip(E,"evenodd");M.fillStyle=n;M.fillRect(0,0,M.canvas.width,M.canvas.height);M.restore()};
aP=function(M,q){if(typeof M!=="function")throw Error("Rk");return _.Kj.setTimeout(function(){M()},q)};
oP=function(){};
zVM=function(M,q,G,K,n){(new oP).debug("TestLoadImageWithRetries: "+n);if(K==0)G(!1);else{var E=n||0;K--;xo5(M,q,function(p){p?G(!0):_.Kj.setTimeout(function(){zVM(M,q,G,K,E)},E)})}};
xo5=function(M,q,G){var K=new oP;K.debug("TestLoadImage: loading "+M);var n=new Image;n.onload=function(){try{K.debug("TestLoadImage: loaded"),mo8(n),G(!0)}catch(E){}};
n.onerror=function(){try{K.debug("TestLoadImage: error"),mo8(n),G(!1)}catch(E){}};
n.onabort=function(){try{K.debug("TestLoadImage: abort"),mo8(n),G(!1)}catch(E){}};
n.ontimeout=function(){try{K.debug("TestLoadImage: timeout"),mo8(n),G(!1)}catch(E){}};
_.Kj.setTimeout(function(){if(n.ontimeout)n.ontimeout()},q);
n.src=M};
mo8=function(M){M.onload=null;M.onerror=null;M.onabort=null;M.ontimeout=null};
S0L=function(){this.front_=[];this.back_=[]};
Txn=function(M,q){this.action=M;this.params=q||{}};
r$P=function(M,q){_.uI.call(this);this.delay_=new _.ZG(this.JSC$20023_onTick_,0,this);_.oE(this,this.delay_);this.JSC$20021_interval_=5E3;this.nextTickTime_=0;if(typeof M==="function")q&&(M=(0,_.Ju)(M,q));else if(M&&typeof M.handleEvent==="function")M=(0,_.Ju)(M.handleEvent,M);else throw Error("ya");this.JSC$20023_listener_=M};
lp=function(M,q,G,K,n,E,p,y,Y,A,v,h,t,O){G=G===void 0?!1:G;K=K===void 0?function(){return""}:K;
n=n===void 0?!1:n;E=E===void 0?!1:E;p=p===void 0?!1:p;y=y===void 0?function(){return _.HF({})}:y;
Y=Y===void 0?!1:Y;v=v===void 0?!1:v;h=h===void 0?!1:h;t=t===void 0?!1:t;O=O===void 0?!1:O;this.JSC$20024_pathPrefix_=M;this.defaultQueryParams_=q;this.pubsub_=new _.BR;this.reconnectTimer_=new r$P(this.safeReconnect_,this);this.JSC$20024_channel_=null;this.JSC$20024_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$20024_pendingMessages_=[];this.enableAsyncTest_=G;this.JSC$20024_getXsrfToken_=K;this.useAsyncBrowserChannelHandler_=E;this.getAuthorizationHeader_=
y;this.getAuthorizationHeaderSync_=A;this.enableCachedUpdateAuthorizationHeader_=p;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.HF();this.enableLoungeTokenRefresh_=n;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=Y;this.disableMdxAuthForNonPlaybackMessages_=v;this.disableMdxAuthForAdMessages_=h;this.enableMdxAuthForConnectionOnly_=t;this.disableMdxAuthForShortsMessages_=O;this.JSC$20024_channelOpenedCounter=new jZI;this.JSC$20024_channelClosedCounter=new Vs8;this.channelMessageSentCounter=
new RV5;this.JSC$20024_channelMessageReceivedCounter=new fTn;this.JSC$20024_channelErrorCounter=new Fgs;this.pendingMapsOnClosedCounter=new HLL;this.undeliveredMapsOnClosedCounter=new eVR};
Xo=function(M){this.scheme="https";this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;M=M||document.location.href;var q=Number(_.kJ(M)[4]||null)||"";q&&(this.port=":"+q);this.domain=_.pD(M)||"";M=_.Oe();M.search("MSIE")>=0&&_.vy(M.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)};
Po=function(M){M=M||{};this.name=M.name||"";this.id=M.id||M.screenId||"";this.token=M.token||M.loungeToken||"";this.uuid=M.uuid||M.dialId||"";this.idType=M.screenIdType||"normal";this.secret=M.screenIdSecret||""};
$on=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(M){var q=Math.random()*16|0;return(M=="x"?q:q&3|8).toString(16)})};
sU5=function(M){return _.z9(M,function(q){return{key:q.id,name:q.name}})};
MbR=function(M,q){return _.J4(M,function(G){return G||q?!G!=!q?!1:G.id==q.id:!0})};
co=function(M,q){return _.J4(M,function(G){return ip(G,q)})};
Eng=function(){var M=qzv(),q=GhM();if(KGn()){var G=M,K=_.Zji(G,q);K<0&&_.DDy(G,-(K+1),0,q)}M=nnU(M);if(M.length==0)try{_.I_e("remote_sid")}catch(n){}else try{_.Df("remote_sid",M.join(","),-1)}catch(n){}};
qzv=function(){var M=_.d2("yt-remote-connected-devices")||[];M.sort(_.J4$);return M};
nnU=function(M){if(M.length==0)return[];var q=M[0].indexOf("#"),G=q==-1?M[0]:M[0].substring(0,q);return _.z9(M,function(K,n){return n==0?K:K.substring(G.length)})};
NII=function(M){_.AK("yt-remote-connected-devices",M,86400)};
GhM=function(){if(kh5)return kh5;var M=_.d2("yt-remote-device-id");M||(M=$on(),_.AK("yt-remote-device-id",M,31536E3));for(var q=qzv(),G=1,K=M;_.zF(q,K);)G++,K=M+"#"+G;return kh5=K};
p3w=function(){return _.d2("yt-remote-session-browser-channel")};
KGn=function(){return _.d2("yt-remote-session-screen-id")};
YzM=function(M){M.length>5&&(M=M.slice(M.length-5));var q=_.z9(yYU(),function(K){return K.loungeToken}),G=_.z9(M,function(K){return K.loungeToken});
_.TpF(G,function(K){return!_.zF(q,K)})&&LGU();
_.AK("yt-remote-local-screens",M,31536E3)};
yYU=function(){return _.d2("yt-remote-local-screens")||[]};
LGU=function(){_.AK("yt-remote-lounge-token-expiration",!0,86400)};
gV=function(M){M||(_.vE("yt-remote-session-screen-id"),_.vE("yt-remote-session-video-id"));Eng();M=qzv();_.my(M,GhM());NII(M)};
AYP=function(){WGE();return Bo?!!Bo.get("yt-remote-use-staging-server"):!1};
WGE=function(){if(!Bo){var M=_.mgi();M&&(Bo=new _.Ux(M))}};
tbI=function(M,q,G,K,n){G=G===void 0?function(){return""}:G;
var E=function(){return new lp(Qh(M,"/bc"),q,!1,G,K)};
return _.w("enable_mdx_web_channel_desktop")?new dQI(function(){return new vnw(Qh(M,"/wc"),q,G)}):new hYI(E,n)};
a$M=function(){var M=O5n;w3M();IP.push(M);C_U()};
DN=function(M,q){w3M();var G=onw(M,String(q));IP.length==0?l$R(G):(C_U(),_.Gc(IP,function(K){K(G)}))};
up=function(M){DN("CP",M)};
w3M=function(){IP||(IP=_.sx("yt.mdx.remote.debug.handlers_")||[],_.Y5("yt.mdx.remote.debug.handlers_",IP))};
l$R=function(M){var q=(JO+1)%50;JO=q;X35[q]=M;P_E||(P_E=q==49)};
C_U=function(){var M=IP;if(X35[0]){var q=P_E?JO:-1,G={};do G={record$jscomp$15:void 0},q=(q+1)%50,G.record$jscomp$15=X35[q],_.Gc(M,function(K){return function(n){n(K.record$jscomp$15)}}(G));
while(q!=JO);X35=Array(50);JO=-1;P_E=!1}};
onw=function(M,q){var G=(Date.now()-i5v)/1E3;G.toFixed&&(G=G.toFixed(3));var K=[];K.push("[",G+"s","] ");K.push("[","yt.mdx.remote","] ");K.push(M+": "+q,"\n");return K.join("")};
ZN=function(M){_.z0.call(this);this.JSC$20048_logName_=M;this.screens=[]};
Ua=function(M){ZN.call(this,"LocalScreenService");this.JSC$20055_http_=M;this.loungeTokenRefreshTimer_=NaN;bp(this);this.info("Initializing with "+cYM(this.screens))};
xY=function(M,q){q=q===void 0?!1:q;ZN.call(this,"ScreenService");this.JSC$20061_http_=M;this.disableAutomaticScreenCache_=q;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};gnI(this)};
zY=function(M,q,G){_.z0.call(this);this.JSC$20065_logName_=G;this.JSC$20065_screenService_=M;this.receiver_=q;this.screen_=null};
jUR=function(M,q,G){G.disableCastApi?mu("Cannot initialize because disabled by Mdx config."):BII()?QUI(M,G)&&(I$L(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?DQw(q):(window.__onGCastApiAvailable=function(K,n){K?DQw(q):(Si("Failed to load cast API: "+n),uTE(!1),I$L(!1),_.vE("yt-remote-cast-available"),_.vE("yt-remote-cast-receiver"),JYs(),q(!1))},G.loadCastApiSetupScript?_.cF(Z58):window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?
b5n()>=60&&UQM():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?xQL():b5n()>=89?zYE():(mQ5(),Szw(TIv.map(rYw))))):mu("Cannot initialize because not running Chrome")};
JYs=function(){mu("dispose");var M=TY();M&&M.dispose();_.Y5("yt.mdx.remote.cloudview.instance_",null);Vbv(!1);_.wby(RYL);RYL.length=0};
f$w=function(){return!!_.d2("yt-remote-cast-installed")};
FGP=function(){var M=_.d2("yt-remote-cast-receiver");return M?M.friendlyName:null};
H5P=function(){mu("clearCurrentReceiver");_.vE("yt-remote-cast-receiver")};
eYM=function(){return f$w()?TY()?TY().getCastSession():(Si("getCastSelector: Cast is not initialized."),null):(Si("getCastSelector: Cast API is not installed!"),null)};
sHv=function(M,q){$QP()?TY().setConnectedScreenStatus(M,q):Si("setConnectedScreenStatus called before ready.")};
BII=function(){var M=_.Oe().search(/ (CrMo|Chrome|CriOS)\//)>=0;return _.sv||M};
QUI=function(M,q){var G=!1;TY()||(M=new rV(M,q),M.subscribe("yt-remote-cast2-availability-change",function(K){_.AK("yt-remote-cast-available",K);$B("yt-remote-cast2-availability-change",K)}),M.subscribe("yt-remote-cast2-receiver-selected",function(K){mu("onReceiverSelected: "+K.friendlyName);
_.AK("yt-remote-cast-receiver",K);$B("yt-remote-cast2-receiver-selected",K)}),M.subscribe("yt-remote-cast2-receiver-resumed",function(K){mu("onReceiverResumed: "+K.friendlyName);
_.AK("yt-remote-cast-receiver",K);$B("yt-remote-cast2-receiver-resumed",K)}),M.subscribe("yt-remote-cast2-session-change",function(K){mu("onSessionChange: "+Mh8(K));
K||_.vE("yt-remote-cast-receiver");$B("yt-remote-cast2-session-change",K)}),_.Y5("yt.mdx.remote.cloudview.instance_",M),G=!0);
mu("cloudview.createSingleton_: "+G);return G};
TY=function(){return _.sx("yt.mdx.remote.cloudview.instance_")};
DQw=function(M){uTE(!0);I$L(!1);TY().init(!1,function(q){q?(Vbv(!0),_.CmD("yt-remote-cast2-api-ready")):(Si("Failed to initialize cast API."),uTE(!1),_.vE("yt-remote-cast-available"),_.vE("yt-remote-cast-receiver"),JYs());M(q)})};
mu=function(M){DN("cloudview",M)};
Si=function(M){DN("cloudview",M)};
uTE=function(M){mu("setCastInstalled_ "+M);_.AK("yt-remote-cast-installed",M)};
$QP=function(){return!!_.sx("yt.mdx.remote.cloudview.apiReady_")};
Vbv=function(M){mu("setApiReady_ "+M);_.Y5("yt.mdx.remote.cloudview.apiReady_",M)};
I$L=function(M){_.Y5("yt.mdx.remote.cloudview.initializing_",M)};
ji=function(M){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(M)};
kOM=function(M){WGE();if(!Bo||!Bo.get("yt-remote-disable-remote-module-for-dev")){M=_.R9("MDX_CONFIG")||M;agg();Eng();Vh||(Vh=new Xo(M?M.loungeApiHost:void 0),AYP()&&(Vh.basePath="/api/loungedev"));RP||(RP=_.sx("yt.mdx.remote.deferredProxies_")||[],_.Y5("yt.mdx.remote.deferredProxies_",RP));qFM();var q=fd();if(!q){var G=new xY(Vh,M?M.disableAutomaticScreenCache||!1:!1);_.Y5("yt.mdx.remote.screenService_",G);q=fd();var K={};M&&(K={appId:M.appId,disableDial:M.disableDial,theme:M.theme,loadCastApiSetupScript:M.loadCastApiSetupScript,
disableCastApi:M.disableCastApi,enableDialLoungeToken:M.enableDialLoungeToken,enableCastLoungeToken:M.enableCastLoungeToken,forceMirroring:M.forceMirroring});_.Y5("yt.mdx.remote.enableConnectWithInitialState_",M?M.enableConnectWithInitialState||!1:!1);jUR(G,function(E){E?Fo()&&sHv(Fo(),"YouTube TV"):G.subscribe("onlineScreenChange",function(){$B("yt-remote-receiver-availability-change")})},K)}if(M&&!_.sx("yt.mdx.remote.initialized_")){_.Y5("yt.mdx.remote.initialized_",!0);
Ho("Initializing: "+(0,_.i2)(M));ei.push(_.tp("yt-remote-cast2-api-ready",function(){$B("yt-remote-api-ready")}));
ei.push(_.tp("yt-remote-cast2-availability-change",function(){$B("yt-remote-receiver-availability-change")}));
ei.push(_.tp("yt-remote-cast2-receiver-selected",function(){GOs();$B("yt-remote-auto-connect","cast-selector-receiver")}));
ei.push(_.tp("yt-remote-cast2-receiver-resumed",function(){$B("yt-remote-receiver-resumed","cast-selector-receiver")}));
ei.push(_.tp("yt-remote-cast2-session-change",KiI));ei.push(_.tp("yt-remote-connection-change",function(E){E?sHv(Fo(),"YouTube TV"):nWg()||(sHv(null,null),H5P())}));
ei.push(_.tp("yt-remote-cast2-session-failed",function(){$B("yt-remote-connection-failed")}));
K=EWI();M.isAuto&&(K.id+="#dial");var n=M.capabilities||[];n.length>0&&(K.capabilities=n);K.name=M.device;K.app=M.app;(M=M.theme)&&(K.theme=M);Ho(" -- with channel params: "+(0,_.i2)(K));K?(_.AK("yt-remote-session-app",K.app),_.AK("yt-remote-session-name",K.name)):(_.vE("yt-remote-session-app"),_.vE("yt-remote-session-name"));_.Y5("yt.mdx.remote.channelParams_",K);q.start();Fo()||Nrv()}}};
yM5=function(){var M=fd().instance_.$_gos();var q=phn();q&&$Y()&&(MbR(M,q)||M.push(q));return sU5(M)};
LiR=function(){var M=yM5(),q=phn();q||(q=nWg());return _.J4(M,function(G){return q&&ip(q,G.key)?!0:!1})};
phn=function(){var M=Fo();if(!M)return null;var q=fd().getScreens();return co(q,M)};
KiI=function(M){Ho("remote.onCastSessionChange_: "+Mh8(M));if(M){var q=phn();if(q&&q.id==M.id){if(sHv(q.id,"YouTube TV"),M.idType=="shortLived"&&(M=M.token))YFR&&(YFR.token=M),(q=$Y())&&q.setLoungeToken(M)}else q&&WiI(),AMP(M,1)}else $Y()&&WiI()};
WiI=function(){$QP()?TY().stopSession():Si("stopSession called before API ready.");var M=$Y();M&&(M.disconnect(1),dKs(null))};
vWU=function(){var M=$Y();return M&&M.getProxyState()!=3?new sd($Y(),void 0):null};
Ho=function(M){DN("remote",M)};
fd=function(){if(!h25){var M=_.sx("yt.mdx.remote.screenService_");h25=M?new thw(M):null}return h25};
Fo=function(){return _.sx("yt.mdx.remote.currentScreenId_")};
OsE=function(M){_.Y5("yt.mdx.remote.currentScreenId_",M)};
GOs=function(){_.Y5("yt.mdx.remote.connectData_",null)};
$Y=function(){return _.sx("yt.mdx.remote.connection_")};
dKs=function(M){var q=$Y();GOs();M||OsE("");_.Y5("yt.mdx.remote.connection_",M);RP&&(_.Gc(RP,function(G){G(M)}),RP.length=0);
q&&!M?$B("yt-remote-connection-change",!1):!q&&M&&$B("yt-remote-connection-change",!0)};
nWg=function(){var M=KGn();if(!M)return null;var q=fd();if(!q)return null;q=q.getScreens();return co(q,M)};
AMP=function(M,q){whR?YFR=M:(OsE(M.id),M=new Mf(Vh,M,EWI(),_.sx("yt.mdx.remote.enableConnectWithInitialState_")||!1),M.connect(q,_.sx("yt.mdx.remote.connectData_")),M.subscribe("beforeDisconnect",function(G){$B("yt-remote-before-disconnect",G)}),M.subscribe("beforeDispose",function(){$Y()&&dKs(null)}),M.subscribe("browserChannelAuthError",function(){var G=phn();
G&&G.idType=="shortLived"&&($QP()?TY().handleBrowserChannelAuthError():Si("refreshLoungeToken called before API ready."))}),dKs(M))};
Nrv=function(){var M=nWg();M?(Ho("Resume connection to: "+Mh8(M)),AMP(M,0)):(gV(),H5P(),Ho("Skipping connecting because no session screen found."))};
qFM=function(){var M=EWI();if(_.xP.isEmpty(M)){M=GhM();var q=_.d2("yt-remote-session-name")||"",G=_.d2("yt-remote-session-app")||"";M={device:"REMOTE_CONTROL",id:M,name:q,app:G,mdxVersion:3};M.authuser=String(_.R9("SESSION_INDEX","0"));(q=_.R9("DELEGATED_SESSION_ID"))&&(M.pageId=String(q));_.Y5("yt.mdx.remote.channelParams_",M)}};
EWI=function(){return _.sx("yt.mdx.remote.channelParams_")||{}};
Cqv=function(){var M,q;return _.L(function(G){if(G.nextAddress==1)return(_.GEs()||_.w("use_new_nwl"))&&_.$sy().isNetworkAvailable()?G.yield(_.W2(),2):G.return();if(G.nextAddress!=3)return(M=G.yieldResult)?G.yield(RUE(M),3):G.return();q=G.yieldResult;if(!q.length)return G.return();q.forEach(function(K){var n={timestamp:K.timestamp};K=K.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:K.appShellAssetLoadReport,options:n}:K.clientError?{payloadName:"clientError",payload:K.clientError,
options:n}:void 0;K&&_.ml(K.payloadName,K.payload,K.options)});
q.length===100&&_.r8.addLowPriorityJob(Cqv);_.gL(G)})};
aQ5=function(M){if(M.playerResponse){if(M=M.playerResponse,M.messages&&M.messages.length>0&&(M=M.messages.find(function(q){return!(!q||!q.mealbarPromoRenderer)}))&&M.mealbarPromoRenderer)return M.mealbarPromoRenderer}else if(M.response&&(M=M.response)&&M.overlay&&M.overlay.mealbarPromoRenderer)return M.overlay.mealbarPromoRenderer};
oWg=function(M){if(M.response){var q=M.response;if(q&&q.overlay&&q.overlay.tooltipRenderer)return q.overlay.tooltipRenderer}if(M.playerResponse&&(M=M.playerResponse,M.messages&&M.messages.length>0&&(M=M.messages.find(function(G){return!(!G||!G.tooltipRenderer)}))&&M.tooltipRenderer))return M.tooltipRenderer};
Xh5=function(M){if(!lQv&&(M=M||_.R9("ZWIEBACK_PING_URLS"))&&M.length){lQv=!0;for(var q=0;q<M.length;q++)_.M8(M[q])}};
isI=function(M){if(_.xP.get(_.R9("PLAYER_VARS",{}),"privembed",!1)!="1"){M&&Us5();try{Pqv().then(function(){},function(){}),_.lj(isI,18E5)}catch(q){_.eK(q)}}};
cMU=function(){var M=_.El(),q=M.getFlag(119),G=window.devicePixelRatio>1;document.body&&_.zZ(document.body,"exp-invert-logo")&&(G&&!_.zZ(document.body,"inverted-hdpi")?_.Zg(document.body,"inverted-hdpi"):!G&&_.zZ(document.body,"inverted-hdpi")&&_.um(document.body,"inverted-hdpi"));q!=G&&(_.Ng(0,119,G),M.save())};
gWn=function(M){return M.filter(function(q){return"ypcGetCartEndpoint"in q||"ypcFixInstrumentEndpoint"in q})};
Brv=function(M){return M.filter(function(q){return!_.C(q,_.WUv)})};
IQU=function(M,q){var G,K,n,E,p,y,Y;_.L(function(A){switch(A.nextAddress){case 1:G=_.Qr.getInstance();K=_.$A.instance;n=_.QZ.instance;if(!n)return QHv(M,K,q),A.return();_.Cv(A,2);M.onLoadingCommand&&K.resolveCommand(M.onLoadingCommand);return A.yield(G.getCurrentPositionFromGeolocation(),4);case 4:E=A.yieldResult;if(!M.resolveLocationCommand){A.jumpTo(5);break}p=G.createLocationInfo(E);return A.yield(_.Dt(n,M.resolveLocationCommand,{locationInfo:p}),6);case 6:y=A.yieldResult;if(!y||"error"in y&&y.error||
y.errorMetadata)return QHv(M,K,q),A.return();var v;if(y==null?0:(v=y.onResponseReceivedActions)==null?0:v.length){v=_.k(y.onResponseReceivedActions);for(var h=v.next();!h.done;h=v.next())K.resolveCommand(h.value)}(_.C(M.onSuccessCommand,_.Jl)||_.C(M.onSuccessCommand,_.n_))&&_.jP(q.hostElement,"yt-navigate",{endpoint:M.onSuccessCommand,reload:!0});case 5:_.KF(A,0);break;case 2:Y=_.i5(A);if(Y instanceof GeolocationPositionError&&Y.code===GeolocationPositionError.PERMISSION_DENIED)return M.onDeniedCommand&&
K.resolveCommand(M.onDeniedCommand),A.return();QHv(M,K,q);_.gL(A)}})};
QHv=function(M,q,G){M.onFailureCommand&&(q.resolveCommand(M.onFailureCommand),_.VW(G.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))};
uaR=function(M,q){var G=_.C(M,_.Zkl);if(G&&q){M=G.videoIds||[G.videoId];var K;q=(K=_.jP(q,"yt-lockup-requested",{videoIds:M}).detail)==null?void 0:K.returnValue;var n;G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?n=q?q:M.map(function(E){return{videoId:E,navigationEndpoint:G.videoCommand}}):q&&(n=q);
n&&(K=n.map(function(E){var p=Object,y=p.assign;var Y=E.navigationEndpoint;if(!_.C(Y,_.p_)){var A=_.C(Y,_.Jl);if(A){if(delete A.index,delete A.playlistId,A=_.C(Y==null?void 0:Y.commandMetadata,_.Mg),A==null?0:A.url){var v=A.url;v=_.zt(v,"list");v=_.zt(v,"index");A.url=v}}else Y=void 0}return y.call(p,{},E,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:Y})}),DKI(K,G))}};
JMg=function(M){var q=_.KV();if(M=_.C(M,_.bkd))M.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&q.clearQueue(),M.closeMiniplayer&&_.AL().resolve(_.lq).close(!0)};
bsn=function(M){Zsw(_.KV(),M)};
UKP=function(M){var q;(M=(q=_.C(M,_.uXl))==null?void 0:q.setVideoIds)&&M.forEach(function(G){_.iUP(_.KV(),G)})};
z2w=function(M){xKU(_.KV(),M)};
mKw=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(M){return!1}};
SFU=function(M){var q=["h","m","s"],G=_.Sw(q);G.reverse();var K={};M=(M.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(p){var y=(p.match(/[hms]/)||[""])[0];return y?(K[y]=parseInt(p.match(/\d+/)[0],10),!1):!0});
for(M.reverse();M.length&&G.length;){var n=G.shift();n in K||(K[n]=parseInt(M.shift(),10))}if(M.length||K.s>59||K.m>59||K.h>9)return null;var E="";q.forEach(function(p){K[p]&&(E+=""+K[p]+p)});
return E||null};
TrL=function(M,q){var G=_.KHp(q,{},M,!0);return new Promise(function(K,n){G.listenOnce("n",function(){n(Error("Cl`"+G.JSC$29757_getErrorDescription()))});
G.listenOnce("l",function(){var E=G.getResponseCode();if(E!==200)n(Error("Dl`"+q+"`"+M.type+"`"+M.size+"`"+E));else try{K(JSON.parse(G.getResponseText()).encryptedBlobId)}catch(p){n(p)}});
G.run()})};
rMU=function(M){return M.substring(M.indexOf(":")+1,M.indexOf(";"))};
jHE=function(M){return new Promise(function(q,G){var K=new FileReader;K.onloadend=function(){try{var n=new Uint8Array(K.result);n.length<8&&G(void 0);var E=n.subarray(0,8);n="";for(var p=0;p<E.length;p++)n+=("0"+E[p].toString(16)).substr(-2);n.startsWith("ffd8ff")?q("image/jpeg"):n.startsWith("47494638")?q("image/gif"):n.startsWith("89504e470d0a1a0a")?q("image/png"):n.startsWith("424d")?q("image/bmp"):q(void 0)}catch(y){G(y)}};
K.onerror=G;K.readAsArrayBuffer(M)})};
VhR=function(M){return new Promise(function(q,G){var K=new Image;K.crossOrigin="anonymous";K.onload=function(){var n=document.createElement("canvas");n.width=K.naturalWidth;n.height=K.naturalHeight;var E=n.getContext("2d");if(!E)throw Error("El");E.drawImage(K,0,0);E=rMU(M);n.toBlob(function(p){p?q(p):G()},E)};
K.src=M})};
fQv=function(M,q){var G;if(((G=_.C(M,_.p_))==null?void 0:G.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var K;_.jP((K=q.hostElement)!=null?K:q,"yt-shorts-reset");_.TqI(_.AL().resolve(_.vq),M).then(function(E){R2L(E,q,M)})}else{var n;
_.fx((n=q.hostElement)!=null?n:q,[M]).then(function(E){E&&R2L(E.data,q,M)})}};
R2L=function(M,q,G){if(M){var K=_.C(M.replacementEndpoint,_.p_);if(K){M.sequenceContinuation&&(K.sequenceParams=M.sequenceContinuation);var n;_.jP((n=q.hostElement)!=null?n:q,"yt-navigate",{endpoint:M.replacementEndpoint})}else if((M==null?void 0:M.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(M==null?0:M.watchStatus)&&_.C(M.watchStatus,_.awp)){var E;_.jP((E=q.hostElement)!=null?E:q,"yt-navigate",{endpoint:G})}}};
FiI=function(M){var q=_.AL().resolve(_.xy),G=_.gx.currentPageTypeSelector(q.getState())||"";q=_.gx.currentPageSubTypeSelector(q.getState())||"";G=G==="ytd-browse"&&q==="home";return _.w("web_guide_entry_enable_cache_for_non_home_pages")?(M=(M==null?void 0:M.navigationEndpoint)&&_.K_(M.navigationEndpoint)==="home",{disableCache:G&&M}):{disableCache:G}};
e2P=function(M,q,G){if(q!=null&&q.isPrimary){a:{if(G&&G.length){var K=q.formattedTitle;var n={};K&&(n.header={panelHeaderViewModel:{title:_.tj(K)}});K=[];G=_.k(G);for(var E=G.next();!E.done;E=G.next()){E=_.C(E.value,Hsv);var p=void 0,y=void 0,Y=((p=E)==null?0:p.formattedTitle)?_.tj((y=E)==null?void 0:y.formattedTitle):void 0;p=void 0;y=(p=E)==null?void 0:p.isPrimary;if(E&&Y&&!y){Y={title:Y};E.navigationEndpoint&&(Y.rendererContext={commandContext:{onTap:{innertubeCommand:E.navigationEndpoint}}});
p=[];var A=y=void 0;if(((y=E)==null?0:(A=y.thumbnail)==null?0:A.thumbnails)&&E.thumbnail.thumbnails.length>0){y=_.k(E.thumbnail.thumbnails);for(A=y.next();!A.done;A=y.next())p.push({url:A.value.url});Y.leadingAccessory={avatarViewModel:{image:{sources:p},avatarImageSize:"AVATAR_SIZE_XS"}}}else if(y=void 0,(y=E.icon)==null?0:y.iconType)p.push({clientResource:{imageName:E.icon.iconType||""}}),Y.leadingImage={sources:p};y=p=void 0;((p=E)==null?0:(y=p.badges)==null?0:y.liveBroadcasting)?Y.trailingImage=
{sources:[{clientResource:{imageName:"live"}}]}:E.count&&(Y.trailingLabel={content:E.count.toString()});K.push({listItemViewModel:Y})}}K.length!==0?(n.content={listViewModel:{listItems:K}},n.rendererContext={commandContext:{onHoverEnd:{hideSheetCommand:{}}}}):n=void 0;if(n){n={showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:n}},contextualSheetPresentationConfig:{position:"SHEET_POSITION_RIGHT",hoverConfig:{preventCloseWhileHovered:!0,hideDelayMs:3E3}}}};break a}}n=void 0}n&&
(q.mouseEnterEndpoint=n,q.mouseLeaveEndpoint={hideSheetCommand:{}});M.push({guideEntryRenderer:q})}};
$Kg=function(M){if(!M)return!1;try{if(M.host&&M.host.tagName==="YT-FORMATTED-STRING"&&M.host.id==="contenteditable-textarea"||M.nodeType===Node.ELEMENT_NODE&&M.tagName==="YTD-COMMENT-INPUT")return!0}catch(q){return!1}return $Kg(M.parentNode)};
qf=function(M){return M?M.tagName==="A"&&M.href&&M.classList.contains("yt-simple-endpoint"):!1};
sTs=function(M){return M?M.tagName==="IMG"&&M.classList.contains("emoji"):!1};
M$I=function(M,q,G){if(!M)return null;var K=qf(M);if(K&&G)return q=M.pathname.substring(M.pathname.indexOf("/channel/")+9),document.createTextNode("@"+q);if(K&&!G)return document.createTextNode("");if(sTs(M))return G=M.alt,M=M.dataset.emojiId,!M&&q&&(q=_.Vu(q,G))&&q.isCustomEmoji&&(M=q.emojiId),M?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+M+">"):document.createTextNode(G);K=M.cloneNode(!1);for(var n=0;n<M.childNodes.length;++n){var E=M$I(M.childNodes[n],q,G);E&&K.appendChild(E)}return K};
GP=function(M){return M?qf(M)?M:GP(M.lastChild):null};
qv8=function(M){return M?qf(M)?M:qv8(M.firstChild):null};
GmI=function(M){if(!M)return null;for(var q=M.previousSibling;q;)if(q.nodeType===Node.ELEMENT_NODE&&q.nodeName==="BR")q=q.previousSibling;else if(q.nodeType===Node.TEXT_NODE&&/\s+/.test(q.textContent))q=q.previousSibling;else break;(q=GP(q))?M=q:M=(M=M.parentNode)?GP(M.previousElementSibling):null;return M};
K6v=function(M){if(!M)return null;for(var q=M.nextSibling;q;)if(q.nodeType===Node.ELEMENT_NODE&&q.nodeName==="BR")q=q.nextSibling;else if(q.nodeType===Node.TEXT_NODE&&/\s+/.test(q.textContent))q=q.nextSibling;else break;return(q=qv8(q))?q:K6v(M.parentNode)};
n1I=function(M){var q=_.fL(),G=q.JSC$11347_getStartNode();if(!$Kg(G.parentNode))return null;q=q.JSC$11347_getStartOffset();if(G.nodeType===Node.TEXT_NODE){var K=_.jX(G,qf);if(K){if(M&&q===0||!M&&q===G.length)return K}else{if(M&&q===G.length)return!G||G.nodeName==="BR"||G.nextElementSibling&&_.Fm(G.nextElementSibling,"display")==="block"?null:qv8(G.nextElementSibling);if(!M&&q===0)return G?GP(G.previousElementSibling):null}}if(G.nodeType===Node.ELEMENT_NODE)if(M){if(0<=q&&q<G.childNodes.length)return qv8(G.childNodes[q])}else if(0<
q&&q<=G.childNodes.length)return GP(G.childNodes[q-1]);return null};
E1I=function(M,q,G){if(!M)return null;if(M.nodeType===Node.TEXT_NODE)if(G){var K=GmI(M);if(K&&!/^\s+\S/.test(M.wholeText.substr(0,q)))return K}else if((K=K6v(M))&&!/\S\s+/.test(M.wholeText.substr(q,M.wholeText.length)))return K;return M.nodeType===Node.ELEMENT_NODE?G?GmI(M.childNodes[q]):K6v(M.childNodes[q]):E1I(M.parentNode,q,G)};
Nlv=function(M){if(M.hasChildNodes())switch(M.tagName){case "DIV":case "A":case "SPAN":var q="";for(M=M.firstChild;M;M=M.nextSibling)q+=Nlv(M);return q;default:return""}else switch(M.nodeType){case 3:return M.textContent;default:return""}};
kmI=function(M){switch(M){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"}};
p7g=function(M){return M.map(function(q){return{settingsRadioOptionRenderer:{title:_.VQ(q.name),asideText:_.VQ(q.approximateSize),id:kmI(q.format)}}})};
L6w=function(M){if(M&&M.length!==0)return M.filter(yDn()).map(function(q){return{settingsRadioOptionRenderer:{title:q.name,asideText:q.approximateSize,id:kmI(q.formatType)}}})};
Kq=function(M){if(M)return M.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")};
Yvn=function(M,q){M=new Set(M!=null?M:[]);if(M.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(M.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(M.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(M.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(M.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(q)return"YOUTUBE_ENTITY_TYPE_DEFAULT"};
W6n=function(M){var q=M.indexOf("(");return q!==-1?M.substring(q+1,M.length-1):M};
_.dn5=function(M,q,G,K,n,E){G||(G=AD8);var p;(p=_.C(G.commandMetadata,_.Mg))!=null&&p.url||(G=Error("Jl`"+JSON.stringify(G)),_.T6(G),G=AD8);G=_.xP.unsafeClone(G);p=_.F4(_.C(G.commandMetadata,_.Mg).url,"search_query",M);_.eA(location.href,"sv")==="1"&&(_.C(G,_.Ep).params="EgOAAgE%3D",p=_.F4(p,"sv","1"));_.C(G,_.Ep)&&(_.C(G,_.Ep).query=M);p=p.replace(/%20/g,"+");_.C(G.commandMetadata,_.Mg).url=p;n=_.w("desktop_enable_entity_suggest")?{entityMid:n}:{};_.AL().resolve(_.vR).resolveCommand(G,{form:{tempData:Object.assign({},
{gs_l:q,oq:K!=null?K:M},n,{isFromShorts:E})}})};
v15=function(M){switch(M){case 38:return-1;case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}};
t$s=function(M,q,G,K,n,E){var p=_.xP.clone(hWs);p.locale=_.R9("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;p.report={description:n||"<empty>"};n=_.R9("SBOX_SETTINGS",{});q=q.join(",");var y=Date.now();M={choice_cc:K,choice_id_cc:G,choices_sc:q,gl:n.REQUEST_DOMAIN,hl:n.REQUEST_LANGUAGE,query:M,time:y};E&&(M.choice_additional_comment_cc=E);_.ysS(p,M)};
Ouw=function(M){var q=new Map;q.set("authuser",_.R9("SESSION_INDEX","0"));return _.wq(M,q)};
CZv=function(M){var q;return _.L(function(G){switch(G.nextAddress){case 1:if(!M||!w7w(M))return G.return(null);q=null;switch(_.R9("INNERTUBE_CLIENT_NAME")){case "WEB":return G.jumpTo(2);case "WEB_REMIX":q=M.getPlayer()}G.jumpTo(3);break;case 2:return G.yield(M.getPlayerPromise(),4);case 4:q=G.yieldResult;G.jumpTo(3);break;case 3:return G.return(q)}})};
w7w=function(M){return["ytd-player","ytmusic-player"].includes(String(M.tagName||"").toLowerCase())};
ahg=function(M){M=Math.round(M);return M%2?M-1:M};
o1I=function(M){M=Math.round(M);return M%2===0?M-1:M};
lhw=function(M){var q,G,K;if(M=(q=M.createPlaylistDialogFormSchema)==null?void 0:(G=q.fieldSchemas)==null?void 0:(K=G.title)==null?void 0:K.validationSchema)for(q=[M.syncStep,M.asyncStep].filter(function(n){return n!==void 0}),q=_.k(q),G=q.next();!G.done;G=q.next()){G=G.value.rules;
if(!G)break;G=_.k(G);for(G=G.next();!G.done;G=G.next())return _.C(G.value,_.EdE)}};
PZv=function(M){var q,G,K;if(M=(q=M.createPlaylistDialogFormSchema)==null?void 0:(G=q.fieldSchemas)==null?void 0:(K=G.visibility)==null?void 0:K.validationSchema)for(q=[M.syncStep,M.asyncStep].filter(function(n){return n!==void 0}),q=_.k(q),G=q.next();!G.done;G=q.next()){G=G.value.rules;
if(!G)break;G=_.k(G);for(K=G.next();!K.done;K=G.next())if(K=_.C(K.value,X75))return q=void 0,(q=K.translations)==null?void 0:q.visibilityNotValidErrorMessage}};
ius=function(){var M,q;return(q=(M=_.AL().resolve(_.WR(_.Qx)))==null?void 0:M())!=null?q:!1};
cDL=function(M){var q=21;if(!M)return q;q+=M.headerTitle?27:0;q+=M.headerTitle&&M.hasHeaderActionHeader?4:0;return q+=M.headerTitle&&M.headerSubtitle?16:0};
g1U=function(M){var q=0;if(!M)return q;q+=M.hasFooterPrimaryButton||M.hasFooterSecondaryButton?48:0;q+=M.footerTrailingLabel||M.footerLeadingLabel?30:0;return q+=M.hasFooterPrimaryButton||M.hasFooterSecondaryButton||!M.footerTrailingLabel&&!M.footerLeadingLabel?0:12};
BlU=function(M){var q=new _.BR,G=M;return{subscribe:function(K){q.subscribe("changed",K)},
dispatch:function(K,n){var E=G;if(K==="Touch Start")G=Object.assign({},E,{isAnimating:!1,initialY:n.event.touches[0].clientY});else if(K==="Touch Move"){K=n.contentScrollable?-1*(E.initialY-24):0;var p,y=(p=n.headerDivHeight)!=null?p:cDL(n.header),Y;p=(Y=n.footerDivHeight)!=null?Y:g1U(n.footer);Y=Math.min(n.fullContentWrapperHeight,n.heightMap[n.contentWrapperId]+y-p);G=Object.assign({},E,{currentY:Math.max(K,n.event.touches[0].clientY-E.initialY),maxHeightForContentWrapper:Math.min(Y,Math.max(0,
(E.isFullScreen?Y:n.contentWrapperHeight)-E.currentY))})}else G=K==="Snap To Full Screen"?Object.assign({},E,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:n.maxHeight}):K==="Snap To Neutral Position"?Object.assign({},E,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:n.maxHeight}):K==="Close Sheet"?Object.assign({},E,{isAnimating:!0,currentY:n.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:n.maxHeight}):E;q.publish("changed",G)}}};
QTv=function(M){return _.sq(function(q){M(q);return!1})};
Ih5=function(){_.AL().resolve(_.ZB).closeSheet()};
Dnw=function(M){var q,G,K,n,E,p,y,Y,A,v,h;return{headerTitle:(q=M.headerTitle)==null?void 0:q.call(M),headerSubtitle:(G=M.headerSubtitle)==null?void 0:G.call(M),headerActionHeader:M.headerActionHeader,footerPrimaryButton:M.footerPrimaryButton,footerSecondaryButton:M.footerSecondaryButton,footerButtonType:(K=M.footerButtonType)==null?void 0:K.call(M),footerLeadingLabel:(n=M.footerLeadingLabel)==null?void 0:n.call(M),footerTrailingLabel:(E=M.footerTrailingLabel)==null?void 0:E.call(M),shouldShowIcons:(p=
M.shouldShowIcons)==null?void 0:p.call(M),skipContentClick:(y=M.skipContentClick)==null?void 0:y.call(M),additionalClassName:(Y=M.additionalClassName)==null?void 0:Y.call(M),onClosedCallback:M.onClosedCallback,focusOnClose:(A=M.focusOnClose)==null?void 0:A.call(M),isDisabled:(v=M.isDisabled)==null?void 0:v.call(M),disabledCommand:(h=M.disabledCommand)==null?void 0:h.call(M),headerFn:M.headerFn,contentFn:M.contentFn,footerFn:M.footerFn,hasHeaderFn:M.hasHeaderFn(),hasContentFn:M.hasContentFn(),hasFooterFn:M.hasFooterFn(),
hasFooterPrimaryButton:M.hasFooterPrimaryButton(),hasFooterSecondaryButton:M.hasFooterSecondaryButton(),hasHeaderActionHeader:M.hasHeaderActionHeader()}};
uWw=function(M){switch(M){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""}};
JDR=function(M){switch(M){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""}};
Zun=function(M){switch(M){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""}};
buI=function(M,q,G){q.forEach(function(K){_.Pg(_.AL().resolve(_.Q$),K)});
_.VW(M,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",G])};
mnv=function(M,q,G,K){var n=_.C(G,_.q1).commandLifeCycleConfig;n&&n.onStartCommand&&_.FH(M,[n.onStartCommand],q);_.XT(q);var E=_.QZ.instance;E&&_.I2(E,G)?_.Dt(E,G,K).then(function(p){if(!p||(p==null?0:p.error))return p=_.C(G,_.q1).serializedTransactionFlowLoggingParams,_.P3(q),_.Aj(new nq("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",p));_.P3(q);return{data:p}}).then(function(p){_.P3(q);
Unv(p.data);var y=p.data.command;y&&_.FH(M,[y],q);y=xnI(G,p.data);if(!y){var Y=p.data;p=!1;if(Y&&Y.command&&_.C(Y.command,_.eP)){var A;Y=((A=_.C(Y.command,_.eP))==null?void 0:A.commands)||[];for(A=0;A<Y.length;A++)if(_.C(Y[A],_.FFx)){p=!0;break}}p||_.Qf('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!y&&n&&n.onSuccessCommand?_.FH(M,[n.onSuccessCommand],q):y&&n&&n.onFailureCommand&&_.FH(M,[n.onFailureCommand],q)},function(){_.P3(q);
n&&n.onFailureCommand&&_.FH(M,[n.onFailureCommand],q);zWU(G)}):_.T6(Error("Vl"),"ERROR")};
SvI=function(M,q,G){var K=[q];G&&K.push(G);return _.fx(M,K).then(function(n){var E=_.C(q,_.q1).serializedTransactionFlowLoggingParams,p=n.data,y=xnI(q,p);y?n=_.Aj(new nq(y,E)):Unv(p);return n},function(){var n=_.C(q,_.q1).serializedTransactionFlowLoggingParams;
zWU(q);return _.Aj(new nq("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",n))})};
xnI=function(M,q){M=_.C(M,_.q1).serializedTransactionFlowLoggingParams;var G=null;switch(q.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":G="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":G="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":G="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}G?_.ua(G,M):kMw(M);return G};
zWU=function(M){_.ua("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.C(M,_.q1).serializedTransactionFlowLoggingParams)};
Unv=function(M){if(M.trackingParams){var q=_.Cx(),G=_.wt();q&&G&&_.QQ(q,G,_.yx(M.trackingParams))}};
TlE=function(M,q,G){var K=_.QZ.instance,n=_.Zc$(_.R9("YPC_MB_URL")),E=(new _.ujH).init(),p=_.JfF(),y=_.C(G,_.j4v).languageCode;y===void 0?_.T6(Error("Ii"),"ERROR"):_.oi([E,n]).then(function(){var Y={ctk:_.b_.payments.business.integration.ClientTokenFactory.createClientToken(y,p)};K&&_.I2(K,G)?_.Dt(K,G,Y).then(function(A){return{data:A}}).then(function(A){_.jP(q,"yt-service-request-completed",A);
A.code!=="ERROR"&&(A=A.data.command)&&_.FH(M,[A],q)}):_.T6(Error("Vl"),"ERROR")})};
V$I=function(M,q,G,K){var n=_.QZ.instance;n&&_.I2(n,G)?_.Dt(n,G,K).then(function(E){return{data:E}}).then(function(E){rDI(M,q,G,E)},function(){jT5(G)}):(n=_.AL().resolve(_.WR(_.L_)))&&n.requestDataForServiceEndpoint(G,K).then(function(E){rDI(M,q,G,E)},function(){jT5(G)})};
rDI=function(M,q,G,K){_.jP(q,"yt-service-request-completed",K);if(K.code&&K.code=="ERROR")jT5(G);else{(K=K.data.commands)&&_.FH(M,K,q);var n;(M=(n=_.C(G,_.emp))==null?void 0:n.serializedYpcPauseFlowLoggingParams)&&M&&_.dS("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",M)}};
jT5=function(M){var q;(M=(q=_.C(M,_.emp))==null?void 0:q.serializedYpcPauseFlowLoggingParams)&&M&&_.dS("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
F6v=function(M,q,G){var K=_.QZ.instance;K&&_.I2(K,G)?_.Dt(K,G).then(function(n){return{data:n}}).then(function(n){RWw(M,q,G,n)},function(){fhI(G)}):(K=_.AL().resolve(_.WR(_.L_)))&&K.requestDataForServiceEndpoint(G).then(function(n){RWw(M,q,G,n)},function(){fhI(G)})};
RWw=function(M,q,G,K){_.jP(q,"yt-service-request-completed",K);K.code&&K.code=="ERROR"?fhI(G):((K=K.data.commands)&&_.FH(M,K,q),(M=_.C(G,_.$Bd).serializedYpcResumeFlowLoggingParams)&&M&&_.dS("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",M))};
fhI=function(M){(M=_.C(M,_.$Bd).serializedYpcResumeFlowLoggingParams)&&M&&_.dS("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",M,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")};
Hus=function(M){M=M===void 0?{}:M;_.AL().resolve(_.lCR).showFeedbackDialog(M.customProductData,M.feedbackContent,M.onFeedbackSubmitted,M.bucket)};
eWL=function(M){M=M===void 0?{}:M;_.AL().resolve(_.lCR).showHelpDialog(M.helpContext,M.articleId,M.productData)};
$ns=function(){eWL()};
s5R=function(){Hus()};
qBE=function(M,q,G){var K,n,E,p,y,Y,A;return _.L(function(v){switch(v.nextAddress){case 1:K=_.C(M,MWL);if((n=K)==null?0:n.productId){Y={productId:K.productId,bucket:K.bucket,enableAnonymousFeedback:(y=K.enableAnonymousFeedback)!=null?y:!0,allowNonLoggedInFeedback:!0};A={feedbackChoice:G.feedbackChoice};if(!_.w("web_collect_offline_state")){v.jumpTo(8);break}_.Cv(v,9);return v.yield(h4I(A),11)}p={bucket:(E=K)==null?void 0:E.bucket};if(!_.w("web_collect_offline_state")){v.jumpTo(4);break}p.customProductData=
{};_.Cv(v,5);return v.yield(h4I(p.customProductData),7);case 7:_.KF(v,4);break;case 5:_.i5(v);case 4:Hus(p);v.jumpTo(0);break;case 11:_.KF(v,8);break;case 9:_.i5(v);case 8:_.avy(A),_.CTe("GFEEDBACK",A),K.productId==="5295751"&&(A.client_attestation=Number(_.R9("CATSTAT",0))),K.productId==="5295751"&&(A.client_time=Date.now()/1E3/3600),K.productId==="5295751"&&(A.original_playback_id=_.Uwl||""),_.ysS(Y,A),_.gL(v)}})};
G$I=function(M){if(M=_.C(M,_.Pr4)){var q={bucket:M.bucketIdentifier};M.additionalDatas&&(q.customProductData={},M.additionalDatas.forEach(function(G){if(G=G.userFeedbackEndpointProductSpecificValueData)q.customProductData[G.key]=G.value}));
Hus(q)}};
KEv=function(M){var q=_.GC.getInstance();var G=_.Ge("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var K=_.Ge("DELETE",void 0,"Delete"),n=_.Ge("CANCEL",void 0,"Cancel");G=c_I(G,void 0,K,n,{signal:"DELETE_ALL_DOWNLOADS"});_.Js(q,[{openPopupAction:G}],M)};
EEI=function(){return _.L(function(M){return M.nextAddress==1?M.yield(_.AL().resolve(_.zv),2):M.yield(nEL(),0)})};
NBv=function(M){var q,G;return _.L(function(K){return K.nextAddress==1?(G=(q=_.C(M,_.sQ))==null?void 0:q.targetId)?K.yield(_.AL().resolve(_.zv),3):K.jumpTo(0):K.yield(_.AL().resolve(_.x4).deleteVideo(G),0)})};
pp5=function(M){var q,G;return _.L(function(K){return K.nextAddress==1?(G=(q=_.C(M,_.sQ))==null?void 0:q.targetId)?K.yield(_.AL().resolve(_.zv),3):K.jumpTo(0):K.yield(k$s(_.AL().resolve(_.x4),G),0)})};
LEw=function(M){var q,G;return _.L(function(K){return(G=(q=_.C(M,_.sQ))==null?void 0:q.targetId)?K.yield(ycg(G),0):K.jumpTo(0)})};
WEM=function(){_.w("kevlar_woffle_refresh_dl_load_killswitch")||YBM()};
deP=function(){_.w("kevlar_woffle")&&_.BE.instance&&AcI()};
hKw=function(M){var q;if((q=_.C(M,_.KL))==null||!q.videoId)return!1;vEv(_.AL().resolve(_.x4),_.C(M,_.KL),M.clickTrackingParams);return!0};
OeM=function(M){var q;if((q=_.C(M,_.E0))==null||!q.playlistId)return!1;tWL(_.AL().resolve(_.x4),_.C(M,_.E0),M.clickTrackingParams);return!0};
CoE=function(M){var q=_.C(M,_.I6v);(q==null?void 0:q.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(q==null?void 0:q.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||wpU(_.AL().resolve(_.x4),_.C(M,_.I6v))};
oEE=function(M){M=_.C(M,_.yvp);var q;(M==null?0:(q=M.actions)==null?0:q.length)&&alP(M)};
Pov=function(M){var q,G;return _.L(function(K){q=_.C(M,llw);return(G=q)!=null&&G.localWatchHistoryCommandType?K.yield(Xpv(q),0):K.return()})};
ieM=function(M){setTimeout(function(){requestAnimationFrame(M)},80)};
ccI=function(M){return Object.entries(M).map(function(q){return q.join(":")}).join(";")};
BBn=function(M){var q,G,K;_.L(function(n){if(n.nextAddress==1)return n.yield(gEL(),2);q=n.yieldResult;G=_.$A.instance;switch(q){case "granted":K=M.getLocationCommand;break;case "denied":K=M.openDeniedDialogAction;break;case "prompt":K=M.openCollectionDialogAction;break;default:K=M.openCollectionDialogAction}K&&G.resolveCommand(K);_.gL(n)})};
gEL=function(){var M,q;return _.L(function(G){if(G.nextAddress==1)return M="prompt",navigator.permissions?G.yield(navigator.permissions.query({name:"geolocation"}),3):G.jumpTo(2);G.nextAddress!=2&&(q=G.yieldResult,M=q.state);return G.return(M)})};
IlI=function(){_.L(function(M){return M.yield(_.Q5w(),0)})};
Des=function(){var M,q,G;return _.L(function(K){if(K.nextAddress==1)return M=_.AL().resolve(_.YU),M?K.yield(_.Dt(M,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.j1(Error("Yl")),K.return(void 0));if(q=K.yieldResult){if(q.errorMetadata)return _.j1(Error("Zl`"+q.errorMetadata.status+"`"+q.error)),K.return(void 0);G=q.datasyncIds;_.bvI=G.length;return K.return(G)}_.j1(Error("$l"));return K.return(void 0)})};
uZs=function(){Des().then(function(M){M&&(jOE(M),yCv(M),ugw(M),OpM(M))})};
Jcs=function(M){_.r8.addLowPriorityJob(function(){var q,G,K,n,E;return _.L(function(p){switch(p.nextAddress){case 1:if(_.w("ytidb_clear_optimizations_killswitch")){p.jumpTo(2);break}q=_.JL("clear");if(q.startsWith("V")&&q.endsWith("||")){var y=[q];jOE(y);yCv(y);ugw(y);OpM(y);return p.return()}G=Jjg();K=wxI();return p.yield(LdP(),3);case 3:return n=p.yieldResult,p.yield(Vo5(),4);case 4:if(E=p.yieldResult,!(G||K||n||E))return p.return();case 2:M.isNetworkAvailable()?uZs():M.listenOnce("publicytnetworkstatus-online",
uZs),_.gL(p)}})})};
Ed=function(M){M={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:_.bc(M)}}}};_.$A.instance&&_.$A.instance.resolveCommand(M)};
ZeL=function(M){if(M){var q=_.nl();_.aQ(q,3854,void 0,{layer:0,parentLayer:4});switch(M){case 1:var G=238708;break;case 2:G=238715;break;case 3:G=238710;break;case 6:G=238709}G&&(M=_.GE(q,{veType:G}))&&_.X3(q,M)}};
bew=function(M){if(M){var q=_.nl();_.aQ(q,3854,void 0,{layer:0,parentLayer:4});switch(M){case 1:var G=238714;break;case 2:G=238711;break;case 8:G=238709;break;case 7:G=238713;break;case 3:case 4:case 5:G=238712}G&&(M=_.GE(q,{veType:G}))&&_.X3(q,M)}};
UeI=function(M){switch(M.latencyType){case 0:_.aJ("consent_primitive_flow");_.oJ("cpit",M.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.oJ("cpist",M.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.oJ("cprtif",M.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.oJ("cprtli",M.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.oJ("cprt",M.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.oJ("cpdt",M.timestampEpochMillis,"consent_primitive_flow");
break;case 8:_.oJ("cpjct",M.timestampEpochMillis,"consent_primitive_flow")}};
flI=function(M,q){var G,K,n,E,p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S,m;return _.L(function(R){switch(R.nextAddress){case 1:_.Cv(R,2);(K=(G=_.C(M,xew))==null?void 0:G.serializedConsentRequest)||(K=(n=_.C(M,zKs))==null?void 0:n.serializedConsentRequest);K&&(E=meR(_.ew(K)));if(E===void 0)return R.return();p=SBg(E);p.latencyCallback=UeI;q&&TBP(p,function(){q.then(function(se){se.pauseVideo();(new rcg).increment()})});
return((y=_.C(M,xew))==null?void 0:y.consentAction)==="CONSENT_ACTION_PREWARM"||((Y=_.C(M,zKs))==null?void 0:Y.consentAction)==="CONSENT_ACTION_PREWARM"?R.yield(j5M(p),5):R.yield(VWP(p),6);case 6:A=R.yieldResult;v=_.yj(A,Nf);if(v===1){if(((h=_.aT(A,kX,1,Nf))==null?void 0:_.tD(h,1))===1||((t=_.aT(A,kX,1,Nf))==null?void 0:_.tD(t,1))===2||((O=_.aT(A,kX,1,Nf))==null?void 0:_.tD(O,1))===3)_.C(M,zKs)?Ed(_.Ge("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
Ed(_.Ge("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));ZeL((a=_.aT(A,kX,1,Nf))==null?void 0:_.tD(a,1),_.Ya(A,RKL,3,_.WX()))}else v===2?(((g=pq(A))==null?void 0:_.tD(g,1))===5?_.C(M,zKs)?Ed(_.Ge("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):Ed(_.Ge("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((D=pq(A))==null?void 0:_.tD(D,1))===1||((J=pq(A))==null?void 0:_.tD(J,1))===4?Ed(_.Ge("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((Z=pq(A))==null?void 0:_.tD(Z,1))===7&&((V=E)==null?void 0:(S=_.t0(V,y8,4))==null?void 0:_.tD(S,4))!==1&&Ed(_.Ge("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),bew((m=pq(A))==null?void 0:_.tD(m,1))):Ed(_.Ge("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));R.jumpTo(5);break;case 5:_.KF(R,0);break;case 2:_.i5(R),Ed(_.Ge("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.gL(R)}})};
HeR=function(){if(!FEI.has("Worker")){FEI.set("Worker",!0);var M={api:"BROWSER_API_WEB_WORKER"};M.available="Worker"in window?!0:!1;_.ml("apiTest",M)}};
eKw=function(M){return typeof M==="undefined"?"-1":String(Math.ceil(M/1048576))};
qSL=function(M,q){$eR(new siw(_.C(q,M8L).addToken,_.C(q,M8L).commonToken)).then(function(){_.jP(M,"yt-invoke-instrument-manager-action-completed")},function(G){_.jP(M,"yt-invoke-instrument-manager-action-error",G)})};
Lq=function(){return _.R9("HTML_DIR")==="rtl"};
GZP=function(){var M,q;return(q=(M=window).matchMedia)==null?void 0:q.call(M,"(prefers-reduced-motion: reduce)").matches};
KPL=function(M){var q=_.AL().resolve(_.WR(_.ix));if(q&&q.isAnyTransitionEnabled){var G={};q.viewTransitionCoordinator.registerElement(M,(G.slide="miniplayer-page-transition",G["lockup-to-watch"]="miniplayer-page-transition",G["learning-journey"]="miniplayer-page-transition",G))}};
nuU=function(M,q,G){return{horizontalAlignment:M.x+G.width/2<q.width/2?"west":"east",verticalAlignment:M.y+G.height/2<q.height/2?"north":"south"}};
N6L=function(M,q,G,K,n){n=n===void 0?new _.mK(0,0):n;M=Eun(M,q,G,K,!1);return new _.mK(M.x+n.x,M.y+n.y)};
Eun=function(M,q,G,K,n){n=(n===void 0?0:n)?400:0;return new _.mK(M==="west"?16+(Lq()?n:0):G.width-K.width-16-(Lq()?0:n),q==="north"?16:G.height-K.height-16)};
kZI=function(M,q){var G=0;M&&(G+=76);q&&(G+=285);return G};
pTv=function(M){return _.iZ(M)};
yon=function(M){var q=1;M=M.split(":");for(var G=[];q>0&&M.length;)G.push(M.shift()),q--;M.length&&G.push(M.join(":"));return G};
LPI=function(M){var q=new _.ku;return _.oT(q,11,M)};
YSs=function(M){var q={};M=M.getAllResponseHeaders().split("\r\n");for(var G=0;G<M.length;G++)if(!_.Lj(M[G])){var K=yon(M[G]),n=K[0];K=K[1];if(typeof K==="string"){K=K.trim();var E=q[n]||[];q[n]=E;E.push(K)}}return _.xP.map(q,function(p){return p.join(", ")})};
yh=function(M,q){return M.JSC$9800_xhr_?M.JSC$9800_xhr_.getResponseHeader(q):null};
WP8=function(M,q){if(M.isDisposed())throw Error("Ea");M.aG.s9("n");var G=_.QJ(M.aG,function(){return M.kbG([q.m2,q.fBq,q.sQ5,q.y4A])},"n");
M.aG.tyH(G.length);M.aG.sP();return G};
YX=function(M,q,G){Array.isArray(G)||(G=[String(G)]);_.ApB(M.JSC$10036_queryData_,q,G);return M};
AcI=function(){var M=_.BE.instance;_.L(function(q){return M.deferredInstallPrompt?q.yield(M.deferredInstallPrompt.prompt(),0):q.jumpTo(0)})};
Aon=function(M,q,G){if(_.TF(M))_.Gc(M,q,G);else for(M=_.opJ(M);;){var K=M.next();if(K.done)break;q.call(G,K.value,void 0,M)}};
dpI=function(M,q){var G=[];Aon(q,function(K){try{var n=_.CY.prototype.getWrapper.call(this,K,!0)}catch(E){if(E=="Storage: Invalid value was encountered")return;throw E;}n===void 0?G.push(K):_.a_B(n)&&G.push(K)},M);
return G};
CmM=function(M,q){dpI(M,q).forEach(function(G){_.CY.prototype.remove.call(this,G)},M)};
vuw=function(M){var q=_.fh;q._minimumZ=Math.max(q._minimumZ,M)};
h_P=["www.youtube-nocookie.com","www.youtubeeducation.com","youtube.googleapis.com"];t8v=function(M,q){_.ka(M.vm);M.vm=q};
OEw=function(M,q,G,K){M.setState(5);var n=!!M.hSS&&h_P.includes(_.pD(M.hSS)||"");try{var E=new _.Ii({program:q,globalName:G,urL:{disable:!_.w("att_web_record_metrics")||!_.w("att_skip_metrics_for_cookieless_domains_ks")&&n,cW:"aGIf"}});E.v58.then(function(){M.setState(6);K&&K(q)});
t8v(M,E)}catch(p){M.setState(7),p instanceof Error&&_.j1(p)}};
wTP=function(M,q,G,K,n,E){var p=p===void 0?"trayride":p;G?(M.setState(2),_.cF(_.bI(G),function(){if(window[p])OEw(M,K,p,n);else{M.setState(3);var y=_.bhF(G),Y=document.getElementById(y);Y&&(_.oje(y),Y.parentNode.removeChild(Y));_.j1(new _.bj("BL:ULB",G))}},E)):q?(E=_.iI("SCRIPT"),q instanceof _.qX?_.nv(E,q):E.textContent=q,E.nonce=_.MX(document),document.head.appendChild(E),document.head.removeChild(E),window[p]?OEw(M,K,p,n):(M.setState(4),_.j1(new _.bj("BL:ULBJ")))):_.j1(new _.bj("BL:ULV"))};
C2U=function(){this.state=1;this.vm=null;this.hSS=void 0};
_.N=C2U.prototype;_.N.initialize=function(M,q,G,K){this.hSS=K;if(M.program){var n;K=(n=M.interpreterUrl)!=null?n:null;if(M.interpreterSafeScript)n=_.rK$(M.interpreterSafeScript);else{var E;n=(E=M.interpreterScript)!=null?E:null}M.interpreterSafeUrl&&(K=_.jG(M.interpreterSafeUrl).toString());wTP(this,n,K,M.program,q,G)}else _.j1(Error("tf"))};
_.N.isInitialized=function(){return!!this.vm};
_.N.getState=function(){return this.state};
_.N.isLoading=function(){return this.state===2};
_.N.invoke=function(M){M=M===void 0?{}:M;var q;this.vm?q=WP8(this.vm,{m2:M}):q=null;return q};
_.N.dispose=function(){t8v(this,null);this.setState(8)};
_.N.setState=function(M){this.state=M};
var aOU=function(M,q){return M.vm.snapshot(q)},oug=function(M,q){var G=_.tL("botguard_async_snapshot_timeout_ms",3E3);
q=q===void 0?{}:q;G=G===void 0?3E3:G;return M.vm?new Promise(function(K,n){var E=!1,p=_.r8.addJob(function(){E=!0;n(Error("uf"))},1,G);
M.vm?aOU(M,{m2:q}).then(function(y){_.r8.cancelJob(p);E||K(y)}).catch(function(y){_.r8.cancelJob(p);
E||n(y)}):(_.r8.cancelJob(p),K(null))}):Promise.resolve(null)},lOw=["att/log"],AD8;
AD8={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var XTg={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},P2n=function(M,q){return _.EX(M,{mode:"readwrite",enableRetries:!0},function(G){return _.OVH(G,q,"settingEntity")})},iE8=function(M,q,G){return _.EX(M,{mode:"readonly",
enableRetries:!0},function(K){return _.asv(K,q,G)})},coI=function(M){if(!M.storage)return!1;
a:{if(M.storage){try{var q=M.storage.get("TLPQtimestamp")}catch(G){}M=Number(q);if(!isNaN(M))break a}M=void 0}return M?Date.now()-M<864E5:!1},gu8=function(M){if(M.storage){try{var q=M.storage.get("TLPQindex")}catch(G){}M=Number(q);
if(!isNaN(M))return M}},B6v=function(M,q){M.queueProxy&&q.forEach(function(G){if(G.videoId&&G.trackingParams&&M.queueProxy instanceof _.F3){var K=_.Cx();
M.queueProxy.attributionData.set(G.videoId,{enqueueingVe:_.yx(G.trackingParams).getAsJson(),enqueueingCsn:K?K:void 0,clientEnqueueingTimeMs:Math.floor((0,_.d8)()).toString()})}})},Qig=function(M){var q=_.GVx(M);
q!=M.currentSnapState_&&(M.currentSnapState_=q,M.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},W6=function(M){this.JSC$13220_networkManager_=M;
this.partCallbacks_=[]};
W6.prototype.getCacheKeyForEndpoint=function(M){return _.LU$(M,!1)};
W6.prototype.onPartsCallback_=function(M){this.partCallbacks_.forEach(function(q){M&&q(M)})};
var Ay=function(M,q,G){W6.call(this,M);this.player_=q;this.autoplayData_=G};
_.l(Ay,W6);Ay.prototype.getCacheKeyForEndpoint=function(M){return _.LU$(M,!!this.autoplayData_)};
Ay.prototype.getTempData=function(M,q){q=q.timeBeforeNextVideo;M={itct:M.clickTrackingParams,lact:_.Ap(),pbis:q,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(M.autonav=1);return M};
Ay.prototype.getXhrParams=function(M){return Object.assign({pbj:"prefetch"},M)};
Ay.prototype.getParams=function(M){M={frags:M.fragmentsRequested.join(",")};_.w("kevlar_droppable_prefetchable_requests")&&(M.prefetch=1);return M};
var IOL=function(M){M.playerEvents_.forEach(function(q){M.player.removeEventListener(q.eventName,q.callback)});
M.playerEvents_.length=0},dD=function(M,q,G){this.player=M;
this.JSC$13230_taskManager=q;this.prefetchDelay=G;this.completionResolver_=null;this.playerEvents_=[]};
dD.prototype.start=function(){var M=this;this.completionResolver_=_.u8();_.l2(this.completionResolver_.promise,function(){IOL(M);M.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var Dps=function(M,q,G){M.player.addEventListener(q,G);M.playerEvents_.push({eventName:q,callback:G})},ul8={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},JoU={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},ZEU=function(M,q,G){dD.call(this,M,q,G);this.cueId_="playbackTrigger-"+Math.random()};
_.l(ZEU,dD);
ZEU.prototype.prepareTrigger=function(M){var q=this,G=this.player.getDuration(),K=this.player.getVideoData(),n=K.isLive&&K.hasProgressBarBoundaries;if(n&&K.progressBarEndPositionUtcTimeMillis){var E=K.progressBarEndPositionUtcTimeMillis/1E3;isNaN(E)||(G=E)}var p=0;this.prefetchDelay>=0?n?K.progressBarStartPositionUtcTimeMillis&&(K=K.progressBarStartPositionUtcTimeMillis/1E3,isNaN(K)||(p=K+this.prefetchDelay)):p=this.prefetchDelay:p=G+this.prefetchDelay;n?this.player.addUtcCueRange(this.cueId_,p,G):
this.player.addCueRange(this.cueId_,p,G);_.l2(M.promise,function(){q.player.removeCueRange(q.cueId_)});
Dps(this,"onCueRangeEnter",function(y){y==q.cueId_&&M.resolve(G-p)})};
var bEU=function(M,q){M.fragmentConfiguration_[q].requiredKeys.every(function(G){return!!M.prefetchedData_[G]})&&(M.validatedFragments_.push(q),q=M.missingFragments_.indexOf(q),q!==-1&&M.missingFragments_.splice(q,1))},UpI=function(M){M.prefetchedFragments_.forEach(function(q){bEU(M,q)})},xpL=function(M,q,G){this.pageFragments_=M;
this.prefetchedFragments_=q;this.fragmentConfiguration_=JoU;this.prefetchedData_=G;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;UpI(this)},z_n=function(){},mpI=function(M){this.JSC$13244_playlistManager_=M};
_.l(mpI,z_n);mpI.prototype.getPrefetchEndpoint=function(){return this.JSC$13244_playlistManager_.getAutoplayEndpoint()};
var SSv=function(M){this.autonavEndpoints_=M};
_.l(SSv,z_n);SSv.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var T6U=function(M,q,G,K,n){this.autonavEndpoints=M;this.foregroundTrigger=q;this.backgroundTrigger=G;this.pageType=K;this.isInPlaylist=n},row=function(M,q){if(M.webPrefetchData&&M.webPrefetchData.navigationEndpoints&&M.webPrefetchData.navigationEndpoints.length){M=M.webPrefetchData.navigationEndpoints;
var G=_.C(M[0],_.Jl);if(G.watchEndpointSupportedPrefetchConfig&&G.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var K=G.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;G=K.playbackRelativeSecondsPrefetchCondition;G=typeof G==="number"&&Math.abs(G)<q.videoDuration?G:void 0;K=K.countdownUiRelativeSecondsPrefetchCondition;K=typeof K!=="number"||_.w("prefetch_job_config_cleanup_ks")&&q.inPlaylist?void 0:K;if(typeof K==="number")return new T6U(M,q.makeUpNextTrigger(K),q.makePlaybackTrigger(K),
"watch",q.inPlaylist);if(typeof G==="number")return new T6U(M,q.makePlaybackTrigger(G),null,"watch",q.inPlaylist)}}},jiR=function(M){return M.prefetchJobConfig_.backgroundTrigger?_.$2(_.u7j)()==0?M.prefetchJobConfig_.backgroundTrigger:M.prefetchJobConfig_.foregroundTrigger:M.prefetchJobConfig_.foregroundTrigger},V85=function(M){_.OS(document,"visibilitychange",M.onVisibilityChange_,!1,M)},v6=function(M){W6.call(this,M)};
_.l(v6,W6);v6.prototype.getCacheKeyForEndpoint=function(M){return W6.prototype.getCacheKeyForEndpoint.call(this,M)};
v6.prototype.getTempData=function(){return{}};
v6.prototype.getXhrParams=function(M){return M};
v6.prototype.getParams=function(){return{}};
var R_w=function(M,q,G){var K=M.prefetchDelay*1E3;if(Math.abs(K)>q)G.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var n=K,E=q-K;K<0&&(n=q+K,E=Math.abs(K));var p=M.JSC$13230_taskManager.addJob(function(){G.resolve(E/1E3)},10,n);
G.promise.thenCatch(function(){M.JSC$13230_taskManager.cancelJob(p)})}},fOg=function(M,q,G){dD.call(this,M,q,G)};
_.l(fOg,dD);fOg.prototype.prepareTrigger=function(M){var q=this;Dps(this,"onAutonavCoundownStarted",function(G){R_w(q,G,M)})};
var FPI=function(M){M.pendingPrefetchJob_&&(M.pendingPrefetchJob_.cancel(),M.pendingPrefetchJob_=null)},HEI=function(M,q,G){if(!M.triggeredTargets.has(q)){var K=_.a1J(M,q);
K.action=G;_.wYv(M,q,K)}},e_L=function(M){_.Ynf();
_.RbH("cpt")&&_.j1(Error("lh"));_.Kj.requestAnimationFrame(function(){_.Kj.setTimeout(function(){_.oJ("cpt");var q=_.P8("vpl"),G=_.P8("cpt");q&&G&&_.oJ("ol",Math.max(q,G))})});
try{_.oJ("fr_s"),M()}catch(q){_.T6(q)}_.Kj.requestAnimationFrame(function(){_.oJ("bcp")})},$pP=function(M,q){M.serviceEndpointHandlers.push(q)},s1w=function(M,q){q=M.pendingPages_.indexOf(q);
q>-1&&M.pendingPages_.splice(q,1)},M0U=function(M,q){var G=_.xGB.indexOf(q);
G>-1&&_.xGB.splice(G,1);M.targetPage_==q?(M.abort(),_.mGv(M)):s1w(M,q)},qgL=function(M,q,G,K){q={challenge:q};
G&&(q.webResponse=G);return _.e6(M.innertubeTransportService,q,_.m4(lOw),K)},GjU=function(M,q,G){if(!q.challenge)throw Error("qi");
if(q.botguardData&&q.botguardData.program){var K=new C2U;K.initialize(q.botguardData,function(){oug(K,{atr_challenge:q.challenge}).then(function(n){if(!n)throw Error("ri");return qgL(M,q.challenge,n,G)}).catch(function(n){_.j1(n);
return qgL(M,q.challenge,void 0,G)})},void 0)}else qgL(M,q.challenge,void 0,G)},K7M=function(M,q,G){var K={};
q.ids&&(K.ids=[].concat(_.Ui(q.ids)));q.engagementType&&(K.engagementType=q.engagementType);return _.e6(M.innertubeTransportService,K,_.m4(_.b0S),G).then(function(n){if(!n)throw new _.bj("GetAttestationChallenge returned falsy");GjU(M,n,G)}).thenCatch(function(n){_.T6(n)})},nkw=function(M,q,G){return new _.X4(function(K,n){var E;
return _.L(function(p){if(p.nextAddress==1){var y=p.yield,Y=q.engagementType,A=q.ids,v={};A=_.k(A!=null?A:[]);for(var h=A.next();!h.done;h=A.next())h=h.value,h.encryptedVideoId?v.encryptedVideoId=h.encryptedVideoId:h.externalChannelId?v.externalChannelId=h.externalChannelId:h.commentId?v.commentId=h.commentId:h.externalOwnerId?v.externalOwnerId=h.externalOwnerId:h.artistId?v.artistId=h.artistId:h.playlistId?v.playlistId=h.playlistId:h.externalPostId?v.externalPostId=h.externalPostId:h.shareId&&(v.shareId=
h.shareId);return y.call(p,iTP(Y,v),2)}E=p.yieldResult;if(!E.challenge)return _.j1(Error("si")),K7M(M,q,G).then(K,n),p.return();y=E;Y={challenge:y.challenge};Y.webResponse=y.webResponse;Y.engagementType=q.engagementType;Y.ids=q.ids;_.e6(M.innertubeTransportService,Y,_.m4(lOw),G).then(K,n);_.gL(p)})})},xKU=function(M,q){var G,K,n,E;
_.L(function(p){if(p.nextAddress==1){G=_.C(q,_.xOd);if(!(G&&G.listId&&M.response&&M.response.playingVideoId)||M.listId!==G.listId)return p.return();M.index===void 0&&(M.index=0);return p.yield(_.no9(M.JSC$13083_playlistNetworkManager,G.listId,M.index,M.response.playingVideoId),2)}K=p.yieldResult;if(!K)return p.return();n=K.playlistId;E=K.playlistPanelRenderer;M.setPlaylistData(n,E,K.autoplayRenderer);_.gL(p)})},Ekn=function(M,q,G){var K=M.getParams(G),n=_.sZH(q,K),E=M.getTempData(q,G);
E.endpoint=JSON.stringify(q);_.w("enable_unknown_lact_fix_on_html5")&&(_.AL().resolve(_.Lp),E.lact=_.Ap());var p={headers:{"X-YouTube-STS":_.R9("STS"),"x-youtube-csoc":1}};_.xD(n,E);return new _.X4(function(y,Y){var A=M.getXhrParams(K),v;_.w("kevlar_cache_on_ttl_player")&&(v=_.AL().resolve(_.Ls));v&&_.zqL(v,q)?_.VXg(v,q,E,window.location.href).then(function(h){h?y(h):Y()},Y):_.JWx(M.JSC$13220_networkManager_,q,A,M.onPartsCallback_.bind(M),p).then(function(h){h?y(h):Y()},Y)})},Nbs=function(M,q){M.triggerPromise_=
q.start();
M.triggerPromise_.then(function(G){var K=M.prefetchEndpointProvider_.getPrefetchEndpoint();if(K){var n=ul8[M.prefetchJobConfig_.pageType].prefetchedFragments;M.prefetchRequestPromise_=Ekn(M.JSC$13256_networkPrefetchRequest_,K,{fragmentsRequested:n,timeBeforeNextVideo:G});M.prefetchResponseCacheKey_=M.JSC$13256_networkPrefetchRequest_.getCacheKeyForEndpoint(K);V85(M);M.prefetchRequestPromise_.then(function(E){M.storePrefetchedDataCallback_(M.prefetchResponseCacheKey_,E);if(_.w("web_prefetch_preload_video")&&
n.length===1&&n[0]==="pl"&&E&&!E.playerAds&&!E.adPlacements){var p=_.C(K,_.p_),y=p!=null,Y={raw_player_response:E,watch_endpoint:p};(E=_.AL().resolve(y?_.mjP:_.fp))&&K&&E.then(function(A){y&&_.w("web_queue_preload_video")?(Y.prefer_gapless=!0,A.queueNextVideo(Y)):A.preloadVideoByPlayerVars(Y)})}})}})},hy=function(M,q,G,K){this.prefetchEndpointProvider_=M;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=q;this.prefetchJobConfig_=G;this.JSC$13256_networkPrefetchRequest_=K;this.prefetchResponseCacheKey_=null};
hy.prototype.enqueue=function(){this.triggerPromise_||(Nbs(this,jiR(this)),_.Yj(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
hy.prototype.resolve=function(){this.cancel()};
hy.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.");V85(this)};
hy.prototype.onVisibilityChange_=function(){var M=this;_.$2(_.u7j)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){M.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||Nbs(this,jiR(this))};
var kjw=function(M,q,G,K,n){q&&(q==null?0:q.videoId)&&G&&G.entries&&_.w("kevlar_enable_shorts_prefetch_in_sequence")&&(FPI(M),q=G.entries.map(function(E){var p;return(p=_.C(E.command,_.p_))==null?void 0:p.videoId}).indexOf(q.videoId),G=G.entries[q+1],G!=null&&G.command&&!_.C(G==null?void 0:G.command,_.jN)&&(K=new T6U([G.command],new ZEU(K,_.r8,1),null,"shorts",!1),M.pendingPrefetchJob_=new hy(new SSv(K.autonavEndpoints),function(){return!1},K,new v6(n)),M.pendingPrefetchJob_.enqueue()))},pLI=function(M,
q,G,K,n,E){var p=_.Yx.getInstance();
if(!_.w("block_all_player_prefetch_requests")){FPI(M);var y=!!G.getPlaylistId(),Y=G.getVideoData().isLive&&G.getVideoData().hasProgressBarBoundaries;if((p.getState()==2||y||Y)&&(!G.getVideoData().isLive||Y)){p={inPlaylist:y,videoDuration:G.getDuration(),makeUpNextTrigger:function(v){return new fOg(G,_.r8,v)},
makePlaybackTrigger:function(v){return new ZEU(G,_.r8,v)}};
var A=row(q,p);A&&(M.pendingPrefetchJob_=new hy(A.isInPlaylist?new mpI(n):new SSv(A.autonavEndpoints),function(v,h){h=new xpL(ul8[A.pageType].pageFragments,ul8[A.pageType].prefetchedFragments,h);return _.LR$(h)?(M.prefetchCache_.set(v,h),!0):!1},A,new Ay(K,G,E,n)),M.pendingPrefetchJob_.enqueue())}}},yqU=function(){var M=_.KV();
M.signals.parkOrScheduleJob(function(){var q=M.storage;if(q.storage)if(coI(q)){var G=q.getPlaylistId();q=gu8(q);G=!!G&&q!==void 0}else q.clear(),G=!1;else G=!1;if(G){G=M.JSC$13083_pageManager.isOnWatch();a:{var K=M.storage;if(K.storage&&coI(K)&&(q=K.getPlaylistId(),K=gu8(K),q&&K!==void 0)){G={recoverPlaylistCommand:{listId:q,index:K,openMiniplayer:!G,openListPanel:G,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}G=void 0}G&&_.Js(M.JSC$13083_actionRouter,[G],null)}},0,"ma")},L7E=function(M,q,G,
K,n,E){var p=_.$m(7111);
_.oQ(M.JSC$18565_screenManager,p,E?_.yx(E):void 0);_.X3(M.JSC$18565_screenManager,p,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:K,offlineId:q,offlineabilityFormatType:G,isDefaultFormatType:n==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:n}})},YgI=function(M,q,G,K,n){var E,p,y,Y,A;
return _.L(function(v){if(v.nextAddress==1)return v.yield(M.JSC$18565_playerApiPromise,2);E=v.yieldResult;L7E(M,q,G,"OFFLINE_OBJECT_TYPE_PLAYLIST",K,n);if(y=_.g6J[M.entityTypeMap.listEntityType])A={},p=(A[y]={maximumDownloadQuality:(Y=G)!=null?Y:void 0},A);return v.yield(E.queueOfflineAction(q,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",p),0)})},W7R=function(M,q){var G,K,n,E;
return _.L(function(p){if(p.nextAddress==1)return p.yield(M.JSC$18565_persistentStorePromiseAccessor(),2);if(p.nextAddress!=3){G=p.yieldResult;if(!G)return _.j1(new _.bj("PES is undefined")),p.return();K=_.$p(q,"downloadStatusEntity");return p.yield(iE8(G,K,"downloadStatusEntity"),3)}n=p.yieldResult;return p.return((E=n)==null?void 0:E.downloadState)})},AqU=function(M,q,G,K,n){var E,p,y,Y,A,v;
return _.L(function(h){switch(h.nextAddress){case 1:return h.yield(M.JSC$18565_playerApiPromise,2);case 2:E=h.yieldResult;L7E(M,q,G,"OFFLINE_OBJECT_TYPE_VIDEO",K,n);if(y=_.g6J[M.entityTypeMap.singleEntityType])A={},p=(A[y]={maximumDownloadQuality:(Y=G)!=null?Y:void 0},A);return h.yield(W7R(M,q),3);case 3:v=h.yieldResult;if(v!=="DOWNLOAD_STATE_USER_DELETED"){h.jumpTo(4);break}return h.yield(M.deleteVideo(q),4);case 4:return h.yield(E.queueOfflineAction(q,M.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",
p),0)}})},duP=function(M,q,G,K,n){return _.L(function(E){return E.nextAddress==1?E.yield(M.deleteVideo(q,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):E.yield(AqU(M,q,G,K,n),0)})},vkL=function(M,q,G){var K,n;
return _.L(function(E){if(E.nextAddress==1)return E.yield(M.JSC$18565_playerApiPromise,2);K=E.yieldResult;n=_.$p(q,"mainVideoDownloadStateEntity");return E.yield(K.updateDownloadState(n,G),0)})},ycg=function(M){var q=_.AL().resolve(_.x4);
return _.L(function(G){if(G.nextAddress==1)return q.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&q.previousDownloadStateForVideo[M]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?G.jumpTo(2):G.yield(q.resumeVideoDownload(M),2);if(G.nextAddress!=4)return G.yield(vkL(q,M,q.previousDownloadStateForVideo[M]),4);delete q.previousDownloadStateForVideo[M];_.gL(G)})},k$s=function(M,q){var G;
return _.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$18565_playerApiPromise,2);G=K.yieldResult;return K.yield(G.queueOfflineAction(q,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})},nEL=function(){var M=_.AL().resolve(_.x4),q,G;
return _.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$18565_playerApiPromise,2);if(K.nextAddress!=3)return q=K.yieldResult,G={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},K.yield(q.queueOfflineAction("!*$_ALL_ENTITIES_!*$",M.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",G),3);var n=M.JSC$18565_commandHandler,E=n.resolveCommand,p=_.Ge("DELETING_ALL",void 0,"Downloads are being deleted");E.call(n,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.rj(p)}},
popupType:"TOAST"}});_.gL(K)})},hE5=function(M,q){var G,K,n,E,p,y;
return _.L(function(Y){if(Y.nextAddress==1)return Y.yield(M.JSC$18565_persistentStorePromiseAccessor(),2);if(Y.nextAddress!=3)return G=Y.yieldResult,G?Y.yield(iE8(G,_.vs,"downloadsPageViewConfigurationEntity"),3):(_.j1(new _.bj("PES is undefined")),Y.return());n=(K=Y.yieldResult)!=null?K:{};y=(p=(E=n)==null?void 0:E.downloadsUpsellBannerVisibility)!=null?p:{};return y.visibleWithConnection?Y.yield(q.refreshAllStaleEntities(0),0):Y.jumpTo(0)})},t05=function(M){var q,G;
return _.L(function(K){if(K.nextAddress==1)return K.yield(M.JSC$18565_prefStorage,2);q=K.yieldResult;return K.return((G=q)==null?void 0:G.get("sdois"))})},OOn=function(M){var q,G,K,n,E,p;
return _.L(function(y){if(y.nextAddress==1)return y.yield(M.JSC$18565_persistentStorePromiseAccessor(),2);if(y.nextAddress!=3){q=y.yieldResult;if(!q)return _.j1(new _.bj("PES is undefined")),y.return();G=_.$p("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return y.yield(iE8(q,G,"settingEntity"),3)}K=y.yieldResult;return y.return((p=(n=K)==null?void 0:(E=n.settingOptionValue)==null?void 0:E.boolValue)!=null?p:!1)})},wLR=function(M,q){var G,K,n,E;
return _.L(function(p){switch(p.nextAddress){case 1:return((G=q)==null?void 0:G.formatType)===void 0?p.return():p.yield(M.JSC$18565_prefStorage,2);case 2:K=p.yieldResult;if(K===void 0)return p.return();if(((n=q)==null?void 0:n.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return p.yield(K.set("lmqf",q.formatType),8);if(((E=q)==null?void 0:E.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){p.jumpTo(0);break}return p.yield(K.set("lmqf",q.formatType),6);case 6:return p.yield(K.set("lmqflst",
Math.floor((0,_.d8)())),0);case 8:return p.yield(K.remove("lmqflst"),0)}})},Cis=function(M){var q,G;
return _.L(function(K){switch(K.nextAddress){case 1:return K.yield(M.JSC$18565_prefStorage,2);case 2:q=K.yieldResult;if(!q){K.jumpTo(3);break}return K.yield(q.get("lmqflst"),4);case 4:if(G=K.yieldResult,G!==void 0)return K.return(G);case 3:return K.return(0)}})},aAL=function(M){var q,G;
return _.L(function(K){switch(K.nextAddress){case 1:return K.yield(M.JSC$18565_prefStorage,2);case 2:q=K.yieldResult;if(q===void 0){K.jumpTo(3);break}return K.yield(q.get("lmqf"),4);case 4:if(G=K.yieldResult,G!==void 0)return K.return(G);case 3:return K.return("SD")}})},tWL=function(M,q,G){var K,n,E,p,y,Y,A,v;
_.L(function(h){switch(h.nextAddress){case 1:return h.yield(wLR(M,(K=q)==null?void 0:K.actionParams),2);case 2:n=q.playlistId;if(!n)return h.return();if(q.action==="ACTION_ADD")return((p=q.actionParams)==null?0:p.formatType)?h.yield(YgI(M,n,q.actionParams.formatType,(v=q.actionParams)==null?void 0:v.settingsAction,G),0):h.yield(M.offlineWebClientEligibility,14);if(q.action==="ACTION_REMOVE_WITH_PROMPT"){var t=M.JSC$18565_commandHandler,O=t.resolveCommand,a=_.R9("INNERTUBE_CLIENT_NAME");var g=a===
"WEB_REMIX"?_.Ge("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Ge("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var D=a==="WEB_REMIX"?[_.Ge("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];a=a==="WEB_REMIX"?_.Ge("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Ge("DELETE",void 0,"Delete");var J=_.Ge("CANCEL",void 0,"Cancel");g=c_I(g,D,a,J,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:n});O.call(t,{openPopupAction:g});return h.return()}if(q.action===
"ACTION_REMOVE")return h.yield(k$s(M,n),0);if(q.action!=="ACTION_SYNC"){h.jumpTo(0);break}return h.yield(M.JSC$18565_playerApiPromise,9);case 9:return E=h.yieldResult,h.yield(E.queueOfflineAction(n,M.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return y=h.yieldResult,h.yield(aAL(M),15);case 15:return Y=h.yieldResult,h.yield(Cis(M),16);case 16:A=h.yieldResult,q.onAddCommand&&M.JSC$18565_commandHandler.resolveCommand(q.onAddCommand,{form:{preferredFormatType:Y,
offlineWebClientEligibility:y,lastOfflineQualitySettingsSavedMs:A.toString()}}),h.jumpTo(0)}})},vEv=function(M,q,G){var K,n,E,p,y,Y,A,v,h,t,O,a,g,D;
_.L(function(J){switch(J.nextAddress){case 1:return J.yield(wLR(M,(K=q)==null?void 0:K.actionParams),2);case 2:n=q.videoId;if(!n)return J.return();if(q.action==="ACTION_REMOVE_WITH_PROMPT"){var Z=M.JSC$18565_commandHandler,V=Z.resolveCommand,S=_.R9("INNERTUBE_CLIENT_NAME");var m=S==="WEB_REMIX"?_.Ge("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.Ge("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var R=S==="WEB_REMIX"?[_.Ge("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",void 0,"This track won't be available to listen offline.")]:
[];S=S==="WEB_REMIX"?_.Ge("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.Ge("DELETE",void 0,"Delete");var se=_.Ge("CANCEL",void 0,"Cancel");m=c_I(m,R,S,se,{signal:"DELETE_DOWNLOAD",targetId:n});V.call(Z,{openPopupAction:m});return J.return()}if(q.action==="ACTION_ADD")return((t=q.actionParams)==null?0:t.formatType)?J.yield(AqU(M,n,q.actionParams.formatType,(D=q.actionParams)==null?void 0:D.settingsAction,G),0):J.yield(M.offlineWebClientEligibility,23);if(q.action==="ACTION_RETRY")return J.yield(aAL(M),
19);if(q.action==="ACTION_PAUSE")return J.yield(M.pauseVideoDownload(n),0);if(q.action==="ACTION_RESUME")return J.yield(M.resumeVideoDownload(n),0);if(q.action!=="ACTION_REMOVE"){J.jumpTo(0);break}return J.yield(W7R(M,n),13);case 13:return E=J.yieldResult,M.previousDownloadStateForVideo[n]=(p=E)!=null?p:"DOWNLOAD_STATE_UNKNOWN",J.yield(vkL(M,n,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(M.previousDownloadStateForVideo[n]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&M.previousDownloadStateForVideo[n]!==
"DOWNLOAD_STATE_PENDING_DOWNLOAD"){J.jumpTo(15);break}return J.yield(M.pauseVideoDownload(n),15);case 15:Z=_.Ge("DELETED_VIDEO",void 0,"Video deleted from downloads.");V=_.Ge("UNDO_ACTION",void 0,"Undo");m=_.Ge("CLOSE",void 0,"Close");y={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.rj(Z),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.rj(V),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:n}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:Z+" "+V}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:n}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:m}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};M.JSC$18565_commandHandler.resolveCommand(y);
J.jumpTo(0);break;case 19:Y=J.yieldResult;Y==="UNKNOWN_FORMAT_TYPE"&&(Y="SD");A="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((v=q.actionParams)==null?0:v.formatType)Y=q.actionParams.formatType,A=(h=q.actionParams)==null?void 0:h.settingsAction;return J.yield(duP(M,n,Y,A,G),20);case 20:return J.return();case 23:return O=J.yieldResult,J.yield(aAL(M),24);case 24:return a=J.yieldResult,J.yield(Cis(M),25);case 25:g=J.yieldResult,q.onAddCommand&&M.JSC$18565_commandHandler.resolveCommand(q.onAddCommand,
{form:{preferredFormatType:a,offlineWebClientEligibility:O,lastOfflineQualitySettingsSavedMs:g.toString()}}),J.jumpTo(0)}})},okg=function(M,q){var G,K,n,E,p,y,Y;
return _.L(function(A){if(A.nextAddress==1)return A.yield(M.JSC$18565_persistentStorePromiseAccessor(),2);G=A.yieldResult;if(!G)return _.j1(new _.bj("PES is undefined")),A.return();if((K=q)==null||!K.settingItemId)return A.return();n=q;E=n.settingItemId;p=n.boolValue;y=_.$p(E,"settingEntity");Y={key:y,settingOptionValue:{boolValue:p}};return A.yield(P2n(G,Y),0)})},lAn=function(M,q){var G,K,n,E,p,y,Y;
return _.L(function(A){switch(A.nextAddress){case 1:return A.yield(M.JSC$18565_prefStorage,2);case 2:return G=A.yieldResult,K=_.El(),A.yield(M.JSC$18565_persistentStorePromiseAccessor(),3);case 3:return n=A.yieldResult,G?n?A.yield(G.get("sdois"),4):(_.j1(new _.bj("PES is undefined")),A.return()):(_.j1(new _.bj("prefStorage is undefined")),A.return());case 4:E=A.yieldResult;y=(p=q)==null?void 0:p.boolValue;y===void 0||_.w("kevlar_set_sd_enabled_flag_killswitch")||_.Ng(0,197,!0);E===void 0&&y===void 0&&
(y=!1);if(y===void 0){A.jumpTo(0);break}return A.yield(G.set("sdois",y),6);case 6:return _.w("kevlar_set_sd_enabled_flag_killswitch")||(_.Ng(0,196,y),K.save()),Y={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:y},A.yield(okg(M,Y),0)}})},XL5=function(M,q,G){var K,n,E,p,y;
return _.L(function(Y){switch(Y.nextAddress){case 1:return Y.yield(t05(M),2);case 2:return K=Y.yieldResult,Y.yield(lAn(M,G),3);case 3:return Y.yield(t05(M),4);case 4:return n=Y.yieldResult,E=n!==K,Y.yield(OOn(M),5);case 5:p=Y.yieldResult&&!_.w("kevlar_modern_downloads_page");if((y=!n&&!p)||E)return Y.yield(q.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);Y.jumpTo(0)}})},YBM=function(){var M=_.AL().resolve(_.x4),
q;
_.L(function(G){switch(G.nextAddress){case 1:return G.yield(M.JSC$18565_playerApiPromise,2);case 2:q=G.yieldResult;if(!_.w("kevlar_force_refresh_smart_downloads")){G.jumpTo(3);break}return G.yield(q.refreshAllStaleEntities(0),4);case 4:return G.return();case 3:return G.yield(q.refreshAllStaleEntities(),5);case 5:return G.yield(XL5(M,q),6);case 6:if(_.w("enable_download_pep_for_premium_countries_web"))return G.yield(hE5(M,q),0);G.jumpTo(0)}})},wpU=function(M,q){var G,K;
_.L(function(n){switch(n.nextAddress){case 1:return n.yield(M.JSC$18565_playerApiPromise,2);case 2:G=n.yieldResult;switch((K=q)==null?void 0:K.settingItemId){case "SMART_DOWNLOADS_ENABLED":return n.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return n.jumpTo(4)}n.jumpTo(0);break;case 3:return n.yield(XL5(M,G,q),6);case 6:n.jumpTo(0);break;case 4:return n.yield(okg(M,q),7);case 7:n.jumpTo(0)}})},PiU=function(M,q){var G,K,n;
return _.L(function(E){if(E.nextAddress==1)return E.yield(M.JSC$18565_persistentStorePromiseAccessor(),2);if(E.nextAddress!=3){G=E.yieldResult;if(!G)return _.j1(new _.bj("PES is undefined")),E.return(!1);if(!q)return E.return(!1);K=_.$p(q,"mainVideoEntity");return E.yield(iE8(G,K,"mainVideoEntity"),3)}n=E.yieldResult;return E.return(n!==void 0)})},alP=function(M){var q=_.AL().resolve(_.x4),G,K,n,E,p,y,Y,A,v,h,t;
_.L(function(O){switch(O.nextAddress){case 1:return O.yield(q.JSC$18565_playerApiPromise,2);case 2:G=O.yieldResult;n=(K=M)==null?void 0:K.actions;if(!n)return O.return();E=_.k(n);p=E.next();case 3:if(p.done){O.jumpTo(0);break}y=p.value;A=Y=void 0;if(!(((Y=y)==null?0:Y.entityKey)&&((A=y)==null?0:A.actionType))){O.jumpTo(4);break}v=_.FI(y.entityKey);h=v.entityId;t=v.entityType;return O.yield(G.queueOfflineAction(h,t,y.actionType),4);case 4:p=E.next(),O.jumpTo(3)}})},iOU=function(M,q){var G,K,n,E,p;
return _.L(function(y){if(y.nextAddress==1)return y.yield(M.JSC$18565_prefStorage,2);if(y.nextAddress!=3)return(G=y.yieldResult)?y.yield(G.get("psi"),3):y.return();K=y.yieldResult;p={isPaused:q,lastSyncTimestamp:(E=(n=K)==null?void 0:n.lastSyncTimestamp)!=null?E:"0"};return y.yield(G.set("psi",p),0)})},Xpv=function(M){var q=_.AL().resolve(_.x4),G,K,n,E,p,y,Y,A;
return _.L(function(v){switch(v.nextAddress){case 1:return v.yield(q.JSC$18565_playerApiPromise,2);case 2:G=v.yieldResult;n=((K=M)==null?void 0:K.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((y=M)==null?void 0:y.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":E="!*$_ALL_ENTITIES_!*$";p="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return v.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return v.jumpTo(4)}v.jumpTo(5);break;case 3:return v.yield(iOU(q,n),6);case 6:v.jumpTo(5);break;case 4:return v.yield(PiU(q,(Y=M)==null?void 0:Y.videoId),7);case 7:v.yieldResult&&(E=(A=M)==null?void 0:A.videoId,p="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");v.jumpTo(5);break;case 5:if(E&&p)return v.yield(G.queueOfflineAction(E,"videoPlaybackPositionEntity",p),0);v.jumpTo(0)}})},cqP=function(M,q){var G;
q!==1||((G=M.currentPersistentToast)==null?0:G.isOpened())?M.openToast():M.currentPersistentToast=void 0},gkw=function(M,q){var G;
return(G=M.transitionTasksMap.get(q))!=null?G:[]},Bbv=function(M,q){var G=[];
M.elementTasksMap.forEach(function(K){(K=K.get(q))&&G.push(K)});
return G},Q1L=function(M,q,G,K,n){n=n===void 0?{}:n;
var E=q.defaultViewTransitionOptions;return Object.assign({},E,n,{beforeTransition:function(){K.forEach(function(A){A.beforeTransition()});
var p;(p=E.beforeTransition)==null||p.call(E);var y,Y;(Y=(y=n).beforeTransition)==null||Y.call(y);G.forEach(function(A){A.beforeTransition()})},
afterTransition:function(){K.forEach(function(A){A.afterTransition()});
var p;(p=E.afterTransition)==null||p.call(E);var y,Y;(Y=(y=n).afterTransition)==null||Y.call(y);G.forEach(function(A){A.afterTransition()})},
ignoredErrors:M.config.ignoredErrors})},IAv=function(M,q,G){M.transitionTasksMap.has(q)?M.transitionTasksMap.get(q).push(G):(M=new _.bj("Transition task registered for unknown transition type",q),_.T6(M))},Duv=function(M,q,G){if(M.transitionTasksMap.has(q)){var K=M.transitionTasksMap.get(q).filter(function(n){return n!==G});
M.transitionTasksMap.set(q,K)}},uc8=function(M,q){var G=gkw(M,q);
G=_.k(G);for(var K=G.next();!K.done;K=G.next())K=K.value,K.runOnce&&Duv(M,q,K);M.elementTasksMap.forEach(function(n,E){n.forEach(function(p,y){p.runOnce&&q===y&&(n.delete(y),n.size===0&&M.elementTasksMap.delete(E))})})},JqI=function(M,q,G){var K,n,E,p,y,Y,A,v,h;
_.L(function(t){if(t.nextAddress==1){if(M.config.disableAllTransitions)return t.return(q());if((K=G)==null||!K.transitionType)return t.return(_.drw(q,Object.assign({},(n=G)==null?void 0:n.viewTransitionOptions,{ignoredErrors:M.config.ignoredErrors})));E=G;p=E.transitionType;y=E.viewTransitionOptions;Y=M.config.transitionConfigs.get(p);if(!Y)return t.return(q());A=gkw(M,p);v=Bbv(M,p);h=_.drw(q,Q1L(M,Y,A,v,y));return t.yield(h,2)}uc8(M,p);_.gL(t)})},ZOU=function(){var M,q,G,K;
return _.L(function(n){if(n.nextAddress==1)return M=navigator,(q=M.storage)!=null&&q.persisted?n.yield((G=M.storage)==null?void 0:G.persisted(),2):n.return("PERSISTED_STATE_NOT_SUPPORTED");K=n.yieldResult;return n.return(K?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},bO8=function(){var M,q,G,K;
return _.L(function(n){if(n.nextAddress==1)return M=navigator,(q=M.storage)!=null&&q.persist?n.yield((G=M.storage)==null?void 0:G.persist(),2):n.return("PERSISTED_STATE_NOT_SUPPORTED");K=n.yieldResult;return n.return(K?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})},Uuv=function(){var M,q;
return _.L(function(G){switch(G.nextAddress){case 1:return M="PERSISTED_STATE_NOT_SUPPORTED",_.Cv(G,2),G.yield(ZOU(),4);case 4:M=G.yieldResult;if(M!=="PERSISTED_STATE_NOT_GRANTED"){G.jumpTo(5);break}return G.yield(bO8(),6);case 6:M=G.yieldResult;case 5:_.KF(G,3);break;case 2:q=_.i5(G),q instanceof Error&&_.T6(q);case 3:return _.ml("persistentStorageStateChecked",{persistedState:M}),G.return(M)}})},xuM=function(M,q){var G=[],K=!1;
q=_.k(q);for(var n=q.next();!n.done;n=q.next()){n=M.moduleRegistry[n.value];var E=void 0,p=void 0;((E=n)==null?0:E.isFetching)&&((p=n)==null?0:p.resolver)?(G.push(n.resolver.promise),K=!0):(n=new _.sp,n.resolve(void 0),G.push(n.promise))}return K?Promise.all(G):void 0},zEs=function(M,q,G){if(M.isAnyTransitionEnabled){var K={beforeTransition:function(){G(!0);
q.style.viewTransitionName="masthead-page-transition"},
afterTransition:function(){q.style.viewTransitionName&&(q.style.viewTransitionName="",G(!1))}};
IAv(M.viewTransitionCoordinator,"slide",K);IAv(M.viewTransitionCoordinator,"lockup-to-watch",K);IAv(M.viewTransitionCoordinator,"watch-next-appears",K);IAv(M.viewTransitionCoordinator,"learning-journey",K)}},mu8=function(M,q){M.isBrowseTransitionEnabled?JqI(M.viewTransitionCoordinator,q,{transitionType:"slide"}):(q(),Promise.resolve())},Sgg=function(M,q){M.isLockupToWatchTransitionEnabled?JqI(M.viewTransitionCoordinator,q,{transitionType:"lockup-to-watch",
viewTransitionOptions:{afterTransition:function(){M.registeredLockupThumbnail=void 0;M.lockupThumbnailRegisteredFromWatchEndpoint=!1}}}):(q(),Promise.resolve())},TbM=function(M,q){M.isLockupToWatchTransitionEnabled?JqI(M.viewTransitionCoordinator,q,{transitionType:"watch-next-appears"}):(q(),Promise.resolve())},rqI=function(M,q){M.isLearningJourneyTransitionEnabled?JqI(M.viewTransitionCoordinator,q,{transitionType:"learning-journey"}):(q(),Promise.resolve())},j1E=function(M,q,G){if(M.isInitialized()){var K=
eq(G),n=K==="watch";
K=K==="shorts";var E=eq(q)==="watch";if(n)E||(M.backgroundPageData=q),M.watchPipMode&&E||M.deactivate(G.endpoint);else if(K){if(eq(q)!=="shorts"){var p;(p=M.getPlayerElement())==null||p.pause()}}else E&&!M.watchPipMode&&(gAM(q,G,!0)?(M.watchWhileMode&&_.fZs(M,!1),_.ShR(M,q)):M.isMiniplayerActive()&&M.watchWhileMode&&M.deactivate());E&&_.HFI(M);M.shortsPipMode&&!K&&(window.focus(),M.deactivate());if(M.pictureInPictureEnabled())if(K&&M.shortsPipEnabled||n&&M.watchPipEnabled)_.aLy(M.handleMediaSessionPipActivation);
else if(!M.isMiniplayerActive()&&(M.shortsPipEnabled||M.watchPipEnabled)&&window.documentPictureInPicture&&_.g$()&&_.aFF("Chromium")>=120){M=_.C$e().mediaSession;try{M.setActionHandler("enterpictureinpicture",null)}catch(y){}}}},V0R=function(M,q){var G,K;
_.L(function(n){if(n.nextAddress==1){if(!M||!M.navigationEndpoint)return n.return();_.Bg().lockupActivation=!0;var E;q?E=_.bc(_.Ge("QUEUE",void 0,"Queue")):E=M.longBylineText;K=(G=E)&&M.title?{miniplayerTitle:M.title,miniplayerSubtitle:G,playlistData:null}:void 0;return n.yield(_.Byd(_.AL().resolve(_.lq),M.navigationEndpoint,!0,K),2)}_.Bg().userActivation=!0;_.gL(n)})},Zsw=function(M,q){var G,K,n,E,p,y;
_.L(function(Y){if(Y.nextAddress==1){G=_.C(q,_.UOd);if(!G||!G.listId)return Y.return();M.index=G.index||M.index||0;K=M.response&&M.response.playingVideoId||void 0;return Y.yield(_.no9(M.JSC$13083_playlistNetworkManager,G.listId,M.index,K),2)}n=Y.yieldResult;if(!n)return Y.return();E=n.playlistId;p=n.playlistPanelRenderer;!M.queueProxy&&E&&p&&E.startsWith("TLPQ")&&(M.queueProxy=new _.F3(M.JSC$13083_playlistNetworkManager,E,M.setPlaylistData.bind(M),M.clearQueue.bind(M),_.MfD(p),M.storage));if(G.openMiniplayer&&
(y=_.q2y(p))&&!M.JSC$13083_pageManager.isOnWatch()){var A=y,v=G.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";M.isMiniplayerActive()?M.openToast(A):V0R(A,v)}M.setPlaylistData(E,p,n.autoplayRenderer);_.gL(Y)})},DKI=function(M,q){var G=_.KV();
G.index===void 0&&(G.index=0);G.temporaryItems.push.apply(G.temporaryItems,_.Ui(M));if((q.videoId||q.videoIds)&&G.index!==void 0&&q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!G.queueProxy){var K=[];if(G.response){var n=_.AL().resolve(_.lq).isMiniplayerActive();if(G.response.playlistPanelRenderer&&G.response.playlistId&&!G.response.playlistId.startsWith("TLPQ")){if(G.JSC$13083_pageManager.isOnWatch()||n)K=_.MfD(G.response.playlistPanelRenderer)}else G.response.playingVideoId&&!q.openMiniplayer?
K.push(G.response.playingVideoId):n&&G.response.playingVideoId&&q.openMiniplayer&&K.push(G.response.playingVideoId)}G.queueProxy=new _.F3(G.JSC$13083_playlistNetworkManager,"",G.setPlaylistData.bind(G),G.clearQueue.bind(G),K,G.storage);G.queueProxy.JSC$13029_setCurrentIndex(G.index)}G.queueProxy.addVideos(q.videoIds||[q.videoId],q)}B6v(G,M);G.response&&_.nV(G,_.E_(G,G.response.autoplayRenderer));G.JSC$13083_pageManager.isOnWatch()?G.isMiniplayerActive()&&G.openToast(M[0]):(M=M[0],q=q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE",
G.isMiniplayerActive()?G.openToast(M):V0R(M,q))},REE=function(M){var q=_.$$(M);
if(q=="object"||q=="array"){if(typeof M.clone==="function")return M.clone();if(typeof Map!=="undefined"&&M instanceof Map)return new Map(M);if(typeof Set!=="undefined"&&M instanceof Set)return new Set(M);q=q=="array"?[]:{};for(var G in M)q[G]=REE(M[G]);return q}return M},ty=function(M,q){return _.tJy(_.nu(M,q,void 0,_.Ku))},Od=function(M,q){return _.pn(_.nu(M,q,void 0,_.Ku))},wD=function(M,q){return _.ZPY(_.nu(M,q,void 0,_.Ku))},Cq=function(M,q){return _.nu(M,q,void 0,_.Ku,_.eJ)},fAn=_.yk(function(M,
q,G,K){if(M.nextWireType_!==0)return!1;
_.pu(q,G,K,_.P7(M.decoder_,_.v$i));return!0},_.vt,_.Qj),F7M=_.yk(function(M,q,G){if(M.nextWireType_!==1)return!1;
var K=M.decoder_;M=_.c7(K);K=_.c7(K);M=_.mp(M,K);_.YC(q,G,M);return!0},_.ZGy,_.MRP),HOw=_.yk(function(M,q,G){if(M.nextWireType_!==2)return!1;
M=_.UxB(M);_.YC(q,G,M===_.II()?void 0:M);return!0},_.maw,_.K5J),eEM=_.iGY(function(M,q,G){if(M.nextWireType_!==0&&M.nextWireType_!==2)return!1;
q=_.qa(q,q[_.nP]|0,G);M.nextWireType_==2?_.xxB(M,pTv,q):q.push(_.iZ(M.decoder_));return!0},function(M,q,G){q=_.Pyy(_.pn,q,!0);
if(q!=null&&q.length){G=_.jIB(M,G);for(var K=0;K<q.length;K++)_.Da$(M.encoder_,q[K]);_.VJx(M,G)}},_.ng2),$uv=_.yk(function(M,q,G,K){if(M.nextWireType_!==0)return!1;
_.pu(q,G,K,_.iZ(M.decoder_));return!0},_.TWs,_.ng2),sAU=function(M){return M.previousElementSibling!==void 0?M.previousElementSibling:_.vPB(M.previousSibling,!1)},MDI=function(M,q){var G=[];
for(q=q||0;q<M.length;q+=2)_.naB(M[q],M[q+1],G);return G.join("&")},q6P=function(M,q){var G=arguments.length==2?MDI(arguments[1],0):MDI(arguments,1);
return _.KvS(M,G)},GSL=_.ov(_.tY),GKn=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(GKn,_.kC);GKn.prototype.getTypeName=function(){return _.hD(this,1).split("/").pop()};
GKn.prototype.getValue=function(){var M=_.nu(this,2);if(Array.isArray(M)||M instanceof _.kC)throw Error("W");return _.k1(this,2)};
var jZI=function(){var M=_.Fp();this.JSC$9921_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.hu("channel_type"))};
jZI.prototype.increment=function(M){this.JSC$9921_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",M)};
var Vs8=function(){var M=_.Fp();this.JSC$9924_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.hu("channel_type"))};
Vs8.prototype.increment=function(M){this.JSC$9924_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",M)};
var fTn=function(){var M=_.Fp();this.JSC$9927_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.hu("channel_type"))};
fTn.prototype.increment=function(M){this.JSC$9927_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",M)};
var RV5=function(){var M=_.Fp();this.JSC$9930_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
RV5.prototype.increment=function(){this.JSC$9930_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var Fgs=function(){var M=_.Fp();this.JSC$9933_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.hu("channel_type"),_.hu("error_type"))};
Fgs.prototype.increment=function(M,q){this.JSC$9933_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",M,q)};
var HLL=function(){var M=_.Fp();this.JSC$9936_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
HLL.prototype.increment=function(){this.JSC$9936_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var eVR=function(){var M=_.Fp();this.JSC$9939_streamzService=M;M.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
eVR.prototype.increment=function(){this.JSC$9939_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var rcg=function(){var M=_.Fp();this.JSC$9945_streamzService=M;M.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
rcg.prototype.increment=function(){this.JSC$9945_streamzService.JSC$9791_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var KH5=function(M){return M.getCount&&typeof M.getCount=="function"?M.getCount():_.TF(M)||typeof M==="string"?M.length:_.xP.getCount(M)},nr8=function(M,q){if(typeof M.every=="function")return M.every(q,void 0);
if(_.TF(M)||typeof M==="string")return Array.prototype.every.call(M,q,void 0);for(var G=_.ncB(M),K=_.HT(M),n=K.length,E=0;E<n;E++)if(!q.call(void 0,K[E],G&&G[E],M))return!1;return!0},ErE=function(M,q,G,K){var n=new _.Za(null);
M&&_.e8(n,M);q&&_.$u(n,q);G&&_.sg(n,G);K&&_.Mu(n,K);return n},NNL=function(){var M=_.HR&&_.vy(_.OYB,10)>=0,q;
if(q=_.jyl)q=_.vy(_.t4f,10)>=0;var G=_.sv&&_.vy(_.OYB,85)>=0;return _.Fa||M||q||G},kKP=function(M){var q=_.U_S(M);
return q&&NNL()?-M.scrollLeft:q&&_.FD(M,"overflowX")!="visible"?M.scrollWidth-M.clientWidth-M.scrollLeft:M.scrollLeft},pBP=function(M,q){q=Math.max(q,0);
_.U_S(M)?NNL()?M.scrollLeft=-q:M.scrollLeft=M.scrollWidth-q-M.clientWidth:M.scrollLeft=q},r_I=0,FXg=!1;
sa.prototype.set=function(M){this.relativeTimeStart_=M};
sa.prototype.reset=function(){this.set(_.Sh())};
sa.prototype.get=function(){return this.relativeTimeStart_};
var ysP=null,LHw=function(){ysP||(ysP=new sa)},Y6g=function(){ysP||(ysP=new sa)};
_.TO(Y6g,LHw);_.N=eUR.prototype;_.N.JSC$11356_buffer_="";_.N.set=function(M){this.JSC$11356_buffer_=""+M};
_.N.append=function(M,q,G){this.JSC$11356_buffer_+=String(M);if(q!=null)for(var K=1;K<arguments.length;K++)this.JSC$11356_buffer_+=arguments[K];return this};
_.N.clear=function(){this.JSC$11356_buffer_=""};
_.N.getLength=function(){return this.JSC$11356_buffer_.length};
_.N.toString=function(){return this.JSC$11356_buffer_};
var WH5=!1,njU=function(M){_.qD.call(this,M.message||M.description||M.name);this.isMissing=M instanceof Mm;this.isTimeout=M instanceof _.Zn&&M.errorCode=="net.timeout";this.isCanceled=M instanceof _.l_};
_.l(njU,_.qD);njU.prototype.name="BiscottiError";var Mm=function(){_.qD.call(this,"Biscotti ID is missing from server")};
_.l(Mm,_.qD);Mm.prototype.name="BiscottiMissingError";var qm=null,Pqv=function(){try{var M=_.sx("yt.ads.biscotti.getId_");return M?M():bTL()}catch(q){return _.Aj(q)}},AsR=function(M,q){return _.RJ({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:M,command:q}})},dqn=function(M){return _.RJ({type:"SET_GUIDE_IS_EXPANDED",
payload:M})},vr5=function(M){return _.RJ({type:"SET_ONLINE_STATUS",
payload:M})},hIP=function(M,q){return _.RJ({type:"SET_TRANSCRIPTION_STATE",
payload:{high:M,low:q}})},tDw=function(M){return _.RJ({type:"SET_OVERLAY_STATE",
payload:M})},O$M=0,wBP=function(M,q,G){var K=this;
this.priority=q;this.delay=G;this.jobId=0;this.completionCallback=_.vp;this.wrappedJob=function(){M();K.completionCallback()};
this.id=++O$M};
wBP.prototype.enqueue=function(M){this.completionCallback=M;this.jobId=_.r8.addJob(this.wrappedJob,this.priority,this.delay)};
var aa=function(){_.qq.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.l(aa,_.qq);aa.prototype.addJob=function(M,q,G){M=new wBP(M,q,G);this.taskIdToTask.set(M.id,M);this.isActive?CtI(this,M):this.suspendedTasks.add(M);return M.id};
var CtI=function(M,q){M.scheduledTasks.add(q);q.enqueue(function(){M.scheduledTasks.delete(q)})};
aa.prototype.cancelJob=function(M){(M=this.taskIdToTask.get(M))&&(this.scheduledTasks.delete(M)?_.r8.cancelJob(M.jobId):this.suspendedTasks.delete(M))};
aa.prototype.pause=function(){var M=this;this.isActive=!1;this.scheduledTasks.forEach(function(q){_.r8.cancelJob(q.jobId);M.suspendedTasks.add(q)});
this.scheduledTasks.clear()};
aa.prototype.start=function(){var M=this;this.isActive=!0;this.suspendedTasks.forEach(function(q){CtI(M,q)});
this.suspendedTasks.clear()};
aa.prototype.reset=function(){this.scheduledTasks.forEach(function(M){_.r8.cancelJob(M.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var oa=function(M,q){this.JSC$13209_networkService_=M;this.pageRequestPromise=q};
oa.prototype.fetchData=function(M){aDR(this,this.JSC$13209_networkService_.fetchData(M))};
oa.prototype.postData=function(M,q){aDR(this,this.JSC$13209_networkService_.postData(M,q))};
oa.prototype.requestDataForServiceEndpoint=function(M,q){aDR(this,this.JSC$13209_networkService_.requestDataForServiceEndpoint(M,q))};
var aDR=function(M,q){q.then(M.pageRequestPromise.onSuccess,M.pageRequestPromise.onFailure,M.pageRequestPromise)};
oa.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var lX=function(M){this.buildNetworkRequest_=M;this.pendingRequests_=new Set};
lX.prototype.reset=function(){this.pendingRequests_.forEach(function(M){M.cancel()});
this.pendingRequests_.clear()};
lX.prototype.fetchData=function(M){var q=orw(this);q.fetchData(M);return q.pageRequestPromise};
lX.prototype.postData=function(M,q){var G=orw(this);G.postData(M,q);return G.pageRequestPromise};
lX.prototype.requestDataForServiceEndpoint=function(M,q){var G=orw(this);G.requestDataForServiceEndpoint(M,q);return G.pageRequestPromise};
var orw=function(M){var q=M.buildNetworkRequest_();M.pendingRequests_.add(q);var G=function(){M.pendingRequests_.delete(q)};
q.pageRequestPromise.then(G,G);return q},lDP=function(M){var q=new aa;
this.JSC$13216_networkService_=M;this.JSC$13216_taskManager_=q;this.JSC$13216_networkManager_=new lX(this.networkRequestFactory_.bind(this))};
_.N=lDP.prototype;_.N.networkRequestFactory_=function(){return new oa(this.JSC$13216_networkService_,new _.CV(this.JSC$13216_taskManager_))};
_.N.reset=function(){this.JSC$13216_taskManager_.reset();this.JSC$13216_networkManager_.reset()};
_.N.start=function(){this.JSC$13216_taskManager_.start()};
_.N.pause=function(){this.JSC$13216_taskManager_.pause()};
_.N.getTaskManager=function(){return this.JSC$13216_taskManager_};
_.N.getNetworkManager=function(){return this.JSC$13216_networkManager_};
var vjL=null,Olw=[],GY=0,nd=0,Kd=null,Nm=function(M){this.token=M};
Nm.getInstance=function(){var M;return _.L(function(q){if(q.nextAddress==1)return q.yield(_.W2(),2);M=q.yieldResult;if(!M)return q.return();Nm.instance||(Nm.instance=new Nm(M));return q.return(Nm.instance)})};
var ilE=function(M){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(lgs(M.token),2);q=G.yieldResult;return G.return(q.clear("resource-manifest-assets"))})},Ea=function(M){this.token=M};
Ea.getInstance=function(){var M;return _.L(function(q){if(q.nextAddress==1)return q.yield(_.W2(),2);M=q.yieldResult;if(!M)return q.return();Ea.instance||(Ea.instance=new Ea(M));return q.return(Ea.instance)})};
var Xbv=function(M){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(lgs(M.token),2);q=G.yieldResult;return G.yield(q.clear("auth"),0)})},XBL=!1,kY=null,zx5=void 0,FY8=!1,Pt5=function(M){_.qD.call(this,M)};
_.l(Pt5,_.gwJ);var b5n=function(){var M=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return M?parseInt(M[1],10):0},i$5=function(M){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+M)!=-1||document.currentScript.src.indexOf("&"+M)!=-1)},csw=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},Szw=function(M){M.length?gr8(M.shift(),function(){Szw(M)}):xQL()},rYw=function(M){return"chrome-extension://"+M+"/cast_sender.js"},gr8=function(M,
q,G){var K=document.createElement("script");
K.onerror=q;G&&(K.onload=G);_.Ei(K,_.bI(M));(document.head||document.documentElement).appendChild(K)},BNs=function(){var M=b5n(),q=[];
if(M>1){var G=M-1;q.push("//www.gstatic.com/eureka/clank/"+M+"/cast_sender.js");q.push("//www.gstatic.com/eureka/clank/"+G+"/cast_sender.js")}return q},xQL=function(){var M=csw();
M&&M(!1,"No cast extension found")},mQ5=function(){if(QAR){var M=2,q=csw(),G=function(){M--;
M==0&&q&&q(!0)};
window.__onGCastApiAvailable=G;gr8("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",xQL,G)}},UQM=function(){mQ5();
var M=BNs();M.push("//www.gstatic.com/eureka/clank/cast_sender.js");Szw(M)},zYE=function(){mQ5();
var M=BNs();M.push.apply(M,_.Ui(TIv.map(rYw)));M.push("//www.gstatic.com/eureka/clank/cast_sender.js");Szw(M)},QAR=i$5("loadCastFramework")||i$5("loadCastApplicationFramework"),TIv=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var IDv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(IDv,_.kC);var Dq8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Dq8,_.kC);var u65=function(){var M=new Dq8;return _.lZ(M,1,3)};var Xh=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Xh,_.kC);var bpw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(bpw,_.kC);var JsI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(JsI,_.kC);JsI.prototype.getToken=function(){return _.hD(this,1)};
JsI.prototype.setToken=function(M){return _.gI(this,1,M)};
var JCv=function(M){return _.HI(M,3,_.lP,_.WX())},Zpn=function(M){return _.HI(M,6,_.lP,_.WX())};var P6=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(P6,_.kC);P6.prototype.getToken=function(){return _.t0(this,JsI,2)};
P6.prototype.setToken=function(M){return _.Xe(this,2,M)};
P6.prototype.getName=function(){return _.hD(this,6)};
var Z$E=_.ov(P6);var b$8=function(M,q,G){this.requestMessage=M;this.methodDescriptor=q;this.metadata=G};
b$8.prototype.getMetadata=function(){return this.metadata};var UqE=function(M,q){q=q===void 0?{}:q;this.responseMessage=M;this.metadata=q;this.status=null};
UqE.prototype.getMetadata=function(){return this.metadata};
UqE.prototype.getStatus=function(){return this.status};var iX=function(M,q,G,K,n){this.name=M;this.methodType="unary";this.requestType=q;this.responseType=G;this.requestSerializeFn=K;this.responseDeserializeFn=n},xqE=function(M,q,G){G=G===void 0?{}:G;
return new b$8(q,M,G)};
iX.prototype.getName=function(){return this.name};var c6=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(c6,_.kC);c6.prototype.getHeader=function(){return _.t0(this,Xh,1)};
c6.prototype.setHeader=function(M){return _.Xe(this,1,M)};
c6.prototype.hasHeader=function(){return _.Ev(this,Xh,1)};var zIM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(zIM,_.kC);var mqg=new iX("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",c6,zIM,function(M){return M.serialize()},_.ov(zIM));var gD=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(gD,_.kC);gD.prototype.getHeader=function(){return _.t0(this,Xh,1)};
gD.prototype.setHeader=function(M){return _.Xe(this,1,M)};
gD.prototype.hasHeader=function(){return _.Ev(this,Xh,1)};var S6R=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(S6R,_.kC);var TN8=new iX("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",gD,S6R,function(M){return M.serialize()},_.ov(S6R));var B6=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(B6,_.kC);B6.prototype.getHeader=function(){return _.t0(this,Xh,1)};
B6.prototype.setHeader=function(M){return _.Xe(this,1,M)};
B6.prototype.hasHeader=function(){return _.Ev(this,Xh,1)};var rsL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(rsL,_.kC);rsL.prototype.getLink=function(){return _.t0(this,P6,1)};var jA5=new iX("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",B6,rsL,function(M){return M.serialize()},_.ov(rsL));var Q8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Q8,_.kC);Q8.prototype.getHeader=function(){return _.t0(this,Xh,1)};
Q8.prototype.setHeader=function(M){return _.Xe(this,1,M)};
Q8.prototype.hasHeader=function(){return _.Ev(this,Xh,1)};var VDw=new iX("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Q8,P6,function(M){return M.serialize()},Z$E);var RIw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(RIw,_.kC);var fDL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(fDL,_.kC);fDL.prototype.getUrl=function(){return _.hD(this,2)};
fDL.prototype.setUrl=function(M){return _.gI(this,2,M)};var FHL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(FHL,_.kC);var H$v=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(H$v,_.kC);var eIn=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(eIn,_.kC);var ftI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ftI,_.kC);var R4M=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(R4M,_.kC);var $qR=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l($qR,_.kC);var q0s=_.ov($qR);var seU=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(seU,_.kC);var M9s=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(M9s,_.kC);_.N=M9s.prototype;_.N.getHeader=function(){return _.t0(this,Xh,1)};
_.N.setHeader=function(M){return _.Xe(this,1,M)};
_.N.hasHeader=function(){return _.Ev(this,Xh,1)};
_.N.getCompletionUrl=function(){return _.hD(this,6)};
_.N.getDeviceId=function(){return _.hD(this,11)};var q5U=new iX("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",M9s,$qR,function(M){return M.serialize()},q0s);var GdI=new Set(["SAPISIDHASH","APISIDHASH"]);var KtP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(KtP,_.kC);KtP.prototype.getMessage=function(){return _.hD(this,2)};
var nHP=_.ov(KtP);var NFR=function(M,q){this.onDataCallbacks=[];this.onMetadataCallbacks=[];this.onStatusCallbacks=[];this.onEndCallbacks=[];this.onErrorCallbacks=[];this.xhrNodeReadableStream=M.nodeReadableStream;this.grpcResponseDeserializeFn=q;this.xhr=M.xhr;this.xhrNodeReadableStream&&EHv(this)},Wtw=function(M,q){var G=new kdR;
_.Yj(M.xhr,"complete",function(){if(M.xhr.isSuccess()){var K=M.xhr.getResponseText();var n;if(n=q)n=M.xhr,n.JSC$9800_xhr_&&n.isComplete()?(n=n.JSC$9800_xhr_.getResponseHeader("Content-Type"),n=n===null?void 0:n):n=void 0,n=n==="text/plain";if(n){if(!atob)throw Error("hk");K=atob(K)}try{var E=M.grpcResponseDeserializeFn(K)}catch(y){Ia(M,atn(new _.PT(13,"Error when deserializing response data; error: "+y+(", response: "+K)),G));return}K=_.yLF(M.xhr.getStatus());pWw(M,yQU(M));K===0?LtL(M,E):Ia(M,atn(new _.PT(K,
"Xhr succeeded but the status code is not 200"),G))}else{K=M.xhr.getResponseText();E=yQU(M);if(K){var p=Y5I(M,K);K=p.code;n=p.details;p=p.metadata}else K=2,n="Rpc failed due to xhr error. uri: "+String(M.xhr.JSC$9800_lastUri_)+", error code: "+(M.xhr.JSC$9800_lastErrorCode_+", error: ")+M.xhr.getLastError(),p=E;pWw(M,E);Ia(M,atn(new _.PT(K,n,p),G))}})},EHv=function(M){M.xhrNodeReadableStream.on("data",function(q){if("1"in q){var G=q["1"];
try{var K=M.grpcResponseDeserializeFn(G)}catch(n){Ia(M,new _.PT(13,"Error when deserializing response data; error: "+n+(", response: "+G)))}K&&LtL(M,K)}if("2"in q)for(q=Y5I(M,q["2"]),G=0;G<M.onStatusCallbacks.length;G++)M.onStatusCallbacks[G](q)});
M.xhrNodeReadableStream.on("end",function(){pWw(M,yQU(M));for(var q=0;q<M.onEndCallbacks.length;q++)M.onEndCallbacks[q]()});
M.xhrNodeReadableStream.on("error",function(){if(M.onErrorCallbacks.length!==0){var q=M.xhr.JSC$9800_lastErrorCode_;q!==0||M.xhr.isSuccess()||(q=6);var G=-1;switch(q){case 0:var K=2;break;case 7:K=10;break;case 8:K=4;break;case 6:G=M.xhr.getStatus();K=_.yLF(G);break;default:K=14}pWw(M,yQU(M));q=_.ZX2(q)+", error: "+M.xhr.getLastError();G!==-1&&(q+=", http status code: "+G);Ia(M,new _.PT(K,q))}})},yQU=function(M){var q={},G=YSs(M.xhr);
Object.keys(G).forEach(function(K){q[K]=G[K]});
return q},Y5I=function(M,q){var G=2,K={};
try{var n=nHP(q);G=_.Au(n,1);var E=n.getMessage();_.Ya(n,GKn,3,_.WX()).length&&(K["grpc-web-status-details-bin"]=q)}catch(p){M.xhr&&M.xhr.getStatus()===404?(G=5,E="Not Found: "+String(M.xhr.JSC$9800_lastUri_)):(G=14,E="Unable to parse RpcStatus: "+p)}return{code:G,details:E,metadata:K}};
NFR.prototype.on=function(M,q){M==="data"?this.onDataCallbacks.push(q):M==="metadata"?this.onMetadataCallbacks.push(q):M==="status"?this.onStatusCallbacks.push(q):M==="end"?this.onEndCallbacks.push(q):M==="error"&&this.onErrorCallbacks.push(q);return this};
var Do=function(M,q){q=M.indexOf(q);q>-1&&M.splice(q,1)};
NFR.prototype.removeListener=function(M,q){M==="data"?Do(this.onDataCallbacks,q):M==="metadata"?Do(this.onMetadataCallbacks,q):M==="status"?Do(this.onStatusCallbacks,q):M==="end"?Do(this.onEndCallbacks,q):M==="error"&&Do(this.onErrorCallbacks,q);return this};
NFR.prototype.cancel=function(){this.xhr.abort()};
var LtL=function(M,q){for(var G=0;G<M.onDataCallbacks.length;G++)M.onDataCallbacks[G](q)},pWw=function(M,q){for(var G=0;G<M.onMetadataCallbacks.length;G++)M.onMetadataCallbacks[G](q)},Ia=function(M,q){for(var G=0;G<M.onErrorCallbacks.length;G++)M.onErrorCallbacks[G](q)},kdR=function(){var M=Error.call(this);
this.message=M.message;"stack"in M&&(this.stack=M.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)};
_.l(kdR,Error);var AQE=function(M){this.JSC$19595_worker_=M.worker||null;this.JSC$19595_streamBinaryChunks_=M.streamBinaryChunks||!1;this.JSC$19595_credentialsMode_=void 0};
_.TO(AQE,_.Yx$);AQE.prototype.createInstance=function(){var M=new uX(this.JSC$19595_worker_,this.JSC$19595_streamBinaryChunks_);this.JSC$19595_credentialsMode_&&M.setCredentialsMode(this.JSC$19595_credentialsMode_);return M};
AQE.prototype.setCredentialsMode=function(M){this.JSC$19595_credentialsMode_=M};
var uX=function(M,q){_.w6.call(this);this.JSC$19599_worker_=M;this.JSC$19599_streamBinaryChunks_=q;this.JSC$19599_credentialsMode_=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=null;this.requestHeaders_=new Headers;this.JSC$19599_responseHeaders_=null;this.JSC$19599_method_="GET";this.JSC$19599_url_="";this.inProgress_=!1;this.JSC$19599_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.TO(uX,_.w6);uX.prototype.open=function(M,q){if(this.readyState!=0)throw this.abort(),Error("ik");this.JSC$19599_method_=M;this.JSC$19599_url_=q;this.readyState=1;dOI(this)};
uX.prototype.send=function(M){if(this.readyState!=1)throw this.abort(),Error("jk");if(this.abortController_.signal.aborted)throw this.abort(),Error("kk");this.inProgress_=!0;var q={headers:this.requestHeaders_,method:this.JSC$19599_method_,credentials:this.JSC$19599_credentialsMode_,cache:void 0,signal:this.abortController_.signal};M&&(q.body=M);(this.JSC$19599_worker_||_.Kj).fetch(new Request(this.JSC$19599_url_,q)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
uX.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,vHs(this));this.readyState=0};
uX.prototype.handleResponse_=function(M){if(this.inProgress_&&(this.fetchResponse_=M,this.JSC$19599_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$19599_responseHeaders_=M.headers,this.readyState=2,dOI(this)),this.inProgress_&&(this.readyState=3,dOI(this),this.inProgress_)))if(this.responseType==="arraybuffer")M.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.Kj.ReadableStream!==
"undefined"&&"body"in M){this.currentReader_=M.body.getReader();if(this.JSC$19599_streamBinaryChunks_){if(this.responseType)throw Error("lk");this.response=[]}else this.response=this.responseText="",this.JSC$19599_textDecoder_=new TextDecoder;hp5(this)}else M.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var hp5=function(M){M.currentReader_.read().then(M.handleDataFromStream_.bind(M)).catch(M.handleSendFailure_.bind(M))};
uX.prototype.handleDataFromStream_=function(M){if(this.inProgress_){if(this.JSC$19599_streamBinaryChunks_&&M.value)this.response.push(M.value);else if(!this.JSC$19599_streamBinaryChunks_){var q=M.value?M.value:new Uint8Array(0);if(q=this.JSC$19599_textDecoder_.decode(q,{stream:!M.done}))this.response=this.responseText+=q}M.done?vHs(this):dOI(this);this.readyState==3&&hp5(this)}};
uX.prototype.handleResponseText_=function(M){this.inProgress_&&(this.response=this.responseText=M,vHs(this))};
uX.prototype.handleResponseArrayBuffer_=function(M){this.inProgress_&&(this.response=M,vHs(this))};
uX.prototype.handleSendFailure_=function(){this.inProgress_&&vHs(this)};
var vHs=function(M){M.readyState=4;M.fetchResponse_=null;M.currentReader_=null;M.JSC$19599_textDecoder_=null;dOI(M)};
uX.prototype.setRequestHeader=function(M,q){this.requestHeaders_.append(M,q)};
uX.prototype.getResponseHeader=function(M){return this.JSC$19599_responseHeaders_?this.JSC$19599_responseHeaders_.get(M.toLowerCase())||"":""};
uX.prototype.getAllResponseHeaders=function(){if(!this.JSC$19599_responseHeaders_)return"";for(var M=[],q=this.JSC$19599_responseHeaders_.entries(),G=q.next();!G.done;)G=G.value,M.push(G[0]+": "+G[1]),G=q.next();return M.join("\r\n")};
uX.prototype.setCredentialsMode=function(M){this.JSC$19599_credentialsMode_=M};
var dOI=function(M){M.onreadystatechange&&M.onreadystatechange.call(M)};
Object.defineProperty(uX.prototype,"withCredentials",{get:function(){return this.JSC$19599_credentialsMode_==="include"},
set:function(M){this.setCredentialsMode(M?"include":"same-origin")}});var t9v=function(M){var q="";_.xP.forEach(M,function(G,K){q+=K;q+=":";q+=G;q+="\r\n"});
return q},OkR=function(M,q,G){if(_.xP.isEmpty(G))return M;
G=t9v(G);if(typeof M==="string")return _.xE(M,_.qz(q),G);_.qT(M,q,G);return M};var wWI=function(){this.isInputValid_=!0;this.JSC$19605_streamPos_=0;this.leftoverInput_=""};
wWI.prototype.isInputValid=function(){return this.isInputValid_};
wWI.prototype.decode=function(M){if(!this.isInputValid_)throw this.isInputValid_=!1,Error("mk`"+this.JSC$19605_streamPos_+"`stream already broken`"+M);this.leftoverInput_+=M;M=Math.floor(this.leftoverInput_.length/4);if(M==0)return null;try{var q=_.bay(this.leftoverInput_.slice(0,M*4))}catch(G){throw q=this.leftoverInput_,M=G.message,this.isInputValid_=!1,Error("mk`"+this.JSC$19605_streamPos_+"`"+M+"`"+q);}this.JSC$19605_streamPos_+=M*4;this.leftoverInput_=this.leftoverInput_.slice(M*4);return q};var Ld=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$19608_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
Ld.prototype.isInputValid=function(){return this.state_!=3};
var CMP=function(M,q,G,K){M.state_=3;M.errorMessage_="The stream is broken @"+M.JSC$19608_streamPos_+"/"+G+". Error: "+K+". With input:\n"+q;throw Error(M.errorMessage_);};
Ld.prototype.acceptsBinaryInput=function(){return!0};
Ld.prototype.parse=function(M){function q(Y){Y&128&&CMP(E,p,y,"invalid tag");(Y&7)!=2&&CMP(E,p,y,"invalid wire type");E.tag_=Y>>>3;E.tag_!=1&&E.tag_!=2&&E.tag_!=15&&CMP(E,p,y,"unexpected tag");E.state_=1;E.length_=0;E.countLengthBytes_=0}
function G(Y){E.countLengthBytes_++;E.countLengthBytes_==5&&Y&240&&CMP(E,p,y,"message length too long");E.length_|=(Y&127)<<(E.countLengthBytes_-1)*7;Y&128||(E.state_=2,E.countMessageBytes_=0,typeof Uint8Array!=="undefined"?E.messageBuffer_=new Uint8Array(E.length_):E.messageBuffer_=Array(E.length_),E.length_==0&&n())}
function K(Y){E.messageBuffer_[E.countMessageBytes_++]=Y;E.countMessageBytes_==E.length_&&n()}
function n(){if(E.tag_<15){var Y={};Y[E.tag_]=E.messageBuffer_;E.result_.push(Y)}E.state_=0}
for(var E=this,p=M instanceof Array?M:new Uint8Array(M),y=0;y<p.length;){switch(E.state_){case 3:CMP(E,p,y,"stream already broken");break;case 0:q(p[y]);break;case 1:G(p[y]);break;case 2:K(p[y]);break;default:throw Error("nk`"+E.state_);}E.JSC$19608_streamPos_++;y++}M=E.result_;E.result_=[];return M.length>0?M:null};var lts=function(){this.errorMessage_=null;this.JSC$19611_streamPos_=0;this.base64Decoder_=new wWI;this.pbParser_=new Ld};
lts.prototype.isInputValid=function(){return this.errorMessage_===null};
var ac8=function(M,q,G){M.errorMessage_="The stream is broken @"+M.JSC$19611_streamPos_+". Error: "+G+". With input:\n"+q;throw Error(M.errorMessage_);};
lts.prototype.acceptsBinaryInput=function(){return!1};
lts.prototype.parse=function(M){this.errorMessage_!==null&&ac8(this,M,"stream already broken");var q=null;try{var G=this.base64Decoder_.decode(M);q=G===null?null:this.pbParser_.parse(G)}catch(K){ac8(this,M,K.message)}this.JSC$19611_streamPos_+=M.length;return q};var omw=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$19614_streamPos_=0;this.result_=[];this.statusParsed_=!1};
omw.prototype.isInputValid=function(){return this.errorMessage_===null};
omw.prototype.acceptsBinaryInput=function(){return!1};
omw.prototype.parse=function(M){function q(Y){E.state_=6;E.errorMessage_="The stream is broken @"+E.JSC$19614_streamPos_+"/"+p+". Error: "+Y+". With input:\n";throw Error(E.errorMessage_);}
function G(){E.jsonStreamParser_=new _.ph({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function K(Y){if(Y)for(var A=0;A<Y.length;A++){var v={};v[1]=Y[A];E.result_.push(v)}}
function n(Y){if(Y){(E.statusParsed_||Y.length>1)&&q("extra status: "+Y);E.statusParsed_=!0;var A={};A[2]=Y[0];E.result_.push(A)}}
for(var E=this,p=0;p<M.length;){var y;if(y=E.state_!==2){a:{for(;p<M.length;){if(!_.kt(M[p])){y=!0;break a}p++;E.JSC$19614_streamPos_++}y=!1}y=!y}if(y)return null;switch(E.state_){case 6:q("stream already broken");break;case 0:M[p]==="["?(E.state_=1,p++,E.JSC$19614_streamPos_++):q("unexpected input token");break;case 1:M[p]==="["?(E.state_=2,G()):M[p]===","||M.slice(p,p+5)=="null,"?E.state_=3:M[p]==="]"?(E.state_=5,p++,E.JSC$19614_streamPos_++):q("unexpected input token");break;case 2:y=E.jsonStreamParser_.parse(M.substring(p));
K(y);E.jsonStreamParser_.done()?(E.state_=3,y=E.jsonStreamParser_.JSC$11483_buffer_,E.JSC$19614_streamPos_+=M.length-p-y.length,M=y,p=0):(E.JSC$19614_streamPos_+=M.length-p,p=M.length);break;case 3:M[p]===","||M.slice(p,p+5)=="null,"?(E.state_=4,G(),E.jsonStreamParser_.parse("["),p+=M[p]===","?1:5,E.JSC$19614_streamPos_++):M[p]==="]"&&(E.state_=5,p++,E.JSC$19614_streamPos_++);break;case 4:y=E.jsonStreamParser_.parse(M.substring(p));n(y);E.jsonStreamParser_.done()?(E.state_=5,y=E.jsonStreamParser_.JSC$11483_buffer_,
E.JSC$19614_streamPos_+=M.length-p-y.length,M=y,p=0):(E.JSC$19614_streamPos_+=M.length-p,p=M.length);break;case 5:q("extra input after stream end")}}return E.result_.length>0?(M=E.result_,E.result_=[],M):null};var oHI=function(M){this.JSC$19617_xhr_=M;this.JSC$19617_parser_=null;this.status_=this.JSC$19617_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$19617_textDecoder_=null;this.JSC$19617_eventHandler_=new _.OU(this);this.JSC$19617_eventHandler_.listen(this.JSC$19617_xhr_,"readystatechange",this.JSC$19619_readyStateChangeHandler_)},Jy=function(M,q){M.status_!=q&&(M.status_=q,M.statusHandler_&&M.statusHandler_())},lcw=function(M){M.JSC$19617_eventHandler_.removeAll();
if(M.JSC$19617_xhr_){var q=M.JSC$19617_xhr_;M.JSC$19617_xhr_=null;q.abort();q.dispose()}};
oHI.prototype.getStatus=function(){return this.status_};
oHI.prototype.JSC$19619_readyStateChangeHandler_=function(M){M=M.target;try{if(M==this.JSC$19617_xhr_)a:{var q=_.g6(this.JSC$19617_xhr_),G=this.JSC$19617_xhr_.JSC$9800_lastErrorCode_,K=this.JSC$19617_xhr_.getStatus(),n=this.JSC$19617_xhr_.getResponseText();M=[];if(this.JSC$19617_xhr_.getResponse()instanceof Array){var E=this.JSC$19617_xhr_.getResponse();E.length>0&&E[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,M=E)}if(!(q<3||q==3&&!n&&M.length==0))if(K=K==200||K==206,q==4&&(G==8?Jy(this,
7):G==7?Jy(this,8):K||Jy(this,3)),this.JSC$19617_parser_||(this.JSC$19617_parser_=Xxn(this.JSC$19617_xhr_),this.JSC$19617_parser_==null&&Jy(this,5)),this.status_>2)lcw(this);else{if(M.length>this.JSC$19617_pos_){var p=M.length;G=[];try{if(this.JSC$19617_parser_.acceptsBinaryInput())for(var y=0;y<p;y++){var Y=this.JSC$19617_parser_.parse(Array.from(M[y]));Y&&(G=G.concat(Y))}else{Y="";if(!this.JSC$19617_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("ok");this.JSC$19617_textDecoder_=
new TextDecoder}for(y=0;y<p;y++)Y+=this.JSC$19617_textDecoder_.decode(M[y],{stream:q==4&&y==p-1});G=this.JSC$19617_parser_.parse(Y)}M.splice(0,p);G&&this.dataHandler_(G)}catch(v){Jy(this,5);lcw(this);break a}}else if(n.length>this.JSC$19617_pos_){y=n.slice(this.JSC$19617_pos_);this.JSC$19617_pos_=n.length;try{var A=this.JSC$19617_parser_.parse(y);A!=null&&this.dataHandler_&&this.dataHandler_(A)}catch(v){Jy(this,5);lcw(this);break a}}q==4?(n.length!=0||this.hasStreamingResponseData_?Jy(this,2):Jy(this,
4),lcw(this)):Jy(this,1)}}}catch(v){Jy(this,6),lcw(this)}};var XWI=function(M){M=this.xhrReader_=M;var q=(0,_.Ju)(this.onData_,this);M.dataHandler_=q;M=this.xhrReader_;q=(0,_.Ju)(this.onStatusChange_,this);M.statusHandler_=q;this.JSC$19621_callbackMap_={};this.callbackOnceMap_={}};
_.N=XWI.prototype;_.N.on=function(M,q){var G=this.JSC$19621_callbackMap_[M];G||(G=[],this.JSC$19621_callbackMap_[M]=G);G.push(q);return this};
_.N.addListener=function(M,q){this.on(M,q);return this};
_.N.removeListener=function(M,q){var G=this.JSC$19621_callbackMap_[M];G&&_.my(G,q);(M=this.callbackOnceMap_[M])&&_.my(M,q);return this};
_.N.once=function(M,q){var G=this.callbackOnceMap_[M];G||(G=[],this.callbackOnceMap_[M]=G);G.push(q);return this};
_.N.onData_=function(M){var q=this.JSC$19621_callbackMap_.data;q&&PMI(M,q);(q=this.callbackOnceMap_.data)&&PMI(M,q);this.callbackOnceMap_.data=[]};
var PMI=function(M,q){for(var G={},K=0;K<M.length;G={message$jscomp$1008:void 0},K++)G.message$jscomp$1008=M[K],q.forEach(function(n){return function(E){try{E(n.message$jscomp$1008)}catch(p){}}}(G))};
XWI.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:ikI(this,"readable");break;case 5:case 6:case 4:case 7:case 3:ikI(this,"error");break;case 8:ikI(this,"close");break;case 2:ikI(this,"end")}};
var ikI=function(M,q){var G=M.JSC$19621_callbackMap_[q];G&&G.forEach(function(K){try{K()}catch(n){}});
(G=M.callbackOnceMap_[q])&&G.forEach(function(K){K()});
M.callbackOnceMap_[q]=[]};var cQv=function(){var M={format:"jspb"};M=M===void 0?{}:M;this.suppressCorsPreflight=M.suppressCorsPreflight||_.sx("suppressCorsPreflight",M)||!1;this.withCredentials=M.withCredentials||_.sx("withCredentials",M)||!1;this.streamInterceptors=M.streamInterceptors||[];this.unaryInterceptors=M.unaryInterceptors||[];this.workerScope=M.workerScope;this.chunkedServerStreaming=M.useFetchDownloadStreams||!1},QeM=function(M,q,G,K,n,E){E=E===void 0?{}:E;
var p=q.substring(0,q.length-n.name.length),y,Y=(y=E)==null?void 0:y.signal;return gHn(function(A){return new Promise(function(v,h){if(Y==null?0:Y.aborted){var t=new _.PT(1,"Aborted");t.cause=Y.reason;h(t)}else{var O={},a=BFn(M,A,p);a.on("error",function(g){return void h(g)});
a.on("metadata",function(g){O=g});
a.on("data",function(g){var D=O;D=D===void 0?{}:D;v(new UqE(g,D))});
Y&&Y.addEventListener("abort",function(){a.cancel();var g=new _.PT(1,"Aborted");g.cause=Y.reason;h(g)})}})},M.unaryInterceptors).call(M,xqE(n,G,K)).then(function(A){return A.responseMessage})},IcE=function(M,q,G,K,n,E){E=E===void 0?{}:E;
return QeM(M,q,G,K,n,E)};
cQv.prototype.serverStreaming=function(M,q,G,K){var n=this,E=M.substring(0,M.length-K.name.length);return DOM(function(p){var y=p.methodDescriptor,Y=p.getMetadata(),A=uXs(n,!1);Y=JQU(n,Y,A,E+y.getName());var v=Zks(A,y.responseDeserializeFn,!0);p=y.requestSerializeFn(p.requestMessage);A.send(Y,"POST",p);return v},this.streamInterceptors).call(this,xqE(K,q,G))};
var BFn=function(M,q,G){var K=q.methodDescriptor,n=q.getMetadata(),E=uXs(M,!0);M=JQU(M,n,E,G+K.getName());G=Zks(E,K.responseDeserializeFn,!1);Wtw(G,n["X-Goog-Encode-Response-If-Executable"]==="base64");q=K.requestSerializeFn(q.requestMessage);E.send(M,"POST",q);return G},uXs=function(M,q){q=M.chunkedServerStreaming&&!q;
return M.workerScope||q?new _.cT(new AQE({worker:M.workerScope,streamBinaryChunks:q})):new _.cT},JQU=function(M,q,G,K){q["Content-Type"]="application/json+protobuf";
q["X-User-Agent"]="grpc-web-javascript/0.1";var n=q.Authorization;if(n&&GdI.has(n.split(" ")[0])||M.withCredentials)G.JSC$9800_withCredentials_=!0;if(M.suppressCorsPreflight)K=OkR(K,"$httpHeaders",q);else for(M=_.k(Object.keys(q)),n=M.next();!n.done;n=M.next())n=n.value,G.headers.set(n,q[n]);return K},Zks=function(M,q,G){if(G){G=new oHI(M);
var K=new XWI(G)}return new NFR({xhr:M,nodeReadableStream:K},q)},DOM=function(M,q){return q.reduce(function(G,K){return function(n){return K.intercept(n,G)}},M)},gHn=function(M,q){return q.reduce(function(G,K){return function(n){return K.intercept(n,G)}},M)};var bkE=function(M){this.client_=new cQv;this.hostname_=M==void 0?M:M.replace(/\/+$/,"")};
_.N=bkE.prototype;_.N.JSC$19639_depositGoogleCredential=function(M,q,G){return IcE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",M,q||{},TN8,G)};
_.N.deleteLink=function(M,q,G){return IcE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",M,q||{},mqg,G)};
_.N.JSC$19639_finishOAuth=function(M,q,G){return IcE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",M,q||{},jA5,G)};
_.N.getLink=function(M,q,G){return IcE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",M,q||{},VDw,G)};
_.N.startLinkingSession=function(M,q,G){return IcE(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",M,q||{},q5U,G)};var UOE=[0,_.Uv,1,eEM,[0,_.Tm,[0,_.m6,-1]],[0,HOw],[0,_.fu,-1],[0,HOw]];var xOE=function(){this.storage=new Map},mOn=function(M,q,G,K,n){if(!M.storage.has(q))return null;
M=_.k(M.storage.get(q));for(q=M.next();!q.done;q=M.next())if(q=q.value,!n||q.linkName===n)if(G&&q.scopes&&zpE(q.scopes,G)||K&&q.capabilities&&zpE(q.capabilities,K))return q;return null},S5g=function(M,q,G){if(!G)M.storage.delete(q);
else if(M.storage.has(q)){var K=M.storage.get(q).filter(function(n){return n.linkName!==G});
K.length>0?M.storage.set(q,K):M.storage.delete(q)}},zpE=function(M,q){q=_.k(q);
for(var G=q.next();!G.done;G=q.next())if(!M.has(G.value))return!1;return!0};var TFw=function(){var M=_.R9("LINK_GAL_DOMAIN");this.alsDomain1p=_.R9("LINK_GAL_DOMAIN");this.alsDomain3p=M;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},rQR=function(M,q){M.apiKey=q;
return M};
TFw.prototype.build=function(){var M={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("pk");M.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("qk");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("rk");M.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(M.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)M.apiKey=
this.apiKey,M.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("sk");M.oauthToken=this.oauthToken;M.alsDomain=this.alsDomain3p}M.clientXd3=this.clientXd3;M.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(M.authUser=this.authUser);this.bucket!==void 0&&(M.bucket=this.bucket);this.completionUrl!==void 0&&(M.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(M.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(M.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(M.locale=this.locale);M.loggerType=this.loggerType;M.clientEnvironment=this.clientEnvironment;M.colorScheme=this.colorScheme;M.showCloseOption=this.showCloseOption;return M};var YY=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(YY,_.kC);var jeP=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(jeP,_.kC);var V9E=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(V9E,_.kC);var AO=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(AO,_.kC);var RpR=function(M){return _.tD(M,1)};var fcn=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(fcn,_.kC);var ItM=_.ov(fcn),Wo=[1,2,3,4,5];var cC5=function(M){try{return ItM(M)}catch(q){return null}},Ftv=function(){},gmg=function(M,q){switch(_.yj(q,Wo)){case 4:return(q=_.aT(q,V9E,4,Wo))&&M.logStateTransition(_.tD(q,1)),!0;
case 5:return(q=_.aT(q,jeP,5,Wo))&&M.logInternalEvent(_.tD(q,1)),!0}return!1},DAU=function(M){switch(M){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.F2(M)}};var P8L=function(M,q){var G=this;this.validator=M;this.messageListener=q;this.dismissCallback=function(){Hk8(G,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$19668_receiveMessage=function(K){K.type==="message"&&(K=K.event_,K!==null&&(new URL(G.iframe.src)).origin===K.origin&&G.validator(K.data,K.origin)&&!G.messageListener(K.data)&&(G.JSC$19668_resolveCb!==void 0&&G.JSC$19668_resolveCb(K.data),epI(G)))}},Q2E=function(M,q,G){M.uiHandler!==void 0&&Hk8(M,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(K,n){M.JSC$19668_resolveCb=K;M.JSC$19668_rejectCb=n;M.iframe=document.createElement("iframe");_.$C(M.iframe,q);M.uiHandler=G.displayContent(M.iframe,M.dismissCallback);_.Yj(window,"message",M.JSC$19668_receiveMessage,!1,M)})},Hk8=function(M,q){M.JSC$19668_rejectCb!==void 0&&M.JSC$19668_rejectCb(q);
epI(M)},epI=function(M){M.uiHandler!==void 0&&M.uiHandler.hideContent();
_.OS(window,"message",M.JSC$19668_receiveMessage,!1,M);M.JSC$19668_resolveCb=void 0;M.JSC$19668_rejectCb=void 0;M.uiHandler=void 0;M.iframe=void 0};var $OI=function(M){if(M===2){var q;M=((q=window)==null?0:q.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return M},BkL=function(M){M=$OI(M);
switch(M){case 0:return"light";case 1:return"dark";default:_.F2(M)}};var ipw=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),s3n=function(M,q){this.JSC$19680_linkingSession=M;this.noticeConfig=q;this.displayInfoMap=new Map;var G=new Map;if(_.Ev(this.JSC$19680_linkingSession,FHL,7))for(M=_.t0(this.JSC$19680_linkingSession,FHL,7),M=_.Ya(M,fDL,1,_.WX()),M=_.k(M),q=M.next();!q.done;q=M.next())q=q.value,G.set(_.tD(q,1),_.Pjw(_.t0(q,_.Sry,3)));if(G.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){q=this.noticeConfig.enabledDataUsageNoticeUis;M=q.has(0)?G.get(1):void 0;q=q.has(1)?G.get(2):void 0;G=M!==void 0&&q!==void 0?G.get(3):void 0;var K=this.noticeConfig.nestedOrigins;var n=new fcn;var E=new YY;n=_.Pt(n,2,Wo,E);E=new fcn;var p=new YY;E=_.Pt(E,3,Wo,p);p=[];M!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:M,lastEvent:n,nestedOrigins:K}]),p.push({trustedUrl:M,lastEvent:n,nestedOrigins:K}));q!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:q,lastEvent:E,nestedOrigins:K}]),p.push({trustedUrl:q,lastEvent:E,nestedOrigins:K}));G!==void 0?this.displayInfoMap.set(3,[{trustedUrl:G,lastEvent:E,nestedOrigins:K}]):this.displayInfoMap.set(3,p)}};var Mv5=function(M){var q=new xOE;this.galService=M;this.galCache=q};
Mv5.prototype.getLink=function(M){var q=M.serviceId;var G=M.scopes;var K=M.capabilities;var n=M.linkName;var E=this,p;return _.L(function(y){if(K!==void 0&&G!==void 0)throw Error("tk");p=mOn(E.galCache,q,G,K,n);return p!==null?y.return(p):y.return(E.galService.getLink({serviceId:q,sessionId:Math.floor(Math.random()*2147483648),scopes:G,capabilities:K,linkName:n}).then(function(Y){Y=UAv(Y);var A=E.galCache;A.storage.has(q)?A.storage.get(q).push(Y):A.storage.set(q,[Y]);return Y}))})};
Mv5.prototype.deleteLink=function(M,q,G){var K=this;return _.L(function(n){S5g(K.galCache,M,G);return n.return(K.galService.deleteLink({serviceId:M,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:q,linkName:G}).then(function(){return!0}))})};var GbE=function(M,q){var G=this;this.validator=M;this.msgHandler=q;this.closedPopupTimeout=this.JSC$19702_rejectCb=this.JSC$19702_resolveCb=this.popup=null;this.JSC$19702_receiveMessage=function(K){if(K!==null&&(K=K.event_,K.source===G.popup)){var n=K.data;if(G.validator(n,K.origin)){var E;(E=G.msgHandler)!=null&&E.call(G,n)||(G.JSC$19702_resolveCb!==null&&G.JSC$19702_resolveCb(n),qZn(G))}}}};
GbE.prototype.open=function(M,q){var G=this;this.popup!==null&&KxR(this);return new Promise(function(K,n){G.JSC$19702_resolveCb=K;G.JSC$19702_rejectCb=n;G.popup=_.si(window,M,"",q);_.Yj(window,"message",G.JSC$19702_receiveMessage,!1,G);ntg(G)})};
var KxR=function(M,q){M.JSC$19702_rejectCb!==null&&M.JSC$19702_rejectCb(q);qZn(M)},qZn=function(M){M.closedPopupTimeout&&(M.closedPopupTimeout.cancel(),M.closedPopupTimeout=null);
M.popup&&M.popup.close();_.OS(window,"message",M.JSC$19702_receiveMessage,!1,M);M.popup=null;M.JSC$19702_resolveCb=null;M.JSC$19702_rejectCb=null},ntg=function(M){M.closedPopupTimeout=_.Q9l(100).then(function(){M.popup?M.popup.closed?EtI(M):ntg(M):KxR(M,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},EtI=function(M){M.closedPopupTimeout=_.Q9l(100).then(function(){KxR(M,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var NQE=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),kbn=function(M,q,G,K,n,E,p,y,Y,A){var v=this;this.serviceId=M;this.sessionId=q;this.galService=G;this.oauthDetails=K;this.galLogger=n;this.interactionMode=E;this.redirectServiceUrl=p;this.consentLanguageKeys=y;this.dynamicUrlParameters=Y;this.partnerConfigMinReadTimestamp=A;this.started=!1;this.JSC$19708_dataValidator=function(h,
t){var O=NQE.has(t);O||v.redirectServiceUrl===void 0||(O=v.redirectServiceUrl===t);return O?h.sentinel==="gdi":!1}};
kbn.prototype.complete=function(){var M=this,q;return _.L(function(G){if(M.interactionMode!==1)return G.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));q=vo.getRedirectStateFromUri();return q===null?G.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):G.return(pnP(M,q))})};
kbn.prototype.start=function(){var M=this,q;return _.L(function(G){if(M.started)return G.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.hD(M.oauthDetails,1))return G.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(M.interactionMode===1)return vo.setLocation(_.hD(M.oauthDetails,1)),G.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));M.started=!0;M.galLogger.logStateTransition(5);
q=vo.getPostMessagePopup(M.JSC$19708_dataValidator);return G.return(q.open(_.hD(M.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(K){M.started=!1;var n=M.galLogger;if((K==null?void 0:K.error)!==void 0)throw n.logInternalEvent(59),Error("uk");if((K==null?void 0:K.redirect_state)===void 0)throw n.logInternalEvent(131),Error("vk");return pnP(M,K.redirect_state)}).catch(function(K){M.started=
!1;
return K.errorCode!==void 0?{statusCode:K.errorCode,statusMessage:K.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var pnP=function(M,q){return _.L(function(G){return G.return(ytv(M.galService,{serviceId:M.serviceId,sessionId:M.sessionId,dynamicUrlParameters:M.dynamicUrlParameters,redirectState:q,consentLanguageKeys:M.consentLanguageKeys,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp}).then(function(K){var n={statusCode:1,link:UAv(K.getLink())};J_g(_.k1(K,3))!==void 0&&(n.callerState=J_g(_.k1(K,3)));M.galLogger.logInternalEvent(134);return n}))})},vo={getPostMessagePopup:function(M){return new GbE(M)},
getRedirectStateFromUri:function(){var M=_.s9(vo.getLocation()).fragment_;return(new _.nO(M)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(M){_.tmu(window.location,_.SM(M))},
createOAuthFlow:function(M,q){return new kbn(M.serviceId,M.sessionId,M.galService,q,M.galLogger,M.interactionMode,M.redirectServiceUrl,M.consentLanguageKeys,M.dynamicUrlParameters,M.partnerConfigMinReadTimestamp)}};var LxM=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(LxM,_.kC);var YZU=_.ov(LxM);var Wxv=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),Atw=function(M,q,G,K,n,E,p,y,Y){var A=this;this.serviceId=M;this.sessionId=q;this.galService=G;this.gsiWebFlowDetails=K;this.colorScheme=n;this.showCloseOption=E;this.galLogger=p;this.interactionMode=y;this.redirectServiceUrl=Y;this.started=!1;this.JSC$19720_dataValidator=function(v,h){var t=Wxv.has(h);t||A.redirectServiceUrl===
void 0||(t=A.redirectServiceUrl===h);return t?v.sentinel==="gal":!1};
this.logEventProcessor=function(v){return v.result?(v=cC5(v.result))?gmg(A.galLogger,v):!1:!1}};
Atw.prototype.complete=function(){var M=this,q,G;return _.L(function(K){if(M.interactionMode!==1)return K.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));q=hO.getRedirectStateFromUri();if(q===void 0)return M.galLogger.JSC$19660_logErrorEvent(131),K.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return G=dSn(M,q),K.return(vt8(M,G))}catch(n){return K.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
Atw.prototype.start=function(){var M=this,q;return _.L(function(G){if(M.started)return G.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.hD(M.gsiWebFlowDetails,1))return G.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(M.interactionMode===1)return hO.setLocation(hnR(M,_.hD(M.gsiWebFlowDetails,1))),G.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
M.started=!0;q=hO.getPostMessagePopup(M.JSC$19720_dataValidator,M.logEventProcessor);return G.return(q.open(hnR(M,_.hD(M.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(K){M.started=!1;if((K==null?void 0:K.result)===void 0)throw M.galLogger.JSC$19660_logErrorEvent(131),Error("vk");K=dSn(M,K.result);return vt8(M,K)}).catch(function(K){M.started=!1;
return K.errorCode!==void 0?{statusCode:K.errorCode,statusMessage:K.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var hnR=function(M,q){M=["result_channel",M.interactionMode===1?"2":"1","color_scheme",BkL(M.colorScheme),"show_close_option",M.showCloseOption];return q6P(q,M)},vt8=function(M,q){if(q!==null&&_.Ev(q,AO,2)){var G,K=q==null?void 0:(G=_.t0(q,AO,2))==null?void 0:_.tD(G,2);
K&&M.galLogger.JSC$19660_logErrorEvent(DAU(K));return RpR(_.t0(q,AO,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 M.galService.getLink({serviceId:M.serviceId,sessionId:M.sessionId,consistencyKey:_.hD(q,1)}).then(function(n){n=UAv(n);M.galLogger.logInternalEvent(134);return{statusCode:1,link:n}})},dSn=function(M,q){q=YZU(q);
if(!_.Ev(q,AO,2)&&_.hD(q,1)==="")throw M.galLogger.JSC$19660_logErrorEvent(5),Error("wk");return q},hO={getPostMessagePopup:function(M,q){return new GbE(M,q)},
getRedirectStateFromUri:function(){return _.MT(_.s9(hO.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(M){_.tmu(window.location,_.SM(M))},
createStreamlinedFlow:function(M,q){return new Atw(M.serviceId,M.sessionId,M.galService,q,M.colorScheme,M.showCloseOption,M.galLogger,M.interactionMode,M.redirectServiceUrl)}};var sZP=function(){var M=_.Slu("GAL");this.storage=M?new _.Ux(M):null};
sZP.prototype.getSession=function(M){if(this.storage!==null)try{var q=this.storage.get("SAVED_SESSION");if(q===void 0)return null;if(q.serviceId===M)return q}catch(G){}return null};var tvE=function(){};
_.l(tvE,Ftv);tvE.prototype.logStateTransition=function(){};
tvE.prototype.logInternalEvent=function(){};
tvE.prototype.JSC$19660_logErrorEvent=function(){};var Ohw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Ohw,_.kC);Ohw.prototype.getCompletionUrl=function(){return _.hD(this,15)};var Zo=function(M,q,G,K,n,E){this.serviceId=M;this.environment=q;this.sessionId=G;this.colorSchemeSelected=K;this.colorThemeDisplayed=n;this.JSC$19733_transport=E;this.currentState=1};
_.l(Zo,Ftv);Zo.prototype.logStateTransition=function(M){var q=wng(this);q=_.Oh(q,3,this.currentState);q=_.Oh(q,1,M);this.currentState=M;M=LPI(1);this.dispatch(q,M)};
Zo.prototype.logInternalEvent=function(M){M=LPI(M);this.dispatch(wng(this),M)};
Zo.prototype.JSC$19660_logErrorEvent=function(M){var q=wng(this);q=_.Oh(q,1,10);M=LPI(M);this.dispatch(q,M)};
var wng=function(M){var q=new Ohw;q=_.Oh(q,1,M.currentState);q=_.DJ(q,7,M.serviceId);var G,K;var n=((G=window)==null?0:(K=G.location)==null?0:K.href)?_.s9(window.location.href).JSC$10036_domain_:"NO_PACKAGE_NAME";G=_.DJ(q,8,n);G=_.Oh(G,6,M.environment);G=_.DJ(G,5,"100");G=_.Oh(G,11,M.colorSchemeSelected);return _.Oh(G,12,M.colorThemeDisplayed)};
Zo.prototype.dispatch=function(M,q){q===void 0&&(q=new _.ku);var G=q;M=M.serialize();G=_.DJ(G,8,M);_.Db(G,12,this.sessionId);this.JSC$19733_transport.dispatch(q)};var CzI=function(M,q){this.loggerType=M;this.sessionIndex=q!=null?q:0},a4I;
CzI.prototype.create=function(M,q,G,K,n){switch(this.loggerType){case 0:return new tvE;case 1:return a4I||(a4I=(new _.aE(555,this.sessionIndex.toString())).build()),new Zo(M,q,G,K,n,a4I);default:_.F2(this.loggerType,"unknown logger type")}};var tO=[6,2,3,1],EeE=new Map([[4,1],[1,6],[2,2],[3,3]]),Sqw={statusCode:7,statusMessage:"Failed to create flow object"},e4L=function(M,q,G,K,n,E,p,y,Y,A){this.serviceId=M;this.sessionId=q;this.config=G;this.galService=K;this.JSC$19740_linkingSession=n;this.googleScopes=E;this.callerState=p;this.consentLanguageKeys=y;this.dynamicUrlParameters=Y;this.partnerConfigMinReadTimestamp=A;this.currentFlow=0;K=this.JSC$19740_linkingSession;n=new Set;_.Ev(K,R4M,1)&&n.add(1);_.Ev(K,eIn,2)&&_.Ev(K,ftI,6)&&n.add(2);
_.Ev(K,H$v,3)&&_.Ev(K,ftI,6)&&n.add(3);_.Ev(K,RIw,4)&&n.add(6);this.supportedFlows=n;K=G.loggerType;n=G.clientEnvironment;a:{E=G.colorScheme;switch(E){case 0:E=1;break a;case 1:E=2;break a;case 2:E=3;break a;default:_.F2(E)}E=void 0}a:{p=G.colorScheme;p=$OI(p);switch(p){case 0:p=1;break a;case 1:p=2;break a;default:_.F2(p)}p=void 0}this.galLogger=(new CzI(K,G.authUser)).create(M,n,q,E,p)},l4I=function(M){return new Promise(function(q){var G,K,n,E,p,y,Y,A,v,h;
return _.L(function(t){switch(t.nextAddress){case 1:G=FdI(M.currentFlow,M.supportedFlows),K=!1,n=new s3n(M.JSC$19740_linkingSession,M.config.dataUsageNoticeConfig);case 2:if(G===void 0){t.jumpTo(4);break}_.Cv(t,5);var O=n,a=G,g=void 0;K?a===1&&(g=O.displayInfoMap.get(2)):a===2||a===3?g=O.displayInfoMap.get(1):a===1&&(g=O.displayInfoMap.get(3));E=g?g:[];p=M.consentLanguageKeys;y=_.k(E);Y=y.next();case 7:if(Y.done)return M.currentFlow=G,t.yield(rC5(otn(M,p)),11);A=Y.value;return t.yield(uYP(A,M.config.dataUsageNoticeConfig.uiAdapter,
M.config.colorScheme,M.galLogger),10);case 10:v=t.yieldResult;if(v.statusCode!==1)return Ms8(M.serviceId),M.currentFlow=0,q(dV({statusCode:v.statusCode,statusMessage:v.statusMessage},M.callerState)),t.return();v.consentLanguageKeys!==void 0&&(p=v.consentLanguageKeys);Y=y.next();t.jumpTo(7);break;case 11:h=t.yieldResult;if(h.statusCode!==10)return h.statusCode!==6&&(Ms8(M.serviceId),M.currentFlow=0),h.statusCode!==1&&M.callerState!==void 0&&(h.callerState=M.callerState),q(h),t.return();_.KF(t,6);break;
case 5:_.i5(t);case 6:G=FdI(M.currentFlow,M.supportedFlows);K=!0;t.jumpTo(2);break;case 4:Ms8(M.serviceId),M.currentFlow=0,q(dV({statusCode:12,statusMessage:"Linking failed"},M.callerState)),_.gL(t)}})})},KgP=function(M,q,G){M.currentFlow=q;
return j2I(otn(M,G)).then(function(K){return K.statusCode===10&&M.config.interactionMode===1&&FdI(M.currentFlow,M.supportedFlows)!==void 0?l4I(M):K})},otn=function(M,q){return{flowParams:{serviceId:M.serviceId,
sessionId:M.sessionId,galService:M.galService,galLogger:M.galLogger,interactionMode:M.config.interactionMode,redirectServiceUrl:M.config.redirectServiceUrl,colorScheme:M.config.colorScheme,consentLanguageKeys:q,dynamicUrlParameters:M.dynamicUrlParameters,showCloseOption:M.config.showCloseOption,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp},currentFlow:M.currentFlow,config:M.config,session:M.JSC$19740_linkingSession,googleScopes:M.googleScopes,callerState:M.callerState}};var kSI=function(M,q){this.config=M;this.galService=q.getService();this.JSC$19753_galRepository=q.JSC$19771_galRepository};
kSI.prototype.getLink=function(M,q){return Xn8(this,M,q)};
var Xn8=function(M,q,G){return M.JSC$19753_galRepository.getLink({serviceId:q,scopes:void 0,capabilities:void 0,linkName:G}).then(function(K){return{statusCode:1,link:K}}).catch(function(K){return{statusCode:NxP(K.code),
statusMessage:K.message}})};
kSI.prototype.deleteLink=function(M,q){return this.JSC$19753_galRepository.deleteLink(M,this.config.accountLinkingEntryPoint,q).then(function(){return{statusCode:1}}).catch(function(G){return{statusCode:NxP(G.code),
statusMessage:G.message}})};
kSI.prototype.startLinkingSession=function(M){var q=M.serviceId;var G=M.sessionId;return $An({serviceId:q,sessionId:G!==void 0?G:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:M.loginHint,callerState:M.callerState,consentLanguageKeys:M.consentLanguageKeys,linkName:M.linkName,dynamicUrlParameters:M.dynamicUrlParameters,partnerConfigMinReadTimestamp:M.partnerConfigMinReadTimestamp})};var bX=function(M,q,G,K,n,E,p){this.apiKey=q;this.authUser=G;this.oauthToken=K;this.bucket=n;this.locale=E;this.galSdkEventHandler=p;if(K===void 0){if(q===void 0)throw Error("xk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new bkE(M)};
bX.prototype.deleteLink=function(M){var q=M.serviceId;var G=M.sessionId;var K=M.accountLinkingEntryPoint;var n=M.linkName;var E=this,p;return _.L(function(y){var Y=(new c6).setHeader(E.getHeader(G));var A=Pz5({serviceId:q,linkName:n});Y=_.Xe(Y,2,A);p=_.lZ(Y,3,K);return y.return(E.makeRequest(E.galServiceClient.deleteLink,p,[1,3],[2,4]))})};
var ytv=function(M,q){var G=q.serviceId;var K=q.sessionId;var n=q.dynamicUrlParameters;var E=q.redirectState;var p=q.consentLanguageKeys;var y=q.partnerConfigMinReadTimestamp;var Y;return _.L(function(A){var v=(new B6).setHeader(M.getHeader(K,n));v=_.gI(v,2,G);Y=_.gI(v,4,E);p!==void 0&&_.gI(Y,5,p);y!==void 0&&_.Xe(Y,6,y);return A.return(M.makeRequest(M.galServiceClient.JSC$19639_finishOAuth,Y,[1,3],[2,4]))})};
bX.prototype.getLink=function(M){var q=M.serviceId;var G=M.sessionId;var K=M.scopes;var n=M.capabilities;var E=M.consistencyKey;var p=M.linkName;var y=this,Y;return _.L(function(A){var v=(new Q8).setHeader(y.getHeader(G)),h=Pz5({serviceId:q,scopes:K,capabilities:n,linkName:p});Y=_.Xe(v,2,h);E!==void 0&&(v=u65(),v=_.gI(v,2,E),_.Xe(Y,3,v));return A.return(y.makeRequest(y.galServiceClient.getLink,Y,[1,3],[2,4]))})};
var VcU=function(M,q){var G=q.serviceId;var K=q.sessionId;var n=q.googleScopes;var E=q.consistencyKey;var p;return _.L(function(y){var Y=(new gD).setHeader(M.getHeader(K));Y=_.gI(Y,2,G);var A=Array.from(n.values());Y=_.sA(Y,3,A,_.Cn);A=u65();A=_.gI(A,2,E);p=_.Xe(Y,4,A);return y.return(M.makeRequest(M.galServiceClient.JSC$19639_depositGoogleCredential,p,[1,3],[2,4]))})};
bX.prototype.startLinkingSession=function(M){var q=M.serviceId;var G=M.sessionId;var K=M.scopes;var n=M.capabilities;var E=M.loginHint;var p=M.supportedFlows;var y=M.completionUrl;var Y=M.usePingPong;var A=M.twoWayLinking;var v=M.accountLinkingEntryPoint;var h=M.callerState;var t=M.consentLanguageKeys;var O=M.googleScopes;var a=M.dataUsageNoticeConfig;var g=M.linkName;var D=M.dynamicUrlParameters;var J=M.partnerConfigMinReadTimestamp;var Z=this,V,S;return _.L(function(m){if(n!==void 0&&K!==void 0)throw Error("tk");
var R=(new M9s).setHeader(Z.getHeader(G,D));V=_.gI(R,2,q);g!==void 0&&_.gI(V,14,g);if(n!==void 0){R=V;var se=Array.from(n.values());_.sA(R,5,se,_.Cn)}else K!==void 0&&(R=V,se=Array.from(K.values()),_.sA(R,3,se,_.Cn));y!==void 0&&_.gI(V,6,y);Y!==void 0&&_.vF(V,15,Y);p!==void 0&&(R=V,se=Array.from(p.values()),_.sA(R,4,se,_.nn));if(A!==void 0){if(A&&(!O||O.size===0))throw Error("yk");_.vF(V,8,A)}v!==void 0&&_.lZ(V,9,v);E!==void 0&&_.gI(V,13,E);h!==void 0&&(R=V,se=(new TextEncoder).encode(h),_.Ma(R,12,
_.D8(se,!1),_.II()));t!==void 0&&_.gI(V,16,t);J!==void 0&&_.Xe(V,18,J);if(a!==void 0&&a.size>0||O!==void 0&&O.size>0)S=new seU,O!==void 0&&O.size>0&&(R=S,se=Array.from(O.values()),_.sA(R,1,se,_.Cn)),a!==void 0&&(a.has(0)&&_.zwu(S,2,_.nn,1,_.EL),a.has(1)&&_.zwu(S,2,_.nn,2,_.EL)),_.Xe(V,17,S);return m.return(Z.makeRequest(Z.galServiceClient.startLinkingSession,V,[1],[2]))})};
bX.prototype.getMetadata=function(){var M=this,q,G;return _.L(function(K){q={};M.useFpa?(q["X-Goog-Api-Key"]=M.apiKey,q["X-Goog-AuthUser"]=M.authUser!==void 0?M.authUser.toString():"0",(G=_.A_$([]))&&(q.Authorization=G)):q.Authorization="Bearer "+M.oauthToken;M.locale&&(q["accept-language"]=M.locale);return K.return(q)})};
bX.prototype.makeRequest=function(M,q,G,K){var n=this,E;return _.L(function(p){if(p.nextAddress==1)return p.yield(n.getMetadata(),2);E=p.yieldResult;ih8(n,G);return p.return(M.bind(n.galServiceClient)(q,E).finally(function(){ih8(n,K)}))})};
var ih8=function(M,q){M.galSdkEventHandler!==void 0&&q.forEach(function(G){M.galSdkEventHandler.onEvent(G)})};
bX.prototype.getHeader=function(M,q){var G=new Xh;M=_.Ma(G,2,_.kg(M),0);M=_.lZ(M,5,3);q=_.sA(M,8,q,_.Cn);this.bucket!==void 0&&_.gI(q,1,this.bucket);return q};
var Pz5=function(M){var q=M.serviceId;var G=M.scopes;var K=M.capabilities;M=M.linkName;if(K!==void 0&&G!==void 0)throw Error("tk");var n=new IDv;q=_.gI(n,1,q);K!==void 0?(G=Array.from(K.values()),_.sA(q,5,G,_.Cn)):G!==void 0&&(G=Array.from(G.values()),_.sA(q,3,G,_.Cn));M!==void 0&&_.gI(q,6,M);return q};var pOM=function(M){this.galService=new bX(M.alsDomain,M.apiKey,M.authUser,M.oauthToken,M.bucket,M.locale,M.galSdkEventHandler);this.JSC$19771_galRepository=new Mv5(this.galService)};
pOM.prototype.getService=function(){return this.galService};var ctI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(ctI,_.kC);var gtI=function(M){var q=new ctI;return _.Oh(q,1,M)};
ctI.prototype.setErrorMessage=function(M){return _.DJ(this,2,M)};var BQL=[0,_.RT,_.x1,_.RT];var Ud=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Ud,_.kC);var Q3U=[0,[1,2,3],_.rl,[0,_.L5p,_.Yuv,-1],_.rl,[0,F7M,-1],_.S$];var I45=[0,_.Zh,1,_.RT,_.x1,-1,1,_.j$,_.Dh,_.RT,-1,Q3U];var DSM=[0,_.RT,[0,_.j$,_.Dh,[0,_.x1]],_.bZ,[0,_.RT,-1]];var y8=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(y8,_.kC);var u9R=[0,_.x1,_.RT,-2,_.Zh,_.RT,_.Zh,_.RT,-2,1,_.bZ];var JtI=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(JtI,_.kC);var Zhn=[0,_.Zh];var bhU=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(bhU,_.kC);var USv=[0,_.RT,DSM,Zhn,u9R,I45];var meR=_.t9(bhU,USv);var xSR=[0,UOE];var RKL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(RKL,_.kC);var znn=[0,[1,3],$uv,_.RT,$uv];var kX=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(kX,_.kC);var mSM=[0,_.RT];var SZL=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(SZL,_.kC);var pq=function(M){return _.aT(M,ctI,2,Nf)},TQw=function(M){var q=new SZL;
return _.Pt(q,2,Nf,M)},Nf=[1,
2];var rtR=[0,Nf,_.rl,mSM,_.rl,BQL,_.Tm,znn,1,_.RT,xSR];var j3w=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(j3w,_.kC);var RnE=function(M){var q=new j3w;return _.Pt(q,3,Vvn,M)},Vvn=[2,
3];var f4g=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(f4g,_.kC);var FxU=function(M,q){return _.Xe(M,2,q)},HhL=function(M,q){return _.Xe(M,8,q)},enE=function(M,q){return _.Xe(M,3,q)};var $S8=[0,_.RT,rtR,USv,_.eW,[0,[5,6,7],[0,_.RT,-2],[0,_.Zh,_.RT,_.x1],[0,Q3U],[0,_.x1,_.RT,-1,_.Hp,_.RT],_.rl,[0,[0,_.Zh],_.RT,-1],_.rl,[0,[3,4],_.RT,-1,_.rl,[0,[0,_.RT,_.bZ]],_.rl,[0,[0,[0,[1,2,3],_.rl,[0],_.rl,[0],_.rl,[0]]]]],_.rl,[0,_.RT]],_.eW,-1,[0,Vvn,_.RT,_.rl,mSM,_.rl,BQL,_.Tm,znn,[0,UOE]]];var sDE=_.t9(f4g,$S8),MNM=_.wW($S8);var q7s=function(){_.uI.call(this)};
_.l(q7s,_.uI);q7s.prototype.init=function(){};
new q7s;var GXR=_.DQ(["data-"]),Kz8=_.DQ(["aria-"]),nNg=_.DQ(["aria-"]),xX=function(M,q){this.isLatencyMeasurementExperiment=M===void 0?!1:M;this.enableDialogA11yFix=q===void 0?!1:q;this.win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.sEv(_.Kj.location.href)},TBP=function(M,q){M.onConsentPrimitiveShownCallback=q},ENP=function(M,q){return M.overriddenIframeLoadTimeout?M.overriddenIframeLoadTimeout:q!==void 0?q:5E3},j5M=function(M){if(M.prewarmPromise!==void 0)return M.prewarmPromise;
M.prewarmPromise=new Promise(function(q,G){zP(M,1);Ni5(M,kXI(M,!0),pAn(M));M.iframe?M.prewarmChannel||yrv(M,M.iframe,q):G(Error("zk"))});
M.prewarmPromise.finally(function(){M.prewarmPromise=void 0});
return M.prewarmPromise};
xX.prototype.showPrimitive=function(){var M=this;if(this.consentPromise!==void 0)return this.consentPromise;var q=Date.now();LzM(this,q);this.consentPromise=new Promise(function(G,K){zP(M,0,q);var n=M.isDarkTheme();M.isLatencyMeasurementExperiment||M.initialLoadingStrategy===1||M.initialLoadingStrategy===2||(M.loadingBar||(M.loadingBar=Wgg(getComputedStyle(document.body).direction==="rtl",n),M.loadingBar.style.position="fixed",M.loadingBar.style.zIndex="15000"),document.body.appendChild(M.loadingBar));
Ni5(M,kXI(M),pAn(M));M.iframe?M.channel||Y7M(M,M.iframe,G,K):(Wzs(M),K(Error("zk")))});
this.consentPromise.finally(function(){M.consentPromise=void 0});
return this.consentPromise};
var Y7M=function(M,q,G,K){var n,E;_.L(function(p){switch(p.nextAddress){case 1:zP(M,3);n=!1;setTimeout(function(){if(!n){Wzs(M);Ars(M);dC8(M);var y=gtI(7).setErrorMessage("Timeout connecting to iframe");G(HhL(FxU(new f4g,TQw(y)),RnE(y)))}},ENP(M,vNn(M)));
if(!M.prewarmPromise){p.jumpTo(2);break}_.Cv(p,3);return p.yield(M.prewarmPromise,5);case 5:_.KF(p,2);break;case 3:_.i5(p),E=gtI(4).setErrorMessage("Error while prewarming."),G(HhL(FxU(new f4g,TQw(E)),RnE(E)));case 2:M.prewarmChannel&&M.prewarmChannel.send(MNM(enE(new f4g,M.consentPrimitiveRequest))),M.channel=_.e$({destination:M.win,iframe:q,origin:hbI(M),channelName:"cpw",onEstablished:function(){n=!0;Wzs(M);M.isLatencyMeasurementExperiment||(M.JSC$19800_previousBodyOverflow=document.body.style.overflow,
M.JSC$19800_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,M.JSC$19800_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",M.enableDialogA11yFix&&window.addEventListener("blur",M.focusChangeListener));var y=M.iframe;y.style.bottom="0";y.style.position="fixed";y.style.right="0";y.style.border="none";y.style.left="0";y.style.top=
"0";y.style.zIndex="5000";y.style.pointerEvents="";y.style.visibility="";M.initialLoadingStrategy===2||M.initialLoadingStrategy===3?zP(M,4):zP(M,6);var Y;(Y=M.onConsentPrimitiveShownCallback)==null||Y.call(M)},
onMessage:function(y){y=sDE(y.data);switch(_.tD(y,1)){case 1:Ars(M);var Y=A$M(_.t0(y,_.tY,7));Y&&(M.initialLoadingStrategy!==2&&M.initialLoadingStrategy!==3||zP(M,6,Y),zP(M,5,Y));if(Y=A$M(_.t0(y,_.tY,6)))zP(M,7,Y),zP(M,8);var A,v;((A=_.t0(y,SZL,2))==null?void 0:_.yj(A,Nf))!==0&&((v=_.t0(y,j3w,8))==null?void 0:_.yj(v,Vvn))!==0||K(Error("Ak"));G(y);break;case 2:dC8(M)}}}),_.gL(p)}})},yrv=function(M,q,G){M.prewarmChannel=_.e$({destination:M.win,
iframe:q,origin:hbI(M),channelName:"pwcp",onEstablished:function(){zP(M,2);G()}})},hbI=function(M){var q=_.Iv(M.src).toString();
return q&&q.indexOf("://")<0&&q.indexOf("//")!==0?M.origin:_.sEv(q)},kXI=function(M,q){q=q===void 0?!1:q;
var G,K=new Map([["origin",M.origin],["hl",(G=tNI(M))!=null?G:null]]);q&&K.set("pw","1");q=_.k([["cpr",M.consentPrimitiveRequest.serialize()]]);for(G=q.next();!G.done;G=q.next()){var n=_.k(G.value);G=n.next().value;n=n.next().value;K.set(G,n)}M.isDarkTheme()&&K.set("color_scheme","dark");return _.wq(M.src,K)},Wzs=function(M){M.isLatencyMeasurementExperiment||M.loadingBar&&document.body.removeChild(M.loadingBar)};
xX.prototype.getSrc=function(){var M=_.pD(this.origin),q;var G=(q=_.t0(this.consentPrimitiveRequest,JtI,3))==null?void 0:_.Au(q,1);q="consent.google.com";G=G?"/u/"+encodeURIComponent(G.toString()):"";(M==null?0:M.endsWith("youtube.com"))?q="consent.youtube.com":(M=M==null?void 0:M.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(q="consent.google."+((M[1]?"co.":"")+encodeURIComponent(M[2])));return _.Qk("https://"+q+"/signedin"+G+"/landing")};
var Ni5=function(M,q,G){M.iframe||(M.iframe=document.createElement("iframe"),M.iframe.style.width="100%",M.iframe.style.height="100%",G!==112496729&&(M.iframe.style.colorScheme="auto"),M.isLatencyMeasurementExperiment&&(M.iframe.style.display="none"),_.$C(M.iframe,q),M.iframe.setAttribute("jsname","C5o1O"),O1E(M.iframe),document.body.appendChild(M.iframe))},O1E=function(M){M.style.bottom="-200vh";
M.style.position="fixed";M.style.right="-200vw";M.style.border="";M.style.left="";M.style.top="";M.style.zIndex="";M.style.pointerEvents="none";M.style.visibility="hidden"},Ars=function(M){M.iframe&&(M.isLatencyMeasurementExperiment||(M.JSC$19800_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=M.JSC$19800_previousHtmlOverscroll),M.JSC$19800_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=M.JSC$19800_previousBodyOverscroll),M.JSC$19800_previousBodyOverflow!==
void 0&&(document.body.style.overflow=M.JSC$19800_previousBodyOverflow),M.enableDialogA11yFix&&wAM(M,!1)),O1E(M.iframe))};
xX.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(wAM(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var wAM=function(M,q){var G,K,n=(G=M.iframe)==null?void 0:(K=G.parentElement)==null?void 0:K.children;if(n)for(G=0;G<n.length;G++)K=n[G],K!==M.iframe&&(q?(K.hasAttribute("aria-hidden")&&_.kq([_.vc(GXR)],K,"data-old-aria-hidden",K.getAttribute("aria-hidden")),_.kq([_.vc(Kz8)],K,"aria-hidden","true")):(K.removeAttribute("aria-hidden"),K.hasAttribute("data-old-aria-hidden")&&(_.kq([_.vc(nNg)],K,"aria-hidden",K.getAttribute("data-old-aria-hidden")),K.removeAttribute("data-old-aria-hidden"))))},zP=function(M,
q,G){var K;
(K=M.latencyCallback)==null||K.call(M,{latencyType:q,timestampEpochMillis:G!=null?G:Date.now()})};var CUg=function(M,q,G){xX.call(this,q,G===void 0?!1:G);this.consentPrimitiveRequest=M;M=tNI(this);_.kQL(M);this.src=this.getSrc();var K;this.initialLoadingStrategy=(K=_.t0(this.consentPrimitiveRequest,y8,4))==null?void 0:_.tD(K,4)},aw5;
_.l(CUg,xX);var SBg=function(M){var q=_.w("enable_primitive_dialog_aria_hide_siblings");M={request:M,enableDialogA11yFix:q===void 0?!1:q};aw5||(aw5=new CUg(M.request,M.isLatencyMeasurementExperiment||_.tD(M.request,1)===2,M.enableDialogA11yFix));return aw5},tNI=function(M){var q;
return(q=_.t0(M.consentPrimitiveRequest,y8,4))==null?void 0:_.hD(q,1)},LzM=function(M,q){if(!_.Ev(M.consentPrimitiveRequest,Ud,5)){var G=M.consentPrimitiveRequest,K=new Ud;
_.Xe(G,5,K)}var n;if((n=_.t0(M.consentPrimitiveRequest,Ud,5))==null||_.u2y(_.nu(n,8))==null){var E;(E=_.t0(M.consentPrimitiveRequest,Ud,5))!=null&&_.Db(E,8,q)}},pAn=function(M){var q;
return(q=_.t0(M.consentPrimitiveRequest,Ud,5))==null?void 0:_.Au(q,1)};
CUg.prototype.isDarkTheme=function(){var M;return((M=_.t0(this.consentPrimitiveRequest,y8,4))==null?void 0:_.tD(M,2))===2};
var vNn=function(M){var q;return((q=_.t0(M.consentPrimitiveRequest,y8,4))==null?void 0:_.Au(q,5))||void 0},dC8=function(M){M.channel=void 0;
M.prewarmChannel=void 0;M.iframe&&(document.body.contains(M.iframe)&&document.body.removeChild(M.iframe),M.iframe=void 0);aw5=void 0},VWP=function(M){return xX.prototype.showPrimitive.call(M).then(function(q){return _.t0(q,SZL,2)})};for(var m0={},oNM=(m0[64]="ma",m0[73]="ogb",m0[89]="cr",m0[21]="test",m0[0]="unkn",m0[137]="con",m0[155]="hl",m0[78]="yt",m0[171]="lp",m0[172]="ap",m0[177]="amo",m0[178]="pqe",m0[74]="gg",m0[1]="gm",m0[140]="am",m0[193]="sc",m0),lwI=_.k(Object.keys(oNM)),XAw=lwI.next();!XAw.done;XAw=lwI.next());var PUE=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(PUE,_.kC);var i1E=[0,[2,3,4],_.RT,fAn,$uv,_.S$];var crv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(crv,_.kC);var gNw=_.t9(crv,[0,_.fu,_.x1,_.RT,_.x1,_.RT,i1E]);var Biw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(Biw,_.kC);Biw.prototype.getCommand=function(){return _.tD(this,1)};
var QD5=function(){var M=new Biw;return _.lZ(M,1,0)};var IwP=_.wW([0,_.fu,_.x1,[0,_.RT,_.x1,-1]]);var DCv=new _.Ao("s"),u7n=new _.Ao("t"),JrL=new _.Ao("u"),Z1I=new _.Ao("v"),b1s=function(M,q,G){_.d6.call(this,DCv);this.mediaKey=M;this.photoUrl=q;this.photoSource=G};
_.l(b1s,_.d6);var UCn=function(){_.d6.call(this,u7n)};
_.l(UCn,_.d6);var xCP=function(M){M=M===void 0?!1:M;_.d6.call(this,JrL);this.isError=M};
_.l(xCP,_.d6);var zbw=function(){_.d6.call(this,Z1I)};
_.l(zbw,_.d6);var mCM=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,jDg=function(M){if(typeof M=="string"){if(M.charAt(0)==".")return S7I(M.substr(1));if(M.charAt(0)=="["){var q=mCM.exec(M);M=M.indexOf("=")==-1?void 0:q[3];return Tig(q[1],M)}return rrI(M)}return M},S7I=function(M){return function(q){return q.getAttribute&&_.zZ(q,M)}},Tig=function(M,q){return function(G){return q!==void 0?G.getAttribute&&G.getAttribute(M)==q:G.hasAttribute&&G.hasAttribute(M)}},rrI=function(M){M=M.toUpperCase();
return function(q){return(q=q.tagName)&&q.toUpperCase()==M}},VNI=function(){return!0};var SY=function(M,q){this.JSC$19828_key_=M;this.JSC$19828_value_=q},RbP=function(M){throw Error("Bk`"+M.JSC$19828_key_);
},fwI=function(M,q){return new TypeError("Ck`"+q+"`"+M.JSC$19828_key_+"`"+M.JSC$19828_value_+"`"+typeof M.JSC$19828_value_)};
SY.prototype.string=function(M){return arguments.length==0?Fzw(this):H18(this,M)};
var H18=function(M,q){var G;return(G=ebw(M))!=null?G:q},Fzw=function(M){var q=ebw(M);
q===null&&RbP(M);return q},ebw=function(M){var q=M.JSC$19828_value_;
if(q==null)return null;if(typeof q==="string")return q;throw fwI(M,"string");};
SY.prototype.bool=function(M){if(arguments.length==0){var q=this.optionalBool();q===null&&RbP(this)}else{var G;q=(G=this.optionalBool())!=null?G:M}return q};
SY.prototype.optionalBool=function(){var M=this.JSC$19828_value_;if(M==null)return null;if(typeof M==="boolean")return M;if(typeof M==="string"){M=M.toLowerCase();if(M==="true"||M==="1")return!0;if(M==="false"||M==="0")return!1}throw fwI(this,"boolean");};
SY.prototype.number=function(M){if(arguments.length==0){var q=$CE(this);q===null&&RbP(this)}else q=sQw(this,M);return q};
var sQw=function(M,q){var G;return(G=$CE(M))!=null?G:q},$CE=function(M){var q=M.JSC$19828_value_;
if(q==null)return null;if(typeof q==="number")return q;if(typeof q==="string"){var G=Number(q);if(!isNaN(G)&&(G!==0||q.trim().length!==0))return G}throw fwI(M,"number");};
SY.prototype.toString=function(){return Fzw(this)};
SY.prototype.enum=function(M,q){var G=!0,K=void 0,n;for(n in M){var E=M[n];G&&(G=!1,K=typeof E==="number"?sQw(this,q):H18(this,q));if(E==K)return K}JSON.stringify(M);return K};
SY.prototype.array=function(M){if(arguments.length==0){var q=M6R(this);q===null&&RbP(this);return q}q=M6R(this);return q==null?M:q};
var M6R=function(M){var q=M.JSC$19828_value_;if(q==null)return null;Array.isArray(q)||(typeof q!=="string"?q=[q]:(q=q.trim(),q=q==""?[]:q.split(",").map(function(G){return G.trim()})));
return qjv(M,q)},qjv=function(M,q){var G=M.JSC$19828_key_+"[";
return Array.from(q,function(K,n){return new SY(G+n+"]",K)})};
SY.prototype.object=function(M){var q=this.JSC$19828_value_;if(q==null)return M===void 0&&RbP(this),M;if(typeof q==="object"&&q.constructor===Object){M={};var G=this.JSC$19828_key_+".",K;for(K in q)M[K]=new SY(G+K,q[K]);return M}throw fwI(this,"object");};var TP=function(M){this.list_=GkM(M)},GkM=function(M){if(M instanceof TP)M=M.list_;
else if(M[0]instanceof TP){for(var q=new Set,G=0;G<M.length;G++)for(var K=_.k(M[G].list_),n=K.next();!n.done;n=K.next())q.add(n.value);M=q}return[].concat(_.Ui(M))};
_.N=TP.prototype;_.N.each=function(M,q,G){((G===void 0?0:G)?QOP:_.Gc)(this.list_,M,q);return this};
_.N.size=function(){return this.list_.length};
_.N.isEmpty=function(){return this.list_.length===0};
_.N.get=function(M){return this.list_[M]||null};
_.N.el=function(){return this.list_[0]||null};
_.N.map=function(M,q){return _.z9(this.list_,M,q)};
_.N.equals=function(M){return this===M||_.Hy(this.list_,M.list_)};
_.N.first=function(){return this.list_.length==0?null:new rD(this.list_[0])};
_.N.last=function(){return this.list_.length==0?null:new rD(this.list_[this.list_.length-1])};
_.N.find=function(M){var q=[];this.each(function(G){G=G.querySelectorAll(String(M));for(var K=0;K<G.length;K++)q.push(G[K])});
return new TP(q)};
_.N.parent=function(){var M=[];this.each(function(q){(q=q.parentElement||null)&&!_.zF(M,q)&&M.push(q)});
return new TP(M)};
_.N.children=function(){var M=[];this.each(function(q){q=_.Bp(q);for(var G=0;G<q.length;G++)M.push(q[G])});
return new TP(M)};
_.N.filter=function(M){M=_.jh(this.list_,jDg(M));return new TP(M)};
_.N.closest=function(M){var q=[],G=jDg(M),K=function(n){return _.kc(n)&&G(n)};
this.each(function(n){(n=_.jX(n,K,!0))&&!_.zF(q,n)&&q.push(n)});
return new TP(q)};
_.N.next=function(M){return Kqw(this,_.hq2,M)};
_.N.prev=function(M){return Kqw(this,sAU,M)};
var Kqw=function(M,q,G){var K=[];var n=G?jDg(G):VNI;M.each(function(E){(E=q(E))&&n(E)&&K.push(E)});
return new TP(K)};
TP.prototype.setClass=function(M){return this.each(function(q){_.xu(q,M)})};
var nxM=function(M,q){return M.each(function(G){_.Zg(G,q)})},ExE=function(M,q){return M.each(function(G){_.um(G,q)})};
TP.prototype.toggleClass=function(M,q){return q===!0?nxM(this,M):q===!1?ExE(this,M):this.each(function(G){_.zZ(G,M)?_.um(G,M):_.Zg(G,M)})};
TP.prototype.setText=function(M){return this.each(function(q){_.QF(q,M)})};
var NTn=function(M){M.each(function(q){q.removeAttribute("aria-hidden")})};
TP.prototype.getStyle=function(M){if(this.list_.length>0){var q=this.list_[0],G=q.style[_.nx(M)];return typeof G!=="undefined"?G:q.style[_.Bq9(q,M)]||""}};
TP.prototype.getData=function(M){if(this.list_.length===0)return new SY(M,null);var q=ZTR(this.list_[0],M);return new SY(M,q)};
TP.prototype.focus=function(M){try{M?this.el().focus(M):this.el().focus()}catch(q){}return this};
TP.prototype.click=function(){var M=_.T9(this.el());if(M.createEvent){var q=M.createEvent("MouseEvents");q.initMouseEvent("click",!0,!0,M.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(q)}else M=M.createEventObject(),M.clientX=0,M.clientY=0,M.screenX=0,M.screenY=0,M.altKey=!1,M.ctrlKey=!1,M.shiftKey=!1,M.button=0,this.el().fireEvent("onclick",M)};
var jY=function(M,q,G,K){function n(y,Y,A){var v=Y;Y&&Y.parentNode&&(v=Y.cloneNode(!0));y(v,A)}
K=K===void 0?!1:K;if(M.list_.length==1){var E=M.list_[0],p=function(y){return q(y,E)};
G instanceof TP?G.each(p,void 0,K):Array.isArray(G)?(K?QOP:_.Gc)(G,p):p(G);return M}return M.each(function(y){G instanceof TP?G.each(function(Y){n(q,Y,y)}):Array.isArray(G)?_.Gc(G,function(Y){n(q,Y,y)}):n(q,G,y)})};
_.N=TP.prototype;_.N.append=function(M){return jY(this,function(q,G){q&&G.appendChild(q)},M)};
_.N.appendTo=function(M){(new TP([M])).append(this);return this};
_.N.remove=function(){return jY(this,function(M,q){_.cX(q)},null)};
_.N.empty=function(){return jY(this,function(M,q){_.io(q)},null)};
_.N.after=function(M,q){return jY(this,function(G,K){G&&_.gB(G,K)},M,!(q===void 0||q))};
_.N.before=function(M){return jY(this,function(q,G){q&&_.cp(q,G)},M)};
_.N.replaceWith=function(M){return jY(this,function(q,G){q&&_.AgI(q,G)},M)};
_.N.toggle=function(M){return this.each(function(q){_.GL(q,M)})};
_.N.show=function(){return this.toggle(!0)};
_.N.hide=function(){return this.toggle(!1)};
_.N.trigger=function(M,q,G,K){return kkL(this,M,q,G,K)};
var kkL=function(M,q,G,K,n){return M.each(function(E){_.hoF(_.T9(E)).triggerWizEventInternal(E,q,G,K,n)})},rD=function(M,q){M instanceof TP&&(q=M.list_,M=null);
this.list_=GkM(M!=null?[M]:q)};
_.TO(rD,TP);_.N=rD.prototype;_.N.children=function(){return new TP(Array.prototype.slice.call(_.Bp(this.list_[0])))};
_.N.each=function(M,q){M.call(q,this.list_[0],0);return this};
_.N.size=function(){return 1};
_.N.el=function(){return this.list_[0]};
_.N.first=function(){return this};var V8=function(M,q){q=q===void 0?window:q;this.hostId=M;this.win=q;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$19839_previousHtmlOverscroll=this.JSC$19839_previousBodyOverscroll=this.JSC$19839_previousBodyOverflow="";this.eventTarget=new _.w6;this.win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},Lq8=function(M){var q=
pg8(pg8(pg8(new y1v(78),"po"),"hppp"),"hhc");
q.authUser=Number(_.R9("SESSION_INDEX","0"));q.colorScheme=M;return q};
V8.prototype.getOrigin=function(){return this.origin?this.origin:_.sg(_.$u(_.e8(new _.Za,this.win.location.protocol),this.win.location.hostname),this.win.location.port).toString()};
V8.prototype.getTargetOrigin=function(){return _.sg(_.$u(_.e8(new _.Za,this.scheme),this.domain),this.port)};
V8.prototype.preloadIframe=function(M){var q=this;if(this.iframeLoadPromise===void 0){var G=document.createElement("iframe");this.iframe=G;ChU(G,M);this.iframeLoadPromise=new Promise(function(K,n){var E=!1,p=function(y){y.stopPropagation();G.removeEventListener("error",p);G.removeEventListener("securitypolicyviolation",p);n(Error("Dk",{cause:y}))};
G.addEventListener("error",p);G.addEventListener("securitypolicyviolation",p);setTimeout(function(){E||n(Error("Ek"))},3E4);
YjI(q,G,function(){E=!0;G.removeEventListener("error",p);G.removeEventListener("securitypolicyviolation",p);K()})});
WqP(this);M=this.getTargetOrigin().toString();G.setAttribute("allow","camera "+M+"; display-capture "+M);this.parentElement.appendChild(G)}return this.iframeLoadPromise};
var vxP=function(M,q){var G,K;return _.L(function(n){if(n.nextAddress==1)return G=Wgg(getComputedStyle(M.parentElement).direction==="rtl"),M.parentElement.appendChild(G),document.activeElement instanceof HTMLElement&&(M.elementToFocusAfterClose=document.activeElement),_.Cv(n,2),n.yield(M.preloadIframe(q),4);if(n.nextAddress!=2){M.parentElement.removeChild(G);M.JSC$19839_previousBodyOverflow=M.parentElement.style.overflow;M.JSC$19839_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
M.JSC$19839_previousBodyOverscroll=M.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";M.parentElement.style.overscrollBehavior="contain";M.parentElement.style.overflow="hidden";var E=M.iframe;E.style.bottom="0";E.style.border="none";E.style.height="100%";E.style.left="0";E.style.position=M.iframePosition;E.style.right="0";E.style.top="0";E.style.width="100%";E.style.zIndex="2202";E.setAttribute("aria-hidden","false");E.setAttribute("aria-modal","true");
M.opened=!0;A1U(M);return _.KF(n,0)}K=_.i5(n);M.parentElement.removeChild(G);tsw(M.isDarkTheme());d1g(M,!1);throw Error("Fk",{cause:K});})},d1g=function(M,q){q=q===void 0?!0:q;
M.iframe!==void 0&&(hXL(M),document.documentElement.style.overscrollBehavior=M.JSC$19839_previousHtmlOverscroll,M.parentElement.style.overscrollBehavior=M.JSC$19839_previousBodyOverscroll,M.parentElement.style.overflow=M.JSC$19839_previousBodyOverflow,M.elementToFocusAfterClose!==void 0&&(M.elementToFocusAfterClose.focus(),M.elementToFocusAfterClose=void 0),q?WqP(M):(M.parentElement.removeChild(M.iframe),M.iframe=void 0,M.iframeLoadPromise=void 0,M.mainChannel=void 0),M.opened=!1)},hXL=function(M){M.backgroundElementsAriaHiddenIsNull&&
(NTn(M.backgroundElementsAriaHiddenIsNull),M.backgroundElementsAriaHiddenIsNull=void 0);
M.backgroundElementsAriaHiddenIsFalse&&(M.backgroundElementsAriaHiddenIsFalse.each(function(q){q.setAttribute("aria-hidden","false")}),M.backgroundElementsAriaHiddenIsFalse=void 0);
M.backgroundElementsWithoutInert&&(M.backgroundElementsWithoutInert.each(function(q){q.removeAttribute("inert")}),M.backgroundElementsWithoutInert=void 0)},A1U=function(M){M.backgroundElementsAriaHiddenIsNull=(new rD(M.iframe.parentElement)).children().filter(function(q){return q.getAttribute("aria-hidden")===null&&q!==M.iframe});
M.backgroundElementsAriaHiddenIsNull.each(function(q){q.setAttribute("aria-hidden","true")});
M.backgroundElementsAriaHiddenIsFalse=(new rD(M.iframe.parentElement)).children().filter(function(q){return q.getAttribute("aria-hidden")==="false"&&q!==M.iframe});
M.backgroundElementsAriaHiddenIsFalse.each(function(q){q.setAttribute("aria-hidden","true")});
M.backgroundElementsWithoutInert=(new rD(M.iframe.parentElement)).children().filter(function(q){return!q.hasAttribute("inert")&&q!==M.iframe});
M.backgroundElementsWithoutInert.each(function(q){q.setAttribute("inert","true")})},WqP=function(M){M=M.iframe;
M.style.bottom="-1000px";M.style.position="fixed";M.style.right="-1000px";M.style.border="";M.style.height="";M.style.left="";M.style.top="";M.style.width="";M.style.zIndex="";M.setAttribute("aria-hidden","true");M.setAttribute("aria-modal","false")};
V8.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var y1v=function(M,q){V8.call(this,oNM[M],q);this.options=[];this.style=""};
_.l(y1v,V8);var t68=function(M){M.style="youtube";return M},ONR=function(M,q){M.eventTarget.listen(JrL,q);
return M},wgw=function(M,q){M.eventTarget.listen(DCv,q);
return M},pg8=function(M,q){M.options.push(q);
return M},CuL=function(M){var q=[M.getOrigin()];
M.ancestorOrigins&&q.push.apply(q,_.Ui(M.ancestorOrigins));var G=new _.Za(M.win.location.href),K=M.startUrl?M.startUrl:M.options.includes("po")?"profile-picture/art":"profile-picture";q=YX(_.Mu(M.getTargetOrigin(),K),"origin",q);M.startUrl&&_.qT(q,"startPath",M.startUrl);M.authUser>0&&_.qT(q,"authuser",M.authUser);M.pageId!==void 0&&_.qT(q,"pageId",M.pageId);_.qT(q,"hostId",M.hostId);M.jsMode!==void 0&&_.qT(q,"jsmode",M.jsMode);M.rectangleRatio!==void 0&&_.qT(q,"rectangleRatio",M.rectangleRatio);
M.options.length>0&&_.qT(q,"opts",M.options.join(","));try{for(var n=_.k(["utm_source","utm_medium","utm_campaign","utm_content"]),E=n.next();!E.done;E=n.next()){var p=E.value;_.MT(G,p)&&_.qT(q,p,_.MT(G,p))}var y,Y=(y=M.hl)!=null?y:_.MT(G,"hl");Y!==void 0&&_.qT(q,"hl",Y)}catch(A){if(!(A instanceof URIError))throw A;}M.colorScheme&&_.qT(q,"theme",M.colorScheme);M.style&&_.qT(q,"style",M.style);return q},aMR=function(M,q){M.mainChannel=_.e$({destination:M.win,
iframe:q,origin:M.getTargetOrigin().toString(),channelName:"ow",onMessage:function(G){G=gNw(G.data);if(q===M.iframe)switch(_.tD(G,1)){case 1:M.eventTarget.dispatchEvent(new xCP);d1g(M);break;case 2:M.eventTarget.dispatchEvent(new b1s(_.hD(G,4),_.hD(G,2),_.tD(G,5),_.t0(G,PUE,6)));break;case 0:var K;M.eventTarget.dispatchEvent(new UCn(_.hD(G,2),(K=_.tD(G,3))!=null?K:0));break;case 3:M.eventTarget.dispatchEvent(new xCP(!0));d1g(M,!1);break;case 4:M.eventTarget.dispatchEvent(new zbw)}}})},YjI=function(M,
q,G){_.e$({destination:M.win,
iframe:q,origin:_.sg(_.$u(_.e8(new _.Za,M.scheme),M.domain),M.port).toString(),channelName:"owi",onMessage:function(K){q===M.iframe&&(G!==void 0&&G(),aMR(M,q),M.opened&&M.mainChannel.send(IwP(QD5())),K.reply(),YjI(M,q))}})};
y1v.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?V8.prototype.preloadIframe.call(this,CuL(this).toString()):this.iframeLoadPromise};
y1v.prototype.openPicker=function(M){var q=this;return _.L(function(G){if(G.nextAddress==1)return q.startUrl=M?M:q.options.includes("po")?"profile-picture/art":"profile-picture",G.yield(vxP(q,CuL(q).toString()),2);if(q.mainChannel){var K=q.mainChannel,n=K.send;var E=QD5();E=_.DJ(E,2,q.startUrl);n.call(K,IwP(E))}_.gL(G)})};var oxv=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(oxv,_.kC);_.N=oxv.prototype;_.N.getSize=function(){return Od(this,1)};
_.N.setSize=function(M){return _.oT(this,1,M)};
_.N.getWidth=function(){return Od(this,12)};
_.N.getHeight=function(){return Od(this,13)};
_.N.setCenterCrop=function(M){return _.tu(this,20,M)};
_.N.getHtml=function(){return _.AD(this,4)};
_.N.getToken=function(){return _.PX(this,24)};
_.N.setToken=function(M){return _.DJ(this,24,M)};
_.N.getBackgroundColor=function(){return Od(this,87)};
_.N.hasBackgroundColor=function(){return _.pn(_.nu(this,87))!=null};
_.N.getStoryboardLevel=function(){return Od(this,109)};var Ra=function(M){this.JSC$19847_value_=void 0;this.childNodes_={};if(M){var q=_.ncB(M);M=_.HT(M);for(var G=0;G<q.length;G++)this.set(q[G],M[G])}};
Ra.prototype.set=function(M,q){lMR(this,M,q,!1)};
Ra.prototype.add=function(M,q){lMR(this,M,q,!0)};
var lMR=function(M,q,G,K){for(var n=0;n<q.length;n++){var E=q.charAt(n);M.childNodes_[E]||(M.childNodes_[E]=new Ra);M=M.childNodes_[E]}if(K&&M.JSC$19847_value_!==void 0)throw Error("Gk`"+q);M.JSC$19847_value_=G},Xgv=function(M,q){for(var G=0;G<q.length;G++)if(M=M.childNodes_[q.charAt(G)],!M)return;
return M};
Ra.prototype.get=function(M){return(M=Xgv(this,M))?M.JSC$19847_value_:void 0};
Ra.prototype.getValues=function(){var M=[];Pu8(this,M);return M};
var Pu8=function(M,q){M.JSC$19847_value_!==void 0&&q.push(M.JSC$19847_value_);for(var G in M.childNodes_)Pu8(M.childNodes_[G],q)};
Ra.prototype.getKeys=function(M){var q=[];if(M){for(var G=this,K=0;K<M.length;K++){var n=M.charAt(K);if(!G.childNodes_[n])return[];G=G.childNodes_[n]}iNP(G,M,q)}else iNP(this,"",q);return q};
var iNP=function(M,q,G){M.JSC$19847_value_!==void 0&&G.push(q);for(var K in M.childNodes_)iNP(M.childNodes_[K],q+K,G)};
_.N=Ra.prototype;_.N.containsKey=function(M){return this.get(M)!==void 0};
_.N.containsValue=function(M){if(this.JSC$19847_value_===M)return!0;for(var q in this.childNodes_)if(this.childNodes_[q].containsValue(M))return!0;return!1};
_.N.clear=function(){this.childNodes_={};this.JSC$19847_value_=void 0};
_.N.remove=function(M){for(var q=this,G=[],K=0;K<M.length;K++){var n=M.charAt(K);if(!q.childNodes_[n])throw Error("Hk`"+M);G.push([q,n]);q=q.childNodes_[n]}M=q.JSC$19847_value_;for(delete q.JSC$19847_value_;G.length>0;)if(K=G.pop(),q=K[0],K=K[1],q.childNodes_[K].isEmpty())delete q.childNodes_[K];else break;return M};
_.N.clone=function(){return new Ra(this)};
_.N.getCount=function(){return KH5(this.getValues())};
_.N.isEmpty=function(){return this.JSC$19847_value_===void 0&&_.xP.isEmpty(this.childNodes_)};var PhI=function(){if(!c18){var M=c18=new Ra,q;for(q in gxn)M.add(q,gxn[q])}},c18,fq=function(M,q){this.types=M;
this.setters=q},gxn={a:new fq([3,
0],[function(M,q){_.tu(M,21,q)},
function(M,q){_.oT(M,56,q)}]),
al:new fq([3],[function(M,q){_.tu(M,74,q)}]),
b:new fq([3,0],[function(M,q){_.tu(M,23,q)},
function(M,q){_.oT(M,38,q)}]),
ba:new fq([0],[function(M,q){_.oT(M,85,q)}]),
bc:new fq([0],[function(M,q){_.oT(M,87,q)}]),
br:new fq([0],[function(M,q){_.oT(M,86,q)}]),
c:new fq([3,0],[function(M,q){_.tu(M,2,q)},
function(M,q){_.oT(M,39,q)}]),
cc:new fq([3],[function(M,q){_.tu(M,51,q)}]),
ci:new fq([3],[function(M,q){_.tu(M,32,q)}]),
ckm:new fq([3],[function(M,q){_.tu(M,104,q)}]),
cp:new fq([0],[function(M,q){_.oT(M,92,q)}]),
cr:new fq([3],[function(M,q){_.tu(M,108,q)}]),
cv:new fq([0],[function(M,q){_.oT(M,94,q)}]),
d:new fq([3],[function(M,q){_.tu(M,3,q)}]),
dc:new fq([5],[function(M,q){_.DJ(M,99,q)}]),
df:new fq([3],[function(M,q){_.tu(M,80,q)}]),
dv:new fq([3],[function(M,q){_.tu(M,90,q)}]),
e:new fq([0],[function(M,q){_.oT(M,15,q)}]),
em:new fq([0],[function(M,q){_.oT(M,107,q)}]),
f:new fq([4],[function(M,q){_.DJ(M,16,q)}]),
fg:new fq([3],[function(M,q){_.tu(M,34,q)}]),
fh:new fq([3],[function(M,q){_.tu(M,30,q)}]),
fm:new fq([3],[function(M,q){_.tu(M,84,q)}]),
fo:new fq([2],[function(M,q){_.w8(M,79,_.Hv(q))}]),
ft:new fq([3],[function(M,q){_.tu(M,50,q)}]),
fv:new fq([3],[function(M,q){_.tu(M,31,q)}]),
g:new fq([3],[function(M,q){_.tu(M,14,q)}]),
gce:new fq([4],[function(M,q){_.DJ(M,112,q)}]),
gd:new fq([3],[function(M,q){_.tu(M,83,q)}]),
gm:new fq([3],[function(M,q){_.tu(M,105,q)}]),
h:new fq([3,0],[function(M,q){_.tu(M,4,q)},
function(M,q){_.oT(M,13,q)}]),
i:new fq([3],[function(M,q){_.tu(M,22,q)}]),
ic:new fq([0],[function(M,q){_.oT(M,71,q)}]),
id:new fq([3],[function(M,q){_.tu(M,70,q)}]),
il:new fq([3],[function(M,q){_.tu(M,96,q)}]),
ip:new fq([3],[function(M,q){_.tu(M,54,q)}]),
iv:new fq([0],[function(M,q){_.Db(M,75,q)}]),
j:new fq([1],[function(M,q){q=q==null?q:us5(q);_.w8(M,29,q)}]),
k:new fq([3,0],[function(M,q){_.tu(M,17,q)},
function(M,q){_.oT(M,42,q)}]),
l:new fq([0],[function(M,q){_.oT(M,44,q)}]),
lf:new fq([3],[function(M,q){_.tu(M,65,q)}]),
lo:new fq([3],[function(M,q){_.tu(M,97,q)}]),
m:new fq([0],[function(M,q){_.oT(M,63,q)}]),
md:new fq([3],[function(M,q){_.tu(M,91,q)}]),
mm:new fq([4],[function(M,q){_.DJ(M,81,q)}]),
mo:new fq([3],[function(M,q){_.tu(M,73,q)}]),
mp:new fq([0],[function(M,q){_.oT(M,115,q)}]),
mv:new fq([3],[function(M,q){_.tu(M,66,q)}]),
n:new fq([3],[function(M,q){M.setCenterCrop(q)}]),
nc:new fq([3],[function(M,q){_.tu(M,55,q)}]),
nd:new fq([3],[function(M,q){_.tu(M,53,q)}]),
ng:new fq([3],[function(M,q){_.tu(M,95,q)}]),
ngm:new fq([3],[function(M,q){_.tu(M,106,q)}]),
no:new fq([3],[function(M,q){_.tu(M,37,q)}]),
ns:new fq([3],[function(M,q){_.tu(M,40,q)}]),
nt0:new fq([4],[function(M,q){_.DJ(M,36,q)}]),
ntm:new fq([3],[function(M,q){_.tu(M,114,q)}]),
nu:new fq([3],[function(M,q){_.tu(M,46,q)}]),
nw:new fq([3],[function(M,q){_.tu(M,48,q)}]),
o:new fq([1,3],[function(M,q){q=q==null?q:us5(q);_.w8(M,7,q)},
function(M,q){_.tu(M,27,q)}]),
p:new fq([3,0],[function(M,q){_.tu(M,19,q)},
function(M,q){_.oT(M,43,q)}]),
pa:new fq([3],[function(M,q){_.tu(M,61,q)}]),
pc:new fq([0],[function(M,q){_.oT(M,88,q)}]),
pd:new fq([3],[function(M,q){_.tu(M,60,q)}]),
pf:new fq([3],[function(M,q){_.tu(M,67,q)}]),
pg:new fq([3],[function(M,q){_.tu(M,72,q)}]),
pi:new fq([2],[function(M,q){_.w8(M,76,_.Hv(q))}]),
pp:new fq([3],[function(M,q){_.tu(M,52,q)}]),
pt:new fq([4],[function(M,q){_.DJ(M,111,q)}]),
q:new fq([4],[function(M,q){_.DJ(M,28,q)}]),
r:new fq([3,0],[function(M,q){_.tu(M,6,q)},
function(M,q){_.oT(M,26,q)}]),
ra:new fq([3],[function(M,q){_.tu(M,103,q)}]),
rf:new fq([3],[function(M,q){_.tu(M,100,q)}]),
rg:new fq([3],[function(M,q){_.tu(M,59,q)}]),
rh:new fq([3],[function(M,q){_.tu(M,49,q)}]),
rj:new fq([3],[function(M,q){_.tu(M,57,q)}]),
ro:new fq([2],[function(M,q){_.w8(M,78,_.Hv(q))}]),
rp:new fq([3],[function(M,q){_.tu(M,58,q)}]),
rw:new fq([3],[function(M,q){_.tu(M,35,q)}]),
rwa:new fq([3],[function(M,q){_.tu(M,64,q)}]),
rwu:new fq([3],[function(M,q){_.tu(M,41,q)}]),
s:new fq([3,0],[function(M,q){_.tu(M,33,q)},
function(M,q){M.setSize(q)}]),
sb:new fq([0],[function(M,q){_.oT(M,110,q)}]),
sc:new fq([0],[function(M,q){_.oT(M,89,q)}]),
sg:new fq([3],[function(M,q){_.tu(M,82,q)}]),
sl:new fq([0],[function(M,q){_.oT(M,109,q)}]),
sm:new fq([3],[function(M,q){_.tu(M,93,q)}]),
t:new fq([4],[function(M,q){M.setToken(q)}]),
tm:new fq([3],[function(M,q){_.tu(M,113,q)}]),
u:new fq([3],[function(M,q){_.tu(M,18,q)}]),
ut:new fq([3],[function(M,q){_.tu(M,45,q)}]),
v:new fq([0],[function(M,q){_.oT(M,62,q)}]),
vb:new fq([0],[function(M,q){_.Db(M,68,q)}]),
vf:new fq([4],[function(M,q){_.DJ(M,102,q)}]),
vl:new fq([0],[function(M,q){_.Db(M,69,q)}]),
vm:new fq([3],[function(M,q){_.tu(M,98,q)}]),
w:new fq([0],[function(M,q){_.oT(M,12,q)}]),
x:new fq([0],[function(M,q){_.oT(M,9,q)}]),
y:new fq([0],[function(M,q){_.oT(M,10,q)}]),
ya:new fq([2],[function(M,q){_.w8(M,77,_.Hv(q))}]),
z:new fq([0],[function(M,q){_.oT(M,11,q)}])};
PhI.prototype.parse=function(M){var q=new oxv,G=new oxv;if(M=="")M=!0;else{M=M.split("-");for(var K=!0,n=0;n<M.length;n++){var E=M[n];if(E.length==0)K=!1;else{var p=E,y=!1;var Y=p;var A=p.charAt(0);A!=A.toLowerCase()&&(y=!0,Y=p.charAt(0).toLowerCase()+p.substring(1));var v=c18;for(A=1;A<=Y.length;++A){var h=v,t=Y.substring(0,A);if(t.length==0?h.isEmpty():!Xgv(h,t))break}Y=A==1?null:(Y=v.get(Y.substring(0,A-1)))?{option:p.substring(0,A-1),value:p.substring(A-1),signed:y,attributes:Y}:null;if(Y){p=
[];y=[];A=!1;for(v=0;v<Y.attributes.types.length;v++){h=Y.attributes.types[v];var O=Y.value;t=n;if(Y.signed&&h==1)for(var a=O.length;a<12&&t<M.length-1;)O+="-"+M[t+1],a=O.length,++t;else if(h==2)for(;t<M.length-1&&M[t+1].match(/^[\d\.]/);)O+="-"+M[t+1],++t;a=Y.attributes.setters[v];O=BTn(this,h)(Y.option,O,q,G,a);if(O===null){A=!0;n=t;break}else p.push(h),y.push(O)}if(!A)for(Y=0;Y<y.length;Y++)v=p[Y],O=y[Y],QQE(this,v)(E,O);K=K&&A}else K=!1}}M=K}return new IMg(q,G,M)};
var D1n=function(M,q,G,K,n,E){n(G,q);M=M.charAt(0);E=E(M==M.toUpperCase());n(K,E)};
_.N=PhI.prototype;_.N.parseAndSetIntOption_=function(M,q,G,K,n){if(q=="")return 0;isFinite(q)&&(q=String(q));q=typeof q==="string"?/^\s*-?0x/i.test(q)?parseInt(q,16):parseInt(q,10):NaN;if(isNaN(q))return 1;D1n(M,q,G,K,n,Number);return null};
_.N.logIntParseError_=function(){};
_.N.parseAndSetFloatOption_=function(M,q,G,K,n){if(q=="")return 0;var E=Number(q);q=E==0&&_.Lj(q)?NaN:E;if(isNaN(q))return 1;D1n(M,q,G,K,n,Number);return null};
_.N.logFloatParseError_=function(){};
_.N.parseAndSetBoolOption_=function(M,q,G,K,n){if(q!="")return 2;D1n(M,!0,G,K,n,Boolean);return null};
_.N.logBoolParseError_=function(){};
_.N.parseAndSetStringOption_=function(M,q,G,K,n){if(q=="")return 0;D1n(M,q,G,K,n,function(E){return E?"1":""});
return null};
_.N.logStringParseError_=function(){};
_.N.parseAndSetUint64Base64Option_=function(M,q,G,K,n){if(q=="")return 0;D1n(M,q,G,K,n,function(E){return E?1:0});
return null};
var BTn=function(M,q){switch(q){case 0:return(0,_.Ju)(M.parseAndSetIntOption_,M);case 2:return(0,_.Ju)(M.parseAndSetFloatOption_,M);case 3:return(0,_.Ju)(M.parseAndSetBoolOption_,M);case 4:return(0,_.Ju)(M.parseAndSetStringOption_,M);case 1:return(0,_.Ju)(M.parseAndSetUint64Base64Option_,M);default:return function(){}}},QQE=function(M,q){switch(q){case 0:return(0,_.Ju)(M.logIntParseError_,M);
case 2:return(0,_.Ju)(M.logFloatParseError_,M);case 3:return(0,_.Ju)(M.logBoolParseError_,M);case 4:case 1:return(0,_.Ju)(M.logStringParseError_,M);default:return function(){}}},IMg=function(M,q,G){this.valueProto_=M;
this.signatureFlagProto_=q;this.JSC$19859_valid_=G};
IMg.prototype.isValid=function(){return this.JSC$19859_valid_};var aTg=function(M){this.JSC$19860_parser_=null;this.JSC$19860_components_=[];this.JSC$19860_parsedOptions_=null;u3P(this,M)},J1I=function(M){M.JSC$19860_parser_==null&&(M.JSC$19860_parser_=new PhI);
return M.JSC$19860_parser_},u3P=function(M,q){M.JSC$19860_parsedOptions_=q?typeof q==="string"?J1I(M).parse(q):q:J1I(M).parse("")},Fh=function(M,q){return M==q?!1:!0};
_.N=aTg.prototype;_.N.JSC$19862_setCrop=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,_.AD(G,2),_.AD(q.signatureFlagProto_,2))&&_.tu(G,2,M);return this};
_.N.JSC$19862_setCircleCrop=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,ty(G,51),ty(q.signatureFlagProto_,51))&&_.tu(G,51,M);return this};
_.N.JSC$19862_setImageCrop=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,ty(G,32),ty(q.signatureFlagProto_,32))&&_.tu(G,32,M);return this};
_.N.JSC$19862_setHeight=function(M){var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,G.getHeight(),q.signatureFlagProto_.getHeight())&&_.oT(G,13,M);return this};
_.N.setCenterCrop=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,_.AD(G,20),_.AD(q.signatureFlagProto_,20))&&G.setCenterCrop(M);return this};
_.N.JSC$19862_setSmartCrop=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,_.AD(G,19),_.AD(q.signatureFlagProto_,19))&&_.tu(G,19,M);return this};
_.N.JSC$19862_setPad=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,ty(G,60),ty(q.signatureFlagProto_,60))&&_.tu(G,60,M);return this};
_.N.JSC$19862_setSmartCropUseFace=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,_.AD(G,67),_.AD(q.signatureFlagProto_,67))&&_.tu(G,67,M);return this};
_.N.JSC$19862_setSmartCropNoClip=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,_.AD(G,52),_.AD(q.signatureFlagProto_,52))&&_.tu(G,52,M);return this};
_.N.setSize=function(M){var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,G.getSize(),q.signatureFlagProto_.getSize())&&G.setSize(M);return this};
_.N.setToken=function(M){M=M||void 0;var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,G.getToken(),q.signatureFlagProto_.getToken())&&G.setToken(M);return this};
_.N.JSC$19862_setWidth=function(M){var q=this.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(M,G.getWidth(),q.signatureFlagProto_.getWidth())&&_.oT(G,12,M);return this};
_.N.clearOptions=function(){u3P(this,"");return this};
_.N.build=function(){this.JSC$19860_components_.length=0;var M=this.JSC$19860_parsedOptions_,q=M.valueProto_;M=M.signatureFlagProto_;H6(this,"s",q.getSize(),M.getSize());H6(this,"w",q.getWidth(),M.getWidth());eY(this,"c",_.AD(q,2),_.AD(M,2));eY(this,"d",_.AD(q,3),_.AD(M,3));H6(this,"h",q.getHeight(),M.getHeight());eY(this,"s",ty(q,33),ty(M,33));eY(this,"h",q.getHtml(),M.getHtml());eY(this,"p",_.AD(q,19),_.AD(M,19));eY(this,"pp",_.AD(q,52),_.AD(M,52));eY(this,"pf",_.AD(q,67),_.AD(M,67));eY(this,"n",
_.AD(q,20),_.AD(M,20));H6(this,"r",Od(q,26),Od(M,26));eY(this,"r",_.AD(q,6),_.AD(M,6));eY(this,"o",ty(q,27),ty(M,27));var G=_.W7(q,7,_.Ku);$X(this,"o",G,_.W7(M,7,_.Ku));G=_.W7(q,29,_.Ku);$X(this,"j",G,_.W7(M,29,_.Ku));H6(this,"x",Od(q,9),Od(M,9));H6(this,"y",Od(q,10),Od(M,10));H6(this,"z",Od(q,11),Od(M,11));eY(this,"g",_.AD(q,14),_.AD(M,14));H6(this,"e",Od(q,15),Od(M,15));$X(this,"f",_.PX(q,16),_.PX(M,16));eY(this,"k",ty(q,17),ty(M,17));eY(this,"u",ty(q,18),!0);eY(this,"ut",ty(q,45),!0);eY(this,"i",
ty(q,22),!0);eY(this,"a",ty(q,21),ty(M,21));eY(this,"b",_.AD(q,23),_.AD(M,23));H6(this,"b",Od(q,38),Od(M,38));H6(this,"c",Od(q,39),Od(M,39),16,8);$X(this,"q",_.PX(q,28),_.PX(M,28));eY(this,"fh",ty(q,30),ty(M,30));eY(this,"fv",ty(q,31),ty(M,31));eY(this,"fg",_.AD(q,34),_.AD(M,34));eY(this,"ci",ty(q,32),ty(M,32));$X(this,"t",q.getToken(),M.getToken());$X(this,"nt0",_.PX(q,36),_.PX(M,36));eY(this,"rw",_.AD(q,35),_.AD(M,35));eY(this,"rwu",_.AD(q,41),_.AD(M,41));eY(this,"rwa",_.AD(q,64),_.AD(M,64));eY(this,
"nw",_.AD(q,48),_.AD(M,48));eY(this,"rh",_.AD(q,49),_.AD(M,49));eY(this,"no",_.AD(q,37),_.AD(M,37));eY(this,"ns",ty(q,40),ty(M,40));H6(this,"k",Od(q,42),Od(M,42));H6(this,"p",Od(q,43),Od(M,43));H6(this,"l",Od(q,44),Od(M,44));H6(this,"v",Od(q,62),Od(M,62));eY(this,"nu",ty(q,46),ty(M,46));eY(this,"ft",ty(q,50),ty(M,50));eY(this,"cc",ty(q,51),ty(M,51));eY(this,"nd",ty(q,53),ty(M,53));eY(this,"ip",ty(q,54),ty(M,54));eY(this,"nc",ty(q,55),ty(M,55));H6(this,"a",Od(q,56),Od(M,56));eY(this,"rj",ty(q,57),
ty(M,57));eY(this,"rp",ty(q,58),ty(M,58));eY(this,"rg",ty(q,59),ty(M,59));eY(this,"pd",ty(q,60),ty(M,60));eY(this,"pa",ty(q,61),ty(M,61));H6(this,"m",Od(q,63),Od(M,63));H6(this,"vb",wD(q,68),wD(M,68));H6(this,"vl",wD(q,69),wD(M,69));eY(this,"lf",ty(q,65),ty(M,65));eY(this,"mv",ty(q,66),ty(M,66));eY(this,"id",ty(q,70),ty(M,70));H6(this,"ic",Od(q,71),!0);eY(this,"pg",_.AD(q,72),_.AD(M,72));eY(this,"mo",ty(q,73),ty(M,73));eY(this,"al",ty(q,74),ty(M,74));H6(this,"iv",wD(q,75),wD(M,75));H6(this,"pi",Cq(q,
76),Cq(M,76));H6(this,"ya",Cq(q,77),Cq(M,77));H6(this,"ro",Cq(q,78),Cq(M,78));H6(this,"fo",Cq(q,79),Cq(M,79));eY(this,"df",ty(q,80),ty(M,80));$X(this,"mm",_.PX(q,81),_.PX(M,81));eY(this,"sg",ty(q,82),ty(M,82));eY(this,"gd",ty(q,83),ty(M,83));eY(this,"fm",ty(q,84),ty(M,84));H6(this,"ba",Od(q,85),Od(M,85));H6(this,"br",Od(q,86),Od(M,86));H6(this,"bc",q.getBackgroundColor(),M.getBackgroundColor(),16,8);H6(this,"pc",Od(q,88),Od(M,88),16,8);H6(this,"sc",Od(q,89),Od(M,89),16,8);eY(this,"dv",ty(q,90),ty(M,
90));eY(this,"md",ty(q,91),ty(M,91));H6(this,"cp",Od(q,92),Od(M,92));eY(this,"sm",ty(q,93),ty(M,93));H6(this,"cv",Od(q,94),Od(M,94));eY(this,"ng",ty(q,95),ty(M,95));eY(this,"il",ty(q,96),ty(M,96));eY(this,"lo",ty(q,97),ty(M,97));eY(this,"vm",ty(q,98),ty(M,98));$X(this,"dc",_.PX(q,99),_.PX(M,99));eY(this,"rf",ty(q,100),ty(M,100));$X(this,"vf",_.PX(q,102),_.PX(M,102));eY(this,"ra",_.AD(q,103),_.AD(M,103));eY(this,"ckm",ty(q,104),ty(M,104));eY(this,"gm",ty(q,105),ty(M,105));eY(this,"ngm",ty(q,106),ty(M,
106));H6(this,"em",Od(q,107),Od(M,107));eY(this,"cr",ty(q,108),ty(M,108));H6(this,"sl",q.getStoryboardLevel(),M.getStoryboardLevel());H6(this,"sb",Od(q,110),Od(M,110));$X(this,"pt",_.PX(q,111),_.PX(M,111));$X(this,"gce",_.PX(q,112),_.PX(M,112));eY(this,"tm",ty(q,113),ty(M,113));eY(this,"ntm",ty(q,114),ty(M,114));H6(this,"mp",Od(q,115),Od(M,115));return this.JSC$19860_components_.join("-")};
var H6=function(M,q,G,K,n,E){if(G!=null){var p=n==void 0||n!=10&&n!=16?10:n;G=Number(G).toString(p);n=new eUR;n.append(p==16?"0x":"");p=n.append;E==void 0?E="":(E-=G.length,E=E<=0?"":(0,_.qiS)("0",E));p.call(n,E);n.append(G);ZNR(M,q,n.toString(),!!Number(K))}},eY=function(M,q,G,K){G&&ZNR(M,q,"",!!K)},$X=function(M,q,G,K){G&&ZNR(M,q,String(G),!!Number(K))},ZNR=function(M,q,G,K){K&&(q=q.charAt(0).toUpperCase()+q.substring(1));
M.JSC$19860_components_.push(q+G)};_.TO(Oa,aTg);_.N=Oa.prototype;_.N.JSC$19862_setCrop=function(M){M&&sV(this);return Oa.superClass_.JSC$19862_setCrop.call(this,M)};
_.N.JSC$19862_setHeight=function(M){M=M==null||M<0?void 0:M;M!=null&&this.setSize();return Oa.superClass_.JSC$19862_setHeight.call(this,M)};
_.N.JSC$19862_setImageCrop=function(M){M&&sV(this);return Oa.superClass_.JSC$19862_setImageCrop.call(this,M)};
_.N.JSC$19862_setCircleCrop=function(M){M&&sV(this);return Oa.superClass_.JSC$19862_setCircleCrop.call(this,M)};
_.N.setSize=function(M){_.VY(M)&&(M=Math.max(M.width,M.height));M=M==null||M<0?void 0:M;M!=null&&(this.JSC$19862_setWidth(),this.JSC$19862_setHeight());return Oa.superClass_.setSize.call(this,M)};
_.N.JSC$19862_setSmartCrop=function(M){M&&sV(this);return Oa.superClass_.JSC$19862_setSmartCrop.call(this,M)};
_.N.JSC$19862_setSmartCropNoClip=function(M){M&&sV(this);return Oa.superClass_.JSC$19862_setSmartCropNoClip.call(this,M)};
_.N.JSC$19862_setSmartCropUseFace=function(M){M&&sV(this);return Oa.superClass_.JSC$19862_setSmartCropUseFace.call(this,M)};
_.N.setCenterCrop=function(M){M&&sV(this);return Oa.superClass_.setCenterCrop.call(this,M)};
_.N.JSC$19862_setPad=function(M){M&&sV(this);return Oa.superClass_.JSC$19862_setPad.call(this,M)};
_.N.JSC$19862_setWidth=function(M){M=M==null||M<0?void 0:M;M!=null&&this.setSize();return Oa.superClass_.JSC$19862_setWidth.call(this,M)};
var bNR=function(M){M.clearOptions();var q=M.JSC$19860_parsedOptions_,G=q.valueProto_;Fh(!0,_.AD(G,3),_.AD(q.signatureFlagProto_,3))&&_.tu(G,3,!0);return M},sV=function(M){M.setCenterCrop();
M.JSC$19862_setCircleCrop();M.JSC$19862_setCrop();M.JSC$19862_setImageCrop();M.JSC$19862_setPad();M.JSC$19862_setSmartCrop();M.JSC$19862_setSmartCropNoClip();M.JSC$19862_setSmartCropUseFace()};
Oa.prototype.build=function(){var M=this.JSC$19860_parsedOptions_.valueProto_;ty(M,18)||ty(M,45)?M.getSize()||this.setSize(0):(M=this.JSC$19860_parsedOptions_.valueProto_,M.getSize()||M.getWidth()||M.getHeight()||(this.setSize(),this.JSC$19862_setHeight(),this.JSC$19862_setWidth(),sV(this)));return Oa.superClass_.build.call(this)};var U1M=/^[^\/]*\/\//,x1R=function(M,q){q=q===void 0?!1:q;this.original_=M;this.originalPrefix_="";(M=this.original_.match(U1M))&&M[0]?(this.originalPrefix_=M[0],M=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):M="http://"+this.original_;this.uri_=_.s9(M,!0);this.isFreeformUrl_=q;this.JSC$19866_valid_=!0;this.obfuscated_=!1},zXv=function(M,q){M.JSC$19868_pathPrefix_=M.JSC$19868_pathPrefix_?M.JSC$19868_pathPrefix_+("/"+q):q},MP=function(M){if(M.JSC$19868_components_==
void 0){var q=M.uri_.getPath().substring(1);
M.JSC$19868_pathPrefix_=null;if(M.isFreeformUrl_){M.JSC$19868_components_=[];if((q.match(/=/g)||[]).length>1)return M.JSC$19866_valid_=!1,M.JSC$19868_components_;var G=q.indexOf("=");G!=-1?(M.JSC$19868_components_.push(q.substr(0,G)),M.JSC$19868_components_.push(q.substr(G+1))):M.JSC$19868_components_.push(q);return M.JSC$19868_components_}M.JSC$19868_components_=q.split("/");q=M.JSC$19868_components_.length;q>2&&M.JSC$19868_components_[0]=="u"&&(zXv(M,M.JSC$19868_components_[0]+"/"+M.JSC$19868_components_[1]),
M.JSC$19868_components_.shift(),M.JSC$19868_components_.shift(),q-=2);if(q==0||q==4||q>7)return M.JSC$19866_valid_=!1,M.JSC$19868_components_;if(q==2)zXv(M,M.JSC$19868_components_[0]);else if(M.JSC$19868_components_[0]=="image")zXv(M,M.JSC$19868_components_[0]);else if(q==7||q==3)return M.JSC$19866_valid_=!1,M.JSC$19868_components_;if(q<=3){M.obfuscated_=!0;q==3&&(zXv(M,M.JSC$19868_components_[1]),M.JSC$19868_components_.shift(),--q);--q;G=M.JSC$19868_components_[q];var K=G.indexOf("=");K!=-1&&(M.JSC$19868_components_[q]=
G.substr(0,K),M.JSC$19868_components_.push(G.substr(K+1)))}}return M.JSC$19868_components_};
x1R.prototype.isValid=function(){MP(this);return this.JSC$19866_valid_};
x1R.prototype.isObfuscated=function(){MP(this);return this.obfuscated_};
var m1R=function(M){MP(M);return M.isFreeformUrl_},qP=function(M){MP(M);
M.JSC$19868_pathPrefix_==void 0&&(M.JSC$19868_pathPrefix_=null);return M.JSC$19868_pathPrefix_},SjR=function(M){switch(MP(M).length){case 7:return!0;
case 6:return qP(M)==null;case 5:return!1;case 3:return!0;case 2:return qP(M)==null;case 1:return!1;default:return!1}},GT=function(M,q){if(m1R(M))a:{switch(q){case 7:q=0;
break;case 4:if(!SjR(M)){M=null;break a}q=1;break;default:M=null;break a}M=MP(M)[q]}else if(M.isObfuscated())a:{var G=qP(M)!=null?1:0;switch(q){case 6:q=G;break;case 4:if(!SjR(M)){M=null;break a}q=1+G;break;default:M=null;break a}M=MP(M)[q]}else a:{G=qP(M)!=null?1:0;switch(q){case 0:q=G;break;case 1:q=1+G;break;case 2:q=2+G;break;case 3:q=3+G;break;case 4:if(!SjR(M)){M=null;break a}q=4+G;break;case 5:q=SjR(M)?1:0;q=4+G+q;break;default:M=null;break a}M=MP(M)[q]}return M};
x1R.prototype.getOptions=function(){this.options_==void 0&&(this.options_=GT(this,4));return this.options_};var XOs=function(){};
XOs.prototype.parse=function(M,q){return new oen(M,q===void 0?!1:q)};
var oen=function(M,q){x1R.call(this,M,q===void 0?!1:q)};
_.l(oen,x1R);_.TO(wV,Oa);var lTI;wV.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
wV.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var M=wV.superClass_.build.call(this),q=[];qP(this.parsedImageUrl_)!=null&&q.push(qP(this.parsedImageUrl_));var G=m1R(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var K=this.parsedImageUrl_;K.obfuscatedData_==void 0&&(K.obfuscatedData_=GT(K,6));q.push(K.obfuscatedData_+(M?"="+M:""))}else if(G){K=q.push;var n=this.parsedImageUrl_;n.freeformUrlPath_===void 0&&(n.freeformUrlPath_=GT(n,
7));K.call(q,n.freeformUrlPath_);M&&q.push(M)}else K=q.push,n=this.parsedImageUrl_,n.obfuscatedGaiaId_==void 0&&(n.obfuscatedGaiaId_=GT(n,0)),K.call(q,n.obfuscatedGaiaId_),K=q.push,n=this.parsedImageUrl_,n.photoId_==void 0&&(n.photoId_=GT(n,1)),K.call(q,n.photoId_),K=q.push,n=this.parsedImageUrl_,n.imageVersion_==void 0&&(n.imageVersion_=GT(n,2)),K.call(q,n.imageVersion_),K=q.push,n=this.parsedImageUrl_,n.signature_==void 0&&(n.signature_=GT(n,3)),K.call(q,n.signature_),M&&q.push(M),M=q.push,K=this.parsedImageUrl_,
K.filename_==void 0&&(K.filename_=GT(K,5)),M.call(q,K.filename_);q=G?q.join("="):q.join("/");q=_.s9(this.protocolPrefix_+this.JSC$19874_domain_+"/"+q+(this.JSC$19874_query_?"?"+this.JSC$19874_query_:"")).toString();q.startsWith("%3a//")&&(q=q.replace("%3a//","://"));return q};var TTw=_.DQ(["viewBox"]),r1w=_.DQ(["width"]),jQs=_.DQ(["height"]),V6w=_.DQ(["fill"]),RXw=_.DQ(["id"]),fMU=_.DQ(["x"]),Fqw=_.DQ(["y"]);iLP.prototype.getLength=function(){return this.parsedData.length};
iLP.prototype.write=function(M){for(var q=0,G=this.parsedData.length;q<G;q++)M.put(this.parsedData[q],8)};
var umn=function(M,q){var G=new iLP(q);M.dataList.push(G);G=M.errorCorrectLevel;var K=1,n=encodeURI(q).toString().replace(/%[0-9a-fA-F]{2}/g,"a");q=n.length+(n.length!=q?3:0);n=0;for(var E=Kt.length;n<=E;n++){var p=0;switch(G){case 1:p=Kt[n][0];break;case 0:p=Kt[n][1];break;case 3:p=Kt[n][2];break;case 2:p=Kt[n][3]}if(q<=p)break;else K++}if(K>Kt.length)throw Error("Qk");M.typeNumber=K;M.dataCache=null};
c$n.prototype.isDark=function(M,q){if(M<0||this.moduleCount<=M||q<0||this.moduleCount<=q)throw Error("Ik`"+M+"`"+q);return this.modules[M][q]};
for(var J$R=function(M,q,G){M.moduleCount=M.typeNumber*4+17;M.modules=Array(M.moduleCount);for(var K=0;K<M.moduleCount;K++){M.modules[K]=Array(M.moduleCount);for(var n=0;n<M.moduleCount;n++)M.modules[K][n]=null}HNI(M,0,0);HNI(M,M.moduleCount-7,0);HNI(M,0,M.moduleCount-7);K=eXI[M.typeNumber-1];for(n=0;n<K.length;n++)for(var E=0;E<K.length;E++){var p=K[n],y=K[E];if(M.modules[p][y]==null)for(var Y=-2;Y<=2;Y++)for(var A=-2;A<=2;A++)M.modules[p+Y][y+A]=Y==-2||Y==2||A==-2||A==2||Y==0&&A==0?!0:!1}for(K=
8;K<M.moduleCount-8;K++)M.modules[K][6]==null&&(M.modules[K][6]=K%2==0);for(K=8;K<M.moduleCount-8;K++)M.modules[6][K]==null&&(M.modules[6][K]=K%2==0);K=M.errorCorrectLevel<<3|G;for(n=K<<10;nt(n)-nt(1335)>=0;)n^=1335<<nt(n)-nt(1335);K=(K<<10|n)^21522;for(n=0;n<15;n++)E=!q&&(K>>n&1)==1,n<6?M.modules[n][8]=E:n<8?M.modules[n+1][8]=E:M.modules[M.moduleCount-15+n][8]=E;for(n=0;n<15;n++)E=!q&&(K>>n&1)==1,n<8?M.modules[8][M.moduleCount-n-1]=E:n<9?M.modules[8][15-n-1+1]=E:M.modules[8][15-n-1]=E;M.modules[M.moduleCount-
8][8]=!q;if(M.typeNumber>=7){K=M.typeNumber;for(n=K<<12;nt(n)-nt(7973)>=0;)n^=7973<<nt(n)-nt(7973);K=K<<12|n;for(n=0;n<18;n++)E=!q&&(K>>n&1)==1,M.modules[Math.floor(n/3)][n%3+M.moduleCount-8-3]=E;for(n=0;n<18;n++)E=!q&&(K>>n&1)==1,M.modules[n%3+M.moduleCount-8-3][Math.floor(n/3)]=E}if(M.dataCache==null){n=M.typeNumber;E=M.dataList;q=M.errorCorrectLevel;K=$18(n,q);if(K==void 0)throw Error("Pk`"+n+"`"+q);p=K.length/3;q=[];for(y=0;y<p;y++){Y=K[y*3];A=K[y*3+1];for(var v=K[y*3+2],h=0;h<Y;h++)q.push(new gev(A,
v))}K=new BxR;for(p=0;p<E.length;p++)y=E[p],K.put(y.mode,4),K.put(y.getLength(),sqR(y.mode,n)),y.write(K);for(p=n=0;p<q.length;p++)n+=q[p].dataCount;if(K.length>n*8)throw Error("Jk`"+K.length+"`"+n*8);for(K.length+4<=n*8&&K.put(0,4);K.length%8!=0;)Mp8(K,!1);for(;!(K.length>=n*8);){K.put(236,8);if(K.length>=n*8)break;K.put(17,8)}E=n=A=0;p=Array(q.length);y=Array(q.length);for(Y=0;Y<q.length;Y++){h=q[Y].dataCount;var t=q[Y].totalCount-h;n=Math.max(n,h);E=Math.max(E,t);p[Y]=Array(h);for(v=0;v<p[Y].length;v++)p[Y][v]=
255&K.buffer[v+A];A+=h;v=t;h=new Cd([1],0);for(t=0;t<v;t++)h=h.multiply(new Cd([1,q_g(t)],0));v=h;h=(new Cd(p[Y],v.getLength()-1)).mod(v);y[Y]=Array(v.getLength()-1);for(v=0;v<y[Y].length;v++)t=v+h.getLength()-y[Y].length,y[Y][v]=t>=0?h.get(t):0}for(v=K=0;v<q.length;v++)K+=q[v].totalCount;K=Array(K);for(v=A=0;v<n;v++)for(Y=0;Y<q.length;Y++)v<p[Y].length&&(K[A++]=p[Y][v]);for(v=0;v<E;v++)for(Y=0;Y<q.length;Y++)v<y[Y].length&&(K[A++]=y[Y][v]);M.dataCache=K}q=M.dataCache;K=-1;n=M.moduleCount-1;E=7;p=
0;for(y=M.moduleCount-1;y>0;y-=2)for(y==6&&y--;;){for(Y=0;Y<2;Y++)M.modules[n][y-Y]==null&&(A=!1,p<q.length&&(A=(q[p]>>>E&1)==1),GDs(G,n,y-Y)&&(A=!A),M.modules[n][y-Y]=A,E--,E==-1&&(p++,E=7));n+=K;if(n<0||M.moduleCount<=n){n-=K;K=-K;break}}},HNI=function(M,q,G){for(var K=-1;K<=7;K++)if(!(q+K<=-1||M.moduleCount<=q+K))for(var n=-1;n<=7;n++)G+n<=-1||M.moduleCount<=G+n||(M.modules[q+K][G+n]=0<=K&&K<=6&&(n==0||n==6)||0<=n&&n<=6&&(K==0||K==6)||2<=K&&K<=4&&2<=n&&n<=4?!0:!1)},ZLw=function(M){for(var q=0,
G=0,K=0;K<8;K++){J$R(M,!0,K);
var n=M;for(var E=n.moduleCount,p=0,y=0;y<E;y++)for(var Y=0;Y<E;Y++){for(var A=0,v=n.isDark(y,Y),h=-1;h<=1;h++)if(!(y+h<0||E<=y+h))for(var t=-1;t<=1;t++)Y+t<0||E<=Y+t||(h!=0||t!=0)&&v==n.isDark(y+h,Y+t)&&A++;A>5&&(p+=3+A-5)}for(y=0;y<E-1;y++)for(Y=0;Y<E-1;Y++)if(A=0,n.isDark(y,Y)&&A++,n.isDark(y+1,Y)&&A++,n.isDark(y,Y+1)&&A++,n.isDark(y+1,Y+1)&&A++,A==0||A==4)p+=3;for(y=0;y<E;y++)for(Y=0;Y<E-6;Y++)n.isDark(y,Y)&&!n.isDark(y,Y+1)&&n.isDark(y,Y+2)&&n.isDark(y,Y+3)&&n.isDark(y,Y+4)&&!n.isDark(y,Y+5)&&
n.isDark(y,Y+6)&&(p+=40);for(Y=0;Y<E;Y++)for(y=0;y<E-6;y++)n.isDark(y,Y)&&!n.isDark(y+1,Y)&&n.isDark(y+2,Y)&&n.isDark(y+3,Y)&&n.isDark(y+4,Y)&&!n.isDark(y+5,Y)&&n.isDark(y+6,Y)&&(p+=40);for(Y=A=0;Y<E;Y++)for(y=0;y<E;y++)n.isDark(y,Y)&&A++;n=p+=Math.abs(100*A/E/E-50)/5*10;if(K==0||q>n)q=n,G=K}return G},eXI=[[],
[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]],nt=function(M){for(var q=0;M!=0;)q++,M>>>=1;return q},GDs=function(M,q,G){switch(M){case 0:return(q+G)%2==0;
case 1:return q%2==0;case 2:return G%3==0;case 3:return(q+G)%3==0;case 4:return(Math.floor(q/2)+Math.floor(G/3))%2==0;case 5:return q*G%2+q*G%3==0;case 6:return(q*G%2+q*G%3)%2==0;case 7:return(q*G%3+(q+G)%2)%2==0;default:throw Error("Kk`"+M);}},sqR=function(M,q){if(1<=q&&q<10)switch(M){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("Lk`"+M);}else if(q<27)switch(M){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("Lk`"+M);}else if(q<41)switch(M){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("Lk`"+M);}else throw Error("Mk`"+q);},nyL=function(M){if(M<1)throw Error("Nk`"+M);
return KZL[M]},q_g=function(M){for(;M<0;)M+=255;
for(;M>=256;)M-=255;return EV[M]},EV=Array(256),KZL=Array(256),Eyg=0;Eyg<8;Eyg++)EV[Eyg]=1<<Eyg;
for(var NP=8;NP<256;NP++)EV[NP]=EV[NP-4]^EV[NP-5]^EV[NP-6]^EV[NP-8];for(var N1s=0;N1s<255;N1s++)KZL[EV[N1s]]=N1s;Cd.prototype.get=function(M){return this.num[M]};
Cd.prototype.getLength=function(){return this.num.length};
Cd.prototype.multiply=function(M){for(var q=Array(this.getLength()+M.getLength()-1),G=0;G<this.getLength();G++)for(var K=0;K<M.getLength();K++)q[G+K]^=q_g(nyL(this.get(G))+nyL(M.get(K)));return new Cd(q,0)};
Cd.prototype.mod=function(M){if(this.getLength()-M.getLength()<0)return this;for(var q=nyL(this.get(0))-nyL(M.get(0)),G=Array(this.getLength()),K=0;K<this.getLength();K++)G[K]=this.get(K);for(K=0;K<M.getLength();K++)G[K]^=q_g(nyL(M.get(K))+q);return(new Cd(G,0)).mod(M)};
var kDM=[[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]],$18=function(M,q){switch(q){case 1:return kDM[(M-1)*4];case 0:return kDM[(M-1)*4+1];case 3:return kDM[(M-1)*4+2];case 2:return kDM[(M-1)*4+3]}};
BxR.prototype.get=function(M){return(this.buffer[Math.floor(M/8)]>>>7-M%8&1)==1};
BxR.prototype.put=function(M,q){for(var G=0;G<q;G++)Mp8(this,(M>>>q-G-1&1)==1)};
var Mp8=function(M,q){var G=Math.floor(M.length/8);M.buffer.length<=G&&M.buffer.push(0);q&&(M.buffer[G]|=128>>>M.length%8);M.length++},Kt=[[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]],Dog=function(){var M=function(q,G){this.JSC$19894__el=q;this.JSC$19894__htOption=G};
M.prototype.draw=function(q){function G(v,h){v=document.createElementNS("http://www.w3.org/2000/svg",v);for(var t in h)h.hasOwnProperty(t)&&(t==="href"?_.vUU(v,h[t]):_.kq([_.vc(TTw),_.vc(r1w),_.vc(jQs),_.vc(V6w),_.vc(RXw),_.vc(fMU),_.vc(Fqw)],v,t,h[t]));return v}
var K=this.JSC$19894__htOption,n=this.JSC$19894__el,E=q.moduleCount;this.clear();var p=G("svg",{viewBox:"0 0 "+String(E)+" "+String(E),width:"100%",height:"100%",fill:K.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});n.appendChild(p);p.appendChild(G("rect",{fill:K.colorLight,width:"100%",height:"100%"}));p.appendChild(G("rect",{fill:K.colorDark,width:"1",height:"1",id:"template"}));for(var y=0;y<E;y++)for(var Y=0;Y<E;Y++)if(q.isDark(y,Y)){var A=G("use",{x:String(y),y:String(Y),href:"#template"});
p.appendChild(A)}};
M.prototype.clear=function(){for(;this.JSC$19894__el.hasChildNodes();)this.JSC$19894__el.removeChild(this.JSC$19894__el.lastChild)};
return M}(),ITn=document.documentElement.tagName.toLowerCase()==="svg"?Dog:typeof CanvasRenderingContext2D!="undefined"?function(){var M=function(q,G){this._bIsPainted=!1;
QZv();this.JSC$19894__htOption=G;this._elCanvas=document.createElement("canvas");this._elCanvas.width=G.width;this._elCanvas.height=G.height;q.appendChild(this._elCanvas);this.JSC$19894__el=q;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$19894__el.appendChild(this._elImage);this._bSupportDataURI=null};
M.prototype._onMakeImage=function(){var q=this._elCanvas.toDataURL("image/png");this._elImage.src=q;this._elImage.style.display="block";this._elCanvas.style.display="none"};
M.prototype._safeSetDataURI=function(q,G){var K=this;K._fFail=G;K._fSuccess=q;K._bSupportDataURI===null?(q=_.iI("IMG"),G=function(){K._bSupportDataURI=!1;K._fFail&&K._fFail.call(K)},q.onabort=G,q.onerror=G,q.onload=function(){K._bSupportDataURI=!0;
K._fSuccess&&K._fSuccess.call(K)},q.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):K._bSupportDataURI===!0&&K._fSuccess?K._fSuccess.call(K):K._bSupportDataURI===!1&&K._fFail&&K._fFail.call(K)};
M.prototype.draw=function(q){var G=this._oContext,K=this.JSC$19894__htOption,n=q.moduleCount,E=K.width/n,p=K.height/n,y=Math.round(E),Y=Math.round(p);this._elImage.style.display="none";this.clear();for(var A=0;A<n;A++)for(var v=0;v<n;v++){var h=q.isDark(A,v),t=v*E,O=A*p;G.strokeStyle=h?K.colorDark:K.colorLight;G.lineWidth=1;G.fillStyle=h?K.colorDark:K.colorLight;G.fillRect(t,O,E,p);G.strokeRect(Math.floor(t)+.5,Math.floor(O)+.5,y,Y);G.strokeRect(Math.ceil(t)-.5,Math.ceil(O)-.5,y,Y)}this._bIsPainted=
!0};
M.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
M.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
M.prototype.round=function(q){return q?Math.floor(q*1E3)/1E3:q};
return M}():function(){var M=function(q,G){this.JSC$19894__el=q;
this.JSC$19894__htOption=G};
M.prototype.draw=function(q){for(var G=this.JSC$19894__htOption,K=this.JSC$19894__el,n=q.moduleCount,E=Math.floor(G.width/n),p=Math.floor(G.height/n),y=['<table style="border:0;border-collapse:collapse;">'],Y=0;Y<n;Y++){y.push("<tr>");for(var A=0;A<n;A++)y.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+E+"px;height:"+p+"px;background-color:"+(q.isDark(Y,A)?G.colorDark:G.colorLight)+';"></td>');y.push("</tr>")}y.push("</table>");q=y.join("");q=_.jSv(_.R7J,q);_.NX(K,q);
q=K.childNodes[0];n=(G.width-q.offsetWidth)/2;E=(G.height-q.offsetHeight)/2;n>0&&E>0&&(q.style.margin=E+"px "+n+"px")};
M.prototype.clear=function(){this.JSC$19894__el.textContent=""};
return M}();
bL5.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$19897__android||this.JSC$19897__android>=3)&&this._oDrawing.makeImage()};
bL5.prototype.clear=function(){this._oDrawing.clear()};
_.Kj.QRCode=bL5;var pzv={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var y7E=function(){};
y7E.prototype.stringify=function(M){return _.Kj.JSON.stringify(M,void 0)};
y7E.prototype.parse=function(M){return _.Kj.JSON.parse(M,void 0)};var LZs=function(){_.d6.call(this,"z")};
_.TO(LZs,_.d6);var Y_w=function(){_.d6.call(this,"y")};
_.TO(Y_w,_.d6);var WZw=null,A7P=function(){return WZw=WZw||new _.w6},d5L=function(M){_.d6.call(this,"serverreachability",M)};
_.TO(d5L,_.d6);var vyw=function(M){var q=A7P();q.dispatchEvent(new d5L(q,M))},hJn=function(M,q){_.d6.call(this,"statevent",M);
this.stat=q};
_.TO(hJn,_.d6);var k3=function(M){var q=A7P();q.dispatchEvent(new hJn(q,M))},tps=function(M,q,G,K){_.d6.call(this,"timingevent",M);
this.size=q;this.rtt=G;this.retries=K};
_.TO(tps,_.d6);var OVP=function(M,q,G){var K=A7P();K.dispatchEvent(new tps(K,M,q,G))},wzw=function(M,q){if(typeof M!=="function")throw Error("Rk");
return _.Kj.setTimeout(function(){M()},q)};var pt=function(){this.redactEnabled_=!0};
pt.prototype.disableRedact=function(){this.redactEnabled_=!1};
var CWE=function(M,q,G,K,n,E){M.info(function(){if(M.redactEnabled_)if(E){var p="";for(var y=E.split("&"),Y=0;Y<y.length;Y++){var A=y[Y].split("=");if(A.length>1){var v=A[0];A=A[1];var h=v.split("_");p=h.length>=2&&h[1]=="type"?p+(v+"="+A+"&"):p+(v+"=redacted&")}}}else p=null;else p=E;return"XMLHTTP REQ ("+K+") [attempt "+n+"]: "+q+"\n"+G+"\n"+p})},aII=function(M,q,G,K,n,E,p){M.info(function(){return"XMLHTTP RESP ("+K+") [ attempt "+n+"]: "+q+"\n"+G+"\n"+E+" "+p})},yC=function(M,q,G,K){M.info(function(){return"XMLHTTP TEXT ("+
q+"): "+oyv(M,G)+(K?" "+K:"")})},lIs=function(M,q){M.info(function(){return"TIMEOUT: "+q})};
pt.prototype.debug=function(){};
pt.prototype.info=function(){};
pt.prototype.warning=function(){};
var oyv=function(M,q){if(!M.redactEnabled_)return q;if(!q)return null;try{var G=JSON.parse(q);if(G)for(var K=0;K<G.length;K++)if(Array.isArray(G[K])){var n=G[K];if(!(n.length<2)){var E=n[1];if(Array.isArray(E)&&!(E.length<1)){var p=E[0];if(p!="noop"&&p!="stop"&&p!="close")for(var y=1;y<E.length;y++)E[y]=""}}}return(0,_.i2)(G)}catch(Y){return M.debug("Exception parsing expected JS array - probably was not JS"),q}};var Lt=function(M,q,G,K,n){this.JSC$19919_channel_=M;this.JSC$19919_channelDebug_=q;this.sid_=G;this.JSC$19919_rid_=K;this.JSC$19919_retryId_=n||1;this.JSC$19919_eventHandler_=new _.OU(this);this.timeout_=45E3;this.JSC$19919_extraHeaders_=null;this.JSC$19919_successful_=!1;this.JSC$19919_postData_=this.JSC$19919_requestUri_=this.JSC$19919_baseUri_=this.JSC$19919_type_=this.JSC$19919_requestStartTime_=this.JSC$19919_watchDogTimeoutTime_=this.JSC$19919_watchDogTimerId_=null;this.JSC$19919_pendingMessages_=
[];this.JSC$19919_xmlHttp_=null;this.JSC$19919_xmlHttpChunkStart_=0;this.JSC$19919_lastError_=this.JSC$19919_verb_=null;this.JSC$19919_lastStatusCode_=-1;this.JSC$19919_cancelled_=!1;this.JSC$19919_readyStateChangeThrottleMs_=0;this.JSC$19919_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new Xzv},Xzv=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},PWU=function(M,q){switch(M){case 0:return"Non-200 return code ("+q+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},iVg={},c7w={};
Lt.prototype.setTimeout=function(M){this.timeout_=M};
var B1g=function(M,q,G){M.JSC$19919_type_=1;M.JSC$19919_baseUri_=_.Nu(q.clone());M.JSC$19919_postData_=G;M.decodeChunks_=!0;gyU(M,null)},gyU=function(M,q){M.JSC$19919_requestStartTime_=Date.now();
Qqw(M);M.JSC$19919_requestUri_=M.JSC$19919_baseUri_.clone();YX(M.JSC$19919_requestUri_,"t",M.JSC$19919_retryId_);M.JSC$19919_xmlHttpChunkStart_=0;var G=M.JSC$19919_channel_.JSC$19938_supportsCrossDomainXhrs_;M.fetchResponseState_=new Xzv;M.JSC$19919_xmlHttp_=IIs(M.JSC$19919_channel_,G?q:null,!M.JSC$19919_postData_);M.JSC$19919_readyStateChangeThrottleMs_>0&&(M.JSC$19919_readyStateChangeThrottle_=new _.qA((0,_.Ju)(M.JSC$19923_xmlHttpHandler_,M,M.JSC$19919_xmlHttp_),M.JSC$19919_readyStateChangeThrottleMs_));
M.JSC$19919_eventHandler_.listen(M.JSC$19919_xmlHttp_,"readystatechange",M.JSC$19923_readyStateChangeHandler_);q=M.JSC$19919_extraHeaders_?_.xP.clone(M.JSC$19919_extraHeaders_):{};M.JSC$19919_postData_?(M.JSC$19919_verb_||(M.JSC$19919_verb_="POST"),q["Content-Type"]="application/x-www-form-urlencoded",M.JSC$19919_xmlHttp_.send(M.JSC$19919_requestUri_,M.JSC$19919_verb_,M.JSC$19919_postData_,q)):(M.JSC$19919_verb_="GET",M.JSC$19919_xmlHttp_.send(M.JSC$19919_requestUri_,M.JSC$19919_verb_,null,q));vyw(1);
CWE(M.JSC$19919_channelDebug_,M.JSC$19919_verb_,M.JSC$19919_requestUri_,M.JSC$19919_rid_,M.JSC$19919_retryId_,M.JSC$19919_postData_)};
Lt.prototype.JSC$19923_readyStateChangeHandler_=function(M){M=M.target;var q=this.JSC$19919_readyStateChangeThrottle_;q&&_.g6(M)==3?(this.JSC$19919_channelDebug_.debug("Throttling readystatechange."),q.fire()):this.JSC$19923_xmlHttpHandler_(M)};
Lt.prototype.JSC$19923_xmlHttpHandler_=function(M){try{M==this.JSC$19919_xmlHttp_?D5R(this):this.JSC$19919_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(q){this.JSC$19919_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),utg(this)}finally{}};
var D5R=function(M){var q=_.g6(M.JSC$19919_xmlHttp_),G=M.JSC$19919_xmlHttp_.JSC$9800_lastErrorCode_,K=M.JSC$19919_xmlHttp_.getStatus();if(!(q<3||q==3&&!utg(M))){M.JSC$19919_cancelled_||q!=4||G==7||(G==8||K<=0?vyw(3):vyw(2));J7M(M);var n=M.JSC$19919_xmlHttp_.getStatus();M.JSC$19919_lastStatusCode_=n;G=ZVE(M);utg(M)||M.JSC$19919_channelDebug_.debug(function(){return"No response text for uri "+M.JSC$19919_requestUri_+" status "+n});
M.JSC$19919_successful_=n==200;aII(M.JSC$19919_channelDebug_,M.JSC$19919_verb_,M.JSC$19919_requestUri_,M.JSC$19919_rid_,M.JSC$19919_retryId_,q,n);if(M.JSC$19919_successful_){if(M.decodeInitialResponse_&&!M.initialResponseDecoded_)if(K=bVM(M))yC(M.JSC$19919_channelDebug_,M.JSC$19919_rid_,K,"Initial handshake response via X-HTTP-Initial-Response"),M.initialResponseDecoded_=!0,U5I(M,K);else{M.JSC$19919_successful_=!1;M.JSC$19919_lastError_=3;k3(12);M.JSC$19919_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
M.JSC$19919_rid_+")");Y3(M);x5w(M);return}M.decodeChunks_?zJs(M,q,G):(yC(M.JSC$19919_channelDebug_,M.JSC$19919_rid_,G,null),U5I(M,G));q==4&&Y3(M);M.JSC$19919_successful_&&!M.JSC$19919_cancelled_&&(q==4?m5I(M.JSC$19919_channel_,M):(M.JSC$19919_successful_=!1,Qqw(M)))}else YSs(M.JSC$19919_xmlHttp_),n==400&&G.indexOf("Unknown SID")>0?(M.JSC$19919_lastError_=3,k3(12),M.JSC$19919_channelDebug_.warning("XMLHTTP Unknown SID ("+M.JSC$19919_rid_+")")):(M.JSC$19919_lastError_=0,k3(13),M.JSC$19919_channelDebug_.warning("XMLHTTP Bad status "+
n+" ("+M.JSC$19919_rid_+")")),Y3(M),x5w(M)}},bVM=function(M){return M.JSC$19919_xmlHttp_&&(M=yh(M.JSC$19919_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Lj(M)?M:null},ZVE=function(M){if(!S_I(M))return M.JSC$19919_xmlHttp_.getResponseText();
var q=M.JSC$19919_xmlHttp_.getResponse();if(q==="")return"";var G="",K=q.length,n=_.g6(M.JSC$19919_xmlHttp_)==4;if(!M.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Y3(M),x5w(M),"";M.fetchResponseState_.textDecoder=new _.Kj.TextDecoder}for(var E=0;E<K;E++)M.fetchResponseState_.responseArrivedForFetch=!0,G+=M.fetchResponseState_.textDecoder.decode(q[E],{stream:!(n&&E==K-1)});q.length=0;M.fetchResponseState_.responseBuffer+=G;M.JSC$19919_xmlHttpChunkStart_=0;return M.fetchResponseState_.responseBuffer},
utg=function(M){return M.JSC$19919_xmlHttp_?M.fetchResponseState_.responseArrivedForFetch?!0:!(!M.JSC$19919_xmlHttp_.getResponseText()&&!M.JSC$19919_xmlHttp_.getResponse()):!1},S_I=function(M){return M.JSC$19919_xmlHttp_?M.JSC$19919_verb_=="GET"&&M.JSC$19919_type_!=2&&M.JSC$19919_channel_.usesFetchStreams_:!1},zJs=function(M,q,G){for(var K=!0,n;!M.JSC$19919_cancelled_&&M.JSC$19919_xmlHttpChunkStart_<G.length;)if(n=T1I(M,G),n==c7w){q==4&&(M.JSC$19919_lastError_=4,k3(14),K=!1);
yC(M.JSC$19919_channelDebug_,M.JSC$19919_rid_,null,"[Incomplete Response]");break}else if(n==iVg){M.JSC$19919_lastError_=4;k3(15);yC(M.JSC$19919_channelDebug_,M.JSC$19919_rid_,G,"[Invalid Chunk]");K=!1;break}else yC(M.JSC$19919_channelDebug_,M.JSC$19919_rid_,n,null),U5I(M,n);S_I(M)&&M.JSC$19919_xmlHttpChunkStart_!=0&&(M.fetchResponseState_.responseBuffer=M.fetchResponseState_.responseBuffer.slice(M.JSC$19919_xmlHttpChunkStart_),M.JSC$19919_xmlHttpChunkStart_=0);q!=4||G.length!=0||M.fetchResponseState_.responseArrivedForFetch||
(M.JSC$19919_lastError_=1,k3(16),K=!1);M.JSC$19919_successful_=M.JSC$19919_successful_&&K;K?G.length>0&&!M.firstByteReceived_&&(M.firstByteReceived_=!0,q=M.JSC$19919_channel_,q.JSC$19938_backChannelRequest_==M&&q.detectBufferingProxy_&&!q.bpDetectionDone_&&(q.JSC$19938_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+G.length),r7v(q),q.bpDetectionDone_=!0,k3(11))):(yC(M.JSC$19919_channelDebug_,M.JSC$19919_rid_,G,"[Invalid Chunked Response]"),Y3(M),x5w(M))},T1I=function(M,
q){var G=M.JSC$19919_xmlHttpChunkStart_,K=q.indexOf("\n",G);
if(K==-1)return c7w;G=Number(q.substring(G,K));if(isNaN(G))return iVg;K+=1;if(K+G>q.length)return c7w;q=q.slice(K,K+G);M.JSC$19919_xmlHttpChunkStart_=K+G;return q};
Lt.prototype.cancel=function(){this.JSC$19919_cancelled_=!0;Y3(this)};
var Qqw=function(M){M.JSC$19919_watchDogTimeoutTime_=Date.now()+M.timeout_;jqI(M,M.timeout_)},jqI=function(M,q){if(M.JSC$19919_watchDogTimerId_!=null)throw Error("Sk");
M.JSC$19919_watchDogTimerId_=wzw((0,_.Ju)(M.JSC$19923_onWatchDogTimeout_,M),q)},J7M=function(M){M.JSC$19919_watchDogTimerId_&&(_.Kj.clearTimeout(M.JSC$19919_watchDogTimerId_),M.JSC$19919_watchDogTimerId_=null)};
Lt.prototype.JSC$19923_onWatchDogTimeout_=function(){this.JSC$19919_watchDogTimerId_=null;var M=Date.now();M-this.JSC$19919_watchDogTimeoutTime_>=0?(lIs(this.JSC$19919_channelDebug_,this.JSC$19919_requestUri_),this.JSC$19919_type_!=2&&(vyw(3),k3(17)),Y3(this),this.JSC$19919_lastError_=2,x5w(this)):(this.JSC$19919_channelDebug_.warning("WatchDog timer called too early"),jqI(this,this.JSC$19919_watchDogTimeoutTime_-M))};
var x5w=function(M){M.JSC$19919_channel_.state_==0||M.JSC$19919_cancelled_||m5I(M.JSC$19919_channel_,M)},Y3=function(M){J7M(M);
_.ka(M.JSC$19919_readyStateChangeThrottle_);M.JSC$19919_readyStateChangeThrottle_=null;M.JSC$19919_eventHandler_.removeAll();if(M.JSC$19919_xmlHttp_){var q=M.JSC$19919_xmlHttp_;M.JSC$19919_xmlHttp_=null;q.abort();q.dispose()}};
Lt.prototype.getLastError=function(){return this.JSC$19919_lastError_};
var U5I=function(M,q){try{var G=M.JSC$19919_channel_;if(G.state_!=0&&(G.JSC$19938_backChannelRequest_==M||Vp8(G.forwardChannelRequestPool_,M)))if(!M.initialResponseDecoded_&&Vp8(G.forwardChannelRequestPool_,M)&&G.state_==3){try{var K=G.wireCodec_.JSC$19933_parser_.parse(q)}catch(y){K=null}if(Array.isArray(K)&&K.length==3){q=K;if(q[0]==0)a:if(G.JSC$19938_channelDebug_.debug("Server claims our backchannel is missing."),G.JSC$19938_backChannelTimerId_)G.JSC$19938_channelDebug_.debug("But we are currently starting the request.");
else{if(G.JSC$19938_backChannelRequest_)if(G.JSC$19938_backChannelRequest_.JSC$19919_requestStartTime_+3E3<M.JSC$19919_requestStartTime_)RJ8(G),fIn(G);else break a;else G.JSC$19938_channelDebug_.warning("We do not have a BackChannel established");FZU(G);k3(18)}else{G.JSC$19938_lastPostResponseArrayId_=q[1];var n=G.JSC$19938_lastPostResponseArrayId_-G.JSC$19938_lastArrayId_;if(0<n){var E=q[2];G.JSC$19938_channelDebug_.debug(E+" bytes (in "+n+" arrays) are outstanding on the BackChannel");E<37500&&
G.enableStreaming_&&G.JSC$19938_backChannelRetryCount_==0&&!G.JSC$19938_deadBackChannelTimerId_&&(G.JSC$19938_deadBackChannelTimerId_=wzw((0,_.Ju)(G.JSC$19940_onBackChannelDead_,G),6E3))}}if(HVP(G.forwardChannelRequestPool_)<=1&&G.forwardChannelFlushedCallback_){try{G.forwardChannelFlushedCallback_()}catch(y){}G.forwardChannelFlushedCallback_=void 0}}else G.JSC$19938_channelDebug_.debug("Bad POST response data returned"),Wi(G,11)}else if((M.initialResponseDecoded_||G.JSC$19938_backChannelRequest_==
M)&&RJ8(G),!_.Lj(q)){var p=G.wireCodec_.JSC$19933_parser_.parse(q);G.onInput_(p,M)}vyw(4)}catch(y){}};var eJv=function(M,q){this.JSC$19926_mapId=M;this.map=q;this.context=null};var $5w=function(M){this.maxPoolSizeConfigured_=M||10;_.Kj.PerformanceNavigationTiming?(M=_.Kj.performance.getEntriesByType("navigation"),M=M.length>0&&(M[0].nextHopProtocol=="hq"||M[0].nextHopProtocol=="h2")):M=!!(_.Kj.chrome&&_.Kj.chrome.loadTimes&&_.Kj.chrome.loadTimes()&&_.Kj.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$19929_maxSize_=M?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$19929_maxSize_>1&&(this.requestPool_=new Set);this.JSC$19929_request_=null;this.JSC$19929_pendingMessages_=
[]},sGE=function(M){return M.JSC$19929_request_?!0:M.requestPool_?M.requestPool_.size>=M.JSC$19929_maxSize_:!1},HVP=function(M){return M.JSC$19929_request_?1:M.requestPool_?M.requestPool_.size:0},Vp8=function(M,q){return M.JSC$19929_request_?M.JSC$19929_request_==q:M.requestPool_?M.requestPool_.has(q):!1},Mu8=function(M,q){M.requestPool_?M.requestPool_.add(q):M.JSC$19929_request_=q},qHU=function(M,q){M.JSC$19929_request_&&M.JSC$19929_request_==q?M.JSC$19929_request_=null:M.requestPool_&&M.requestPool_.has(q)&&
M.requestPool_.delete(q)};
$5w.prototype.cancel=function(){this.JSC$19929_pendingMessages_=Gzv(this);if(this.JSC$19929_request_)this.JSC$19929_request_.cancel(),this.JSC$19929_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var M=_.k(this.requestPool_.values()),q=M.next();!q.done;q=M.next())q.value.cancel();this.requestPool_.clear()}};
var Gzv=function(M){if(M.JSC$19929_request_!=null)return M.JSC$19929_pendingMessages_.concat(M.JSC$19929_request_.JSC$19919_pendingMessages_);if(M.requestPool_!=null&&M.requestPool_.size!==0){var q=M.JSC$19929_pendingMessages_;M=_.k(M.requestPool_.values());for(var G=M.next();!G.done;G=M.next())q=q.concat(G.value.JSC$19919_pendingMessages_);return q}return _.Sw(M.JSC$19929_pendingMessages_)},KQg=function(M,q){M.JSC$19929_pendingMessages_=M.JSC$19929_pendingMessages_.concat(q)};var nvg=function(M,q){var G=new pt;G.debug("TestLoadImage: loading "+M);if(_.Kj.Image){var K=new Image;K.onload=_.n7(AN,G,"TestLoadImage: loaded",!0,q,K);K.onerror=_.n7(AN,G,"TestLoadImage: error",!1,q,K);K.onabort=_.n7(AN,G,"TestLoadImage: abort",!1,q,K);K.ontimeout=_.n7(AN,G,"TestLoadImage: timeout",!1,q,K);_.Kj.setTimeout(function(){if(K.ontimeout)K.ontimeout()},1E4);
K.src=M}else q(!1)},Ev8=function(M,q){var G=new pt,K=new AbortController,n=setTimeout(function(){K.abort();
AN(G,"TestPingServer: timeout",!1,q)},1E4);
fetch(M,{signal:K.signal}).then(function(E){clearTimeout(n);E.ok?AN(G,"TestPingServer: ok",!0,q):AN(G,"TestPingServer: server error",!1,q)}).catch(function(){clearTimeout(n);
AN(G,"TestPingServer: error",!1,q)})},AN=function(M,q,G,K,n){try{M.debug(q),n&&(n.onload=null,n.onerror=null,n.onabort=null,n.ontimeout=null),K(G)}catch(E){}};var NgL=function(){this.JSC$19933_parser_=new y7E};var kzE=function(M,q,G){return G&&G.internalChannelParams?G.internalChannelParams[M]||q:q},dH=function(M){this.serverVersion_=0;
this.JSC$19938_outgoingMaps_=[];this.JSC$19938_channelDebug_=new pt;this.JSC$19938_hostPrefix_=this.JSC$19938_backChannelUri_=this.JSC$19938_forwardChannelUri_=this.JSC$19938_path_=this.JSC$19938_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$19938_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$19938_extraHeaders_=null;this.JSC$19938_nextMapId_=this.JSC$19938_nextRid_=0;this.JSC$19938_failFast_=kzE("failFast",!1,M);this.enableStreaming_=this.JSC$19938_deadBackChannelTimerId_=
this.JSC$19938_backChannelTimerId_=this.JSC$19938_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$19938_lastPostResponseArrayId_=this.JSC$19938_lastArrayId_=-1;this.JSC$19938_backChannelAttemptId_=this.JSC$19938_backChannelRetryCount_=this.JSC$19938_forwardChannelRetryCount_=0;this.JSC$19938_baseRetryDelayMs_=kzE("baseRetryDelayMs",5E3,M);this.JSC$19938_retryDelaySeedMs_=kzE("retryDelaySeedMs",1E4,M);this.JSC$19938_forwardChannelMaxRetries_=
kzE("forwardChannelMaxRetries",2,M);this.JSC$19938_forwardChannelRequestTimeoutMs_=kzE("forwardChannelRequestTimeoutMs",2E4,M);this.JSC$19938_xmlHttpFactory_=M&&M.xmlHttpFactory||void 0;this.networkTestUrl_=M&&M.networkTestUrl||void 0;this.usesFetchStreams_=M&&M.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$19938_supportsCrossDomainXhrs_=M&&M.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new $5w(M&&M.concurrentRequestLimit);this.wireCodec_=new NgL;
this.fastHandshake_=M&&M.fastHandshake||!1;this.encodeInitMessageHeaders_=M&&M.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$19938_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=M&&M.blockingHandshake||!1;M&&M.disableRedact&&this.JSC$19938_channelDebug_.disableRedact();M&&M.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&
this.allowStreamingMode_&&M&&M.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;M&&M.longPollingTimeout&&M.longPollingTimeout>0&&(this.longPollingTimeout_=M.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
dH.prototype.JSC$19940_channelVersion_=8;dH.prototype.state_=1;
dH.prototype.connect=function(M,q,G,K){this.JSC$19938_channelDebug_.debug("connect()");k3(0);this.JSC$19938_path_=M;this.JSC$19938_extraParams_=q||{};G&&K!==void 0&&(this.JSC$19938_extraParams_.OSID=G,this.JSC$19938_extraParams_.OAID=K);this.enableStreaming_=this.allowStreamingMode_;this.JSC$19938_channelDebug_.debug("connectChannel_()");M=pf8(this,null,this.JSC$19938_path_);this.JSC$19938_channelDebug_.debug("GetForwardChannelUri: "+M);this.JSC$19938_forwardChannelUri_=M;yv5(this)};
dH.prototype.disconnect=function(){this.JSC$19938_channelDebug_.debug("disconnect()");LQg(this);if(this.state_==3){var M=this.JSC$19938_nextRid_++,q=this.JSC$19938_forwardChannelUri_.clone();_.qT(q,"SID",this.sid_);_.qT(q,"RID",M);_.qT(q,"TYPE","terminate");YHM(this,q);M=new Lt(this,this.JSC$19938_channelDebug_,this.sid_,M);M.JSC$19919_type_=2;M.JSC$19919_baseUri_=_.Nu(q.clone());q=!1;if(_.Kj.navigator&&_.Kj.navigator.sendBeacon)try{q=_.Kj.navigator.sendBeacon(M.JSC$19919_baseUri_.toString(),"")}catch(G){}!q&&
_.Kj.Image&&((new Image).src=M.JSC$19919_baseUri_,q=!0);q||(M.JSC$19919_xmlHttp_=IIs(M.JSC$19919_channel_,null),M.JSC$19919_xmlHttp_.send(M.JSC$19919_baseUri_));M.JSC$19919_requestStartTime_=Date.now();Qqw(M)}WQU(this)};
var fIn=function(M){M.JSC$19938_backChannelRequest_&&(r7v(M),M.JSC$19938_backChannelRequest_.cancel(),M.JSC$19938_backChannelRequest_=null)},LQg=function(M){fIn(M);
M.JSC$19938_backChannelTimerId_&&(_.Kj.clearTimeout(M.JSC$19938_backChannelTimerId_),M.JSC$19938_backChannelTimerId_=null);RJ8(M);M.forwardChannelRequestPool_.cancel();M.JSC$19938_forwardChannelTimerId_&&(typeof M.JSC$19938_forwardChannelTimerId_==="number"&&_.Kj.clearTimeout(M.JSC$19938_forwardChannelTimerId_),M.JSC$19938_forwardChannelTimerId_=null)};
dH.prototype.getState=function(){return this.state_};
var yv5=function(M){sGE(M.forwardChannelRequestPool_)||M.JSC$19938_forwardChannelTimerId_||(M.JSC$19938_forwardChannelTimerId_=!0,_.ai(M.JSC$19940_onStartForwardChannelTimer_,M),M.JSC$19938_forwardChannelRetryCount_=0)},dtU=function(M,q){if(HVP(M.forwardChannelRequestPool_)>=M.forwardChannelRequestPool_.JSC$19929_maxSize_-(M.JSC$19938_forwardChannelTimerId_?1:0))return!1;
if(M.JSC$19938_forwardChannelTimerId_)return M.JSC$19938_channelDebug_.debug("Use the retry request that is already scheduled."),M.JSC$19938_outgoingMaps_=q.JSC$19919_pendingMessages_.concat(M.JSC$19938_outgoingMaps_),!0;if(M.state_==1||M.state_==2||M.JSC$19938_forwardChannelRetryCount_>=(M.JSC$19938_failFast_?0:M.JSC$19938_forwardChannelMaxRetries_))return!1;M.JSC$19938_channelDebug_.debug("Going to retry POST");M.JSC$19938_forwardChannelTimerId_=wzw((0,_.Ju)(M.JSC$19940_onStartForwardChannelTimer_,
M,q),AvI(M,M.JSC$19938_forwardChannelRetryCount_));M.JSC$19938_forwardChannelRetryCount_++;return!0};
dH.prototype.JSC$19940_onStartForwardChannelTimer_=function(M){if(this.JSC$19938_forwardChannelTimerId_)if(this.JSC$19938_forwardChannelTimerId_=null,this.JSC$19938_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!M){this.JSC$19938_channelDebug_.debug("open_()");this.JSC$19938_nextRid_=Math.floor(Math.random()*1E5);M=this.JSC$19938_nextRid_++;var q=new Lt(this,this.JSC$19938_channelDebug_,"",M),G=this.JSC$19938_extraHeaders_;this.initHeaders_&&(G?(G=_.xP.clone(G),_.xP.extend(G,this.initHeaders_)):
G=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(q.JSC$19919_extraHeaders_=G,G=null);var K;if(this.fastHandshake_)a:{for(var n=K=0;n<this.JSC$19938_outgoingMaps_.length;n++){b:{var E=this.JSC$19938_outgoingMaps_[n];if("__data__"in E.map&&(E=E.map.__data__,typeof E==="string")){E=E.length;break b}E=void 0}if(E===void 0)break;K+=E;if(K>4096){K=n;break a}if(K===4096||n===this.JSC$19938_outgoingMaps_.length-1){K=n+1;break a}}K=1E3}else K=1E3;K=vvE(this,q,K);
n=this.JSC$19938_forwardChannelUri_.clone();_.qT(n,"RID",M);_.qT(n,"CVER",22);this.httpSessionIdParam_&&_.qT(n,"X-HTTP-Session-Id",this.httpSessionIdParam_);YHM(this,n);G&&(this.encodeInitMessageHeaders_?K="headers="+_.qz(t9v(G))+"&"+K:this.httpHeadersOverwriteParam_&&OkR(n,this.httpHeadersOverwriteParam_,G));Mu8(this.forwardChannelRequestPool_,q);this.blockingHandshake_&&_.qT(n,"TYPE","init");this.fastHandshake_?(_.qT(n,"$req",K),_.qT(n,"SID","null"),q.decodeInitialResponse_=!0,B1g(q,n,null)):B1g(q,
n,K);this.state_=2}}else this.state_==3&&(M?hCP(this,M):this.JSC$19938_outgoingMaps_.length==0?this.JSC$19938_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):sGE(this.forwardChannelRequestPool_)||(hCP(this),this.JSC$19938_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var hCP=function(M,q){var G;q?G=q.JSC$19919_rid_:G=M.JSC$19938_nextRid_++;var K=M.JSC$19938_forwardChannelUri_.clone();_.qT(K,"SID",M.sid_);_.qT(K,"RID",G);_.qT(K,"AID",M.JSC$19938_lastArrayId_);YHM(M,K);M.httpHeadersOverwriteParam_&&M.JSC$19938_extraHeaders_&&OkR(K,M.httpHeadersOverwriteParam_,M.JSC$19938_extraHeaders_);G=new Lt(M,M.JSC$19938_channelDebug_,M.sid_,G,M.JSC$19938_forwardChannelRetryCount_+1);M.httpHeadersOverwriteParam_===null&&(G.JSC$19919_extraHeaders_=M.JSC$19938_extraHeaders_);
q&&(M.JSC$19938_outgoingMaps_=q.JSC$19919_pendingMessages_.concat(M.JSC$19938_outgoingMaps_));q=vvE(M,G,1E3);G.setTimeout(Math.round(M.JSC$19938_forwardChannelRequestTimeoutMs_*.5)+Math.round(M.JSC$19938_forwardChannelRequestTimeoutMs_*.5*Math.random()));Mu8(M.forwardChannelRequestPool_,G);B1g(G,K,q)},YHM=function(M,q){M.JSC$19938_extraParams_&&_.xP.forEach(M.JSC$19938_extraParams_,function(G,K){_.qT(q,K,G)});
M.handler_&&_.xP.forEach({},function(G,K){_.qT(q,K,G)})},vvE=function(M,q,G){G=Math.min(M.JSC$19938_outgoingMaps_.length,G);
var K=M.handler_?(0,_.Ju)(M.handler_.JSC$19944_badMapError,M.handler_,M):null;a:{for(var n=M.JSC$19938_outgoingMaps_,E=-1;;){var p=["count="+G];E==-1?G>0?(E=n[0].JSC$19926_mapId,p.push("ofs="+E)):E=0:p.push("ofs="+E);for(var y=!0,Y=0;Y<G;Y++){var A=n[Y].JSC$19926_mapId,v=n[Y].map;A-=E;if(A<0)E=Math.max(0,n[Y].JSC$19926_mapId-100),y=!1;else try{A="req"+A+"_"||"";try{var h=v instanceof Map?v:Object.entries(v);for(var t=_.k(h),O=t.next();!O.done;O=t.next()){var a=_.k(O.value),g=a.next().value,D=a.next().value,
J=D;_.VY(D)&&(J=(0,_.i2)(D));p.push(A+g+"="+encodeURIComponent(J))}}catch(Z){throw p.push(A+"type="+encodeURIComponent("_badmap")),Z;}}catch(Z){K&&K(v)}}if(y){h=p.join("&");break a}}h=void 0}M=M.JSC$19938_outgoingMaps_.splice(0,G);q.JSC$19919_pendingMessages_=M;return h},tuU=function(M){M.JSC$19938_backChannelRequest_||M.JSC$19938_backChannelTimerId_||(M.JSC$19938_backChannelAttemptId_=1,_.ai(M.JSC$19940_onStartBackChannelTimer_,M),M.JSC$19938_backChannelRetryCount_=0)},FZU=function(M){if(M.JSC$19938_backChannelRequest_||
M.JSC$19938_backChannelTimerId_||M.JSC$19938_backChannelRetryCount_>=3)return!1;
M.JSC$19938_channelDebug_.debug("Going to retry GET");M.JSC$19938_backChannelAttemptId_++;M.JSC$19938_backChannelTimerId_=wzw((0,_.Ju)(M.JSC$19940_onStartBackChannelTimer_,M),AvI(M,M.JSC$19938_backChannelRetryCount_));M.JSC$19938_backChannelRetryCount_++;return!0};
dH.prototype.JSC$19940_onStartBackChannelTimer_=function(){this.JSC$19938_backChannelTimerId_=null;O3w(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$19938_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$19938_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$19938_backChannelRequest_+" "+this.handshakeRttMs_);else{var M=4*this.handshakeRttMs_;this.JSC$19938_channelDebug_.info("BP detection timer enabled: "+M);this.bpDetectionTimerId_=wzw((0,_.Ju)(this.onBpDetectionTimer_,
this),M)}};
dH.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$19938_channelDebug_.info("BP detection timeout reached.");if(this.JSC$19938_backChannelRequest_.JSC$19919_xmlHttp_!=null){var M=this.JSC$19938_backChannelRequest_.JSC$19919_xmlHttp_.getResponseText();M&&this.JSC$19938_channelDebug_.warning("Timer should have been cancelled : "+M)}this.JSC$19938_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;k3(10);fIn(this);O3w(this)}else this.JSC$19938_channelDebug_.warning("Invalid operation.")};
var r7v=function(M){M.bpDetectionTimerId_!=null&&(M.JSC$19938_channelDebug_.debug("Cancel the BP detection timer."),_.Kj.clearTimeout(M.bpDetectionTimerId_),M.bpDetectionTimerId_=null)},O3w=function(M){M.JSC$19938_channelDebug_.debug("Creating new HttpRequest");
M.JSC$19938_backChannelRequest_=new Lt(M,M.JSC$19938_channelDebug_,M.sid_,"rpc",M.JSC$19938_backChannelAttemptId_);M.httpHeadersOverwriteParam_===null&&(M.JSC$19938_backChannelRequest_.JSC$19919_extraHeaders_=M.JSC$19938_extraHeaders_);M.JSC$19938_backChannelRequest_.JSC$19919_readyStateChangeThrottleMs_=0;var q=M.JSC$19938_backChannelUri_.clone();_.qT(q,"RID","rpc");_.qT(q,"SID",M.sid_);_.qT(q,"AID",M.JSC$19938_lastArrayId_);_.qT(q,"CI",M.enableStreaming_?"0":"1");!M.enableStreaming_&&M.longPollingTimeout_&&
_.qT(q,"TO",M.longPollingTimeout_);_.qT(q,"TYPE","xmlhttp");YHM(M,q);M.httpHeadersOverwriteParam_&&M.JSC$19938_extraHeaders_&&OkR(q,M.httpHeadersOverwriteParam_,M.JSC$19938_extraHeaders_);M.backChannelRequestTimeoutMs_&&M.JSC$19938_backChannelRequest_.setTimeout(M.backChannelRequestTimeoutMs_);var G=M.JSC$19938_backChannelRequest_,K=M.JSC$19938_hostPrefix_;G.JSC$19919_type_=1;G.JSC$19919_baseUri_=_.Nu(q.clone());G.JSC$19919_postData_=null;G.decodeChunks_=!0;gyU(G,K);M.JSC$19938_channelDebug_.debug("New Request created")};
dH.prototype.JSC$19940_onBackChannelDead_=function(){this.JSC$19938_deadBackChannelTimerId_!=null&&(this.JSC$19938_deadBackChannelTimerId_=null,fIn(this),FZU(this),k3(19))};
var RJ8=function(M){M.JSC$19938_deadBackChannelTimerId_!=null&&(_.Kj.clearTimeout(M.JSC$19938_deadBackChannelTimerId_),M.JSC$19938_deadBackChannelTimerId_=null)},m5I=function(M,q){M.JSC$19938_channelDebug_.debug("Request complete");
var G=null;if(M.JSC$19938_backChannelRequest_==q){RJ8(M);r7v(M);M.JSC$19938_backChannelRequest_=null;var K=2}else if(Vp8(M.forwardChannelRequestPool_,q))G=q.JSC$19919_pendingMessages_,qHU(M.forwardChannelRequestPool_,q),K=1;else return;if(M.state_!=0)if(q.JSC$19919_successful_)K==1?(OVP(q.JSC$19919_postData_?q.JSC$19919_postData_.length:0,Date.now()-q.JSC$19919_requestStartTime_,M.JSC$19938_forwardChannelRetryCount_),yv5(M)):tuU(M);else{var n=q.JSC$19919_lastStatusCode_,E=q.getLastError();if(E==3||
E==0&&n>0)M.JSC$19938_channelDebug_.debug("Not retrying due to error type"),n>200&&(M.errorResponseStatusCode_=q.JSC$19919_lastStatusCode_);else{M.JSC$19938_channelDebug_.debug(function(){return"Maybe retrying, last error: "+PWU(E,M.errorResponseStatusCode_)});
if(K==1&&dtU(M,q)||K==2&&FZU(M))return;M.JSC$19938_channelDebug_.debug("Exceeded max number of retries")}G&&G.length>0&&KQg(M.forwardChannelRequestPool_,G);M.JSC$19938_channelDebug_.debug("Error: HTTP request failed");switch(E){case 1:Wi(M,5);break;case 4:Wi(M,10);break;case 3:Wi(M,6);break;default:Wi(M,2)}}},AvI=function(M,q){var G=M.JSC$19938_baseRetryDelayMs_+Math.floor(Math.random()*M.JSC$19938_retryDelaySeedMs_);
M.isActive()||(M.JSC$19938_channelDebug_.debug("Inactive channel"),G*=2);return G*q};
dH.prototype.onInput_=function(M,q){for(var G=0;G<M.length;G++){var K=M[G],n=K[0];if(n<=this.JSC$19938_lastArrayId_)this.JSC$19938_channelDebug_.warning("Ignoring out-of-order or duplicate message with arrayId: "+n+", lastArrayId: "+this.JSC$19938_lastArrayId_);else if(n>this.JSC$19938_lastArrayId_+1&&this.JSC$19938_lastArrayId_>-1&&this.JSC$19938_channelDebug_.warning("Received non-consecutive message with arrayId: "+n+", lastArrayId: "+this.JSC$19938_lastArrayId_),this.JSC$19938_lastArrayId_=n,
K=K[1],this.state_==2)if(K[0]=="c"){this.sid_=K[1];this.JSC$19938_hostPrefix_=K[2];n=K[3];n!=null&&(this.JSC$19940_channelVersion_=n,this.JSC$19938_channelDebug_.info("VER="+this.JSC$19940_channelVersion_));n=K[4];n!=null&&(this.serverVersion_=n,this.JSC$19938_channelDebug_.info("SVER="+this.serverVersion_));K=K[5];K!=null&&typeof K==="number"&&K>0&&(this.backChannelRequestTimeoutMs_=K*=1.5,this.JSC$19938_channelDebug_.info("backChannelRequestTimeoutMs_="+K));if(K=q.JSC$19919_xmlHttp_){var E=yh(K,
"X-Client-Wire-Protocol");E&&(n=this.forwardChannelRequestPool_,!n.requestPool_&&(_.Ys(E,"spdy")||_.Ys(E,"quic")||_.Ys(E,"h2"))&&(n.JSC$19929_maxSize_=n.maxPoolSizeConfigured_,n.requestPool_=new Set,n.JSC$19929_request_&&(Mu8(n,n.JSC$19929_request_),n.JSC$19929_request_=null)));this.httpSessionIdParam_&&((K=yh(K,"X-HTTP-Session-Id"))?(this.httpSessionId_=K,_.qT(this.JSC$19938_forwardChannelUri_,this.httpSessionIdParam_,K)):this.JSC$19938_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=
3;this.handler_&&this.handler_.JSC$19944_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-q.JSC$19919_requestStartTime_,this.JSC$19938_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));K=q;n=pf8(this,this.JSC$19938_supportsCrossDomainXhrs_?this.JSC$19938_hostPrefix_:null,this.JSC$19938_path_);this.JSC$19938_channelDebug_.debug("GetBackChannelUri: "+n);this.JSC$19938_backChannelUri_=n;K.initialResponseDecoded_?(this.JSC$19938_channelDebug_.debug("Upgrade the handshake request to a backchannel."),
qHU(this.forwardChannelRequestPool_,K),n=K,(E=this.backChannelRequestTimeoutMs_)&&n.setTimeout(E),n.JSC$19919_watchDogTimerId_&&(J7M(n),Qqw(n)),this.JSC$19938_backChannelRequest_=K):tuU(this);this.JSC$19938_outgoingMaps_.length>0&&yv5(this)}else K[0]!="stop"&&K[0]!="close"||Wi(this,7);else this.state_==3&&(K[0]=="stop"||K[0]=="close"?K[0]=="stop"?Wi(this,7):this.disconnect():K[0]!="noop"&&this.handler_&&this.handler_.JSC$19944_channelHandleArray(K),this.JSC$19938_backChannelRetryCount_=0)}};
var Wi=function(M,q){M.JSC$19938_channelDebug_.info("Error code "+q);if(q==2){var G=(0,_.Ju)(M.testNetworkCallback_,M),K=M.networkTestUrl_,n=!K;K=new _.Za(K||"//www.google.com/images/cleardot.gif");_.Kj.location&&_.Kj.location.protocol=="http"||_.e8(K,"https");_.Nu(K);n?nvg(K.toString(),G):Ev8(K.toString(),G)}else k3(2);M.onError_(q)};
dH.prototype.testNetworkCallback_=function(M){M?(this.JSC$19938_channelDebug_.info("Successfully pinged google.com"),k3(2)):(this.JSC$19938_channelDebug_.info("Failed to ping google.com"),k3(1))};
dH.prototype.onError_=function(M){this.JSC$19938_channelDebug_.debug("HttpChannel: error - "+M);this.state_=0;this.handler_&&this.handler_.JSC$19944_channelError(M);WQU(this);LQg(this)};
var WQU=function(M){M.state_=0;M.nonAckedMapsAtChannelClose_=[];if(M.handler_){var q=Gzv(M.forwardChannelRequestPool_);if(q.length!=0||M.JSC$19938_outgoingMaps_.length!=0)M.JSC$19938_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+q.length+", outgoing: "+M.JSC$19938_outgoingMaps_.length}),_.r$(M.nonAckedMapsAtChannelClose_,q),_.r$(M.nonAckedMapsAtChannelClose_,M.JSC$19938_outgoingMaps_),M.forwardChannelRequestPool_.JSC$19929_pendingMessages_.length=0,_.Sw(M.JSC$19938_outgoingMaps_),
M.JSC$19938_outgoingMaps_.length=0;
M.handler_.JSC$19944_channelClosed()}},wfg=function(M){if(M.state_==0)return M.nonAckedMapsAtChannelClose_;
var q=[];_.r$(q,Gzv(M.forwardChannelRequestPool_));_.r$(q,M.JSC$19938_outgoingMaps_);return q},pf8=function(M,q,G){var K=_.s9(G);
K.JSC$10036_domain_!=""?(q&&_.$u(K,q+"."+K.JSC$10036_domain_),_.sg(K,K.JSC$10036_port_)):(K=_.Kj.location,K=ErE(K.protocol,q?q+"."+K.hostname:K.hostname,+K.port,G));q=M.httpSessionIdParam_;G=M.httpSessionId_;q&&G&&_.qT(K,q,G);_.qT(K,"VER",M.JSC$19940_channelVersion_);YHM(M,K);return K},IIs=function(M,q,G){if(q&&!M.JSC$19938_supportsCrossDomainXhrs_)throw Error("Tk");
q=M.usesFetchStreams_&&!M.JSC$19938_xmlHttpFactory_?new _.cT(new AQE({streamBinaryChunks:G})):new _.cT(M.JSC$19938_xmlHttpFactory_);q.JSC$9800_withCredentials_=M.JSC$19938_supportsCrossDomainXhrs_;return q};
dH.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var CAs=function(){};
_.N=CAs.prototype;_.N.JSC$19944_channelOpened=function(){};
_.N.JSC$19944_channelHandleArray=function(){};
_.N.JSC$19944_channelError=function(){};
_.N.JSC$19944_channelClosed=function(){};
_.N.isActive=function(){return!0};
_.N.JSC$19944_badMapError=function(){};var ajw=function(){},hN=function(M,q){_.w6.call(this);
this.JSC$19947_channel_=new dH(q);this.JSC$19947_url_=M;this.messageUrlParams_=q&&q.messageUrlParams||null;M=q&&q.messageHeaders||null;q&&q.clientProtocolHeaderRequired&&(M?_.xP.set(M,"X-Client-Protocol","webchannel"):M=_.xP.create("X-Client-Protocol","webchannel"));this.JSC$19947_channel_.JSC$19938_extraHeaders_=M;M=q&&q.initMessageHeaders||null;q&&q.messageContentType&&(M?_.xP.set(M,"X-WebChannel-Content-Type",q.messageContentType):M=_.xP.create("X-WebChannel-Content-Type",q.messageContentType));
q&&q.clientProfile&&(M?_.xP.set(M,"X-WebChannel-Client-Profile",q.clientProfile):M=_.xP.create("X-WebChannel-Client-Profile",q.clientProfile));this.JSC$19947_channel_.initHeaders_=M;(M=q&&q.httpHeadersOverwriteParam)&&!_.Lj(M)&&(this.JSC$19947_channel_.httpHeadersOverwriteParam_=M);this.supportsCrossDomainXhr_=q&&q.supportsCrossDomainXhr||!1;this.sendRawJson_=q&&q.sendRawJson||!1;(q=q&&q.httpSessionIdParam)&&!_.Lj(q)&&(this.JSC$19947_channel_.httpSessionIdParam_=q,_.xP.containsKey(this.messageUrlParams_,
q)&&_.xP.remove(this.messageUrlParams_,q));this.channelHandler_=new vi(this)};
_.TO(hN,_.w6);hN.prototype.open=function(){this.JSC$19947_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$19947_channel_.JSC$19938_supportsCrossDomainXhrs_=!0);this.JSC$19947_channel_.connect(this.JSC$19947_url_,this.messageUrlParams_||void 0)};
hN.prototype.close=function(){this.JSC$19947_channel_.disconnect()};
hN.prototype.send=function(M){var q=this.JSC$19947_channel_;if(typeof M==="string"){var G={};G.__data__=M;M=G}else this.sendRawJson_&&(G={},G.__data__=(0,_.i2)(M),M=G);q.JSC$19938_outgoingMaps_.push(new eJv(q.JSC$19938_nextMapId_++,M));q.state_==3&&yv5(q)};
hN.prototype.disposeInternal=function(){this.JSC$19947_channel_.handler_=null;delete this.channelHandler_;this.JSC$19947_channel_.disconnect();delete this.JSC$19947_channel_;hN.superClass_.disposeInternal.call(this)};
var ovn=function(M){LZs.call(this);M.__headers__&&(this.headers=M.__headers__,this.statusCode=M.__status__,delete M.__headers__,delete M.__status__);var q=M.__sm__;q?this.data=(this.metadataKey=_.xP.getAnyKey(q))?_.xP.get(q,this.metadataKey):q:this.data=M};
_.TO(ovn,LZs);var ljv=function(M){Y_w.call(this);this.status=1;this.errorCode=M};
_.TO(ljv,Y_w);var vi=function(M){this.JSC$19954_channel_=M};
_.TO(vi,CAs);vi.prototype.JSC$19944_channelOpened=function(){this.JSC$19954_channel_.dispatchEvent("w")};
vi.prototype.JSC$19944_channelHandleArray=function(M){this.JSC$19954_channel_.dispatchEvent(new ovn(M))};
vi.prototype.JSC$19944_channelError=function(M){this.JSC$19954_channel_.dispatchEvent(new ljv(M))};
vi.prototype.JSC$19944_channelClosed=function(){this.JSC$19954_channel_.dispatchEvent("x")};
var Xf5=function(M,q){this.transportChannel_=M;this.JSC$19957_channel_=q},PAw=function(M){return wfg(M.JSC$19957_channel_).map(function(q){var G=M.transportChannel_;
q=q.map;"__data__"in q?(q=q.__data__,G=G.sendRawJson_?(0,_.J3d)(q):q):G=q;return G})};
Xf5.prototype.commit=function(M){this.JSC$19957_channel_.forwardChannelFlushedCallback_=M};var tN=function(M){i3I.dispatchEvent(new cvv(i3I,M))},i3I=new _.w6,cvv=function(M,q){_.d6.call(this,"statevent",M);
this.stat=q};
_.l(cvv,_.d6);var OV=function(M,q,G,K,n){this.JSC$19962_channel_=M;this.JSC$19962_channelDebug_=q;this.sid_=G;this.JSC$19962_rid_=K;this.JSC$19962_retryId_=n||1;this.timeout_=45E3;this.JSC$19962_eventHandler_=new _.OU(this);this.pollingTimer_=new _.th;this.pollingTimer_.setInterval(250)};
_.N=OV.prototype;_.N.JSC$19964_extraHeaders_=null;_.N.JSC$19964_successful_=!1;_.N.JSC$19964_watchDogTimerId_=null;_.N.JSC$19964_watchDogTimeoutTime_=null;_.N.JSC$19964_requestStartTime_=null;_.N.JSC$19964_type_=null;_.N.JSC$19964_baseUri_=null;_.N.JSC$19964_requestUri_=null;_.N.JSC$19964_postData_=null;_.N.JSC$19964_xmlHttp_=null;_.N.JSC$19964_xmlHttpChunkStart_=0;_.N.trident_=null;_.N.JSC$19964_verb_=null;_.N.JSC$19964_lastError_=null;_.N.JSC$19964_lastStatusCode_=-1;_.N.sendClose_=!0;
_.N.JSC$19964_cancelled_=!1;_.N.JSC$19964_readyStateChangeThrottleMs_=0;_.N.JSC$19964_readyStateChangeThrottle_=null;var gvL=function(M,q){switch(M){case 0:return"Non-200 return code ("+q+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Bgw={},QGI={};
OV.prototype.setTimeout=function(M){this.timeout_=M};
var Dt8=function(M,q,G){M.JSC$19964_type_=1;M.JSC$19964_baseUri_=_.Nu(q.clone());M.JSC$19964_postData_=G;M.decodeChunks_=!0;IjE(M,null)},u$w=function(M,q,G,K,n){M.JSC$19964_type_=1;
M.JSC$19964_baseUri_=_.Nu(q.clone());M.JSC$19964_postData_=null;M.decodeChunks_=G;n&&(M.sendClose_=!1);IjE(M,K)},IjE=function(M,q){M.JSC$19964_requestStartTime_=Date.now();
JvI(M);M.JSC$19964_requestUri_=M.JSC$19964_baseUri_.clone();YX(M.JSC$19964_requestUri_,"t",M.JSC$19962_retryId_);M.JSC$19964_xmlHttpChunkStart_=0;M.JSC$19964_xmlHttp_=M.JSC$19962_channel_.JSC$19971_createXhrIo(M.JSC$19962_channel_.JSC$19971_shouldUseSecondaryDomains()?q:null);M.JSC$19964_readyStateChangeThrottleMs_>0&&(M.JSC$19964_readyStateChangeThrottle_=new _.qA((0,_.Ju)(M.JSC$19964_xmlHttpHandler_,M,M.JSC$19964_xmlHttp_),M.JSC$19964_readyStateChangeThrottleMs_));M.JSC$19962_eventHandler_.listen(M.JSC$19964_xmlHttp_,
"readystatechange",M.JSC$19964_readyStateChangeHandler_);q=M.JSC$19964_extraHeaders_?_.xP.clone(M.JSC$19964_extraHeaders_):{};M.JSC$19964_postData_?(M.JSC$19964_verb_="POST",q["Content-Type"]="application/x-www-form-urlencoded",M.JSC$19964_xmlHttp_.send(M.JSC$19964_requestUri_,M.JSC$19964_verb_,M.JSC$19964_postData_,q)):(M.JSC$19964_verb_="GET",M.sendClose_&&!_.Hh&&(q.Connection="close"),M.JSC$19964_xmlHttp_.send(M.JSC$19964_requestUri_,M.JSC$19964_verb_,null,q));M.JSC$19962_channel_.notifyServerReachabilityEvent(1);
q=M.JSC$19962_channelDebug_;var G=M.JSC$19964_postData_;if(G){var K="";G=G.split("&");for(var n=0;n<G.length;n++){var E=G[n].split("=");if(E.length>1){var p=E[0];E=E[1];var y=p.split("_");K=y.length>=2&&y[1]=="type"?K+(p+"="+E+"&"):K+(p+"=redacted&")}}}else K=null;q.info("XMLHTTP REQ ("+M.JSC$19962_rid_+") [attempt "+M.JSC$19962_retryId_+"]: "+M.JSC$19964_verb_+"\n"+M.JSC$19964_requestUri_+"\n"+K)};
OV.prototype.JSC$19964_readyStateChangeHandler_=function(M){M=M.target;var q=this.JSC$19964_readyStateChangeThrottle_;q&&_.g6(M)==3?(this.JSC$19962_channelDebug_.debug("Throttling readystatechange."),q.fire()):this.JSC$19964_xmlHttpHandler_(M)};
OV.prototype.JSC$19964_xmlHttpHandler_=function(M){try{if(M==this.JSC$19964_xmlHttp_)a:{var q=_.g6(this.JSC$19964_xmlHttp_),G=this.JSC$19964_xmlHttp_.JSC$9800_lastErrorCode_,K=this.JSC$19964_xmlHttp_.getStatus();if(_.Hh&&!_.eh("420+")){if(q<4)break a}else if(q<3||q==3&&!this.JSC$19964_xmlHttp_.getResponseText())break a;this.JSC$19964_cancelled_||q!=4||G==7||(G==8||K<=0?this.JSC$19962_channel_.notifyServerReachabilityEvent(3):this.JSC$19962_channel_.notifyServerReachabilityEvent(2));Z3E(this);var n=
this.JSC$19964_xmlHttp_.getStatus();this.JSC$19964_lastStatusCode_=n;var E=this.JSC$19964_xmlHttp_.getResponseText();E||this.JSC$19962_channelDebug_.debug("No response text for uri "+this.JSC$19964_requestUri_+" status "+n);this.JSC$19964_successful_=n==200;this.JSC$19962_channelDebug_.info("XMLHTTP RESP ("+this.JSC$19962_rid_+") [ attempt "+this.JSC$19962_retryId_+"]: "+this.JSC$19964_verb_+"\n"+this.JSC$19964_requestUri_+"\n"+q+" "+n);if(this.JSC$19964_successful_){q==4&&b3w(this);if(this.decodeChunks_){for(M=
!0;!this.JSC$19964_cancelled_&&this.JSC$19964_xmlHttpChunkStart_<E.length;){var p=Utw(this,E);if(p==QGI){q==4&&(this.JSC$19964_lastError_=4,tN(15),M=!1);xtw(this.JSC$19962_channelDebug_,this.JSC$19962_rid_,null,"[Incomplete Response]");break}else if(p==Bgw){this.JSC$19964_lastError_=4;tN(16);xtw(this.JSC$19962_channelDebug_,this.JSC$19962_rid_,E,"[Invalid Chunk]");M=!1;break}else xtw(this.JSC$19962_channelDebug_,this.JSC$19962_rid_,p,null),zCL(this,p)}q==4&&E.length==0&&(this.JSC$19964_lastError_=
1,tN(17),M=!1);this.JSC$19964_successful_=this.JSC$19964_successful_&&M;M||(xtw(this.JSC$19962_channelDebug_,this.JSC$19962_rid_,E,"[Invalid Chunked Response]"),b3w(this),mtP(this))}else xtw(this.JSC$19962_channelDebug_,this.JSC$19962_rid_,E,null),zCL(this,E);this.JSC$19964_successful_&&!this.JSC$19964_cancelled_&&(q==4?this.JSC$19962_channel_.JSC$19971_onRequestComplete(this):(this.JSC$19964_successful_=!1,JvI(this)))}else n==400&&E.indexOf("Unknown SID")>0?(this.JSC$19964_lastError_=3,tN(13),this.JSC$19962_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$19962_rid_+")")):(this.JSC$19964_lastError_=0,tN(14),this.JSC$19962_channelDebug_.warning("XMLHTTP Bad status "+n+" ("+this.JSC$19962_rid_+")")),b3w(this),mtP(this)}else this.JSC$19962_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(y){this.JSC$19962_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var Utw=function(M,q){var G=M.JSC$19964_xmlHttpChunkStart_,K=q.indexOf("\n",G);if(K==-1)return QGI;G=Number(q.substring(G,K));if(isNaN(G))return Bgw;K+=1;if(K+G>q.length)return QGI;q=q.slice(K,K+G);M.JSC$19964_xmlHttpChunkStart_=K+G;return q};
OV.prototype.cancel=function(){this.JSC$19964_cancelled_=!0;b3w(this)};
var JvI=function(M){M.JSC$19964_watchDogTimeoutTime_=Date.now()+M.timeout_;SHM(M,M.timeout_)},SHM=function(M,q){if(M.JSC$19964_watchDogTimerId_!=null)throw Error("Sk");
M.JSC$19964_watchDogTimerId_=aP((0,_.Ju)(M.JSC$19964_onWatchDogTimeout_,M),q)},Z3E=function(M){M.JSC$19964_watchDogTimerId_&&(_.Kj.clearTimeout(M.JSC$19964_watchDogTimerId_),M.JSC$19964_watchDogTimerId_=null)};
OV.prototype.JSC$19964_onWatchDogTimeout_=function(){this.JSC$19964_watchDogTimerId_=null;var M=Date.now();M-this.JSC$19964_watchDogTimeoutTime_>=0?(this.JSC$19962_channelDebug_.info("TIMEOUT: "+this.JSC$19964_requestUri_),this.JSC$19964_type_!=2&&this.JSC$19962_channel_.notifyServerReachabilityEvent(3),b3w(this),this.JSC$19964_lastError_=2,tN(18),mtP(this)):(this.JSC$19962_channelDebug_.warning("WatchDog timer called too early"),SHM(this,this.JSC$19964_watchDogTimeoutTime_-M))};
var mtP=function(M){M.JSC$19962_channel_.JSC$19971_isClosed()||M.JSC$19964_cancelled_||M.JSC$19962_channel_.JSC$19971_onRequestComplete(M)},b3w=function(M){Z3E(M);
_.ka(M.JSC$19964_readyStateChangeThrottle_);M.JSC$19964_readyStateChangeThrottle_=null;M.pollingTimer_.stop();M.JSC$19962_eventHandler_.removeAll();if(M.JSC$19964_xmlHttp_){var q=M.JSC$19964_xmlHttp_;M.JSC$19964_xmlHttp_=null;q.abort();q.dispose()}M.trident_&&(M.trident_=null)};
OV.prototype.getLastError=function(){return this.JSC$19964_lastError_};
var zCL=function(M,q){try{M.JSC$19962_channel_.JSC$19971_onRequestData(M,q),M.JSC$19962_channel_.notifyServerReachabilityEvent(4)}catch(G){}};var xtw=function(M,q,G,K){var n=M.info;a:if(G&&G!="y2f%"){try{var E=JSON.parse(G);if(E)for(var p=0;p<E.length;p++)if(Array.isArray(E[p])){var y=E[p];if(!(y.length<2)){var Y=y[1];if(Array.isArray(Y)&&!(Y.length<1)){var A=Y[0];if(A!="noop"&&A!="stop")for(var v=1;v<Y.length;v++)Y[v]=""}}}var h=(0,_.i2)(E);break a}catch(t){M.debug("Exception parsing expected JS array - probably was not JS");h=G;break a}h=void 0}else h=G;n.call(M,"XMLHTTP TEXT ("+q+"): "+h+(K?" "+K:""))};
oP.prototype.debug=function(M){this.info(M)};
oP.prototype.info=function(){};
oP.prototype.warning=function(){};var TgE=function(M,q){this.JSC$19969_channel_=M;this.JSC$19969_channelDebug_=q;this.JSC$19969_parser_=new y7E};
_.N=TgE.prototype;_.N.JSC$19971_extraHeaders_=null;_.N.JSC$19971_request_=null;_.N.receivedIntermediateResult_=!1;_.N.JSC$19971_path_=null;_.N.state_=null;_.N.JSC$19971_lastStatusCode_=-1;_.N.JSC$19971_hostPrefix_=null;_.N.blockedPrefix_=null;
_.N.connect=function(M){this.JSC$19971_path_=M;M=rvv(this.JSC$19969_channel_,this.JSC$19971_path_);tN(3);Date.now();var q=this.JSC$19969_channel_.firstTestResults_;q!=null?(this.JSC$19971_hostPrefix_=q[0],(this.blockedPrefix_=q[1])?(this.state_=1,jGI(this)):(this.state_=2,Vus(this))):(YX(M,"MODE","init"),this.JSC$19971_request_=new OV(this,this.JSC$19969_channelDebug_),this.JSC$19971_request_.JSC$19964_extraHeaders_=this.JSC$19971_extraHeaders_,u$w(this.JSC$19971_request_,M,!1,null,!0),this.state_=
0)};
var jGI=function(M){var q=RCR(M.JSC$19969_channel_,M.blockedPrefix_,"/mail/images/cleardot.gif");_.Nu(q);zVM(q.toString(),5E3,(0,_.Ju)(M.checkBlockedCallback_,M),3,2E3);M.notifyServerReachabilityEvent(1)};
TgE.prototype.checkBlockedCallback_=function(M){if(M)this.state_=2,Vus(this);else{tN(4);var q=this.JSC$19969_channel_;q.JSC$19972_channelDebug_.debug("Test Connection Blocked");q.JSC$19976_lastStatusCode_=q.connectionTest_.JSC$19971_lastStatusCode_;wH(q,9)}M&&this.notifyServerReachabilityEvent(2)};
var Vus=function(M){M.JSC$19969_channelDebug_.debug("TestConnection: starting stage 2");var q=M.JSC$19969_channel_.secondTestResults_;q!=null?(M.JSC$19969_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+q?"Buffered":"Unbuffered"),tN(5),q?(tN(11),fjv(M.JSC$19969_channel_,M,!1)):(tN(12),fjv(M.JSC$19969_channel_,M,!0))):(M.JSC$19971_request_=new OV(M,M.JSC$19969_channelDebug_),M.JSC$19971_request_.JSC$19964_extraHeaders_=M.JSC$19971_extraHeaders_,q=FQs(M.JSC$19969_channel_,
M.JSC$19971_hostPrefix_,M.JSC$19971_path_),tN(5),YX(q,"TYPE","xmlhttp"),u$w(M.JSC$19971_request_,q,!1,M.JSC$19971_hostPrefix_,!1))};
_.N=TgE.prototype;_.N.JSC$19971_createXhrIo=function(M){return this.JSC$19969_channel_.JSC$19971_createXhrIo(M)};
_.N.abort=function(){this.JSC$19971_request_&&(this.JSC$19971_request_.cancel(),this.JSC$19971_request_=null);this.JSC$19971_lastStatusCode_=-1};
_.N.JSC$19971_isClosed=function(){return!1};
_.N.JSC$19971_onRequestData=function(M,q){this.JSC$19971_lastStatusCode_=M.JSC$19964_lastStatusCode_;if(this.state_==0)if(this.JSC$19969_channelDebug_.debug("TestConnection: Got data for stage 1"),q){try{var G=this.JSC$19969_parser_.parse(q)}catch(K){H38(this.JSC$19969_channel_,this);return}this.JSC$19971_hostPrefix_=G[0];this.blockedPrefix_=G[1]}else this.JSC$19969_channelDebug_.debug("TestConnection: Null responseText"),H38(this.JSC$19969_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(tN(7),Date.now()):q=="11111"?(tN(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$19971_lastStatusCode_=200,this.JSC$19971_request_.cancel(),this.JSC$19969_channelDebug_.debug("Test connection succeeded; using streaming connection"),tN(12),fjv(this.JSC$19969_channel_,this,!0)):(tN(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.N.JSC$19971_onRequestComplete=function(){this.JSC$19971_lastStatusCode_=this.JSC$19971_request_.JSC$19964_lastStatusCode_;this.JSC$19971_request_.JSC$19964_successful_?this.state_==0?(this.JSC$19969_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,jGI(this)):(this.state_=2,Vus(this))):this.state_==2&&(this.JSC$19969_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$19969_channelDebug_.debug("Test connection succeeded; using streaming connection"),
tN(12),fjv(this.JSC$19969_channel_,this,!0)):(this.JSC$19969_channelDebug_.debug("Test connection failed; not using streaming"),tN(11),fjv(this.JSC$19969_channel_,this,!1))):(this.JSC$19969_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?tN(9):this.state_==2&&tN(10),H38(this.JSC$19969_channel_,this,this.JSC$19971_request_.getLastError()))};
_.N.JSC$19971_shouldUseSecondaryDomains=function(){return this.JSC$19969_channel_.JSC$19971_shouldUseSecondaryDomains()};
_.N.isActive=function(){return this.JSC$19969_channel_.isActive()};
_.N.notifyServerReachabilityEvent=function(M){this.JSC$19969_channel_.notifyServerReachabilityEvent(M)};var Ct=function(M,q,G){this.state_=1;this.JSC$19972_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$19972_channelDebug_=new oP;this.JSC$19972_parser_=new y7E;this.firstTestResults_=M||null;this.secondTestResults_=q!=null?q:null;this.asyncTest_=G||!1},eCR=function(M,q){this.JSC$19974_mapId=M;
this.map=q;this.context=null};
_.N=Ct.prototype;_.N.JSC$19976_extraHeaders_=null;_.N.JSC$19976_extraParams_=null;_.N.forwardChannelRequest_=null;_.N.JSC$19976_backChannelRequest_=null;_.N.JSC$19976_path_=null;_.N.JSC$19976_forwardChannelUri_=null;_.N.JSC$19976_backChannelUri_=null;_.N.JSC$19976_hostPrefix_=null;_.N.JSC$19976_nextRid_=0;_.N.JSC$19976_nextMapId_=0;_.N.handler_=null;_.N.JSC$19976_forwardChannelTimerId_=null;_.N.JSC$19976_backChannelTimerId_=null;_.N.JSC$19976_deadBackChannelTimerId_=null;_.N.connectionTest_=null;
_.N.useChunked_=null;_.N.JSC$19976_lastArrayId_=-1;_.N.JSC$19976_lastPostResponseArrayId_=-1;_.N.JSC$19976_lastStatusCode_=-1;_.N.JSC$19976_forwardChannelRetryCount_=0;_.N.JSC$19976_backChannelRetryCount_=0;_.N.JSC$19976_channelVersion_=8;var $tw={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},sBP=function(M,q,G,K){_.d6.call(this,"timingevent",M);this.size=q;this.rtt=G;this.retries=K};
_.TO(sBP,_.d6);var MrM=function(M){_.d6.call(this,"serverreachability",M)};
_.TO(MrM,_.d6);Ct.prototype.connect=function(M,q,G,K,n){this.JSC$19972_channelDebug_.debug("connect()");tN(0);this.JSC$19976_path_=q;this.JSC$19976_extraParams_=G||{};K&&n!==void 0&&(this.JSC$19976_extraParams_.OSID=K,this.JSC$19976_extraParams_.OAID=n);this.asyncTest_?(aP((0,_.Ju)(this.connectTest_,this,M),100),qOM(this)):this.connectTest_(M)};
Ct.prototype.disconnect=function(){this.JSC$19972_channelDebug_.debug("disconnect()");GUU(this);if(this.state_==3){var M=this.JSC$19976_nextRid_++,q=this.JSC$19976_forwardChannelUri_.clone();_.qT(q,"SID",this.sid_);_.qT(q,"RID",M);_.qT(q,"TYPE","terminate");Krs(this,q);M=new OV(this,this.JSC$19972_channelDebug_,this.sid_,M);M.JSC$19964_type_=2;M.JSC$19964_baseUri_=_.Nu(q.clone());(new Image).src=M.JSC$19964_baseUri_.toString();M.JSC$19964_requestStartTime_=Date.now();JvI(M)}nSw(this)};
Ct.prototype.connectTest_=function(M){this.JSC$19972_channelDebug_.debug("connectTest_()");this.connectionTest_=new TgE(this,this.JSC$19972_channelDebug_);this.connectionTest_.JSC$19971_extraHeaders_=this.JSC$19976_extraHeaders_;this.connectionTest_.JSC$19969_parser_=this.JSC$19972_parser_;this.connectionTest_.connect(M)};
var qOM=function(M){M.JSC$19972_channelDebug_.debug("connectChannel_()");M.JSC$19976_ensureInState_(1,0);M.JSC$19976_forwardChannelUri_=rvv(M,M.JSC$19976_path_);ESI(M)},GUU=function(M){M.connectionTest_&&(M.connectionTest_.abort(),M.connectionTest_=null);
M.JSC$19976_backChannelRequest_&&(M.JSC$19976_backChannelRequest_.cancel(),M.JSC$19976_backChannelRequest_=null);M.JSC$19976_backChannelTimerId_&&(_.Kj.clearTimeout(M.JSC$19976_backChannelTimerId_),M.JSC$19976_backChannelTimerId_=null);NJE(M);M.forwardChannelRequest_&&(M.forwardChannelRequest_.cancel(),M.forwardChannelRequest_=null);M.JSC$19976_forwardChannelTimerId_&&(_.Kj.clearTimeout(M.JSC$19976_forwardChannelTimerId_),M.JSC$19976_forwardChannelTimerId_=null)},kUE=function(M,q){if(M.state_==0)throw Error("Vk");
M.JSC$19972_outgoingMaps_.length==1E3&&M.JSC$19972_parser_.stringify(q);M.JSC$19972_outgoingMaps_.push(new eCR(M.JSC$19976_nextMapId_++,q));M.state_!=2&&M.state_!=3||ESI(M)};
Ct.prototype.JSC$19971_isClosed=function(){return this.state_==0};
Ct.prototype.getState=function(){return this.state_};
var ESI=function(M){M.forwardChannelRequest_||M.JSC$19976_forwardChannelTimerId_||(M.JSC$19976_forwardChannelTimerId_=aP((0,_.Ju)(M.JSC$19976_onStartForwardChannelTimer_,M),0),M.JSC$19976_forwardChannelRetryCount_=0)};
Ct.prototype.JSC$19976_onStartForwardChannelTimer_=function(M){this.JSC$19976_forwardChannelTimerId_=null;pJs(this,M)};
var pJs=function(M,q){M.JSC$19972_channelDebug_.debug("startForwardChannel_");if(M.state_==1){if(!q){M.JSC$19972_channelDebug_.debug("open_()");M.JSC$19976_nextRid_=Math.floor(Math.random()*1E5);q=M.JSC$19976_nextRid_++;var G=new OV(M,M.JSC$19972_channelDebug_,"",q);G.JSC$19964_extraHeaders_=M.JSC$19976_extraHeaders_;var K=yVn(M),n=M.JSC$19976_forwardChannelUri_.clone();_.qT(n,"RID",q);_.qT(n,"CVER","1");Krs(M,n);Dt8(G,n,K);M.forwardChannelRequest_=G;M.state_=2}}else M.state_==3&&(q?LrU(M,q):M.JSC$19972_outgoingMaps_.length==
0?M.JSC$19972_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):M.forwardChannelRequest_||(LrU(M),M.JSC$19972_channelDebug_.debug("startForwardChannel_ finished, sent request")))},LrU=function(M,q){if(q)if(M.JSC$19976_channelVersion_>6){M.JSC$19972_outgoingMaps_=M.pendingMaps_.concat(M.JSC$19972_outgoingMaps_);
M.pendingMaps_.length=0;var G=M.JSC$19976_nextRid_-1;q=yVn(M)}else G=q.JSC$19962_rid_,q=q.JSC$19964_postData_;else G=M.JSC$19976_nextRid_++,q=yVn(M);var K=M.JSC$19976_forwardChannelUri_.clone();_.qT(K,"SID",M.sid_);_.qT(K,"RID",G);_.qT(K,"AID",M.JSC$19976_lastArrayId_);Krs(M,K);G=new OV(M,M.JSC$19972_channelDebug_,M.sid_,G,M.JSC$19976_forwardChannelRetryCount_+1);G.JSC$19964_extraHeaders_=M.JSC$19976_extraHeaders_;G.setTimeout(1E4+Math.round(1E4*Math.random()));M.forwardChannelRequest_=G;Dt8(G,K,
q)},Krs=function(M,q){M.handler_&&(M=M.handler_.JSC$19983_getAdditionalParams())&&_.xP.forEach(M,function(G,K){_.qT(q,K,G)})},yVn=function(M){var q=Math.min(M.JSC$19972_outgoingMaps_.length,1E3),G=["count="+q];
if(M.JSC$19976_channelVersion_>6&&q>0){var K=M.JSC$19972_outgoingMaps_[0].JSC$19974_mapId;G.push("ofs="+K)}else K=0;for(var n={},E=0;E<q;n={mapId$jscomp$3:void 0},E++){n.mapId$jscomp$3=M.JSC$19972_outgoingMaps_[E].JSC$19974_mapId;var p=M.JSC$19972_outgoingMaps_[E].map;n.mapId$jscomp$3=M.JSC$19976_channelVersion_<=6?E:n.mapId$jscomp$3-K;try{_.xP.forEach(p,function(y){return function(Y,A){G.push("req"+y.mapId$jscomp$3+"_"+A+"="+encodeURIComponent(Y))}}(n))}catch(y){G.push("req"+n.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}M.pendingMaps_=M.pendingMaps_.concat(M.JSC$19972_outgoingMaps_.splice(0,q));
return G.join("&")},YOP=function(M){M.JSC$19976_backChannelRequest_||M.JSC$19976_backChannelTimerId_||(M.JSC$19976_backChannelAttemptId_=1,M.JSC$19976_backChannelTimerId_=aP((0,_.Ju)(M.JSC$19976_onStartBackChannelTimer_,M),0),M.JSC$19976_backChannelRetryCount_=0)},AVs=function(M){if(M.JSC$19976_backChannelRequest_||M.JSC$19976_backChannelTimerId_||M.JSC$19976_backChannelRetryCount_>=3)return!1;
M.JSC$19972_channelDebug_.debug("Going to retry GET");M.JSC$19976_backChannelAttemptId_++;M.JSC$19976_backChannelTimerId_=aP((0,_.Ju)(M.JSC$19976_onStartBackChannelTimer_,M),Wrv(M,M.JSC$19976_backChannelRetryCount_));M.JSC$19976_backChannelRetryCount_++;return!0};
Ct.prototype.JSC$19976_onStartBackChannelTimer_=function(){this.JSC$19976_backChannelTimerId_=null;this.JSC$19972_channelDebug_.debug("Creating new HttpRequest");this.JSC$19976_backChannelRequest_=new OV(this,this.JSC$19972_channelDebug_,this.sid_,"rpc",this.JSC$19976_backChannelAttemptId_);this.JSC$19976_backChannelRequest_.JSC$19964_extraHeaders_=this.JSC$19976_extraHeaders_;this.JSC$19976_backChannelRequest_.JSC$19964_readyStateChangeThrottleMs_=0;var M=this.JSC$19976_backChannelUri_.clone();_.qT(M,
"RID","rpc");_.qT(M,"SID",this.sid_);_.qT(M,"CI",this.useChunked_?"0":"1");_.qT(M,"AID",this.JSC$19976_lastArrayId_);Krs(this,M);_.qT(M,"TYPE","xmlhttp");u$w(this.JSC$19976_backChannelRequest_,M,!0,this.JSC$19976_hostPrefix_,!1);this.JSC$19972_channelDebug_.debug("New Request created")};
var fjv=function(M,q,G){M.JSC$19972_channelDebug_.debug("Test Connection Finished");M.useChunked_=M.secondTestResults_==null?G:!M.secondTestResults_;M.JSC$19976_lastStatusCode_=q.JSC$19971_lastStatusCode_;M.asyncTest_||qOM(M)},H38=function(M,q){M.JSC$19972_channelDebug_.debug("Test Connection Failed");
M.JSC$19976_lastStatusCode_=q.JSC$19971_lastStatusCode_;wH(M,2)};
Ct.prototype.JSC$19971_onRequestData=function(M,q){if(this.state_!=0&&(this.JSC$19976_backChannelRequest_==M||this.forwardChannelRequest_==M))if(this.JSC$19976_lastStatusCode_=M.JSC$19964_lastStatusCode_,this.forwardChannelRequest_==M&&this.state_==3)if(this.JSC$19976_channelVersion_>7){try{var G=this.JSC$19972_parser_.parse(q)}catch(K){G=null}if(Array.isArray(G)&&G.length==3)if(q=G,q[0]==0)a:if(this.JSC$19972_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$19976_backChannelTimerId_)this.JSC$19972_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$19976_backChannelRequest_)if(this.JSC$19976_backChannelRequest_.JSC$19964_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$19964_requestStartTime_)NJE(this),this.JSC$19976_backChannelRequest_.cancel(),this.JSC$19976_backChannelRequest_=null;else break a;else this.JSC$19972_channelDebug_.warning("We do not have a BackChannel established");AVs(this);tN(19)}else this.JSC$19976_lastPostResponseArrayId_=q[1],M=this.JSC$19976_lastPostResponseArrayId_-this.JSC$19976_lastArrayId_,0<
M&&(q=q[2],this.JSC$19972_channelDebug_.debug(q+" bytes (in "+M+" arrays) are outstanding on the BackChannel"),q<37500&&this.useChunked_&&this.JSC$19976_backChannelRetryCount_==0&&!this.JSC$19976_deadBackChannelTimerId_&&(this.JSC$19976_deadBackChannelTimerId_=aP((0,_.Ju)(this.JSC$19976_onBackChannelDead_,this),6E3)));else this.JSC$19972_channelDebug_.debug("Bad POST response data returned"),wH(this,11)}else q!="y2f%"&&(this.JSC$19972_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
wH(this,11));else this.JSC$19976_backChannelRequest_==M&&NJE(this),_.Lj(q)||(M=this.JSC$19972_parser_.parse(q),this.onInput_(M))};
Ct.prototype.JSC$19976_onBackChannelDead_=function(){this.JSC$19976_deadBackChannelTimerId_!=null&&(this.JSC$19976_deadBackChannelTimerId_=null,this.JSC$19976_backChannelRequest_.cancel(),this.JSC$19976_backChannelRequest_=null,AVs(this),tN(20))};
var NJE=function(M){M.JSC$19976_deadBackChannelTimerId_!=null&&(_.Kj.clearTimeout(M.JSC$19976_deadBackChannelTimerId_),M.JSC$19976_deadBackChannelTimerId_=null)};
Ct.prototype.JSC$19971_onRequestComplete=function(M){this.JSC$19972_channelDebug_.debug("Request complete");if(this.JSC$19976_backChannelRequest_==M){NJE(this);this.JSC$19976_backChannelRequest_=null;var q=2}else if(this.forwardChannelRequest_==M)this.forwardChannelRequest_=null,q=1;else return;this.JSC$19976_lastStatusCode_=M.JSC$19964_lastStatusCode_;if(this.state_!=0)if(M.JSC$19964_successful_)if(q==1){q=M.JSC$19964_postData_?M.JSC$19964_postData_.length:0;M=Date.now()-M.JSC$19964_requestStartTime_;
var G=i3I;G.dispatchEvent(new sBP(G,q,M,this.JSC$19976_forwardChannelRetryCount_));ESI(this);this.handler_&&this.handler_.JSC$19983_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else YOP(this);else{G=M.getLastError();if(G==3||G==7||G==0&&this.JSC$19976_lastStatusCode_>0)this.JSC$19972_channelDebug_.debug("Not retrying due to error type");else{this.JSC$19972_channelDebug_.debug("Maybe retrying, last error: "+gvL(G,this.JSC$19976_lastStatusCode_));var K;if(K=q==1)this.forwardChannelRequest_||
this.JSC$19976_forwardChannelTimerId_||this.state_==1||this.JSC$19976_forwardChannelRetryCount_>=2?K=!1:(this.JSC$19972_channelDebug_.debug("Going to retry POST"),this.JSC$19976_forwardChannelTimerId_=aP((0,_.Ju)(this.JSC$19976_onStartForwardChannelTimer_,this,M),Wrv(this,this.JSC$19976_forwardChannelRetryCount_)),this.JSC$19976_forwardChannelRetryCount_++,K=!0);if(K||q==2&&AVs(this))return;this.JSC$19972_channelDebug_.debug("Exceeded max number of retries")}this.JSC$19972_channelDebug_.debug("Error: HTTP request failed");
switch(G){case 1:wH(this,5);break;case 4:wH(this,10);break;case 3:wH(this,6);break;case 7:wH(this,12);break;default:wH(this,2)}}};
var Wrv=function(M,q){var G=5E3+Math.floor(Math.random()*1E4);M.isActive()||(M.JSC$19972_channelDebug_.debug("Inactive channel"),G*=2);return G*q};
Ct.prototype.onInput_=function(M){for(var q=0;q<M.length;q++){var G=M[q];this.JSC$19976_lastArrayId_=G[0];G=G[1];this.state_==2?G[0]=="c"?(this.sid_=G[1],this.JSC$19976_hostPrefix_=G[2],G=G[3],G!=null?this.JSC$19976_channelVersion_=G:this.JSC$19976_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$19983_channelOpened(),this.JSC$19976_backChannelUri_=FQs(this,this.JSC$19976_hostPrefix_,this.JSC$19976_path_),YOP(this)):G[0]=="stop"&&wH(this,7):this.state_==3&&(G[0]=="stop"?wH(this,7):
G[0]!="noop"&&this.handler_&&this.handler_.JSC$19983_channelHandleArray(G),this.JSC$19976_backChannelRetryCount_=0)}};
Ct.prototype.JSC$19976_ensureInState_=function(M){if(!_.zF(arguments,this.state_))throw Error("Wk`"+this.state_);};
var wH=function(M,q){M.JSC$19972_channelDebug_.info("Error code "+q);if(q==2||q==9){var G=null;M.handler_&&(G=null);var K=(0,_.Ju)(M.testGoogleComCallback_,M);G||(G=new _.Za("//www.google.com/images/cleardot.gif"),_.Nu(G));xo5(G.toString(),1E4,K)}else tN(2);M.onError_(q)};
Ct.prototype.testGoogleComCallback_=function(M){M?(this.JSC$19972_channelDebug_.info("Successfully pinged google.com"),tN(2)):(this.JSC$19972_channelDebug_.info("Failed to ping google.com"),tN(1),this.onError_(8))};
Ct.prototype.onError_=function(M){this.JSC$19972_channelDebug_.debug("HttpChannel: error - "+M);this.state_=0;this.handler_&&this.handler_.JSC$19983_channelError(M);nSw(this);GUU(this)};
var nSw=function(M){M.state_=0;M.JSC$19976_lastStatusCode_=-1;if(M.handler_)if(M.pendingMaps_.length==0&&M.JSC$19972_outgoingMaps_.length==0)M.handler_.JSC$19983_channelClosed();else{M.JSC$19972_channelDebug_.debug("Number of undelivered maps, pending: "+M.pendingMaps_.length+", outgoing: "+M.JSC$19972_outgoingMaps_.length);var q=_.Sw(M.pendingMaps_),G=_.Sw(M.JSC$19972_outgoingMaps_);M.pendingMaps_.length=0;M.JSC$19972_outgoingMaps_.length=0;M.handler_.JSC$19983_channelClosed(q,G)}},rvv=function(M,
q){q=RCR(M,null,q);
M.JSC$19972_channelDebug_.debug("GetForwardChannelUri: "+q);return q},FQs=function(M,q,G){q=RCR(M,M.JSC$19971_shouldUseSecondaryDomains()?q:null,G);
M.JSC$19972_channelDebug_.debug("GetBackChannelUri: "+q);return q},RCR=function(M,q,G){var K=_.s9(G);
if(K.JSC$10036_domain_!="")q&&_.$u(K,q+"."+K.JSC$10036_domain_),_.sg(K,K.JSC$10036_port_);else{var n=window.location;K=ErE(n.protocol,q?q+"."+n.hostname:n.hostname,+n.port,G)}M.JSC$19976_extraParams_&&_.xP.forEach(M.JSC$19976_extraParams_,function(E,p){_.qT(K,p,E)});
_.qT(K,"VER",M.JSC$19976_channelVersion_);Krs(M,K);return K};
Ct.prototype.JSC$19971_createXhrIo=function(M){if(M)throw Error("Tk");M=new _.cT;M.JSC$9800_withCredentials_=!1;return M};
Ct.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
Ct.prototype.notifyServerReachabilityEvent=function(M){var q=i3I;q.dispatchEvent(new MrM(q,M))};
Ct.prototype.JSC$19971_shouldUseSecondaryDomains=function(){return!1};
new Y6g;var dIP=function(){};
_.N=dIP.prototype;_.N.JSC$19983_channelOpened=function(){};
_.N.JSC$19983_channelHandleArray=function(){};
_.N.JSC$19983_channelSuccess=function(){};
_.N.JSC$19983_channelError=function(){};
_.N.JSC$19983_channelClosed=function(){};
_.N.JSC$19983_getAdditionalParams=function(){return{}};
_.N.isActive=function(){return!0};var vSn=function(M){M.front_.length===0&&(M.front_=M.back_,M.front_.reverse(),M.back_=[])};
_.N=S0L.prototype;_.N.enqueue=function(M){this.back_.push(M)};
_.N.peek=function(){vSn(this);return _.uH(this.front_)};
_.N.getCount=function(){return this.front_.length+this.back_.length};
_.N.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.N.clear=function(){this.front_=[];this.back_=[]};
_.N.contains=function(M){return _.zF(this.front_,M)||_.zF(this.back_,M)};
_.N.remove=function(M){var q=this.front_;var G=Array.prototype.lastIndexOf.call(q,M,q.length-1);G>=0?(_.Qyw(q,G),q=!0):q=!1;return q||_.my(this.back_,M)};
_.N.getValues=function(){for(var M=[],q=this.front_.length-1;q>=0;--q)M.push(this.front_[q]);q=this.back_.length;for(var G=0;G<q;++G)M.push(this.back_[G]);return M};var ab=function(M){this.JSC$19987_map_=new _.Yt;this.size=0;M&&this.addAll(M)},h6P=function(M){var q=typeof M;
return q=="object"&&M||q=="function"?"o"+_.Fi(M):q.charAt(0)+M};
_.N=ab.prototype;_.N.getCount=function(){return this.JSC$19987_map_.size};
_.N.add=function(M){this.JSC$19987_map_.set(h6P(M),M);this.size=this.JSC$19987_map_.size};
_.N.addAll=function(M){M=_.HT(M);for(var q=M.length,G=0;G<q;G++)this.add(M[G]);this.size=this.JSC$19987_map_.size};
_.N.removeAll=function(M){M=_.HT(M);for(var q=M.length,G=0;G<q;G++)this.remove(M[G]);this.size=this.JSC$19987_map_.size};
_.N.delete=function(M){M=this.JSC$19987_map_.remove(h6P(M));this.size=this.JSC$19987_map_.size;return M};
_.N.remove=function(M){return this.delete(M)};
_.N.clear=function(){this.JSC$19987_map_.clear();this.size=0};
_.N.isEmpty=function(){return this.JSC$19987_map_.size===0};
_.N.has=function(M){return this.JSC$19987_map_.containsKey(h6P(M))};
_.N.contains=function(M){return this.JSC$19987_map_.containsKey(h6P(M))};
_.N.getValues=function(){return this.JSC$19987_map_.getValues()};
_.N.values=function(){return this.JSC$19987_map_.values()};
_.N.clone=function(){return new ab(this)};
_.N.equals=function(M){return this.getCount()==KH5(M)&&tr8(this,M)};
var tr8=function(M,q){var G=KH5(q);if(M.getCount()>G)return!1;!(q instanceof ab)&&G>5&&(q=new ab(q));return nr8(M,function(K){var n=q;return n.contains&&typeof n.contains=="function"?n.contains(K):n.containsValue&&typeof n.containsValue=="function"?n.containsValue(K):_.TF(n)||typeof n==="string"?_.zF(n,K):_.xP.containsValue(n,K)})};
ab.prototype.__iterator__=function(){return this.JSC$19987_map_.__iterator__(!1)};
ab.prototype[Symbol.iterator]=function(){return this.values()};var OCw={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(M){return(this._clampValue(M)-this.min)/(this.max-this.min)},
_clampValue:function(M){return Math.min(this.max,Math.max(this.min,this._calcStep(M)))},
_calcStep:function(M){M=parseFloat(M);if(!this.step)return M;M=Math.round((M-this.min)/this.step);return this.step<1?M/(1/this.step)+this.min:M*this.step+this.min},
_validateValue:function(){var M=this._clampValue(this.value);this.value=this.oldValue=isNaN(M)?this.oldValue:M;return this.value!==M},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var wJP;var C3w;_.h_({_template:function(){if(C3w!==void 0)return C3w;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;wJP===void 0&&(wJP=document.createElement("template"));var K=wJP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return C3w=M},
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(){_.yb(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(M){M.keyCode===27&&(M.preventDefault(),this.close())},
_track:function(M){if(!this.persistent&&!this.disableSwipe)switch(M.preventDefault(),M.detail.state){case "start":this._trackStart(M);break;case "track":this._trackMove(M);break;case "end":this._trackEnd(M)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var M=this.$.contentContainer.getBoundingClientRect();this._savedWidth=M.width;this._translateOffset=this.position==="left"?M.left:M.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(M){this._trackDetails&&(this._translateDrawer(M.detail.dx+this._translateOffset),this._trackDetails.push({dx:M.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(M){if(this._trackDetails){var q=M.detail.dx+this._translateOffset,G=this.getWidth();q=this.position==="left"?q>=0||q<=-G:q<=0||q>=G;if(!q){var K=this._trackDetails;this._trackDetails=null;this._flingDrawer(M,K);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}G/=2;M.detail.dx<-G?this.opened=this.position==="right":M.detail.dx>G&&(this.opened=this.position==="left");q?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(M,q){for(var G=Date.now(),K=G-100,n,E=0,p=q.length-1;E<=p;){var y=E+p>>1,Y=q[y];Y.timeStamp>=K?(n=Y,p=y-1):E=y+1}return n?(M.detail.dx-n.dx)/(G-n.timeStamp||1):0},
_flingDrawer:function(M,q){q=this._calculateVelocity(M,q);if(!(Math.abs(q)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;M=M.detail.dx+this._translateOffset;var G=this.getWidth(),K=this.position==="left",n=q>0;n?(q=Math.max(q,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(q=Math.min(q,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");q=this._FLING_INITIAL_SLOPE*(!n&&K?-(M+G):n&&!K?G-M:-M)/q;this._styleTransitionDuration(q);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,q)}},
_styleTransitionDuration:function(M){this.style.transitionDuration=M+"ms";this.$.contentContainer.style.transitionDuration=M+"ms";this.$.scrim.style.transitionDuration=M+"ms"},
_styleTransitionTimingFunction:function(M){this.$.contentContainer.style.transitionTimingFunction=M;this.$.scrim.style.transitionTimingFunction=M},
_translateDrawer:function(M){var q=this.getWidth();this.position==="left"?(M=Math.max(-q,Math.min(M,0)),this.$.scrim.style.opacity=1+M/q):(M=Math.max(0,Math.min(M,q)),this.$.scrim.style.opacity=1-M/q);this.translate3d(M+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var M=this._drawerState;M===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;M!==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=""),M!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var M=_.YD(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"])');M.length>0?(this._firstTabStop=M[0],this._lastTabStop=M[M.length-1]):
this._lastTabStop=this._firstTabStop=null;(M=this.getAttribute("tabindex"))&&parseInt(M,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(M){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||M.keyCode!==9||(M.shiftKey?this._firstTabStop&&_.YD(M).localTarget===this._firstTabStop&&(M.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.YD(M).localTarget===this._lastTabStop&&(M.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(M,q){this.toggleClass("visible",M&&!q,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 a6L;var oSv;_.h_({_template:function(){if(oSv!==void 0)return oSv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;a6L===void 0&&(a6L=document.createElement("template"));var K=a6L;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return oSv=M},
is:"tp-yt-paper-progress",behaviors:[OCw],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(M){this.toggleClass("indeterminate",M,this.$.primaryProgress)},
_transformProgress:function(M,q){M.style.transform=M.style.webkitTransform="scaleX("+q/100+")"},
_mainRatioChanged:function(M){this._transformProgress(this.$.primaryProgress,M)},
_progressChanged:function(M,q,G,K,n){M=this._clampValue(M);q=this._clampValue(q);var E=this._calcRatio(M)*100,p=this._calcRatio(q)*100;this._setSecondaryRatio(E);this._transformProgress(this.$.secondaryProgress,E);this._transformProgress(this.$.primaryProgress,p);this.secondaryProgress=M;n?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",q);this.setAttribute("aria-valuemin",G);this.setAttribute("aria-valuemax",K)},
_disabledChanged:function(M){this.setAttribute("aria-disabled",M?"true":"false")},
_hideSecondaryProgress:function(M){return M===0}});var l68;var XJE;var P3U=function(){};
_.N=P3U.prototype;_.N.registered=function(){};
_.N.addOwnKeyBinding=function(){};
_.N.removeOwnKeyBindings=function(){};
_.N.keyboardEventMatchesKeys=function(){};
_.N._collectKeyBindings=function(){};
_.N._prepKeyBindings=function(){};
_.N._addKeyBinding=function(){};
_.N._resetKeyEventListeners=function(){};
_.N._listenKeyEventListeners=function(){};
_.N._unlistenKeyEventListeners=function(){};
_.N._onKeyBindingEvent=function(){};
_.N._triggerKeyHandler=function(){};
_.N._tapHandler=function(){};
_.N._focusChanged=function(){};
_.N._detectKeyboardFocus=function(){};
_.N._userActivate=function(){};
_.N._upHandler=function(){};
_.N._spaceKeyDownHandler=function(){};
_.N._spaceKeyUpHandler=function(){};
_.N._asyncClick=function(){};
_.N._pressedChanged=function(){};
_.N._ariaActiveAttributeChanged=function(){};
_.N._activeChanged=function(){};
_.N._controlStateChanged=function(){};
_.N._changedButtonState=function(){};
_.N._focusBlurHandler=function(){};
_.N._disabledChanged=function(){};
_.N._changedControlState=function(){};
_.N._buttonStateChanged=function(){};
_.N._downHandler=function(){};
_.N.ensureRipple=function(){};
_.N.getRipple=function(){};
_.N.hasRipple=function(){};
_.N._noinkChanged=function(){};
_.N._calcRatio=function(){};
_.N._clampValue=function(){};
_.N._calcStep=function(){};
_.N._validateValue=function(){};
_.N._update=function(){};
_.N._setImmediateValue=function(){};
_.N._setExpand=function(){};
_.N._setDragging=function(){};
_.N._setTransiting=function(){};
_.N._setMarkers=function(){};
_.N._setPressed=function(){};
_.N._setPointerDown=function(){};
_.N._setReceivedFocusFromKeyboard=function(){};
_.N._setFocused=function(){};
_.N._setRatio=function(){};
P3U=_.h_({_template:function(){if(XJE!==void 0)return XJE;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;l68===void 0&&(l68=document.createElement("template"));var K=l68;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return XJE=M},
is:"tp-yt-paper-slider",behaviors:[_.X9,_.gQ,_.HeJ,OCw],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&&_.Vw(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(M,q,G){this.setAttribute("aria-valuemin",q);this.setAttribute("aria-valuemax",G);this.setAttribute("aria-valuenow",M);this._positionKnob(this._calcRatio(M)*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(M){this._setImmediateValue(this._calcStep(this._calcKnobPosition(M)));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(M){return(this.max-this.min)*M/100+this.min},
_onTrack:function(M){M.stopPropagation();switch(M.detail.state){case "start":this._trackStart(M);break;case "track":this._trackX(M);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(M){this.dragging||this._trackStart(M);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,M.detail.dx*(this._isRTL?-1:1)));M=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(M);M=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(M+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var M=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;M.transform=M.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(M){this._expandKnob();M.preventDefault();this.focus()},
_bartrack:function(M){this._allowBarEvent(M)&&this._onTrack(M)},
_barclick:function(M){this._w=this.$.sliderBar.offsetWidth;var q=this.$.sliderBar.getBoundingClientRect();q=(M.detail.x-q.left)/this._w*100;this._isRTL&&(q=100-q);var G=this.ratio;this._setTransiting(!0);this._positionKnob(q);G===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
M.preventDefault();this.focus()},
_bardown:function(M){this._allowBarEvent(M)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(M))},
_knobTransitionEnd:function(M){M.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(M,q,G,K){K||this._setMarkers([]);q=Math.round((G-q)/this.step);q>M&&(q=M);if(q<0||!isFinite(q))q=0;this._setMarkers(Array(q))},
_mergeClasses:function(M){return Object.keys(M).filter(function(q){return M[q]}).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(M){return!this.ignoreBarTouch||M.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(M){this._isRTL?this._incrementKey(M):this._decrementKey(M)},
_rightKey:function(M){this._isRTL?this._decrementKey(M):this._incrementKey(M)},
_incrementKey:function(M){this.disabled||(M.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),M.preventDefault())},
_decrementKey:function(M){this.disabled||(M.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),M.preventDefault())},
_changeValue:function(M){this.value=M.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(M){M.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.FEv._createRipple.call(this)},
_focusedChanged:function(M){M&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=M?"":"none",this._ripple.holdDown=M)}});var iCw;var tLP;var ob=null,O0E=function(){};
_.N=O0E.prototype;_.N.fit=function(){};
_.N._discoverInfo=function(){};
_.N.resetFit=function(){};
_.N.refit=function(){};
_.N.position=function(){};
_.N.constrain=function(){};
_.N._sizeDimension=function(){};
_.N.__sizeDimension=function(){};
_.N.center=function(){};
_.N.__getNormalizedRect=function(){};
_.N.__getOffscreenArea=function(){};
_.N.__getPosition=function(){};
_.N.notifyResize=function(){};
_.N.assignParentResizable=function(){};
_.N.stopResizeNotificationsFor=function(){};
_.N._subscribeIronResize=function(){};
_.N._unsubscribeIronResize=function(){};
_.N.resizerShouldNotify=function(){};
_.N._onDescendantIronResize=function(){};
_.N._fireResize=function(){};
_.N._onIronRequestResizeNotifications=function(){};
_.N._parentResizableChanged=function(){};
_.N._notifyDescendant=function(){};
_.N._requestResizeNotifications=function(){};
_.N._findParent=function(){};
_.N.toggle=function(){};
_.N.open=function(){};
_.N.close=function(){};
_.N.cancel=function(){};
_.N.invalidateTabbables=function(){};
_.N._ensureSetup=function(){};
_.N._canceledChanged=function(){};
_.N._withBackdropChanged=function(){};
_.N._prepareRenderOpened=function(){};
_.N._finishRenderOpened=function(){};
_.N._finishRenderClosed=function(){};
_.N._preparePositioning=function(){};
_.N._finishPositioning=function(){};
_.N._applyFocus=function(){};
_.N._onCaptureClick=function(){};
_.N._onCaptureFocus=function(){};
_.N._onCaptureEsc=function(){};
_.N._onCaptureTab=function(){};
_.N._onIronResize=function(){};
_.N._onNodesChange=function(){};
_.N.__ensureFirstLastFocusables=function(){};
_.N.__openedChanged=function(){};
_.N.__deraf=function(){};
_.N.__updateScrollObservers=function(){};
_.N.__addScrollListeners=function(){};
_.N.__removeScrollListeners=function(){};
_.N.__isValidScrollAction=function(){};
_.N.__onCaptureScroll=function(){};
_.N.__saveScrollPosition=function(){};
_.N.__restoreScrollPosition=function(){};
_.N._setCanceled=function(){};
O0E=_.h_({_template:function(){if(tLP!==void 0)return tLP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;iCw===void 0&&(iCw=document.createElement("template"));var K=iCw;G.call(q,K.content.cloneNode(!0),M.content.firstChild);return tLP=M},
is:"tp-yt-paper-toast",behaviors:[_.Hn],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(){_.XX._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.jv.requestAvailability()},
show:function(M){typeof M=="string"&&(M={text:M});for(var q in M)q.indexOf("_")===0?_.XX._warn('The property "'+q+'" is private and was not set.'):q in this?this[q]=M[q]:_.XX._warn('The property "'+q+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(M){M&&M.target===this&&M.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(ob&&ob!==this&&ob.close(),ob=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):ob===this&&(ob=null);_.F9._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(M){this.positionTarget=M},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var weR=new _.e0("disablePersonalizationAction");var xew=new _.e0("showDmaConsentFlowCommand");var zKs=new _.e0("showMmgNoticeCommand");var CJE=new _.e0("saveConsentAction");var aiw=function(M){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.xg(M)};
_.l(aiw,_.kC);var olL=_.VMH(aiw);var liI=new _.e0("updateTopbarAvatarAction");var XeI=new _.e0("channelHandleValidationResultRenderer");var PJw=new _.e0("generateHandleFromNameResultRenderer");var i0s=new _.e0("channelHandleInputRenderer");var cbI=new _.e0("copyLinkRenderer");var glv=new _.e0("timedCommand");var Bpn=new _.e0("clearCookieAction");var Qxw=new _.e0("getMultiPageMenuAction");var Iis=new _.e0("addToGuideSectionAction"),DNU=new _.e0("removeFromGuideSectionAction");var u0n=new _.e0("updateNotificationsUnseenCountAction");var JbP=new _.e0("resetChannelUnreadCountCommand");var Z0L=new _.e0("resetSubscriptionsUnreadDotCommand");var b0P=new _.e0("selectLanguageCommand");var MWL=new _.e0("sendFeedbackAction");var UNv=new _.e0("uploadImageToScottyCommand");var xNn=new _.e0("registerPromoCommand");var zgg=new _.e0("setPushNotificationsEnabledCommand");var mNw=new _.e0("desktopTopbarRenderer");var SYL=new _.e0("surveyFollowUpRenderer");var Tps=new _.e0("handlesClaimingRadioOptionRenderer");var rbM=new _.e0("hotkeyDialogRenderer");var jx5=new _.e0("modifyReportFormCommand");var VLw=new _.e0("accountLinkCommand");var RgR=new _.e0("accountUnlinkCommand");var fiP=new _.e0("logAccountLinkingEventCommand");var FUI=new _.e0("guideCollapsibleEntryRenderer");var H0E=new _.e0("guideDownloadsEntryRenderer");var Hsv=new _.e0("guideEntryRenderer");var egU=new _.e0("getLocationCommand");var $NI=new _.e0("locationCollectionCommand");var sRR=new _.e0("storiesItemViewModel");var MBL=new _.e0("addToRemoteQueueAction");var qGR=new _.e0("insertInRemoteQueueAction");var G45=new _.e0("removeFromRemoteQueueAction");var KML=new _.e0("notificationRenderer");var llw=new _.e0("localWatchHistoryCommand");var nhR=new _.e0("pdgBuyFlowHeaderRenderer");var Ehw=new _.e0("pdgColorSliderRenderer");var NXv=new _.e0("pdgCommentOptionRenderer");var k4g=new _.e0("pdgCommentPreviewRenderer");var p9P=new _.e0("superVodSelectableItemButtonRenderer");var yJ5=new _.e0("switchButtonRenderer");var LML=new _.e0("upsellDialogRenderer");var YGg=new _.e0("feedbackQuestionRenderer"),WMI=new _.e0("feedbackOptionRenderer");var AJE=new _.e0("sponsorshipsTierRenderer"),d4v=new _.e0("sponsorshipsPromotionChannelRenderer");var vhs=new _.e0("simpleSurveyMessageRenderer");var M8L=new _.e0("invokeInstrumentManagerAction");var hlE=new _.e0("logYpcFlowDismissCommand");var tBw=new _.e0("logYpcFlowStartCommand");var OJg=new _.e0("unlimitedCreateFamilyEndpoint");var w9I=new _.e0("iconBadgeRenderer");var X75=new _.e0("collaborativePlaylistVisibilityValidationRule");var C9P=function(M){_.d6.call(this,"channelMessage");this.message=M};
_.l(C9P,_.d6);var aHR=function(M){_.d6.call(this,"channelError");this.error=M};
_.l(aHR,_.d6);var ohs={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"},lHv={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},X9R={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},P9R={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},iJ8={NOW_PLAYING_SHORTS:"nowPlayingShorts",
ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var lY=function(M){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 _.Yt;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;M&&(this.id=M.id||M.name,this.name=M.name,this.clientName=M.clientName?M.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=M.app,this.type=M.type||"REMOTE_CONTROL",this.username=M.user||"",this.avatar=M.userAvatarUri||"",this.obfuscatedGaiaId=M.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=M.ownerObfuscatedGaiaId||"",this.castUserId=M.castUserId||"",this.theme=M.theme||"u",cJI(this,M.capabilities||""),ghI(this,
M.compatibleSenderThemes||""),BXn(this,M.experiments||""),this.remoteControllerUrl=M.remoteControllerUrl||"",this.localChannelEncryptionKey=M.localChannelEncryptionKey||"",this.deviceContext=M.deviceContext,this.brand=M.brand||"",this.model=M.model||"",this.year=M.year||0,this.os=M.os||"",this.osVersion=M.osVersion||"",this.chipset=M.chipset||"",this.mdxDialServerType=M.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=M.pairingType||"unknown",M=M.deviceInfo)&&(M=JSON.parse(M),this.brand=
M.brand||"",this.model=M.model||"",this.year=M.year||0,this.os=M.os||"",this.osVersion=M.osVersion||"",this.chipset=M.chipset||"",this.clientName=M.clientName?M.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=M.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
lY.prototype.copy=function(){var M={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&&(M.brand=this.brand);
this.model&&(M.model=this.model);this.year&&(M.year=this.year);this.os&&(M.os=this.os);this.osVersion&&(M.osVersion=this.osVersion);this.chipset&&(M.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(M.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(M.mdxDialServerType=this.mdxDialServerType);M=new lY(M);M.connected=this.connected;M.remoteControllerUrl=this.remoteControllerUrl;M.localChannelEncryptionKey=this.localChannelEncryptionKey;M.deviceContext=
this.deviceContext;M.castUserId=this.castUserId;return M};
lY.prototype.equals=function(M){return M?this.id==M.id:!1};
var cJI=function(M,q){M.capabilities.clear();_.jh(q.split(","),_.n7(_.xP.contains,ohs)).forEach(function(G){M.capabilities.add(G)})},ghI=function(M,q){M.compatibleSenderThemes.clear();
_.jh(q.split(","),_.n7(_.xP.contains,lHv)).forEach(function(G){M.compatibleSenderThemes.add(G)})},BXn=function(M,q){M.experiments.clear();
q.split(",").forEach(function(G){M.experiments.add(G)})};_.TO(r$P,_.uI);_.N=r$P.prototype;_.N.JSC$20023_onTick_=function(){this.JSC$20021_interval_=Math.min(3E5,this.JSC$20021_interval_*2);this.JSC$20023_listener_();this.nextTickTime_&&this.start()};
_.N.start=function(){var M=this.JSC$20021_interval_+15E3*Math.random(),q=this.delay_;q.isActive()||q.start(M);this.nextTickTime_=Date.now()+M};
_.N.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.N.isActive=function(){return this.delay_.isActive()};
_.N.reset=function(){this.delay_.stop();this.JSC$20021_interval_=5E3};_.TO(lp,dIP);_.N=lp.prototype;_.N.subscribe=function(M,q,G){return this.pubsub_.subscribe(M,q,G)};
_.N.unsubscribe=function(M,q,G){return this.pubsub_.unsubscribe(M,q,G)};
_.N.unsubscribeByKey=function(M){return this.pubsub_.unsubscribeByKey(M)};
_.N.publish=function(M,q){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.N.dispose=function(){this.JSC$20024_disposed_||(this.JSC$20024_disposed_=!0,_.ka(this.pubsub_),this.disconnect(),_.ka(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$20024_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.HF({})})};
_.N.isDisposed=function(){return this.JSC$20024_disposed_};
_.N.connect=function(M,q,G){var K=this,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1)return _.l5(Y,2),K.useAsyncBrowserChannelHandler_?Y.yield(K.connectPromise_,2):Y.jumpTo(2);_.oS(Y);if(K.JSC$20024_disposed_||K.JSC$20024_channel_&&K.JSC$20024_channel_.getState()==2)return Y.return();K.sCookie_="";K.reconnectTimer_.stop();K.connectionParams_=M||null;K.connectUi_=q||0;n=K.JSC$20024_pathPrefix_+"/test";E=K.JSC$20024_pathPrefix_+"/bind";p=new Ct(G?G.firstTestResults:null,G?G.secondTestResults:null,
K.enableAsyncTest_);if(y=K.JSC$20024_channel_)y.handler_=null;p.handler_=K;K.JSC$20024_channel_=p;if(K.useAsyncBrowserChannelHandler_)return K.connectPromise_=QRw(K).then(function(){return IHE(K,n,E,y,G)}),Y.return(K.connectPromise_.then(function(){K.connectPromise_=_.HF()}));
IHE(K,n,E,y,G);return _.Xr(Y,0)})};
var IHE=function(M,q,G,K,n){D4E(M);if(M.JSC$20024_channel_){var E=_.R9("ID_TOKEN"),p=M.JSC$20024_channel_.JSC$19976_extraHeaders_||{};E?p["x-youtube-identity-token"]=E:delete p["x-youtube-identity-token"];M.JSC$20024_channel_.JSC$19976_extraHeaders_=p}uMI(M);K?(K.getState(),M.JSC$20024_channel_.connect(q,G,M.defaultQueryParams_,K.sid_,K.JSC$19976_lastArrayId_)):n?M.JSC$20024_channel_.connect(q,G,M.defaultQueryParams_,n.sessionId,n.arrayId):M.JSC$20024_channel_.connect(q,G,M.defaultQueryParams_)};
lp.prototype.disconnect=function(M){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.HF())}finally{this.disconnectUi_=M||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),D4E(this),this.JSC$20024_channel_&&(this.JSC$20024_channel_.getState()==3&&pJs(this.JSC$20024_channel_),this.JSC$20024_channel_.disconnect()),this.disconnectUi_=0}};
lp.prototype.sendMessage=function(M,q){var G=this,K;return _.L(function(n){switch(n.nextAddress){case 1:_.l5(n,2);if(!G.useAsyncBrowserChannelHandler_){n.jumpTo(2);break}return n.yield(G.connectPromise_,2);case 2:_.oS(n);if(G.JSC$20024_disposed_)return n.return();K={_sc:M};q&&_.xP.extend(K,q);if(G.reconnectTimer_.isActive()||(G.JSC$20024_channel_?G.JSC$20024_channel_.getState():0)==2){G.JSC$20024_pendingMessages_.push(K);n.jumpTo(6);break}if(!G.isChannelOpened()){n.jumpTo(6);break}_.l5(n,8);if(!G.useAsyncBrowserChannelHandler_||
JJU(G,M)){n.jumpTo(8);break}return n.yield(QRw(G),8);case 8:_.oS(n,0,0,1);G.isChannelOpened()&&(JJU(G,M)||uMI(G),D4E(G),kUE(G.JSC$20024_channel_,K));_.Xr(n,6,1);break;case 6:_.Xr(n,0)}})};
var JJU=function(M,q){return M.enableMdxAuthForConnectionOnly_?!0:M.disableMdxAuthForAdMessages_?Object.values(X9R).includes(q):M.disableMdxAuthForNonPlaybackMessages_?!Object.values(P9R).includes(q):M.disableMdxAuthForShortsMessages_?Object.values(iJ8).includes(q):!1};
lp.prototype.JSC$19983_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$20024_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)ZJM(this);else{var M=this.JSC$20024_pendingMessages_;this.JSC$20024_pendingMessages_=[];var q=M.length;uMI(this);bJI(this,M,q);U4P(this)}else U4P(this)};
var ZJM=function(M){var q,G;_.L(function(K){if(K.nextAddress==1)return _.l5(K,2),K.yield(QRw(M),2);_.oS(K);q=M.JSC$20024_pendingMessages_;M.JSC$20024_pendingMessages_=[];G=q.length;bJI(M,q,G);U4P(M);return _.Xr(K,0)})},bJI=function(M,q,G){for(var K=0;K<G;++K)kUE(M.JSC$20024_channel_,q[K]);
U4P(M)},U4P=function(M){M.publish("handlerOpened");
M.JSC$20024_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.N=lp.prototype;_.N.JSC$19983_channelError=function(M){var q=M==2&&this.JSC$20024_channel_.JSC$19976_lastStatusCode_==401;M==4||q||this.reconnectTimer_.start();this.publish("handlerError",M,q);q=Object.keys($tw).find(function(G){return $tw[G]===M});
this.JSC$20024_channelErrorCounter.increment("BROWSER_CHANNEL",q!=null?q:"UNKNOWN")};
_.N.JSC$19983_channelClosed=function(M,q){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(q)for(var G=q.length,K=0;K<G;++K){var n=q[K].map;n&&this.JSC$20024_pendingMessages_.push(n)}this.JSC$20024_channelClosedCounter.increment("BROWSER_CHANNEL");M&&this.pendingMapsOnClosedCounter.JSC$9936_streamzService.JSC$9791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",M.length);q&&this.undeliveredMapsOnClosedCounter.JSC$9939_streamzService.JSC$9791_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
q.length)};
_.N.JSC$19983_channelSuccess=function(M,q){q!=null&&M!=null&&this.channelMessageSentCounter.increment()};
_.N.JSC$19983_getAdditionalParams=function(){var M={v:2};this.sCookie_&&(M.gsessionid=this.sCookie_);this.connectUi_!=0&&(M.ui=""+this.connectUi_);this.disconnectUi_!=0&&(M.ui=""+this.disconnectUi_);this.connectionParams_&&_.xP.extend(M,this.connectionParams_);return M};
_.N.JSC$19983_channelHandleArray=function(M){M[0]=="S"?this.sCookie_=M[1]:M[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$20024_channel_.disconnect()):this.publish("handlerMessage",new Txn(M[0],M[1]));this.JSC$20024_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.N.isChannelOpened=function(){return!!this.JSC$20024_channel_&&this.JSC$20024_channel_.getState()==3};
var D4E=function(M){if(M.JSC$20024_channel_){var q=M.JSC$20024_getXsrfToken_(),G=M.JSC$20024_channel_.JSC$19976_extraHeaders_||{};q?G["x-youtube-lounge-xsrf-token"]=q:delete G["x-youtube-lounge-xsrf-token"];M.JSC$20024_channel_.JSC$19976_extraHeaders_=G}},QRw=function(M){if(M.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.HF();
if(!M.enableCachedUpdateAuthorizationHeader_)return x4I(M);M.updateAuthorizationHeaderPromise_===null&&(M.updateAuthorizationHeaderPromise_=x4I(M));return M.updateAuthorizationHeaderPromise_},x4I=function(M){return _.l2(M.getAuthorizationHeader_().then(function(q){zlw(M,q)}).thenCatch(function(){}),function(){M.updateAuthorizationHeaderPromise_=null})},zlw=function(M,q){if(M.JSC$20024_channel_){var G=M.JSC$20024_channel_.JSC$19976_extraHeaders_||{};
q&&Object.keys(q).length>0?G=Object.assign({},G,q):delete G.Authorization;M.JSC$20024_channel_.JSC$19976_extraHeaders_=G}},uMI=function(M){M.getAuthorizationHeaderSync_&&!M.useAsyncBrowserChannelHandler_&&zlw(M,M.getAuthorizationHeaderSync_())};
_.N=lp.prototype;_.N.setLoungeToken=function(M){(this.defaultQueryParams_.loungeIdToken=M)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$20024_channel_){var q=this.JSC$20024_channel_.JSC$19976_extraHeaders_||{};M?q["X-YouTube-LoungeId-Token"]=M:delete q["X-YouTube-LoungeId-Token"];this.JSC$20024_channel_.JSC$19976_extraHeaders_=q}};
_.N.getDeviceId=function(){return this.defaultQueryParams_.id};
_.N.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.N.reconnect=function(){var M=this.reconnectTimer_;M.delay_.fire();M.start()};
_.N.safeReconnect_=function(){var M=this.JSC$20024_channel_,q=0;M.JSC$19976_backChannelRequest_&&q++;M.forwardChannelRequest_&&q++;q==0&&this.connect(this.connectionParams_,this.connectUi_)};var Qh=function(M,q){var G=M.basePath;M.supportCors&&(G=M.scheme+"://"+M.domain+M.port+M.basePath);return _.Nz(G+q,{})};
Xo.prototype.sendRequest=function(M,q,G,K,n,E,p){M={format:E?"RAW":"JSON",method:M,context:this,timeout:5E3,withCredentials:!!p,onSuccess:_.n7(this.JSC$20029_onSuccess_,K,!E),onError:_.n7(this.onError_,n),onTimeout:_.n7(this.JSC$20029_onTimeout_,n)};G&&(M.postParams=G,M.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.cR(q,M)};
Xo.prototype.JSC$20029_onSuccess_=function(M,q,G,K){q?M(K):M({text:G.responseText})};
Xo.prototype.onError_=function(M,q){M(Error("Xk`"+q.status))};
Xo.prototype.JSC$20029_onTimeout_=function(M){M(Error("Yk"))};var ip=function(M,q){return!!q&&(M.id==q||M.uuid==q)},m4I=function(M){return{name:M.name,
screenId:M.id,loungeToken:M.token,dialId:M.uuid,screenIdType:M.idType,screenIdSecret:M.secret}},SGU=function(M){return new Po(M)},TXw=function(M){return Array.isArray(M)?_.z9(M,SGU):[]},Mh8=function(M){if(!M)return"null";
var q=M.token?".."+M.token.slice(-6):"-",G=M.uuid?".."+M.uuid.slice(-6):"-",K=M.secret?".."+M.secret.slice(-6):"-";return'{name:"'+M.name+'",id:'+M.id.substr(0,6)+"..,token:"+(q+",uuid:"+G+",idType:"+M.idType+",secret:")+(K+"}")},cYM=function(M){return Array.isArray(M)?"["+_.z9(M,Mh8).join(",")+"]":"null"};var kh5="",Bo=null;var hYI=function(M,q){_.w6.call(this);var G=this;this.handler=M();this.handler.subscribe("handlerOpened",this.JSC$20036_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(K,n){G.onError(n)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=q};
_.l(hYI,_.w6);_.N=hYI.prototype;_.N.connect=function(M,q,G){this.handler.connect(M,q,G)};
_.N.disconnect=function(M){this.handler.disconnect(M)};
_.N.reconnect=function(){this.handler.reconnect()};
_.N.getDeviceId=function(){return this.handler.getDeviceId()};
_.N.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.N.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.N.JSC$20036_onOpened=function(){this.dispatchEvent("channelOpened");var M=this.handler,q=this.currentScreenId;_.AK("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!M.JSC$20024_channel_.useChunked_,sessionId:M.JSC$20024_channel_.sid_,arrayId:M.JSC$20024_channel_.JSC$19976_lastArrayId_});_.AK("yt-remote-session-screen-id",q);M=qzv();q=GhM();_.zF(M,q)||M.push(q);NII(M);Eng()};
_.N.onClosed=function(){this.dispatchEvent("channelClosed")};
_.N.onMessage=function(M){this.dispatchEvent(new C9P(M))};
_.N.onError=function(M){this.dispatchEvent(new aHR(M?1:0))};
_.N.sendMessage=function(M,q){this.handler.sendMessage(M,q)};
_.N.setLoungeToken=function(M){this.handler.setLoungeToken(M)};
_.N.dispose=function(){this.handler.dispose()};var vnw=function(M,q,G){var K=this;G=G===void 0?function(){return""}:G;
var n=n===void 0?new ajw:n;var E=E===void 0?new _.BR:E;this.pathPrefix=M;this.defaultQueryParams=q;this.getXsrfToken=G;this.JSC$20039_pubsub=E;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new r$P(function(){var p;((p=K.channel)==null?void 0:HVP((new Xf5(p,p.JSC$19947_channel_)).JSC$19957_channel_.forwardChannelRequestPool_))===0&&K.connect(K.connectionParams,K.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$20039_disposed=!1;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$20039_channelOpenedCounter=new jZI;this.JSC$20039_channelClosedCounter=new Vs8;this.JSC$20039_channelMessageReceivedCounter=new fTn;this.JSC$20039_channelErrorCounter=new Fgs};
vnw.prototype.connect=function(M,q){M=M===void 0?{}:M;q=q===void 0?0:q;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=M,this.connectUi=q,rJs(this),(M=_.R9("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=M: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 hN(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,jRI(this))};
var jRI=function(M){_.Yj(M.channel,"w",function(){M.channelState=3;M.reconnectTimer.reset();M.connectionParams=null;M.connectUi=0;for(var q=_.k(M.nonAckedMessagesOnChannelClosed),G=q.next();!G.done;G=q.next())G=G.value,M.channel&&M.channel.send(G);M.nonAckedMessagesOnChannelClosed=[];M.publish("webChannelOpened");M.JSC$20039_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Yj(M.channel,"x",function(){M.channelState=0;M.reconnectTimer.isActive()||M.publish("webChannelClosed");var q,G=(q=M.channel)==null?void 0:PAw(new Xf5(q,q.JSC$19947_channel_));G&&(M.nonAckedMessagesOnChannelClosed=[].concat(_.Ui(G)));M.JSC$20039_channelClosedCounter.increment("WEB_CHANNEL")});
_.Yj(M.channel,"z",function(q){var G=q.data;G[0]==="gracefulReconnect"?(M.reconnectTimer.start(),M.channel&&M.channel.close()):M.publish("webChannelMessage",new Txn(G[0],G[1]));M.lastStatusCode=q.statusCode;M.JSC$20039_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Yj(M.channel,"y",function(){M.lastStatusCode===401||M.reconnectTimer.start();M.publish("webChannelError");M.JSC$20039_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.N=vnw.prototype;_.N.disconnect=function(M){this.disconnectUi=M===void 0?0:M;this.reconnectTimer.stop();rJs(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.N.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.N.reconnect=function(){var M=this.reconnectTimer;M.delay_.fire();M.start()};
_.N.sendMessage=function(M,q){this.channel&&(rJs(this),M=Object.assign({},{_sc:M},q),this.channel.send(M))};
_.N.setLoungeToken=function(M){M||this.reconnectTimer.stop();M?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=M:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var rJs=function(M){var q=M.getXsrfToken();q?M.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=q:delete M.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.N=vnw.prototype;_.N.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.N.publish=function(M){return this.JSC$20039_pubsub.publish.apply(this.JSC$20039_pubsub,[M].concat(_.Ui(_.rW.apply(1,arguments))))};
_.N.subscribe=function(M,q,G){return this.JSC$20039_pubsub.subscribe(M,q,G)};
_.N.unsubscribe=function(M,q,G){return this.JSC$20039_pubsub.unsubscribe(M,q,G)};
_.N.unsubscribeByKey=function(M){return this.JSC$20039_pubsub.unsubscribeByKey(M)};
_.N.dispose=function(){this.JSC$20039_disposed||(this.JSC$20039_disposed=!0,_.ka(this.JSC$20039_pubsub),this.disconnect(),_.ka(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.N.isDisposed=function(){return this.JSC$20039_disposed};var dQI=function(M){_.w6.call(this);this.webChannelService=M();this.webChannelService.subscribe("webChannelOpened",this.JSC$20047_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.l(dQI,_.w6);_.N=dQI.prototype;_.N.connect=function(M,q){this.webChannelService.connect(M,q)};
_.N.disconnect=function(M){this.webChannelService.disconnect(M)};
_.N.reconnect=function(){this.webChannelService.reconnect()};
_.N.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.N.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.N.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.N.JSC$20047_onOpened=function(){this.dispatchEvent("channelOpened")};
_.N.onClosed=function(){this.dispatchEvent("channelClosed")};
_.N.onMessage=function(M){this.dispatchEvent(new C9P(M))};
_.N.onError=function(){this.dispatchEvent(new aHR(this.webChannelService.lastStatusCode===401?1:0))};
_.N.sendMessage=function(M,q){this.webChannelService.sendMessage(M,q)};
_.N.setLoungeToken=function(M){this.webChannelService.setLoungeToken(M)};
_.N.dispose=function(){this.webChannelService.dispose()};var i5v=Date.now(),IP=null,X35=Array(50),JO=-1,P_E=!1;_.TO(ZN,_.z0);ZN.prototype.getScreens=function(){return this.screens};
ZN.prototype.contains=function(M){return!!MbR(this.screens,M)};
ZN.prototype.get=function(M){return M?co(this.screens,M):null};
var VBI=function(M,q){var G=M.get(q.uuid)||M.get(q.id);if(G)return M=G.name,G.id=q.id||G.id,G.name=q.name,G.token=q.token,G.uuid=q.uuid||G.uuid,G.name!=M;M.screens.push(q);return!0},RlE=function(M,q){var G=M.screens.length!=q.length;
M.screens=_.jh(M.screens,function(E){return!!MbR(q,E)});
for(var K=q.length,n=0;n<K;n++)G=VBI(M,q[n])||G;return G},fHs=function(M,q){var G=M.screens.length;
M.screens=_.jh(M.screens,function(K){return!(K||q?!K!=!q?0:K.id==q.id:1)});
return M.screens.length<G};
ZN.prototype.info=function(M){DN(this.JSC$20048_logName_,M)};var FML=function(M,q,G,K,n){_.z0.call(this);this.JSC$20051_http_=M;this.pairingCode_=q;this.deviceId_=G;this.friendlyName_=K;this.enableShortLivedLoungeToken_=n;this.pollIndex_=0;this.JSC$20051_xhr_=null;this.JSC$20051_timer_=NaN};
_.l(FML,_.z0);_.N=FML.prototype;_.N.start=function(){!this.JSC$20051_xhr_&&isNaN(this.JSC$20051_timer_)&&this.poll_()};
_.N.stop=function(){this.JSC$20051_xhr_&&(this.JSC$20051_xhr_.abort(),this.JSC$20051_xhr_=null);isNaN(this.JSC$20051_timer_)||(_.PR(this.JSC$20051_timer_),this.JSC$20051_timer_=NaN)};
_.N.disposeInternal=function(){this.stop();_.z0.prototype.disposeInternal.call(this)};
_.N.poll_=function(){this.JSC$20051_timer_=NaN;this.JSC$20051_xhr_=_.cR(Qh(this.JSC$20051_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.Ju)(this.JSC$20053_onSuccess_,this),onError:(0,_.Ju)(this.onError_,this),onTimeout:(0,_.Ju)(this.JSC$20053_onTimeout_,this)})};
_.N.JSC$20053_onSuccess_=function(M,q){this.JSC$20051_xhr_=null;M=q.screen||{};M.dialId=this.deviceId_;M.name=this.friendlyName_;q=-1;this.enableShortLivedLoungeToken_&&M.shortLivedLoungeToken&&M.shortLivedLoungeToken.value&&M.shortLivedLoungeToken.refreshIntervalMs&&(M.screenIdType="shortLived",M.loungeToken=M.shortLivedLoungeToken.value,q=M.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new Po(M),q)};
_.N.onError_=function(M){this.JSC$20051_xhr_=null;M.status&&M.status==404?this.pollIndex_>=HJI.length?this.publish("pairingFailed",Error("Zk")):(M=HJI[this.pollIndex_],this.JSC$20051_timer_=_.lj((0,_.Ju)(this.poll_,this),M),this.pollIndex_++):this.publish("pairingFailed",Error("$k`"+M.status))};
_.N.JSC$20053_onTimeout_=function(){this.JSC$20051_xhr_=null;this.publish("pairingFailed",Error("al"))};
var HJI=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.TO(Ua,ZN);_.N=Ua.prototype;_.N.start=function(){bp(this)&&this.publish("screenChange");!_.d2("yt-remote-lounge-token-expiration")&&elI(this);_.PR(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.lj((0,_.Ju)(this.start,this),1E4)};
_.N.add=function(M,q){bp(this);VBI(this,M);$4M(this,!1);this.publish("screenChange");q(M);M.token||elI(this)};
_.N.remove=function(M,q){var G=bp(this);fHs(this,M)&&($4M(this,!1),G=!0);q(M);G&&this.publish("screenChange")};
_.N.updateName=function(M,q,G,K){var n=bp(this),E=this.get(M.id);E?(E.name!=q&&(E.name=q,$4M(this,!1),n=!0),G(M)):K(Error("bl"));n&&this.publish("screenChange")};
_.N.disposeInternal=function(){_.PR(this.loungeTokenRefreshTimer_);Ua.superClass_.disposeInternal.call(this)};
var elI=function(M){if(M.screens.length){var q=_.z9(M.screens,function(K){return K.id}),G=Qh(M.JSC$20055_http_,"/pairing/get_lounge_token_batch");
M.JSC$20055_http_.sendRequest("POST",G,{screen_ids:q.join(",")},(0,_.Ju)(M.handleLoungeTokens_,M),(0,_.Ju)(M.handleLoungeTokenError_,M))}};
Ua.prototype.handleLoungeTokens_=function(M){bp(this);var q=this.screens.length;M=M&&M.screens||[];for(var G=M.length,K=0;K<G;++K){var n=M[K],E=this.get(n.screenId);E&&(E.token=n.loungeToken,--q)}$4M(this,!q);q&&DN(this.JSC$20048_logName_,"Missed "+q+" lounge tokens.")};
Ua.prototype.handleLoungeTokenError_=function(M){DN(this.JSC$20048_logName_,"Requesting lounge tokens failed: "+M)};
var bp=function(M){if(_.w("deprecate_pair_servlet_enabled"))return RlE(M,[]);var q=TXw(yYU());q=_.jh(q,function(G){return!G.uuid});
return RlE(M,q)},$4M=function(M,q){YzM(_.z9(M.screens,m4I));
q&&LGU()};var Xf=function(M,q){_.z0.call(this);this.getScreensToCheck_=q;q=(q=_.d2("yt-remote-online-screen-ids")||"")?q.split(","):[];for(var G={},K=this.getScreensToCheck_(),n=K.length,E=0;E<n;++E){var p=K[E].id;G[p]=_.zF(q,p)}this.screenIdSet_=G;this.JSC$20058_http_=M;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;s_g("Initialized with "+(0,_.i2)(this.screenIdSet_))};
_.l(Xf,_.z0);Xf.prototype.isOnline=function(M){return!!this.screenIdSet_[M]};
Xf.prototype.start=function(){var M=parseInt(_.d2("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.Sh()-144E5<M?0:M)?MeR(this):(this.fastCheckEndTime_=_.Sh()+3E5,_.AK("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Xf.prototype.isEmpty=function(){return _.xP.isEmpty(this.screenIdSet_)};
Xf.prototype.update=function(){s_g("Updating availability on schedule.");var M=this.getScreensToCheck_(),q=_.xP.filter(this.screenIdSet_,function(G,K){return G&&!!co(M,K)},this);
qf5(this,q)};
var G5v=function(M,q,G){var K=Qh(M.JSC$20058_http_,"/pairing/get_screen_availability");M.JSC$20058_http_.sendRequest("POST",K,{lounge_token:q.token},(0,_.Ju)(function(n){n=n.screens||[];for(var E=n.length,p=0;p<E;++p)if(n[p].loungeToken==q.token){G(n[p].status=="online");return}G(!1)},M),(0,_.Ju)(function(){G(!1)},M))};
Xf.prototype.disposeInternal=function(){_.PR(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.z0.prototype.disposeInternal.call(this)};
var qf5=function(M,q){a:if(_.xP.getCount(q)!=_.xP.getCount(M.screenIdSet_))var G=!1;else{G=_.xP.getKeys(q);for(var K=G.length,n=0;n<K;++n)if(!M.screenIdSet_[G[n]]){G=!1;break a}G=!0}G||(s_g("Updated online screens: "+(0,_.i2)(M.screenIdSet_)),M.screenIdSet_=q,M.publish("screenChange"));KNn(M)},MeR=function(M){isNaN(M.refreshTimer_)||_.PR(M.refreshTimer_);
M.refreshTimer_=_.lj((0,_.Ju)(M.requestScreenAvailability_,M),M.fastCheckEndTime_>0&&M.fastCheckEndTime_<_.Sh()?2E4:1E4)};
Xf.prototype.requestScreenAvailability_=function(){_.PR(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var M=nKM(this);if(_.xP.getCount(M)){var q=Qh(this.JSC$20058_http_,"/pairing/get_screen_availability"),G={lounge_token:_.xP.getKeys(M).join(",")};this.currentRequest_=this.JSC$20058_http_.sendRequest("POST",q,G,(0,_.Ju)(this.onScreenAvailability_,this,M),(0,_.Ju)(this.onScreenAvailabilityError_,this))}else qf5(this,{}),MeR(this)};
Xf.prototype.onScreenAvailability_=function(M,q){this.currentRequest_=null;var G=_.xP.getKeys(nKM(this));if(_.Hy(G,_.xP.getKeys(M))){q=q.screens||[];G={};for(var K=q.length,n=0;n<K;++n)G[M[q[n].loungeToken]]=q[n].status=="online";qf5(this,G);MeR(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Xf.prototype.onScreenAvailabilityError_=function(M){this.warn_("Screen availability failed: "+M);this.currentRequest_=null;MeR(this)};
var s_g=function(M){DN("OnlineScreenService",M)};
Xf.prototype.warn_=function(M){DN("OnlineScreenService",M)};
var nKM=function(M){var q={};_.Gc(M.getScreensToCheck_(),function(G){G.token?q[G.token]=G.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return q},KNn=function(M){M=_.xP.getKeys(_.xP.filter(M.screenIdSet_,function(q){return q}));
M.sort(_.J4$);M.length?_.AK("yt-remote-online-screen-ids",M.join(","),60):_.vE("yt-remote-online-screen-ids")};_.TO(xY,ZN);_.N=xY.prototype;_.N.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.N.add=function(M,q,G){this.localScreenService_.add(M,q,G)};
_.N.remove=function(M,q,G){this.localScreenService_.remove(M,q,G);this.onlineScreenService_.update()};
_.N.updateName=function(M,q,G,K){this.localScreenService_.contains(M)?this.localScreenService_.updateName(M,q,G,K):(M="Updating name of unknown screen: "+M.name,DN(this.JSC$20048_logName_,M),K(Error(M)))};
_.N.getScreens=function(M){return M?this.screens:DsI(this.screens,_.jh(this.automaticScreens_,function(q){return!this.contains(q)},this))};
_.N.JSC$20063_getOnlineScreens=function(){return _.jh(this.getScreens(!0),function(M){return this.onlineScreenService_.isOnline(M.id)},this)};
var NEw=function(M,q,G,K,n,E){M.info("getAutomaticScreenByIds "+G+" / "+q);G||(G=M.deviceToScreenId_[q]);var p=M.getScreens(),y=G?co(p,G):null;G&&(M.disableAutomaticScreenCache_||y)||(y=co(p,q));if(y){y.uuid=q;var Y=Pi(M,y);G5v(M.onlineScreenService_,Y,function(A){n(A?Y:null)})}else G?EK8(M,G,(0,_.Ju)(function(A){var v=Pi(this,new Po({name:K,
screenId:G,loungeToken:A,dialId:q||""}));G5v(this.onlineScreenService_,v,function(h){n(h?v:null)})},M),E):n(null)};
xY.prototype.JSC$20063_getScreenByPollingPairingCode=function(M,q,G,K,n,E){var p=this;this.info("getDialScreenByPairingCode "+M+" / "+q);var y=new FML(this.JSC$20061_http_,M,q,G,K);y.subscribe("pairingComplete",function(Y,A){_.ka(y);n(Pi(p,Y),A)});
y.subscribe("pairingFailed",function(Y){_.ka(y);E(Y)});
y.start();return(0,_.Ju)(y.stop,y)};
var k5I=function(M,q){for(var G=M.screens.length,K=0;K<G;++K)if(M.screens[K].name==q)return M.screens[K];return null};
xY.prototype.JSC$20063_getScreenByPairingCode=function(M,q,G,K){_.cR(Qh(this.JSC$20061_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:M},timeout:5E3,onSuccess:(0,_.Ju)(function(n,E){n=new Po(E.screen||{});if(!n.name||k5I(this,n.name)){a:{E=n.name;for(var p=2,y=q(E,p);k5I(this,y);){p++;if(p>20)break a;y=q(E,p)}E=y}n.name=E}G(Pi(this,n))},this),
onError:(0,_.Ju)(function(n){K(Error("cl`"+n.status))},this),
onTimeout:(0,_.Ju)(function(){K(Error("dl"))},this)})};
var p_w=function(M,q,G){G5v(M.onlineScreenService_,q,G)};
xY.prototype.disposeInternal=function(){_.ka(this.localScreenService_);_.ka(this.onlineScreenService_);xY.superClass_.disposeInternal.call(this)};
var EK8=function(M,q,G,K){M.info("requestLoungeToken_ for "+q);var n={postParams:{screen_ids:q},method:"POST",context:M,onSuccess:function(E,p){E=p&&p.screens||[];E[0]&&E[0].screenId==q?G(E[0].loungeToken):K(Error("el"))},
onError:function(){K(Error("fl"))}};
_.cR(Qh(M.JSC$20061_http_,"/pairing/get_lounge_token_batch"),n)},yZv=function(M){M.screens=M.localScreenService_.getScreens();
for(var q=_.xP.transpose(M.deviceToScreenId_),G=M.screens.length,K=0;K<G;++K){var n=M.screens[K];n.uuid=q[n.id]||""}M.info("Updated manual screens: "+cYM(M.screens))};
xY.prototype.handleScreenChange_=function(){yZv(this);this.publish("screenChange");this.onlineScreenService_.update()};
var gnI=function(M){LN8(M);M.localScreenService_=new Ua(M.JSC$20061_http_);M.localScreenService_.subscribe("screenChange",(0,_.Ju)(M.handleScreenChange_,M));yZv(M);M.disableAutomaticScreenCache_||(M.automaticScreens_=TXw(_.d2("yt-remote-automatic-screen-cache")||[]));LN8(M);M.info("Initializing automatic screens: "+cYM(M.automaticScreens_));M.onlineScreenService_=new Xf(M.JSC$20061_http_,(0,_.Ju)(M.getScreens,M,!0));M.onlineScreenService_.subscribe("screenChange",(0,_.Ju)(function(){this.publish("onlineScreenChange")},
M))},Pi=function(M,q){var G=M.get(q.id);
G?(G.uuid=q.uuid,q=G):((G=co(M.automaticScreens_,q.uuid))?(G.id=q.id,G.token=q.token,q=G):M.automaticScreens_.push(q),M.disableAutomaticScreenCache_||YfE(M));LN8(M);M.deviceToScreenId_[q.uuid]=q.id;_.AK("yt-remote-device-id-map",M.deviceToScreenId_,31536E3);return q},YfE=function(M){M=_.jh(M.automaticScreens_,function(q){return q.idType!="shortLived"});
_.AK("yt-remote-automatic-screen-cache",_.z9(M,m4I))},LN8=function(M){M.deviceToScreenId_=_.d2("yt-remote-device-id-map")||{}};
xY.prototype.dispose=xY.prototype.dispose;_.TO(zY,_.z0);var iY=function(M,q){M.screen_=q;M.publish("sessionScreen",M.screen_)},WNR=function(M,q){M.screen_&&(M.screen_.token=q,Pi(M.JSC$20065_screenService_,M.screen_));
M.publish("sessionScreen",M.screen_)};
zY.prototype.onSessionStopped=function(M){this.isDisposed()||(M&&(ci(this,""+M),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
zY.prototype.info=function(M){DN(this.JSC$20065_logName_,M)};
var ci=function(M,q){DN(M.JSC$20065_logName_,q)};
zY.prototype.JSC$20067_getCastSession=function(){return null};
zY.prototype.setDisplayStatus=function(M){var q=this.receiver_;M?(q.displayStatus=new chrome.cast.ReceiverDisplayStatus(M,[]),q.displayStatus.showStop=!0):q.displayStatus=null;chrome.cast.setReceiverDisplayStatus(q,(0,_.Ju)(function(){this.info("Updated receiver status for "+q.friendlyName+": "+M)},this),(0,_.Ju)(function(){ci(this,"Failed to update receiver status for: "+q.friendlyName)},this))};
zY.prototype.disposeInternal=function(){this.setDisplayStatus("");zY.superClass_.disposeInternal.call(this)};var gH=function(M,q,G){zY.call(this,M,q,"CastSession");var K=this;this.config_=G;this.JSC$20070_session_=null;this.JSC$20070_boundSessionUpdate_=(0,_.Ju)(this.JSC$20072_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.Ju)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.lj(function(){AZI(K,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$20070_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$20070_isInitLoungeToken_=!1;this.JSC$20070_lastLoungeTokenRefreshError_="unknown"};
_.l(gH,zY);_.N=gH.prototype;
_.N.setCastSession=function(M){if(this.JSC$20070_session_){if(this.JSC$20070_session_==M)return;ci(this,"Overriding cast session with new session object");diR(this);this.JSC$20070_isInitLoungeToken_=!1;this.JSC$20070_lastLoungeTokenRefreshError_="unknown";this.JSC$20070_session_.removeUpdateListener(this.JSC$20070_boundSessionUpdate_);this.JSC$20070_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$20070_session_=M;this.JSC$20070_session_.addUpdateListener(this.JSC$20070_boundSessionUpdate_);this.JSC$20070_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);vKs(this,"getMdxSessionStatus")};
_.N.launchWithParams=function(M){this.info("launchWithParams no-op for Cast: "+(0,_.i2)(M))};
_.N.stop=function(){if(this.JSC$20070_session_)this.JSC$20070_session_.stop((0,_.Ju)(function(){this.onSessionStopped()},this),(0,_.Ju)(function(){this.onSessionStopped(Error("gl"))},this));
else this.onSessionStopped(Error("hl"))};
_.N.setDisplayStatus=function(){};
_.N.disposeInternal=function(){this.info("disposeInternal");diR(this);this.JSC$20070_session_&&(this.JSC$20070_session_.removeUpdateListener(this.JSC$20070_boundSessionUpdate_),this.JSC$20070_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$20070_session_=null;zY.prototype.disposeInternal.call(this)};
var teI=function(M,q){_.PR(M.getLoungeTokenTimeoutKey_);M.getLoungeTokenTimeoutKey_=0;q==0?hPI(M):M.getLoungeTokenTimeoutKey_=_.lj(function(){hPI(M)},q)},hPI=function(M){vKs(M,"getLoungeToken");
_.PR(M.onLoungeTokenTimeoutKey_);M.onLoungeTokenTimeoutKey_=_.lj(function(){O48(M,null)},3E4)},vKs=function(M,q){M.info("sendYoutubeMessage_: "+q+" "+(0,_.i2)(void 0));
var G={};G.type=q;M.JSC$20070_session_?M.JSC$20070_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",G,function(){},(0,_.Ju)(function(){ci(this,"Failed to send message: "+q+".")},M)):ci(M,"Sending yt message without session: "+(0,_.i2)(G))};
gH.prototype.onYoutubeMessage_=function(M,q){if(!this.isDisposed())if(q)if(q=(0,_.dt)(q),_.VY(q))switch(M=""+q.type,q=q.data||{},this.info("onYoutubeMessage_: "+M+" "+(0,_.i2)(q)),M){case "mdxSessionStatus":AZI(this,q);break;case "loungeToken":O48(this,q);break;default:ci(this,"Unknown youtube message: "+M)}else ci(this,"Unable to parse message.");else ci(this,"No data in message.")};
var w_w=function(M,q){if(q)M.info("onConnectedScreenId_: Received screenId: "+q),M.screen_&&M.screen_.id==q||M.getScreen_(q,function(G){iY(M,G)},function(){return M.onSessionStopped()},5);
else M.onSessionStopped(Error("il"))},aWw=function(M,q,G){M.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(q));
var K=new Po(q);CVI(M,K,function(n){n?(M.JSC$20070_isInitLoungeToken_=!0,Pi(M.JSC$20065_screenService_,K),iY(M,K),M.JSC$20070_lastLoungeTokenRefreshError_="unknown",teI(M,G)):(_.eK(Error("jl`"+JSON.stringify(q))),M.onSessionStopped())},5)},AZI=function(M,q){_.PR(M.sessionStatusTimeoutKey_);
M.sessionStatusTimeoutKey_=0;if(q)M.config_.enableCastLoungeToken&&q.loungeToken?q.deviceId?M.screen_&&M.screen_.uuid==q.deviceId||(q.loungeTokenRefreshIntervalMs?aWw(M,{name:M.receiver_.friendlyName,screenId:q.screenId,loungeToken:q.loungeToken,dialId:q.deviceId,screenIdType:"shortLived"},q.loungeTokenRefreshIntervalMs):(_.eK(Error("ll`"+JSON.stringify(q))),w_w(M,q.screenId))):(_.eK(Error("kl`"+JSON.stringify(q))),w_w(M,q.screenId)):w_w(M,q.screenId);else M.onSessionStopped(Error("il"))},O48=function(M,
q){_.PR(M.onLoungeTokenTimeoutKey_);
M.onLoungeTokenTimeoutKey_=0;var G=null;if(q)if(q.loungeToken){var K;((K=M.screen_)==null?void 0:K.token)==q.loungeToken&&(G="staleLoungeToken")}else G="missingLoungeToken";else G="noLoungeTokenResponse";G?(M.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(q)+", error: "+G)),M.JSC$20070_lastLoungeTokenRefreshError_=G,teI(M,3E4)):(WNR(M,q.loungeToken),M.JSC$20070_isInitLoungeToken_=!1,M.JSC$20070_lastLoungeTokenRefreshError_="unknown",teI(M,q.loungeTokenRefreshIntervalMs))};
gH.prototype.getScreen_=function(M,q,G,K){_.PR(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;NEw(this.JSC$20065_screenService_,this.receiver_.label,M,this.receiver_.friendlyName,(0,_.Ju)(function(n){n?q(n):K>=0?(ci(this,"Screen "+M+" appears to be offline. "+K+" retries left."),this.getScreenTimeoutKey_=_.lj((0,_.Ju)(this.getScreen_,this,M,q,G,K-1),300)):G(Error("ml"))},this),G)};
var CVI=function(M,q,G,K){_.PR(M.JSC$20070_checkScreenAvailabilityTimeoutKey_);M.JSC$20070_checkScreenAvailabilityTimeoutKey_=0;p_w(M.JSC$20065_screenService_,q,function(n){n||K<0?G(n):M.JSC$20070_checkScreenAvailabilityTimeoutKey_=_.lj(function(){CVI(M,q,G,K-1)},300)})};
gH.prototype.JSC$20067_getCastSession=function(){return this.JSC$20070_session_};
gH.prototype.JSC$20072_onSessionUpdate_=function(M){this.isDisposed()||M||(ci(this,"Cast session died."),this.onSessionStopped())};
var diR=function(M){_.PR(M.getScreenTimeoutKey_);M.getScreenTimeoutKey_=0;_.PR(M.JSC$20070_checkScreenAvailabilityTimeoutKey_);M.JSC$20070_checkScreenAvailabilityTimeoutKey_=0;_.PR(M.sessionStatusTimeoutKey_);M.sessionStatusTimeoutKey_=0;_.PR(M.onLoungeTokenTimeoutKey_);M.onLoungeTokenTimeoutKey_=0;_.PR(M.getLoungeTokenTimeoutKey_);M.getLoungeTokenTimeoutKey_=0};var Bi=function(M,q,G,K){zY.call(this,M,q,"DialSession");this.config_=K;this.JSC$20074_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$20074_theme_=G;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$20074_deferredLaunchDeadlineTimer_=NaN;this.JSC$20074_boundSessionUpdate_=(0,_.Ju)(this.JSC$20076_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$20074_checkScreenAvailabilityTimeoutKey_=0;this.JSC$20074_isInitLoungeToken_=!1;this.JSC$20074_lastLoungeTokenRefreshError_="unknown"};
_.l(Bi,zY);Bi.prototype.setCastSession=function(M){this.JSC$20074_session_=M;this.JSC$20074_session_.addUpdateListener(this.JSC$20074_boundSessionUpdate_)};
Bi.prototype.launchWithParams=function(M){this.connectData_=M;this.deferredLaunch_()};
Bi.prototype.stop=function(){oKM(this);if(this.JSC$20074_session_)this.JSC$20074_session_.stop((0,_.Ju)(this.onSessionStopped,this,null),(0,_.Ju)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Bi.prototype.disposeInternal=function(){oKM(this);this.JSC$20074_session_&&this.JSC$20074_session_.removeUpdateListener(this.JSC$20074_boundSessionUpdate_);this.JSC$20074_session_=null;zY.prototype.disposeInternal.call(this)};
var lWn=function(M){var q;return!!(M.config_.enableDialLoungeToken&&((q=M.JSC$20074_session_)==null?0:q.getDialAppInfo))},PVL=function(M){M.cancelPolling_=M.JSC$20065_screenService_.JSC$20063_getScreenByPollingPairingCode(M.reversePairingCode_,M.receiver_.label,M.receiver_.friendlyName,lWn(M),function(q,G){M.cancelPolling_=function(){};
M.JSC$20074_isInitLoungeToken_=!0;iY(M,q);q.idType=="shortLived"&&G>0&&X_5(M,G)},function(q){M.cancelPolling_=function(){};
M.onSessionStopped(q)})};
Bi.prototype.JSC$20076_onSessionUpdate_=function(M){this.isDisposed()||M||(ci(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var i4R=function(M){var q={};q.pairingCode=M.reversePairingCode_;q.theme=M.JSC$20074_theme_;AYP()&&(q.env_useStageMdx=1);return _.gP(q)},cZ5=function(M){return new Promise(function(q){M.reversePairingCode_=$on();
if(M.connectData_){var G=new chrome.cast.DialLaunchResponse(!0,i4R(M));q(G);PVL(M)}else M.deferredLaunch_=function(){_.PR(M.JSC$20074_deferredLaunchDeadlineTimer_);M.deferredLaunch_=function(){};
M.JSC$20074_deferredLaunchDeadlineTimer_=NaN;var K=new chrome.cast.DialLaunchResponse(!0,i4R(M));q(K);PVL(M)},M.JSC$20074_deferredLaunchDeadlineTimer_=_.lj(function(){M.deferredLaunch_()},100)})},BEs=function(M,q,G){M.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(q));
var K=new Po(q);return(new Promise(function(n){gKn(M,K,function(E){E?(M.JSC$20074_isInitLoungeToken_=!0,Pi(M.JSC$20065_screenService_,K),iY(M,K),X_5(M,G)):_.eK(Error("ol`"+JSON.stringify(q)));n(E)},5)})).then(function(n){return n?new chrome.cast.DialLaunchResponse(!1):cZ5(M)})},Q_U=function(M,q){var G=M.launchData_.receiver.label,K=M.receiver_.friendlyName;
return(new Promise(function(n){NEw(M.JSC$20065_screenService_,G,q,K,function(E){E&&E.token&&iY(M,E);n(E)},function(E){ci(M,"Failed to get DIAL screen: "+E);
n(null)})})).then(function(n){return n&&n.token?new chrome.cast.DialLaunchResponse(!1):cZ5(M)})},gKn=function(M,q,G,K){_.PR(M.JSC$20074_checkScreenAvailabilityTimeoutKey_);
M.JSC$20074_checkScreenAvailabilityTimeoutKey_=0;p_w(M.JSC$20065_screenService_,q,function(n){n||K<0?G(n):M.JSC$20074_checkScreenAvailabilityTimeoutKey_=_.lj(function(){gKn(M,q,G,K-1)},300)})},X_5=function(M,q){M.info("getDialAppInfoWithTimeout_ "+q);
lWn(M)&&(_.PR(M.getDialAppInfoTimeoutKey_),M.getDialAppInfoTimeoutKey_=0,q==0?IWU(M):M.getDialAppInfoTimeoutKey_=_.lj(function(){IWU(M)},q))},IWU=function(M){lWn(M)&&M.JSC$20074_session_.getDialAppInfo(function(q){M.info("getDialAppInfo dialLaunchData: "+JSON.stringify(q));
q=q.extraData||{};var G=null;if(q.loungeToken){var K;((K=M.screen_)==null?void 0:K.token)==q.loungeToken&&(G="staleLoungeToken")}else G="missingLoungeToken";G?(M.JSC$20074_lastLoungeTokenRefreshError_=G,X_5(M,3E4)):(M.JSC$20074_isInitLoungeToken_=!1,M.JSC$20074_lastLoungeTokenRefreshError_="unknown",WNR(M,q.loungeToken),X_5(M,q.loungeTokenRefreshIntervalMs))},function(q){M.info("getDialAppInfo error: "+q);
M.JSC$20074_lastLoungeTokenRefreshError_="noLoungeTokenResponse";X_5(M,3E4)})},oKM=function(M){_.PR(M.JSC$20074_checkScreenAvailabilityTimeoutKey_);
M.JSC$20074_checkScreenAvailabilityTimeoutKey_=0;_.PR(M.getDialAppInfoTimeoutKey_);M.getDialAppInfoTimeoutKey_=0;M.cancelPolling_();M.cancelPolling_=function(){};
_.PR(M.JSC$20074_deferredLaunchDeadlineTimer_)};var QC=function(M,q){zY.call(this,M,q,"ManualSession");this.JSC$20078_deferredLaunchDeadlineTimer_=_.lj((0,_.Ju)(this.launchWithParams,this,null),150)};
_.l(QC,zY);QC.prototype.stop=function(){this.onSessionStopped()};
QC.prototype.setCastSession=function(){};
QC.prototype.launchWithParams=function(){_.PR(this.JSC$20078_deferredLaunchDeadlineTimer_);this.JSC$20078_deferredLaunchDeadlineTimer_=NaN;var M=co(this.JSC$20065_screenService_.getScreens(),this.receiver_.label);if(M)iY(this,M);else this.onSessionStopped(Error("pl"))};
QC.prototype.disposeInternal=function(){_.PR(this.JSC$20078_deferredLaunchDeadlineTimer_);this.JSC$20078_deferredLaunchDeadlineTimer_=NaN;zY.prototype.disposeInternal.call(this)};var rV=function(M,q){_.z0.call(this);this.config_=q;this.JSC$20081_screenService_=M;this.JSC$20081_appId_=q.appId||"233637DE";this.JSC$20081_theme_=q.theme||"cl";this.disableDial_=q.disableCastApi||!1;this.forceMirroring_=q.forceMirroring||!1;this.JSC$20081_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.Ju)(this.onReceiverAction_,this)};
_.l(rV,_.z0);
rV.prototype.init=function(M,q){chrome.cast.timeout.requestSession=3E4;var G=new chrome.cast.SessionRequest(this.JSC$20081_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.w("desktop_enable_cast_connect")&&(G.androidReceiverCompatible=!0);this.disableDial_||(G.dialRequest=new chrome.cast.DialRequest("YouTube"));var K=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;M=M||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var n=(0,_.Ju)(this.onReceiverUpdated_,
this);G=new chrome.cast.ApiConfig(G,(0,_.Ju)(this.onSessionEstablished_,this),n,K,M);G.customDialLaunchCallback=(0,_.Ju)(this.onDialLaunchRequested_,this);chrome.cast.initialize(G,(0,_.Ju)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),a$M(),this.JSC$20081_screenService_.subscribe("onlineScreenChange",(0,_.Ju)(this.JSC$20083_onScreenChange_,this)),this.customReceivers_=DiP(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.Ju)(function(E){this.warn_("Failed to set initial custom receivers: "+(0,_.i2)(E))},this)),this.publish("yt-remote-cast2-availability-change",uKE(this)),q(!0))},this),(0,_.Ju)(function(E){this.warn_("Failed to initialize API: "+(0,_.i2)(E));
q(!1)},this))};
rV.prototype.setConnectedScreenStatus=function(M,q){Ib("Setting connected screen ID: "+M+" -> "+q);if(this.JSC$20081_session_){var G=this.JSC$20081_session_.screen_;if(!M||G&&G.id!=M)Ib("Unsetting old screen status: "+this.JSC$20081_session_.receiver_.friendlyName),D5(this,null)}if(M&&q){if(!this.JSC$20081_session_){M=co(this.JSC$20081_screenService_.getScreens(),M);if(!M){Ib("setConnectedScreenStatus: Unknown screen.");return}if(M.idType=="shortLived"){Ib("setConnectedScreenStatus: Screen with id type to be short lived.");
return}G=JZw(this,M);G||(Ib("setConnectedScreenStatus: Connected receiver not custom..."),G=new chrome.cast.Receiver(M.uuid?M.uuid:M.id,M.name),G.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(G),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Ju)(function(K){this.warn_("Failed to set initial custom receivers: "+(0,_.i2)(K))},this)));
Ib("setConnectedScreenStatus: new active receiver: "+G.friendlyName);D5(this,new QC(this.JSC$20081_screenService_,G),!0)}this.JSC$20081_session_.setDisplayStatus(q)}else Ib("setConnectedScreenStatus: no screen.")};
var JZw=function(M,q){return q?_.J4(M.customReceivers_,function(G){return ip(q,G.label)},M):null};
rV.prototype.setLaunchParams=function(M){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$20081_session_?this.JSC$20081_session_.launchWithParams(M):this.warn_("Setting connection data without a session")};
rV.prototype.JSC$20083_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$20081_session_?(this.JSC$20081_session_.stop(),D5(this,null)):Ib("Stopping non-existing session")};
rV.prototype.requestSession=function(){chrome.cast.requestSession((0,_.Ju)(this.onSessionEstablished_,this),(0,_.Ju)(this.onSessionRequestFailed_,this))};
rV.prototype.disposeInternal=function(){this.JSC$20081_screenService_.unsubscribe("onlineScreenChange",(0,_.Ju)(this.JSC$20083_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.my(_.sx("yt.mdx.remote.debug.handlers_")||[],O5n);_.ka(this.JSC$20081_session_);_.z0.prototype.disposeInternal.call(this)};
var Ib=function(M){DN("Controller",M)};
rV.prototype.warn_=function(M){DN("Controller",M)};
var O5n=function(M){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(M)},uKE=function(M){return M.hasCastReceiver_||!!M.customReceivers_.length||!!M.JSC$20081_session_},D5=function(M,q,G){q!=M.JSC$20081_session_&&(_.ka(M.JSC$20081_session_),(M.JSC$20081_session_=q)?(G?M.publish("yt-remote-cast2-receiver-resumed",q.receiver_):M.publish("yt-remote-cast2-receiver-selected",q.receiver_),q.subscribe("sessionScreen",(0,_.Ju)(M.onSessionScreen_,M,q)),q.subscribe("sessionFailed",
function(){return Z4P(M,q)}),q.screen_?M.publish("yt-remote-cast2-session-change",q.screen_):G&&M.JSC$20081_session_.launchWithParams(null)):M.publish("yt-remote-cast2-session-change",null))},Z4P=function(M,q){M.JSC$20081_session_==q&&M.publish("yt-remote-cast2-session-failed")};
_.N=rV.prototype;_.N.onSessionScreen_=function(M,q){this.JSC$20081_session_==M&&(q||D5(this,null),this.publish("yt-remote-cast2-session-change",q))};
_.N.onReceiverAction_=function(M,q){if(!this.isDisposed())if(M)switch(M.friendlyName=chrome.cast.unescape(M.friendlyName),Ib("onReceiverAction_ "+M.label+" / "+M.friendlyName+"-- "+q),q){case chrome.cast.ReceiverAction.CAST:if(this.JSC$20081_session_)if(this.JSC$20081_session_.receiver_.label!=M.label)Ib("onReceiverAction_: Stopping active receiver: "+this.JSC$20081_session_.receiver_.friendlyName),this.JSC$20081_session_.stop();else{Ib("onReceiverAction_: Casting to active receiver.");this.JSC$20081_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$20081_session_.screen_);break}switch(M.receiverType){case chrome.cast.ReceiverType.CUSTOM:D5(this,new QC(this.JSC$20081_screenService_,M));break;case chrome.cast.ReceiverType.DIAL:D5(this,new Bi(this.JSC$20081_screenService_,M,this.JSC$20081_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:D5(this,new gH(this.JSC$20081_screenService_,M,this.config_));break;default:this.warn_("Unknown receiver type: "+M.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$20081_session_&&
this.JSC$20081_session_.receiver_.label==M.label?this.JSC$20081_session_.stop():this.warn_("Stopping receiver w/o session: "+M.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.N.onDialLaunchRequested_=function(M){if(this.isDisposed())return Promise.reject(Error("ql"));var q=M.receiver;q.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+q.friendlyName),q.receiverType=chrome.cast.ReceiverType.DIAL);var G=this.JSC$20081_session_?this.JSC$20081_session_.receiver_:null;if(!G||G.label!=q.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+q.friendlyName),Promise.reject(Error("rl"));if(G&&G.label==q.label&&G.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$20081_session_.screen_)return Ib("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$20081_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+G.receiverType+'" to "dial" for '+q.friendlyName);D5(this,new Bi(this.JSC$20081_screenService_,q,this.JSC$20081_theme_,this.config_))}q=this.JSC$20081_session_;q.launchData_=M;q.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(M=q.launchData_.extraData||{},G=M.screenId||null,lWn(q)&&M.loungeToken?M.loungeTokenRefreshIntervalMs?M=BEs(q,{name:q.receiver_.friendlyName,screenId:M.screenId,loungeToken:M.loungeToken,dialId:q.launchData_.receiver.label,screenIdType:"shortLived"},M.loungeTokenRefreshIntervalMs):(_.eK(Error("nl`"+JSON.stringify(M))),M=Q_U(q,G)):M=Q_U(q,G)):M=cZ5(q);return M};
_.N.onSessionEstablished_=function(M){var q=this;if(!this.isDisposed()&&!this.forceMirroring_){Ib("New cast session ID: "+M.sessionId);var G=M.receiver;if(G.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$20081_session_)if(G.receiverType==chrome.cast.ReceiverType.CAST)Ib("Got resumed cast session before resumed mdx connection."),G.friendlyName=chrome.cast.unescape(G.friendlyName),D5(this,new gH(this.JSC$20081_screenService_,G,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var K=this.JSC$20081_session_.receiver_,n=co(this.JSC$20081_screenService_.getScreens(),K.label);n&&ip(n,G.label)&&K.receiverType!=chrome.cast.ReceiverType.CAST&&G.receiverType==chrome.cast.ReceiverType.CAST&&(Ib("onSessionEstablished_: manual to cast session change "+G.friendlyName),_.ka(this.JSC$20081_session_),this.JSC$20081_session_=new gH(this.JSC$20081_screenService_,G,this.config_),this.JSC$20081_session_.subscribe("sessionScreen",(0,_.Ju)(this.onSessionScreen_,this,this.JSC$20081_session_)),
this.JSC$20081_session_.subscribe("sessionFailed",function(){return Z4P(q,q.JSC$20081_session_)}),this.JSC$20081_session_.launchWithParams(null));
this.JSC$20081_session_.setCastSession(M)}}};
_.N.JSC$20083_getCastSession=function(){return this.JSC$20081_session_?this.JSC$20081_session_.JSC$20067_getCastSession():null};
_.N.onSessionRequestFailed_=function(M){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.i2)(M)),M.code!=chrome.cast.ErrorCode.CANCEL&&D5(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.N.onReceiverUpdated_=function(M){Ib("Receiver availability updated: "+M);if(!this.isDisposed()){var q=uKE(this);this.hasCastReceiver_=M==chrome.cast.ReceiverAvailability.AVAILABLE;uKE(this)!=q&&this.publish("yt-remote-cast2-availability-change",uKE(this))}};
var DiP=function(M){var q=M.JSC$20081_screenService_.JSC$20063_getOnlineScreens(),G=M.JSC$20081_session_&&M.JSC$20081_session_.receiver_;M=_.z9(q,function(K){G&&ip(K,G.label)&&(G=null);var n=K.uuid?K.uuid:K.id,E=JZw(this,K);E?(E.label=n,E.friendlyName=K.name):(E=new chrome.cast.Receiver(n,K.name),E.receiverType=chrome.cast.ReceiverType.CUSTOM);return E},M);
G&&(G.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(G=new chrome.cast.Receiver(G.label,G.friendlyName),G.receiverType=chrome.cast.ReceiverType.CUSTOM),M.push(G));return M};
rV.prototype.JSC$20083_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=DiP(this),Ib("Updating custom receivers: "+(0,_.i2)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.Ju)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",uKE(this)))};
rV.prototype.setLaunchParams=rV.prototype.setLaunchParams;rV.prototype.setConnectedScreenStatus=rV.prototype.setConnectedScreenStatus;rV.prototype.stopSession=rV.prototype.JSC$20083_stopSession;rV.prototype.getCastSession=rV.prototype.JSC$20083_getCastSession;rV.prototype.requestSession=rV.prototype.requestSession;rV.prototype.init=rV.prototype.init;rV.prototype.dispose=rV.prototype.dispose;var b4n=_.DQ(["https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"]),RYL=[],Z58=_.Ow(b4n);var UiL=function(M){M.audioTrackId=null;M.trackData=null;M.playerState=-1;M.hasPrevious=!1;M.hasNext=!1;M.playerTime_=0;M.playerTimeAt_=_.Sh();M.seekableStart_=0;M.seekableEnd_=0;M.duration_=0;M.loadedTime=0;M.liveIngestionTime_=NaN;M.isLive_=!1};
_.N=ji.prototype;
_.N.reset=function(M){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;M&&(this.index=M.index,this.listId=M.listId,this.videoId=M.videoId,this.playerState=M.playerState,this.volume=M.volume,this.muted=M.muted,this.audioTrackId=M.audioTrackId,this.trackData=M.trackData,this.hasPrevious=M.hasPrevious,this.hasNext=M.hasNext,this.playerTime_=M.playerTime,this.playerTimeAt_=M.playerTimeAt,this.seekableStart_=M.seekableStart,this.seekableEnd_=M.seekableEnd,this.duration_=M.duration,this.loadedTime=
M.loadedTime,this.liveIngestionTime_=M.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.N.stopPlayer=function(){this.index=-1;this.videoId="";UiL(this)};
_.N.isPlaying=function(){return this.playerState==1};
_.N.isBuffering=function(){return this.playerState==3};
_.N.isAdPlaying=function(){return this.playerState==1081};
var uY=function(M,q){M.playerTime_=q;M.playerTimeAt_=_.Sh()},xiw=function(M){switch(M.playerState){case 1:case 1081:return(_.Sh()-M.playerTimeAt_)/1E3+M.playerTime_;
case -1E3:return 0}return M.playerTime_};
ji.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.Sh()-this.playerTimeAt_)/1E3:0):this.duration_};
var zPR=function(M,q,G){var K=M.videoId;M.videoId=q;M.index=G;q!=K&&UiL(M)},miU=function(M){var q={};
q.index=M.index;q.listId=M.listId;q.videoId=M.videoId;q.playerState=M.playerState;q.volume=M.volume;q.muted=M.muted;q.audioTrackId=M.audioTrackId;q.trackData=_.xP.unsafeClone(M.trackData);q.hasPrevious=M.hasPrevious;q.hasNext=M.hasNext;q.playerTime=M.playerTime_;q.playerTimeAt=M.playerTimeAt_;q.seekableStart=M.seekableStart_;q.seekableEnd=M.seekableEnd_;q.duration=M.duration_;q.loadedTime=M.loadedTime;q.liveIngestionTime=M.liveIngestionTime_;return q};
ji.prototype.clone=function(){return new ji(miU(this))};var sd=function(M,q){_.z0.call(this);var G=this;this.state_=0;this.connection_=M;this.contextSubscriptions_=[];this.actionQueue_=new S0L;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.Ju)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.Ju)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.Ju)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.Ju)(this.onCloudviewAvailabilityChange_,this);var K=0;M?(K=M.getProxyState(),
K!=3&&(M.subscribe("proxyStateChange",this.setState_,this),SfI(this))):K=3;K!=0&&(q?this.setState_(K):_.lj(function(){G.setState_(K)},0));
(M=eYM())&&TEg(this,M);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.l(sd,_.z0);sd.prototype.getState=function(){return this.state_};
sd.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
sd.prototype.reconnect=function(){this.connection_.reconnect()};
var JN=function(M){return new ji(M.connection_.getPlayerContextData())};
_.N=sd.prototype;_.N.play=function(){Z5(this)?(this.castMedia_?this.castMedia_.play(null,_.vp,rZv(this,"play")):bY(this,"play"),j_R(this,1,xiw(JN(this))),this.publish("remotePlayerChange")):UV(this,this.play)};
_.N.pause=function(){Z5(this)?(this.castMedia_?this.castMedia_.pause(null,_.vp,rZv(this,"pause")):bY(this,"pause"),j_R(this,2,xiw(JN(this))),this.publish("remotePlayerChange")):UV(this,this.pause)};
_.N.seekTo=function(M){if(Z5(this)){if(this.castMedia_){var q=JN(this),G=new chrome.cast.media.SeekRequest;G.currentTime=M;q.isPlaying()||q.isBuffering()?G.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:G.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(G,_.vp,rZv(this,"seekTo",{newTime:M}))}else bY(this,"seekTo",{newTime:M});j_R(this,3,M);this.publish("remotePlayerChange")}else UV(this,_.n7(this.seekTo,M))};
_.N.stop=function(){if(Z5(this)){this.castMedia_?this.castMedia_.stop(null,_.vp,rZv(this,"stopVideo")):bY(this,"stopVideo");var M=JN(this);M.stopPlayer();x3(this,M);this.publish("remotePlayerChange")}else UV(this,this.stop)};
_.N.setVolume=function(M,q){if(Z5(this)){var G=JN(this);if(this.castSession_){if(G.volume!=M){var K=Math.round(M)/100;this.castSession_.setReceiverVolumeLevel(K,(0,_.Ju)(function(){up("set receiver volume: "+K)},this),(0,_.Ju)(function(){this.warn_("failed to set receiver volume.")},this))}G.muted!=q&&this.castSession_.setReceiverMuted(q,(0,_.Ju)(function(){up("set receiver muted: "+q)},this),(0,_.Ju)(function(){this.warn_("failed to set receiver muted.")},this))}else{var n={volume:M,
muted:q};G.volume!=-1&&(n.delta=M-G.volume);bY(this,"setVolume",n)}G.muted=q;G.volume=M;x3(this,G)}else UV(this,_.n7(this.setVolume,M,q))};
_.N.setAudioTrack=function(M,q){Z5(this)?(q=q.getLanguageInfo().getId(),bY(this,"setAudioTrack",{videoId:M,audioTrackId:q}),M=JN(this),M.audioTrackId=q,x3(this,M)):UV(this,_.n7(this.setAudioTrack,M,q))};
_.N.addVideo=function(M){Z5(this)?bY(this,"addVideo",{videoId:M}):UV(this,_.n7(this.addVideo,M))};
_.N.addPlaylist=function(M){Z5(this)?bY(this,"addVideos",{listId:M}):UV(this,_.n7(this.addPlaylist,M))};
_.N.addVideos=function(M){M.length==0?this.warn_("Ignore add videos request due to empty list"):Z5(this)?bY(this,"addVideos",{videoIds:M.join(",")}):UV(this,_.n7(this.addVideos,M))};
_.N.JSC$20093_removeVideo=function(M){Z5(this)?bY(this,"removeVideo",{videoId:M}):UV(this,_.n7(this.JSC$20093_removeVideo,M))};
_.N.JSC$20093_insertVideo=function(M){Z5(this)?bY(this,"insertVideo",{videoId:M}):UV(this,_.n7(this.JSC$20093_insertVideo,M))};
_.N.playVideo=function(M,q,G,K,n,E,p){K=K===void 0?null:K;n=n===void 0?null:n;E=E===void 0?null:E;p=p===void 0?null:p;var y=JN(this),Y={videoId:M};G!==void 0&&(Y.currentIndex=G);zPR(y,M,G||0);q!==void 0&&(uY(y,q),Y.currentTime=q);K&&(Y.listId=K);n&&(Y.playerParams=n);E&&(Y.clickTrackingParams=E);p&&(Y.locationInfo=(0,_.i2)(p));bY(this,"setPlaylist",Y);K||x3(this,y)};
_.N.nextVideo=function(M,q){if(Z5(this)){if(M&&q){var G=JN(this);zPR(G,M,q);x3(this,G)}bY(this,"next")}else UV(this,_.n7(this.nextVideo,M,q))};
_.N.clearPlaylist=function(){if(Z5(this)){bY(this,"clearPlaylist");var M=JN(this);M.reset();x3(this,M);this.publish("remotePlayerChange")}else UV(this,this.clearPlaylist)};
_.N.dispose=function(){if(this.state_!=3){var M=this.state_;this.state_=3;this.publish("proxyStateChange",M,this.state_)}_.z0.prototype.dispose.call(this)};
_.N.disposeInternal=function(){VeL(this);this.connection_=null;this.actionQueue_.clear();TEg(this,null);_.z0.prototype.disposeInternal.call(this)};
var SfI=function(M){_.Gc("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(q){this.contextSubscriptions_.push(this.connection_.subscribe(q,_.n7(this.onProxyEvent_,q),this))},M)},VeL=function(M){_.Gc(M.contextSubscriptions_,function(q){this.connection_.unsubscribeByKey(q)},M);
M.contextSubscriptions_.length=0},Z5=function(M){return M.getState()==1},UV=function(M,q){M.actionQueue_.getCount()<50&&M.actionQueue_.enqueue(q)},j_R=function(M,q,G){var K=JN(M);
uY(K,G);K.playerState!=-1E3&&(K.playerState=q);x3(M,K)},bY=function(M,q,G){M.connection_.sendMessage(q,G)},x3=function(M,q){VeL(M);
M.connection_.setPlayerContextData(miU(q));SfI(M)};
sd.prototype.setState_=function(M){if((M!=this.state_||M==2)&&this.state_!=3&&M!=0){var q=this.state_;this.state_=M;this.publish("proxyStateChange",q,M);if(M==1)for(;!this.actionQueue_.isEmpty();)M=this.actionQueue_,vSn(M),M.front_.pop().apply(this);else M==3&&this.dispose()}};
sd.prototype.onProxyEvent_=function(M,q){this.publish(M,q)};
var TEg=function(M,q){M.castSession_&&(M.castSession_.removeUpdateListener(M.boundCastStatusListener_),M.castSession_.removeMediaListener(M.boundCastMediaListener_),M.onCastMediaChange_(null));M.castSession_=q;if(M.castSession_&&(up("Setting cast session: "+M.castSession_.sessionId),M.castSession_.addUpdateListener(M.boundCastStatusListener_),M.castSession_.addMediaListener(M.boundCastMediaListener_),M.castSession_.media.length))M.onCastMediaChange_(M.castSession_.media[0])};
sd.prototype.onCastStatusUpdate_=function(M){if(!M)this.onCastMediaChange_(null),TEg(this,null);else if(this.castSession_.receiver.volume){M=this.castSession_.receiver.volume;var q=JN(this),G=Math.round(100*M.level||0);if(q.volume!=G||q.muted!=M.muted)up("Cast volume update: "+M.level+(M.muted?" muted":"")),q.volume=G,q.muted=!!M.muted,x3(this,q)}};
sd.prototype.onCastMediaChange_=function(M){up("Cast media: "+!!M);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=M)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),RPE(this),this.publish("remotePlayerChange")};
var RPE=function(M){var q=M.castMedia_.media,G=M.castMedia_.customData;if(q&&G){var K=JN(M);q.contentId!=K.videoId&&up("Cast changing video to: "+q.contentId);K.videoId=q.contentId;K.playerState=G.playerState;uY(K,M.castMedia_.getEstimatedTime());x3(M,K)}else up("No cast media video. Ignoring state update.")};
sd.prototype.onCastMediaUpdate_=function(M){if(M)RPE(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
sd.prototype.onCloudviewAvailabilityChange_=function(){var M=eYM();M&&TEg(this,M)};
sd.prototype.warn_=function(M){DN("CP",M)};
var rZv=function(M,q,G){return(0,_.Ju)(function(K){this.warn_("Failed to "+q+" with cast v2 channel. Error code: "+K.code);K.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+q+" using MDx browser channel."),bY(this,q,G))},M)};var Mf=function(M,q,G,K){K=K===void 0?!1:K;_.z0.call(this);var n=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$20098_http_=M;this.enableConnectWithInitialState_=K;this.listeners_.push(_.LA(window,"beforeunload",function(){n.JSC$20101_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new ji;this.currentScreenId_=q.id;this.currentScreenIdType_=q.idType;this.channelService=tbI(this.JSC$20098_http_,G,this.JSC$20101_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){fWw(n)});
this.channelService.listen("channelClosed",function(){zT("Channel closed");isNaN(n.connectTimerId_)?gV(!0):gV();n.dispose()});
this.channelService.listen("channelError",function(E){gV();isNaN(n.getReconnectTimeout_())?(E==1&&n.currentScreenIdType_=="shortLived"&&n.publish("browserChannelAuthError",E),zT("Channel error: "+E+" without reconnection"),n.dispose()):(n.reconnecting_=!0,zT("Channel error: "+E+" with reconnection in "+n.getReconnectTimeout_()+" ms"),FNP(n,2))});
this.channelService.listen("channelMessage",function(E){H4n(n,E)});
this.channelService.setLoungeToken(q.token);this.subscribe("remoteQueueChange",function(){var E=n.playerContext_.videoId;KGn()&&_.AK("yt-remote-session-video-id",E)})};
_.l(Mf,_.z0);
Mf.prototype.connect=function(M,q){if(q){var G=q.listId,K=q.videoId,n=q.videoIds,E=q.playerParams,p=q.clickTrackingParams,y=q.index,Y={videoId:K},A=q.currentTime,v=q.locationInfo;q=q.loopMode;A!==void 0&&(Y.currentTime=A<=5?0:A);E&&(Y.playerParams=E);v&&(Y.locationInfo=v);p&&(Y.clickTrackingParams=p);G&&(Y.listId=G);n&&n.length>0&&(Y.videoIds=n.join(","));y!==void 0&&(Y.currentIndex=y);this.enableConnectWithInitialState_&&(Y.loopMode=q||"LOOP_MODE_OFF");G&&(this.playerContext_.listId=G);this.playerContext_.videoId=
K;this.playerContext_.index=y||0;this.playerContext_.state=3;uY(this.playerContext_,A);this.autoplayMode_="UNSUPPORTED";G=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";zT("Connecting with "+G+" and params: "+(0,_.i2)(Y));this.channelService.connect({method:G,params:(0,_.i2)(Y)},M,p3w())}else zT("Connecting without params"),this.channelService.connect({},M,p3w());ePM(this)};
Mf.prototype.setLoungeToken=function(M){this.channelService.setLoungeToken(M)};
Mf.prototype.dispose=function(){this.isDisposed()||(_.Y5("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),FNP(this,3));_.z0.prototype.dispose.call(this)};
Mf.prototype.disposeInternal=function(){$iP(this);sKE(this);MQL(this);_.PR(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.PR(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.WYi(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.z0.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var qPM=function(M){return _.J4(M.connectedDevices_,function(q){return q.type=="LOUNGE_SCREEN"})},zT=function(M){DN("conn",M)},FNP=function(M,q){M.publish("proxyStateChange",q)},ePM=function(M){M.connectTimerId_=_.lj(function(){zT("Connecting timeout");
M.JSC$20101_disconnect_(1)},2E4)},$iP=function(M){_.PR(M.connectTimerId_);
M.connectTimerId_=NaN},MQL=function(M){_.PR(M.reconnectedCheckScreenTimeout_);
M.reconnectedCheckScreenTimeout_=NaN},KOI=function(M){sKE(M);
M.playingSyncTimerId_=_.lj(function(){G15(M,"getNowPlaying")},2E4)},sKE=function(M){_.PR(M.playingSyncTimerId_);
M.playingSyncTimerId_=NaN},fWw=function(M){zT("Channel opened");
M.reconnecting_&&(M.reconnecting_=!1,MQL(M),M.reconnectedCheckScreenTimeout_=_.lj(function(){zT("Timing out waiting for a screen.");M.JSC$20101_disconnect_(1)},15E3))},E6E=function(M,q){var G=null;
if(q){var K=qPM(M);K&&(G={clientName:K.clientName,deviceMake:K.brand,deviceModel:K.model,osVersion:K.osVersion})}_.Y5("yt.mdx.remote.remoteClient_",G);q&&($iP(M),MQL(M));G=M.channelService.isChannelOpened()&&isNaN(M.connectTimerId_);q==G?q&&(FNP(M,1),G15(M,"getSubtitlesTrack")):q?(M.getOtherConnectedRemoteId_()&&M.playerContext_.reset(),FNP(M,1),G15(M,"getNowPlaying"),n6v(M)):M.JSC$20101_disconnect_(1)},NZE=function(M,q){var G=q.params.videoId;
delete q.params.videoId;G==M.playerContext_.videoId&&(_.xP.isEmpty(q.params)?M.playerContext_.trackData=null:M.playerContext_.trackData=q.params,M.publish("remotePlayerChange"))},k1E=function(M,q,G){var K=q.params.videoId||q.params.video_id,n=parseInt(q.params.currentIndex,10);
M.playerContext_.listId=q.params.listId||M.playerContext_.listId;zPR(M.playerContext_,K,n);M.publish("remoteQueueChange",G)},pPI=function(M,q){q.params=q.params||{};
k1E(M,q,"NOW_PLAYING_MAY_CHANGE");M.onStateChange_(q);M.publish("autoplayDismissed")};
Mf.prototype.onStateChange_=function(M){var q=parseInt(M.params.currentTime||M.params.current_time,10);uY(this.playerContext_,isNaN(q)?0:q);q=parseInt(M.params.state,10);q=isNaN(q)?-1:q;q==-1&&this.playerContext_.playerState==-1E3&&(q=-1E3);this.playerContext_.playerState=q;q=Number(M.params.loadedTime);this.playerContext_.loadedTime=isNaN(q)?0:q;q=Number(M.params.duration);this.playerContext_.duration_=isNaN(q)?0:q;q=this.playerContext_;var G=Number(M.params.liveIngestionTime);q.liveIngestionTime_=
G;q.isLive_=isNaN(G)?!1:!0;q=this.playerContext_;G=Number(M.params.seekableStartTime);M=Number(M.params.seekableEndTime);q.seekableStart_=isNaN(G)?0:G;q.seekableEnd_=isNaN(M)?0:M;this.playerContext_.playerState==1?KOI(this):sKE(this);this.publish("remotePlayerChange")};
Mf.prototype.onAdStateChange_=function(M){if(this.playerContext_.playerState!=-1E3){var q=1085;switch(parseInt(M.params.adState,10)){case 1:q=1081;break;case 2:q=1084;break;case 0:q=1083}this.playerContext_.playerState=q;M=parseInt(M.params.currentTime,10);uY(this.playerContext_,isNaN(M)?0:M);this.publish("remotePlayerChange")}};
var yXw=function(M,q){var G=q.params.muted=="true";M.playerContext_.volume=parseInt(q.params.volume,10);M.playerContext_.muted=G;M.publish("remotePlayerChange")},LOR=function(M,q){M.autoplayVideoId_=q.params.videoId;
M.publish("nowAutoplaying",parseInt(q.params.timeout,10))},YPw=function(M,q){M.autoplayVideoId_=q.params.videoId||null;
M.publish("autoplayUpNext",M.autoplayVideoId_)},WOw=function(M,q){M.autoplayMode_=q.params.autoplayMode;
M.publish("autoplayModeChange",M.autoplayMode_);M.autoplayMode_=="DISABLED"&&M.publish("autoplayDismissed")},AXP=function(M,q){var G=q.params.hasNext=="true";
M.playerContext_.hasPrevious=q.params.hasPrevious=="true";M.playerContext_.hasNext=G;M.publish("previousNextChange")};
Mf.prototype.isCapabilitySupportedOnConnectedDevices_=function(M){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var q=_.k(this.connectedDevices_),G=q.next();!G.done;G=q.next())if(!G.value.capabilities.has(M))return!1;return!0};
var H4n=function(M,q){q=q.message;q.params?zT("Received: action="+q.action+", params="+(0,_.i2)(q.params)):zT("Received: action="+q.action+" {}");switch(q.action){case "loungeStatus":q=(0,_.dt)(q.params.devices);M.connectedDevices_=_.z9(q,function(K){return new lY(K)});
q=!!_.J4(M.connectedDevices_,function(K){return K.type=="LOUNGE_SCREEN"});
E6E(M,q);q=M.isCapabilitySupportedOnConnectedDevices_("mlm");M.publish("multiStateLoopEnabled",q);break;case "loungeScreenDisconnected":Ip8(M.connectedDevices_,function(K){return K.type=="LOUNGE_SCREEN"});
E6E(M,!1);break;case "remoteConnected":var G=new lY((0,_.dt)(q.params.device));_.J4(M.connectedDevices_,function(K){return K.equals(G)})||_.B$H(M.connectedDevices_,G);
break;case "remoteDisconnected":G=new lY((0,_.dt)(q.params.device));Ip8(M.connectedDevices_,function(K){return K.equals(G)});
break;case "gracefulDisconnect":break;case "playlistModified":k1E(M,q,"QUEUE_MODIFIED");break;case "nowPlaying":pPI(M,q);break;case "onStateChange":M.onStateChange_(q);break;case "onAdStateChange":M.onAdStateChange_(q);break;case "onVolumeChanged":yXw(M,q);break;case "onSubtitlesTrackChanged":NZE(M,q);break;case "nowAutoplaying":LOR(M,q);break;case "autoplayDismissed":M.publish("autoplayDismissed");break;case "autoplayUpNext":YPw(M,q);break;case "onAutoplayModeChanged":WOw(M,q);break;case "onHasPreviousNextChanged":AXP(M,
q);break;case "requestAssistedSignIn":M.publish("assistedSignInRequested",q.params.authCode);break;case "onLoopModeChanged":M.publish("loopModeChange",q.params.loopMode);break;default:zT("Unrecognized action: "+q.action)}};
_.N=Mf.prototype;_.N.getProxyState_=function(){var M=3;this.isDisposed()||(M=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(M=1):M=2);return M};
_.N.JSC$20101_disconnect_=function(M){zT("Disconnecting with "+M);_.Y5("yt.mdx.remote.remoteClient_",null);$iP(this);this.publish("beforeDisconnect",M);M==1&&gV();this.channelService.disconnect(M);this.dispose()};
_.N.getPlayerContextData_=function(){var M=this.playerContext_;this.clientVideoId_&&(M=this.playerContext_.clone(),zPR(M,this.clientVideoId_,M.index));return miU(M)};
_.N.setPlayerContextData_=function(M){var q=this,G=new ji(M);G.videoId&&G.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=G.videoId,_.PR(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.lj(function(){if(q.clientVideoId_){var n=q.clientVideoId_;q.clientVideoId_=null;q.playerContext_.videoId!=n&&G15(q,"getNowPlaying")}},5E3));
var K=[];this.playerContext_.listId==G.listId&&this.playerContext_.videoId==G.videoId&&this.playerContext_.index==G.index||K.push("remoteQueueChange");this.playerContext_.playerState==G.playerState&&this.playerContext_.volume==G.volume&&this.playerContext_.muted==G.muted&&xiw(this.playerContext_)==xiw(G)&&(0,_.i2)(this.playerContext_.trackData)==(0,_.i2)(G.trackData)||K.push("remotePlayerChange");this.playerContext_.reset(M);_.Gc(K,function(n){this.publish(n)},this)};
_.N.getOtherConnectedRemoteId_=function(){var M=this.channelService.getDeviceId(),q=_.J4(this.connectedDevices_,function(G){return G.type=="REMOTE_CONTROL"&&G.id!=M});
return q?q.id:""};
_.N.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.N.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.N.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.N.JSC$20101_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var n6v=function(M){_.PR(M.idleDisconnectTimerId_);M.idleDisconnectTimerId_=_.lj(function(){M.JSC$20101_disconnect_(1)},864E5)},G15=function(M,q,G){G?zT("Sending: action="+q+", params="+(0,_.i2)(G)):zT("Sending: action="+q);
M.channelService.sendMessage(q,G)};
Mf.prototype.sendMessageWithUserAction_=function(M,q){G15(this,M,q);n6v(this)};
Mf.prototype.JSC$20101_getXsrfToken_=function(){var M=_.Iu.get("SAPISID","")||_.Iu.get("__Secure-1PAPISID",void 0)||"",q=_.Iu.get("__Secure-3PAPISID","")||"";if(!M&&!q)return"";M=_.ZU(_.DG(M),2);q=_.ZU(_.DG(q),2);return _.ZU(_.DG(","+M+","+q),2)};
Mf.prototype.subscribe=Mf.prototype.subscribe;Mf.prototype.unsubscribeByKey=Mf.prototype.unsubscribeByKey;Mf.prototype.getProxyState=Mf.prototype.getProxyState_;Mf.prototype.disconnect=Mf.prototype.JSC$20101_disconnect_;Mf.prototype.getPlayerContextData=Mf.prototype.getPlayerContextData_;Mf.prototype.setPlayerContextData=Mf.prototype.setPlayerContextData_;Mf.prototype.getOtherConnectedRemoteId=Mf.prototype.getOtherConnectedRemoteId_;Mf.prototype.getReconnectTimeout=Mf.prototype.getReconnectTimeout_;
Mf.prototype.getAutoplayMode=Mf.prototype.getAutoplayMode_;Mf.prototype.getAutoplayVideoId=Mf.prototype.getAutoplayVideoId_;Mf.prototype.reconnect=Mf.prototype.JSC$20101_reconnect_;Mf.prototype.sendMessage=Mf.prototype.sendMessageWithUserAction_;Mf.prototype.getXsrfToken=Mf.prototype.JSC$20101_getXsrfToken_;Mf.prototype.isCapabilitySupportedOnConnectedDevices=Mf.prototype.isCapabilitySupportedOnConnectedDevices_;var thw=function(M){ZN.call(this,"ScreenServiceProxy");this.instance_=M;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.Ju)(this.JSC$20104_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.Ju)(this.onOnlineScreenChange_,this)))};
_.l(thw,ZN);_.N=thw.prototype;_.N.getScreens=function(M){return this.instance_.$_gs(M)};
_.N.contains=function(M){return!!this.instance_.$_c(M)};
_.N.get=function(M){return this.instance_.$_g(M)};
_.N.start=function(){this.instance_.$_st()};
_.N.add=function(M,q,G){this.instance_.$_a(M,q,G)};
_.N.remove=function(M,q,G){this.instance_.$_r(M,q,G)};
_.N.updateName=function(M,q,G,K){this.instance_.$_un(M,q,G,K)};
_.N.disposeInternal=function(){for(var M=this.subscriptionKeys_.length,q=0;q<M;++q)this.instance_.$_ubk(this.subscriptionKeys_[q]);this.subscriptionKeys_.length=0;this.instance_=null;ZN.prototype.disposeInternal.call(this)};
_.N.JSC$20104_onScreenChange_=function(){this.publish("screenChange")};
_.N.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
xY.prototype.$_st=xY.prototype.start;xY.prototype.$_gspc=xY.prototype.JSC$20063_getScreenByPairingCode;xY.prototype.$_gsppc=xY.prototype.JSC$20063_getScreenByPollingPairingCode;xY.prototype.$_c=xY.prototype.contains;xY.prototype.$_g=xY.prototype.get;xY.prototype.$_a=xY.prototype.add;xY.prototype.$_un=xY.prototype.updateName;xY.prototype.$_r=xY.prototype.remove;xY.prototype.$_gs=xY.prototype.getScreens;xY.prototype.$_gos=xY.prototype.JSC$20063_getOnlineScreens;xY.prototype.$_s=xY.prototype.subscribe;
xY.prototype.$_ubk=xY.prototype.unsubscribeByKey;var YFR=null,whR=!1,Vh=null,RP=null,h25=null,ei=[];var djw=new _.F8("yt-menu"),v65=function(){},tQE=function(M,q,G){M=q=="right-click"?G.rightClickMenuPopupHint:G.menuPopupHint;
if(!(h8w(q)>10))return q=q||"default",djw.set(q+"-impression",h8w(q)+1),M},h8w=function(M){return parseInt(djw.get((M||"default")+"-impression")||0,10)};
_.mi(v65);var OMI=function(){this.contexts_=new WeakMap;this.JSC$20110_networkService_=this.activeContext_=null},wPU=function(M,q,G){var K=M.contexts_.get(q);
K||(K=new lDP(M.JSC$20110_networkService_),M.contexts_.set(q,K));M.activeContext_=K;G&&M.activeContext_.reset();M.activeContext_.start();return M.activeContext_};var mW=function(){};
mW.prototype.enqueue=function(){var M=this,q;return _.L(function(G){if(M.isCounterfactual())return(q=M.getCounterfactualData())&&M.shouldLogCounterfactualImpression()&&M.sendImpressionEndpoints(q),G.return();M.doEnqueue();_.gL(G)})};
mW.prototype.sendImpressionEndpoints=function(M){_.GC.getInstance().triggerOptionalAction("yt-service-request",{},M[0])};var St=function(M,q){this.renderer=M;this.page=q};
_.l(St,mW);St.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
St.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
St.prototype.shouldLogCounterfactualImpression=function(){return!0};
St.prototype.doEnqueue=function(){var M=_.Sc(this.page);M&&M.pause();this.renderer.impressionCommand&&_.GC.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Js(_.GC.getInstance(),[this.renderer.promoCommand],this.page)};var Cxw=function(M,q){this.renderer=M;this.resolver=_.u8();this.JSC$20122_enforcementCounter=new _.GII;q?this.JSC$20122_playerManager=_.Sc(q):this.JSC$20122_playerManager=null;_.Gu(1,!0)};
_.l(Cxw,mW);_.N=Cxw.prototype;_.N.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var M=[];this.renderer.impressionEndpoints.forEach(function(q){(q=_.aM(q))&&M.push(q)});
return M}};
_.N.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.N.shouldLogCounterfactualImpression=function(){var M=_.Q$s();M?(this.JSC$20122_enforcementCounter.increment("POPUP"),_.Gu(3)):_.Gu(2);return M};
_.N.cancel=function(){this.resolver.promise.cancel()};
_.N.doEnqueue=function(){var M=this;_.Q$s()?(this.JSC$20122_enforcementCounter.increment("POPUP"),_.Gu(3),asI(this)):this.JSC$20122_playerManager?(this.resolver.promise.then(function(){asI(M)}),o6L(this.resolver,this.JSC$20122_playerManager)):_.Gu(2)};
var o6L=function(M,q){var G=_.u8();q.getPlayerPromise().then(function(K){G.resolve(K)});
G.promise.then(function(K){K.addEventListener("onAbnormalityDetected",M.resolve);_.l2(M.promise,function(){K.removeEventListener("onAbnormalityDetected",M.resolve)})});
M.promise.thenCatch(function(){G.promise.cancel()})},asI=function(M){_.Gu(3);
var q={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:M.renderer}};q=_.GC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:q},{});Promise.all(q).then(function(){lsn();M.JSC$20122_playerManager&&M.JSC$20122_playerManager.pause()})},lsn=function(){WYv(function(M,q){_.nAP(M,q);
M===0?_.Gu(7):_.Gu(4)})};var XPE=function(M,q){this.renderer=M;this.page=q;this.resolver=_.u8()};
_.l(XPE,mW);_.N=XPE.prototype;_.N.cancel=function(){this.resolver.promise.cancel()};
_.N.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.N.isCounterfactual=function(){return!this.renderer.isVisible};
_.N.shouldLogCounterfactualImpression=function(){return!0};
_.N.doEnqueue=function(){var M=this;this.resolver.promise.then(function(){var G={popup:{mealbarPromoRenderer:M.renderer},popupType:"MEALBAR"};_.GC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:G},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var q=_.Sc(this.page);q&&Px5(this.resolver,q)}break;default:this.resolver.resolve()}};
var Px5=function(M,q){var G=_.u8();q.getPlayerPromise().then(function(K){G.resolve(K)});
G.promise.then(function(K){K.addEventListener("onAdEnd",M.resolve);_.l2(M.promise,function(){K.removeEventListener("onAdEnd",M.resolve)})});
M.promise.thenCatch(function(){G.promise.cancel()})};var iMP=function(M,q){this.renderer=M;this.page=q};
_.l(iMP,mW);_.N=iMP.prototype;_.N.cancel=function(){this.JSC$20130_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20130_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20130_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.N.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.N.isCounterfactual=function(){return!this.renderer.isVisible};
_.N.shouldLogCounterfactualImpression=function(){return!0};
_.N.doEnqueue=function(){var M=this,q,G;((q=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(G=q.playbackUpsellDialogTriggerConditionData)==null?void 0:G.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$20130_downloadedVideosCountSelectorUnsubscriber=_.IQ(_.zw(),LYg,function(K,n){K>n&&(cX8(M),M.cancel())}):cX8(this)};
var cX8=function(M){var q={popup:{upsellDialogRenderer:M.renderer},popupType:"MODAL"};_.GC.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:q},{});(M=_.Sc(M.page))&&M.pause()};var TT={},g6R=(TT.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",TT.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",TT.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",TT.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",TT.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",TT.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",TT.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",TT),BZv=function(M,q){this.renderer=M;this.targetManager=
q};
_.l(BZv,mW);_.N=BZv.prototype;_.N.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$20137_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$20137_downloadedVideosCountSelectorUnsubscriber(),this.JSC$20137_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.N.getCounterfactualData=function(){if(this.isCounterfactual()){var M;return(M=this.renderer.promoConfig)==null?void 0:M.impressionEndpoints}};
_.N.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.N.shouldLogCounterfactualImpression=function(){return!0};
_.N.doEnqueue=function(){var M=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$20137_downloadedVideosCountSelectorUnsubscriber=_.IQ(_.zw(),LYg,function(q,G){M.renderer.targetId&&q>G&&(HEI(M.targetManager,M.renderer.targetId,QKP(M)),M.cancel())});
break;default:HEI(this.targetManager,this.renderer.targetId,QKP(this))}};
var QKP=function(M){var q;if((q=M.renderer.suggestedPosition)==null?0:q.type)var G=g6R[M.renderer.suggestedPosition.type];G||(G="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:M.renderer},popupType:"HINT",position:G}}};var Isw=function(){this.previousPage=null},Djg;
Isw.prototype.registerPromoCommand=function(M,q){uBE(this,void 0,void 0,_.C(M.roadblock,LML),void 0,void 0,q)};
var uBE=function(M,q,G,K,n,E,p){M.previousPage!==p&&M.pendingTooltipPromo&&M.pendingTooltipPromo.cancel();M.previousPage=p;n?(M.pendingEnforcementPromo&&M.pendingEnforcementPromo.cancel(),M.pendingEnforcementPromo=new Cxw(n,p),M.pendingEnforcementPromo.enqueue()):E?(M.pendingCommandWrapperPromo=new St(E,p),M.pendingCommandWrapperPromo.enqueue()):K?(M.pendingRoadblockPromo&&M.pendingRoadblockPromo.cancel(),M.pendingRoadblockPromo=new iMP(K,p),M.pendingRoadblockPromo.enqueue()):q?(M.pendingMealbarPromo&&
M.pendingMealbarPromo.cancel(),M.pendingMealbarPromo=new XPE(q,p),M.pendingMealbarPromo.enqueue()):G&&(M.pendingTooltipPromo&&M.pendingTooltipPromo.cancel(),M.pendingTooltipPromo=new BZv(G,_.lW()),M.pendingTooltipPromo.enqueue())},JX5=function(){Djg||(Djg=new Isw);
return Djg};var lQv=!1;var siw=function(M,q){var G=_.R9("SESSION_INDEX");this.actionToken_=M;this.commonToken_=q;this.sessionIndex_=G},$eR=function(M){var q=_.u8(),G=_.sx("payments.business.integration.bootstrap"),K=_.sx("payments.business.integration"),n=K.Style.create().withMaterialDesignStyle(),E=K.mashupMode.popup("instrument-manager");
G.asMashupMode(E).usingUserIndex(M.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(n).inStandaloneContext(K.standaloneContextAuthId.forUserId()).instrumentManager(M.actionToken_,M.commonToken_.length>0?M.commonToken_:void 0,function(p){var y=p.instrumentId;y?q.resolve(y):(y=_.sx("payments.business.integration.scenario.InstrumentManager"),q.reject(p.errorCode&&p.errorCode===y.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(p){_.eK(p);
q.reject("instrumentManagerLoadError")});
return q.promise};var nq=function(M,q,G){this.payloadName="transactionFlowFailed";this.payload={errorType:M,serializedTransactionFlowLoggingParams:q,isUserDismiss:G===void 0?!1:G}};
_.Y5("yt.ypc.shared.YpcTransactionFlowError",nq);var rH=function(){return _.kA.apply(this,arguments)||this};
_.l(rH,_.kA);rH.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
rH.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
rH.prototype.onErrorMessageDismiss=rH.prototype.onErrorMessageDismiss;_.T([_.B({readOnly:!0,observer:"errorRendererChanged"}),_.r("design:type",Object)],rH.prototype,"errorRenderer",void 0);_.T([_.GQ("yt-live-chat-error-message-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rH.prototype,"onErrorMessageDismiss",null);_.T([_.pT()],rH);var ZMI=[rH.prototype];var bMw;var UjL;var xjI=new _.F8("yt-live-chat"),z8g=new Map;z8g.set("timestamp_toggle","show-timestamps");z8g.set("reactions_toggle","allow-reactions");var jt=function(){return _.Q.apply(this,arguments)||this};
_.l(jt,_.Q);_.N=jt.prototype;_.N.menuItemIdentifierChanged=function(){var M;(M=this.data)!=null&&M.menuItemIdentifier&&(M=z8g.get(this.data.menuItemIdentifier))&&(_.w("enable_lwe_web_mute")?(M=xjI.get(M),this.isToggled=!(M===void 0?!this.data.isToggled:!M)):this.isToggled=xjI.get(M))};
_.N.onFocus=function(){this.toggleButton.focus()};
_.N.onTap=function(){var M=this.data.command;M&&this.componentBehavior.resolveCommand(M)};
_.N.computeText=function(M,q,G){return this.componentBehavior.getSimpleString(M?G:q)};
_.N.computeIcon=function(M,q,G){return(M=M?G:q)&&M.iconType?_.H4(M.iconType):""};
jt.prototype.onTap=jt.prototype.onTap;jt.prototype.onFocus=jt.prototype.onFocus;jt.prototype.menuItemIdentifierChanged=jt.prototype.menuItemIdentifierChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jt.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],jt.prototype,"componentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jt.prototype,"data",void 0);
_.T([_.B({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.r("design:type",String)],jt.prototype,"icon",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],jt.prototype,"isToggled",void 0);_.T([_.ET("tp-yt-paper-toggle-button"),_.r("design:type",Object)],jt.prototype,"toggleButton",void 0);_.T([_.KT("data.menuItemIdentifier"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jt.prototype,"menuItemIdentifierChanged",null);
_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jt.prototype,"onFocus",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],jt.prototype,"onTap",null);_.T([_.aO({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],jt);
_.z(jt,"yt-live-chat-toggle-renderer",function(){if(UjL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;bMw===void 0&&(bMw=document.createElement("template"));var K=bMw;G.call(q,K.content.cloneNode(!0),M.content.firstChild);UjL=M}M=UjL;return M},{mode:_.w("live_chat_enable_sink_wrapper")?2:0});var mjn=new _.$k("NAVIGATION_PROGRESS_TOKEN");var SPw={},TZI={},rX8=(TZI[$NI.name]=!0,TZI),VC=function(){var M=_.kA.apply(this,arguments)||this;M._noAccessors=!0;M.tabGesturesIsActive=!1;M.actionRouterIsRoot=!0;M.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"};M.pageTitle="";M.titleSuffix="YouTube";M.unseenNotificationCount=
0;M.hasNavigated=!1;M.hasSetScrollTopForNavigation=!1;M.pagePreparer=null;M.zwiebackInitJobId=0;M.dataUpdatePromise=null;M.loadDepsPromise=_.HF();M.hasPendingNavigation=!1;M.pendingPlayerOnResponseReceivedActions=[];return M};
_.l(VC,_.kA);VC.prototype.attached=function(){jKU(this);document.addEventListener("yt-navigate-cache",_.qs(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var M=Rb();M.init();M.dispatchElement=this.hostElement};
var jKU=function(M,q){q=q===void 0?0:q;var G=_.AL().resolve(_.WR(_.oq));if(G)VQI(M,G);else{if(q>=5)throw Error("sl");setTimeout(function(){jKU(M,q+1)},0)}},VQI=function(M,q){q.addEventListener("yt-navigate-start",_.qs(M,M.onYtNavigateStart));
q.addEventListener("yt-navigate-finish",_.qs(M,M.onYtNavigateFinish));q.addEventListener("yt-navigate-error",_.qs(M,M.onYtNavigateError));q.addEventListener("yt-page-data-fetched",_.qs(M,M.onYtPageDataFetched))};
_.N=VC.prototype;_.N.detached=function(){var M=_.AL().resolve(_.oq);M.removeEventListener("yt-navigate-start",_.qs(this,this.onYtNavigateStart));M.removeEventListener("yt-navigate-finish",_.qs(this,this.onYtNavigateFinish));M.removeEventListener("yt-navigate-error",_.qs(this,this.onYtNavigateError));M.removeEventListener("yt-page-data-fetched",_.qs(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.qs(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.N.setPageOffset=function(M,q){M?_.VW(this.hostElement,"yt-set-page-offset",[M,q]):_.T6(Error("tl"))};
_.N.setPageOffsetForNavigation=function(M,q){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(M,q))};
_.N.onYtNavigateSetPageOffset=function(M,q){this.setPageOffsetForNavigation(q.page,q.offset)};
_.N.getPageOffset=function(){var M=_.f_(this.hostElement).querySelector("#page-manager").getCurrentPage(),q=0;M&&(q=_.VW(this.hostElement,"yt-get-page-offset",[M])[0]);return q};
_.N.onYtHistoryPop=function(M,q){if(_.fX("DISABLE_WARM_LOADS"))M.preventDefault(),window.location.reload();else{var G=_.AL().resolve(_.oq);G.hasPendingNavigation()&&M.preventDefault();G.cancelPendingNavigation();_.Rf(this.hostElement,"yt-pending-navigation-cancelled");q.errorMsg&&(M=q.errorMsg.split(" - "),q=Error(M[0]),M.length==2&&M[1]&&(_.V2(q,M[1]),_.j1(q)),window.location.reload())}};
_.N.onYtHistoryLoad=function(M,q){var G=this;if(_.fX("DISABLE_WARM_LOADS"))window.location.reload();else{(M=q.endpoint)&&Object.keys(M).length||(M=null);var K=q.historyEntry,n=_.AL().resolve(_.oq),E=_.AL().resolve(_.md),p=null;K&&K.rootData&&(p=K.rootData);var y=p&&R88(p);!p||y||p.filler?M?(n.navigate(M,!0),fsL(this,M)):(q.legacyBorder||y||(q.JSC$30449_savedComponentState==null&&p==null?_.j1(new _.bj("Incomplete history entry",q.forward)):_.rM(new _.bj("Malformed history entry",q.JSC$30449_savedComponentState,
q.forward,p))),window.location.reload()):(_.jDs({isHot:!0}),_.t2({webInfo:{navigationReason:"h"}}),_.oB$(),_.oJ("srt"),_.oJ("pdc"),this.cancelPendingTasks(),FOn(this,q.forward,p),p.player&&(p.player.loaded=!1),fsL(this,M),_.oX2(n,M||{},p,2,{},!1,q).then(function(){G.setPageOffset(E.getCurrentPage(),K.scrollTop||0)}))}};
_.N.initHistoryManager=function(M){if(!this.hasNavigated){this.hasNavigated=!0;var q=_.f_(this.hostElement).querySelector("#page-manager").getCurrentData();M=isNaN(M)?this.getPageOffset():M;var G=_.AL().resolve(_.oq).currentEndpoint;this.replaceState(G,q,M)}};
_.N.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.N.onYtNavigateStart=function(M,q){this.cancelPendingTasks();q.noProgressBar||(M=_.AL().resolve(_.WR(mjn)))&&M.start();M=this.hasPendingNavigation?null:this.data;var G=_.AL().resolve(_.md),K,n,E;_.w("kevlar_use_vimio_behavior")&&!((K=q.endpoint)==null?0:(n=K.commandMetadata)==null?0:(E=n.webCommandMetadata)==null?0:E.ignoreNavigation)&&(K=G.getCurrentPage())&&K.disconnectVisibilityRoot();G.prepareForNavigation(q.pageType,q.endpoint);_.w("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.K3(1,
"pcl"),_.n3(this.pagePreparer,G.preparePage.bind(G,q.pageType,q.endpoint)));K=this.getPageOffset();this.initHistoryManager(K);q.reload||this.hasPendingNavigation?((_.w("web_enable_delay_shorts_sequence_call")||_.w("web_enable_shorts_sequence_cache_fix"))&&q.pageType==="shorts"&&q.reload&&_.jP(this.hostElement,"yt-shorts-reset"),this.replaceState(q.endpoint,M,K)):(M==null?void 0:M.page)==="watch"&&q.pageType==="watch"&&_.w("kevlar_replace_watch_to_watch_history_state")?this.replaceState(q.endpoint,
M,K):(M==null?void 0:M.page)!=="shorts"||q.pageType!=="shorts"||q.endpoint.reelWatchEndpoint.sequenceParams||_.w("short_to_short_back_nav_killswitch")?q.type!="navigate-back"&&q.type!="navigate-forward"&&(q.pageType==="shorts"&&_.jP(this.hostElement,"yt-shorts-reset"),this.saveAndPush(q.url,q.endpoint,M,K)):(_.w("web_enable_delay_shorts_sequence_call")&&(q.endpoint.reelWatchEndpoint.sequenceParams=M==null?void 0:M.cachedSequenceParams,q.endpoint.reelWatchEndpoint.sequenceProvider=M==null?void 0:M.cachedSequenceProvider),
this.replaceState(q.endpoint,M,0));this.hasPendingNavigation=!0};
var HMn=function(M){M.hasPendingNavigation=!1;(M=_.AL().resolve(_.WR(mjn)))&&M.finish()};
VC.prototype.onYtNavigateError=function(M,q){HMn(this);M=this.get("endpoint.commandMetadata.webCommandMetadata.url",q);var G=_.nD(window.location.href);M&&!G.pbjreload&&(q=q.navigationErrorReason||"10",_.w("kevlar_parent_on_pbjreload")&&(G={csn:_.Cx()},this.get("data.endpoint.clickTrackingParams")&&(G.itct=this.data.endpoint.clickTrackingParams),_.xD(M,G)),_.PE(_.Ex(M,{pbjreload:q})))};
VC.prototype.onYtNavigateCache=function(M,q){var G=this,K=q.url,n=q.endpoint,E=q.data;M=!!q.miniplayer;q=!!q.skipHistory;if(K&&n&&E){var p=this.getPageOffset(),y=this.data||null;q||this.saveAndPush(K,n,y,p);K=_.oX2(_.AL().resolve(_.oq),n,E,M?4:3,{},M);M&&K.then(function(){G.dataUpdatePromise&&G.dataUpdatePromise.then(function(){var Y=_.AL().resolve(_.md);G.setPageOffset(Y.getCurrentPage(),0)})})}};
VC.prototype.onYtNavigateFinish=function(M,q){var G=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){e8L(G,q.fromHistory)})};
var e8L=function(M,q){HMn(M);if(M.pendingPlayerOnResponseReceivedActions){for(var G=_.k(M.pendingPlayerOnResponseReceivedActions),K=G.next();!K.done;K=G.next())_.sE(K.value,M.hostElement);M.pendingPlayerOnResponseReceivedActions=[]}G=_.AL().resolve(_.md);q||!M.hasNavigated||_.w("web_disable_scroll_on_navigate_finish")||((q=G.getCurrentPage())?q.is==="ytd-shorts"||M.tabGesturesIsActive||M.setPageOffsetForNavigation(q,0):_.j1(Error("ul")));_.g4(function(){_.g4(function(){_.oJ("pda")})})};
VC.prototype.onYtNavigate=function(M){if(!M.detail.endpoint){var q=new _.bj("Error: Missing yt-navigate endpoint from target:",M.target,M.target.nodeName);_.T6(q)}if(q=_.w("cold_missing_history"))q=Rb(),q.init(!1),q=!(q.browserHistory.boundHistoryReplaceState&&q.browserHistory.boundHistoryPushState);if(q){_.Vz("DISABLE_WARM_LOADS",!0);q=new _.bj("Failed to initialize history manager",this.getDebugString());var G=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
G?_.j1(q):_.T6(q)}q=M.detail.endpoint;var K,n;_.w("debug_forward_web_query_parameters")&&((K=q.commandMetadata)==null?0:(n=K.webCommandMetadata)==null?0:n.url)&&(q=JSON.parse(JSON.stringify(q)),q.commandMetadata.webCommandMetadata.url=_.Wbu(q.commandMetadata.webCommandMetadata.url,window.location.search));M={type:0,command:q,form:{params:M.detail.params,tempData:M.detail.tempData||{},requestType:M.detail.type,createScreenConfig:M.detail.createScreenConfig,reload:M.detail.reload?M.detail.reload:!1,
requestForm:M.detail}};_.w("kevlar_yt_navigate_command_handler")?(K=_.AL().resolve(_.vR),M.form.skipDefaultElement=!0,K.resolveCommand(q,{form:M.form})):this.handleNavigate(M)};
VC.prototype.handleNavigate=function(M){this.hasSetScrollTopForNavigation=!1;var q=_.AL().resolve(_.oq),G=M.form||{};q.navigate(M.command,G.reload,G.params,G.tempData,G.requestType,G.createScreenConfig,G.ignoreConfirmation,G.requestForm)&&fsL(this,M.command,G.tempData)};
VC.prototype.onYtPageDataFetched=function(M,q){try{_.Ynf().reset();this.data=q.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.AL().resolve(_.md).updatePageData(this.data);var G=this.get("playerResponse.onResponseReceivedActions",this.data);G&&(G=$jI(this,G));G&&_.FH(this.hostElement,G,this.hostElement);var K=this.get("playerResponse.responseContext.consistencyTokenJar",
this.data),n=this.get("response.responseContext.consistencyTokenJar",this.data);if(K||n){var E=_.d4i(),p=(0,_.xP.getValues)(E.tokenJars);K&&E.replace(p,K);n&&E.replace(p,n)}}catch(y){_.T6(y)}};
var fsL=function(M,q,G){try{M.onYtEndpointChangeHandler(q,G)}catch(K){_.T6(K)}};
_.N=VC.prototype;_.N.onYtEndpointChangeHandler=function(){};
_.N.setPageTitle=function(M){M=(this.pageTitle=M)?M+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+M};
_.N.onYtUpdateTitle=function(M,q){this.setPageTitle(q)};
_.N.setUnseenNotificationCount=function(M){this.unseenNotificationCount=M;this.setPageTitle(this.pageTitle)};
_.N.handleUpdateNotificationsUnseenCountAction=function(M){_.C(M,u0n)&&((M=_.C(M,u0n).unseenCount)?this.setUnseenNotificationCount(M):this.setUnseenNotificationCount(0))};
_.N.handleClearCookieAction=function(M){var q;(M=(q=_.C(M,Bpn))==null?void 0:q.cookieName)&&_.I_e(M)};
_.N.onYtUpdateUnseenNotificationCount=function(M,q){this.setUnseenNotificationCount(q)};
_.N.loadData=function(M){var q=this;this.loadDepsPromise.then(function(){var G=_.AL().resolve(_.WR(_.oq));G||_.T6(Error("vl"));if(M&&M.response){if(!M.endpoint){var K=_.BF(window.document.location.href)||"/",n="";if(K==="/"||K.startsWith("/?"))n="WEB_PAGE_TYPE_BROWSE";M.endpoint={commandMetadata:{webCommandMetadata:{url:K,webPageType:n,rootVe:3854}}}}_.oX2(G,M.endpoint,M,5,{})}else M.endpoint?G.navigate(M.endpoint):G.navigate(_.Qa);_.r8.cancelJob(q.zwiebackInitJobId);q.zwiebackInitJobId=_.r8.addLowPriorityJob(Xh5)})};
var Rb=function(){return _.AL().resolve(_.oc)};
VC.prototype.getDebugString=function(){return Rb().getDebugString()};
VC.prototype.getThirdPartyManipulationSuspected=function(){return Rb().getThirdPartyManipulationSuspected()};
VC.prototype.replaceState=function(M,q,G){Rb().saveAndReplace(M,q,G)};
VC.prototype.saveAndPush=function(M,q,G,K){Rb().saveAndPush(M,q,G,K)};
var R88=function(M){return _.C(M.endpoint,_.Jl)||_.C(M.endpoint,_.p_)?!0:!M||isNaN(M.expirationTime)?!1:(0,_.d8)()>M.expirationTime},FOn=function(M,q,G){var K=M.get("response.trackingParams",G),n=_.wt(),E=_.Cx();
if(K&&n&&E&&(K=M.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",G),!K&&G.rootVe&&(K=G.rootVe),n=q?"forwardButton":"backButton",q=M.get("playerResponse.topbar.desktopTopbarRenderer."+n+".buttonRenderer.command.clickTrackingParams",M.data),M=M.get("response.topbar.desktopTopbarRenderer."+n+".buttonRenderer.command.clickTrackingParams",M.data),q=(M=q||M)?_.yx(M):void 0,M=_.nl(),n=[_.HF(G)],_.aQ(M,K,q,{dataPromises:n,csnToClone:G.csn}),G.graftedVes))for(G=
_.k(G.graftedVes),K=G.next();!K.done;K=G.next())_.oQ(M,K.value)};
VC.prototype.onStoreGraftedVeAction=function(M){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(M)):_.j1(Error("wl"))};
var $jI=function(M,q){return q.filter(function(G){for(var K in G)if(rX8[K])return M.pendingPlayerOnResponseReceivedActions.push(G),!0;return!1})};
_.Yd.Object.defineProperties(VC.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
VC.prototype.onStoreGraftedVeAction=VC.prototype.onStoreGraftedVeAction;VC.prototype.loadData=VC.prototype.loadData;VC.prototype.onYtUpdateUnseenNotificationCount=VC.prototype.onYtUpdateUnseenNotificationCount;VC.prototype.handleClearCookieAction=VC.prototype.handleClearCookieAction;VC.prototype.handleUpdateNotificationsUnseenCountAction=VC.prototype.handleUpdateNotificationsUnseenCountAction;VC.prototype.setUnseenNotificationCount=VC.prototype.setUnseenNotificationCount;
VC.prototype.onYtUpdateTitle=VC.prototype.onYtUpdateTitle;VC.prototype.setPageTitle=VC.prototype.setPageTitle;VC.prototype.onYtEndpointChangeHandler=VC.prototype.onYtEndpointChangeHandler;VC.prototype.onYtPageDataFetched=VC.prototype.onYtPageDataFetched;VC.prototype.handleNavigate=VC.prototype.handleNavigate;VC.prototype.onYtNavigate=VC.prototype.onYtNavigate;VC.prototype.onYtNavigateFinish=VC.prototype.onYtNavigateFinish;VC.prototype.onYtNavigateCache=VC.prototype.onYtNavigateCache;
VC.prototype.onYtNavigateError=VC.prototype.onYtNavigateError;VC.prototype.onYtNavigateStart=VC.prototype.onYtNavigateStart;VC.prototype.cancelPendingTasks=VC.prototype.cancelPendingTasks;VC.prototype.initHistoryManager=VC.prototype.initHistoryManager;VC.prototype.onYtHistoryLoad=VC.prototype.onYtHistoryLoad;VC.prototype.onYtHistoryPop=VC.prototype.onYtHistoryPop;VC.prototype.onYtNavigateSetPageOffset=VC.prototype.onYtNavigateSetPageOffset;VC.prototype.setPageOffset=VC.prototype.setPageOffset;
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],VC.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],VC.prototype,"data",void 0);_.T([_.GQ("yt-navigate-set-page-offset"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],VC.prototype,"onYtNavigateSetPageOffset",null);
_.T([_.GQ("yt-history-pop"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],VC.prototype,"onYtHistoryPop",null);_.T([_.GQ("yt-history-load"),_.r("design:type",Function),_.r("design:paramtypes",[Event,_.xm$]),_.r("design:returntype")],VC.prototype,"onYtHistoryLoad",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],VC.prototype,"onYtNavigate",null);
_.T([_.GQ("yt-update-title"),_.r("design:type",Function),_.r("design:paramtypes",[Event,String]),_.r("design:returntype")],VC.prototype,"onYtUpdateTitle",null);_.T([_.GQ("yt-update-unseen-notification-count"),_.r("design:type",Function),_.r("design:paramtypes",[Event,Number]),_.r("design:returntype")],VC.prototype,"onYtUpdateUnseenNotificationCount",null);_.T([_.pT()],VC);SPw.YtdAppBehavior=[_.wg.YtActionHandlerBehavior,VC.prototype];var ft=function(){var M=_.kA.apply(this,arguments)||this;M._noAccessors=!0;return M};
_.l(ft,_.kA);ft.prototype.ready=function(){var M=this;_.f_(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){M.onChange_()})};
ft.prototype.dataChanged_=function(){_.f_(this.hostElement).querySelector("#checkbox").checked=!1};
ft.prototype.onChange_=function(){var M=_.f_(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.jP(this.hostElement,"yt-dismissal-reason-"+M,this.data.feedbackToken)};
ft.prototype.dataChanged_=ft.prototype.dataChanged_;_.T([_.B(),_.r("design:type",Object)],ft.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ft.prototype,"dataChanged_",null);_.T([_.pT()],ft);var sdE=[ft.prototype];var Ff=function(){var M=_.kA.apply(this,arguments)||this;M.timeoutJobId=0;M.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return M};
_.l(Ff,_.kA);Ff.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
Ff.prototype.startTimeout=function(){var M=this,q=this.data&&this.data.displayDurationSeconds;q&&!this.timeoutJobId&&(this.timeoutJobId=_.Jp(_.r8,function(){_.VW(M.hostElement,"yt-close-popup-action",[M.is]);M.timeoutJobId=0},q*1E3))};
Ff.prototype.cancelTimeout=function(){_.r8.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
Ff.prototype.ytdHatsSurveyBehaviorDataChanged=Ff.prototype.ytdHatsSurveyBehaviorDataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Ff.prototype,"ytActionHandlerBehavior",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ff.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.T([_.pT()],Ff);var MyP=[_.wg.YtActionHandlerBehavior,Ff.prototype];var qts=function(M,q){var G;return((G=M.prefixMapping)==null?0:G[q])?M.prefixMapping[q]:M.SHARED_RENDERERS_.hasOwnProperty(q)?"yt":M.prefix},Hi={DIALOG:{component:"tp-yt-paper-dialog",
properties:{withBackdrop:!0,modern:!0,modal:!1},preventAutonav:!0},FULLSCREEN_OVERLAY:{component:null,properties:{withBackdrop:!0}},DROPDOWN:{component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0},HINT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",
verticalOffset:15,withBackdrop:!1},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",
horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,
shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},forceCloseOnOutsideClick:!0,forceFocus:!0,slotName:"dropdown-content"},HINT_PERSISTENT:{component:"tp-yt-iron-dropdown",properties:{allowOutsideScroll:!0,dynamicAlign:!1,horizontalAlign:"center",noOverlap:!0,scrollAction:"refit",verticalAlign:"bottom",verticalOffset:15,withBackdrop:!1,noAutoFocus:!0},positionalProperties:{OPEN_POPUP_POSITION_TOP:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"bottom",verticalOffset:15},
OPEN_POPUP_POSITION_TOPLEFT:{horizontalAlign:"right",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_TOPRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"bottom",verticalOffset:15},OPEN_POPUP_POSITION_LEFT:{horizontalAlign:"right",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",horizontalOffset:12,verticalAlign:"middle",verticalOffset:0},
OPEN_POPUP_POSITION_BOTTOM:{horizontalAlign:"center",horizontalOffset:0,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMLEFT:{horizontalAlign:"right",horizontalOffset:12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12},OPEN_POPUP_POSITION_BOTTOMRIGHT:{horizontalAlign:"left",horizontalOffset:-12,shiftedHorizontalOffset:24,verticalAlign:"top",verticalOffset:12}},slotName:"dropdown-content"},LOCKED_OVERLAY_DIALOG:{component:"tp-yt-paper-dialog",properties:{restoreFocusOnClose:!0,
scrollAction:"lock",withBackdrop:!0},preventAutonav:!0}};Hi.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.w("kevlar_mealbar_above_player"),modern:!0,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"}};
Hi.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Hi.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Hi.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Hi.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)"}};
Hi.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};
Hi.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};
Hi.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};
Hi.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},positionalProperties:{OPEN_POPUP_POSITION_RIGHT:{horizontalAlign:"left",verticalAlign:"middle"}},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};
Hi.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"}};Hi.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Hi.TOAST={component:null,properties:{}};var Gxn=new function(M,q,G){this.supportedPopups=M;this.navigationEndpointPopupMap=q;this.popupTypeMap=G;this.supportedPopups=M;this.navigationEndpointPopupMap=q;this.popupTypeMap=G}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.w("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"}),KVI=new function(){this.prefix="ytd";this.prefixMapping=void 0;this.SHARED_RENDERERS_=
{aboutThisAdRenderer:!0,bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,
ypcUpgradeDialogRenderer:!0,loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$20188_popupConfig=Hi;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 now=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.zU.getInstance()},et=function(M,q){var G=M.pageNameToElement.get(q);
if(!G){switch(q){case "watch":var K=_.w("web_watch_force_learning_journey_for_testing")?_.Gz("ytd-watch-learning-journey"):_.w("kevlar_watch_fixie")?_.Gz("ytd-watch-fixie"):_.w("kevlar_watch_grid")?_.Gz("ytd-watch-grid"):_.Gz("ytd-watch-flexy");break;case "learning_journey_watch":K=_.Gz("ytd-watch-learning-journey");break;case "shorts":K=_.Gz("ytd-shorts");break;case "search":K=_.Gz("ytd-search");break;case "channel":K=_.Gz("ytd-browse");K.pageSubtype="channels";break;case "trending":K=_.Gz("ytd-browse");
K.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":K=
_.Gz("ytd-browse");K.pageSubtype=q;break;case "browse":K=_.Gz("ytd-browse");break;default:_.j1(new _.bj("Error getting page element for type",q))}G=K;M.pageNameToElement.set(q,G)}return G};
now.prototype.preparePage=function(M,q,G){G&&(M=_.K_(G)||M);if(M!=="watch"&&M!=="learning_journey_watch"){var K=this.elementPoolPopulator,n=M;n!=K.targetPage_&&K.pendingPages_.indexOf(n)>-1&&(K.targetPage_&&(K.pendingPages_.unshift(K.targetPage_),K.abort()),s1w(K,n),_.zj8(K,n))}if((K=et(this,M))||!_.C(G,_.q6)){K.isAttached||K===q||(K.hidden=!0);if(!K.data&&(M!=="watch"&&M!=="learning_journey_watch"||!_.w("swatcheroo_page_pool_dont_provide_filler_data"))){var E;if(M=(E=_.R9("FILLER_DATA",{})[M])==
null?void 0:E.response)K.data=M}return K}};var EoM=function(M){this.JSC$32417_clientRoot=M;this.playlistHandlerActionMap={"yt-add-to-playlist-command":uaR,"yt-end-playlist-command":JMg,"yt-recover-playlist-command":bsn,"yt-refresh-playlist-command":z2w,"yt-playlist-remove-videos-action":UKP};_.KI(_.GC.getInstance(),this.playlistHandlerActionMap,this.JSC$32417_clientRoot);yqU()},N05;var $3=function(M,q,G){this.apiKey=M;this.endpoint=q;this.confidenceThreshold=G===void 0?.5:G;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=q==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||q==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
q==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||q==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new ajw};
_.N=$3.prototype;
_.N.start=function(M){if(this.state===0)if(this.isOnline()){M.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=M.supportsHttpHeadersOverwriteParam);M.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=M.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.aJ("voice_assistant");_.lO("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=M.languageCode||"en-US";this.supportsCrossDomainXhr=M.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=M.youtubeAssistantRequest||null;this.listeningHandler=M.listeningHandler||this.listeningHandler;this.audioDetectedHandler=M.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=M.stopHandler||this.stopHandler;this.completeHandler=M.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=M.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=M.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
M.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=M.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=M.accessToken;this.additionalHeaders=M.additionalHeaders||{};var q;this.prefetchResponseTimeoutMs=(q=M.prefetchResponseTimeoutMs)!=null?q:this.prefetchResponseTimeoutMs;kxv(this);this.startAudio();pjI(this)}else this.errorHandler("OFFLINE")};
_.N.stop=function(M){var q=M===void 0?{}:M;M=q.logCancel===void 0?!0:q.logCancel;var G=q.logMicClosed===void 0?!0:q.logMicClosed;var K=q.handleError===void 0?!0:q.handleError;q=q.handleStop===void 0?!0:q.handleStop;this.state!==0&&(M&&sC("voz_cx"),MW(this,{logMicClosed:G,handleStop:q}),K&&this.errorHandler("ABORTED"))};
_.N.getState=function(){return this.state};
_.N.isSupported=function(){return!0};
_.N.stopAudio=function(M){(M===void 0||M)&&sC("voz_mf")};
_.N.startAudio=function(){sC("voz_vp");return _.HF(null)};
var yUs=function(M,q){M.channelOpen&&(M.state!==2&&(M.state=2,sC("voz_ss"),M.listeningHandler()),q=new Uint8Array(q),q='{ "audioIn": "'+_.ZU(q)+'" }',M.channel.send(q))},MW=function(M,q){var G=q===void 0?{}:q;
q=G.logMicClosed===void 0?!0:G.logMicClosed;G=G.handleStop===void 0?!0:G.handleStop;M.vozEndOfDataTimeout>-1&&(clearTimeout(M.vozEndOfDataTimeout),M.vozEndOfDataTimeout=-1);LVv(M);M.stopAudio(q);M.channel&&(M.channelOpen=!1,M.manuallyClosedChannel=!0,M.channel.close(),M.channel=void 0);M.transcribedSpeechResults=[];M.state=0;G&&M.stopHandler()},kxv=function(M){var q={httpHeadersOverwriteParam:M.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},M.additionalHeaders,M.accessToken&&M.isUsingVoz?{Authorization:"Bearer "+M.accessToken}:{"x-goog-api-key":M.apiKey}),supportsCrossDomainXhr:M.supportsCrossDomainXhr};M.channel=new hN(M.endpoint,q);M.channel.open();_.Yj(M.channel,"w",function(){var G=M.channel,K=G.send,n=M.isUsingVoz?"PLACEHOLDER":"example";n={config:{dialogStateIn:{languageCode:M.languageCode},deviceConfig:{deviceId:n,deviceModelId:n},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!M.isUsingVoz)n.config.requestType=4;else if(M.isUsingVoz&&M.youtubeAssistantRequest){var E=JSON.stringify(M.youtubeAssistantRequest);n.config.internalIn={youtubeAssistantS3InputJson:E}}K.call(G,n);M.channelOpen=!0;M.manuallyClosedChannel=!1});
_.Yj(M.channel,"x",function(){M.manuallyClosedChannel||(M.channelOpen=!1,M.channel=void 0,MW(M))});
_.Yj(M.channel,"z",function(G){if(G.data){LVv(M);for(var K=0;K<G.data.length;K++){var n=M,E=G.data[K],p=E.speechResults;if(p)a:{var y=[];E=[];var Y=!1;p=_.k(p);for(var A=p.next();!A.done;A=p.next()){A=A.value;if(A.noSpeech){MW(n);n.errorHandler("NO_SPEECH");break a}A.transcript!==void 0&&A.stability!==void 0&&(A.stability<n.confidenceThreshold&&(Y=!0),Y?E.push(A.transcript):y.push(A.transcript))}if(y.length!==0||E.length!==0)y=y.join(" "),E=E.join(" "),n.receivedEndOfUtterance&&!n.isUsingVoz?n.isUsingVoz||
n.completeHandler([y,E]):(Y=n,p=y,A=E,sC("voz_sf"),Y.transcriptionUpdateHandler(p,A),Y.transcribedSpeechResults=[p,A]),n.receivedEndOfUtterance&&(sC("voz_eou"),n.transcriptionCompleteHandler([y,E]),n.isUsingVoz&&(n.prefetchResponseTimeoutMs===0?MW(n,{logMicClosed:!1,handleStop:!0}):n.prefetchResponseTimeoutMs>0&&Ytw(n)))}else n.isUsingVoz&&(E==null?0:E.internalOut)?(E=JSON.parse(E.internalOut.youtubeAssistantS3OutputJson),E.userHasOptedInToVaa||E.vaaConsent?n.vaaConsentUpdateHandler(!!E.userHasOptedInToVaa,
!!E.vaaConsent):(WVw(n),E&&(y=n.transcribedSpeechResults,sC("voz_rqf"),n.completeHandler(y,E)))):E.eventType==="END_OF_UTTERANCE"?n.receivedEndOfUtterance=!0:(sC("voz_err"),n.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.j1(Error("xl")))}}});
_.Yj(M.channel,"y",function(G){MW(M);switch(G.status){case 1:G="WEBCHANNEL_NETWORK_ERROR";break;case 2:G="WEBCHANNEL_SERVER_ERROR";break;default:G="WEBCHANNEL_UNKNOWN_ERROR"}M.errorHandler(G);M.logError(Error(G))})};
$3.prototype.logError=function(M){_.T6(M)};
$3.prototype.isOnline=function(){return!0};
var Ytw=function(M){WVw(M);M.prefetchResponseSetTimeoutId=setTimeout(function(){MW(M,{logMicClosed:!1,handleStop:!0})},M.prefetchResponseTimeoutMs)},WVw=function(M){M.prefetchResponseSetTimeoutId>-1&&(clearTimeout(M.prefetchResponseSetTimeoutId),M.prefetchResponseSetTimeoutId=-1)},pjI=function(M){LVv(M);
M.noResponseReceivedTimeout=window.setTimeout(function(){MW(M);M.errorHandler("NO_SPEECH")},11E3)},LVv=function(M){M.noResponseReceivedTimeout>-1&&(window.clearTimeout(M.noResponseReceivedTimeout),M.noResponseReceivedTimeout=-1)},sC=function(M){_.oJ(M,void 0,"voice_assistant")};var qW=function(){$3.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.l(qW,$3);qW.prototype.isSupported=function(){return mKw()};
qW.prototype.startAudio=function(){var M=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.Aj(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(K){AUg(M,K)};
this.processor.connect(this.audioContext.destination);var q=function(K){M.stream=K;if(!M.audioContext)return _.HF(null);K=M.audioContext.createMediaStreamSource(K);M.processor&&K.connect(M.processor);return _.HF(null)},G={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?q(this.stream):(G=navigator.mediaDevices.getUserMedia(G))?G.then(q).catch(function(K){MW(M);K.name&&K.name==="NotAllowedError"?M.errorHandler("NO_MICROPHONE_PERMISSION"):(M.errorHandler("AUDIO_ERROR"),M.logError(K));return _.Aj(null)}):(MW(this),this.errorHandler("AUDIO_ERROR"),_.j1(Error("yl")));
return $3.prototype.startAudio.call(this)};
qW.prototype.stopAudio=function(M){M=M===void 0?!0:M;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(q){q.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;$3.prototype.stopAudio.call(this,M)};
qW.prototype.isOnline=function(){return navigator.onLine};
var AUg=function(M,q){if(M.audioContext)if(window.OfflineAudioContext){var G=M.audioContext.sampleRate,K=q.inputBuffer.getChannelData(0);q=new window.OfflineAudioContext(1,K.length,16E3);for(var n=q.createBuffer(1,K.length,G),E=n.getChannelData(0),p=0,y=0;y<K.length;y++)E[y]=K[y],p+=E[y]*E[y];!M.audioDetected&&Math.sqrt(p/K.length)>.01&&(M.audioDetected=!0,M.audioDetectedHandler());K=q.createBufferSource();K.buffer=n;K.connect(q.destination);K.start(0);q.oncomplete=function(Y){Y=Y.renderedBuffer.getChannelData(0);
for(var A=Math.floor(16384E3/G),v=new Int16Array(A),h=0;h<A;++h)v[h]=Math.max(-1,Math.min(1,Y[h]))*32767;yUs(M,v.buffer)};
q.startRendering()}else dwn(M,q)},dwn=function(M,q){var G=M.audioContext.sampleRate,K=q.inputBuffer.getChannelData(0),n=Math.floor((G+8E3)/16E3);
G=K.length/n;q=new Float32Array(G);for(var E=0;E<G;++E)q[E]=K[E*n];K=new Int16Array(G);for(n=0;n<G;++n)K[n]=Math.max(-1,Math.min(1,q[n]))*32767;yUs(M,K.buffer)};var voI={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var hiw=function(){this.JSC$20254_audioEnabled=!0;this.audioFeedbackHolder={}};
hiw.prototype.isPlaying=function(M){return M.currentTime>0&&!M.paused&&!M.ended&&M.readyState>2};
var tyg=function(M){for(var q=_.k(Object.values(voI)),G=q.next();!G.done;G=q.next())G=G.value,M.audioFeedbackHolder[G]=new Audio,M.audioFeedbackHolder[G].src="/s/search/audio/"+G+".mp3",M.audioFeedbackHolder[G].load()},Gr=function(M,q){if(M.JSC$20254_audioEnabled!==!1&&q in M.audioFeedbackHolder){for(var G=_.k(Object.values(M.audioFeedbackHolder)),K=G.next();!K.done;K=G.next())K=K.value,M.isPlaying(K)&&K.pause();
M.audioFeedbackHolder[q].currentTime=0;M.audioFeedbackHolder[q].play().catch(function(){})}};var OUv=function(M,q){var G=this;this.store=M;this.service=q;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){G.setState("offline");G.stop()};
this.audioPlayer=new hiw;var K;(K=this.audioPlayer)==null||tyg(K)};
_.N=OUv.prototype;_.N.getService=function(){return this.service};
_.N.isEnabled=function(){return!!this.service};
_.N.isSupported=function(){var M;return(M=this.service)==null?void 0:M.isSupported()};
_.N.start=function(){var M=this,q,G,K,n,E,p,y,Y,A,v,h,t,O;return _.L(function(a){switch(a.nextAddress){case 1:M.store.dispatch(hIP("",""));if(!navigator.onLine)return M.setState("offline"),a.return();window.addEventListener("offline",M.handleOfflineEvent);M.stream=null;if(!M.permissionsSupported){a.jumpTo(2);break}_.Cv(a,3);return a.yield(wjw(M),5);case 5:q=a.yieldResult;if(!q)return(G=M.audioPlayer)==null||Gr(G,"failure"),a.return();M.service.stream=M.stream;M.setState("listening");_.KF(a,2);break;
case 3:_.i5(a),M.permissionsSupported=!1;case 2:K={context:_.Uby(_.h0())},K.youtubeAssistantParams={searchParams:{inlineSearchResponse:M.enableInlineSearchResponse}},n=function(g,D){M.store.dispatch(tDw("transcribing"));M.store.dispatch(hIP(g,D))},E=function(){var g;
(g=M.audioPlayer)==null||Gr(g,"open");M.setState("listening")},p=function(){M.setState("transcribing")},y=function(g){M.setErrorState(g)},Y=function(g,D){var J;
(J=M.audioPlayer)==null||Gr(J,"success");D&&(_.w("kevlar_voice_search_inline_search")&&(M.responseProcessor=_.AL().resolve(_.Ooy),M.responseProcessor&&(J=D.navigationAction,g=D.prefetchedSearchResponse,J&&g&&(J=(new _.Ean).JSC$14175_getStoreKey(J),_.ch(M.responseProcessor,g,J)))),M.JSC$20272_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",D))},A=function(){window.removeEventListener("offline",M.handleOfflineEvent)},v=_.RH4(!1),h=v.Authorization!=null,t=M.enableFirstPartyAuth||
M.enableFPAForSignedInUsers&&h?v:{"X-Goog-Visitor-Id":v["X-Goog-Visitor-Id"]},O={completeHandler:Y,
errorHandler:y,listeningHandler:E,audioDetectedHandler:p,stopHandler:A,transcriptionUpdateHandler:n,youtubeAssistantRequest:K,languageCode:ClU(),additionalHeaders:t,supportsCrossDomainXhr:M.enableFirstPartyAuth||M.enableFPAForSignedInUsers&&h,supportsHttpHeadersOverwriteParam:!M.disableHttpHeadersOverwrite},M.service.start(O),_.gL(a)}})};
_.N.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.N.reset=function(){this.store.dispatch(_.RJ({type:"RESET_VOICE_SEARCH_STATE"}))};
_.N.setState=function(M){this.store.dispatch(tDw(M))};
_.N.setErrorState=function(M){switch(M){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var q;(q=this.audioPlayer)==null||Gr(q,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)wjw(this);else{var G;(G=this.audioPlayer)==null||Gr(G,"failure");this.setState("permission-denied")}break;case "ABORTED":var K;(K=this.audioPlayer)==null||Gr(K,"no_input");break;default:var n;(n=this.audioPlayer)==
null||Gr(n,"no_input");this.setState("timeout")}};
var wjw=function(M){var q,G;return _.L(function(K){switch(K.nextAddress){case 1:return K.yield(navigator.permissions.query({name:"microphone"}),2);case 2:q=K.yieldResult;if(q.state==="granted")return K.return(!0);if(q.state==="denied")return M.setState("permission-denied"),K.return(!1);M.setState("permission");G={audio:{sampleSize:16,channelCount:1},video:!1};_.Cv(K,3);return K.yield(navigator.mediaDevices.getUserMedia(G),5);case 5:return M.stream=K.yieldResult,K.return(!0);case 3:return _.i5(K),
M.setState("permission-denied"),K.return(!1)}})},ClU=function(){var M=_.R9("INNERTUBE_CONTEXT_HL"),q=_.R9("INNERTUBE_CONTEXT_GL");
return M.indexOf("-")>-1?M:M+"-"+q};var az8=function(M,q,G){OUv.call(this,q,G);this.JSC$20272_actionRouter=M;this.enableInlineSearchResponse=_.w("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.w("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.w("kevlar_voice_search_enable_fpa_signedin_users")},ooP;
_.l(az8,OUv);
var lzs=function(){if(!ooP){var M="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.w("kevlar_voice_search_auth_enabled")||_.w("kevlar_voice_search_use_yt_endpoint")?M="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.w("kevlar_voice_search_use_fp_endpoint")&&(M="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");ooP=
new az8(_.GC.getInstance(),_.zw(),new qW(_.R9("VOZ_API_KEY"),M,.5))}return ooP};var XjP=function(M){this.JSC$20276_clientRoot=M;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$20276_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)]]));M=_.k(this.eventListeners);for(var q=M.next();!q.done;q=M.next()){var G=
_.k(q.value);q=G.next().value;G=G.next().value;G=_.k(G);for(var K=G.next();!K.done;K=G.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;q.addEventListener(K,n)}}_.KI(_.GC.getInstance(),this.autonavPauseActionMap,this.JSC$20276_clientRoot)},Pls,iUn=function(M){return _.w("kevlar_autonav_popup_filtering")?(M=_.ba(M))?M.hasAttribute("prevent-autonav"):!0:!0};
_.N=XjP.prototype;_.N.onIronOverlayOpened=function(M){iUn(M)&&(this.autonavPauseReasons.overlayOpen=!0,KZ(this))};
_.N.onIronOverlayClosed=function(M){iUn(M)&&(this.autonavPauseReasons.overlayOpen=!1,KZ(this))};
_.N.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;KZ(this)};
_.N.onYtAutonavPauseBlur=function(){var M=this;_.r8.addJob(function(){cUs()||(M.autonavPauseReasons.inputBoxFocus=!1,KZ(M))},8,0)};
_.N.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;KZ(this)};
_.N.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;KZ(this)};
_.N.onYtAutonavPauseScroll=function(){var M=_.AL().resolve(_.md);M.isOnWatch()&&(M=M.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=M.getBoundingClientRect().top<-200,KZ(this))};
_.N.onYtAutonavPauseUserEngagement=function(M){var q=this;if(_.w("user_engagement_enable_autoplay_pause_feature")){var G=Number(M.lowEngagementThresholdMs);isNaN(G)||G<=0||M.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.UD("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.AL().resolve(_.Lp),_.Ap()<G?_.Jp(_.r8,function(){_.UD("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.N4v()?(this.userEngagementCsn=_.Cx(),_.Jp(_.r8,function(){_.UD("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
q.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,KZ(this)):_.UD("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.Hp4(Error("zl`"+JSON.stringify(M)))};
_.N.onYtAutonavPausePlayer=function(M){this.autonavPauseReasons.requestedByPlayer=!!M.detail;KZ(this)};
_.N.onYtAutonavVisibilityChanged=function(){var M=this,q,G,K;return _.L(function(n){if(n.nextAddress==1)return(q=_.TM())?n.yield(q.getPlayerPromise(),2):n.return();G=n.yieldResult;K=G.isMuted()||G.getVolume()===0;M.autonavPauseReasons.backgroundAndMute=cUs()&&K;KZ(M);_.gL(n)})};
_.N.onYtAutonavPausePlayerEnded=function(){_.AL().resolve(_.Lp);var M=144E5;_.w("user_engagement_enable_autoplay_pause_feature")||_.w("is_part_of_any_user_engagement_experiment")||(M=45E5);this.autonavPauseReasons.longIdle=_.Ap()>M;gov(this);KZ(this)};
_.N.onYtUserActivity=function(){var M=this;this.autonavPauseReasons.userEngagement&&(_.Jp(_.r8,function(){_.UD("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",M.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,KZ(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.Jp(_.r8,function(){_.UD("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",M.userEngagementCsn);_.S1()}),this.autonavPauseReasons.youthereLactExperiment=!1,KZ(this));
this.autonavPauseReasons.longIdle&&!_.w("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,KZ(this))};
var cUs=function(){var M=window.document.visibilityState;return!(!M||M==="visible")},KZ=function(M){for(var q=!1,G=_.k(Object.values(M.autonavPauseReasons)),K=G.next();!K.done;K=G.next())K=K.value,q=q||K;
q?_.Yx.getInstance().pause(M.autonavPauseReasons):(M=_.Yx.getInstance(),M.autonavState_==3?(M.setState(2,!1,!1),M.autonavPauseReason_=void 0):M.autonavState_==1&&(M.disabledAutonavPauseReason_=void 0))},gov=function(M){var q=!1;
if(_.w("enable_autoplay_pause_by_lact")){_.AL().resolve(_.Lp);q=_.tL("autoplay_pause_by_lact_sec")*1E3;var G=_.tL("autoplay_pause_by_lact_sampling_fraction");(q=_.Ap()>=q&&Math.random()<G)&&!_.N4v()&&(_.Jp(_.r8,function(){_.UD("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),q=!1)}q!==M.autonavPauseReasons.youthereLactExperiment&&(M.autonavPauseReasons.youthereLactExperiment=q)&&(M.userEngagementCsn=_.Cx(),_.Jp(_.r8,function(){_.UD("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",M.userEngagementCsn)}));
M.autonavPauseReasons.userEngagement&&_.Jp(_.r8,function(){_.UD("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",M.userEngagementCsn)})};
XjP.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.UD("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.S1(),this.autonavPauseReasons.youthereLactExperiment=!1,KZ(this));this.autonavPauseReasons.userEngagement&&(_.UD("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,KZ(this))};
XjP.prototype.onYtEngagementPanelVisibleChanged=function(M){M.detail&&M.detail.targetId==="engagement-panel-comments-section"&&(this.autonavPauseReasons.commentsPanelOpen=M.detail.visible,KZ(this))};
XjP.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var B0I=_.gx.persistentPanelVisibleSelector,nZ=function(){var M=_.Q.apply(this,arguments)||this;M.miniGuideVisible=!1;M.guideOpened=_.w("disable_initial_guide_state_fix")?!1:M.canFitPersistentGuide(M.initialBodyClientWidth);M.guideUserStateOpened=M.getInitialGuideUserStateOpened();M.isFullscreenShorts=!1;M.miniGuideWidthThreshold=_.tL("kevlar_mini_guide_width_threshold",791);M.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch /contribute-notes".split(" ");
M.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved). ^/contribute-notes(/|$)".split(" ");M.persistentGuideBlockedPagePathRegex=new RegExp(M.persistentGuideBlockedPagesPatterns.join("|"));M.animationTransitionDuration=0;M.lateDataResolver=_.u8();M.initialGuideDataFetchFailed=!1;M.initialLoad=!0;M.guideRenderers=new Set;M.isMouseOverGuide=!1;M.sessionUserManuallyExpandedGuideState=
!1;M.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-mini-guide-mouseentered":"handleMiniGuideMouseEnter","yt-guide-mouseleaved":"handleGuideMouseLeave"};return M};
_.l(nZ,_.Q);_.N=nZ.prototype;_.N.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.N.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.N.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.N.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.N.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.N.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.N.ready=function(){_.AL().addProvider({provide:_.V3,useValue:this.hostElement})};
_.N.attached=function(){var M=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.qs(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.qs(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.qs(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.qs(this,this.onYtGuideShow));_.yb(this,function(){M.animationTransitionDuration=200})};
_.N.detached=function(){document.removeEventListener("yt-navigate-finish",_.qs(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.qs(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.qs(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.qs(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.qs(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.qs(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.qs(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.N.getData=function(){return this.data};
_.N.load=function(){var M=this,q,G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=M.lateDataResolver.resolve.bind(M),E.return(M.lateDataResolver.promise);if(window.ytInitialGuideData)return q=_.u8(),q.resolve(window.ytInitialGuideData),E.return(q.promise);K=!1;_.Cv(E,2);return E.yield(M.fetchGuideData(),4);case 4:G=E.yieldResult;_.KF(E,3);break;case 2:n=_.i5(E),n.message==="Returned error"&&(K=
!0);case 3:if(G)return E.return(G);M.onYtGuideClose();K||(M.initialGuideDataFetchFailed=!0);return E.return(M.lateDataResolver.promise)}})};
_.N.fetchGuideData=function(){var M=this,q,G,K,n,E,p,y;return _.L(function(Y){if(Y.nextAddress==1)return q=_.AL(),M.guidePromise||(G=q.resolve(_.YU),M.guidePromise=_.Dt(G,XTg)),Y.yield(M.guidePromise,2);if(Y.nextAddress!=3)return K=Y.yieldResult,n=q.resolve(_.Q4),Y.yield(n(),3);(E=Y.yieldResult)&&((p=K)==null?void 0:(y=p.responseContext)==null?void 0:y.maxAgeSeconds)!==0&&E.put("service:guide:fallback",new _.OW({innertubeResponse:K}));return Y.return(K)})};
_.N.initializeGuideDataIfEmpty=function(){var M=this,q,G;return _.L(function(K){if(K.nextAddress==1){if(!M.initialGuideDataFetchFailed||M.data)return K.return();_.Cv(K,2);return K.yield(M.fetchGuideData(),4)}if(K.nextAddress!=2)return(q=K.yieldResult)&&M.lateDataResolver.resolve(q),_.KF(K,0);G=_.i5(K);_.j1(G);_.gL(K)})};
_.N.initializeGuideData=function(){var M=this,q;return _.L(function(G){switch(G.nextAddress){case 1:return _.eb($s8(),{mainAppWeb:_.Ir()}),_.Cv(G,2),G.yield(M.load(),4);case 4:M.data=G.yieldResult;_.KF(G,3);break;case 2:_.i5(G),_.$n($s8(),"FAILURE");case 3:q=M.data&&M.data.items&&M.data.items.length>0?"SUCCESS":"FAILURE",_.$n($s8(),q),_.gL(G)}})};
_.N.setGuideData=function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1)return q.disabled?n.return():q.data?(M.data=q.data,q.guideRenderers.add(M),n.return()):n.yield(q.initializeGuideData(),2);q.graftGuideToPage();G=_.fX("IS_HOMEPAGE_COLD")?"eop":void 0;_.w("disable_element_pool_populator")?q.setGuideDataAfterInit(M):(K=new _.K3(1,G),_.n3(K,q.setGuideDataAfterInit.bind(q,M)));_.gL(n)})};
_.N.setGuideDataAfterInit=function(M){M.data=this.data;M.markDirty();this.guideRenderers.add(M);_.g4(function(){_.oJ("gle")});
_.yb(this,function(){_.oJ("gpe")})};
_.N.graftGuideToPage=function(){if(this.data){var M=this.data&&this.data.trackingParams;M&&(M=_.yx(M),_.lu(_.nl(),M))}};
_.N.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.qs(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.N.onDrawerOpenedChanged=function(M,q){!q.value&&this.guideOpened&&(this.guideOpened=!1)};
_.N.onYtGuideToggle=function(M){var q=this.guideOpened;this.guideOpened=!q;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var G=_.El();_.Ng(0,109,!this.guideUserStateOpened);this.sessionUserManuallyExpandedGuideState=this.guideUserStateOpened;G.save()}this.updateGuideDrawerElementState();if(this.guideElement){var K;this.guideOpened&&((K=M.detail)==null?0:K.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.qs(this,this.onAppDrawerTransitionedFromKeyInput));
this.guideElement.addEventListener("app-drawer-transitioned",_.qs(this,this.onAppDrawerTransitioned))}q||this.initializeGuideDataIfEmpty()};
_.N.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.qs(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.N8(this.guideElement)};
_.N.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.qs(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(dqn(this.guideOpened))};
_.N.guidePersistentAndVisibleChanged=function(){_.Rf(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.N.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.N.miniGuideVisibleChanged=function(){_.Rf(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.N.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(dqn(this.guideOpened)),this.initialLoad=!1);_.Rf(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.N.activeEndpointChanged=function(){_.Rf(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.N.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.N.onYtGuideShow=function(){this.forceMiniGuideClose=!1;this.guidePersistent=this.canFitPersistentGuide(this.cachedClientWidth);this.guideUserStateOpened&&this.guidePersistent?this.renderGuide=this.guideOpened=!0:this.guideOpened=!1;this.observeForMiniGuideVisible();this.updateGuideDrawerElementState()};
_.N.cachedClientWidthChanged=function(){this.updateGuideState()};
_.N.persistentPanelVisibleChanged=function(){this.updateGuideState()};
_.N.updateGuideState=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var M=this.canFitPersistentGuide(this.cachedClientWidth);M?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=M}this.updateGuideDrawerElementState()};
_.N.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.N.getGuideOpened=function(){return this.guideOpened};
_.N.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.N.getActiveEndpoint=function(){return this.activeEndpoint};
_.N.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.N.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&&_.jP(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.N.handleMiniGuideMouseEnter=function(){!this.sessionUserManuallyExpandedGuideState&&_.w("web_guide_hover_expansion")&&(this.isMouseOverGuide=!0,this.miniGuideVisible&&!this.guideOpened&&(this.renderGuide=this.guideOpened=!0,this.updateGuideDrawerElementState()))};
_.N.handleGuideMouseLeave=function(){var M=this;!this.sessionUserManuallyExpandedGuideState&&_.w("web_guide_hover_expansion")&&(this.isMouseOverGuide=!1,_.B4(this,"handleGuideMouseLeave",function(){M.isMouseOverGuide||!M.guideOpened||M.miniGuideVisible||(M.guideOpened=!1,M.updateGuideDrawerElementState())},100))};
_.N.computeGuidePersistentAndVisible=function(){var M=this;_.B4(this,"computeGuidePersistentAndVisible",function(){M.guidePersistentAndVisible=M.guideOpened&&M.guidePersistent;M.guideIsVisibleButNotPersistent=!(!M.guideOpened||M.guidePersistent)})};
_.N.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.N.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.N.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.N.startLoadingWatch=function(){this.closeGuide()};
_.N.startLoadingShorts=function(){_.w("web_hide_guide_on_shorts")&&this.closeGuide()};
_.N.onYtNavigateFinish=function(M,q){if(!_.RH||q){this.activeEndpoint=q.endpoint;this.pageType=q.pageType;this.pageUrl=q.response.url;var G,K;M=(K=_.C((G=q.endpoint)==null?void 0:G.commandMetadata,_.Mg))==null?void 0:K.url;!this.pageUrl&&M&&(this.pageUrl=M);_.w("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.N.getVisibleGuideRenderer=function(){for(var M=_.k(this.guideRenderers),q=M.next();!q.done;q=M.next())if(q=q.value,this.miniGuideVisible&&q.is==="ytd-mini-guide-renderer"||this.guideOpened&&q.is==="ytd-guide-renderer")return q;return null};
_.N.markGuideRendererDirty=function(M){if(M){typeof M.markDirty==="function"&&M.markDirty();M=_.k([].concat(_.Ui(_.f_(M).children)));for(var q=M.next();!q.done;q=M.next())this.markGuideRendererDirty(q.value)}};
_.N.persistentGuideEnabled=function(M,q){if(!q||M==="watch"||M==="settings"||M==="shorts"&&this.isFullscreenShorts||_.w("reels_web_disable_persistent_guide_shorts")&&M==="shorts")return!1;var G=_.ij(q)||"";return _.w("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(K){return G===K}):!this.persistentGuideBlockedPagePathRegex.test(G)};
_.N.canFitPersistentGuide=function(M){var q=_.tL("kevlar_persistent_guide_width_threshold",1312);return q===-1||_.w("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:M>this.calculateGuideThreshold(q)};
_.N.calculateGuideThreshold=function(M){return _.w("enable_ai_companion")?M+(this.persistentPanelVisible?400:0):M};
_.N.canFitMiniGuide=function(M){return this.miniGuideWidthThreshold===-1?!1:M>this.calculateGuideThreshold(this.miniGuideWidthThreshold)};
_.N.onResize=function(){var M=this;_.B4(this,"calculateGuideState",function(){M.onResizeDebounced()})};
_.N.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.N.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.N.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.N.getInitialGuideUserStateOpened=function(){return _.w("web_force_mini_guide_default")?!1:!_.El().getFlag(109)};
_.Yd.Object.defineProperties(nZ.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.R9("initialBodyClientWidth")||window.innerWidth}}});
nZ.prototype.onResize=nZ.prototype.onResize;nZ.prototype.observeForMiniGuideVisible=nZ.prototype.observeForMiniGuideVisible;nZ.prototype.computeGuidePersistentAndVisible=nZ.prototype.computeGuidePersistentAndVisible;nZ.prototype.persistentPanelVisibleChanged=nZ.prototype.persistentPanelVisibleChanged;nZ.prototype.cachedClientWidthChanged=nZ.prototype.cachedClientWidthChanged;nZ.prototype.resetGuide=nZ.prototype.resetGuide;nZ.prototype.activeEndpointChanged=nZ.prototype.activeEndpointChanged;
nZ.prototype.guideOpenedChanged=nZ.prototype.guideOpenedChanged;nZ.prototype.miniGuideVisibleChanged=nZ.prototype.miniGuideVisibleChanged;nZ.prototype.guideIsVisibleButNotPersistentChanged=nZ.prototype.guideIsVisibleButNotPersistentChanged;nZ.prototype.guidePersistentAndVisibleChanged=nZ.prototype.guidePersistentAndVisibleChanged;nZ.prototype.onGuideElementChanged=nZ.prototype.onGuideElementChanged;nZ.prototype.onGuidePersistentChanged=nZ.prototype.onGuidePersistentChanged;
nZ.prototype.onRenderGuideChanged=nZ.prototype.onRenderGuideChanged;nZ.prototype.onActiveEndpointChanged=nZ.prototype.onActiveEndpointChanged;nZ.prototype.onMiniGuideVisibleChanged=nZ.prototype.onMiniGuideVisibleChanged;nZ.prototype.onGuideIsVisibleButNotPersistentChanged=nZ.prototype.onGuideIsVisibleButNotPersistentChanged;nZ.prototype.onGuidePersistendAndVisibleChanged=nZ.prototype.onGuidePersistendAndVisibleChanged;
_.T([_.P(_.uz),_.r("design:type",Object)],nZ.prototype,"ironResizableBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],nZ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],nZ.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],nZ.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],nZ.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Boolean)],nZ.prototype,"disabled",void 0);_.T([_.B(),_.r("design:type",Boolean)],nZ.prototype,"guidePersistentAndVisible",void 0);_.T([_.KT("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"onGuidePersistendAndVisibleChanged",null);_.T([_.B(),_.r("design:type",Boolean)],nZ.prototype,"guideIsVisibleButNotPersistent",void 0);
_.T([_.KT("guideIsVisibleButNotPersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.T([_.B(),_.r("design:type",Object)],nZ.prototype,"miniGuideVisible",void 0);_.T([_.KT("miniGuideVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"onMiniGuideVisibleChanged",null);_.T([_.B(),_.r("design:type",Boolean)],nZ.prototype,"forceMiniGuideClose",void 0);
_.T([_.B(),_.r("design:type",Object)],nZ.prototype,"activeEndpoint",void 0);_.T([_.KT("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"onActiveEndpointChanged",null);_.T([_.B(),_.r("design:type",Boolean)],nZ.prototype,"renderGuide",void 0);_.T([_.KT("renderGuide"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"onRenderGuideChanged",null);
_.T([_.B({selector:B0I}),_.r("design:type",Boolean)],nZ.prototype,"persistentPanelVisible",void 0);_.T([_.B(),_.r("design:type",Object)],nZ.prototype,"guideOpened",void 0);_.T([_.B(),_.r("design:type",Boolean)],nZ.prototype,"guidePersistent",void 0);_.T([_.KT("guidePersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"onGuidePersistentChanged",null);_.T([_.B(),_.r("design:type",Object)],nZ.prototype,"guideUserStateOpened",void 0);
_.T([_.B(),_.r("design:type",String)],nZ.prototype,"pageUrl",void 0);_.T([_.B(),_.r("design:type",String)],nZ.prototype,"pageType",void 0);_.T([_.B(),_.r("design:type",Number)],nZ.prototype,"cachedClientWidth",void 0);_.T([_.B(),_.r("design:type",Object)],nZ.prototype,"guideElement",void 0);_.T([_.B({selector:_.TS}),_.r("design:type",Object)],nZ.prototype,"isFullscreenShorts",void 0);
_.T([_.KT("guideElement"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"onGuideElementChanged",null);_.T([_.KT("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"guidePersistentAndVisibleChanged",null);
_.T([_.yO("guideIsVisibleButNotPersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"guideIsVisibleButNotPersistentChanged",null);_.T([_.KT("miniGuideVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"miniGuideVisibleChanged",null);_.T([_.yO("guideOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"guideOpenedChanged",null);
_.T([_.KT("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"activeEndpointChanged",null);_.T([_.yO("pageUrl"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"resetGuide",null);_.T([_.yO("cachedClientWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"cachedClientWidthChanged",null);
_.T([_.yO("persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"persistentPanelVisibleChanged",null);_.T([_.KT("guideOpened","guidePersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"computeGuidePersistentAndVisible",null);
_.T([_.yO("guidePersistentAndVisible","pageUrl","cachedClientWidth","persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"observeForMiniGuideVisible",null);_.T([_.GQ("iron-resize"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nZ.prototype,"onResize",null);_.T([_.b({disableElementRegistration:!0,is:"yt-guide-manager"})],nZ);
var Qd5=_.z(nZ,"yt-guide-manager",void 0,{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var EC=function(){var M=_.Q.apply(this,arguments)||this;M.JSC$20286_keyboardInUse=!1;M.boundHandleCapturedKeydownEvent=function(q){M.handleCapturedKeydownEvent(q)};
return M};
_.l(EC,_.Q);_.N=EC.prototype;_.N.attached=function(){this.listenToDocument(document)};
_.N.listenToDocument=function(M){M.addEventListener("keydown",_.qs(this,this.onKeyDownEvent));M.addEventListener("keyup",_.qs(this,this.onKeyUpEvent));M.addEventListener("mousedown",_.qs(this,this.onMouseDownEvent));_.w("desktop_keyboard_capture_keydown_killswitch")||M.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);M.addEventListener("yt-page-data-updated",_.qs(this,this.onPageUpdate))};
_.N.detached=function(){this.unlistenFromDocument(document)};
_.N.unlistenFromDocument=function(M){M.removeEventListener("keydown",_.qs(this,this.onKeyDownEvent));M.removeEventListener("keyup",_.qs(this,this.onKeyUpEvent));M.removeEventListener("mousedown",_.qs(this,this.onMouseDownEvent));_.w("desktop_keyboard_capture_keydown_killswitch")||M.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);M.removeEventListener("yt-page-data-updated",_.qs(this,this.onPageUpdate))};
_.N.ready=function(){_.AL().addProvider({provide:_.Nt,useValue:this})};
_.N.isKeyBoardInUse=function(){return this.JSC$20286_keyboardInUse};
_.N.handleCapturedKeydownEvent=function(M){if(M.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(M)};
_.N.onMouseDownEvent=function(){this.JSC$20286_keyboardInUse=!1};
_.N.onPageUpdate=function(){if(_.w("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.w("web_shorts_keyboard_shortcut_usage_log")){_.T0.clear();for(var M=_.k(_.m9),q=M.next();!q.done;q=M.next()){var G=_.k(q.value);q=G.next().value;G=G.next().value;G=_.$m(G);_.T0.set(q,G);_.QQ(_.Cx(),_.wt(),G)}_.rO.clear();M=_.k(_.Sq);for(q=M.next();!q.done;q=M.next())G=_.k(q.value),q=G.next().value,G=G.next().value,G=_.$m(G),_.rO.set(q,G),_.QQ(_.Cx(),_.wt(),G);_.IJ(_.Cx(),_.wt(),[].concat(_.Ui(_.rO.values()),
_.Ui(_.T0.values())));_.uO(_.Cx(),[].concat(_.Ui(_.rO.values()),_.Ui(_.T0.values())))}};
_.N.onMiniplayerActiveChange=function(){var M;(M=_.AL().resolve(_.lq).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(M.document):this.unlistenFromDocument(M.document))};
_.N.ignoreKeyEvent=function(M){if(M.ctrlKey||M.altKey)if(_.w("kevlar_macro_markers_keyboard_shortcut")){if(M.keyCode!==37&&M.keyCode!==39)return!0}else return!0;var q=_.Zx(M)||[];return _.y_w(q)?(_.w("web_button_or_anchor_list_item")&&C8s(q,M)&&(this.JSC$20286_keyboardInUse=!0),!0):M.defaultPrevented?(pd(M.keyCode,M.shiftKey,this.isShortsPage),!0):M.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(M):!1};
_.N.isSpacebarClick=function(M){var q=M||window.event;var G;q.composedPath&&typeof q.composedPath==="function"?G=q.composedPath():G=q.path;G&&G.length?q=G[0]:(q=q||window.event,q=q.target||q.srcElement,q.nodeType==3&&(q=q.parentNode));return q&&M.keyCode===32&&(M=q.tagName==="BUTTON"||q.tagName==="A"||q.tagName==="INPUT",q=(q=q.getAttribute("role"))&&(q==="option"||q==="button"||q.indexOf("menuitem")===0),M||q)?!0:!1};
_.N.onKeyDownEvent=function(M){if(!this.ignoreKeyEvent(M)&&(M.keyCode===191&&(M.shiftKey||M.metaKey?M.repeat!=null&&M.repeat||(this.openHotkeyDialog(),pd(M.keyCode,M.shiftKey,this.isShortsPage)):(this.focusSearchBox(),M.preventDefault())),!M.metaKey)){var q=_.AL().resolve(_.lq);switch(M.keyCode){case 9:this.JSC$20286_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(M);break;case 84:q.pipController.getWindow()&&window.focus();this.toggleTheaterMode(M.keyCode,M.shiftKey);break;case 73:q.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(M.keyCode,M.shiftKey);break;case 70:if(this.isShortsPage){_.LXw();break}this.isMiniplayerActive()?q.pipController.getWindow()&&(q.close(!0),window.focus()):this.passEventToPlayer(M);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(M.keyCode,M.shiftKey):this.closeMiniplayer(M.keyCode,M.shiftKey)||this.passEventToPlayer(M);break;case 13:M.shiftKey&&_.AL().resolve(_.sJ).activate(M);break;default:this.passEventToPlayer(M)}}};
_.N.onKeyUpEvent=function(M){if(!this.ignoreKeyEvent(M))if(_.w("web_speedmaster_spacebar_control")&&M.keyCode===32)this.handlePlayerSpaceKey(M,!0);else{var q=this.getPlayerManager();q&&(q=q.getPlayer())&&q.handleGlobalKeyUp(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code)}};
_.N.getPlayerManager=function(){var M=_.TM(),q=_.AL().resolve(_.WR(_.md));return M&&q&&q.isOnWatch()?M:null};
_.N.passEventToPlayer=function(M,q){var G=this,K,n,E,p;return _.L(function(y){if(y.nextAddress==1){if(!_.w("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&G.isMiniplayerActive())K=_.AL().resolve(_.lq).getPlayerElement();else if(G.inlinePreviewIsActive){if(n=_.Rf(G.hostElement,"yt-get-inline-preview-player-action"),(E=n)==null?0:E[0])K=n[0]}else K=_.TM();return K?y.yield(K.getPlayerPromise(),3):y.jumpTo(0)}p=y.yieldResult;q?p.handleGlobalKeyUp(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,
M.key,M.code):p.handleGlobalKeyDown(M.keyCode,M.shiftKey,M.ctrlKey,M.altKey,M.metaKey,M.key,M.code,M.repeat);M.keyCode!==38&&M.keyCode!==40&&pd(M.keyCode,M.shiftKey,G.isShortsPage);_.gL(y)})};
_.N.focusSearchBox=function(){_.jP(this.hostElement,"yt-focus-searchbox")};
_.N.openHotkeyDialog=function(){_.jP(this.hostElement,"yt-open-hotkey-dialog")};
_.N.isMiniplayerActive=function(){return _.AL().resolve(_.lq).isMiniplayerActive()};
_.N.closeMiniplayer=function(M,q){return this.isMiniplayerActive()?(_.AL().resolve(_.lq).close(),pd(M,q,this.isShortsPage),!0):!1};
_.N.toggleTheaterMode=function(M,q){var G=_.Cp(_.zw().getState()),K=this.getPlayerManager(),n=_.w("disable_theater_mode_keyboard")||_.fX("START_IN_FULL_WINDOW_MODE");K&&!n&&(G=!G,_.m3()&&_.w("external_fullscreen")&&(G=!0),_.VW(this.hostElement,"yt-toggle-theater-mode",[G]),pd(M,q,this.isShortsPage))};
_.N.toggleMiniplayer=function(M,q){var G=this.getPlayerManager();if(this.isMiniplayerActive()){var K;((K=_.AL().resolve(_.WR(_.md)))==null?0:K.isOnWatch())?_.AL().resolve(_.lq).close(!0):_.yy(_.AL().resolve(_.lq));pd(M,q,this.isShortsPage)}else G&&(_.VW(this.hostElement,"yt-activate-miniplayer-from-watch-action"),pd(M,q,this.isShortsPage))};
_.N.handlePlayerSpaceKey=function(M,q){var G=!!_.TM()||this.isMiniplayerActive();G=_.w("disable_space_scroll_fix")||G;_.w("global_spacebar_pause")&&!this.isKeyBoardInUse()&&G&&(M.preventDefault(),this.passEventToPlayer(M,q))};
_.N.isPresentingTheaterMode=function(){return _.w("web_watch_enable_tm_esc_key")?_.Cp(_.zw().getState())&&!_.m3():!1};
EC.prototype.onMiniplayerActiveChange=EC.prototype.onMiniplayerActiveChange;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],EC.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],EC.prototype,"ytdReduxBehavior",void 0);_.T([_.B({selector:_.Dty}),_.r("design:type",Boolean)],EC.prototype,"inlinePreviewIsActive",void 0);_.T([_.B({selector:_.Fny}),_.r("design:type",Boolean)],EC.prototype,"isShortsPage",void 0);
_.T([_.B({selector:_.at}),_.r("design:type",Boolean)],EC.prototype,"miniplayerIsActive",void 0);_.T([_.KT("miniplayerIsActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],EC.prototype,"onMiniplayerActiveChange",null);_.T([_.b({disableElementRegistration:!0,is:"yt-hotkey-manager"})],EC);_.z(EC,"yt-hotkey-manager",void 0,{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var NW=function(){var M=_.Q.apply(this,arguments)||this;M.loopStateEntityKey_=null;M.playlistLoopStateEntity_=null;M.isShuffleNextPlaylist=!1;M.PLAYER_EVENTS_=new Map;M.playerListenersSetup_=!1;M.videoSkipJob_=0;M.canAutoAdvance_=!1;M.playerManager_=null;M.TEST_ONLY={};return M};
_.l(NW,_.Q);_.N=NW.prototype;_.N.ready=function(){_.AL().addProvider({provide:_.$x,useValue:this.hostElement})};
_.N.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_)};
_.N.attached=function(){document.addEventListener("yt-navigate-start",_.qs(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.qs(this,this.onYtNavigateFinish_))};
_.N.detached=function(){document.removeEventListener("yt-navigate-start",_.qs(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.qs(this,this.onYtNavigateFinish_))};
_.N.updatePlaylistEventListeners=function(M,q){q&&!this.playerListenersSetup_?(this.playerManager_=M,this.registerPlaylistEventListeners_(M)):!q&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(M))};
_.N.setPlayer=function(M){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=M};
_.N.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.N.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.N.registerPlaylistEventListeners_=function(M){var q=this;M.getPlayerPromise().then(function(G){q.playerListenersSetup_||(q.ytPlayerListenerBehavior.listenToPlayerEvents(G,q.PLAYER_EVENTS_),q.playerListenersSetup_=!0)})};
_.N.removePlaylistEventListeners_=function(M){var q=this;M.getPlayerPromise().then(function(G){q.playerListenersSetup_&&(q.ytPlayerListenerBehavior.unlistenFromPlayerEvents(G,q.PLAYER_EVENTS_),q.playerListenersSetup_=!1)})};
_.N.setPlaylistComponent=function(M){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.qs(this,this.onPlaylistYtNavigate_)),M&&(M.data&&this.playlistComponent.data&&M.data.playlistId==this.playlistComponent.data.playlistId?(M.loopOn=this.playlistComponent.loopOn,M.shuffleOn=this.playlistComponent.shuffleOn):(M.loopOn=!1,M.shuffleOn=!1),this.isShuffleNextPlaylist&&(M.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=M;this.playlistComponent.addEventListener("yt-navigate",
_.qs(this,this.onPlaylistYtNavigate_))};
_.N.setAutoplayRenderer=function(M){this.autoplayData=M};
_.N.setPlaylistData=function(M){this.currentPlaylistData_=M;_.jP(this.hostElement,"yt-playlist-data-updated");_.xP.isEmpty(M)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(M)};
_.N.setPlayerPlaybackControlData=function(M){this.playerManager_&&this.playerManager_.updatePlayerComponents(M.playlistPanelRenderer)};
_.N.getPlaylistData=function(){return this.currentPlaylistData_};
_.N.getTempData_=function(M,q){if(this.playlistComponent==null)return null;M={};this.playlistComponent.shuffleOn&&(M.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(M.loop_on=this.playlistComponent.loopOn);q&&(M.autonav="1",_.AL().resolve(_.Lp),q=_.Ap(),q>0&&(M.lact=q),this.playerManager_&&(q=this.playerManager_.getPlayer())&&q.shouldSendVisibilityState()&&(q=q.getVisibilityState(),q!=0&&(M.vis=q)));_.w("enable_unknown_lact_fix_on_html5")&&(_.AL().resolve(_.Lp),M.lact=
_.Ap());return M};
_.N.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.N.setLoopStateEntityKey_=function(M){var q;this.loopStateEntityKey_=((q=this.getPlaylistLoopData_(M))==null?void 0:q.playlistLoopStateEntityKey)||null};
_.N.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.N.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.N.skipVideo=function(){var M=this,q=_.w("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||q)q=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.WO(_.r8,function(){M.onPlaylistNext();M.videoSkipJob_=0},q)};
_.N.cancelVideoSkip=function(){this.videoSkipJob_&&(_.r8.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.N.isInBackground_=function(){var M=window.document.visibilityState;return!(!M||M=="visible")};
_.N.onPlaylistIndex_=function(M){this.playlistComponent&&(M=this.playlistComponent.data.contents[M].playlistPanelVideoRenderer.navigationEndpoint,_.jP(this.hostElement,"yt-navigate",{endpoint:M,tempData:this.getTempData_(M)}))};
_.N.onPlayerStateChange_=function(M){if(M=M==0&&this.playlistComponent&&this.canAutoAdvance_)M=_.Yx.getInstance(),M=!(M.autonavState_===3?M.autonavPauseReason_&&M.autonavPauseReason_.inputBoxFocus===!0:M.autonavState_===1&&M.disabledAutonavPauseReason_&&M.disabledAutonavPauseReason_.inputBoxFocus===!0);M&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.N.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.N.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.N.navigateToAutoplayWatchEndpoint_=function(M,q,G){var K=this.playlistComponent.data.currentIndex,n=this.getNumPlayableVideos_();M=="NORMAL"&&q=="autoplayVideo"&&K+1>=n&&G||!(M=this.getVideoEndpoint_(M,q))||(G=this.getTempData_(M,G),_.jP(this.hostElement,"yt-navigate",{endpoint:M,tempData:G}))};
_.N.getNumPlayableVideos_=function(){for(var M=0,q=_.k(this.playlistComponent.data.contents||[]),G=q.next();!G.done;G=q.next())G.value.playlistPanelVideoRenderer&&(M+=1);return M};
_.N.getVideoEndpoint_=function(M,q){if(this.autoplayData&&this.autoplayData.sets)for(var G=0,K=this.autoplayData.sets.length;G<K;G++){var n=this.autoplayData.sets[G];if(n.mode==M){if(n[q])return n[q];break}}else M=new _.bj("AutoplayData is undefined in playlist manager","Mode: "+M+" endpoint: "+q),_.j1(M)};
_.N.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.N.onPlaylistYtNavigate_=function(M){if(M.detail.endpoint){M.stopPropagation();var q=M.detail;q.tempData=this.getTempData_(M.detail.endpoint);_.jP(this.hostElement,"yt-navigate",q)}};
_.N.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.N.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.N.playlistLoopStateEntityChanged_=function(M){var q=this,G,K,n;return _.L(function(E){if(E.nextAddress==1){if(!M)return E.return();G=M.state==="PLAYLIST_LOOP_STATE_ONE";return q.playerManager_?E.yield(q.playerManager_.getPlayerPromise(),3):E.jumpTo(2)}E.nextAddress!=2&&(K=E.yieldResult,K.setLoopVideo(G));n=M.state==="PLAYLIST_LOOP_STATE_ALL";q.playlistComponent&&(q.playlistComponent.loopOn=n);_.gL(E)})};
_.N.getPlaylistLoopData_=function(M){var q,G;if(M=M==null?void 0:(q=M.playlistButtons)==null?void 0:(G=q.menuRenderer)==null?void 0:G.topLevelButtons)for(q=_.k(M),G=q.next();!G.done;G=q.next())if(G=G.value,G.playlistLoopButtonRenderer)return G.playlistLoopButtonRenderer};
_.N.getLoopStateCommand_=function(M){var q=this.getPlaylistData(),G;q=((G=this.getPlaylistLoopData_(q))==null?void 0:G.states)||[];var K;M=(K=_.C(q[M?1:2],_.wn$))==null?void 0:K.button;var n;return(n=_.C(M,_.f1))==null?void 0:n.command};
_.N.onPlayerLoopChange_=function(M){this.playlistLoopStateEntity_&&(M?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(M=this.getLoopStateCommand_(M))&&this.ytComponentBehavior.resolveCommand(M)};
_.N.onSleepTimerSettingsChanged_=function(M){this.canAutoAdvance_=M!=="End of video"};
NW.prototype.onPlaylistLoopStateEntityChanged=NW.prototype.onPlaylistLoopStateEntityChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],NW.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.$S.YtPlayerListenerBehavior),_.r("design:type",_.sW)],NW.prototype,"ytPlayerListenerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],NW.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],NW.prototype,"loopStateEntityKey_",void 0);
_.T([_.B({selectorArgs:["loopStateEntityKey_"],selector:_.IG.playlistLoopStateEntitySelector}),_.r("design:type",Object)],NW.prototype,"playlistLoopStateEntity_",void 0);_.T([_.KT("playlistLoopStateEntity_"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],NW.prototype,"onPlaylistLoopStateEntityChanged",null);_.T([_.b({disableElementRegistration:!0,is:"yt-playlist-manager"})],NW);_.z(NW,"yt-playlist-manager",void 0,{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var Izs,DwR=function(){if(Izs!==void 0)return Izs;var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Izs=M};var kZ=function(){var M=_.Q.apply(this,arguments)||this;M.lastCallback=null;M.getAccountLinkPromises={};M.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);M.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return M};
_.l(kZ,_.Q);_.N=kZ.prototype;_.N.getLocation=function(){return window.location.href};
_.N.getCompletionUrl=function(){return _.Uu(this.getLocation())};
_.N.containsRedirectState=function(M){return(M=_.Wh(_.hjj(M)))?(new URLSearchParams(M)).get("redirect_state")!==null:!1};
_.N.createGalConfig=function(M,q){var G=new TFw;M=G=q?this.getPopupOrRedirectSetting(G,_.R9("LINK_API_KEY"),_.R9("LINK_API_KEY_REDIRECT"),M):rQR(G,_.R9("LINK_API_KEY"));M.authUser=_.R9("SESSION_INDEX")||0;M.supportedFlows=new Set([4]);return M.build()};
_.N.getPopupOrRedirectSetting=function(M,q,G,K){this.isGalInteractionPopupMode(K)?(M.interactionMode=0,M=rQR(M,q)):(M.interactionMode=1,q=this.getCompletionUrl(),M.completionUrl=q,M=rQR(M,G));return M};
_.N.isGalInteractionPopupMode=function(M){if(this.redirectModeProviderAllowlist.has(M))switch(M){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.N.getStatusEntityKeyForProviderId=function(M){return _.$p(M+":all","accountLinkStatusEntity")};
_.N.findNestedPropValue=function(M,q){var G=!1,K=null;JSON.stringify(M,function(n,E){G||n!==q||(G=!0,K=E);return G?null:E});
return K};
_.N.findAccountLinkButtonViewModel=function(M,q){var G=null,K=!1;JSON.stringify(M,function(n,E){K||E.accountLinkStatusEntityKey!==q||E.accountLinkStatusSecondaryEntityKey||(K=!0,G=E);return K?null:E});
return G};
_.N.executeLinkingSuccessOrFailureCommands=function(M,q,G){var K=null,n;(q==null?0:(n=q.url)==null?0:n.includes("account_sharing"))?K=q==null?void 0:q.response:K=q==null?void 0:q.response;(q=this.findAccountLinkButtonViewModel(K,M))?(M=G?this.findNestedPropValue(q,"onSuccessCommand"):this.findNestedPropValue(q,"onFailureCommand"))?_.$D([M],this.hostElement):_.Mz(Error("Al")):_.Mz(Error("Bl`"+M))};
_.N.handleInitializeRequest=function(M,q){var G=this,K=y$I(this.createGalConfig(M,!0));this.containsRedirectState(this.getLocation())?ne5(M,K.config,K.galService).then(function(n){var E=G.getStatusEntityKeyForProviderId(M);if(n.statusCode===1)q&&G.executeLinkingSuccessOrFailureCommands(E,q,!0),n=G.getLocation().indexOf("#"),n!==-1&&window.history.pushState(null,"",G.getLocation().substring(0,n));else return q&&G.executeLinkingSuccessOrFailureCommands(E,q,!1),Promise.reject(Error(n.statusMessage))}).catch(function(n){_.j1(n);
_.ml("gamingAccountLinkStatusChanged",{serviceId:M,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(n)}):this.getAccountLinkPromises[M]=K.startLinkingSession({serviceId:M})};
_.N.handleAccountLinkCommand=function(M){_.C(M,VLw)&&this.handleLinkRequest(_.C(M,VLw))};
_.N.handleLinkRequest=function(M){var q=this,G=M.thirdPartyId;if(G)if(this.isGalInteractionPopupMode(G)){var K=function(){q.closeAndFire("ytd-gaming-account-link-setting-renderer",M.onFailureCommand)},n=function(){q.closeAndFire("ytd-gaming-account-link-setting-renderer",M.onSuccessCommand)};
this.lastCallback=n;this.getAccountLinkPromises[G].then(function(E){l4I(E).then(function(p){p.statusCode===1?n():K()})}).catch(function(){K()})}else this.getAccountLinkPromises[G].then(function(E){l4I(E).then(function(p){if(p.statusCode!==1)return Promise.reject(Error(p.statusMessage))})}).catch(function(E){_.j1(E);
_.ml("gamingAccountLinkStatusChanged",{serviceId:G,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(E)})};
_.N.closeAndFire=function(M,q){_.VW(this.hostElement,"yt-close-popup-action",[M]);q&&_.$D([q],this.hostElement)};
_.N.handleAccountUnlinkCommand=function(M){_.C(M,RgR)&&this.handleUnlinkRequest(_.C(M,RgR))};
_.N.handleUnlinkRequest=function(M){var q=this,G=M.thirdPartyId;if(G){var K=function(){q.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",M.onFailureCommand)},n=function(){q.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",M.onSuccessCommand)};
this.lastCallback=n;var E=y$I(this.createGalConfig(G,!1));this.unlinkUserGal(E,G).then(function(p){p.statusCode===1?n():K()}).catch(function(){K()})}};
_.N.unlinkUserGal=function(M,q){return M.deleteLink(q)};
_.N.handleLogAccountLinkingEventCommand=function(M){_.w("enable_gel_log_commands")&&_.C(M,fiP)&&(M=_.C(M,fiP).event)&&_.ml("gamingAccountLinkStatusChanged",M)};
_.Yd.Object.defineProperties(kZ,{template:{configurable:!0,enumerable:!0,get:function(){return DwR()}}});
_.T([_.P(_.vf.YtOpenPopupBehavior),_.r("design:type",Object)],kZ.prototype,"ytOpenPopupBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],kZ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-third-party-manager"})],kZ);_.z(kZ,"ytd-third-party-manager",function(){return DwR()},{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var udI,JUw=function(){if(udI!==void 0)return udI;var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return udI=M};var pZ=function(){var M=_.Q.apply(this,arguments)||this;M.currentPage=void 0;M.renderLoadingStateJobId=0;M.updatePageDataJobId=0;M.pageDisposeJobsets=new WeakMap;M.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"};M.shouldApplyLockupToWatchTransition=_.w("web_thumbnail_to_watch_transition");M.shouldApplySlideTransition=_.wP("web_page_transition_type")==="slide"||_.w("enable_plj_landing_page");M.shouldApplyLearningJourneyTransition=_.w("enable_plj_landing_page");M.TEST_ONLY=void 0;return M};
_.l(pZ,_.Q);_.N=pZ.prototype;_.N.ready=function(){var M=_.AL();M.addProvider({provide:_.md,useValue:this});M.addProvider({provide:_.xMR,useValue:this})};
_.N.created=function(){this.pagePool=new now;this.contextSwitcher=new OMI};
_.N.attached=function(){_.jP(this.hostElement,"attached");var M=_.AL().resolve(_.WR(_.L_));M&&(this.contextSwitcher.JSC$20110_networkService_=M);this.viewTransitionManager=_.AL().resolve(_.ix)};
_.N.getPageOffset=function(M){return M.getScrollTop()};
_.N.setPageOffset=function(M,q){try{M.setScrollTop(q)}catch(G){}};
_.N.setPageOffsetForNavigation=function(M,q){_.jP(this.hostElement,"yt-navigate-set-page-offset",{page:M,offset:q===void 0?0:q})};
_.N.pauseActiveContext=function(){var M=this.contextSwitcher;M.activeContext_&&M.activeContext_.pause()};
_.N.getModuleNameForType=function(M){return M==="watch"?_.w("kevlar_watch_fixie")?"watchFixie":_.w("kevlar_watch_grid")?"watchGrid":"watchFlexy":M==="shorts"||M==="search"?M:"browse"};
_.N.attachPage=function(M){var q,G=!_.w("pc_is_attached_ks")&&(M==null?void 0:(q=M.polymerController)==null?void 0:q.isAttached);if(!M.isAttached&&!G)try{_.f_(this.hostElement).appendChild(M)}catch(n){var K;_.j1(new _.bj("Error attaching page element for component",{origin:(K=this.currentPage)==null?void 0:K.is,component:M.is}))}};
_.N.setActivePage=function(M,q){var G=this,K=!1,n=function(){var E=G.isOnWatch(),p=G.currentPage;if(M)if(M!==G.currentPage){p&&(p.hidden=!0,p.active=!1,p.removeAttribute("role"));G.currentPage=M;var y,Y=q!=null?q:_.K_((y=G.data)==null?void 0:y.endpoint);p&&_.jP(G.hostElement,"yt-page-type-changed",{oldPageType:p.is,newPageType:M.is,newPageSubtype:Y});_.J_().dispatch(_.RJ({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:M.is}));_.J_().dispatch(_.RJ({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:Y||""}));
M.hidden=!1;G.attachPage(M);M.active=!0;M.setAttribute("role","main");p&&G.setPageOffsetForNavigation(M,0);_.w("kevlar_remove_page_dom_on_switch")&&!E&&p&&_.f_(G.hostElement).removeChild(p)}else K=!0;else G.handleMissingDestinationPage(p)};
this.shouldRunBrowseTransition(this.currentPage,M)?mu8(this.viewTransitionManager,n):this.shouldRunLearningJourneyTransition(this.currentPage,M)?rqI(this.viewTransitionManager,n):n();return K};
_.N.handleMissingDestinationPage=function(M){if(this.isColdLoadForUnknownPage(M))_.j1(new _.bj("Cold load for unknown page"));else{var q;M=new _.bj("Unable to set active page",M?M.is:"unknown origin",(q=this.data)==null?void 0:q.endpoint);_.T6(M)}};
_.N.isColdLoadForUnknownPage=function(M){return!M&&eq(this.data)==="unknown"};
_.N.shouldRunBrowseTransition=function(M,q){return this.shouldApplySlideTransition&&(M==null?void 0:M.is)==="ytd-browse"&&(q==null?void 0:q.is)==="ytd-browse"&&M!==q};
_.N.shouldRunLearningJourneyTransition=function(M,q){return this.shouldApplyLearningJourneyTransition&&(M==null?void 0:M.is)==="ytd-browse"&&((q==null?void 0:q.is)==="ytd-watch-learning-journey"||(q==null?void 0:q.tagName.toLowerCase())==="ytd-watch-learning-journey")};
_.N.shouldRunWatchNextLoadedTransition=function(M,q){return this.viewTransitionManager&&M.is==="ytd-watch-flexy"&&q};
_.N.updatePageData=function(M){var q=this,G=this.data;this.updatePageDataJobId&&_.r8.cancelJob(this.updatePageDataJobId);this.data=M;return new _.X4(function(K){var n=function(){M.filler?q.performDataUpdate(M,G):e_L(function(){q.performDataUpdate(M,G)});
var Y=_.M5();_.q5(Y,"cr")||Y.processSignal("cr");K()},E=function(){M&&M.page==="watch"?q.updatePageDataJobId=_.WO(_.r8,n):n()};
if(_.w("kevlar_enable_mss_page_modules_client")&&M){var p=_.AL().resolve(_.Ph),y=q.getModuleNameForType(M.page);(p=xuM(p,[y]))?p.then(E):E()}else E()})};
_.N.isDownloadsPage=function(M){var q,G;return(M==null?void 0:(q=M.endpoint)==null?void 0:(G=q.browseEndpoint)==null?void 0:G.browseId)==="FEdownloads"};
_.N.setPlayerSyncInterval=function(M){var q;return _.L(function(G){if(G.nextAddress==1)return G.yield(_.AL().resolve(_.fp),2);q=G.yieldResult;q.setUpPositionSyncInterval(M);_.gL(G)})};
_.N.performDataUpdate=function(M,q){_.w("kevlar_early_popup_close")||_.VW(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var G=!M.filler;G&&(_.oJ("lps"),_.w("config_age_report_killswitch")||QMR());var K=eq(M),n,E=!1;if(_.w("kevlar_remove_page_dom_on_switch")){var p=q&&eq(q);K===p&&(n=this.getCurrentPage())}n||(n=et(this.pagePool,K));G&&M0U(this.pagePool.elementPoolPopulator,K);G&&!this.renderLoadingStateJobId&&(E=this.setActivePage(n));if(n){p=K==="watch";var y=
K==="shorts",Y=K==="learning_journey_watch";_.w("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(n);if(p||y||Y)n.playerData=M.playerResponse;if(y)if(_.w("web_enable_delay_shorts_sequence_call")){M.reelWatchSequenceResponse&&(M.reelWatchSequenceResponse.entries||M.reelWatchSequenceResponse.prevEntries)&&(n.reelWatchSequenceResponse=M.reelWatchSequenceResponse);n.currentEndpoint=M.endpoint;var A;n.isPreviousPageShorts=!!(q==null?0:(A=q.endpoint)==null?0:A.reelWatchEndpoint);
var v,h;M.cachedSequenceParams=((v=M.endpoint)==null?void 0:(h=v.reelWatchEndpoint)==null?void 0:h.sequenceParams)||M.cachedSequenceParams||(q==null?void 0:q.cachedSequenceParams);var t,O;M.cachedSequenceProvider=((t=M.endpoint)==null?void 0:(O=t.reelWatchEndpoint)==null?void 0:O.sequenceProvider)||M.cachedSequenceProvider||(q==null?void 0:q.cachedSequenceProvider);n.cachedSequenceParams=M.cachedSequenceParams;n.cachedSequenceProvider=M.cachedSequenceProvider}else if(_.w("web_enable_shorts_sequence_cache_fix")){M.reelWatchSequenceResponse&&
(M.reelWatchSequenceResponse.entries||M.reelWatchSequenceResponse.prevEntries)?n.reelWatchSequenceResponse=M.reelWatchSequenceResponse:n.cachedReelWatchSequenceResponse&&!n.reelWatchSequenceResponse&&(n.reelWatchSequenceResponse=n.cachedReelWatchSequenceResponse);M.reelWatchSequenceResponse&&(q==null?void 0:q.page)!=="shorts"&&(n.cachedReelWatchSequenceResponse=M.reelWatchSequenceResponse);n.currentEndpoint=M.endpoint;var a;n.isPreviousPageShorts=!!(q==null?0:(a=q.endpoint)==null?0:a.reelWatchEndpoint)}else{M.reelWatchSequenceResponse&&
(M.reelWatchSequenceResponse.entries||M.reelWatchSequenceResponse.prevEntries)?n.reelWatchSequenceResponse=M.reelWatchSequenceResponse:M.cachedReelWatchSequenceResponse?n.reelWatchSequenceResponse=M.cachedReelWatchSequenceResponse:_.w("web_enable_cached_reel_sequence_fix")&&n.cachedReelWatchSequenceResponse&&!n.reelWatchSequenceResponse&&(n.reelWatchSequenceResponse=n.cachedReelWatchSequenceResponse);n.currentEndpoint=M.endpoint;var g;n.isPreviousPageShorts=!!(q==null?0:(g=q.endpoint)==null?0:g.reelWatchEndpoint);
M.cachedReelWatchSequenceResponse=M.reelWatchSequenceResponse||M.cachedReelWatchSequenceResponse||(q==null?void 0:q.cachedReelWatchSequenceResponse);n.cachedReelWatchSequenceResponse=M.cachedReelWatchSequenceResponse}A=this.isDownloadsPage(M);v=this.isDownloadsPage(q);A&&!v?this.setPlayerSyncInterval(6E5):!A&&v&&this.setPlayerSyncInterval();_.w("block_all_player_prefetch_requests")||this.preparePrefetchRequest(M,n,G,p,y,Y);j1E(_.AL().resolve(_.lq),q,M);if(_.w("enable_ai_companion")){var D;(D=_.AL().resolve(_.WR(_.UW)))==
null||_.W_8(D,this.getPersistentPanelSurface(K))}_.EW(_.AL().resolve(_.Lp));_.w("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(n);G?(G=typeof n.loadPage,G==="function"?(n.pageContext=wPU(this.contextSwitcher,n,n.data!==M.response),G=function(){n.loadPage(M.response)},this.shouldApplySlideTransition&&n.is==="ytd-browse"&&E&&(K==="learning"||this.isDifferentBrowseId(M==null?void 0:M.endpoint,q==null?void 0:q.endpoint))?mu8(this.viewTransitionManager,G):this.shouldRunWatchNextLoadedTransition(n,
E)?TbM(this.viewTransitionManager,G):G()):_.rM(new _.bj("b/38014653 ",[K,
n.is,n.nodeName,G,n.isAttached,q&&eq(q),this.hostElement.children.length])),_.oJ("pdl")):(n.hidden=!0,M.response.filler=!0,n.data=M.response,this.attachPage(n));_.jP(this.hostElement,"yt-page-data-updated",{pageType:K})}_.Jp(_.r8,function(){_.w("logging_avoid_blocking_during_navigation")&&_.ltF().transition("none");var J=JX5(),Z=n;if(M){var V=aQ5(M),S=oWg(M),m;a:{if(M.playerResponse){var R=M.playerResponse,se;if((m=R.auxiliaryUi)==null?0:(se=m.messageRenderers)==null?0:se.upsellDialogRenderer){m=
R.auxiliaryUi.messageRenderers.upsellDialogRenderer;break a}}else if(M.response&&(m=M.response,(R=m.overlay)==null?0:R.upsellDialogRenderer)){m=m.overlay.upsellDialogRenderer;break a}m=void 0}var yY;var d$;se=(yY=M.playerResponse)==null?void 0:(d$=yY.auxiliaryUi)==null?void 0:d$.messageRenderers;yY=(se==null?void 0:se.enforcementMessageViewModel)||(se==null?void 0:se.bkaEnforcementMessageViewModel);yY=(yY==null?void 0:yY.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?yY:void 0;
var cy;a:{if(M.response&&(d$=M.response,(cy=d$.overlay)==null?0:cy.commandWrapperPromoRenderer)){cy=d$.overlay.commandWrapperPromoRenderer;break a}cy=void 0}uBE(J,V,S,m,yY,cy,Z)}})};
_.N.preparePrefetchRequest=function(M,q,G,K,n,E){var p,y,Y,A,v,h,t,O,a,g,D,J,Z,V,S;return _.L(function(m){if(m.nextAddress==1)return!G||!(K||n||E)||_.w("kevlar_disable_background_prefetch")&&_.$2(_.u7j)()===0?m.return():(p=_.Sc(q))?m.yield(p.getPlayerPromise(),2):m.return();y=m.yieldResult;Y=_.AL().resolve(_.WR(_.L_));if(!Y)return m.return();if(n)return A=_.Uz(_.aq),kjw(A,(v=M.endpoint)==null?void 0:v.reelWatchEndpoint,q.reelWatchSequenceResponse,y,Y),m.return();O=(h=M.response)==null?void 0:(t=h.responseContext)==
null?void 0:t.webResponseContextExtensionData;if(!O)return m.return();Z=(a=M.response)==null?void 0:(g=a.contents)==null?void 0:(D=g.twoColumnWatchNextResults)==null?void 0:(J=D.autoplay)==null?void 0:J.autoplay;V=_.AL().resolve(_.$x);S=_.Uz(_.aq);pLI(S,O,y,Y,V,Z);_.gL(m)})};
_.N.movePlayerToWatch=function(M){var q=this,G,K;return _.L(function(n){G=et(q.pagePool,"watch");K=G.getPlayerContainer();M.appendTo(K);_.gL(n)})};
_.N.movePlayerToShorts=function(M){var q=this,G,K,n;return _.L(function(E){G=et(q.pagePool,"shorts");K=G.getPlayerContainer();(n=M)==null||n.appendTo(K,void 0,!0);_.gL(E)})};
_.N.getPlayerFromWatch=function(){var M=et(this.pagePool,"watch");return _.Sc(M)};
_.N.getPlayerFromShorts=function(){var M=et(this.pagePool,"shorts");return _.Sc(M)};
_.N.startLoadingWatch=function(){var M=this,q=et(this.pagePool,"watch");this.renderLoadingStateJobId?(_.r8.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,_.w("web_watch_transition_enable_start_loading_watch_callsite")?Sgg(this.viewTransitionManager,function(){M.renderPageLoadingState("watch")}):this.renderPageLoadingState("watch")):this.setActivePage(q,"watch");
if(_.w("enable_ai_companion")){var G;(G=_.AL().resolve(_.WR(_.UW)))==null||_.W_8(G,this.getPersistentPanelSurface("watch"))}};
_.N.startLoadingShorts=function(){var M=et(this.pagePool,"shorts");this.setActivePage(M,"shorts")};
_.N.startLoadingLearningJourney=function(){var M=et(this.pagePool,"learning_journey_watch");this.setActivePage(M,"learning_journey_watch")};
_.N.getCurrentPage=function(){return this.currentPage};
_.N.getDestinationPageType=function(){return this.destinationPageType};
_.N.getCurrentData=function(){return this.data};
_.N.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.N.isOnShorts=function(){var M;return((M=this.currentPage)==null?void 0:M.is)==="ytd-shorts"};
_.N.isWatchPage=function(M){return!!M&&(M.is==="ytd-watch-flexy"||M.is==="ytd-watch-fixie"||M.is==="ytd-watch-grid")};
_.N.preparePage=function(M,q){var G=this,K=function(){var p=G.pagePool.preparePage(M,G.currentPage,q);p&&G.attachPage(p)},n=function(p){_.V2(p,q);
_.j1(p)};
if(_.w("kevlar_enable_mss_page_modules_client")){var E=this.getModuleNameForType(M);if(E=xuM(_.AL().resolve(_.Ph),[E])){E.then(K.bind(this)).catch(n.bind(this));return}}try{K()}catch(p){n(p)}};
_.N.lazyPrepareCriticalPages=function(M,q){M=_.K_(q)||M;_.w("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(M).then(this.maybePrepareWatchPage.bind(this,M)):this.maybePrepareWatchPage(M)};
_.N.maybePrepareWatchPage=function(M){M==="watch"||M==="learning_journey_watch"&&_.w("web_watch_learning_journey_disable_lazy_pages")||_.Jp(_.r8,this.preparePage.bind(this,"watch"))};
_.N.downloadPageModules=function(M){M=this.getModuleNameForType(M);var q=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);q.delete(M);var G=_.AL().resolve(_.Ph);G.JSC$18817_loadModules(M);return G.JSC$18817_loadModules.apply(G,_.Ui(q))};
_.N.renderPageLoadingState=function(M,q){this.preparePage(M,q);var G=et(this.pagePool,M);G.loadingData&&(G.loadingData.endpoint=q);G.loading=!0;this.setActivePage(G,M);M!=="watch"&&M!=="learning_journey_watch"||_.jP(this.hostElement,"yt-guide-close")};
_.N.prepareForNavigation=function(M,q){var G=this;if(this.currentPage&&this.data){var K=_.K_(q)||M;this.destinationPageType=K;eq(this.data)==K&&_.jP(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((M==="watch"||M==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.r8.cancelJob(this.renderLoadingStateJobId);_.AL().resolve(_.lq).deactivate(q);_.MK(_.r8,function(){var E=G.viewTransitionManager,p=G.currentPage;
if(E.isLockupToWatchTransitionEnabled&&E.isLockupThumbnailRegistrationEnabled&&p)if(E.registeredLockupThumbnail)E.lockupThumbnailRegisteredFromWatchEndpoint&&_.j1(new _.bj("Lockup thumbnail already registered from watch endpoint."));else{a:{var y=_.C(q,_.Jl);if(y==null?0:y.videoId){var Y="yt-lockup-view-model ."+_.Mku(y.videoId)+" yt-thumbnail-view-model";p=p.querySelectorAll(Y);if(p.length===1){y=p[0];break a}p.length>1?_.j1(new _.bj("Multiple LockupViewModel thumbnails found for videoId: "+y.videoId+
". Selector: "+Y)):_.w("web_thumbnail_to_watch_transition_debug")&&_.j1(new _.bj("No LockupViewModel thumbnail found for videoId: "+y.videoId+". Selector: "+Y))}y=void 0}y&&(E.registeredLockupThumbnail=y,E.lockupThumbnailRegisteredFromWatchEndpoint=!0,_.TPR(E,y))}});
var n=this.data;this.renderLoadingStateJobId=_.MK(_.r8,function(){Sgg(G.viewTransitionManager,function(){if(G.data!=n){var E=et(G.pagePool,M);G.setActivePage(E)}else G.renderPageLoadingState(M,q);G.renderLoadingStateJobId=0})},150)}};
_.N.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var M=new _.K3(1);this.currentPage.pageDisposeJobs.forEach(function(q){_.n3(M,q)});
this.pageDisposeJobsets.set(this.currentPage,M)}};
_.N.flushPageDisposeJobset=function(M){var q=this.pageDisposeJobsets.get(M);q&&(q.flushJobs(),this.pageDisposeJobsets.delete(M))};
_.N.onYtStopOldPlayer=function(M,q){q=q===void 0?!1:q;var G,K=_.CD("kevlar_new_stop_old_player_logic_pages");if(_.w("kevlar_check_current_page_on_stop_old_player")&&(K.length===0||this.currentPage&&K.includes(this.currentPage.is)))if(this.data&&(G=eq(this.data)),eq(M)===G&&this.currentPage&&eq(this.currentPage.data)!==G)var n=_.Sc(this.currentPage);else G=eq(this.data),n=et(this.pagePool,G),n=_.Sc(n);else this.data&&(G=eq(this.data),n=et(this.pagePool,G),n=_.Sc(n));if(n){K=eq(M);var E=et(this.pagePool,
K);E=_.Sc(E);if(n==E)q&&!_.w("kevlar_disable_preemptive_player_reset")&&n.resetForNewPlayback();else if(q=G==="watch"&&K!=="watch",!q||K==="shorts"||_.$iS()&&!gAM(this.data,M))M=_.AL().resolve(_.lq),q&&M.isMiniplayerActive()&&M.pipController.getWindow()||n.stop()}};
_.N.isDifferentBrowseId=function(M,q){M=_.C(M,_.n_);q=_.C(q,_.n_);return(M==null?void 0:M.browseId)!==(q==null?void 0:q.browseId)};
_.N.getPersistentPanelSurface=function(M){switch(M){case "watch":return"WATCH";default:return"APP"}};
_.Yd.Object.defineProperties(pZ,{template:{configurable:!0,enumerable:!0,get:function(){return JUw()}}});
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],pZ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-page-manager"})],pZ);_.z(pZ,"ytd-page-manager",function(){return JUw()},{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var ZUw;var y7=function(){var M=_.Q.apply(this,arguments)||this;M.useListItemStyles=_.w("web_list_item_style_for_menu_items");M.systemIcons=_.w("kevlar_system_icons");return M};
_.l(y7,_.Q);_.N=y7.prototype;_.N.ready=function(){this.hostElement.addEventListener("tap",_.qs(this,this.onEndpointTapExtra))};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.N.onFocus=function(){var M;(M=_.f_(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.N.onEndpointTapExtra=function(M){_.jP(this.hostElement,"iron-activate");var q=this.data.navigationEndpoint;q&&_.C(q,_.Pr4)&&(M.stopPropagation(),_.FH(this.hostElement,[q],this.hostElement))};
_.N.computeIcon=function(M){return M&&M.iconType?_.H4(M.iconType):""};
_.N.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.N.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.N.forceUpdateStylesOnLegacyBrowsers=function(){_.w("kevlar_legacy_browsers")&&_.sT(this.hostElement)};
y7.prototype.forceUpdateStylesOnLegacyBrowsers=y7.prototype.forceUpdateStylesOnLegacyBrowsers;y7.prototype.onFocus=y7.prototype.onFocus;_.T([_.P(_.EO),_.r("design:type",Object)],y7.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.WLw.YtConditionalRendererBehavior),_.r("design:type",Object)],y7.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.P(_.OH.YtEndpointBehavior),_.r("design:type",Object)],y7.prototype,"ytEndpointBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],y7.prototype,"data",void 0);_.T([_.B({computed:"computeIcon(data.icon)",value:""}),_.r("design:type",String)],y7.prototype,"icon",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],y7.prototype,"useIcons",void 0);_.T([_.B({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.r("design:type",Boolean)],y7.prototype,"hasSeparator",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],y7.prototype,"useListItemStyles",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],y7.prototype,"systemIcons",void 0);_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y7.prototype,"onFocus",null);_.T([_.KT("useIcons","hasSeparator"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],y7.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.z(y7,"ytd-menu-navigation-item-renderer",function(){if(ZUw===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);ZUw=M}M=ZUw;return M},{mode:1});var bUR;var Uws=_.bc(_.Ge("DOWNLOAD",{},"Download")),xwg=_.bc(_.Ge("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),zi8=_.bc(_.Ge("RETRY",{},"Retry")),mww=_.bc(_.Ge("PAUSE_DOWNLOADING",{},"Pause downloading")),Stw=_.bc(_.Ge("RESUME_DOWNLOAD",{},"Resume download")),LZ=function(){var M=_.Q.apply(this,arguments)||this;M.primaryText=Uws;M.primaryIconType="OFFLINE_DOWNLOAD";M.hasSecondaryContent=!1;M.hasSeparator=!1;M.transferState="TRANSFER_STATE_UNKNOWN";M.isVideoDeletedByUser=!1;M.isHidden=!1;M.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return M};
_.l(LZ,_.Q);_.N=LZ.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.N.onFocus=function(){this.primaryEntry.focus()};
_.N.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.N.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.N.getRemoveAction=function(){return"ACTION_REMOVE"};
_.N.sendOfflineAction=function(M){var q=this.data.serviceEndpoint;if(q){var G=_.C(q,_.KL);G&&M&&(G.action=M);this.ytComponentBehavior.resolveCommand(q)}};
_.N.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=Uws,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=Uws;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=zi8;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=xwg;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=Stw;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=xwg;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
mww;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=xwg;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=xwg;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=Uws,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.N.showHideButton=function(){var M;this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||((M=this.playerStateEntity)==null?void 0:M.adsState)==="ADS_STATE_PLAYING"};
_.N.isSecondaryEntryHidden=function(M,q){return M?!0:!q};
_.N.computeHasSeparator=function(){var M;return!((M=this.data)==null||!M.hasSeparator)};
_.N.computePlayerStateEntityKey=function(M){return M};
LZ.prototype.showHideButton=LZ.prototype.showHideButton;LZ.prototype.onTransferStateChange=LZ.prototype.onTransferStateChange;LZ.prototype.onFocus=LZ.prototype.onFocus;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],LZ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],LZ.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],LZ.prototype,"ytComponentBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],LZ.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],LZ.prototype,"primaryText",void 0);_.T([_.B(),_.r("design:type",String)],LZ.prototype,"primaryIconType",void 0);_.T([_.B(),_.r("design:type",String)],LZ.prototype,"primaryAction",void 0);_.T([_.B(),_.r("design:type",Object)],LZ.prototype,"secondaryText",void 0);_.T([_.B(),_.r("design:type",String)],LZ.prototype,"secondaryIconType",void 0);
_.T([_.B(),_.r("design:type",String)],LZ.prototype,"secondaryAction",void 0);_.T([_.B(),_.r("design:type",Object)],LZ.prototype,"hasSecondaryContent",void 0);_.T([_.B({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.r("design:type",Object)],LZ.prototype,"hasSeparator",void 0);_.T([_.B({computed:"computePlayerStateEntityKey(data.playerStateEntityKey)"}),_.r("design:type",String)],LZ.prototype,"playerStateEntityKey",void 0);
_.T([_.B({selector:_.e5,selectorArgs:["playerStateEntityKey"]}),_.r("design:type",Object)],LZ.prototype,"playerStateEntity",void 0);_.T([_.B({selector:_.Xp,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.r("design:type",String)],LZ.prototype,"transferState",void 0);_.T([_.B({selector:_.eCw,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.r("design:type",Object)],LZ.prototype,"isVideoDeletedByUser",void 0);
_.T([_.B(),_.r("design:type",Object)],LZ.prototype,"isHidden",void 0);_.T([_.B({selector:_.rvi,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.r("design:type",Object)],LZ.prototype,"offlineabilityState",void 0);_.T([_.ET("#primary-entry"),_.r("design:type",Object)],LZ.prototype,"primaryEntry",void 0);_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LZ.prototype,"onFocus",null);
_.T([_.yO("transferState","isVideoDeletedByUser"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LZ.prototype,"onTransferStateChange",null);_.T([_.yO("offlineabilityState","playerStateEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],LZ.prototype,"showHideButton",null);
_.z(LZ,"ytd-menu-service-item-download-renderer",function(){if(bUR===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);bUR=M}M=bUR;return M},{mode:1});var T0R;var YZ=function(){var M=_.Q.apply(this,arguments)||this;M.useIcons=!1;M.systemIcons=_.w("kevlar_system_icons");M.useListItemStyles=_.w("web_list_item_style_for_menu_items");return M};
_.l(YZ,_.Q);_.N=YZ.prototype;_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.N.onFocus=function(){var M;(M=_.f_(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.N.onTap=function(){_.Rf(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var M=this.data.serviceEndpoint,q=this.data.command;if(M){var G,K=(G=this.data)==null?void 0:G.trackingParams;G=!!_.C(M,_.nv$);K&&G&&_.zw().dispatch(_.RJ({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:K}}));this.ytComponentBehavior.resolveCommand(M)||_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}})}q&&(this.ytComponentBehavior.resolveCommand(q)||_.FH(this.hostElement,
[q],this.hostElement))};
_.N.computeIcon=function(M){return M&&M.iconType?_.H4(M.iconType):""};
_.N.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.N.computeHasSeparator=function(){var M;return!((M=this.data)==null||!M.hasSeparator)};
_.N.forceUpdateStylesOnLegacyBrowsers=function(){_.w("kevlar_legacy_browsers")&&_.sT(this.hostElement)};
_.N.computeIsSelected=function(){var M;return!((M=this.data)==null||!M.isSelected)};
YZ.prototype.forceUpdateStylesOnLegacyBrowsers=YZ.prototype.forceUpdateStylesOnLegacyBrowsers;YZ.prototype.onTap=YZ.prototype.onTap;YZ.prototype.onFocus=YZ.prototype.onFocus;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],YZ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],YZ.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],YZ.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.WLw.YtConditionalRendererBehavior),_.r("design:type",Object)],YZ.prototype,"ytConditionalRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],YZ.prototype,"data",void 0);_.T([_.B({computed:"computeIcon(data.icon)",value:""}),_.r("design:type",String)],YZ.prototype,"icon",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],YZ.prototype,"useIcons",void 0);
_.T([_.B({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.r("design:type",Boolean)],YZ.prototype,"hasSeparator",void 0);_.T([_.B({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.r("design:type",Boolean)],YZ.prototype,"isSelected",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],YZ.prototype,"systemIcons",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],YZ.prototype,"useListItemStyles",void 0);
_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YZ.prototype,"onFocus",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],YZ.prototype,"onTap",null);_.T([_.KT("useIcons","hasSeparator"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YZ.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.z(YZ,"ytd-menu-service-item-renderer",function(){if(T0R===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);T0R=M}M=T0R;return M},{mode:2});var rUP;var W$=function(){return _.Q.apply(this,arguments)||this};
_.l(W$,_.Q);_.N=W$.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.onDataChanged=function(){var M=this;_.yb(this,function(){M.postbox.openDialog();M.focus();_.jP(M.hostElement,"yt-refit")})};
_.N.focus=function(){this.postbox.focus()};
_.N.closePopup=function(){_.VW(this.hostElement,"yt-close-popup-action")};
_.N.onYtCommentboxDismiss=function(){this.closePopup()};
W$.prototype.onYtCommentboxDismiss=W$.prototype.onYtCommentboxDismiss;W$.prototype.onDataChanged=W$.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],W$.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],W$.prototype,"data",void 0);_.T([_.B({value:function(){return _.Ge("SBOX_INAPPROPRIATE_CANCEL")}}),
_.r("design:type",String)],W$.prototype,"closeButtonAriaLabel",void 0);_.T([_.ET("#postbox"),_.r("design:type",Object)],W$.prototype,"postbox",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],W$.prototype,"onDataChanged",null);_.T([_.GQ("yt-commentbox-dismiss"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],W$.prototype,"onYtCommentboxDismiss",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],W$);
_.z(W$,"ytd-backstage-post-dialog-popup-renderer",function(){if(rUP!==void 0)return rUP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return rUP=M},{mode:1});var jdP;var VyR=function(){return _.Q.apply(this,arguments)||this};
_.l(VyR,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],VyR.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],VyR.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],VyR);
_.z(VyR,"ytd-sender-id-section-renderer",function(){if(jdP!==void 0)return jdP;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sender-id-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="text" class="style-scope ytd-sender-id-section-renderer">[[getSimpleString(data.text)]]</div>\n');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return jdP=M},{mode:1});var RiR;var fz8;var FVR;var Aw=function(){return _.Q.apply(this,arguments)||this};
_.l(Aw,_.Q);Aw.prototype.closePopup=function(){_.VW(this.hostElement,"yt-close-popup-action")};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Aw.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Aw.prototype,"data",void 0);_.T([_.aO({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],Aw);
_.z(Aw,"yt-community-post-section-renderer",function(){if(FVR===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;fz8===void 0&&(fz8=document.createElement("template"));var K=fz8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);FVR=M}M=FVR;return M},{mode:2});var HUE;var ein;var $wI;var sz5;var MVv;var q1R;var GVM=function(){return _.Q.apply(this,arguments)||this};
_.l(GVM,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],GVM.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],GVM.prototype,"data",void 0);_.T([_.aO({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],GVM);
_.z(GVM,"yt-share-start-time-with-context-renderer",function(){if(q1R===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;MVv===void 0&&(MVv=document.createElement("template"));var K=MVv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);q1R=M}M=q1R;return M},{mode:2});var dG=function(){return _.Q.apply(this,arguments)||this};
_.l(dG,_.Q);dG.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],dG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],dG.prototype,"data",void 0);_.T([_.aO({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],dG);
_.z(dG,"yt-share-panel-title-v15-renderer",function(){if(sz5===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;$wI===void 0&&($wI=document.createElement("template"));var K=$wI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);sz5=M}M=sz5;return M},{mode:2});var v$=function(){return _.Q.apply(this,arguments)||this};
_.l(v$,_.Q);v$.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],v$.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],v$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],v$.prototype,"data",void 0);_.T([_.aO({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],v$);
_.z(v$,"yt-share-panel-header-renderer",function(){if(ein===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;HUE===void 0&&(HUE=document.createElement("template"));var K=HUE;G.call(q,K.content.cloneNode(!0),M.content.firstChild);ein=M}M=ein;return M},{mode:2});var KR8;var n9L;var hw=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-open-popup-action":"onOpen"};return M};
_.l(hw,_.Q);_.N=hw.prototype;_.N.attached=function(){this.onOpen()};
_.N.updateTimeSecs=function(M){this.currentTimeSecs=M};
_.N.computeTimeString=function(M){M=M.toString();var q=Math.floor(Number(M)/3600),G=Math.floor(Number(M)%3600%60);return(q>0?q+":":"")+_.Me(Math.floor(Number(M)%3600/60),q>0?2:1)+":"+_.Me(G,2)};
_.N.computeTimeStringA11y=function(M){return _.nS$({seconds:M})};
_.N.getTimeParam=function(){return SFU(this.timeString)};
_.N.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var M={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},q;_.Pg(_.nl(),(q=this.data)==null?void 0:q.trackingParams,M,7)};
_.N.onChangeStartAtTimestamp=function(){for(var M=this.startAtTimestamp.value.split(":"),q=0,G=1,K=M.length-1;K>=0;K--)q+=Number(M[K])*G,G*=60;this.updateTimeSecs(q);this.setTimestamp()};
_.N.onOpen=function(){var M=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var q=_.TM();q?q.getPlayerPromise().then(function(G){G=G.getCurrentTime();M.updateTimeSecs(G)}):YqI()&&this.updateTimeSecs(YqI())};
_.N.setTimestamp=function(){var M=Math.floor(this.currentTimeSecs);_.VW(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!M,timestamp:M||""}])};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],hw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hw.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hw.prototype,"data",void 0);_.T([_.B({value:!1,notify:!0}),_.r("design:type",Boolean)],hw.prototype,"isStartAtChecked",void 0);_.T([_.B(),_.r("design:type",Number)],hw.prototype,"currentTimeSecs",void 0);
_.T([_.B({computed:"computeTimeString(currentTimeSecs)"}),_.r("design:type",String)],hw.prototype,"timeString",void 0);_.T([_.B({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.r("design:type",String)],hw.prototype,"timeStringA11y",void 0);_.T([_.ET("#start-at-timestamp"),_.r("design:type",Object)],hw.prototype,"startAtTimestamp",void 0);_.T([_.aO({is:"yt-start-at-renderer",disableElementRegistration:!0})],hw);
_.z(hw,"yt-start-at-renderer",function(){if(n9L===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;KR8===void 0&&(KR8=document.createElement("template"));var K=KR8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);n9L=M}M=n9L;return M},{mode:2});var E9s;var NKP;var kVv={};kVv.YtBindingExpressionsBehavior={identity:_.ZF,msg:function(M,q){q=q===void 0?{}:q;return _.Ge(M,q,M)},
msgPlural:function(M,q){return _.K7(M,q)},
getMusicIconFromType:function(M){return _.H4(M)}};var pYI;var yzs;var LRg;var Y1R=document.head,WRP=Y1R.appendChild,Az5;if(LRg===void 0){var dEg=document.createElement("template");_.X(dEg,'\x3c!--css-build:shady--\x3e<iron-iconset-svg name="socialNetworks" size="48"><svg><defs></defs></svg></iron-iconset-svg><iron-iconset-svg name="socialNetworksRound" size="60"><svg><defs></defs></svg></iron-iconset-svg>');LRg=dEg}Az5=LRg;WRP.call(Y1R,Az5.content);var tw=function(){var M=_.Q.apply(this,arguments)||this;M.screenLayer=7;return M};
_.l(tw,_.Q);tw.prototype.getScreenLayer=function(){return this.screenLayer};
tw.prototype.onTap=function(M){M&&M.detail&&(M.detail.x||M.detail.y)&&_.f_(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.fx(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(M=this.getScreenLayer(),_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:M}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Yd.Object.defineProperties(tw.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()}}});
tw.prototype.onTap=tw.prototype.onTap;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tw.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],tw.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tw.prototype,"data",void 0);_.T([_.c("data.title"),_.r("design:type",Object),_.r("design:paramtypes",[])],tw.prototype,"title",null);
_.T([_.c("data.serviceName"),_.r("design:type",String),_.r("design:paramtypes",[])],tw.prototype,"icon",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],tw.prototype,"onTap",null);_.T([_.aO({is:"yt-share-target-renderer",disableElementRegistration:!0})],tw);
_.z(tw,"yt-share-target-renderer",function(){if(yzs===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;pYI===void 0&&(pYI=document.createElement("template"));var K=pYI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);yzs=M}M=yzs;return M},{mode:2});var v9g;var hT5;var OC=function(){var M=_.Q.apply(this,arguments)||this;M.SHARE_TARGET_WIDTH=70;M.SHARE_TARGET_MARGIN_RIGHT=8;M.PAGE_SCROLL_SPEED=9;M.actionMap={"yt-share-panel-reset-action":"onReset_"};return M};
_.l(OC,_.Q);_.N=OC.prototype;_.N.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.N.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.f_(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.f_(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.N.onReset_=function(){if(_.f_(this.hostElement).querySelector("#list")){var M=_.f_(this.hostElement).querySelector("#list");var q=_.f_(this.hostElement).querySelector("#list");var G=q.offsetLeft,K=q.offsetParent;K||_.IJJ(q)!="fixed"||(K=_.T9(q).documentElement);if(K){if(_.Fa&&!_.eh(58)){var n=_.zqM(K);G+=n.left}else Number(_.qMf)>=8&&!(Number(_.qMf)>=9)&&(n=_.zqM(K),G-=n.left);q=_.U_S(K)?K.clientWidth-(G+q.offsetWidth):G}else q=G;pBP(M,q);this.updateScrollButtons_()}};
_.N.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.N.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.N.onScrollWheel_=function(M){M.stopPropagation();M.preventDefault();var q=kKP(_.f_(this.hostElement).querySelector("#list"));M=Math.abs(M.deltaX)>Math.abs(M.deltaY)?M.deltaX:M.deltaY;pBP(_.f_(this.hostElement).querySelector("#list"),q+M);this.updateScrollButtons_()};
_.N.smoothScrollByOnePage_=function(M){var q=_.f_(this.hostElement).querySelector("#list"),G=(Math.floor(q.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,K=kKP(q),n=G*(M?1:-1),E=this.PAGE_SCROLL_SPEED,p=this.updateScrollButtons_.bind(this),y=0,Y;(function v(){y+=E;Y=y/G*2;pBP(q,K+n*(Y<1?Y*Y:-Y*Y+4*Y-2));y<G?window.requestAnimationFrame(v):p()})()};
_.N.updateScrollButtons_=function(){var M=kKP(_.f_(this.hostElement).querySelector("#list")),q=_.f_(this.hostElement).querySelector("#list").scrollWidth-_.f_(this.hostElement).querySelector("#list").clientWidth;_.f_(this.hostElement).querySelector("#scroll-button-back").hidden=M<=0;_.f_(this.hostElement).querySelector("#scroll-button-forward").hidden=M>=q};
OC.prototype.onScrollWheel_=OC.prototype.onScrollWheel_;OC.prototype.onDataChanged_=OC.prototype.onDataChanged_;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],OC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],OC.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(kVv.YtBindingExpressionsBehavior),_.r("design:type",Object)],OC.prototype,"ytBindingExpressionsBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],OC.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],OC.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],OC.prototype,"onDataChanged_",null);_.T([_.GQ("wheel"),_.r("design:type",Function),_.r("design:paramtypes",[WheelEvent]),_.r("design:returntype")],OC.prototype,"onScrollWheel_",null);
_.T([_.aO({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],OC);
_.z(OC,"yt-third-party-share-target-section-renderer",function(){if(hT5===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;v9g===void 0&&(v9g=document.createElement("template"));var K=v9g;G.call(q,K.content.cloneNode(!0),M.content.firstChild);hT5=M}M=hT5;return M},{mode:2});var wG=function(){return _.Q.apply(this,arguments)||this};
_.l(wG,_.Q);wG.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"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],wG.prototype,"data",void 0);_.T([_.aO({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],wG);
_.z(wG,"yt-third-party-network-section-renderer",function(){if(NKP===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;E9s===void 0&&(E9s=document.createElement("template"));var K=E9s;G.call(q,K.content.cloneNode(!0),M.content.firstChild);NKP=M}M=NKP;return M},{mode:2});_.S5(_.U(function(M){return _.W("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.W("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.W(_.yu,{data:function(){return M.data().firstPartyItems}},{listItemViewModel:_.Sy})))},"Yi"),"first-party-network-section-view-model",{props:{data:_.Hz}});var tVw=(0,_.mhL)(_.zN.share,{parentClickTrackingParamsSelector:function(M){return M.parentClickTrackingParams}});var ObU=_.DQ(["data:image/svg+xml;charset=UTF-8;base64,",""]),CZ=function(){var M=_.Q.apply(this,arguments)||this;M.screenLayer=7;M.qrCodeEnabled=_.w("web_enable_sharing_qr_code");M.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return M};
_.l(CZ,_.Q);_.N=CZ.prototype;_.N.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{senderIdSectionRenderer:"ytd-sender-id-section-renderer",thirdPartyNetworkSection:"yt-third-party-network-section-renderer",firstPartyNetworkSectionViewModel:"first-party-network-section-view-model"}}}};
_.N.attached=function(){this.JSC$20352_scroller&&(this.JSC$20352_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20352_scroller.attached&&typeof this.JSC$20352_scroller.attached==="function"&&this.JSC$20352_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.N.onDataChanged=function(){var M=this,q;(q=this.data)!=null&&q.contents&&(this.hostElement.setAttribute("links-only","true"),_.el(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.yb(this,function(){_.jP(M.hostElement,"yt-refit");M.focusSharePanelHeader()}))};
_.N.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.N.handleSetTimestamp=function(M){var q=this.shortUrl();M.isSet&&(q=_.xE(q,"t",M.timestamp));this.maybeRenderQrCode(q)};
_.N.shortUrl=function(){var M,q=(M=this.data)==null?void 0:M.contents;if(q)for(M=0;M<q.length;M++){var G=void 0,K=void 0;if((G=q[M])==null?0:(K=G.thirdPartyNetworkSection)==null?0:K.copyLinkContainer){var n=K=G=void 0;return(n=_.C((G=q[M])==null?void 0:(K=G.thirdPartyNetworkSection)==null?void 0:K.copyLinkContainer,cbI))==null?void 0:n.shortUrl}}};
_.N.maybeRenderQrCode=function(M){var q=this,G,K,n,E,p,y,Y,A,v;return _.L(function(h){if(h.nextAddress==1){G=_.f_(q.hostElement).querySelector("#qr-code");if(!q.qrCodeEnabled||!M)return G&&(G.style.display="none"),h.return();K=_.zh4(_.AL().resolve(_.eo),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});n=document.createElement("div");return typeof K==="function"?(K(n),h.jumpTo(2)):h.yield(K,3)}h.nextAddress!=2&&(E=h.yieldResult,E(n));Y=(p=n)==null?void 0:(y=p.firstChild)==null?void 0:y.firstChild;
A=document.createElement("img");v=_.NLj(ObU,btoa(Y.outerHTML));A.onload=function(){var t={canvas:G,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:A},O=new c$n;umn(O,M);J$R(O,!1,ZLw(O));var a=O.modules,g=Object.assign({},pzv,t);a=structuredClone(a);t=a.length;var D,J=(D=g.canvas)!=null?D:document.createElement("canvas");D=g.cellSize;O=g.logo;var Z,V=(Z=g.logoSize)!=null?Z:Math.floor(t/4);t%2!==V%2&&V++;var S=g.logoPadding,m=g.backgroundColor;Z=t*D;var R=
g.width,se=0;R&&(se=g.padding,se=Math.ceil(se*Z/(R-se*2)),J.style.width=R+"px",J.style.height=R+"px");J.width!==Z+se*2&&(J.width=Z+se*2);J.height!==Z+se*2&&(J.height=Z+se*2);Z=J.getContext("2d");g.autoClear&&Z.clearRect(0,0,J.width,J.height);Z.fillStyle=m;Z.beginPath();Z.roundRect(0,0,J.width,J.height,g.borderRadius);Z.fill();Z.save();Z.translate(se,se);if(O)for(J=Math.floor(t-V)/2-S,S=Math.floor(t+V)/2+S,m=J;m<S;m++)for(R=J;R<S;R++)a[m][R]=!1;for(J=0;J<t;J++)for(S=0;S<t;S++)(J<7&&S<7||J<7&&S>=t-
7||J>=t-7&&S<7)&&(a[J][S]=!1);var yY;J=(yY=g.markerColor)!=null?yY:g.color;UoM(Z,0,0,D,J);UoM(Z,D*(t-7),0,D,J);UoM(Z,0,D*(t-7),D,J);switch(g.cellStyle){case 0:yY=a;a=yY.length;J=g.cellSize;Z.beginPath();for(S=0;S<a;S++)for(m=0;m<a;m++)yY[S][m]&&Z.rect(S*J,m*J,J,J);Z.fillStyle=g.color;Z.fill();break;case 1:yY=a;a=yY.length;J=g.cellSize;S=J*g.relativeCircleSize;Z.fillStyle=g.color;Z.beginPath();for(g=0;g<a;g++)for(m=0;m<a;m++)yY[g][m]&&(Z.beginPath(),Z.ellipse((g+.5)*J,(m+.5)*J,S/2,S/2,0,0,2*Math.PI),
Z.fill());Z.fill();break;case 2:yY=a;a=yY.length;J=g.cellSize;Z.fillStyle=g.color;g=[[1,1],[-1,1],[-1,-1],[1,-1]];Z.beginPath();for(S=0;S<a;S++)for(m=0;m<a;m++)if(yY[S][m])Z.roundRect(S*J,m*J,J,J,J/2),S+1<a&&yY[S+1][m]&&Z.rect(S*J+J/2,m*J,J,J),m+1<a&&yY[S][m+1]&&Z.rect(S*J,m*J+J/2,J,J);else{R=S*J+J/2;se=m*J+J/2;for(var d$=0;d$<4;d$++){var cy=_.k(g[d$]),t4=cy.next().value;cy=cy.next().value;S+t4>=0&&S+t4<a&&m+cy>=0&&m+cy<a&&yY[S+t4][m]&&yY[S][m+cy]&&yY[S+t4][m+cy]&&(t4=d$*Math.PI/2,cy=J/2,Z.moveTo(R+
cy*Math.cos(t4),se+cy*Math.sin(t4)),Z.arc(R,se,J/2,t4,t4+Math.PI/2,!1),Z.lineTo(R+cy*(Math.cos(t4)-Math.sin(t4)),se+cy*(Math.cos(t4)+Math.sin(t4))),Z.lineTo(R+cy*Math.cos(t4),se+cy*Math.sin(t4)))}}Z.fill()}O&&Z.drawImage(O,(t-V)*D/2,(t-V)*D/2,V*D,V*D);Z.restore();G.style.removeProperty("display")};
A.src=_.by(v);_.gL(h)})};
_.N.hasCommunityPostRenderer=function(){var M,q,G,K;return!!((M=this.data)==null?0:(q=M.header)==null?0:(G=q.sharePanelHeaderRenderer)==null?0:(K=G.communityPost)==null?0:K.communityPostSectionRenderer)};
_.N.onTapClose=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.N.getScreenLayer=function(){return this.screenLayer};
_.N.logSharePanelPage=function(){if(!_.w("enable_share_panel_navigation_logging_fix_on_web")){var M;if((M=this.data)!=null&&M.trackingParams){M=this.data.trackingParams;var q=this.parentClickTrackingParams;q=q?_.yx(q):void 0;var G=_.nl();_.aQ(G,21760,q,{layer:7,parentLayer:0});G.graftServerVe(M,void 0,7);_.zw().dispatch(_.RJ({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
CZ.prototype.onDataChanged=CZ.prototype.onDataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],CZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],CZ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],CZ.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],CZ.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],CZ.prototype,"data",void 0);_.T([_.B({value:_.Ge("SBOX_INAPPROPRIATE_CANCEL")}),_.r("design:type",String)],CZ.prototype,"closeButtonAriaLabel",void 0);_.T([_.ET("yt-share-panel-header-renderer"),_.r("design:type",HTMLElement)],CZ.prototype,"header",void 0);_.T([_.B({selector:tVw.parentClickTrackingParamsSelector}),_.r("design:type",String)],CZ.prototype,"parentClickTrackingParams",void 0);_.T([_.B(),_.r("design:type",Object)],CZ.prototype,"qrCodeEnabled",void 0);
_.T([_.ET("#scroller"),_.r("design:type",Object)],CZ.prototype,"JSC$20352_scroller",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],CZ.prototype,"onDataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],CZ);
_.z(CZ,"ytd-unified-share-panel-renderer",function(){if(RiR!==void 0)return RiR;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-unified-share-panel-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-unified-share-panel-renderer">\n  <div id="spinner" hidden="[[!data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n    <tp-yt-paper-spinner active="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer"></tp-yt-paper-spinner>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="onTapClose" class="style-scope ytd-unified-share-panel-renderer">\n    <yt-icon icon="close" class="style-scope ytd-unified-share-panel-renderer"></yt-icon>\n  </yt-icon-button>\n  <yt-share-panel-header-renderer id="share-panel-header" data="[[data.header.sharePanelHeaderRenderer]]" hidden="[[data.showLoadingSpinner]]" class="style-scope ytd-unified-share-panel-renderer">\n  </yt-share-panel-header-renderer>\n  <div id="contents" class="style-scope ytd-unified-share-panel-renderer"></div>\n  <canvas id="qr-code" alt="QR code" hidden="[[!qrCodeVisible]]" class="style-scope ytd-unified-share-panel-renderer">\n</canvas></tp-yt-paper-dialog-scrollable>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return RiR=M},{mode:1});var wYI;var aN=function(){var M=_.Q.apply(this,arguments)||this;M.modernModal=!0;return M};
_.l(aN,_.Q);aN.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
aN.prototype.computeShouldHideOldButtons=function(){var M;return!((M=this.data)==null?0:M.button)};
_.Yd.Object.defineProperties(aN.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var M,q;return(M=this.data)==null?void 0:(q=M.button)==null?void 0:q.buttonRenderer}}});
_.T([_.B(),_.r("design:type",Object)],aN.prototype,"data",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],aN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],aN.prototype,"ytEventForwardingBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],aN.prototype,"modernModal",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],aN.prototype,"buttonRendererData",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],aN);
_.z(aN,"ytd-modal-with-title-and-button-renderer",function(){if(wYI!==void 0)return wYI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return wYI=M},{mode:1});var CnM;var oN=function(){return _.Q.apply(this,arguments)||this};
_.l(oN,_.Q);oN.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("page-changed",this.page))};
oN.prototype.pageChangedForBinding=oN.prototype.pageChangedForBinding;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],oN.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],oN.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],oN.prototype,"page",void 0);_.T([_.KT("page"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],oN.prototype,"pageChangedForBinding",null);
_.T([_.b({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],oN);
_.z(oN,"ytd-account-item-section-header-renderer",function(){if(CnM!==void 0)return CnM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return CnM=M},{mode:1});var a1R;var lE=function(){return _.Q.apply(this,arguments)||this};
_.l(lE,_.Q);lE.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"}}}};
lE.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],lE.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],lE.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!1}),_.r("design:type",Function)],lE.prototype,"onAccountItemTap",void 0);
_.T([_.b({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],lE);
_.z(lE,"ytd-account-item-section-renderer",function(){if(a1R!==void 0)return a1R;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return a1R=M},{mode:1});var o9I;var l1g;var XYv=function(){return _.Q.apply(this,arguments)||this};
_.l(XYv,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],XYv.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],XYv.prototype,"data",void 0);_.T([_.b({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],XYv);
_.z(XYv,"ytd-accounts-dialog-header-renderer",function(){if(l1g!==void 0)return l1g;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return l1g=M},{mode:1});var PnU;var XJ=function(){return _.Q.apply(this,arguments)||this};
_.l(XJ,_.Q);XJ.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],XJ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],XJ.prototype,"data",void 0);_.T([_.b({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],XJ);
_.z(XJ,"ytd-google-account-header-renderer",function(){if(PnU!==void 0)return PnU;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return PnU=M},{mode:1});var P$=function(){return _.Q.apply(this,arguments)||this};
_.l(P$,_.Q);P$.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"}}}};
P$.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("page-changed",this.page))};
P$.prototype.pageChangedForBinding=P$.prototype.pageChangedForBinding;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],P$.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],P$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],P$.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],P$.prototype,"page",void 0);
_.T([_.KT("page"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],P$.prototype,"pageChangedForBinding",null);_.T([_.b({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],P$);
_.jo()(P$,"ytd-account-section-list-renderer",function(){if(o9I===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);o9I=M}M=o9I;return M},{allowedProps:["data"],
mode:1});var ibR;var iE=function(){var M=_.Q.apply(this,arguments)||this;M.enableHandlesAccountMenuSwitcher=_.w("enable_handles_account_menu_switcher");return M};
_.l(iE,_.Q);iE.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
iE.prototype.dataChanged=iE.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],iE.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],iE.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.T([_.ET("#avatar"),_.r("design:type",Object)],iE.prototype,"avatar",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iE.prototype,"dataChanged",null);_.T([_.b({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],iE);
_.jo()(iE,"ytd-active-account-header-renderer",function(){if(ibR===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);ibR=M}M=ibR;return M},{allowedProps:["data"],
mode:1});var czP;var g9E;var c$=function(){return _.Q.apply(this,arguments)||this};
_.l(c$,_.Q);c$.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
c$.prototype.onBackTap=function(){_.jP(this.hostElement,"yt-menu-back-tapped")};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],c$.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],c$.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],c$.prototype,"data",void 0);_.T([_.b({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],c$);
_.jo()(c$,"ytd-simple-menu-header-renderer",function(){if(g9E===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);g9E=M}M=g9E;return M},{allowedProps:["data"],
mode:2});var BK8;var QzU=function(){return _.Q.apply(this,arguments)||this};
_.l(QzU,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QzU.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QzU.prototype,"data",void 0);_.T([_.b({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],QzU);
_.z(QzU,"ytd-comment-video-thumbnail-header-renderer",function(){if(BK8!==void 0)return BK8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return BK8=M},{mode:1});var I1E;var DEP=function(){return _.Q.apply(this,arguments)||this};
_.l(DEP,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],DEP.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],DEP.prototype,"data",void 0);_.T([_.b({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],DEP);
_.z(DEP,"ytd-abuse-type-selector-renderer",function(){if(I1E!==void 0)return I1E;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return I1E=M},{mode:1});var uRw;var Jz8=(0,_.mhL)(_.zN.reportChannelAbuse,{isVideoIdSelectedSelector:function(M,q){return q in M.selectedVideoIds},
additionalContextSelector:function(M){return M.additionalContext},
impersonatedChannelUrlSelector:function(M){return M.impersonatedChannelUrl},
reportChannelAbuseSelector:function(M){return M}});var gG=function(){return _.Q.apply(this,arguments)||this};
_.l(gG,_.Q);gG.prototype.attached=function(){var M=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){M.additionalContextInput.focusTextInput()})};
gG.prototype.handleAdditionalContextChanged=function(){var M=this;_.B4(this,"ytd-report-channel-additional-context-update",function(){M.ytdReduxBehavior.dispatch(_.RJ({type:"ADDITIONAL_CONTEXT_UPDATED",payload:M.additionalContext}))},300)};
gG.prototype.updateAdditionalContextFromBinding=function(M){this.additionalContext=M.detail.value};
gG.prototype.handleAdditionalContextChanged=gG.prototype.handleAdditionalContextChanged;_.T([_.P(_.mr),_.r("design:type",Object)],gG.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",String)],gG.prototype,"additionalContext",void 0);_.T([_.B({selector:Jz8.additionalContextSelector}),_.r("design:type",String)],gG.prototype,"additionalContextRedux",void 0);_.T([_.B(),_.r("design:type",Object)],gG.prototype,"data",void 0);
_.T([_.ET("yt-text-input-form-field-renderer"),_.r("design:type",Object)],gG.prototype,"additionalContextInput",void 0);_.T([_.KT("additionalContext"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gG.prototype,"handleAdditionalContextChanged",null);_.T([_.b({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],gG);
_.z(gG,"ytd-report-channel-modal-additional-context-renderer",function(){if(uRw!==void 0)return uRw;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return uRw=M},{mode:1});var Zbv;var B$=function(){var M=_.Q.apply(this,arguments)||this;M.nextButtonDisabled=null;M.submitEndpoint=null;M.navigationEndpoint=null;M.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return M};
_.l(B$,_.Q);_.N=B$.prototype;_.N.computeNextButtonData=function(M,q,G){var K={};q&&(K.navigationEndpoint=q);G&&(K.serviceEndpoint=G);M&&M.buttonRenderer&&_.xP.extend(K,M.buttonRenderer);return K};
_.N.handleReportChannelModalDisableNextButtonAction=function(M){this.setNextButtonIsDisabled(M)};
_.N.handleReportFormEndpointUpdateAction=function(M){this.setNextButtonIsDisabled(!!M.disableSubmitButton);this.resetEndpointData();M.submitEndpoint?this.submitEndpoint=M.submitEndpoint:M.submitNavigationEndpoint&&(this.navigationEndpoint=M.submitNavigationEndpoint)};
_.N.handleSignalActionSubmitForm=function(){var M,q=Object.keys(((M=this.reportChannelAbuseForm)==null?void 0:M.selectedVideoIds)||{}),G;M=((G=this.reportChannelAbuseForm)==null?void 0:G.additionalContext)||"";var K;G=((K=this.reportChannelAbuseForm)==null?void 0:K.impersonatedChannelUrl)||"";var n;if((n=this.data)==null?0:n.submitEndpoint){q={impersonated_channel_url:G,text:M,video_ids:q};var E;_.AL().resolve(_.vR).resolveCommand((E=this.data)==null?void 0:E.submitEndpoint,{form:Object.assign({},
q,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.N.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.N.onYtServiceRequestError=function(M){this.setNextButtonIsDisabled(!1);_.Qu(this.hostElement,M.detail.error.message)};
_.N.setNextButtonIsDisabled=function(M){this.set("data.nextButton.buttonRenderer.isDisabled",M)};
_.N.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
B$.prototype.onYtServiceRequestError=B$.prototype.onYtServiceRequestError;B$.prototype.onYtServiceRequestCompleted=B$.prototype.onYtServiceRequestCompleted;_.T([_.B(),_.r("design:type",Object)],B$.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],B$.prototype,"nextButtonDisabled",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],B$.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],B$.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],B$.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],B$.prototype,"submitEndpoint",void 0);_.T([_.B(),_.r("design:type",Object)],B$.prototype,"navigationEndpoint",void 0);_.T([_.B({selector:Jz8.reportChannelAbuseSelector}),_.r("design:type",Object)],B$.prototype,"reportChannelAbuseForm",void 0);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],B$.prototype,"onYtServiceRequestCompleted",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],B$.prototype,"onYtServiceRequestError",null);_.T([_.b({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],B$);
_.z(B$,"ytd-report-channel-modal-footer-renderer",function(){if(Zbv!==void 0)return Zbv;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Zbv=M},{mode:1});var bbI;var Q7=function(){var M=_.Q.apply(this,arguments)||this;M.boundOnTapDismissButton=function(){M.closePopup()};
return M};
_.l(Q7,_.Q);Q7.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
Q7.prototype.handleDataChanged=function(){_.E4(this.hostElement)};
Q7.prototype.closePopup=function(){_.VW(this.hostElement,"yt-close-popup-action")};
Q7.prototype.handleDataChanged=Q7.prototype.handleDataChanged;_.T([_.B(),_.r("design:type",Object)],Q7.prototype,"boundOnTapDismissButton",void 0);_.T([_.B(),_.r("design:type",Object)],Q7.prototype,"data",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Q7.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Q7.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Q7.prototype,"handleDataChanged",null);_.T([_.b({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],Q7);
_.z(Q7,"ytd-report-channel-modal-header-renderer",function(){if(bbI!==void 0)return bbI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return bbI=M},{mode:1});var UEL;var IN=function(){var M=_.Q.apply(this,arguments)||this;M.autoValidate=!1;M.invalid=!1;M.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return M};
_.l(IN,_.Q);_.N=IN.prototype;_.N.attached=function(){var M=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){M.channelUrlInput.focusTextInput()})};
_.N.disableNextButton=function(M){_.VW(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[M])};
_.N.handleImpersonatedChannelUrlChanged=function(){var M=this;this.disableNextButton(!0);this.invalid=!1;_.B4(this,"ytd-report-channel-impersonated-channel-update",function(){var q=M.impersonatedChannelUrl.trim();M.ytdReduxBehavior.dispatch(_.RJ({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:q}));var G;((G=M.data)==null?0:G.submitEndpoint)&&q&&_.AL().resolve(_.vR).resolveCommand(M.data.submitEndpoint,{form:{impersonated_channel_url:q,element:M.hostElement}})},500)};
_.N.handleModifyReportFormCommand=function(M){this.invalid=this.get("modifyReportFormCommand.action",M)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.N.updateInvalidFromBinding=function(M){this.invalid=M.detail.value};
_.N.updateImpersonatedChannelUrlFromBinding=function(M){this.impersonatedChannelUrl=M.detail.value};
IN.prototype.handleImpersonatedChannelUrlChanged=IN.prototype.handleImpersonatedChannelUrlChanged;_.T([_.P(_.mr),_.r("design:type",Object)],IN.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],IN.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],IN.prototype,"autoValidate",void 0);_.T([_.B(),_.r("design:type",Object)],IN.prototype,"invalid",void 0);
_.T([_.B(),_.r("design:type",String)],IN.prototype,"impersonatedChannelUrl",void 0);_.T([_.B({selector:Jz8.impersonatedChannelUrlSelector}),_.r("design:type",String)],IN.prototype,"impersonatedChannelUrlRedux",void 0);_.T([_.B(),_.r("design:type",Object)],IN.prototype,"data",void 0);_.T([_.ET("#text-input"),_.r("design:type",Object)],IN.prototype,"channelUrlInput",void 0);
_.T([_.KT("impersonatedChannelUrl"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],IN.prototype,"handleImpersonatedChannelUrlChanged",null);_.T([_.b({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],IN);
_.z(IN,"ytd-report-channel-modal-impersonation-renderer",function(){if(UEL!==void 0)return UEL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return UEL=M},{mode:1});var xEL;var zTI;var DR=function(){return _.Q.apply(this,arguments)||this};
_.l(DR,_.Q);DR.prototype.onCheckboxToggled=function(M){var q,G,K=(G=_.C((q=this.data)==null?void 0:q.video,_.HA))==null?void 0:G.videoId;K&&this.ytdReduxBehavior.dispatch(M.target.checked?_.RJ({type:"VIDEO_SELECTED",payload:K}):_.RJ({type:"VIDEO_UNSELECTED",payload:K}))};
DR.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Yd.Object.defineProperties(DR.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var M,q=(M=this.data)==null?void 0:M.video;if(!q)return{};var G;M=(G=_.C(q,_.HA))==null?void 0:G.navigationEndpoint;if(!M)return q;_.C(M==null?void 0:M.commandMetadata,_.Mg)&&(_.C(M.commandMetadata,_.Mg).ignoreNavigation=!0);return q}}});
_.T([_.B({reflectToAttribute:!0,selector:Jz8.isVideoIdSelectedSelector,selectorArgs:["data.video.videoRenderer.videoId"]}),_.r("design:type",Boolean)],DR.prototype,"checked",void 0);_.T([_.B(),_.r("design:type",Object)],DR.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],DR.prototype,"video",null);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],DR.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],DR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],DR.prototype,"ytdReduxBehavior",void 0);_.T([_.b({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],DR);
_.z(DR,"ytd-selectable-video-renderer",function(){if(zTI!==void 0)return zTI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return zTI=M},{mode:1});var uE=function(){var M=_.Q.apply(this,arguments)||this;M.monitorScroll=!0;return M};
_.l(uE,_.Q);uE.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],uE.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],uE.prototype,"data",void 0);_.T([_.b({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],uE);
_.z(uE,"ytd-selectable-video-list-renderer",function(){if(xEL!==void 0)return xEL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return xEL=M},{mode:1});var mEL;_.hC("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Jw=function(){return _.Q.apply(this,arguments)||this};
_.l(Jw,_.Q);Jw.prototype.onChange=function(M){if(M=_.ba(M).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.w("kevlar_command_handler_migration_killswitch"))_.FH(this.hostElement,M,this.hostElement);else{M=_.k(M);for(var q=M.next();!q.done;q=M.next())this.ytComponentBehavior.resolveCommand(q.value)}};
Jw.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Jw.prototype.updateDataToggledFromBinding=function(M){this.set("data.toggled",M.detail.value)};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Jw.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Jw.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Jw.prototype,"data",void 0);_.T([_.B({computed:"isEnabled(data)"}),_.r("design:type",Boolean)],Jw.prototype,"enabled",void 0);_.T([_.b({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Jw);
_.z(Jw,"ytd-toggle-item-renderer",function(){if(mEL!==void 0)return mEL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return mEL=M},{mode:1});var S1w;var TKL;var rzL;var ZR=function(){var M=_.Q.apply(this,arguments)||this;M.setVisible=!1;M.boundOnSubmitButtonClick=function(){M.onSubmitButtonClick()};
M.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return M};
_.l(ZR,_.Q);ZR.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}}}}}};
ZR.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
ZR.prototype.onSubmitButtonClick=function(){var M;((M=this.data)==null?0:M.submitEndpoint)&&!_.w("enable_ytc_refunds_submit_form_signal_action")&&_.fx(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
ZR.prototype.handleSignalActionSubmitForm=function(){var M;((M=this.data)==null?0:M.submitEndpoint)&&_.fx(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Yd.Object.defineProperties(ZR.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.hiddenByDefault)&&!this.setVisible}}});
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ZR.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ZR.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ZR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ZR.prototype,"setVisible",void 0);_.T([_.B(),_.r("design:type",Object)],ZR.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],ZR.prototype,"surveyFeedbackData",void 0);_.T([_.B(),_.r("design:type",Object)],ZR.prototype,"boundOnSubmitButtonClick",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data","setVisible"),_.r("design:type",Object),_.r("design:paramtypes",[])],ZR.prototype,"visibilityHidden",null);_.T([_.aO({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],ZR);
_.z(ZR,"yt-flow-footer-renderer",function(){if(rzL===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;TKL===void 0&&(TKL=document.createElement("template"));var K=TKL;G.call(q,K.content.cloneNode(!0),M.content.firstChild);rzL=M}M=rzL;return M},{mode:2});var jzI=(0,_.mhL)(_.zN.ypc,{surveyFeedbackDataSelector:function(M){return M.surveyFeedbackData}});var bE=function(){return _.Q.apply(this,arguments)||this};
_.l(bE,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bE.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],bE.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bE.prototype,"data",void 0);_.T([_.B({selector:jzI.surveyFeedbackDataSelector}),_.r("design:type",Object)],bE.prototype,"surveyFeedbackData",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],bE);
_.z(bE,"ytd-flow-footer-renderer",function(){if(S1w!==void 0)return S1w;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return S1w=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var VVv;var RTv;var UC=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return M};
_.l(UC,_.Q);_.N=UC.prototype;_.N.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.tC("multiPageMenuSectionItems")}}};
_.N.handleHideEnclosingAction_=function(M){if(this.data&&this.data.items)for(var q=0;q<this.data.items.length;q++){var G=this.data.items[q].notificationRenderer;if(G&&G.notificationId==M.hideEnclosingAction.notificationId){this.splice("data.items",q,1);_.VW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.N.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.el(this.hostElement,"hidden",!0)};
_.N.updateMenu_=function(M){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&M&&!M.doNotRefreshInbox){M=this.data.continuations;for(var q=0;q<M.length;q++)if(M[q].invalidationContinuationData){var G=void 0;var K=(G=M[q].invalidationContinuationData)==null?void 0:G.continuation;break}M=_.xP.clone(this.data.continuationUpdateEndpoint||null);M.continuation=K;M.click_tracking_params=this.data.trackingParams;_.fx(this.hostElement,[M])}};
_.N.onServiceRequestCompleted_=function(M,q){if(this.data&&(M=q.actions)){q=0;for(var G=M.length;q<G;q++){var K=_.C(M[q],_.gHP);if(!K)break;if((K.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||K.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&K.continuationItems&&this.data.items){var n=this.data.items.length-1;this.data.items[n].continuationItemRenderer&&(K=["data.items",n,1].concat(K.continuationItems),this.splice.apply(this,K))}}}};
UC.prototype.onServiceRequestCompleted_=UC.prototype.onServiceRequestCompleted_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],UC.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],UC.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],UC.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],UC.prototype,"data",void 0);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],UC.prototype,"onServiceRequestCompleted_",null);_.T([_.aO({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],UC);
_.jo()(UC,"yt-multi-page-menu-section-renderer",function(){if(RTv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;VVv===void 0&&(VVv=document.createElement("template"));var K=VVv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);RTv=M}M=RTv;return M},{allowedProps:["data"],
mode:2});var f15;var FRM;var xZ=function(){return _.Q.apply(this,arguments)||this};
_.l(xZ,_.Q);xZ.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Yd.Object.defineProperties(xZ.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.progress)==null?0:this.data.progress*100}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],xZ.prototype,"data",void 0);_.T([_.c("data.progress"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],xZ.prototype,"showProgressBar",null);
_.T([_.c("data.progress"),_.r("design:type",Number),_.r("design:paramtypes",[])],xZ.prototype,"progress",null);_.T([_.aO({is:"yt-flow-header-renderer",disableElementRegistration:!0})],xZ);
_.z(xZ,"yt-flow-header-renderer",function(){if(FRM===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;f15===void 0&&(f15=document.createElement("template"));var K=f15;G.call(q,K.content.cloneNode(!0),M.content.firstChild);FRM=M}M=FRM;return M},{mode:2});var Hb5;var eTv;var zr=function(){return _.Q.apply(this,arguments)||this};
_.l(zr,_.Q);zr.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],zr.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],zr.prototype,"data",void 0);_.T([_.aO({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],zr);
_.z(zr,"yt-post-confirmation-flow-step-renderer",function(){if(eTv===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;Hb5===void 0&&(Hb5=document.createElement("template"));var K=Hb5;G.call(q,K.content.cloneNode(!0),M.content.firstChild);eTv=M}M=eTv;return M},{mode:2});var $En;var shI;var mn=function(){return _.Q.apply(this,arguments)||this};
_.l(mn,_.Q);
mn.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"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mn.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mn.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],mn.prototype,"data",void 0);_.T([_.aO({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],mn);
_.z(mn,"yt-refund-confirmation-flow-step-renderer",function(){if(shI===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;$En===void 0&&($En=document.createElement("template"));var K=$En;G.call(q,K.content.cloneNode(!0),M.content.firstChild);shI=M}M=shI;return M},{mode:2});var Mx5=_.U(function(M){var q=M.data;return _.W("yt-profile-badge-view-model",{class:"profileBadgeViewModelHost"},_.W("div",{class:"profileBadgeViewModelBadgeIconContainer"},_.W(_.Jj,{data:function(){return{thumbnails:[{url:q().badgeIconUrl}]}},
alt:"",targetWidth:36,targetHeight:36})),_.W("div",{class:"profileBadgeViewModelContent"},_.W("div",{class:"profileBadgeViewModelBadgeDescription"},function(){return q().badgeDesc}),_.W(_.d,{cond:function(){return q().badgeSubtitle},
then:function(){return _.W("div",{class:"profileBadgeViewModelBadgeSubtitle"},function(){return q().badgeSubtitle})}})))},"Zi");
Mx5.idomCompat=!0;var qog=_.U(function(M){var q=M.data;return _.W("yt-comment-interaction-view-model",{el:_.bm(_.CL(function(){return q().rendererContext})),
class:"ytCommentInteractionViewModelHost"},_.W("div",{class:"ytCommentInteractionViewModelFrame",role:"button","aria-label":function(){return q().onTapA11yLabel},
"on:keydown":_.TDF(),tabindex:0},_.W("div",{class:"ytCommentInteractionViewModelHeader"},_.W("div",{class:"ytCommentInteractionViewModelVideoTitle"},function(){return q().headerPrefix},' "',function(){return q().videoTitle}),_.W("div",{class:"ytCommentInteractionViewModelVideoTitleQuote"},'"')),_.W("div",{class:"ytCommentInteractionViewModelContent"},_.W("div",{class:"ytCommentInteractionViewModelCommentContent"},function(){return q().commentContent}),_.W("div",{class:"ytCommentInteractionViewModelChevron"},
_.W(_.Jj,{data:function(){return{thumbnails:[{url:q().chevronUrl}]}},
alt:"",targetWidth:18,targetHeight:18})))))},"$i");
qog.idomCompat=!0;var GJM=_.U(function(M){var q=M.data;return _.W("yt-shared-subscription-view-model",{class:"ytSharedSubscriptionViewModelHost"},_.W(_.yu,{data:function(){return q().avatar}},{avatarViewModel:_.zo}),_.W("div",{class:"ytSharedSubscriptionViewModelChannelName"},function(){return q().channelName}))},"aj");
GJM.idomCompat=!0;var kJM=_.U(function(M){var q=M.data;M={};return _.W("yt-profile-info-view-model",{class:_.Hb("ytProfileInfoViewModelHost",(M.ytProfileInfoViewModelWithVideoShelf=function(){return q().videosHorizontalShelf},M))},_.W(KBw,{profileInfo:q}),_.W(_.yu,{data:function(){return q().videosHorizontalShelf}},{horizontalShelfViewModel:function(G){return _.W("div",{class:"ytProfileInfoViewModelVideoShelfContainer"},_.W(_.Rd,{data:G.data}))}}),_.W(_.d,{cond:function(){return q().comments},
then:function(){return _.W(n0P,{profileInfo:q})}}),_.W(_.d,{cond:function(){return q().sharedSubscriptionsTitle},
then:function(){return _.W(_.d,{cond:function(){return q().subscriptionsAccessButtonCommand},
then:function(){return _.W(E0v,{profileInfo:q})},
else:function(){return _.W(Nu8,{profileInfo:q})}})}}))},"bj");
kJM.idomCompat=!0;var n0P=_.U(function(M){var q=M.profileInfo;return _.W("div",{class:"ytProfileInfoViewModelActivity"},_.W("div",{class:"ytProfileInfoViewModelHeader"},_.W("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return q().commentsInteractionTitle})),_.W(_.yu,{data:function(){return q().comments}},{commentInteractionViewModel:function(G){return _.W("div",{class:"ytProfileInfoViewModelActivity"},_.W(qog,{data:G.data}))}}))},"cj"),E0v=_.U(function(M){var q=M.profileInfo;
return _.W("div",{class:"ytProfileInfoViewModelSubSection"},_.W("div",{class:"ytProfileInfoViewModelSubHeader"},_.W(_.kv,{command:function(){return q().subscriptionsAccessButtonCommand},
className:"ytProfileInfoViewModelAnotherHeader"},_.W("div",{class:"ytProfileInfoViewModelSectionTitleModern"},function(){return q().sharedSubscriptionsTitle}),_.W("div",null,_.W(_.yu,{data:function(){return q().subscriptionsAccessButton}},{buttonViewModel:_.Wf})))),_.W(pCs,{sharedSubscriptions:function(){var G;
return((G=q().sharedSubscriptions)==null?void 0:G.slice(0,5))||[]}}))},"dj"),Nu8=_.U(function(M){var q=M.profileInfo;
return _.W("div",{class:"ytProfileInfoViewModelSubSection"},_.W("div",{class:"ytProfileInfoViewModelSubHeader"},_.W("h2",{class:"ytProfileInfoViewModelSectionTitle"},function(){return q().sharedSubscriptionsTitle})),_.W(pCs,{sharedSubscriptions:function(){var G;
return((G=q().sharedSubscriptions)==null?void 0:G.slice(0,5))||[]}}))},"ej"),pCs=_.U(function(M){return _.W("div",{class:"ytProfileInfoViewModelSubs"},_.W(_.yu,{data:M.sharedSubscriptions},{sharedSubscriptionViewModel:function(q){return _.W("div",{class:"ytProfileInfoViewModelSub"},_.W(GJM,{data:q.data}))}}))},"fj"),KBw=_.U(function(M){var q=M.profileInfo;
return _.W("div",{class:"ytProfileInfoViewModelActivity"},_.W(_.bf,{each:function(){return[q().profileBadgeInfoYtWide,q().profileBadgeInfoChannelWide].filter(function(G){return!!G})},
keyBy:"INDEX"},function(G){return _.W(_.dU,null,_.W("div",{class:"ytProfileInfoViewModelHeader"},_.W("div",{class:"ytProfileInfoViewModelSectionTitle"},function(){return G().profileSectionTitle}),_.W("div",{class:"ytProfileInfoViewModelSectionDesc"},_.W("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var K;
return(K=G().commentBadge)==null?void 0:K.commentDesc}),_.W(_.d,{cond:function(){var K;
return(K=G().commentBadge)==null?void 0:K.blackHeartDesc},
then:function(){return _.W("div",{class:"ytProfileInfoViewModelSectionDivider"},"\u2022")}}),_.W("div",{class:"ytProfileInfoViewModelSectionHeartIcon"},_.W(_.Jj,{data:function(){var K;
return{thumbnails:[{url:(K=G().commentBadge)==null?void 0:K.blackHeartIconUrl}]}},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.W("div",{class:"ytProfileInfoViewModelSectionSubtitle"},function(){var K;return(K=G().commentBadge)==null?void 0:K.blackHeartDesc}))),_.W("div",{class:"ytProfileInfoViewModelBadge"},_.W(_.bf,{each:function(){return G().badges||[]}},function(K){return _.W(Mx5,{data:K})})))}))},"gj");var yPI=_.U(function(M){var q=M.data;var G=function(){return q().profileCardContext==="PROFILE_CARD_CONTEXT_CHANNEL_INFO_CARD"};
return _.W("yt-profile-card-view-model",{class:"ytProfileCardViewModelHost",style:"overflow: hidden"},_.W(_.yu,{data:function(){return q().profileIdentityInfo}},{profileIdentityInfoViewModel:function(K){return _.W(_.ezL,{data:K.data,
hideDivider:G,isChannelInfoCard:G})},
profileInfoViewModel:kJM}),_.W(_.yu,{data:function(){return q().profileInfo}},{profileIdentityInfoViewModel:_.ezL,
profileInfoViewModel:kJM}))},"hj");
yPI.idomCompat=!0;_.S5(yPI,"yt-profile-card-view-model",{props:{data:_.Hz}});var Sk=function(){var M=_.Q.apply(this,arguments)||this;M.enableFocusFix=_.w("music_web_enable_focus_on_setting_menu_fix")&&_.fX("IS_MOBILE_WEB",!1);M.covered=!1;M.hideMenu=!1;M.isCommentNotificationOnProfileCard=!1;M.scrolledByTouch=!1;M.disableBackdropFilter=_.w("web_disable_backdrop_filter");M.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return M};
_.l(Sk,_.Q);_.N=Sk.prototype;
_.N.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"}}}};
_.N.ready=function(){var M=this;this.JSC$20453_containerElement.addEventListener("scroll",function(){M.ytRendererBehavior.markDirty()})};
_.N.attributeChanged=function(M,q){M==="menu-style"&&_.VW(this.hostElement,"yt-multi-page-menu-closed-action",[q])};
_.N.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.qs(this,this.focusOnStampFinished))};
_.N.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.qs(this,this.focusOnStampFinished))};
_.N.reset=function(){this.closeJobId&&(_.r8.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.N.focusOnStampFinished=function(M){M.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.qs(this,this.focusOnStampFinished)),this.doFocus())};
_.N.doFocus=function(){var M=_.BBP(this.sectionsElement);M.length&&M[0].focus()};
_.N.computeMenuStyle=function(M){return M?M.toLowerCase().replace(/_/g,"-"):""};
_.N.computeIsCommentNotificationOnProfileCard=function(M){return _.w("enable_profile_cards_on_comments")&&M.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.N.computeHideMenu=function(M,q){return M||!(!q||!q.showLoadingSpinner)};
_.N.onPopupClosed=function(){this.isPopUpOpen=!1;_.VW(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.N.onPopupOpened=function(M,q){this.isPopUpOpen=!0;q.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.jP(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.RJ({type:"CHANNEL_REPORT_RESET"})))};
_.N.onYtNavigate=function(M,q){this.shouldCloseOnNavigateEvent(q.endpoint)&&_.VW(this.hostElement,"yt-close-all-popups-action")};
_.N.handleEndpoint=function(M){M=_.C(M,_.TX);!this.isCommentNotificationOnProfileCard&&M&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$20453_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.N.handleActions=function(M){for(var q=0,G=M.length;q<G;q++){var K=_.C(M[q],Qxw);K&&this.handleGetMultiPageMenuAction(K);(K=_.C(M[q],_.gHP))&&this.handleAppendContinuationItemsAction(K)}};
_.N.onServiceRequestSentOrCompleted=function(M,q){M.detail&&M.detail.endpoint&&this.handleEndpoint(M.detail.endpoint);q.actions&&this.handleActions(q.actions)};
_.N.handleGetMultiPageMenuAction=function(M){var q=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.f_(this.submenuElement).appendChild(q);(M=M.menu.multiPageMenuRenderer)&&this.logSubmenu(M);q.data=M;q.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.N.handleAppendContinuationItemsAction=function(M){if(this.data&&M.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&M.continuationItems&&this.data.sections){var q=this.data.sections.length-1;this.data.sections[q].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),q--);if(this.data.sections[q].multiPageMenuNotificationSectionRenderer&&M.continuationItems){M=_.k(M==null?void 0:M.continuationItems);for(var G=M.next();!G.done;G=M.next())if(G=G.value,_.C(G,KML)){var K=
void 0,n=void 0,E=void 0,p=void 0,y=void 0;((K=this)==null?0:(n=K.data)==null?0:(E=n.sections)==null?0:(p=E[q])==null?0:(y=p.multiPageMenuNotificationSectionRenderer)==null?0:y.items)&&this.push("data.sections."+q+".multiPageMenuNotificationSectionRenderer.items",G)}else if(_.C(G,_.Oh9)||_.C(G,_.Z$))this.push("data.sections",G),q++}}};
_.N.logSubmenu=function(M){if(!_.w("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var q=this.ytRendererBehavior.getScreenLayer(),G=_.Cx(q),K=_.wt(q);if((M=M.trackingParams)&&G&&K){var n=_.yx(M);_.w("combine_ve_grafts")?_.nl().graftServerVe(M,K,q):_.QQ(G,K,n)}}};
_.N.emptySubmenuContainer=function(){for(var M=_.f_(this.submenuElement);M.firstChild;)M.removeChild(M.firstChild)};
_.N.onMenuBackTap=function(M){_.jP(this.hostElement,"yt-submenu-closed");M.stopPropagation()};
_.N.onSubmenuClosed=function(M){_.ba(M)!==this.hostElement&&(this.covered=!1,_.jP(this.hostElement,"yt-refit"),M.stopPropagation())};
_.N.onRetrieveLocation=function(M,q){q.hasComments&&(q.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),M.stopPropagation())};
_.N.shouldCloseOnNavigateEvent=function(M){if(!M)return!0;if(_.C(M,_.eJ2)||_.C(M,_.$59)||_.C(M,_.HVS)||_.C(M,_.q6))return!1;var q;return((q=_.C(M==null?void 0:M.commandMetadata,_.Mg))==null?0:q.ignoreNavigation)?!1:!0};
_.N.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.N.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.N.refitAfterRender=function(){var M=this;_.yb(this,function(){_.jP(M.hostElement,"yt-refit")})};
Sk.prototype.refitAfterRender=Sk.prototype.refitAfterRender;Sk.prototype.onRetrieveLocation=Sk.prototype.onRetrieveLocation;Sk.prototype.onSubmenuClosed=Sk.prototype.onSubmenuClosed;Sk.prototype.onMenuBackTap=Sk.prototype.onMenuBackTap;Sk.prototype.onServiceRequestSentOrCompleted=Sk.prototype.onServiceRequestSentOrCompleted;Sk.prototype.onYtNavigate=Sk.prototype.onYtNavigate;Sk.prototype.onPopupOpened=Sk.prototype.onPopupOpened;Sk.prototype.onPopupClosed=Sk.prototype.onPopupClosed;
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Sk.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],Sk.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Sk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Sk.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Sk.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],Sk.prototype,"enableFocusFix",void 0);_.T([_.B(),_.r("design:type",Object)],Sk.prototype,"covered",void 0);_.T([_.B({computed:"computeHideMenu(covered, data)"}),_.r("design:type",Object)],Sk.prototype,"hideMenu",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.r("design:type",String)],Sk.prototype,"menuStyle",void 0);
_.T([_.B({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.r("design:type",Object)],Sk.prototype,"isCommentNotificationOnProfileCard",void 0);_.T([_.B(),_.r("design:type",Boolean)],Sk.prototype,"isPopUpOpen",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Sk.prototype,"scrolledByTouch",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Sk.prototype,"disableBackdropFilter",void 0);
_.T([_.ET("#sections"),_.r("design:type",HTMLElement)],Sk.prototype,"sectionsElement",void 0);_.T([_.ET("#spinner"),_.r("design:type",HTMLElement)],Sk.prototype,"spinnerElement",void 0);_.T([_.ET("#header"),_.r("design:type",HTMLElement)],Sk.prototype,"headerElement",void 0);_.T([_.ET("#container"),_.r("design:type",HTMLElement)],Sk.prototype,"JSC$20453_containerElement",void 0);_.T([_.ET("#submenu"),_.r("design:type",HTMLElement)],Sk.prototype,"submenuElement",void 0);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sk.prototype,"onPopupClosed",null);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Sk.prototype,"onPopupOpened",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Sk.prototype,"onYtNavigate",null);
_.T([_.GQ("yt-service-request-completed"),_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],Sk.prototype,"onServiceRequestSentOrCompleted",null);_.T([_.GQ("yt-menu-back-tapped"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Sk.prototype,"onMenuBackTap",null);
_.T([_.GQ("yt-submenu-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Sk.prototype,"onSubmenuClosed",null);_.T([_.GQ("yt-retrieve-location"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Sk.prototype,"onRetrieveLocation",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sk.prototype,"refitAfterRender",null);
_.T([_.b({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],Sk);
_.z(Sk,"ytd-multi-page-menu-renderer",function(){if(czP!==void 0)return czP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return czP=M},{mode:1});var LBR;var Tr=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return M};
_.l(Tr,_.Q);_.N=Tr.prototype;_.N.created=function(){this.showTooltips=!0};
_.N.computeAccessibility_=function(M){return this.get("accessibility.accessibilityData",M)||null};
_.N.onTap=function(){var M=_.Rf(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(M&&M.length===1&&M[0])_.VW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var q;if((q=this.data)==null?0:q.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var G;((G=this.data)==null?0:G.menuRequest)&&_.fx(this.hostElement,[this.data.menuRequest])}}};
_.N.handleTopbarMenuClosedAction=function(M){var q,G;(new Map([["multi-page-menu-style-type-creation","VIDEO_CALL"],["multi-page-menu-style-type-notifications","NOTIFICATIONS"],["multi-page-menu-style-type-yt-apps","APPS"]])).get(M)===((q=this.data)==null?void 0:(G=q.icon)==null?void 0:G.iconType)&&this.toggleIconState(!1)};
_.N.toggleIconState=function(M){_.w("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=M)};
_.N.handleUpdateTopbarAvatarAction=function(M){var q;M=(q=_.C(M,liI))==null?void 0:q.avatarUrl;var G,K;q=(G=this.data)==null?void 0:(K=G.avatar)==null?void 0:K.thumbnails;M&&q&&(G={thumbnails:[Object.assign({},q[0],{url:M})]},this.set("data.avatar",G))};
_.Yd.Object.defineProperties(Tr.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.f_(this.hostElement).querySelector("#button")}}});
Tr.prototype.onTap=Tr.prototype.onTap;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Tr.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Tr.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],Tr.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.dZ8.YtButtonBehavior),_.r("design:type",Object)],Tr.prototype,"ytButtonBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Tr.prototype,"data",void 0);
_.T([_.ET("yt-icon-button#button"),_.r("design:type",Object)],Tr.prototype,"iconButton",void 0);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tr.prototype,"onTap",null);_.T([_.b({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Tr);
_.jo()(Tr,"ytd-topbar-menu-button-renderer",function(){if(LBR===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);LBR=M}M=LBR;return M},{allowedProps:["data"],
mode:1});var Yo8;var rG=function(){return _.Q.apply(this,arguments)||this};
_.l(rG,_.Q);rG.prototype.getSelected=function(){return this.reasons.selected};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],rG.prototype,"data",void 0);_.T([_.ET("#reasons"),_.r("design:type",Object)],rG.prototype,"reasons",void 0);_.T([_.b({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],rG);
_.z(rG,"ytd-ad-feedback-content",function(){if(Yo8!==void 0)return Yo8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Yo8=M},{mode:1});var WBI;var jk=function(){return _.Q.apply(this,arguments)||this};
_.l(jk,_.Q);_.N=jk.prototype;_.N.onPopupOpened=function(){_.VW(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.N.computeConfirmButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.confirmLabel}};
_.N.computeCancelButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.cancelLabel}};
_.N.onConfirmTap=function(){var M=this.content.getSelected();M!==void 0&&(M=this.data.reasons[M].endpoint)&&(_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}}),_.VW(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.N.sendFeedbackSubmitToastAction=function(){var M;(M=this.data)!=null&&M.completionMessage&&(M=_.Sg(this.data.completionMessage),_.VW(this.hostElement,"yt-open-popup-action",[M,this]))};
_.N.onCancelTap=function(){_.VW(this.hostElement,"yt-close-popup-action")};
jk.prototype.onPopupOpened=jk.prototype.onPopupOpened;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jk.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jk.prototype,"data",void 0);_.T([_.ET("#content"),_.r("design:type",Object)],jk.prototype,"content",void 0);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],jk.prototype,"onPopupOpened",null);
_.T([_.b({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],jk);
_.z(jk,"ytd-ad-feedback-renderer",function(){if(WBI!==void 0)return WBI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return WBI=M},{mode:1});var APg;var d7P=function(){return _.Q.apply(this,arguments)||this};
_.l(d7P,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],d7P.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],d7P.prototype,"data",void 0);_.T([_.b({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],d7P);
_.z(d7P,"ytd-ad-info-dialog-content",function(){if(APg!==void 0)return APg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return APg=M},{mode:1});var v0U;var V7=function(){return _.Q.apply(this,arguments)||this};
_.l(V7,_.Q);V7.prototype.computeConfirmButton=function(M){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:M.confirmLabel}};
V7.prototype.onConfirmTap=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
V7.prototype.computeShouldShowTitle=function(){var M;return!((M=this.data)==null||!M.title)};
V7.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
V7.prototype.onPopupClosed=V7.prototype.onPopupClosed;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],V7.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],V7.prototype,"data",void 0);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],V7.prototype,"onPopupClosed",null);_.T([_.b({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],V7);
_.z(V7,"ytd-ad-info-dialog-renderer",function(){if(v0U!==void 0)return v0U;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return v0U=M},{mode:1});var hZw;var RN=function(){var M=_.Q.apply(this,arguments)||this;M.actionButtonClass="action-button";M.dismissButtonId="dismiss-button";M.dialogDismiss=!0;return M};
_.l(RN,_.Q);_.N=RN.prototype;_.N.computeInPlayer=function(M){return(M==null?void 0:M.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.N.computedLogo=function(){var M,q;return this.isDarkTheme()?(M=this.data)==null?void 0:M.logoDark:(q=this.data)==null?void 0:q.logo};
_.N.computedHeaderImage=function(){var M,q;return this.isDarkTheme()?(M=this.data)==null?void 0:M.headerImageDark:(q=this.data)==null?void 0:q.headerImage};
_.N.computeLogoIconId=function(){var M,q,G,K=(M=this.computedLogo())==null?void 0:(q=M.sources)==null?void 0:(G=q[0])==null?void 0:G.height;return K&&K%31===0?"logo-icon-with-padding":"logo-icon"};
_.N.computeLogoIconHeight=function(){var M,q,G,K=(M=this.computedLogo())==null?void 0:(q=M.sources)==null?void 0:(G=q[0])==null?void 0:G.height;return K&&K%31===0?"31":"24"};
_.N.onPopupClosed=function(){_.AL().resolve(_.gu).dispose()};
_.N.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.N.onShow=function(){this.inPlayer&&_.Gu(6);this.titleElement.focus()};
_.N.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var M=0;M<this.data.impressionEndpoints.length;M++){var q=_.C(this.data.impressionEndpoints[M],_.Cl);q&&this.ytComponentBehavior.resolveCommand(q)}};
_.N.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.VW(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Yd.Object.defineProperties(RN.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var M,q;return!((M=this.data)==null||!M.headerImageDark)&&!((q=this.data)==null||!q.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.secondaryButton)}}});
RN.prototype.onPopupClosed=RN.prototype.onPopupClosed;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],RN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],RN.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.jp.YtVisibilityBehavior),_.r("design:type",Object)],RN.prototype,"ytVisibilityBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],RN.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],RN.prototype,"actionButtonClass",void 0);_.T([_.B(),_.r("design:type",Object)],RN.prototype,"dismissButtonId",void 0);_.T([_.B(),_.r("design:type",Object)],RN.prototype,"dialogDismiss",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],RN.prototype,"hasHeaderImage",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],RN.prototype,"hasPremiumButton",null);
_.T([_.B({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.r("design:type",Boolean)],RN.prototype,"inPlayer",void 0);_.T([_.ET("#dismiss-button"),_.r("design:type",HTMLElement)],RN.prototype,"dismissButton",void 0);_.T([_.ET("#title"),_.r("design:type",HTMLElement)],RN.prototype,"titleElement",void 0);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],RN.prototype,"onPopupClosed",null);
_.T([_.b({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],RN);
_.z(RN,"ytd-enforcement-message-view-model",function(){if(hZw!==void 0)return hZw;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return hZw=M},{mode:1});var txI;var OyI;var fZ=function(){var M=_.Q.apply(this,arguments)||this;M.TEST_ONLY={immediateValidation:function(){M.immediateValidation()},
onValidationResponse:function(q){M.onValidationResponse(q)},
onGenerateHandleFromNameResponse:function(q){M.onGenerateHandleFromNameResponse(q)}};
return M};
_.l(fZ,_.Q);_.N=fZ.prototype;_.N.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.N.validate=function(){this.immediateValidation()};
_.N.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.N.setHandleInputValue=function(M){this.handleDir=this.getHandleDir(M);this.handleInput.value=M;this.validationState={status:"PENDING"};this.immediateValidation()};
_.N.getHandleDir=function(M){var q=M===""&&!1;return(q=_.fad.test.call(_.fad,M))?"rtl":"ltr"};
_.N.onDataChanged=function(){var M,q;this.handleDir=this.getHandleDir((q=(M=this.data)==null?void 0:M.handle)!=null?q:"");var G;this.validationState=((G=this.data)==null?0:G.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var K;((K=this.data)==null?0:K.validateOnInit)&&this.immediateValidation()};
_.N.stopPropagation=function(M){M.stopPropagation()};
_.N.onInput=function(){var M;this.handleDir=this.getHandleDir((M=this.handleInput.value)!=null?M:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.N.onFocusout=function(M){this.handleInput.contains(M.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.N.delayedValidation=function(){var M,q;this.debouncedValidation((q=(M=this.data)==null?void 0:M.validationDelayMs)!=null?q:1E3)};
_.N.immediateValidation=function(){this.debouncedValidation(0)};
_.N.debouncedValidation=function(M){var q=this;_.B4(this,"debouncedValidation",function(){var G,K=q.staticValidation((G=q.handleInput.value)!=null?G:"");if(K!==void 0)q.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:K};else{var n;if((n=q.data)!=null&&n.validateChannelHandleCommand){q.validationState={status:"LOADING"};var E;q.ytComponentBehavior.resolveCommand(q.data.validateChannelHandleCommand,{form:{handle:(E=q.handleInput.value)!=null?E:""},commandController:{onSuccess:function(p,
y){q.onValidationResponse(y)},
onServerError:function(p,y){q.onValidationServerError(y)}}})}else q.handleUnexpectedValidationError(new _.bj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",q.data))}},M)};
_.N.staticValidation=function(M){var q;if(((q=this.data)==null?void 0:q.channelHandleStaticValidationParams)!==void 0){q=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(M)&&q.validValueRegexpErrorMessage!==void 0)return q.validValueRegexpErrorMessage;if(q.minLength!==void 0&&M.length<q.minLength&&q.minLengthErrorMessage!==void 0)return q.minLengthErrorMessage;if(q.maxLength!==void 0&&M.length>q.maxLength&&q.maxLengthErrorMessage!==void 0)return q.maxLengthErrorMessage}};
_.N.onValidationResponse=function(M){var q=_.C(M.result,XeI);q===void 0?this.handleUnexpectedValidationError(new _.bj("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",M)):this.handleValidationResultRenderer(q)};
_.N.onValidationServerError=function(M){this.handleUnexpectedValidationError(new _.bj("ValidateChannelHandle request failed.",M))};
_.N.handleValidationResultRenderer=function(M){if(M.handle===void 0)this.handleUnexpectedValidationError(new _.bj("ChannelHandleValidationResultRenderer does not contain handle.",M));else if(M.handle===this.handleInput.value)switch(M.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:M.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:M.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.bj("Unrecognized ChannelHandleValidationResult",M));break;default:_.F2(M.result)}};
_.N.handleUnexpectedValidationError=function(M){var q;this.validationState={status:"UNKNOWN",handle:(q=this.handleInput.value)!=null?q:""};_.j1(M)};
_.N.stopEventPropagation=function(M){M.stopPropagation()};
_.N.updateHandleOnChannelNameInputChange=function(M){if(!this.wasEdited){var q,G;this.debouncedGenerateHandleFromName(M,(G=(q=this.data)==null?void 0:q.validationDelayMs)!=null?G:1E3)}};
_.N.debouncedGenerateHandleFromName=function(M,q){var G=this;_.B4(this,"debouncedGenerateHandleFromName",function(){var K;(K=G.data)!=null&&K.validateChannelHandleCommand?G.ytComponentBehavior.resolveCommand(G.data.validateChannelHandleCommand,{form:{name:M},commandController:{onSuccess:function(n,E){G.onGenerateHandleFromNameResponse(E)},
onServerError:function(n,E){_.j1(new _.bj("Error calling GenerateHandleFromName",E))}}}):_.j1(new _.bj("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",G.data))},q)};
_.N.onGenerateHandleFromNameResponse=function(M){this.wasEdited||((M=_.C(M.result,PJw))?this.setHandleInputValue(M.handle):_.j1(new _.bj("Invalid results when generate handle from name")))};
_.Yd.Object.defineProperties(fZ.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var M;if(M=this.validationState)M=this.validationState,M=M.status==="OK"||M.status==="UNKNOWN";if(M)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var M;if(((M=this.validationState)==null?void 0:M.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 M,q=(M=this.channelHandleEntity)==null?void 0:M.handleEdit;this.handleDir=this.getHandleDir(q!=null?q:"");return q}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var M,q;if(((M=this.data)==null?void 0:(q=M.channelHandleStaticValidationParams)==null?void 0:q.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
fZ.prototype.stopEventPropagation=fZ.prototype.stopEventPropagation;fZ.prototype.onDataChanged=fZ.prototype.onDataChanged;fZ.prototype.applyHandleEdit=fZ.prototype.applyHandleEdit;fZ.prototype.onValueChanged=fZ.prototype.onValueChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],fZ.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],fZ.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],fZ.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Boolean)],fZ.prototype,"wasEdited",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],fZ.prototype,"handleDir",void 0);_.T([_.ET("#handle-input"),_.r("design:type",Object)],fZ.prototype,"handleInput",void 0);_.T([_.B(),_.c("validationState"),_.r("design:type",Object),_.r("design:paramtypes",[])],fZ.prototype,"value",null);
_.T([_.KT("value"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fZ.prototype,"onValueChanged",null);_.T([_.c("validationState"),_.r("design:type",Object),_.r("design:paramtypes",[])],fZ.prototype,"errorIndicator",null);_.T([_.B({reflectToAttribute:!0}),_.c("errorIndicator"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],fZ.prototype,"borderErrorIndicator",null);
_.T([_.B({selectorArgs:["data.channelHandleEntityKey"],selector:function(M,q){return _.sX(M.entities,"channelHandle",q)}}),
_.r("design:type",Object)],fZ.prototype,"channelHandleEntity",void 0);_.T([_.c("channelHandleEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],fZ.prototype,"handleEdit",null);_.T([_.KT("handleEdit"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fZ.prototype,"applyHandleEdit",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],fZ.prototype,"onDataChanged",null);
_.T([_.c("data.channelHandleStaticValidationParams.validValueRegexp"),_.r("design:type",Object),_.r("design:paramtypes",[])],fZ.prototype,"validValueRegexp",null);_.T([_.GQ("yt-service-request-sent"),_.GQ("yt-service-request-completed"),_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],fZ.prototype,"stopEventPropagation",null);_.T([_.b({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],fZ);
_.z(fZ,"ytd-channel-handle-input-renderer",function(){if(OyI!==void 0)return OyI;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return OyI=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var FJ=function(){var M=_.Q.apply(this,arguments)||this;M.data=null;M.errorMessage=null;M.isLoading=!0;M.hideContainer=!1;M.enableNewChannelCreationOnIdForAll=_.w("enable_new_channel_creation_for_id4all");M.actionMap={"yt-image-updated-action":"handleImageUpdatedAction","yt-image-selection-error-action":"handleImageSelectionErrorAction","yt-image-selection-reset-error-action":"handleImageSelectionResetErrorAction","yt-show-caller-popup-action":"showContainer"};M.testOnly={setErrorMessage:function(q){M.resetErrorState();
M.setErrorState(q)}};
return M};
_.l(FJ,_.Q);_.N=FJ.prototype;_.N.created=function(){this.logScreenVe()};
_.N.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")};
_.N.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var M;((M=this.zeroStepErrorMessageEntity)==null?0:M.value)&&this.set("errorMessage",_.bc(this.zeroStepErrorMessageEntity.value))};
_.N.onCreateTap=function(){var M=this;if(this.data&&this.data.channelCreationEndpoint){var q,G;if(!((q=this.data.createChannelButton)==null?0:(G=q.buttonRenderer)==null?0:G.isDisabled)){var K;if((K=this.nameInput)!=null&&K.value){this.setLoadingState();var n,E;q=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(n=this.handleInput)==null?void 0:n.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((E=this.handleInput)==null?void 0:E.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:q,commandController:{onSuccess:function(p,y){M.onChannelCreationEndpointSuccess(y);M.obakeImageSource&&_.ml("channelCreatedWithObakeImage",{imageSourceType:M.obakeImageSource})},
onServerError:function(){M.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.N.endpointRequiresServiceRequestAction=function(M){return!!_.C(M,_.hM)||!!_.C(M,liI)};
_.N.isNavigateAction=function(M){var q;return!!_.C(M,_.Pa)||!!_.C((q=_.C(M,glv))==null?void 0:q.command,_.Pa)};
_.N.isPlaylistAction=function(M){return!!_.C(M,_.ri)||!!_.C(M,_.eN)};
_.N.onChannelCreationEndpointSuccess=function(M){if(M.createChannelError){var q;this.setErrorState((q=M.createChannelError)==null?void 0:q.errorMessage);this.handleInput&&this.handleInput.validate()}else{M.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(M.navigationEndpoint);if(M.actions){q=_.k(M.actions);for(var G=q.next();!G.done;G=q.next())if(G=G.value,this.endpointRequiresServiceRequestAction(G)&&this.ytComponentBehavior.resolveCommand(G),this.isNavigateAction(G)){var K=void 0;G=_.C((K=
_.C(G,glv))==null?void 0:K.command,_.Pa);K=void 0;this.isPlaylistAction((K=G)==null?void 0:K.endpoint)&&(_.VW(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),K=void 0,this.ytComponentBehavior.resolveCommand((K=G)==null?void 0:K.endpoint))}}M.actions&&M.actions.some(function(n){var E;return _.C(n,_.Pa)||_.C((E=_.C(n,glv))==null?void 0:E.command,_.Pa)})||_.VW(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.N.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.N.onCancelTap=function(){var M,q,G;if(!((M=this.data)==null?0:(q=M.cancelButton)==null?0:(G=q.buttonRenderer)==null?0:G.isDisabled)){var K,n,E;M=(K=this.data)==null?void 0:(n=K.cancelButton)==null?void 0:(E=n.buttonRenderer)==null?void 0:E.command;if(!M||!_.C(M,_.XZH)){var p;this.nameInput&&((p=this.data)==null?0:p.name)&&(this.nameInput.value=this.data.name);var y;this.handleInput&&((y=this.data)==null?0:y.channelHandleInput)&&(this.handleInput.data=_.C(this.data.channelHandleInput,i0s));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.N.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.N.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.N.onClearProfilePhotoTap=function(){var M,q,G;((M=this.data)==null?0:(q=M.clearProfilePhotoButton)==null?0:(G=q.buttonRenderer)==null?0:G.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.N.onEditAvatarTap=function(){var M,q,G;((M=this.data)==null?0:(q=M.editAvatarButton)==null?0:(G=q.buttonRenderer)==null?0:G.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.N.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)};
_.N.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var M;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((M=this.data)==null?0:M.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.N.setErrorState=function(M){this.resetErrorState();if(M)this.set("errorMessage",M);else{var q;if((q=this.zeroStepErrorMessageEntity)==null?0:q.value)this.set("errorMessage",_.bc(this.zeroStepErrorMessageEntity.value));else{var G;((G=this.data)==null?0:G.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.N.fetchImageBlobWithAlr=function(M,q){q=q===void 0?5:q;var G=this,K,n,E,p,y;return _.L(function(Y){switch(Y.nextAddress){case 1:return Y.yield(fetch(M,{method:"GET",mode:"cors"}),2);case 2:K=Y.yieldResult;if(K.ok){Y.jumpTo(3);break}if(q===0)throw Error();n=G.addJitter(Math.pow(2,5-q));return Y.yield(new Promise(function(A){setTimeout(A,n*1E3)}),4);
case 4:return Y.return(G.fetchImageBlobWithAlr(M,q-1));case 3:if(!K.headers.get("content-type").split(";").some(function(A){return A.trim()==="text/plain"})){Y.jumpTo(5);
break}E=G;p=E.fetchImageBlobWithAlr;return Y.yield(K.text(),6);case 6:return Y.return(p.call(E,Y.yieldResult,q-1));case 5:return Y.yield(K.blob(),7);case 7:return y=Y.yieldResult,Y.return(y)}})};
_.N.addJitter=function(M){var q=M*.3*Math.random();Math.random()>.5&&(q*=-1);return M+q};
_.N.openProfilePicturePicker=function(){var M=this,q,G,K,n,E,p;return _.L(function(y){if(y.nextAddress==1){q=M.data.scottyUploadUrl;if(!q)return y.return();G=document.documentElement.hasAttribute("dark");K=document.body.style.colorScheme;G&&(document.body.style.colorScheme="dark");n=ONR(wgw(t68(Lq8(G?"dark":"light")),function(Y){var A,v,h,t,O;return _.L(function(a){if(a.nextAddress==1)return A=_.xE(bNR(new wV(Y.photoUrl,!1)).build(),"alr","yes"),M.obakeImageSource=M.pictureChangeSourceToObakeImageSourceType(Y.photoSource),
_.Cv(a,2),M.setLoadingState(),a.yield(M.fetchImageBlobWithAlr(A),4);if(a.nextAddress!=2)return v=a.yieldResult,h=new FileReader,h.addEventListener("load",function(){var g,D,J,Z,V,S;return _.L(function(m){if(m.nextAddress==1){if(v.size>15728640)return M.setErrorState((g=M.data)==null?void 0:g.imageSizeErrorMessage),_.j1(Error("Fl")),m.return();if(!h.result)return M.setErrorState((D=M.data)==null?void 0:D.genericImageLoadErrorMessage),_.j1(Error("Gl")),m.return();J=h.result;_.Cv(m,2);return m.yield(TrL(v,
q),4)}if(m.nextAddress!=2)return Z=m.yieldResult,M.handleImageUpdatedAction(J,Z),M.resetErrorState(),_.KF(m,0);V=_.i5(m);M.setErrorState((S=M.data)==null?void 0:S.uploadErrorMessage);if(V instanceof Error)_.T6(V);else{var R=new _.bj(JSON.stringify(V));_.T6(R)}_.gL(m)})}),h.readAsDataURL(v),_.KF(a,0);
t=_.i5(a);M.setErrorState((O=M.data)==null?void 0:O.genericImageLoadErrorMessage);t instanceof Error?_.T6(t):_.rM(new _.bj(JSON.stringify(t)));_.gL(a)})}),function(){M.hideContainer=!1;
document.body.style.colorScheme=K});
_.Cv(y,2);return((E=M.data)==null?0:E.shouldViewChannelCreationFormForSupex)?y.yield(n.openPicker("profile-picture/art-selection"),5):y.yield(n.openPicker(),5)}if(y.nextAddress!=2)return _.KF(y,0);_.i5(y);M.setErrorState((p=M.data)==null?void 0:p.selectImageErrorMessage);_.gL(y)})};
_.N.pictureChangeSourceToObakeImageSourceType=function(M){switch(M){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.N.logScreenVe=function(){_.aQ(_.nl(),124448)};
_.N.graftServerVe=function(){var M=_.wt(),q,G,K=(q=this.data)==null?void 0:(G=q.loggingDirectives)==null?void 0:G.trackingParams;K&&M&&(this.channelCreationFormVe=_.nl().graftServerVe(K,M),M={visualElement:this.channelCreationFormVe},_.qY().reportShown(M))};
_.N.isNameChanged=function(M){var q;return((q=this.data)==null?void 0:q.name)!==M};
_.N.isHandleChanged=function(M){var q,G=_.C((q=this.data)==null?void 0:q.channelHandleInput,i0s);return G&&M?G.handle!==M:!1};
_.N.handleImageUpdatedAction=function(M,q){this.hideContainer=!1;this.previewDataUrl=M;this.encryptedBlobId=q};
_.N.handleImageSelectionErrorAction=function(M){this.hideContainer=!1;this.setErrorState(M)};
_.N.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.N.showContainer=function(){this.hideContainer=!1};
_.N.maybeWipeZeroStepErrorMessage=function(){var M,q=(M=this.data)==null?void 0:M.zeroStepErrorMessageEntityKey,G;q&&((G=this.zeroStepErrorMessageEntity)==null?0:G.value)&&this.ytdReduxBehavior.dispatch(_.LL("stringEntity",q,{key:q,value:""}))};
_.Yd.Object.defineProperties(FJ.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 M;return((M=this.photoThumbnail)==null?0:M.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 M;return!((M=this.data)==null||!M.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.descriptionInfo}}});
FJ.prototype.dataChanged=FJ.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],FJ.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],FJ.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],FJ.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],FJ.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],FJ.prototype,"errorMessage",void 0);
_.T([_.B(),_.r("design:type",Object)],FJ.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",String)],FJ.prototype,"previewDataUrl",void 0);_.T([_.B(),_.r("design:type",Number)],FJ.prototype,"obakeImageSource",void 0);_.T([_.B(),_.r("design:type",Object)],FJ.prototype,"hideContainer",void 0);_.T([_.ET("#title-input"),_.r("design:type",Object)],FJ.prototype,"nameInput",void 0);_.T([_.ET("#handle-input"),_.r("design:type",Object)],FJ.prototype,"handleInput",void 0);
_.T([_.B(),_.r("design:type",Boolean)],FJ.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.T([_.B({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.kNY}),_.r("design:type",Object)],FJ.prototype,"zeroStepErrorMessageEntity",void 0);_.T([_.c("data","data.isDefaultProfilePhoto","previewDataUrl"),_.r("design:type",Object),_.r("design:paramtypes",[])],FJ.prototype,"photoThumbnail",null);
_.T([_.c("data","data.isDefaultProfilePhoto","photoThumbnail"),_.r("design:type",Object),_.r("design:paramtypes",[])],FJ.prototype,"userSetPhotoThumbnailUrl",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FJ.prototype,"hideProfilePhotoButtonLayer",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],FJ.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.T([_.yO("data","zeroStepErrorMessageEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],FJ.prototype,"dataChanged",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.descriptionInfo","zeroStepErrorMessageEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],FJ.prototype,"description",null);_.T([_.b({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],FJ);
_.z(FJ,"ytd-channel-creation-dialog-renderer",function(){if(txI!==void 0)return txI;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-creation-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="container style-scope ytd-channel-creation-dialog-renderer" hidden$="[[hideContainer]]">\n  <div class="popup-header style-scope ytd-channel-creation-dialog-renderer">\n    <yt-formatted-string id="title" class="popup-header-title style-scope ytd-channel-creation-dialog-renderer" text="[[data.title]]">\n    </yt-formatted-string>\n  </div>\n  <div class="channel-creation-description style-scope ytd-channel-creation-dialog-renderer" hidden="[[!enableNewChannelCreationOnIdForAll]]">\n    <yt-formatted-string id="description-info" hidden="[[!description]]" text="[[description]]" class="style-scope ytd-channel-creation-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div class="profile-picture-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-picture style-scope ytd-channel-creation-dialog-renderer">\n      <yt-img-shadow class="profile-photo style-scope ytd-channel-creation-dialog-renderer" height="128" thumbnail="[[photoThumbnail]]" width="128">\n      </yt-img-shadow>\n    </div>\n  </div>\n  <div class="profile-photo-button-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[hideProfilePhotoButtonLayer]]">\n    <div class="profile-photo-button-container style-scope ytd-channel-creation-dialog-renderer">\n      <ytd-button-renderer data="[[data.clearProfilePhotoButton.buttonRenderer]]" on-click="onClearProfilePhotoTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n      <ytd-button-renderer data="[[data.editAvatarButton.buttonRenderer]]" hidden="[[!data.editAvatarButton]]" on-click="onEditAvatarTap" class="style-scope ytd-channel-creation-dialog-renderer">\n      </ytd-button-renderer>\n    </div>\n    <yt-formatted-string class="optional-tag style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.profilePhotoOptionalTag]]" text="[[data.profilePhotoOptionalTag]]">\n    </yt-formatted-string>\n  </div>\n  <div class="name-and-disclaimer-container style-scope ytd-channel-creation-dialog-renderer">\n    <div class="profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.isNameEditable]]">\n      <tp-yt-paper-input id="title-input" class="input style-scope ytd-channel-creation-dialog-renderer" label="[[data.nameLabel]]" maxlength="50" required="" use-v2-underline="" value="[[data.name]]" on-input="onChannelNameInput"></tp-yt-paper-input>\n      <template is="dom-if" restamp="" if="[[data.channelHandleInput]]" on-dom-change="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        <ytd-channel-handle-input-renderer id="handle-input" data="[[data.channelHandleInput.channelHandleInputRenderer]]" on-value-changed="toggleCreateChannelButton" class="style-scope ytd-channel-creation-dialog-renderer">\n        </ytd-channel-handle-input-renderer>\n      </template>\n    </div>\n    <div class="readonly-profile-name style-scope ytd-channel-creation-dialog-renderer" hidden="[[data.isNameEditable]]">\n      [[data.name]]\n    </div>\n    <div class="error-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!errorMessage]]">\n      <yt-formatted-string class="error style-scope ytd-channel-creation-dialog-renderer" text="[[errorMessage]]"></yt-formatted-string>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.additionalInfos]]">\n      <div class="disclaimer-layer-paragraphs-container style-scope ytd-channel-creation-dialog-renderer">\n        <template is="dom-repeat" items="[[data.additionalInfos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </template>\n      </div>\n    </div>\n    <div class="disclaimer-layer style-scope ytd-channel-creation-dialog-renderer" hidden="[[!data.disclaimer]]">\n      <div class="style-scope ytd-channel-creation-dialog-renderer">\n        <yt-formatted-string class="warm-welcome-disclaimer style-scope ytd-channel-creation-dialog-renderer" respect-html-dir="" text="[[data.disclaimer]]">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div hidden="[[!data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n      <template is="dom-repeat" items="[[data.infos]]" class="style-scope ytd-channel-creation-dialog-renderer">\n        <div class="disclaimer-layer disclaimer-layer-no-icon style-scope ytd-channel-creation-dialog-renderer">\n          <yt-formatted-string respect-html-dir="" text="[[item]]" class="style-scope ytd-channel-creation-dialog-renderer"></yt-formatted-string>\n        </div>\n      </template>\n    </div>\n  </div>\n  <div class="button-layer style-scope ytd-channel-creation-dialog-renderer">\n    <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-click="onCancelTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n    <ytd-button-renderer id="create-channel-button" data="[[data.createChannelButton.buttonRenderer]]" on-click="onCreateTap" class="style-scope ytd-channel-creation-dialog-renderer">\n    </ytd-button-renderer>\n  </div>\n  <div class="spinner-container style-scope ytd-channel-creation-dialog-renderer" hidden="[[!isLoading]]">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-channel-creation-dialog-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return txI=M},{mode:1});var wCE;var H$=function(){var M=_.Q.apply(this,arguments)||this;M.isLoading=!1;M.isDisabled=!1;return M};
_.l(H$,_.Q);H$.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
H$.prototype.updateDisabled=function(){var M;this.isDisabled=this.isLoading||((M=this.handleInput)==null?void 0:M.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
H$.prototype.onSaveClick=function(){var M=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var q;((q=this.data)==null?void 0:q.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var G;if((G=M.data)==null?0:G.nextEndpoint){var K;M.ytComponentBehavior.resolveCommand((K=M.data)==null?void 0:K.nextEndpoint)}else M.isLoading=
!1,M.closeDialog()},
onServerError:function(){M.isLoading=!1;M.handleInput.validate();var G;M.errorMessage=(G=M.data)==null?void 0:G.errorMessage}}}))}};
H$.prototype.closeDialog=function(){_.VW(this.hostElement,"yt-close-popup-action",[this.is])};
H$.prototype.updateDisabled=H$.prototype.updateDisabled;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],H$.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],H$.prototype,"data",void 0);_.T([_.ET("#handle-input"),_.r("design:type",Object)],H$.prototype,"handleInput",void 0);_.T([_.KT("isLoading"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],H$.prototype,"updateDisabled",null);
_.T([_.b({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],H$);
_.z(H$,"ytd-channel-handle-edit-dialog-renderer",function(){if(wCE!==void 0)return wCE;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return wCE=M},{mode:1});var C6R;var ek=function(){return _.Q.apply(this,arguments)||this};
_.l(ek,_.Q);ek.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ek.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ek.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ek.prototype,"data",void 0);_.T([_.b({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],ek);
_.z(ek,"ytd-channel-switcher-footer-renderer",function(){if(C6R!==void 0)return C6R;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return C6R=M},{mode:1});var aqg;var o0E;var $Z=function(){return _.Q.apply(this,arguments)||this};
_.l($Z,_.Q);$Z.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
$Z.prototype.onIronChange=$Z.prototype.onIronChange;_.T([_.B(),_.r("design:type",Object)],$Z.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!1}),_.r("design:type",Function)],$Z.prototype,"onDontAskAgainChanged",void 0);_.T([_.ET("#checkbox"),_.r("design:type",Object)],$Z.prototype,"checkbox",void 0);_.T([_.GQ("iron-change"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],$Z.prototype,"onIronChange",null);
_.T([_.b({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],$Z);
_.z($Z,"ytd-identity-prompt-footer-renderer",function(){if(o0E!==void 0)return o0E;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return o0E=M},{mode:1});var s3=function(){var M=_.Q.apply(this,arguments)||this;M.dontAskAgain=!1;M.showPopup=!1;M.boundDontAskAgainChanged=function(q){M.dontAskAgainChanged(q)};
M.boundOnAccountItemTap=function(q){M.onAccountItemTap(q)};
return M};
_.l(s3,_.Q);_.N=s3.prototype;
_.N.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]]"}}}}}};
_.N.ready=function(){var M=this;_.f_(this.hostElement).querySelector("#container").addEventListener("scroll",function(){M.ytRendererBehavior.markDirty()})};
_.N.dontAskAgainChanged=function(M){this.dontAskAgain=M};
_.N.onAccountItemTap=function(M){if(M){var q={};this.dontAskAgain&&(q={dont_ask_again:this.dontAskAgain});_.PE(M,q)}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.N.redirectOnlyAccount=function(M){M.sections&&M.sections.length>0&&(M=_.C(M.sections[0],_.dqP),(M==null?0:M.contents)&&(M==null?void 0:M.contents.length)<=1?(M=_.nD(window.location.href),(M==null?0:M.next)&&_.rls(M.next)?_.PE(M.next):_.PE("/")):this.showPopup=!0)};
s3.prototype.dataChanged=s3.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],s3.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],s3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],s3.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!1}),_.r("design:type",Object)],s3.prototype,"dontAskAgain",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],s3.prototype,"showPopup",void 0);_.T([_.B({reflectToAttribute:!1}),_.r("design:type",Object)],s3.prototype,"boundDontAskAgainChanged",void 0);_.T([_.B({reflectToAttribute:!1}),_.r("design:type",Object)],s3.prototype,"boundOnAccountItemTap",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],s3.prototype,"dataChanged",null);
_.T([_.b({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],s3);
_.z(s3,"ytd-channel-switcher-renderer",function(){if(aqg!==void 0)return aqg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return aqg=M},{mode:1});var lqn;var M0=function(){return _.Q.apply(this,arguments)||this};
_.l(M0,_.Q);_.Yd.Object.defineProperties(M0.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.T([_.B(),_.r("design:type",Object)],M0.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],M0.prototype,"steps",null);_.T([_.b({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],M0);
_.z(M0,"ytd-channel-transfer-stepper-renderer",function(){if(lqn!==void 0)return lqn;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return lqn=M},{mode:1});var XC5;var q0=function(){var M=_.Q.apply(this,arguments)||this;M.data=null;M.isError=!1;M.isLoading=!1;return M};
_.l(q0,_.Q);_.N=q0.prototype;_.N.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"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.N.computeProfileName=function(M){return M?M.givenNameValue+" "+M.familyNameValue:""};
_.N.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)};
_.N.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)};
q0.prototype.onYtServiceRequestError=q0.prototype.onYtServiceRequestError;q0.prototype.onYtServiceRequestSent=q0.prototype.onYtServiceRequestSent;q0.prototype.dataChanged=q0.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],q0.prototype,"data",void 0);
_.T([_.B({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.r("design:type",String)],q0.prototype,"profileName",void 0);_.T([_.B(),_.r("design:type",Object)],q0.prototype,"isError",void 0);_.T([_.B(),_.r("design:type",Object)],q0.prototype,"isLoading",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],q0.prototype,"dataChanged",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],q0.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],q0.prototype,"onYtServiceRequestError",null);_.T([_.b({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],q0);
_.z(q0,"ytd-channel-warm-welcome-cont-renderer",function(){if(XC5!==void 0)return XC5;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return XC5=M},{mode:1});var P65;var Gg=function(){var M=_.Q.apply(this,arguments)||this;M.data=null;return M};
_.l(Gg,_.Q);Gg.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Gg.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Gg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Gg.prototype,"data",void 0);_.T([_.b({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Gg);
_.z(Gg,"ytd-channel-warm-welcome-renderer",function(){if(P65!==void 0)return P65;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return P65=M},{mode:1});var iyM;var Kz=function(){return _.Q.apply(this,arguments)||this};
_.l(Kz,_.Q);_.Yd.Object.defineProperties(Kz.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.authorThumbnail)||{}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Kz.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Kz.prototype,"thumbnailDetails",null);_.T([_.b({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Kz);
_.z(Kz,"ytd-comment-preview-renderer",function(){if(iyM!==void 0)return iyM;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return iyM=M},{mode:1});var cPs;var nz=function(){return _.Q.apply(this,arguments)||this};
_.l(nz,_.Q);nz.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Yd.Object.defineProperties(nz.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.submitButton}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],nz.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],nz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],nz.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],nz.prototype,"submitButton",null);_.T([_.b({is:"ytd-notice-renderer",disableElementRegistration:!0})],nz);
_.z(nz,"ytd-notice-renderer",function(){if(cPs!==void 0)return cPs;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return cPs=M},{mode:1});var g0v;var E3=function(){return _.Q.apply(this,arguments)||this};
_.l(E3,_.Q);E3.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],E3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],E3.prototype,"data",void 0);_.T([_.b({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],E3);
_.z(E3,"ytd-preview-comment-dialog-content",function(){if(g0v!==void 0)return g0v;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return g0v=M},{mode:1});var BuI;var N0=function(){return _.Q.apply(this,arguments)||this};
_.l(N0,_.Q);N0.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
N0.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],N0.prototype,"data",void 0);_.T([_.b({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],N0);
_.z(N0,"ytd-preview-comment-dialog-renderer",function(){if(BuI!==void 0)return BuI;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return BuI=M},{mode:1});var QhL;var IqI=_.w("web_button_rework")&&_.fX("BUTTON_REWORK")||_.w("web_button_rework_with_live"),kR=function(){var M=_.Q.apply(this,arguments)||this;M.closeLabel=_.Ge("CLOSE");M.selectedAmountIndex=1;M.privacyCheckboxValue=!1;M.useAmsterdamStyle=IqI;M.amountPlaceholderIndex=-1;return M};
_.l(kR,_.Q);_.N=kR.prototype;_.N.onAmountClick=function(M){this.selectedAmountIndex=_.f_(this.hostElement).querySelector("#amounts").indexForElement(M.currentTarget)};
_.N.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.VW(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.N.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.VW(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.VW(this.hostElement,"yt-close-popup-action",[this.is]);var M;(M=_.TM())==null||M.getPlayerPromise().then(function(q){q.pauseVideo()})}};
_.N.donationCallback=function(M){M.success?(this.hostElement.hasAttribute("live-chat")&&M.response&&M.response.data&&M.response.data.actions&&_.VW(this.hostElement,"yt-live-chat-open-popup",[M.response.data.actions[0]]),_.VW(this.hostElement,"yt-close-popup-action",[this.is]),_.VW(this.hostElement,"yt-live-chat-close-buy-flow")):M.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(M.errorMessageRenderer)};
_.N.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.f_(this.hostElement).querySelector("#custom-amount-input").focus()};
_.N.updateConfirmationDialogTextWithAmount=function(M){var q=this.getConfirmDialogRuns();q&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(q),"text"],this.getFormattedAmount(M))};
_.N.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.N.getAmountPlaceholderIndex=function(M){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=M.findIndex(function(q){return q.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.N.getFormattedAmount=function(M){var q;return(new _.It(4,((q=this.data)==null?void 0:q.currencyCode)||"")).format(M)};
_.N.isAmountValid=function(M){if(M==="")return!1;M=Number(M)*1E6;var q=this.get("minAmountMicros",this.data),G=this.get("maxAmountMicros",this.data);return q&&M<q||G&&M>G?!1:!0};
_.N.setInputError=function(){this.shouldShowValidationError?_.f_(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.f_(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.N.setInitialCheckboxValue=function(){var M;this.privacyCheckboxValue=!((M=this.data)==null||!M.privacyCheckboxInitialState)};
_.N.updateCustomAmountInputFromBinding=function(M){this.customAmountInput=M.detail.value};
_.N.updatePrivacyCheckboxValueFromBinding=function(M){this.privacyCheckboxValue=M.detail.value};
_.Yd.Object.defineProperties(kR.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var M=this,q,G;return((q=this.data)==null?void 0:(G=q.suggestedAmounts)==null?void 0:G.map(function(K,n){return{buttonRenderer:{style:M.selectedAmountIndex===n?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:K.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 M;return!((M=this.data)==null||!M.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 M=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(M&&this.amountMicros!==null)return Object.assign({},M,{ypcGetCartEndpoint:Object.assign({},M.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 M=this.get("confirmLargeAmount",this.data);if(M&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),M}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var M=this.get("donateButton.buttonRenderer",this.data);if(M)return Object.assign({},M,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
kR.prototype.setInitialCheckboxValue=kR.prototype.setInitialCheckboxValue;kR.prototype.setInputError=kR.prototype.setInputError;kR.prototype.setFocusOnCustomAmountInput=kR.prototype.setFocusOnCustomAmountInput;_.T([_.P(ZMI),_.r("design:type",Object)],kR.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],kR.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],kR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],kR.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],kR.prototype,"closeLabel",void 0);_.T([_.B(),_.r("design:type",Object)],kR.prototype,"selectedAmountIndex",void 0);_.T([_.B(),_.r("design:type",String)],kR.prototype,"customAmountInput",void 0);_.T([_.B(),_.r("design:type",Object)],kR.prototype,"privacyCheckboxValue",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],kR.prototype,"useAmsterdamStyle",void 0);_.T([_.KT("customAmount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kR.prototype,"setFocusOnCustomAmountInput",null);_.T([_.c("data","selectedAmountIndex"),_.r("design:type",Array),_.r("design:paramtypes",[])],kR.prototype,"suggestedAmountButtons",null);
_.T([_.c("data","selectedAmountIndex"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],kR.prototype,"isCustomAmountSelected",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],kR.prototype,"showPrivacyCheckbox",null);_.T([_.c("data","selectedAmountIndex","customAmount"),_.r("design:type",Object),_.r("design:paramtypes",[])],kR.prototype,"amountMicros",null);
_.T([_.c("isCustomAmountSelected","customAmountInput"),_.r("design:type",Object),_.r("design:paramtypes",[])],kR.prototype,"customAmount",null);_.T([_.c("customAmount"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],kR.prototype,"shouldShowValidationError",null);_.T([_.c("customAmount"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],kR.prototype,"isDonateButtonEnabled",null);
_.T([_.c("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.r("design:type",Object),_.r("design:paramtypes",[])],kR.prototype,"donateCommand",null);_.T([_.c("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.r("design:type",Object),_.r("design:paramtypes",[])],kR.prototype,"donateCommandWithConfirmation",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],kR.prototype,"largeDonationThreshold",null);
_.T([_.c("customAmount","donateCommand","amountMicros"),_.r("design:type",Object),_.r("design:paramtypes",[])],kR.prototype,"confirmLargeAmountCommand",null);_.T([_.c("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.r("design:type",Object),_.r("design:paramtypes",[])],kR.prototype,"donateButtonRenderer",null);_.T([_.KT("shouldShowValidationError"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kR.prototype,"setInputError",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kR.prototype,"setInitialCheckboxValue",null);_.T([_.b({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],kR);
_.z(kR,"ytd-donation-amount-picker-renderer",function(){if(QhL!==void 0)return QhL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return QhL=M},{mode:1});var D7M;var uFg=function(){return _.Q.apply(this,arguments)||this};
_.l(uFg,_.Q);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],uFg.prototype,"ytComponentBehavior",void 0);_.T([_.B({}),_.r("design:type",Object)],uFg.prototype,"data",void 0);_.T([_.b({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],uFg);
_.z(uFg,"ytd-donation-post-transaction-content",function(){if(D7M!==void 0)return D7M;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return D7M=M},{mode:1});var JPw;var pz=function(){return _.Q.apply(this,arguments)||this};
_.l(pz,_.Q);pz.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.T([_.B({}),_.r("design:type",Object)],pz.prototype,"data",void 0);_.T([_.b({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],pz);
_.z(pz,"ytd-donation-post-transaction-renderer",function(){if(JPw!==void 0)return JPw;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return JPw=M},{mode:1});var Zy5;var byI;var yv=function(){return _.Q.apply(this,arguments)||this};
_.l(yv,_.Q);yv.prototype.computeIsStreamingProvider=function(M){return!!M.isStreamingShelf};
yv.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],yv.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],yv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yv.prototype,"data",void 0);_.T([_.B({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],yv.prototype,"isStreamingProvider",void 0);
_.T([_.b({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],yv);
_.z(yv,"ytd-media-provider-renderer",function(){if(byI!==void 0)return byI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return byI=M},{mode:1});var U75;var Lz=function(){return _.Q.apply(this,arguments)||this};
_.l(Lz,_.Q);Lz.prototype.observeLightsourcePalette=function(){var M,q=(M=this.data)==null?void 0:M.vibrantsourceColorPaletteData;q&&_.dk(this.hostElement,q)};
Lz.prototype.observeLightsourcePalette=Lz.prototype.observeLightsourcePalette;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Lz.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Lz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Lz.prototype,"data",void 0);
_.T([_.KT("data.vibrantsourceColorPaletteData"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lz.prototype,"observeLightsourcePalette",null);_.T([_.b({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],Lz);
_.z(Lz,"ytd-streaming-pop-up-dialog",function(){if(U75!==void 0)return U75;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return U75=M},{mode:1});var YR=function(){return _.Q.apply(this,arguments)||this};
_.l(YR,_.Q);YR.prototype.onPopupOpened_=function(){var M;((M=this.data)==null?0:M.serviceEndpoint)&&_.AL().resolve(_.vR).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
YR.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
YR.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"}}}}};
YR.prototype.onPopupOpened_=YR.prototype.onPopupOpened_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],YR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.sG),_.r("design:type",Object)],YR.prototype,"ytContinuationHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],YR.prototype,"data",void 0);
_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],YR.prototype,"onPopupOpened_",null);_.T([_.b({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],YR);
_.z(YR,"ytd-brandconnect-popup-renderer",function(){if(Zy5!==void 0)return Zy5;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Zy5=M},{mode:1});var x7n;var Wu=function(){return _.Q.apply(this,arguments)||this};
_.l(Wu,_.Q);_.N=Wu.prototype;_.N.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){for(var M=0;M<this.getOptionRenderers().length;M++)this.notifyPath("data.options."+M+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+M+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.N.updateSubmitButton=function(M){this.set("data.submitButton.buttonRenderer.isDisabled",!M)};
_.N.computeAlt=function(M){return _.UX(M)};
_.N.onDismissTap=function(){_.VW(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.N.getOptionRenderers=function(M){return(M=M||this.data)&&M.options?M.options.reduce(function(q,G){G.checkboxSurveyOptionRenderer&&q.push(G.checkboxSurveyOptionRenderer);return q},[]):[]};
_.N.onOptionChange=function(M){var q=this,G=!1;if(M.detail.checked)for(var K=this.getOptionRenderers().find(function(y){return y.value===M.detail.value}),n=this.getOptionRenderers(),E=0;E<n.length;E++){var p=n[E];
this.notifyPath("data.options."+E+".checkboxSurveyOptionRenderer.checked");p.checked&&((K==null?0:K.isExclusiveOption)?!p.isExclusiveOption:p.isExclusiveOption)?this.set("data.options."+E+".checkboxSurveyOptionRenderer.checked",!1):p.checked&&(G=!0)}else G=this.getOptionRenderers().some(function(y,Y){q.notifyPath("data.options."+Y+".checkboxSurveyOptionRenderer.checked");return y.checked});
this.updateSubmitButton(G)};
_.N.onSubmitTap=function(){var M=this.getOptionRenderers().filter(function(E){return E.checked});
if(M.length!==0){var q=M.map(function(E){return E.responseEndpoint});
M=[];for(var G=1;G<q.length;G++){var K=void 0,n=(K=_.C(q[G],_.tM))==null?void 0:K.feedbackToken;n&&M.push(n)}q=[q[0]];M.length&&q.push({extra_feedback_tokens:M});_.fx(this.hostElement,q);_.VW(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);M=this.data&&this.data.submitActions||[];if(_.w("kevlar_command_handler_migration_killswitch"))_.FH(this.hostElement,M,this.hostElement);else for(M=_.k(M),q=M.next();!q.done;q=M.next())this.ytComponentBehavior.resolveCommand(q.value)}};
Wu.prototype.onOptionChange=Wu.prototype.onOptionChange;Wu.prototype.dataChanged=Wu.prototype.dataChanged;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],Wu.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Wu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Wu.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.T([_.P(MyP),_.r("design:type",Object)],Wu.prototype,"ytdHatsSurveyBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Wu.prototype,"data",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Wu.prototype,"dataChanged",null);
_.T([_.GQ("ytd-checkbox-survey-option-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Wu.prototype,"onOptionChange",null);_.T([_.b({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],Wu);
_.z(Wu,"ytd-checkbox-survey-renderer",function(){if(x7n!==void 0)return x7n;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return x7n=M},{mode:1});var zZI;var m78;var Ai=function(){return _.Q.apply(this,arguments)||this};
_.l(Ai,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ai.prototype,"ytRendererBehavior",void 0);_.T([_.P(sdE),_.r("design:type",Object)],Ai.prototype,"ytdDismissalReasonBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Ai.prototype,"data",void 0);_.T([_.b({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],Ai);
_.z(Ai,"ytd-dismissal-reason-text-renderer",function(){if(m78!==void 0)return m78;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return m78=M},{mode:1});var So5;var d5=function(){return _.Q.apply(this,arguments)||this};
_.l(d5,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],d5.prototype,"ytRendererBehavior",void 0);_.T([_.P(sdE),_.r("design:type",Object)],d5.prototype,"ytdDismissalReasonBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],d5.prototype,"data",void 0);_.T([_.b({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],d5);
_.z(d5,"ytd-dismissal-reason-video-renderer",function(){if(So5!==void 0)return So5;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return So5=M},{mode:1});var vu=function(){return _.Q.apply(this,arguments)||this};
_.l(vu,_.Q);_.N=vu.prototype;_.N.created=function(){this.selectedFeedbackTokens=new ab};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.N.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.N.onDismissalReasonSelected=function(M,q){_.jP(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(q);this.hasReasonsSelected=!0};
_.N.onDismissalReasonDeselected=function(M,q){_.jP(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(q);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.N.onCancelTap=function(){_.VW(this.hostElement,"yt-close-popup-action")};
_.N.onSubmitTap=function(){var M=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(M={feedback_tokens:M},_.AL().resolve(_.vR).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},M,{element:this.hostElement})}));_.VW(this.hostElement,"yt-close-popup-action")};
vu.prototype.onDismissalReasonDeselected=vu.prototype.onDismissalReasonDeselected;vu.prototype.onDismissalReasonSelected=vu.prototype.onDismissalReasonSelected;vu.prototype.dataChanged=vu.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],vu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],vu.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Boolean)],vu.prototype,"hasReasonsSelected",void 0);_.T([_.B(),_.r("design:type",ab)],vu.prototype,"selectedFeedbackTokens",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vu.prototype,"dataChanged",null);_.T([_.GQ("yt-dismissal-reason-selected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,String]),_.r("design:returntype")],vu.prototype,"onDismissalReasonSelected",null);
_.T([_.GQ("yt-dismissal-reason-deselected"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,String]),_.r("design:returntype")],vu.prototype,"onDismissalReasonDeselected",null);_.T([_.b({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],vu);
_.z(vu,"ytd-dismissal-follow-up-renderer",function(){if(zZI!==void 0)return zZI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return zZI=M},{mode:1});var TuU;var hi=function(){return _.Q.apply(this,arguments)||this};
_.l(hi,_.Q);_.N=hi.prototype;_.N.onCheckedChange=function(){this.multiselect||_.jP(this.hostElement,"yt-feedback-single-select-changed");_.f_(this.hostElement).querySelector("#freeform").focus();_.jP(this.hostElement,"yt-refit")};
_.N.showTextBox=function(M,q){return M&&q};
_.N.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))};
_.N.updateDataCheckedFromBinding=function(M){this.set("data.checked",M.detail.value)};
_.N.updateDataResultTextFromBinding=function(M){this.set("data.resultText",M.detail.value)};
hi.prototype.dataChanged=hi.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hi.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hi.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],hi.prototype,"multiselect",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hi.prototype,"dataChanged",null);
_.T([_.b({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],hi);
_.z(hi,"ytd-feedback-option-renderer",function(){if(TuU!==void 0)return TuU;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return TuU=M},{mode:1});var rPv;var ti=function(){return _.Q.apply(this,arguments)||this};
_.l(ti,_.Q);ti.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
ti.prototype.onSingleSelectCheckedChanged=function(M){M=_.ba(M);for(var q=0;q<this.data.options.length;q++)if(M.data!==_.C(this.data.options[q],WMI)){var G="data.options."+q+".feedbackOptionRenderer.checked";this.notifyPath(G);this.set(G,!1)}};
ti.prototype.onSingleSelectCheckedChanged=ti.prototype.onSingleSelectCheckedChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ti.prototype,"data",void 0);
_.T([_.GQ("yt-feedback-single-select-changed"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],ti.prototype,"onSingleSelectCheckedChanged",null);_.T([_.b({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],ti);
_.z(ti,"ytd-feedback-question-renderer",function(){if(rPv!==void 0)return rPv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return rPv=M},{mode:1});var jhw;var O3=function(){return _.Q.apply(this,arguments)||this};
_.l(O3,_.Q);O3.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
O3.prototype.getSelectedFeedbackResults=function(){for(var M={},q=0;q<this.data.questions.length;q++)for(var G=_.C(this.data.questions[q],YGg),K=0;K<G.options.length;K++){var n=_.C(G.options[K],WMI);n&&n.checked&&(M[n.optionKey]=n.resultText)}return M};
O3.prototype.onKeyUp=function(){var M=this;_.RM(_.r8,function(){_.jP(M.hostElement,"yt-refit")});
_.r8.start()};
O3.prototype.submitSurvey=function(){var M=this.getSelectedFeedbackResults();Object.keys(M).length>0&&this.data.submitFeedbackEndpoint&&(M={survey_results:M,is_feedback_token_unencrypted:!0},_.AL().resolve(_.vR).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},M,{element:this.hostElement})}))};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],O3.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],O3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],O3.prototype,"data",void 0);_.T([_.b({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],O3);
_.z(O3,"ytd-feedback-survey-renderer",function(){if(jhw!==void 0)return jhw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return jhw=M},{mode:1});var Vxs;var RZv;var w5=function(){return _.Q.apply(this,arguments)||this};
_.l(w5,_.Q);w5.prototype.computeAlt=function(M){return _.UX(M)};
w5.prototype.submitResponse=function(){var M,q;(M=this.data)!=null&&M.feedbackToken&&((q=this.data)==null?void 0:q.nextStageIndex)!==void 0&&(_.Rf(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Rf(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
w5.prototype.onClick=function(){this.submitResponse()};
w5.prototype.onClick=w5.prototype.onClick;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],w5.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],w5.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],w5.prototype,"vertical",void 0);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],w5.prototype,"onClick",null);
_.T([_.b({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],w5);
_.z(w5,"ytd-single-select-answer-option-renderer",function(){if(RZv!==void 0)return RZv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return RZv=M},{mode:1});var fqL;var Cz=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return M};
_.l(Cz,_.Q);Cz.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
Cz.prototype.dataChanged=function(){var M,q;this.vertical=((q=(M=this.data)==null?void 0:M.answerOrientation)!=null?q:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
Cz.prototype.submitFeedback=function(M){var q;((q=this.data)==null?0:q.responseEndpoint)&&M&&_.fx(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[M]}])};
Cz.prototype.dataChanged=Cz.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Cz.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],Cz.prototype,"eventForwardingBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Cz.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Cz.prototype,"vertical",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Cz.prototype,"dataChanged",null);_.T([_.b({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],Cz);
_.z(Cz,"ytd-single-select-question-renderer",function(){if(fqL!==void 0)return fqL;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return fqL=M},{mode:1});var ap=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return M};
_.l(ap,_.Q);_.N=ap.prototype;_.N.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"}}}};
_.N.dataChanged=function(){this.jumpToStage(0)};
_.N.jumpToStage=function(M){var q,G;if((q=this.data)==null?0:(G=q.stages)==null?0:G[M])this.currentStage=this.data.stages[M],this.refitAfterRender()};
_.N.computeAlt=function(M){return _.UX(M)};
_.N.computeSimpleMessage=function(M){var q;return(q=_.C(M,vhs))==null?void 0:q.messageText};
_.N.computeHideDismiss=function(M){var q;return(q=_.C(M,SYL))==null?void 0:q.hideParentDismissButton};
_.N.onDismissTap=function(){_.VW(this.hostElement,"yt-close-popup-action");_.C(this.currentStage,vhs)||this.data.dismissalEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.N.refitAfterRender=function(){var M=this;_.yb(this,function(){_.jP(M.hostElement,"yt-refit")})};
ap.prototype.dataChanged=ap.prototype.dataChanged;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],ap.prototype,"eventForwardingBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],ap.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P(MyP),_.r("design:type",Object)],ap.prototype,"ytdHatsSurveyBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ap.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],ap.prototype,"currentStage",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ap.prototype,"dataChanged",null);_.T([_.b({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],ap);
_.z(ap,"ytd-multi-stage-survey-renderer",function(){if(Vxs!==void 0)return Vxs;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Vxs=M},{mode:1});var FBR;var op=function(){return _.Q.apply(this,arguments)||this};
_.l(op,_.Q);op.prototype.computeAlt=function(M){return _.UX(M)};
op.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.AL().resolve(_.vR).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.VW(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.H_R(!1)))};
op.prototype.onTap=function(){this.vertical&&this.submitResponse()};
op.prototype.onTap=op.prototype.onTap;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],op.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],op.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],op.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],op.prototype,"vertical",void 0);
_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],op.prototype,"onTap",null);_.T([_.b({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],op);
_.z(op,"ytd-single-option-survey-option-renderer",function(){if(FBR!==void 0)return FBR;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return FBR=M},{mode:1});var HyR;var lw=function(){return _.Q.apply(this,arguments)||this};
_.l(lw,_.Q);_.N=lw.prototype;_.N.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){var M,q;this.vertical=(((M=this.data)==null?void 0:(q=M.surveyOrientation)==null?void 0:q.type)||"HORIZONTAL")==="VERTICAL"};
_.N.computeAlt=function(M){return _.UX(M)};
_.N.onDismissTap=function(){_.VW(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.AL().resolve(_.vR).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.H_R(!1))};
lw.prototype.dataChanged=lw.prototype.dataChanged;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],lw.prototype,"eventForwardingBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],lw.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],lw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(MyP),_.r("design:type",Object)],lw.prototype,"ytdHatsSurveyBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],lw.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],lw.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],lw.prototype,"vertical",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],lw.prototype,"dataChanged",null);_.T([_.b({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],lw);
_.z(lw,"ytd-single-option-survey-renderer",function(){if(HyR!==void 0)return HyR;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return HyR=M},{mode:1});var eZn;var X_=function(){return _.Q.apply(this,arguments)||this};
_.l(X_,_.Q);X_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
X_.prototype.onDismissTap=function(){_.VW(this.hostElement,"yt-close-popup-action")};
X_.prototype.onNavigate=function(){_.VW(this.hostElement,"yt-close-popup-action")};
X_.prototype.onNavigate=X_.prototype.onNavigate;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],X_.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],X_.prototype,"ytEventForwardingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],X_.prototype,"data",void 0);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],X_.prototype,"onNavigate",null);
_.T([_.b({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],X_);
_.z(X_,"ytd-survey-follow-up-renderer",function(){if(eZn!==void 0)return eZn;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return eZn=M},{mode:1});var $7M;var s6g;var M3P;var Pu=function(){var M=_.Q.apply(this,arguments)||this;M.polymer2="Element"in Polymer;return M};
_.l(Pu,_.Q);_.N=Pu.prototype;_.N.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.N.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.N.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.N.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("minutes-changed",this.minutes))};
_.N.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("seconds-changed",this.seconds))};
_.N.updateMinutesFromBinding=function(M){this.minutes=M.detail.value};
_.N.updateSecondsFromBinding=function(M){this.seconds=M.detail.value};
Pu.prototype.secondsChangedForBinding=Pu.prototype.secondsChangedForBinding;Pu.prototype.minutesChangedForBinding=Pu.prototype.minutesChangedForBinding;Pu.prototype.secondsChanged=Pu.prototype.secondsChanged;_.T([_.B(),_.r("design:type",String)],Pu.prototype,"minutes",void 0);_.T([_.B(),_.r("design:type",String)],Pu.prototype,"seconds",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Pu.prototype,"polymer2",void 0);
_.T([_.ET("#seconds"),_.r("design:type",Object)],Pu.prototype,"secondsEl",void 0);_.T([_.KT("seconds"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pu.prototype,"secondsChanged",null);_.T([_.KT("minutes"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pu.prototype,"minutesChangedForBinding",null);
_.T([_.KT("seconds"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Pu.prototype,"secondsChangedForBinding",null);_.T([_.aO({is:"yt-timestamp-input",disableElementRegistration:!0})],Pu);
_.z(Pu,"yt-timestamp-input",function(){if(M3P===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;s6g===void 0&&(s6g=document.createElement("template"));var K=s6g;G.call(q,K.content.cloneNode(!0),M.content.firstChild);M3P=M}M=M3P;return M},{mode:2});var iw=function(){return _.Q.apply(this,arguments)||this};
_.l(iw,_.Q);_.N=iw.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$20625_scroller.dialogElement=this.hostElement.parentNode};
_.N.dataChanged=function(){var M=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.rk().getPlayerPromise().then(function(q){q=q.getCurrentTime();M.minutes=Math.floor(q/60).toString();M.seconds=(Math.floor(q)%60).toString()})};
_.N.onTapSubmit=function(M){M.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(M={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(M.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(M.minutes=this.minutes,M.seconds=this.seconds),_.AL().resolve(_.vR).resolveCommand(this.serviceEndpoint,{form:Object.assign({},M,{element:this.hostElement})}))};
_.N.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.N.onYtServiceRequestCompleted=function(M,q){q=q.actions;if(Array.isArray(q))for(var G=0,K=q.length;G<K;G++)_.C(q[G],_.BA)&&(M.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(q[G]))};
_.N.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.N.toggleSubmitButton=function(M){this.set("submitButton.isDisabled",!M)};
_.N.handleInput=function(){var M=this.issueType,q=this.affiliation,G=this.minutes,K=this.seconds;G=!this.showTimestamp||!!G&&!!K;this.toggleSubmitButton(!!this.descriptionText&&!!M&&!!q&&G)};
_.N.computeServiceEndpoint=function(M){return this.get("submitButton.buttonRenderer.serviceEndpoint",M)};
_.N.computeSubmitButton=function(M){(M=this.get("submitButton.buttonRenderer",M))&&(M=Object.assign({},M,{serviceEndpoint:void 0}));return M};
_.N.computeShowTimestamp=function(M){return!!M};
_.N.onValueChangedForIssueType=function(M){this.issueType=M.detail.value};
_.N.onValueChangedForAffiliation=function(M){this.affiliation=M.detail.value};
_.N.updateDescriptionTextFromBinding=function(M){this.descriptionText=M.detail.value};
_.N.updateFullNameTextFromBinding=function(M){this.fullNameText=M.detail.value};
_.N.updateMinutesFromBinding=function(M){this.minutes=M.detail.value};
_.N.updateSecondsFromBinding=function(M){this.seconds=M.detail.value};
iw.prototype.handleInput=iw.prototype.handleInput;iw.prototype.onYtServiceRequestError=iw.prototype.onYtServiceRequestError;iw.prototype.onYtServiceRequestCompleted=iw.prototype.onYtServiceRequestCompleted;iw.prototype.onYtServiceRequestSent=iw.prototype.onYtServiceRequestSent;iw.prototype.dataChanged=iw.prototype.dataChanged;_.T([_.P(_.vf.YtOpenPopupBehavior),_.r("design:type",Object)],iw.prototype,"ytOpenPopupBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],iw.prototype,"ytRendererBehavior",void 0);_.T([_.ET("#scroller"),_.r("design:type",Object)],iw.prototype,"JSC$20625_scroller",void 0);_.T([_.ET("#description"),_.r("design:type",HTMLInputElement)],iw.prototype,"description",void 0);_.T([_.ET("#full-name"),_.r("design:type",Object)],iw.prototype,"fullName",void 0);_.T([_.B(),_.r("design:type",Object)],iw.prototype,"data",void 0);
_.T([_.B({computed:"computeShowTimestamp(data.timestampLabel)"}),_.r("design:type",Boolean)],iw.prototype,"showTimestamp",void 0);_.T([_.B({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.r("design:type",Object)],iw.prototype,"serviceEndpoint",void 0);_.T([_.B({computed:"computeSubmitButton(data)"}),_.r("design:type",Object)],iw.prototype,"submitButton",void 0);_.T([_.B(),_.r("design:type",String)],iw.prototype,"descriptionText",void 0);
_.T([_.B(),_.r("design:type",Number)],iw.prototype,"issueType",void 0);_.T([_.B(),_.r("design:type",Number)],iw.prototype,"affiliation",void 0);_.T([_.B(),_.r("design:type",String)],iw.prototype,"fullNameText",void 0);_.T([_.B(),_.r("design:type",String)],iw.prototype,"minutes",void 0);_.T([_.B(),_.r("design:type",String)],iw.prototype,"seconds",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iw.prototype,"dataChanged",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],iw.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],iw.prototype,"onYtServiceRequestCompleted",null);
_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],iw.prototype,"onYtServiceRequestError",null);_.T([_.KT("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],iw.prototype,"handleInput",null);_.T([_.b({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],iw);
_.z(iw,"ytd-legal-report-details-form-renderer",function(){if($7M!==void 0)return $7M;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return $7M=M},{mode:1});var qmI;var cu=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return M};
_.l(cu,_.Q);cu.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
cu.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var M=this.formRenderer.getForm();M&&this.data.submitEndpoint&&(_.AL().resolve(_.vR).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},M,{element:this.hostElement})}),_.VW(this.hostElement,"yt-close-popup-action"))}};
cu.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.VW(this.hostElement,"yt-close-popup-action"))};
cu.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
cu.prototype.onPopupClosed=cu.prototype.onPopupClosed;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],cu.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],cu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],cu.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);
_.T([_.ET("yt-form-renderer"),_.r("design:type",Object)],cu.prototype,"formRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],cu.prototype,"data",void 0);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],cu.prototype,"onPopupClosed",null);_.T([_.b({is:"ytd-form-popup-content",disableElementRegistration:!0})],cu);
_.z(cu,"ytd-form-popup-content",function(){if(qmI!==void 0)return qmI;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return qmI=M},{mode:1});var GGP;var Ip=function(){return _.Q.apply(this,arguments)||this};
_.l(Ip,_.Q);Ip.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Ip.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ip.prototype.onPopupOpened=function(){_.jP(this.hostElement,"yt-invalidate-popup-tabbables")};
Ip.prototype.onYtServiceRequestCompleted=function(M,q){q.data&&q.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.jP(this.hostElement,"yt-invalidate-popup-tabbables"))};
Ip.prototype.onYtServiceRequestCompleted=Ip.prototype.onYtServiceRequestCompleted;Ip.prototype.onPopupOpened=Ip.prototype.onPopupOpened;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],Ip.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Ip.prototype,"data",void 0);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ip.prototype,"onPopupOpened",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],Ip.prototype,"onYtServiceRequestCompleted",null);_.T([_.b({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Ip);
_.z(Ip,"ytd-form-popup-renderer",function(){if(GGP!==void 0)return GGP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return GGP=M},{mode:1});var KIU;var DV=function(){var M=_.Q.apply(this,arguments)||this;M.isLoading=!1;return M};
_.l(DV,_.Q);_.N=DV.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");kEE(this.hostElement)};
_.N.onYtServiceRequestSent=function(){this.isLoading=!0};
_.N.onYtServiceRequestCompleted=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.N.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.FH(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.N.closePopupHandler=function(){this.fireOnCloseActions()};
_.N.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var M=this.get("data.headerImage.thumbnails");M&&(M=_.TE(M,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+M+")")}};
_.N.onYtNavigate=function(M){(M=_.ba(M))&&M.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
DV.prototype.onYtNavigate=DV.prototype.onYtNavigate;DV.prototype.onHeaderImageChanged=DV.prototype.onHeaderImageChanged;DV.prototype.closePopupHandler=DV.prototype.closePopupHandler;DV.prototype.onYtServiceRequestCompleted=DV.prototype.onYtServiceRequestCompleted;DV.prototype.onYtServiceRequestSent=DV.prototype.onYtServiceRequestSent;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],DV.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],DV.prototype,"ytEventForwardingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],DV.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],DV.prototype,"isLoading",void 0);_.T([_.ET("#header"),_.r("design:type",HTMLDivElement)],DV.prototype,"header",void 0);_.T([_.ET("#confirm-button"),_.r("design:type",_.cf)],DV.prototype,"confirmButton",void 0);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],DV.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],DV.prototype,"onYtServiceRequestCompleted",null);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],DV.prototype,"closePopupHandler",null);_.T([_.KT("data.headerImage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DV.prototype,"onHeaderImageChanged",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],DV.prototype,"onYtNavigate",null);
_.T([_.b({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],DV);
_.z(DV,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(KIU!==void 0)return KIU;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return KIU=M},{mode:1});var nbP;var uw=function(){var M=_.Q.apply(this,arguments)||this;M.isLoading=!1;return M};
_.l(uw,_.Q);_.N=uw.prototype;_.N.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"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);kEE(this.hostElement)};
_.N.onYtServiceRequestCompleted=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.N.onYtServiceRequestError=function(M){_.Qu(this.hostElement,M.detail.error.message)};
_.N.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.N.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.VW(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.N.onDataChanged=function(){this.isLoading=!1;var M=this.get("data.headerImage.thumbnails");M&&(M=_.TE(M,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+M+")");M=_.Cx();var q=_.wt(),G=this.get("data.trackingParams");G&&q&&M&&_.QQ(M,q,_.yx(G))};
_.Yd.Object.defineProperties(uw.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
uw.prototype.onDataChanged=uw.prototype.onDataChanged;uw.prototype.onDomChange=uw.prototype.onDomChange;uw.prototype.onYtServiceRequestError=uw.prototype.onYtServiceRequestError;uw.prototype.onYtServiceRequestCompleted=uw.prototype.onYtServiceRequestCompleted;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],uw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],uw.prototype,"ytRendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],uw.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],uw.prototype,"isLoading",void 0);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],uw.prototype,"hasDescription",null);_.T([_.ET("tp-yt-paper-dialog-scrollable"),_.r("design:type",Object)],uw.prototype,"scrollable",void 0);_.T([_.ET("#header"),_.r("design:type",HTMLElement)],uw.prototype,"header",void 0);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],uw.prototype,"onYtServiceRequestCompleted",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],uw.prototype,"onYtServiceRequestError",null);
_.T([_.GQ("dom-change"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],uw.prototype,"onDomChange",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],uw.prototype,"onDataChanged",null);_.T([_.b({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],uw);
_.z(uw,"ytd-gaming-account-link-setting-renderer",function(){if(nbP!==void 0)return nbP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return nbP=M},{mode:1});var Ebg;var NAg;var Ji=function(){var M=_.Q.apply(this,arguments)||this;M.isHeader=!1;M.getEndpointForm=function(){return FiI(M.data)};
return M};
_.l(Ji,_.Q);_.N=Ji.prototype;_.N.triggerHintActions=function(){var M=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var q=_.Rf(M.hostElement,"yt-get-opened-popups-action");!(q&&q.length===1?q[0]:[]).some(function(G){G=G.openPopupAction.popupType;return G==="SURVEY"||G==="MEALBAR"||G==="HINT"})&&M.data.hintActions&&M.guideOpened&&(_.FH(M.hostElement,M.data.hintActions,M.hostElement),M.data.hintActions=void 0)})};
_.N.getBadgeIconType=function(M){return M&&M.liveBroadcasting?"live":null};
_.N.onDown=function(){this.interaction.triggerDown()};
_.N.onUp=function(){this.interaction.triggerUp()};
_.N.onTap=function(M){if(this.data.serviceEndpoint){var q;_.w("shorts_controller_retrieve_seedless_sequence_v2")&&((q=_.C(this.data.serviceEndpoint,_.p_))==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):fQv(this.data.serviceEndpoint,this);M.preventDefault()}else this.data.navigationEndpoint&&!_.b8(_.Zx(M),this.hostElement,["A".toString()])&&_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.N.computeActive=function(M,q){if(!M)return!1;var G=M.navigationEndpoint;M=M.serviceEndpoint;if(!G&&!M||!q)return!1;if(G){M=(M=_.K_(q))&&["subscriptions","filteredsubscriptions"].includes(M);if(_.C(G,_.n_)&&_.C(q,_.n_)&&!M){var K=_.C(G,_.n_).browseId;q=_.C(q,_.n_).browseId;return K!==void 0&&q!==void 0&&(K===q||K==="VLWL"&&q==="FEwatch_later"||K==="FEwatch_later"&&q==="VLWL")}var n;G=(n=_.C(G.commandMetadata,_.Mg))==null?void 0:n.url;q=(K=_.C(q.commandMetadata,_.Mg))==null?void 0:K.url;return!(!G||
!q||G!==q&&G!==_.ij(q))}return this.isActiveShortsTab(M,q)};
_.N.isActiveShortsTab=function(M,q){q=!!_.C(q,_.p_)||!!_.C(q,_.jN);return(!!_.C(M,_.p_)||!!_.C(M,_.jN))&&q};
_.N.computeIsPrimary=function(M){return!!M};
_.Yd.Object.defineProperties(Ji.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 M=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&M)return M}}});
Ji.prototype.onTap=Ji.prototype.onTap;Ji.prototype.onUp=Ji.prototype.onUp;Ji.prototype.onDown=Ji.prototype.onDown;Ji.prototype.triggerHintActions=Ji.prototype.triggerHintActions;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Ji.prototype,"componentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Ji.prototype,"rendererBehavior",void 0);_.T([_.P(_.qt.YtTaskEmitterBehavior),_.r("design:type",Object)],Ji.prototype,"taskEmitterBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Ji.prototype,"activeEndpoint",void 0);_.T([_.B(),_.r("design:type",Object)],Ji.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],Ji.prototype,"guideOpened",void 0);_.T([_.B(),_.r("design:type",String)],Ji.prototype,"type",void 0);_.T([_.ET("yt-interaction"),_.r("design:type",Object)],Ji.prototype,"interaction",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Ji.prototype,"isHeader",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data","activeEndpoint"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ji.prototype,"active",null);_.T([_.B({reflectToAttribute:!0}),_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],Ji.prototype,"isPrimary",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.count","data.presentationStyle","data.badges.*"),_.r("design:type",String),_.r("design:paramtypes",[])],Ji.prototype,"lineEndStyle",null);
_.T([_.c("lineEndStyle"),_.r("design:type",Object),_.r("design:paramtypes",[])],Ji.prototype,"ariaLabel",null);_.T([_.KT("data.hintActions","guideOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ji.prototype,"triggerHintActions",null);_.T([_.GQ("down"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ji.prototype,"onDown",null);
_.T([_.GQ("up"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Ji.prototype,"onUp",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Ji.prototype,"onTap",null);_.T([_.b({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],Ji);
_.z(Ji,"ytd-guide-entry-renderer",function(){if(NAg!==void 0)return NAg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return NAg=M},{mode:1});var ZV=function(){var M=_.Q.apply(this,arguments)||this;M.userToggled=!1;return M};
_.l(ZV,_.Q);_.N=ZV.prototype;_.N.getItemsPath=function(){return"data.expandableItems"};
_.N.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.N.onExpanderItemTapped=function(M){var q=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.w("kevlar_guide_expandable_items_killswitch")&&_.yb(this,function(){_.N8(q.expandableItems)});
M.preventDefault()};
_.N.onCollapserItemTapped=function(M){var q=this;this._setExpanded(!1);this.userToggled=!0;M.preventDefault();this.expandableItems&&!_.w("kevlar_guide_collapsible_items_killswitch")&&_.yb(this,function(){_.E4(q.hostElement)})};
_.N.observeActiveEndpoint=function(){for(var M=this.activeEndpoint,q=this.data,G=this.expandableItems.children,K=0,n=G.length;K<n;K++)G[K].activeEndpoint=M;q&&q.autoExpandCommand&&M&&!this.userToggled&&(G=this.data.autoExpandCommand,q=!(!_.C(G,_.n_)||!_.C(M,_.n_)||_.C(G,_.n_).browseId!==_.C(M,_.n_).browseId),M=this.get("commandMetadata.webCommandMetadata.url",M),G=this.get("commandMetadata.webCommandMetadata.url",G),q=q||!!(M&&G&&M.includes(G)),this._setExpanded(q),q&&this.ytLazyListBehavior.fillRemainingListItems())};
ZV.prototype.observeActiveEndpoint=ZV.prototype.observeActiveEndpoint;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ZV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ZV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],ZV.prototype,"ytLazyListBehavior",void 0);_.T([_.ET("#expandable-items"),_.r("design:type",HTMLElement)],ZV.prototype,"expandableItems",void 0);
_.T([_.B(),_.r("design:type",Object)],ZV.prototype,"data",void 0);_.T([_.B({readOnly:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],ZV.prototype,"expanded",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],ZV.prototype,"initialCount",void 0);_.T([_.B(),_.r("design:type",Object)],ZV.prototype,"activeEndpoint",void 0);_.T([_.KT("data","activeEndpoint","canShowMore"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],ZV.prototype,"observeActiveEndpoint",null);
_.T([_.b({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],ZV);
_.z(ZV,"ytd-guide-collapsible-entry-renderer",function(){if(Ebg!==void 0)return Ebg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Ebg=M},{mode:_.VO("kevlar_poly_si_batch_j079")?1:2});var kGv;var pQI;var bw=function(){var M=_.Q.apply(this,arguments)||this;M.allVideosCount=0;M.renderGuideEntry=!1;return M};
_.l(bw,_.Q);bw.prototype.observeRenderEntry=function(){var M;this.renderGuideEntry=!((M=this.data)==null||!M.alwaysShow)||!!this.allVideosCount};
bw.prototype.observeRenderEntry=bw.prototype.observeRenderEntry;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bw.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],bw.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bw.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],bw.prototype,"activeEndpoint",void 0);_.T([_.B({selector:_.xtu}),_.r("design:type",Object)],bw.prototype,"allVideosCount",void 0);
_.T([_.B(),_.r("design:type",Object)],bw.prototype,"renderGuideEntry",void 0);_.T([_.yO("allVideosCount","data.alwaysShow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bw.prototype,"observeRenderEntry",null);_.T([_.b({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],bw);
_.z(bw,"ytd-guide-downloads-entry-renderer",function(){if(pQI===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);pQI=M}M=pQI;return M},{mode:1});var U3=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return M};
_.l(U3,_.Q);_.N=U3.prototype;_.N.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]]"}}}}}};
_.N.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var M=this.sectionItems.children,q=0,G=M.length;q<G;q++)M[q].activeEndpoint=this.activeEndpoint}};
_.N.handleAddToGuideSectionAction=function(M){var q=_.C(M,Iis);if(q&&this.data&&(M=q.items,q=q.handlerData,M&&q&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(q)>-1)){q=0;for(var G=M.length;q<G;q++)M[q].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,M[q])}};
_.N.handleRemoveFromGuideSectionAction=function(M){var q=_.C(M,DNU);q&&this.data&&(M=q.guideEntryId,q=q.handlerData,M&&q&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(q)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(M,this.data.sectionItems),this.removeFromCollapsedSection(M,this.data.sectionItems)))};
_.N.removeFromExpandedSection=function(M,q){M=this.getEntryIndexMatchingId(M,q);M!==-1&&this.splice("data.sectionItems",M,1)};
_.N.removeFromCollapsedSection=function(M,q){var G=q.findIndex(function(K){return!!_.C(K,FUI)});
G&&G!==-1&&q[G]&&_.C(q[G],FUI)&&(q=_.C(q[G],FUI).expandableItems)&&(M=this.getEntryIndexMatchingId(M,q),M!==-1&&this.splice("data.sectionItems."+G+".guideCollapsibleEntryRenderer.expandableItems",M,1))};
_.N.getEntryIndexMatchingId=function(M,q){var G=this;return q.findIndex(function(K){return G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",K)===M})};
U3.prototype.activeEndpointChanged=U3.prototype.activeEndpointChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],U3.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],U3.prototype,"actionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],U3.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("#section-items"),_.r("design:type",HTMLDivElement)],U3.prototype,"sectionItems",void 0);
_.T([_.ET("#header-entry"),_.r("design:type",Object)],U3.prototype,"headerEntry",void 0);_.T([_.B(),_.r("design:type",Object)],U3.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],U3.prototype,"activeEndpoint",void 0);_.T([_.KT("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],U3.prototype,"activeEndpointChanged",null);_.T([_.b({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],U3);
_.z(U3,"ytd-guide-collapsible-section-entry-renderer",function(){if(kGv===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);kGv=M}M=kGv;return M},{mode:1});var yTg;var LI8;var xR=function(){var M=_.Q.apply(this,arguments)||this;M.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 M};
_.l(xR,_.Q);_.N=xR.prototype;
_.N.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}}}}};
_.N.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var M=_.Rf(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);M&&M.length===1&&M[0]&&_.Rf(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.N.handleResetChannelUnreadCountCommand=function(M){var q;(M=(q=_.C(M,JbP))==null?void 0:q.channelId)&&this.data&&this.data.items&&(q=this.getPathToEntryMatchingId(M))&&(this.set(q+".guideEntryRenderer.count",0),this.set(q+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.N.handleResetSubscriptionsUnreadDotCommand=function(M){var q,G=(q=_.C(M,Z0L))==null?void 0:q.targetId,K;G&&(K=this.data)!=null&&K.items&&(M=this.data.items.findIndex(function(n){var E;return((E=n.guideEntryRenderer)==null?void 0:E.targetId)===G}),M<0||this.set("data.items."+M+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.N.getPathToEntryMatchingId=function(M){if(this.data&&this.data.items){var q=this.getEntryIndexMatchingId(M,this.data.items);if(q>-1)return"data.items."+q;for(var G=0;G<this.data.items.length;G++)if(q=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[G]))if(q=this.getEntryIndexMatchingId(M,q),q>-1)return"data.items."+G+".guideCollapsibleEntryRenderer.expandableItems."+q}};
_.N.handleAddToGuideSectionAction=function(M){var q=this;if(_.C(M,Iis)){var G=_.C(M,Iis).items;M=_.C(M,Iis).handlerData;var K,n;if(G&&M&&((K=this.data)==null?void 0:(n=K.handlerDatas)==null?void 0:n.indexOf(M))>-1){G=G.filter(function(p){return(p=q.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",p))&&!q.isGuideItemPresent(p)});
var E;if(M==="GUIDE_ACTION_ADD_TO_SUBSCRIPTIONS"&&((E=this.data)==null?0:E.items)&&(K=this.getHeaderEntryIndexMatchingIdFromCollapsibleSection("subscriptions-channels-header",this.data.items),K>-1)){this.splice.apply(this,["data.items",K+1,0].concat(_.Ui(G)));return}this.unshift.apply(this,["data.items"].concat(_.Ui(G)))}}};
_.N.isGuideItemPresent=function(M){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(M,this.data.items)!==-1)return!0;var q=this.data.items.find(function(G){return!!G.guideCollapsibleEntryRenderer});
if((q==null?0:q.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(M,q.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.N.getEntryIndexMatchingId=function(M,q){var G=this;return q.findIndex(function(K){return G.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",K)===M})};
_.N.getHeaderEntryIndexMatchingIdFromCollapsibleSection=function(M,q){var G=this;return q.findIndex(function(K){return G.get("guideCollapsibleSectionEntryRenderer.headerEntry.guideEntryRenderer.entryData.guideEntryData.guideEntryId",K)===M})};
_.N.handleRemoveFromGuideSectionAction=function(M){if(_.C(M,DNU)){var q=_.C(M,DNU).guideEntryId;M=_.C(M,DNU).handlerData;var G,K;q&&M&&((G=this.data)==null?void 0:(K=G.handlerDatas)==null?void 0:K.indexOf(M))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(q,this.data.items),this.removeFromCollapsedSection(q,this.data.items))}};
_.N.removeFromExpandedSection=function(M,q){M=this.getEntryIndexMatchingId(M,q);M!==-1&&this.splice("data.items",M,1)};
_.N.removeFromCollapsedSection=function(M,q){var G=q.findIndex(function(K){return!!K.guideCollapsibleEntryRenderer});
G!==-1&&(q=q[G].guideCollapsibleEntryRenderer.expandableItems)&&(M=this.getEntryIndexMatchingId(M,q),M!==-1&&this.splice("data.items."+G+".guideCollapsibleEntryRenderer.expandableItems",M,1))};
_.N.activeEndpointChanged=function(){for(var M=_.f_(this.hostElement).querySelector("#items").children,q=0,G=M.length;q<G;q++)M[q].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.N.guideOpenedChanged=function(){for(var M=_.f_(this.hostElement).querySelector("#items").children,q=0,G=M.length;q<G;q++)M[q].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
xR.prototype.guideOpenedChanged=xR.prototype.guideOpenedChanged;xR.prototype.activeEndpointChanged=xR.prototype.activeEndpointChanged;xR.prototype.persistentGuideChanged=xR.prototype.persistentGuideChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xR.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],xR.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],xR.prototype,"ytLazyListBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],xR.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],xR.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],xR.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",String)],xR.prototype,"type",void 0);_.T([_.B({value:20}),_.r("design:type",Number)],xR.prototype,"initialCount",void 0);_.T([_.B({value:10}),_.r("design:type",Number)],xR.prototype,"targetFramerate",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],xR.prototype,"autoFill",void 0);_.T([_.B({value:50}),_.r("design:type",Number)],xR.prototype,"renderDelay",void 0);
_.T([_.KT("guidePersistentAndVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xR.prototype,"persistentGuideChanged",null);_.T([_.yO("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xR.prototype,"activeEndpointChanged",null);_.T([_.yO("guideOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xR.prototype,"guideOpenedChanged",null);
_.T([_.b({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],xR);
_.z(xR,"ytd-guide-section-renderer",function(){if(LI8!==void 0)return LI8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return LI8=M},{mode:_.VO("kevlar_poly_si_batch_j073")?1:2});var Ym8;var zg=function(){return _.Q.apply(this,arguments)||this};
_.l(zg,_.Q);_.Yd.Object.defineProperties(zg.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],zg.prototype,"rendererBehaviors",void 0);_.T([_.B(),_.r("design:type",Object)],zg.prototype,"data",void 0);_.T([_.B(),_.c("data.signInButton.buttonRenderer.style"),_.r("design:type",Object),_.r("design:paramtypes",[])],zg.prototype,"alignByText",null);_.T([_.b({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],zg);
_.z(zg,"ytd-guide-signin-promo-renderer",function(){if(Ym8===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);Ym8=M}M=Ym8;return M},{mode:1});var mk=function(){var M=_.Q.apply(this,arguments)||this;M.showFooter=!1;return M};
_.l(mk,_.Q);mk.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}}}}};
mk.prototype.attached=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1){q=_.AL().resolve(_.WR(_.V3));if(!q)return G.jumpTo(0);q.setGuideData(M.hostElement);return G.yield(0,3)}M.ytLazyListBehavior.initialCount=2;return G.return()})};
mk.prototype.onMouseExit=function(){_.w("web_guide_hover_expansion")&&_.Rf(this.hostElement,"yt-guide-mouseleaved",[])};
mk.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
mk.prototype.dataChanged=mk.prototype.dataChanged;mk.prototype.onMouseExit=mk.prototype.onMouseExit;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mk.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],mk.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.k8.YtLazyListBehavior),_.r("design:type",Object)],mk.prototype,"ytLazyListBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],mk.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],mk.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],mk.prototype,"showFooter",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],mk.prototype,"autoFill",void 0);_.T([_.GQ("mouseleave"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mk.prototype,"onMouseExit",null);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],mk.prototype,"dataChanged",null);_.T([_.b({is:"ytd-guide-renderer",disableElementRegistration:!0})],mk);
_.z(mk,"ytd-guide-renderer",function(){if(yTg!==void 0)return yTg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return yTg=M},{mode:_.VO("kevlar_poly_si_batch_j073")?1:2});var WIw;var Sd=function(){var M=_.Q.apply(this,arguments)||this;M.systemIcons=_.w("kevlar_system_icons");M.frostedGlass=_.w("web_frosted_glass");M.getEndpointForm=function(){return FiI(M.data)};
return M};
_.l(Sd,_.Q);_.N=Sd.prototype;_.N.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.N.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.UX(this.data.formattedTitle))};
_.N.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.N.onDown=function(){this.interaction.triggerDown()};
_.N.onUp=function(){this.interaction.triggerUp()};
_.N.onTap=function(M){if(this.data.serviceEndpoint){var q;_.w("shorts_controller_retrieve_seedless_sequence_v2")&&((q=_.C(this.data.serviceEndpoint,_.p_))==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):fQv(this.data.serviceEndpoint,this);M.preventDefault()}else{var G;((G=this.data)==null?0:G.navigationEndpoint)&&!_.b8(_.Zx(M),this.hostElement,["A".toString()])&&_.jP(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.N.computeActive=function(M,q){if(!M)return!1;var G=M.navigationEndpoint;M=M.serviceEndpoint;if(!G&&!M||!q)return!1;if(G){M=_.C(G,_.n_);var K=_.C(q,_.n_);if(M&&K)return M.browseId===K.browseId&&M.params===K.params;var n;G=(n=_.C(G.commandMetadata,_.Mg))==null?void 0:n.url;var E;q=(E=_.C(q.commandMetadata,_.Mg))==null?void 0:E.url;return!(!G||!q||G!==q&&G!==_.ij(q))}return this.isActiveShortsTab(M,q)};
_.N.isActiveShortsTab=function(M,q){q=!!_.C(q,_.p_)||!!_.C(q,_.jN);return(!!_.C(M,_.p_)||!!_.C(M,_.jN))&&q};
_.N.computeTitle=function(M,q){return q?"":_.UX(M)};
_.Yd.Object.defineProperties(Sd.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Sd.prototype.onTap=Sd.prototype.onTap;Sd.prototype.onUp=Sd.prototype.onUp;Sd.prototype.onDown=Sd.prototype.onDown;Sd.prototype.onActiveStateChange=Sd.prototype.onActiveStateChange;Sd.prototype.dataChanged=Sd.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Sd.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Sd.prototype,"ytComponentBehavior",void 0);
_.T([_.P(_.Z4),_.r("design:type",Object)],Sd.prototype,"ironButtonState",void 0);_.T([_.B(),_.r("design:type",Object)],Sd.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Sd.prototype,"activeEndpoint",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Sd.prototype,"noLabels",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.r("design:type",Boolean)],Sd.prototype,"isActive",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Sd.prototype,"systemIcons",void 0);_.T([_.ET("yt-interaction"),_.r("design:type",Object)],Sd.prototype,"interaction",void 0);_.T([_.c("isActive"),_.r("design:type",Object),_.r("design:paramtypes",[])],Sd.prototype,"ariaSelected",null);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Sd.prototype,"frostedGlass",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sd.prototype,"dataChanged",null);_.T([_.KT("isActive"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sd.prototype,"onActiveStateChange",null);_.T([_.GQ("down"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sd.prototype,"onDown",null);
_.T([_.GQ("up"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Sd.prototype,"onUp",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Sd.prototype,"onTap",null);_.T([_.b({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Sd);
_.z(Sd,"ytd-mini-guide-entry-renderer",function(){if(WIw!==void 0)return WIw;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-mini-guide-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="endpoint" tabindex="-1" class="yt-simple-endpoint style-scope ytd-mini-guide-entry-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" title="[[computeTitle(data.formattedTitle, noLabels)]]" get-form="[[getEndpointForm]]">\n  <yt-icon id="icon" class="guide-icon style-scope ytd-mini-guide-entry-renderer" active="[[isActive]]" disable-upgrade$="[[data.thumbnail]]" hidden="[[data.thumbnail]]" icon="[[data.icon.iconType]]">\n  </yt-icon>\n  <span class="title style-scope ytd-mini-guide-entry-renderer" hidden="[[noLabels]]">[[getSimpleString(data.formattedTitle)]]</span>\n  <tp-yt-paper-tooltip animation-delay="0" hidden="[[!noLabels]]" offset="4" position="right" class="style-scope ytd-mini-guide-entry-renderer">\n    [[getSimpleString(data.formattedTitle)]]\n  </tp-yt-paper-tooltip>\n  <yt-interaction class="style-scope ytd-mini-guide-entry-renderer"></yt-interaction>\n</a>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return WIw=M},{mode:_.VO("kevlar_poly_si_batch_j063")?1:2});var ATI;var Tg=function(){var M=_.Q.apply(this,arguments)||this;M.allVideosCount=0;M.noLabels=_.w("kevlar_mini_guide_no_labels")||_.w("kevlar_modern_mini_guide");M.frostedGlass=_.w("web_frosted_glass");return M};
_.l(Tg,_.Q);_.N=Tg.prototype;_.N.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation");this.registerWithViewTransitionManager()};
_.N.onMouseEnter=function(){_.w("web_guide_hover_expansion")&&_.Rf(this.hostElement,"yt-mini-guide-mouseentered",[])};
_.N.visibleChanged=function(){if(this.visible&&!this.data){var M=_.AL().resolve(_.WR(_.V3));M&&M.setGuideData(this.hostElement)}};
_.N.dataChanged=function(){var M=_.w("kevlar_modern_mini_guide"),q;var G=(q=this.data)==null?void 0:q.items;q=this.allVideosCount;var K=[];if(G){for(var n=[],E=_.k(G),p=E.next();!p.done;p=E.next())if(p=p.value,p.guideSubscriptionsSectionRenderer){var y=void 0;n=((y=p.guideSubscriptionsSectionRenderer)==null?void 0:y.items)||[]}G=_.k(G);for(E=G.next();!E.done;E=G.next())if(E=E.value,p=void 0,(p=E.guideSectionRenderer)==null?0:p.items)for(p=void 0,E=_.k((p=E.guideSectionRenderer)==null?void 0:p.items),
p=E.next();!p.done;p=E.next()){p=p.value;var Y=void 0,A=void 0;y=p.guideEntryRenderer||_.C((Y=p)==null?void 0:(A=Y.guideCollapsibleSectionEntryRenderer)==null?void 0:A.headerEntry,Hsv);Y=[];A=[];var v=void 0;if(((v=y)==null?void 0:v.targetId)==="subscriptions-guide-item")Y=n;else{var h=v=void 0;if((v=p)==null?0:(h=v.guideCollapsibleSectionEntryRenderer)==null?0:h.sectionItems)A=Y=p.guideCollapsibleSectionEntryRenderer.sectionItems}e2P(K,y,M?Y:[]);if(A.length>0)for(p=_.k(A),y=p.next();!y.done;y=p.next())y=
y.value,A=_.C(y,H0E),Y=void 0,A=A&&(A.alwaysShow||q)?_.C((Y=A)==null?void 0:Y.entryRenderer,Hsv):_.C(y,Hsv),e2P(K,A,[])}}this.miniGuideItems=K};
_.N.activeEndpointChanged=function(){for(var M=this.items.children,q=0;q<M.length;q++)M[q].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.N.registerWithViewTransitionManager=function(){var M=this;_.Jp(_.r8,function(){var q=_.AL().resolve(_.WR(_.ix));if(q&&q.isAnyTransitionEnabled){var G={};q.viewTransitionCoordinator.registerElement(M.hostElement,(G.slide="mini-guide-page-transition",G))}})};
Tg.prototype.activeEndpointChanged=Tg.prototype.activeEndpointChanged;Tg.prototype.dataChanged=Tg.prototype.dataChanged;Tg.prototype.visibleChanged=Tg.prototype.visibleChanged;Tg.prototype.onMouseEnter=Tg.prototype.onMouseEnter;_.T([_.P(_.mr),_.r("design:type",Object)],Tg.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Tg.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Tg.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],Tg.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Tg.prototype,"ytComponentBehavior",void 0);_.T([_.ET("#items"),_.r("design:type",Object)],Tg.prototype,"items",void 0);_.T([_.B(),_.r("design:type",Object)],Tg.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Boolean)],Tg.prototype,"visible",void 0);_.T([_.B(),_.r("design:type",Object)],Tg.prototype,"miniGuideItems",void 0);_.T([_.B({selector:_.xtu}),_.r("design:type",Object)],Tg.prototype,"allVideosCount",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Tg.prototype,"noLabels",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Tg.prototype,"frostedGlass",void 0);
_.T([_.GQ("mouseenter"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tg.prototype,"onMouseEnter",null);_.T([_.yO("visible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tg.prototype,"visibleChanged",null);_.T([_.yO("data","allVideosCount"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tg.prototype,"dataChanged",null);
_.T([_.yO("activeEndpoint"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Tg.prototype,"activeEndpointChanged",null);_.T([_.b({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],Tg);
_.z(Tg,"ytd-mini-guide-renderer",function(){if(ATI===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);ATI=M}M=ATI;return M},{mode:1});var dRI;var vbE=/^[\x00-\x7F]+$/,r5=function(){return _.Q.apply(this,arguments)||this};
_.l(r5,_.Q);_.Yd.Object.defineProperties(r5.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var M,q=_.UX((M=this.data)==null?void 0:M.handle);if(q)return _.bc("@"+q)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var M=_.UX(this.displayHandle),q,G=_.UX((q=this.data)==null?void 0:q.handleUrl);if(M&&G)return _.bc(G+M)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var M=_.UX(this.displayHandle);if(M&&!vbE.test(M)){var q;return(q=this.data)==null?void 0:q.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var M=_.UX(this.displayHandleUrl),q,G=_.UX((q=this.data)==null?void 0:q.urlInfoText);if(M&&G)return _.bc(G+" "+M)}}});
_.T([_.B(),_.r("design:type",Object)],r5.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],r5.prototype,"displayHandle",null);_.T([_.c("displayHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],r5.prototype,"displayHandleUrl",null);_.T([_.c("displayHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],r5.prototype,"warningText",null);
_.T([_.c("displayHandleUrl"),_.r("design:type",Object),_.r("design:paramtypes",[])],r5.prototype,"urlInfoTextWithUrl",null);_.T([_.b({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],r5);
_.z(r5,"ytd-handles-claiming-confirm-dialog-content",function(){if(dRI!==void 0)return dRI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return dRI=M},{mode:1});var htE;var jd=function(){var M=_.Q.apply(this,arguments)||this;M.okButtonOverride={style:"mono",type:"outline",size:"M"};return M};
_.l(jd,_.Q);jd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jd.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],jd.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],jd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],jd.prototype,"okButtonOverride",void 0);_.T([_.B(),_.r("design:type",Object)],jd.prototype,"data",void 0);_.T([_.b({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],jd);
_.z(jd,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(htE!==void 0)return htE;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return htE=M},{mode:1});var t38;var Ofn=/^[\x00-\x7F]+$/,Vv=function(){var M=_.Q.apply(this,arguments)||this;M.isLoading=!1;return M};
_.l(Vv,_.Q);Vv.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var M;this.selectedHandle=(M=this.handleInput)==null?void 0:M.value;this.onSelectedHandleChanged(this.selectedHandle);_.Rf(this.hostElement,"yt-refit-popups-action")}};
_.Yd.Object.defineProperties(Vv.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var M;return(M=this.data)==null?void 0:M.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.bc("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.bc(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!Ofn.test(this.selectedHandle)){var M;return(M=this.data)==null?void 0:M.warningText}}}});
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Vv.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Vv.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],Vv.prototype,"selectedHandle",void 0);_.T([_.B(),_.r("design:type",Object)],Vv.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Function)],Vv.prototype,"onSelectedHandleChanged",void 0);_.T([_.ET("#channel-handle-input"),_.r("design:type",Object)],Vv.prototype,"handleInput",void 0);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vv.prototype,"handleUrlPrefix",null);_.T([_.c("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vv.prototype,"displayHandle",null);_.T([_.c("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vv.prototype,"displayHandleUrl",null);_.T([_.c("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],Vv.prototype,"warningText",null);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Vv.prototype,"ytRendererBehavior",void 0);_.T([_.b({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],Vv);
_.z(Vv,"ytd-handles-claiming-edit-dialog-content",function(){if(t38!==void 0)return t38;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return t38=M},{mode:1});var wQw;var Rp=function(){var M=_.Q.apply(this,arguments)||this;M.actionButtonOverride={style:"mono",type:"filled",size:"M"};M.cancelButtonOverride={style:"mono",type:"text",size:"M"};M.selectButtonDisabled=!1;M.isLoading=!1;M.hasSelectedHandleEventListener=!1;M.selectedHandleChanged=function(q){M.selectedHandle=q};
return M};
_.l(Rp,_.Q);_.N=Rp.prototype;_.N.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.N.onDataChanged=function(){var M,q;this.selectedHandle=(q=_.C((M=this.data)==null?void 0:M.inputField,i0s))==null?void 0:q.handle};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.onCancel=function(){this.selectedHandle="";_.VW(this.hostElement,"yt-close-popup-action",[this.is])};
_.N.onSelectHandle=function(){var M=this;if(this.selectedHandle!==void 0){var q;((q=this.data)==null?void 0:q.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(G,K){if(K.newHandleUpdateStatus!==void 0&&K.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&K.newHandleUpdateStatus.errorMessage)_.Qu(M.hostElement,_.UX(K.newHandleUpdateStatus.errorMessage)),
M.isLoading=!1;else{var n;if((n=M.data)==null?0:n.onChannelUpdateSuccess){G=M.data.onChannelUpdateSuccess;var E,p;if(K=(E=_.C(G,_.BA))==null?void 0:(p=E.popup)==null?void 0:p.handlesClaimingConfirmDialogRenderer)K.handle=_.bc(M.selectedHandle);M.ytComponentBehavior.resolveCommand(G);_.VW(M.hostElement,"yt-close-popup-action",[M.is])}else M.isLoading=!1}},
onServerError:function(){var G;M.content&&((G=M.content)==null?0:G.handleInput)&&M.content.handleInput.validate();M.isLoading=!1;_.Qu(M.hostElement,_.Ge("TRY_AGAIN_LATER"))}}}))}};
_.N.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Rp.prototype.onDataChanged=Rp.prototype.onDataChanged;Rp.prototype.onSelectedHandleChanged=Rp.prototype.onSelectedHandleChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Rp.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Rp.prototype,"actionButtonOverride",void 0);_.T([_.B(),_.r("design:type",Object)],Rp.prototype,"cancelButtonOverride",void 0);_.T([_.B(),_.r("design:type",Object)],Rp.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",String)],Rp.prototype,"selectedHandle",void 0);_.T([_.B(),_.r("design:type",Object)],Rp.prototype,"selectButtonDisabled",void 0);_.T([_.B(),_.r("design:type",Object)],Rp.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Object)],Rp.prototype,"hasSelectedHandleEventListener",void 0);_.T([_.B(),_.r("design:type",Object)],Rp.prototype,"handleInput",void 0);
_.T([_.KT("selectedHandle"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rp.prototype,"onSelectedHandleChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Rp.prototype,"onDataChanged",null);_.T([_.ET("ytd-handles-claiming-edit-dialog-content"),_.r("design:type",Object)],Rp.prototype,"content",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.T([_.b({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Rp);
_.z(Rp,"ytd-handles-claiming-edit-dialog-renderer",function(){if(wQw!==void 0)return wQw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return wQw=M},{mode:1});var CKR;var fz=function(){return _.Q.apply(this,arguments)||this};
_.l(fz,_.Q);_.Yd.Object.defineProperties(fz.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null?0:M.handle){var q;return _.bc("@"+_.UX((q=this.data)==null?void 0:q.handle))}}}});
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],fz.prototype,"formattedHandle",null);_.T([_.B(),_.r("design:type",Object)],fz.prototype,"data",void 0);_.T([_.b({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],fz);
_.z(fz,"ytd-handles-claiming-radio-option-renderer",function(){if(CKR!==void 0)return CKR;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return CKR=M},{mode:1});var a9w;var obP=/^[\x00-\x7F]+$/,F_=function(){var M=_.Q.apply(this,arguments)||this;M.initialRadioIndex="-1";M.isLoading=!1;M.maybeSubmitFeedback=function(){M.feedbackSurveyRenderer.submitSurvey()};
return M};
_.l(F_,_.Q);F_.prototype.updateSelectedHandleIndexFromBinding=function(M){this.selectedRadioIndex=+M.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(M)};
F_.prototype.selectedHandleChanged=function(M){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var q;this.selectedHandle=(q=this.handleInput)==null?void 0:q.value;this.onSelectedHandleChanged(M)}};
_.Yd.Object.defineProperties(F_.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var M;return this.ytRendererBehavior.getSimpleString((M=this.data)==null?void 0:M.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.bc("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.bc(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!obP.test(this.selectedHandle)){var M;return(M=this.data)==null?void 0:M.warningText}}}});
_.T([_.B(),_.r("design:type",Object)],F_.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],F_.prototype,"initialRadioIndex",void 0);_.T([_.B(),_.r("design:type",Number)],F_.prototype,"selectedRadioIndex",void 0);_.T([_.B(),_.r("design:type",String)],F_.prototype,"selectedHandle",void 0);_.T([_.B(),_.r("design:type",Object)],F_.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Function)],F_.prototype,"onSelectedHandleChanged",void 0);
_.T([_.B(),_.r("design:type",Function)],F_.prototype,"onSelectedRadioIndexChanged",void 0);_.T([_.ET("#channel-handle-input"),_.r("design:type",Object)],F_.prototype,"handleInput",void 0);_.T([_.ET("ytd-feedback-survey-renderer"),_.r("design:type",Object)],F_.prototype,"feedbackSurveyRenderer",void 0);_.T([_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],F_.prototype,"radioButtonLength",null);
_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],F_.prototype,"handleUrlPrefix",null);_.T([_.c("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],F_.prototype,"displayHandle",null);_.T([_.c("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],F_.prototype,"displayHandleUrl",null);_.T([_.c("selectedHandle"),_.r("design:type",Object),_.r("design:paramtypes",[])],F_.prototype,"warningText",null);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.T([_.b({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],F_);
_.z(F_,"ytd-handles-claiming-select-dialog-content",function(){if(a9w!==void 0)return a9w;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return a9w=M},{mode:1});var l9M;var Hu=function(){var M=_.Q.apply(this,arguments)||this;M.actionButtonOverride={style:"mono",type:"filled",size:"M"};M.cancelButtonOverride={style:"mono",type:"text",size:"M"};M.initialRadioIndex="-1";M.selectButtonDisabled=!1;M.isLoading=!1;M.selectedRadioIndexChanged=function(q){M.selectedRadioIndex=Number(q.detail.value)};
M.selectedHandleChanged=function(q){M.selectedHandle=q.detail.value};
return M};
_.l(Hu,_.Q);_.N=Hu.prototype;_.N.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.N.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.N.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Rf(this.hostElement,"yt-refit-popups-action")};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.VW(this.hostElement,"yt-close-popup-action",[this.is])};
_.N.onSelectHandle=function(){var M=this;if(this.selectedHandle!==void 0){var q;((q=this.data)==null?void 0:q.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(G,K){if(K.newHandleUpdateStatus!==void 0&&K.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&K.newHandleUpdateStatus.errorMessage)_.Qu(M.hostElement,_.UX(K.newHandleUpdateStatus.errorMessage)),
M.isLoading=!1;else{var n;if((n=M.data)==null?0:n.onChannelUpdateSuccess){G=M.data.onChannelUpdateSuccess;K=_.C(G,_.BA);var E;if(K==null?0:(E=K.popup)==null?0:E.handlesClaimingConfirmDialogRenderer)K.popup.handlesClaimingConfirmDialogRenderer.handle=_.bc(M.selectedHandle);M.ytComponentBehavior.resolveCommand(G);_.VW(M.hostElement,"yt-close-popup-action",[M.is])}else M.isLoading=!1}},
onServerError:function(){if(M.selectedRadioIndex===M.radioButtonLength){var G;M.content&&((G=M.content)==null?0:G.handleInput)&&M.content.handleInput.validate()}M.isLoading=!1;_.Qu(M.hostElement,_.Ge("TRY_AGAIN_LATER"))}}}))}};
_.N.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var M,q;this.selectedHandle=(M=this.content)==null?void 0:(q=M.handleInput)==null?void 0:q.value}else this.selectedRadioIndex>=0&&((M=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(M==null?void 0:M.handle):this.selectedHandle=void 0)};
_.N.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.N.getRadioItem=function(M){if(this.radioButtonLength>M&&M>=0)return _.C(this.data.radioButton[M],Tps)};
_.Yd.Object.defineProperties(Hu.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var M;return(((M=this.data)==null?void 0:M.radioButton)||[]).length}}});
Hu.prototype.onSelectedHandleChanged=Hu.prototype.onSelectedHandleChanged;Hu.prototype.onSelectedHandleIndexChanged=Hu.prototype.onSelectedHandleIndexChanged;Hu.prototype.onDataChanged=Hu.prototype.onDataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Hu.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Hu.prototype,"actionButtonOverride",void 0);_.T([_.B(),_.r("design:type",Object)],Hu.prototype,"cancelButtonOverride",void 0);
_.T([_.B(),_.r("design:type",Object)],Hu.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Hu.prototype,"initialRadioIndex",void 0);_.T([_.B(),_.r("design:type",Number)],Hu.prototype,"selectedRadioIndex",void 0);_.T([_.B(),_.r("design:type",String)],Hu.prototype,"selectedHandle",void 0);_.T([_.B(),_.r("design:type",Object)],Hu.prototype,"selectButtonDisabled",void 0);_.T([_.B(),_.r("design:type",Object)],Hu.prototype,"isLoading",void 0);
_.T([_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],Hu.prototype,"radioButtonLength",null);_.T([_.ET("ytd-handles-claiming-select-dialog-content"),_.r("design:type",Object)],Hu.prototype,"content",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hu.prototype,"onDataChanged",null);
_.T([_.KT("selectedRadioIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hu.prototype,"onSelectedHandleIndexChanged",null);_.T([_.KT("selectedHandle"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Hu.prototype,"onSelectedHandleChanged",null);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.T([_.b({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],Hu);
_.z(Hu,"ytd-handles-claiming-select-dialog-renderer",function(){if(l9M!==void 0)return l9M;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return l9M=M},{mode:1});var XQP;var PKg;var ed=function(){return _.Q.apply(this,arguments)||this};
_.l(ed,_.Q);ed.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ed.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ed.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ed.prototype,"data",void 0);_.T([_.b({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],ed);
_.z(ed,"ytd-hotkey-dialog-section-option-renderer",function(){if(PKg!==void 0)return PKg;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return PKg=M},{mode:1});var if8;var $R=function(){return _.Q.apply(this,arguments)||this};
_.l($R,_.Q);$R.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],$R.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],$R.prototype,"data",void 0);_.T([_.b({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],$R);
_.z($R,"ytd-hotkey-dialog-section-renderer",function(){if(if8!==void 0)return if8;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return if8=M},{mode:1});var sR=function(){return _.Q.apply(this,arguments)||this};
_.l(sR,_.Q);sR.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sR.prototype,"data",void 0);_.T([_.b({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],sR);
_.z(sR,"ytd-hotkey-dialog-content",function(){if(XQP!==void 0)return XQP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return XQP=M},{mode:1});var cTg;var Mk=function(){return _.Q.apply(this,arguments)||this};
_.l(Mk,_.Q);Mk.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var M=document.querySelector("ytd-hotkey-dialog-content #scrollable");M&&(M.dialogElement=this.hostElement.parentElement)};
Mk.prototype.onCloseTap=function(){_.VW(this.hostElement,"yt-close-popup-action")};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Mk.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Mk.prototype,"data",void 0);_.T([_.b({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],Mk);
_.z(Mk,"ytd-hotkey-dialog-renderer",function(){if(cTg!==void 0)return cTg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return cTg=M},{mode:1});var gbR;var qk=function(){return _.Q.apply(this,arguments)||this};
_.l(qk,_.Q);qk.prototype.onYtServiceRequestError=function(){if(this.blocked){var M;var q=(M=this.data)==null?void 0:M.defaultServiceEndpoint}else{var G;q=(G=this.data)==null?void 0:G.toggledServiceEndpoint}var K;(q=(K=_.C(q,_.lwv))==null?void 0:K.onFailureAction)&&this.ytComponentBehavior.resolveCommand(q);this.updateBlockState(!this.blocked)};
qk.prototype.onYtToggleButton=function(M){this.updateBlockState(M.detail.toggled)};
qk.prototype.updateBlockState=function(M){if(M!==this.blocked){var q=this.blockedEntityKey;q&&this.ytdReduxBehavior.dispatch(_.LL("blockStateEntity",q,{key:q,blocked:M}));this.set("data.isToggled",M)}};
_.Yd.Object.defineProperties(qk.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)}}});
qk.prototype.onYtToggleButton=qk.prototype.onYtToggleButton;qk.prototype.onYtServiceRequestError=qk.prototype.onYtServiceRequestError;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],qk.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],qk.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],qk.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],qk.prototype,"blockedEntityKey",void 0);
_.T([_.B({selectorArgs:["blockedEntityKey"],selector:function(M,q){return _.sX(M.entities,"blockStateEntity",q)}}),
_.r("design:type",Object)],qk.prototype,"blockStateEntity",void 0);_.T([_.c("data","blockStateEntity"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qk.prototype,"blocked",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],qk.prototype,"onYtServiceRequestError",null);
_.T([_.GQ("yt-toggle-button"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],qk.prototype,"onYtToggleButton",null);_.T([_.b({is:"ytd-block-button",disableElementRegistration:!0})],qk);
_.z(qk,"ytd-block-button",function(){if(gbR!==void 0)return gbR;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return gbR=M},
{mode:1});var BAR;var Q65;var G7=function(){return _.Q.apply(this,arguments)||this};
_.l(G7,_.Q);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],G7.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],G7.prototype,"data",void 0);_.T([_.b({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],G7);
_.z(G7,"ytd-kids-blocklist-picker-item-renderer",function(){if(Q65!==void 0)return Q65;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Q65=M},{mode:1});var K6=function(){return _.Q.apply(this,arguments)||this};
_.l(K6,_.Q);K6.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],K6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],K6.prototype,"data",void 0);_.T([_.b({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],K6);
_.z(K6,"ytd-kids-blocklist-picker-content",function(){if(BAR!==void 0)return BAR;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return BAR=
M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var I9g;var n6=function(){var M=_.Q.apply(this,arguments)||this;M.hasAnyRequestSucceeded=!1;M.hasAnyRequestFailed=!1;M.numPendingRequests=0;return M};
_.l(n6,_.Q);_.N=n6.prototype;_.N.attached=function(){this.hostElement.setAttribute("dialog","")};
_.N.onDoneButtonTap=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.N.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.N.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.N.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.N.onPopupClosed=function(M){var q,G;if(((q=M.detail)==null?void 0:(G=q.popup)==null?void 0:G.is)==="tp-yt-paper-dialog"){var K;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((K=this.data)==null?0:K.successfulToastActionMessage)&&(M=_.Sg(this.data.successfulToastActionMessage),this.ytComponentBehavior.resolveCommand(M));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
n6.prototype.onPopupClosed=n6.prototype.onPopupClosed;n6.prototype.onYtServiceRequestError=n6.prototype.onYtServiceRequestError;n6.prototype.onYtServiceRequestCompleted=n6.prototype.onYtServiceRequestCompleted;n6.prototype.onYtServiceRequestSent=n6.prototype.onYtServiceRequestSent;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],n6.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],n6.prototype,"ytRendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],n6.prototype,"data",void 0);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],n6.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],n6.prototype,"onYtServiceRequestCompleted",null);
_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],n6.prototype,"onYtServiceRequestError",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],n6.prototype,"onPopupClosed",null);_.T([_.b({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],n6);
_.z(n6,"ytd-kids-blocklist-picker-renderer",function(){if(I9g!==void 0)return I9g;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return I9g=M},{mode:1});var DRI;var uC5;var ER=function(){return _.Q.apply(this,arguments)||this};
_.l(ER,_.Q);ER.prototype.setTip=function(M){var q=this;this.data&&(this.tip=tQE(v65.getInstance(),M,this.data),_.yb(this,function(){_.jP(q.hostElement,"yt-refit")}))};
ER.prototype.clearTip=function(){this.tip=void 0};
ER.prototype.computeHidden=function(M){return!M};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ER.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.r("design:type",Boolean)],ER.prototype,"hidden",void 0);_.T([_.B(),_.r("design:type",Object)],ER.prototype,"tip",void 0);_.T([_.b({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],ER);
_.z(ER,"ytd-menu-popup-tip-renderer",function(){if(uC5!==void 0)return uC5;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);
return uC5=M},{mode:1});var JTP;var Nk=function(){var M=_.Q.apply(this,arguments)||this;M.useIcons=!1;M.systemIcons=_.w("kevlar_system_icons");M.useListItemStyles=_.w("web_list_item_style_for_menu_items");return M};
_.l(Nk,_.Q);_.N=Nk.prototype;_.N.onFocus=function(){var M;(M=_.f_(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.N.onTap=function(){var M=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(M&&_.C(M,_.eP))this.componentBehavior.resolveCommand(M),this.updateToggledStateInEntity();else if(M){this.componentBehavior.resolveCommand(M)||_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}});var q;((q=_.C(M,_.sl))==null?void 0:q.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.N.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.N.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.N.updateToggledStateInEntity=function(){var M=this.data.toggleMenuServiceItemEntityKey,q=!this.data.isToggled;M&&this.ytdReduxBehavior.dispatch(_.LL("toggleMenuServiceItemEntity",M,{key:M,isToggled:q}))};
_.N.computeIcon=function(M,q,G){return(M=M?G:q)&&M.iconType?_.H4(M.iconType):""};
_.N.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.N.isIconActive=function(M){return!_.w("toggle_menu_active_icon_killswitch")&&M};
_.Yd.Object.defineProperties(Nk.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.data)==null?0:M.isToggled)?(q=this.data)==null?void 0:q.toggledText:(G=this.data)==null?void 0:G.defaultText}}});
Nk.prototype.toggledStateEntityChanged=Nk.prototype.toggledStateEntityChanged;Nk.prototype.onYtServiceRequestCompleted=Nk.prototype.onYtServiceRequestCompleted;Nk.prototype.onTap=Nk.prototype.onTap;Nk.prototype.onFocus=Nk.prototype.onFocus;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Nk.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Nk.prototype,"componentBehavior",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],Nk.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Nk.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Nk.prototype,"useIcons",void 0);_.T([_.B({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.r("design:type",String)],Nk.prototype,"icon",void 0);
_.T([_.B({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:_.IG.toggleMenuServiceItemEntitySelector}),_.r("design:type",Object)],Nk.prototype,"toggleMenuServiceItemEntity",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Nk.prototype,"systemIcons",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Nk.prototype,"useListItemStyles",void 0);
_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nk.prototype,"onFocus",null);_.T([_.c("data.isToggled"),_.r("design:type",Object),_.r("design:paramtypes",[])],Nk.prototype,"toggleButtonText",null);_.T([_.GQ("tap"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nk.prototype,"onTap",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nk.prototype,"onYtServiceRequestCompleted",null);_.T([_.KT("toggleMenuServiceItemEntity.isToggled","data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nk.prototype,"toggledStateEntityChanged",null);_.T([_.b({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],Nk);
_.z(Nk,"ytd-toggle-menu-service-item-renderer",function(){if(JTP!==void 0)return JTP;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return JTP=M},{mode:1});var ZfL;var kw=function(){return _.Q.apply(this,arguments)||this};
_.l(kw,_.Q);kw.prototype.onFocus=function(){var M;(M=_.f_(this.hostElement).querySelector("tp-yt-paper-item"))==null||M.focus()};
_.Yd.Object.defineProperties(kw.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.SM(this.data.iconUrl)}}});
kw.prototype.onFocus=kw.prototype.onFocus;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],kw.prototype,"rendererBehavior",void 0);_.T([_.P(_.OH.YtEndpointBehavior),_.r("design:type",Object)],kw.prototype,"ytEndpointBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],kw.prototype,"data",void 0);_.T([_.GQ("focus"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],kw.prototype,"onFocus",null);
_.T([_.c("data.iconUrl"),_.r("design:type",Object),_.r("design:paramtypes",[])],kw.prototype,"imageSource",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],kw);
_.z(kw,"ytd-menu-custom-icon-item-renderer",function(){if(ZfL!==void 0)return ZfL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ZfL=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});_.S5(_.Sy,"yt-list-item-view-model",{props:{data:_.Hz,isMenuItem:_.Hz,isCompact:_.Hz,onTap:_.xj,trailingAccessory:_.xj,hideSelectionTextChevron:_.Hz,disabled:_.Hz,inPopup:_.Hz,disableHorizontalPadding:_.Hz,isOverlay:_.Hz,isToggled:_.Hz,ariaLabel:_.Hz,ariaPressed:_.Hz}});var p6=function(){var M=_.Q.apply(this,arguments)||this;M.disableBackdropFilter=_.w("web_disable_backdrop_filter");return M};
_.l(p6,_.Q);_.N=p6.prototype;
_.N.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"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.N.computeAriaLabel=function(M){return M};
_.N.onPopupOpened=function(){this.items.selected=0;for(var M=_.k(_.f_(this.items).children),q=M.next();!q.done;q=M.next())q.value.popupPositionTarget=this.positionTarget;if(M=this.popupTip||void 0)M.setTip(this.source||""),this.source=void 0;this.veData&&(M=_.Cx())&&_.uO(M,[this.veData])};
_.N.onPopupClosed=function(){var M=this.popupTip||void 0;M&&M.clearTip()};
_.N.onIronActivate=function(M){this.shouldPersist(M)||_.VW(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(M=_.Cx())&&_.Z_(M,this.veData)};
_.N.shouldPersist=function(M){var q,G;if(((q=M.detail)==null?void 0:q.selected)===void 0||(G=this.data)==null||!G.items)return!1;var K,n;return!((n=(K=this.data.items[M.detail.selected])==null?void 0:K.toggleMenuServiceItemRenderer)==null||!n.persistentOnMenuPopup)};
_.N.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(M){return M.menuNavigationItemRenderer?!!M.menuNavigationItemRenderer.icon:M.menuServiceItemRenderer?!!M.menuServiceItemRenderer.icon:M.menuConditionalServiceItemRenderer?!!M.menuConditionalServiceItemRenderer.icon:M.menuConditionalNavigationItemRenderer?!!M.menuConditionalNavigationItemRenderer.icon:M.toggleMenuServiceItemRenderer?!!M.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
p6.prototype.onPopupClosed=p6.prototype.onPopupClosed;p6.prototype.onPopupOpened=p6.prototype.onPopupOpened;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],p6.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],p6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],p6.prototype,"ytRendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],p6.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],p6.prototype,"veData",void 0);_.T([_.B({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.r("design:type",String)],p6.prototype,"ariaLabel",void 0);_.T([_.B({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],p6.prototype,"useIcons",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],p6.prototype,"disableBackdropFilter",void 0);_.T([_.ET("#items"),_.r("design:type",Object)],p6.prototype,"items",void 0);_.T([_.ET("ytd-menu-popup-tip-renderer"),_.r("design:type",Object)],p6.prototype,"popupTip",void 0);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],p6.prototype,"onPopupOpened",null);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],p6.prototype,"onPopupClosed",null);_.T([_.b({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],p6);
_.z(p6,"ytd-menu-popup-renderer",function(){if(DRI!==void 0)return DRI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return DRI=M},{mode:1});var bfP;var URI=_.U(function(M){M=_.UT(M,{icon:void 0});var q=M.data;M=M.icon;var G=function(){return q().iconBadgeText},K={},n=_.Hb("yt-spec-icon-badge-shape",function(){a:switch(q().iconBadgeType){case "notification":var E="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":E="yt-spec-icon-badge-shape--type-cart";break a;default:E=""}return E},function(){a:switch(q().iconBadgeStyle){case "overlay":var E="yt-spec-icon-badge-shape--style-overlay";
break a;default:E=""}return E},(K["yt-spec-icon-badge-shape--text-size-small"]=function(){var E=G();
return!!((E==null?0:E.length)&&E.length>2)},K));
return _.W("yt-icon-badge-shape",null,_.W(_.d,{cond:M,then:function(E){return _.W("div",{class:n},_.W("div",{class:"yt-spec-icon-badge-shape__icon"},_.W(_.np,{icon:E})),_.W(_.d,{cond:G,then:function(p){return _.W("div",{class:"yt-spec-icon-badge-shape__badge"},p)}}))}}))},"ij");
URI.idomCompat=!0;_.S5(URI,"yt-icon-badge-shape",{props:{data:_.Hz,icon:_.Hz}});var yK=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};M.unseenCount=0;M.isOverlay=!1;return M};
_.l(yK,_.Q);_.N=yK.prototype;_.N.attached=function(){var M=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(q){M.onServiceWorkerMessage(q)})};
_.N.onDataChanged=function(){this.isAttached&&!this.JSC$20763_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$20763_lastData=this.data};
_.N.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.N.computeIcon=function(){var M,q;return(M=this.data)==null?void 0:(q=M.icon)==null?void 0:q.iconType};
_.N.onServiceWorkerMessage=function(M){M.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.N.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.C(this.data.updateUnseenCountEndpoint,_.sl)&&_.C(this.data.updateUnseenCountEndpoint,_.sl).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.N.handleUpdateNotificationsUnseenCountAction=function(M){var q=this;M=_.C(M,u0n);M!=null&&M.unseenCount&&M.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(M.unseenCount),_.r8.addLowPriorityJob(function(){q.data.updateUnseenCountEndpoint&&q.ytComponentBehavior.resolveCommand(q.data.updateUnseenCountEndpoint)},M.timeoutMs))};
_.N.onClick=function(){_.jP(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var M=_.Rf(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),q=this.data.menuRequest;M&&M.length===1&&M[0]?_.VW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):q&&this.ytComponentBehavior.resolveCommand(q)};
_.N.handleTopbarMenuClosedAction=function(M){M==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.N.toggleIconState=function(M){this.iconButton&&(this.iconButton.pressed=M)};
_.N.sendUnseenCountRequest=function(M){var q=this;_.Jp(_.r8,function(){q.ytComponentBehavior.resolveCommand(M)})};
_.N.updateCountUI=function(M){this.set("unseenCount",M<9?M:"9+")};
_.Yd.Object.defineProperties(yK.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
yK.prototype.handleUpdateNotificationsUnseenCountAction=yK.prototype.handleUpdateNotificationsUnseenCountAction;yK.prototype.onDataChanged=yK.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],yK.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EO),_.r("design:type",Object)],yK.prototype,"ytdOpenPopupBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],yK.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yK.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],yK.prototype,"unseenCount",void 0);_.T([_.B(),_.r("design:type",Object)],yK.prototype,"isOverlay",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],yK.prototype,"showTooltips",void 0);_.T([_.ET("yt-icon-button"),_.r("design:type",Object)],yK.prototype,"iconButton",void 0);
_.T([_.c("unseenCount"),_.r("design:type",Object),_.r("design:paramtypes",[])],yK.prototype,"showNotificationCount",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],yK.prototype,"onDataChanged",null);_.T([_.GQ("yt-update-notifications-unseen-count-action"),_.r("design:type",Function),_.r("design:paramtypes",[Object]),_.r("design:returntype")],yK.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.T([_.b({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],yK);
_.z(yK,"ytd-notification-topbar-button-renderer",function(){if(bfP!==void 0)return bfP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return bfP=M},{mode:_.VO("kevlar_poly_si_batch_j025")?1:2});var xR5;var L6=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return M};
_.l(L6,_.Q);L6.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}}}}}};
L6.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
L6.prototype.onDarkModeToggled=function(M){this.dark=M};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],L6.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],L6.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],L6.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],L6.prototype,"data",void 0);_.T([_.B({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],L6.prototype,"dark",void 0);
_.T([_.b({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],L6);
_.z(L6,"yt-pdg-buy-flow-header-renderer",function(){if(xR5!==void 0)return xR5;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return xR5=M},{mode:1});var ztP;var mRw;var Yw=function(){var M=_.Q.apply(this,arguments)||this;M.immediateValue=0;M.isDarkTheme=!1;M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(Yw,_.Q);_.N=Yw.prototype;_.N.created=function(){_.jv.requestAvailability()};
_.N.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.N.dataChanged=function(){var M=_.f_(this.hostElement).querySelector("#color-slider");M.immediateValue&&this.updateSliderKnobAndGradientStyles(M.immediateValue);this.data.notches[0].knobColorArgb&&_.sT(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.C_(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.R9("HTML_DIR")==="rtl"&&_.f_(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.N.onSliderImmediateChange=function(){var M=_.f_(this.hostElement).querySelector("#color-slider");M.dragging&&(M.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(M.immediateValue),this.updateSliderKnobAndGradientStyles(M.immediateValue)),this.updateSliderAria())};
_.N.onSliderChange=function(){var M=_.f_(this.hostElement).querySelector("#color-slider");M.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(M.immediateValue),this.updateSliderKnobAndGradientStyles(M.immediateValue));this.updateSliderAria()};
_.N.updateSliderAria=function(){var M=_.f_(this.hostElement).querySelector("#color-slider"),q=_.f_(this.hostElement).querySelector("#color-slider");q=_.UX(this.data.notches[q.immediateValue].tierValue);_.twu()&&_.jP(this.hostElement,"iron-announce",{text:q});M.setAttribute("aria-valuetext",q)};
_.N.updateSuperThanksSelectedTierEntity=function(M){if(M!==this.immediateValue){var q,G,K=this==null?void 0:(q=this.data)==null?void 0:(G=q.superThanksSelectedTierEntity)==null?void 0:G.key;K&&K.length>0&&this.ytdReduxBehavior.dispatch(_.LL("superThanksSelectedTierEntity",K,{key:K,index:M}))}};
_.N.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.N.updateSliderKnobAndGradientStyles=function(M){this.immediateValue=M;M=this.data.notches[M];if(M==null?0:M.knobColorArgb)var q={"--ytd-pdg-color-slider-knob-color":_.C_(M.knobColorArgb)};(M==null?0:M.linearGradientCssStyle)&&q!==null&&(q=Object.assign({},q,{"--ytd-pdg-color-slider-active-color":M==null?void 0:M.linearGradientCssStyle}));q!==null&&_.sT(this.hostElement,q)};
Yw.prototype.onSliderChange=Yw.prototype.onSliderChange;Yw.prototype.onSliderImmediateChange=Yw.prototype.onSliderImmediateChange;Yw.prototype.dataChanged=Yw.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],Yw.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Yw.prototype,"immediateValue",void 0);_.T([_.B(),_.r("design:type",Number)],Yw.prototype,"maxMarkers",void 0);
_.T([_.B({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:dAv}),_.r("design:type",Object)],Yw.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],Yw.prototype,"isDarkTheme",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Yw.prototype,"ytdReduxBehavior",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Yw.prototype,"dataChanged",null);
_.T([_.GQ("immediate-value-change"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Yw.prototype,"onSliderImmediateChange",null);_.T([_.GQ("change"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Yw.prototype,"onSliderChange",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],Yw);
_.z(Yw,"ytd-pdg-color-slider-renderer",function(){if(mRw!==void 0)return mRw;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return mRw=M},{mode:1});var Smw;var TAU;var WN=null;
_.h_({is:"ytd-comment-input",_template:function(){if(TAU!==void 0)return TAU;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return TAU=M},
behaviors:[_.G1y.YtHostElementBehavior,_.X9,_.Sp.YtComponentBehavior,_.EH.YtRendererstamperBehavior,_.HHl.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 _.F$}},
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",_.qs(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;_.dF();this.focus()},
detached:function(){document.removeEventListener("tap",_.qs(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(M){M=M.detail;M=M.isCustomEmoji?M.shortcuts[0]:M.emojiId;var q=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(q,M);this.maybeUpdateTextDirection_();_.jP(this.hostElement,"input")},
getInputRange_:function(){var M=_.fL();if(M){M=M.getBrowserRangeObject();for(var q=M.commonAncestorContainer;q;){if(q===this.getEditableTextArea_())return M;q=q.parentNode}}M=this.getEditableTextArea_();M=_.U5(M,M.childNodes.length);M.select();return M.getBrowserRangeObject()},
insertTextWithEmojis_:function(M,q,G){(q=this.emojiManager.createDocumentFragment(q,!0,!1,G===void 0?!0:G))&&q.childNodes.length!==0&&(M.collapsed||M.deleteContents(),G=q.lastChild,M.insertNode(q),_.EmS(G).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var M=_.fL();if(M){var q=M.JSC$11347_getStartNode(),G=M.JSC$11347_getEndNode();if($Kg(q)&&$Kg(G)){var K=M.JSC$11347_getStartOffset(),n;if(_.$W&&q.nodeType===Node.ELEMENT_NODE&&(n=_.EPI(q)))_.U5(n,0).select();else{n=qf(q)?q:_.jX(q,qf);var E=qf(G)?G:_.jX(G,qf);if(n||E)if(M.isCollapsed()){if(q.nodeType===Node.TEXT_NODE){M=!0;K===q.length&&(M=!1);if(WN==="end"||WN==="right")M=!1;q=q.parentNode;M=[].concat(_.Ui(q.parentNode.childNodes)).indexOf(q)+(M?0:1);_.U5(q.parentNode,
M).select()}}else n?n.previousSibling&&n.previousSibling.length>0?_.xH(G,M.JSC$11347_getEndOffset(),n.previousSibling,n.previousSibling.length-1).select():(q=document.createTextNode("\u200b"),n.parentNode.insertBefore(q,n),_.xH(G,M.JSC$11347_getEndOffset(),q,0).select()):E&&(E.nextSibling&&E.nextSibling.length>0?_.xH(q,M.JSC$11347_getStartOffset(),E.nextSibling,1).select():(G=document.createTextNode("\u200b"),E.parentNode.insertBefore(G,E.nextSibling),_.xH(q,M.JSC$11347_getStartOffset(),G,G.length).select()));
WN=null}}else WN=null}else WN=null},
leftKeyPressed_:function(){WN="left"},
rightKeyPressed_:function(){WN="right"},
endKeyPressed_:function(){WN="end"},
maybeDeleteChip_:function(){var M=n1I(!0);if(M){var q=_.fL(),G=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();_.Dc(G,q,M,M.childNodes.length).select()}},
maybeBackspaceChip_:function(){var M=n1I(!1);if(M){var q=_.fL(),G=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();_.Dc(G,q,M,0).select()}},
maybeBackspaceChipWordMode_:function(M){var q=_.fL();if(q.isCollapsed()){var G=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();var K=E1I(G,q,!0);K&&(_.Dc(G,q,K,0).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(M){var q=_.fL();if(q.isCollapsed()){var G=q.JSC$11347_getStartNode();q=q.JSC$11347_getStartOffset();var K=E1I(G,q,!1);K&&(_.Dc(G,q,K,K.childNodes.length).select(),document.execCommand("delete"),M.preventDefault(),M.stopImmediatePropagation())}},
onContentClick:function(M){M.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(M){M.defaultPrevented||M.currentTarget.tagName==="YTD-COMMENT-INPUT"&&qf(M.target)&&M.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.f_(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.f_(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(M,q){M=M$I(M,this.emojiManager,q).cloneNode(!0);for(q=M.firstChild;q;)if(q.nodeType!==1)q=q.nextSibling;else switch(q.tagName){case "BR":var G=_.XZ();_.AgI(G,q);q=G.nextSibling;break;case "DIV":(G=q.lastChild)&&q.nextSibling&&_.gB(_.XZ(),G);q.previousSibling&&(q.previousSibling.nodeType===1||q.previousSibling.nodeType===3&&!q.previousSibling.textContent.endsWith("\n"))&&_.cp(_.XZ(),q);G&&G.nodeName==="BR"&&_.cX(G);G=q;q.hasChildNodes()?(q=q.firstChild,
_.d_f(G)):(q=q.nextSibling,_.cX(G));break;default:q=q.nextSibling}return Nlv(M)},
setTextAreaValue:function(M){M||(M="");var q=this.getEditableFormattedString_();q.text="";this.getEditableTextArea_().innerText="";typeof M==="string"&&(M={runs:[{text:M}]});q.text=M},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();WN=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var M=this.getEditableTextArea_();M&&(_.U5(M,M.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.R9("HTML_DIR")==="rtl"){var M=this.getEditableTextArea_(),q=this.getTextAreaValue()!==""?"auto":"rtl";M.setAttribute("dir",q)}},
handleInputEvent_:function(){var M=null;if(this.isEmojiButtonDisplayed){var q=this.getInputRange_();q&&(M=this.emojiInput.retrieveTextBeforeRange(q))}this.insertText_(M,!0);this.updateCharCount_();M=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=M.scrollHeight>M.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var M=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:M})},
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(M){this.isEmojiButtonDisplayed&&(M.preventDefault(),M.stopImmediatePropagation(),M=M.clipboardData.getData("text/plain"),this.insertText_(M,!1,!1),_.jP(this.hostElement,"input"))},
insertText_:function(M,q,G){q=q===void 0?!1:q;G=G===void 0?!0:G;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&M){var K=this.getInputRange_().cloneRange();this.emojiManager&&K&&(q&&this.emojiInput.offsetStartOfRangeBy(K,M.length),this.insertTextWithEmojis_(K,M,G),sTs(this.getEditableTextArea_().lastChild)||(K=this.getInputRange_().cloneRange()),K&&(this.emojiInput.updateSuggestions(K,M),this.updateSuggestionOffset_(K)))}},
getSimpleString:_.UX,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(M){return M?"focused":"not-focused"},
computePlaceholderText_:function(M){return this.getSimpleString(M)},
computeEditableText_:function(M){return this.getSimpleString(M)},
onPrefilledContentDismissed_:function(M){M.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(M,q){M?this.fire("yt-autonav-pause-focus"):q!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(M){var q=this.getEditableTextArea_();[].concat(_.Ui(M.dataTransfer.items)).forEach(function(G){G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(K){q.appendChild(document.createTextNode(K))})});
M.preventDefault()},
preventDefault_:function(M){M.preventDefault()},
onSuggestionInsert_:function(M){this.insertTextWithEmojis_(M.detail.range,M.detail.text)},
onEmojiSuggestionClick_:function(M){this.emojiInput.insertSuggestion(M.detail)},
updateSuggestionOffset_:function(M){if(this.emojiInput&&_.f_(this.emojiInput).querySelector("#dropdown")){var q=this.getEditableTextArea_().getBoundingClientRect().bottom,G=M.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(q-G)+5;q=this.getEditableTextArea_().getBoundingClientRect().left;M=M.getBoundingClientRect().left-q;_.f_(this.emojiInput).querySelector("#dropdown").style.marginLeft=M+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.F8("yt-post"));return this.localStorage}});var A8=function(){var M=_.Q.apply(this,arguments)||this;M.currentCommentOptionIndex=0;M.isEmojiPickerDisplayed=!1;M.emojiManager=_.F$;M.isUgcEmpty=!1;M.userGeneratedCommentChangedHandler=function(){_.jP(M.hostElement,"ytd-pdg-user-generated-comment-changed");M.isEmojiYtdCommentInputEnabled&&(M.isUgcEmpty=!M.ytdCommentInputEl.getTextAreaValue())};
M.pasteHandler=function(q){q.preventDefault();q.stopImmediatePropagation();var G;if(q=(G=q.clipboardData)==null?void 0:G.getData("text/plain"))G=document.getSelection().getRangeAt(0),G.collapsed||G.deleteContents(),q=document.createTextNode(q),G.insertNode(q),G.selectNodeContents(q),G.collapse(!1),q=window.getSelection(),q.removeAllRanges(),q.addRange(G)};
M.onDocumentClick=function(q){if(M.isEmojiPickerDisplayed){var G,K,n;!(q.target instanceof Node)||(G=q.composedPath())!=null&&G.includes(M.editableTextEl)||(K=q.composedPath())!=null&&K.includes(M.emojiButtonEl)||(n=q.composedPath())!=null&&n.includes(M.emojiPickerEl)||(M.isEmojiPickerDisplayed=!1)}};
return M};
_.l(A8,_.Q);_.N=A8.prototype;_.N.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.N.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.N.detached=function(){var M;(M=this.contentEl)==null||M.removeEventListener("input",this.userGeneratedCommentChangedHandler);var q;(q=this.contentEl)==null||q.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.N.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.N.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var M;this.contentEl.textContent=this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.N.reloadEmojis=function(){this.emojiPickerEl&&_.C(this.emojiPicker,_.nxx)&&this.emojiPickerEl.updateEmojiCategories()};
_.N.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.sT(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.N.handleBackgroundColorStyling=function(){var M;if((M=this.currentCommentOption)==null?0:M.commentBackgroundColorArgb){var q;_.sT(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.C_((q=this.currentCommentOption)==null?void 0:q.commentBackgroundColorArgb)})}else _.sT(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.N.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var M;(M=this.contentEl)==null||M.focus()}};
_.N.onEditButtonClick=function(M){var q=document.getSelection();q&&this.contentEl&&(M.stopPropagation(),M.preventDefault(),q.selectAllChildren(this.contentEl),q.collapseToEnd())};
_.N.onContentDrop=function(M){var q=this;if(M.dataTransfer){M=_.k(M.dataTransfer.items);for(var G=M.next();!G.done;G=M.next())G=G.value,G.kind==="string"&&G.type.match("^text/plain")&&G.getAsString(function(K){var n;(n=q.contentEl)==null||n.appendChild(document.createTextNode(K))})}};
_.N.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.N.getUserGeneratedCommentText=function(){var M,q=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(M=this.contentEl)==null?void 0:M.textContent;return q?q.trim():""};
_.N.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.N.onEmojiSelect=function(M){this.ytdCommentInputEl.onEmojiSelect(M)};
_.Yd.Object.defineProperties(A8.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.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 M;return!((M=this.currentCommentOption)==null||!M.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if(_.C((M=this.currentCommentOption)==null?void 0:M.chipRenderer,_.i3v)){var q;return _.C((q=this.currentCommentOption)==null?void 0:q.chipRenderer,_.i3v)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var M,q;return((M=this.data)==null?0:M.commentOptionRenderers)?_.C((q=this.data)==null?void 0:q.commentOptionRenderers[this.superThanksSelectedTierEntity.index],NXv):void 0}var G,K;return((G=this.data)==null?0:G.commentOptionRenderers)?_.C((K=this.data)==null?void 0:K.commentOptionRenderers[this.currentCommentOptionIndex],NXv):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var M;return this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var M;return this.rendererBehavior.getSimpleString((M=this.data)==null?void 0:M.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=_.C((M=this.data)==null?void 0:M.commentDialog,_.acI))==null?void 0:q.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=_.C((M=this.data)==null?void 0:M.commentDialog,_.acI))==null?void 0:q.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=_.C((M=this.data)==null?void 0:M.commentDialog,_.acI))==null?void 0:q.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(q=_.C((M=this.data)==null?void 0:M.commentDialog,_.acI))==null?void 0:q.emojiPicker;if(!_.C(G,_.nxx)||!_.C(G,_.nxx).categories)return!1;M=function(E){return E.emojiPickerCategoryRenderer?E.emojiPickerCategoryRenderer.emojiIds&&E.emojiPickerCategoryRenderer.emojiIds.length>0:E.emojiPickerUpsellCategoryRenderer?E.emojiPickerUpsellCategoryRenderer.emojis&&E.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var K,n;return((K=_.C(G,_.nxx))==null?0:(n=K.categories)==null?0:n.find(M))?!0:!1}}});
A8.prototype.onEmojiSelect=A8.prototype.onEmojiSelect;A8.prototype.dataChanged=A8.prototype.dataChanged;A8.prototype.currentCommentOptionChanged=A8.prototype.currentCommentOptionChanged;_.T([_.P(_.mr),_.r("design:type",Object)],A8.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],A8.prototype,"rendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.ET("#content-dom-if"),_.r("design:type",_.OT)],A8.prototype,"contentDomIfEl",void 0);_.T([_.ET("#content-no-emojis"),_.r("design:type",HTMLElement)],A8.prototype,"contentEl",void 0);_.T([_.ET("#container"),_.r("design:type",HTMLElement)],A8.prototype,"containerEl",void 0);_.T([_.ET("#comment-chip-container"),_.r("design:type",HTMLElement)],A8.prototype,"paidCommentChipContainerEl",void 0);_.T([_.ET("#text-input"),_.r("design:type",HTMLElement)],A8.prototype,"editableTextEl",void 0);
_.T([_.ET("#emoji-button"),_.r("design:type",HTMLElement)],A8.prototype,"emojiButtonEl",void 0);_.T([_.ET("#emoji-picker > yt-emoji-picker-renderer"),_.r("design:type",Object)],A8.prototype,"emojiPickerEl",void 0);_.T([_.ET("#text-input > ytd-comment-input"),_.r("design:type",Object)],A8.prototype,"ytdCommentInputEl",void 0);_.T([_.B(),_.r("design:type",Object)],A8.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],A8.prototype,"currentCommentOptionIndex",void 0);
_.T([_.B({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:dAv}),_.r("design:type",Object)],A8.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.B(),_.r("design:type",Object)],A8.prototype,"isEmojiPickerDisplayed",void 0);_.T([_.B(),_.r("design:type",Object)],A8.prototype,"emojiManager",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],A8.prototype,"isUgcEmpty",void 0);
_.T([_.KT("currentCommentOption"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],A8.prototype,"currentCommentOptionChanged",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],A8.prototype,"dataChanged",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],A8.prototype,"isEmojiYtdCommentInputEnabled",null);
_.T([_.c("data.title"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"title",null);_.T([_.c("data.authorText"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"channelName",null);_.T([_.c("data.commentOptionRenderers","currentCommentOption"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],A8.prototype,"shouldShowPaidCommentChipRenderer",null);
_.T([_.c("data.commentOptionRenderers","currentCommentOption"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"paidCommentChipRenderer",null);_.T([_.c("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"currentCommentOption",null);
_.T([_.c("data.defaultCommentText","superThanksSelectedTierEntity"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"commentText",null);_.T([_.c("data.placeholderText"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"placeholderText",null);_.T([_.c("data.commentDialog.commentDialogRenderer.editableText"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"editableText",null);
_.T([_.c("data.commentDialog.commentDialogRenderer.emojiButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"emojiButton",null);_.T([_.c("data.commentDialog.commentDialogRenderer.emojiPicker"),_.r("design:type",Object),_.r("design:paramtypes",[])],A8.prototype,"emojiPicker",null);
_.T([_.c("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],A8.prototype,"isEmojiButtonDisplayed",null);_.T([_.GQ("yt-emoji-select"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],A8.prototype,"onEmojiSelect",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],A8);
_.z(A8,"ytd-pdg-comment-preview-renderer",function(){if(Smw!==void 0)return Smw;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Smw=M},{mode:2});var rTI;var dd=function(){var M=_.Q.apply(this,arguments)||this;M.selected=!1;return M};
_.l(dd,_.Q);_.N=dd.prototype;_.N.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.N.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.N.dataChanged=function(){this.data&&(_.Fw(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.sT(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.C_(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.C_(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.N.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.N.onClick=function(){this.logClick()};
_.N.onKeyboardSelect=function(){_.jP(this.hostElement,"tap");this.onClick()};
_.N.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
dd.prototype.onClick=dd.prototype.onClick;dd.prototype.selectedChanged=dd.prototype.selectedChanged;dd.prototype.dataChanged=dd.prototype.dataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],dd.prototype,"componentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],dd.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.X9),_.r("design:type",Object)],dd.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.P(_.IO),_.r("design:type",Object)],dd.prototype,"ironSelectableBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],dd.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],dd.prototype,"shownThumbnail",void 0);_.T([_.B(),_.r("design:type",Object)],dd.prototype,"basePriceText",void 0);_.T([_.B(),_.r("design:type",Object)],dd.prototype,"purchaseCommand",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],dd.prototype,"selected",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dd.prototype,"dataChanged",null);_.T([_.KT("selected"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dd.prototype,"selectedChanged",null);_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dd.prototype,"onClick",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],dd);
_.z(dd,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(rTI!==void 0)return rTI;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return rTI=M},{mode:1});var vN=function(){var M=_.Q.apply(this,arguments)||this;M.selectedItemIndex=0;M.buyButtonDisabled=!1;return M};
_.l(vN,_.Q);_.N=vN.prototype;
_.N.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]]"}}}}}};
_.N.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var M;var q=(M=_.C(this.data.colorSlider,Ehw))==null?void 0:M.notches[this.selectedItemIndex].purchaseCommand}else{var G;q=(G=_.C(this.data.selectableItemButtons[this.selectedItemIndex],p9P))==null?void 0:G.purchaseCommand}if(q){M=_.C(q,_.WUv);M.productData||(M.productData={});var K;M.productData={pdgData:{commentMessageText:(K=this.commentPreviewRenderer)==null?void 0:K.getUserGeneratedCommentText()}};
_.jP(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(q)}}};
_.N.dataChanged=function(){if(this.data){_.F$.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.im9(_.F$,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.F$.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var M;this.buyButtonDisabled=!((M=_.C(this.data.commentPreview,k4g))==null||!M.placeholderText);this.updatePriceSelectorStatus();var q;if((q=this.data)==null?0:q.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;M=[];this.data.preloadImages&&(M=this.data.preloadImages);
M=M.map(function(G){return _.TE(G.thumbnails,1920)});
M=_.k(M);for(q=M.next();!q.done;q=M.next())(q=q.value)&&_.bru(q).thenCatch(function(){_.j1(Error("Hl"))})}};
_.N.superThanksSelectedTierEntityChanged=function(){var M;(this==null?void 0:(M=this.superThanksSelectedTierEntity)==null?void 0:M.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.N.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.N.updatePriceSelectorStatus=function(){this.isColorSlider?(_.f_(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.f_(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.f_(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.f_(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.N.closeBuyFlow=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.N.onUserGeneratedContentChanged=function(){var M;this.buyButtonDisabled=!((M=this.commentPreviewRenderer)==null?0:M.getUserGeneratedCommentText())};
_.N.updateSelectedItemIndexFromBinding=function(M){this.selectedItemIndex=M.detail.value};
_.Yd.Object.defineProperties(vN.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var M;return!((M=this.data)==null||!M.disclaimerText)}}});
vN.prototype.onUserGeneratedContentChanged=vN.prototype.onUserGeneratedContentChanged;vN.prototype.closeBuyFlow=vN.prototype.closeBuyFlow;vN.prototype.selectedItemIndexChanged=vN.prototype.selectedItemIndexChanged;vN.prototype.superThanksSelectedTierEntityChanged=vN.prototype.superThanksSelectedTierEntityChanged;vN.prototype.dataChanged=vN.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],vN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],vN.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],vN.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],vN.prototype,"selectedItemIndex",void 0);_.T([_.B(),_.r("design:type",Boolean)],vN.prototype,"isColorSlider",void 0);
_.T([_.B(),_.r("design:type",Object)],vN.prototype,"buyButtonDisabled",void 0);_.T([_.B({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:dAv}),_.r("design:type",Object)],vN.prototype,"superThanksSelectedTierEntity",void 0);_.T([_.ET("ytd-pdg-comment-preview-renderer"),_.r("design:type",Object)],vN.prototype,"commentPreviewRenderer",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],vN.prototype,"ytdReduxBehavior",void 0);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vN.prototype,"dataChanged",null);_.T([_.KT("superThanksSelectedTierEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vN.prototype,"superThanksSelectedTierEntityChanged",null);_.T([_.KT("selectedItemIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vN.prototype,"selectedItemIndexChanged",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vN.prototype,"closeBuyFlow",null);_.T([_.GQ("ytd-pdg-user-generated-comment-changed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vN.prototype,"onUserGeneratedContentChanged",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],vN.prototype,"isDisclaimerTextShown",null);
_.T([_.b({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],vN);
_.z(vN,"yt-super-vod-buy-flow-content-renderer",function(){if(ztP!==void 0)return ztP;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return ztP=M},{mode:1});var j6P;var h8=function(){var M=_.Q.apply(this,arguments)||this;M.lottieAnimationRef={};return M};
_.l(h8,_.Q);_.N=h8.prototype;_.N.created=function(){_.jv.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.qs(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.N.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.jP(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.N.detached=function(){this.autoCloseJobId&&_.r8.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.qs(this,this.onPopupIronOverlayOpened))};
_.N.dataChanged=function(){var M=this;this.data&&this.data.autoCloseDelay&&(_.VW(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.RM(_.r8,function(){M.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.sT(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.N.onDOMLoadedLottie=function(){var M=this,q,G,K=Number((q=this.data)==null?void 0:(G=q.autoCloseDelay)==null?void 0:G.seconds)||0;this.fadeOutJobId=_.RM(_.r8,function(){M.lottiePlayerEl.classList.add("fadeout")},(K-.25)*1E3);
this.autoCloseJobId=_.RM(_.r8,function(){M.closePopup()},K*1E3)};
_.N.openPopup=function(){this.ironOverlayBehavior.open()};
_.N.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.VW(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.FH(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.AL().resolve(_.vR).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.r8.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.r8.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.N.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var M,q;(M=this.lottieAnimationRef)==null||(q=M.lottieEl)==null||q.destroy();M=this.data.lottie;var G,K;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:M.url+"_"+Math.random(),path:M.url,autoplay:!0,loop:(K=(G=M.settings)==null?void 0:G.loop)!=null?K:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Yd.Object.defineProperties(h8.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var M,q;return!!((M=this.data)==null?0:(q=M.lottie)==null?0:q.url)}}});
h8.prototype.maybeInitializeLottie=h8.prototype.maybeInitializeLottie;h8.prototype.dataChanged=h8.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],h8.prototype,"rendererBehavior",void 0);_.T([_.P(_.Hn),_.r("design:type",Object)],h8.prototype,"ironOverlayBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],h8.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],h8.prototype,"lottiePlayerProps",void 0);
_.T([_.B(),_.r("design:type",Object)],h8.prototype,"lottieAnimationRef",void 0);_.T([_.ET("ytd-lottie-player"),_.r("design:type",HTMLElement)],h8.prototype,"lottiePlayerEl",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],h8.prototype,"dataChanged",null);_.T([_.c("data"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],h8.prototype,"hasLottieAnimation",null);
_.T([_.KT("data.lottie.url"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],h8.prototype,"maybeInitializeLottie",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],h8);
_.z(h8,"ytd-desktop-image-overlay-renderer",function(){if(j6P!==void 0)return j6P;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-desktop-image-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-desktop-image-overlay-renderer">\n  <yt-img-shadow hidden$="[[hasLottieAnimation]]" thumbnail="[[data.image]]" width="1920" class="style-scope ytd-desktop-image-overlay-renderer"></yt-img-shadow>\n  <ytd-lottie-player class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" hidden$="[[!hasLottieAnimation]]" class="style-scope ytd-desktop-image-overlay-renderer">\n</ytd-lottie-player></div>\n');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return j6P=M},{mode:1});var V3I;var t8=function(){return _.Q.apply(this,arguments)||this};
_.l(t8,_.Q);_.N=t8.prototype;_.N.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"}}}}};
_.N.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",_.qs(this,this.closePopup))};
_.N.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.qs(this,this.closePopup))};
_.N.dataChanged=function(){_.Rf(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.C(this.data.header,nhR)&&(this.hasBackgroundBanner=!!_.C(this.data.header,nhR).backgroundBanner)};
_.N.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.qs(this,this.closePopup))};
_.N.closePopup=function(){this.data&&this.data.onCloseCommand&&_.fx(this.hostElement,[this.data.onCloseCommand])};
t8.prototype.handleBuyflowSelectionSubmitted=t8.prototype.handleBuyflowSelectionSubmitted;t8.prototype.dataChanged=t8.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],t8.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],t8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],t8.prototype,"data",void 0);
_.T([_.B({value:!0,reflectToAttribute:!0}),_.r("design:type",Boolean)],t8.prototype,"hasBackgroundBanner",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],t8.prototype,"dataChanged",null);_.T([_.GQ("yt-pdg-buy-flow-selection-submitted"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],t8.prototype,"handleBuyflowSelectionSubmitted",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],t8);
_.z(t8,"ytd-pdg-buy-flow-renderer",function(){if(V3I!==void 0)return V3I;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return V3I=M},{mode:1});var Rtv;var OR=function(){var M=_.Q.apply(this,arguments)||this;M.isOpen=!1;M.isPlaylistCreated=!1;return M};
_.l(OR,_.Q);_.N=OR.prototype;_.N.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.N.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.jP(this.hostElement,"yt-refit")};
_.N.onCreateTap=function(){var M=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.fx(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(q,G){if(!_.w("killswitch_ep_in_create_playlist_response")&&(G==null?0:G.actions))for(q=_.k(G.actions),G=q.next();!G.done;G=q.next())G=G.value,_.C(G,_.hM)&&M.ytComponentBehavior.resolveCommand(G)}}]),this.isPlaylistCreated=!0)};
_.N.onKeydown=function(M){if(M.keyCode===13)this.onCreateTap()};
_.N.onServiceRequestCompleted=function(M){M.stopPropagation();_.VW(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.N.computePrivacyBadge=function(M){return M?[{metadataBadgeRenderer:M}]:[]};
OR.prototype.onServiceRequestCompleted=OR.prototype.onServiceRequestCompleted;OR.prototype.onKeydown=OR.prototype.onKeydown;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],OR.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],OR.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],OR.prototype,"isOpen",void 0);
_.T([_.B(),_.r("design:type",Object)],OR.prototype,"isPlaylistCreated",void 0);_.T([_.B({value:{REQUIRED_LABEL:_.Ge("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Ge("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.r("design:type",Object)],OR.prototype,"addToStrings",void 0);_.T([_.B({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.r("design:type",Array)],OR.prototype,"privacyBadge",void 0);
_.T([_.ET("#privacy-input"),_.r("design:type",Object)],OR.prototype,"privacyInput",void 0);_.T([_.ET("#name-input"),_.r("design:type",Object)],OR.prototype,"nameInput",void 0);_.T([_.GQ("keydown"),_.r("design:type",Function),_.r("design:paramtypes",[KeyboardEvent]),_.r("design:returntype")],OR.prototype,"onKeydown",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],OR.prototype,"onServiceRequestCompleted",null);
_.T([_.b({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],OR);
_.z(OR,"ytd-add-to-playlist-create-renderer",function(){if(Rtv!==void 0)return Rtv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Rtv=M},{mode:1});var f9E;var FIU;var wd=function(){var M=_.Q.apply(this,arguments)||this;M.transferState="TRANSFER_STATE_UNKNOWN";return M};
_.l(wd,_.Q);wd.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
wd.prototype.onCheckboxChange=function(M){var q=this;this.data&&_.B4(this,"yt-playlist-checkbox-changed",function(){var G=_.ba(M).checked?q.data.addToPlaylistServiceEndpoint:q.data.removeFromPlaylistServiceEndpoint;G&&_.AL().resolve(_.vR).resolveCommand(G,{form:{element:q.hostElement}});_.w("dl_playlist_killswitch")||q.transferState!=="TRANSFER_STATE_UNKNOWN"&&q.transferState!=="TRANSFER_STATE_FAILED"&&q.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:q.data.playlistId,action:"ACTION_SYNC"}})},
100)};
wd.prototype.computeIconType=function(M){return M?"yt-icons:"+M.toLowerCase():null};
wd.prototype.dataChanged=wd.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],wd.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],wd.prototype,"data",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],wd.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],wd.prototype,"ytComponentBehavior",void 0);_.T([_.ET("#checkbox"),_.r("design:type",HTMLInputElement)],wd.prototype,"checkbox",void 0);
_.T([_.B({selector:_.Ps,selectorArgs:["data.playlistId"]}),_.r("design:type",String)],wd.prototype,"transferState",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],wd.prototype,"dataChanged",null);_.T([_.b({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],wd);
_.z(wd,"ytd-playlist-add-to-option-renderer",function(){if(FIU!==void 0)return FIU;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return FIU=M},{mode:1});var HfP=_.U(function(M){var q=M.data;return _.W("ytd-menu-title-renderer",{class:"ytdMenuTitleRendererHost"},_.W("div",null,_.W(_.Ft,{text:function(){return q().title}})),_.W(_.d,{cond:function(){return q().subtitle},
then:function(G){return _.W("div",{class:"ytdMenuTitleRendererSubtitle"},_.W(_.Ft,{text:G}))}}))},"jj");
HfP.idomCompat=!0;_.S5(HfP,"ytd-menu-title-renderer",{props:{data:_.Hz}});var C6=function(){var M=_.Q.apply(this,arguments)||this;M.addToStrings={ADD_TO_DROPDOWN_LABEL:_.Ge("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};M.closeButtonAriaLabel=_.Ge("SBOX_INAPPROPRIATE_CANCEL");M.dialog=_.w("desktop_add_to_playlist_renderer_dialog_popup");return M};
_.l(C6,_.Q);_.N=C6.prototype;_.N.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"}}}};
_.N.onPopupOpened=function(){_.HE(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.N.onPopupClosed=function(){_.HE(this.playlists,"scrollable",!1)};
_.N.computeAriaLabel=function(){var M;if(this==null?0:(M=this.data)==null?0:M.actions){M=_.k(this.data.actions);for(var q=M.next();!q.done;q=M.next())if(q=q.value,q.menuTitleRenderer)return _.UX(q.menuTitleRenderer.title)}};
_.N.onTapClose=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Yd.Object.defineProperties(C6.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var M;if(this==null?0:(M=this.data)==null?0:M.actions){M=_.k(this.data.actions);for(var q=M.next();!q.done;q=M.next())if(q=q.value,q.menuTitleRenderer)return q.menuTitleRenderer}return!1}}});
C6.prototype.onPopupClosed=C6.prototype.onPopupClosed;C6.prototype.onPopupOpened=C6.prototype.onPopupOpened;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],C6.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],C6.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],C6.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],C6.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],C6.prototype,"addToStrings",void 0);_.T([_.B({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.r("design:type",String)],C6.prototype,"ariaLabel",void 0);_.T([_.B(),_.r("design:type",String)],C6.prototype,"closeButtonAriaLabel",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],C6.prototype,"dialog",void 0);
_.T([_.ET("#playlists"),_.r("design:type",HTMLElement)],C6.prototype,"playlists",void 0);_.T([_.ET("ytd-add-to-playlist-create-renderer"),_.r("design:type",Object)],C6.prototype,"createRenderer",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],C6.prototype,"menuTitleRenderer",null);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],C6.prototype,"onPopupOpened",null);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],C6.prototype,"onPopupClosed",null);_.T([_.b({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],C6);
_.z(C6,"ytd-add-to-playlist-renderer",function(){if(f9E!==void 0)return f9E;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return f9E=M},{mode:1});var etg;var a0=function(){var M=_.Q.apply(this,arguments)||this;M.isPlaylistEditComplete=!1;M.isCollabEngagementDisabled=!1;M.closeButtonAriaLabel=_.Ge("SBOX_INAPPROPRIATE_CANCEL");M.saveButton={title:_.Ge("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"};M.onValueChanged=function(){M.updateSaveButtonState();M.computeCollabEngagementDisabled()};
return M};
_.l(a0,_.Q);_.N=a0.prototype;_.N.attached=function(){this.JSC$20817_scroller&&(this.JSC$20817_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20817_scroller.attached&&typeof this.JSC$20817_scroller.attached==="function"&&this.JSC$20817_scroller.attached())};
_.N.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.N.onPopupClosed=function(){this.reset()};
_.N.close=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.N.onClickSave=function(){var M=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var q=[];this.nameInput.value!==null&&q.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&q.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var G=Number(this.privacyInput.value);isNaN(G)||q.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:G})}this.votingInput.value!==null&&(G=this.votingInput.value)&&q.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:G});if(q.length>0){var K;_.C((K=this.data)==null?void 0:K.updateSettingsEndpoint,_.ri).actions=q;var n;if((n=this.data)==null?0:n.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){M.close()}}}),this.isPlaylistEditComplete=!0}}};
_.N.computePrivacyBadge=function(M){return M?[{metadataBadgeRenderer:M}]:[]};
_.N.computeEditorData=function(M){var q,G;return M==null?void 0:(q=M.sections)==null?void 0:(G=q[0])==null?void 0:G.playlistSettingsEditorCasualSectionRenderer};
_.N.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.N.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}}}}}};
_.N.computeAriaLabel=function(){var M,q,G,K=(M=this.data)==null?void 0:(q=M.sections)==null?void 0:(G=q[0])==null?void 0:G.playlistSettingsEditorCasualSectionRenderer;return _.UX(K==null?void 0:K.title)};
_.N.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"}))};
_.N.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.N.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.N.isNameChanged=function(){var M,q,G;return(((M=this.editorData)==null?void 0:(q=M.name)==null?void 0:(G=q.textInputFormFieldRenderer)==null?void 0:G.value)||"")!==(this.nameInput.value||"")};
_.N.isDescriptionChanged=function(){var M,q,G;return(((M=this.editorData)==null?void 0:(q=M.description)==null?void 0:(G=q.textInputFormFieldRenderer)==null?void 0:G.value)||"")!==(this.descriptionInput.value||"")};
_.N.isPrivacyChanged=function(){var M,q,G,K,n,E,p,y;return((p=(M=this.editorData)==null?void 0:(q=M.privacy)==null?void 0:(G=q.dropdownFormFieldRenderer)==null?void 0:(K=G.dropdown)==null?void 0:(n=K.dropdownRenderer)==null?void 0:(E=n.entries)==null?void 0:E.find(function(Y){var A;return Y==null?void 0:(A=Y.privacyDropdownItemRenderer)==null?void 0:A.isSelected}))==null?void 0:(y=p.privacyDropdownItemRenderer)==null?void 0:y.int32Value)!==this.privacyInput.value};
_.N.isVotingChanged=function(){var M,q,G,K,n,E,p,y;return((p=(M=this.editorData)==null?void 0:(q=M.voting)==null?void 0:(G=q.dropdownFormFieldRenderer)==null?void 0:(K=G.dropdown)==null?void 0:(n=K.dropdownRenderer)==null?void 0:(E=n.entries)==null?void 0:E.find(function(Y){var A;return Y==null?void 0:(A=Y.privacyDropdownItemRenderer)==null?void 0:A.isSelected}))==null?void 0:(y=p.privacyDropdownItemRenderer)==null?void 0:y.int32Value)!==this.votingInput.value};
a0.prototype.onPopupClosed=a0.prototype.onPopupClosed;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],a0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],a0.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],a0.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],a0.prototype,"ytRendererStamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],a0.prototype,"data",void 0);_.T([_.B({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.r("design:type",Array)],a0.prototype,"privacyBadge",void 0);_.T([_.B({computed:"computeEditorData(data)"}),_.r("design:type",Object)],a0.prototype,"editorData",void 0);_.T([_.B(),_.r("design:type",Object)],a0.prototype,"isPlaylistEditComplete",void 0);_.T([_.B(),_.r("design:type",Object)],a0.prototype,"isCollabEngagementDisabled",void 0);
_.T([_.B({value:{REQUIRED_LABEL:_.Ge("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.Ge("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.r("design:type",Object)],a0.prototype,"addToStrings",void 0);_.T([_.B({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.r("design:type",String)],a0.prototype,"ariaLabel",void 0);_.T([_.B(),_.r("design:type",String)],a0.prototype,"closeButtonAriaLabel",void 0);
_.T([_.B(),_.r("design:type",Object)],a0.prototype,"saveButton",void 0);_.T([_.ET("#name-input"),_.r("design:type",Object)],a0.prototype,"nameInput",void 0);_.T([_.ET("#description-input"),_.r("design:type",Object)],a0.prototype,"descriptionInput",void 0);_.T([_.ET("#privacy-input"),_.r("design:type",Object)],a0.prototype,"privacyInput",void 0);_.T([_.ET("#voting-input"),_.r("design:type",Object)],a0.prototype,"votingInput",void 0);
_.T([_.ET("#scroller"),_.r("design:type",Object)],a0.prototype,"JSC$20817_scroller",void 0);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],a0.prototype,"onPopupClosed",null);_.T([_.B(),_.r("design:type",Object)],a0.prototype,"onValueChanged",void 0);_.T([_.b({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],a0);
_.z(a0,"ytd-playlist-settings-editor-renderer",function(){if(etg===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);etg=M}M=etg;return M},{mode:1});var $RE;_.hC("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var o0=function(){return _.Q.apply(this,arguments)||this};
_.l(o0,_.Q);_.N=o0.prototype;_.N.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}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.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 M=this.get("data.nextButton.buttonRenderer.navigationEndpoint");M&&(this.nextNavigationEndpoint=M,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.N.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 M={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",M)}}};
_.N.onPopupOpened=function(M){M.detail!==this&&M.detail!==this.hostElement||!_.w("enable_premium_voluntary_pause")||_.VW(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.N.onNextButtonTap=function(){var M=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);M&&this.ytdOpenPopupBehavior.openPopup(M)};
_.N.updateSelectedResponseIndexFromBinding=function(M){this.selectedResponseIndex=M.detail.value};
o0.prototype.onPopupOpened=o0.prototype.onPopupOpened;o0.prototype.onSelectedResponseIndexChange=o0.prototype.onSelectedResponseIndexChange;o0.prototype.dataChanged=o0.prototype.dataChanged;_.T([_.P(_.EO),_.r("design:type",Object)],o0.prototype,"ytdOpenPopupBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],o0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],o0.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],o0.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],o0.prototype,"selectedResponseIndex",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],o0.prototype,"dataChanged",null);_.T([_.KT("selectedResponseIndex"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],o0.prototype,"onSelectedResponseIndexChange",null);
_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],o0.prototype,"onPopupOpened",null);_.T([_.b({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],o0);
_.z(o0,"ytd-red-cancel-survey-renderer",function(){if($RE!==void 0)return $RE;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return $RE=M},{mode:1});var s7w;var lb=function(){var M=_.Q.apply(this,arguments)||this;M.closeButtonAriaLabel=_.Ge("SBOX_INAPPROPRIATE_CANCEL");return M};
_.l(lb,_.Q);lb.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
lb.prototype.onClickClose=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],lb.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],lb.prototype,"rendererStamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],lb.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],lb.prototype,"closeButtonAriaLabel",void 0);_.T([_.b({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],lb);
_.z(lb,"ytd-search-filter-options-dialog-renderer",function(){if(s7w!==void 0)return s7w;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return s7w=M},{mode:1});var M7n;var yDn=function(){return function(M){M=M.availabilityType;return M===void 0||M==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||M==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var Xz=function(){var M=_.Q.apply(this,arguments)||this;M.qualityOptions=[];M.upsellOptions=[];M.showUpsellSection=!1;M.rememberSettingsChecked=!1;return M};
_.l(Xz,_.Q);_.N=Xz.prototype;_.N.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}}}}};
_.N.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.N.updateQualityOptions=function(){if(this.formats===void 0)_.VW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var M=[],q=[];this.showUpsellSection=!1;for(var G=_.k(this.formats),K=G.next();!K.done;K=G.next())(K=K.value)&&(K.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?q.push(K):M.push(K));M.length&&(this.qualityOptions=p7g(M));q.length&&(this.showUpsellSection=!0,this.upsellOptions=p7g(q))}};
_.N.updateRememberString=function(){if(this.downloadQualityPickerEntity)var M=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var q;M=(q=this.data)==null?void 0:q.premiumRememberSettingString}else{var G;M=(G=this.data)==null?void 0:G.rememberSettingString}M=M===void 0?_.Ge("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):M;this.rememberSettingsCheckboxRenderer={title:_.rj(M),disabled:!1}};
_.N.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Yd.Object.defineProperties(Xz.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var M;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(M=this.data)==null?void 0:M.qualityFormats}}});
Xz.prototype.updateRememberString=Xz.prototype.updateRememberString;Xz.prototype.updateQualityOptions=Xz.prototype.updateQualityOptions;Xz.prototype.dataChanged=Xz.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Xz.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Xz.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Xz.prototype,"data",void 0);
_.T([_.P(_.mr),_.r("design:type",Object)],Xz.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Boolean)],Xz.prototype,"selectedUpsellQuality",void 0);_.T([_.B({computed:"computeIcon_(data.premiumIcon)",value:""}),_.r("design:type",String)],Xz.prototype,"premiumIcon",void 0);_.T([_.B({selector:YEI,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.r("design:type",Object)],Xz.prototype,"downloadQualityPickerEntity",void 0);
_.T([_.B(),_.r("design:type",Array)],Xz.prototype,"qualityOptions",void 0);_.T([_.B(),_.r("design:type",Array)],Xz.prototype,"upsellOptions",void 0);_.T([_.B(),_.r("design:type",Object)],Xz.prototype,"showUpsellSection",void 0);_.T([_.B(),_.r("design:type",Object)],Xz.prototype,"rememberSettingsCheckboxRenderer",void 0);_.T([_.ET("#remember-settings"),_.r("design:type",HTMLInputElement)],Xz.prototype,"rememberSettingsCheckbox",void 0);
_.T([_.B(),_.r("design:type",Object)],Xz.prototype,"rememberSettingsChecked",void 0);_.T([_.B(),_.r("design:type",Function)],Xz.prototype,"onRememberSettingsCheckedChanged",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xz.prototype,"dataChanged",null);_.T([_.KT("downloadQualityPickerEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xz.prototype,"updateQualityOptions",null);
_.T([_.KT("selectedUpsellQuality"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Xz.prototype,"updateRememberString",null);_.T([_.b({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],Xz);
_.z(Xz,"ytd-download-quality-selector-content",function(){if(M7n!==void 0)return M7n;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return M7n=M},{mode:1});var qnE;var PN=function(){var M=_.Q.apply(this,arguments)||this;M.selectedUpsellQuality=!1;M.qualityOptions=[];M.useUpsellDismissAlternate=_.w("use_not_now_dl_upsell_dismiss_cta");M.shouldShowAlternateUpsellDimiss=!1;M.rememberSettings=!1;M.rememberSettingsChecked=!1;M.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};M.rememberSettingsCheckedChanged=function(q){M.rememberSettingsChecked=q};
return M};
_.l(PN,_.Q);_.N=PN.prototype;
_.N.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rj(_.Ge("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.rj(_.Ge("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.rj(_.Ge("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.rj(_.Ge("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.N.updateQualityOptions=function(){this.formats===void 0?_.VW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=p7g(this.formats)};
_.N.onQualityOptionsSelect=function(M){if(this.qualityOptions&&M){M!==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 q=_.k(this.qualityOptions.entries()),G=q.next();!G.done;G=
q.next()){G=_.k(G.value);var K=G.next().value;G=G.next().value;var n=void 0,E=void 0;if(((n=G)==null?void 0:(E=n.settingsRadioOptionRenderer)==null?void 0:E.id)===M){this.selectedQualityIndex=K;M=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((M=this.formats[K])==null?void 0:M.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.N.onClickSubmit=function(){var M;if((M=this.downloadButtonRenderer)==null||!M.isDisabled){var q,G;M=(G=(q=this.data)==null?void 0:q.onSubmitEndpoint)!=null?G:{};var K,n;if(this.formats&&(((K=_.C(M,_.KL))==null?0:K.videoId)||((n=_.C(M,_.E0))==null?0:n.playlistId))){var E,p,y,Y,A,v;q={formatType:(Y=(E=this.formats)==null?void 0:(p=E[(y=this.selectedQualityIndex)!=null?y:0])==null?void 0:p.format)!=null?Y:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(A=this.getOfflineEndpoint(M))==null?void 0:(v=A.actionParams)==null?void 0:v.settingsAction)};this.getOfflineEndpoint(M).actionParams=q;this.ytComponentBehavior.resolveCommand(M)}_.VW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.N.onClickUpsell=function(){var M;if((M=this.upsellButtonRenderer)==null||!M.isDisabled){var q,G;M=(G=(q=this.data)==null?void 0:q.upsellEndpoint)!=null?G:{};this.ytComponentBehavior.resolveCommand(M);_.VW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);q="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var K,n,E,p;q=(p=(K=this.formats)==null?void 0:(n=K[(E=this.selectedQualityIndex)!=null?E:0])==null?void 0:n.format)!=null?p:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:q}})}};
_.N.onClickClose=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.N.getOfflineSettingsAction=function(M,q){return M?q===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":q:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.N.getOfflineEndpoint=function(M){return _.C(M,_.KL)?_.C(M,_.KL):_.C(M,_.E0)};
_.Yd.Object.defineProperties(PN.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.rj(_.Ge("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var M;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(M=this.data)==null?void 0:M.qualityFormats}}});
PN.prototype.updateQualityOptions=PN.prototype.updateQualityOptions;PN.prototype.dataChanged=PN.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],PN.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],PN.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],PN.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],PN.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Number)],PN.prototype,"selectedQualityIndex",void 0);_.T([_.B(),_.r("design:type",Object)],PN.prototype,"selectedUpsellQuality",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],PN.prototype,"ytdReduxBehavior",void 0);
_.T([_.B({selector:YEI,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.r("design:type",Object)],PN.prototype,"downloadQualityPickerEntity",void 0);_.T([_.B(),_.r("design:type",Array)],PN.prototype,"qualityOptions",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],PN.prototype,"useUpsellDismissAlternate",void 0);_.T([_.B(),_.r("design:type",Object)],PN.prototype,"shouldShowAlternateUpsellDimiss",void 0);
_.T([_.B(),_.r("design:type",Object)],PN.prototype,"downloadButtonRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],PN.prototype,"upsellButtonRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],PN.prototype,"cancelButtonRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],PN.prototype,"upsellCancelButtonRenderer",void 0);_.T([_.B(),_.r("design:type",Object)],PN.prototype,"rememberSettings",void 0);_.T([_.B(),_.r("design:type",Object)],PN.prototype,"rememberSettingsChecked",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PN.prototype,"dataChanged",null);_.T([_.KT("downloadQualityPickerEntity"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],PN.prototype,"updateQualityOptions",null);_.T([_.b({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],PN);
_.z(PN,"ytd-download-quality-selector-renderer",function(){if(qnE!==void 0)return qnE;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return qnE=M},{mode:1});var GBs;var ib=function(){return _.Q.apply(this,arguments)||this};
_.l(ib,_.Q);ib.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ib.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"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ib.prototype,"data",void 0);_.T([_.B({computed:"computeIcon_(data.infoIcon)"}),_.r("design:type",Object)],ib.prototype,"infoIcon",void 0);
_.T([_.B({computed:"computeIcon_(data.warningIcon)"}),_.r("design:type",Object)],ib.prototype,"warningIcon",void 0);_.T([_.b({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],ib);
_.z(ib,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(GBs!==void 0)return GBs;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return GBs=M},{mode:1});var KAM;var cN=function(){return _.Q.apply(this,arguments)||this};
_.l(cN,_.Q);cN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
cN.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"}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],cN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],cN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],cN.prototype,"data",void 0);_.T([_.b({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],cN);
_.z(cN,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(KAM!==void 0)return KAM;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return KAM=M},{mode:1});var nOw;var gd=function(){return _.Q.apply(this,arguments)||this};
_.l(gd,_.Q);gd.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
gd.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"}}}}};
gd.prototype.onServiceRequestSentOrCompleted=function(M,q){q&&q.actions&&q.actions.length>0&&_.VW(this.hostElement,"yt-close-popup-action",[this.is])};
gd.prototype.onServiceRequestSentOrCompleted=gd.prototype.onServiceRequestSentOrCompleted;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gd.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],gd.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],gd.prototype,"data",void 0);
_.T([_.GQ("yt-service-request-completed"),_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],gd.prototype,"onServiceRequestSentOrCompleted",null);_.T([_.b({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],gd);
_.z(gd,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(nOw!==void 0)return nOw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return nOw=M},{mode:1});var EOv;var BN=function(){var M=_.Q.apply(this,arguments)||this;M.submitButtonDisabled=!0;return M};
_.l(BN,_.Q);_.N=BN.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.N.onDataChanged=function(){var M,q,G;if(((M=this.data)==null?void 0:(q=M.confirmButton)==null?void 0:(G=q.buttonRenderer)==null?void 0:G.isDisabled)!==void 0){var K,n,E;this.submitButtonDisabled=(K=this.data)==null?void 0:(n=K.confirmButton)==null?void 0:(E=n.buttonRenderer)==null?void 0:E.isDisabled}};
_.N.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.N.updateSubmitButtonDisabledFromBinding=function(M){this.submitButtonDisabled=M.detail.value};
_.N.updateSubmitButtonDisabledFromConfirmCheckbox=function(M){this.submitButtonDisabled=!M.detail.value};
BN.prototype.onDataChanged=BN.prototype.onDataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],BN.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],BN.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],BN.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],BN.prototype,"submitButtonDisabled",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],BN.prototype,"onDataChanged",null);_.T([_.b({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],BN);
_.z(BN,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(EOv!==void 0)return EOv;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return EOv=M},{mode:1});var NRU;var QK=function(){return _.Q.apply(this,arguments)||this};
_.l(QK,_.Q);_.Yd.Object.defineProperties(QK.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var M,q,G;return((M=this.data)==null?void 0:M.title)+" "+((q=this.data)==null?void 0:q.metadataPrimary)+" "+((G=this.data)==null?void 0:G.metadataSecondary)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],QK.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QK.prototype,"data",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],QK.prototype,"ariaLabel",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],QK);
_.z(QK,"ytd-compact-product-list-item-renderer",function(){if(NRU!==void 0)return NRU;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return NRU=M},{mode:1});var kBv;var I0=function(){return _.Q.apply(this,arguments)||this};
_.l(I0,_.Q);I0.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]]"}}}}}};
_.Yd.Object.defineProperties(I0.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],I0.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],I0.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],I0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],I0.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],I0);
_.z(I0,"ytd-compact-product-list-renderer",function(){if(kBv!==void 0)return kBv;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return kBv=M},{mode:1});var pqn;var DK=function(){return _.Q.apply(this,arguments)||this};
_.l(DK,_.Q);_.N=DK.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.N.getBackgroundUrl=function(){var M=this.get("data.headerImage.thumbnails");return M?"url("+_.TE(M,this.hostElement.clientWidth)+")":""};
_.N.onDataChanged=function(){var M=this.getBackgroundUrl();M&&(this.header.style.backgroundImage=M);M=_.Cx();var q=_.wt(),G=this.get("data.trackingParams");G&&q&&M&&_.QQ(M,q,_.yx(G));M=_.k(this.hostElement.querySelectorAll("yt-img-shadow"));for(q=M.next();!q.done;q=M.next())q.value.onShow()};
_.N.onPopupClosed=function(M){_.ba(M).localName==="ytd-membership-post-cancel-renderer"&&_.VW(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
DK.prototype.onPopupClosed=DK.prototype.onPopupClosed;DK.prototype.onDataChanged=DK.prototype.onDataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],DK.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],DK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],DK.prototype,"data",void 0);_.T([_.ET("#header"),_.r("design:type",HTMLDivElement)],DK.prototype,"header",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],DK.prototype,"onDataChanged",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],DK.prototype,"onPopupClosed",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],DK);
_.z(DK,"ytd-membership-post-cancel-renderer",function(){if(pqn!==void 0)return pqn;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return pqn=M},{mode:1});var yIw;var ub=function(){return _.Q.apply(this,arguments)||this};
_.l(ub,_.Q);ub.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
ub.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ub.prototype,"data",void 0);_.T([_.ET("ytd-feedback-survey-renderer"),_.r("design:type",Object)],ub.prototype,"feedbackSurveyRenderer",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],ub);
_.z(ub,"ytd-sponsorship-confirm-cancel-content",function(){if(yIw!==void 0)return yIw;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return yIw=M},{mode:1});var LAI;var J8=function(){var M=_.Q.apply(this,arguments)||this;M.maybeSubmitFeedback=function(){M.content&&M.content.maybeSubmitFeedback()};
return M};
_.l(J8,_.Q);_.N=J8.prototype;_.N.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.N.onYtPopupOpened=function(M,q){q===this&&this.data&&this.data.onOpenCommands&&_.FH(this.hostElement,this.data.onOpenCommands,this.hostElement);_.VW(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.N.onYtPopupClosed=function(M,q){(q&&q.canceled===!0||q&&q.canceled===!1&&q.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.FH(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.N.onYtServiceRequestCompleted=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.N.onYtServiceRequestError=function(M){_.Qu(this.hostElement,M.detail.error.message)};
_.N.onDataChanged=function(){if(this.isAttached){var M=this.backgroundUrl;M&&(_.f_(this.hostElement).querySelector("#header").style.backgroundImage=M)}};
_.Yd.Object.defineProperties(J8.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return M?"url("+_.TE(M,this.hostElement.clientWidth)+")":""}}});
J8.prototype.onDataChanged=J8.prototype.onDataChanged;J8.prototype.onYtServiceRequestError=J8.prototype.onYtServiceRequestError;J8.prototype.onYtServiceRequestCompleted=J8.prototype.onYtServiceRequestCompleted;J8.prototype.onYtPopupClosed=J8.prototype.onYtPopupClosed;J8.prototype.onYtPopupOpened=J8.prototype.onYtPopupOpened;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],J8.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],J8.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],J8.prototype,"data",void 0);_.T([_.B({value:function(){return _.Ge("SBOX_INAPPROPRIATE_CANCEL")}}),
_.r("design:type",String)],J8.prototype,"closeButtonAriaLabel",void 0);_.T([_.ET("#scrollable"),_.r("design:type",Object)],J8.prototype,"scrollable",void 0);_.T([_.ET("ytd-sponsorship-confirm-cancel-content"),_.r("design:type",Object)],J8.prototype,"content",void 0);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],J8.prototype,"onYtPopupOpened",null);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],J8.prototype,"onYtPopupClosed",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],J8.prototype,"onYtServiceRequestCompleted",null);
_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],J8.prototype,"onYtServiceRequestError",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],J8.prototype,"onDataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],J8);
_.z(J8,"ytd-sponsorship-confirm-cancel-renderer",function(){if(LAI!==void 0)return LAI;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return LAI=M},{mode:_.VO("kevlar_poly_si_batch_j081")?1:2});var Ynw;var ZK=function(){return _.Q.apply(this,arguments)||this};
_.l(ZK,_.Q);ZK.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],ZK.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],ZK);
_.z(ZK,"ytd-sponsorships-celebration-content",function(){if(Ynw!==void 0)return Ynw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Ynw=
M},{mode:1});var WAs;var AIw=_.DQ(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),bb=function(){var M=_.Q.apply(this,arguments)||this;M.scriptsAppended=!1;M.useFullWidthPrimaryButton=!1;M.buttonOverrides={type:"tonal",style:"overlay-dark"};return M};
_.l(bb,_.Q);_.N=bb.prototype;_.N.dataChanged=function(){var M;this.useFullWidthPrimaryButton=!((M=this.data)==null||!M.useFullWidthPrimaryButton)};
_.N.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:_.w("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.onDataChanged=function(){var M;(M=this.header)==null||M.style.setProperty("background-color",this.backgroundColor);if(M=this.headerImageUrl){var q;(q=this.header)==null||q.style.setProperty("background-image",M)}q=_.Cx(4);M=_.wt(4);var G=this.get("data.trackingParams");if(G&&M&&q){var K=_.yx(G);_.QQ(q,M,K);_.w("combine_ve_grafts")?_.nl().graftServerVe(G,M,4):_.QQ(q,M,K)}q=_.k(this.hostElement.querySelectorAll("yt-img-shadow"));for(M=q.next();!M.done;M=q.next())M.value.onShow();if(q=this.get("data.gtmId"))_.Bz(q,
_.R9("GL","")),this.setupConversionTracking()};
_.N.setupConversionTracking=function(){if(!this.scriptsAppended){var M=document.createElement("script");_.nv(M,_.Gp(AIw.join("")));document.head.appendChild(M);M=document.createElement("noscript");M.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(M);this.scriptsAppended=!0}};
_.N.onPopupClosed=function(M){if(_.ba(M).localName==="ytd-sponsorships-celebration-renderer"){_.VW(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var q;this.data&&((q=this.data)==null?0:q.dismissCommand)&&_.$A.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Yd.Object.defineProperties(bb.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.C_(M)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return M?"url("+_.TE(M,this.hostElement.getBoundingClientRect().width)+")":""}}});
bb.prototype.onPopupClosed=bb.prototype.onPopupClosed;bb.prototype.onDataChanged=bb.prototype.onDataChanged;bb.prototype.dataChanged=bb.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],bb.prototype,"data",void 0);
_.T([_.ET("#header"),_.r("design:type",HTMLElement)],bb.prototype,"header",void 0);_.T([_.B(),_.r("design:type",Object)],bb.prototype,"scriptsAppended",void 0);_.T([_.B({type:Boolean,reflectToAttribute:!0}),_.r("design:type",Object)],bb.prototype,"useFullWidthPrimaryButton",void 0);_.T([_.B(),_.r("design:type",Object)],bb.prototype,"buttonOverrides",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bb.prototype,"dataChanged",null);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],bb.prototype,"onDataChanged",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],bb.prototype,"onPopupClosed",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],bb);
_.z(bb,"ytd-sponsorships-celebration-renderer",function(){if(WAs!==void 0)return WAs;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return WAs=M},{mode:1});var dd5;var UR=function(){var M=_.Q.apply(this,arguments)||this;M.isToggleChecked=!1;return M};
_.l(UR,_.Q);UR.prototype.onDataChanged=function(){var M;this.isToggleChecked=((M=this.data)==null?void 0:M.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
UR.prototype.close=function(){var M;((M=this.data)==null?0:M.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
UR.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var M,q=_.C((M=this.data)==null?void 0:M.switchButton,yJ5);q&&(this.isToggleChecked&&q.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(q.switchOnInnertubeCommand),!this.isToggleChecked&&q.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(q.switchOffInnertubeCommand))};
UR.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
UR.prototype.onDataChanged=UR.prototype.onDataChanged;_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],UR.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],UR.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],UR.prototype,"isToggleChecked",void 0);_.T([_.B({value:_.Ge("CLOSE")}),_.r("design:type",String)],UR.prototype,"closeButtonAriaLabel",void 0);
_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],UR.prototype,"onDataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],UR);
_.z(UR,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(dd5!==void 0)return dd5;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return dd5=M},{mode:1});var vOg;var xw=function(){return _.Q.apply(this,arguments)||this};
_.l(xw,_.Q);_.N=xw.prototype;_.N.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"}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.detached=function(){this.playerElement.stop()};
_.N.onYtServiceRequestCompleted=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.N.onYtServiceRequestError=function(M){_.Qu(this.hostElement,M.detail.error.message)};
_.N.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.N.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.N.getTier=function(M,q){return!M||!M.tiers||q<0?null:_.C(M.tiers[q],AJE)};
_.N.moreThanOne=function(M){return!!(M&&M.length>1)};
_.N.tierOverviewTap=function(M){var q=this;this.selectedTier=M.model.index;_.yb(this,function(){_.jP(q.hostElement,"yt-refit")})};
_.N.computeSelectedClass=function(M,q){return this.isSelected(M,q)?"selected":""};
_.N.computeButtonAriaPressed=function(M,q){return this.isSelected(M,q)?"true":"false"};
_.N.isSelected=function(M,q){return M===q};
_.N.onDataChanged=function(){_.f_(this.hostElement).querySelector("#header-overlay").style.visibility="";_.f_(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 M=_.k(this.hostElement.querySelectorAll("yt-img-shadow")),
q=M.next();!q.done;q=M.next())q.value.onShow();var G;this.set("selectedTier",(G=this.get("data.targetTierIndex"))!=null?G:0);var K;(M=(K=this.data)==null?void 0:K.onVisible)&&this.ytComponentBehavior.resolveCommand(M)};
_.N.initializeVe=function(M){var q=_.Cx(),G=_.wt(),K=this.get("data.trackingParams");G&&q&&(this.screenLayer=4,q=_.$2(_.Kq$)(void 0,69877,{clientScreenNonce:q,visualElement:G},void 0,void 0,void 0),_.of(q,69877,4),G=_.wt(4),K&&G&&(K=_.yx(K),_.QQ(q,G,K),M&&(this.offerVideoVe=_.$m(74659),_.QQ(q,K,this.offerVideoVe))))};
_.N.setHeaderBackground=function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.f_(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.C_(M);if(M=this.getHeaderImage())M=_.TE(M,screen.width),_.f_(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+M+")"};
_.N.getHeaderImage=function(){var M=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&M?M:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.N.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.N.setupVideoPlayer=function(M){var q=this,G,K,n,E;return _.L(function(p){if(p.nextAddress==1)return G=q.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),K=q.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.w("kevlar_player_update_killswitch")?q.playerElement.update({args:{autoplay:G,video_id:M,player_params:K}}):q.playerElement.loadVideoWithPlayerVars({autoplay:G,video_id:M,player_params:K}),
p.yield(q.playerElement.getPlayerPromise(),2);n=p.yieldResult;n.addEventListener("onStateChange",function(y){q.onPlayerStateChange(y)});
n.setScreenLayer(q.screenLayer);(E=_.Cx(4))&&q.offerVideoVe&&_.D_(E,q.offerVideoVe);G&&(q.pauseOtherPlayers(),q.playerElement.focusOnPlayer(),q.playerElement.getPlayer().hideControls(),_.Jp(_.r8,function(){q.fadeOutHeaderOverlay()},4E3));
_.gL(p)})};
_.N.onPlayerStateChange=function(M){M===1?this.backgroundPlayerElement&&(M=this.backgroundPlayerElement.player_.getPlayerState(),M!==1&&M!==3||this.backgroundPlayerElement.pause()):M===0&&(_.f_(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.f_(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.N.fadeOutHeaderOverlay=function(){_.f_(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.N.onHeaderTap=function(){if(this.offerVideo){_.f_(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var M;((M=this.playerElement.player_)==null?void 0:M.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(M=_.Cx(4))&&this.offerVideoVe&&_.Z_(M,this.offerVideoVe)}};
_.N.getBackgroundImageLayerClass=function(M){return M?"background-image-layer-with-video":""};
_.N.getHeaderClass=function(M){return M?"header-with-video":""};
_.N.getHeaderOverlayClass=function(M){return M?"header-overlay-with-video":""};
_.N.getTitleContainerClass=function(M,q){return M?"title-container-with-video":q?"title-container-without-video-flexible":"title-container-without-video"};
_.N.tierTitleDisplayStatus=function(M){return this.moreThanOne(M)?"hide":"show"};
_.N.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.AL().resolve(_.lq).getPlayerElement():this.backgroundPlayerElement=_.TM();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var M=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=M===1||M===3;this.backgroundPlayerElement.pause()}};
_.N.isMiniplayerActive=function(){return _.AL().resolve(_.lq).isMiniplayerActive()};
_.N.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("selected-tier-changed",this.selectedTier))};
xw.prototype.selectedTierChangedForBinding=xw.prototype.selectedTierChangedForBinding;xw.prototype.onDataChanged=xw.prototype.onDataChanged;xw.prototype.onYtPopupClosed=xw.prototype.onYtPopupClosed;xw.prototype.onYtPopupOpened=xw.prototype.onYtPopupOpened;xw.prototype.onYtServiceRequestError=xw.prototype.onYtServiceRequestError;xw.prototype.onYtServiceRequestCompleted=xw.prototype.onYtServiceRequestCompleted;
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],xw.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],xw.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],xw.prototype,"data",void 0);_.T([_.B({value:0}),_.r("design:type",Number)],xw.prototype,"selectedTier",void 0);
_.T([_.B({value:""}),_.r("design:type",String)],xw.prototype,"offerVideo",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],xw.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.T([_.B({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Fi(this)}}),
_.r("design:type",String)],xw.prototype,"playerId",void 0);_.T([_.ET("tp-yt-paper-dialog-scrollable"),_.r("design:type",Object)],xw.prototype,"scrollable",void 0);_.T([_.ET("ytd-sponsorships-tier-renderer"),_.r("design:type",Object)],xw.prototype,"tierRenderer",void 0);_.T([_.ET("#player"),_.r("design:type",Object)],xw.prototype,"playerElement",void 0);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],xw.prototype,"onYtServiceRequestCompleted",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],xw.prototype,"onYtServiceRequestError",null);
_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xw.prototype,"onYtPopupOpened",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xw.prototype,"onYtPopupClosed",null);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xw.prototype,"onDataChanged",null);
_.T([_.KT("selectedTier"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],xw.prototype,"selectedTierChangedForBinding",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],xw);
_.z(xw,"ytd-sponsorships-offer-renderer",function(){if(vOg!==void 0)return vOg;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return vOg=M},{mode:_.VO("kevlar_poly_si_batch_j077")?1:2});var haL;var z7=function(){var M=_.Q.apply(this,arguments)||this;M.buttonOverrides={type:"filled",style:"mono"};return M};
_.l(z7,_.Q);z7.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}}}}}};
z7.prototype.backgroundColorChanged=function(){var M,q,G,K=(q=_.C((M=this.data)==null?void 0:M.content,d4v))==null?void 0:(G=q.backgroundColor)==null?void 0:G.backgroundColor;K&&(M=_.w2(K),_.f_(this.hostElement).querySelector("#banner").style.backgroundColor=M,_.f_(this.hostElement).querySelector("#abstract-art").style.backgroundColor=M)};
z7.prototype.attached=function(){this.JSC$20902_scroller&&(this.JSC$20902_scroller.dialogElement=this.hostElement.parentNode,this.JSC$20902_scroller.attached&&typeof this.JSC$20902_scroller.attached==="function"&&this.JSC$20902_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
z7.prototype.backgroundColorChanged=z7.prototype.backgroundColorChanged;_.T([_.B(),_.r("design:type",Object)],z7.prototype,"data",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("#scroller"),_.r("design:type",Object)],z7.prototype,"JSC$20902_scroller",void 0);_.T([_.B(),_.r("design:type",Object)],z7.prototype,"buttonOverrides",void 0);
_.T([_.KT("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],z7.prototype,"backgroundColorChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],z7);
_.z(z7,"ytd-sponsorships-promotion-celebration-renderer",function(){if(haL!==void 0)return haL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return haL=M},{mode:_.VO("kevlar_poly_si_batch_j077")?1:2});var t75;var OQ8;var mD=function(){return _.Q.apply(this,arguments)||this};
_.l(mD,_.Q);mD.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
mD.prototype.computeIsInitiallyChecked=function(M){return M===1};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],mD.prototype,"data",void 0);_.T([_.ET("#checkbox"),_.r("design:type",Object)],mD.prototype,"checkbox",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],mD);
_.z(mD,"ytd-subscription-toggle-option-renderer",function(){if(OQ8!==void 0)return OQ8;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return OQ8=M},{mode:1});var S2=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return M};
_.l(S2,_.Q);S2.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"}}}};
S2.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
S2.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var M=_.f_(this.hostElement).querySelector("#options").selected;M=this.data.options[M].subscriptionRadioOptionRenderer.serviceEndpoint;var q=_.f_(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");q&&M&&M.modifyChannelNotificationPreferenceEndpoint&&(q=q.getValue())&&(M.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[q]);_.AL().resolve(_.vR).resolveCommand(M,{form:{element:this.hostElement}});
_.VW(this.hostElement,"yt-close-popup-action")};
_.Yd.Object.defineProperties(S2.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var M=this.data.options,q=0;q<M.length;q++){var G=M[q].subscriptionRadioOptionRenderer;if(G&&G.selected)return q}return null}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],S2.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],S2.prototype,"eventForwardingBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],S2.prototype,"data",void 0);_.T([_.c("data.options"),_.r("design:type",Object),_.r("design:paramtypes",[])],S2.prototype,"initialIndex",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],S2);
_.z(S2,"ytd-subscription-notification-options-renderer",function(){if(t75!==void 0)return t75;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return t75=M},{mode:1});var wqP;var CkP=function(){return _.Q.apply(this,arguments)||this};
_.l(CkP,_.Q);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],CkP.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],CkP.prototype,"data",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],CkP);
_.z(CkP,"ytd-tvfilm-offer-groups-renderer",function(){if(wqP!==void 0)return wqP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return wqP=M},{mode:1});var a3L;var T7=function(){return _.Q.apply(this,arguments)||this};
_.l(T7,_.Q);_.N=T7.prototype;_.N.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"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.N.computeThumbnailClass=function(M){return M.thumbnailOverlays?M.isShow?"thumbnail-show":"thumbnail-movie":M.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.N.computeCommerceSectionClass=function(M){return M.offers&&M.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.N.computeTitleClass=function(M){return M.offers&&M.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.N.onDataChanged=function(){[].concat(_.Ui(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(M){M.onShow()})};
T7.prototype.onDataChanged=T7.prototype.onDataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],T7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],T7.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],T7.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],T7.prototype,"onDataChanged",null);
_.T([_.b({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],T7);
_.z(T7,"ytd-ypc-offers-overlay-renderer",function(){if(a3L!==void 0)return a3L;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return a3L=M},{mode:_.VO("kevlar_poly_si_batch_j028")?1:2});var oOP;var l3g=function(){this.usedMethods=new Set};
l3g.prototype.add=function(M){this.usedMethods.add(M)};
l3g.prototype.reset=function(){this.usedMethods.clear()};var iQg=function(M,q){this.query=M;this.previousSearchQuery=q;this.id=Xqg++;if(!Pk8){q=_.R9("SBOX_SETTINGS");M="https://"+((q==null?void 0:q.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var G=q==null?void 0:q.REQUEST_LANGUAGE;G&&(M+="&hl="+G);(G=q==null?void 0:q.REQUEST_DOMAIN)&&(M+="&gl="+G);M+="&client=youtube&gs_ri=youtube";(G=q==null?void 0:q.SUGG_EXP_ID)&&(M+="&sugexp="+encodeURIComponent(G));(G=q==null?void 0:q.PSUGGEST_TOKEN)&&(M+="&tok="+G);(q=
q==null?void 0:q.SESSION_INDEX)&&(M+="&authuser="+q);_.w("desktop_enable_visual_suggest")&&(M+="&h=180&w=320&ytvs=1");Pk8=M}},cII=function(M){var q="q="+encodeURIComponent(M.query);
M.previousSearchQuery&&(q+="&pq="+encodeURIComponent(M.previousSearchQuery));return q},gO8=function(){var M=_.R9("SBOX_SETTINGS"),q={};
if(M==null?0:M.SEND_VISITOR_DATA)q["X-Goog-Visitor-Id"]=M==null?void 0:M.VISITOR_DATA;return q},BRM=function(M){var q=Pk8;
q+="&gs_id="+M.id.toString(36);q+="&q="+encodeURIComponent(M.query);q+="&cp="+M.query.length;M.previousSearchQuery&&(q+="&pq="+encodeURIComponent(M.previousSearchQuery));(M=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(q+="&video_id="+M);return q},Xqg=0,Pk8="";var Q7g=_.CH.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,I3w=_.CH.SEARCH_ENTITY_SUGGESTION_MOVIE,Dd5=_.CH.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,ukv=_.CH.SEARCH_ENTITY_SUGGESTION_TV_SHOW,JIs=function(M,q){this.text=M;this.bold=q},ZQn=function(M,q,G){this.input=q;
this.index=G;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=M[0];this.type=M[1];this.subtypes=M[2];var K;this.displayText=Kq((K=M[3])==null?void 0:K.b);var n;this.ignoredPrefix=Kq((n=M[3])==null?void 0:n.a);var E,p;this.hasNewVideo=((E=M[3])==null?void 0:(p=E.zam)==null?void 0:p.toString())==="true"?!0:!1;var y;this.visualSuggestUrl=(y=M[3])==null?void 0:y.zai;var Y;this.entityType=Kq((Y=M[3])==null?void 0:Y.zap);var A;this.entityName=Kq((A=M[3])==null?void 0:A.zao);var v;q=Kq((v=
M[3])==null?void 0:v.zaf);var h;this.entityMid=(h=M[3])==null?void 0:h.zae;v=Yvn(this.subtypes,this.entityMid);if(q&&v){if(q){h="";switch(v){case "YOUTUBE_ENTITY_TYPE_SONG":h=Dd5;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":h=Q7g;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":h=ukv;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":h=I3w}v=v==="YOUTUBE_ENTITY_TYPE_SONG"||v==="YOUTUBE_ENTITY_TYPE_ALBUM"?h+" \u2022  \u2022 "+q:q}else v="";this.entitySubtitle=v}var t;this.externalChannelId=(t=M[3])==null?void 0:t.zav;var O;
this.entityThumbnailAttributionUrl=(O=M[3])==null?void 0:O.zaq},Ud8=function(M,q){var G=[],K,n=(K=M.displayText)!=null?K:M.text;
(q==null?0:q.useEntityName)&&bQM(M)&&M.entityName&&(n=M.entityName);if(M.type===33)return G.push(new JIs(n,!1)),G;if(n.length>=M.input.length&&n.substring(0,M.input.length)===M.input)G.push(new JIs(M.input,!1)),G.push(new JIs(n.substring(M.input.length),!0));else{var E=new Set(M.input.split(/\s/)),p=n.split(/\s/);G=p.map(function(y,Y){return new JIs(y.trim()+(Y===p.length-1?"":" "),!E.has(y))})}return G},bQM=function(M){var q=!!Yvn(M.subtypes);
M=!!M.entityMid;return q||M};var xdv=function(M){this.rawResponse=["",[],{}];this.suggestions=[];try{var q=JSON.parse(W6n(M));if(typeof q==="object"&&q!==null)this.rawResponse=q;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(K){console.log("Suggest: Failed to parse SuggestResponse!");return}var G=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(K,n){return new ZQn(K,G,n)})};var zaE=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new l3g;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$20939_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},mdL,SnI=function(){mdL||(mdL=new zaE);
return mdL};
zaE.prototype.updateSuggestions=function(M){var q=this;this.availableSuggestions.forEach(function(G){q.previousSuggestions[G]=!0});
this.availableSuggestions=M.map(function(G){var K=G.type.toString();G.subtypes.length>0&&(K+="i"+G.subtypes.join("i"),K+="k"+G.suggestionSources.COMPLETE_SERVER.toString());return K})};
var TRn=function(M,q){var G=Date.now();M.firstEditTime<0&&(M.firstEditTime=G);q&&(M.lastQueryBuildTime=G);M.lastEditTime=G};
zaE.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$20939_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var rIU=function(M){var q="";M.availableSuggestions.forEach(function(n){delete M.previousSuggestions[n]});
for(var G=_.k(Object.keys(M.previousSuggestions)),K=G.next();!K.done;K=G.next())K=K.value,M.previousSuggestions[K]&&(q+=(q?"j":"")+K);return q},j7I=function(M,q){var G=[];
q&&(G[1]=q.toString());G[0]="youtube";G[7]=Date.now()-M.startTime;G[6]=M.sessionNumber;M.zeroPrefixSuggestionCount>=0&&(G[33]=M.zeroPrefixSuggestionCount);G[13]=M.outOfSyncResponseCount;if(M.availableSuggestions.length>0){for(var K=q="",n=0,E=_.k(M.availableSuggestions),p=E.next();!p.done;p=E.next())p=p.value,p!==K&&(n>1&&(q+="l"+n),q+=(K?"j":"")+p,n=0,K=p),n+=1;n>1&&(q+="l"+n);G[3]=q}G[35]=rIU(M);M.selectedSuggestionIndex>=0&&(G[2]=M.selectedSuggestionIndex);var y;if(q=(y=_.R9("SBOX_SETTINGS"))==
null?void 0:y.SUGG_EXP_ID)G[19]=M.normalize(q),y=0,M.experimentTriggeredBeforeFinal&&(y|=1),M.experimentTriggeredFinal&&(y|=2),G[20]=y;G[26]=Array.from(M.inputMethodsTracker.usedMethods).join("j");if(M.JSC$20939_totalRoundTripTime>0){G[15]=M.JSC$20939_totalRoundTripTime;G[14]=M.maxRoundTripTime;y=[];for(n=q=0;n<10;n++)K=M.roundTripTimeHistogram[n],K===0?q++:(q>1?y.push(n+"-"+K):q===1?y.push("0j"+K):y.push(K.toString()),q=0);y=y.join("j");G[16]=y}M.zeroPrefixRoundTripTime>0&&(G[36]=M.zeroPrefixRoundTripTime);
M.lastQueryBuildTime>0&&(G[18]=M.lastQueryBuildTime-M.startTime);M.firstEditTime>0&&(G[4]=M.firstEditTime-M.startTime);M.lastEditTime>0&&(G[5]=M.lastEditTime-M.startTime);return G.join(".")};
zaE.prototype.normalize=function(M){return M.replaceAll(".","-")};
var V75=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var rd=function(){var M=_.Q.apply(this,arguments)||this;M.microphoneSpinnerActive=!1;M.noAnimations=!1;M.boundExitClick=function(){M.onExitButtonClick()};
M.speechOverlayClassName="";M.isLevelAnimating=!1;M.playCloseDialogAudioFeedback=!0;M.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return M};
_.l(rd,_.Q);_.N=rd.prototype;_.N.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.N.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=lzs()};
_.N.dataChanged=function(){this.logDialog()};
_.N.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var M;(M=this.manager.audioPlayer)!=null&&(M.JSC$20254_audioEnabled=!1)}this.manager.stop();(M=this.manager.audioPlayer)!=null&&(M.JSC$20254_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.N.handleSpeechQueryCompleteAction=function(M){var q=M.navigationAction;q&&(M.trackingParams&&_.nl().graftServerVe(M.trackingParams,this.dialogVe,5),_.jP(this.hostElement,"yt-navigate",{endpoint:q,tempData:this.getNavigationParams(q),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.N.onExitButtonClick=function(){this.closeDialog()};
_.N.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var M;if((M=this.manager)!=null){var q;(q=M.audioPlayer)==null||Gr(q,"failure");M.setState("microphone-off");M.stop()}}else(M=this.manager)==null||M.start()};
_.N.transcriptionChanged=function(){var M,q;(((M=this.transcription)==null?0:M.low)||((q=this.transcription)==null?0:q.high))&&this.setState("transcribing",this.transcription)};
_.N.stateChanged=function(){this.setState(this.state,this.transcription)};
_.N.logDialog=function(){var M;(M=this.data)!=null&&M.trackingParams&&(M=_.nl(),_.aQ(M,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=M.graftServerVe(this.data.trackingParams,void 0,5))};
_.N.getNavigationParams=function(M){var q={};if(_.w("web_yt_searchbox")){var G=SnI();G.inputMethodsTracker.add(6);G=j7I(G,15);q.gs_l=G;var K;q.oq=((K=_.C(M,_.Ep))==null?void 0:K.query)||""}else if(M=window.ytvoicesearchloggingparams){if(M=M())q.oq=M.oq,q.gs_l=M.gs_l}else _.Mz(Error("Il"));return q};
_.N.closeDialog=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.N.setState=function(M,q){if(this.data){var G=this.data,K={};switch(M){case "listening":K={headerText:G.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:G.microphoneButtonAriaLabel};break;case "timeout":K={headerText:G.promptHeader,microphoneState:"try-again",microphoneLabel:G.promptMicrophoneLabel,microphoneAriaLabel:G.promptMicrophoneLabel};break;case "microphone-off":K={headerText:G.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:G.promptMicrophoneLabel,
microphoneAriaLabel:G.promptMicrophoneLabel};break;case "transcribing":(q==null?0:q.low)||(q==null?0:q.high)?K={transcriptionLow:q==null?void 0:q.low,transcriptionHigh:q==null?void 0:q.high,microphoneState:"speaking",microphoneAriaLabel:G.microphoneButtonAriaLabel}:K={headerText:G.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:G.microphoneButtonAriaLabel};break;case "processing":K={headerText:G.loadingHeader,microphoneState:"processing",microphoneAriaLabel:G.microphoneButtonAriaLabel};
break;case "offline":K={headerText:G.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:G.connectionErrorMicrophoneLabel,microphoneAriaLabel:G.connectionErrorMicrophoneLabel};break;case "permission":K={headerText:G.permissionsHeader,bodyLine1:G.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:G.permissionsSubtext};break;case "permission-denied":K={headerText:G.disabledHeader,bodyLine1:G.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:G.disabledSubtext}}K.className=
M;this.speechOverlayState=K;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.N.setMicrophoneState=function(M){var q=this.isLevelAnimating;this.isLevelAnimating=M==="speaking";!q&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=M==="processing"&&!this.noAnimations};
_.N.setClass=function(M){this.speechOverlayClassName&&_.HE(this.hostElement,this.speechOverlayClassName,!1);M&&(this.speechOverlayClassName=M,_.HE(this.hostElement,M,!0))};
_.N.runLevelAnimation=function(){var M=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var q=1+Math.random()*.75,G=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+G/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+q+")");_.r8.addJob(function(){M.runLevelAnimation()},3,G)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
rd.prototype.stateChanged=rd.prototype.stateChanged;rd.prototype.transcriptionChanged=rd.prototype.transcriptionChanged;rd.prototype.onPopupClosed=rd.prototype.onPopupClosed;rd.prototype.dataChanged=rd.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],rd.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],rd.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],rd.prototype,"rendererStamperBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],rd.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],rd.prototype,"eventForwardingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],rd.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],rd.prototype,"speechOverlayState",void 0);
_.T([_.B(),_.r("design:type",Object)],rd.prototype,"microphoneSpinnerActive",void 0);_.T([_.B({type:_.w("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.r("design:type",Object)],rd.prototype,"noAnimations",void 0);_.T([_.B({selector:function(M){var q;return(q=M.voiceSearch)==null?void 0:q.transcription}}),
_.r("design:type",Object)],rd.prototype,"transcription",void 0);_.T([_.B({selector:function(M){var q;return(q=M.voiceSearch)==null?void 0:q.overlay}}),
_.r("design:type",String)],rd.prototype,"state",void 0);_.T([_.B(),_.r("design:type",Object)],rd.prototype,"boundExitClick",void 0);_.T([_.ET("#microphone-levels"),_.r("design:type",HTMLElement)],rd.prototype,"level",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rd.prototype,"dataChanged",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rd.prototype,"onPopupClosed",null);
_.T([_.yO("transcription"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rd.prototype,"transcriptionChanged",null);_.T([_.yO("state"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],rd.prototype,"stateChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],rd);
_.z(rd,"ytd-voice-search-dialog-renderer",function(){if(oOP!==void 0)return oOP;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return oOP=M},{mode:1});var Ra5;var j2=function(){var M=_.Q.apply(this,arguments)||this;M.isOverlay=!1;M.hidden=!1;return M};
_.l(j2,_.Q);_.N=j2.prototype;_.N.onPopupClosed=function(){this.toggleIconState(!1)};
_.N.computeIcon=function(){var M,q,G;return(q=_.C((M=this.data)==null?void 0:M.icon,w9I))==null?void 0:(G=q.icon)==null?void 0:G.iconType};
_.N.computeIconBadgeShape=function(){var M;return{iconBadgeType:"cart",iconBadgeText:(M=this.iconBadgeEntity)==null?void 0:M.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.N.onClick=function(){var M;(M=this.data)!=null&&M.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.N.computeHidden=function(M){return!M};
_.N.toggleIconState=function(M){this.iconButton&&(this.iconButton.pressed=M)};
j2.prototype.onPopupClosed=j2.prototype.onPopupClosed;_.T([_.P(_.mr),_.r("design:type",Object)],j2.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],j2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],j2.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],j2.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],j2.prototype,"isOverlay",void 0);
_.T([_.B({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.r("design:type",Object)],j2.prototype,"hidden",void 0);_.T([_.B({selectorArgs:["data.iconBadgeEntityKey"],selector:function(M,q){return _.sX(M.entities,"iconBadgeEntity",q)}}),
_.r("design:type",Object)],j2.prototype,"iconBadgeEntity",void 0);_.T([_.ET("yt-icon-button"),_.r("design:type",HTMLButtonElement)],j2.prototype,"iconButton",void 0);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],j2.prototype,"onPopupClosed",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],j2);
_.z(j2,"ytd-icon-badge-topbar-button-renderer",function(){if(Ra5!==void 0)return Ra5;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return Ra5=M},{mode:1});var f3L;var VK=function(){var M=_.Q.apply(this,arguments)||this;M.premiumOptions=[];return M};
_.l(VK,_.Q);VK.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Yd.Object.defineProperties(VK.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],VK.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Array)],VK.prototype,"premiumOptions",void 0);_.T([_.c("premiumOptions"),_.r("design:type",Object),_.r("design:paramtypes",[])],VK.prototype,"hasPremiumOptions",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],VK);
_.z(VK,"ytd-offline-promo-content",function(){if(f3L!==void 0)return f3L;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return f3L=M},{mode:1});var FAL;var R0=function(){var M=_.Q.apply(this,arguments)||this;M.premiumOptions=[];return M};
_.l(R0,_.Q);R0.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var M;this.premiumOptions=L6w((M=this.data)==null?void 0:M.formats)};
R0.prototype.onClickSubmit=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var M;(M=_.TM())==null||M.pause()};
R0.prototype.attached=function(){this.JSC$20959_scroller&&(this.JSC$20959_scroller.dialogElement=this.hostElement.parentNode)};
_.Yd.Object.defineProperties(R0.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
R0.prototype.dataChanged=R0.prototype.dataChanged;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],R0.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],R0.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],R0.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],R0.prototype,"data",void 0);
_.T([_.B({computed:"computeIcon_(data.headersIcon)",value:""}),_.r("design:type",String)],R0.prototype,"headersIcon",void 0);_.T([_.B(),_.r("design:type",Array)],R0.prototype,"premiumOptions",void 0);_.T([_.ET("#scroller"),_.r("design:type",Object)],R0.prototype,"JSC$20959_scroller",void 0);_.T([_.c("headersIcon"),_.r("design:type",Object),_.r("design:paramtypes",[])],R0.prototype,"showIcon",null);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],R0.prototype,"dataChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],R0);
_.z(R0,"ytd-offline-promo-renderer",function(){if(FAL!==void 0)return FAL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return FAL=M},{mode:1});var HQL;var f6=function(){var M=_.Q.apply(this,arguments)||this;M.playbackPauseInterval=NaN;M.isLoading=!1;M.hasError=!1;M.dialogClass="";M.youtubeLabel=_.Ge("LOGO_ALT_LABEL",{},"YouTube Home");M.logoName="yt-logos-ext:yt-logo-updated";M.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return M};
_.l(f6,_.Q);_.N=f6.prototype;_.N.onDataChange=function(){var M;if(this.showEOMV1Text=!((M=this.data)==null||!M.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.N.attached=function(){this.pausePlayer()};
_.N.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.N.handleLangSelect=function(M){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[M.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.N.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.N.handleSaveConsent=function(M){var q=this;this.showLoadingSpinner();this.showLoadingSpinner();M5M(_.C(M,CJE)).catch(function(G){_.j1(new _.bj("Something went wrong when save consent "+(G.message?G.message:G)+"."));q.hideLoadingSpinner();q.showErrorMessage()})};
_.N.handleDisablePersonalization=function(M){var q=this;this.showLoadingSpinner();qEP(_.C(M,weR)).then(function(){q.dialog.close();q.resumePlayer()}).catch(function(G){_.j1(new _.bj("Something went wrong when disable personalization "+(G.message?G.message:G)+"."));
q.hideLoadingSpinner();q.showErrorMessage()})};
_.N.showLoadingSpinner=function(){var M=this;this.showSpinnerJobId=_.r8.addLowPriorityJob(function(){M.isLoading=!0},500)};
_.N.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.r8.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.N.showErrorMessage=function(){var M=this;this.hasError=!0;_.r8.addLowPriorityJob(function(){M.hasError=!1},2E3)};
_.N.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.XN(function(){try{var M=_.TM();M&&M.pause()}catch(q){}},100))};
_.N.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var M=_.TM();M&&M.play()}catch(q){}};
_.Yd.Object.defineProperties(f6.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.eomV1Text)return[];M=[];for(var q=["SHIELD","WARNING","BAR_CHART"],G=this.data.eomV1Text.essentialCookieMsg.items,K=0;K<q.length&&K<G.length;K++)M.push({icon:q[K],text:G[K]});return M}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var M;if((M=this.data)==null||!M.eomV1Text)return[];M=[];for(var q=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],G=this.data.eomV1Text.nonEssentialCookieMsg.items,K=0;K<q.length&&K<G.length;K++)M.push({icon:q[K],text:G[K]});return M}}});
f6.prototype.onDataChange=f6.prototype.onDataChange;_.T([_.B(),_.r("design:type",Object)],f6.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],f6.prototype,"showEOMV1Text",void 0);_.T([_.B(),_.r("design:type",Object)],f6.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Object)],f6.prototype,"hasError",void 0);_.T([_.B(),_.r("design:type",Number)],f6.prototype,"showSpinnerJobId",void 0);_.T([_.B(),_.r("design:type",Object)],f6.prototype,"dialogClass",void 0);
_.T([_.ET("#dialog"),_.r("design:type",Object)],f6.prototype,"dialog",void 0);_.T([_.ET("#cb-header"),_.r("design:type",HTMLElement)],f6.prototype,"header",void 0);_.T([_.ET("#lang-select"),_.r("design:type",HTMLElement)],f6.prototype,"langSelect",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],f6.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],f6.prototype,"ytComponentBehavior",void 0);
_.T([_.B(),_.r("design:type",String)],f6.prototype,"youtubeLabel",void 0);_.T([_.B(),_.r("design:type",Object)],f6.prototype,"logoName",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],f6.prototype,"onDataChange",null);_.T([_.c("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],f6.prototype,"eomEssentialCookieMsgItems",null);
_.T([_.c("data"),_.r("design:type",Array),_.r("design:paramtypes",[])],f6.prototype,"eomNonEssentialCookieMsgItems",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],f6);
_.z(f6,"ytd-consent-bump-v2-lightbox",function(){if(HQL!==void 0)return HQL;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return HQL=M},{mode:1});var eaR;var Fz=function(){return _.Q.apply(this,arguments)||this};
_.l(Fz,_.Q);Fz.prototype.ready=function(){if(!_.uj()||WH5)var M=!0;else WH5=!0,M=!1;M||(M=document.querySelector("ytd-app"),M||(M=document.body),this.internalLightBox=_.f_(M).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.T([_.B(),_.r("design:type",Object)],Fz.prototype,"data",void 0);_.T([_.ET("#lightbox"),_.r("design:type",Object)],Fz.prototype,"lightBox",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],Fz);
_.z(Fz,"ytd-consent-bump-v2-renderer",function(){if(eaR!==void 0)return eaR;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return eaR=M},{mode:1});var $dg;var sos;var MaL;var HN=function(){return _.Q.apply(this,arguments)||this};
_.l(HN,_.Q);_.N=HN.prototype;_.N.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&cqP(this.toastManager,this.toastType)};
_.N.open=function(M){this.toast&&(this.ephemeralAction&&_.AL().resolve(_.sJ).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=M!=null?M:0,this.toastManager.enqueue(this.toast,M)):this.toast.open())};
_.N.close=function(M){var q;(q=this.toast)==null||q.close();this.toastManager&&M===1&&cqP(this.toastManager,M)};
_.N.refit=function(){var M;(M=this.toast)==null||M.refit()};
_.N.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var M;(M=this.toast)==null||M.close()}};
_.N.setVerticalOffset=function(M){this.toast&&(this.toast.verticalOffset=M,this.toast.fit())};
_.N.computeButtonClass_=function(M){return M?"toast-button":""};
_.N.computeText_=function(M){return _.UX(M)};
_.N.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.sO("toast-opened-changed",this.toastOpened))};
_.N.updateToastOpenedFromBinding=function(M){this.toastOpened=M.detail.value};
_.Yd.Object.defineProperties(HN.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var M,q,G=(M=this.data)==null?void 0:(q=M.actionButton)==null?void 0:q.buttonRenderer;return(G==null?void 0:G.command)||(G==null?void 0:G.serviceEndpoint)||(G==null?void 0:G.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var M=[],q;((q=this.data)==null?0:q.responseText)&&M.push(_.UX(this.data.responseText));var G;((G=this.data)==null?0:G.subText)&&M.push(_.UX(this.data.subText));var K,n;if((K=this.data)==null?0:(n=K.actionButton)==null?0:n.buttonRenderer){var E,p;M.push(((E=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(p=E.accessibilityData)==null?void 0:p.label)||_.UX(this.data.actionButton.buttonRenderer.text))}return M.filter(function(y){return y}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var M,q;return(q=(M=this.toast)==null?void 0:M.opened)!=null?q:!1}}});
HN.prototype.toastOpenedChangedForBinding=HN.prototype.toastOpenedChangedForBinding;HN.prototype.toastOpenedChanged=HN.prototype.toastOpenedChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],HN.prototype,"ytEventForwardingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],HN.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],HN.prototype,"duration",void 0);
_.T([_.B(),_.r("design:type",Number)],HN.prototype,"toastType",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],HN.prototype,"useCloseButton",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],HN.prototype,"closeToastOnActionButtonClick",void 0);_.T([_.B({value:function(){return _.Ge("SBOX_INAPPROPRIATE_CANCEL")}}),
_.r("design:type",String)],HN.prototype,"closeButtonAriaLabel",void 0);_.T([_.B(),_.r("design:type",Boolean)],HN.prototype,"toastOpened",void 0);_.T([_.B(),_.r("design:type",Boolean)],HN.prototype,"hasOpened",void 0);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],HN.prototype,"command",null);_.T([_.c("labelText","command","duration"),_.r("design:type",Object),_.r("design:paramtypes",[])],HN.prototype,"ephemeralAction",null);
_.T([_.c("ephemeralAction"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],HN.prototype,"hasEphemeralAction",null);_.T([_.ET("#toast"),_.r("design:type",Object)],HN.prototype,"toast",void 0);_.T([_.B({value:function(){return{style:"call-to-action-inverse"}}}),
_.r("design:type",Object)],HN.prototype,"buttonOverrides",void 0);_.T([_.B({value:{style:"mono-inverse"}}),_.r("design:type",Object)],HN.prototype,"closeButtonOverrides",void 0);_.T([_.B({value:function(){return _.AL().resolve(_.WR(_.fm))}}),
_.r("design:type",Object)],HN.prototype,"toastManager",void 0);_.T([_.c("data.responseText","data.subText","data.actionButton"),_.r("design:type",Object),_.r("design:paramtypes",[])],HN.prototype,"labelText",null);_.T([_.KT("toastOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HN.prototype,"toastOpenedChanged",null);
_.T([_.KT("toastOpened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],HN.prototype,"toastOpenedChangedForBinding",null);_.T([_.aO({is:"yt-notification-action-renderer",disableElementRegistration:!0})],HN);
_.z(HN,"yt-notification-action-renderer",function(){if(MaL===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;sos===void 0&&(sos=document.createElement("template"));var K=sos;G.call(q,K.content.cloneNode(!0),M.content.firstChild);MaL=M}M=MaL;return M},{mode:2});var e2=function(){var M=_.Q.apply(this,arguments)||this;M.duration=4E3;M.downloadingCount=0;M.downloadedCount=0;M.downloadingOnlySmartDownloads=!1;M.sessionTotalDownloads=0;M.sessionDownloaded=0;M.previousSessionsDownloaded=0;M.totalDownloadPercentage=0;M.currentDownloadProgress=0;M.currentDownloadPercentage=0;M.isLeaderTab=!0;M.isFullScreen=!1;M.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};M.boundBeforeUnload=function(q){M.isLeaderTab&&M.downloadingCount>0&&(q.preventDefault(),
q.returnValue=!0)};
return M};
_.l(e2,_.Q);_.N=e2.prototype;
_.N.open=function(){this.updateDownloadState();if(this.data){var M=this.sessionDownloaded+1,q=this.sessionTotalDownloads>1?_.Ge("VIDEOS_DOWNLOADING_RATIO",{downloaded:M.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+M+"/"+this.sessionTotalDownloads):_.Ge("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(q=this.sessionTotalDownloads>1?_.Ge("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:M.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
M+"/"+this.sessionTotalDownloads):_.Ge("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));M=this.isLeaderTab?_.Ge("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.UX(this.data.responseText)!==q||_.UX(this.data.subText)!==M)this.set("data.responseText",_.bc(q)),this.set("data.subText",_.bc(M)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.N.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.N.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.N.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.N.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var M=this.downloadedCount-this.previousSessionsDownloaded;M<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-M);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.N.handleFullscreenChange=function(M){(this.isFullScreen=M)||this.updatePopup()};
e2.prototype.updateCurrentDownloadProgress=e2.prototype.updateCurrentDownloadProgress;e2.prototype.updatePopup=e2.prototype.updatePopup;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],e2.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],e2.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],e2.prototype,"ytEventForwardingBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],e2.prototype,"actionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],e2.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],e2.prototype,"duration",void 0);_.T([_.B({selector:function(M){return _.U5y(M.entities).length}}),
_.r("design:type",Object)],e2.prototype,"downloadingCount",void 0);_.T([_.B({selector:LYg}),_.r("design:type",Object)],e2.prototype,"downloadedCount",void 0);_.T([_.B({selector:function(M){var q=_.U5y(M.entities);return yjI(M.entities,q)}}),
_.r("design:type",Object)],e2.prototype,"downloadingOnlySmartDownloads",void 0);_.T([_.B(),_.r("design:type",Object)],e2.prototype,"sessionTotalDownloads",void 0);_.T([_.B(),_.r("design:type",Object)],e2.prototype,"sessionDownloaded",void 0);_.T([_.B(),_.r("design:type",Object)],e2.prototype,"previousSessionsDownloaded",void 0);_.T([_.B(),_.r("design:type",Object)],e2.prototype,"totalDownloadPercentage",void 0);
_.T([_.B({selector:function(M){var q;M=(q=_.U5y(M.entities))!=null?q:[];return M.length>0?_.iVs(M.slice(-1)):0}}),
_.r("design:type",Object)],e2.prototype,"currentDownloadProgress",void 0);_.T([_.B(),_.r("design:type",Object)],e2.prototype,"currentDownloadPercentage",void 0);_.T([_.B({selector:_.Tg4}),_.r("design:type",Object)],e2.prototype,"isLeaderTab",void 0);_.T([_.ET("yt-notification-action-renderer"),_.r("design:type",Object)],e2.prototype,"notificationActionRenderer",void 0);
_.T([_.yO("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],e2.prototype,"updatePopup",null);_.T([_.yO("currentDownloadProgress"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],e2.prototype,"updateCurrentDownloadProgress",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],e2);
_.z(e2,"ytd-video-download-toast-renderer",function(){if($dg!==void 0)return $dg;var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return $dg=M},{mode:1});var qkw;var G8v;var $w=function(){return _.Q.apply(this,arguments)||this};
_.l($w,_.Q);$w.prototype.computeIsRedLogo=function(M,q){!M&&q&&(M=q);return M==="YOUTUBE_RED_LOGO"||M==="YOUTUBE_PREMIUM_LOGO"};
$w.prototype.computeLogoName=function(M){M=this.componentBehavior.computeIcon_(M);return M===""?"yt-logos-ext:yt-logo-updated":M};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],$w.prototype,"componentBehavior",void 0);_.T([_.B({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.r("design:type",Boolean)],$w.prototype,"isRedLogo",void 0);_.T([_.B({computed:"computeLogoName(data)"}),_.r("design:type",String)],$w.prototype,"logoName",void 0);_.T([_.B({value:{}}),_.r("design:type",Object)],$w.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],$w.prototype,"logoType",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-logo"})],$w);
_.z($w,"ytd-logo",function(){if(G8v!==void 0)return G8v;var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return G8v=M},{mode:_.VO("kevlar_poly_si_batch_j074")?1:2});var sy=function(){var M=_.Q.apply(this,arguments)||this;M.animationRef={};return M};
_.l(sy,_.Q);_.N=sy.prototype;_.N.attached=function(){document.addEventListener("yt-navigate-finish",_.qs(this,this.logYoodle))};
_.N.detached=function(){document.removeEventListener("yt-navigate-finish",_.qs(this,this.logYoodle))};
_.N.logYoodle=function(){var M,q;if((M=this.data)==null?0:(q=M.loggingDirectives)==null?0:q.trackingParams)this.ytRendererBehavior.markDirty(),_.nl().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.N.computeHideImg=function(M,q){return!!M||!!q};
_.N.computeHideYtdLogo=function(M,q){return!M||!!q};
_.N.computeHideLottie=function(M){return!M};
_.N.computeIsRedLogo=function(M){return M==="YOUTUBE_RED_LOGO"||M==="YOUTUBE_PREMIUM_LOGO"};
_.N.renderLogoEntity=function(){var M=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),q=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),G=this.getLogoTitleText(this.data),K=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==M&&(this.url=M);this.animatedUrl!==q&&(this.animatedUrl=q);this.logoTitleText!==G&&(this.logoTitleText=G);this.lottieUrl!==K&&(this.lottieUrl=K,this.lottiePlayerProps=this.computeLottiePlayerProps(K))};
_.N.getSanitizedThumbnail=function(M){return M&&M.thumbnails?_.j7Y(M.thumbnails,122)||"":""};
_.N.getThumbnailUrl=function(M,q){if(!q)return"";var G,K;M=M?(G=q.darkThemeLogo)==null?void 0:G.thumbnail:(K=q.lightThemeLogo)==null?void 0:K.thumbnail;return this.getSanitizedThumbnail(M)};
_.N.getAnimatedThumbnailUrl=function(M,q){return q?this.getSanitizedThumbnail(M?q.darkThemeAnimatedLogo:q.lightThemeAnimatedLogo):""};
_.N.getLogoTitleText=function(M){if(M)return _.UX(M.tooltipText)};
_.N.computeLogoIcon=function(M,q){if(q){var G,K;return M?(G=q.darkThemeLogo)==null?void 0:G.icon:(K=q.lightThemeLogo)==null?void 0:K.icon}};
_.N.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.N.getLottieUrl=function(M,q){var G,K,n,E;return M?q==null?void 0:(G=q.darkThemeLogo)==null?void 0:(K=G.lottieAnimation)==null?void 0:K.url:q==null?void 0:(n=q.lightThemeLogo)==null?void 0:(E=n.lottieAnimation)==null?void 0:E.url};
_.N.computeLottiePlayerProps=function(M){if(M){var q;if((q=this.animationRef)==null?0:q.lottieEl){var G;(G=this.animationRef)==null||G.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:M,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.N.onLottieError=function(){this.data&&this.lottieUrl&&_.jP(this.hostElement,"yoodle-error")};
_.N.onImgError=function(){this.data&&!this.lottieUrl&&_.jP(this.hostElement,"yoodle-error")};
sy.prototype.playAnimation=sy.prototype.playAnimation;sy.prototype.renderLogoEntity=sy.prototype.renderLogoEntity;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],sy.prototype,"data",void 0);_.T([_.B({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.r("design:type",Boolean)],sy.prototype,"hideImg",void 0);
_.T([_.B({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.r("design:type",Boolean)],sy.prototype,"hideYtdLogo",void 0);_.T([_.B({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.r("design:type",Boolean)],sy.prototype,"hideLottie",void 0);_.T([_.B({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.r("design:type",Boolean)],sy.prototype,"isRedLogo",void 0);
_.T([_.B(),_.r("design:type",Boolean)],sy.prototype,"useDarkThemeYoodle",void 0);_.T([_.B(),_.r("design:type",String)],sy.prototype,"url",void 0);_.T([_.B(),_.r("design:type",String)],sy.prototype,"animatedUrl",void 0);_.T([_.B(),_.r("design:type",String)],sy.prototype,"logoTitleText",void 0);_.T([_.B({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.r("design:type",Object)],sy.prototype,"logoIcon",void 0);_.T([_.B(),_.r("design:type",Object)],sy.prototype,"logoType",void 0);
_.T([_.B(),_.r("design:type",String)],sy.prototype,"lottieUrl",void 0);_.T([_.B(),_.r("design:type",Object)],sy.prototype,"lottiePlayerProps",void 0);_.T([_.B(),_.r("design:type",Object)],sy.prototype,"animationRef",void 0);_.T([_.KT("data"),_.KT("useDarkThemeYoodle"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],sy.prototype,"renderLogoEntity",null);
_.T([_.GQ("click"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],sy.prototype,"playAnimation",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],sy);
_.z(sy,"ytd-yoodle-renderer",function(){if(qkw!==void 0)return qkw;var M=document.createElement("template");_.X(M,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-yoodle-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<picture hidden="[[hideImg]]" class="style-scope ytd-yoodle-renderer">\n  <source srcset$="[[animatedUrl]]" type="image/webp" class="style-scope ytd-yoodle-renderer">\n  <img src$="[[url]]" alt="[[logoTitleText]]" on-error="onImgError" class="style-scope ytd-yoodle-renderer">\n</picture>\n<ytd-logo data="[[logoIcon]]" hidden="[[hideYtdLogo]]" logo-type="[[logoType]]" class="style-scope ytd-yoodle-renderer">\n</ytd-logo>\n<ytd-lottie-player aria-label="[[logoTitleText]]" class-name="[[is]] lottie-player" data="[[lottiePlayerProps]]" class="style-scope ytd-yoodle-renderer">\n</ytd-lottie-player>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return qkw=M},{mode:_.VO("kevlar_poly_si_batch_j074")?1:2});var Kfw;var nG5;var EG8=_.gx.currentPageTypeSelector,NCn=_.gx.currentPageSubTypeSelector,Mv=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return M};
_.l(Mv,_.Q);_.N=Mv.prototype;_.N.onYoodleError=function(){_.w("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.N.computeLogoName=function(M){M=this.componentBehavior.computeIcon_(M);return M===""?"yt-logos-ext:yt-logo-updated":M};
_.N.computeTitle=function(M,q,G){return G&&(q==null?0:q.tooltipText)?_.UX(q.tooltipText):_.UX(M)};
_.N.computeAriaLabel=function(M,q,G){return G&&(q==null?0:q.tooltipText)?_.UX(M):""};
_.N.computeShowYoodle=function(M,q,G){return!M||!q&&!!G&&!_.xP.isEmpty(G)};
_.N.onNavigateHomeAction=function(){if(_.w("kevlar_miniplayer_navigate_home_from_app_killswitch")){var M;(M=_.f_(this.hostElement).querySelector(".yt-simple-endpoint"))==null||M.click()}};
_.N.computeLogoHref=function(M,q,G){var K;(G==null?0:G.onTapCommand)?K=this.componentBehavior.computeHref_(G.onTapCommand):M&&(K=this.componentBehavior.computeHref_(M));return K?K:q};
_.N.computeCommand=function(M,q){return(q==null?void 0:q.onTapCommand)||M};
_.N.getEndpointForm=function(){if(_.w("kevlar_topbar_disable_cache_only_home")){var M=_.AL().resolve(_.xy),q=EG8(M.getState())||"";M=NCn(M.getState())||"";return{disableCache:q==="ytd-browse"&&M==="home"}}return{disableCache:!0}};
Mv.prototype.onYoodleError=Mv.prototype.onYoodleError;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Mv.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Mv.prototype,"componentBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],Mv.prototype,"ytdReduxBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],Mv.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],Mv.prototype,"countryCode",void 0);_.T([_.B({selectorArgs:["data.overrideEntityKey"],selector:function(M,q){return _.sX(M.entities,"logoEntity",q)}}),
_.r("design:type",Object)],Mv.prototype,"logoEntity",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.r("design:type",Boolean)],Mv.prototype,"showYoodle",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],Mv.prototype,"yoodleError",void 0);_.T([_.B({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.r("design:type",String)],Mv.prototype,"titleText",void 0);
_.T([_.B({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.r("design:type",String)],Mv.prototype,"ariaLabelText",void 0);_.T([_.B({value:"/"}),_.r("design:type",String)],Mv.prototype,"defaultEndpointUrl",void 0);_.T([_.B({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.r("design:type",String)],Mv.prototype,"endpointUrl",void 0);
_.T([_.B({computed:"computeCommand(data.endpoint, logoEntity)"}),_.r("design:type",String)],Mv.prototype,"command",void 0);_.T([_.B(),_.r("design:type",Object)],Mv.prototype,"logoType",void 0);_.T([_.B({}),_.r("design:type",Boolean)],Mv.prototype,"useDarkThemeYoodle",void 0);_.T([_.GQ("yoodle-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Mv.prototype,"onYoodleError",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],Mv);
_.z(Mv,"ytd-topbar-logo-renderer",function(){if(nG5!==void 0)return nG5;var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return nG5=M},{mode:_.VO("kevlar_poly_si_batch_j027")?1:2});var k8M=0;var p1M=_.CH.SEARCH_APPEND_LABEL,y6I=_.CH.SUGGESTION_NEW_VIDEOS_TEXT,LfP=_.CH.SUGGESTION_THUMBNAIL_LABEL,Yk5=_.CH.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,Wf5=_.U(function(M){function q(OM){var OL,fG;return _.L(function(BI){if(BI.nextAddress==1)return OL=new Request(OM),_.Cv(BI,2),BI.yield(fetch(OL,{credentials:"include"}),4);if(BI.nextAddress!=2)return a8(!0),_.KF(BI,0);fG=_.i5(BI);_.j1(fG);_.gL(BI)})}
var G=M.isHighlighted;var K=M.suggestion;var n=M.onClickCallback;var E=M.onHoverUpdateCallback;var p=M.labels;var y=M.queryBuilderFunction;var Y=M.onRemoveCallback;var A=M.suggestionIndex;var v=M.generateUniqueId;var h=M.highlightedId;var t=M.useScrollMargin;var O=M.isKeyboardMode;var a=null,g=null,D=_.pI("div"),J=_.pI("span");M=_.k(_.lQ(!1,void 0,"mxSc0e"));var Z=M.next().value,V=M.next().value,S=_.yw("a",function(OM){OM&&_.W3(237477,OM,g,function(OL){g=OL})}),m=_.yw("button",function(OM){OM&&_.W3(237477,
OM,g,function(OL){g=OL})}),R=_.sq(function(OM){if((OM==null?void 0:OM.button)===2)return OM.preventDefault(),!1;
var OL=_.Cx();OL&&a&&_.bO(OL,a,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var fG;n(OM,K().text,K().index,K().entityMid,OM==null?void 0:(fG=OM.detail)==null?void 0:fG.wasSelectedByKeyboard);return!1}),se=function(){return K().type===35},yY=function(){return _.w("desktop_enable_single_suggestion_highlight")},d$=function(){return _.tL("desktop_suggestions_panel_row_height")||0},cy=function(){var OM;
return _.w("desktop_enable_new_video_metadata")&&((OM=K())==null?void 0:OM.hasNewVideo)===!0},t4=function(){return _.w("desktop_enable_visual_suggest")},ay=function(){return _.w("desktop_enable_entity_suggest")&&bQM(K())},bH=function(){return K().entitySubtitle},iH=function(){return yY()?(G==null?void 0:G())||Mx()&&!(O==null?0:O()):(G==null?void 0:G())||Mx()},oI=function(){var OM=_.R9("SBOX_SETTINGS");
return se()&&!(OM==null?0:OM.HIDE_REMOVE_LINK)},r9=function(){return Ud8(K(),{useEntityName:ay()})},X2,EM=!((X2=_.AL().resolve(_.WR(_.Qx)))==null||!X2()),LP=function(){return se()?_.w("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Pv=function(){return p==null?void 0:p().SUGGESTION_DISMISS_LABEL},g9=function(){return p==null?void 0:p().SUGGESTION_DISMISSED_LABEL};
M=_.k(_.lQ(!1,void 0,"WMms1e"));X2=M.next().value;var a8=M.next().value;M=_.k(_.lQ(!1,void 0,"PyL0t"));var tE=M.next().value,ND=M.next().value,Mx=tE,hd=_.sq(function(){y(J.value.innerText);return!1}),Kn=_.sq(function(OM){OM.preventDefault();
return!1}),w9=_.sq(function(OM){var OL=K().text,fG=_.R9("SBOX_SETTINGS"),BI="https://"+(fG.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
BI+="&delq="+encodeURIComponent(OL);(OL=fG==null?void 0:fG.PSUGGEST_TOKEN)&&(BI+="&tok="+OL);(fG=fG==null?void 0:fG.SESSION_INDEX)&&(BI+="&authuser="+fG);q(BI);OM.preventDefault();(OM=_.Cx())&&g&&_.bO(OM,g,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");Y(A==null?void 0:A());return!1}),Gs=_.sq(function(){if(yY()&&(O==null?0:O()))return!1;
ND(!0);E(!0);return!1}),u5=_.sq(function(){ND(!1);
E(!1);return!1}),jJ=_.sq(function(){V(!0);
return!1}),Ad=_.sq(function(){V(!1);
return!1}),Wv=_.sq(function(OM){OM.preventDefault();
if(K().entityThumbnailAttributionUrl){var OL=K().entityThumbnailAttributionUrl;OM=K().entityName;var fG={dismissDialogEndpoint:{}};OL={commandExecutorCommand:{commands:[fG,{urlEndpoint:{url:OL,target:"TARGET_NEW_WINDOW"},commandMetadata:{webCommandMetadata:{url:OL}}}]}};fG={buttonViewModel:{title:_.Ge("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:fG}}};OL={buttonViewModel:{title:_.Ge("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_BUTTON_LABEL"),
style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:OL}}};OM={dialogHeaderViewModel:{headline:{content:OM!=null?OM:_.Ge("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_TITLE"),alignment:"TEXT_ALIGNMENT_CENTER"}}};var BI={basicContentViewModel:{paragraphs:[{text:{content:_.Ge("SUGGESTION_THUMBNAIL_ATTRIBUTION_DIALOG_DESCRIPTION"),alignment:"TEXT_ALIGNMENT_CENTER"}}]}};OM={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:OM,footer:{panelFooterViewModel:{primaryButton:OL,
secondaryButton:fG,shouldHideDivider:!0}},content:BI}}}}};_.AL().resolve(_.vR).resolveCommand(OM)}return!1});
M=_.k(_.lQ("",void 0,"yG5Sx"));var qM=M.next().value,Ry=M.next().value;_.mT(function(){oI()&&Ry(v==null?void 0:v(A==null?void 0:A()));D.value&&_.W3(12453,D.value,a,function(OM){a=OM})});
return _.W(_.d,{cond:X2,then:function(){var OM={};return _.W("div",{class:_.Hb("ytSuggestionComponentRemovedText",(OM.ytSuggestionComponentLargerRemovedText=function(){return t4()},OM)),
style:function(){return d$()>0?"height: "+d$()+"px;":""},
role:"button"},g9)},
else:function(){var OM={},OL={};return _.W("div",{class:_.Hb("ytSuggestionComponentSuggestion",(OM.ytSuggestionComponentSuggestionHover=function(){return!yY()},OM.ytSuggestionComponentHighlighted=iH,OM.ytSuggestionComponentPersonalizedSuggestion=se,OM.ytSuggestionComponentMweb=!1,OM.ytSuggestionComponentLargerSuggestion=function(){return cy()||t4()},OM.ytSuggestionComponentThumbnailSuggestion=function(){return t4()},OM.ytSuggestionComponentRoundedSuggestion=function(){return _.w("desktop_enable_scrollable_suggestions_panel")&&
_.w("desktop_enable_suggestions_panel_padding")},OM.ytSuggestionComponentThumbnailPadding=function(){return t4()&&!se()},OM)),
style:function(){return d$()>0?"height: "+d$()+"px;":""},
role:"presentation","on:mousedown":R,"on:mouseover":Gs,"on:mouseout":u5,el:D},_.W("div",{class:_.Hb("ytSuggestionComponentText",(OL.ytSuggestionComponentScrollMargin=t,OL)),"aria-label":function(){return cy()?K().text+" "+y6I:K().text},
id:function(){return v==null?void 0:v(A==null?void 0:A())},
"on:mousedown":R,role:"option"},_.W(_.d,{cond:function(){return K().type!==33},
then:function(){return _.W(_.np,{icon:LP,className:"ytSuggestionComponentIcon"})}}),_.W("div",{class:"ytSuggestionComponentLeftContainer"},_.W("span",{el:J,
role:"button",tabindex:0},_.W(_.bf,{each:r9},function(fG){return fG.bold?_.W("span",{class:"ytSuggestionComponentBold"},fG.text):_.W("span",null,fG.text)})),_.W(_.d,{cond:function(){return ay()&&!!K().entitySubtitle||cy()},
then:function(){return _.W("div",{class:"ytSuggestionComponentMetadataContainer"},_.W(_.d,{cond:function(){return ay()&&!!K().entitySubtitle},
then:function(){return _.W("div",{class:"ytSuggestionComponentEntitySubtitle"},bH)}}),_.W(_.d,{cond:function(){return cy()},
then:function(){return _.W("div",{class:"ytSuggestionComponentNewVideoContainer"},_.W("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.W("div",{class:"ytSuggestionComponentNewVideoText"},y6I))}}))}}))),_.W("div",{class:"ytSuggestionComponentRightContainer"},_.W(_.d,{cond:function(){return t4()&&K().visualSuggestUrl!==void 0},
then:function(){var fG={};return _.W("div",{class:"ytSuggestionComponentThumbnailContainer"},_.W("img",{"aria-label":LfP,class:_.Hb("ytSuggestionComponentVisualSuggestThumbnail",(fG.ytSuggestionComponentCircularFrame=function(){return ay()&&K().subtypes.includes(790)},fG.ytSuggestionComponentEntitySuggestThumbnail=function(){return ay()},fG)),
src:function(){return K().visualSuggestUrl}}),_.W(_.d,{cond:function(){return ay()&&!!K().entityThumbnailAttributionUrl},
then:function(){var BI={};return _.W("span",{title:Yk5,role:"tooltip"},_.W("div",{"on:mouseover":jJ,"on:mouseout":Ad,"on:mousedown":Wv,class:_.Hb("ytSuggestionComponentThumbnailOverlay",(BI.ytSuggestionComponentThumbnailOverlayHidden=function(){return!Z()},BI))},_.W(_.np,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.W(_.Ub,null,_.W(_.J3,{when:function(){return t4()&&oI()}},function(){var fG={};
return _.W("button",{class:_.Hb("ytSuggestionComponentRemoveLinkClearButton",(fG.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return qM()&&qM()===(h==null?void 0:h())},fG.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!iH()},fG)),
el:m,"on:mousedown":w9,"aria-label":Pv,id:function(){return qM()}},_.W(_.np,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.W(_.J3,{when:function(){return!(t4()&&K().visualSuggestUrl!==void 0)&&oI()}},function(){var fG={};
return _.W("a",{class:_.Hb("ytSuggestionComponentRemoveLink",(fG.ytSuggestionComponentRemoveLinkDark=EM,fG.ytSuggestionComponentRemoveLinkSelected=function(){return qM()&&qM()===(h==null?void 0:h())},fG)),
el:S,"on:mousedown":w9,"aria-label":Pv,tabindex:0,role:"button",id:function(){return qM()}},Pv)}),_.W(_.J3,{when:function(){return!1}},function(){return _.W("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":hd,"on:mousedown":Kn,role:"button","aria-label":p1M},_.W(_.np,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"lj");var A6I=_.DQ(["//www.google.com/textinputassistant/","/","_tia.js"]),dZU=_.U(function(){return _.W("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.W("button",{class:"ytdTextInputAssistantButton","on:click":_.sq(function(){SnI().inputMethodsTracker.add(3);var M,q=(M=_.R9("SBOX_SETTINGS"))==null?void 0:M.REQUEST_LANGUAGE;if(q)return _.cF(_.Ow(A6I,14,q)),!1})},_.W("img",{class:"ytdTextInputAssistantIcon",
tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"mj");var vGR=function(){this.cache=new Map},h$5=function(M){for(var q=_.k(M.cache.entries()),G=q.next();!G.done;G=q.next()){var K=_.k(G.value);
G=K.next().value;K=K.next().value;K.suggestions.some(function(n){return n.type===35})&&M.cache.delete(G)}};var ta8=_.CH.SEARCH,OBw=_.CH.SEARCH_CLEAR_LABEL,w15=new _.$k("FAKE_SUGGEST_RESPONSE");_.S5(_.U(function(M){function q(){jJ||(jJ=setTimeout(function(){Wv()},1E3))}
function G(iS,lS,UL){if(iS.trim()){u5=iS;_.Vz("REFINEMENTS_TUPLE",void 0);w9=!0;var OA;lS=j7I(tE,lS);var td=(OA=M.searchEndpoint)==null?void 0:OA.call(M);_.dn5(iS,lS,td,LP.value.value,UL,window.location.pathname.startsWith("/shorts"));Wv();LP.value.value=iS;LP.value.blur();tE.reset()}}
function K(iS){return _.L(function(lS){return lS.return(new Promise(function(UL){var OA=new XMLHttpRequest;OA.open("GET",BRM(iS),!0);OA.withCredentials=!0;var td=_.R9("SBOX_SETTINGS");(td==null?0:td.SEND_VISITOR_DATA)&&OA.setRequestHeader("X-Goog-Visitor-Id",td==null?void 0:td.VISITOR_DATA);OA.onload=function(){UL(OA.responseText)};
OA.onerror=function(){_.j1(Error("Kl"));UL(null)};
setTimeout(function(){OA.abort()},1E4);
OA.send(null)}))})}
function n(iS){var lS,UL,OA,td;return _.L(function(gq){switch(gq.nextAddress){case 1:return lS={credentials:"include",headers:gO8()},window.AbortController&&(UL=new AbortController,setTimeout(function(){UL.abort("ytsbox-suggest-timeout")},1E4),lS.signal=UL.signal),_.Cv(gq,2),gq.yield(fetch(BRM(iS),lS),4);
case 4:OA=gq.yieldResult.text();_.KF(gq,3);break;case 2:return td=_.i5(gq),td!=="ytsbox-abort-last"&&td!=="ytsbox-suggest-timeout"&&_.j1(td),gq.return(null);case 3:return gq.return(OA)}})}
function E(iS){var lS,UL,OA;return _.L(function(td){switch(td.nextAddress){case 1:if(lS=_.AL().resolve(_.WR(w15)))return td.return(lS);UL=Date.now();q();return _.w("yt_searchbox_xhr")?td.yield(K(iS),5):td.yield(n(iS),4);case 4:OA=td.yieldResult;td.jumpTo(3);break;case 5:OA=td.yieldResult;case 3:if(OA){jJ&&(clearTimeout(jJ),jJ=null);var gq=tE,jA=UL,UA=iS.query.length===0;jA=Date.now()-jA;UA?gq.zeroPrefixRoundTripTime=jA:(gq.JSC$20939_totalRoundTripTime+=jA,gq.maxRoundTripTime=Math.max(gq.maxRoundTripTime,
jA),UA=Math.floor(jA/100),UA>=V75.length?++gq.roundTripTimeHistogram[9]:++gq.roundTripTimeHistogram[V75[UA]])}return td.return(OA)}})}
function p(iS){var lS,UL,OA;return _.L(function(td){if(td.nextAddress==1)return(lS=a8.cache.get(cII(iS)))?td.return(lS):td.yield(E(iS),2);UL=td.yieldResult;if(UL===null)return td.return(null);OA=new xdv(UL);iS.query.length===0&&OA.suggestions.length===0||a8.cache.set(cII(iS),OA);return td.return(OA)})}
function y(iS){var lS,UL;return _.L(function(OA){if(OA.nextAddress==1){Gs=!1;var td=u5;td=_.X$s()==="search"?(_.eA(location.href,"search_query")||_.eA(location.href,"q"))===td:!1;lS=new iQg(iS,td?u5:null);return OA.yield(p(lS),2)}UL=OA.yieldResult;if(UL===null)return OA.return();lS.query.length===0&&(tE.zeroPrefixSuggestionCount=UL.suggestions.length);if(lS.id<=Ad)return tE.outOfSyncResponseCount++,OA.return();if(document.activeElement!==LP.value)return OA.return();Ad=lS.id;var gq=tE,jA=UL.rawResponse[2]||
{};gq.experimentTriggeredBeforeFinal||(gq.experimentTriggeredBeforeFinal=gq.experimentTriggeredFinal);gq.experimentTriggeredFinal=!!jA.e;tE.updateSuggestions(UL.suggestions);D(-1);oI([]);UL.suggestions!==O()&&Ox(UL.suggestions.length);a(UL.suggestions);yY(UL.suggestions.length>0&&UL.suggestions[0].type===33);g9&&(g9.hidden=UL.suggestions.length===0,se()?(g9.style.minWidth="",gq=g9.style,jA=(td=O()[0])==null?void 0:td.ignoredPrefix,gq.marginLeft=(jA?Math.min(jA.length*6,Pv.value.offsetWidth):0).toString()+
"px"):(g9.style.minWidth=Pv.value.offsetWidth+"px",g9.style.marginLeft="0"),PD());_.gL(OA)})}
function Y(){if(!w9)return!1;var iS=_.R9("REFINEMENTS_TUPLE");return iS?(iS=iS[1].map(function(lS,UL){return new ZQn([lS,0,[71]],LP.value.value,UL)}),O()!==iS&&Ox(iS.length),oI([]),a(iS),tE.updateSuggestions(iS),w9=!1,g9.hidden=iS.length===0,Gs=iS.length>0,!0):!1}
function A(){var iS=LP.value.value;(typeof iS==="string"||iS instanceof String)&&iS!==""?S(!0):S(!1)}
function v(){if(_.X$s()==="search"){var iS=window.location.href;try{var lS=_.eA(iS,"search_query")||_.eA(iS,"q")||""}catch(UL){lS=""}lS&&(LP.value.value=lS,S(!0))}}
var h=_.k(_.lQ([],void 0,"YqWjzb")),t=h.next().value;h=h.next().value;var O=t,a=h;t=_.k(_.lQ(-1,void 0,"hiyF4d"));var g=t.next().value,D=t.next().value;t=_.k(_.lQ(-1,void 0,"SUGY4b"));var J=t.next().value,Z=t.next().value;t=_.k(_.lQ(!1,void 0,"ozgCGe"));var V=t.next().value,S=t.next().value;t=_.k(_.lQ(!1,void 0,"fb0dKe"));var m=t.next().value,R=t.next().value;h=_.k(_.lQ(!1,void 0,"KkbNee"));t=h.next().value;h=h.next().value;var se=t,yY=h;h=_.k(_.lQ(!1,void 0,"b5D7E"));t=h.next().value;var d$=h.next().value;
h=_.k(_.lQ(!1,void 0,"UrhqVc"));var cy=h.next().value,t4=h.next().value;h=_.k(_.lQ(1,void 0,"zwJX4d"));var ay=h.next().value,bH=h.next().value;h=_.k(_.lQ([],void 0,"HryHu"));var iH=h.next().value,oI=h.next().value;h=_.k(_.lQ(!1,void 0,"Imfa3e"));var r9=h.next().value,X2=h.next().value;h=_.w("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var EM=_.pI("yt-searchbox"),LP=_.pI("input"),Pv=_.pI("div"),g9,a8=
new vGR,tE=SnI(),ND=_.AL().resolve(_.WR(_.Qx)),Mx=function(){var iS;return((iS=M.forceDarkMode)==null?void 0:iS.call(M))||!(ND==null||!ND())},hd=function(){return _.w("desktop_enable_scrollable_suggestions_panel")},Kn="i"+k8M++,w9=!1,Gs=!1,u5="",jJ=null,Ad=-1,Wv=function(){oI([]);
a([]);yY(!1);g9&&(g9.hidden=!0);jJ&&(clearTimeout(jJ),jJ=null);D(-1)},qM=function(iS,lS){iS.preventDefault();
X2(!0);g9&&(g9.hidden=!1);var UL=g();iS=O();var OA=iH();lS=v15(lS);UL+=lS;for(UL>=iS.length?UL=-1:UL<-1&&(UL=iS.length-1);UL!==-1&&(OA.includes(UL)||UL>=iS.length||UL<0);)UL+=lS,UL>=iS.length&&(UL=-1);D(UL);g()>=0&&(LP.value.value=O()[g()].text,Z(0),A(),iS=g(),OA=J(),(OA=document.getElementById($q[iS][OA]))&&hd()&&(iS===O().length-1?g9.scrollTop=g9.scrollHeight:OA.scrollIntoView({block:"nearest",inline:"start"})))},Ry=_.sq(function(iS){if(!(iS.relatedTarget instanceof Element&&iS.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){R(!0);
var lS;(lS=M.focusCallback)==null||lS.call(M,!0);Y()||(Gs?g9.hidden=!1:(_.jP(EM.value,"yt-autonav-pause-focus",{}),y(iS.target.value)))}}),OM=_.sq(function(iS){if(!(iS.relatedTarget instanceof Element&&iS.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){R(!1);
var lS;(lS=M.focusCallback)==null||lS.call(M,!1);g9.scrollTop=0;g9.hidden=!0;_.jP(EM.value,"yt-autonav-pause-blur",{})}}),OL=function(iS){iS=v15(iS);
var lS;((lS=$q[g()])==null?0:lS[J()+iS])&&Z(J()+iS)},fG=_.sq(function(iS){var lS=iS.target;
switch(iS.keyCode){case 13:iS.preventDefault();var UL;if((UL=$q[g()])==null?0:UL[J()]){var OA;(OA=document.getElementById($q[g()][J()]))==null||OA.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}iS=iS.shiftKey?4:3;UL=tE;OA=g();UL.selectedSuggestionIndex=OA;G(lS.value,iS);break;case 27:g9&&(g9.hidden=!0);break;case 40:qM(iS,40);break;case 38:qM(iS,38);break;case 39:OL(39);break;case 37:OL(37);break;case 229:tE.inputMethodsTracker.add(4);break;default:tE.inputMethodsTracker.add(1),
TRn(tE)}return!1}),BI=_.sq(function(iS){y(iS.target.value);
A();hd()&&g9&&(g9.scrollTop=0);return!1}),mw=_.sq(function(){tE.inputMethodsTracker.add(2);
TRn(tE);return!1});
_.mT(function(){if(g9){tE.reset();if(window.ResizeObserver){var iS=new ResizeObserver(function(){se()||(g9.style.minWidth=Pv.value.offsetWidth+"px")});
iS.observe(Pv.value);(new ResizeObserver(function(){PD()})).observe(g9);
_.m_(function(){iS.disconnect()})}v();
window.addEventListener("yt-navigate-finish",v);window.addEventListener("yt-focus-searchbox",function(){LP.value.focus()});
var lS;d$((lS=_.R9("SBOX_SETTINGS"))==null?void 0:lS.HAS_ON_SCREEN_KEYBOARD)}else _.T6(new _.bj("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var e1=_.sq(function(iS){iS.preventDefault();G(LP.value.value,12);return!1}),p8=_.sq(function(iS){iS.preventDefault();
var lS,UL;(lS=LP)==null||(UL=lS.value)==null||UL.focus();var OA,td;((OA=LP)==null?void 0:(td=OA.value)==null?void 0:td.value)!==""&&(LP.value.value="",LP.value.dispatchEvent(new Event("input")));return!1}),fP=_.sq(function(){var iS=vmE(LP.value.value,O().filter(function(lS){return lS.type!==35}).map(function(lS){return{label:lS.text}}));
_.VW(EM.value,"yt-open-popup-action",[{openPopupAction:iS},document.body]);return!1}),Xv=_.sq(function(){LP.value.focus();
return!1}),NM=function(iS,lS,UL,OA,td){tE.selectedSuggestionIndex=UL;
G(lS,td?3:1,OA)},pS=function(iS){LP.value.value=iS;
LP.value.dispatchEvent(new Event("input"));tE.inputMethodsTracker.add(5);TRn(tE,!0)},$q=[[]],My=function(iS){var lS="searchbox-suggestion"+_.Qp(_.zx);
$q[iS].push(lS);return lS},Ox=function(iS){if(O()){$q=[[]];
for(var lS=0;lS<iS;lS++)$q.push([])}},PD=function(){if(hd()){var iS=g9,lS=iS.scrollTop;
iS=iS.scrollHeight-iS.clientHeight;t4(lS>=iS);lS=Math.abs(iS-lS);lS<=40?bH(1-(40-lS)/40):bH(1)}},LK=function(){return"opacity: "+ay()*100+"%"},By=_.sq(function(){PD();
return!1}),Ue=_.sq(function(){X2(!1);
return!1}),jw,aI={},ww={},Bt={},QI={};
return _.W("yt-searchbox",{class:_.Hb("ytSearchboxComponentHost",(aI.ytSearchboxComponentMweb=!1,aI.ytSearchboxComponentDesktop=!0,aI["yt-searchbox-filled-query"]=function(){return V()},aI["ytd-masthead"]=function(){return!m()},aI.ytSearchboxComponentHostDark=Mx,aI)),
role:"search",el:EM,"client-ve-type":10349},_.W("div",{el:Pv,"on:click":Xv,class:_.Hb("ytSearchboxComponentInputBox",(ww.ytSearchboxComponentInputBoxDark=Mx,ww.ytSearchboxComponentInputBoxHasFocus=m,ww))},_.W("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":e1},_.W(_.d,{cond:m,then:function(){return _.W("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.W(_.np,{icon:"SEARCH"}))}}),_.W("input",{el:LP,
class:_.Hb("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":Kn,"aria-expanded":!((jw=g9)==null?0:jw.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:"false","on:blur":OM,"on:focus":Ry,"on:input":BI,"on:keydown":fG,"on:paste":mw,placeholder:M.placeholderText,"aria-activedescendant":function(){var iS;return(iS=$q[g()])==null?void 0:iS[J()]},
"aria-autocomplete":"list",role:"combobox"})),_.W(_.d,{cond:t,then:function(){return _.W("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.W(dZU,null))}}),_.W(_.d,{cond:V,
then:function(){return _.W("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.W("button",{class:"ytSearchboxComponentClearButton","on:click":p8,"aria-label":M.clearButtonAriaLabel||OBw},_.W(_.np,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.W(_.p3,{model:{}})))}})),_.W("button",{class:_.Hb("ytSearchboxComponentSearchButton",(Bt.ytSearchboxComponentSearchButtonDark=Mx,Bt)),
"on:click":e1,"aria-label":ta8,title:M.placeholderText},_.W(_.np,{icon:"SEARCH"})),_.W(_.d,{cond:function(){if(mKw()&&_.w("mweb_voice_search")&&M.voiceSearchButton)return M.voiceSearchButton()},
then:function(iS){var lS={};return _.W("div",{class:_.Hb("ytSearchboxComponentVoiceSearchWrapper",(lS.ytSearchboxComponentHideVoiceSearchButton=function(){return V()},lS))},_.W(_.yu,{data:iS},{buttonRenderer:function(UL){return _.W(_.GW,{data:UL.data,
onButtonClickCallback:function(){}})}}))}}),_.W("div",{el:_.bm(function(iS){return void(g9=iS)}),
id:Kn,class:_.Hb("ytSearchboxComponentSuggestionsContainer",(QI.ytSearchboxComponentSuggestionsContainerDark=Mx,QI["yt-searchbox-suggestions-container"]=!1,QI.ytSearchboxComponentSuggestionsContainerScrollable=hd(),QI.ytSearchboxComponentSuggestionsContainerAnimated=h,QI)),"on:scroll":By,"on:mousemove":Ue,role:"listbox",hidden:!0},_.W(_.bf,{each:O},function(iS,lS){return _.W(Wf5,{suggestion:iS,isHighlighted:function(){return lS()===g()},
onClickCallback:NM,onHoverUpdateCallback:function(UL){if(_.w("desktop_enable_single_suggestion_highlight")){var OA=lS();UL&&(Z(0),D(OA))}},
onRemoveCallback:function(UL){h$5(a8);UL===void 0||UL<0||iH().includes(UL)||oI([].concat(_.Ui(iH()),[UL]))},
labels:M.labels,queryBuilderFunction:pS,suggestionIndex:lS,generateUniqueId:My,highlightedId:function(){var UL;return(UL=$q[g()])==null?void 0:UL[J()]},
useScrollMargin:hd(),isKeyboardMode:r9})}),_.W(_.d,{cond:function(){return!se()&&O().find(function(iS){return iS.type!==35})&&_.w("searchbox_reporting")},
then:function(){return _.W("button",{class:"ytSearchboxComponentReportButton","on:mousedown":fP},_.Ge("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.W(_.d,{cond:function(){return!cy()&&hd()},
then:function(){return _.W("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.W("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:LK}))}})))},"oj"),"yt-searchbox",{props:{searchEndpoint:_.Hz,
placeholderText:_.Hz,labels:_.Hz,voiceSearchButton:_.Hz,focusCallback:_.xj,clearButtonAriaLabel:_.Hz,forceDarkMode:_.Hz}});var qv=function(){var M=_.Q.apply(this,arguments)||this;M.menuButtonTargetId="topbar-guide-menu";M.narrow=!1;M.menuStrings={BACK_ALT_LABEL:_.Ge("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.Ge("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.Ge("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.Ge("SBOX_PLACEHOLDER",void 0,"Search")};M.pageDarkTheme=document.documentElement.hasAttribute("dark");M.watchPageScrollTop=0;M.theater=!1;M.fullscreen=!1;M.disableFrostedGlassDuringViewTransition=
!1;M.desktopUnifiedSearchPanelMode=_.w("desktop_enable_unified_search_panel");M.cinematicTheaterMode=_.w("web_cinematic_theater_mode");M.aiCompanionEnabled=_.w("enable_ai_companion");M.ytSearchboxFocused=!1;M.searchboxLabels=_.R9("SBOX_LABELS");M.topbarIsAboveChipbar=!1;M.isDarkThemeForced=!1;M.areGhostCardsHidden=!1;M.guideKeyboardToggle=!1;M.voiceSearchManager=lzs();M.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};M.setYtSearchboxFocused=
function(q){M.ytSearchboxFocused=q};
M.toggleFrostedGlassDuringViewTransition=function(q){M.disableFrostedGlassDuringViewTransition=q};
return M};
_.l(qv,_.Q);_.N=qv.prototype;_.N.computeSimpleText=function(M){return _.UX(M)};
_.N.onDarkChanged=function(){for(var M=_.k(this.buttons||[]),q=M.next();!q.done;q=M.next())q.value.isOverlay=!!this.dark;M=_.k(this.buttonRenderers||[]);for(q=M.next();!q.done;q=M.next())q.value.overrides=this.computeButtonOverride()};
_.N.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.N.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"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var M=_.q5(_.M5(),"aa");_.HE(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||M||(this.isDarkThemeForced=this.dark=!0);this.logoType?(M=this.hostElement.querySelector("#masthead-logo"))&&(_.w("polymer_on_demand_shady_dom")?M.setAttribute("slot","masthead-logo-old"):_.cX(M)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.qs(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.qs(this,this.onSetTheaterModeEnabled));this.registerWithViewTransitionManager()};
_.N.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.qs(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.qs(this,this.onSetTheaterModeEnabled))};
_.N.dataChanged=function(){var M=this.data;M&&(this.voiceEnabled=M.voiceSearchButton?lzs().isSupported():!1,_.o9B(_.lW(),this.menuButtonTargetId,this.guideButton),M.onReceivedActions&&M.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.FH(this.hostElement,M.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&M&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.HE(this.hostElement,"dark",!1),_.HE(this.hostElement,"theater",!1),
(M=this.hostElement.querySelector("#masthead-logo"))&&(_.w("polymer_on_demand_shady_dom")?M.setAttribute("slot","masthead-logo-old"):_.cX(M))))};
_.N.computeCenterHidden=function(){var M;return this.data&&!((M=this.data.searchbox)==null?0:M.fusionSearchboxRenderer)};
_.N.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.HE(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.N.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.N.onWatchScroll=function(M){this.watchPageScrollTop=M.detail||0;this.updateMastheadBackgroundOpacity()};
_.N.onFullscreenChangeAction=function(M){M||(this.watchPageScrollTop=0);this.fullscreen=M;this.updateMastheadBackgroundOpacity()};
_.N.onSetTheaterModeEnabled=function(M){this.theater=M.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.N.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.N.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.N.setBackgroundOpacity=function(M){M=this.calculateBackgroundOpacity(M);this.background.style.opacity=""+M};
_.N.calculateBackgroundOpacity=function(M){var q=this.theater&&this.cinematicTheaterMode?.6:0,G=this.hostElement.clientHeight/2;return Math.min(Math.max(M,0),G)/G*(1-q)+q};
_.N.shouldShowCinematicMastHead=function(){var M=_.w("kevlar_watch_grid")&&!_.w("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(M||this.pageDarkTheme)};
_.N.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.N.focusGuide=function(){this.guideButton.focus()};
_.N.onGuideToggleTap=function(){_.jP(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.N.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.N.onGuideToggleHover=function(){_.jP(this.hostElement,"yt-guide-hover")};
_.N.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.N.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.N.closeOnOutsideClickCondition=function(M){for(M=_.Zx(M);M[0];){var q=M.shift();if(q instanceof Element&&q.id==="kbd")return!1}return!0};
_.N.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.N.pausePlayer=function(){var M;(M=_.TM())==null||M.pause();this.pauseMiniplayer()};
_.N.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var M;(M=_.AL().resolve(_.lq).getPlayerElement())==null||M.pause()}};
_.N.isMiniplayerActive=function(){return _.AL().resolve(_.lq).isMiniplayerActive()};
_.N.updateNarrowFromBinding=function(M){this.narrow=M.detail.value};
_.N.onYtSendFeedbackAction=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.N.registerWithViewTransitionManager=function(){zEs(_.AL().resolve(_.ix),this.hostElement,this.toggleFrostedGlassDuringViewTransition)};
_.Yd.Object.defineProperties(qv.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.w("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 M;return!!(this.aiCompanionEnabled&&((M=this.data)==null?0:M.aiCompanionButton))}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var M;return(M=this.data)==null?void 0:M.voiceSearchButton}}},
narrowQuery:{configurable:!0,enumerable:!0,get:function(){return"max-width: "+(this.aiCompanionEnabled?750:656)+"px"}}});
qv.prototype.narrowChanged=qv.prototype.narrowChanged;qv.prototype.onWatchPageChange=qv.prototype.onWatchPageChange;qv.prototype.onRendererStamperFinished=qv.prototype.onRendererStamperFinished;qv.prototype.dataChanged=qv.prototype.dataChanged;qv.prototype.onDarkChanged=qv.prototype.onDarkChanged;_.T([_.P(_.uz),_.r("design:type",Object)],qv.prototype,"ironResizableBehavior",void 0);_.T([_.P(_.Z_8),_.r("design:type",Object)],qv.prototype,"ytdExpandableInputBehavior",void 0);
_.T([_.P(_.RB.YtdGuideStateAwareBehavior),_.r("design:type",Object)],qv.prototype,"ytdGuideStateAwareBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],qv.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],qv.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.mr),_.r("design:type",Object)],qv.prototype,"ytdReduxBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],qv.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],qv.prototype,"narrow",void 0);_.T([_.B(),_.r("design:type",Object)],qv.prototype,"logoType",void 0);_.T([_.B(),_.r("design:type",Boolean)],qv.prototype,"voiceEnabled",void 0);
_.T([_.B(),_.r("design:type",Object)],qv.prototype,"menuStrings",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],qv.prototype,"dark",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],qv.prototype,"pageDarkTheme",void 0);_.T([_.B(),_.r("design:type",Object)],qv.prototype,"watchPageScrollTop",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.QGy}),_.r("design:type",Boolean)],qv.prototype,"isWatchPage",void 0);
_.T([_.B({reflectToAttribute:!0,selector:_.Ij4}),_.r("design:type",Boolean)],qv.prototype,"isShortsPage",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],qv.prototype,"theater",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],qv.prototype,"fullscreen",void 0);_.T([_.B({reflectToAttribute:!0,selector:_.Z34}),_.r("design:type",String)],qv.prototype,"frostedGlassMode",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],qv.prototype,"disableFrostedGlassDuringViewTransition",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],qv.prototype,"aiCompanionEnabled",void 0);_.T([_.B(),_.r("design:type",Object)],qv.prototype,"ytSearchboxFocused",void 0);_.T([_.Ns("#buttons > *"),_.r("design:type",Array)],qv.prototype,"buttons",void 0);_.T([_.Ns("ytd-button-renderer"),_.r("design:type",Array)],qv.prototype,"buttonRenderers",void 0);
_.T([_.ET("#background"),_.r("design:type",HTMLDivElement)],qv.prototype,"background",void 0);_.T([_.ET("#guide-button"),_.r("design:type",Object)],qv.prototype,"guideButton",void 0);_.T([_.ET("#logo"),_.r("design:type",Object)],qv.prototype,"logo",void 0);_.T([_.B({computed:"computeButtonOverride(dark)"}),_.r("design:type",Object)],qv.prototype,"buttonOverrides",void 0);
_.T([_.yO("dark"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qv.prototype,"onDarkChanged",null);_.T([_.B({value:function(){return this.onVoiceTap.bind(this)}}),
_.r("design:type",Function)],qv.prototype,"boundOnTapVoiceButton",void 0);_.T([_.B(),_.r("design:type",Object)],qv.prototype,"topbarIsAboveChipbar",void 0);_.T([_.B(),_.r("design:type",String),_.r("design:paramtypes",[])],qv.prototype,"guideIcon",null);_.T([_.c("voiceEnabled"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qv.prototype,"shouldShowVoiceSearchButton",null);
_.T([_.c("data.aiCompanionButton","aiCompanionEnabled"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],qv.prototype,"shouldShowAiCompanionButton",null);_.T([_.c("data"),_.r("design:type",Object),_.r("design:paramtypes",[])],qv.prototype,"voiceSearchButton",null);_.T([_.c("aiCompanionEnabled"),_.r("design:type",String),_.r("design:paramtypes",[])],qv.prototype,"narrowQuery",null);
_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qv.prototype,"dataChanged",null);_.T([_.GQ("yt-rendererstamper-finished"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qv.prototype,"onRendererStamperFinished",null);_.T([_.yO("isWatchPage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qv.prototype,"onWatchPageChange",null);
_.T([_.yO("narrow"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],qv.prototype,"narrowChanged",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-masthead"})],qv);
_.z(qv,"ytd-masthead",function(){if(Kfw!==void 0)return Kfw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return Kfw=M},{mode:_.VO("kevlar_poly_si_batch_j036")?1:2});var CDw;var a7n={},oGL={},l7w={},X1M={},PDM=(X1M.OFFLINE=(a7n["publicytnetworkstatus-online"]="BACK_ONLINE",a7n),X1M.ONLINE=(oGL["publicytnetworkstatus-offline"]="OFFLINE",oGL),X1M.BACK_ONLINE=(l7w["publicytnetworkstatus-offline"]="OFFLINE",l7w.TIMER_TRIGGER="ONLINE",l7w),X1M),Ga=function(){var M=_.Q.apply(this,arguments)||this;M.currentState="ONLINE";M.scheduledJobId=0;M.bannerString="";M.bannerVe=null;M.networkStatusManagerInstance=new _.G6;return M};
_.l(Ga,_.Q);_.N=Ga.prototype;_.N.attached=function(){var M=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){M.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){M.stateChangeHandler("publicytnetworkstatus-offline")})};
_.N.detached=function(){var M=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){M.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){M.stateChangeHandler("publicytnetworkstatus-offline")})};
_.N.enterState=function(M){var q=this;this.scheduledJobId&&_.r8.cancelJob(this.scheduledJobId);M==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):M==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.Ge("NO_INTERNET_CONNECTION",void 0,"No internet connection")):M==="BACK_ONLINE"&&(this.bannerString=_.Ge("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.Jp(_.r8,function(){q.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=M};
_.N.stateChangeHandler=function(M){(M=PDM[this.currentState][M])&&this.enterState(M)};
_.N.logVisibility=function(M){var q=_.Cx();this.createBannerVe(M);q&&this.bannerVe&&(M?_.uO(q,[this.bannerVe]):_.J2(q,[this.bannerVe]))};
_.N.createBannerVe=function(M){!this.bannerVe&&M&&(this.bannerVe=_.$m(37929),_.lu(_.nl(),this.bannerVe))};
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",String)],Ga.prototype,"currentState",void 0);_.T([_.B(),_.r("design:type",Object)],Ga.prototype,"scheduledJobId",void 0);_.T([_.B(),_.r("design:type",Object)],Ga.prototype,"bannerString",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Ga);
_.z(Ga,"ytd-network-status-banner",function(){if(CDw!==void 0)return CDw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return CDw=
M},{mode:1});var iB5;var Kw=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};M.hidden=!0;M.frostedGlass=_.w("web_frosted_glass");return M};
_.l(Kw,_.Q);Kw.prototype.computeHidden=function(M){return M&&M.status?!1:!0};
Kw.prototype.handleUpdatePermissionRoleCommand=function(M){if(M=_.C(M,_.gvM))if(M=_.C(M.renderer,_.cv2))this.data=M};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Kw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],Kw.prototype,"componentBehavior",void 0);_.T([_.B({value:!0,computed:"computeHidden(data)"}),_.r("design:type",Object)],Kw.prototype,"hidden",void 0);_.T([_.B(),_.r("design:type",Object)],Kw.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Kw.prototype,"frostedGlass",void 0);
_.T([_.b({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Kw);
_.z(Kw,"ytd-permission-role-bottom-bar-renderer",function(){if(iB5!==void 0)return iB5;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return iB5=M},{mode:1});var c6I;var gGw;var hWs={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var nw=function(){return _.Q.apply(this,arguments)||this};
_.l(nw,_.Q);_.N=nw.prototype;_.N.attached=function(){this.JSC$21056_scroller&&(this.JSC$21056_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21056_scroller.attached&&typeof this.JSC$21056_scroller.attached==="function"&&this.JSC$21056_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(G){G.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var M=_.f_(this.hostElement);M.querySelector("tp-yt-paper-radio-group").selected="";var q=M.querySelector("#reason-text");q&&(q.value="");M.querySelector("#description-text").value=""}};
_.N.canSubmit=function(M,q){_.jP(this.hostElement,"yt-invalidate-popup-tabbables");return!(M&&q)};
_.N.onCancel=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.N.onSubmit=function(){var M=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(E){return E.active}).map(function(E){return E.innerText.trim()}),q=this.hostElement.querySelector("tp-yt-paper-radio-group"),G=q.selectedItem,K=G.name;
G=G.innerText.trim();var n=q.querySelector("#reason-text");q=void 0;n&&(q=n.value);(n=this.descriptionText.value)&&(n=n.trim());t$s(this.data.searchQuery,M,K,G,n,q);_.VW(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.N.sendFormSubmitToast=function(){var M=_.Tw(_.Ge("SBOX_INAPPROPRIATE_TOAST"));_.VW(this.hostElement,"yt-open-popup-action",[M,this])};
_.N.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(M){return M.active})};
_.N.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
nw.prototype.onIronSelect=nw.prototype.onIronSelect;nw.prototype.onIronChange=nw.prototype.onIronChange;nw.prototype.dataChanged=nw.prototype.dataChanged;_.T([_.B(),_.r("design:type",Object)],nw.prototype,"data",void 0);_.T([_.B({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.r("design:type",Boolean)],nw.prototype,"submitDisabled",void 0);_.T([_.B(),_.r("design:type",Boolean)],nw.prototype,"suggestionSelected",void 0);
_.T([_.B(),_.r("design:type",Boolean)],nw.prototype,"catagorySelected",void 0);_.T([_.ET("#scroller"),_.r("design:type",Object)],nw.prototype,"JSC$21056_scroller",void 0);_.T([_.ET("#description-text"),_.r("design:type",Object)],nw.prototype,"descriptionText",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nw.prototype,"dataChanged",null);
_.T([_.GQ("iron-change"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nw.prototype,"onIronChange",null);_.T([_.GQ("iron-select"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],nw.prototype,"onIronSelect",null);_.T([_.b({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],nw);
_.z(nw,"ytd-search-suggestion-report-dialog",function(){if(gGw!==void 0)return gGw;var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);return gGw=M},{mode:1});var Ey=function(M){var q=M.openPopupAction;var G=M.target;var K=M.container;var n=M.popupContainerConfig;var E=M.getElement;M=M.removeWhenClosed===void 0?!1:M.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=q;this.target=G;this.container=K;this.popupContainerConfig=n;this.getElement=E;this.JSC$21062_popupConfig=this.popupContainerConfig.JSC$20188_popupConfig[this.openPopupAction.popupType];this.rendererName=(q=this.getName())?_.GSe(q,qts(this.popupContainerConfig,
q)):"";_.w("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=M);this.createPopup()};
Ey.prototype.updatePopup=function(M){this.openPopupAction=M;this.JSC$21062_popupConfig=this.popupContainerConfig.JSC$20188_popupConfig[this.openPopupAction.popupType];BCU(this);_.w("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
Ey.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var DZ8=function(M,q,G){(q=q&&M.JSC$21062_popupConfig.narrowProperties?M.JSC$21062_popupConfig.narrowProperties:M.JSC$21062_popupConfig.properties)&&G!==void 0&&(q.isAriaModal=G);Qow(M,q);M.isRtl()&&Qow(M,M.JSC$21062_popupConfig.rtlProperties);I7g(M)};
Ey.prototype.createPopup=function(){var M=this.JSC$21062_popupConfig.component;if(this.popupContent=uqn(this,this.rendererName)){if(M){this.popup=uqn(this,M);var q=this.popupContent;_.w("web_enable_wrapper_for_cow_component_in_popup")&&(q=document.createElement("div"),q.appendChild(this.popupContent));_.w("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$21062_popupConfig.slotName&&q.setAttribute("slot",this.JSC$21062_popupConfig.slotName);M=this.popup;var G=this.container.tagName.toLowerCase(),
K=_.xU(q);_.nKD(_.ma(M),_.Tu(q,G,K));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.w("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.f_(this.container).appendChild(this.popup)}};
var BCU=function(M){var q,G,K=(q=M.openPopupAction.accessibilityData)==null?void 0:(G=q.accessibilityData)==null?void 0:G.label;K&&(M.popup.ariaLabel=K);var n;((n=M.popupContent.polymerController)!=null?n:M.popupContent).data=(0,_.xP.unsafeClone)(M.openPopupAction.popup[M.getName()]);M.popupContent.duration=J6w(M);M.popupContent.positionType=M.openPopupAction.position;var E=M.openPopupAction.properties;E&&Object.keys(E).forEach(function(p){M.popupContent[p]=E[p]})},Qow=function(M,q){if(q)for(var G=
_.k(Object.keys(q)),K=G.next();!K.done;K=G.next())K=K.value,M.popup[K]=q[K]},I7g=function(M){if(M.openPopupAction.position){var q=M.JSC$21062_popupConfig.positionalProperties&&M.JSC$21062_popupConfig.positionalProperties[M.openPopupAction.position],G=M.JSC$21062_popupConfig.rtlPositionalProperties&&M.JSC$21062_popupConfig.rtlPositionalProperties[M.openPopupAction.position];
q=M.isRtl()&&G?G:q;q.shiftedHorizontalOffset&&(G=M.popup.style.display,M.popup.style.display="block",M.popupContent&&M.popup.positionTarget&&M.popupContent.clientWidth>M.popup.positionTarget.clientWidth&&(q.horizontalOffset=M.popup.positionTarget.clientWidth/2-q.shiftedHorizontalOffset),M.popup.style.display=G);Qow(M,q)}},ZBI=function(M,q){if(q)for(var G=_.k(Object.keys(q)),K=G.next();!K.done;K=G.next())K=K.value,M.popup.style[K]=q[K]};
Ey.prototype.getName=function(){return _.rU(this.openPopupAction.popup,"renderer")||_.rU(this.openPopupAction.popup,"dialog")||_.rU(this.openPopupAction.popup,"model")||void 0};
var J6w=function(M){M=M.openPopupAction.durationHintMs;return M===0?M:Math.max(4E3,M||4E3)};
Ey.prototype.isRtl=function(){return _.R9("HTML_DIR")==="rtl"};
var uqn=function(M,q){M=M.getElement(q,M.target);M==null&&_.j1(new _.bj("popup getElement returned null",q));return M};var bBP={};
bBP.YtPopupContainerBehavior=[_.Sp.YtComponentBehavior,_.wg.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set;this.isAriaModal=!1},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.Tt(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.rt(this.hostElement)},
closePopup:function(M){var q=this.createCacheKey(void 0,M);this.popups_[q]&&this.handleClosePopupAction_(void 0,M)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.r8.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.r8.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(M){M.opened&&M.keepBelowPlayer&&this.ensurePopupBelowPlayer(M)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var M in this.popups_){var q=this.popups_[M];if(q.popup.scrollAction==="refit"){var G=q.popup.positionTarget.getBoundingClientRect(),K=q.popup;G=G.top;var n=q;if(!n.naturalHeight){n.popup.hidden=!1;n.popup.style.position="fixed";n.popup.style.top="0px";n.popup.style.left="0px";var E=n.popup.getBoundingClientRect();n.naturalHeight=E.bottom-E.top;n.popup.refit()}K.hidden=!(G>=n.naturalHeight+60);q.popupContent.clientHeight===0&&q.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(M){this.popupContainerConfig=M},
handleOpenPopupAction:function(M,q){var G=M.openPopupAction,K=_.AL().resolve(_.WR(_.fm))&&G.popupType==="TOAST";K&&!G.uniqueId&&(G.uniqueId=_.oV());if(!_.w("popup_container_parent_target_killswitch")){var n;q=(n=this.getParentTarget(q))!=null?n:q}var E=this.ensurePopup_(G,q);return new _.X4(function(p){E.then(function(y){if(!y)return p();this.maybeCreateNarrowMediaQuery_();var Y=this.createCacheKey(y.rendererName,y.openPopupAction.uniqueId);if(G.showOncePerUniqueId){if(this.shownPopupKeys_.has(Y))return p();
this.shownPopupKeys_.add(Y)}Y=this.popups_[Y];var A=!(!Y||!Y.openPopupAction.beReused);A=!!G.reusePopup||A;if(y.popup.opened&&!A){K&&!y.openPopupAction.replacePopup||this.handleClosePopupAction_(y.rendererName,y.openPopupAction.uniqueId);A=G.popupType==="DIALOG"&&!_.w("popup_container_dialog_reopen_killswitch");if(!K&&!A&&Y&&Y.target==q&&!y.openPopupAction.replacePopup)return p();_.yb(y.popup,function(){this.completeOpenPopupAction_(G,q,y);p()}.bind(this))}else y.popup.opened?y.updatePopup(G):this.completeOpenPopupAction_(G,
q,y),p()}.bind(this))}.bind(this))},
getParentTarget:function(M){if(M&&M instanceof HTMLElement)for(var q=_.k(Object.entries(this.popups_)),G=q.next();!G.done;G=q.next())if(G=_.k(G.value),G.next(),G=G.next().value,this.popupClosesOnClick(G)&&G.popup.contains(M))return G.target},
popupClosesOnClick:function(M){return M.popup.tagName!=="TP-YT-IRON-DROPDOWN"?!1:!["YTD-MULTI-PAGE-MENU-RENDERER"].includes(M.rendererName.toUpperCase())},
completeOpenPopupAction_:function(M,q,G){G.updatePopup(M);M=this.narrowMediaQuery_.queryMatches;var K=this.isAriaModal;G.target=q;var n;q=((n=G.target.polymerController)!=null?n:G.target).popupPositionTarget||G.target;G.JSC$21062_popupConfig.targetContainer&&(q=G.container);G.popup.positionTarget=q;G.popupContent.positionTarget=q;I7g(G);G.JSC$21062_popupConfig.forceFocus&&(G.popupContent.style.outline="none");G.popupContent.tabIndex=-1;G.JSC$21062_popupConfig.narrowProperties&&(G.popup.style.position=
"static");G.JSC$21062_popupConfig.preventAutonav&&G.popup.setAttribute("prevent-autonav",!0);G.JSC$21062_popupConfig.forceCloseOnOutsideClick&&G.popup.setAttribute("force-close-on-outside-click",!0);DZ8(G,M,K);ZBI(G,G.JSC$21062_popupConfig.styles);G.isRtl()&&ZBI(G,G.JSC$21062_popupConfig.rtlStyles);if(!G.openPopupAction.shouldStopParentSignal){var E;n=(E=G.target.polymerController)!=null?E:G.target;(G.popupContent.startForwardingEvents||G.popupContainerConfig.forwardingEnabledPopups.has(G.rendererName))&&
n.parentComponent!==G.popupContent&&G.popupContent!==G.target&&G.target!==document.body&&(G.popupContent.startForwardingEvents?G.popupContent.startForwardingEvents(G.popupContainerConfig.forwardedEvents,G.target):(G.JSC$21062_eventForwarder||(G.JSC$21062_eventForwarder=new _.f5(G.popupContent)),G.JSC$21062_eventForwarder.start(G.popupContainerConfig.forwardedEvents,G.target)))}G=G.popup;G.addEventListener("iron-overlay-opened",_.qs(this,this.onPopupIronOverlayOpened_));G.addEventListener("iron-overlay-closed",
_.qs(this,this.onPopupIronOverlayClosed_));G.addEventListener("iron-overlay-canceled",_.qs(this,this.onPopupIronOverlayCanceled_));G.addEventListener("yt-refit",_.qs(this,this.refitPopup_));G.addEventListener("yt-invalidate-popup-tabbables",_.qs(this,this.handleInvalidatePopupTabbables_));G.open()},
getPopupDurationMs_:function(M){return M.durationHintMs===0?M.durationHintMs:Math.max(4E3,M.durationHintMs||4E3)},
handleClosePopupAction_:function(M,q){var G=_.w("web_popup_cache_key_killswitch")||!!q;if(M||G){var K=this.createCacheKey(M,q);M=(M=this.popups_[K])&&M.popup}else M=_.Del(_.fh);if(M&&M.close){if(q=_.AL().resolve(_.WR(_.Nt)))M.restoreFocusOnClose=q.isKeyBoardInUse();M.close();this.removePopup_(M,K)}},
handleClosePopupCommand_:function(M){M.closePopupCommand&&M.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,M.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(M){var q={},G;for(G in this.popups_)if(q={key$jscomp$1227:q.key$jscomp$1227},q.key$jscomp$1227=G,!M||!M.some(function(E){return function(p){return p==E.key$jscomp$1227}}(q))){var K=this.popups_[q.key$jscomp$1227],n=K.popup;
_.AL().resolve(_.WR(_.fm))&&K.openPopupAction.popupType==="TOAST"||(n&&n.close&&n.close(),this.removePopup_(n,q.key$jscomp$1227))}},
handleClosePopupsAction_:function(M){M.forEach(function(q){var G=this.popups_[q];G&&((G=G.popup)&&G.close&&G.close(),this.removePopup_(G,q))}.bind(this))},
handleGetPopupOpenedAction_:function(M,q){return(q=this.createCacheKey(M,q))&&this.popups_[q]?this.popups_[M].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var M=[],q;for(q in this.popups_){var G=this.popups_[q];G.popup.opened&&M.push(G)}return M},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(M,q){_.w("ytpopup_disable_default_html_caching")&&M&&M.removeWhenClosed&&(_.f_(this.hostElement).removeChild(M),q&&this.popups_[q]&&delete this.popups_[q])},
shouldReusePopup_:function(M){return!(!M||!M.reusePopup)||!(!M||!M.beReused)},
ensurePopup_:function(M,q){this.maybeCreateNarrowMediaQuery_();var G=_.rU(M.popup,"renderer")||_.rU(M.popup,"dialog")||_.rU(M.popup,"model");if(!G)return _.HF();G=_.GSe(G,qts(this.popupContainerConfig,G));return _.HF(this.getAndMaybeCreatePopup_(M,G,q))},
getAndMaybeCreatePopup_:function(M,q,G){var K=this.createCacheKey(q,M.uniqueId);if(this.popups_[K])return this.popups_[K];M=new Ey({openPopupAction:M,target:G,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(q)});return this.popups_[K]=M},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(M){return _.w("ytpopup_disable_default_html_caching")?M&&M.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",_.qs(this,this.openPopupQueryMatchesChanged_)),_.f_(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(M){M=M.detail.value;for(var q in this.popups_)DZ8(this.popups_[q],M)},
onPopupIronOverlayClosed_:function(M){var q=M.currentTarget,G=_.X_y(q);G=G.length>0?G[0]:q;if(G.is!=="ytd-reel-watch-while-dialog-renderer"||M.target.is!=="tp-yt-iron-dropdown"){M.detail.popup=q;M.detail.popupRenderer=G;var K,n={context:{openingElement:((K=this.popups_[(G==null?void 0:G.is)||""])==null?void 0:K.target)||void 0}};Object.assign(n,M.detail);var E;_.jP((E=G.hostElement)!=null?E:G,"yt-popup-closed",n);q.removeEventListener("yt-refit",_.qs(this,this.refitPopup_));q.removeEventListener("yt-invalidate-popup-tabbables",
_.qs(this,this.handleInvalidatePopupTabbables_));q.removeEventListener("iron-overlay-canceled",_.qs(this,this.onPopupIronOverlayCanceled_));q.removeEventListener("iron-overlay-closed",_.qs(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(q)}},
onPopupIronOverlayCanceled_:function(M,q){var G=M.currentTarget,K=_.X_y(G);K=K.length>0?K[0]:G;if(K.is!=="ytd-reel-watch-while-dialog-renderer"||M.target.is!=="tp-yt-iron-dropdown"){var n;_.jP((n=K.hostElement)!=null?n:K,"yt-popup-canceled",M.detail);n=q?_.Zx(q):null;(!q||["click","tap"].includes(q.type))&&!G.hasAttribute("force-close-on-outside-click")&&G.positionTarget&&n&&n.includes(G.positionTarget)&&M.preventDefault();G.restoreFocusOnClose=_.X9.keyboardEventMatchesKeys(q,"esc")}},
onPopupIronOverlayOpened_:function(M){M=M.currentTarget;var q=_.X_y(M);q=q.length>0?q[0]:M;var G,K;_.jP((G=q.hostElement)!=null?G:q,"yt-popup-opened",(K=q.hostElement)!=null?K:q);M.keepBelowPlayer&&(this.ensurePopupBelowPlayer(M,!0),this.dynamicallyPositionedElements_.add(M));G=_.AL().resolve(_.WR(_.Nt));K=!!q.querySelector("#toast");G&&G.isKeyBoardInUse()&&!K&&(typeof q.focusFirstItem==="function"?q.focusFirstItem():(q=_.BBP(M),q.length&&q[0].focus()));M.removeEventListener("iron-overlay-opened",
_.qs(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(M){M=M.currentTarget;M.refit&&M.refit()},
refitPopups_:function(){for(var M in this.popups_)this.popups_[M].refit()},
handleInvalidatePopupTabbables_:function(M){M=M.currentTarget;M.invalidateTabbables&&M.invalidateTabbables()},
createCacheKey:function(M,q){return _.w("web_popup_cache_key_killswitch")?q?M+"#"+q:M:q?"#"+q:M},
openSheet:function(M,q){var G=M==null?void 0:M.openPopupActionCommand;if(!G&&(M==null?0:M.viewModel)){if(M.sheetPosition)a:switch(M.sheetPosition){case "SHEET_POSITION_RIGHT":G="OPEN_POPUP_POSITION_RIGHT";break a;default:G="OPEN_POPUP_POSITION_UNKNOWN"}else G=void 0;G={openPopupAction:{popup:{sheetViewModel:M.viewModel},popupType:"CONTEXTUAL_SHEET",position:G}}}G&&this.handleOpenPopupAction(G,q)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var M=this;return _.L(function(q){return q.return(M.handleGetOpenedPopupsAction_().filter(function(G){var K;return((K=G.openPopupAction)==null?void 0:K.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(M,q,G){if(_.w("web_dialog_utils_killswitch")){var K=M==null?void 0:M.openPopupActionCommand,n=(G==null?0:G.ariaLabel)?{accessibilityData:{accessibilityData:{label:G.ariaLabel}}}:void 0;!K&&(M==null?0:M.viewModel)&&(K={openPopupAction:Object.assign({},{popup:{dialogViewModel:M.viewModel},popupType:(G==null?0:G.isModal)?"MODAL":"DIALOG"},n&&n)});K&&this.handleOpenPopupAction(K,q)}else{if(n=M==null?void 0:M.viewModel){var E=G=G===void 0?{}:G;G=E.ariaLabel;n={popup:{dialogViewModel:n},
popupType:E.isModal?"MODAL":"DIALOG"};E={accessibilityData:{label:G}};G&&(n.accessibilityData=E);n={openPopupAction:n}}else n=void 0;if(n=(K=n)!=null?K:M==null?void 0:M.openPopupActionCommand)this.isAriaModal=_.w("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(n,q)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var M=this;return _.L(function(q){return q.return(M.handleGetOpenedPopupsAction_().filter(function(G){var K;return((K=G.openPopupAction)==null?void 0:K.popupType)==="DIALOG"}).length>0)})}}];var UZ8;var xZI;var z$5=_.DQ(["about:blank"]),Nv=function(){var M=_.Q.apply(this,arguments)||this;M.isMuted=!1;M.pageLoadTimeoutId=void 0;return M};
_.l(Nv,_.Q);_.N=Nv.prototype;_.N.dataChanged=function(){var M=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var q=this.data.url,G=_.jG(q);_.w("enable_yt_ata_iframe_authuser")?(G=_.jG(q),_.$C(this.iframe,Ouw(G))):_.$C(this.iframe,G);this.pageLoadTimeoutId=_.Jp(_.AM(),function(){return void M.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.e$({destination:window,iframe:this.iframe,origin:_.sEv(G.toString()),channelName:"ataiframe",onMessage:_.NW2(aiw,function(K){olL(K.data)?(K=_.HI(K.data,1,_.EL,_.WX()),K.length!==1?_.j1(Error("Ll")):(K=K[0],K===3?(M.isMuted=!0,M.logStateChanged({adMuteRequested:!0})):K===1&&M.close())):_.j1(Error("Ml"))}),
onEstablished:function(){M.cancelPageLoadTimeout();M.logStateChanged({pageLoadSucceeded:!0})}})}};
_.N.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.AM().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.N.logStateChanged=function(M){var q;if((q=this.data)==null?0:q.trackingParams)M={adsClientData:{aboutThisAdData:M}},_.nl().stateChanged(this.data.trackingParams,M)};
_.N.close=function(){_.VW(this.hostElement,"yt-close-popup-action",[this.is])};
_.N.handlesPopupClosed=function(M,q){var G=this,K,n;return _.L(function(E){if(E.nextAddress==1)return _.R9("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.VW(G.hostElement,"on-about-this-ad-popup-closed",[G.isMuted,q]),E.jumpTo(0)):M&&w7w(M)?E.yield(CZv(M),4):(G.isMuted&&_.VW(G.hostElement,"yt-mute-ad-action",[G.is,G]),E.jumpTo(0));if(K=E.yieldResult){var p=n=new _.Zi(K),y=G.isMuted;p.getOptions().includes("onAboutThisAdPopupClosed")?_.k79(p,"onAboutThisAdPopupClosed",{isMuted:y,layoutId:q}):_.BO("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.gL(E)})};
_.N.onPopupClosed=function(M){var q=this,G,K;return _.L(function(n){G=_.Ow(z$5);_.$C(q.iframe,G);q.cancelPageLoadTimeout();if(!q.data)return n.jumpTo(0);q.ytRendererBehavior.markDirty();K=M.detail.context.openingElement;return n.yield(q.handlesPopupClosed(K,q.data.layoutId),0)})};
_.N.detached=function(){this.cancelPageLoadTimeout()};
_.N.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Nv.prototype.onPopupClosed=Nv.prototype.onPopupClosed;Nv.prototype.dataChanged=Nv.prototype.dataChanged;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.T([_.ET("#iframe"),_.r("design:type",HTMLIFrameElement)],Nv.prototype,"iframe",void 0);_.T([_.B(),_.r("design:type",Object)],Nv.prototype,"data",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Nv.prototype,"dataChanged",null);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype",Promise)],Nv.prototype,"onPopupClosed",null);_.T([_.aO({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Nv);
_.z(Nv,"yt-about-this-ad-renderer",function(){if(xZI===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;UZ8===void 0&&(UZ8=document.createElement("template"));var K=UZ8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);xZI=M}M=xZI;return M},{mode:2});var mZs;var Skn;var TCw=function(M){var q=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=q.message;"stack"in q&&(this.stack=q.stack);this.maxFileSizeMB=M;Object.setPrototypeOf(this,TCw.prototype)};
_.l(TCw,Error);var r6L=function(M,q){var G=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=G.message;"stack"in G&&(this.stack=G.stack);this.minWidth=M;this.minHeight=q;Object.setPrototypeOf(this,r6L.prototype)};
_.l(r6L,Error);var joE=function(M){this.requirements=M;this.JSC$21090_maxFileSize=M.maxFileSizeMB*1024*1024},VaP=function(M,q){if(q.size>M.JSC$21090_maxFileSize)throw new TCw(M.requirements.maxFileSizeMB);
};var R$8=function(M,q){this.canvas=M;this.imageEditorBuilder=q};
R$8.prototype.addEventListeners=function(M){var q=function(n){f7P(M,n)};
this.JSC$21096_mouseDownEvent=q;var G=function(n){Ff8(M,n)};
this.JSC$21096_mouseMoveEvent=G;var K=function(){HBL(M)};
this.JSC$21096_mouseUpEvent=K;this.canvas.addEventListener("mousedown",q);this.canvas.addEventListener("mousemove",G);document.addEventListener("mouseup",K)};
R$8.prototype.removeEventListeners=function(){this.JSC$21096_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$21096_mouseDownEvent);this.JSC$21096_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$21096_mouseMoveEvent);this.JSC$21096_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$21096_mouseUpEvent)};
var e$P=function(M,q){M.removeEventListeners();return new Promise(function(G){var K=new Image;K.crossOrigin="anonymous";K.onload=function(){var n=M.imageEditorBuilder(M.canvas,K);M.addEventListeners(n);G(n)};
K.src=q})},kT=function(M,q,G,K,n,E,p,y){this.canvas=M;
this.image=q;this.requiredRatio=G;this.minImageCropDimension=K;this.minOutputImageResolution=n;this.component=E;this.styleFocusedCorner=y===void 0?!0:y;this.action=2;this.focusedCorner=this.resizeCorner=0;M=this.canvas.getContext("2d");if(!M)throw Error("Nl");this.ctx=M;this.canvasMargin=p!=null?p:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;p=this.image;M=this.canvasInnerWidth/p.width;p.height*M>912&&(M=p.width/p.height*912/p.width);p=M;this.scaledImageWidth=this.canvas.width%2?
o1I(this.image.width*p):ahg(this.image.width*p);this.scaledImageHeight=Math.round(this.image.height*p);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$21099_overlayMarginBottom=this.JSC$21099_overlayMarginTop=this.canvasMargin;this.JSC$21099_overlayMarginRight=this.JSC$21099_overlayMarginLeft=this.horizontalMargin;this.JSC$21099_overlayWidth=this.scaledImageWidth;this.JSC$21099_overlayHeight=this.scaledImageHeight;
M=this.image.width/this.image.height;M>this.requiredRatio?(this.JSC$21099_overlayWidth=this.canvas.width%2?o1I(this.scaledImageHeight*this.requiredRatio):ahg(this.scaledImageHeight*this.requiredRatio),this.JSC$21099_overlayMarginRight=this.JSC$21099_overlayMarginLeft=(this.canvas.width-this.JSC$21099_overlayWidth)/2):M<this.requiredRatio&&(this.JSC$21099_overlayHeight=this.canvas.height%2?o1I(this.scaledImageWidth/this.requiredRatio):ahg(this.scaledImageWidth/this.requiredRatio),this.JSC$21099_overlayMarginBottom=
this.JSC$21099_overlayMarginTop=(this.canvas.height-this.JSC$21099_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*p,this.scaledImageWidth);$Zw(this)};
kT.prototype.getContext=function(){return this.ctx};
var f7P=function(M,q){q={x:Math.round(q.pageX-M.canvas.getBoundingClientRect().left),y:Math.round(q.pageY-M.canvas.getBoundingClientRect().top)};M.dragStart=q;sWs(M,q)!==0?(M.action=1,MZU(M,q),M.resizeCorner=sWs(M,q)):q.x>M.JSC$21099_overlayMarginLeft&&q.x<M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth&&q.y>M.JSC$21099_overlayMarginTop&&q.y<M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight&&(M.action=0)},q$g=function(M,q){switch(q){case 1:return{x:M.JSC$21099_overlayMarginLeft,
y:M.JSC$21099_overlayMarginTop};case 2:return{x:M.JSC$21099_overlayMarginLeft,y:M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight};case 3:return{x:M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth,y:M.JSC$21099_overlayMarginTop};case 4:return{x:M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth,y:M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight};default:throw Error("Ol");}},KCU=function(M,q){if(M.focusedCorner!==0){M.dragStart=q$g(M,M.focusedCorner);
M.action=1;M.resizeCorner=M.focusedCorner;var G=M.dragStart.x,K=M.dragStart.y;switch(q){case 0:M.focusedCorner===1||M.focusedCorner===4?(G-=10,K-=10):(G-=10,K+=10);break;case 1:M.focusedCorner===1||M.focusedCorner===4?(G+=10,K+=10):(G+=10,K-=10);break;case 2:G=M.focusedCorner===1||M.focusedCorner===4?G-10:G+10;K-=10;break;case 3:G=M.focusedCorner===1||M.focusedCorner===4?G+10:G-10;K+=10;break;default:throw Error("Pl");}GvR(M,{x:G,y:K});$Zw(M);M.action=2;M.dragStart=void 0}},Ff8=function(M,q){q={x:Math.round(q.pageX-
M.canvas.getBoundingClientRect().left),
y:Math.round(q.pageY-M.canvas.getBoundingClientRect().top)};MZU(M,q);switch(M.action){case 1:GvR(M,q);break;case 0:M.dragStart&&(M.JSC$21099_overlayMarginLeft=Math.max(M.horizontalMargin,Math.min(M.JSC$21099_overlayMarginLeft-(M.dragStart.x-q.x),M.horizontalMargin+M.scaledImageWidth-M.JSC$21099_overlayWidth)),M.JSC$21099_overlayMarginRight=M.canvas.width-M.JSC$21099_overlayMarginLeft-M.JSC$21099_overlayWidth,M.JSC$21099_overlayMarginTop=Math.max(M.canvasMargin,Math.min(M.JSC$21099_overlayMarginTop-
(M.dragStart.y-q.y),M.scaledImageHeight-M.JSC$21099_overlayHeight+M.canvasMargin)),M.JSC$21099_overlayMarginBottom=M.canvas.height-(M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight));break;default:return}$Zw(M);M.dragStart=q},HBL=function(M){M.action=2;
M.dragStart=void 0;document.body.style.cursor="auto"},MZU=function(M,q){switch(sWs(M,q)){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:M.action!==1&&(document.body.style.cursor="auto")}},sWs=function(M,q){var G=M.JSC$21099_overlayMarginLeft-5,K=M.JSC$21099_overlayMarginTop-5,n=M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth-5;
M=M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight-5;return n4n(q,{x:G,y:K})?1:n4n(q,{x:n,y:K})?3:n4n(q,{x:G,y:M})?2:n4n(q,{x:n,y:M})?4:0},n4n=function(M,q){return M.x>=q.x&&M.x<=q.x+10&&M.y>=q.y&&M.y<=q.y+10},GvR=function(M,q){if(M.dragStart)switch(M.resizeCorner){case 2:Math.abs((M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth-q.x)/(q.y-M.JSC$21099_overlayMarginTop))>=M.requiredRatio?E4s(M,q.x):NfE(M,q.y);
break;case 1:Math.abs((M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth-q.x)/(M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight-q.y))>=M.requiredRatio?kvw(M,q.x):NfE(M,q.y);break;case 4:Math.abs((q.x-M.JSC$21099_overlayMarginLeft)/(q.y-M.JSC$21099_overlayMarginTop))>=M.requiredRatio?E4s(M,q.x):pw8(M,q.y);break;case 3:Math.abs((q.x-M.JSC$21099_overlayMarginLeft)/(M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight-q.y))>=M.requiredRatio?kvw(M,q.x):pw8(M,q.y);break;default:throw Error("Ql");
}},E4s=function(M,q){var G=M.JSC$21099_overlayMarginTop;
M.JSC$21099_overlayMarginBottom=yWw(M,q);M.JSC$21099_overlayHeight=M.canvas.height-M.JSC$21099_overlayMarginBottom-G;M.JSC$21099_overlayWidth=Math.round(M.JSC$21099_overlayHeight*M.requiredRatio);LCL(M)},kvw=function(M,q){var G=M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight;
M.JSC$21099_overlayMarginTop=yWw(M,q);M.JSC$21099_overlayHeight=G-M.JSC$21099_overlayMarginTop;M.JSC$21099_overlayWidth=Math.round(M.JSC$21099_overlayHeight*M.requiredRatio);LCL(M)},LCL=function(M){switch(M.resizeCorner){case 2:case 1:M.JSC$21099_overlayMarginLeft=M.canvas.width-M.JSC$21099_overlayMarginRight-M.JSC$21099_overlayWidth;
break;case 4:case 3:M.JSC$21099_overlayMarginRight=M.canvas.width-M.JSC$21099_overlayMarginLeft-M.JSC$21099_overlayWidth;break;default:throw Error("Ql");}},NfE=function(M,q){var G=M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth;
M.JSC$21099_overlayMarginLeft=Y$8(M,q);M.JSC$21099_overlayWidth=G-M.JSC$21099_overlayMarginLeft;M.JSC$21099_overlayHeight=Math.round(M.JSC$21099_overlayWidth/M.requiredRatio);WCU(M)},pw8=function(M,q){var G=M.JSC$21099_overlayMarginLeft;
M.JSC$21099_overlayMarginRight=Y$8(M,q);M.JSC$21099_overlayWidth=M.canvas.width-M.JSC$21099_overlayMarginRight-G;M.JSC$21099_overlayHeight=Math.round(M.JSC$21099_overlayWidth/M.requiredRatio);WCU(M)},WCU=function(M){switch(M.resizeCorner){case 2:case 4:M.JSC$21099_overlayMarginBottom=M.canvas.height-M.JSC$21099_overlayMarginTop-M.JSC$21099_overlayHeight;
break;case 1:case 3:M.JSC$21099_overlayMarginTop=M.canvas.height-M.JSC$21099_overlayMarginBottom-M.JSC$21099_overlayHeight;break;default:throw Error("Ql");}},yWw=function(M,q){switch(M.resizeCorner){case 2:q=M.canvas.height-(M.JSC$21099_overlayMarginTop+AWv(M,q));
break;case 4:q=M.canvas.height-(M.JSC$21099_overlayMarginTop+dFI(M,q));break;case 1:q=M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight-AWv(M,q);break;case 3:q=M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight-dFI(M,q);break;default:throw Error("Ql");}return Math.max(q,M.canvasMargin)},AWv=function(M,q){q=M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth-Math.max(q,M.horizontalMargin);
q=q<0?M.JSC$21099_overlayWidth:Math.max(q,M.minOverlayWidth);return Math.round(q/M.requiredRatio)},dFI=function(M,q){q=M.canvas.width-Math.max(M.canvas.width-q,M.horizontalMargin)-M.JSC$21099_overlayMarginLeft;
q=q<0?M.JSC$21099_overlayWidth:Math.max(q,M.minOverlayWidth);return Math.round(q/M.requiredRatio)},Y$8=function(M,q){switch(M.resizeCorner){case 2:q=M.canvas.width-M.JSC$21099_overlayMarginRight-v4P(M,q);
break;case 4:q=M.canvas.width-M.JSC$21099_overlayMarginLeft-v4P(M,q);break;case 1:q=M.canvas.width-M.JSC$21099_overlayMarginRight-hhs(M,q);break;case 3:q=M.canvas.width-M.JSC$21099_overlayMarginLeft-hhs(M,q);break;default:throw Error("Ql");}return Math.max(q,M.horizontalMargin)},v4P=function(M,q){q=M.canvas.height-Math.max(M.canvas.height-q,M.canvasMargin)-M.JSC$21099_overlayMarginTop;
return q<0?M.JSC$21099_overlayWidth:Math.max(Math.round(q*M.requiredRatio),M.minOverlayWidth)},hhs=function(M,q){q=M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight-Math.max(q,M.canvasMargin);
return q<0?M.JSC$21099_overlayWidth:Math.max(Math.round(q*M.requiredRatio),M.minOverlayWidth)},$Zw=function(M){M.ctx.clearRect(0,0,M.canvas.width,M.canvas.height);
M.ctx.drawImage(M.image,0,0,M.image.width,M.image.height,M.horizontalMargin,M.canvasMargin,M.canvas.width-2*M.horizontalMargin,M.scaledImageHeight);M.ctx.fillStyle="rgba(0, 0, 0, 0.7)";M.ctx.fillRect(M.horizontalMargin,M.JSC$21099_overlayMarginTop,M.JSC$21099_overlayMarginLeft-M.horizontalMargin,M.JSC$21099_overlayHeight);M.ctx.fillRect(M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth,M.JSC$21099_overlayMarginTop,M.JSC$21099_overlayMarginRight-M.horizontalMargin,M.JSC$21099_overlayHeight);M.ctx.fillRect(M.horizontalMargin,
M.canvasMargin,M.scaledImageWidth,M.JSC$21099_overlayMarginTop-M.canvasMargin);M.ctx.fillRect(M.horizontalMargin,M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight,M.scaledImageWidth,M.JSC$21099_overlayMarginBottom-M.canvasMargin);M.drawOverlay();M.component&&_.jP(M.component,"image-updated")};
kT.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$21099_overlayMarginLeft,this.JSC$21099_overlayMarginTop,this.JSC$21099_overlayWidth,this.JSC$21099_overlayHeight);tZw(this)};
var tZw=function(M){var q=M.JSC$21099_overlayMarginLeft-5,G=M.JSC$21099_overlayMarginTop-5,K=M.JSC$21099_overlayMarginLeft+M.JSC$21099_overlayWidth-5,n=M.JSC$21099_overlayMarginTop+M.JSC$21099_overlayHeight-5;M.ctx.fillStyle="#FFF";M.ctx.fillRect(q,G,10,10);M.ctx.strokeRect(q,G,10,10);M.ctx.fillRect(K,G,10,10);M.ctx.strokeRect(K,G,10,10);M.ctx.fillRect(q,n,10,10);M.ctx.strokeRect(q,n,10,10);M.ctx.fillRect(K,n,10,10);M.ctx.strokeRect(K,n,10,10);if(M.focusedCorner!==0&&M.styleFocusedCorner){M.ctx.lineWidth=
4;M.ctx.strokeStyle="#3EA6FF";switch(M.focusedCorner){case 1:--q;--G;break;case 2:--q;G=n-1;break;case 3:q=K-1;--G;break;case 4:q=K-1;G=n-1;break;default:return}M.ctx.strokeRect(q,G,12,12)}};
kT.prototype.crop=function(M,q){q=q===void 0?!0:q;var G=this.image.width/this.scaledImageWidth,K=document.createElement("canvas"),n=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],E=this.JSC$21099_overlayWidth*G,p=this.JSC$21099_overlayHeight*G;K.width=Math.max(E,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);K.height=Math.max(p,n);M&&(K.width=Math.min(K.width,K.height),K.height=Math.min(K.width,K.height));
M=K.getContext("2d");if(!M)throw Error("El");n=(this.JSC$21099_overlayMarginLeft-this.horizontalMargin)*G;G*=this.JSC$21099_overlayMarginTop-this.canvasMargin;q||(M.fillStyle="white",M.fillRect(0,0,K.width,K.height));M.drawImage(this.image,n,G,E,p,0,0,K.width,K.height);return K};var Omg=function(M,q,G,K,n){kT.call(this,M,q,G,K,void 0,n,8,!1)};
_.l(Omg,kT);Omg.prototype.drawOverlay=function(){var M=this.getContext(),q=this.JSC$21099_overlayWidth,G=this.JSC$21099_overlayHeight,K=this.JSC$21099_overlayMarginTop,n=this.JSC$21099_overlayMarginLeft;M.lineWidth=2;M.strokeStyle="#3EA6FF";M.beginPath();M.arc(n+q/2,K+G/2,q/2,0,2*Math.PI);M.stroke();M.strokeRect(n,K,q,G);tZw(this)};
var ww5={maxFileSizeMB:15,minWidth:98,minHeight:98},Crs=["image/png","image/jpeg","image/gif"],pw=function(){var M=_.Q.apply(this,arguments)||this;M.fileSelectorFocusListener=null;M.errorMessage=null;M.isLoading=!0;M.hideContainer=!0;M.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return M};
_.l(pw,_.Q);_.N=pw.prototype;_.N.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.N.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.N.computePlaylistThumbnail=function(M){return M==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.N.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.VW(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.N.setErrorState=function(M){this.resetErrorState();M&&(this.errorMessage=M)};
_.N.showPopup=function(){var M=this;this.hideContainer=!1;_.Jp(_.r8,function(){_.jP(M.hostElement,"yt-refit")});
this.isLoading=!1};
_.N.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.N.closePopup=function(){this.resetFileSelector();_.VW(this.hostElement,"yt-close-popup-action",[this.is])};
_.N.onCancelTap=function(){this.isPlaylistThumbnail||_.VW(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.N.openFileSelector=function(){var M=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.Jp(_.r8,function(){setTimeout(function(){if(!M.fileSelector.files||M.fileSelector.files.length===0)M.onCancelTap();M.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(q){q instanceof Error?_.T6(q):_.rM(new _.bj(JSON.stringify(q)))}};
_.N.handleFileSelection=function(){var M=this,q,G,K,n,E,p;return _.L(function(y){switch(y.nextAddress){case 1:_.Cv(y,2);if(!M.fileSelector.files||!M.imageEditorCanvas)return M.onCancelTap(),y.return();q=M.fileSelector.files[0];VaP(M.imageChecker,q);_.Cv(y,4);return y.yield(jHE(q),6);case 6:M.mimeType=y.yieldResult;_.KF(y,5,2);break;case 4:_.i5(y,2),_.VW(M.hostElement,"yt-image-selection-error-action",[(G=M.data)==null?void 0:G.genericImageLoadErrorMessage]),M.onCancelTap();case 5:K=new FileReader;
K.addEventListener("load",function(){var Y,A;return _.L(function(v){if(v.nextAddress==1){if(!K.result)return _.j1(Error("Gl")),v.return();Y=K.result;A=new Image;A.src=Y;A.onload=function(){try{var h=M.imageChecker;if(A.width<h.requirements.minWidth||A.height<h.requirements.minHeight)throw new r6L(h.requirements.minWidth,h.requirements.minHeight);}catch(O){if(O instanceof r6L){var t;_.VW(M.hostElement,"yt-image-selection-error-action",[(t=M.data)==null?void 0:t.imageDimensionErrorMessage]);M.logImageDimensionErrorVe()}else O instanceof
Error?_.T6(O):(h=new _.bj(JSON.stringify(O)),_.T6(h));M.onCancelTap()}M.showPopup()};
A.onerror=function(){var h;_.VW(M.hostElement,"yt-image-selection-error-action",[(h=M.data)==null?void 0:h.genericImageLoadErrorMessage]);M.onCancelTap()};
return v.yield(e$P(M.imageEditorCanvas,Y),2)}M.imageEditor=v.yieldResult;M.updatePositionOfAllCorners();M.addEventListeners(M.imageEditor);_.gL(v)})},!1);
K.readAsDataURL(q);_.KF(y,0);break;case 2:n=_.i5(y),n instanceof TCw?_.VW(M.hostElement,"yt-image-selection-error-action",[(E=M.data)==null?void 0:E.imageSizeErrorMessage]):(n instanceof Error?_.T6(n):_.rM(new _.bj(JSON.stringify(n))),_.VW(M.hostElement,"yt-image-selection-error-action",[(p=M.data)==null?void 0:p.genericImageLoadErrorMessage])),M.onCancelTap(),_.gL(y)}})};
_.N.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var M=_.GE(_.nl(),{veType:232707,visualElement:_.$m(232707)});M&&(M={visualElement:M},_.qY().reportShown(M))}};
_.N.handleImageSelectionErrorAction=function(M){this.isPlaylistThumbnail&&_.tkF(this.hostElement,M)};
_.N.convertToImageFormatBundle=function(M){var q=this,G,K,n;return _.L(function(E){switch(E.nextAddress){case 1:return G=M.toDataURL(q.outputMimeType,1),E.yield(VhR(G),2);case 2:K=E.yieldResult;_.Cv(E,3);VaP(q.imageChecker,K);_.KF(E,4);break;case 3:n=_.i5(E);if(!(n instanceof TCw))throw n;_.j1(new _.bj("Output size is bigger than input size for image",q.mimeType,q.outputMimeType,K.size));G=M.toDataURL("image/jpeg",.95);return E.yield(VhR(G),6);case 6:K=E.yieldResult;case 4:return E.return({dataUrl:G,
imageFile:K})}})};
_.N.handleUploadImageToScottyCommand=function(M){var q=this,G,K,n,E,p,y,Y,A,v,h;return _.L(function(t){switch(t.nextAddress){case 1:if(!q.imageEditor||!_.C(M,UNv))return t.return();G=_.C(M,UNv).scottyUploadUrl;if(!G){var O=new _.bj("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.T6(O);return t.return()}_.Cv(t,2);q.setLoadingState();K=q.imageEditor.crop(!1,!1);return t.yield(q.convertToImageFormatBundle(K),4);case 4:return n=t.yieldResult,t.yield(TrL(n.imageFile,G),5);
case 5:E=t.yieldResult;((p=q.data)==null?0:p.onUploadEndpoint)?(y=q.buildUploadServiceEndpoint(E),q.ytComponentBehavior.resolveCommand(y),Y=_.C(y,_.ri),((A=Y)==null?0:A.params)?q.closePopup():q.resetFileSelector()):(_.VW(q.hostElement,"yt-image-updated-action",[n.dataUrl,E]),q.closePopup());_.KF(t,0);break;case 2:v=_.i5(t),q.setErrorState((h=q.data)==null?void 0:h.uploadErrorMessage),v instanceof Error?_.T6(v):(O=new _.bj(JSON.stringify(v)),_.T6(O)),_.gL(t)}})};
_.N.buildUploadServiceEndpoint=function(M){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",M),this.data.onUploadEndpoint):null};
_.N.dataChanged=function(){var M=this,q;return _.L(function(G){if(G.nextAddress==1){if(!M.data||!M.canvasElement)return G.return();M.data.imageRatio&&M.data.minImageCropWidth||_.rM(new _.bj("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));q=function(K,n){return M.data.imageType==="IMAGE_TYPE_AVATAR"?new Omg(K,n,M.data.imageRatio,[M.data.minImageCropWidth,M.data.minImageCropWidth/M.data.imageRatio],M.hostElement):new kT(K,n,M.data.imageRatio,[M.data.minImageCropWidth,
M.data.minImageCropWidth/M.data.imageRatio],void 0,M.hostElement,8,!1)};
M.imageEditorCanvas=new R$8(M.canvasElement,q);return M.data.url?G.yield(e$P(M.imageEditorCanvas,M.data.url),3):(M.hideContainer=!0,M.openFileSelector(),G.jumpTo(0))}M.imageEditor=G.yieldResult;M.showPopup();M.addEventListeners(M.imageEditor);_.gL(G)})};
_.N.addEventListeners=function(M){this.removeEventListeners();var q=function(n){f7P(M,n)};
this.JSC$21107_mouseDownEvent=q;var G=function(n){Ff8(M,n)};
this.JSC$21107_mouseMoveEvent=G;var K=function(){HBL(M)};
this.JSC$21107_mouseUpEvent=K;this.topLeftCorner.addEventListener("mousedown",q);this.topLeftCorner.addEventListener("mousemove",G);this.topLeftCorner.addEventListener("mouseup",K);this.topRightCorner.addEventListener("mousedown",q);this.topRightCorner.addEventListener("mousemove",G);this.topRightCorner.addEventListener("mouseup",K);this.bottomLeftCorner.addEventListener("mousedown",q);this.bottomLeftCorner.addEventListener("mousemove",G);this.bottomLeftCorner.addEventListener("mouseup",K);this.bottomRightCorner.addEventListener("mousedown",
q);this.bottomRightCorner.addEventListener("mousemove",G);this.bottomRightCorner.addEventListener("mouseup",K)};
_.N.removeEventListeners=function(){this.JSC$21107_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$21107_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$21107_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$21107_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$21107_mouseDownEvent));this.JSC$21107_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$21107_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$21107_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$21107_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$21107_mouseMoveEvent));this.JSC$21107_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$21107_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$21107_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$21107_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$21107_mouseUpEvent))};
_.N.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var M=document.activeElement;M&&M.shadowRoot&&M.shadowRoot.activeElement;)M=M.shadowRoot.activeElement;switch(M){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};
_.N.updatePositionOfCorner=function(M,q){var G=M.y-q.offsetHeight/2+4;q.style.left=M.x-q.offsetWidth/2+16+"px";q.style.top=G+"px"};
_.N.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var M=_.k([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),q=M.next();!q.done;q=M.next()){q=q.value;var G=q$g(this.imageEditor,q.corner);this.updatePositionOfCorner(G,q.div)}};
_.N.onLeft=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(KCU(this.imageEditor,0),this.updatePositionOfAllCorners(),M.preventDefault())};
_.N.onRight=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(KCU(this.imageEditor,1),this.updatePositionOfAllCorners(),M.preventDefault())};
_.N.onUp=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(KCU(this.imageEditor,2),this.updatePositionOfAllCorners(),M.preventDefault())};
_.N.onDown=function(M){this.imageEditor&&this.setFocusInImageEditor()&&(KCU(this.imageEditor,3),this.updatePositionOfAllCorners(),M.preventDefault())};
_.N.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Yd.Object.defineProperties(pw.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&Crs.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var M,q,G;((q=this.data)==null?0:q.imageRatio)&&((G=this.data)==null?0:G.minImageCropWidth)?M={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:M=ww5;return new joE(M)}}});
pw.prototype.updatePositionOfAllCorners=pw.prototype.updatePositionOfAllCorners;pw.prototype.dataChanged=pw.prototype.dataChanged;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],pw.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],pw.prototype,"ytComponentBehavior",void 0);_.T([_.P(_.X9),_.r("design:type",Object)],pw.prototype,"ironA11yKeysBehavior",void 0);
_.T([_.ET("#canvas"),_.r("design:type",HTMLCanvasElement)],pw.prototype,"canvasElement",void 0);_.T([_.ET("#file-selector"),_.r("design:type",HTMLInputElement)],pw.prototype,"fileSelector",void 0);_.T([_.ET("#top-left-corner"),_.r("design:type",HTMLDivElement)],pw.prototype,"topLeftCorner",void 0);_.T([_.ET("#top-right-corner"),_.r("design:type",HTMLDivElement)],pw.prototype,"topRightCorner",void 0);
_.T([_.ET("#bottom-left-corner"),_.r("design:type",HTMLDivElement)],pw.prototype,"bottomLeftCorner",void 0);_.T([_.ET("#bottom-right-corner"),_.r("design:type",HTMLDivElement)],pw.prototype,"bottomRightCorner",void 0);_.T([_.B(),_.r("design:type",Object)],pw.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],pw.prototype,"errorMessage",void 0);_.T([_.B(),_.r("design:type",Object)],pw.prototype,"isLoading",void 0);_.T([_.B(),_.r("design:type",Object)],pw.prototype,"hideContainer",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.r("design:type",Boolean)],pw.prototype,"isPlaylistThumbnail",void 0);_.T([_.yO("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],pw.prototype,"dataChanged",null);_.T([_.GQ("image-updated"),_.GQ("yt-refit"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],pw.prototype,"updatePositionOfAllCorners",null);
_.T([_.aO({is:"yt-image-editor-renderer",disableElementRegistration:!0})],pw);
_.z(pw,"yt-image-editor-renderer",function(){if(Skn===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;mZs===void 0&&(mZs=document.createElement("template"));var K=mZs;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Skn=M}M=Skn;return M},{mode:2});var arP;var o45;var yA=function(){return _.Q.apply(this,arguments)||this};
_.l(yA,_.Q);yA.prototype.updateMinutesFromBinding=function(M){this.handleMinutesChanged&&this.handleMinutesChanged(M)};
yA.prototype.updateSecondsFromBinding=function(M){this.handleSecondsChanged&&this.handleSecondsChanged(M)};
yA.prototype.updateDescriptionFromBinding=function(M){this.handleDescriptionChanged&&this.handleDescriptionChanged(M)};
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],yA.prototype,"ytComponentBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],yA.prototype,"data",void 0);_.T([_.B(),_.r("design:type",String)],yA.prototype,"minutes",void 0);_.T([_.B(),_.r("design:type",String)],yA.prototype,"seconds",void 0);_.T([_.B(),_.r("design:type",String)],yA.prototype,"description",void 0);_.T([_.B(),_.r("design:type",Function)],yA.prototype,"handleMinutesChanged",void 0);
_.T([_.B(),_.r("design:type",Function)],yA.prototype,"handleSecondsChanged",void 0);_.T([_.B(),_.r("design:type",Function)],yA.prototype,"handleDescriptionChanged",void 0);_.T([_.B(),_.r("design:type",Number)],yA.prototype,"characterLimit",void 0);_.T([_.B(),_.r("design:type",Number)],yA.prototype,"textNumRows",void 0);_.T([_.aO({is:"yt-report-details-form-content",disableElementRegistration:!0})],yA);
_.z(yA,"yt-report-details-form-content",function(){if(o45===void 0){var M=document.createElement("template");_.X(M,'\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>');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;arP===void 0&&(arP=document.createElement("template"));var K=arP;G.call(q,K.content.cloneNode(!0),M.content.firstChild);o45=M}M=o45;return M},{mode:2});var lrg;var XwR;var Lw=function(){var M=_.Q.apply(this,arguments)||this;M.updateMinutesFromBinding=function(q){M.minutes=q.detail.value};
M.updateSecondsFromBinding=function(q){M.seconds=q.detail.value};
M.updateDescriptionFromBinding=function(q){M.description=q.detail.value};
return M};
_.l(Lw,_.Q);_.N=Lw.prototype;_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.N.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"}}}};
_.N.ready=function(){_.f_(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.N.onSubmitYtAction=function(M){var q=M.detail;q.actionName==="yt-service-request"&&(q=q.args[1],q.flagEndpoint&&(M.stopPropagation(),this.refireAction(q)))};
_.N.refireAction=function(M){var q={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(q.vss_id=this.vssId);_.fx(this.hostElement,[M,q]);this.submitDisabled=!0};
_.N.dataChanged=function(){var M=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var q=_.TM();q&&q.getPlayerPromise().then(function(G){var K=G.getOption("cc","track")||G.getOption("captions","track");K&&(M.vssId=K.vss_id);G=G.getCurrentTime();M.minutes=Math.floor(G/60).toString();M.seconds=(Math.floor(G)%60).toString()})};
_.N.updateSubmitButtonState=function(){var M;((M=this.data)==null?0:M.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==="")};
_.N.onYtServiceRequestCompleted=function(){_.VW(this.hostElement,"yt-close-popup-action")};
_.N.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Yd.Object.defineProperties(Lw.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var M;return((M=this.data)==null?void 0:M.textNumRows)||4}}});
Lw.prototype.onYtServiceRequestError=Lw.prototype.onYtServiceRequestError;Lw.prototype.onYtServiceRequestCompleted=Lw.prototype.onYtServiceRequestCompleted;Lw.prototype.updateSubmitButtonState=Lw.prototype.updateSubmitButtonState;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Lw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Lw.prototype,"ytRendererBehavior",void 0);
_.T([_.B({observer:"dataChanged"}),_.r("design:type",Object)],Lw.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Boolean)],Lw.prototype,"submitDisabled",void 0);_.T([_.B(),_.r("design:type",String)],Lw.prototype,"minutes",void 0);_.T([_.B(),_.r("design:type",String)],Lw.prototype,"seconds",void 0);_.T([_.B(),_.r("design:type",String)],Lw.prototype,"description",void 0);_.T([_.B(),_.r("design:type",String)],Lw.prototype,"vssId",void 0);
_.T([_.B({value:_.R9("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.r("design:type",Boolean)],Lw.prototype,"isMusic",void 0);_.T([_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],Lw.prototype,"characterLimit",null);_.T([_.c("data"),_.r("design:type",Number),_.r("design:paramtypes",[])],Lw.prototype,"textNumRows",null);
_.T([_.yO("minutes","seconds","description","submitDisabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lw.prototype,"updateSubmitButtonState",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lw.prototype,"onYtServiceRequestCompleted",null);
_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Lw.prototype,"onYtServiceRequestError",null);_.T([_.aO({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Lw);
_.z(Lw,"yt-report-details-form-renderer",function(){if(XwR===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;lrg===void 0&&(lrg=document.createElement("template"));var K=lrg;G.call(q,K.content.cloneNode(!0),M.content.firstChild);XwR=M}M=XwR;return M});var PrE;var imw;var cWI;var g4I;var WV=function(){return _.Q.apply(this,arguments)||this};
_.l(WV,_.Q);
WV.prototype.onCheckedChanged_=function(){if(this.data){var M=_.f_(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.VW(this.hostElement,"yt-additional-detail-checkbox-update",[M]):this.data.identifier==="yt-hide-user-checkbox"?_.VW(this.hostElement,"yt-hide-user-checkbox-update",[M]):M&&this.data.enableCommand?_.VW(this.hostElement,"yt-modify-report-form-command",[_.C(this.data.enableCommand,jx5)]):!M&&this.data.disableCommand&&_.VW(this.hostElement,
"yt-modify-report-form-command",[_.C(this.data.enableCommand,jx5)])}};
WV.prototype.onLabelTap_=function(M){M.target.tagName!="A"&&(_.f_(this.hostElement).querySelector("#checkbox").checked=!_.f_(this.hostElement).querySelector("#checkbox").checked)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],WV.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],WV.prototype,"data",void 0);_.T([_.aO({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],WV);
_.z(WV,"yt-boolean-form-field-v2-renderer",function(){if(g4I===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;cWI===void 0&&(cWI=document.createElement("template"));var K=cWI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);g4I=M}M=g4I;return M});var Am=function(){var M=_.Q.apply(this,arguments)||this;M.canShowAdditionalDetailCheckbox=!1;M.canShowCheckbox=!1;M.keepDropdownFocusedAfterSelection=!0;return M};
_.l(Am,_.Q);Am.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}}}}};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Am.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],Am.prototype,"canShowAdditionalDetailCheckbox",void 0);_.T([_.B(),_.r("design:type",Object)],Am.prototype,"canShowCheckbox",void 0);_.T([_.B(),_.r("design:type",Object)],Am.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.T([_.aO({is:"yt-report-form-modal-content",disableElementRegistration:!0})],Am);
_.z(Am,"yt-report-form-modal-content",function(){if(imw===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;PrE===void 0&&(PrE=document.createElement("template"));var K=PrE;G.call(q,K.content.cloneNode(!0),M.content.firstChild);imw=M}M=imw;return M},{mode:2});var Bfg;var QWw;var dm=function(){var M=_.Q.apply(this,arguments)||this;M.submitting=!1;M.submitButtonDisabled=!0;M.command=null;M.canShowCheckbox=!1;M.canShowAdditionalDetailCheckbox=!1;M.canShowNextButton=!1;M.additionalDetailCheckboxChecked=!1;M.refitJob=0;M.keepDropdownFocusedAfterSelection=!0;M.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 M};
_.l(dm,_.Q);_.N=dm.prototype;_.N.created=function(){this.refitJob=0};
_.N.attached=function(){this.JSC$21130_scroller&&(this.JSC$21130_scroller.dialogElement=this.hostElement.parentNode,this.JSC$21130_scroller.attached&&typeof this.JSC$21130_scroller.attached==="function"&&this.JSC$21130_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.dataChanged=function(M){M&&(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,M.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),M.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.N.onYtPopupOpened=function(){var M=_.TM();M&&M.getPlayerPromise().then(function(q){q.pauseVideo()})};
_.N.onYtNavigate=function(M){_.C(M.detail.endpoint,_.H$2)&&(M.stopPropagation(),this.hideReportForm=!0)};
_.N.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.N.onYtServiceRequestCompleted=function(M,q){var G=q.actions;if(G){if(G.length===1&&_.C(G[0],_.eP)){var K;G=((K=_.C(G[0],_.eP))==null?void 0:K.commands)||[]}K=0;for(var n=G.length;K<n;K++)_.C(G[K],_.BA)&&(M.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(G[K]))}if(q.data&&(M=this.get("feedbackResponses",q.data)))for(q=0;q<M.length;q++)if(M[q].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.N.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.N._onDescendantIronResize=function(M){M.stopPropagation();return!1};
_.N.handleReportFormEndpointUpdateAction=function(M){if(M.submitEndpoint){var q=this.command=M.submitEndpoint;q=_.C(q,_.f4$);if(q==null?0:q.additionalDetailCheckboxChecked)q.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else M.submitNavigationEndpoint?(this.command=M.submitNavigationEndpoint,this.toggleSubmitButton(!1)):M.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:M.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;M.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",M));this.refit()};
_.N.handleConfirmDialogCloseAction=function(M){M.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.N.submitButtonDisabledChanged=function(){var M=this.hostElement.parentElement;M&&M.invalidateTabbables&&M.invalidateTabbables()};
_.N.handleModifyReportFormCommand=function(M){M=this.get("action",M);M==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:M==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:M==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:M==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:M==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:M==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.N.updateDialogStyling=function(){var M,q,G,K,n,E=((n=(M=this.data)==null?void 0:(q=M.optionsSupportedRenderers)==null?void 0:(G=q.optionsRenderer)==null?void 0:(K=G.items)==null?void 0:K.length)!=null?n:0)<=2?0:240;_.sT(this.hostElement,{"--yt-report-form-modal-renderer-min-width":E+"px"})};
_.N.toggleSubmitButton=function(M){this.submitButtonDisabled=!M;this.submitButtonDisabled=M};
_.N.computeSubmitButtonData=function(M,q){var G={};_.C(q,_.H$2)?G.navigationEndpoint=q:G.command=q||void 0;M&&M.buttonRenderer&&_.xP.extend(G,M.buttonRenderer);return G};
_.N.computeNextButtonData=function(M,q){var G={};if(!M||!M.buttonRenderer)return G;_.xP.extend(G,M.buttonRenderer);if(!q)return G;if(_.C(q,_.H$2))G.navigationEndpoint=REE(q);else if(G.command=REE(q),M=_.C(G.command,_.f4$))M.legalCheckboxChecked=!0;return G};
_.N.computeShowNextButton=function(M,q,G){return!!M&&q&&G};
_.N.refit=function(){var M=this;this.refitJob||(this.refitJob=_.r8.addLowPriorityJob(function(){_.jP(M.hostElement,"yt-refit");M.refitJob=0}))};
_.N.handleAdditionalDetailCheckboxUpdateAction=function(M){this.additionalDetailCheckboxChecked=M;_.C(this.command,_.f4$).additionalDetailCheckboxChecked=M};
_.Yd.Object.defineProperties(dm,{template:{configurable:!0,enumerable:!0,get:function(){if(QWw===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;Bfg===void 0&&(Bfg=document.createElement("template"));var K=Bfg;G.call(q,K.content.cloneNode(!0),M.content.firstChild);QWw=M}M=QWw;return M}}});
dm.prototype.onYtServiceRequestError=dm.prototype.onYtServiceRequestError;dm.prototype.onYtServiceRequestCompleted=dm.prototype.onYtServiceRequestCompleted;dm.prototype.onYtServiceRequestSent=dm.prototype.onYtServiceRequestSent;dm.prototype.onYtNavigate=dm.prototype.onYtNavigate;dm.prototype.onYtPopupOpened=dm.prototype.onYtPopupOpened;_.T([_.P(_.vf.YtOpenPopupBehavior),_.r("design:type",Object)],dm.prototype,"openPopupBehavior",void 0);
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],dm.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],dm.prototype,"eventForwardingBehavior",void 0);_.T([_.P(_.uz),_.r("design:type",Object)],dm.prototype,"ironResizableBehavior",void 0);_.T([_.B({observer:"dataChanged"}),_.r("design:type",Object)],dm.prototype,"data",void 0);
_.T([_.B(),_.r("design:type",Object)],dm.prototype,"submitting",void 0);_.T([_.B({observer:"submitButtonDisabledChanged"}),_.r("design:type",Object)],dm.prototype,"submitButtonDisabled",void 0);_.T([_.B(),_.r("design:type",Object)],dm.prototype,"command",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],dm.prototype,"hideReportForm",void 0);_.T([_.B(),_.r("design:type",Object)],dm.prototype,"canShowCheckbox",void 0);
_.T([_.B(),_.r("design:type",Object)],dm.prototype,"canShowAdditionalDetailCheckbox",void 0);_.T([_.B(),_.r("design:type",Object)],dm.prototype,"canShowNextButton",void 0);_.T([_.B(),_.r("design:type",Object)],dm.prototype,"additionalDetailCheckboxChecked",void 0);_.T([_.B(),_.r("design:type",Object)],dm.prototype,"refitJob",void 0);_.T([_.B(),_.r("design:type",Object)],dm.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.T([_.ET("#scroller"),_.r("design:type",Object)],dm.prototype,"JSC$21130_scroller",void 0);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],dm.prototype,"onYtPopupOpened",null);_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],dm.prototype,"onYtNavigate",null);
_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],dm.prototype,"onYtServiceRequestSent",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],dm.prototype,"onYtServiceRequestCompleted",null);
_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],dm.prototype,"onYtServiceRequestError",null);_.T([_.aO({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],dm);var Irs;var DFP;var vV=function(){return _.Q.apply(this,arguments)||this};
_.l(vV,_.Q);_.N=vV.prototype;_.N.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.N.onVisible=function(){var M,q;(q=_.AL().resolve(_.WR(_.sJ)))==null||q.enqueue({label:_.UX((M=this.data)==null?void 0:M.messageTitle),elementToFocus:this.hostElement})};
_.N.onThumbnailLoaded=function(){_.jP(this.hostElement,"yt-refit")};
_.N.onDismissTap=function(){_.VW(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.N.computeAlternateIcon=function(M){return M?M==="BACKSTAGE_ARTWORK"?"backstage:artwork":M:null};
_.N.computeFontFamily=function(M){return M==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.N.computeBackgroundStyle=function(M,q){if(M=this.computeBackgroundImage(M,q))if(M=_.r7(M.thumbnails))return'background-image: url("'+M+'");'};
_.N.computeHasFullHeightImage=function(M){return!(!(M&&M.thumbnails&&M.thumbnails.length>0)||this.modern)};
_.N.isModernStyle=function(M){return M.style==="STYLE_MODERN"};
_.N.computeIcon=function(M,q){if(M&&M.icon)return q?M.iconDark:M.icon};
_.N.computeBackgroundImage=function(M,q){if(M&&M.backgroundImage)return q?M.backgroundImageDark:M.backgroundImage};
_.N.computeLogo=function(M,q){if(M&&M.logo)return q?M.logoDark:M.logo};
_.N.computeShouldShowModernIcon=function(M,q){return M&&!!q};
_.N.getLogoContainerClassName=function(M){return this.logoWithPadding(M)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.N.getLogoImageId=function(M){return this.logoWithPadding(M)?"mealbar-logo-with-padding":"mealbar-logo"};
_.N.logoWithPadding=function(M){var q,G,K;return(M=(q=this.computeLogo(M,this.isDarkTheme))==null?void 0:(G=q.thumbnails)==null?void 0:(K=G[0])==null?void 0:K.height)&&M%31===0?!0:!1};
vV.prototype.onThumbnailLoaded=vV.prototype.onThumbnailLoaded;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],vV.prototype,"ytRendererBehavior",void 0);_.T([_.B({}),_.r("design:type",Object)],vV.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.r("design:type",Boolean)],vV.prototype,"modern",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],vV.prototype,"isDarkTheme",void 0);
_.T([_.B({computed:"computeIcon(data, isDarkTheme)"}),_.r("design:type",Object)],vV.prototype,"icon",void 0);_.T([_.B({computed:"computeLogo(data, isDarkTheme)"}),_.r("design:type",Object)],vV.prototype,"logo",void 0);_.T([_.B({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.r("design:type",Object)],vV.prototype,"backgroundStyle",void 0);_.T([_.B({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.r("design:type",Object)],vV.prototype,"alternateIcon",void 0);
_.T([_.B({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.r("design:type",Boolean)],vV.prototype,"hasFullHeightImage",void 0);_.T([_.B({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.r("design:type",Boolean)],vV.prototype,"useYoutubeSans",void 0);_.T([_.B({computed:"computeShouldShowModernIcon(modern, icon)"}),_.r("design:type",Boolean)],vV.prototype,"shouldShowModernIcon",void 0);
_.T([_.GQ("yt-img-shadow-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],vV.prototype,"onThumbnailLoaded",null);_.T([_.aO({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],vV);
_.z(vV,"yt-mealbar-promo-renderer",function(){if(DFP===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Irs===void 0&&(Irs=document.createElement("template"));var K=Irs;G.call(q,K.content.cloneNode(!0),M.content.firstChild);DFP=M}M=DFP;return M},{mode:2});var uVw;var JWM;var hm=function(){return _.Q.apply(this,arguments)||this};
_.l(hm,_.Q);_.N=hm.prototype;_.N.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]]"}}}}}};
_.N.computeHasButtons_=function(M){return!(!M.dismissButton&&!M.acceptButton)};
_.N.computeStyle_=function(M){return M||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.N.observeImpressionEndpoints_=function(){var M=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(q){q.clickTrackingParams&&delete q.clickTrackingParams;_.fx(M.hostElement,[q])})};
_.N.onTap_=function(){_.VW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
hm.prototype.observeImpressionEndpoints_=hm.prototype.observeImpressionEndpoints_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],hm.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],hm.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],hm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],hm.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],hm.prototype,"positionType",void 0);_.T([_.B({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.r("design:type",Boolean)],hm.prototype,"hasButtons_",void 0);_.T([_.B({value:function(){return this.onTap_.bind(this)}}),
_.r("design:type",Function)],hm.prototype,"boundOnTap_",void 0);_.T([_.B({value:{style:"mono-inverse"}}),_.r("design:type",Object)],hm.prototype,"buttonOverride",void 0);_.T([_.KT("data.promoConfig.impressionEndpoints"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],hm.prototype,"observeImpressionEndpoints_",null);_.T([_.aO({is:"yt-tooltip-renderer",disableElementRegistration:!0})],hm);
_.z(hm,"yt-tooltip-renderer",function(){if(JWM===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;uVw===void 0&&(uVw=document.createElement("template"));var K=uVw;G.call(q,K.content.cloneNode(!0),M.content.firstChild);JWM=M}M=JWM;return M},{mode:2});var Zmv;var bmv;var UFv={},xFP=(UFv.WEB_REMIX="music.youtube.com",UFv),tm=function(){var M=_.Q.apply(this,arguments)||this;M.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return M};
_.l(tm,_.Q);_.N=tm.prototype;_.N.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.created=function(){this.embedHost_=xFP[_.R9("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.N.ready=function(){_.f_(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.N.computeEmbedCode_=function(M,q,G,K,n){if(!M)return"";var E=M.videoId,p=M.fullListId,y=[];M.attributionId&&y.push("si="+M.attributionId);K||y.push("controls=0");G&&Number(q)>0&&y.push("start="+q);p&&(E="videoseries",y.push("list="+p));G="https://"+(n?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+E;M.clipId&&(y.push("clip="+M.clipId),y.push("clipt="+M.clipTiming));q=y.length>0?G+"?"+y.join("&amp;"):G;M.encryptedEmbedConfig&&y.push("embed_config="+JSON.stringify({enc:M.encryptedEmbedConfig}));
y=y.length>0?G+"?"+y.join("&amp;"):G;_.w("web_sharing_embed_preview_killswitch")?_.f_(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(y,M.previewWidth||854,M.previewHeight||480):(_.io(this.videoPreviewContainer),_.f_(this.videoPreviewContainer).appendChild(this.buildIframeElement(y)));return this.getEmbedCode_(q,M.width||560,M.height||315)};
_.N.buildIframeElement=function(M){var q=document.createElement("iframe"),G,K;q.width=""+((K=(G=this.data)==null?void 0:G.previewWidth)!=null?K:854);var n,E;q.height=""+((E=(n=this.data)==null?void 0:n.previewHeight)!=null?E:480);_.WwF(q,2,M);q.title="YouTube video player";q.frameBorder="0";q.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";q.referrerPolicy="strict-origin-when-cross-origin";q.allowFullscreen=!0;return q};
_.N.computeIsSquareAspectRatio_=function(M){return M.previewHeight&&M.previewWidth?M.previewHeight==M.previewWidth:!1};
_.N.computeShowEmbedOptions_=function(M){return!!M.enablePrivacyModeOptionLabel||!!M.showPlayerControlsOptionLabel};
_.N.getEmbedCode_=function(M,q,G){return'<iframe width="'+q+'" height="'+G+'" src="'+M+'" 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>'};
_.N.handleSignalActionCopyShareEmbedUrl_=function(){_.f_(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.N.handleSetTimestamp_=function(M){this.startAtTimeStamp_=(this.startAtChecked_=M.isSet)?M.timestamp:0};
_.N.closePanel_=function(){_.VW(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.N.onEmbedCode_=function(){_.f_(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.N.onYtPopupClosed_=function(){_.io(_.f_(this.hostElement).querySelector("#video-preview"))};
_.N.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.C(this.data.actionButtons[0],_.f1)&&this.ytRendererBehavior.logExplicitClick(_.C(this.data.actionButtons[0],_.f1))};
tm.prototype.onYtPopupClosed_=tm.prototype.onYtPopupClosed_;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],tm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],tm.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],tm.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],tm.prototype,"data",void 0);
_.T([_.B({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.r("design:type",String)],tm.prototype,"embedCode_",void 0);_.T([_.B({value:!0}),_.r("design:type",Boolean)],tm.prototype,"isPlayerControlsOptionChecked_",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],tm.prototype,"isPrivacyModeOptionChecked_",void 0);_.T([_.B({value:!1,notify:!0}),_.r("design:type",Boolean)],tm.prototype,"startAtChecked_",void 0);
_.T([_.B({value:0}),_.r("design:type",Number)],tm.prototype,"startAtTimeStamp_",void 0);_.T([_.B({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],tm.prototype,"isSquareAspectRatio_",void 0);_.T([_.ET("#video-preview"),_.r("design:type",HTMLElement)],tm.prototype,"videoPreviewContainer",void 0);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],tm.prototype,"onYtPopupClosed_",null);
_.T([_.aO({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],tm);
_.z(tm,"yt-sharing-embed-renderer",function(){if(bmv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Zmv===void 0&&(Zmv=document.createElement("template"));var K=Zmv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);bmv=M}M=bmv;return M},{mode:2});var zhE={};
zhE.YtUnlimitedFamilyInterstitialBehavior=[_.vf.YtOpenPopupBehavior,_.wg.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(M){M=_.gPS(_.ba(M),"yt-button-renderer");return M?M.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(M){this.dialogHistory_.push(M)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var M=this.popFromHistory();if(M){var q={openPopupAction:{popupType:"DIALOG",popup:{}}};q.openPopupAction.popup[M.renderer]=M.data;this.showingPreviousDialog_=!0;this.openPopup(q)}},
handleOpenPopupAction_:function(M){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var q=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(K){return!!M.openPopupAction.popup[K]}),G=this.getElementName_();
q&&this.data&&(this.pushToHistory({renderer:G,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(M){if(M=_.C(M,OJg))this.loading=!0,_.VW(this.hostElement,"yt-open-create-family-dialog",[M,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var M=this.hostElement.nodeName.split("-").slice(1).map(function(q){return""+q[0].toUpperCase()+q.slice(1).toLowerCase()}).join("");
return M[0].toLowerCase()+M.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var mFw;var S$v;var Oy=function(){return _.Q.apply(this,arguments)||this};
_.l(Oy,_.Q);_.N=Oy.prototype;_.N.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}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.VW(this.hostElement,"yt-register-create-family-dialog");_.f_(this.hostElement).querySelector("#thumbnail").onShow()};
_.N.fireOnCloseCommand_=function(){var M;((M=this.data)==null?0:M.onCloseCommand)&&_.FH(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.N.onYtServiceRequestSent_=function(M,q){q&&q.endpoint&&_.C(q.endpoint,_.sl)||(this.loading=!0)};
_.N.onYtServiceRequestCompleted_=function(){var M=this.hostElement.parentElement;M.close&&M.close();this.loading=!1};
_.N.openPopupHandler_=function(M){if(M.detail==this){var q;((q=this.data)==null?0:q.onOpenCommands)&&_.FH(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.N.closePopupHandler_=function(M,q){this.fireOnCloseCommand_();if(q&&q.canceled===!0||q&&q.canceled===!1&&q.confirmed===!1){var G;((G=this.data)==null?0:G.onDismissCommands)&&_.FH(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.N.dataChanged_=function(){this.loading=!1};
Oy.prototype.dataChanged_=Oy.prototype.dataChanged_;Oy.prototype.closePopupHandler_=Oy.prototype.closePopupHandler_;Oy.prototype.openPopupHandler_=Oy.prototype.openPopupHandler_;Oy.prototype.onYtServiceRequestCompleted_=Oy.prototype.onYtServiceRequestCompleted_;Oy.prototype.onYtServiceRequestSent_=Oy.prototype.onYtServiceRequestSent_;_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],Oy.prototype,"ytEventForwardingBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(zhE.YtUnlimitedFamilyInterstitialBehavior),_.r("design:type",Object)],Oy.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Oy.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Oy.prototype,"loading",void 0);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],Oy.prototype,"onYtServiceRequestSent_",null);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],Oy.prototype,"onYtServiceRequestCompleted_",null);
_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Oy.prototype,"openPopupHandler_",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Oy.prototype,"closePopupHandler_",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Oy.prototype,"dataChanged_",null);
_.T([_.aO({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],Oy);
_.z(Oy,"yt-unlimited-family-message-interstitial-renderer",function(){if(S$v===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;mFw===void 0&&(mFw=document.createElement("template"));var K=mFw;G.call(q,K.content.cloneNode(!0),M.content.firstChild);S$v=M}M=S$v;return M},{mode:2});var Tf8;var rW5;var wm=function(){return _.Q.apply(this,arguments)||this};
_.l(wm,_.Q);wm.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"}}}};
wm.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.f_(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(M){M.onShow()});
_.f_(this.hostElement).querySelector("#main-thumbnail").onShow()};
wm.prototype.onButtonTap_=function(M){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(M)};
wm.prototype.computeMainThumbnailWidth_=function(M){return M&&M.length!==0?72:96};
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],wm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.T([_.P(zhE.YtUnlimitedFamilyInterstitialBehavior),_.r("design:type",Object)],wm.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],wm.prototype,"data",void 0);
_.T([_.B({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.r("design:type",Number)],wm.prototype,"mainThumbnailWidth_",void 0);_.T([_.B({value:function(){return this.onButtonTap_.bind(this)}}),
_.r("design:type",Function)],wm.prototype,"boundButtonTap_",void 0);_.T([_.aO({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],wm);
_.z(wm,"yt-unlimited-family-profile-interstitial-renderer",function(){if(rW5===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Tf8===void 0&&(Tf8=document.createElement("template"));var K=Tf8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);rW5=M}M=rW5;return M},{mode:2});var jW5;var VZE;var Cw=function(){var M=_.Q.apply(this,arguments)||this;M.sliderAriaValueText_=null;M.selectedIndex_=0;M.messages={PAUSE_SLIDER:_.Ge("PAUSE_SLIDER",void 0,"Pause Duration")};return M};
_.l(Cw,_.Q);_.N=Cw.prototype;_.N.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_]]"}}}}}};
_.N.onPopupOpened_=function(M){M.detail==this&&_.w("enable_premium_voluntary_pause")&&(_.VW(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.N.setDialogData=function(M){this.data=M;this.resetSlider_()};
_.N.dataChanged_=function(){this.data&&this.resetSlider_()};
_.N.onSubmitTap_=function(){if(this.data.confirmCommand){var M=this.data.confirmCommand;_.C(M,_.emp)&&_.fx(this.hostElement,[M,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.N.onExitButtonTap_=function(){_.VW(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.N.closePopupHandler_=function(M,q){(q&&q.canceled===!0||q.canceled===!1&&q.confirmed===!1)&&this.handleOnDismissCommands_()};
_.N.onSliderChange_=function(){this.selectedIndex_=_.f_(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.N.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.N.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.N.resetSlider_=function(){if(this.data){var M=this.data.defaultEndOptionIndex||0,q=_.f_(this.hostElement).querySelector("#id-pause-slider");if(q.immediateValue<M)for(;q.immediateValue!=M;)q.increment();else if(M<q.immediateValue)for(;q.immediateValue!=M;)q.decrement();this.selectedIndex_=M;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.N.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.FH(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.N.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.FH(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.N.onYtServiceRequestSent=function(){this.loading=!0};
_.N.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
Cw.prototype.onYtServiceRequestCompleted=Cw.prototype.onYtServiceRequestCompleted;Cw.prototype.onYtServiceRequestSent=Cw.prototype.onYtServiceRequestSent;Cw.prototype.closePopupHandler_=Cw.prototype.closePopupHandler_;Cw.prototype.dataChanged_=Cw.prototype.dataChanged_;Cw.prototype.onPopupOpened_=Cw.prototype.onPopupOpened_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Cw.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Cw.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],Cw.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],Cw.prototype,"loading",void 0);_.T([_.B(),_.r("design:type",Number)],Cw.prototype,"selectIndexMax_",void 0);_.T([_.B(),_.r("design:type",Object)],Cw.prototype,"selectedData_",void 0);
_.T([_.B(),_.r("design:type",Object)],Cw.prototype,"sliderAriaValueText_",void 0);_.T([_.B({value:function(){return this.onSubmitTap_.bind(this)}}),
_.r("design:type",Function)],Cw.prototype,"onButtonTap_",void 0);_.T([_.B({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.r("design:type",Function)],Cw.prototype,"onSecondaryTap_",void 0);_.T([_.B(),_.r("design:type",Object)],Cw.prototype,"messages",void 0);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Cw.prototype,"onPopupOpened_",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Cw.prototype,"dataChanged_",null);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],Cw.prototype,"closePopupHandler_",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],Cw.prototype,"onYtServiceRequestSent",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],Cw.prototype,"onYtServiceRequestCompleted",null);_.T([_.aO({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],Cw);
_.z(Cw,"yt-unplugged-pause-membership-dialog-renderer",function(){if(VZE===void 0){var M=document.createElement("template");_.X(M,'\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>');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;jW5===void 0&&(jW5=document.createElement("template"));var K=jW5;G.call(q,K.content.cloneNode(!0),M.content.firstChild);VZE=M}M=VZE;return M},{mode:2});var Rhw;var fr8;var am=function(){return _.Q.apply(this,arguments)||this};
_.l(am,_.Q);am.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.tC("vcBalanceRenderer")}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],am.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],am.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],am.prototype,"data",void 0);_.T([_.aO({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],am);
_.z(am,"yt-vc-offer-layout-header-renderer",function(){if(fr8===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;Rhw===void 0&&(Rhw=document.createElement("template"));var K=Rhw;G.call(q,K.content.cloneNode(!0),M.content.firstChild);fr8=M}M=fr8;return M},{mode:2});var FCM;var Hm5;var ehM;var $Fg;var om=function(){return _.Q.apply(this,arguments)||this};
_.l(om,_.Q);om.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Yd.Object.defineProperties(om.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)}}});
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.YMP.YtTappableItemBehavior),_.r("design:type",Object)],om.prototype,"ytTappableItemBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],om.prototype,"data",void 0);
_.T([_.B({reflectToAttribute:!0}),_.c("data.accessibilityText"),_.r("design:type",String),_.r("design:paramtypes",[])],om.prototype,"ariaLabel",null);_.T([_.B({reflectToAttribute:!0}),_.c("data.style"),_.r("design:type",String),_.r("design:paramtypes",[])],om.prototype,"vcOfferStyle",null);_.T([_.c("data.style","data.titleText"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],om.prototype,"showTitleText",null);_.T([_.aO({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],om);
_.z(om,"yt-vc-offer-renderer",function(){if($Fg===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;ehM===void 0&&(ehM=document.createElement("template"));var K=ehM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);$Fg=M}M=$Fg;return M},{mode:2});var l7=function(){return _.Q.apply(this,arguments)||this};
_.l(l7,_.Q);l7.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}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],l7.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],l7.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],l7.prototype,"data",void 0);_.T([_.aO({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],l7);
_.z(l7,"yt-vc-offer-layout-renderer",function(){if(Hm5===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;FCM===void 0&&(FCM=document.createElement("template"));var K=FCM;G.call(q,K.content.cloneNode(!0),M.content.firstChild);Hm5=M}M=Hm5;return M},{mode:2});var sCv;var MOM;var qJg;var GNv;var XA=function(){return _.Q.apply(this,arguments)||this};
_.l(XA,_.Q);XA.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}}}}}};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],XA.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],XA.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],XA.prototype,"data",void 0);_.T([_.aO({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],XA);
_.z(XA,"yt-ypc-offers-modal-top-bar-renderer",function(){if(GNv===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;qJg===void 0&&(qJg=document.createElement("template"));var K=qJg;G.call(q,K.content.cloneNode(!0),M.content.firstChild);GNv=M}M=GNv;return M},{mode:2});var PV=function(){return _.Q.apply(this,arguments)||this};
_.l(PV,_.Q);PV.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"}}}}};
PV.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
PV.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var M=this.scrollable;M.attached&&typeof M.attached==="function"&&M.attached()};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],PV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],PV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.ET("#scrollable"),_.r("design:type",Object)],PV.prototype,"scrollable",void 0);_.T([_.B(),_.r("design:type",Object)],PV.prototype,"data",void 0);_.T([_.aO({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],PV);
_.z(PV,"yt-ypc-offers-modal-renderer",function(){if(MOM===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;sCv===void 0&&(sCv=document.createElement("template"));var K=sCv;G.call(q,K.content.cloneNode(!0),M.content.firstChild);MOM=M}M=MOM;return M},{mode:2});var K2R;var n75;var i7=function(){return _.Q.apply(this,arguments)||this};
_.l(i7,_.Q);_.N=i7.prototype;_.N.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}}}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.f_(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.N.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.VW(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.N.onYtPopupOpened_=function(M,q){(q==null?void 0:q.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.FH(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.N.onYtPopupClosed_=function(M,q){this.continueButtonTapped||q&&(q.canceled===!0||q.canceled===!1&&q.confirmed===!1)&&this.data.onDismissCommands&&_.FH(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.N.onYtServiceRequestError_=function(M){this.set("showSpinner",!1);_.Qu(this.hostElement,M.detail.error.message)};
_.N.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.w("enable_ypc_spinners")?_.VW(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
i7.prototype.onYtServiceRequestError_=i7.prototype.onYtServiceRequestError_;i7.prototype.onYtPopupClosed_=i7.prototype.onYtPopupClosed_;i7.prototype.onYtPopupOpened_=i7.prototype.onYtPopupOpened_;i7.prototype.onYtServiceRequestCompleted_=i7.prototype.onYtServiceRequestCompleted_;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],i7.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],i7.prototype,"ytRendererstamperBehavior",void 0);
_.T([_.B(),_.r("design:type",Object)],i7.prototype,"data",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],i7.prototype,"showSpinner",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],i7.prototype,"continueButtonTapped",void 0);_.T([_.B({value:function(){return this.onContinueTapped_.bind(this)}}),
_.r("design:type",Function)],i7.prototype,"bindOnContinueTapped_",void 0);_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],i7.prototype,"onYtServiceRequestCompleted_",null);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],i7.prototype,"onYtPopupOpened_",null);
_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],i7.prototype,"onYtPopupClosed_",null);_.T([_.GQ("yt-service-request-error"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],i7.prototype,"onYtServiceRequestError_",null);_.T([_.aO({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],i7);
_.z(i7,"yt-ypc-upgrade-dialog-renderer",function(){if(n75===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;K2R===void 0&&(K2R=document.createElement("template"));var K=K2R;G.call(q,K.content.cloneNode(!0),M.content.firstChild);n75=M}M=n75;return M},{mode:2});var E78;var NSw;var cV=function(){return _.Q.apply(this,arguments)||this};
_.l(cV,_.Q);cV.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
cV.prototype.computeHasButtons_=function(M){return!(!M.dismissButton&&!M.confirmButton)};
cV.prototype.computeStyle_=function(M){return M||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],cV.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],cV.prototype,"ytEventForwardingBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],cV.prototype,"ytRendererstamperBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],cV.prototype,"data",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],cV.prototype,"positionType",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.r("design:type",Boolean)],cV.prototype,"hasButtons_",void 0);_.T([_.B({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.r("design:type",Boolean)],cV.prototype,"style_",void 0);_.T([_.aO({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],cV);
_.z(cV,"yt-bubble-hint-renderer",function(){if(NSw===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;E78===void 0&&(E78=document.createElement("template"));var K=E78;G.call(q,K.content.cloneNode(!0),M.content.firstChild);NSw=M}M=NSw;return M},{mode:2});var kNI;var pZL;var gm=function(){var M=_.WG.apply(this,arguments)||this;M.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return M};
_.l(gm,_.WG);_.N=gm.prototype;_.N.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.N.attached=function(){var M=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){M.$.thumbnail.onShow();M.$["header-image"].onShow()})};
_.N.handleCheckBoxUpdateAction_=function(M){this.canShowCheckboxEnabledConfirmButton=M};
_.N.computeUseOverlayForSpinner_=function(M,q){return!!M&&q};
_.N.computeShowSpinner_=function(M,q){return M||!!q};
_.N.fireOnCloseActions_=function(){var M,q=_.k(((M=this.data)==null?void 0:M.onClosedActions)||[]);for(M=q.next();!M.done;M=q.next())this.ytRendererBehavior.resolveCommand(M.value)};
_.N.fireOnOpenCommands_=function(M){var q,G=(q=this.data)==null?void 0:q.onOpenCommands;if(G)for(M.stopImmediatePropagation(),M=_.k(G),q=M.next();!q.done;q=M.next())this.ytRendererBehavior.resolveCommand(q.value)};
_.N.fireOnDismissCommands_=function(M){var q,G=(q=this.data)==null?void 0:q.onDismissCommands;if(G)for(M.stopImmediatePropagation(),M=_.k(G),q=M.next();!q.done;q=M.next())this.ytRendererBehavior.resolveCommand(q.value)};
_.N.openPopupHandler_=function(M){M.detail==this&&this.fireOnOpenCommands_(M)};
_.N.closePopupHandler_=function(M,q){_.Rf(this,"yt-confirm-dialog-close-action",[q]);this.fireOnCloseActions_();(q&&q.canceled===!0||q&&q.canceled===!1&&q.confirmed===!1)&&this.fireOnDismissCommands_(M)};
_.N.onHeaderImageChanged_=function(){var M;((M=this.data)==null?0:M.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.N.computeHasHeaderImageWidth_=function(M){return M!=void 0};
_.N.computeHasLoadingMessage=function(M){return!!M};
_.N.onHeaderImageWidthChanged_=function(){var M,q=(M=this.data)==null?void 0:M.headerImageWidth;if(q){if(M=1.25*q*2+q,this.$.main.style.width=M+"px",q=this.$.scroller.firstElementChild)q.style.minWidth=M+"px"}else this.$.main.style.width="100%"};
_.N.onThumbnailChanged_=function(){var M;((M=this.data)==null?0:M.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")};
_.N.onYtNavigate_=function(M){M=_.ba(M);M instanceof Node&&_.Fw(this.$["confirm-button"]).contains(M)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.N.computePrimaryIsCancel_=function(M){return M};
_.N.computeIsCancelButtonHidden_=function(M){return M.skipCancelButton||!M.cancelButton};
_.N.computeIsCheckboxHidden_=function(M){return!M.checkbox};
_.N.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.N.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.N.onYtServiceRequestCompleted_=function(){var M;((M=this.data)==null?0:M.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Yd.Object.defineProperties(gm,{template:{configurable:!0,enumerable:!0,get:function(){if(pZL===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;kNI===void 0&&(kNI=document.createElement("template"));var K=kNI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);pZL=M}M=pZL;return M}}});
gm.prototype.onYtServiceRequestCompleted_=gm.prototype.onYtServiceRequestCompleted_;gm.prototype.onYtServiceRequestSent_=gm.prototype.onYtServiceRequestSent_;gm.prototype.onThumbnailLoaded_=gm.prototype.onThumbnailLoaded_;gm.prototype.onYtNavigate_=gm.prototype.onYtNavigate_;gm.prototype.onThumbnailChanged_=gm.prototype.onThumbnailChanged_;gm.prototype.onHeaderImageWidthChanged_=gm.prototype.onHeaderImageWidthChanged_;gm.prototype.onHeaderImageChanged_=gm.prototype.onHeaderImageChanged_;
gm.prototype.closePopupHandler_=gm.prototype.closePopupHandler_;gm.prototype.openPopupHandler_=gm.prototype.openPopupHandler_;_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],gm.prototype,"ytActionHandlerBehavior",void 0);_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);
_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],gm.prototype,"ytEventForwardingBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],gm.prototype,"data",void 0);_.T([_.B({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.r("design:type",Boolean)],gm.prototype,"primaryIsCancel",void 0);_.T([_.B({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.r("design:type",Boolean)],gm.prototype,"isCancelButtonHidden",void 0);
_.T([_.B({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.r("design:type",Boolean)],gm.prototype,"isCheckboxHidden",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],gm.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.T([_.B({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.r("design:type",Boolean)],gm.prototype,"useOverlayForSpinner_",void 0);
_.T([_.B({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.r("design:type",Boolean)],gm.prototype,"showSpinner_",void 0);_.T([_.B({value:!1}),_.r("design:type",Boolean)],gm.prototype,"isActionInProgress_",void 0);_.T([_.B({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.r("design:type",Boolean)],gm.prototype,"hasHeaderImageWidth_",void 0);
_.T([_.B({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.r("design:type",Boolean)],gm.prototype,"hasLoadingMessage",void 0);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],gm.prototype,"openPopupHandler_",null);_.T([_.GQ("yt-popup-closed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],gm.prototype,"closePopupHandler_",null);
_.T([_.KT("data.headerImage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gm.prototype,"onHeaderImageChanged_",null);_.T([_.KT("data.headerImageWidth"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gm.prototype,"onHeaderImageWidthChanged_",null);_.T([_.KT("data.thumbnail"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gm.prototype,"onThumbnailChanged_",null);
_.T([_.GQ("yt-navigate"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],gm.prototype,"onYtNavigate_",null);_.T([_.GQ("yt-img-shadow-loaded"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],gm.prototype,"onThumbnailLoaded_",null);_.T([_.GQ("yt-service-request-sent"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.gk]),_.r("design:returntype")],gm.prototype,"onYtServiceRequestSent_",null);
_.T([_.GQ("yt-service-request-completed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,_.Zt]),_.r("design:returntype")],gm.prototype,"onYtServiceRequestCompleted_",null);_.T([_.aO({is:"yt-confirm-dialog-renderer",noInjection:!0})],gm);var yBI;var L2w;var BV=function(){return _.Q.apply(this,arguments)||this};
_.l(BV,_.Q);BV.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.f_(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
BV.prototype.computeConfirmButton_=function(M){var q={text:M.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};M.confirmNavigationEndpoint?q.navigationEndpoint=M.confirmNavigationEndpoint:M.confirmServiceEndpoint&&(q.serviceEndpoint=M.confirmServiceEndpoint);return q};
BV.prototype.computeShowTitle_=function(M){return!(M==null||!M.title)};
_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],BV.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],BV.prototype,"data",void 0);_.T([_.B({computed:"computeShowTitle_(data)"}),_.r("design:type",Boolean)],BV.prototype,"showTitle",void 0);_.T([_.aO({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],BV);
_.z(BV,"yt-fancy-dismissible-dialog-renderer",function(){if(L2w===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;yBI===void 0&&(yBI=document.createElement("template"));var K=yBI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);L2w=M}M=L2w;return M});var YJs;var W2L;var QA=function(){var M=_.Q.apply(this,arguments)||this;M.spinnerActive=!1;return M};
_.l(QA,_.Q);QA.prototype.created=function(){vuw(2201)};
QA.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
QA.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
QA.prototype.onIronOverlayClosed=QA.prototype.onIronOverlayClosed;QA.prototype.onIronOverlayOpened=QA.prototype.onIronOverlayOpened;_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],QA.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Hn),_.r("design:type",Object)],QA.prototype,"tpYtIronOverlayBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],QA.prototype,"data",void 0);_.T([_.B(),_.r("design:type",Object)],QA.prototype,"spinnerActive",void 0);
_.T([_.GQ("iron-overlay-opened"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QA.prototype,"onIronOverlayOpened",null);_.T([_.GQ("iron-overlay-closed"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],QA.prototype,"onIronOverlayClosed",null);_.T([_.aO({is:"yt-loading-renderer",disableElementRegistration:!0})],QA);
_.z(QA,"yt-loading-renderer",function(){if(W2L===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;YJs===void 0&&(YJs=document.createElement("template"));var K=YJs;G.call(q,K.content.cloneNode(!0),M.content.firstChild);W2L=M}M=W2L;return M},{mode:2});var ABs;var d2v;var Im=function(){var M=_.Q.apply(this,arguments)||this;M.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);M.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);M.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";M.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return M};
_.l(Im,_.Q);_.N=Im.prototype;_.N.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.N.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.N.onDarkModeToggledAction=function(M){this.isDarkTheme=M};
_.N.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.N.openPopupHandler_=function(M){M.detail===this.hostElement&&this.hostElement.hidden&&_.VW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.N.onDismissButtonTap_=function(){var M;this.closeOnDismissButton_.has(((M=this.data)==null?void 0:M.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.VW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.N.onAcceptButtonTap_=function(){var M;this.closeOnAcceptButton_.has(((M=this.data)==null?void 0:M.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.VW(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.N.computeHasHeader_=function(M){return!!M.headerBackgroundImage};
_.N.computeLayoutStyle_=function(M){return M};
_.N.computePopupSize_=function(M){return M};
_.N.computeIconType_=function(M){return M.dialogIcon&&M.dialogIcon.iconType?M.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":M.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":M.dialogIcon.iconType:""};
_.N.computeIsLogo_=function(M){return!!M.dialogIcon&&!!M.dialogIcon.iconType&&(M.dialogIcon.iconType==="YOUTUBE_LOGO"||M.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||M.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.N.computeHasCustomLogo=function(M){return!(M==null||!M.headerForegroundImage)};
_.N.computeCustomLogo=function(M,q){if(M!=null&&M.headerForegroundImage)return M.headerForegroundImageDark?q?M.headerForegroundImageDark:M.headerForegroundImage:M.headerForegroundImage};
_.N.computeHeaderBackgroundImage=function(M,q){if(M!=null&&M.headerBackgroundImage)return q&&(M==null?0:M.headerBackgroundImageDark)?M.headerBackgroundImageDark:M.headerBackgroundImage};
_.N.shouldShowIconContainer=function(M,q){return M&&!q};
_.N.shouldShowNonYouTubeIcon=function(M,q){return!M&&!q};
_.N.getLogoImageId=function(M){var q,G,K;return(M=(q=this.computeCustomLogo(M,this.isDarkTheme))==null?void 0:(G=q.thumbnails)==null?void 0:(K=G[0])==null?void 0:K.height)&&M%31===0?"custom-logo-with-padding":"custom-logo"};
Im.prototype.openPopupHandler_=Im.prototype.openPopupHandler_;Im.prototype.dataChanged_=Im.prototype.dataChanged_;_.T([_.P(_.EH.YtRendererstamperBehavior),_.r("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],Im.prototype,"ytRendererBehavior",void 0);_.T([_.B(),_.r("design:type",Boolean)],Im.prototype,"isDarkTheme",void 0);
_.T([_.B({computed:"computeCustomLogo(data, isDarkTheme)"}),_.r("design:type",Object)],Im.prototype,"customLogo",void 0);_.T([_.B({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.r("design:type",Object)],Im.prototype,"headerBackgroundImage",void 0);_.T([_.B(),_.r("design:type",Object)],Im.prototype,"data",void 0);_.T([_.B({computed:"computeHasHeader_(data)"}),_.r("design:type",Boolean)],Im.prototype,"hasHeader",void 0);
_.T([_.B({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.r("design:type",Object)],Im.prototype,"layoutStyle",void 0);_.T([_.B({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.r("design:type",Object)],Im.prototype,"popupSize",void 0);_.T([_.B({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Im.prototype,"hasLogo",void 0);
_.T([_.B({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.r("design:type",Boolean)],Im.prototype,"hasCustomLogo",void 0);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],Im.prototype,"dataChanged_",null);_.T([_.GQ("yt-popup-opened"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],Im.prototype,"openPopupHandler_",null);
_.T([_.aO({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Im);
_.z(Im,"yt-upsell-dialog-renderer",function(){if(d2v===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;ABs===void 0&&(ABs=document.createElement("template"));var K=ABs;G.call(q,K.content.cloneNode(!0),M.content.firstChild);d2v=M}M=d2v;return M},{mode:2});var v7R=_.U(function(M){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogHeader"},_.W(_.d,{cond:M.title,then:function(q){return _.W("h2",{class:"miniAppGameInfoDialogViewModelHeaderTitle"},q)}}))},"pj"),h1P=_.U(function(M){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoDialogFooter"},_.W(_.yu,{data:M.closeButton},{buttonViewModel:function(q){return _.W("div",null,_.W(_.Wf,{data:q.data}))}}))},"qj"),tOI=_.U(function(M){var q=M.data;
return _.W(_.dU,null,_.W("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfoDetails"},_.W("div",{class:"miniAppGameInfoDialogViewModelGameImageWrapper"},_.W(_.d,{cond:function(){return!!q().image&&!!q().title},
then:function(){return _.W(_.Jj,{data:function(){return q().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.W("div",{class:"miniAppGameInfoDialogViewModelPrimaryGameInfo"},_.W(_.d,{cond:function(){return q().title},
then:function(G){return _.W("h3",{class:"miniAppGameInfoDialogViewModelTitle"},G)}}),_.W(_.d,{cond:function(){return q().primaryGenre},
then:function(G){return _.W("span",{class:"miniAppGameInfoDialogViewModelGenre"},G)}}))),_.W(_.d,{cond:function(){var G=q().description;
return G&&G.length<=150},
then:function(){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameDescriptionWrapper"},_.W("span",{class:"miniAppGameInfoDialogViewModelGameDescription"},function(){return q().description}))}}))},"rj"),OrP=_.U(function(M){M=M.infoRows;
var q=_.AL().resolve(_.q7),G=_.w("enable_displaying_ppn");return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoRowsWrapper"},_.W(_.bf,{each:M},function(K){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.W(_.d,{cond:function(){return K.label},
then:function(n){return _.W("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},n)}}),_.W(_.d,{cond:function(){return K.attributedLabel},
then:function(n){return _.W("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},_.W(_.Ft,{text:n,noPreWrap:!0}))}}),_.W(_.d,{cond:function(){return K.value},
then:function(n){return _.W("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},n)}}),_.W(_.d,{cond:function(){return K.attributedValue},
then:function(n){return _.W("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},_.W(_.Ft,{text:n,noPreWrap:!0}))}}))}),_.W(_.d,{cond:function(){return G&&q.clientData.has("post_play_nonce")},
then:function(){return _.W("div",{class:"miniAppGameInfoDialogViewModelGameInfoRow"},_.W("span",{class:"miniAppGameInfoDialogViewModelInfoLabel"},"Post Play Nonce"),_.W("span",{class:"miniAppGameInfoDialogViewModelInfoValue"},q.getData("post_play_nonce")))}}))},"sj"),wZ8=_.U(function(M){var q=M.data;
return _.W("yt-mini-app-game-info-dialog-view-model",{class:"miniAppGameInfoDialogViewModelHost"},_.W(v7R,{title:function(){return q().dialogTitle}}),_.W(tOI,{data:q}),_.W(_.d,{cond:function(){return q().infoRow},
then:function(G){return _.W(OrP,{infoRows:G})}}),_.W(h1P,{closeButton:function(){return q().closeButton}}))},"tj");
wZ8.idomCompat=!0;_.S5(wZ8,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;return _.W("yt-gulp-triggering-dialog-view-model",{class:_.Hb("ytGulpTriggeringDialogViewModelHost","ytGulpTriggeringDialogViewModelResetSpacing"),dialog:!0},_.W(_.Jj,{data:function(){return q().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.W("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.W("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.W("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W(_.d,{cond:function(){return q().bodyText},
then:function(G){return _.W(_.bf,{each:G},function(K){return _.W("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.W(_.Ft,{text:K}))})}})),_.W("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.W(_.yu,{data:function(){return q().dismissButton}},{buttonViewModel:function(G){return _.W("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},_.W(_.Wf,{data:G.data}))}}),_.W(_.yu,{data:function(){return q().actionButton}},{buttonViewModel:function(G){return _.W("div",{class:"ytGulpTriggeringDialogViewModelHostButton"},
_.W(_.Wf,{data:G.data}))}}))))},"uj"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.Hz}});var CvP=_.U(function(M){var q=M.data;M=_.bg(function(){return q().agreements},[]);
return _.W("installment-agreements-view-model",{class:_.Hb("ytInstallmentAgreementsViewModelHost")},_.W(_.bf,{each:M},function(G){return _.W("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.W("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.W(_.Ft,{text:G.label})),_.W("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.W(_.yu,{data:function(){return G.openButton}},{buttonViewModel:_.Wf})))}))},"vj");
CvP.idomCompat=!0;var aYP=_.U(function(M){var q=_.k(_.GM(function(){var R,se;return((R=M.data().createPlaylistDialogFormSchema)==null?0:(se=R.initialValues)==null?0:se.title)?M.data().createPlaylistDialogFormSchema.initialValues.title:""})),G=q.next().value,K=q.next().value;
q=_.k(_.GM(function(){M.data();return!1}));
var n=q.next().value,E=q.next().value;q=_.k(_.GM(function(){M.data();return!1}));
var p=q.next().value,y=q.next().value;q=_.k(_.GM(function(){var R,se;return(R=M.data().createPlaylistDialogFormSchema)==null?void 0:(se=R.initialValues)==null?void 0:se.visibility}));
var Y=q.next().value,A=q.next().value;q=_.k(_.GM(function(){M.data();return!1}));
var v=q.next().value,h=q.next().value;q=_.k(_.GM(function(){var R,se;return(R=M.data().createPlaylistDialogFormSchema)==null?void 0:(se=R.initialValues)==null?void 0:se.isCollaborative}));
var t=q.next().value,O=q.next().value,a=_.pI("div");_.zL(function(){var R=a.value.querySelector("textarea");R&&(R.value=G())},"axFRaf");
_.SK(function(){var R;_.WhI((R=M.data().createPlaylistDialogFormSchema)==null?void 0:R.id,{onSubmit:function(){var se=G();var yY=Y(),d$=t(),cy=M.data();se={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:se,privacyStatus:yY,videoIds:cy.videoIds,sourcePlaylistId:cy.sourcePlaylistId,params:d$?cy.createPlaylistParamsCollaborationEnabled:cy.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.AL().resolve(_.vR).resolveCommand(se)},
isValid:function(){return n()&&!p()&&!v()}})});
var g=function(R){if(R!==void 0&&(K(R),!n()&&R.length>0&&E(!0),n())){var se=lhw(M.data());if(se){var yY=se.minLength;se=se.maxLength;yY&&R.length<yY?y(!0):se&&R.length>se?y(!0):y(!1)}}},D=function(){var R=!(!t()||Y()!=="PRIVATE");
h(R)},J=function(R){R!==void 0&&(A(R),D())},Z=function(){if(v())return PZv(M.data())},V=function(){O(!t());
D()},S=function(){return{validate:function(R){if(n()){var se=lhw(M.data());
if(se){var yY=se.minLength;se=se.translations;if(yY&&R.length<yY)return se==null?void 0:se.minLengthErrorMessage}}}}},m=function(){var R=lhw(M.data()),se=R==null?void 0:R.maxLength,yY;
R=R==null?void 0:(yY=R.translations)==null?void 0:yY.maxLengthErrorMessage;if(se&&R)return{maxChars:se,errorMessage:R}};
return _.W("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.W("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:a},_.W(_.yu,{data:function(){return M.data().playlistTitle}},{textFormFieldViewModel:function(R){return _.W(_.XsM,{data:R.data,
text:G,onInput:g,validation:S,characterLimit:m})},
textFieldViewModel:function(R){return _.W(_.lSE,{data:R.data,text:G,onInput:g,validation:S,characterLimit:m})}})),_.W("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.W(_.yu,{data:function(){return M.data().playlistVisibility}},{dropdownViewModel:function(R){return _.W(_.ZKI,{data:R.data,
onSelected:J,error:Z})}})),_.W(_.d,{cond:function(){return!!M.data().playlistCollaborate},
then:function(){return _.W("div",null,_.W(_.yu,{data:function(){return M.data().playlistCollaborate}},{switchListItemViewModel:function(R){return _.W(_.kH9,{data:R.data,
onTap:V})}}))}}))},"xj");var o7v=_.U(function(M){var q=M.data;return _.W("upsell-offer-table-cell-content-view-model",null,_.W("div",{class:"ytUpsellOfferTableCellContentViewModelHost"},_.W(_.Ub,null,_.W(_.J3,{when:function(){return q().iconType}},function(){return _.W("div",{class:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellIcon"},_.W(_.np,{icon:function(){return q().iconType.toString()}}))}),_.W(_.J3,{when:function(){return q().title}},function(){return _.W(_.Ft,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellTitle",
text:function(){return q().title}})}),_.W(_.J3,{when:function(){return q().subtitle}},function(){return _.W(_.Ft,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellSubtitle",
text:function(){return q().subtitle}})}),_.W(_.J3,{when:function(){return q().infoText}},function(){return _.W(_.Ft,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellInfoText",
text:function(){return q().infoText}})}),_.W(_.J3,{when:function(){return q().featureDescription}},function(){return _.W(_.Ft,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellFeatureDescription",
text:function(){return q().featureDescription}})}),_.W(_.J3,{when:function(){return q().note}},function(){return _.W(_.Ft,{className:"ytUpsellOfferTableCellContentViewModelUpsellOfferTableCellNote",
text:function(){return q().note}})}))))},"yj");
o7v.idomCompat=!0;var lYv=_.U(function(M){var q=M.data;return _.W("upsell-offer-table-cell-view-model",null,_.W("div",{class:_.Hb("ytUpsellOfferTableCellViewModelCellWrapper",function(){return q().isFirstRow?"ytUpsellOfferTableCellViewModelCellWrapperHeaderRowCell":q().isFirstColumn?"ytUpsellOfferTableCellViewModelCellWrapperHeaderCell":"ytUpsellOfferTableCellViewModelCellWrapperContentCell"})},_.W(_.yu,{data:function(){return q().contents}},{upsellOfferTableCellContentViewModel:o7v})))},"zj");
lYv.idomCompat=!0;var XZP=_.U(function(M){var q=M.data;var G=M.upsellTableIsFirstRow;var K=function(){return(G==null?0:G())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowHeaderCell"},n=function(){return(G==null?0:G())?"ytUpsellOfferTableRowViewModelUpsellOfferTableFirstRowCell":"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCell"};
return _.W("ytm-upsell-offer-table-row-view-model",null,_.W("div",{class:"ytUpsellOfferTableRowViewModelHost"},_.W(_.yu,{data:function(){return q().rowHeaderCell}},{upsellOfferTableCellViewModel:function(E){return _.W("div",{class:K},_.W(lYv,{data:E.data}))}}),_.W("div",{class:"ytUpsellOfferTableRowViewModelUpsellOfferTableRowContentCells"},_.W(_.yu,{data:function(){return q().contentCells}},{upsellOfferTableCellViewModel:function(E){return _.W("div",{class:n},_.W(lYv,{data:E.data}))}}))))},"Aj");
XZP.idomCompat=!0;var Pvw=_.U(function(M){var q=M.data;return _.W("ytm-upsell-offer-table-view-model",null,_.W("div",{class:"ytUpsellOfferTableViewModelHost"},_.W("div",{class:"ytUpsellOfferTableViewModelUpsellOfferTableRows"},_.W(_.yu,{data:function(){return q().rows}},{upsellOfferTableRowViewModel:function(G,K){return _.W(XZP,{data:G.data,
upsellTableIsFirstRow:function(){return K()===0}})}}))))},"Bj");
Pvw.idomCompat=!0;var irR=_.U(function(M){var q=function(){return M.data()},G=_.bg(M.noPadding,!1),K=function(){var E,p;
return(p=(E=q().logo.accessibilityData)==null?void 0:E.label)!=null?p:""},n={};
return _.W("upsell-view-model",{class:_.Hb("ytUpsellViewModelHost",(n.ytUpsellViewModelHostNoPadding=function(){return G()},n.ytUpsellViewModelHostWide=function(){return q().offerTable!==void 0},n))},_.W("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.W(_.d,{cond:function(){return _.cO(q().logo)},
then:function(E){return _.W(_.Jj,{data:E,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:K})}})),_.W("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.W(_.bf,{each:function(){var E;
return(E=q().subtitles)!=null?E:[]},
keyBy:"INDEX"},function(E){var p={};return _.W("div",{class:_.Hb("ytUpsellViewModelHostUpsellSubtitleSectionSubtitle",(p.ytUpsellViewModelHostUpsellSubtitleSectionSubtitleSecondary=function(){return q().offerTable!==void 0},p))},_.W(_.Ft,{text:E}))})),_.W("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.W(_.bf,{each:function(){var E;
return(E=q().benefitInfos)!=null?E:[]},
keyBy:"INDEX"},function(E){return _.W(_.d,{cond:function(){return E().info},
then:function(p){return _.W("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.W(_.np,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.W(_.Ft,{text:p}))}})})),_.W(_.d,{cond:function(){return q().offerTable!==void 0},
then:function(){return _.W("div",{class:"ytUpsellViewModelHostUpsellOfferTableSection"},_.W(_.yu,{data:function(){return q().offerTable}},{upsellOfferTableViewModel:function(E){return _.W(Pvw,{data:E.data})}}))}}),_.W("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.W(_.bf,{each:function(){var E;
return(E=q().legalInfos)!=null?E:[]},
keyBy:"INDEX"},function(E){var p={};return _.W("div",{class:_.Hb("ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo",(p.ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfoSmaller=function(){return q().offerTable!==void 0},p))},_.W(_.Ft,{text:E}))})))},"Cj");var cBM=_.U(function(M){var q=M.data;M={};M=(M.ytMiniAppScoreChallengeViewModelScoreRadial=!0,M.ytMiniAppScoreChallengeViewModelDarkScoreRadial=ius(),M);return _.W("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.W("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return q().title}),_.W("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return q().subtitle}),_.W("div",{class:_.vO(M)},_.W("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return q().score})),_.W("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return q().prompt}))},"Dj");var g7P=function(){this.store=_.J_();this.formId=""};
g7P.prototype.onInit=function(M){M.formId&&(this.formId=M.formId,this.store.dispatch(_.RJ({type:"SET_CURRENT_FORM_ID",payload:{formId:this.formId}})))};var BSU=_.U(function(M){function q(y){if(y&&(y=_.C(y,_.Ye)))return Object.assign({},y,{isSelected:E()})}
var G=_.k(_.GM(function(){var y,Y;return(Y=(y=_.C(M.data().option,_.Ye))==null?void 0:y.isSelected)!=null?Y:!1})),K=G.next().value,n=G.next().value,E=K;
_.SK(function(){var y;_.WhI((y=M.data().formSchema)==null?void 0:y.id,{onSubmit:function(){var Y=_.AL().resolve(_.vR),A=!!M.data().selectedCommand,v=!!M.data().unselectedCommand;if(E()){if(A)var h=M.data().selectedCommand}else v&&(h=M.data().unselectedCommand);h=_.aM(h);q(M.data().option)&&!h?(Y="",!A&&v?Y="selected ":A&&!v&&(Y="unselected "),A=new _.bj("No "+Y+"command found for SelectionListItemFormViewModel"),_.T6(A)):h&&Y.resolveCommand(h)},
isValid:function(){return!0}})});
var p=function(){n(!E())};
_.m_(function(){var y,Y,A=(y=M.data())==null?void 0:(Y=y.formSchema)==null?void 0:Y.id;A&&_.ke()().delete(A)});
return _.W("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.W("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.W(_.Ft,{text:function(){return M.data().paragraph}})),_.W(_.d,{cond:function(){return q(M.data().option)},
then:function(y){return _.W(_.Sy,{data:y,isCompact:!0,hideSelectionTextChevron:!0,onTap:p,disableHorizontalPadding:!0})}}))},"Ej");var QCM=_.U(function(M){var q=M.data;var G=M.disablePadding;var K=M.className;var n=_.pI("yt-dialog-header-view-model"),E=function(){var y=q().imageBanner;a:switch(q().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var Y="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:Y="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:y,style:Y,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},p=function(){return q().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.SK(function(){var y=function(){_.VW(n.value,"yt-refit-popups-action")},Y;
(Y=n.value)==null||Y.addEventListener("image-loaded",y);_.m_(function(){var A;(A=n.value)==null||A.removeEventListener("image-loaded",y)})});
M={};return _.W("yt-dialog-header-view-model",{el:n,class:_.Hb(K,(M.ytDialogHeaderViewModelHost=!0,M.ytDialogHeaderViewModelHostDisablePadding=G,M))},_.W(_.d,{cond:function(){return q().imageBanner},
then:function(){var y={};return _.W("div",{class:_.Hb(K,(y.ytDialogHeaderViewModelBanner=!0,y.ytDialogHeaderViewModelBannerFullBleed=p,y)),style:_.Kp({"max-height":function(){return q().assetContainerMaxHeight!==void 0?q().assetContainerMaxHeight+"px":void 0}})},_.W(_.We,{data:E,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.W(_.d,{cond:function(){return q().headerBlock},
then:function(){return _.W("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.W(_.yu,{data:function(){return q().headerBlock}},{contentPreviewImageViewModel:function(y){return _.W(_.We,{data:y.data,
notifyOnLoaded:!0})}}))}}),_.W(_.d,{cond:function(){return q().customBanner},
then:function(y){return _.W("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.W(_.yu,{data:y},{avatarStackViewModel:_.Sf}))}}),_.W(_.d,{cond:function(){return q().headline},
then:function(y){return _.W("h2",null,_.W(_.Ft,{text:y,className:"ytDialogHeaderViewModelText"}))}}))},"Fj");
QCM.idomCompat=!0;var IYE=_.U(function(M){var q=_.AOu(function(){return M.data().formId}),G=q.submitForm,K=q.isValid;
return _.W("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.W(_.yu,{data:function(){return M.data().panelFooter}},{panelFooterViewModel:function(n){return _.W(_.dO,{data:n.data,
disablePadding:!0,disablePrimaryButton:function(){return!K()},
onClickPrimaryButton:function(){G()}})}}))},"Gj");var D2I=_.U(function(M){var q=function(){var G,K;return(K=(G=_.C(M.data().rendererContext,_.NQ))==null?void 0:G.label)!=null?K:""};
return _.W("yt-dialog-image-content-view-model",{class:_.Hb("ytDialogImageContentViewModelHost",M.className)},_.W(_.d,{cond:function(){return _.cO(M.data().image)},
then:function(G){var K={};return _.W("div",{style:_.Kp((K.width=(0,_.kn)(function(){var n;return(n=M.data().imageMaxWidth)!=null?n:""}),K)),
class:"ytDialogImageContentViewModelImage"},_.W(_.Jj,{data:G,alt:q,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"}))}}),_.W(_.Ft,{text:function(){return M.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Hj");var Zr5=_.U(function(M){var q=_.UT(M,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),G=q.elRefCallback;M=q.iconWiz;var K=q.assetWiz,n=q.assetType,E=q.titleWiz,p=q.leadingActionHeaderWiz,y=q.trailingActionHeaderWiz,Y=q.headerPosition,A=q.contentWiz,v=q.buttonLayout,h=q.buttonStyle,t=q.primaryButtonWiz,O=q.secondaryButtonWiz,a=q.contentAlignment,g=q.isFullscreen,D=q.width,J=q.maxHeight,Z=q.isHeaderWizDefined,
V=q.headerWiz,S=q.isFooterWizDefined,m=q.footerWiz;q=_.pI("dialog-layout",function(iH){G==null||G(iH)});
var R=K?function(){return K({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,se=t?function(){var iH={};
return t({buttonOverrides:function(){return{style:(h==null?void 0:h())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.Hb((iH["yt-spec-dialog-layout__dialog-layout-button"]=!0,iH["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(v==null?void 0:v())===0||(v==null?void 0:v())===2},iH))})}:void 0,yY=O?function(){var iH={};
return O({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.Hb((iH["yt-spec-dialog-layout__dialog-layout-button"]=!0,iH["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(v==null?void 0:v())===0||(v==null?void 0:v())===2},iH))})}:void 0,d$=function(){return(!!E||!!p||!!y)&&Y()===0},cy={},t4={},ay={},bH={};
return _.W("dialog-layout",{el:q,class:_.Hb((cy["yt-spec-dialog-layout"]=!0,cy["yt-spec-dialog-layout--dialog-layout-fullscreen"]=g,cy["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!g()},cy["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return J()===1},cy["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(n==null?void 0:n())===1},cy)),
style:function(){return(D==null?void 0:D())!==void 0?"width: "+D+"px;":""}},M?_.W("div",{class:_.Hb((t4["yt-spec-dialog-layout__dialog-layout-icon"]=!0,t4["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!K&&Y()===1},t4["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return a()===1},t4))},_.W(M,null)):null,_.W(_.d,{cond:Z,
then:function(){return V?_.W("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.W(V,null)):null},
else:function(){return _.W(_.dU,null,_.W(_.d,{cond:d$,then:function(){return _.W(uyM,{contentAlignment:a,LeadingActionHeader:p,TrailingActionHeader:y,Title:E,isAboveAsset:!!R})}}),R?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.W(R,null)):null)}}),_.W("div",{class:_.Hb((ay["yt-spec-dialog-layout__dialog-layout-container"]=!0,ay["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(a==null?void 0:a())===1},ay["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-top-padding"]=
function(){return!E&&!(V&&Z())||!!R&&(Y==null?void 0:Y())===0},ay))},_.W(_.d,{cond:function(){return E&&!V&&(Y==null?void 0:Y())===1},
then:function(){return _.W(uyM,{contentAlignment:a,LeadingActionHeader:p,TrailingActionHeader:y,Title:E,isAboveAsset:!1})}}),A?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.W(A,null))):null,_.W(_.d,{cond:S,
then:function(){return m?_.W("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.W(m,null)):null}}),se||yY?_.W(JBn,{footerClasses:_.Hb((bH["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,bH["yt-spec-dialog-layout__dialog-layout-footer"]=!0,bH["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(v==null?void 0:v())===2},bH["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(v==null?void 0:v())===1},bH)),
PrimaryButton:se,SecondaryButton:yY}):null))},"Ij"),uyM=_.U(function(M){var q=_.UT(M,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),G=q.contentAlignment,K=q.LeadingActionHeader;M=q.Title;var n=q.TrailingActionHeader,E=q.isAboveAsset,p=q.enableLeadingActionHeader;q={};return _.W("div",{class:_.Hb((q["yt-spec-dialog-layout__dialog-header-container"]=!0,q["yt-spec-dialog-layout__dialog-header"]=!0,q["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=E,q["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(G==null?void 0:G())===1&&p()},q))},_.W(_.d,{cond:function(){return p()},
then:function(){return K?_.W("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.W(K,null)):null}}),M?_.W("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.W(M,null)):null,n?_.W("div",null,_.W(n,null)):null)},"Jj"),JBn=_.U(function(M){var q=M.footerClasses;
var G=M.PrimaryButton;M=M.SecondaryButton;return _.W("div",{class:q},M?_.W(M,null):null,G?_.W(G,null):null)},"Kj");var brw=_.U(function(M){var q=M.data;return _.W("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.W("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.W(_.yu,{data:function(){return q().avatar}},{avatarViewModel:_.zo})),_.W("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W(_.Ft,{text:function(){return q().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Lj");var U2M=_.U(function(M){return _.W("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.W(_.Ft,{text:function(){return M.data().inviteMessage}})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.W(_.Ft,{text:function(){return M.data().attributedAccountSectionHeaderText}})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.W(_.yu,{data:function(){return M.data().accountAvatar}},{avatarViewModel:_.zo}),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.W(_.Ft,{text:function(){return M.data().accountName}}),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.W(_.Ft,{text:function(){return M.data().handle}}))),_.W(_.yu,{data:function(){return M.data().trailingButton}},{buttonViewModel:_.Wf})),_.W("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.W(_.Ft,{text:function(){return M.data().termsOfService}})))},"Mj");var x2L=_.U(function(M){var q=M.data;return _.W("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.W("div",{class:"ytAccessConfirmationViewModelContent"},_.W(_.yu,{data:function(){var G;return(G=q().avatar)!=null?G:q().dualAvatar}},{dualAvatarViewModel:function(G){return _.W(_.Hnw,{data:G.data,
className:"ytAccessConfirmationViewModelAvatar"})},
decoratedAvatarViewModel:function(G){return _.W(_.mF,{data:G.data,className:"ytAccessConfirmationViewModelAvatar"})}}),_.W("h2",{class:"ytAccessConfirmationViewModelTitle"},_.W(_.Ft,{text:function(){return q().title}})),_.W(_.Ft,{text:function(){return q().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Nj");var z1n=_.U(function(M){var q=M.data;var G=void 0;M=_.k(_.GM(function(){var A;return((A=_.C(q().content,_.UJ))==null?void 0:A.defaultSelectedKey)||""}));
var K=M.next().value,n=M.next().value,E,p=function(){n("");var A;(A=G)!=null&&A.store.dispatch(_.RJ({type:"RESET_COMMAND_MAP"}))};
_.SK(function(){G=new g7P;window.addEventListener("yt-popup-closed",p)});
_.zL(function(){if(G&&E!==q().formId&&(G.onInit(q()),(E=q().formId)&&K())){var A=G,v={key:K()};v.command&&A.store.dispatch(AsR(E,v.command))}},"c2n8Gf");
_.m_(function(){window.removeEventListener("yt-popup-closed",p)});
var y=function(A,v,h){v.key&&h&&v.key!==K()&&(n(v.key),G&&v.command&&G.store.dispatch(AsR(h,v.command)))},Y=function(){if(_.C(q().content,_.UJ))return!(K==null?0:K())};
return _.W("yt-dialog-view-model",{class:_.Hb("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.W(Zr5,{headerWiz:function(){return _.W("span",{skip:!0},_.W(_.yu,{data:function(){return q().header}},{dialogHeaderViewModel:function(A){return _.W(QCM,{data:A.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!q().header},
contentWiz:function(){return _.W("span",{skip:!0},_.W(_.yu,{data:function(){return q().customContent?q().customContent:q().content}},{basicContentViewModel:_.evP,
createPlaylistDialogFormViewModel:aYP,collaborativePlaylistInviteMessageViewModel:U2M,miniAppScoreChallengeViewModel:cBM,radioButtonGroupViewModel:function(A){var v=A.data;return _.W(_.wsE,{data:v,selectedKey:K,onSelected:y,groupName:function(){return v().formId}})},
selectionListItemFormViewModel:BSU,upsellViewModel:function(A){return _.W(irR,{data:A.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:brw,installmentAgreementsViewModel:CvP,accessConfirmationViewModel:x2L,listViewModel:function(A){return _.W(_.vMp,{data:A.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:D2I}))},
footerWiz:function(){return _.W("span",{skip:!0},_.W(_.yu,{data:function(){return q().footer}},{panelFooterViewModel:function(A){return _.W(_.dO,{data:A.data,
disablePadding:!0,disablePrimaryButton:Y})},
formPanelFooterViewModel:IYE,formFooterViewModel:function(A){return _.W(_.kwL,{data:A.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!q().footer}}))},"Pj");
z1n.idomCompat=!0;_.S5(z1n,"yt-dialog-view-model",{props:{data:_.Hz},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var m2M=_.U(function(M){var q=M.data;var G=_.V2H(function(){return q().rendererContext});
M={};return _.W("yt-panel-header-view-model",{class:_.Hb("ytPanelHeaderViewModelHost",(M.ytPanelHeaderViewModelHostHideDivider=function(){return!!q().shouldHideDivider},M.ytPanelHeaderViewModelHostCompact=function(){return!!q().subtitle},M)),
"aria-label":function(){var K;return(K=G())==null?void 0:K.label}},_.W("div",{class:"ytPanelHeaderViewModelTitleWrapper"},_.W(_.d,{cond:function(){return q().title},
then:function(K){return _.W("h2",{class:"ytPanelHeaderViewModelTitleHeader"},_.W(_.Ft,{text:K,className:"ytPanelHeaderViewModelTitle"}))}}),_.W(_.d,{cond:function(){return q().subtitle},
then:function(K){return _.W(_.Ft,{text:K,className:"ytPanelHeaderViewModelSubtitle"})}})),_.W("div",{class:"ytPanelHeaderViewModelTrailingButtons"},_.W(_.yu,{data:function(){return q().trailingButtons}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
className:"ytPanelHeaderViewModelButton"})}})))},"Qj");
m2M.idomCompat=!0;var SJI=_.U(function(M){var q=_.sq(function(E){var p;if((p=M.skipContentClick)==null?0:p.call(M))return!1;M.onContentWrapperClick(E);return!0}),G,K,n;
return _.W("div",{class:_.Hb("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return M.isAnimating()?"transform: translateY("+M.currentY()+"px);transition: 0.2s":""}},(G=M.header)==null?void 0:G.call(M),_.W("div",{id:M.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Kp({"max-height":(0,_.kn)(M.maxHeightForContentWrapper)}),"on:scroll":QTv(M.onScroll),"on:touchmove":QTv(function(E){return void E.stopPropagation()})},_.W("div",{el:{onRender:M.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":q},(K=M.body)==null?void 0:K.call(M))),(n=M.footer)==null?void 0:n.call(M))},"Rj");
SJI.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var TSL=_.U(function(M){var q=_.bg(M.leadingLabel),G=_.bg(M.trailingLabel),K=_.bg(M.footerButtonType),n=function(){return q()||G()||M.hasPrimaryButton()||M.hasSecondaryButton()},E={},p=_.Hb("yt-spec-bottom-sheet-layout__primary-button",(E["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return K()===0&&M.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return K()===1&&M.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return K()===2&&M.hasPrimaryButton()},E["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return K()===3&&M.hasPrimaryButton()},E));
E={};var y=_.Hb("yt-spec-bottom-sheet-layout__secondary-button",(E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return K()===1&&M.hasSecondaryButton()},E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return K()===2&&M.hasSecondaryButton()},E["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return K()===3&&M.hasPrimaryButton()},E));
return _.W(_.d,{cond:M.hasFooterOverride,then:function(){var Y;return _.W(_.dU,null,(Y=M.footerOverride)==null?void 0:Y.call(M))},
else:function(){return _.W(_.d,{cond:n,then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.W(_.d,{cond:function(){return q()||G()},
then:function(){var Y={};return _.W("div",{class:_.Hb("yt-spec-bottom-sheet-layout__footer-label-wrapper",(Y["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!M.hasPrimaryButton()},Y))},_.W(_.d,{cond:q,
then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},q)}}),_.W(_.d,{cond:G,
then:function(){return _.W("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},G)}}))}}),_.W(_.d,{cond:function(){return M.hasPrimaryButton()||M.hasSecondaryButton()},
then:function(){var Y={};return _.W("div",{class:_.Hb("yt-spec-bottom-sheet-layout__footer-button-wrapper",(Y["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.$Rd,Y))},_.W(_.d,{cond:function(){return M.hasSecondaryButton()&&K()!==0},
then:function(){var A;return _.W("div",{class:y},(A=M.secondaryButton)==null?void 0:A.call(M))}}),_.W(_.d,{cond:M.hasPrimaryButton,
then:function(){var A;return _.W("div",{class:p},(A=M.primaryButton)==null?void 0:A.call(M))}}))}}))}})}})},"Sj");
TSL.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var rBw=_.U(function(M){var q=_.bg(M.title),G=_.bg(M.subtitle);return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:M.headerId,"on:touchstart":_.sq(function(K){var n;(n=M.touchstart)==null||n.call(M,K);return!1}),
"on:touchmove":_.sq(function(K){var n;(n=M.touchmove)==null||n.call(M,K);return!1}),
"on:touchend":_.sq(function(K){var n;(n=M.touchend)==null||n.call(M,K);return!1})},_.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.W(_.d,{cond:M.hasHeaderOverride,
then:function(){var K;return _.W(_.dU,null,(K=M.headerOverride)==null?void 0:K.call(M))},
else:function(){var K={};return _.W("div",{class:_.Hb((K["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,K["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=q,K))},_.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.W(_.d,{cond:q,then:function(){return _.W(_.dU,null,_.W("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},q),_.W(_.d,{cond:G,then:function(){return _.W("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
G)}}))}})),_.W(_.d,{cond:function(){return q()&&M.hasActionHeader()},
then:function(){var n;return _.W("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(n=M.actionHeader)==null?void 0:n.call(M))}}))}}))},"Tj");
rBw.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.U(function(M){function q(yY){if(!V&&typeof MutationObserver!=="undefined"){var d$={childList:!0};"MutationObserver"in window&&(V=new MutationObserver(G.bind(void 0,yY)),V.observe(yY,d$))}}
function G(yY){typeof V!=="undefined"&&(S["content-wrapper"]===void 0&&(S["content-wrapper"]=yY.children[0].clientHeight),g(S["content-wrapper"]),a()>D()||J(a()))}
function K(){O(window.innerHeight);a()>D()||J(a());m.isFullScreen[0]()&&a()>D()?R().dispatch("Snap To Full Screen",{maxHeight:Z()}):R().dispatch("Snap To Neutral Position",{maxHeight:D()})}
function n(yY){document.body.style.overscrollBehavior="none";yY.preventDefault();R().dispatch("Touch Start",{event:yY})}
function E(yY){yY.preventDefault();R().dispatch("Touch Move",{event:yY,contentScrollable:a()>D(),fullContentWrapperHeight:Z(),contentWrapperHeight:D(),heightMap:S,contentWrapperId:"content-wrapper",header:Dnw(M),footer:Dnw(M),headerDivHeight:S["bottom-sheet-header"],footerDivHeight:S["bottom-sheet-footer"]})}
function p(){document.body.style.overscrollBehavior="";m.isFullScreen[0]()?m.currentY[0]()>=60?R().dispatch("Snap To Neutral Position",{maxHeight:D()}):R().dispatch("Snap To Full Screen",{maxHeight:Z()}):m.currentY[0]()>=60?y():m.currentY[0]()<=-60&&a()>D()?R().dispatch("Snap To Full Screen",{maxHeight:Z()}):R().dispatch("Snap To Neutral Position",{maxHeight:D()})}
function y(){R().dispatch("Close Sheet",{clientHeight:t(),maxHeight:0});setTimeout(function(){Ih5()},250)}
var Y=_.pI("div"),A=_.pI("div"),v=_.k(_.lQ(window.innerHeight,void 0,"CmOsU")),h=v.next().value;v=v.next().value;var t=h,O=v;v=_.k(_.lQ(0,void 0,"p0Flhb"));h=v.next().value;v=v.next().value;var a=h,g=v;v=_.k(_.GM(function(){var yY=Dnw(M);return.6*t()-cDL(yY)-g1U(yY)}));
h=v.next().value;v=v.next().value;var D=h,J=v,Z=function(){var yY=Dnw(M),d$=t(),cy=S["bottom-sheet-header"],t4=S["bottom-sheet-footer"];return d$-(yY.hasHeaderFn&&cy!==void 0?cy:cDL(yY))-(yY.hasFooterFn&&t4!==void 0?t4:g1U(yY))-24-24},V=null,S={},m={initialY:_.lQ(0,void 0,"sxdESd"),
currentY:_.lQ(0,void 0,"GZzqeb"),isAnimating:_.lQ(!1,void 0,"vJBupc"),isFullScreen:_.lQ(!1,void 0,"XyRDp"),maxHeightForContentWrapper:_.GM(D)},R=function(){var yY=null;return function(){if(!yY){var d$={initialY:m.initialY[0](),currentY:m.currentY[0](),isAnimating:m.isAnimating[0](),isFullScreen:m.isFullScreen[0](),maxHeightForContentWrapper:m.maxHeightForContentWrapper[0]()};yY=BlU(d$)}return yY}}();
_.SK(function(){window.addEventListener("resize",K);R().subscribe(function(yY){m.initialY[1](yY.initialY);m.currentY[1](yY.currentY);m.isAnimating[1](yY.isAnimating);m.isFullScreen[1](yY.isFullScreen);m.maxHeightForContentWrapper[1](yY.maxHeightForContentWrapper)});
requestAnimationFrame(function(){Y.value&&(S["bottom-sheet-header"]=Y.value.clientHeight);A.value&&(S["bottom-sheet-footer"]=A.value.clientHeight)})});
_.m_(function(){window.removeEventListener("resize",K);V&&(V.disconnect(),V=null)});
var se=_.Hb({"bottom-sheet-content-without-icon":function(){var yY;return!((yY=M.shouldShowIcons)==null?0:yY.call(M))}});
return _.W("bottom-sheet-layout",null,_.W(SJI,{contentWrapperId:"content-wrapper",isAnimating:function(){return m.isAnimating[0]()},
currentY:function(){return m.currentY[0]()},
maxHeightForContentWrapper:function(){return m.maxHeightForContentWrapper[0]()},
shouldShowIcons:M.shouldShowIcons,skipContentClick:M.skipContentClick,onScroll:function(){var yY=document.getElementById("bottom-sheet-header"),d$=document.getElementById("content-wrapper");if(yY&&d$){var cy={};cy=(cy["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,cy["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,cy);yY.className=d$.scrollTop>1?_.vO(cy):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:Ih5,contentWrapperEl:function(yY){q(yY);requestAnimationFrame(function(){G(yY)})},
header:function(){return _.W("div",{el:Y},_.W(rBw,{touchstart:n,touchmove:E,touchend:p,title:M.headerTitle,subtitle:M.headerSubtitle,headerId:"bottom-sheet-header",headerOverride:M.headerFn,hasHeaderOverride:M.hasHeaderFn,actionHeader:M.headerActionHeader,hasActionHeader:M.hasHeaderActionHeader}))},
footer:function(){return _.W("div",{el:A},_.W(TSL,{footerButtonType:M.footerButtonType,leadingLabel:M.footerLeadingLabel,trailingLabel:M.footerTrailingLabel,primaryButton:M.footerPrimaryButton,hasPrimaryButton:M.hasFooterPrimaryButton,secondaryButton:M.footerSecondaryButton,hasSecondaryButton:M.hasFooterSecondaryButton,footerOverride:M.footerFn,hasFooterOverride:M.hasFooterFn}))},
body:function(){return _.W(_.d,{cond:M.hasContentFn,then:function(){var yY;return _.W("div",{class:se},(yY=M.contentFn)==null?void 0:yY.call(M))}})}}))},"Uj").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var jCv=_.U(function(M){var q=_.AL().resolve(_.ZB);return _.W("yt-contextual-sheet-layout",{class:"ytContextualSheetLayoutHost","on:click":_.sq(function(){return void q.closeSheet()})},_.W(_.d,{cond:function(){return!!M.header},
then:function(){return _.W("div",{class:"ytContextualSheetLayoutHeaderContainer"},M.header())}}),_.W(_.d,{cond:function(){return!!M.content},
then:function(){return _.W("div",{class:"ytContextualSheetLayoutContentContainer"},M.content())}}),_.W(_.d,{cond:function(){return!!M.footer},
then:function(){return _.W("div",{class:"ytContextualSheetLayoutFooterContainer"},M.footer())}}))},"Vj");
jCv.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var VOw=_.U(function(M){M=M.data;var q=_.pI("yt-sheet-view-model",function(K){if(_.w("web_focus_first_element_sheet")||!_.w("sheet_focus_first_killswitch"))return K.addEventListener("focus",function(){B4R(K)}),function(){K.removeEventListener("focus",function(){B4R(K)})}}),G={};
return _.W("yt-sheet-view-model",{"on:mousedown":_.sq(function(K){_.w("sheet_focus_first_killswitch")||K.currentTarget!==K.target&&K.preventDefault()}),
"on:focus":_.sq(function(){_.w("sheet_focus_first_killswitch")||B4R(q.value)}),
class:_.Hb("ytSheetViewModelHost",(G.ytSheetViewModelContextual=!0,G.ytSheetViewModelDisableBackdropFilter=_.w("web_disable_backdrop_filter"),G)),el:q,tabindex:-1},_.W(_.d,{cond:M,then:function(K){return _.W(jCv,{header:function(){return _.W(_.yu,{data:function(){return K().header}},{panelHeaderViewModel:m2M})},
content:function(){return _.W(_.yu,{data:function(){return K().content}},{listViewModel:function(n){return _.W(_.vMp,{data:n.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:irR,miniAppScoreChallengeViewModel:cBM})},
footer:function(){return _.W(_.yu,{data:function(){return K().footer}},{panelFooterViewModel:_.dO})}})}}))},"Wj");
VOw.idomCompat=!0;_.S5(VOw,"yt-sheet-view-model",{props:{data:_.Hz}});var fYv=_.U(function(M){var q=function(){var G;return(G=M.data().enableDebuggingFeatures)!=null?G:!1};
return _.W("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.W(_.bf,{each:function(){var G;return(G=M.data().stickers)!=null?G:[]}},function(G){return _.W(R1I,{data:function(){return G},
debugMode:q})}))},"Xj"),R1I=_.U(function(M){var q=_.UT(M,{debugMode:!1}).debugMode,G=_.bg(function(){var Y;
return(Y=M.data().region)==null?void 0:Y.w},0),K=_.bg(function(){var Y;
return(Y=M.data().region)==null?void 0:Y.h},0),n=_.bg(function(){var Y;
return(Y=M.data().region)==null?void 0:Y.x},0),E=_.bg(function(){var Y;
return(Y=M.data().region)==null?void 0:Y.y},0),p=_.sq(function(){var Y=M.data().onTap;
Y&&_.Pb(Y)}),y={};
return _.W("div",{class:_.Hb("ytStoriesStickerLayerViewModelSticker",(y.ytStoriesStickerLayerViewModelDebugMode=q,y)),style:_.Kp({width:function(){return 100*G()+"%"},
height:function(){return 100*K()+"%"},
left:function(){return 100*n()+"%"},
top:function(){return 100*E()+"%"},
"flex-direction":function(){return uWw(M.data().flexDirection)},
"justify-content":function(){return JDR(M.data().justifyContent)},
"align-items":function(){return Zun(M.data().alignItems)}}),
"on:click":p},_.W(_.yu,{data:function(){return M.data().button||M.data().toggleButton}},{buttonViewModel:function(Y){return _.W(_.Wf,{data:Y.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(Y){return _.W(_.Dj,{data:Y.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Yj");var HrI=_.U(function(M){var q=function(){return M.data()},G={},K=_.k(_.lQ(!1,void 0,"SegA3d")),n=K.next().value,E=K.next().value,p=_.bg(function(){return q().backgroundColor},0);
K=_.bg(function(){return q().actionButtons},[]);
var y=_.bg(function(){return q().stickerLayer},{}),Y=function(){var v,h;
return{animationRef:G,animationConfig:{autoplay:!1,loop:!1,path:(h=(v=q().foregroundAnimation)==null?void 0:v.url)!=null?h:"",name:"stories_item_foreground_animation"},listeners:{data_ready:function(){E(!0)},
complete:function(){M.navigateToNextItemOnLottieComplete()}}}},A=function(){var v,h,t,O,a,g,D,J;
return{animationConfig:{autoplay:(g=(v=q().backgroundAnimation)==null?void 0:(h=v.settings)==null?void 0:h.autoplay)!=null?g:!1,loop:(D=(t=q().backgroundAnimation)==null?void 0:(O=t.settings)==null?void 0:O.loop)!=null?D:!1,path:(J=(a=q().backgroundAnimation)==null?void 0:a.url)!=null?J:"",name:"stories_item_background_animation"}}};
_.zL(function(){if(M.isVisible()&&n()){var v;(v=G.lottieEl)==null||v.play();M.animationRef()&&(M.animationRef().lottieEl=G.lottieEl)}else{var h;(h=G.lottieEl)==null||h.stop()}},"MxM2wb");
return _.W("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Kp({"background-color":function(){return _.C_(p())+";"}})},_.W("div",{class:"ytStoriesItemViewModelAssetContent"},_.W(_.d,{cond:function(){return!!q().backgroundAnimation},
then:function(){return _.W(_.C3,{data:A,animationName:function(){return A().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.W(_.d,{cond:function(){return!!q().backgroundImage},
then:function(){return _.W(_.Jj,{data:function(){return q().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.W(_.d,{cond:function(){return!!q().foregroundAnimation},
then:function(){return _.W(_.C3,{data:Y,animationName:function(){return Y().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.W(_.d,{cond:function(){return!!q().foregroundImage},
then:function(){return _.W(_.Jj,{data:function(){return q().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.W("div",{class:"ytStoriesItemViewModelTopShadow"}),_.W(_.yu,{data:function(){return y()}},{storiesStickerLayerViewModel:fYv})),_.W("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Kp({"background-color":function(){return _.C_(p())}})},_.W("div",{class:"ytStoriesItemViewModelActionButtonWrapper"},_.W(_.bf,{each:K},function(v){return _.W(F2I,{data:function(){return v},
pauseAutoNavigation:M.pauseAutoNavigation})}))))},"$j"),e18={style:"overlay",
type:"outline"},F2I=_.U(function(M){var q={};return _.W("div",{class:_.Hb("ytStoriesItemViewModelActionButton",(q.ytStoriesItemViewModelStretchedActionButton=function(){return M.data().size==="STORIES_BUTTON_SIZE_STRETCH"},q)),
"on:click":_.sq(M.pauseAutoNavigation)},_.W(_.yu,{data:function(){return M.data().button}},{buttonViewModel:function(G){return _.W(_.Wf,{data:G.data,
buttonOverrides:e18})}}))},"ak");var $2E={sources:[{url:"https://www.gstatic.com/music/image_composition/dna_recap/youtube_logo_full_color_278x60.png"}]};_.S5(_.U(function(M){var q=function(){var t4;return(t4=M.data().startIndex)!=null?t4:0},G=_.k(_.GM(q)),K=G.next().value,n=G.next().value;
G=_.k(_.lQ(!1,void 0,"qWlrrc"));var E=G.next().value,p=G.next().value,y=function(){var t4;return(t4=M.data().storyItems)!=null?t4:[]},Y={},A=_.pI("yt-stories-viewer-view-model"),v=function(){return M.data().dismissButton},h=function(){var t4;
return _.aM((t4=_.C(v(),_.$N))==null?void 0:t4.onTap)},t=_.pI("div"),O,a,g=!1,D=function(){var t4;
(t4=O)==null||t4.cancel();O=J(K()).animate([{transform:"scaleX(0)"},{transform:"scaleX(1)"}],{duration:9E3,easing:"linear",fill:"forwards"});O.onfinish=function(){var ay=_.C(y()[K()],sRR),bH,iH;ay!=null&&ay.foregroundAnimation&&((ay==null?0:(bH=ay.foregroundAnimation)==null?0:bH.url)||(ay==null?0:(iH=ay.foregroundAnimation)==null?0:iH.payload))||(K()!==y().length-1?(n(K()+1),D()):h()&&_.oM(h()))}},J=function(t4){return t.value.children[t4].children[0]},Z=function(){for(var t4=0;t4<K();t4++)J(t4).style.transform=
"scaleX(1)"},V=function(){g||(E()?p(!1):(K()===y().length-1&&h()&&_.oM(h()),J(K()).style.transform="scaleX(1)",K()!==y().length-1&&(n(K()+1),D())))},S=function(){g||(E()?p(!1):(J(K()).style.transform="scaleX(0)",K()!==0&&n(K()-1),D()))},m=function(){p(!0)},R=function(){J(K()).style.transform="scaleX(1)";
K()!==y().length-1?(n(K()+1),D()):h()&&_.oM(h())};
G=function(){g=!1;a=setTimeout(function(){p(!0);g=!0},300)};
var se=function(){clearTimeout(a);g&&E()&&p(!1)};
_.zL(function(){if(E()){var t4;(t4=O)==null||t4.pause();var ay;(ay=Y.lottieEl)==null||ay.pause()}else{var bH;(bH=O)==null||bH.play();var iH;(iH=Y.lottieEl)==null||iH.play()}},"utQ8Hb");
_.zL(function(){Z();K()===q()&&D()},"UsBAlc");
var yY=function(t4){t4.key==="ArrowLeft"?S():t4.key==="ArrowRight"&&V()},d$=function(t4){if(t4.target===A.value){(t4=h())&&_.oM(t4);
clearTimeout(a);var ay;(ay=O)==null||ay.cancel();window.removeEventListener("keydown",yY);window.removeEventListener("yt-popup-closed",d$)}},cy=function(t4){t4.target===A.value&&(window.addEventListener("keydown",yY),window.addEventListener("yt-popup-closed",d$))};
_.SK(function(){Z();D();window.addEventListener("yt-popup-opened",cy)});
return _.W("yt-stories-viewer-view-model",{el:A,class:_.Hb("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.W("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.W("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":_.sq(S),"on:mousedown":_.sq(G),"on:mouseup":_.sq(se),"on:mouseleave":_.sq(se)}),_.W("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":_.sq(V),"on:mousedown":_.sq(G),"on:mouseup":_.sq(se),"on:mouseleave":_.sq(se)})),
_.W("div",{class:"ytStoriesViewerViewModelStoryItemsContainer"},_.W(_.yu,{data:y},{storiesItemViewModel:function(t4,ay){var bH=t4.data;return _.W(_.d,{cond:function(){return Math.abs(ay()-K())<=1},
then:function(){var iH={};return _.W("div",{class:_.Hb("ytStoriesViewerViewModelStoryItem",(iH.ytStoriesViewerViewModelActiveStoryItem=function(){return ay()===K()},iH))},_.W(HrI,{data:bH,
pauseAutoNavigation:m,navigateToNextItemOnLottieComplete:R,isVisible:function(){return ay()===K()},
animationRef:Y}))}})}})),_.W("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:t},_.W(_.bf,{each:y},function(){return _.W("div",{class:"ytStoriesViewerViewModelProgressBar"},_.W("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.W("div",{class:"ytStoriesViewerViewModelTopBarContainer"},_.W(_.Jj,{data:$2E,
alt:"YouTube Logo",className:"ytStoriesViewerViewModelYouTubeLogo"}),_.W("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.W(_.yu,{data:v},{buttonViewModel:_.Wf}))))},"dk"),"yt-stories-viewer-view-model",{props:{data:_.Hz}});_.S5(_.U(function(M){var q=M.data;var G=_.pI("yt-gen-ai-feedback-form-view-model"),K=[];return _.W("yt-gen-ai-feedback-form-view-model",{el:G,class:"ytGenAiFeedbackFormViewModelHost"},_.W(_.Ft,{text:function(){return q().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.W("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.W(_.yu,{data:function(){return q().feedbackChips}},{toggleButtonViewModel:function(n){var E=n.data;
return _.W(_.Dj,{data:E,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(p){var y=E();y=_.C(y,_.M1);y=_.C(y==null?void 0:y.defaultButtonViewModel,_.$N).trackingParams;p?K.push(y):(p=K.indexOf(y),p>-1&&K.splice(p,1))}})}})),_.W(_.Ft,{text:function(){return q().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.W("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.W(_.yu,{data:function(){return q().submitButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){buI(G.value,K,q().uniqueId)}})}}),_.W(_.yu,{data:function(){return q().moreFeedbackButton}},{buttonViewModel:function(n){return _.W(_.Wf,{data:n.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ek"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.Hz},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var DE=function(){return _.Q.apply(this,arguments)||this};
_.l(DE,_.Q);DE.prototype.created=function(){vuw(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(KVI);var M=_.AL().resolve(_.pmv);M&&(M.container=this.ytPopupContainerBehavior);if(M=_.AL().resolve(_.ZB))M.container=this.ytPopupContainerBehavior;if(M=_.AL().resolve(_.b4)){var q=this.ytPopupContainerBehavior;M.containerWasInjected?_.j1(Error("qj")):M.container=q}};
DE.prototype.ensurePopupBelowPlayer=function(M,q){var G=_.AL().resolve(_.WR(_.md));if(!G||!G.isOnWatch()||!_.TM())return!1;G=G.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.kU().height>G+this.getPopupHeight(M,q)?(M.style.top="auto",M.style.bottom="0px"):(M.style.top=G+"px",M.style.bottom="auto");return!0};
DE.prototype.getPopupHeight=function(M,q){q&&(M.cachedPopupHeight=0);if(!M.cachedPopupHeight){q=0;var G=M.clientHeight,K=window.getComputedStyle(M);q+=parseInt(K.marginTop,10);q+=parseInt(K.marginBottom,10);M.cachedPopupHeight=G+q}return M.cachedPopupHeight};
DE.prototype.getElement=function(M){return document.createElement(M)};
_.T([_.P(bBP.YtPopupContainerBehavior),_.r("design:type",Object)],DE.prototype,"ytPopupContainerBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],DE.prototype,"ytComponentBehavior",void 0);_.T([_.b({disableElementRegistration:!0,is:"ytd-popup-container"})],DE);
_.z(DE,"ytd-popup-container",function(){if(c6I!==void 0)return c6I;var M=document.createElement("template");_.X(M,"\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");M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);return c6I=M},{mode:1});var sVI;var Mqw={};Mqw.YtLogYpcFlowCommandsBehavior=[_.wg.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(M){_.C(M,tBw)&&(M=_.C(M,tBw))&&(M.serializedTransactionFlowLoggingParams?_.aHw(M.serializedTransactionFlowLoggingParams):M.serializedYpcCancelFlowLoggingParams?(M=M.serializedYpcCancelFlowLoggingParams)&&_.dS("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",M):M.serializedYpcResumeFlowLoggingParams?(M=M.serializedYpcResumeFlowLoggingParams)&&_.dS("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",M):M.serializedYpcPauseFlowLoggingParams?(M=M.serializedYpcPauseFlowLoggingParams)&&
_.dS("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",M):M.serializedYpcRefundFlowLoggingParams?(M=M.serializedYpcRefundFlowLoggingParams)&&Nk5("YPC_EVENT_TYPE_START",M):M.serializedYpcDeactivateFlowLoggingParams?(M=M.serializedYpcDeactivateFlowLoggingParams)&&_.dS("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",M):M.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(M=M.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.dS("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",M))},
handleLogYpcFlowDismiss_:function(M){_.C(M,hlE)&&(M=_.C(M,hlE),M.serializedTransactionFlowLoggingParams?_.ohF(M.serializedTransactionFlowLoggingParams):M.serializedYpcCancelFlowLoggingParams?(M=M.serializedYpcCancelFlowLoggingParams)&&_.dS("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",M):M.serializedYpcResumeFlowLoggingParams?(M=M.serializedYpcResumeFlowLoggingParams)&&_.dS("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",M):M.serializedYpcPauseFlowLoggingParams?(M=
M.serializedYpcPauseFlowLoggingParams)&&_.dS("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",M):M.serializedYpcRefundFlowLoggingParams&&(M=M.serializedYpcRefundFlowLoggingParams)&&Nk5("YPC_EVENT_TYPE_CANCEL",M))}}];var qD5={};qD5.YtCancelRecurrenceBehavior=[_.Sp.YtComponentBehavior,_.frI,{attached:function(){var M=this;$pP(this,function(q,G){return M.ypcCancelRecurrenceHandler(q,G)})},
ypcCancelRecurrenceHandler:function(M,q){var G=this;if(!q||!q.ypcCancelRecurrenceEndpoint)return!1;if(!q.ypcCancelRecurrenceEndpoint.params)return _.eK(Error("Rl")),!0;_.XT(this.hostElement);var K=_.QZ.instance,n=_.AL().resolve(_.WR(_.L_));K&&_.I2(K,q)?_.Dt(K,q).then(function(E){G.ypcCancelRecurrenceSuccess_(M,q,{data:E})},function(E){G.ypcCancelRecurrenceFailure_(M,q,E)}).thenCatch(function(){_.eK(Error("Sl"))}):n?n.requestDataForServiceEndpoint(q).then(function(E){G.ypcCancelRecurrenceSuccess_(M,
q,E)},function(E){G.ypcCancelRecurrenceFailure_(M,q,E)}).thenCatch(function(){_.eK(Error("Sl"))}):_.eK(Error("Tl"));
return!0},
ypcCancelRecurrenceSuccess_:function(M,q,G){_.P3(this.hostElement);G.data||(G={data:G});G.data&&G.data.actions&&_.FH(this.hostElement,G.data.actions,this.hostElement);G.data.messageRenderer?pxM(q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(q=q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.dS("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",q);_.jP(M,"yt-service-request-completed",G)},
ypcCancelRecurrenceFailure_:function(M,q,G){_.P3(this.hostElement);pxM(q.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.jP(M,"yt-service-request-error",{error:G,params:[M,q]})}}];var G0I=function(M,q){_.qD.call(this,q)};
_.l(G0I,Pt5);var K9w={};K9w.YtCompleteTransactionBehavior=[_.Sp.YtComponentBehavior,_.frI,{attached:function(){var M=this;$pP(this,function(q,G){return M.ypcCompleteTransactionHandler(q,G)})},
completeTransaction:function(M,q){var G=this;q={payments_payload:window.btoa(q.integratorData),buybucket_params:M.data.buybucketParams,offer_params:M.data.offerParams};var K=_.AL().resolve(_.L_),n=M.data.completeTransactionEndpoint,E=this.get("ypcCompleteTransactionEndpoint.actions",n);E&&_.FH(this.hostElement,E,this.hostElement);return(E=_.QZ.instance)&&_.I2(E,n)?_.Dt(E,n,q).then(function(p){return!p||(p==null?0:p.error)?(p=G.get("data.serializedTransactionFlowLoggingParams",M),_.Aj(new nq("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
p))):{data:p}}).then(function(p){return G.handleCompleteTransactionSuccess_(p,M)},function(){return G.handleCompleteTransactionFailure_(M)}):K.requestDataForServiceEndpoint(n,q).then(function(p){return G.handleCompleteTransactionSuccess_(p,M)},function(){return G.handleCompleteTransactionFailure_(M)})},
handleCompleteTransactionSuccess_:function(M,q){M.data||(M={data:M});if(M.data.messageRenderer)return _.Aj(new G0I(M.data.messageRenderer));if(M.data.trackingParams){var G=_.Cx(),K=_.wt();G&&K&&_.QQ(G,K,_.yx(M.data.trackingParams))}q=this.get("data.serializedTransactionFlowLoggingParams",q);kMw(q);return _.HF(M)},
handleCompleteTransactionFailure_:function(M){M=this.get("data.serializedTransactionFlowLoggingParams",M);_.ua("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M);return _.Aj(new nq("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",M))},
ypcCompleteTransactionHandler:function(M,q){var G=this;if(!q.ypcCompleteTransactionEndpoint)return!1;if(!q.ypcCompleteTransactionEndpoint.transactionParams)return _.eK(Error("Ul")),!0;q.ypcCompleteTransactionEndpoint&&q.ypcCompleteTransactionEndpoint.gtmData&&_.Qf(q.ypcCompleteTransactionEndpoint.gtmData);var K=_.AL().resolve(_.WR(_.L_));if(K){_.XT(this.hostElement);var n=_.QZ.instance;n&&_.I2(n,q)?_.Dt(n,q).then(function(E){return!E||(E==null?0:E.error)?(E=G.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
q),_.Aj(new nq("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",E))):{data:E}}).then(function(E){_.jP(M,"yt-service-request-completed");
G.ypcCompleteTransactionSuccess_(q,E)},function(){return G.ypcCompleteTransactionFailure_(q)}):K.requestDataForServiceEndpoint(q).then(function(E){_.jP(M,"yt-service-request-completed");
G.ypcCompleteTransactionSuccess_(q,E)},function(){return G.ypcCompleteTransactionFailure_(q)})}return!0},
ypcCompleteTransactionSuccess_:function(M,q){_.P3(this.hostElement);q.data||(q={data:q});_.VW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);q.data.messageRenderer||q.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(M):(_.Qf('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",M));q.data.actions&&(M=gWn(q.data.actions),q=Brv(q.data.actions),M.length&&_.fx(this.hostElement,
M),q.length&&_.FH(this.hostElement,q,this.hostElement))},
ypcCompleteTransactionFailure_:function(M){_.P3(this.hostElement);_.VW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",M,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(M,q,G){if(q=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",q))q={serializedTransactionFlowLoggingParams:q},G&&(q.errorType=G),_.ml(M,q),_.S1()}}];var nB8={};nB8.YtEndpointHandlerWithYpcBehavior=[_.frI,_.wg.YtActionHandlerBehavior,[{openWalletDialog:function(M,q,G,K,n,E,p){var y=this,Y=_.u8();q=q.replace(/-/g,"+").replace(/_/g,"/");var A=_.El().get("hl");_.xHu(_.Uz(_.JK),q,Y.resolve,n,function(v){E&&E();Y.reject(v)},A,function(v){return y.onServerBackendAnalyticEvent_(M,G,v)},this.onDialogClose_.bind(this),K,p);
return Y.promise},
openFixFlowDialog:function(M,q,G,K){M=M.replace(/-/g,"+").replace(/_/g,"/");_.Uz(_.JK).openFixFlowDialog(M,q,G,K)},
onDialogClose_:function(){_.VW(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(M,q,G){_.jP(M,"yt-commerce-action-init-done");q&&_.fx(this.hostElement,[q,{backend_analytics:G}])}}],
_.vf.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(M,q){M=this.get("data.nativeFlowEndpoint",q);q=this.get("data.fallbackEndpoint",q);M?_.fx(this.hostElement,[M]):q&&_.jP(this.hostElement,"yt-navigate",{endpoint:q})}}],
qD5.YtCancelRecurrenceBehavior,K9w.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 M=this;$pP(this,function(q,G,K){return M.handleYPCEndpoint(q,G,K)});
this.ypcRegisterActionMapJobId_=_.Jp(_.r8,function(){M.registerActionMap(M.buyFlowActionMap_)})},
detached:function(){var M=this;_.r8.cancelJob(this.ypcRegisterActionMapJobId_);_.Jp(_.r8,function(){M.unregisterActionMap(M.buyFlowActionMap_)})},
handleYPCEndpoint:function(M,q,G){var K=q.ypcGetCartEndpoint;if(K){_.aJ("commerce_transaction");var n=K.gtmId;n&&_.Bz(n);(K=K.gtmData)&&_.Qf(K)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",q)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(M,q),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",q)!=null?(this.handleYPCFixInstrumentEndpoint_(M,q),!0):q.ypcPauseSubscriptionCommand?(V$I(this.hostElement,M,q,G),
!0):q.ypcResumeSubscriptionCommand?(F6v(this.hostElement,M,q),!0):q.getPaymentInstrumentsParamsCommand?(TlE(this.hostElement,M,q),!0):q.ypcHandleTransactionEndpoint?(mnv(this.hostElement,M,q,G),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(M,q){var G=this;_.oJ("ttcr",void 0,"commerce_transaction");q=q.ypcGetCartEndpoint;var K=q.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,n=K.encryptedPurchaseParams,E=K.serializedTransactionFlowLoggingParams,p=K.serializedPaymentsClientParams,y=this.createGetCartResponseFromParams_(K,q.offerParams,E);this.changeButtonState(M,!0);_.l2(this.openWalletDialog(M,n,K.ypcLogWalletAnalyticDataEndpoint,E,function(){G.changeButtonState(M,!1)},function(){G.changeButtonState(M,
!1)},p).then(function(Y){return G.handleBuyFlowCompleteCallback_(M,y,Y)},function(){return G.handleOnLoadError(y)}).then(function(Y){return void G.handlePostPurchaseSuccess_(M,y,Y)},function(Y){return void G.handlePostPurchaseError_(Y)}),function(){G.changeButtonState(M,!1);
M instanceof Element&&_.jP(M,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(M,q,G){var K=M.completeTransactionEndpoint,n=M.handleTransactionEndpoint;q={data:{offerParams:window.btoa(q),serializedTransactionFlowLoggingParams:G}};n?q.data.handleTransactionEndpoint=n:q.data.completeTransactionEndpoint=K;M.onCartDismissCommand&&(q.data.onCartDismissCommand=M.onCartDismissCommand);return q},
onGetCartServiceRequestCompleted_:function(M,q){var G=this,K=M.target;if(q&&q.data&&q.data.messageRenderer)_.P3(this.hostElement),this.handleMessageRenderer_(q.data.messageRenderer),this.changeButtonState(K,!1);else{var n=this.get("data.encryptedPurchaseParams",q),E=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",q),p=this.get("data.ypcLogWalletAnalyticDataEndpoint",q),y=this.get("data.serializedPaymentsClientParams",q),Y=this.getLoggingParams_(q);if(Y||n||E)M.stopPropagation(),_.oJ("ttcr",
void 0,"commerce_transaction"),n||_.P3(this.hostElement),this.changeButtonState(K,!1),E?_.VW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.R9("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:E}}},this]):n&&(this.changeButtonState(K,!0),M=null,M=this.openWalletDialog(K,n,p,Y,function(){_.P3(G.hostElement);G.changeButtonState(K,!1)},function(){_.P3(G.hostElement);
G.changeButtonState(K,!1)},y),_.l2(M.then(function(A){return G.handleBuyFlowCompleteCallback_(K,q,A)},function(){return G.handleOnLoadError(q)}).then(function(A){return G.handlePostPurchaseSuccess_(K,q,A)},function(A){return G.handlePostPurchaseError_(A)}),function(){G.changeButtonState(K,!1);
_.jP(K,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(M,q){q&&q.endpoint&&q.endpoint.ypcGetCartEndpoint&&!q.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",q.endpoint.ypcGetCartEndpoint)&&_.FH(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",q.endpoint.ypcGetCartEndpoint)],M.target),_.XT(this.hostElement),this.changeButtonState(M.target,!0))},
onServiceRequestError_:function(M,q){if(q&&q.params&&q.params.length){q=_.k(q.params);for(var G=q.next();!G.done;G=q.next())if((G=G.value)&&G.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",G.ypcGetCartEndpoint)&&_.FH(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",G.ypcGetCartEndpoint)],M.target);_.P3(this.hostElement);this.changeButtonState(M.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(M,q,G){var K=G.integratorData;return K==null||K===""||G.error!=null?(K=this.getLoggingParams_(q),String(G.error)==="-1"?(q.data.onCartDismissCommand&&_.FH(this.hostElement,[q.data.onCartDismissCommand],M),_.Aj(new nq("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",K,!0))):_.Aj(new nq("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",K))):q.data.handleTransactionEndpoint?SvI(this.hostElement,q.data.handleTransactionEndpoint,{payments_payload:K,funds_guarantee_callback_client_data:G.integratorClientCallbackData}):
this.completeTransaction(q,G)},
handlePostPurchaseSuccess_:function(M,q,G){q=G.data;var K=!1,n,E;if(q&&((n=q.command)==null?0:(E=n.commandExecutorCommand)==null?0:E.commands)){var p,y;n=(p=q.command)==null?void 0:(y=p.commandExecutorCommand)==null?void 0:y.commands;for(p=0;p<n.length;p++)if(_.C(n[p],_.FFx)){K=!0;break}}K||(q&&q.gtmDatas&&q.gtmDatas.length?_.Qf(q.gtmDatas[0]):_.Qf('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));G.data&&G.data.actions&&(q=gWn(G.data.actions),G=Brv(G.data.actions),q.length&&
_.fx(this.hostElement,q),G.length&&_.FH(this.hostElement,G,M))},
handlePostPurchaseError_:function(M){M&&M.payload&&M.payload.isUserDismiss||_.T6(Error("Wl"))},
handleOnLoadError:function(M){M=this.getLoggingParams_(M);return _.Aj(new nq("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",M))},
getLoggingParams_:function(M){return this.get("data.serializedTransactionFlowLoggingParams",M)},
handleMessageRenderer_:function(M){var q=_.rU(M,"renderer"),G=_.R9("openPopupConfig");q==="confirmDialogRenderer"&&G&&_.VW(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:G.popupTypeMap[q],popup:M}},this])},
handleYPCFixInstrumentEndpoint_:function(M,q){var G=this,K=q.ypcFixInstrumentEndpoint;q=K.encryptedFixInstrumentParameters;this.logFixFopEvent_(K,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(M,!0);this.openFixFlowDialog(q,function(n,E){G.onFixFlowCompleteCallback_(K,n,E)},function(){return G.changeButtonState(M,!1)},function(){G.changeButtonState(M,!1);
G.logFixFopEvent_(K,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(M,q,G){var K=_.sx("payments.business.integration.scenario.FixInstrument");if(q==K.IntegratorCallbackType.ON_COMPLETE){q="FIX_FOP_EVENT_TYPE_CANCEL";var n=null;G.error!=null?G.error!=K.OnCompleteCallbackError.USER_CANCELLED&&(_.FH(this.hostElement,[M.errorAction],this.hostElement),q="FIX_FOP_EVENT_TYPE_FAILURE",n="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.FH(this.hostElement,[M.successAction],this.hostElement),q="FIX_FOP_EVENT_TYPE_SUCCESS");_.FH(this.hostElement,[M.onFinishAction],
this.hostElement);this.logFixFopEvent_(M,q,n)}},
logFixFopEvent_:function(M,q,G){(M=M.serializedFixFopLoggingParams)?(q={eventType:q,serializedFixFopLoggingParams:M},G!=null&&(q.errorType=G),_.ml("fixFopFlow",q),_.S1()):_.T6(Error("Xl"))},
changeButtonState:function(M,q){_.w("enable_ypc_spinners")&&M&&(M.is==="yt-button-renderer"||M.is==="ytd-button-renderer")&&(M.disabled=q)}}];var EB8=function(M){this.JSC$32708_clientRoot=M;this.feedbackCollectorActionMap={"yt-help-dialog-requested":eWL,"yt-feedback-dialog-requested":Hus,"yt-signal-action-help":$ns,"yt-signal-action-send-feedback":s5R,"yt-send-feedback-action":qBE,"yt-user-feedback-endpoint":G$I};_.KI(_.GC.getInstance(),this.feedbackCollectorActionMap,this.JSC$32708_clientRoot)},NOg;var k0I=function(M){this.JSC$32713_clientRoot=M;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":KEv.bind(null,this.JSC$32713_clientRoot),"yt-signal-action-delete-all-downloads":EEI,"yt-signal-action-delete-download":NBv,"yt-signal-action-delete-playlist-download":pp5,"yt-signal-action-install-pwa":deP,"yt-signal-action-refresh-downloads":WEM,"yt-offline-video-endpoint":hKw,"yt-offline-playlist-endpoint":OeM,"yt-update-local-app-setting-command":CoE,"yt-offline-orchestration-action-command":oEE,
"yt-signal-action-undo-delete-download":LEw,"yt-local-watch-history-command":Pov};_.KI(_.GC.getInstance(),this.downloadManagerActionMap,this.JSC$32713_clientRoot);_.BE.instance=new _.BE},paw;var u7=function(){var M=_.Q.apply(this,arguments)||this;M.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_"};M.remoteApi_=null;return M};
_.l(u7,_.Q);_.N=u7.prototype;
_.N.ready=function(){_.w("polymer_enable_mdx")&&(kOM({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.w("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.w("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.w("enable_cast_short_lived_lounge_token")}),_.tp("yt-remote-connection-change",this.handleConnectionChange_,this),_.tp("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=vWU())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.N.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.N.handleConnectionChange_=function(M){(this.mdxConnected=M)?(M=LiR(),!M&&f$w()&&FGP()&&(M={key:"cast-selector-receiver",name:FGP()}),M=M.name):M=null;this.receiverName=M;_.ka(this.remoteApi_);(this.remoteApi_=vWU())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.N.handleReceiverAvailabilityChange_=function(){var M=yM5();f$w()&&_.d2("yt-remote-cast-available")&&M.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=M.length>0};
_.N.handleRemoteQueueChange_=function(){var M=this.currentVideoId_,q=this.currentListId_,G=JN(this.remoteApi_);this.currentVideoId_=G.videoId;this.currentListId_=G.listId;this.currentVideoId_&&_.VW(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.w("polymer_enable_mdx_queue")?this.currentListId_:null,M,q])};
_.N.handleAddToQueueAction_=function(M){M=_.C(M,MBL);this.remoteApi_&&(M.videoId?this.remoteApi_.addVideo(M.videoId):M.playlistId&&this.remoteApi_.addPlaylist(M.playlistId))};
_.N.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.N.handleInsertInQueueAction_=function(M){M=_.C(M,qGR);this.remoteApi_&&M.videoId&&this.remoteApi_.JSC$20093_insertVideo(M.videoId)};
_.N.handleRemoveFromQueueAction_=function(M){M=_.C(M,G45);this.remoteApi_&&M.videoId&&this.remoteApi_.JSC$20093_removeVideo(M.videoId)};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],u7.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B(),_.r("design:type",Object)],u7.prototype,"appId",void 0);_.T([_.B(),_.r("design:type",Boolean)],u7.prototype,"mdxConnected",void 0);_.T([_.B(),_.r("design:type",Boolean)],u7.prototype,"receiverAvailable",void 0);_.T([_.B(),_.r("design:type",Object)],u7.prototype,"receiverName",void 0);_.T([_.B(),_.r("design:type",Object)],u7.prototype,"currentVideoId_",void 0);
_.T([_.B(),_.r("design:type",Object)],u7.prototype,"currentListId_",void 0);_.T([_.aO({is:"yt-mdx-manager",disableElementRegistration:!0})],u7);_.z(u7,"yt-mdx-manager",void 0,{mode:2});var yG8;var L9P;var Jm=function(){var M=_.Q.apply(this,arguments)||this;M.APP_IDS={ytr:3,ytm:5};M.JSC$21322_timeoutId_=0;M.actionMap={"yt-open-create-family-dialog":"open"};return M};
_.l(Jm,_.Q);_.N=Jm.prototype;_.N.created=function(){vuw(2200)};
_.N.detached=function(){this.observer_&&this.observer_.disconnect()};
_.N.open=function(M,q){var G=this,K=M.serializedYpcFamilyCreateLoggingParams;this.JSC$21322_timeoutId_=setTimeout(this.abort_.bind(this,M.postFlowErrorEndpoint,K),3E4);q&&(this.onReadyCallback_=q);var n=_.f_(this.hostElement).querySelector("#unicorn-iframe");K&&K&&EmP("ypcFamilyCreateFlowStarted",K);_.Kzy("family_creation",function(){var E=_.sx("gapi.family_creation.render");_.sx("gapi.config.update")("iframes/family_creation/url",G.getFamilyCreationUrlWithUnicornParams_());var p=3;M.appId&&M.appId in
G.APP_IDS&&(p=G.APP_IDS[M.appId]);p={authUser:_.R9("SESSION_INDEX")||0,clientId:p,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.R9("HL"),initialflow:[4,5,6,7],m:G.isMobile?1:0,onFlowComplete:G.onUnicornFlowComplete_.bind(G,M.postFlowSuccessEndpoint,K),onError:G.onUnicornFlowError_.bind(G,M.postFlowErrorEndpoint,K),onReady:G.onUnicornFlowReady_.bind(G,M.referencePcidParams)};E(n,p)})};
_.N.close=function(){_.f_(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.N.onUnicornFlowComplete_=function(M,q){this.close();q&&q&&EmP("ypcFamilyCreateFlowSucceeded",q);_.jP(this.hostElement,"yt-navigate",{endpoint:M})};
_.N.onUnicornFlowError_=function(M,q){this.close();q&&EmP("ypcFamilyCreateFlowCancelled",q);_.jP(this.hostElement,"yt-navigate",{endpoint:M})};
_.N.onUnicornFlowReady_=function(M){var q=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();M&&_.sx("gapi.family_creation.setConfig")(0,M);this.observer_=new MutationObserver(function(){_.f_(q.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.f_(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.f_(this.hostElement).querySelector("#dialog").open()};
_.N.getFamilyCreationUrlWithUnicornParams_=function(){return _.R9("YTR_FAMILY_CREATION_URL")};
_.N.getCurrentUrl_=function(){return document.location.href};
_.N.abort_=function(M,q){this.clearTimeout_();this.onUnicornFlowError_(M,q)};
_.N.clearTimeout_=function(){clearTimeout(this.JSC$21322_timeoutId_)};
_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],Jm.prototype,"ytActionHandlerBehavior",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],Jm.prototype,"isMobile",void 0);_.T([_.B(),_.r("design:type",Object)],Jm.prototype,"onReadyCallback_",void 0);_.T([_.B(),_.r("design:type",Object)],Jm.prototype,"observer_",void 0);_.T([_.aO({is:"yt-create-family-dialog",disableElementRegistration:!0})],Jm);
_.z(Jm,"yt-create-family-dialog",function(){if(L9P===void 0){var M=document.createElement("template");_.X(M,'\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');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);var q=M.content,G=q.insertBefore;yG8===void 0&&(yG8=document.createElement("template"));var K=yG8;G.call(q,K.content.cloneNode(!0),M.content.firstChild);L9P=M}M=L9P;return M},{mode:2});var YDI;var W9I;var ZE=function(){var M=_.Q.apply(this,arguments)||this;M.STEP=1;M.BLOCK_ON=80;M.MIN_PROGESS=0;M.MAX_PROGESS=100;return M};
_.l(ZE,_.Q);_.N=ZE.prototype;_.N.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.N.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));_.AL().addProvider({provide:mjn,useValue:this})};
_.N.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.N.finish=function(){var M=this;this.progress=this.MAX_PROGESS;ieM(function(){M.progress==M.MAX_PROGESS&&(M.hostElement.hidden=!0)})};
_.N.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Yd.Object.defineProperties(ZE.prototype,{progress:{configurable:!0,enumerable:!0,set:function(M){this.progress_=M;var q="scaleX("+M/this.MAX_PROGESS+")",G=_.f_(this.hostElement).querySelector("#progress").style;G.transform=q;G.webkitTransform=q;this.hostElement.setAttribute("aria-valuenow",String(M))},
get:function(){return this.progress_}}});
_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],ZE.prototype,"ytComponentBehavior",void 0);_.T([_.aO({is:"yt-page-navigation-progress",disableElementRegistration:!0})],ZE);
_.z(ZE,"yt-page-navigation-progress",function(){if(W9I===void 0){var M=document.createElement("template");_.X(M,'\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');M.content.insertBefore(_.f().content.cloneNode(!0),
M.content.firstChild);var q=M.content,G=q.insertBefore;YDI===void 0&&(YDI=document.createElement("template"));var K=YDI;G.call(q,K.content.cloneNode(!0),M.content.firstChild);W9I=M}M=W9I;return M},{mode:2});var AGv={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"},dGn={"font-size":"12px","font-style":"italic"},vBg={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.Q5w=function(){return _.L(function(M){_.gL(M)})};var hjn=_.U(function(M){var q=function(){return M.data().subtext},G={};
return _.W("snackbar-view-model",{class:_.Hb("snackbarViewModelHost",M.className)},_.W("div",{class:_.Hb("snackbarViewModelEngagementBarWrapper",M.className)},_.W(_.d,{cond:function(){return M.data().image},
then:function(K){return _.W(_.Jj,{data:K,alt:"",targetWidth:86,preserveWidth:!0,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",className:"snackbarViewModelImageContainer"})}}),_.W(_.d,{cond:function(){return M.data().imageContent},
then:function(){return _.W("div",{class:"snackbarViewModelAvatarContainer"},_.W(_.yu,{data:function(){return M.data().imageContent}},{decoratedAvatarViewModel:_.mF}))}}),_.W("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.W("div",{class:_.Hb((G.snackbarViewModelTitle=!0,G.snackbarViewModelTitleWithSubtext=q,G))},_.W(_.Ft,{text:function(){return M.data().text}})),_.W(_.d,{cond:q,
then:function(){return _.W("div",{class:"snackbarViewModelSubtext"},_.W(_.Ft,{text:function(){return q()}}))}})),_.W(_.d,{cond:function(){return M.data().buttons},
then:function(){return _.W("div",{class:"snackbarViewModelButtonClassWrapper"},_.W(_.yu,{data:function(){return M.data().buttons}},{buttonViewModel:function(K){return _.W(_.Wf,{data:K.data,
buttonOverrides:function(){return{style:"mono-inverse"}},
target:M.target})}}))}})))},"fk");_.S5(_.U(function(){function M(Z,V,S){a(Z);D(S);t("in");v(!0);q(Z,V);p=setTimeout(function(){G()},V)}
function q(Z,V){var S,m=(S=Z.text)==null?void 0:S.content;Z=_.O0(Z.rendererContext);m&&(V={label:m,command:Z,durationMs:V},_.AL().resolve(_.sJ).enqueue(V))}
function G(Z){t("out");Z&&clearTimeout(p)}
function K(){G(!0)}
function n(Z){if(Z){var V=Z.snackbarViewModel,S=Z.durationMs,m=Z.target;S||(S=3E3);V&&(Z=_.AL().resolve(_.WR(_.fm)))&&Z.enqueue({isOpened:A,open:function(){M(V,S,m)},
close:G},0)}}
var E=_.yw("snackbar-container"),p=void 0,y=_.k(_.lQ(!1,void 0,"mDc5N")),Y=y.next().value;y=y.next().value;var A=Y,v=y;Y=_.k(_.lQ("out",void 0,"FpOs5e"));var h=Y.next().value,t=Y.next().value;Y=_.k(_.lQ(void 0,void 0,"jIDRob"));var O=Y.next().value,a=Y.next().value;Y=_.k(_.lQ(void 0,void 0,"kOA3Mb"));var g=Y.next().value,D=Y.next().value,J=_.sq(function(){if(h()==="out"){v(!1);a(void 0);D(void 0);var Z=_.AL().resolve(_.WR(_.fm));Z&&cqP(Z,0)}});
_.SK(function(){var Z=_.AL().resolve(_.WR(_.pcw));Z&&(Z.showSnackbarFn=n,Z.closeSnackbarFn=K)});
return _.W("snackbar-container",{class:"ytSnackbarContainerHost",el:E},_.W(_.d,{cond:function(){return A()&&!!O()},
then:function(){var Z={};return _.W("div",{class:_.Hb("ytSnackbarContainerSnackbarContainer",(Z.ytSnackbarContainerMobile=!1,Z.ytSnackbarContainerPivotBar=function(){var V;return!((V=_.AL().resolve(_.WR(_.ygL)))==null||!V())},Z.ytSnackbarContainerOpened=function(){return A()&&h()==="in"},Z.ytSnackbarContainerClosed=function(){return A()&&h()==="out"},Z)),
"on:animationend":J},_.W(hjn,{data:function(){return O()},
target:function(){return g()}}))}}))},"gk"),"snackbar-container");_.S5(_.rI8,"yt-tooltip");var tqn=_.RkI.ephemeralActionSelector;_.S5(_.U(function(){var M=_.pp(tqn);return _.W("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var q;return(q=M())==null?void 0:q.announcement})},"hk"),"yt-ephemeral-actions");var FEI=new Map;var zUv=function(M,q){var G=this;this.handleError=M;this.logEventInternal=q;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){G.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
zUv.prototype.logError=function(M){this.handleError(M)};
zUv.prototype.logEvent=function(M,q){switch(M){case "IDB_DATA_CORRUPTED":_.w("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",q);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",q);break;case "IS_SUPPORTED_COMPLETED":_.w("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",q);break;case "QUOTA_EXCEEDED":OHL(this,q);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",q);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":M=Object.assign({},q,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",M)}};
var OHL=function(M,q){_.q2.getInstance().estimate().then(function(G){G=Object.assign({},q,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:eKw(G==null?void 0:G.usage),deviceStorageQuotaMbytes:eKw(G==null?void 0:G.quota)});M.logEventInternal("idbQuotaExceeded",G)})};var wa5=_.U(function(M){var q=_.pI("yt-draggable"),G=M.onDrag,K=M.onDragStart,n=M.onDragEnd,E=_.UT(M,{allowClicks:!1,dragThreshold:5}),p=E.dragThreshold,y=E.allowClicks;M=E.children;E=E.className;var Y=void 0,A=void 0,v=new _.mK(0,0),h=!1;_.SK(function(){Y=new _.Jq(q.value);A=new _.dh(O);t(Y,A);if(y()){_.iYv(Y,p());var g;(g=q.value)==null||g.addEventListener("click",a,{capture:!0})}_.m_(function(){var D;(D=Y)==null||D.dispose();if(y()){var J;(J=q.value)==null||J.removeEventListener("click",a,{capture:!0})}})});
var t=function(g,D){_.Yj(g,"earlycancel",function(){y()&&(h=!1)});
_.Yj(g,"start",function(J){K==null||K(J);J.defaultPrevented||y()&&(h=!0)});
_.Yj(g,"beforedrag",function(J){Y&&A&&(J.preventDefault(),v=new _.mK(J.clientX-Y.startX,J.clientY-Y.startY),A.start())});
_.Yj(g,"end",function(){D.stop();n==null||n();v=new _.mK(0,0)})},O=function(){v&&G(v)},a=function(g){h&&(h=!1,g.stopPropagation(),g.preventDefault())};
return _.W("yt-draggable",{el:q,class:_.Hb("ytDraggableComponentHost",E)},M)},"ik");var CLM=_.U(function(M){var q=_.k(_.lQ(0,void 0,"Qf0tbc")),G=q.next().value,K=q.next().value;q=function(n){var E={},p={};return _.W(wa5,{className:_.Hb("ytdMiniplayerComponentResizer",(E.ytdMiniplayerComponentResizerDisabled=function(){return n===M.horizontalAlignment()||n===M.verticalAlignment()},E.ytdMiniplayerComponentResizerNorth=n==="north",E.ytdMiniplayerComponentResizerEast=n==="east",E.ytdMiniplayerComponentResizerSouth=n==="south",E.ytdMiniplayerComponentResizerWest=n==="west",E)),
onDragStart:function(){K(M.currentMiniplayerSize());if(M.onResizeStart)M.onResizeStart()},
onDrag:function(y){n!=="north"&&n!=="west"||y.scale(-1);var Y;y=(Y=n==="north"||n==="south")?y.y:y.x;var A=M.currentAspectRatio();Y&&A>=1?y*=A:!Y&&A<1&&(y/=A);Y=y;M.onResize(G()+Y)}},_.W("div",{class:_.Hb("ytdMiniplayerComponentResizerCorner",(p.ytdMiniplayerComponentResizerNorthCorner=n==="north",p.ytdMiniplayerComponentResizerEastCorner=n==="east",p.ytdMiniplayerComponentResizerSouthCorner=n==="south",p.ytdMiniplayerComponentResizerWestCorner=n==="west",p))}))};
return _.W("div",{class:"ytdMiniplayerComponentResizers"},q("north"),q("east"),q("south"),q("west"))},"jk");var anM=16/9;_.S5(_.U(function(){var M=_.pI("ytd-miniplayer"),q=_.k(_.lQ(new _.cc(NaN,NaN),void 0,"NHaFyc")),G=q.next().value,K=q.next().value;q=_.k(_.lQ(!1,void 0,"a0rwG"));var n=q.next().value,E=q.next().value;q=_.k(_.lQ(!1,void 0,"f1jSeb"));var p=q.next().value,y=q.next().value;q=_.k(_.lQ(!1,void 0,"JojXKc"));var Y=q.next().value,A=q.next().value;q=_.k(_.lQ(!1,void 0,"FjS8Db"));var v=q.next().value,h=q.next().value;q=_.k(_.lQ(!1,void 0,"z5WG9e"));var t=q.next().value,O=q.next().value;q=_.k(_.lQ(!1,void 0,"eUzZd"));
var a=q.next().value,g=q.next().value;q=_.k(_.lQ(anM,void 0,"XsBIy"));var D=q.next().value,J=q.next().value,Z=_.k(_.lQ(!1,void 0,"FJSvse"));q=Z.next().value;var V=Z.next().value;Z=_.k(_.lQ(!1,void 0,"VDUFL"));var S=Z.next().value,m=Z.next().value;Z=_.k(_.lQ(void 0,void 0,"nFeh4b"));var R=Z.next().value,se=Z.next().value;Z=_.k(_.lQ(Lq()?"west":"east",void 0,"T7co7c"));var yY=Z.next().value,d$=Z.next().value;Z=_.k(_.lQ("south",void 0,"QDUsLb"));var cy=Z.next().value,t4=Z.next().value;Z=_.k(_.lQ(400,
void 0,"F7Vdze"));var ay=Z.next().value,bH=Z.next().value,iH=_.AL().resolve(_.lq).miniplayerPropSignalMap[0],oI=iH.data,r9=iH.externalPlaylistData;Z=iH.toastData;var X2=iH.playabilityStatus,EM=iH.isReadyToResume,LP=iH.isDisabled,Pv=iH.watchWhile,g9=iH.playerVe,a8=iH.expandVe,tE=iH.closeVe,ND=iH.readyToResumeVe,Mx=iH.readyToResumeCloseVe,hd=iH.repositionVe,Kn=iH.resizeVe;iH=_.k(_.GM(EM));var w9=iH.next().value,Gs=iH.next().value,u5=_.pp(_.gx.persistentPanelVisibleSelector),jJ=!1,Ad=!1,Wv;_.SK(function(){K(_.kU());
M.value.addEventListener("animationend",function(fP){fP.target===M.value&&(O(!1),g(!1))});
KPL(M.value)});
_.kI("yt-window-resized",function(fP){fP&&K(fP)});
var qM=function(){Wv&&J(Wv.getVideoAspectRatio())},Ry=function(){if(Wv){var fP=Wv.getPlayerState()===1;
w9()&&fP&&Gs(!1)}},OM=function(){var fP=a8();
if(fP){var Xv=_.Cx(3);Xv&&_.Z_(Xv,fP)}},OL=function(){var fP=tE(),Xv=Mx();
fP&&_.Z_(_.Cx(3),fP);EM()&&Xv&&_.Z_(_.Cx(3),Xv)};
_.kI("yt-activate-miniplayer",function(fP){var Xv;return _.L(function(NM){if(NM.nextAddress==1)return n()?NM.return():NM.yield((Xv=_.AL().resolve(_.lq).getPlayerElement())==null?void 0:Xv.getPlayerPromise(),2);Wv=NM.yieldResult;if(!Wv)return NM.return();!S()&&_.w("kevlar_watch_while_v2")&&(t4(fP&&!_.w("kevlar_watch_while_bottom_align")?"north":"south"),d$(Lq()?"west":"east"));var pS=Wv;pS.addEventListener("onVideoDataChange",qM);pS.addEventListener("onStateChange",Ry);pS.addEventListener("onExpandMiniplayer",
OM);pS.addEventListener("onCloseMiniplayer",OL);J(Wv.getVideoAspectRatio());E(!0);GZP()||O(!0);_.gL(NM)})});
_.kI("yt-deactivate-miniplayer",function(fP,Xv){return _.L(function(NM){if(!n())return NM.return();E(!1);Gs(!1);g(fP);h(!1);y(!1);if(Wv){var pS=Wv;pS.removeEventListener("onVideoDataChange",qM);pS.removeEventListener("onStateChange",Ry);pS.removeEventListener("onExpandMiniplayer",OM);pS.removeEventListener("onCloseMiniplayer",OL)}GZP()||Xv?Xv&&O(!1):O(!0);_.gL(NM)})});
var fG=function(){return!(Pv()&&_.w("kevlar_watch_while_modern"))},BI=function(){var fP;
return!((fP=r9())==null||!fP.contents)},mw=function(){var fP=ay();
var Xv=G();Xv=Math.min(Math.min(Xv.width,Xv.height)-32,720);var NM=D(),pS=fG(),$q=BI()&&p(),My=Math.min(fP,Xv);fP=new _.cc(192,pS?116:192);NM=new _.cc($q?anM:NM,1);My=new _.cc(My,pS?My-76:My);My=NM.aspectRatio()>My.aspectRatio()?My.width/NM.width:My.height/NM.height;NM=NM.scale(My);fP.width<=NM.width&&fP.height<=NM.height||(fP=NM.aspectRatio()<=fP.aspectRatio()?fP.width/NM.width:fP.height/NM.height,NM.scale(fP),NM.width=Math.min(NM.width,Xv),NM.height=Math.min(NM.height,Xv));return new _.cc(NM.width,
_.wr(192,NM.height+kZI(pS,$q),720))},e1=function(){var fP=mw(),Xv=fG(),NM=BI()&&p();
return new _.cc(fP.width,fP.height-kZI(Xv,NM))},p8=function(){var fP=function(Xv){Xv.target===M.value&&v()&&(h(!1),M.value.removeEventListener("transitionend",fP))};
GZP()||(M.value.addEventListener("transitionend",fP),h(!0));y(!p())};
_.zL(function(){var fP=g9(),Xv=_.Cx(3),NM=_.wt(3);if(Xv&&NM&&fP){_.QQ(Xv,NM,fP);NM=hd();var pS=Kn(),$q=a8(),My=tE(),Ox=Mx();$q&&My&&Ox&&(_.IJ(Xv,fP,[$q,My,Ox]),_.uO(Xv,[$q,My]));NM&&pS&&_.IJ(Xv,fP,[NM,pS])}},"UBpUDd");
_.zL(function(){var fP=ND();if(fP){var Xv=_.Cx(0),NM=_.wt(0);Xv&&NM&&(_.QQ(Xv,NM,fP),_.uO(Xv,[fP]))}},"fQpBzb");
iH={};return _.W("ytd-miniplayer",{el:M,class:_.Hb("ytdMiniplayerComponentHost",(iH.ytdMiniplayerComponentVisible=function(){return(n()||t())&&!(Pv()&&_.w("kevlar_watch_while_counterfactual"))},iH.ytdMiniplayerComponentAnimatingSnap=Y,iH.ytdMiniplayerComponentAnimatingPlaylistExpand=v,iH.ytdMiniplayerComponentAnimatingFade=t,iH),function(){if(t()){var fP=cy();
var Xv=n(),NM=a();fP=Xv?fP==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":NM?fP==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":fP==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else fP="";return fP}),
style:_.Kp({top:function(){return cy()==="north"?"16px":""},
right:function(){var fP=yY(),Xv=u5();Xv=(Xv===void 0?0:Xv)&&!Lq()?400:0;return fP==="east"?16+Xv+"px":""},
bottom:function(){return cy()==="south"?"16px":""},
left:function(){var fP=yY(),Xv=u5();Xv=(Xv===void 0?0:Xv)&&Lq()?400:0;return fP==="west"?16+Xv+"px":""},
width:function(){return mw().width+"px"},
height:function(){return mw().height+"px"},
transform:function(){var fP=R();return fP?"translate("+fP.x+"px, "+fP.y+"px)":""}})},_.W("div",{class:"ytdMiniplayerComponentContent"},_.W(wa5,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(fP){var Xv=N6L(yY(),cy(),G(),mw(),R()),NM=e1();Math.abs(fP.clientY-(Xv.y+NM.height))>15?(V(!0),fP=_.Cx(3),Xv=hd(),jJ||(jJ=!0,fP&&Xv&&_.uO(fP,[Xv])),fP&&Xv&&_.Z_(fP,Xv)):fP.preventDefault()},
onDrag:function(fP){se(fP)},
onDragEnd:function(){var fP=nuU(N6L(yY(),cy(),G(),mw(),R()),G(),mw()),Xv=Eun(yY(),cy(),G(),mw(),u5()),NM=Eun(fP.horizontalAlignment,fP.verticalAlignment,G(),mw(),u5());NM=new _.mK(NM.x-Xv.x,NM.y-Xv.y);var pS;Xv=Xv.y+(((pS=R())==null?void 0:pS.y)||0)+mw().height/2;var $q=function(){yY()===fP.horizontalAlignment&&cy()===fP.verticalAlignment||m(!0);d$(fP.horizontalAlignment);t4(fP.verticalAlignment);se(void 0)},My=function(Ox){Ox.target===M.value&&Y()&&(A(!1),$q(),M.value.removeEventListener("transitionend",
My))};
V(!1);cy()==="south"&&Xv>G().height?($q(),_.AL().resolve(_.lq).close()):(M.value.addEventListener("transitionend",My),A(!0),se(NM))}},_.W(_.d,{cond:n,
then:function(){return _.W(_.R9n,{isDisabled:LP,playabilityStatus:X2,size:e1})}}),_.W(_.d,{cond:fG,
then:function(){return _.W(_.ju5,{isReadyToResume:w9,data:oI,expanded:p,onExpandClick:p8,playlistData:r9})}}),_.W(_.d,{cond:q,
then:function(){return _.W("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.W(_.d,{cond:function(){return BI()&&p()||v()},
then:function(){return _.W(_.y9n,{className:"ytdMiniplayerComponentPlaylistPanel",data:r9,hideHeaderText:!0,withinMiniplayer:!0})}}),_.W("div",{class:"ytdMiniplayerComponentToast"},_.W(_.ffR,{toastData:Z}))),_.W(CLM,{onResize:function(fP){bH(_.wr(192,fP,720))},
onResizeStart:function(){var fP=_.Cx(3),Xv=Kn();Ad||(Ad=!0,fP&&Xv&&_.uO(fP,[Xv]));fP&&Xv&&_.Z_(fP,Xv)},
currentAspectRatio:D,currentMiniplayerSize:ay,horizontalAlignment:yY,verticalAlignment:cy}))},"mk"),"ytd-miniplayer",{});var oBw=_.gx.persistentPanelVisibleSelector,b7=function(){var M=_.Q.apply(this,arguments)||this;M.tabGesturesIsActive=!1;M.persistentPanelEnabled=_.w("enable_ai_companion");M.hasDelegation=!1;M.isFrostedGlassInitialized=!1;M.frostedGlassExp=_.w("web_frosted_glass");M.hasPendingWatchNavigation=!1;M.mastheadHiddenFocusWithinKillswitch=_.w("web_masthead_hidden_focus_within_killswitch");M.clientOnlyWizTooltipsEnabled=_.w("enable_client_only_wiz_tooltips")&&HTMLElement.prototype.hasOwnProperty("popover");
M.scrollAtTop=!0;M.guideScrollTop=0;M.isTheaterModeSession=_.fX("START_IN_THEATER_MODE");M.iMaxTheaterMode=_.w("web_watch_imax_theater_mode");M.isFullWindowSession=_.fX("START_IN_FULL_WINDOW_MODE");M.hasCreateFamilyDialog=!1;M.mastheadHeight=56;M.networkStatusManager=new _.G6;M.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"};M.dynamicActionMap={"yt-run-attestation-command":function(q){var G=_.HGn.instance,K=_.C(q,_.LH9);return K?_.w("use_rta_manager_for_async")&&
PgP()?nkw(G,K,q.clickTrackingParams):K7M(G,K,q.clickTrackingParams):_.Aj(Error("pi"))}};
M.isFrostedGlassDisabled=!1;M.isChannelOrPlaylistPage=!1;return M};
_.l(b7,_.Q);_.N=b7.prototype;_.N.created=function(){var M=_.AL();_.w("kevlar_clear_duplicate_pref_cookie")&&_.Jp(_.r8,function(){var q=_.Iu.get("PREF");q&&!/f\d=/.test(q)&&(q=_.wP("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=q?"PREF=null;domain="+q+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.w("gzip_gel_with_worker")&&_.sOu();_.w("jspb_serialize_with_worker")&&HTI();_.w("web_worker_availability_check")&&HeR();_.w("nwl_init_killswitch")||fpE().then(function(){_.r8.addLowPriorityJob(Cqv)});
this.pageManagerAttachedPromise=_.u8();this.ytdAppBehavior.loadDepsPromise=_.oi([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.qA(this.onThrottledScroll,200,this);_.w("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);msI();XBL=!!_.sx("ytappsettings.initialized");kY=_.sx("ytappsettings.previousValue");zx5=_.sx("ytappsettings.previousSnapshotTime");XBL||(XBL=!0,mYL());isI();cMU();_.Vz("DEFERRED_DETACH",
_.w("kevlar_tuner_should_defer_detach"));_.Vz("REUSE_COMPONENTS",!0);_.Vz("STAMPER_STABLE_LIST",!0);_.Vz("SCHEDULED_LAZY_LIST",!0);_.Vz("openPopupConfig",Gxn);_.Vz("useClickHandler",!0);_.w("kevlar_shell_cleanup")&&_.r8.addLowPriorityJob(gjU.bind(this,_.Kj.caches));_.fX("IS_SHELL_LOAD")&&_.t2({shellStartupDurationMs:Math.round((0,_.d8)()-_.Yp())});Jcs(this.networkStatusManager);_.w("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",ccI(AGv)),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!",
ccI(dGn)),console.log("%cVisit http://go/join-youtube-web to apply today.",ccI(vBg)));_.L3P(M.resolve(_.eZ),1E3)};
_.N.ready=function(){var M=this;this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var q=N75();q&&!_.w("external_fullscreen_killswitch")&&document.addEventListener(q,this.setFullscreen.bind(this));(q=window.matchMedia("(prefers-color-scheme: dark)"))&&q.addEventListener&&q.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged();if(q=_.AL().resolve(_.WR(_.kP9)))q.subscribe("navigation-start",
function(G){G.destinationPageSubtype==="watch"&&(M.hasPendingWatchNavigation=!0)}),q.subscribe("navigation-end",function(G){G.destinationPageSubtype==="watch"&&(M.hasPendingWatchNavigation=!1)})};
_.N.attached=function(){var M=this;_.M5().processSignal("ci");_.w("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.MM9?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.$n(_.l4Y(),"SUCCESS");this.updateIconSet();_.Tt(this.guideInnerContent,!1);_.lW().initVisibilityObserver();this.guideService.guideElement=this.guide;var q=document.createElement("ytd-miniplayer"),G=_.f_(this.hostElement).querySelector("#content");
_.f_(this.hostElement).insertBefore(q,G);_.M5().processSignal("ma");_.AL().resolve(_.lq).init(q);this.persistentPanelEnabled&&_.h3I(_.AL().resolve(_.UW),this.persistentPanelContainer,"APP");_.fX("IS_SHELL_LOAD")&&(G=document.createElement("ytd-network-status-banner"),_.f_(this.hostElement).insertBefore(G,q));_.w("kevlar_right_click_on_lockups")&&_.fh._onCaptureClick&&document.addEventListener("contextmenu",_.fh._onCaptureClick.bind(_.fh),!0);var K=function(){var n=_.Gz("yt-page-navigation-progress");
_.f_(M.hostElement).appendChild(n)};
setTimeout(function(){_.M5().parkOrScheduleJob(K,0,"eocs",16)},0);
_.w("service_worker_push_enabled")&&_.Jp(_.r8,nmv);_.KI(_.GC.getInstance(),this.dynamicActionMap,this.hostElement);_.jP(this.hostElement,"ytd-app-attached");_.M5().processSignal("aa");wb5(this.hostElement);_.Y5("gapi.load",_.Kzy);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.Jp(_.r8,
function(){var n=document.createElement("ytd-video-preview");_.f_(_.f_(M.hostElement).querySelector("#video-preview")).appendChild(n)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.Jp(_.r8,function(){IlI();M.registerWithViewTransitionManager()});
if(_.g2()&&this.isAppDarkTheme()!==_.ia())this.onDarkModeToggledAction();else q=_.cE()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==q&&(_.w("enable_dark_theme_only_on_shorts")?_.PE(_.w("enable_dark_theme_only_on_shorts_control")?window.location.href:_.Ex(window.location.href,{theme:"dark"})):_.j1(new _.bj("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(N05=new EoM(this.hostElement)),paw=new k0I(this.hostElement),NOg=new EB8(this.hostElement),Pls=new XjP(this.hostElement)};
_.N.getThemeSettingsToLog=function(){var M=_.cE()==="USER_INTERFACE_THEME_DARK";M=_.g2()?_.ia()?"os-dark":"os-light":M?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:M,cookiesEnabled:_.uj()}};
_.N.detached=function(){_.rt(this.guideInnerContent);_.r8.cancelJob(GY);GY=0;_.r8.cancelJob(nd);nd=0;_.WYi(Olw);Olw.length=0;vjL=_.pew=null;_.lW().dispose();_.w("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.N6(_.GC.getInstance(),N05.playlistHandlerActionMap,N05.JSC$32417_clientRoot);_.N6(_.GC.getInstance(),paw.downloadManagerActionMap,paw.JSC$32713_clientRoot);_.N6(_.GC.getInstance(),NOg.feedbackCollectorActionMap,NOg.JSC$32708_clientRoot);
for(var M=_.k(Pls.eventListeners),q=M.next();!q.done;q=M.next()){var G=_.k(q.value);q=G.next().value;G=G.next().value;G=_.k(G);for(var K=G.next();!K.done;K=G.next()){var n=_.k(K.value);K=n.next().value;n=n.next().value;q.removeEventListener(K,n)}}_.N6(_.GC.getInstance(),Pls.autonavPauseActionMap,Pls.JSC$20276_clientRoot)};
_.N.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.El().getFlag(186)};
_.N.computeIsInlinePreviewEnabled=function(M,q,G){return!G&&_.quI({miniplayerIsActive:M,miniplayerPlaybackState:q})};
_.N.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_FROSTED_GLASS_MODE",payload:!_.w("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"}))};
_.N.computeIsFrostedGlassDisabled=function(M,q,G,K){return M||q||G||K&&_.w("web_frosted_glass_disable_watch")};
_.N.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.w("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.N.computeIsHomePage=function(M,q){if(!M||q==null||!q.endpoint)return!1;var G;return((G=_.C(q.endpoint,_.n_))==null?void 0:G.browseId)==="FEwhat_to_watch"};
_.N.updateIsChannelOrPlaylistPage=function(){if(_.w("web_frosted_glass")){var M,q,G=(q=(M=_.AL().resolve(_.WR(_.md)))==null?void 0:M.getCurrentPage())==null?void 0:q.pageSubtype;this.isChannelOrPlaylistPage=G?["channel","channels","playlist"].includes(G):!1}};
_.N.scheduleFrostedGlassInitialization=function(){var M=this;_.w("web_frosted_glass")&&_.M5().parkOrScheduleJob(function(){M.isFrostedGlassInitialized=!0},0,_.vZ(["eocs",
"cr"]),300)};
_.N.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.fsM(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.RJ({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.N.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(vr5(!0))};
_.N.onYtSignalActionRequestPersistentStorage=function(){if(!_.w("request_persistent_storage_killswitch")){var M=_.AL().resolve(_.PQw);M.cachedPersistStatePromise||(M.cachedPersistStatePromise=Uuv())}};
_.N.handleYtChannelCreationFormEndpoints=function(M){M&&this.ytComponentBehavior.resolveCommand(M)};
_.N.handleShowEngagementPanelEndpoint=function(M){M&&this.ytComponentBehavior.resolveCommand(M)};
_.N.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(vr5(!1))};
_.N.initIconDefs=function(M,q){var G=document.createElement("iron-iconset-svg");G.name=M;M=document.createElementNS("http://www.w3.org/2000/svg","svg");G.appendChild(M);M.appendChild(q);document.body.appendChild(G);return G};
_.N.onWindowResized=function(){_.VW(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var M=_.h7.getInstance();M.documentWidth_=document.body.clientWidth;Qig(M)};
_.N.onWindowScrolled=function(){var M=_.AL().resolve(_.md).getCurrentPage();if(M!=null&&M.getScrollTop){var q=this.ytdReduxBehavior,G=q.dispatch;M=M.getScrollTop()<=0;G.call(q,_.RJ({type:"SET_SCROLL_AT_TOP",payload:M}))}};
_.N.guideIsVisibleButNotPersistentSelectorChanged=function(){var M=_.AL().resolve(_.md).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=M.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"),
M.setScrollTop(this.guideScrollTop));_.Rf(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.N.getCurrentPageScrollableElementType=function(){var M=_.AL().resolve(_.md).getCurrentPage();if(M&&M.getPageScrollingElement())return M.getPageScrollingElement().nodeName};
_.N.observeGuideVisibility=function(){var M=_.h7.getInstance(),q=this.miniGuideVisible;M.guidePersistentAndVisible_=this.guidePersistentAndVisible;M.miniGuideVisible_=q;Qig(M)};
_.N.observePersistentPanelVisibility=function(){var M=_.h7.getInstance();M.persistentPanelVisible_=this.persistentPanelVisible;Qig(M)};
_.N.handleEduDismissAction=function(M){M&&M.eduDismissAction&&(_.VW(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.$wB.getInstance(),_.d1.set(M.eduDismissAction.key+"-dismissed",!0))};
_.N.handleEduImpressionAction=function(M){if(M&&M.eduImpressionAction){var q=_.$wB.getInstance();M=M.eduImpressionAction.key;q.JSC$13181_eduDisplayedThisLoad_[_.eiP[M].setKey||M]=!0;_.d1.set(M+"-impression",parseInt(_.d1.get(M+"-impression")||0,10)+1)}};
_.N.onYtSignalActionConfirmMentionsEdu=function(){_.VW(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.O_.getInstance();_.t7.set("edu-dismissed",!0)};
_.N.onYtSignalActionRecordMentionsEduImpression=function(){_.O_.getInstance();var M=_.t7.set,q=parseInt(_.t7.get("edu-impressions"),10);M.call(_.t7,"edu-impressions",(isFinite(q)?q:0)+1)};
_.N.onYtPageManagerAttached=function(M){var q;((q=_.ba(M))==null?void 0:q.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.N.onInvokeInstrumentManagerAction=function(M,q){qSL(q,M)};
_.N.updateIconSet=function(){var M=this.hostElement.querySelector("#masthead");if(M){var q=_.Fw(M),G=q.querySelector("g#yt-logo-updated");G&&(M=document.createElementNS("http://www.w3.org/2000/svg","defs"),M.appendChild(G.cloneNode(!0)),(q=q.querySelector("g#yt-logo-red-updated"))&&M.appendChild(q.cloneNode(!0)),this.initIconDefs("yt-logos-ext",M))}};
_.N.updateMastheadData=function(){var M=this,q,G,K,n,E;return _.L(function(p){if(p.nextAddress==1){q=M.data;G=M.hostElement.querySelector("#masthead");if(!G)return p.return();_.yb(M,function(){G.data=M.topbarData});
if(!M.get("response.topbar",q)||M.get("response.topbar.responseContext.maxAgeSeconds",q)===0)return p.jumpTo(0);if(K=_.AL().resolve(_.Q4))return p.yield(K(),6);n=_.AL().resolve(_.ta);return p.yield(n.put("service:topbar:fallback",new _.OW({innertubeResponse:M.get("response.topbar",q)})),0)}return(E=p.yieldResult)?p.yield(E.put("service:topbar:fallback",new _.OW({innertubeResponse:M.get("response.topbar",q)})),0):p.jumpTo(0)})};
_.N.computeTopbarData=function(M){if(!M)return null;var q;return this.isShortsPage&&this.topbarData&&!_.C((q=M.response)==null?void 0:q.topbar,mNw)?this.topbarData:M.response&&"topbar"in M.response?_.C(M.response.topbar,mNw)||null:null};
_.N.onSetTheaterModeEnabled=function(M,q){this.isTheaterModeSession=q.enabled;this.setTheaterModeStyles(q.enabled)};
_.N.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.N.onDarkModeToggledAction=function(){var M=_.ij(window.location.href);if(!_.YGs(M)){(M=!!_.nD(window.location.href).themeRefresh)&&_.j1(new _.bj("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!M){mYL();M={themeRefresh:1};var q=_.AL().resolve(_.md);if(q.isOnWatch()){var G,K;q=((G=q.getPlayerFromWatch())==null?void 0:(K=G.getPlayer())==null?void 0:K.getCurrentTime())||0;q>=1&&(M.time_continue=Math.floor(q))}_.uj()||_.cE()!=="USER_INTERFACE_THEME_DARK"||(M.theme="dark");_.PE(_.Ex(window.location.href,
M))}_.w("web_appshell_refresh_trigger")&&_.Kj.caches&&this.refreshAppShellResponse();G=_.BF(window.location.href);_.ac(_.AL().resolve(_.oc),_.zt(G,"theme"))}};
_.N.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.N.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.N.onPlayerFullscreen=function(M){_.m3();this.playerFullscreen=M};
_.N.setRestrictedMode=function(M){var q=_.El();_.Ng(0,58,M);q.save();_.AL().resolve(_.oq).reload()};
_.N.onPageChanged=function(M){M.detail.newPageType==="ytd-watch-flexy"||M.detail.newPageType==="ytd-watch-fixie"||M.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.dr("WEB_PAGE_TYPE_WATCH")):M.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.dr("WEB_PAGE_TYPE_SHORTS")):M.detail.newPageType==="ytd-browse"&&M.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.dr("WEB_PAGE_TYPE_MINI_APP")):_.w("web_frosted_glass")&&M.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.dr("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.dr("WEB_PAGE_TYPE_UNKNOWN"));M.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.N.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.N.onGuideToggleTap=function(){_.jP(this.hostElement,"yt-guide-toggle")};
_.N.onGuideToggleHover=function(){_.jP(this.hostElement,"yt-guide-hover")};
_.N.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.N.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.N.setMastheadTheme=function(){var M=_.Fw(this.hostElement).querySelector("#masthead");M&&(M.dark=M.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),M.isDarkThemeForced=!1)};
_.N.onRequestPanelModeChange=function(M,q){this.hideHeaderShadow=q.mode!=="seamed"};
_.N.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.N.onDrawerIronSelect=function(M){_.ba(M).id==="guide"&&this.processDrawerIronSelect()};
_.N.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var M="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(M="opened"));_.jP(this.hostElement,"yt-autonav-pause-guide-"+M)};
_.N.onAddElementToApp=function(M){_.f_(this.hostElement).appendChild(M.detail)};
_.N.onThrottledScroll=function(){var M=_.AL().resolve(_.md).getCurrentPage();M&&(this.scrollAtTop=M.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.N.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.N.setFullscreen=function(){if(_.w("external_fullscreen")||!this.isWatchPage){var M=_.w("kevlar_fullerscreen_root_only_killswitch")?!!_.m3():!!_.m3()&&_.m3()===document.documentElement;M=(this.isWatchPage||this.isShortsPage||this.isMiniAppPage)&&(M||this.isFullWindowSession);this.fullscreen!==M&&((this.fullscreen=M)&&_.Rf(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.zw().dispatch(_.bM9(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),this.updateScrollAndMasthead(this.isWatchPage&&
this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.VW(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.N.setFullscreenLoggingForShorts=function(M){var q,G,K;return _.L(function(n){if(n.nextAddress==1)return n.yield((q=_.TM())==null?void 0:q.getPlayerPromise(),2);G=n.yieldResult;(K=G)==null||K.setAppFullscreen(M);_.gL(n)})};
_.N.updateMastheadCssHeight=function(){var M=this.mastheadHeight;this.fullscreen&&(M=0);_.sT(this.hostElement,{"--ytd-masthead-height":M+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.N.updateNetworkStatusBannerDisplayStatus=function(){var M="unset";this.fullscreen&&(M="none");_.sT(this.hostElement,{"--ytd-network-status-banner-display":M})};
_.N.updateNetworkStatusBannerCssHeight=function(){var M="unset";this.fullscreen&&(M="0px");_.sT(this.hostElement,{"--ytd-network-status-banner-max-height":M})};
_.N.updateScrollAndMasthead=function(M,q,G,K){this.iMaxTheaterMode||(K=!1);var n=_.AL().resolve(_.md).getCurrentPage();M||q||K?(document.body.classList.add("no-scroll"),n.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.qs(this,this.onScroll)),n.setScrollTop(0),_.sT(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.lL()+"px"})):G?_.jP(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.jP(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
n.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.qs(this,this.onScroll)));this.mastheadHidden=M||q||G;this.updateMastheadCssHeight();_.w("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.N.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.N.onYtNavigateAction=function(M){M=this.get("navigateAction.endpoint",M);_.jP(this.hostElement,"yt-navigate",{endpoint:M})};
_.N.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var M=document.createElement("yt-create-family-dialog");_.f_(this.hostElement).appendChild(M);this.hasCreateFamilyDialog=!0}};
_.N.onSetPushNotificationsEnabledCommand=function(M){var q=this,G=_.C(M,zgg);G&&typeof G.enabled==="boolean"&&(Notification.permission!=="granted"?s2L().then(function(){Notification.permission==="granted"?(ZlE(!G.enabled).then(xYs),G.successAction&&_.fx(q.hostElement,[G.successAction])):G.failureAction&&_.fx(q.hostElement,[G.failureAction])}):(ZlE(!G.enabled).then(xYs),G.successAction&&_.fx(this.hostElement,[G.successAction])))};
_.N.onYtSignalActionEnableChromeNotifications=function(){Mc8(!0)};
_.N.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.C(this.topbarData.hotkeyDialog,rbM)}}})};
_.N.onYtSignalActionShowKeyboardShortcutDialog=function(){_.VW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.N.onYtEndpointChangeHandler=function(M,q){var G=_.Uz(_.aq);G.pendingPrefetchJob_&&(q=!(!q||q.autonav!="1"),G.pendingPrefetchJob_.resolve(M&&_.ybe(M)?_.LU$(M,q):""),G.pendingPrefetchJob_=null);_.VW(this.hostElement,"yt-pause-active-page-context");_.VW(this.hostElement,"ytd-log-youthere-nav");_.VW(this.hostElement,"yt-prepare-page-dispose")};
_.N.handleCommandWithCommandHandler=function(M,q){_.$A.instance.resolveCommand(M,{form:{element:q}})};
_.N.onYtTimedCommand=function(M){var q=this;M=_.C(M,glv);var G=M.command;G&&_.MK(_.r8,function(){var K=_.C(G,_.Lr8);K?(_.$A.instance.resolveCommand(G),q.maybeLogGetAnswerRequestTick(K)):_.FH(q.hostElement,[G],q.hostElement)},M.timeoutMs||0)};
_.N.maybeLogGetAnswerRequestTick=function(M){M&&M.isFirstRequest&&(_.aJ("search_overview_answer"),_.oJ("so_rq",void 0,"search_overview_answer"))};
_.N.onYtSignalActionSkipNavigation=function(){var M=_.AL().resolve(_.md).getCurrentPage();_.N8(M)};
_.N.onYtSignalActionCopyDebugData=function(){ACR()};
_.N.handleEntityUpdateCommand=function(M){_.nK(_.C(M,_.u9J).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.N.logFlowLoggingEventCommand=function(M){if(M=_.C(M,_.VxF))if(M.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var q=M.flowEventNamespace,G=M.flowEventType,K=M.flowType;K&&q&&G&&_.qYy(_.Mr(q,G,M.flowEventMetadata),K)}else{q=_.qr();G=M.flowEventNamespace;K=M.flowEventType;var n=M.flowType;n&&G&&K&&q.logFlowEvent(_.Mr(G,K,M.flowEventMetadata),n,M.flowNonce)}};
_.N.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.N.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.N.onTouchStart=function(){var M=_.Xt();_.Cx()&&_.Bx(M.JSC$13303_screenManager,{visualElement:M.ve})};
_.N.handleSelectLanguageCommand=function(M){if(M=_.C(M,b0P).hl){var q=_.El();q.set("hl",M);q.save();_.AL().resolve(_.oq).reload()}};
_.N.handleConfirmDialogEndpoint=function(M){(M=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&this.ytOpenPopupBehavior.openPopup(M)};
_.N.handleOpenPopupNavigationEndpoints=function(M,q){_.w("web_button_rework")&&(M=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(M))&&this.ytOpenPopupBehavior.openPopup(M,q)};
_.N.handleSaveCommandToSessionStorage=function(M){if(M=_.C(M,_.hIS)){var q=M.key;q&&M.command&&window.sessionStorage.setItem(q,JSON.stringify(M.command))}};
_.N.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(M){M&&M.active&&M.active.postMessage({type:"refresh_shell"})}).catch(function(M){M.name!=="SecurityError"&&_.T6(M)})};
_.N.onDeviceThemeChanged=function(){var M=_.ia();_.Ng(_.El(),185,M);_.El().save()};
_.N.handleYtRegisterPromoCommand=function(M){if(_.C(M,xNn)){var q=_.AL().resolve(_.md).getCurrentPage()||this.hostElement;JX5().registerPromoCommand(_.C(M,xNn),q)}};
_.N.onYtNavigateHomeAction=function(){if(!_.w("kevlar_miniplayer_navigate_home_from_app_killswitch")){var M,q,G,K,n=(K=(M=this.topbarData)==null?void 0:(q=M.logo)==null?void 0:(G=q.topbarLogoRenderer)==null?void 0:G.endpoint)!=null?K:_.Qa;this.ytComponentBehavior.resolveCommand(n)}};
_.N.onYtLocationCollectionCommand=function(M){BBn(_.C(M,$NI))};
_.N.onYtGetLocationCommand=function(M){IQU(_.C(M,egU),this)};
_.N.updateRenderGuideFromBinding=function(M){this.renderGuide=M.detail.value};
_.N.updateGuidePersistentAndVisibleFromBinding=function(M){this.guidePersistentAndVisible=M.detail.value};
_.N.updateMiniGuideVisibleFromBinding=function(M){this.miniGuideVisible=M.detail.value};
_.N.onThemeSelected=function(M,q){var G=_.El(),K=M||q?M:_.ia(),n=(K&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!K&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.YGs(_.ij(window.location.href));_.Ng(0,165,M);_.Ng(0,174,q);G.save();n&&_.VW(this.hostElement,"yt-dark-mode-toggled-action",[K]);_.VW(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.N.getCurrentTheme=function(){return _.g2()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.cE()};
_.N.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.N.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.N.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.N.handleShowConsentPrimitive=function(M){var q=this,G,K;return _.L(function(n){if(n.nextAddress==1){try{G=(K=_.TM())==null?void 0:K.getPlayerPromise()}catch(E){}return n.yield(flI(M,G),2)}_.VW(q.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.gL(n)})};
_.N.handleSelectActiveIdentityEndpointInternal=function(M){_.la();M=_.C(M,_.iC9);if(M!=null&&M.supportedTokens){M=_.k(M.supportedTokens);for(var q=M.next();!q.done;q=M.next())q=q.value,q.accountSigninToken&&_.PE(q.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.N.handleUpdatePermissionRoleCommand=function(M){if(M=_.C(M,_.gvM)){var q;this.hasDelegation=!((q=_.C(M.renderer,_.cv2))==null||!q.status)}};
_.N.registerWithViewTransitionManager=function(){var M=_.AL().resolve(_.WR(_.ix));if(M){var q,G=(q=this.guide)==null?void 0:q.querySelector("#scrim"),K;q=(K=this.guide)==null?void 0:K.querySelector("#contentContainer");G&&q&&M.isAnyTransitionEnabled&&(K={},M.viewTransitionCoordinator.registerElement(G,(K.slide="app-drawer-scrim-page-transition",K["lockup-to-watch"]="app-drawer-scrim-page-transition",K["learning-journey"]="app-drawer-scrim-page-transition",K)),G={},M.viewTransitionCoordinator.registerElement(q,
(G.slide="app-drawer-container-page-transition",G["lockup-to-watch"]="app-drawer-container-page-transition",G["learning-journey"]="app-drawer-container-page-transition",G)))}};
_.Yd.Object.defineProperties(b7.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.w("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Yd.Object.defineProperties(b7,{template:{configurable:!0,enumerable:!0,get:function(){if(sVI===void 0){var M=document.createElement("template");_.X(M,'\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="[[clientOnlyWizTooltipsEnabled]]" class="style-scope ytd-app">\n  <yt-tooltip class="style-scope ytd-app"></yt-tooltip>\n</template>\n');
M.content.insertBefore(_.f().content.cloneNode(!0),M.content.firstChild);sVI=M}M=sVI;return M}}});
b7.prototype.onOpenHotkeyDialog=b7.prototype.onOpenHotkeyDialog;b7.prototype.setFullscreen=b7.prototype.setFullscreen;b7.prototype.onAddElementToApp=b7.prototype.onAddElementToApp;b7.prototype.onDrawerIronSelect=b7.prototype.onDrawerIronSelect;b7.prototype.onGuideOpenButtonHover=b7.prototype.onGuideOpenButtonHover;b7.prototype.onRequestPanelModeChange=b7.prototype.onRequestPanelModeChange;b7.prototype.onPageDataUpdated=b7.prototype.onPageDataUpdated;b7.prototype.onPageChanged=b7.prototype.onPageChanged;
b7.prototype.onSetTheaterModeEnabled=b7.prototype.onSetTheaterModeEnabled;b7.prototype.updateMastheadData=b7.prototype.updateMastheadData;b7.prototype.onYtPageManagerAttached=b7.prototype.onYtPageManagerAttached;b7.prototype.observePersistentPanelVisibility=b7.prototype.observePersistentPanelVisibility;b7.prototype.observeGuideVisibility=b7.prototype.observeGuideVisibility;b7.prototype.guideIsVisibleButNotPersistentSelectorChanged=b7.prototype.guideIsVisibleButNotPersistentSelectorChanged;
b7.prototype.isInlinePreviewEnabledChanged=b7.prototype.isInlinePreviewEnabledChanged;b7.prototype.isWatchPageChanged=b7.prototype.isWatchPageChanged;b7.prototype.dispatchFrostedGlassMode=b7.prototype.dispatchFrostedGlassMode;_.T([_.P(_.mr),_.r("design:type",Object)],b7.prototype,"ytdReduxBehavior",void 0);_.T([_.P(_.QE.YtEventForwardingBehavior),_.r("design:type",Object)],b7.prototype,"ytEventForwardingBehavior",void 0);
_.T([_.P(_.vf.YtOpenPopupBehavior),_.r("design:type",Object)],b7.prototype,"ytOpenPopupBehavior",void 0);_.T([_.P(_.wg.YtActionHandlerBehavior),_.r("design:type",Object)],b7.prototype,"ytActionHandlerBehavior",void 0);
_.T([_.P({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.GC.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.w("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var M;((M=this.actionRouterNode.hostElement)!=null?M:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var M;((M=this.actionRouterNode.hostElement)!=null?M:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(M){this.actionRouter_.handleAction(M.detail)}}),
_.r("design:type",Object)],b7.prototype,"ytActionRouterBehavior",void 0);_.T([_.P(SPw.YtdAppBehavior),_.r("design:type",Object)],b7.prototype,"ytdAppBehavior",void 0);_.T([_.P(_.OH.YtEndpointBehavior),_.r("design:type",Object)],b7.prototype,"ytEndpointBehavior",void 0);_.T([_.P(nB8.YtEndpointHandlerWithYpcBehavior),_.r("design:type",Object)],b7.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.T([_.P(Mqw.YtLogYpcFlowCommandsBehavior),_.r("design:type",Object)],b7.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.T([_.P(_.F.YtRendererBehavior),_.r("design:type",Object)],b7.prototype,"ytRendererBehavior",void 0);_.T([_.P(_.Sp.YtComponentBehavior),_.r("design:type",Object)],b7.prototype,"ytComponentBehavior",void 0);_.T([_.B({selector:_.oUI}),_.r("design:type",Object)],b7.prototype,"tabGesturesIsActive",void 0);_.T([_.B(),_.r("design:type",Boolean)],b7.prototype,"renderGuide",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"guidePersistentAndVisible",void 0);_.T([_.B({selector:_.axI}),_.r("design:type",Boolean)],b7.prototype,"guideIsVisibleButNotPersistent",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"standalone",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"miniGuideVisible",void 0);
_.T([_.B(),_.r("design:type",Object)],b7.prototype,"persistentPanelEnabled",void 0);_.T([_.B({selector:oBw,reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"persistentPanelVisible",void 0);_.T([_.B({selector:_.Jvy}),_.r("design:type",Number)],b7.prototype,"miniplayerPlaybackState",void 0);_.T([_.B({selector:_.at,reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"miniplayerIsActive",void 0);
_.T([_.B({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.r("design:type",Boolean)],b7.prototype,"isInlinePreviewEnabled",void 0);_.T([_.B(),_.r("design:type",Boolean)],b7.prototype,"isInlinePreviewDisabled",void 0);_.T([_.B({reflectToAttribute:!0,value:function(){return _.fX("START_IN_FULL_WINDOW_MODE")}}),
_.r("design:type",Boolean)],b7.prototype,"mastheadHidden",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"playerFullscreen",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"fullscreen",void 0);_.T([_.B({value:!1,reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"hideHeaderShadow",void 0);
_.T([_.B({value:{GUIDE_ALT_LABEL:_.Ge("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.r("design:type",Object)],b7.prototype,"menuStrings",void 0);_.T([_.B({computed:"computeTopbarData(data)"}),_.r("design:type",Object)],b7.prototype,"topbarData",void 0);_.T([_.B({selector:_.QGy,reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"isWatchPage",void 0);_.T([_.B({selector:_.Ij4,reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"isShortsPage",void 0);
_.T([_.B({selector:function(M){return _.ot(M)==="WEB_PAGE_TYPE_MINI_APP"}}),
_.r("design:type",Boolean)],b7.prototype,"isMiniAppPage",void 0);_.T([_.B({selector:function(M){return _.ot(M)==="WEB_PAGE_TYPE_BROWSE"}}),
_.r("design:type",Boolean)],b7.prototype,"isBrowsePage",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Boolean)],b7.prototype,"scrolling",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],b7.prototype,"hasDelegation",void 0);_.T([_.B({reflectToAttribute:!0,value:!1}),_.r("design:type",Boolean)],b7.prototype,"guideScrolledByTouch",void 0);_.T([_.B(),_.r("design:type",Object)],b7.prototype,"isFrostedGlassInitialized",void 0);
_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],b7.prototype,"frostedGlassExp",void 0);_.T([_.B({selector:function(M){return M.ui.chipBarIsSticky}}),
_.r("design:type",Boolean)],b7.prototype,"chipBarIsSticky",void 0);_.T([_.B({computed:"computeIsHomePage(isBrowsePage, data)"}),_.r("design:type",Boolean)],b7.prototype,"isHomePage",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],b7.prototype,"hasPendingWatchNavigation",void 0);_.T([_.B({reflectToAttribute:!0}),_.r("design:type",Object)],b7.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);
_.T([_.B(),_.r("design:type",Object)],b7.prototype,"clientOnlyWizTooltipsEnabled",void 0);_.T([_.xB("guide"),_.r("design:type",Object)],b7.prototype,"guide",void 0);_.T([_.xB("guide-service"),_.r("design:type",Qd5)],b7.prototype,"guideService",void 0);_.T([_.xB("guide-inner-content"),_.r("design:type",HTMLDivElement)],b7.prototype,"guideInnerContent",void 0);_.T([_.ET("#persistent-panel-container"),_.r("design:type",HTMLElement)],b7.prototype,"persistentPanelContainer",void 0);
_.T([_.B({selector:_.Z34}),_.r("design:type",String)],b7.prototype,"frostedGlassMode",void 0);_.T([_.KT("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"dispatchFrostedGlassMode",null);_.T([_.B({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.r("design:type",Object)],b7.prototype,"isFrostedGlassDisabled",void 0);
_.T([_.KT("isWatchPage"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"isWatchPageChanged",null);_.T([_.c("isHomePage","chipBarIsSticky"),_.r("design:type",Boolean),_.r("design:paramtypes",[])],b7.prototype,"applyFrostedGlassToChipBar",null);_.T([_.B(),_.r("design:type",Object)],b7.prototype,"isChannelOrPlaylistPage",void 0);
_.T([_.yO("isInlinePreviewEnabled"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"isInlinePreviewEnabledChanged",null);_.T([_.KT("guideIsVisibleButNotPersistent"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.T([_.KT("guidePersistentAndVisible","miniGuideVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"observeGuideVisibility",null);_.T([_.KT("persistentPanelVisible"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"observePersistentPanelVisibility",null);
_.T([_.GQ("attached"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],b7.prototype,"onYtPageManagerAttached",null);_.T([_.KT("data"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype",Promise)],b7.prototype,"updateMastheadData",null);_.T([_.GQ("yt-set-theater-mode-enabled"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent,Object]),_.r("design:returntype")],b7.prototype,"onSetTheaterModeEnabled",null);
_.T([_.GQ("yt-page-type-changed"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],b7.prototype,"onPageChanged",null);_.T([_.GQ("yt-page-data-updated"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"onPageDataUpdated",null);_.T([_.GQ("yt-request-panel-mode-change"),_.r("design:type",Function),_.r("design:paramtypes",[Event,Object]),_.r("design:returntype")],b7.prototype,"onRequestPanelModeChange",null);
_.T([_.GQ("yt-guide-hover"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"onGuideOpenButtonHover",null);_.T([_.GQ("app-drawer-transitioned"),_.r("design:type",Function),_.r("design:paramtypes",[Event]),_.r("design:returntype")],b7.prototype,"onDrawerIronSelect",null);_.T([_.GQ("yt-add-element-to-app"),_.r("design:type",Function),_.r("design:paramtypes",[CustomEvent]),_.r("design:returntype")],b7.prototype,"onAddElementToApp",null);
_.T([_.GQ("yt-set-fullerscreen-styles"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"setFullscreen",null);_.T([_.GQ("yt-open-hotkey-dialog"),_.r("design:type",Function),_.r("design:paramtypes",[]),_.r("design:returntype")],b7.prototype,"onOpenHotkeyDialog",null);_.T([_.b({is:"ytd-app"})],b7);_.M5().processSignal("eor");
_.SA();
}catch(e){_._DumpException(e)}
try{
_.mv("NSzT5");
var YTR;_.jq=function(M){var q=document.createElement("link");_.pv(q,M,"stylesheet");document.head.appendChild(q)};
_.Vo=function(M,q){var G,K;return _.L(function(n){G=document.createElement("div");G.id=M.id;M.className&&(G.className=M.className);K=M.element;if(!K)throw Error("fk");if(M.location==="prepend")K.prepend(G);else if(M.location==="appendChild")K.appendChild(G);else if(M.location==="after")K.after(G);else throw Error("gk");return n.return(_.z_(G,q,"Qi"))})};
_.RV=function(M){var q;return _.L(function(G){(q=document.getElementById(M))&&q.remove();_.gL(G)})};
_.fH=function(M,q){var G=document.querySelector(M);G?q(G):setTimeout(function(){_.fH(M,q)},1E3)};
_.WXv=function(M,q,G){var K;_.L(function(n){if(n.nextAddress==1)return(K=document.getElementById(M))?n.jumpTo(2):n.yield(YTR(M,q,G),2);if(K=document.getElementById(M))K.style.display="block";_.gL(n)})};
YTR=function(M,q,G){return _.L(function(K){return K.return(new Promise(function(n){_.fH("div #panels",function(E){_.Vo({element:E,location:"appendChild",id:M,className:"ytprototypesEngagementPanelComponentEngagementPanelMountPoint "+G},q);n()})}))})};
_.hUM=function(M){M=M===void 0?"":M;_.RV("creator_chatbots-entry-point");_.RV("creator_chatbots-panel");_.jq(A_w);_.fH("ytd-watch-metadata #top-level-buttons-computed",function(q){document.getElementById("creator_chatbots-entry-point")||(_.Vo({element:q,location:"appendChild",id:"creator_chatbots-entry-point",className:"ytprotoCreatorChatbotsExtensionExtensionMountPoint"},function(){return _.W(dsI,{creatorChannelId:M})}),_.WXv("creator_chatbots-panel",function(){return _.W(vAI,{usePlayerHeight:!0,
creatorChannelId:M})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint"))})};_.FE=_.U(function(M){var q=M.text;var G=M.onClick;var K=M.color;var n=M.backgroundColor;var E=M.buttonSize;var p=M.disabled;var y=M.iconName;var Y=M.iconSize;M=M.className;var A=_.sq(function(h){G(h)}),v={};
return _.W("button",{class:_.Hb("ytpStandardButtonsHost",(v.ytpStandardButtonsLarge=function(){return(E==null?void 0:E())==="large"},v),M),
"on:click":A,style:_.Kp({color:K,"background-color":n}),disabled:p}," ",_.W(_.d,{cond:y,then:function(){return _.W(_.np,{className:"ytpStandardButtonsIconContainer",icon:y,size:Y})}}),q)},"Pi");_.toI=_.U(function(M){var q;return _.W("div",{class:_.Hb("ytprototypesEngagementPanelComponentHost",M.className),id:M.id},_.W("div",{class:_.Hb("ytprototypesEngagementPanelComponentEngagementPanelHeader",M.headerClassName)},_.W("div",null,M.header()),_.W("div",{class:"ytprototypesEngagementPanelComponentHeaderButtons"},_.W("div",{class:"ytprototypesEngagementPanelComponentHeaderButtonProp"},(q=M.HeaderButton)==null?void 0:q.call(M)),_.W(_.FE,{iconName:"close",buttonSize:"large",iconSize:24,className:"yt-icon-button",
onClick:function(){var G;(G=M.onHide)==null||G.call(M);G=M.id();if(G=document.getElementById(G))G.style.display="none"}}))),_.W("div",{class:_.Hb("ytprototypesEngagementPanelComponentEngagementPanelContent",M.contentClassName),
style:function(){var G;return"height: "+(((G=M.height)==null?void 0:G.call(M))||"800px")+";"}},M.content()))},"Ri");var OTs=_.DQ(["https://portraits.google.com"]),w4w=_.DQ(["https://labs-characters.teams.x20web.corp.google.com"]),Cgn=_.DQ(["https://portraits.google.com/gallery?ytChannelId=",""]),apP=_.Ow(OTs),Ha=_.Ow(w4w),vAI=_.U(function(M){function q(t){var O;if(t=(O=t.detail)==null?void 0:O.endpoint){O=_.C(t,_.n_);var a;O&&((a=O.browseId)==null?0:a.startsWith("UC"))&&O.browseId!==n()&&(_.RV("creator_chatbots-panel-persistent"),v.removeEventListener("yt-navigate-start",q))}}
var G=M.usePlayerHeight;var K=M.isPersistentPanel;var n=M.creatorChannelId;var E=_.w("enable_creator_chatbots_extension_dev_server"),p=document.createElement("iframe"),y=E?Ha:apP;_.mT(function(){var t=n();t=E?Ha:_.Ow(Cgn,t);_.WwF(p,1,t)});
p.className="ytprotoCreatorChatbotsAppLabsIframe";p.allow="microphone; clipboard-read; clipboard-write self "+y;var Y=function(){var t;return _.L(function(O){if(O.nextAddress==1)return O.yield(_.AL().resolve(_.fp),2);(t=O.yieldResult)&&t.pauseVideo();_.gL(O)})},A=function(){var t,O,a;
return _.L(function(g){return g.nextAddress==1?g.yield(_.AL().resolve(_.fp),2):(t=g.yieldResult)?g.return({video_id:(a=(O=t.getVideoData())==null?void 0:O.video_id)!=null?a:"",timestamp_sec:t.getCurrentTime().toString()}):g.return({})})};
window.addEventListener("message",function(t){var O,a,g,D,J,Z;return _.L(function(V){if(V.nextAddress==1){O=E?Ha.toString():apP.toString();if(t.origin!==O)return console.warn("Received message from untrusted origin:",t.origin),V.return();a=t.data;if(typeof a!=="object"||a===null||!a.action)return V.return();if(a.action==="pause")return V.yield(Y(),0);if(a.action!=="getYouTubeContext"||!t.source)return V.jumpTo(0);g=t.source;D=g.postMessage;J=JSON;Z=J.stringify;return V.yield(A(),7)}D.call(g,Z.call(J,
{youTubeContext:V.yieldResult}),{targetOrigin:t.origin});return V.jumpTo(0)})});
_.WU("yt-page-type-changed",function(){if(K==null?0:K()){var t;((t=_.AL().resolve(_.md).getCurrentPage())==null?void 0:t.pageSubtype)!=="channels"&&(t=document.getElementById("creator_chatbots-panel-persistent"))&&(t.style.display="none")}});
var v=_.AL().resolve(_.oq),h;(h=v)==null||h.addEventListener("yt-navigate-start",q);_.m_(function(){var t;(t=v)==null||t.removeEventListener("yt-navigate-start",q)});
return _.W("div",{class:"ytprotoCreatorChatbotsAppHost",style:function(){return(G==null?0:G())?"height: var(--ytd-watch-flexy-panel-max-height);":"height: 100%;"}},_.W(_.toI,{id:function(){return(K==null?0:K())?"creator_chatbots-panel-persistent":"creator_chatbots-panel"},
height:"100%",className:"ytprotoCreatorChatbotsAppEngagementPanel",headerClassName:"ytprotoCreatorChatbotsAppEngagementPanelHeader",contentClassName:"ytprotoCreatorChatbotsAppEngagementPanelContent",onHide:function(){var t=E?Ha.toString():apP.toString(),O;(O=p.contentWindow)==null||O.postMessage("ep_closed",t)},
header:function(){return _.W("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeader"},_.W("div",{class:"ytprotoCreatorChatbotsAppChatbotPanelHeaderContent"},"Talk to the Creator"),_.W(_.VT,{data:{text:"AI experiment",type:0}}))},
HeaderButton:function(){return _.W(_.FE,{iconName:"OPEN_IN_NEW",buttonSize:"large",iconSize:24,className:"yt-icon-button",onClick:function(){_.si(window,_.z3(E?Ha.toString():y.toString()+"/gallery?ytChannelId="+n()),"_blank")}})},
content:function(){return p}}))},"Ti");var oAn,A_w,dsI;oAn=_.DQ(["https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wdth,wght@8..144,25..151,100..1000&display=swap"]);A_w=_.Ow(oAn);dsI=_.U(function(M){var q=M.creatorChannelId;var G=function(){_.WXv("creator_chatbots-panel",function(){return _.W(vAI,{usePlayerHeight:!0,creatorChannelId:q})},"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint")};
return _.W("div",{class:"ytd-menu-renderer"},_.W(_.Yv,{data:function(){return{style:"mono",type:"tonal",state:"active",iconPosition:"leading",size:"M",buttonText:"Chat now",onTap:G}},
icon:function(){return _.W(_.np,{icon:"SPARK"})}}))},"Ui");
_.h9g=function(M){M=M===void 0?"":M;var q;return _.L(function(G){return(q=document.getElementById("creator_chatbots-panel-persistent"))?(q.style.display==="none"&&(q.style.display="block"),G.jumpTo(0)):G.yield(new Promise(function(K){_.fH("ytd-app",function(n){_.Vo({element:n,location:"appendChild",id:"creator_chatbots-panel-persistent",className:"ytprotoCreatorChatbotsExtensionEngagementPanelMountPoint ytprotoCreatorChatbotsExtensionPersistentEngagementPanel"},function(){return _.W(vAI,{isPersistentPanel:!0,
creatorChannelId:M})});
K()})}),0)})};
_.SA();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
